.k201-mobile-nav-entry{color:inherit;font:inherit;cursor:pointer;border-radius:9px;box-sizing:border-box;margin:3px 0;padding:10px 12px;text-align:left}
.k201-trade-view{position:fixed;inset:0;z-index:2147483450;background:#092039ab;display:flex;align-items:center;justify-content:center;font-family:Inter,system-ui,Arial,sans-serif}
.k201-trade-view-dialog{width:min(680px,100vw);max-height:96dvh;display:flex;flex-direction:column;background:#f7fafc;color:#1b405c;border-radius:14px;overflow:hidden;box-shadow:0 20px 70px #071b31a6}
.k201-trade-view-head{background:#163e62;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:15px 17px}
.k201-trade-view-close{border:0;background:#ffffff24;color:#fff;border-radius:8px;padding:5px 10px;font-size:18px}
.k201-tfilter{display:flex;align-items:center;justify-content:space-between;padding:10px 14px;border-bottom:1px solid #dce7ef;gap:10px}
.k201-tfilter select,.k201-tfilter button{border:1px solid #c9d8e6;border-radius:8px;background:white;color:#22526e;padding:8px;font:inherit;font-size:13px}
.k201-tcontent{overflow-y:auto;padding:12px 13px 25px;overscroll-behavior:contain}
.k201-tintro,.k201-tmuted{font-size:12px;color:#5a7388;line-height:1.5;margin:3px 0 11px}
.k201-tcards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:11px}.k201-tcard{border:1px solid #d9e7f0;background:#fff;border-radius:11px;padding:12px;display:flex;flex-direction:column;gap:8px}
.k201-tcard small{font-size:12px;color:#466e88}.k201-tcard strong{font-size:18px;font-variant-numeric:tabular-nums}
.k201-twarn{background:#fff6e6;color:#885105;border:1px solid #f3e0bb;border-radius:8px;padding:10px;font-size:12px;line-height:1.45}
.k201-tsection{background:white;border:1px solid #dce8f0;border-radius:10px;padding:12px;margin-top:12px}.k201-tsection h3{font-size:14px;margin:0 0 12px}
.k201-tline{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px;font-size:12px}.k201-tline strong,.k201-tline b{font-variant-numeric:tabular-nums}
.k201-tday{padding:11px 0;border-bottom:1px solid #eef3f6}.k201-tday:last-child{border-bottom:0}.k201-tday small{display:block;color:#617c93;margin-top:5px}.k201-tday .k201-twarn-text{color:#9c5e13}
.k201-tmsg{background:#e9f2f8;padding:11px 14px;min-height:15px;font-size:12px;color:#2d6584}.k201-trade-error{color:#b32836}
@media(max-width:720px){.k201-trade-view-dialog{width:100vw;max-height:100dvh;height:100dvh;border-radius:0}.k201-tcards{gap:7px}.k201-tcard{padding:10px}.k201-tcard strong{font-size:16px}.k201-tcontent{padding:10px}}

/* v207: a dated merchandise snapshot for trade, entirely read-only */
.k207-tcontrols{display:flex;align-items:center;gap:8px;margin:0 0 12px}
.k207-tcontrols select,.k207-tcontrols button{border:1px solid #c9dce9;border-radius:9px;background:#fff;color:#1c4f73;font-size:14px;font-weight:700;padding:8px 12px;min-height:39px}
.k207-tcontrols select{flex:1;min-width:0}.k207-tcontrols button:disabled{opacity:.35}
.k207-tday-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.k207-tday-card{min-width:0;border:1px solid #dce9f2;border-radius:10px;background:#f9fcff;padding:11px}
.k207-tday-card h4{font-size:13px;color:#1e4b6b;margin:0 0 11px}
.k207-tday-card .k201-tline{border-bottom:1px solid #e8eff5;padding:5px 0;align-items:flex-start}
.k207-tday-card .k201-tline span{flex:1}.k207-tday-card .k201-tline strong{white-space:nowrap;font-size:12px}
.k207-tday-card .k207-tend{border-radius:7px;background:#e7f5eb;padding:10px 7px;color:#0e7044;font-weight:750}
.k207-trade-in strong{color:#09844a}.k207-trade-muted{color:#6a8496}
.k201-tday{cursor:pointer;border-radius:6px}.k201-tday.k207-tday-active{background:#eaf4fa;padding:11px 7px}
@media(max-width:620px){.k207-tday-grid{grid-template-columns:1fr}}

/* v210: employee stock-only operations placed before monthly stocktake. */
.k210-tbar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-bottom:10px}
.k210-taction{min-width:0;border:1px solid #bcd0e1;border-radius:8px;background:#f3f8fc;color:#193f65;font-weight:700;font-size:12px;min-height:42px;padding:8px 4px}
.k210-tform{display:flex;flex-direction:column;gap:10px;padding:11px;border-radius:9px;background:#f5f9fc;border:1px solid #dce8f0}
.k210-tform h4{margin:0;color:#173e60;font-size:14px}
.k210-tfield{display:flex;flex-direction:column;gap:4px;color:#32516a;font-weight:650;font-size:12px}
.k210-tfield :is(input,select,textarea){box-sizing:border-box;width:100%;max-width:100%;padding:10px;border:1px solid #bacdda;background:white;border-radius:8px;color:#1d435e;font:inherit;font-size:15px}
.k210-tbuttons{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.k210-tbuttons button{min-height:43px;border-radius:8px;border:1px solid #b6c9d8;background:white;color:#1a496b;font-weight:750}
.k210-tbuttons .k210-tsave{background:#216aa5;color:white;border-color:#216aa5}
@media(max-width:360px){.k210-tbar{grid-template-columns:1fr 1fr}}

/* v211: collapsible dates and audited employee stock operations */
.k211-tdays>summary{cursor:pointer;font-weight:800;color:#193d5a;list-style:none;padding:5px 2px}
.k211-tdays>summary::-webkit-details-marker{display:none}
.k211-tentry{padding:11px 3px;border-top:1px solid #e3edf4;display:flex;flex-direction:column;gap:5px}
.k211-tentry b{font-size:13px;color:#173d5c}.k211-tentry small{font-size:11px;color:#617a8e}
.k211-tentry p{font-size:12px;color:#385b75;margin:2px 0 7px;overflow-wrap:anywhere}
.k211-tentry-buttons{display:flex;gap:8px}
.k211-tentry-buttons button{border-radius:8px;background:#edf5fb;border:1px solid #c5d7e6;padding:8px 14px;color:#25536d;font-weight:750}
.k211-tentry-buttons button:last-child{color:#a83543;border-color:#f0cbd0;background:#fff7f8}
.k211-voided{opacity:.65}

/* v212: representative physical count, separate from owner confirmation */
.k212-mobile-history{background:white;border:1px solid #d9e5ef;border-radius:11px;padding:12px}
.k212-mobile-history>summary{list-style:none;cursor:pointer;font-weight:850;color:#173b59;padding:6px 1px}
.k212-mobile-history>summary::-webkit-details-marker{display:none}
.k212-mobile-history .k211-tentry:first-of-type{margin-top:12px}
.k212-stocktake-button{display:block;width:100%;text-align:center;padding:13px 10px;border:1px solid #266cb1;border-radius:9px;background:#246ab0;color:white;font-weight:800;margin:14px 0 6px}
.k212-stocktake-editor{min-width:0}.k212-stocktake-form{margin:12px 0;padding:12px;background:#f2f8fc;border:1px solid #d7e5ef;border-radius:11px;display:flex;flex-direction:column;gap:10px}
.k212-stocktake-form .k210-tfield input{width:100%;box-sizing:border-box;border:1px solid #bdcdd9;border-radius:8px;padding:12px;font-size:16px}
.k212-stocktake-sum{background:#e6f4eb;color:#186343;padding:11px;border-radius:9px;font-weight:800}
.k212-sales-detail{margin-top:7px;padding:8px;background:#f1f7fa;border-radius:8px}
.k212-sales-detail summary{cursor:pointer;color:#4a6c83;font-weight:700;font-size:12px}

/* v213: red shortage, green sufficient/positive physical count */
.k213-diff{border-radius:9px;padding:12px 9px!important;margin-top:7px;font-weight:850}
.k213-surplus{background:#e4f5ec!important;color:#116c3e!important}
.k213-short{background:#fff0f0!important;color:#b62432!important}
[data-k213-hidden-calls="true"]{display:none!important}

/* v214: inventory totals and full-height status with iOS/Android safe-area spacing. */
.k214-tstock-group{background:#f8fbfd;border:1px solid #dce7ef;border-radius:10px;padding:12px;margin:12px 0}
.k214-tstock-group h4{font-size:13px;color:#163d5c;font-weight:850;margin:0 0 10px}
.k214-tstock-group .k201-tline{font-size:13px;min-width:0;gap:12px}
.k214-tstock-group .k201-tline strong{white-space:nowrap}
.k214-tstock-total{background:#e4f4ec;color:#155c3b;border-radius:8px;padding:13px 10px;font-weight:850}
.k214-tstock-total strong{font-size:17px}
.k214-tstock-candy{background:#eef5fa;border-radius:8px;padding:11px 10px;margin-top:13px;font-weight:800}
.k214-tstock-status{border-radius:8px;padding:11px 10px;margin-top:7px;font-size:13px;font-weight:800;overflow-wrap:anywhere}
.k214-tstock-excess{background:#fff2dd;color:#925904}
.k201-trade-view-dialog{min-height:0}
.k201-tcontent{min-height:0;flex:1 1 auto;overflow-y:auto}
.k201-tmsg{box-sizing:border-box;flex:0 0 auto;padding:12px 14px calc(28px + env(safe-area-inset-bottom, 0px));font-size:13px;line-height:1.5;overflow-wrap:anywhere}
@media(max-width:720px){.k201-trade-view{height:100dvh}.k201-trade-view-dialog{height:100dvh;max-height:100dvh}.k201-tmsg{padding-bottom:calc(30px + env(safe-area-inset-bottom, 0px));min-height:56px}}

/* v215: remove persistent status footer and let content use the freed height. */
.k201-trade-view-dialog{position:relative}
.k215-trade-toast[hidden]{display:none!important}
.k215-trade-toast{position:absolute;top:70px;right:12px;left:12px;z-index:8;background:#e8f5ed;color:#155d3b;border:1px solid #b5dcca;border-radius:10px;box-shadow:0 6px 24px #09203933;padding:12px 14px;font-size:13px;font-weight:700;line-height:1.45;overflow-wrap:anywhere;max-height:35dvh;overflow-y:auto}
.k215-trade-toast.k201-trade-error{background:#fff1f1;color:#a32836;border-color:#f0c5ca}

/* v216: optional stocktake comparison; never automatically show stale mismatch badges. */
.k216-treconcile{display:flex;align-items:center;gap:10px;min-height:44px;border:1px solid #d6e5ef;border-radius:9px;background:#f3f8fc;padding:8px 11px;box-sizing:border-box;color:#1d4a67;font-size:13px;font-weight:750;cursor:pointer;line-height:1.4}
.k216-treconcile input[type="checkbox"]{flex:0 0 auto;width:19px;height:19px;margin:0;accent-color:#216da7;cursor:pointer}
.k216-treconcile input[type="checkbox"]:disabled{opacity:.6;cursor:wait}
.k216-treconcile:has(input:checked){background:#eaf5fc;border-color:#a8d0e7}
