/* Kebarick POS — UI Transformation Stage 3 / 8
   Scope: catalog, inventory and stock-tools only. Preserve all backend contracts. */
body.pos-stage3{background:#f0f5fd;color:#14305a}
body.pos-stage3 .top{position:relative;z-index:5}
body.pos-stage3 .top .nav{max-width:1600px}
body.pos-stage3 .top a[aria-current="page"]{background:#ffffff25;border:1px solid #ffffff30;color:#fff}
body.pos-stage3 .pos-stock-workspace{width:100%;max-width:1536px;padding:20px clamp(15px,2vw,30px) 46px;margin:0 auto;min-width:0}
body.pos-stage3 .pos-hero{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:14px;flex-wrap:wrap}
body.pos-stage3 .pos-hero h1{font-size:clamp(25px,2.4vw,34px);line-height:1.15;margin:3px 0 7px;color:#0b3e86}
body.pos-stage3 .pos-hero p{margin:0;max-width:760px;color:#586e8d;font-size:14px}
body.pos-stage3 .pos-overline{font-size:10px;letter-spacing:.12em;color:#1b67c7;font-weight:850;display:block;text-transform:uppercase}
body.pos-stage3 .pos-hero-actions,body.pos-stage3 .pos-inline-actions{display:flex;gap:9px;flex-wrap:wrap;align-items:center}
body.pos-stage3 :is(.pos-action-link,.pos-primary-action){min-height:39px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-size:13px;padding:9px 13px;border-radius:9px;font-weight:750;border:1px solid #d1e1f8;text-decoration:none}
body.pos-stage3 .pos-action-link{background:#eef5ff;color:#1256ae}
body.pos-stage3 .pos-action-link:hover{background:#dfeeff}
body.pos-stage3 .pos-primary-action{background:#1262d8;color:#fff;border-color:#1262d8;box-shadow:0 3px 10px #0b5bc02c}
body.pos-stage3 .pos-context{display:flex;align-items:center;gap:9px 12px;flex-wrap:wrap;background:#fff;border:1px solid #dde7f6;padding:11px 14px;border-radius:13px;margin:0 0 14px;box-shadow:0 5px 20px #12356a06}
body.pos-stage3 .pos-context label{margin:0;font-weight:800;color:#214570}
body.pos-stage3 .pos-context select{width:auto;flex:0 1 220px;min-width:145px;margin:0;max-width:260px;height:39px;background:#f8fbff;font-size:13px;font-weight:700}
body.pos-stage3 .pos-context button{min-height:38px}
body.pos-stage3 .pos-context-note{margin-left:auto;font-size:11px;color:#7385a2}
body.pos-stage3 .stats{margin-bottom:12px;gap:11px}
body.pos-stage3 .stats .stat{padding:15px 18px;background:#fff;border:1px solid #dce6f6;border-radius:13px;box-shadow:0 4px 18px #12356a09}
body.pos-stage3 .stats .stat:before{display:block;width:28px;height:3px;background:#1e6ce0;content:"";border-radius:4px;margin-bottom:7px}
body.pos-stage3 .stats .stat b{font-size:27px;color:#0c479b;line-height:1.2;margin-top:4px}
body.pos-stage3 .pos-section-nav{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:13px;border-bottom:1px solid #dae5f5;padding-bottom:8px}
body.pos-stage3 .pos-section-nav a{color:#255798;font-size:13px;font-weight:750;padding:8px 13px;border-radius:8px;background:#e5eefc}
body.pos-stage3 .pos-section-nav a:hover,body.pos-stage3 .pos-section-nav a:focus-visible{background:#cfe2ff}
body.pos-stage3 .pos-stock-main-grid{display:grid;grid-template-columns:minmax(0,1.83fr) minmax(300px,.85fr);gap:14px;align-items:start}
body.pos-stage3 .pos-stock-main-grid>*,body.pos-stage3 .pos-management-row>*{min-width:0}
body.pos-stage3 :is(.card,.pos-inline-card){background:#fff;border:1px solid #dfe8f5;border-radius:14px;box-shadow:0 5px 18px #1c4c8807;padding:18px;margin:0}
body.pos-stage3 .pos-stock-side{background:transparent;border:0;padding:0;display:grid;gap:14px;color:#142c51;min-width:0}
body.pos-stage3 .pos-panel-heading{display:flex;align-items:start;justify-content:space-between;gap:13px;margin-bottom:12px;flex-wrap:wrap}
body.pos-stage3 .pos-panel-heading h2,body.pos-stage3 .pos-inline-card h2,body.pos-stage3 .pos-steps h2{font-size:19px;line-height:1.2;margin:2px 0 4px;color:#104790}
body.pos-stage3 .pos-panel-heading p,body.pos-stage3 .pos-stock-side p{font-size:12px;color:#687c9a;margin:4px 0}
body.pos-stage3 .pos-priority-card{min-height:320px}
body.pos-stage3 .pos-search-line{display:flex;gap:9px;align-items:end;margin:0 0 14px}
body.pos-stage3 .pos-search-input{flex:1;min-width:0}
body.pos-stage3 .pos-search-input label{margin:0 0 4px}
body.pos-stage3 .pos-search-line input{border:1.5px solid #a7c3ec;border-radius:9px;min-height:42px}
body.pos-stage3 .pos-search-line button{min-height:42px}
body.pos-stage3 .pos-table-scroll{width:100%;max-width:100%;overflow-x:auto;overflow-y:visible;border:1px solid #e4eaf5;border-radius:10px}
body.pos-stage3 .pos-table-scroll table{font-size:12px;min-width:620px;border-radius:0;margin:0}
body.pos-stage3 .pos-stock-side .pos-table-scroll table{min-width:480px}
body.pos-stage3 .pos-table-scroll th{background:#f0f5fc;color:#41608b;text-transform:uppercase;letter-spacing:.02em;font-size:11px;white-space:nowrap}
body.pos-stage3 .pos-table-scroll td{font-size:12px;vertical-align:middle;color:#233956}
body.pos-stage3 .pos-table-scroll tr:nth-child(even) td{background:#fbfdff}
body.pos-stage3 .pos-table-scroll tr:hover td{background:#f0f7ff}
body.pos-stage3 .pos-table-scroll .mini{border-radius:7px;background:#0f60c8;color:#fff;font-weight:750;white-space:nowrap;padding:7px 8px}
body.pos-stage3 .pos-table-scroll .mini.secondary{background:#e7f1ff;color:#1555a0}
body.pos-stage3 .pos-footnote{font-size:11px;line-height:1.5;color:#7889a3;margin:11px 0 0}
body.pos-stage3 .pos-block-link{width:100%;margin-top:13px}
body.pos-stage3 .pos-guide a{display:block;background:#eff5fd;border:1px solid #e4ecf7;border-radius:9px;color:#164f9b;padding:10px 12px;margin:7px 0;font-weight:750;font-size:12px}
body.pos-stage3 .pos-guide h2{font-size:18px;margin:0 0 9px}
body.pos-stage3 .pos-wide-card{margin:14px 0}
body.pos-stage3 .pos-management-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin:14px 0}
body.pos-stage3 .pos-management-row.pos-two-columns{grid-template-columns:repeat(2,minmax(0,1fr))}
body.pos-stage3 .pos-tool-drawer{padding:0;align-self:start;overflow:hidden}
body.pos-stage3 .pos-tool-drawer>summary{cursor:pointer;list-style:none;padding:17px 19px;display:flex;flex-direction:column;gap:5px;position:relative;padding-right:38px}
body.pos-stage3 .pos-tool-drawer>summary::-webkit-details-marker{display:none}
body.pos-stage3 .pos-tool-drawer>summary:after{content:'+';position:absolute;right:14px;top:13px;color:#0e60c3;font-size:24px}
body.pos-stage3 .pos-tool-drawer[open]>summary:after{content:'−'}
body.pos-stage3 .pos-tool-drawer>summary strong{color:#174b96;font-size:15px}
body.pos-stage3 .pos-tool-drawer>summary span{color:#6e819b;font-size:12px}
body.pos-stage3 .pos-drawer-body{border-top:1px solid #e6edf8;padding:14px 18px 18px}
body.pos-stage3 .pos-tool-drawer .twocol{grid-template-columns:repeat(2,minmax(0,1fr))}
body.pos-stage3 .pos-tool-drawer form{gap:6px}
body.pos-stage3 .pos-tool-drawer label,body.pos-stage3 .pos-management-row label{font-size:12px;font-weight:750}
body.pos-stage3 .pos-tool-drawer :is(input,select),body.pos-stage3 .pos-management-row :is(input,select){max-width:100%;width:100%}
body.pos-stage3 .pos-two-tools{display:grid;gap:16px}
body.pos-stage3 .pos-drawer-body>form#product button{align-self:end}
body.pos-stage3 .pos-inline-actions{margin:12px 0}
body.pos-stage3 .pos-purchase-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(290px,.86fr);gap:14px;align-items:start}
body.pos-stage3 .pos-purchase-grid .twocol{grid-template-columns:repeat(2,minmax(0,1fr))}
body.pos-stage3 .pos-purchase-grid .twocol>button{grid-column:1/-1;justify-self:start}
body.pos-stage3 .pos-result-area{margin-top:18px;border-top:1px solid #e1eaf6;padding-top:14px;overflow-x:auto}
body.pos-stage3 .pos-result-area h3{font-size:14px;color:#214f92;margin-bottom:9px}
body.pos-stage3 .pos-result-area table{min-width:550px}
body.pos-stage3 .pos-steps>div{display:flex;align-items:center;gap:12px;padding:11px 0;border-bottom:1px solid #e8eff8;color:#4b6387;font-size:13px}
body.pos-stage3 .pos-steps>div b{flex:none;display:grid;place-items:center;width:26px;height:26px;background:#e5f0ff;color:#1760c4;border-radius:50%}
body.pos-stage3 .pos-warehouse-drawer{margin-top:14px}
body.pos-stage3 .pos-warehouse-drawer .pos-drawer-body{max-width:800px}
body.pos-stage3 .pos-scan-field{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:9px}
body.pos-stage3 .pos-scan-field label{grid-column:1/-1}
body.pos-stage3 .pos-scan-field input{font-size:16px;min-height:48px;border:2px solid #3d86e1}
body.pos-stage3 .pos-scan-field button{min-height:48px}
body.pos-stage3 .pos-scan-result{margin:14px 0;padding:14px;border-radius:9px;border:1px solid #d3e2f5;background:#f2f7ff;color:#154e9c;font-weight:750;min-height:54px}
body.pos-stage3 .pos-inline-card{background:#f8fbff;box-shadow:none;margin-top:18px}
body.pos-stage3 .pos-input-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin:12px 0}
body.pos-stage3 .pos-stock-side #receive{width:100%;margin:12px 0}
body.pos-stage3 .pos-compact-history{max-height:200px;overflow:auto;margin-top:12px;font-size:12px}
body.pos-stage3 .pos-edit-dialog{max-width:min(94vw,520px);width:100%;border:1px solid #d5e3f7;border-radius:16px;box-shadow:0 25px 80px #102f5f55;padding:0;color:#213a60;background:#fff}
body.pos-stage3 .pos-edit-dialog::backdrop{background:#0d26448f}
body.pos-stage3 .pos-edit-dialog form{padding:20px;display:block}
body.pos-stage3 .pos-dialog-top{display:flex;justify-content:space-between;gap:10px;align-items:start;border-bottom:1px solid #dfebfa;padding-bottom:12px;margin-bottom:12px}
body.pos-stage3 .pos-dialog-top h2{font-size:22px;margin:2px 0}
body.pos-stage3 .pos-dialog-top p{font-size:12px;margin:0}
body.pos-stage3 .pos-dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:17px}
body.pos-stage3 .pos-dialog-error{font-weight:750;font-size:12px;color:#b1262c;margin-top:8px}
body.pos-stage3 .pos-edit-dialog label{font-size:12px;font-weight:750;margin:12px 0 5px}
@media(max-width:1080px){body.pos-stage3 .pos-stock-main-grid,body.pos-stage3 .pos-purchase-grid{grid-template-columns:minmax(0,1.4fr) minmax(260px,.88fr)}body.pos-stage3 .pos-management-row{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){body.pos-stage3 .pos-stock-main-grid,body.pos-stage3 .pos-purchase-grid,body.pos-stage3 .pos-management-row,body.pos-stage3 .pos-management-row.pos-two-columns{grid-template-columns:1fr}body.pos-stage3 .pos-stock-workspace{padding:13px 12px 30px}body.pos-stage3 .pos-hero-actions{width:100%;gap:7px}body.pos-stage3 .pos-hero-actions>*{flex:1}body.pos-stage3 .pos-context{gap:7px}body.pos-stage3 .pos-context label{width:45px}body.pos-stage3 .pos-context select{flex:1 1 calc(100% - 75px);width:auto;max-width:none}body.pos-stage3 .pos-context-note{margin:4px 0 0}body.pos-stage3 .stats{grid-template-columns:repeat(3,minmax(0,1fr))}body.pos-stage3 .stats .stat{padding:11px}body.pos-stage3 .stats .stat b{font-size:20px}body.pos-stage3 .stats .stat span{font-size:10px}body.pos-stage3 .pos-priority-card{min-height:0}body.pos-stage3 :is(.card,.pos-inline-card){padding:13px}body.pos-stage3 .pos-tool-drawer{padding:0}body.pos-stage3 .pos-tool-drawer .twocol,body.pos-stage3 .pos-purchase-grid .twocol,body.pos-stage3 .pos-input-grid{grid-template-columns:1fr}body.pos-stage3 .pos-scan-field{grid-template-columns:minmax(0,1fr)}body.pos-stage3 .pos-section-nav{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin}body.pos-stage3 .pos-section-nav a{flex:none}body.pos-stage3 .pos-panel-heading{gap:6px}body.pos-stage3 .pos-search-line{flex-wrap:nowrap}body.pos-stage3 .pos-stock-side .pos-table-scroll{max-width:calc(100vw - 53px)}body.pos-stage3 .pos-context button{flex:1}body.pos-stage3 .pos-result-area{max-width:100%}}
@media(prefers-reduced-motion:no-preference){body.pos-stage3 a,body.pos-stage3 button{transition:background .12s ease,color .12s ease}}
