body{background:#f3f7f4;color:#16333b}.staff-header{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:15px max(20px,calc((100vw - 1160px)/2));background:#fff;border-bottom:1px solid #dce8e1}.staff-header a{display:flex;align-items:center;gap:10px;color:#0754a5;text-decoration:none;font-weight:750}.staff-header a:first-child{color:#153c47}.staff-main{max-width:1160px;margin:auto;padding:26px 20px 80px}.staff-intro h1{font-size:clamp(2rem,5vw,3.5rem);margin:8px 0}.staff-intro p:last-child{max-width:700px;color:#526a70}.staff-panel,.staff-product{background:#fff;border:1px solid #d8e5dc;border-radius:15px;padding:20px;margin:20px 0;box-shadow:0 4px 20px #123a2810}.staff-panel h2,.staff-toolbar h2{margin:0 0 16px}.staff-panel form,.staff-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.staff-panel#login-panel form{max-width:450px;grid-template-columns:1fr}.staff-form label,.staff-panel label,.staff-filters label{display:grid;gap:6px;font-size:.83rem;font-weight:700;color:#32515a}.staff-form label small{font-weight:400;color:#60767d;line-height:1.35}.staff-form input,.staff-form select,.staff-panel input,.staff-panel select,.staff-filters input,.staff-filters select{width:100%;min-height:44px;border:1px solid #b9cbc2;border-radius:8px;padding:9px 11px;font:inherit;color:#16333b;background:#fff}.staff-form input[type=file]{padding:9px;font-size:.82rem}.staff-form .check{display:flex;align-items:center;gap:8px}.check input{width:18px!important;min-height:18px!important}.staff-form button,.staff-panel button,.staff-toolbar button{border:0;background:#0754a5;color:#fff;padding:12px 20px;border-radius:8px;cursor:pointer;font:inherit;font-weight:750}.staff-form button{align-self:end}.staff-toolbar{display:flex;justify-content:space-between;align-items:center;gap:20px}.staff-toolbar p{margin:0;color:#60767d}.staff-toolbar button{background:#53666c}.staff-filters{display:grid;grid-template-columns:1fr 280px;gap:15px;margin:20px 0}.staff-product{display:grid;grid-template-columns:90px 1fr;gap:18px}.staff-product>img{width:90px;height:90px;object-fit:contain}.staff-product h3{margin:0 0 6px}.staff-product .staff-form{margin-top:14px}.staff-product .staff-form button{grid-column:3}.staff-product .staff-status{font-size:.82rem;color:#5d757b}#staff-message{position:sticky;bottom:10px;background:#e7f5ec;color:#17643e;padding:10px 15px;border-radius:8px;max-width:max-content}#staff-message:empty{display:none}.staff-error{background:#ffe9e6!important;color:#9c241b!important}@media(max-width:750px){.staff-panel form,.staff-form,.staff-filters{grid-template-columns:1fr 1fr}.staff-product .staff-form button{grid-column:auto}}@media(max-width:530px){.staff-header{padding:10px 16px}.staff-header strong{font-size:.78rem}.staff-main{padding:20px 14px 60px}.staff-product{grid-template-columns:1fr}.staff-product>img{width:120px;height:120px}.staff-panel form,.staff-form,.staff-filters{grid-template-columns:1fr}.staff-product .staff-form button{grid-column:auto}}

/* Warehouse overview: dense on desktop, readable cards on narrow screens. */
.warehouse-toolbar{display:flex;align-items:end;justify-content:space-between;flex-wrap:wrap;gap:12px;margin:28px 0 14px}
.warehouse-toolbar h2{margin:0}
.warehouse-toolbar p{margin:4px 0 0;color:#526a70}
.warehouse-toolbar button,.warehouse-actions button,.warehouse-pagination button{border:0;border-radius:8px;background:#0754a5;color:#fff;padding:10px 14px;min-height:42px;font:inherit;font-weight:750;cursor:pointer}
.warehouse-toolbar button:disabled,.warehouse-actions button:disabled,.warehouse-pagination button:disabled{cursor:not-allowed;opacity:.55}
.warehouse-toolbar button:hover:not(:disabled),.warehouse-actions button:hover:not(:disabled),.warehouse-pagination button:hover:not(:disabled){background:#064586}
.warehouse-toolbar button:focus-visible,.warehouse-actions button:focus-visible,.warehouse-pagination button:focus-visible,.warehouse-filters :focus-visible,.warehouse-table :focus-visible,.warehouse-detail :focus-visible{outline:3px solid #e6a53b;outline-offset:2px}
.warehouse-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr));gap:12px;padding:15px;margin:0 0 12px;background:#fff;border:1px solid #d8e5dc;border-radius:14px}
.warehouse-filters label{display:grid;align-content:start;gap:6px;min-width:0;font-size:.81rem;font-weight:750;color:#32515a}
.warehouse-filters input,.warehouse-filters select{width:100%;min-width:0;min-height:42px;padding:8px 10px;border:1px solid #b9cbc2;border-radius:8px;background:#fff;color:#16333b;font:inherit}
.warehouse-summary{display:flex;flex-wrap:wrap;gap:8px 16px;margin:0 0 12px;color:#526a70;font-size:.88rem}
.warehouse-summary strong{color:#16333b}
.warehouse-table-wrap{max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;background:#fff;border:1px solid #d8e5dc;border-radius:14px;box-shadow:0 4px 20px #123a2810}
.warehouse-table{width:100%;min-width:1120px;border-collapse:separate;border-spacing:0;table-layout:auto;color:#16333b}
.warehouse-table th,.warehouse-table td{padding:10px 9px;border-bottom:1px solid #e5eee8;text-align:left;vertical-align:middle}
.warehouse-table th{position:sticky;top:0;z-index:1;background:#eaf3ed;color:#32515a;font-size:.77rem;line-height:1.25;font-weight:800;white-space:nowrap}
.warehouse-table tbody tr:last-child td{border-bottom:0}
.warehouse-table tbody tr:hover td{background:#f7faf8}
.warehouse-table td{font-size:.84rem;line-height:1.4}
.warehouse-table td input:not([type=checkbox]),.warehouse-table td select{display:block;width:100%;min-width:76px;min-height:40px;padding:7px 9px;border:1px solid #b9cbc2;border-radius:7px;background:#fff;color:#16333b;font:inherit}
.warehouse-table td input[type=number]{min-width:82px;font-variant-numeric:tabular-nums}
.warehouse-table td input[type=checkbox]{width:20px;height:20px;accent-color:#0754a5;cursor:pointer}
.warehouse-table td input:disabled,.warehouse-table td select:disabled{opacity:.6}
.warehouse-table td small{display:block;color:#60767d;line-height:1.3}
.warehouse-photo{display:block;width:52px;height:52px;max-width:100%;object-fit:contain;background:#f4f7f4;border-radius:6px}
.warehouse-actions{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-width:120px}
.warehouse-actions button{min-height:38px;padding:7px 10px;font-size:.78rem}
.warehouse-actions button[type=button]:not(:first-child){background:#e9f1ee;color:#254853}
.warehouse-actions button[type=button]:not(:first-child):hover{background:#d8e8e1}
.warehouse-status{display:block;min-height:1em;color:#526a70;font-size:.77rem;font-weight:700;line-height:1.3}
.warehouse-issue{margin:4px 0 0;color:#a12c25;font-size:.76rem;font-weight:700;line-height:1.35}
.warehouse-row.is-dirty td{background:#fff8e2}
.warehouse-row.is-dirty:hover td{background:#fff3ca}
.warehouse-row.is-dirty td:first-child{box-shadow:inset 4px 0 #d99418}
.warehouse-row.is-dirty .warehouse-status{color:#8a5700}
.warehouse-row.is-saving td{background:#e9f3fb}
.warehouse-row.is-saving .warehouse-status{color:#0754a5}
.warehouse-row.has-error td{background:#fff0ed}
.warehouse-row.has-error td:first-child{box-shadow:inset 4px 0 #c94034}
.warehouse-row.has-error .warehouse-status{color:#a12c25}
.warehouse-pagination{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:12px;margin:18px 0 26px}
.warehouse-pagination button{background:#e9f1ee;color:#254853}
.warehouse-pagination button:hover:not(:disabled){background:#d8e8e1}
.warehouse-pagination span{min-width:100px;text-align:center;color:#32515a;font-size:.86rem;font-variant-numeric:tabular-nums}
.warehouse-detail{scroll-margin-top:20px}
.warehouse-detail-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.warehouse-detail-heading h2{margin:0}
.warehouse-detail-heading button{border:0;border-radius:8px;background:#e9f1ee;color:#254853;padding:8px 12px;min-height:40px;font:inherit;font-weight:750;cursor:pointer}
.warehouse-detail-heading button:hover{background:#d8e8e1}
.warehouse-detail-preview{margin:0 0 16px}
.warehouse-detail-preview img{display:block;width:120px;height:120px;max-width:100%;object-fit:contain;background:#f4f7f4;border-radius:8px}

@media(max-width:760px){
 .warehouse-toolbar{align-items:stretch}
 .warehouse-toolbar>div:last-child{display:flex;flex-wrap:wrap;gap:8px}
 .warehouse-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .warehouse-table-wrap{overflow:visible;background:transparent;border:0;border-radius:0;box-shadow:none}
 .warehouse-table{display:block;min-width:0;width:100%}
 .warehouse-table thead{display:none}
 .warehouse-table tbody{display:grid;gap:12px}
 .warehouse-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 12px;padding:14px;background:#fff;border:1px solid #d8e5dc;border-radius:13px;box-shadow:0 3px 14px #123a2810}
 .warehouse-row.is-dirty{border-color:#e3bb59;background:#fff9e9}
 .warehouse-row.is-saving{border-color:#82b7dc;background:#f0f8ff}
 .warehouse-row.has-error{border-color:#dc8c82;background:#fff3f0}
 .warehouse-row>td,.warehouse-row.is-dirty>td,.warehouse-row.is-saving>td,.warehouse-row.has-error>td{display:flex;flex-direction:column;align-items:stretch;min-width:0;padding:7px 0;border:0;background:transparent;box-shadow:none}
 .warehouse-row>td::before{content:attr(data-label);display:block;margin:0 0 5px;color:#526a70;font-size:.71rem;font-weight:800;line-height:1.3}
 .warehouse-row>td[data-label=""]::before{display:none}
 .warehouse-row>td:first-child{grid-column:1;grid-row:1}
 .warehouse-row>td:nth-child(2){grid-column:2;grid-row:1}
 .warehouse-row>td:last-child{grid-column:1/-1}
 .warehouse-table td input:not([type=checkbox]),.warehouse-table td select{min-width:0;width:100%;min-height:42px}
 .warehouse-table td input[type=checkbox]{margin:8px 0;align-self:flex-start}
 .warehouse-photo{width:68px;height:68px}
 .warehouse-actions{min-width:0}
 .warehouse-actions button{flex:1 1 110px;min-height:42px}
 .warehouse-status{margin-top:5px}
 .warehouse-detail .staff-form{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:430px){
 .warehouse-filters{grid-template-columns:minmax(0,1fr)}
 .warehouse-row{gap:2px 10px;padding:12px}
 .warehouse-photo{width:58px;height:58px}
 .warehouse-toolbar>div:last-child button{flex:1 1 120px}
 .warehouse-detail .staff-form{grid-template-columns:minmax(0,1fr)}
}
.warehouse-table th:nth-child(1),.warehouse-table td:nth-child(1){width:68px}
.warehouse-table th:nth-child(2),.warehouse-table td:nth-child(2){min-width:240px}
.warehouse-table th:nth-child(3),.warehouse-table td:nth-child(3){min-width:135px}
.warehouse-table th:nth-child(4),.warehouse-table td:nth-child(4){min-width:92px}
.warehouse-table th:nth-child(5),.warehouse-table td:nth-child(5),.warehouse-table th:nth-child(6),.warehouse-table td:nth-child(6){min-width:112px}
.warehouse-table th:nth-child(7),.warehouse-table td:nth-child(7){min-width:74px}
.warehouse-table th:nth-child(8),.warehouse-table td:nth-child(8){min-width:178px}
.new-product>summary{cursor:pointer;font-size:1.13rem;font-weight:800;line-height:1.4;color:#16333b}
.new-product[open]>summary{margin-bottom:16px}
@media(max-width:760px){
 .warehouse-table th:nth-child(n),.warehouse-table td:nth-child(n){width:auto;min-width:0}
}
@media(min-width:761px){
 .warehouse-table-wrap{max-height:min(72vh,760px);overflow:auto}
 .warehouse-table th{position:sticky;top:0;z-index:2}
}
@media(max-width:760px){
 .warehouse-table-wrap{max-height:none}
 .warehouse-table td{overflow-wrap:anywhere}
}
.warehouse-toolbar-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.warehouse-toolbar #warehouse-refresh{background:#e9f1ee;color:#254853}
.warehouse-toolbar #warehouse-refresh:hover:not(:disabled){background:#d8e8e1}
.warehouse-toolbar #logout{background:#53666c}
.warehouse-toolbar #logout:hover:not(:disabled){background:#3e5359}
#warehouse-dirty-count:not(:empty){font-weight:750}
.warehouse-row.is-saved td{background:#eff9f1}
.warehouse-row.is-saved .warehouse-status{color:#17643e}
.warehouse-table-wrap:focus-visible,.new-product>summary:focus-visible{outline:3px solid #e6a53b;outline-offset:2px}
.warehouse-published{display:flex;align-items:center;gap:6px;font-size:.78rem;white-space:nowrap}
.warehouse-actions .warehouse-status{flex:1 0 100%}
@media(max-width:760px){
 .warehouse-row.is-saved{border-color:#91c59d;background:#f4fbf5}
 .warehouse-row.is-saved>td{background:transparent}
}
@media(max-width:760px){
 .warehouse-table tbody>tr:not(.warehouse-row){display:block;padding:16px;background:#fff;border:1px solid #d8e5dc;border-radius:13px}
 .warehouse-table tbody>tr:not(.warehouse-row)>td{display:block;padding:0;border:0;white-space:normal}
}
