/* A shared visual language for the stock desk and the request inbox. */
@media screen {
  :root{--text:#20352f;--text-sub:#748079;--primary:#163e39;--primary-strong:#225449;--line:#e3e8e1;--surface:#fff}
  body{color:var(--text);background:radial-gradient(ellipse at 85% 0,#e7eee4 0,transparent 42%),#f6f7f3;font-family:"Trebuchet MS","Segoe UI",sans-serif}
  .app-shell{max-width:1280px;margin:0 auto;padding:28px 30px 45px}
  .top-bar{position:relative;min-height:49px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:0 0 0 60px;margin:0 0 8px;background:none;border:0;box-shadow:none;color:var(--text)}
  .top-bar::before{content:"E";position:absolute;left:0;top:0;width:44px;height:46px;display:grid;place-items:center;border-radius:14px 14px 14px 3px;background:#163e39;color:#fff;font:700 29px Georgia,serif}
  .top-bar-band{padding:0;background:none;border:0;min-height:0}
  .top-bar-band::before{content:none!important}
  .top-bar h1{font-size:15px;letter-spacing:.045em;font-weight:800;color:var(--text);margin:0 0 5px}
  .top-bar .subtitle{font-size:11px;color:var(--text-sub);margin:0}
  .top-bar .eyebrow,.top-pill,#summary-cards{display:none!important}
  .depot-identity{font-size:12px;background:#e8eee7;color:#315748;border:1px solid #dce6d9;padding:9px 13px;border-radius:30px;white-space:nowrap}
  .host-status{font-size:11px;line-height:1.5;color:var(--text-sub);margin:0 0 28px 60px}
  .app-shell>main{display:grid;grid-template-columns:188px minmax(0,1fr);gap:30px;align-items:start}
  .tab-bar{display:flex;flex-direction:column;gap:7px;padding:3px 0;background:transparent;border:0;box-shadow:none;position:sticky;top:24px}
  .tab-bar .tab-item{position:relative;display:flex;flex-direction:row;justify-content:flex-start;align-items:center;gap:11px;width:100%;min-height:51px;padding:13px 14px;border:0;border-radius:12px;background:transparent;color:#748079;font:700 13px "Trebuchet MS","Segoe UI",sans-serif;box-shadow:none;white-space:nowrap}
  .tab-bar .tab-item svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;flex:none}
  .tab-bar .tab-item:hover{background:#eaf0e6;color:#163e39}
  .tab-bar .tab-item.active,.tab-bar .tab-item.active-subpage{background:#163e39;color:#fff;box-shadow:0 7px 17px #163e3910}
  .tab-bar .tab-item::after{content:none}
  .inbox-count{margin-left:auto;background:#dce8ca;color:#1d4632;border-radius:20px;min-width:21px;padding:3px 5px;font-size:10px;line-height:1;text-align:center}
  .inbox-count[hidden],#warehouse-request-frame[hidden],.warehouse-note[hidden]{display:none}
  .tab-panels{min-width:0}
  .panel{color:var(--text)}
  .card{background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:none}
  .quick-actions{padding:0 0 21px;margin:0;background:none;border:0;box-shadow:none}
  .workspace-title h2{font-size:30px;line-height:1.15;letter-spacing:-1px;margin:0 0 8px;color:#20352f}
  .workspace-title p{font-size:13px;color:#748079;margin:0}
  .btn{min-height:44px;background:#fff;color:#244b40;border:1px solid #dce4da;border-radius:11px;padding:10px 15px;font-family:inherit;font-size:12px;font-weight:700;box-shadow:none}
  .btn:hover{background:#edf2e9;border-color:#b8cbb9}
  .btn-primary,.btn.btn-primary{background:#163e39;color:white;border-color:#163e39}
  .btn-primary:hover{background:#225449}
  input,select,textarea{background:#fff;color:#20352f;border-color:#dfe5dc;border-radius:10px;font-family:inherit}
  input:not([type=checkbox]),select{min-height:44px}
  input:focus,select:focus,textarea:focus{outline:2px solid #a0b990;outline-offset:2px}
  .inventory-search{padding:18px 20px;margin-bottom:12px}
  .inventory-search>label{font-size:11px;font-weight:700;color:#68766b}
  .inventory-search .muted{font-size:11px;line-height:1.6}
  .search-actions{gap:10px}
  .filter-details{padding:12px 20px;background:transparent;margin-bottom:14px}
  .filter-details summary{font-size:12px;color:#536c5d}
  .auto-orders{background:#eef2e8;border-color:#e0e7d9;border-radius:12px}
  .auto-orders summary{color:#4f6b48;font-size:12px}
  .stock-list-card{overflow:hidden;padding:0}
  .stock-list{width:100%;border-collapse:collapse}
  .stock-list th{background:#f0f3ec;color:#71806d;font-size:10px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;padding:12px 17px;border-color:#e3e8e1}
  .stock-list td{padding:12px 17px;border-color:#edf0e9;font-size:12px;color:#20352f}
  .stock-list tbody tr{background:#fff}
  .stock-list tbody tr:hover,.stock-list tbody tr.stock-row-selected{background:#f1f5ec}
  .stock-list td:first-child button{font-size:12px;font-weight:700;color:#244b40;text-align:left}
  .stock-list td:nth-child(2){font-size:17px;font-weight:700;color:#244b40}
  .stock-list .carton-equivalent{display:block;font-size:10px;font-weight:400;color:#7a8675;margin-top:4px}
  .stock-list .btn{min-height:35px;padding:6px 10px;font-size:11px;background:#f0f4ec;border-color:#e1e8da}
  #settings>.card{padding:25px}
  #settings h3{font-size:26px;margin:0 0 10px;letter-spacing:-.5px}
  .settings-actions{gap:10px;margin-top:23px}
  .settings-actions .btn,.settings-actions .tab-item{display:flex;align-items:center;justify-content:flex-start;min-height:57px;padding:16px;background:#f7f9f4;border:1px solid #e2e8de;border-radius:12px;color:#2e5141;font-size:12px;font-weight:700}
  .settings-actions .btn[hidden]{display:none}
  .modal-card{border-radius:20px;background:#fcfdf9;border-color:#e0e7db}
  .host-screen{background:radial-gradient(ellipse at top right,#e2ebd9,transparent 55%),#f6f7f3}
  .host-card{border-color:#dfe8d7;border-radius:20px;color:#20352f}
  body.inbox-open{overflow:hidden}
  .inbox-open .app-shell{height:100dvh;display:flex;flex-direction:column;padding-bottom:18px;box-sizing:border-box}
  .inbox-open .top-bar,.inbox-open .host-status{flex-shrink:0}
  .inbox-open .app-shell>main{flex:1;min-height:0;align-items:stretch}
  .inbox-open .tab-bar{align-self:start}
  .inbox-open .tab-panels{height:100%;min-height:0}
  #requests{height:100%;min-height:0;padding:0;margin:0;background:transparent;border:0;box-shadow:none}
  .warehouse-request-shell{height:100%;min-height:0;display:flex;flex-direction:column}
  #warehouse-request-frame{display:block;width:100%;flex:1;min-height:0;border:0;background:#f6f7f3;border-radius:13px}
  .warehouse-note{font-size:12px;line-height:1.5;padding:12px 15px;border:1px solid #dbe5d5;border-radius:11px;background:#eaf0e3;color:#3b5b36;margin:0 0 10px;flex-shrink:0}
}
@media screen and (max-width:700px){
  .app-shell{padding:18px 14px calc(92px + env(safe-area-inset-bottom))}
  .top-bar{min-height:40px;padding-left:47px;margin-bottom:7px;gap:8px}
  .top-bar::before{width:36px;height:39px;font-size:25px;border-radius:11px 11px 11px 3px}
  .top-bar h1{font-size:12px;letter-spacing:.02em;margin-bottom:4px}
  .top-bar .subtitle{font-size:10px;line-height:1.4}
  .depot-identity{display:none}
  .host-status{font-size:10px;margin:0 0 23px 47px;line-height:1.45}
  .app-shell>main{display:block}
  .tab-bar{position:fixed;inset:auto 0 0;z-index:100;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;padding:0 10px env(safe-area-inset-bottom);background:#fff;border:0;border-top:1px solid #e3e8df;border-radius:0;box-shadow:0 -5px 25px #20352f07}
  .tab-bar .tab-item{display:flex;position:relative;flex-direction:column;justify-content:center;gap:5px;min-height:65px;padding:9px 5px;border-radius:0;font-size:10px;font-weight:700;color:#83907d;white-space:nowrap}
  .tab-bar .tab-item svg{width:21px;height:21px}
  .tab-bar .tab-item.active,.tab-bar .tab-item.active-subpage{background:transparent;color:#163e39;box-shadow:inset 0 3px #163e39}
  .tab-bar .tab-item:hover{background:#f2f6ed}
  .inbox-count{position:absolute;top:7px;left:calc(50% + 8px);margin:0;min-width:17px;padding:3px;font-size:9px}
  .workspace-title h2{font-size:27px}
  .workspace-title p{font-size:12px;line-height:1.5}
  .quick-actions{padding-bottom:18px}
  .quick-actions .actions-grid{gap:8px}
  .btn{min-height:46px;padding:10px 13px}
  .inventory-search{padding:14px;margin-bottom:10px;border-radius:13px}
  .inventory-search .muted{font-size:10px}
  .filter-details{padding:11px 14px;margin-bottom:12px}
  .stock-list-card{border-radius:14px}
  .stock-list tbody tr{grid-template-columns:minmax(0,1fr) 108px 36px;min-height:75px;padding:12px;gap:8px}
  .stock-list td{padding:0}
  .stock-list td:first-child button{font-size:12px;line-height:1.5}
  .stock-list td:nth-child(2){font-size:17px;text-align:right}
  .stock-list td:nth-child(4){padding:0}
  .stock-list .carton-equivalent{font-size:10px}
  .stock-list .btn{min-height:36px;padding:6px}
  #settings>.card{padding:20px 16px}
  #settings h3{font-size:25px}
  .settings-actions{grid-template-columns:1fr;gap:9px;margin-top:20px}
  .settings-actions .btn,.settings-actions .tab-item{min-height:52px;padding:14px}
  .modal-card{border-radius:21px 21px 0 0}
  .inbox-open .app-shell{height:100dvh;padding:15px 12px calc(73px + env(safe-area-inset-bottom))}
  .inbox-open .host-status{margin-bottom:18px}
  .inbox-open .app-shell>main{display:flex;flex-direction:column}
  .inbox-open .tab-panels{flex:1;min-height:0}
  #warehouse-request-frame{border-radius:0}
}
@media print{#requests,#requests-tab,.depot-identity{display:none!important}}
