/* POS_APP_STYLE_V1 */
:root{
  --bg:#e9eef5;--panel:#fff;--ink:#0f172a;--muted:#64748b;--line:#dbe3ee;
  --nav:#0f172a;--nav2:#182235;--primary:#0f766e;--primary2:#14b8a6;
  --blue:#2563eb;--orange:#ea580c;--red:#dc2626;--green:#16a34a;
  --shadow:0 18px 50px rgba(15,23,42,.12);--radius:18px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--bg);overflow:hidden}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
.hidden{display:none!important}
.no-print{}
.loader{position:fixed;inset:0;z-index:9999;background:rgba(15,23,42,.82);display:none;align-items:center;justify-content:center;backdrop-filter:blur(8px)}
.loader.show{display:flex}.loader-box{background:#fff;border-radius:24px;padding:28px 34px;display:flex;align-items:center;gap:15px;box-shadow:var(--shadow)}
.spinner{width:28px;height:28px;border:3px solid #dbe3ee;border-top-color:var(--primary);border-radius:50%;animation:spin .75s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
.login-screen{height:100vh;display:grid;grid-template-columns:1.1fr .9fr;align-items:center;padding:6vw;background:radial-gradient(circle at 15% 20%,rgba(20,184,166,.22),transparent 30%),linear-gradient(135deg,#0b1220,#16243b 62%,#0b1220);color:#fff}
.login-brand{display:flex;align-items:center;gap:24px}.login-logo{width:120px;height:120px;border-radius:28px;background:linear-gradient(135deg,var(--primary2),#22c55e);display:grid;place-items:center;font-size:36px;font-weight:950;box-shadow:0 28px 70px rgba(20,184,166,.26)}
.eyebrow,.dialog-kicker{font-size:11px;font-weight:900;letter-spacing:.15em;color:var(--primary2)}
.login-brand h1{font-size:58px;margin:8px 0 0;letter-spacing:-.055em}.login-brand p{font-size:24px;color:#b8c3d7;margin:6px 0}
.login-card{width:min(480px,100%);justify-self:end;background:#fff;color:var(--ink);padding:30px;border-radius:28px;box-shadow:0 34px 90px rgba(0,0,0,.32);border:1px solid rgba(255,255,255,.5)}
.login-card-head{display:flex;gap:14px;align-items:center;margin-bottom:24px}.login-card-head>span{width:56px;height:56px;border-radius:18px;background:#ecfdf5;display:grid;place-items:center;font-size:26px}.login-card h2{margin:0;font-size:25px}.login-card p{margin:5px 0 0;color:var(--muted);font-size:13px;line-height:1.5}
.field-label{display:block;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.06em;color:#475569;margin:14px 0 7px}
.input-shell{display:flex;align-items:center;gap:8px;min-height:55px;border:1px solid #cbd5e1;border-radius:15px;padding:0 8px 0 14px;background:#f8fafc}.input-shell:focus-within{border-color:var(--primary);box-shadow:0 0 0 4px rgba(15,118,110,.12);background:#fff}.input-shell>span{color:#64748b}.input-shell input{flex:1;min-width:0;border:0;outline:0;background:transparent;font-size:16px;font-weight:750}.input-shell.light{background:#fff;min-height:46px}.key-open{width:38px;height:38px;border:0;border-radius:10px;background:#e2e8f0;color:#334155;font-weight:900}.key-open:hover{background:#cbd5e1}
.login-submit,.primary-btn{border:0;background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff;font-weight:950;border-radius:14px;min-height:48px;padding:0 18px;box-shadow:0 12px 25px rgba(15,118,110,.20)}
.login-submit{width:100%;min-height:58px;margin-top:20px;display:flex;justify-content:space-between;align-items:center;padding:0 22px;font-size:17px}.inline-message{min-height:20px;margin-top:10px;font-size:12px;font-weight:800;color:var(--red)}
.pos-screen{height:100vh;display:grid;grid-template-rows:72px 1fr;background:#eef2f7}.pos-header{background:linear-gradient(90deg,var(--nav),var(--nav2));color:#fff;display:grid;grid-template-columns:minmax(230px,1fr) auto minmax(230px,.8fr) auto;align-items:center;gap:18px;padding:0 20px;box-shadow:0 8px 28px rgba(15,23,42,.22);z-index:10}
.brand-block,.operator-card{display:flex;align-items:center;gap:11px}.brand-mark{width:42px;height:42px;border-radius:13px;background:linear-gradient(135deg,var(--primary2),#22c55e);display:grid;place-items:center;font-weight:950}.brand-block strong{display:block;font-size:16px}.brand-block small{display:block;color:#9fb0c6;margin-top:2px}
.mode-switch{display:flex;padding:4px;background:#0b1322;border:1px solid rgba(255,255,255,.1);border-radius:14px}.mode-switch button{border:0;background:transparent;color:#94a3b8;min-height:40px;padding:0 16px;border-radius:10px;font-weight:950}.mode-switch button.active{background:#fff;color:#0f172a;box-shadow:0 7px 16px rgba(0,0,0,.18)}
.clock-block{text-align:right}.clock-block strong{display:block;font-size:22px;font-variant-numeric:tabular-nums}.clock-block small{display:block;color:#94a3b8;font-size:11px;margin-top:2px}.header-actions{display:flex;gap:7px}.head-btn{height:42px;min-width:42px;border:1px solid rgba(255,255,255,.12);border-radius:11px;background:rgba(255,255,255,.08);color:#fff;font-weight:900}.head-btn.debt{padding:0 12px}.head-btn.danger{background:rgba(220,38,38,.18);color:#fecaca}
.pos-layout{display:grid;grid-template-columns:235px minmax(0,1fr) 410px;gap:12px;padding:12px;min-height:0}.left-panel,.center-panel,.cart-panel{background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 8px 24px rgba(15,23,42,.055);min-height:0}.left-panel{padding:14px;display:flex;flex-direction:column}.operator-card{padding:10px;border:1px solid #e2e8f0;border-radius:14px;background:#f8fafc}.avatar{width:42px;height:42px;border-radius:50%;background:#ccfbf1;color:#115e59;display:grid;place-items:center;font-weight:950}.operator-card small,.operator-card strong,.operator-card span{display:block}.operator-card small{font-size:9px;color:#94a3b8;text-transform:uppercase;font-weight:900}.operator-card strong{font-size:13px;margin-top:2px}.operator-card span{font-size:10px;color:#64748b;margin-top:1px}.side-label{font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.06em;color:#64748b;margin:15px 0 6px}.side-select,.wide-select{width:100%;min-height:42px;border:1px solid #cbd5e1;border-radius:11px;background:#fff;padding:0 10px;font-weight:800;color:#0f172a}.side-separator{height:1px;background:#e2e8f0;margin:15px 0}.side-title{display:flex;justify-content:space-between;align-items:center;font-size:12px;font-weight:950}.side-title button{border:0;background:#f1f5f9;border-radius:8px;width:30px;height:30px}.category-list{display:grid;gap:6px;margin-top:9px;overflow:auto}.category-list button{border:1px solid transparent;background:#f8fafc;color:#475569;border-radius:11px;min-height:39px;text-align:left;padding:0 11px;font-weight:850;display:flex;justify-content:space-between;align-items:center}.category-list button.active{background:#ccfbf1;color:#115e59;border-color:#99f6e4}.side-bottom{margin-top:auto;padding-top:12px;border-top:1px solid #e2e8f0}.connection{display:flex;align-items:center;gap:7px;font-size:11px;font-weight:850}.connection i{width:8px;height:8px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 4px #dcfce7}.side-bottom small{display:block;color:#94a3b8;font-size:9px;margin-top:6px}
.center-panel{padding:14px;overflow:auto}.search-toolbar{display:grid;grid-template-columns:1fr auto;gap:9px}.search-main{display:flex;align-items:center;gap:9px;border:2px solid #cbd5e1;border-radius:14px;padding:0 8px 0 15px;min-height:50px}.search-main:focus-within{border-color:var(--primary);box-shadow:0 0 0 4px rgba(15,118,110,.09)}.search-main>span{font-size:25px;color:#64748b}.search-main input{flex:1;border:0;outline:0;font-size:17px;font-weight:800}.soft-btn{border:1px solid #cbd5e1;background:#fff;color:#334155;border-radius:12px;min-height:44px;padding:0 14px;font-weight:900}.catalog-meta{display:flex;justify-content:space-between;align-items:center;margin:15px 2px 10px}.catalog-meta strong{font-size:15px}.catalog-meta span{font-size:10px;color:#64748b;margin-left:8px}.scan-status{font-size:10px;color:#16a34a;font-weight:900}.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:10px}.product-card{border:1px solid #dbe3ee;background:#fff;border-radius:15px;overflow:hidden;text-align:left;min-height:220px;display:flex;flex-direction:column;transition:.14s;position:relative}.product-card:hover{transform:translateY(-2px);border-color:#5eead4;box-shadow:0 14px 30px rgba(15,118,110,.12)}.product-card.out{opacity:.48;cursor:not-allowed}.product-img{height:105px;background:linear-gradient(135deg,#e2e8f0,#f8fafc);display:grid;place-items:center;color:#94a3b8;font-size:35px;overflow:hidden}.product-img img{width:100%;height:100%;object-fit:cover}.product-body{padding:10px;display:flex;flex-direction:column;flex:1}.product-category{font-size:9px;font-weight:900;text-transform:uppercase;color:var(--primary);letter-spacing:.05em}.product-name{font-size:14px;font-weight:950;line-height:1.2;margin-top:4px;min-height:34px}.product-meta{display:flex;justify-content:space-between;color:#94a3b8;font-size:9px;margin-top:5px}.product-price{font-size:17px;font-weight:950;color:#0f766e;margin-top:auto;padding-top:9px}.product-add{position:absolute;right:9px;bottom:9px;width:34px;height:34px;border:0;border-radius:10px;background:#0f766e;color:#fff;font-size:20px;font-weight:950}
.instant-card{max-width:820px;margin:10px auto;border:1px solid #dbe3ee;border-radius:22px;padding:24px;background:linear-gradient(135deg,#fff,#f0fdfa);box-shadow:var(--shadow)}.instant-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:20px}.instant-head h2{font-size:30px;margin:8px 0 5px;letter-spacing:-.04em}.instant-head p{margin:0;color:#64748b}.instant-tag{display:inline-flex;padding:5px 9px;border-radius:999px;background:#ccfbf1;color:#115e59;font-size:9px;font-weight:950}.instant-icon{font-size:54px}.amount-input{display:flex;align-items:center;border:2px solid #f59e0b;background:#fff;border-radius:15px;padding:0 8px 0 14px;min-height:65px}.amount-input span{font-size:21px;font-weight:950;color:#92400e}.amount-input input{flex:1;min-width:0;border:0;outline:0;background:transparent;text-align:right;font-size:34px;font-weight:950;color:#111827}.amount-input.compact{min-height:48px;border-width:1px;border-color:#cbd5e1}.amount-input.compact input{font-size:20px}.quick-amounts{display:grid;grid-template-columns:repeat(6,1fr);gap:7px;margin:11px 0 18px}.quick-amounts button{border:1px solid #fed7aa;background:#fff7ed;color:#9a3412;border-radius:10px;min-height:38px;font-weight:900}.kantin-hint{max-width:820px;margin:12px auto;display:flex;gap:12px;border:1px solid #bfdbfe;background:#eff6ff;border-radius:16px;padding:15px;color:#1e3a8a}.kantin-hint>div:first-child{font-size:26px}.kantin-hint strong{display:block}.kantin-hint p{margin:4px 0 0;font-size:12px;line-height:1.5}
.cart-panel{display:flex;flex-direction:column;overflow:hidden}.cart-head{display:flex;justify-content:space-between;align-items:center;padding:14px 15px;border-bottom:1px solid #e2e8f0}.cart-head small{font-size:9px;color:#94a3b8;font-weight:900}.cart-head h2{font-size:19px;margin:2px 0 0}.cart-head button{border:1px solid #cbd5e1;background:#fff;border-radius:10px;padding:7px 10px;font-weight:900;color:#475569}.cart-list{flex:1;min-height:160px;overflow:auto;padding:8px 14px}.cart-empty{height:100%;min-height:180px;display:grid;place-items:center;align-content:center;text-align:center;color:#94a3b8;gap:5px}.cart-empty>div{font-size:42px}.cart-empty strong{color:#475569}.cart-empty span{font-size:11px}.cart-item{display:grid;grid-template-columns:1fr auto;gap:8px;padding:10px 0;border-bottom:1px solid #edf2f7}.cart-item-name{font-size:12px;font-weight:950}.cart-item-sub{font-size:9px;color:#94a3b8;margin-top:3px}.cart-item-total{text-align:right;font-size:12px;font-weight:950}.qty-control{display:flex;align-items:center;justify-content:flex-end;gap:5px;margin-top:6px}.qty-control button{width:27px;height:27px;border:1px solid #cbd5e1;background:#fff;border-radius:8px;font-weight:950}.qty-control input{width:48px;height:27px;border:1px solid #cbd5e1;border-radius:8px;text-align:center;font-weight:900}.remove-item{color:#dc2626!important;background:#fef2f2!important;border-color:#fecaca!important}.payment-area{border-top:1px solid #dbe3ee;padding:12px 14px;background:#f8fafc}.total-box{display:flex;justify-content:space-between;align-items:center;background:#0f172a;color:#fff;border-radius:13px;padding:11px 13px}.total-box span{font-size:10px;font-weight:900;color:#94a3b8}.total-box strong{font-size:23px}.payment-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:10px}.payment-tabs button{border:1px solid #cbd5e1;background:#fff;border-radius:10px;min-height:38px;font-size:11px;font-weight:900;color:#475569}.payment-tabs button.active{background:#0f766e;color:#fff;border-color:#0f766e}.payment-pane{margin-top:8px}.change-row{display:flex;justify-content:space-between;align-items:center;margin-top:7px;padding:8px 10px;border:1px dashed #cbd5e1;border-radius:10px;background:#fff;font-size:11px}.change-row strong{font-size:15px;color:#166534}.debt-row strong{color:#b45309}.lookup-list{max-height:160px;overflow:auto;border:1px solid #cbd5e1;border-radius:10px;background:#fff;margin-top:5px;box-shadow:0 10px 25px rgba(15,23,42,.12)}.lookup-item{padding:9px 10px;border-bottom:1px solid #edf2f7;display:flex;justify-content:space-between;gap:8px;cursor:pointer}.lookup-item:last-child{border-bottom:0}.lookup-item:hover{background:#f0fdfa}.lookup-item strong{font-size:11px}.lookup-item small{display:block;color:#64748b;font-size:9px;margin-top:2px}.lookup-item b{font-size:10px;color:#b45309}.selected-card{margin-top:7px;border:1px solid #99f6e4;background:#f0fdfa;border-radius:11px;padding:9px;font-size:11px}.selected-card.empty{color:#94a3b8;border-style:dashed;background:#fff}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:7px}.checkout-btn{width:100%;min-height:57px;border:0;border-radius:13px;background:linear-gradient(135deg,#0f766e,#14b8a6);color:#fff;margin-top:10px;display:flex;justify-content:space-between;align-items:center;padding:0 15px;box-shadow:0 13px 26px rgba(15,118,110,.22)}.checkout-btn span{font-size:11px;font-weight:950}.checkout-btn strong{font-size:16px}.checkout-btn:disabled{opacity:.5;cursor:not-allowed}
.modal-layer{position:fixed;inset:0;background:rgba(2,6,23,.55);backdrop-filter:blur(7px);z-index:1000;display:none}.modal-layer.show{display:block}.modal{position:fixed;inset:0;z-index:1100;display:none;align-items:center;justify-content:center;padding:24px}.modal.show{display:flex}.dialog{width:min(760px,96vw);max-height:92vh;overflow:auto;background:#fff;border-radius:22px;box-shadow:0 35px 100px rgba(2,6,23,.38);padding:20px}.dialog.small{width:min(440px,94vw);text-align:center}.dialog.wide{width:min(1180px,97vw)}.dialog-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:14px;text-align:left}.dialog-head h3{margin:3px 0 0;font-size:24px}.dialog-head>button{width:38px;height:38px;border:0;border-radius:11px;background:#f1f5f9;font-size:24px;color:#475569}.message-icon,.lock-symbol{width:76px;height:76px;border-radius:24px;background:#ecfdf5;color:#047857;display:grid;place-items:center;font-size:38px;margin:0 auto 14px}.dialog.small h3{font-size:25px;margin:0}.dialog.small p{color:#64748b;line-height:1.55}.dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:16px}.dialog-actions.center{justify-content:center}.primary-btn.full{width:100%;margin-top:14px}.confirm-text{font-size:14px;color:#475569;line-height:1.6;text-align:left;padding:12px;border-radius:12px;background:#f8fafc}.animate-pop{animation:pop .18s ease-out}@keyframes pop{from{opacity:0;transform:scale(.94)}to{opacity:1;transform:scale(1)}}.animate-slide{animation:slide .22s ease-out}@keyframes slide{from{opacity:0;transform:translateY(26px)}to{opacity:1;transform:none}}
.receipt-dialog{width:min(410px,96vw);padding:0;overflow:hidden}.receipt-dialog .dialog-head,.receipt-dialog .dialog-actions{padding:16px;margin:0}.receipt-paper{width:330px;max-width:100%;margin:0 auto;background:#fff;color:#111;padding:18px 16px;font-family:"Courier New",monospace;font-size:12px;line-height:1.45}.receipt-center{text-align:center}.receipt-title{font-size:17px;font-weight:900}.receipt-rule{border-top:1px dashed #111;margin:9px 0}.receipt-row{display:flex;justify-content:space-between;gap:10px}.receipt-row.total{font-size:15px;font-weight:900}.receipt-item{margin-bottom:5px}.receipt-item .receipt-row{padding-left:10px}.receipt-note{text-align:center;font-size:10px;margin-top:10px}.debt-search-row{display:grid;grid-template-columns:1fr auto;gap:8px}.debt-center-grid{display:grid;grid-template-columns:340px 1fr;gap:12px;margin-top:12px;min-height:420px}.customer-cards{display:grid;gap:8px;max-height:560px;overflow:auto}.customer-card{border:1px solid #dbe3ee;border-radius:13px;padding:11px;background:#fff;text-align:left}.customer-card.active{border-color:#2dd4bf;background:#f0fdfa}.customer-card strong{display:block}.customer-card small{display:block;color:#64748b;margin-top:3px}.customer-card b{display:block;color:#b45309;margin-top:6px}.debt-detail-panel{border:1px solid #dbe3ee;border-radius:14px;padding:13px;overflow:auto}.empty-state{min-height:180px;display:grid;place-items:center;text-align:center;color:#94a3b8;border:1px dashed #cbd5e1;border-radius:13px;padding:20px}.debt-summary-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.debt-stat{border:1px solid #dbe3ee;border-radius:11px;padding:9px;background:#f8fafc}.debt-stat span{display:block;color:#64748b;font-size:9px;text-transform:uppercase;font-weight:900}.debt-stat strong{display:block;margin-top:4px;font-size:16px}.debt-pay-box{display:grid;grid-template-columns:1fr auto;gap:7px;align-items:end;margin:12px 0;padding:11px;border-radius:12px;background:#fff7ed;border:1px solid #fed7aa}.debt-section-title{font-size:12px;font-weight:950;margin:13px 0 7px}.mini-table{width:100%;border-collapse:collapse;font-size:10px}.mini-table th,.mini-table td{border-bottom:1px solid #e2e8f0;padding:7px 5px;text-align:left}.mini-table td.num,.mini-table th.num{text-align:right}.status-pill{display:inline-flex;padding:3px 7px;border-radius:999px;background:#fef3c7;color:#92400e;font-size:8px;font-weight:900}.status-pill.paid{background:#dcfce7;color:#166534}.lock-modal{z-index:2500;background:rgba(2,6,23,.72);backdrop-filter:blur(10px)}.lock-dialog{width:min(430px,94vw)}
.keyboard-layer{position:fixed;left:0;right:0;bottom:0;z-index:3000;display:none;padding:12px;background:linear-gradient(180deg,rgba(15,23,42,.1),rgba(15,23,42,.96));backdrop-filter:blur(8px)}.keyboard-layer.show{display:block}.keyboard-panel{width:min(1040px,98vw);margin:auto;background:#1e293b;border-radius:18px;padding:11px;box-shadow:0 28px 80px rgba(0,0,0,.5)}.keyboard-head{display:flex;gap:8px;margin-bottom:8px}.keyboard-head>div{flex:1;min-height:42px;background:#fff;border-radius:10px;padding:9px 12px;font-weight:900;overflow:hidden;white-space:nowrap}.keyboard-head button{width:45px;border:0;border-radius:10px;background:#ef4444;color:#fff;font-size:22px}.keyboard-keys{display:grid;gap:7px}.kb-row{display:flex;gap:7px;justify-content:center}.kb-key{flex:1;min-width:42px;max-width:92px;min-height:50px;border:0;border-radius:10px;background:#f8fafc;color:#111827;font-weight:950;font-size:18px;box-shadow:inset 0 -3px rgba(0,0,0,.12)}.kb-key.fn{background:#475569;color:#fff}.kb-key.ok{background:#16a34a;color:#fff}.kb-key.wide{max-width:260px;flex:2.6}.keyboard-layer.numeric .keyboard-panel{width:min(430px,95vw)}.keyboard-layer.numeric .kb-key{min-height:68px;font-size:28px;max-width:none}
@media(max-width:1250px){.pos-layout{grid-template-columns:210px minmax(0,1fr) 360px}.pos-header{grid-template-columns:220px auto 1fr auto}.product-grid{grid-template-columns:repeat(auto-fill,minmax(145px,1fr))}.quick-amounts{grid-template-columns:repeat(3,1fr)}}
@media(max-width:980px){body{overflow:auto}.pos-screen{height:auto;min-height:100vh}.pos-header{grid-template-columns:1fr auto;min-height:72px;height:auto;padding:10px 14px}.mode-switch{order:3}.clock-block{display:none}.pos-layout{grid-template-columns:1fr;min-height:auto}.left-panel{display:block}.category-list{display:flex;overflow:auto}.category-list button{flex:0 0 auto}.side-bottom{display:none}.center-panel{min-height:520px}.cart-panel{min-height:620px}.debt-center-grid{grid-template-columns:1fr}.login-screen{grid-template-columns:1fr;padding:24px;overflow:auto}.login-brand{justify-content:center}.login-brand h1{font-size:38px}.login-logo{width:82px;height:82px}.login-card{justify-self:center}}
@media(max-width:620px){.header-actions .debt span{display:none}.brand-block small{display:none}.mode-switch button{padding:0 9px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.two-col{grid-template-columns:1fr}.payment-tabs button{font-size:10px}.dialog{padding:14px}.debt-summary-grid{grid-template-columns:1fr}.quick-amounts{grid-template-columns:repeat(2,1fr)}}
@media print{body *{visibility:hidden!important}.receipt-paper,.receipt-paper *{visibility:visible!important}.receipt-paper{position:absolute;left:0;top:0;width:80mm!important;margin:0!important;padding:4mm!important;font-size:10px!important}.no-print{display:none!important}@page{size:80mm auto;margin:0}}



/* POS_POS_FIX_UI_V2 */
.search-toolbar{
  position:sticky;
  top:-14px;
  z-index:22;
  background:#fff;
  padding-bottom:10px;
  margin-bottom:2px;
}
.catalog-meta{
  position:sticky;
  top:48px;
  z-index:21;
  background:#fff;
  padding:6px 2px 10px;
  margin-top:0;
}
.product-add{
  display:grid;
  place-items:center;
  line-height:1;
  padding:0;
  font-size:23px;
}
.payment-area .payment-pane{
  display:none !important;
}
.payment-method-hint{
  margin-top:10px;
  padding:10px 12px;
  border:1px dashed #cbd5e1;
  border-radius:12px;
  background:#fff;
}
.payment-method-hint strong{
  display:block;
  font-size:12px;
  color:#0f172a;
}
.payment-method-hint small{
  display:block;
  margin-top:4px;
  font-size:10px;
  color:#64748b;
  line-height:1.45;
}
.dialog.medium{
  width:min(560px,96vw);
}
.payment-form-note{
  margin:0 0 12px;
  color:#64748b;
  font-size:13px;
  line-height:1.5;
}
.payment-modal-body .payment-pane{
  display:block !important;
  margin-top:0;
}
.payment-modal-body .field-label:first-child{
  margin-top:0;
}
.payment-modal-body .lookup-list{
  max-height:180px;
}
.payment-stash{
  display:none !important;
}
#paymentModal .dialog-head > button{
  width:38px;
  height:38px;
  border:0;
  border-radius:11px;
  background:#f1f5f9;
  font-size:24px;
  color:#475569;
}

/* POS_CUSTOMER_FORM_MODAL_LAYOUT_V3 */
#paymentModal{
  z-index:1200;
}

#messageModal,
#confirmModal{
  z-index:1700;
  background:rgba(2,6,23,.40);
  backdrop-filter:blur(3px);
}

#receiptModal{
  z-index:1750;
  background:rgba(2,6,23,.40);
  backdrop-filter:blur(3px);
}

#paymentModal .dialog.medium{
  width:min(700px, calc(100vw - 48px));
  max-width:700px;
  overflow:auto;
}

.payment-modal-body{
  display:block;
  width:100%;
  max-width:100%;
  min-width:0;
  overflow:visible;
}

.payment-modal-body .payment-pane{
  width:100%;
  max-width:100%;
  min-width:0;
}

.payment-modal-body .two-col{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  width:100%;
  max-width:100%;
  min-width:0;
  gap:12px;
}

.payment-modal-body .two-col > div{
  width:100%;
  max-width:100%;
  min-width:0;
}

.payment-modal-body .input-shell,
.payment-modal-body .amount-input,
.payment-modal-body .wide-select{
  width:100%;
  max-width:100%;
  min-width:0;
}

.payment-modal-body .input-shell input,
.payment-modal-body .amount-input input{
  width:100%;
  max-width:100%;
  min-width:0;
}

.payment-modal-body .input-shell > span,
.payment-modal-body .amount-input > span{
  flex:0 0 auto;
}

.payment-modal-body .key-open{
  flex:0 0 38px;
  width:38px;
  min-width:38px;
}

.lookup-new-customer{
  width:100%;
  min-height:58px;
  border:0;
  background:#f0fdfa;
  color:#0f172a;
  text-align:left;
}

.lookup-new-customer:hover{
  background:#ccfbf1;
}

.lookup-new-customer strong{
  color:#0f766e;
}

.lookup-new-customer b{
  flex:0 0 auto;
  color:#0f766e;
  white-space:nowrap;
}

@media(max-width:720px){
  #paymentModal{
    padding:12px;
  }

  #paymentModal .dialog.medium{
    width:100%;
    max-width:100%;
    padding:16px;
  }

  .payment-modal-body .two-col{
    grid-template-columns:1fr;
    gap:5px;
  }
}


/* POS_DYNAMIC_VIRTUAL_KEYBOARD_LAYER_V4 */
.keyboard-layer{
  z-index:5000 !important;
}

.keyboard-layer.show{
  display:block !important;
}

#debtCenterModal .key-open{
  position:relative;
  z-index:2;
  flex:0 0 42px;
  width:42px;
  min-width:42px;
  height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

#debtCenterModal #debtPayAmount{
  min-width:0;
  width:100%;
}


/* POS_TODAY_TRANSACTIONS_STYLE_V5 */
.header-actions .today{
  min-width:106px;
}

.today-dialog{
  width:min(1260px,97vw);
}

.today-dialog .dialog-head{
  align-items:flex-start;
}

.today-context{
  margin:5px 0 0;
  color:#64748b;
  font-size:12px;
  font-weight:700;
}

.today-head-actions{
  display:flex;
  align-items:center;
  gap:7px;
}

.today-head-actions > button{
  width:38px;
  height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:11px;
  background:#f1f5f9;
  color:#475569;
  font-size:23px;
  cursor:pointer;
}

.today-refresh.loading{
  animation:todaySpin .8s linear infinite;
}

.today-summary-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-bottom:14px;
}

.today-stat{
  min-width:0;
  padding:14px;
  border:1px solid #dbe3ee;
  border-radius:15px;
  background:#f8fafc;
}

.today-stat span{
  display:block;
  color:#64748b;
  font-size:10px;
  font-weight:950;
  letter-spacing:.05em;
  text-transform:uppercase;
}

.today-stat strong{
  display:block;
  margin-top:5px;
  color:#0f172a;
  font-size:21px;
  font-weight:950;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.today-stat small{
  display:block;
  margin-top:3px;
  color:#94a3b8;
  font-size:9px;
  font-weight:800;
}

.today-stat.total{
  border-color:#bfdbfe;
  background:#eff6ff;
}

.today-stat.cash{
  border-color:#bbf7d0;
  background:#f0fdf4;
}

.today-stat.saldo{
  border-color:#a5f3fc;
  background:#ecfeff;
}

.today-stat.hutang{
  border-color:#fed7aa;
  background:#fff7ed;
}

.today-stat.cash strong{
  color:#15803d;
}

.today-stat.saldo strong{
  color:#0e7490;
}

.today-stat.hutang strong{
  color:#c2410c;
}

.today-table-card{
  overflow:hidden;
  border:1px solid #dbe3ee;
  border-radius:16px;
  background:#fff;
}

.today-table-head{
  padding:12px 14px;
  border-bottom:1px solid #e2e8f0;
  background:#f8fafc;
}

.today-table-head strong{
  display:block;
  font-size:13px;
  color:#0f172a;
}

.today-table-head small{
  display:block;
  margin-top:2px;
  color:#64748b;
  font-size:10px;
}

.today-table-wrap{
  max-height:510px;
  overflow:auto;
}

.today-table{
  width:100%;
  border-collapse:collapse;
  font-size:11px;
}

.today-table thead{
  position:sticky;
  top:0;
  z-index:2;
}

.today-table th{
  padding:10px 9px;
  border-bottom:1px solid #dbe3ee;
  background:#f1f5f9;
  color:#475569;
  text-align:left;
  font-size:9px;
  font-weight:950;
  letter-spacing:.04em;
  text-transform:uppercase;
  white-space:nowrap;
}

.today-table td{
  padding:10px 9px;
  border-bottom:1px solid #edf2f7;
  color:#334155;
  vertical-align:top;
}

.today-table tbody tr:hover{
  background:#f8fafc;
}

.today-time,
.today-order{
  color:#0f172a;
  font-size:10px;
}

.today-note{
  display:block;
  max-width:260px;
  margin-top:3px;
  color:#94a3b8;
  font-size:8.5px;
  line-height:1.35;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.today-number{
  color:#0f172a!important;
  text-align:right;
  font-weight:950;
  white-space:nowrap;
}

.today-method,
.today-status{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:23px;
  padding:4px 8px;
  border-radius:999px;
  font-size:8.5px;
  font-weight:950;
  white-space:nowrap;
}

.today-method.cash{
  background:#dcfce7;
  color:#166534;
}

.today-method.saldo{
  background:#cffafe;
  color:#155e75;
}

.today-method.hutang{
  background:#ffedd5;
  color:#9a3412;
}

.today-status.success{
  background:#dcfce7;
  color:#166534;
}

.today-status.pending{
  background:#fef3c7;
  color:#92400e;
}

.today-status.default{
  background:#e2e8f0;
  color:#475569;
}

.today-loading{
  padding:38px!important;
  color:#64748b!important;
  text-align:center;
}

.today-loader{
  display:inline-flex;
  align-items:center;
  gap:9px;
  font-size:11px;
  font-weight:800;
}

.today-loader span{
  width:18px;
  height:18px;
  border:2px solid #cbd5e1;
  border-top-color:#0f766e;
  border-radius:999px;
  animation:todaySpin .8s linear infinite;
}

.today-empty{
  min-height:180px;
  display:grid;
  place-items:center;
  align-content:center;
  gap:5px;
  color:#94a3b8;
  text-align:center;
}

.today-empty > div{
  font-size:31px;
}

.today-empty strong{
  color:#475569;
  font-size:13px;
}

.today-empty span{
  font-size:10px;
}

.today-empty.error strong,
.today-empty.error > div{
  color:#b91c1c;
}

/* Quantity langsung membuka keyboard */
.cart-qty-vk{
  cursor:text;
}

.cart-qty-vk:focus{
  border-color:#0f766e!important;
  box-shadow:0 0 0 3px rgba(15,118,110,.13)!important;
}

@keyframes todaySpin{
  to{
    transform:rotate(360deg);
  }
}

@media(max-width:1050px){
  .today-summary-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .header-actions .today span{
    display:none;
  }

  .header-actions .today{
    min-width:44px;
  }
}

@media(max-width:620px){
  .today-summary-grid{
    grid-template-columns:1fr;
  }

  .today-dialog{
    width:100%;
  }
}


/* POS_LOGIN_CENTER_REPRINT_DEVICE_GATE_STYLE_V6 */

/* Login hanya fokus satu form di tengah */
.login-screen{
  grid-template-columns:1fr!important;
  place-items:center!important;
  justify-content:center!important;
  align-content:center!important;
  padding:24px!important;
}

.login-brand{
  display:none!important;
}

.login-card{
  width:min(480px,calc(100vw - 36px))!important;
  justify-self:center!important;
  align-self:center!important;
  margin:0 auto!important;
}

/* Halaman blokir HP/perangkat kecil */
.device-block-screen{
  position:fixed;
  inset:0;
  z-index:10000;
  display:grid;
  place-items:center;
  padding:22px;
  overflow:auto;
  background:
    radial-gradient(
      circle at 15% 20%,
      rgba(20,184,166,.20),
      transparent 34%
    ),
    radial-gradient(
      circle at 85% 80%,
      rgba(59,130,246,.17),
      transparent 32%
    ),
    linear-gradient(
      135deg,
      #08111f,
      #14223a 60%,
      #08111f
    );
}

.device-block-screen.hidden{
  display:none!important;
}

body.pos-device-blocked{
  overflow:hidden!important;
}

.device-block-card{
  width:min(620px,100%);
  padding:38px;
  border:1px solid rgba(255,255,255,.15);
  border-radius:28px;
  background:rgba(255,255,255,.96);
  box-shadow:
    0 35px 100px rgba(0,0,0,.38);
  text-align:center;
}

.device-block-icon{
  width:82px;
  height:82px;
  margin:0 auto 16px;
  display:grid;
  place-items:center;
  border-radius:25px;
  background:linear-gradient(
    135deg,
    #ccfbf1,
    #dbeafe
  );
  font-size:42px;
}

.device-block-kicker{
  display:inline-block;
  color:#0f766e;
  font-size:10px;
  font-weight:950;
  letter-spacing:.12em;
}

.device-block-card h1{
  margin:8px 0 9px;
  color:#0f172a;
  font-size:31px;
  line-height:1.15;
  letter-spacing:-.035em;
}

.device-block-card > p{
  max-width:500px;
  margin:0 auto;
  color:#64748b;
  font-size:14px;
  line-height:1.65;
}

.device-requirements{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:24px;
}

.device-requirements > div,
.device-current{
  padding:14px;
  border:1px solid #dbe3ee;
  border-radius:15px;
  background:#f8fafc;
}

.device-requirements span,
.device-current span{
  display:block;
  color:#64748b;
  font-size:10px;
  font-weight:850;
}

.device-requirements strong,
.device-current strong{
  display:block;
  margin-top:4px;
  color:#0f172a;
  font-size:14px;
}

.device-current{
  margin-top:10px;
  border-color:#99f6e4;
  background:#f0fdfa;
}

.device-current strong{
  color:#0f766e;
}

.device-block-card > small{
  display:block;
  margin-top:16px;
  color:#94a3b8;
  font-size:10px;
  line-height:1.45;
}

/* Cetak ulang transaksi */
.today-table th:last-child,
.today-table td:last-child{
  text-align:center;
}

.today-print-cell{
  white-space:nowrap;
}

.today-print-btn{
  min-height:31px;
  padding:6px 10px;
  border:1px solid #bfdbfe;
  border-radius:9px;
  background:#eff6ff;
  color:#1d4ed8;
  font-size:9px;
  font-weight:950;
  cursor:pointer;
  white-space:nowrap;
}

.today-print-btn:hover{
  background:#dbeafe;
  border-color:#93c5fd;
}

.today-print-btn:active{
  transform:scale(.96);
}

/* Receipt harus berada di depan modal transaksi hari ini */
#todayTransactionsModal{
  z-index:1300;
}

#receiptModal{
  z-index:1900!important;
}

#messageModal,
#confirmModal{
  z-index:2000!important;
}

@media(max-width:720px){
  .device-block-card{
    padding:25px 18px;
    border-radius:22px;
  }

  .device-block-card h1{
    font-size:25px;
  }

  .device-requirements{
    grid-template-columns:1fr;
  }
}

/* POS_SALDO_SCAN_KARTU_ONLY_CSS_V1 */
.student-scan-only-shell{
  position:relative;
}
.student-scan-readonly{
  cursor:not-allowed!important;
  caret-color:transparent!important;
  background:#f8fafc!important;
  color:#111827!important;
  user-select:none!important;
}
.student-scan-readonly::selection{
  background:transparent!important;
}
.student-scan-open{
  width:46px;
  height:46px;
  border:0;
  border-radius:14px;
  background:linear-gradient(135deg,#e0f2fe,#eef2ff);
  color:#1d4ed8;
  font-size:22px;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 8px 18px rgba(37,99,235,.12);
}
.student-scan-open:hover{
  transform:translateY(-1px);
  box-shadow:0 12px 24px rgba(37,99,235,.18);
}
.student-scan-dialog{
  text-align:center;
}
.student-scan-info{
  margin:0 auto 12px;
}
.student-scan-dialog h3{
  margin:0 0 8px;
  color:#0f172a;
}
.student-scan-dialog p{
  color:#475569;
  line-height:1.5;
  margin:0 0 14px;
}
.student-scan-value{
  min-height:52px;
  border:1px dashed #93c5fd;
  background:#eff6ff;
  color:#1d4ed8;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:12px;
  font-weight:900;
  letter-spacing:.4px;
  word-break:break-all;
}
.student-scan-helper{
  margin-top:9px;
  color:#64748b;
  font-size:12px;
  font-weight:700;
}

/* POS_SCAN_MODAL_LAYER_ICON_V1B */
#studentScanModal{
  z-index:2147483000!important;
}
#studentScanModal.show{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
#studentScanModal .dialog,
#studentScanModal .student-scan-dialog{
  z-index:2147483001!important;
  position:relative!important;
}
#studentScanModal::before{
  z-index:2147482999!important;
}
#btnStudentScan.student-scan-open{
  font-size:26px!important;
  line-height:1!important;
  font-family:Arial, "Segoe UI Symbol", "Noto Sans Symbols", sans-serif!important;
  color:#1d4ed8!important;
}

/* POS_SCAN_TOUCHSCREEN_OPEN_MODAL_V1C */
.student-scan-only-shell,
.student-scan-readonly,
.student-scan-open{
  pointer-events:auto!important;
  touch-action:manipulation!important;
  -webkit-tap-highlight-color:rgba(37,99,235,.12)!important;
}

.student-scan-only-shell{
  cursor:pointer!important;
}

.student-scan-readonly{
  cursor:pointer!important;
}

.student-scan-capture-input{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  opacity:.01!important;
  pointer-events:none!important;
  left:-9999px!important;
  top:auto!important;
}


/* POS_DISCOUNT_STYLE_V1 */
.discount-control{display:grid;gap:8px;margin-bottom:10px}.discount-add-btn{width:100%;display:flex;align-items:center;gap:10px;text-align:left;border:1px dashed #f59e0b;background:linear-gradient(135deg,#fff7ed,#fff);color:#9a3412;border-radius:14px;padding:11px 12px;cursor:pointer}.discount-add-btn>span{font-size:22px}.discount-add-btn>div{display:grid;gap:2px;flex:1}.discount-add-btn strong{font-size:13px}.discount-add-btn small{font-size:11px;color:#9a3412;opacity:.8}.discount-add-btn b{font-size:18px}.discount-add-btn:disabled{opacity:.45;cursor:not-allowed}.selected-discount{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid #fdba74;background:#fff7ed;border-radius:14px;padding:10px 12px}.selected-discount>div{display:grid;gap:3px}.selected-discount strong{font-size:13px;color:#9a3412}.selected-discount small{font-size:11px;color:#7c2d12}.selected-discount button{width:28px;height:28px;border:0;border-radius:999px;background:#ffedd5;color:#c2410c;font-size:19px;cursor:pointer}.discount-calculation{display:grid;gap:6px;margin-bottom:9px;padding:10px 12px;border-radius:12px;background:#f8fafc;border:1px solid #e2e8f0}.discount-calculation>div{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;color:#475569}.discount-calculation .discount-line strong{color:#ea580c}.discount-dialog{max-width:900px}.discount-search-row{display:flex;gap:10px;margin-bottom:10px}.discount-search-row .input-shell{flex:1}.discount-branch-info{font-size:12px;color:#64748b;margin-bottom:12px}.discount-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(245px,1fr));gap:13px;max-height:58vh;overflow:auto;padding:2px}.discount-voucher{position:relative;text-align:left;border:1px solid #fed7aa;border-left:6px solid #f97316;border-radius:16px;background:linear-gradient(135deg,#fff7ed,#fff 72%);padding:14px;cursor:pointer;min-height:190px;box-shadow:0 7px 20px rgba(15,23,42,.07);transition:.18s ease}.discount-voucher:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(15,23,42,.12)}.discount-voucher.selected{outline:3px solid rgba(249,115,22,.2);border-color:#f97316}.discount-voucher-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.discount-voucher-code{display:inline-flex;padding:5px 9px;border-radius:999px;background:#0f172a;color:#fff;font-size:11px;font-weight:900;letter-spacing:.8px}.discount-voucher-until{font-size:10px;color:#64748b}.discount-voucher h4{margin:13px 0 3px;font-size:16px;color:#0f172a}.discount-voucher-value{font-size:25px;font-weight:1000;color:#ea580c;margin-bottom:9px}.discount-voucher-period,.discount-voucher-note{font-size:11px;color:#64748b;line-height:1.5}.discount-voucher-note{margin-top:8px}.discount-voucher-pick{display:flex;align-items:center;justify-content:center;margin-top:12px;border-radius:10px;background:#f97316;color:#fff;font-size:12px;font-weight:900;padding:8px}.discount-empty{grid-column:1/-1;text-align:center;padding:35px;border:1px dashed #cbd5e1;border-radius:14px;color:#64748b}.discount-empty.error{color:#b91c1c;border-color:#fecaca;background:#fef2f2}@media(max-width:700px){.discount-search-row{flex-direction:column}.discount-grid{grid-template-columns:1fr}.discount-dialog{max-width:96vw}}


/* POS_CAMERA_BARCODE_SCANNER_CSS_V1 */
.scan-action-group{
  display:flex;
  align-items:center;
  gap:6px;
  flex:0 0 auto;
}
.scan-icon-btn,
.camera-icon-btn{
  width:42px;
  height:42px;
  border:1px solid #cbd5e1;
  border-radius:11px;
  background:#fff;
  color:#0f766e;
  display:inline-grid;
  place-items:center;
  font-size:20px;
  font-weight:900;
  cursor:pointer;
  transition:.16s ease;
  flex:0 0 auto;
}
.scan-icon-btn:hover,
.camera-icon-btn:hover{
  border-color:#14b8a6;
  background:#f0fdfa;
  transform:translateY(-1px);
}
.camera-icon-btn{
  background:#ecfeff;
  border-color:#99f6e4;
}
.student-camera-open{
  margin-left:6px;
}
.camera-scanner-modal{
  z-index:2147483200;
  background:rgba(2,6,23,.82);
  backdrop-filter:blur(10px);
}
.camera-scanner-dialog{
  width:min(720px,96vw);
  padding:18px;
  overflow:hidden;
}
.camera-scanner-head{
  margin-bottom:12px;
}
.camera-scanner-head p{
  margin:6px 0 0;
  color:#64748b;
  font-size:13px;
  line-height:1.45;
}
.camera-scanner-stage{
  position:relative;
  width:100%;
  aspect-ratio:16/10;
  max-height:62vh;
  border-radius:18px;
  overflow:hidden;
  background:#020617;
}
.camera-scanner-stage video{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  background:#020617;
}
.camera-scanner-shade{
  position:absolute;
  inset:0;
  pointer-events:none;
  box-shadow:inset 0 0 0 999px rgba(2,6,23,.16);
}
.camera-scanner-frame{
  position:absolute;
  left:50%;
  top:50%;
  width:min(74%,480px);
  height:min(43%,210px);
  transform:translate(-50%,-50%);
  border:1px solid rgba(255,255,255,.42);
  border-radius:18px;
  box-shadow:0 0 0 999px rgba(2,6,23,.36);
  pointer-events:none;
}
.camera-scanner-frame i{
  position:absolute;
  width:34px;
  height:34px;
  border-color:#2dd4bf;
  border-style:solid;
}
.camera-scanner-frame i:nth-child(1){left:-2px;top:-2px;border-width:4px 0 0 4px;border-radius:16px 0 0 0}
.camera-scanner-frame i:nth-child(2){right:-2px;top:-2px;border-width:4px 4px 0 0;border-radius:0 16px 0 0}
.camera-scanner-frame i:nth-child(3){right:-2px;bottom:-2px;border-width:0 4px 4px 0;border-radius:0 0 16px 0}
.camera-scanner-frame i:nth-child(4){left:-2px;bottom:-2px;border-width:0 0 4px 4px;border-radius:0 0 0 16px}
.camera-scanner-frame span{
  position:absolute;
  left:8%;
  right:8%;
  top:50%;
  height:2px;
  background:linear-gradient(90deg,transparent,#5eead4,transparent);
  box-shadow:0 0 12px #2dd4bf;
  animation:cameraScannerLine 1.7s ease-in-out infinite alternate;
}
@keyframes cameraScannerLine{
  from{transform:translateY(-54px)}
  to{transform:translateY(54px)}
}
.camera-scanner-status{
  margin-top:12px;
  padding:11px 13px;
  border-radius:12px;
  font-size:13px;
  font-weight:800;
  line-height:1.45;
  text-align:center;
}
.camera-scanner-status.info{background:#eff6ff;color:#1d4ed8;border:1px solid #bfdbfe}
.camera-scanner-status.success{background:#ecfdf5;color:#047857;border:1px solid #a7f3d0}
.camera-scanner-status.error{background:#fff1f2;color:#be123c;border:1px solid #fecdd3}
.camera-scanner-actions{
  justify-content:space-between;
}
@media(max-width:700px){
  .search-main.product-scan-shell{
    padding-right:6px;
  }
  .scan-action-group{
    gap:4px;
  }
  .scan-icon-btn,
  .camera-icon-btn{
    width:39px;
    height:39px;
    font-size:18px;
  }
  .camera-scanner-modal{
    padding:10px;
  }
  .camera-scanner-dialog{
    width:100%;
    padding:12px;
    border-radius:18px;
  }
  .camera-scanner-stage{
    aspect-ratio:4/3;
  }
  .camera-scanner-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
  }
}


/* POS_BRANCH_ANALYTICS_STYLE_V1 */
.header-actions .analytics{min-width:108px;padding:0 12px;background:rgba(37,99,235,.18);border-color:rgba(96,165,250,.28)}
.header-actions .analytics:hover{background:rgba(37,99,235,.30)}
.branch-analytics-dialog{width:min(1440px,98vw)!important;max-height:95vh!important;padding:18px!important}
.branch-analytics-dialog .dialog-head{position:sticky;top:-18px;z-index:8;margin:-18px -18px 14px;padding:18px;background:#fff;border-bottom:1px solid #e2e8f0}
.branch-analytics-context{margin:4px 0 0;color:#64748b;font-size:12px;font-weight:700}
.branch-analytics-head-actions{display:flex;gap:7px}.branch-analytics-head-actions>button{width:39px;height:39px;border:0;border-radius:11px;background:#f1f5f9;color:#475569;font-size:20px}.branch-analytics-head-actions .loading{animation:todaySpin .8s linear infinite}
.branch-analytics-print-head{display:none}.branch-analytics-filter{display:grid;grid-template-columns:minmax(160px,220px) minmax(160px,220px) auto;gap:10px;align-items:end;padding:12px;border:1px solid #dbe3ee;border-radius:15px;background:#f8fafc;margin-bottom:12px}.branch-analytics-filter label{display:block;margin:0 0 5px;color:#64748b;font-size:9px;font-weight:950;text-transform:uppercase;letter-spacing:.05em}.branch-analytics-filter input{width:100%;min-height:43px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;padding:0 10px;color:#0f172a;font-weight:850}.branch-analytics-filter .primary-btn{min-height:43px}
.branch-analytics-status{min-height:160px;display:grid;place-items:center;border:1px dashed #cbd5e1;border-radius:15px;color:#64748b;background:#fff;text-align:center;padding:20px}.branch-analytics-loader{display:flex;align-items:center;gap:10px;font-size:12px;font-weight:850}.branch-analytics-loader span{width:22px;height:22px;border:2px solid #cbd5e1;border-top-color:#0f766e;border-radius:999px;animation:todaySpin .8s linear infinite}.branch-analytics-error{display:grid;gap:4px;color:#991b1b}.branch-analytics-error span{font-size:11px;color:#b91c1c}
.branch-analytics-content{display:grid;gap:14px}.branch-analytics-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.branch-analytics-kpi{min-width:0;border:1px solid #dbe3ee;border-radius:14px;padding:12px;background:#fff}.branch-analytics-kpi span{display:block;color:#64748b;font-size:9px;font-weight:950;text-transform:uppercase;letter-spacing:.04em}.branch-analytics-kpi strong{display:block;margin-top:5px;font-size:18px;color:#0f172a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.branch-analytics-kpi small{display:block;margin-top:4px;color:#94a3b8;font-size:9px;line-height:1.35}.branch-analytics-kpi.primary{background:#eff6ff;border-color:#bfdbfe}.branch-analytics-kpi.success{background:#f0fdf4;border-color:#bbf7d0}.branch-analytics-kpi.warning{background:#fff7ed;border-color:#fed7aa}.branch-analytics-kpi.danger{background:#fef2f2;border-color:#fecaca}
.branch-analytics-compare{border:1px solid #dbe3ee;border-radius:15px;padding:12px;background:linear-gradient(135deg,#f8fafc,#fff)}.branch-analytics-compare-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}.branch-analytics-compare-title strong{font-size:12px}.branch-analytics-compare-title span{font-size:9px;color:#64748b}.branch-analytics-compare-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.branch-analytics-compare-grid>div{padding:9px;border:1px solid #e2e8f0;border-radius:11px;background:#fff}.branch-analytics-compare-grid span{display:block;font-size:9px;color:#64748b}.branch-analytics-compare-grid strong{display:block;margin:4px 0;font-size:15px}.branch-analytics-delta{display:inline-flex!important;width:max-content;padding:3px 6px;border-radius:999px;font-size:8px!important;font-weight:900}.branch-analytics-delta.up{background:#dcfce7;color:#166534}.branch-analytics-delta.down{background:#fee2e2;color:#991b1b}.branch-analytics-delta.neutral{background:#e2e8f0;color:#475569}
.branch-analytics-chart-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.branch-analytics-card{min-width:0;border:1px solid #dbe3ee;border-radius:15px;background:#fff;padding:12px;overflow:hidden}.branch-analytics-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:8px}.branch-analytics-card-head strong{display:block;font-size:12px}.branch-analytics-card-head small{display:block;margin-top:2px;color:#64748b;font-size:9px;line-height:1.35}.branch-analytics-canvas{display:block;width:100%;max-width:100%;height:230px}.branch-analytics-legend{display:flex;gap:7px;flex-wrap:wrap;margin-top:5px}.branch-analytics-legend span{display:flex;gap:5px;align-items:center;padding:5px 7px;border-radius:9px;background:#f8fafc;color:#64748b;font-size:8.5px}.branch-analytics-legend b{color:#0f172a}
.branch-analytics-table-wrap{overflow:auto}.branch-analytics-table{width:100%;border-collapse:collapse;font-size:9.5px}.branch-analytics-table th,.branch-analytics-table td{padding:8px 7px;border-bottom:1px solid #e2e8f0;text-align:left;white-space:nowrap}.branch-analytics-table th{background:#f8fafc;color:#475569;font-size:8px;text-transform:uppercase;letter-spacing:.04em}.branch-analytics-table .num{text-align:right}.branch-analytics-empty-cell{text-align:center!important;color:#94a3b8;padding:22px!important}
.branch-analytics-section-title{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;padding:4px 2px}.branch-analytics-section-title span{display:block;color:#0f766e;font-size:8px;font-weight:950;letter-spacing:.08em}.branch-analytics-section-title strong{display:block;font-size:17px;margin-top:2px}.branch-analytics-section-title small{max-width:52%;text-align:right;color:#64748b;font-size:9px}.branch-analytics-context-block{display:grid;gap:10px}.branch-analytics-two-col{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.branch-analytics-rank-list{display:grid;gap:4px}.branch-analytics-rank{display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:7px;align-items:center;padding:7px 6px;border-bottom:1px solid #edf2f7}.branch-analytics-rank:last-child{border-bottom:0}.branch-analytics-rank>b{width:25px;height:25px;display:grid;place-items:center;border-radius:8px;background:#f1f5f9;color:#475569;font-size:9px}.branch-analytics-rank strong{display:block;font-size:10px;line-height:1.3}.branch-analytics-rank small{display:block;color:#94a3b8;font-size:8px;margin-top:2px}.branch-analytics-rank>span{color:#0f172a;font-size:9px;font-weight:950;text-align:right}.branch-analytics-empty{padding:24px;text-align:center;color:#94a3b8;font-size:10px}
.branch-analytics-highlight-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.branch-analytics-highlight-grid>div{padding:12px;border:1px solid #dbe3ee;border-radius:13px;background:#f8fafc}.branch-analytics-highlight-grid span{display:block;color:#64748b;font-size:8px;text-transform:uppercase;font-weight:950}.branch-analytics-highlight-grid strong{display:block;margin-top:5px;font-size:16px}.branch-analytics-highlight-grid small{display:block;margin-top:3px;color:#64748b;font-size:9px}
@media(max-width:1180px){.header-actions .analytics span{display:none}.header-actions .analytics{min-width:42px;padding:0}.branch-analytics-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.branch-analytics-compare-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:820px){.branch-analytics-dialog{width:99vw!important;padding:12px!important}.branch-analytics-dialog .dialog-head{top:-12px;margin:-12px -12px 12px;padding:12px}.branch-analytics-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.branch-analytics-chart-grid,.branch-analytics-two-col{grid-template-columns:1fr}.branch-analytics-filter{grid-template-columns:1fr 1fr}.branch-analytics-filter .primary-btn{grid-column:1/-1}.branch-analytics-highlight-grid{grid-template-columns:1fr}.branch-analytics-section-title{align-items:flex-start;flex-direction:column}.branch-analytics-section-title small{max-width:100%;text-align:left}}
@media(max-width:560px){.branch-analytics-kpis,.branch-analytics-compare-grid,.branch-analytics-filter{grid-template-columns:1fr}.branch-analytics-filter .primary-btn{grid-column:auto}.branch-analytics-kpi strong{font-size:16px}}
@media print{
  body.pos-analytics-print{overflow:visible!important;background:#fff!important}
  body.pos-analytics-print *{visibility:hidden!important}
  body.pos-analytics-print .receipt-paper,body.pos-analytics-print .receipt-paper *{visibility:hidden!important}
  body.pos-analytics-print #branchAnalyticsModal,body.pos-analytics-print #branchAnalyticsModal *{visibility:visible!important}
  body.pos-analytics-print #branchAnalyticsModal{display:block!important;position:absolute!important;inset:0!important;padding:0!important;background:#fff!important;z-index:99999!important}
  body.pos-analytics-print .branch-analytics-dialog{display:block!important;position:static!important;width:100%!important;max-width:none!important;max-height:none!important;overflow:visible!important;padding:0!important;border-radius:0!important;box-shadow:none!important}
  body.pos-analytics-print .analytics-no-print{display:none!important}
  body.pos-analytics-print .branch-analytics-print-head{display:block!important;padding:0 0 8px;border-bottom:2px solid #0f172a;margin-bottom:8px}
  body.pos-analytics-print .branch-analytics-print-head strong{display:block;font-size:17px;color:#000}
  body.pos-analytics-print .branch-analytics-print-head span{display:block;margin-top:3px;font-size:9px;color:#475569}
  body.pos-analytics-print .branch-analytics-kpis{grid-template-columns:repeat(4,1fr)!important;gap:5px!important}
  body.pos-analytics-print .branch-analytics-kpi{padding:6px!important;break-inside:avoid}
  body.pos-analytics-print .branch-analytics-kpi strong{font-size:12px!important}
  body.pos-analytics-print .branch-analytics-chart-grid{grid-template-columns:repeat(2,1fr)!important;gap:6px!important}
  body.pos-analytics-print .branch-analytics-card,body.pos-analytics-print .branch-analytics-compare,body.pos-analytics-print .branch-analytics-context-block{break-inside:avoid}
  body.pos-analytics-print .branch-analytics-canvas{height:150px!important}
  body.pos-analytics-print .branch-analytics-table{font-size:7px!important}
  body.pos-analytics-print .branch-analytics-table th,body.pos-analytics-print .branch-analytics-table td{padding:4px!important}
  @page{size:A4 landscape;margin:8mm}
}


/* ============================================================
 * POS_PREORDER_PHASE3B_STYLE_V1
 * ============================================================ */

#btnPreorderCenter.head-btn.preorder{
  background:linear-gradient(135deg,#f59e0b,#d97706);
  color:#fff;
  border-color:rgba(180,83,9,.35);
  box-shadow:0 8px 22px rgba(217,119,6,.25);
}

#btnPreorderCenter.head-btn.preorder span{
  color:#fff;
  font-weight:900;
}

#btnPreorderCenter.head-btn.preorder:hover{
  transform:translateY(-1px);
  box-shadow:0 12px 28px rgba(217,119,6,.32);
}

#preorderCenterModal .preorder-dialog{
  width:min(1180px,96vw);
  max-width:1180px;
  max-height:94vh;
  overflow:auto;
}

.preorder-context{
  margin:4px 0 0;
  color:#64748b;
  font-size:12px;
  font-weight:700;
}

.preorder-head-actions{
  display:flex;
  align-items:center;
  gap:8px;
}

.preorder-filter-grid{
  display:grid;
  grid-template-columns:180px 170px minmax(280px,1fr) auto;
  gap:10px;
  align-items:end;
  margin:4px 0 14px;
}

.preorder-filter-grid label{
  display:flex;
  flex-direction:column;
  gap:6px;
  color:#475569;
  font-size:12px;
  font-weight:800;
}

.preorder-filter-grid input,
.preorder-filter-grid select{
  min-height:42px;
  border:1px solid #dbe3ee;
  border-radius:12px;
  background:#fff;
  color:#0f172a;
  padding:9px 11px;
  outline:none;
}

.preorder-load-btn{
  min-height:42px;
  white-space:nowrap;
}

.preorder-kpi-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(140px,1fr));
  gap:10px;
  margin-bottom:12px;
}

.preorder-kpi{
  border:1px solid #e2e8f0;
  background:#f8fafc;
  border-radius:16px;
  padding:13px 14px;
  display:flex;
  flex-direction:column;
  gap:4px;
}

.preorder-kpi small{
  color:#64748b;
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.preorder-kpi strong{
  color:#0f172a;
  font-size:20px;
  line-height:1.15;
}

.preorder-kpi span{
  color:#94a3b8;
  font-size:11px;
}

.preorder-kpi.money{
  background:#ecfdf5;
  border-color:#a7f3d0;
}

.preorder-kpi.money strong{
  color:#047857;
}

.preorder-kpi.done{
  background:#eff6ff;
  border-color:#bfdbfe;
}

.preorder-kpi.done strong{
  color:#1d4ed8;
}

.preorder-inline-message{
  min-height:18px;
  margin:2px 0 10px;
  color:#64748b;
  font-size:12px;
  font-weight:700;
}

.preorder-inline-message.ok{
  color:#047857;
}

.preorder-inline-message.bad{
  color:#b91c1c;
}

.preorder-inline-message.info{
  color:#1d4ed8;
}

.preorder-table-wrap{
  border:1px solid #e2e8f0;
  border-radius:14px;
  overflow:auto;
  max-height:52vh;
  background:#fff;
}

.preorder-table{
  width:100%;
  min-width:1000px;
  border-collapse:collapse;
}

.preorder-table th{
  position:sticky;
  top:0;
  z-index:1;
  background:#f8fafc;
  color:#475569;
  padding:10px 11px;
  text-align:left;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.03em;
  border-bottom:1px solid #e2e8f0;
}

.preorder-table td{
  padding:11px;
  vertical-align:top;
  border-bottom:1px solid #eef2f7;
  color:#0f172a;
  font-size:12px;
}

.preorder-table tbody tr:last-child td{
  border-bottom:0;
}

.preorder-table td small{
  display:block;
  margin-top:4px;
  color:#64748b;
  line-height:1.35;
}

.preorder-table .num{
  text-align:right;
}

.preorder-menu{
  max-width:300px;
  font-weight:700;
  line-height:1.4;
}

.preorder-status{
  display:inline-flex;
  align-items:center;
  padding:5px 9px;
  border-radius:999px;
  font-size:11px;
  font-weight:900;
  background:#e2e8f0;
  color:#334155;
}

.preorder-status.dibayar{
  background:#fef3c7;
  color:#92400e;
}

.preorder-status.diproses{
  background:#dbeafe;
  color:#1d4ed8;
}

.preorder-status.diantar{
  background:#ede9fe;
  color:#6d28d9;
}

.preorder-status.selesai{
  background:#dcfce7;
  color:#166534;
}

.preorder-status.batal{
  background:#fee2e2;
  color:#991b1b;
}

.preorder-row-actions{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  min-width:190px;
}

.preorder-cancel-btn{
  color:#b91c1c!important;
  border-color:#fecaca!important;
  background:#fff7f7!important;
}

.preorder-empty{
  padding:26px 12px;
  text-align:center;
  color:#64748b;
  font-weight:700;
}


@media(max-width:900px){

  .preorder-filter-grid{
    grid-template-columns:1fr 1fr;
  }

  .preorder-search-field{
    grid-column:1/-1;
  }

  .preorder-kpi-grid{
    grid-template-columns:1fr 1fr;
  }
}


@media(max-width:620px){

  .preorder-filter-grid{
    grid-template-columns:1fr;
  }

  .preorder-search-field{
    grid-column:auto;
  }

  .preorder-kpi-grid{
    grid-template-columns:1fr;
  }
}
