/* Tablet portrait dan landscape: ukuran mengikuti lebar area, bukan ukuran fisik layar. */
@media (min-width:701px) and (max-width:1366px) {
  #checkoutPanel {padding-bottom:20px}
  #checkoutPanel .section-intro {display:grid;grid-template-columns:minmax(0,1fr);gap:10px;align-items:start;margin-bottom:12px}
  #checkoutPanel .section-intro h2 {font-size:24px;margin:4px 0;line-height:1.3}
  #checkoutPanel .section-intro p {display:none}
  #checkoutPanel .checkout-head-actions {display:grid!important;grid-template-columns:minmax(190px,1.3fr) repeat(3,minmax(0,1fr));gap:8px;width:100%;max-width:none}
  #checkoutPanel .checkout-head-actions>* {width:100%;min-width:0;min-height:48px}
  #checkoutPanel .checkout-head-actions .checkout-change {display:none}
  #checkoutPanel .checkout-date-field {grid-column:auto;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;padding:6px 10px;gap:8px}
  #checkoutPanel .checkout-date-field input {width:100%;min-width:0}
  #checkoutPanel .checkout-layout {display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-areas:'main' 'payment'!important;gap:12px!important;align-items:start}
  #checkoutPanel .checkout-main {display:block!important;grid-area:main!important;width:100%;min-width:0}
  #checkoutPanel .product-picker {position:static!important;max-height:none!important;width:100%!important;min-width:0;overflow:hidden;padding:16px}
  #checkoutPanel .product-picker-results {grid-template-columns:repeat(auto-fill,minmax(155px,1fr))!important;gap:12px!important;max-height:58dvh;overflow-y:auto;overscroll-behavior:contain;padding:4px}
  #checkoutPanel .product-picker-results .checkout-product-card {min-width:0;min-height:0;grid-template-rows:none}
  #checkoutPanel .checkout-category-filters {min-width:0;max-width:100%;overflow-x:auto}
  #checkoutPanel .scan-inline {display:flex;gap:12px;align-items:end;min-width:0}
  #checkoutPanel .scanner-field {flex:1;min-width:0}
  #checkoutPanel .camera-scan-button {flex:none;min-height:46px}
  #checkoutPanel .checkout-payment {grid-area:payment!important;position:static!important;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:100%;min-width:0;max-height:none!important;overflow:visible!important;padding:14px}
  #checkoutPanel .checkout-payment>* {min-width:0}
  #checkoutPanel .checkout-payment>.eyebrow,
  #checkoutPanel .checkout-payment>.checkout-totals,
  #checkoutPanel .checkout-payment>.checkout-quick-payment,
  #checkoutPanel .checkout-payment>.form-error,
  #checkoutPanel .checkout-payment>.form-actions,
  #checkoutPanel .checkout-payment>label:has(#checkoutNote) {grid-column:1/-1}
  #checkoutPanel .checkout-payment input,#checkoutPanel .checkout-payment select {width:100%;min-width:0;min-height:46px;font-size:16px}
  #checkoutPanel .checkout-payment .form-actions {position:static!important;inset:auto!important;width:100%!important;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:6px 0 0!important;padding:14px 0 0!important;border:0;border-top:1px solid #eee5dc;border-radius:0;box-shadow:none;background:#fff;backdrop-filter:none}
  #checkoutPanel .checkout-payment .form-actions>button {width:100%;min-width:0;min-height:50px;white-space:normal}
  #checkoutPanel .checkout-dining-toolbar {flex-wrap:wrap;gap:10px;padding:0;margin-bottom:12px}
  #checkoutPanel .checkout-dining-toolbar>label {min-width:0;flex:1 1 220px}
  #checkoutPanel .checkout-pos-dialog {max-height:calc(100dvh - 32px);max-width:calc(100vw - 32px)}
}
@media (min-width:960px) and (max-width:1366px) and (orientation:landscape) {
  #checkoutPanel .checkout-layout {grid-template-columns:minmax(0,1fr) minmax(320px,38%)!important;grid-template-areas:'main payment'!important}
  #checkoutPanel .checkout-payment {grid-template-columns:minmax(0,1fr)}
  #checkoutPanel .product-picker {padding:12px}
  #checkoutPanel .product-picker-results {grid-template-columns:repeat(auto-fill,minmax(140px,1fr))!important;max-height:calc(100dvh - 350px);min-height:200px;gap:10px!important}
  #checkoutPanel .product-picker-results img,#checkoutPanel .product-picker-results .picker-image-empty {height:90px!important;width:100%;object-fit:contain}
  #checkoutPanel .checkout-payment>.checkout-totals {grid-template-columns:minmax(0,1fr);gap:5px;padding:6px 0}
  #checkoutPanel .checkout-totals>div {min-height:0;padding:6px 10px;gap:10px;font-size:12px}
  #checkoutPanel .checkout-payment>.checkout-payment-balance {gap:8px}
  #checkoutPanel .checkout-payment-balance>.checkout-change-box,#checkoutPanel .checkout-payment-balance>.checkout-debt-box {padding:10px;font-size:12px}
  #checkoutPanel .checkout-payment>.checkout-payment-balance {grid-template-columns:minmax(0,1fr)}
  #checkoutPanel .checkout-payment textarea {min-height:46px;max-height:70px}
  #checkoutPanel .checkout-quick-payment {gap:6px}
  #checkoutPanel .checkout-quick-payment button {flex-basis:64px;padding:8px 6px;font-size:12px}
}
@media (min-width:701px) and (max-width:1366px) and (orientation:portrait) {
  #checkoutPanel .product-picker-results {max-height:42dvh;grid-template-columns:repeat(auto-fill,minmax(150px,1fr))!important}
  #checkoutPanel .checkout-payment>.checkout-totals {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  #checkoutPanel .checkout-payment>.checkout-totals>.grand-total {grid-column:1/-1}
}
@media (min-width:701px) and (max-width:820px) {
  #checkoutPanel .checkout-head-actions {grid-template-columns:repeat(3,minmax(0,1fr))}
  #checkoutPanel .checkout-date-field {grid-column:1/-1}
}
/* Kedua panel mengikuti tinggi baris yang sama; daftar produk tetap bisa digulir. */
@media (min-width:1367px), (min-width:960px) and (orientation:landscape) {
  #checkoutPanel .checkout-layout {align-items:stretch!important}
  #checkoutPanel .checkout-layout>.checkout-main {display:flex!important;flex-direction:column;align-self:stretch;min-height:0}
  #checkoutPanel .checkout-main>.product-picker {position:static!important;display:flex;flex-direction:column;flex:1;min-height:0;max-height:none!important;margin-bottom:0}
  #checkoutPanel .product-picker>.checkout-product-tools {flex:none}
  #checkoutPanel .product-picker>.product-picker-results {flex:1 1 0;height:0;min-height:240px;max-height:none!important;overflow-y:auto;align-content:start}
  #checkoutPanel .checkout-layout>.checkout-payment {align-self:stretch;margin-bottom:0}
}
/* Satu susunan konsisten untuk ponsel dan tablet tegak. */
@media(max-width:959px){
  #checkoutPanel .checkout-navigation-bar{gap:10px}
  #checkoutPanel .checkout-navigation-bar>.checkout-dining-toolbar{flex:1 1 100%;width:100%;align-items:center}
  #checkoutPanel .checkout-sales-mode-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;max-width:100%;box-sizing:border-box}
  #checkoutPanel .checkout-sales-mode-buttons>button{width:100%;min-width:0;min-height:44px;white-space:nowrap;padding:10px 8px;font-size:13px}
  #checkoutPanel .checkout-navigation-bar>.section-intro{flex:1 1 100%;width:100%}
  #checkoutPanel .checkout-navigation-bar .checkout-head-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:100%!important}
  #checkoutPanel .checkout-navigation-bar .checkout-date-field{grid-column:1/-1;max-width:none;width:100%;min-width:0}
  #checkoutPanel .checkout-navigation-bar .checkout-popup-trigger{grid-column:auto!important;width:100%;min-width:0;min-height:44px;padding:10px 5px!important;font-size:12px;gap:5px;white-space:nowrap}
  #checkoutPanel .checkout-layout{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-areas:'main' 'payment'!important;gap:12px!important}
  #checkoutPanel .checkout-main{display:block!important;grid-area:main!important;min-width:0}
  #checkoutPanel .product-picker{position:static!important;min-width:0;max-height:none!important;padding:12px}
  #checkoutPanel .product-picker-results{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))!important;gap:10px!important;min-height:0;height:auto;max-height:48dvh;overflow:auto;align-content:start}
  #checkoutPanel .checkout-payment{position:static!important;grid-area:payment!important;min-width:0;max-height:none!important;overflow:visible!important;padding:14px;gap:12px}
  #checkoutPanel .checkout-payment>*{min-width:0}
  #checkoutPanel .checkout-payment input,#checkoutPanel .checkout-payment select{min-width:0;width:100%;min-height:44px;font-size:16px}
  #checkoutPanel .checkout-payment>.form-actions{position:static!important;inset:auto!important;width:100%!important;grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0!important;padding:12px 0 0!important;box-shadow:none;border:0;border-top:1px solid #eee5dc;border-radius:0;background:#fff}
  #checkoutPanel .checkout-payment>.form-actions>button{min-width:0;min-height:48px;width:100%;white-space:normal;line-height:1.4}
}
@media(max-width:700px){
  #checkoutPanel .checkout-payment{grid-template-columns:minmax(0,1fr)}
  #checkoutPanel .checkout-payment>.checkout-totals{grid-template-columns:minmax(0,1fr);gap:7px}
  #checkoutPanel .checkout-payment>.checkout-totals>div{grid-column:1/-1;min-width:0;gap:12px}
  #checkoutPanel .checkout-payment>.checkout-payment-balance{grid-template-columns:minmax(0,1fr);gap:8px}
  #checkoutPanel .checkout-quick-payment{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
  #checkoutPanel .checkout-quick-payment>button{min-width:0;padding:10px 4px;font-size:12px}
  #checkoutPanel .checkout-quick-payment>button:first-child{grid-column:1/-1}
  #checkoutPanel .checkout-quick-payment>button:last-child{grid-column:1/-1}
  #checkoutPanel .checkout-dining-toolbar>button:not([hidden]){flex:1 1 130px;min-width:0;white-space:normal}
}
/* Baris grid tidak boleh menyusut lebih pendek daripada isi kartu saat panel digulir. */
#checkoutPanel .product-picker-results{grid-auto-rows:max-content!important;align-content:start!important;align-items:stretch}
#checkoutPanel .product-picker-results>.checkout-product-card{min-height:260px!important;height:auto;overflow:hidden;flex-shrink:0}
#checkoutPanel .checkout-product-card>.checkout-product-add{grid-template-rows:100px minmax(48px,auto) 22px!important;min-height:0!important;gap:8px;flex:1}
#checkoutPanel .checkout-product-add>img,#checkoutPanel .checkout-product-add>.picker-image-empty{height:100px!important;min-height:100px;width:100%!important;object-fit:contain}
#checkoutPanel .checkout-product-card>.checkout-card-quantity{flex:none;min-height:50px}
#checkoutPanel .checkout-card-quantity>button{height:44px!important;min-height:44px!important;grid-template-rows:none!important;padding:0!important}
.checkout-tablet-menu{display:none!important}
@media(min-width:701px) and (max-width:1366px){
  .admin-layout:has(#checkoutPanel:not([hidden])) .top-header{display:none!important}
  .admin-layout:has(#checkoutPanel:not([hidden])) .workspace{padding-top:0!important}
  .admin-layout:has(#checkoutPanel:not([hidden])) .content{padding-top:12px!important}
  #checkoutPanel .checkout-tablet-menu{display:inline-flex!important;align-items:center;justify-content:center;width:44px;min-width:44px;min-height:44px;flex:0 0 44px;padding:10px!important}
  #checkoutPanel .checkout-tablet-menu svg{width:22px;height:22px}
  #checkoutPanel .checkout-dining-toolbar .checkout-sales-mode-buttons{flex:1;min-width:0;width:auto}
}
@media(min-width:701px) and (max-width:1366px){
  #checkoutPanel .checkout-navigation-bar{position:sticky;top:0;z-index:25;padding-top:max(10px,env(safe-area-inset-top));padding-bottom:10px;background:var(--theme-background,#f5f6fa);isolation:isolate}
  .admin-layout:has(#checkoutPanel:not([hidden])) .content{padding-top:max(16px,env(safe-area-inset-top))!important}
}
@media(min-width:701px) and (max-width:1366px){
  .mobile-bottom-nav{display:grid;position:fixed;z-index:60;left:0;right:0;bottom:0;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;min-height:68px;padding:7px 18px calc(7px + env(safe-area-inset-bottom));border-top:1px solid #e8dccd;border-radius:16px 16px 0 0;background:rgba(255,252,246,.98);box-shadow:0 -6px 24px #41301b12}
  .mobile-bottom-nav button{display:grid;place-items:center;align-content:center;gap:4px;min-width:0;min-height:52px;padding:6px;border:0;border-radius:11px;background:transparent;color:#806d5d;font:inherit;font-size:11px;font-weight:800;cursor:pointer}
  .mobile-bottom-nav button span{font-size:20px;line-height:1}
  .mobile-bottom-nav button.active{background:#ffedc6;color:#865800}
  .mobile-bottom-nav button[hidden]{display:none!important}
  .content{padding-bottom:calc(90px + env(safe-area-inset-bottom))!important}
  .admin-toast{bottom:calc(84px + env(safe-area-inset-bottom))!important}
}
@media(min-width:1201px) and (max-width:1366px){
  .admin-layout{display:block!important}
  .admin-layout .top-header{left:0!important;width:100%!important}
  .admin-layout>.sidebar{position:fixed!important;z-index:90;left:0;top:0;width:min(310px,86vw)!important;height:100dvh!important;padding:22px 16px!important;transform:translateX(-105%);overflow-y:auto;background:#fff;box-shadow:18px 0 50px #17203f3b}
  .admin-layout.sidebar-open>.sidebar{transform:translateX(0)!important;opacity:1!important;pointer-events:auto!important}
  .sidebar-backdrop{position:fixed;z-index:80;inset:0;border:0;background:#151d3c8a;backdrop-filter:blur(2px)}
  .admin-layout.sidebar-open>.sidebar-backdrop:not([hidden]){display:block}
  .sidebar-toggle{display:grid}
  .sidebar-lock{overflow:hidden}
}
/* Mode kasir ringkas untuk tablet 10 inci. */
@media(min-width:701px) and (max-width:1366px){
  .admin-layout:has(#checkoutPanel:not([hidden])) .content{padding-inline:12px!important;padding-bottom:calc(76px + env(safe-area-inset-bottom))!important}
  #checkoutPanel .checkout-navigation-bar{gap:8px;margin-bottom:8px;padding-block:6px}
  #checkoutPanel .checkout-navigation-bar .checkout-head-actions{gap:7px}
  #checkoutPanel .checkout-navigation-bar .checkout-head-actions>*{min-height:40px;font-size:12px}
  #checkoutPanel .checkout-navigation-bar .checkout-date-field{padding:4px 8px;gap:7px;max-width:265px}
  #checkoutPanel .checkout-navigation-bar .checkout-date-field input{min-height:34px;padding:5px 8px;font-size:13px}
  #checkoutPanel .checkout-navigation-bar .checkout-popup-trigger{padding:8px 10px!important}
  #checkoutPanel .checkout-tablet-menu{width:40px;min-width:40px;min-height:40px;flex-basis:40px;padding:8px!important}
  #checkoutPanel .checkout-sales-mode-buttons{padding:3px;border-radius:12px;gap:3px}
  #checkoutPanel .checkout-sales-mode-buttons>button{min-height:38px;padding:7px 12px;font-size:12px;gap:6px}
  #checkoutPanel .checkout-sales-mode-buttons>button>svg{width:18px;height:18px}
  #checkoutPanel .checkout-layout{gap:10px!important}
  #checkoutPanel .product-picker,#checkoutPanel .checkout-payment{padding:10px!important;border-radius:14px}
  #checkoutPanel .checkout-product-tools{margin-bottom:8px;border-radius:11px}
  #checkoutPanel .checkout-product-tools>summary{min-height:40px;padding:9px 12px;font-size:12px}
  #checkoutPanel .product-picker>.product-picker-results{gap:8px!important;grid-template-columns:repeat(auto-fill,minmax(125px,1fr))!important;grid-auto-rows:max-content!important;margin-top:6px;padding:2px}
  #checkoutPanel .product-picker-results>.checkout-product-card{min-height:216px!important;padding:8px;gap:7px;border-radius:12px}
  #checkoutPanel .checkout-product-card>.checkout-product-add{grid-template-rows:76px minmax(42px,auto) 20px!important;gap:5px!important}
  #checkoutPanel .checkout-product-add>img,#checkoutPanel .checkout-product-add>.picker-image-empty{height:76px!important;min-height:76px;border-radius:9px}
  #checkoutPanel .checkout-product-add strong{font-size:12px;line-height:1.3}
  #checkoutPanel .checkout-product-add small{font-size:10px}
  #checkoutPanel .checkout-product-add>b{font-size:13px}
  #checkoutPanel .checkout-product-card>.checkout-card-quantity{grid-template-columns:36px minmax(0,1fr) 36px;min-height:40px;padding:2px;gap:3px;border-radius:10px}
  #checkoutPanel .checkout-card-quantity>button{width:36px;height:36px!important;min-height:36px!important;font-size:20px;border-radius:8px}
  #checkoutPanel .checkout-card-quantity output{font-size:13px}
  #checkoutPanel .checkout-payment{gap:8px}
  #checkoutPanel .checkout-payment>.eyebrow{font-size:11px;letter-spacing:.1em}
  #checkoutPanel .checkout-adjustment-buttons{gap:7px}
  #checkoutPanel .checkout-adjustment-buttons>button{min-height:38px;padding:8px!important;font-size:12px;border-radius:10px!important}
  #checkoutPanel .checkout-payment>.checkout-totals{gap:5px;padding:5px 0}
  #checkoutPanel .checkout-payment>.checkout-totals>div{min-height:32px!important;padding:7px 10px!important;font-size:11px;border-radius:9px;line-height:1.35}
  #checkoutPanel .checkout-totals strong{font-size:13px}
  #checkoutPanel .checkout-totals .grand-total strong{font-size:18px}
  #checkoutPanel .checkout-payment>label{font-size:11px;gap:5px}
  #checkoutPanel .checkout-payment input,#checkoutPanel .checkout-payment select{min-height:40px;padding:8px 10px;font-size:14px}
  #checkoutPanel .checkout-quick-payment{gap:5px}
  #checkoutPanel .checkout-quick-payment button{min-height:38px;padding:7px 5px;font-size:11px}
  #checkoutPanel .checkout-transfer-summary,#checkoutPanel .checkout-payment-balance>.checkout-change-box,#checkoutPanel .checkout-payment-balance>.checkout-debt-box{padding:9px 10px;font-size:12px;border-radius:9px}
  #checkoutPanel .checkout-payment>.form-actions{gap:8px;padding-top:8px!important}
  #checkoutPanel .checkout-payment>.form-actions>button{min-height:42px;padding:9px!important;font-size:12px}
  .mobile-bottom-nav{min-height:58px;padding:4px 12px calc(4px + env(safe-area-inset-bottom))}
  .mobile-bottom-nav button{min-height:46px;font-size:10px;gap:3px}
  .mobile-bottom-nav button span{font-size:18px}
}
.checkout-fullscreen-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px}
.checkout-fullscreen-button svg{width:18px;height:18px;flex:none}
.checkout-fullscreen:has(#checkoutPanel:not([hidden])) .top-header{display:none!important}
.checkout-fullscreen:has(#checkoutPanel:not([hidden])) .admin-layout{display:block!important}
.checkout-fullscreen:has(#checkoutPanel:not([hidden])) .admin-layout:not(.sidebar-open)>.sidebar{display:none!important}
.checkout-fullscreen:has(#checkoutPanel:not([hidden])) .workspace{padding-top:0!important}
.checkout-fullscreen:has(#checkoutPanel:not([hidden])) .content{max-width:none!important;width:100%;padding-top:8px!important}
@media(min-width:701px) and (max-width:1366px){
  #checkoutPanel .checkout-totals>.checkout-zero-summary{display:none!important}
  #checkoutPanel .checkout-navigation-bar .checkout-head-actions>*{min-height:34px}
  #checkoutPanel .checkout-sales-mode-buttons>button{min-height:34px;padding:6px 10px}
  #checkoutPanel .checkout-fullscreen-button{min-height:34px;padding:6px 9px!important;font-size:11px}
  #checkoutPanel .checkout-adjustment-buttons{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
  #checkoutPanel .checkout-adjustment-buttons>button{min-height:34px;padding:6px 3px!important;font-size:10px;white-space:normal}
  #checkoutPanel .product-picker-results>.checkout-product-card{min-height:188px!important;padding:6px;gap:5px}
  #checkoutPanel .checkout-product-card>.checkout-product-add{grid-template-rows:58px minmax(38px,auto) 18px!important;gap:4px!important}
  #checkoutPanel .checkout-product-add>img,#checkoutPanel .checkout-product-add>.picker-image-empty{height:58px!important;min-height:58px}
  #checkoutPanel .checkout-product-add strong{font-size:11px}
  #checkoutPanel .checkout-product-add small{font-size:9px}
  #checkoutPanel .checkout-product-add>b{font-size:12px}
  #checkoutPanel .checkout-payment>.checkout-totals>div{min-height:28px!important;padding:5px 8px!important}
}
#checkoutPanel .checkout-cash-details{grid-column:1/-1;min-width:0;border:1px solid #e8ded3;border-radius:10px;background:#fffaf5}
#checkoutPanel .checkout-cash-details>summary{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;min-height:38px;font-size:12px;font-weight:800;color:#6d5542;cursor:pointer;list-style:none}
#checkoutPanel .checkout-cash-details>summary::-webkit-details-marker{display:none}
#checkoutPanel .checkout-cash-details>summary:after{content:'';width:7px;height:7px;flex:none;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin-right:3px;margin-top:-4px}
#checkoutPanel .checkout-cash-details[open]>summary:after{transform:rotate(225deg);margin-top:4px}
#checkoutPanel .checkout-cash-details-body{display:grid;gap:9px;padding:0 10px 10px;min-width:0}
#checkoutPanel .checkout-cash-details-body>label{display:grid;gap:6px;min-width:0;font-size:12px;font-weight:800;color:#4b5574}
#checkoutPanel .checkout-cash-details-body .lookup-trigger{width:100%;min-width:0}
#checkoutPanel .checkout-cash-details>summary:focus-visible{outline:2px solid var(--theme-button,#c88700);outline-offset:2px;border-radius:10px}
@media(min-width:701px) and (max-width:1366px){
  #checkoutPanel .product-picker>.product-picker-results{grid-template-columns:repeat(auto-fill,minmax(112px,1fr))!important;gap:6px!important}
  #checkoutPanel .product-picker-results>.checkout-product-card{min-height:170px!important;padding:5px;gap:4px;border-radius:10px}
  #checkoutPanel .checkout-product-card>.checkout-product-add{grid-template-rows:46px minmax(34px,auto) 17px!important;gap:3px!important}
  #checkoutPanel .checkout-product-add>img,#checkoutPanel .checkout-product-add>.picker-image-empty{height:46px!important;min-height:46px}
  #checkoutPanel .checkout-product-add strong{font-size:10px;line-height:1.25}
  #checkoutPanel .checkout-product-add>b{font-size:11px}
  #checkoutPanel .checkout-product-card>.checkout-card-quantity{min-height:34px;grid-template-columns:30px minmax(0,1fr) 30px;padding:1px}
  #checkoutPanel .checkout-card-quantity>button{width:30px;height:30px!important;min-height:30px!important;font-size:18px}
  #checkoutPanel .checkout-card-quantity output{font-size:12px}
  #checkoutPanel .checkout-payment{gap:6px;padding:8px!important}
  #checkoutPanel .checkout-payment input,#checkoutPanel .checkout-payment select{min-height:34px;padding:6px 8px;font-size:13px}
  #checkoutPanel .checkout-quick-payment button{min-height:32px;padding:6px 4px;font-size:10px}
  #checkoutPanel .checkout-payment>.checkout-totals>div{min-height:25px!important;padding:4px 7px!important;font-size:10px}
  #checkoutPanel .checkout-totals strong{font-size:12px}
  #checkoutPanel .checkout-cash-details>summary{min-height:32px;padding:7px 9px;font-size:11px}
  #checkoutPanel .checkout-transfer-summary,#checkoutPanel .checkout-payment-balance>.checkout-change-box,#checkoutPanel .checkout-payment-balance>.checkout-debt-box{padding:7px 9px;font-size:11px}
}
@media(min-width:701px) and (max-width:1366px){
  .admin-layout:has(#checkoutPanel:not([hidden])) .mobile-bottom-nav{display:none!important}
  .admin-layout:has(#checkoutPanel:not([hidden])) .content{padding-bottom:12px!important}
  .admin-layout:has(#checkoutPanel:not([hidden])) .admin-toast{bottom:16px!important}
}
.checkout-fullscreen:has(#checkoutPanel:not([hidden])) .content{padding-bottom:0!important}
.checkout-fullscreen #checkoutPanel{padding-bottom:0!important;margin-bottom:0}
.checkout-fullscreen #checkoutPanel .checkout-layout{min-height:var(--checkout-remaining-height,0px);margin-bottom:0}
@media(min-width:960px) and (orientation:landscape){
  .checkout-fullscreen #checkoutPanel .checkout-layout{align-items:stretch!important}
  .checkout-fullscreen #checkoutPanel .checkout-layout>.checkout-main{display:flex!important;flex-direction:column;align-self:stretch;min-height:0}
  .checkout-fullscreen #checkoutPanel .checkout-main>.product-picker{display:flex;flex:1;flex-direction:column;margin-bottom:0;max-height:none!important}
  .checkout-fullscreen #checkoutPanel .product-picker>.product-picker-results{flex:1 1 0;height:0;min-height:200px;max-height:none!important}
  .checkout-fullscreen #checkoutPanel .checkout-payment{align-self:stretch;align-content:start;margin-bottom:0}
}
/* Tinggi layar penuh tidak mengaktifkan kembali posisi sticky panel lama. */
.checkout-fullscreen #checkoutPanel .checkout-navigation-bar{position:relative!important;top:auto;z-index:auto}
.checkout-fullscreen #checkoutPanel .checkout-layout>.checkout-payment{position:static!important;inset:auto!important;transform:none;display:grid;grid-auto-rows:max-content;grid-template-rows:none;align-content:start;gap:8px;min-height:0;max-height:none!important;overflow:visible!important}
.checkout-fullscreen #checkoutPanel .checkout-payment>*{grid-row:auto!important;min-width:0}
.checkout-fullscreen #checkoutPanel .checkout-payment>.eyebrow{position:static;margin:0;line-height:1.5;padding-bottom:8px}
.checkout-fullscreen #checkoutPanel .checkout-adjustment-buttons{position:static;margin:0;align-items:stretch}
.checkout-fullscreen #checkoutPanel .checkout-payment>.form-actions{position:static!important;inset:auto!important;width:100%!important;box-shadow:none}
html.checkout-fullscreen:fullscreen{width:100%;height:100%;margin:0;padding:0;overflow-y:auto;scroll-padding-top:0}
.checkout-fullscreen:has(#checkoutPanel:not([hidden])) body{margin:0;overflow-anchor:none}
.checkout-fullscreen:has(#checkoutPanel:not([hidden])) .workspace{margin-top:0!important;padding-top:0!important;transform:none}
.checkout-fullscreen:has(#checkoutPanel:not([hidden])) .content{margin-top:0!important;padding-top:calc(28px + env(safe-area-inset-top))!important;overflow-anchor:none}
.checkout-fullscreen #checkoutPanel>.checkout-navigation-bar{margin-top:0!important;padding-top:6px!important;position:relative!important;top:auto!important;transform:none}
#checkoutPanel .product-picker>.pos-product-search{display:grid;gap:7px;flex:none;width:100%;min-width:0;margin:0 0 10px}
#checkoutPanel .product-picker>.pos-product-search input{width:100%;min-width:0}
@media(min-width:701px) and (max-width:1366px){#checkoutPanel .product-picker>.pos-product-search{font-size:11px;gap:5px;margin-bottom:7px}#checkoutPanel .product-picker>.pos-product-search input{min-height:36px;padding-block:7px;font-size:13px}}
#checkoutPanel .checkout-search-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px;flex:none;min-width:0;margin-bottom:10px}
#checkoutPanel .checkout-search-row>.pos-product-search{display:grid;gap:6px;min-width:0;margin:0}
#checkoutPanel .checkout-search-row input{width:100%;min-width:0}
#checkoutPanel .checkout-product-tools-trigger{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;height:auto;white-space:nowrap}
#checkoutPanel .checkout-product-tools-trigger svg{width:20px;height:20px;flex:none}
#checkoutPanel .checkout-product-tools-dialog .checkout-category-filters{display:flex;flex-wrap:wrap;white-space:normal;max-height:240px;overflow-y:auto;gap:8px}
#checkoutPanel .checkout-product-tools-dialog .checkout-adjustment-footer{justify-content:flex-end}
@media(min-width:701px) and (max-width:1366px){#checkoutPanel .checkout-search-row{gap:7px;margin-bottom:7px}#checkoutPanel .checkout-search-row input{min-height:36px;padding-block:7px;font-size:13px}#checkoutPanel .checkout-product-tools-trigger{min-height:36px;padding:7px 9px!important;font-size:11px}}
@media(max-width:520px){#checkoutPanel .checkout-search-row{gap:6px}#checkoutPanel .checkout-product-tools-trigger{padding:9px!important;font-size:10px;gap:4px}#checkoutPanel .checkout-product-tools-trigger svg{width:17px;height:17px}}
/* Satu area scroll untuk seluruh isi pesanan, termasuk tablet landscape/fullscreen. */
#checkoutPanel .checkout-cart-dialog[open]{display:flex!important;flex-direction:column;max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;overflow:hidden!important}
#checkoutPanel .checkout-cart-dialog>.checkout-dialog-head{position:static;flex:0 0 auto}
#checkoutPanel .checkout-cart-dialog>.checkout-cart{flex:1 1 auto;min-height:0!important;max-height:none!important;overflow:auto!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y;scroll-padding:16px}
#checkoutPanel .checkout-cart-dialog .table-wrap{max-height:none!important;min-height:0!important;overflow:visible!important}
/* Tombol kasir ponsel selalu terlihat di atas navigasi bawah. */
@media(max-width:700px){
  #checkoutPanel{overflow:visible!important}
  #checkoutPanel .checkout-layout>.checkout-payment{overflow:visible!important}
  #checkoutPanel .checkout-layout>.checkout-payment>.form-actions{position:fixed!important;inset:auto 10px calc(84px + env(safe-area-inset-bottom)) 10px!important;z-index:65;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));width:auto!important;margin:0!important;padding:10px!important;border:1px solid #e8ded3;border-radius:14px;background:#fffdf9;box-shadow:0 -5px 24px #48331720}
  #checkoutPanel .checkout-layout>.checkout-payment>.form-actions>button{min-height:46px;height:auto;width:100%;min-width:0;padding:10px!important;font-size:12px;line-height:1.4;white-space:normal}
  .admin-layout:has(#checkoutPanel:not([hidden])) .content,
  .checkout-fullscreen:has(#checkoutPanel:not([hidden])) .content{padding-bottom:calc(108px + var(--checkout-mobile-actions-height,120px) + env(safe-area-inset-bottom))!important}
  .admin-layout:has(#checkoutPanel:not([hidden])) .admin-toast{bottom:calc(96px + var(--checkout-mobile-actions-height,120px) + env(safe-area-inset-bottom))!important;z-index:70}
}
@media(max-width:700px){
  .checkout-fullscreen #checkoutPanel .checkout-layout>.checkout-payment>.form-actions,
  #checkoutPanel .checkout-layout>.checkout-payment>.form-actions{position:fixed!important;inset:auto 10px calc(84px + env(safe-area-inset-bottom) + var(--checkout-keyboard-inset,0px)) 10px!important;z-index:65;width:auto!important}
  .checkout-keyboard-open:has(#checkoutPanel:not([hidden])) .mobile-bottom-nav{display:none!important}
  .checkout-keyboard-open #checkoutPanel .checkout-layout>.checkout-payment>.form-actions{bottom:calc(8px + env(safe-area-inset-bottom) + var(--checkout-keyboard-inset,0px))!important}
}
.checkout-reprint-dialog{width:min(850px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0;overflow:hidden;border-radius:18px}.checkout-reprint-body{padding:20px;max-height:calc(100dvh - 135px);overflow-y:auto;overscroll-behavior:contain}#checkoutReprintFilter{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:end}#checkoutReprintFilter label{display:grid;gap:7px;min-width:0;font-size:12px;font-weight:700}#checkoutReprintFilter input{width:100%;min-width:0;min-height:44px;padding:10px 12px;border:1px solid #d8dce5;border-radius:10px;font:inherit}.checkout-reprint-printer{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:14px 0;font-size:12px}.checkout-reprint-list{display:grid;gap:10px}.checkout-reprint-list article{display:flex;justify-content:space-between;gap:16px;padding:15px;border:1px solid color-mix(in srgb,var(--theme-primary) 15%,transparent);border-radius:12px;background:var(--theme-background)}.checkout-reprint-list article>div{display:grid;gap:7px;min-width:0}.checkout-reprint-list article>div:last-child{text-align:right;align-content:center}.checkout-reprint-list article strong{font-size:14px;overflow-wrap:anywhere}.checkout-reprint-list article span,.checkout-reprint-list article small{font-size:12px;line-height:1.5}.checkout-reprint-list button,.checkout-reprint-pagination button,#checkoutReprintSettings,#checkoutReprintFilter>button{min-height:44px;height:auto;padding:10px 14px;white-space:normal;font-size:12px}.checkout-reprint-pagination{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-top:18px;font-size:12px}#checkoutReprintStatus{font-size:13px;line-height:1.6;overflow-wrap:anywhere}@media(max-width:500px){.checkout-reprint-body{padding:15px}.checkout-reprint-list article{flex-direction:column}.checkout-reprint-list article>div:last-child{grid-template-columns:1fr auto;align-items:center;text-align:left}.checkout-reprint-pagination{flex-wrap:wrap}.checkout-reprint-pagination span{order:-1;width:100%;text-align:center}.checkout-reprint-pagination button{flex:1}.checkout-reprint-printer{flex-wrap:wrap}#checkoutReprintFilter .checkout-reprint-search{grid-column:1/-1}#checkoutReprintFilter>button{grid-column:1/-1}}
@media(max-width:820px){#checkoutPanel .checkout-navigation-bar .checkout-head-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
