/* Industry tools (trades.js and trade-*.js) and the separate inboxes (inboxes.js). */
:root{--g8:#b5651d}
.g8{background:var(--g8)}

/* Inbox tabs: one per inbox, with its "to approve" count */
.ibx-boxes{display:flex;gap:6px;align-items:center;padding:10px 10px 4px;overflow-x:auto;scrollbar-width:none;flex-wrap:nowrap}
.ibx-boxes::-webkit-scrollbar{display:none}
.ibx-box{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border:1px solid var(--line);border-radius:999px;color:var(--ink);white-space:nowrap;text-decoration:none!important;font-weight:500;background:var(--card)}
.ibx-box.on{border-color:var(--brand);background:var(--soft);font-weight:700}
.ibx-appr{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:#c25b00;color:#fff;font-size:12px;font-weight:700}
.ibx-boxadd{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;padding:6px 8px}
.ibx-boxadd .ic{width:16px;height:16px}
.mc-move{margin-left:0}
.ibx-status .mc-move{margin-left:auto}
.mb-list{display:flex;flex-direction:column;gap:12px;margin:10px 0}
.mb-box{padding:12px 14px}
.mb-head{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center;margin-bottom:6px}
.mb-head .mute{font-size:13px}
.mb-acts{margin-left:auto;display:flex;gap:10px}
.mb-box .mc-box{margin:8px 0}
.mb-steps summary{cursor:pointer;font-weight:600;font-size:13.5px;padding:4px 0}

/* Industry tools */
.tgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px;margin-bottom:14px}
.tset{border:1px solid var(--line);border-radius:10px;padding:8px 12px;margin:0;min-width:0}
.tset legend{font-weight:700;padding:0 4px}
.ds-rows{display:flex;flex-direction:column;gap:4px}
.ds-row{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:10px}
.ds-sum{margin:12px 0}
.ds-sum .ai-tot,.panel .ai-tot{max-width:520px}
.ai-tot small{font-weight:400;color:var(--muted)}
.jbacts{margin-top:12px}
.linklist{display:flex;flex-direction:column;gap:4px;max-height:50vh;overflow:auto;margin:8px 0}
ul.plain{list-style:none;padding:0;margin:6px 0;display:flex;flex-direction:column;gap:6px}
.unbilled li{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center}
.irate{width:90px;min-height:32px;padding:4px 6px;text-align:right}
.prop{margin-bottom:14px}
.prophead{display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between;align-items:center}
.prophead h2{margin:0}
.samplepick{margin-top:8px}
.neg{color:var(--bad)}

/* Donation receipt (prints on its own) */
.donrcpt{padding:24px;max-width:760px}
.donrcpt.voided{opacity:.6}
.dr-head{display:flex;flex-wrap:wrap;gap:16px;justify-content:space-between;border-bottom:2px solid var(--line);padding-bottom:12px;margin-bottom:14px}
.dr-head h2{margin:0 0 4px}
.dr-head p{margin:2px 0}
.dr-no{display:flex;flex-direction:column;gap:2px;text-align:right}
.dr-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:8px 16px;margin:0}
.dr-body dt{color:var(--muted)}
.dr-body dd{margin:0;overflow-wrap:anywhere}
.dr-sign{margin:40px 0 10px;max-width:280px;border-top:1px solid var(--ink);padding-top:4px;font-size:13px;color:var(--muted)}

@media (max-width:600px){
  .ds-row{grid-template-columns:1fr}
  .dr-body{grid-template-columns:1fr}
  .dr-no{text-align:left}
  .mb-acts{margin-left:0}
  .ibx-status .mc-move{margin-left:0}
}
@media print{
  body:has(.donrcpt) #rail,body:has(.donrcpt) #panel,body:has(.donrcpt) #top,body:has(.donrcpt) #bottom,body:has(.donrcpt) .crumbs,body:has(.donrcpt) .pageacts,.noprint{display:none!important}
  body:has(#rrTbl) #rail,body:has(#rrTbl) #panel,body:has(#rrTbl) #top,body:has(#rrTbl) #bottom,body:has(#rrTbl) .pageacts{display:none!important}
  .donrcpt{box-shadow:none;border:0;max-width:none}
}
