/* Compact shared workspace. Wide ledgers stay in a bounded scroller; phones use cards. */
.v08-parts{--v8-accent:#126a69;--v8-ink:#142e3d;--v8-muted:#5c6d78;--v8-line:#dbe3e7;background:#f4f6f8;font-size:13px}
.v08-parts aside{width:192px}.v08-parts main{margin-left:192px;padding:16px 22px}.v08-parts aside nav{gap:3px;padding:5px 14px}.v08-parts aside nav a{padding:8px 10px;font-size:13px}.v08-parts .brand{padding:18px 18px 12px}.v08-parts .brand-mark{width:34px;height:34px;border-radius:8px}
.v08-parts h1{font-size:23px;margin:0}.v08-parts .page-header{padding:0;margin:8px 0 10px;align-items:center}.v08-parts .version{font-size:11px;color:#71818d}.v08-parts .shop-context{margin:0 0 6px;padding:5px 0;border:0;background:none;min-height:34px;gap:12px}.v08-parts .shop-context label{display:flex;flex-direction:row;align-items:center;font-size:12px}.v08-parts .shop-context select{padding:5px 8px;max-width:280px}.v08-parts .shop-context-account{font-size:11px}
.v08-parts button,.v08-parts .button{padding:6px 9px;border-radius:5px;font-size:12px;line-height:1.35;min-height:30px}.v08-parts button.primary{background:var(--v8-accent);border-color:var(--v8-accent)}.v08-parts input,.v08-parts select,.v08-parts textarea{padding:7px 8px;border-radius:5px;font-size:13px}.v08-parts label{font-size:12px;gap:4px}.v08-parts textarea{min-height:58px}.v08-parts input[type=checkbox]{width:17px;height:17px;min-width:17px}.v08-parts .actions{gap:6px}.v08-parts .workspace-actions{display:flex;justify-content:flex-end;position:absolute;right:22px;top:104px;gap:6px;padding:0;background:none;border:0;margin:0;z-index:5}.v08-parts .workspace-actions .actions{display:flex!important}.v08-parts .tabs{padding:0 180px 0 0;gap:3px;border-bottom:1px solid var(--v8-line);margin:0;overflow-x:auto;scrollbar-width:thin;white-space:nowrap}.v08-parts .tabs button{padding:10px 10px;min-height:38px;border:0;border-radius:0;font-size:12px;white-space:nowrap;background:transparent}.v08-parts .tabs button[aria-selected=true]{border-bottom:3px solid var(--v8-accent);color:var(--v8-accent);font-weight:750;background:#edf7f6}.v08-parts .content-panel{border-radius:0 0 7px 7px;box-shadow:none;margin:0;overflow:visible}
.v08-parts .filters{padding:10px 12px;display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap;border:0;background:#f9fbfc}.v08-parts .filters .search{flex:1;min-width:220px}.v08-parts .filters label{min-width:110px;flex:0 1 auto}.v08-parts .filters .date-filter{max-width:145px}.v08-parts #toolbar{padding:8px 12px;display:flex;justify-content:space-between;gap:8px;align-items:center;border-top:1px solid var(--v8-line);border-bottom:1px solid var(--v8-line)}.v08-parts .sort-summary{font-size:11px;max-width:38%;color:#6a7c85}.v08-parts #selection-summary:empty{display:none}.v08-parts #selection-summary:not(:empty){padding:6px 12px;background:#eaf5f4;position:sticky;top:0;z-index:3}.v08-parts #pagination{padding:9px 12px;border-top:1px solid var(--v8-line);font-size:12px}.v08-parts .empty{padding:30px 14px;font-size:13px}
.v08-parts table{font-size:12px}.v08-parts th{font-size:11px;padding:8px 7px;vertical-align:middle}.v08-parts td{padding:8px 7px;vertical-align:top;line-height:1.4}.v08-parts td.name{min-width:170px;max-width:300px}.v08-parts .sub{font-size:11px;line-height:1.5}.v08-parts td.number{font-variant-numeric:tabular-nums;white-space:nowrap}.v08-parts .badge{font-size:10px;padding:3px 5px;line-height:1.3}.v08-parts .scan-actions{display:flex;gap:3px;flex-wrap:nowrap}.v08-parts .scan-actions button{padding:4px 6px;min-height:26px;font-size:11px}.v08-parts .detail-row>td{padding:0!important}.v08-parts .detail-row .table-wrap{border:0;margin:0;background:#f4f9fa}.v08-parts .detail-row table th{background:#e8f0f2}.v08-parts .detail-row table td{padding:10px 8px}.v08-parts .detail-title{margin:0;padding:7px 12px;font-size:11px;background:#eff5f5}.v08-parts .expander{min-width:25px;padding:4px;font-size:17px}.v08-parts .short-note{max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.v08-parts .item-heading{display:flex;gap:6px;align-items:flex-start;font-weight:650}.v08-parts .item-tools{display:flex;gap:4px;align-items:center;flex-wrap:wrap;margin-top:6px}.v08-parts .item-tools button{font-size:11px;padding:3px 6px;min-height:25px}.v08-parts .item-tools .relation{border-color:#dac188;color:#725311;background:#fff8e8}.v08-parts .group-caption{font-size:10px;color:#607682;display:block;margin-top:4px}.v08-parts .inline-help{font-size:11px;color:#5d6c76;margin:4px 0}.v08-parts .owed-link{color:#a15d0a;border-color:#ecd2a4;background:#fff8ee;white-space:nowrap}.v08-parts .amount-negative{color:#9b3b38}
.v08-parts .row-menu{position:relative}.v08-parts .row-menu>summary{font-size:12px;padding:5px 7px;white-space:nowrap;cursor:pointer;border:1px solid var(--v8-line);border-radius:5px;list-style:none;min-height:28px}.v08-parts .row-menu[open]>div{position:absolute;right:0;top:32px;min-width:210px;background:white;border:1px solid #bccfd5;border-radius:6px;box-shadow:0 6px 24px #102d3d26;z-index:12;padding:6px;display:flex;flex-direction:column;gap:4px}.v08-parts .row-menu[open]>div button{text-align:left}.v08-parts .table-wrap{max-width:100%;overflow:auto}
.v08-parts dialog{max-width:1080px;width:calc(100% - 48px);max-height:92vh;padding:0;border-radius:9px;overflow:auto}.v08-parts dialog[data-view=item-details]{max-width:1180px}.v08-parts .dialog-head{padding:13px 16px;position:sticky;top:0;background:white;z-index:6;border-bottom:1px solid var(--v8-line)}.v08-parts .dialog-head h2{font-size:18px}.v08-parts #dialog-content{padding:14px 16px}.v08-parts .dialog-head button{font-size:22px;min-width:32px;padding:0 6px}.v08-parts .form-grid{gap:10px}.v08-parts .action-footer,.v08-parts .form-actions{position:sticky;bottom:0;background:#fff;padding:10px 0 0;z-index:4;border-top:1px solid var(--v8-line);display:flex;justify-content:flex-end;gap:8px}.v08-parts .notice{padding:8px 10px;margin:8px 0;font-size:12px;line-height:1.5}.v08-parts #dialog-error:not(:empty){position:sticky;bottom:0;background:#fff0f0;padding:12px;margin:0;z-index:8}
.v08-parts .metric-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));border:1px solid var(--v8-line);border-radius:6px;margin:10px 0;overflow:hidden}.v08-parts .metric{padding:10px 12px;border-right:1px solid var(--v8-line);background:#f8fbfc}.v08-parts .metric:last-child{border:0}.v08-parts .metric span{display:block;font-size:11px;color:#5d7480;margin-bottom:4px}.v08-parts .metric strong{font-size:21px;display:block;color:var(--v8-ink)}.v08-parts .metric small{font-size:10px;color:#667b86;display:block;margin-top:3px}.v08-parts .detail-forms{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:12px 0}.v08-parts .detail-forms section{padding:12px;border:1px solid var(--v8-line);border-radius:6px}.v08-parts .detail-forms h3{margin:0 0 10px;font-size:14px}.v08-parts .detail-forms form .form-grid{display:grid;grid-template-columns:1fr 1fr}.v08-parts .detail-forms .span2{grid-column:1/-1}.v08-parts .detail-forms .form-actions{position:static}.v08-parts .details-bar{display:flex;gap:8px;align-items:center;justify-content:space-between}.v08-parts .details-bar p{margin:0}.v08-parts .metric-filter{display:flex;align-items:flex-end;gap:8px;margin:10px 0}.v08-parts .metric-filter input{max-width:165px}.v08-parts .evidence-section{margin:12px 0}.v08-parts .evidence-section>summary{font-weight:650;font-size:13px;padding:8px 0;cursor:pointer}.v08-parts .evidence-section pre{white-space:pre-wrap}.v08-parts .supplier-table{margin-top:12px}.v08-parts .supplier-table h3{font-size:14px;margin:8px 0}.v08-parts .inline-kv{display:flex;flex-wrap:wrap;gap:8px 18px;font-size:12px;margin:8px 0}.v08-parts .inline-kv span{color:#567280}.v08-parts .group-results{max-height:330px;overflow-y:auto;margin:10px 0;border:1px solid var(--v8-line);border-radius:6px}.v08-parts .group-option{display:flex;justify-content:space-between;gap:14px;width:100%;padding:10px 12px!important;text-align:left;border-radius:0!important;border:0;border-bottom:1px solid var(--v8-line);min-height:60px}.v08-parts .group-option .option-cost{white-space:nowrap;text-align:right}.v08-parts .group-option strong{font-size:13px}.v08-parts .group-option:hover,.v08-parts .group-option:focus{background:#eaf6f5}.v08-parts .group-option:last-child{border:0}.v08-parts .inline-footer{display:flex;justify-content:space-between;gap:8px;align-items:center;margin:8px 0}.v08-parts .icon-label{font-weight:650;color:#416571}
@media(min-width:1050px){.v08-parts #filter-toggle{display:none}.v08-parts .filters label{display:flex!important}}
@media(max-width:1400px){.v08-parts .workspace-actions{position:static;margin:0 0 7px;justify-content:flex-end}.v08-parts .tabs{padding-right:0}.v08-parts aside{width:175px}.v08-parts main{margin-left:175px;padding:12px 16px}.v08-parts .sort-summary{max-width:25%}}
@media(max-width:1050px){.v08-parts aside{display:none}.v08-parts.nav-open aside{display:flex;width:210px;z-index:30}.v08-parts main{margin-left:0;padding:12px}.v08-parts #nav-toggle{display:block;position:static;margin:8px 12px 0}.v08-parts .page-header{margin-top:8px}.v08-parts .filters label{display:none}.v08-parts .filters label.search,.v08-parts .filters label.owed-primary{display:flex}.v08-parts .filters.filters-open label{display:flex}.v08-parts .sort-summary{display:none}.v08-parts .metric-grid{grid-template-columns:repeat(3,1fr)}.v08-parts .metric:nth-child(3){border-right:0}.v08-parts .metric{border-bottom:1px solid var(--v8-line)}.v08-parts .shop-context-account{display:none}}
@media(max-width:620px){.v08-parts main{padding:8px}.v08-parts h1{font-size:20px}.v08-parts .shop-context{flex-wrap:wrap;gap:5px}.v08-parts .shop-context select{max-width:225px}.v08-parts .shop-context a{font-size:11px}.v08-parts .page-header{margin-bottom:8px}.v08-parts .header-actions{gap:8px}.v08-parts .workspace-actions{margin:4px 0;min-height:28px}.v08-parts .tabs button{padding:10px 8px;font-size:12px}.v08-parts .filters{padding:8px;gap:6px}.v08-parts .filters .search{min-width:100%;flex-basis:100%}.v08-parts .filters select,.v08-parts .filters input{min-height:36px}.v08-parts #toolbar{padding:8px;flex-wrap:wrap}.v08-parts #toolbar button{min-height:34px}.v08-parts .details-bar{align-items:flex-start;flex-direction:column}.v08-parts dialog,.v08-parts dialog[data-view=item-details]{width:100%;max-width:100%;max-height:100dvh;height:100dvh;inset:0;margin:0;border:0;border-radius:0}.v08-parts #dialog-content{padding:12px}.v08-parts .dialog-head{padding:12px}.v08-parts .detail-forms{grid-template-columns:1fr;gap:10px}.v08-parts .detail-forms form .form-grid{grid-template-columns:1fr}.v08-parts .detail-forms .span2{grid-column:auto}.v08-parts .metric-grid{grid-template-columns:repeat(2,1fr)}.v08-parts .metric strong{font-size:19px}.v08-parts .metric{padding:8px}.v08-parts .metric-filter{flex-wrap:wrap}.v08-parts .group-results{max-height:44dvh}.v08-parts .group-option{gap:8px}.v08-parts .group-option .option-cost{white-space:normal;min-width:85px}.v08-parts .table-wrap:not(.ledger-scroll)>table,.v08-parts .table-wrap:not(.ledger-scroll)>table>tbody{display:block;min-width:0;width:100%}.v08-parts .table-wrap:not(.ledger-scroll)>table>thead{display:none}.v08-parts .table-wrap:not(.ledger-scroll)>table>tbody>tr{display:grid;grid-template-columns:1fr 1fr;gap:3px 8px;padding:10px;border-bottom:1px solid var(--v8-line)}.v08-parts .table-wrap:not(.ledger-scroll)>table>tbody>tr>td{display:block;min-width:0;max-width:none;border:0;padding:4px 0;word-break:break-word}.v08-parts .table-wrap:not(.ledger-scroll)>table>tbody>tr>td::before{content:attr(data-label);display:block;font-size:10px;color:#627782;margin-bottom:3px;font-weight:500}.v08-parts .table-wrap:not(.ledger-scroll)>table>tbody>tr>td.name{grid-column:1/-1}.v08-parts .detail-row{display:block!important;padding:0!important}.v08-parts .detail-row>td{display:block!important}.v08-parts .detail-row>td::before{display:none!important}.v08-parts .scan-actions{flex-wrap:wrap}.v08-parts .row-menu[open]>div{position:static;box-shadow:none;margin-top:5px}.v08-parts .group-option:focus-visible{outline-offset:-3px}.v08-parts .ledger-scroll table{display:table!important;min-width:520px}.v08-parts .ledger-scroll thead{display:table-header-group!important}.v08-parts .ledger-scroll tbody{display:table-row-group!important}.v08-parts .ledger-scroll tr{display:table-row!important}.v08-parts .ledger-scroll td{display:table-cell!important}.v08-parts .ledger-scroll td::before{display:none!important}}
/* Keep the tools in the header rather than floating over a filter. */
.v08-parts .header-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.v08-parts .workspace-actions{position:static;display:inline-flex;padding:0!important}.v08-parts .tabs{padding-right:0}.v08-parts .filters label{display:flex!important;flex-direction:column;align-items:stretch;min-width:100px;flex:0 1 auto}.v08-parts .filters label.search{flex:1;min-width:230px}.v08-parts .filters label.extra-filter{display:none!important}.v08-parts .filters.filters-open label.extra-filter,.v08-parts .filters.custom-dates label.date-filter{display:flex!important}.v08-parts #filter-toggle{display:block!important}.v08-parts .detail-forms form>details{margin:7px 0;font-size:12px}.v08-parts .detail-forms form>details summary{cursor:pointer;color:#165c65;font-weight:650;padding:5px 0}.v08-parts .detail-forms textarea{min-height:38px;height:38px}.v08-parts .detail-forms h3{margin:2px 0 7px}.v08-parts .metric-grid{margin:14px 0 10px}.v08-parts .group-caption:empty{display:none}.v08-parts .column-picker{max-height:45vh;overflow:auto}
@media(max-width:800px){.v08-parts .page-header{gap:8px}.v08-parts .header-actions{gap:5px}.v08-parts .filters:not(.filters-open) label:not(.search):not(.owed-primary){display:none!important}.v08-parts .filters .search{min-width:180px}.v08-parts .shop-context-account{display:none}.v08-parts .workspace-actions .row-menu>summary{min-height:34px}.v08-parts .filters label.search{flex:1 0 100%}}
.v08-parts .detail-forms{align-items:start}.v08-parts .detail-forms details summary{font-size:12px;padding:5px 0;color:#165c65;cursor:pointer}.v08-parts .details-bar p{margin:0;max-width:540px;flex:1}.v08-parts .details-bar{align-items:center}
/* Extra tabs have no collapsed filter set; honor their hidden toggle. */
.v08-parts #filter-toggle[hidden]{display:none!important}
