:root{font-family:Inter,'Segoe UI',system-ui,-apple-system,Arial,sans-serif;color:#e9edf5;background:#0b101b;font-size:14px;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;min-height:100vh}a{color:#89b8ff;text-decoration:none}a:hover{text-decoration:underline}input,button,select{font:inherit}button,.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid #477dff;background:#477dff;color:white;font-weight:600;border-radius:10px;min-height:39px;padding:9px 15px;cursor:pointer;text-decoration:none;white-space:nowrap}button:hover,.button:hover{filter:brightness(1.12);text-decoration:none}button.secondary,.button.secondary{border-color:#32415b;background:#192538;color:#dce4f5}button.link{min-height:0;padding:0;background:none;border:0;color:#83b2ff;font-weight:500}button.danger-text{color:#fb9696}input,select{min-height:39px;border:1px solid #334158;border-radius:9px;background:#111b2a;color:#edf3ff;padding:9px 11px;width:100%;outline:none}input:focus,select:focus{border-color:#477dff;box-shadow:0 0 0 2px #477dff23}input[type=file]{padding:9px;min-height:47px}input[type=checkbox]{width:auto;min-height:auto;accent-color:#477dff}
.shell{display:flex;min-height:100vh}.sidebar{width:258px;flex-shrink:0;background:#0d1624;border-right:1px solid #223046;display:flex;flex-direction:column;padding:23px 13px 15px;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:11px;padding:5px 12px 21px;margin-bottom:17px;border-bottom:1px solid #233249;color:#f0f5fd;font-size:18px;font-weight:800;letter-spacing:.06em}.brand:hover{text-decoration:none}.brand b{color:#79a8ff}.brand small{display:block;font-size:11px;letter-spacing:.03em;font-weight:400;color:#8298b7;margin-top:5px}.brand-square{width:39px;height:39px;display:grid;place-items:center;border-radius:10px;background:linear-gradient(135deg,#4d85ff,#2458bd);font-weight:800;color:#fff;font-size:24px}.sidebar nav{overflow:auto;min-height:0}.nav-link{display:flex;align-items:center;gap:11px;padding:10px 12px;border-radius:10px;margin-bottom:3px;color:#9fb1ca;font-weight:550}.nav-link:hover{background:#1a2a42;color:white;text-decoration:none}.nav-link.active{color:#edf3ff;background:#1c355b;box-shadow:inset 3px 0 #6e9dff}.nav-icon{width:21px;text-align:center;color:#88a8d6;font-size:20px;font-weight:400}.sidebar-bottom{padding-top:12px;margin-top:auto;border-top:1px solid #233249}.logout{width:100%;background:transparent;border-color:#354259;color:#98adca}.body{flex:1;min-width:0}.top{height:76px;border-bottom:1px solid #202b40;display:flex;align-items:center;justify-content:space-between;padding:0 34px;gap:12px}.crumb{color:#a3b2c9;font-size:13px;font-weight:600;letter-spacing:.04em}.crumb-dot{padding:0 9px;color:#587291}.local-pill{background:#12263a;color:#80b1e5;border:1px solid #204568;border-radius:999px;padding:6px 12px;font-size:12px}.main{max-width:1450px;padding:34px;min-width:0}.main.wide{max-width:1650px}.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:24px}.page-head h1{margin:0 0 8px;font-size:29px;font-weight:750;letter-spacing:-.035em}.subhead{margin:0;color:#97a7bf;line-height:1.5}.button-strip{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.button-strip form{margin:0}.card{border:1px solid #2b3951;border-radius:14px;background:#141e2d;padding:22px;margin-top:17px;min-width:0}.card h2{margin:0 0 18px;font-size:17px;letter-spacing:-.01em}.card p{line-height:1.6}.launch-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.launch-card{display:flex;flex-direction:column;gap:8px;min-height:176px;padding:23px;background:#141e2d;border:1px solid #2d3c54;border-radius:14px;color:#e6edf7}.launch-card:hover{border-color:#5989f4;background:#172741;text-decoration:none}.launch-icon{font-size:33px;color:#7daaff}.launch-card>b{font-size:19px}.launch-card>span:not(.launch-icon):not(.launch-arrow){color:#9cadc3;line-height:1.5}.launch-arrow{margin-top:auto;color:#83b4ff}.callout,.flash,.success-note,.danger-note{margin:17px 0;border-radius:10px;padding:14px 16px;line-height:1.55}.callout{background:#142b40;border:1px solid #2a4967;color:#b4cde6}.flash,.success-note{background:#13312c;border:1px solid #216456;color:#9ce2c3}.danger-note{background:#3a242a;border:1px solid #89434d;color:#ffc5c9}.danger-note ul{margin:6px 0 0;padding-left:22px}.table-scroll{width:100%;overflow-x:auto}table{border-collapse:collapse;text-align:left;width:100%;min-width:600px}th{padding:12px 10px;color:#94a8c7;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.02em;border-bottom:1px solid #3a465d;white-space:nowrap}td{padding:13px 10px;border-bottom:1px solid #28354a;color:#e6ecf5;vertical-align:middle;line-height:1.45}tr:last-child td{border-bottom:none}.num{text-align:right;font-variant-numeric:tabular-nums}.empty{color:#93a5be;text-align:center;padding:28px}.sku-row{display:flex;flex-direction:column;gap:4px}.sku-row small,.helper{font-size:12px;line-height:1.5;color:#95a8c3}.strong-link{font-weight:700;color:#acd0ff}.pill{display:inline-block;padding:4px 8px;border:1px solid #3a4b61;border-radius:8px;color:#c2ccdc;background:#223148;font-size:12px;white-space:nowrap}.pill.green{background:#173d33;color:#8ce4bb;border-color:#28604e}.pill.amber{background:#45351e;color:#f0cb7b;border-color:#755629}.pill.slate{background:#223047;color:#c5d4ee}.toolbar{display:flex;gap:10px;align-items:center;margin-bottom:16px;flex-wrap:wrap}.toolbar input{width:min(330px,100%)}.search-panel{margin-bottom:16px}.search-panel>label{display:block;color:#b6c7df;margin-bottom:8px;font-weight:650}.search-row{display:flex;gap:9px}.search-row input{max-width:560px}.search-panel .helper{margin-bottom:0}.two-cols{display:grid;grid-template-columns:1fr 1fr;gap:17px}.two-cols>.card{margin-top:0}.fields{display:grid;gap:13px}.field{display:flex;flex-direction:column;gap:7px;color:#b8c8dd;font-weight:500}.field>span{font-size:12px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.form-card{width:min(590px,100%)}.status-line{display:flex;align-items:center;gap:12px;margin:5px 0 20px;color:#9fb2c9}.card-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.card-heading h2{margin-bottom:0}.inline{display:inline-block;vertical-align:middle}.stat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:20px}.stat-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.stat{background:#142137;padding:19px;border:1px solid #283d5b;border-radius:12px;display:flex;flex-direction:column;gap:9px}.stat span{color:#93a9c5}.stat b{font-size:25px;font-weight:760}.confirm-label{display:flex;align-items:flex-start;gap:11px;margin:10px 0 18px;color:#e1e9f5}.confirm-label input{margin-top:3px}.auth-page .shell{display:grid;place-items:center;min-height:100vh}.auth-page .body{width:100%;max-width:480px}.auth-page .top{display:none}.auth-page .main{padding:20px}.login-box{background:#141e2d;border:1px solid #34435d;border-radius:18px;padding:36px}.login-box h1{font-size:24px;margin:12px 0}.login-box p{color:#9fb1ca;line-height:1.55}.login-logo{width:54px;height:54px;border-radius:14px;display:grid;place-items:center;color:#fff;font-size:31px;font-weight:800;background:#477dff}.login-box .fields{margin-top:23px}.login-box button{width:100%;margin-top:9px}.login-box .helper{font-size:11px}.auth-page input{background:#111c2a}code{font-family:Consolas,monospace;background:#0d1625;padding:2px 5px;border-radius:4px}
@media(max-width:1200px){.sidebar{width:225px}.main{padding:24px}.two-cols{grid-template-columns:1fr}}
@media(max-width:770px){.shell{display:block}.sidebar{height:auto;width:100%;position:relative;padding:11px;border-right:none;border-bottom:1px solid #26374c}.brand{padding:6px 8px 12px;margin-bottom:8px}.sidebar nav{display:flex;overflow:auto;gap:4px}.nav-link{white-space:nowrap;margin:0;padding:9px}.nav-icon{display:none}.sidebar-bottom{display:none}.top{height:55px;padding:0 16px}.main{padding:18px}.page-head{flex-direction:column}.page-head h1{font-size:25px}.launch-grid,.stat-grid,.stat-grid.three{grid-template-columns:1fr 1fr}.local-pill{display:none}}
@media(max-width:470px){.launch-grid,.stat-grid,.stat-grid.three,.form-grid{grid-template-columns:1fr}.card{padding:15px}.main{padding:13px}.search-row{flex-direction:column}.page-head h1{font-size:23px}}
/* Parts Hub 0.2 — dense, legible inline inventory grid */
.main.wide{max-width:none;padding:25px 22px 50px}
.inventory-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;padding:12px 15px;background:#122032;border:1px solid #30445f;border-radius:12px;margin:0 0 15px}
.inventory-tools{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.file-label{font-size:14px;color:#bdcde4;overflow-wrap:anywhere}
.file-label b{color:#e4efff}
.compact-import{position:relative}
.compact-import>summary{list-style:none}
.compact-import>summary::-webkit-details-marker{display:none}
.compact-import-panel{position:absolute;z-index:50;right:0;top:calc(100% + 8px);width:min(455px,calc(100vw - 40px));padding:17px;background:#19263a;border:1px solid #425a7b;border-radius:12px;box-shadow:0 18px 42px #000a}
.import-grid{display:grid;gap:10px}.compact-import-panel .helper{margin:11px 0 0}
.inventory-card{padding:16px 0 0;overflow:visible}
.inventory-card>.card-heading,.inventory-card>.autosave-legend{padding:0 18px}
.inventory-card>.autosave-legend{margin-bottom:14px}
.inventory-scroll{border-radius:0 0 12px 12px;overflow-x:auto}
.inventory-table{min-width:1535px;border-collapse:separate;border-spacing:0;width:100%;table-layout:fixed}
.inventory-table th:nth-child(1){width:42px}.inventory-table th:nth-child(2){width:154px}
.inventory-table th:nth-child(3){width:133px}.inventory-table th:nth-child(4){width:230px}
.inventory-table th:nth-child(5){width:108px}.inventory-table th:nth-child(6){width:115px}
.inventory-table th:nth-child(7){width:123px}.inventory-table th:nth-child(8){width:106px}
.inventory-table th:nth-child(9){width:106px}.inventory-table th:nth-child(10){width:106px}
.inventory-table th:nth-child(11){width:190px}
.inventory-table th{background:#19283c;color:#d0e0f9;padding:13px 8px;text-align:left;font-size:12px;letter-spacing:0;white-space:normal;line-height:1.3;vertical-align:middle}
.inventory-table th.centered,.inventory-table td.centered{text-align:center}
.inventory-table td{padding:7px 6px;border-bottom:1px solid #304057;background:#141e2d;vertical-align:middle}
.inventory-table .row-count{text-align:center;color:#8198b8;font-variant-numeric:tabular-nums}
.inventory-table tbody tr.inventory-data-row:hover td{background:#19273c}
.inventory-table .cell-edit{font-size:15px;font-weight:650;color:#f1f5fb;line-height:1.3;min-height:37px;width:100%;border:1px solid transparent;background:transparent;padding:7px 8px;border-radius:7px;white-space:nowrap;text-overflow:ellipsis}
.inventory-table .cell-edit:hover{background:#142c44;border-color:#3d526d}
.inventory-table .cell-edit:focus{background:#111b2b;border-color:#6091f9;box-shadow:0 0 0 2px #5088ed22;text-overflow:clip}
.inventory-table .cell-edit.sku-edit,.inventory-table .cell-edit.brand-edit{font-size:16px;font-weight:750}
.inventory-table .cell-edit.name-edit{font-size:15.5px;font-weight:700}
.inventory-table .cell-edit.money-edit,.inventory-table .cell-edit.qty-edit{text-align:center;font-variant-numeric:tabular-nums}
.inventory-table .cell-edit.save-error{border-color:#fb7373;background:#48252b}
.inventory-table .row-actions{white-space:normal;line-height:1.6}
.inventory-table .row-actions>.link,.inventory-table .row-actions form .link{font-size:12px;font-weight:650;vertical-align:middle}
.inventory-table .row-actions form{margin-left:7px}
.row-save{font-size:10px;line-height:1.35;min-height:0;color:#8ca5c1;margin-top:2px}
.row-save.saving{color:#ffdf9a}.row-save.saved{color:#75cfa3}.row-save.failed{color:#ff9393}
.inventory-table .read-value{font-size:15px;font-weight:550;white-space:normal;overflow-wrap:anywhere}
.inventory-table .alternative-row td{background:#101b2b;padding:14px 20px}
.inventory-table .alternative-row[hidden]{display:none}
.alt-content{display:grid;gap:13px;color:#bdd0ed}.alt-saved{padding:8px 12px;border:1px solid #31445f;background:#16253a;border-radius:8px}
.alt-add-form{display:flex;gap:9px;align-items:end;flex-wrap:wrap}
.alt-add-form label{display:grid;gap:5px;font-size:11px;color:#b9cee5;min-width:120px;flex:1 1 115px}
.alt-add-form input{min-height:36px;padding:6px 8px;font-size:13px}
.alt-add-form button{height:36px;min-height:36px;margin-bottom:0}
@media(max-width:770px){.main.wide{padding:17px 12px}.inventory-toolbar{align-items:flex-start}.compact-import-panel{right:auto;left:0}.inventory-card{padding-top:12px}}
/* Names have extra room so brands and long part descriptions are readable. */
.inventory-table{min-width:1645px}
.inventory-table th:nth-child(4){width:320px}

/* Parts Hub 0.3 — compact receiving table, actions remain visible on normal desktop widths */
.main.wide{padding-left:14px;padding-right:14px}
.inventory-table{min-width:1088px;width:100%;table-layout:fixed}
.inventory-table th:nth-child(1){width:34px}
.inventory-table th:nth-child(2){width:120px}
.inventory-table th:nth-child(3){width:104px}
.inventory-table th:nth-child(4){width:208px}
.inventory-table th:nth-child(5){width:82px}
.inventory-table th:nth-child(6){width:88px}
.inventory-table th:nth-child(7){width:112px}
.inventory-table th:nth-child(8){width:80px}
.inventory-table th:nth-child(9){width:80px}
.inventory-table th:nth-child(10){width:80px}
.inventory-table th:nth-child(11){width:150px}
.inventory-table th{padding:8px 5px}
.inventory-table td{padding:5px 3px}
.inventory-table .cell-edit{padding:5px 4px}
.inventory-table .row-actions>.link,.inventory-table .row-actions form .link{font-size:11px}
.inventory-table .row-actions form{margin-left:3px}
.inventory-table .row-actions{white-space:normal}
.alt-add-form[hidden]{display:none}
.supplier-panel{display:grid;grid-template-columns:160px minmax(220px,650px);align-items:center;gap:8px 18px;padding:14px 18px}
.supplier-panel h2{margin:0}
.supplier-panel .helper{grid-column:2;margin:0}
.receipt-supplier{width:100%;font-size:15px}
@media(max-width:850px){.supplier-panel{display:block}.supplier-panel .helper{margin-top:10px}}

/* Parts Hub 0.3.1: compact, correctly aligned warehouse with in-row tier prices. */
.stock-card{padding:0;overflow:hidden}
.stock-note{padding:15px 17px 7px;color:#adc1da;font-size:12px;line-height:1.55}
.stock-table-scroll{overflow-x:auto;width:100%}
.stock-table{min-width:980px;width:100%;table-layout:fixed;border-collapse:collapse}
.stock-table th,.stock-table td{padding:10px 9px;text-align:left;vertical-align:middle}
.stock-table th{background:#19283c;color:#d0e0f9;white-space:normal;font-size:12px}
.stock-table th:nth-child(1){width:14%}
.stock-table th:nth-child(2){width:13%}
.stock-table th:nth-child(3){width:22%}
.stock-table th:nth-child(4){width:9%;text-align:center}
.stock-table th:nth-child(5){width:17%}
.stock-table th:nth-child(6),.stock-table th:nth-child(7),.stock-table th:nth-child(8){width:8.333%;text-align:center}
.stock-table tbody tr:hover td{background:#19273c}
.stock-sku,.stock-brand,.stock-name{font-size:14px;font-weight:680;overflow-wrap:anywhere}
.stock-sku a{font-size:15px}.stock-name{line-height:1.4}
.stock-main-tag{font-size:10px;font-weight:500;color:#91acbf}
.stock-number{text-align:center!important;font-weight:700;font-size:15px;font-variant-numeric:tabular-nums}
.stock-cells{font-size:13px;font-weight:600;line-height:1.4;white-space:normal;overflow-wrap:anywhere}
.stock-price-cell{text-align:center!important;padding:6px 5px!important}
.stock-price-wrap{display:block;width:100%;min-width:0}
.stock-price-input{width:100%;min-width:0;height:37px;min-height:37px;padding:5px 4px;
    font-weight:700;font-size:14px;text-align:center;color:#eef5ff;background:#111f31;
    border:1px solid #365072;border-radius:7px;font-variant-numeric:tabular-nums}
.stock-price-input:focus{border-color:#75a4ff;outline:2px solid #75a4ff33}
.stock-price-input.save-error{border-color:#ff8686;background:#42272b}
.stock-price-status{display:block;font-size:10px;line-height:1.2;min-height:12px;color:#87a4c3;white-space:normal}
.stock-price-status.saving{color:#ffdf9a}
.stock-price-status.saved{color:#75cfa3}
.stock-price-status.failed{color:#ff9393}
@media(max-width:950px){.stock-table{min-width:960px}.stock-table th,.stock-table td{padding:9px 6px}}

/* 0.3.2: supplier directory and receipt metadata */
.receipt-meta-panel{display:grid;grid-template-columns:minmax(220px,2fr) minmax(140px,1fr) minmax(210px,1fr);gap:12px;align-items:end}
.receipt-meta-panel label{display:flex;flex-direction:column;gap:8px;font-weight:600}
.receipt-meta-panel .helper{grid-column:1/-1;margin:0}
.supplier-create{display:grid;grid-template-columns:minmax(210px,2fr) minmax(150px,1fr) auto;gap:12px;align-items:end}
.supplier-create label{display:flex;flex-direction:column;gap:6px}
.supplier-edit{display:flex;gap:9px;align-items:center}
.supplier-edit select{min-width:140px}
@media(max-width:1050px){.receipt-meta-panel{grid-template-columns:1fr 1fr}.receipt-meta-panel label:first-child{grid-column:1/-1}}
@media(max-width:680px){.receipt-meta-panel,.supplier-create{display:flex;flex-direction:column;align-items:stretch}}


/* Parts Hub 0.3.2a: aligned receipt lists, no unnecessary wide columns. */
.receipts-list-scroll,.receipts-summary-scroll{width:100%;overflow-x:auto}
.receipts-list-table{width:100%;min-width:730px;table-layout:fixed;border-collapse:collapse}
.receipts-list-table th,.receipts-list-table td{padding:13px 10px;vertical-align:middle;text-align:left;overflow-wrap:anywhere}
.receipts-list-table th:nth-child(1){width:22%}
.receipts-list-table th:nth-child(2){width:25%}
.receipts-list-table th:nth-child(3){width:17%}
.receipts-list-table th:nth-child(4){width:14%}
.receipts-list-table th:nth-child(5){width:9%}
.receipts-list-table th:nth-child(6){width:13%}
.receipts-list-table th:nth-child(5),.receipts-list-table td:nth-child(5){text-align:center}
.receipts-list-table th:nth-child(6),.receipts-list-table td:nth-child(6){text-align:right;font-variant-numeric:tabular-nums}
.receipts-list-table td:nth-child(5){font-variant-numeric:tabular-nums}
.receipts-list-table td a{overflow-wrap:anywhere}
.receipts-summary-table{width:100%;min-width:430px;max-width:760px;table-layout:fixed}
.receipts-summary-table th,.receipts-summary-table td{padding:12px 10px;vertical-align:middle;text-align:left}
.receipts-summary-table th:first-child{width:58%}
.receipts-summary-table th:last-child{width:42%}
.receipts-summary-table th:last-child,.receipts-summary-table td:last-child{text-align:right;font-variant-numeric:tabular-nums}
@media(max-width:900px){.receipts-list-table th,.receipts-list-table td{padding:11px 7px}}


/* Parts Hub 0.3.7: unmistakable order-linked incoming goods. */
.inventory-table tbody tr.inventory-data-row.order-linked > td { background: #fff1d5; border-bottom-color: #e1b36c; }
.inventory-table .order-annotation { margin-top: 4px; }
.inventory-table .order-mark { padding: 6px 8px; border-radius: 7px; border-left: 4px solid #cf850b; background: #ffdfa7; min-width: 180px; max-width: 340px; white-space: normal; line-height: 1.35; color: #603a05; font-size: 12px; }
.inventory-table .order-mark strong { display: block; font-weight: 750; }
.inventory-table .order-mark-details { margin-top: 4px; font-size: 12px; overflow-wrap: anywhere; }
.inventory-table .order-mark a { color: #603a05; font-weight: 650; text-decoration: underline; }
.inventory-card .order-overview { margin: 7px 0 11px; padding: 10px 14px; border: 1px solid #e9ad44; border-radius: 9px; background: #fff1d5; color: #603a05; font-weight: 650; }
/* Part Hub 0.3.7: allocation when several buyers ordered the same SKU. */
.order-mark{max-width:410px!important}
.order-distribute{display:grid;gap:8px;margin-top:9px;padding-top:9px;border-top:1px solid #c18b4b}
.order-distribute label{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:12px}
.order-distribute input{width:74px;min-width:74px;max-width:74px;height:33px;min-height:33px;padding:4px 6px;border:1px solid #b98534;border-radius:5px;color:#412e15;background:#fffdf8;text-align:center}
.order-distribute small{color:#603a05}
.order-distribute button{width:100%;min-width:0;white-space:normal}

/* Full-width reservation alert prevents controls from being squeezed into SKU column. */
.inventory-table tbody tr.inventory-data-row.order-linked > td {color:#442e15;}
.inventory-table tbody tr.inventory-data-row.order-linked .cell-edit {background:#fffbf1!important;color:#262626!important;border:1px solid #d5ae65}
.inventory-table tbody tr.inventory-data-row.order-linked .cell-edit:hover {background:#fff!important}
.inventory-table tbody tr.inventory-data-row.order-linked:hover > td {background:#ffe6b3}
.inventory-table tbody tr.order-alert-row td {background:#fff1d5;padding:6px 14px;border-bottom:2px solid #dbb36a}
.inventory-table tbody tr.order-alert-row[hidden] {display:none}
.inventory-table .order-alert-row .order-mark {max-width:800px!important;min-width:0;}
.inventory-table .order-alert-row .order-distribute {max-width:640px}
.inventory-table .order-alert-row .order-distribute label {font-size:13px}
