/* Commercial lists only: category identity stays separate from status badges. */
.commercial-categories {display:grid;grid-template-columns:repeat(auto-fit,minmax(142px,1fr));gap:12px;margin:0 0 25px;padding:4px;}
.commercial-tone-slate {--commercial-solid:#354964;--commercial-soft:#e8edf4;--commercial-ink:#354964;}
.commercial-tone-blue {--commercial-solid:#245cb9;--commercial-soft:#e5eeff;--commercial-ink:#1757aa;}
.commercial-tone-teal {--commercial-solid:#08777b;--commercial-soft:#e0f3f2;--commercial-ink:#086b70;}
.commercial-tone-indigo {--commercial-solid:#5946b3;--commercial-soft:#ece9ff;--commercial-ink:#4f40a8;}
.commercial-tone-violet {--commercial-solid:#7c42a9;--commercial-soft:#f1e5ff;--commercial-ink:#773aa2;}
.commercial-tone-ochre {--commercial-solid:#925b13;--commercial-soft:#fff0d5;--commercial-ink:#8b560b;}
.commercial-categories .commercial-category {position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:12px;min-width:0;min-height:116px;padding:16px 14px;border:1px solid transparent;border-radius:12px;color:#fff;background:var(--commercial-solid);font-size:13px;font-weight:750;line-height:1.35;text-decoration:none;transition:transform .15s,box-shadow .15s;}
.commercial-categories .commercial-category:hover {color:#fff;text-decoration:none;transform:translateY(-2px);box-shadow:0 5px 12px #2035501c;}
.commercial-categories .commercial-category[aria-current="page"] {box-shadow:0 0 0 2px var(--panel,#fff),0 0 0 4px var(--commercial-solid);}
.commercial-categories .commercial-category:focus-visible {outline:3px solid var(--text,#1e3048);outline-offset:4px;}
.commercial-category-icon .ui-icon {width:23px;height:23px;}
.commercial-category-label {max-width:100%;overflow-wrap:anywhere;}
.commercial-category-count {position:absolute;right:12px;top:13px;display:grid;place-items:center;min-width:25px;min-height:25px;padding:2px 6px;border-radius:7px;background:#ffffff26;color:#fff;font-size:12px;font-weight:800;font-variant-numeric:tabular-nums;}
.commercial-documents {min-width:0;}
.commercial-document-tools {display:flex;align-items:center;gap:15px;flex-wrap:wrap;margin-bottom:18px;}
.commercial-document-search {display:flex;align-items:center;gap:10px;flex:1;min-width:180px;max-width:610px;padding:2px 12px;border:1px solid var(--line,#dce4ef);border-radius:10px;background:var(--panel,#fff);color:var(--muted,#607086);}
.commercial-document-search .ui-icon {width:19px;height:19px;flex-shrink:0;}
.commercial-document-search input {border:0;background:transparent;min-width:0;padding:10px 0;font-size:14px;}
.commercial-document-search:focus-within {outline:3px solid #8bb2ff;outline-offset:2px;}
.commercial-document-search input:focus-visible {outline:0;}
.commercial-search-label {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
.commercial-document-count {font-size:12px;color:var(--muted,#607086);font-weight:650;white-space:nowrap;}
.commercial-document-list {display:grid;gap:12px;}
.commercial-document {display:grid;grid-template-columns:43px minmax(0,1fr) auto;align-items:center;gap:16px;padding:19px;border:1px solid var(--line,#dce4ef);border-left:5px solid var(--commercial-solid);border-radius:14px;background:var(--panel,#fff);min-width:0;}
.commercial-document[hidden],.commercial-document-empty[hidden] {display:none!important;}
.commercial-document-icon {display:grid;place-items:center;width:43px;height:48px;border-radius:10px;background:var(--commercial-soft);color:var(--commercial-ink);}
.commercial-document-icon .ui-icon {width:23px;height:23px;}
.commercial-document-body {min-width:0;}
.commercial-document-heading {display:flex;align-items:center;gap:8px 12px;flex-wrap:wrap;margin-bottom:5px;}
.commercial-document-link {font-size:15px;line-height:1.35;font-weight:800;color:var(--text,#1e3048);overflow-wrap:anywhere;}
.commercial-document-link:hover {color:var(--blue,#255dc9);}
.commercial-document-status {display:flex;flex-wrap:wrap;gap:3px;}
.commercial-document-status .badge {white-space:normal;font-weight:650;}
.commercial-document-party {margin:0 0 4px;font-size:14px;font-weight:700;overflow-wrap:anywhere;}
.commercial-document-summary {margin:0 0 7px;color:var(--muted,#607086);font-size:13px;overflow-wrap:anywhere;}
.commercial-document-meta {display:flex;flex-wrap:wrap;gap:4px 12px;margin:0;color:var(--muted,#607086);font-size:12px;overflow-wrap:anywhere;}
.commercial-document-type {color:var(--commercial-ink);font-weight:700;}
.commercial-document-amounts {display:flex;flex-direction:column;align-items:flex-end;gap:4px;text-align:right;font-size:12px;color:var(--muted,#607086);font-variant-numeric:tabular-nums;}
.commercial-document-amounts>strong {color:var(--text,#1e3048);font-size:19px;font-weight:800;line-height:1.3;}
.commercial-document-amounts b {font-weight:650;}
.commercial-document-amount-label {font-size:11px;}
.commercial-document-empty {padding:28px 16px;text-align:center;font-size:14px;color:var(--muted,#607086);margin:0;}
@media(max-width:1000px) {
 .commercial-categories {grid-template-columns:repeat(3,minmax(0,1fr));}
 .commercial-document {grid-template-columns:40px minmax(0,1fr);gap:12px;}
 .commercial-document-amounts {grid-column:2;align-items:flex-start;text-align:left;}
}
@media(max-width:560px) {
 .commercial-categories {grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;}
 .commercial-categories .commercial-category {min-height:106px;padding:14px 12px;font-size:12px;}
 .commercial-document {padding:15px 12px;grid-template-columns:32px minmax(0,1fr);gap:10px;}
 .commercial-document-icon {width:32px;height:39px;border-radius:8px;}
 .commercial-document-icon .ui-icon {width:20px;height:20px;}
 .commercial-document-heading {gap:6px;}
 .commercial-document-link {font-size:14px;}
 .commercial-document-tools {gap:9px;}
 .commercial-document-search {flex-basis:100%;}
 .commercial-document-amounts>strong {font-size:18px;}
}
@media(prefers-reduced-motion:reduce) {
 .commercial-categories .commercial-category {transition:none;}
 .commercial-categories .commercial-category:hover {transform:none;}
}
