:root{--ivory:#eaeaea;--red:#c92732;--text:#25262b;--muted:#777b85;--line:#e7e7e9;--white:#fff;--shadow:0 12px 28px #2429380d,0 2px 8px #24293808}*{box-sizing:border-box}html{font-family:Inter,ui-sans-serif,system-ui,-apple-system,'Segoe UI',Arial,sans-serif;font-size:14px}body{margin:0;color:var(--text);background:var(--ivory)}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.6;cursor:wait}.shell{display:grid;grid-template-columns:240px minmax(0,1fr);min-height:100vh}.sidebar{background:linear-gradient(175deg,#fff 10%,#f6f4f4 74%,#ffe8e8);border-right:1px solid #dfdfe2;padding:27px 15px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:10px;padding:0 7px 32px}.brand-icon{font-size:45px;line-height:1;color:#d01d2a}.brand b{display:block;font-size:17px;letter-spacing:-.6px}.brand small{font-size:11px;color:#777;display:block;margin-top:4px}.nav{display:grid;gap:7px}.nav button{display:flex;gap:12px;align-items:center;background:none;border:0;padding:15px 14px;border-radius:14px;font-size:14px;font-weight:550;text-align:left;color:#3b3d43}.nav button span{font-size:24px;line-height:14px;width:24px;text-align:center}.nav button:hover{background:#fff0f0}.nav button.active{background:linear-gradient(110deg,#ffe9e9,#f8d8da);color:#bd1d28;font-weight:750;border-left:4px solid #db2530;padding-left:10px}.sidebar-bottom{margin-top:auto;text-align:center;color:#83504c}.sidebar-art{height:95px;font-size:30px;display:flex;align-items:center;justify-content:center;gap:20px;color:#ee6870}.sidebar-art span{font-size:65px}.sidebar-bottom p{font-weight:650}.sidebar-bottom small{color:#8d8a91}.main{padding:28px clamp(20px,3.4vw,52px) 65px;min-width:0}.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:30px;gap:10px}.topbar h1{font-size:28px;margin:2px 0 3px;letter-spacing:-1px}.topbar p{color:var(--muted);margin:0}.eyebrow{font-size:10px;letter-spacing:2px;color:#ba4d53;font-weight:800}.user-panel{display:flex;align-items:center;gap:11px;background:#fff;padding:9px 12px 9px 16px;border-radius:26px;box-shadow:var(--shadow);font-weight:650;white-space:nowrap}.status-dot{width:9px;height:9px;background:#2cc168;border-radius:50%}.icon-button{border:0;background:#f8e5e7;color:#b0202b;border-radius:50%;height:31px;width:31px;font-size:18px}.view{display:none}.view.active{display:block}.panel{background:#fff;border:1px solid #e7e6e8;border-radius:20px;box-shadow:var(--shadow)}.hero{padding:24px 26px 10px}.section-title{display:flex;align-items:flex-start;gap:16px;margin-bottom:10px}.red-symbol{color:var(--red);font-weight:800;font-size:27px;line-height:32px}.section-title h2{font-size:20px;margin:0 0 3px;letter-spacing:-.5px}.section-title p{margin:0;color:var(--muted)}.hero-flow{display:grid;grid-template-columns:minmax(200px,1fr) 42px minmax(200px,1.12fr) 42px minmax(200px,1fr);align-items:center;gap:7px;min-height:225px}.hero-action{border:0;border-radius:18px;display:flex;align-items:center;gap:13px;padding:25px 18px;min-height:113px;color:#fff;box-shadow:0 10px 22px #0002;text-align:left;transition:transform .2s,box-shadow .2s}.hero-action:hover{transform:translateY(-3px);box-shadow:0 14px 25px #0003}.hero-action.green{background:linear-gradient(165deg,#75e74c 0%,#19ad35 43%,#02742f 100%)}.hero-action.blue{background:linear-gradient(150deg,#45c9ff,#147fef 47%,#0753bd)}.hero-emoji{font-size:34px}.hero-action strong{display:block;font-size:22px;letter-spacing:-.5px}.hero-action small{font-size:11px;display:block;margin-top:6px;opacity:.9}.circle-arrow{margin-left:auto;font-size:19px;border-radius:50%;height:34px;width:34px;display:grid;place-items:center;background:#ffffff35}.arrow{text-align:center;font-size:38px}.green-arrow{color:#39b337}.blue-arrow{color:#1e86df}.warehouse svg{display:block;width:100%;max-height:225px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:17px;margin:20px 0}.stat{padding:22px 24px}.stat span,.stat small{color:#858895;display:block}.stat span{font-weight:700;font-size:12px}.stat strong{display:block;font-size:34px;margin:6px 0 2px;letter-spacing:-1px}.stat small{font-size:11px}.preview{padding:23px 25px}.quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:20px}.quick{display:flex;align-items:center;text-align:left;gap:16px;background:#fafafa;border:1px solid #eee;border-radius:15px;padding:17px;color:var(--text)}.quick:hover{background:#fff5f5;border-color:#fad4d6}.quick-icon{border-radius:13px;padding:17px;font-size:25px}.green-bg{background:#dff6e3}.blue-bg{background:#e1f0ff}.quick b,.quick small{display:block}.quick b{font-size:15px}.quick small{color:#858895;font-size:12px;margin-top:5px}.quick>span:last-child{margin-left:auto;font-size:23px;color:#a0a0aa}.form-panel{padding:25px;margin-bottom:20px}.form-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:24px;margin:24px 0}.grid-two,.grid-three{display:grid;gap:15px;margin:15px 0}.grid-two{grid-template-columns:1fr 1fr}.grid-three{grid-template-columns:2fr 1fr 1fr}label:not(.upload-box):not(.location-option){display:block;font-size:12px;font-weight:750;color:#555963;margin-bottom:8px}input:not([type=radio]):not([type=file]),select,textarea{width:100%;min-width:0;padding:12px 13px;border:1px solid #dedee3;border-radius:11px;background:#fff;outline:none;color:#292b32}input:focus,select:focus,textarea:focus{border-color:#d64148;box-shadow:0 0 0 3px #ec565618}input[type=number]{max-width:130px}.location-options{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:17px}.location-option{cursor:pointer;display:grid;place-items:center;gap:7px;padding:19px;border:2px solid #e3e4e6;background:#fafafa;border-radius:15px;text-align:center}.location-option input{position:absolute;opacity:0;pointer-events:none}.location-option span{font-size:28px}.location-option.selected{background:#f0fbf0;border-color:#32b853}.upload-box{border:2px dashed #cfd0d6;min-height:220px;border-radius:15px;background:#fcfcfd;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:7px;cursor:pointer;padding:16px;text-align:center}.upload-box input{display:none}.upload-symbol{font-size:36px;color:var(--red)}.upload-box small{color:#858895}.upload-button{border-radius:20px;padding:8px 17px;background:#fff0f1;color:#c62230;border:1px solid #ffd3d4;font-weight:700;margin-top:6px}.photo-preview{display:block;max-height:140px;max-width:100%;object-fit:contain;margin-top:8px;border-radius:8px}.photo-preview[hidden]{display:none}.soft-button{border:1px solid #fad1d5;border-radius:11px;padding:10px 14px;color:#c3242e;background:linear-gradient(115deg,#fff4f4,#ffe5e7);font-weight:750}.upload-box+.soft-button{width:100%;margin-top:10px}.ocr-panel{background:#f7f9fb;border:1px solid #e2e7eb;border-radius:15px;padding:15px}.ocr-panel small{display:block;color:#777}.ocr-panel pre{font-size:12px;white-space:pre-wrap;max-height:260px;overflow:auto;background:#fff;padding:10px;border-radius:9px}.items-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:25px 0 12px}.items-heading h3,.history-grid h3{margin:0;font-size:17px}.items-heading p{margin:5px 0;color:#8c8d97;font-size:12px}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left}td,th{padding:13px 12px;border-bottom:1px solid #eee}th{font-size:12px;color:#6c7078;background:#f7f7f8;white-space:nowrap}td{font-size:13px}.entry-table input,.entry-table select{padding:10px!important}.entry-table td:first-child{min-width:220px}.entry-table td:nth-child(3){min-width:110px}.product-field{position:relative}.suggestions{position:absolute;z-index:10;background:white;border:1px solid #ddd;border-radius:10px;box-shadow:var(--shadow);width:100%;max-height:175px;overflow:auto;top:43px}.suggestions button{display:block;width:100%;padding:10px;border:0;background:white;text-align:left}.suggestions button:hover{background:#fff1f1}.delete-row{color:#ba2831;border:0;background:#ffeff0;border-radius:9px;padding:10px}.computed{font-weight:750;color:#2f8052;white-space:nowrap}.form-actions{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:24px;padding-top:16px;border-top:1px solid #eee}.hint{font-size:12px;color:#858895}.primary-red,.primary-green,.primary-blue{padding:13px 19px;border:0;border-radius:12px;color:white;font-weight:800;box-shadow:0 5px 15px #0001}.primary-red{background:linear-gradient(125deg,#fb565c,#d41b2a 65%,#b31222)}.primary-green{background:linear-gradient(125deg,#51d368,#168f41)}.primary-blue{background:linear-gradient(125deg,#3cb1f4,#1166d2)}.draft-panel{padding:24px}.draft-panel h3{margin-top:0}.draft-panel p{color:#888}.draft-panel button{margin-top:15px}.info-note{background:#fff3e4;color:#95642e;padding:12px;border-radius:11px;font-size:12px}.product-cta{align-self:end}.history-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.history-grid h3{margin:14px 0}.history-card{padding:12px;border:1px solid #e8e9ec;border-radius:12px;margin:8px 0;background:#fcfcfd}.history-card strong{display:block}.history-card small{display:block;color:#888;margin-top:4px}.history-card span{display:block;margin-top:5px;color:#777}.pill{display:inline-block;padding:4px 9px;background:#e5f7eb;border-radius:30px;color:#177e42;font-weight:800;font-size:11px}.pill.draft{background:#fff1d9;color:#b47718}.login-screen{position:fixed;inset:0;background:#eaeaeaf5;z-index:100;display:grid;place-items:center;padding:20px}.login-screen[hidden]{display:none}.login-card{max-width:420px;width:100%;border-radius:25px;background:#fff;padding:35px;box-shadow:0 30px 70px #141b2630}.login-logo{font-size:70px;text-align:center;color:#d41c2a}.login-card h2{text-align:center;margin:0}.login-card p{text-align:center;color:#888;margin:9px 0 30px}.login-card button{width:100%;margin-top:15px}.login-card small{color:#be1c29;display:block;margin-top:10px}.toast{position:fixed;right:24px;bottom:24px;z-index:200;background:#25252a;color:#fff;border-radius:13px;padding:13px 18px;box-shadow:0 10px 30px #0004;opacity:0;transform:translateY(12px);pointer-events:none;transition:.2s}.toast.show{opacity:1;transform:translateY(0)}@media(max-width:1250px){.hero-flow{grid-template-columns:1fr 30px 1fr 30px 1fr}.hero-action{padding:17px 12px}.hero-action strong{font-size:17px}.hero-emoji{font-size:23px}.circle-arrow{display:none}}@media(max-width:960px){.shell{grid-template-columns:75px minmax(0,1fr)}.sidebar{padding:16px 6px}.brand{justify-content:center;padding:0 0 26px}.brand b,.brand small,.nav button{font-size:0}.nav button{justify-content:center;padding:15px 4px}.nav button.active{padding-left:0;border-left:0}.nav button span{font-size:25px}.sidebar-bottom{display:none}.main{padding:23px}.hero-flow{grid-template-columns:1fr 1fr;gap:13px}.hero-action{min-height:95px}.warehouse{grid-column:1/-1;grid-row:1;max-width:250px;justify-self:center}.arrow{display:none}.form-grid{grid-template-columns:1fr}}@media(max-width:650px){.shell{display:block}.sidebar{height:auto;position:static;padding:12px;display:block}.brand{padding:0;justify-content:start}.brand b,.brand small{font-size:13px}.nav{display:flex;overflow:auto;margin-top:10px}.nav button{font-size:11px;white-space:nowrap;padding:11px}.nav button span{font-size:14px;width:auto}.main{padding:17px}.topbar h1{font-size:22px}.user-panel{font-size:11px}.hero-flow{grid-template-columns:1fr 1fr}.hero-action{flex-direction:column;text-align:center;gap:4px}.hero-action strong{font-size:16px}.hero-action small{font-size:10px}.stats{grid-template-columns:1fr}.quick-grid,.history-grid,.grid-two,.grid-three{grid-template-columns:1fr}.form-actions{flex-direction:column;align-items:stretch}.location-options{grid-template-columns:1fr 1fr}.items-heading{align-items:start;flex-direction:column}}

.esb-panel{border-color:#f0cfd2}.esb-panel .table-wrap{margin:16px 0;max-height:280px;overflow:auto}.esb-panel .table-wrap th,.esb-panel .table-wrap td{min-width:115px;white-space:nowrap}.esb-panel .info-note{margin:16px 0}.esb-results{margin-top:18px;background:#edfaef;border:1px solid #a4d4b0;padding:15px;border-radius:11px;color:#24552c;white-space:pre-wrap}.esb-panel .grid-three select{min-width:0}#products-table small{font-size:11px;color:#888}.grid-two .grid-two{margin:4px 0 9px}


/* KT INVENTORY AI — fluid receiving/transfer forms; no JS/DOM ids changed */
.fluid-transaction-view,
.fluid-transaction-panel,
.fluid-transaction-panel form {
  height: auto !important;
  max-height: none !important;
  min-height: 0;
  overflow: visible !important;
}
.fluid-transaction-panel {
  display: block;
  padding-bottom: 34px;
}
.fluid-transaction-panel .form-grid,
.fluid-transaction-panel .items-heading {
  min-width: 0;
}
/* Give autocomplete options space without clipping in horizontal table scroll. */
.fluid-entry-wrap {
  position: relative;
  width: 100%;
  min-height: 265px;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  padding-bottom: 120px;
}
.fluid-entry-wrap .entry-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}
.fluid-entry-wrap .entry-table th:nth-child(1),
.fluid-entry-wrap .entry-table td:nth-child(1) {width: 33%; min-width: 0;}
.fluid-entry-wrap .entry-table th:nth-child(2),
.fluid-entry-wrap .entry-table td:nth-child(2) {width: 13%; min-width: 0;}
.fluid-entry-wrap .entry-table th:nth-child(3),
.fluid-entry-wrap .entry-table td:nth-child(3) {width: 22%; min-width: 0;}
.fluid-entry-wrap .entry-table th:nth-child(4),
.fluid-entry-wrap .entry-table td:nth-child(4) {width: 25%; min-width: 0;}
.fluid-entry-wrap .entry-table th:nth-child(5),
.fluid-entry-wrap .entry-table td:nth-child(5) {width: 7%; min-width: 0; text-align: center;}
.fluid-entry-wrap .entry-table td {position: relative; height: 64px; vertical-align: middle;}
.fluid-entry-wrap .entry-table input,
.fluid-entry-wrap .entry-table select {max-width: none; width: 100%;}
.fluid-entry-wrap .suggestions {
  top: calc(100% + 5px);
  max-height: 230px;
  overflow-y: auto;
  z-index: 40;
}
.fluid-entry-wrap .entry-table tr:focus-within {position: relative; z-index: 20;}
.fluid-transaction-panel .form-actions {
  position: static !important;
  margin-top: 12px;
  padding-top: 19px;
  min-height: 75px;
  flex-wrap: wrap;
  clear: both;
}
/* On phones, show one row per product as a tidy card; dropdown remains visible. */
@media(max-width: 760px) {
  .fluid-entry-wrap {padding-bottom: 100px;}
  .fluid-entry-wrap .entry-table,
  .fluid-entry-wrap .entry-table tbody,
  .fluid-entry-wrap .entry-table tr {display: block; width: 100%;}
  .fluid-entry-wrap .entry-table thead {display:none;}
  .fluid-entry-wrap .entry-table tr {
    border: 1px solid #eee;
    background: #fff;
    border-radius: 13px;
    padding: 12px;
    margin-bottom: 13px;
  }
  .fluid-entry-wrap .entry-table td {
    display:block;
    width:100% !important;
    min-width:0 !important;
    height:auto;
    padding:7px 0;
    border:0;
    text-align:left !important;
  }
  .fluid-entry-wrap .entry-table td:first-child {min-width:0;}
  .fluid-entry-wrap .entry-table td:nth-child(2),
  .fluid-entry-wrap .entry-table td:nth-child(3) {max-width:100%;}
  .fluid-entry-wrap .entry-table td:nth-child(5) {text-align:right !important;}
  .fluid-entry-wrap .suggestions {top:calc(100% + 4px);}
  .fluid-transaction-panel {padding:19px 15px 30px;}
}

/* v0.2.3 — dedicated warehouse pages, retaining existing ivory/red dashboard */
.warehouse-view{min-width:0}
.warehouse-location-header{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:20px;padding:26px 28px;margin-bottom:18px}
.warehouse-heading{display:flex;align-items:center;gap:16px;min-width:0}
.warehouse-heading h2{font-size:24px;margin:0 0 5px}
.warehouse-heading p{margin:0;color:#777}
.warehouse-location-icon{width:64px;height:64px;flex:none;display:grid;place-items:center;border-radius:18px;color:#c71928;background:linear-gradient(140deg,#ffe8e8,#fff5f5);font-size:30px}
.warehouse-location-icon.kitchen-icon{background:linear-gradient(140deg,#fff0e3,#fffaf7);color:#bb5c20}
.warehouse-cta{display:flex;gap:10px;flex-wrap:wrap}
.warehouse-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:18px}
.warehouse-metric{padding:24px;display:flex;flex-direction:column;gap:6px}
.warehouse-metric span{font-size:13px;color:#777}
.warehouse-metric strong{font-size:30px;color:#242424}
.warehouse-metric small{color:#8a8a8a}
.warehouse-section{padding:25px 28px;margin-bottom:18px;min-width:0}
.warehouse-search-wrap{margin:16px 0 14px;max-width:520px}
.warehouse-search-wrap input{width:100%}
.warehouse-history-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px}
.warehouse-history-list .history-card{min-width:0;overflow-wrap:anywhere}
.warehouse-history-list .history-card span{overflow-wrap:anywhere}
.warehouse-section .table-wrap{max-height:none;overflow-x:auto}
@media(max-width:800px){.warehouse-location-header,.warehouse-section{padding:18px}.warehouse-metrics,.warehouse-history-list{grid-template-columns:1fr}.warehouse-cta{width:100%}.warehouse-cta button{flex:1;min-width:150px}.warehouse-heading h2{font-size:21px}}

/* v0.3 category grouping, smooth search, secure staff login, stock card */
.stock-filters{display:grid;grid-template-columns:2fr 1fr 1fr;gap:14px;margin:16px 0 22px;align-items:end}.stock-filters label{display:block;font-size:12px;font-weight:700;color:#555;margin-bottom:7px}.stock-filters input,.stock-filters select{width:100%}.clickable-stock{cursor:pointer}.clickable-stock:hover{background:#fff1ed}.clickable-stock:focus{outline:2px solid #cc2933;outline-offset:-2px}.stock-group td{background:#f2f0ec!important;color:#a62930;font-weight:800;font-size:13px;padding:11px 12px}.category-chips{display:flex;gap:10px;flex-wrap:wrap;margin-top:15px}.category-chip{border:1px solid #ddd;border-radius:30px;padding:8px 14px;background:#faf8f5;font-weight:650}.simple-inline{display:flex;gap:10px;max-width:600px}.simple-inline input{flex:1}.simple-inline button{white-space:nowrap}.micro-label{font-size:11px;color:#777}.product-category-change{font-size:12px;max-width:190px;margin-top:5px}.stock-card-overlay{position:fixed;inset:0;background:#191b1d99;z-index:90;display:grid;place-items:center;padding:22px}.stock-card-overlay[hidden]{display:none}.stock-card-panel{background:#fff;border-radius:22px;padding:24px;max-width:1080px;width:100%;max-height:88vh;overflow:auto}.stock-card-head{display:flex;justify-content:space-between;gap:20px;align-items:start}.stock-card-head h2{margin:0}.stock-card-head p{color:#777}.stock-card-balance{font-size:18px;font-weight:800;color:#265e3d;background:#eff9f1;border-radius:12px;padding:15px;margin:10px 0}.stock-plus{color:#247a48;font-weight:800}.stock-minus{color:#b62535;font-weight:800}.user-panel #current-user{font-weight:700}#user-form button{margin-top:10px} [hidden]{display:none!important}
@media(max-width:800px){.stock-filters{grid-template-columns:1fr}.stock-card-panel{padding:14px}.simple-inline{flex-direction:column}}

/* KT Inventory 0.4 — compact dates and mobile-first operational screens */
.history-filters{display:flex;align-items:end;flex-wrap:wrap;gap:14px;margin:18px 0 24px}
.history-filters .date-field{flex:0 0 180px;width:180px;max-width:100%}
.history-filters .date-field input{width:180px;max-width:100%;height:45px}
.history-filters .history-search-field{flex:1 1 260px;max-width:440px;min-width:0}
.history-filters label{display:block;font-size:12px;font-weight:750;color:#555;margin:0 0 7px}
.history-filters input{min-height:45px}
.product-save-actions{display:flex;justify-content:flex-end;padding:16px 0 22px;margin:6px 0 22px;border-bottom:1px solid #ececef}
.product-save-actions button{min-width:205px}
.branch-picker{padding:22px 26px;margin-bottom:18px}
.branch-picker-top{display:flex;gap:14px;align-items:end;justify-content:space-between;flex-wrap:wrap}
.branch-picker-top>div:first-child{flex:1 1 240px;max-width:440px}
#branch-admin-actions{display:flex;flex-wrap:wrap;gap:8px}
.branch-tabs{display:flex;gap:10px;margin-top:18px;border-bottom:1px solid #e9eaed;padding-bottom:10px}
.branch-tab{background:#f4f4f4;border:1px solid #e0e0e5;border-radius:12px;padding:13px 18px;font-weight:750;flex:1;color:#555}
.branch-tab.active{background:#fff0f0;color:#c72132;border-color:#f6aab1;box-shadow:inset 0 -2px 0 #cc2835}
.location-options{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
.location-option{min-height:88px;padding:12px 10px}
.location-option span{font-size:24px}
@media(max-width:760px){
 body{font-size:14px}
 .shell{display:block!important;min-width:0}
 .sidebar{position:sticky!important;top:0;z-index:45;height:auto!important;padding:9px 12px!important;background:#fff;border-bottom:1px solid #eee;box-shadow:0 4px 15px #00000008}
 .brand{padding:0 0 5px!important}.brand-icon{font-size:29px}.brand b{font-size:14px!important}.brand small{font-size:10px!important}
 .nav{display:flex;flex-wrap:nowrap;gap:5px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;padding:3px 0 7px}
 .nav button{flex:0 0 auto;font-size:12px!important;white-space:nowrap;padding:10px 12px!important;min-height:42px;border-radius:12px}
 .nav button span{font-size:17px!important;width:18px!important}
 .main{padding:14px 12px 95px!important;min-width:0}
 .topbar{align-items:flex-start;gap:9px;margin:5px 0 17px;flex-wrap:wrap}
 .topbar h1{font-size:23px}.topbar p{font-size:12px}
 .user-panel{margin-left:auto;font-size:11px;padding:7px 10px}
 .panel{border-radius:15px}
 .form-panel,.warehouse-section,.warehouse-location-header,.branch-picker,.hero,.preview{padding:16px 13px!important}
 .form-grid,.grid-two,.grid-three,.history-grid,.quick-grid,.warehouse-metrics{display:grid;grid-template-columns:minmax(0,1fr)!important;gap:14px}
 .location-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .location-option{font-size:12px;min-width:0}
 .hero-flow{grid-template-columns:1fr 1fr;gap:8px}
 .hero-action{padding:12px 8px;min-height:90px}.hero-action strong{font-size:14px}
 .section-title h2{font-size:18px}.section-title p{font-size:12px}
 .warehouse-heading h2{font-size:19px}.warehouse-location-icon{width:46px;height:46px;font-size:22px}
 .warehouse-cta{display:grid;grid-template-columns:1fr;gap:8px}
 .warehouse-cta button{min-width:0;width:100%}
 .branch-picker-top{display:block}.branch-picker-top>div:first-child{max-width:none}
 #branch-admin-actions{margin-top:10px}#branch-admin-actions button{flex:1}
 .branch-tabs{gap:6px}.branch-tab{font-size:13px;padding:12px 7px}
 .history-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .history-filters .date-field,.history-filters .date-field input{width:100%;max-width:none;min-width:0}
 .history-filters .history-search-field{grid-column:1/-1;max-width:none;min-width:0}
 .product-save-actions button{width:100%}
 .fluid-entry-wrap{padding-bottom:90px}
 .fluid-entry-wrap .entry-table tr{margin-bottom:11px}
 .items-heading{gap:9px}.items-heading button{width:100%}
 .form-actions{align-items:stretch!important}.form-actions button{width:100%}
 .warehouse-section .table-wrap table,.stock-card-panel table{min-width:520px}
 .stock-card-overlay{padding:7px}.stock-card-panel{padding:15px 10px;border-radius:15px;max-height:94dvh}
 .stock-card-head h2{font-size:18px}
 .toast{bottom:12px;right:10px;left:10px;text-align:center}
 input,select,textarea{font-size:16px!important}
}
@media(max-width:380px){.history-filters{grid-template-columns:1fr}.history-filters .history-search-field{grid-column:auto}.location-options{grid-template-columns:1fr 1fr}}

@media(max-width:760px){
 .warehouse-section .table-wrap{overflow:visible}
 .warehouse-section .table-wrap table{min-width:0!important;display:block;width:100%}
 .warehouse-section .table-wrap thead{display:none}
 .warehouse-section .table-wrap tbody{display:grid;gap:9px}
 .warehouse-section .table-wrap tbody tr.clickable-stock{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px 10px;border:1px solid #e6e6e7;border-radius:13px;padding:13px;background:#fff}
 .warehouse-section .table-wrap tbody tr.clickable-stock td{display:block;border:0;padding:0!important;min-width:0;overflow-wrap:anywhere}
 .warehouse-section .table-wrap tbody tr.clickable-stock td:first-child{font-weight:750;grid-column:1/-1;font-size:14px}
 .warehouse-section .table-wrap tbody tr.clickable-stock td:nth-child(2){grid-column:1/-1;font-size:12px;color:#7b7b7b}
 .warehouse-section .table-wrap tbody tr.clickable-stock td:nth-child(3){color:#267943;font-size:18px}
 .warehouse-section .table-wrap tbody tr.clickable-stock td:nth-child(4){justify-self:end;align-self:center}
 .warehouse-section .table-wrap tbody tr.stock-group{display:block;margin-top:13px}
 .warehouse-section .table-wrap tbody tr.stock-group td{display:block;padding:11px!important;border-radius:9px}
}

/* v0.5 location permissions, stock status, and daily closing */
#branch .warehouse-section .clickable-stock td:nth-child(2){grid-column:auto}
.stock-empty{opacity:.68;background:#f7f7f7!important}
.opname-box{margin-top:16px}.opname-controls{display:grid;grid-template-columns:210px 1fr;gap:14px}.opname-controls label,.user-permission-fields label{display:block;font-weight:700;font-size:12px;margin-bottom:7px}
.opname-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 4px;border-bottom:1px solid #eee}.opname-item span{font-weight:700}.opname-item small{display:block;color:#777;font-weight:400}.opname-item input{max-width:150px;text-align:right}
.opname-history{margin-top:20px}.opname-report{padding:10px;border-bottom:1px solid #eee}
.user-permission-fields{display:grid;grid-template-columns:minmax(160px,300px) 1fr;gap:14px;padding:14px;margin:10px 0 20px;border:1px solid #eee;border-radius:14px}.user-permission-fields .hint{grid-column:1/-1}.user-permission-fields .permission-check{display:flex;align-items:center;gap:10px;margin:0}.permission-check input{width:19px;height:19px}
@media(max-width:680px){.opname-controls,.user-permission-fields{grid-template-columns:1fr}.opname-item{align-items:flex-start}.opname-item input{max-width:115px}#branch .warehouse-section .table-wrap tbody tr.clickable-stock td:nth-child(2){grid-column:1/2;font-size:17px;color:#247a48}}

/* v0.6 internal SKU, product status, and history tabs */
.product-edit-panel{border:1px solid #edd3d4;background:#fffafa;border-radius:16px;padding:20px;margin:20px 0}
.product-identity{font-size:13px;color:#62636b;margin:8px 0 16px}.product-status{display:inline-block;padding:5px 11px;border-radius:20px;font-weight:750;font-size:11px;margin-right:10px;white-space:nowrap}
.product-status.is-active{color:#137942;background:#def6e7}.product-status.is-inactive{color:#9a3b3b;background:#ffe6e7}.product-edit{margin:7px 0;min-height:42px}
.product-inactive{background:#f8f8f9;opacity:.83}.product-inactive td:first-child strong{text-decoration:line-through;color:#6b707a}
.history-tabs{display:flex;gap:8px;margin:20px 0 14px;border-bottom:1px solid #ececee;padding-bottom:8px}
.history-tab{border:1px solid #e5dce0;background:#f7f7f8;color:#555b67;border-radius:11px;padding:12px 20px;min-height:44px;font-weight:750}
.history-tab.active{background:#d82432;color:#fff;border-color:#d82432}
.history-grid{display:block}.history-grid [hidden]{display:none!important}
@media(max-width:650px){.history-tabs{display:grid;grid-template-columns:1fr 1fr}.history-tab{padding:12px 7px}.product-edit-panel{padding:14px}.product-status{margin:4px 0;display:block;width:max-content}}

/* v0.6.1 Gudang Utama: category filter and accessible accordion */
.main-stock-controls{display:grid;grid-template-columns:minmax(160px,230px) minmax(0,1fr);gap:12px;align-items:end;margin:18px 0 10px}
.main-stock-controls .warehouse-search-wrap{margin:0;max-width:none}
.main-stock-controls label{font-size:12px;font-weight:750;color:#555;display:block;margin:0 0 6px}
.main-stock-controls select,.main-stock-controls input{width:100%;height:45px}
.category-controls{display:flex;gap:8px;justify-content:flex-end;margin:0 0 12px}
.category-accordion-header td{padding:0!important;background:#f6f1ed!important}
.category-accordion-toggle{width:100%;border:0;background:transparent;padding:13px 14px;color:#9b2630;font-weight:800;display:flex;align-items:center;justify-content:space-between;cursor:pointer;text-align:left;font-size:14px}
.category-accordion-toggle small{color:#777;font-size:11px;margin-left:8px;font-weight:500}
.category-accordion-toggle:focus-visible{outline:3px solid #d33b47;outline-offset:-3px}
#main-stock-table tr[hidden]{display:none!important}
/* v0.6.1 Guided transfer focus: gentle pulse with reduced-motion support */
#transfer-form .transfer-attention{border-color:#d22e3b!important;box-shadow:0 0 0 3px #d22e3b33;animation:transferPulse 1.05s ease-in-out 2}
@keyframes transferPulse{50%{box-shadow:0 0 0 6px #d22e3b22;background:#fff9f6}}
@media(prefers-reduced-motion:reduce){#transfer-form .transfer-attention{animation:none;outline:3px solid #bd303b;outline-offset:2px}}
@media(max-width:620px){.main-stock-controls{grid-template-columns:minmax(112px,38%) minmax(0,1fr);gap:8px}.category-controls{justify-content:stretch}.category-controls button{flex:1}}
@media(max-width:380px){.main-stock-controls{grid-template-columns:1fr}.category-controls{flex-wrap:wrap}}

/* v0.7 navigation, master pages and daily closing report */
.brand{gap:8px;align-items:flex-start}.brand-text{min-width:0;flex:1;overflow:hidden}.brand b{font-size:14px;line-height:1.2;overflow-wrap:anywhere}.brand small{line-height:1.3;overflow-wrap:anywhere}.brand #sidebar-toggle{border:0;background:#f7e7e7;border-radius:8px;padding:7px;color:#9b2630;flex-shrink:0}.nav button em{font-style:normal;overflow-wrap:anywhere}.settings-subnav{display:grid;gap:3px;margin-left:19px;padding-left:8px;border-left:2px solid #f1d6d8}.settings-subnav[hidden]{display:none}.settings-subnav button{font-size:12px;padding:10px 9px}.settings-subnav button span{font-size:18px}.shell.sidebar-collapsed{grid-template-columns:74px minmax(0,1fr)}.sidebar-collapsed .sidebar{padding:16px 8px}.sidebar-collapsed .brand-icon,.sidebar-collapsed .brand-text,.sidebar-collapsed .sidebar-bottom,.sidebar-collapsed .nav button em{display:none}.sidebar-collapsed .nav button{justify-content:center;padding:13px 5px}.sidebar-collapsed .nav button span{width:auto}.sidebar-collapsed .settings-subnav{margin-left:0;padding-left:0;border:0}.legacy-opname{display:none!important}.settings-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:18px}.settings-grid button{padding:19px 12px;border:1px solid #ecdede;background:#fff8f8;border-radius:13px;font-weight:700;color:#a62a33;text-align:left}.master-list{display:grid;gap:12px;margin-top:20px}.master-entry{display:flex;gap:12px;align-items:center;justify-content:space-between;background:#fbfbfc;border:1px solid #eee;padding:14px;border-radius:11px}.master-entry p{margin:5px 0;color:#777}.master-entry button{flex-shrink:0}.sortable-products{margin-top:15px;display:grid;gap:7px}.sortable-item{display:flex;gap:10px;align-items:center;padding:10px;background:#fafafa;border:1px solid #e6e5e8;border-radius:12px}.sortable-item.dragging{opacity:.45}.sortable-item .drag-handle{touch-action:none;background:#f5e5e6;color:#a82736;border:0;padding:12px;border-radius:9px;cursor:grab;font-size:18px}.sortable-item .sort-name{flex:1;min-width:0;overflow-wrap:anywhere}.sortable-item .sort-buttons{display:flex;gap:4px}.sortable-item .sort-buttons button{padding:7px;border:1px solid #ddd;border-radius:7px;background:white}.daily-list{margin-top:20px;display:grid;gap:9px}.daily-line{display:grid;grid-template-columns:minmax(0,1fr) 112px;align-items:center;gap:12px;padding:12px;background:#fafafa;border:1px solid #eee;border-radius:10px}.daily-line strong{display:block;overflow-wrap:anywhere}.daily-line small{color:#777}.daily-line input[type=number]{max-width:100%;text-align:right}.opname-history{margin-top:18px}.opname-history .opname-report{padding:10px;border-bottom:1px solid #eee}.opname-history a{color:#ba2431;margin-left:10px}
@media(max-width:950px){.settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:620px){.settings-grid{grid-template-columns:1fr}.master-entry{align-items:flex-start;flex-direction:column}.daily-line{grid-template-columns:minmax(0,1fr) 105px}.sidebar-collapsed .shell{grid-template-columns:1fr}.shell.sidebar-collapsed{grid-template-columns:1fr}.sidebar-collapsed .sidebar{height:auto;position:relative}.sidebar-collapsed .nav button em{display:inline}.sidebar-collapsed .brand-text{display:block}.sidebar-collapsed .brand-icon{display:inline}.sidebar-collapsed .nav button{justify-content:flex-start}.sidebar-collapsed .sidebar-bottom{display:none}}
/* Manage branches only under Pengaturan; do not duplicate management controls in Cabang. */
#branch-admin-actions{display:none!important}

/* v0.8 - inline master management */
.master-product-search{max-width:520px;margin:18px 0}.master-product-search label{display:block;margin-bottom:7px;font-weight:700}
.master-product-editor-row>td{background:#fff8f8;padding:14px!important;border-bottom:2px solid #f0dade}
.master-inline-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:end}
.master-inline-fields label{display:flex;flex-direction:column;gap:7px;font-weight:600;min-width:0}
.master-inline-fields input,.master-inline-fields select,.master-inline-fields textarea{width:100%;min-width:0}
.master-edit-identity,.inline-master-actions{grid-column:1/-1}.inline-master-actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}
.inline-master-form{width:100%;padding:16px;margin:12px 0 0;background:#fff;border:1px solid #efdada;border-radius:12px}
.master-entry{flex-wrap:wrap}.master-entry-info{flex:1;min-width:170px}.master-entry .inline-master-form{flex-basis:100%}
.master-code{display:block!important;color:#8c6368!important;font-size:12px;font-weight:700;margin-top:5px}
.permission-check-wrap{grid-column:1/-1;display:flex;align-items:center;padding:5px 0}.permission-check-wrap .permission-check{display:inline-flex!important;align-items:center!important;gap:10px!important;cursor:pointer;margin:0!important;line-height:1.4!important;white-space:normal}
.permission-check-wrap input[type="checkbox"]{appearance:auto!important;display:inline-block!important;flex:0 0 20px!important;width:20px!important;min-width:20px!important;max-width:20px!important;height:20px!important;margin:0!important;padding:0!important;vertical-align:middle!important}
.permission-check-wrap span{display:inline-block;flex:1;min-width:0}
@media(max-width:700px){.master-inline-fields{grid-template-columns:1fr}.master-product-search{max-width:100%}.master-product-editor-row{display:table-row}.inline-master-actions>*{min-height:44px}}

.master-user-editor-row>td{padding:10px!important;background:#fff8f8}.master-user-editor-row .permission-check{display:inline-flex!important;flex-direction:row!important;align-items:center;gap:10px;margin-top:8px}.master-user-editor-row .permission-check input{width:20px;height:20px;flex:none;margin:0}.master-user-editor-row .permission-check span{line-height:1.4}

/* v0.8.1 – Master Gudang: kode, cabang, nama selalu vertikal */
#warehouse-add-form.warehouse-field-stack,
#warehouse-master-list .warehouse-field-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 15px;
  align-items: stretch;
}
#warehouse-add-form.warehouse-field-stack > *,
#warehouse-master-list .warehouse-field-stack > * {
  grid-column: 1 / -1;
  min-width: 0;
}
#warehouse-add-form.warehouse-field-stack label,
#warehouse-master-list .warehouse-field-stack label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: none;
}
#warehouse-add-form.warehouse-field-stack input,
#warehouse-add-form.warehouse-field-stack select,
#warehouse-master-list .warehouse-field-stack input,
#warehouse-master-list .warehouse-field-stack select {
  display: block;
  width: 100%;
  min-height: 46px;
  box-sizing: border-box;
}
#warehouse-master-list .warehouse-code-field {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
#warehouse-master-list .warehouse-field-label {font-weight: 600;}
#warehouse-master-list .warehouse-field-stack .inline-master-actions,
#warehouse-add-form.warehouse-field-stack .inline-master-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
@media (max-width: 620px) {
  #warehouse-master-list .warehouse-field-stack .inline-master-actions button,
  #warehouse-add-form.warehouse-field-stack .inline-master-actions button {
    min-height: 44px;
  }
}

/* v0.9 tidy main search; compact curved receipt location selector */
.main-stock-controls{display:grid;grid-template-columns:minmax(190px,260px) minmax(0,1fr);gap:14px;align-items:end;padding:12px 14px;border:1px solid #ece8e8;border-radius:16px;background:#fff}
.main-stock-controls .main-category-filter,.main-stock-controls .warehouse-search-wrap{min-width:0;margin:0;display:flex;flex-direction:column;justify-content:flex-end}
.main-stock-controls label{line-height:18px;min-height:18px;margin:0 0 7px}
.main-stock-controls input,.main-stock-controls select{height:48px;min-width:0;border-radius:12px;box-sizing:border-box}
.receipt-location-select{border:1px solid #dedfe6;border-radius:16px;background:#fff;width:100%;min-height:54px;padding:12px 16px;font-weight:650;cursor:pointer}
.receipt-total-field{margin-top:14px}
.warehouse-history-search{max-width:520px;margin:12px 0 18px}.warehouse-history-search input{width:100%}
.approval-toolbar{display:flex;align-items:end;justify-content:space-between;gap:12px;margin:18px 0}.approval-toolbar label{flex:1;max-width:500px}.approval-toolbar input{width:100%}
.approval-cards{display:grid;gap:12px}.approval-card{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:14px;padding:18px;border:1px solid #e6e6ea;border-radius:15px;background:#fff}
.approval-card-info{display:grid;gap:5px}.approval-card-info small{color:#697080}.approval-card-actions{display:flex;gap:8px;flex-wrap:wrap}.approval-card-actions button{min-height:42px}
.approval-detail-head{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-bottom:20px}.approval-detail-top{display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:18px;align-items:start;margin-bottom:20px}
.approval-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.approval-fields label{display:flex;flex-direction:column;gap:7px;font-weight:650}.approval-fields input{width:100%;min-width:0}
.approval-photo-link{display:flex;align-items:center;flex-direction:column;gap:7px;border:1px dashed #e0dfe3;border-radius:15px;padding:12px;color:#cf1c32;text-decoration:none}.approval-photo-link img{max-width:100%;max-height:180px;object-fit:contain}
.approval-items{display:grid;gap:11px;margin-top:14px}.approval-item{border:1px solid #e7e7e9;border-radius:14px;padding:14px;display:grid;grid-template-columns:minmax(160px,1.6fr) minmax(80px,.65fr) minmax(90px,.75fr) minmax(100px,.8fr) auto;align-items:end;gap:11px}
.approval-item label{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:12px;font-weight:650}.approval-item label input,.approval-item label select{width:100%;min-width:0;height:43px}.approval-item .approval-name-read{font-size:14px;font-weight:700;padding-bottom:10px}.approval-actions{justify-content:flex-end}
@media(max-width:700px){.main-stock-controls{grid-template-columns:1fr;gap:10px;padding:12px}.approval-detail-top{grid-template-columns:1fr}.approval-fields{grid-template-columns:1fr}.approval-item{grid-template-columns:1fr 1fr}.approval-item .approval-product-cell{grid-column:1/-1}.approval-item .approval-item-save{grid-column:1/-1}.approval-toolbar{flex-direction:column;align-items:stretch}.approval-toolbar label{max-width:none}}

/* v0.10 incoming receipt item prices */
.receipt-price-summary{display:block;margin-top:6px;color:#64748b;font-size:12px}
#receipt-rows .row-price{min-width:120px;width:100%;font-variant-numeric:tabular-nums}
#receipt-rows .row-subtotal{min-width:115px;white-space:nowrap;text-align:right;font-variant-numeric:tabular-nums}
#receipt-document-type{border-radius:12px}
#receipt .entry-table{min-width:850px}
@media(max-width:700px){#receipt .fluid-entry-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}#receipt .entry-table{min-width:830px}}

/* v0.10.2 — receipt entry widths, discount column, grand total */
.receipt-entry-wrap{padding-bottom:32px}
.receipt-entry-table{width:100%;table-layout:fixed;min-width:1080px}
.receipt-entry-table th,.receipt-entry-table td{vertical-align:middle}
.receipt-entry-table th:nth-child(1),.receipt-entry-table td:nth-child(1){width:auto;min-width:260px}
.receipt-entry-table th:nth-child(2),.receipt-entry-table td:nth-child(2){width:88px;min-width:88px}
.receipt-entry-table th:nth-child(3),.receipt-entry-table td:nth-child(3){width:90px;min-width:90px}
.receipt-entry-table th:nth-child(4),.receipt-entry-table td:nth-child(4){width:130px;min-width:130px}
.receipt-entry-table th:nth-child(5),.receipt-entry-table td:nth-child(5){width:116px;min-width:116px}
.receipt-entry-table th:nth-child(6),.receipt-entry-table td:nth-child(6){width:116px;min-width:116px}
.receipt-entry-table th:nth-child(7),.receipt-entry-table td:nth-child(7){width:136px;min-width:136px}
.receipt-entry-table th:nth-child(8),.receipt-entry-table td:nth-child(8){width:58px;min-width:58px;text-align:center}
.receipt-entry-table .row-qty{text-align:center}
.receipt-entry-table .row-price,.receipt-entry-table .row-discount{text-align:right}
.receipt-entry-table .row-subtotal,.receipt-entry-table .computed,.receipt-grand-total{text-align:right;font-weight:800;white-space:nowrap}
.receipt-entry-table .computed{color:#2f8052}
.receipt-grand-row td{background:#fff7f7;border-top:2px solid #f0d3d7;border-bottom:none}
.receipt-grand-label{text-align:right;font-weight:800;color:#782832}
.receipt-grand-total{color:#c92732;font-size:15px}
.receipt-total-summary{display:flex;justify-content:flex-end;margin-top:10px}
.receipt-price-summary{background:#f8fafc;border:1px solid #e7eaef;border-radius:12px;padding:10px 14px;color:#475569;font-size:12px}
@media(max-width:760px){
  .receipt-entry-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
  .receipt-entry-table{min-width:960px}
}


/* v0.10.3 - compact approval item table (single header) */
#approval-items.approval-items{display:block;min-width:0;margin-top:16px}
#approval-items .approval-grid-scroll{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid #e8e8ed;border-radius:14px}
#approval-items .approval-grid-table{width:100%;min-width:900px;table-layout:fixed;border-collapse:collapse}
#approval-items .approval-grid-table col.a-col-product{width:31%}
#approval-items .approval-grid-table col.a-col-qty{width:8%}
#approval-items .approval-grid-table col.a-col-unit{width:11%}
#approval-items .approval-grid-table col.a-col-price{width:14%}
#approval-items .approval-grid-table col.a-col-discount{width:13%}
#approval-items .approval-grid-table col.a-col-subtotal{width:14%}
#approval-items .approval-grid-table col.a-col-edit{width:9%}
#approval-items .approval-grid-table th{padding:13px 10px;font-size:11px;font-weight:750;color:#676c77;background:#f7f7f9;text-align:left;white-space:normal;line-height:1.35}
#approval-items .approval-grid-table td{padding:10px 9px;border-bottom:1px solid #f0f0f2;vertical-align:middle;font-size:12px}
#approval-items .approval-grid-table tbody tr:hover{background:#fffafa}
#approval-items .approval-grid-table tbody tr.is-editing{background:#fff6f6}
#approval-items .approval-grid-table .approval-name-read{font-weight:700;line-height:1.45;overflow-wrap:anywhere}
#approval-items .approval-grid-table .a-money{text-align:right;font-variant-numeric:tabular-nums}
#approval-items .approval-grid-table .a-action{text-align:center}
#approval-items .approval-grid-table .a-action button{padding:9px 10px;white-space:nowrap;width:100%;min-height:38px}
#approval-items .approval-grid-table .approval-product-cell input,
#approval-items .approval-grid-table input,
#approval-items .approval-grid-table select{width:100%;min-width:0;max-width:none;height:40px;padding:8px 7px;font-size:12px;border-radius:9px}
#approval-items .approval-grid-table .a-grand-label{background:#fff6f6;text-align:right;font-weight:800;color:#8e3440}
#approval-items .approval-grid-table .a-grand-value{background:#fff6f6;text-align:right;font-weight:800;color:#b71c2b;white-space:nowrap}
#approval-items .approval-grid-table tfoot td{border-bottom:0}
@media(max-width:760px){
 #approval-items .approval-grid-table{min-width:900px}
 #approval-items .approval-grid-scroll{scrollbar-width:thin}
}

/* v0.11 lifecycle actions stay inline; no browser dialogs */
.lifecycle-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:8px}
.lifecycle-actions .soft-button,.lifecycle-inline-confirm button{padding:7px 10px;font-size:12px}
.lifecycle-delete{color:#a31224!important;border-color:#efbac0!important}
.lifecycle-inline-confirm{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px;border:1px solid #edb4b9;border-radius:11px;background:#fff5f6;margin-top:8px;font-size:12px}
.lifecycle-inline-confirm span{flex:1;min-width:180px}
.master-entry-inactive{opacity:.65}
.master-status-on{color:#22814f;display:block}
.master-status-off{color:#ad343e;display:block}
.category-lifecycle-entry{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:8px 0}
.category-lifecycle-entry .lifecycle-control-slot{margin-left:auto}
.form-master-status{display:flex;flex-wrap:wrap;align-items:center;gap:12px;border:1px solid #e7e7e9;background:#f7f9fa;padding:13px;border-radius:12px;margin:12px 0}
.form-master-status small{color:#667080}
@media(max-width:650px){.category-lifecycle-entry .lifecycle-control-slot{margin-left:0}.lifecycle-inline-confirm{display:flex;flex-direction:column;align-items:stretch}}

/* v0.12: mobile-first sequential stock report, inspired by the user-provided HTML */
#daily-report .daily-workspace{max-width:850px;margin:0 auto;background:#f1f5f9;border-radius:18px;padding-bottom:25px;overflow:clip}
#daily-report .daily-sticky-head{position:sticky;top:0;z-index:30;background:#172336;color:white;padding:15px 16px 9px;border-radius:18px 18px 0 0}
#daily-report .daily-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
#daily-report .daily-heading h2{font-size:20px;margin:2px 0}#daily-report .daily-heading p{font-size:11px;color:#c9d1dc;margin:0}
#daily-report .daily-heading small{color:#ffd36a;font-size:10px;font-weight:800;letter-spacing:1px}
#daily-report .daily-live-dot{width:9px;height:9px;border-radius:50%;background:#fa5656;box-shadow:0 0 0 4px #fa565622}
#daily-report .daily-context{display:grid;grid-template-columns:1fr 170px 170px;gap:9px;background:#253347;padding:12px;border-radius:12px;margin:12px 0}
#daily-report .daily-context label{color:#cbd5e1;font-size:11px;font-weight:700;margin:0;min-width:0}
#daily-report .daily-context select,#daily-report .daily-context input{background:#172336;color:#fff;border-color:#4b5b6e;height:41px;margin-top:5px;padding:8px;font-size:12px;max-width:none}
#daily-report .daily-context input:disabled{color:#d0d9e5;opacity:1}
#daily-report .daily-step-tabs{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding:2px 0 5px}
#daily-report .daily-step-tabs::-webkit-scrollbar{display:none}
#daily-report .daily-step-tab{flex:none;padding:8px 10px;border-radius:10px;border:1px solid #506077;background:#142035;color:#d5deea;font-size:11px;font-weight:750}
#daily-report .daily-step-tab small{padding:2px 5px;background:#ffffff17;border-radius:5px;margin-left:4px}
#daily-report .daily-step-tab.selected{background:#ffcc57;color:#1d2939;border-color:#ffcc57}#daily-report .daily-step-tab.complete:not(.selected){color:#a6f2c7;border-color:#468d69}
#daily-report #daily-report-form{padding:13px 14px 16px}
#daily-report .daily-step-info{display:flex;justify-content:space-between;gap:12px;align-items:center;background:white;border-radius:12px;padding:12px 14px;margin-bottom:12px}
#daily-report .daily-step-info h3{font-size:16px;margin:3px 0}#daily-report .daily-step-info p{font-size:11px;color:#697386;margin:0}#daily-report #daily-step-badge{font-size:10px;background:#172336;color:white;padding:4px 8px;border-radius:6px}
#daily-report #daily-progress{font-size:11px;background:#e0f6e9;color:#167345;padding:7px 9px;border-radius:8px;white-space:nowrap}
#daily-report .daily-table-shell{background:white;border-radius:12px;overflow:hidden;border:1px solid #e2e8f0}
#daily-report .daily-count-table{table-layout:fixed;width:100%;border-collapse:collapse}
#daily-report .daily-count-table th{background:#172336;color:#fff;font-size:10px;padding:10px 5px;white-space:normal;text-align:center}
#daily-report .daily-count-table th:nth-child(2){text-align:left}
#daily-report .daily-count-table td{padding:8px 5px;border-bottom:1px solid #e9eef4;font-size:12px}
#daily-report .daily-no-col{width:40px;text-align:center;color:#8a94a7}#daily-report .daily-unit-col{width:69px;text-align:center;font-size:10px;font-weight:800}#daily-report .daily-count-col{width:112px}
#daily-report .daily-product-label b{font-weight:750;display:block;overflow-wrap:anywhere}#daily-report .daily-product-label small{display:block;font-size:10px;color:#7d879b;margin-top:4px}
#daily-report .daily-count-table tbody tr:nth-child(even){background:#f8fafc}#daily-report .daily-count-table tbody tr.active{background:#fff1f2}
#daily-report .daily-count-input{width:100%;max-width:none;text-align:center;height:43px;font-weight:800;font-size:15px;padding:7px 4px!important;border:1.5px solid #cbd5e1;border-radius:8px;background:white}
#daily-report .daily-count-input.filled{background:#effcf3;border-color:#8ad6a6;color:#16603a}
@keyframes daily-count-pulse{0%,100%{box-shadow:0 0 0 0 #ef444455}50%{box-shadow:0 0 0 5px #ef444425}}
#daily-report .daily-count-input:focus{background:#fff0f0!important;border:2px solid #e34848!important;animation:daily-count-pulse 1.2s infinite;box-shadow:0 0 0 3px #ef444428;color:#912626!important}
@media(prefers-reduced-motion:reduce){#daily-report .daily-count-input:focus{animation:none}}
#daily-report .daily-save-status{text-align:right;color:#64748b;margin-top:10px;font-size:11px}
#daily-report .daily-opname-info{font-size:11px;color:#536173;margin:10px 0 20px;line-height:1.5}
#daily-report .daily-bottom-bar{position:sticky;bottom:0;background:#ffffffef;display:flex;gap:9px;padding:12px;border:1px solid #e5e7eb;border-radius:13px;box-shadow:0 -4px 16px #26354a12;z-index:20}
#daily-report .daily-bottom-bar button{flex:1;padding:13px 9px;border-radius:10px;font-weight:800;font-size:13px}
#daily-report .daily-back-button{background:white;border:1px solid #bcc7d4;color:#344156}
#daily-report .daily-next-button{background:#172336;border:1px solid #172336;color:white}
#daily-report .daily-finish-button{background:#198848;border:1px solid #198848;color:white}
#daily-report .daily-history{background:white;margin:10px 14px;border-radius:12px;padding:15px}
@media(max-width:640px){#daily-report .daily-workspace{border-radius:0}#daily-report .daily-sticky-head{border-radius:0;padding:12px 9px 7px}#daily-report .daily-context{grid-template-columns:1fr 1fr;gap:6px;padding:8px}#daily-report .daily-context label:first-child{grid-column:1 / -1}#daily-report .daily-count-col{width:76px}#daily-report .daily-unit-col{width:42px}#daily-report .daily-no-col{width:29px}#daily-report .daily-count-table td{padding:6px 3px}#daily-report .daily-count-input{height:43px;font-size:14px}#daily-report .daily-product-label{font-size:11px}#daily-report .daily-product-label small{font-size:9px}#daily-report #daily-report-form{padding:10px 6px}#daily-report .daily-step-info{padding:10px 8px}}

/* v0.13 — Master UX konsisten dan aman di layar HP portrait */
#products-table td:last-child{min-width:234px;vertical-align:middle}
#products-table td:last-child>.product-status{display:inline-flex;align-items:center;min-height:30px;margin:0 0 7px}
.master-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:nowrap;min-width:0}
.master-row-actions .lifecycle-actions{display:flex;align-items:center;flex-wrap:nowrap;gap:8px;margin:0}
.master-row-actions .lifecycle-control-slot{display:contents}
.master-row-actions .lifecycle-control-slot .lifecycle-actions{display:flex}
.master-row-actions button,.category-master-actions button{min-height:40px!important;min-width:104px;max-width:none;font-size:12px!important;font-weight:750;padding:9px 12px!important;line-height:1.2;white-space:nowrap;border-radius:11px;flex:0 0 auto}
#products-table .product-edit{margin:0}
#products-table .lifecycle-actions{margin:0}
.master-row-actions-branch,.master-row-actions-warehouse{margin-left:auto}
.master-entry .master-row-actions button{flex-shrink:0}
.master-entry .master-entry-info{flex:1;min-width:0}
.category-master-vertical{display:flex!important;flex-direction:column!important;gap:10px;width:100%;margin-top:18px}
.category-master-vertical .category-lifecycle-entry{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;max-width:none;width:100%;padding:15px 17px;border:1px solid #e8e9ed;border-radius:13px;background:#fbfbfc;margin:0}
.category-master-info{flex:1;min-width:160px;display:flex;flex-direction:column;gap:4px}
.category-master-info strong{font-size:14px;overflow-wrap:anywhere}
.category-master-actions{display:flex;align-items:center;gap:8px;margin-left:auto;flex-wrap:nowrap}
.category-master-actions .lifecycle-control-slot{margin:0}
.category-master-actions .lifecycle-actions{margin:0;display:flex;align-items:center;gap:8px;flex-wrap:nowrap}
.category-inline-editor{width:100%;flex-basis:100%;border-top:1px solid #eee;padding-top:14px;display:flex;gap:12px;align-items:end;flex-wrap:wrap}
.category-inline-editor label{flex:1;min-width:210px;margin:0}
.category-inline-editor input{min-height:44px}
.category-inline-editor .inline-master-actions{display:flex;gap:8px;margin:0}
.category-inline-editor .inline-master-actions button{min-height:42px}
.category-master-vertical .lifecycle-inline-confirm{width:100%}
.approval-card .approval-delete{color:#ae1528;border-color:#efb9bf;background:#fff7f7;min-height:39px}
.approval-inline-confirm{width:100%;padding:13px;border-radius:12px;border:1px solid #f0c5c8;background:#fff8f8;margin-top:12px;display:flex;align-items:center;flex-wrap:wrap;gap:12px;font-size:12px}
.approval-inline-confirm[hidden]{display:none!important}
.approval-inline-confirm>span{flex:1;min-width:210px;color:#5d606a}
.approval-confirm-actions{display:flex;gap:8px;margin-left:auto}
.approval-confirm-actions button{min-height:40px;white-space:nowrap}
.duplicate-warning-overlay{position:fixed;inset:0;background:#171a23b3;z-index:260;display:grid;place-items:center;padding:18px}
.duplicate-warning-overlay[hidden]{display:none!important}
.duplicate-warning-box{background:#fff;box-shadow:0 22px 64px #0005;border-radius:20px;max-width:440px;width:100%;padding:27px 23px;text-align:center;border:1px solid #f9dadb}
.duplicate-warning-icon{display:grid;place-items:center;width:50px;height:50px;border-radius:100%;margin:0 auto 12px;background:#ffe8ea;color:#bd1e30;font-weight:900;font-size:28px}
.duplicate-warning-box h3{margin:0 0 10px;color:#b11e2a;font-size:20px}
.duplicate-warning-box p{color:#4e5560;font-size:13px;line-height:1.5;margin:0 0 20px}
.duplicate-warning-box button{width:100%;min-height:44px}
@media(max-width:750px){
 .master-row-actions{justify-content:flex-start;max-width:100%;overflow-x:auto;padding-bottom:3px}
 .master-entry .master-row-actions{margin-left:0;width:100%;max-width:100%}
 .category-master-vertical .category-lifecycle-entry{padding:13px;gap:11px}
 .category-master-actions{width:100%;justify-content:flex-start;overflow-x:auto;margin-left:0}
 .category-master-actions button,.master-row-actions button{min-width:88px!important;padding:9px 10px!important}
 .category-inline-editor .inline-master-actions{width:100%;justify-content:flex-end}
 .approval-confirm-actions{width:100%;justify-content:flex-end}
}
/* v0.14 — opening saved stock reports, compact audit history, refreshed sidebar icons */
.daily-edit-banner[hidden]{display:none!important}
.daily-edit-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 16px;margin:10px 0;background:#fff8e9;border:1px solid #eacb8d;border-radius:12px;color:#715018}
.daily-edit-banner b{display:block;font-size:13px}
.daily-edit-banner small{display:block;margin-top:4px;line-height:1.4;color:#826a3a}
.daily-history-scroll{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid #ececf0;border-radius:14px;margin-top:14px}
.daily-history-table{width:100%;min-width:720px;border-collapse:collapse;text-align:left}
.daily-history-table th{background:#f4f4f6;color:#596170;padding:13px 12px;font-size:12px;white-space:nowrap}
.daily-history-table td{padding:14px 12px;border-top:1px solid #eee;vertical-align:middle;font-size:12px}
.daily-history-table td b{display:block;font-size:12px}
.daily-history-table td small{display:block;margin-top:4px;color:#7a7f8a;white-space:normal}
.daily-history-table td:nth-child(3){text-align:center;white-space:nowrap}
.daily-history-table .soft-button{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;margin:0;min-width:110px;padding:10px 12px;white-space:nowrap;font-size:12px}
.daily-locked{color:#9a9da6;font-size:12px}
.buildings-icon{display:inline-flex!important;align-items:center;justify-content:center}
.buildings-icon svg{display:block;width:26px;height:26px}
@media(max-width:650px){.daily-edit-banner{flex-direction:column;align-items:stretch}.daily-edit-banner button{align-self:flex-end}}


/* v0.14.1 — unified progressive-search styling (all pages).
   Same behavior for existing inputs and dynamically added product rows. */
input.kt-search-bar.kt-search-bar {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  border: 1.5px solid #d4dce9;
  border-radius: 18px;
  background-color: #f5f6fc;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10.8' cy='10.8' r='7'/%3E%3Cpath d='m16.1 16.1 5 5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 16px center;
  background-size: 19px 19px;
  padding: 11px 15px 11px 46px !important;
  color: #263247;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  outline: 0;
  cursor: text;
}
input.kt-search-bar.kt-search-bar::placeholder {
  color: #8792a5;
  opacity: 1;
  font-weight: 400;
}
input.kt-search-bar.kt-search-bar:hover:not(:focus) {
  background-color: #e6eaf5;
  border-color: #c4cee0;
}
input.kt-search-bar.kt-search-bar:focus {
  background-color: #fff;
  border: 2px solid #d52432;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23c92732' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10.8' cy='10.8' r='7'/%3E%3Cpath d='m16.1 16.1 5 5'/%3E%3C/svg%3E");
  box-shadow: 0 0 0 3px rgb(213 36 50 / 13%);
  outline: 0;
}
/* Keep native clear button on search inputs in Chromium/WebKit. */
input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }
/* Progressive suggestion panel stays just below the taller search field. */
.product-field .suggestions { top: 52px; }
@media (max-width: 760px) {
  input.kt-search-bar.kt-search-bar {
    min-height: 48px;
    font-size: 16px; /* prevent automatic zoom on iOS */
    background-position: 14px center;
    padding-left: 44px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  input.kt-search-bar.kt-search-bar { transition: none; }
}

/* Transaction form rules may carry a more specific ID selector and !important padding. */
#receipt .entry-table input.kt-search-bar,
#transfer .entry-table input.kt-search-bar,
#approval .approval-product-name.kt-search-bar {
  padding-left: 46px !important;
}

/* v0.14.2 — staff sidebar/menu restriction and receipt shortcut */
[hidden]{display:none!important}
.hero-flow.staff-no-receipt{grid-template-columns:minmax(0,1fr) 42px minmax(190px,1fr);}
.hero-flow.staff-no-receipt .green-arrow{display:none}
.hero-flow.staff-no-receipt .warehouse{grid-column:1;grid-row:1}
.hero-flow.staff-no-receipt .blue-arrow{grid-column:2;grid-row:1}
.hero-flow.staff-no-receipt .hero-action.blue{grid-column:3;grid-row:1}
@media(max-width:650px){.hero-flow.staff-no-receipt{grid-template-columns:1fr 1fr;gap:12px}.hero-flow.staff-no-receipt .warehouse{grid-column:1/-1;grid-row:1}.hero-flow.staff-no-receipt .hero-action.blue{grid-column:1/-1;grid-row:2}}

.permission-check-wrap{flex-wrap:wrap;gap:16px 20px}

/* v0.14.3 — Gudang Utama Cut-Off (Superuser) */
#main-cutoff-panel[hidden],#cutoff-workspace[hidden],#cutoff-notice[hidden]{display:none!important}
.cutoff-panel{border-color:#f4cccc}
.cutoff-intro{display:flex;justify-content:space-between;gap:18px;padding:15px 17px;border-radius:13px;border:1px solid #f5d3c7;background:#fff8f3;margin:18px 0}
.cutoff-intro strong{color:#912d23}
.cutoff-intro p{font-size:12px;color:#8c6157;margin:4px 0 0;line-height:1.5}
.cutoff-restricted{align-self:flex-start;background:#912d23;color:#fff;font-size:10px;letter-spacing:.05em;font-weight:800;padding:5px 8px;border-radius:5px;white-space:nowrap}
.cutoff-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin:15px 0}
.cutoff-include{display:flex!important;align-items:center;gap:9px;font-size:12px!important;font-weight:650!important;margin:0!important}
.cutoff-include input,.cutoff-ack input{width:19px!important;height:19px!important;min-width:19px!important;accent-color:#ce1e2c}
.cutoff-notice{padding:12px 15px;border-radius:10px;background:#eff9f1;color:#246440;border:1px solid #cdebd3;margin:12px 0;line-height:1.55}
.cutoff-notice.error{background:#fff0f0;color:#a72230;border-color:#efc8c9}
.cutoff-filters{display:grid;grid-template-columns:minmax(150px,230px) minmax(220px,1fr);gap:12px;align-items:end;margin:14px 0}
.cutoff-filters label{min-width:0;margin:0!important}
.cutoff-filters input,.cutoff-filters select{display:block;margin-top:7px;min-height:45px}
.cutoff-progress{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;padding:12px;background:#f7f7f9;border-radius:10px;margin-bottom:10px;font-size:12px;font-weight:750}
.cutoff-table-wrap{max-height:570px;overflow:auto;border:1px solid #e5e7eb;border-radius:12px}
.cutoff-table{width:100%;min-width:665px;table-layout:fixed}
.cutoff-table thead th{position:sticky;top:0;z-index:2;background:#f5f6f8}
.cutoff-table th,.cutoff-table td{padding:10px 12px}
.cutoff-table th:first-child,.cutoff-table td:first-child{width:44%;min-width:180px}
.cutoff-table th:nth-child(2),.cutoff-table td:nth-child(2){width:11%;text-align:center}
.cutoff-table th:nth-child(3),.cutoff-table td:nth-child(3){width:15%;text-align:right}
.cutoff-table th:nth-child(4),.cutoff-table td:nth-child(4){width:17%}
.cutoff-table th:nth-child(5),.cutoff-table td:nth-child(5){width:13%;text-align:right}
.cutoff-table td:first-child small{display:block;color:#848792;margin-top:3px;font-size:10px}
.cutoff-table .cutoff-physical{width:100%;max-width:150px;padding:10px!important;text-align:right;font-weight:750;min-height:40px;border:1px solid #d9dfe8;border-radius:9px}
.cutoff-table tr.cutoff-filled{background:#f5fbf5}
.cutoff-table tr.cutoff-different{background:#fff9ef}
.cutoff-table .cutoff-delta{font-weight:800}
.cutoff-table .cutoff-delta.negative{color:#b42330}
.cutoff-table .cutoff-delta.positive{color:#087d49}
.cutoff-summary{padding:14px 15px;border:1px solid #e5e7eb;background:#fafafa;border-radius:11px;font-size:12px;line-height:1.7;margin:14px 0}
.cutoff-summary.warning{background:#fff9ef;border-color:#f2dfb7}
.cutoff-reason-label{display:block!important;margin-top:12px!important}
.cutoff-reason-label textarea{display:block;margin-top:7px;resize:vertical}
.cutoff-ack{display:flex!important;align-items:flex-start;gap:10px;margin:18px 0!important;padding:14px 15px;background:#fff8f8;border:1px solid #f5dada;border-radius:11px;line-height:1.45}
.cutoff-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:12px 0 28px}
.cutoff-actions small{color:#747987;flex:1;min-width:240px}
.cutoff-history-wrap{border-top:1px solid #eee;padding-top:17px;margin-top:18px}
.cutoff-history-wrap h3{font-size:15px}
.cutoff-history-card{border:1px solid #e7e8ee;border-radius:11px;padding:13px 16px;margin-top:9px}
.cutoff-history-card strong,.cutoff-history-card small{display:block}
.cutoff-history-card small{color:#7d8190;margin:5px 0}
.cutoff-history-card .cutoff-history-actions{display:flex;justify-content:flex-end}
.cutoff-detail-items{background:#f8f9fc;padding:10px;border-radius:9px;margin:10px 0;max-height:260px;overflow:auto;font-size:11px}
.cutoff-detail-items div{display:flex;justify-content:space-between;gap:12px;margin:6px 0;border-bottom:1px solid #eceef3;padding-bottom:5px}
@media(max-width:680px){.cutoff-filters{grid-template-columns:1fr}.cutoff-intro{flex-direction:column}.cutoff-toolbar{flex-direction:column;align-items:stretch}.cutoff-actions{flex-direction:column;align-items:stretch}.cutoff-actions button{width:100%}.cutoff-panel{padding:17px 12px}.cutoff-table-wrap{max-height:65vh}}
@media(prefers-reduced-motion:reduce){.cutoff-table *{animation:none!important;transition:none!important}}

/* v0.14.4 — Cancel cut-off and inventory report tables */
.cutoff-toolbar-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.cutoff-cancel{color:#a3242c!important;background:#fff3f3!important;border-color:#f5c9ca!important}
.cutoff-cancel[hidden]{display:none!important}
.inventory-report-panel{min-height:460px}
.inventory-report-filters{display:grid;grid-template-columns:minmax(200px,1fr) minmax(170px,220px) auto;gap:12px;align-items:end;margin:18px 0}
.inventory-report-filters label{min-width:0}
.inventory-report-filters input,.inventory-report-filters select{display:block;margin-top:7px;min-height:45px}
.inventory-report-filters button{height:45px;white-space:nowrap}
.inventory-report-tabs{display:flex;gap:8px;flex-wrap:wrap;border-bottom:1px solid #e5e7eb;padding-bottom:12px;margin:16px 0}
.inventory-report-tab{padding:11px 15px;background:#f6f6f7;border:1px solid #e5e7eb;border-radius:12px;color:#46505d;font-weight:750}
.inventory-report-tab.active{background:#fff0f0;color:#b51f30;border-color:#e9adb2}
.inventory-report-alert{margin:12px 0;padding:12px 14px;background:#f1f8f3;border-radius:10px;border:1px solid #d1e8d6;color:#286344;font-size:12px;line-height:1.5}
.inventory-report-alert.warning{background:#fff6e5;border-color:#f1dfb2;color:#8a5c19}
.inventory-report-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(115px,1fr));gap:10px;margin:13px 0}
.inventory-report-summary>div{padding:12px;background:#f8f9fa;border-radius:11px;border:1px solid #e5e9ef}
.inventory-report-summary b{display:block;font-size:23px}
.inventory-report-summary small{font-size:10px;color:#697180}
.inventory-report-table-wrap{overflow-x:auto}
.inventory-report-table-wrap table{min-width:740px;width:100%}
.inventory-report-table-wrap td,.inventory-report-table-wrap th{font-size:12px;padding:11px 9px}
.inventory-report-table-wrap tbody td:not(:first-child){white-space:nowrap}
.inventory-report-table-wrap td:first-child small{display:block;color:#8c929d;font-size:10px;margin-top:4px}
.inventory-negative{font-weight:800;color:#b32634}
.inventory-positive{font-weight:800;color:#207144}
.inventory-report-footnote{line-height:1.6;margin-top:18px}
@media(max-width:700px){.inventory-report-filters{grid-template-columns:1fr 1fr}.inventory-report-filters label:first-child{grid-column:1/-1}.inventory-report-filters button{grid-column:1/-1}}

/* v0.15 Inventory Control — readable exception/reconciliation panels, ivory-neutral styling */
.inventory-control-dashboard {display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:16px;padding:18px 20px}
.inventory-control-dashboard[hidden],.inventory-reconcile-detail[hidden]{display:none!important}
.inventory-control-dashboard h3{margin:0 0 5px;font-size:17px}
.inventory-control-dashboard p{color:#666;margin:0;font-size:13px}
.dashboard-exception-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.dashboard-exception-actions b{font-size:26px;color:#b71c2b}
.inventory-reconcile-detail{margin:16px 0;padding:20px;border:1px solid #dfcfbf;border-radius:12px;background:#fffcf8}
.inventory-reconcile-title{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px}
.inventory-reconcile-title h3{margin:0;font-size:17px}
.inventory-reconcile-detail p{font-size:13px;color:#555;line-height:1.5}
.inventory-review-metrics{display:flex;flex-wrap:wrap;gap:9px;margin:12px 0}
.inventory-review-metrics span{padding:9px 12px;border-radius:9px;border:1px solid #ebdfd6;background:#fff;font-size:12px;color:#675e58}
.inventory-review-metrics b{font-size:18px;color:#25211f;margin-right:5px}
.inventory-review-alert{padding:10px 13px;border-radius:8px;margin:8px 0;font-size:13px;line-height:1.5}
.inventory-review-alert.invalid{background:#fff1f0;color:#9d1e22;border-left:3px solid #d02b35}
.inventory-review-alert.caution{background:#fff9e7;color:#76510b;border-left:3px solid #d2a52d}
.inventory-review-table{overflow:auto;margin:12px 0;border:1px solid #e8ddd3;border-radius:8px}
.inventory-review-table table{min-width:960px;width:100%;font-size:12px}
.inventory-review-table th,.inventory-review-table td{padding:9px 10px;text-align:right;white-space:nowrap}
.inventory-review-table th:first-child,.inventory-review-table td:first-child{text-align:left}
.inventory-review-table td small{display:block;color:#8e827a}
.inventory-approval-form{margin-top:14px;padding:15px;border:1px solid #e0d4c8;border-radius:10px;display:grid;gap:12px}
.inventory-approval-form textarea{display:block;margin-top:6px;min-height:66px;max-width:100%;width:100%;box-sizing:border-box}
.inventory-review-confirm{display:flex;gap:9px;align-items:flex-start;font-size:13px}
.inventory-review-confirm input{margin-top:3px;flex-shrink:0}
.inventory-approval-form button{justify-self:start}
.inventory-review-blocked{font-weight:700;color:#aa2732!important}
.inventory-status-chip{display:inline-block;white-space:nowrap;padding:5px 8px;border-radius:999px;background:#f3f1ed;color:#584c44;font-size:11px;font-weight:700}
.inventory-status-chip.done,.inventory-reconciled-tag{background:#eaf7ef;color:#28774c}
.inventory-status-chip.waiting{background:#fff5de;color:#876010}
.inventory-status-chip.issue{background:#fcebec;color:#b52d36}
.inventory-reconciled-tag{display:block;width:max-content;font-size:11px;font-weight:700;border-radius:4px;padding:2px 5px;margin-top:5px}
.inventory-report-tabs{flex-wrap:wrap}
@media(max-width:640px){.inventory-control-dashboard{align-items:stretch;flex-direction:column}.dashboard-exception-actions{justify-content:space-between}.inventory-reconcile-detail{padding:13px}.inventory-approval-form button{width:100%;justify-self:stretch}}
/* Keep report refresh/export actions together at desktop and mobile widths. */
@media (min-width:701px){.inventory-report-filters{grid-template-columns:minmax(185px,1fr) minmax(150px,190px) auto auto}}
@media (max-width:700px){.inventory-report-filters{grid-template-columns:1fr 1fr}.inventory-report-filters button{grid-column:auto;width:100%}}

/* v0.15.1 Stock Harian operational KPI */
#daily-report .daily-kpi-hint{border:1px solid #d8b8a5;background:#fff9f1;color:#714933;padding:9px 12px;margin:7px 12px;border-radius:10px;font-size:12px;line-height:1.5;font-weight:600}
#daily-report .daily-kpi-hint.kpi-late{background:#fff0f0;border-color:#e3a2a5;color:#a52d36}
#daily-report .daily-history-table{min-width:1020px}
#daily-report .daily-history-table th:nth-child(3),#daily-report .daily-history-table td:nth-child(3){min-width:200px;white-space:normal;text-align:left}
#daily-report .daily-history-table td:nth-child(4){text-align:center}
#reports .inventory-report-table-wrap table{min-width:1100px}


/* KT INVENTORY v0.15.2 — mobile workspace: thin header + accessible off-canvas sidebar.
   The entire desktop sidebar, permissions and Progressive Search remain unchanged. */
.mobile-nav-heading{display:none}
#mobile-nav-backdrop{display:none}
@media (max-width:760px){
  html,body{max-width:100%;overflow-x:clip}
  body.mobile-nav-open{overflow:hidden}
  .shell,.shell.sidebar-collapsed{display:block!important;grid-template-columns:none!important;min-width:0}
  .shell>.sidebar,.shell.sidebar-collapsed>.sidebar{
    display:flex!important;flex-direction:column!important;justify-content:center!important;
    position:sticky!important;top:0!important;z-index:91!important;
    width:100%!important;height:57px!important;min-height:57px!important;max-height:57px!important;
    overflow:visible!important;padding:0 12px!important;
    border-right:0!important;border-bottom:1px solid #ece9e9!important;
    background:rgba(255,255,255,.98)!important;box-shadow:0 2px 10px #231a1c0b!important
  }
  .shell>.sidebar>.brand,.shell.sidebar-collapsed>.sidebar>.brand{
    display:flex!important;flex-direction:row!important;align-items:center!important;gap:9px!important;
    justify-content:flex-start!important;width:100%;height:56px!important;margin:0!important;padding:0!important
  }
  .shell>.sidebar .brand-icon,.shell.sidebar-collapsed>.sidebar .brand-icon{display:inline-block!important;font-size:25px!important;flex:0 0 auto;line-height:1}
  .shell>.sidebar .brand-text,.shell.sidebar-collapsed>.sidebar .brand-text{display:block!important;min-width:0;flex:1;overflow:hidden}
  .shell>.sidebar .brand-text b,.shell.sidebar-collapsed>.sidebar .brand-text b{
    display:block!important;font-size:12.5px!important;line-height:1.2!important;
    white-space:nowrap;text-overflow:ellipsis;overflow:hidden;letter-spacing:-.15px
  }
  .shell>.sidebar .brand-text small,.shell.sidebar-collapsed>.sidebar .brand-text small{display:none!important}
  .shell>.sidebar #sidebar-toggle,.shell.sidebar-collapsed>.sidebar #sidebar-toggle{
    display:grid!important;place-items:center!important;flex:0 0 42px!important;
    width:42px!important;height:42px!important;margin:0!important;padding:0!important;
    border:0!important;border-radius:12px!important;background:#f7e9ea!important;color:#ad2730!important;
    font-size:22px!important;line-height:1!important;cursor:pointer
  }
  .shell>.sidebar #sidebar-toggle:focus-visible,#mobile-nav-close:focus-visible,.sidebar .nav button:focus-visible{
    outline:3px solid #c92732!important;outline-offset:2px!important
  }
  .shell .sidebar-bottom{display:none!important}
  .shell>.sidebar>.nav,.shell.sidebar-collapsed>.sidebar>.nav{
    display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;
    position:fixed!important;left:0!important;top:0!important;bottom:0!important;
    width:min(85vw,325px)!important;max-width:325px!important;height:100dvh!important;
    z-index:96!important;gap:4px!important;padding:0 11px 26px!important;margin:0!important;
    overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;
    border:0!important;border-right:1px solid #e8e1e2!important;
    background:#fff!important;box-shadow:14px 0 40px #27191d24!important;
    visibility:hidden!important;opacity:0!important;
    transform:translateX(-105%)!important;transition:transform .21s ease,visibility .21s ease,opacity .21s ease!important;
    scrollbar-width:thin!important
  }
  .shell.mobile-nav-open>.sidebar>.nav{
    visibility:visible!important;opacity:1!important;transform:translateX(0)!important
  }
  .sidebar>.nav .mobile-nav-heading{
    display:flex!important;flex:0 0 59px!important;align-items:center!important;justify-content:space-between!important;
    position:sticky!important;top:0!important;z-index:2!important;
    margin:0 -11px 10px!important;padding:0 14px 0 20px!important;
    border-bottom:1px solid #eee9e9!important;background:#fff!important
  }
  .mobile-nav-heading strong{font-size:15px!important;color:#26262b!important}
  .sidebar>.nav #mobile-nav-close{
    display:grid!important;place-items:center!important;width:39px!important;height:39px!important;
    border:0!important;border-radius:11px!important;background:#fbe8e9!important;
    color:#ac2530!important;font-size:20px!important;cursor:pointer
  }
  .shell>.sidebar>.nav>button[data-view],.shell.sidebar-collapsed>.sidebar>.nav>button[data-view],
  .shell>.sidebar .settings-subnav>button[data-view],.shell.sidebar-collapsed>.sidebar .settings-subnav>button[data-view]{
    display:flex!important;flex:0 0 auto!important;align-items:center!important;justify-content:flex-start!important;
    width:100%!important;min-width:0!important;min-height:46px!important;height:auto!important;
    padding:12px 14px!important;margin:0!important;gap:13px!important;
    border:0!important;border-left:3px solid transparent!important;border-radius:12px!important;
    background:transparent;color:#424248;text-align:left!important;white-space:normal!important;
    font-size:14px!important;font-weight:600!important
  }
  .shell>.sidebar .nav button[data-view] em,.shell.sidebar-collapsed>.sidebar .nav button[data-view] em{
    display:inline!important;font-size:14px!important;font-style:normal!important;white-space:normal!important;line-height:1.25!important
  }
  .shell>.sidebar .nav button[data-view] span,.shell.sidebar-collapsed>.sidebar .nav button[data-view] span{
    display:grid!important;place-items:center!important;flex:0 0 24px!important;
    width:24px!important;font-size:21px!important;line-height:1.1!important
  }
  .shell>.sidebar .nav button[data-view].active,.shell.sidebar-collapsed>.sidebar .nav button[data-view].active{
    background:#fff0f1!important;color:#ba2630!important;border-left:3px solid #c92732!important
  }
  .shell>.sidebar .nav button[data-view]:hover{background:#fff4f4!important}
  .shell>.sidebar .nav [hidden],.shell>.sidebar [hidden]{display:none!important}
  .shell>.sidebar .settings-subnav,.shell.sidebar-collapsed>.sidebar .settings-subnav{
    display:grid!important;flex:0 0 auto!important;gap:3px!important;margin:3px 0 8px 16px!important;
    padding:0 0 0 9px!important;border-left:2px solid #f0d8da!important
  }
  .shell>.sidebar .settings-subnav[hidden]{display:none!important}
  #mobile-nav-backdrop:not([hidden]){
    display:block!important;position:fixed!important;inset:0!important;z-index:90!important;
    width:100%!important;height:100dvh!important;background:rgba(20,18,24,.43)!important;
    border:0!important;border-radius:0!important;padding:0!important;margin:0!important
  }
  .shell>.main{padding:12px 10px 65px!important;min-width:0!important}
  .main .topbar{
    display:flex!important;align-items:center!important;justify-content:space-between!important;
    flex-wrap:nowrap!important;gap:9px!important;margin:1px 0 14px!important
  }
  .main .topbar>div:first-child{flex:1 1 auto;min-width:0!important}
  .main .topbar .eyebrow{font-size:9px!important;letter-spacing:1.25px!important}
  .main .topbar h1{font-size:20px!important;line-height:1.18!important;margin:4px 0 0!important;letter-spacing:-.5px!important;overflow-wrap:anywhere}
  .main .topbar p{display:none!important}
  .main .user-panel{
    flex:0 1 auto;max-width:44%;min-width:0!important;gap:6px!important;
    border-radius:22px!important;padding:5px 6px 5px 9px!important;margin:0!important;
    box-shadow:0 2px 10px #26252d11!important
  }
  .main .user-panel .status-dot{flex:0 0 7px!important;width:7px!important;height:7px!important}
  .main .user-panel #current-user{
    font-size:11px!important;max-width:100%;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis
  }
  .main .user-panel .icon-button{flex:0 0 30px!important;width:30px!important;height:30px!important}
}
@media(max-width:390px){
  .main .topbar h1{font-size:18px!important}
  .main .user-panel{max-width:43%}
  .shell>.sidebar .brand-text b{font-size:11.5px!important}
}
@media(prefers-reduced-motion:reduce){
  .shell>.sidebar>.nav{transition:none!important}
}
