.stock-shell { min-height:100vh; background:#f1f4f7; color:#16252e; font-family:Inter,system-ui,sans-serif; }
body { margin:0; background:#f1f4f7; font-family:system-ui,sans-serif; color:#16252e; }
.login-page { max-width:24rem; margin:12vh auto; padding:26px; background:#fff; border:1px solid #d2dce3; border-radius:12px; }
.brand { font-weight:800; letter-spacing:.08em; }
.login-form,.login-form label { display:grid; gap:.65rem; }
.login-form input,.login-form button { font:inherit; padding:.6rem .75rem; border:1px solid #aabcc6; border-radius:6px; }
.login-form button { margin-top:.5rem; color:#fff; background:#125e66; cursor:pointer; }
.stock-shell button,.stock-shell input,.stock-shell select { font:inherit; }
.stock-shell button { cursor:pointer; }
.stock-shell button:disabled { cursor:default; opacity:.5; }
.stock-top { display:flex; align-items:center; justify-content:space-between; padding:18px clamp(18px,4vw,64px); background:#14242e; color:#fff; gap:16px; flex-wrap:wrap; }
.stock-brand { display:flex; align-items:center; gap:12px; }
.stock-brand b { font-size:1.3rem; letter-spacing:.08em; }
.stock-brand span { color:#a7c6d2; font-size:.8rem; letter-spacing:.12em; }
.stock-top nav,.stock-row-actions { display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.stock-top a { color:#e4eef5; }
.stock-top button { border:1px solid #80939d; background:transparent; color:white; border-radius:7px; padding:6px 11px; }
.stock-role { color:#c6dce4; font-size:.875rem; }
.stock-content { max-width:1510px; margin:auto; padding:38px clamp(16px,4vw,64px) 60px; }
.stock-title h1 { display:flex; flex-wrap:wrap; align-items:center; gap:6px 16px; font-size:clamp(2rem,5vw,2.8rem); margin:0 0 8px; letter-spacing:-.05em; }
.stock-city { background:#12545c; color:#fff; border-radius:8px; padding:6px 12px; font-size:clamp(1.125rem,2.5vw,1.5rem); font-weight:700; letter-spacing:0; line-height:1.2; }
.stock-title p { margin:0 0 24px; color:#495d69; }
.stock-locations { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-bottom:18px; }
.stock-locations button { display:grid; text-align:left; gap:4px; padding:14px; background:white; color:#14242e; border:1px solid #cdd7df; border-radius:10px; }
.stock-locations button[aria-pressed=true] { border-color:#125e66; background:#e4f3f2; box-shadow:inset 0 -3px #125e66; }
.stock-locations button strong { font-size:1.125rem; }
.stock-locations button[aria-pressed=true] strong { color:#12545c; }
.stock-locations button span { color:#415963; font-size:.875rem; }
.stock-store-update { color:#415963; font-size:.875rem; }
.stock-store-update-line { margin:0 0 18px; }
.stock-panel { background:white; border:1px solid #d2dce3; border-radius:12px; overflow:hidden; }
.stock-controls,.stock-editor-fields { display:flex; align-items:end; gap:14px; flex-wrap:wrap; }
.stock-controls { padding:16px; }
.stock-controls label,.stock-editor label { display:grid; gap:5px; font-size:.9rem; font-weight:600; }
.stock-controls label:first-child { flex:1 1 210px; max-width:390px; }
.stock-controls p { margin:0 0 8px auto; font-size:.875rem; color:#435861; }
.stock-controls input,.stock-controls select,.stock-editor input,.stock-editor select { min-width:0; padding:8px 10px; border-radius:7px; border:1px solid #aabcc6; background:#fff; color:#16252e; }
.stock-editor { background:#edf7f7; border-block:1px solid #c9dfdf; padding:16px; }
.stock-editor h2 { font-size:1.12rem; margin:0; }
.stock-editor p { margin:6px 0 12px; }
.stock-editor input[type=number] { width:115px; }
.stock-panel button { padding:6px 10px; border:1px solid #b5c6d0; border-radius:6px; background:white; color:#143849; }
.stock-panel .stock-primary { background:#125e66; color:white; border-color:#125e66; }
.stock-scroll { overflow:auto; }
.stock-panel .stock-table { width:100%; border-collapse:collapse; margin:0; font-size:.9rem; }
.stock-table th,.stock-table td { text-align:left; border-bottom:1px solid #e0e7eb; padding:11px 13px; }
.stock-table th { white-space:nowrap; background:#e9eff3; color:#304956; }
.stock-table td:first-child { min-width:210px; }
.stock-table small { display:block; color:#4e626c; margin-top:3px; font-size:.8rem; }
.stock-sku { white-space:nowrap; font-variant-numeric:tabular-nums; }
.stock-quantity-control { display:inline-flex; align-items:stretch; border:1px solid #aabdc6; border-radius:8px; background:#fff; }
.stock-panel .stock-quantity-control button { width:2.5rem; min-height:2.5rem; padding:0; border:0; border-radius:7px 0 0 7px; background:#e8f2f3; color:#125e66; font-size:1.25rem; font-weight:700; }
.stock-panel .stock-quantity-control button:last-child { border-radius:0 7px 7px 0; }
.stock-panel .stock-quantity-control button:hover:not(:disabled) { background:#d3e8e9; }
.stock-quantity-control :is(button,input):focus-visible { outline:2px solid #125e66; outline-offset:-2px; position:relative; }
.stock-inline-quantity { width:3.75rem; box-sizing:border-box; padding:5px; border:0; border-inline:1px solid #c9d6db; border-radius:0; text-align:center; color:inherit; background:#fff; appearance:textfield; }
.stock-inline-quantity::-webkit-inner-spin-button,.stock-inline-quantity::-webkit-outer-spin-button { appearance:none; margin:0; }
@media (pointer:coarse) { .stock-panel .stock-quantity-control button { width:2.75rem; min-height:2.75rem; } }
.stock-unknown { color:#526674; }
.stock-available { display:inline-grid; place-items:center; min-width:3.25rem; min-height:2rem; box-sizing:border-box; border-radius:8px; padding:4px 12px; font-size:1rem; font-weight:750; font-variant-numeric:tabular-nums; }
.stock-good { background:#d3efdf; color:#174f33; }
.stock-low { background:#fbe0e1; color:#86252b; }
.stock-zero { background:#8f252b; color:#fff; }
.stock-pagination { padding:12px 16px; display:flex; justify-content:space-between; align-items:center; gap:8px; flex-wrap:wrap; }
.stock-pagination div { display:flex; gap:7px; }
.stock-notice { padding:0 16px; color:#165553; }
.stock-error { color:#9d2128; }
.stock-panel button.stock-delete { color:#8f252b; border-color:#e1afb1; }
.stock-panel button.stock-delete:hover:not(:disabled) { background:#fbe0e1; }
.stock-table small.stock-shortage { color:#9d2128; font-weight:600; }
.stock-mobile-label { display:none; }
@media (max-width:720px) {
  .stock-product-list { overflow:visible; background:#edf2f6; padding:0 8px; }
  .stock-product-table,.stock-product-table tbody { display:block; }
  .stock-product-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
  .stock-product-table tbody tr { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin-bottom:8px; padding:12px; border:1px solid #d7e2e9; border-radius:10px; background:white; }
  .stock-product-table td,.stock-product-table td:first-child { min-width:0; border:0; padding:0; overflow-wrap:anywhere; }
  .stock-product-name,.stock-product-actions { grid-column:1/-1; }
  .stock-product-table td.stock-sku { white-space:normal; color:#435861; }
  .stock-product-category { grid-column:2/-1; color:#435861; }
  .stock-product-table td.stock-product-available,.stock-product-table td.stock-product-count { padding-top:6px; border-top:1px solid #e0e7eb; }
  .stock-mobile-label { display:block; color:#435861; font-size:.8rem; font-weight:650; margin-bottom:5px; }
  .stock-product-count { font-weight:650; }
  .stock-product-actions button { min-height:2.5rem; }
  .stock-product-table tbody tr.stock-product-editing { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .stock-product-editing .stock-product-available { grid-column:1/-1; }
  .stock-product-editing .stock-quantity-control { display:flex; width:100%; max-width:10rem; box-sizing:border-box; }
  .stock-panel .stock-product-editing .stock-quantity-control button { flex:0 0 2.35rem; min-height:2.75rem; }
  .stock-product-editing .stock-inline-quantity { flex:1 1 0; width:0; min-width:0; }
}
@media (max-width:520px) { .stock-locations { grid-template-columns:repeat(2,minmax(0,1fr)); } .stock-locations button { padding:8px; } .stock-content { padding-top:22px; } }
