@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap');
.submenu{display:block!important;grid-template-rows:none!important;max-height:0;overflow:hidden;opacity:0;transition:max-height .25s ease,opacity .2s ease}.menu-group.is-open .submenu{grid-template-rows:none!important;max-height:500px;opacity:1}
.sidebar .nav-link-main,.sidebar .menu-toggle{display:flex;align-items:center;gap:9px;width:100%;border:0;text-align:left;background:transparent;color:#59677e;padding:10px 11px;border-radius:9px;font:500 12px 'DM Sans',sans-serif;margin:2px 0;transition:background .2s,color .2s}.sidebar .nav-link-main:hover,.sidebar .menu-toggle:hover,.sidebar .nav-link-main:focus,.sidebar .menu-toggle:focus{background:#f0efff;color:var(--primary);text-decoration:none;outline:0}.sidebar .nav-link-main.is-active{background:linear-gradient(100deg,#f0efff,#f5f3ff);color:var(--primary);font-weight:600;box-shadow:0 5px 12px #635bff12}.sidebar .menu-icon{width:17px;text-align:center;font-size:14px;color:#8d85ef;line-height:1}.sidebar .menu-toggle>span:first-child{display:flex;align-items:center;gap:9px}.menu-chevron{margin-left:auto;color:#a7b0bf;font-size:18px;line-height:12px;transition:transform .2s,color .2s}.menu-group.is-open .menu-chevron{transform:rotate(90deg);color:var(--primary)}.submenu{display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows .25s ease,opacity .2s ease}.menu-group.is-open .submenu{grid-template-rows:1fr;opacity:1}.submenu a{overflow:hidden;margin:1px 0 1px 15px!important;padding:8px 11px 8px 27px!important;border-radius:7px!important;font-size:11px!important;position:relative}.submenu a:before{content:'';position:absolute;left:12px;top:50%;width:4px;height:4px;border-radius:50%;background:#c8cedb;transform:translateY(-50%)}.submenu a.is-active{background:#f0efff;color:var(--primary);font-weight:600}.submenu a.is-active:before{background:var(--primary);box-shadow:0 0 0 3px #635bff18}.sidebar b{display:none}
:root{--ink:#172033;--muted:#8190a8;--line:#e8edf5;--primary:#635bff;--bg:#f6f8fc}*{box-sizing:border-box}body{background:var(--bg);color:var(--ink);font:14px 'DM Sans',sans-serif}.topbar{height:72px;padding:0 28px;background:#171d2b;color:#fff;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:11px;color:#fff;text-decoration:none}.brand:hover{color:#fff;text-decoration:none}.brand strong{display:block;font:800 15px Manrope}.brand small{display:block;color:#9ba8c0;font-size:9px;letter-spacing:.18em}.brand-mark{height:34px;width:34px;display:grid;place-items:center;border-radius:10px;background:linear-gradient(135deg,#8877ff,#5047d9);font-size:25px}.account{display:flex;align-items:center;gap:10px}.avatar{display:grid;place-items:center;width:34px;height:34px;background:#756bff;border-radius:50%;font-weight:700}.account-name{font-size:12px}.account-name small{display:block;color:#9ba8c0;font-size:10px}.logout{margin-left:13px;border:1px solid #4a556c;color:#dbe3f2;border-radius:7px;padding:7px 12px;font-size:12px}.logout:hover{background:#2a3345;color:#fff;text-decoration:none}.app-shell{max-width:none}.sidebar{background:#fff;min-height:calc(100vh - 72px);padding:25px 15px;border-right:1px solid var(--line)}.sidebar a{display:block;color:#59677e;padding:9px 11px;border-radius:8px;font-size:12px;margin:2px 0}.sidebar a:hover,.sidebar a:focus{background:#f0efff;text-decoration:none;color:var(--primary)}.sidebar .nav-link-main{color:var(--primary);background:#f0efff;font-weight:600}.sidebar .nav-link-main span{font-size:16px;margin-right:9px}.sidebar b,.menu-label{display:block;margin:22px 10px 7px;color:#a2adbf;text-transform:uppercase;font-size:10px;letter-spacing:.13em}.menu-label{margin-top:0}.sidebar hr{border:0;border-top:1px solid #f0f2f6;margin:18px 10px}.content{padding:32px 28px;max-width:1600px}.page-heading{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:24px}.eyebrow{color:var(--primary);font-size:10px;font-weight:700;letter-spacing:.16em}.page-heading h1{font:800 28px Manrope;margin:5px 0 4px}.page-heading p{color:var(--muted);margin:0}.date-pill{background:#fff;border:1px solid var(--line);padding:9px 13px;border-radius:8px;color:#68758b;font-size:11px}.metric{border:0;border-radius:12px;box-shadow:0 7px 24px #1f2a4410;height:100%;overflow:hidden}.metric .card-body{padding:19px 20px;position:relative}.metric-icon{position:absolute;right:20px;top:17px;color:#766aff;background:#f0efff;width:31px;height:31px;border-radius:9px;display:grid;place-items:center}.metric-label{color:#8794a9;font-size:12px}.metric h2{margin:9px 0 4px;color:var(--ink);font:800 25px Manrope}.metric small{color:#a1acbc;font-size:10px}.trend{color:#36b98b;font-size:14px;margin-right:4px}.chart-row{margin-top:5px}.chart-card{border:0;border-radius:12px;box-shadow:0 7px 24px #1f2a4410;height:100%}.chart-card .card-body{padding:22px}.card-title-row{display:flex;justify-content:space-between;align-items:flex-start}.card-title-row h5{font:700 15px Manrope;margin:0 0 5px}.card-title-row small{color:var(--muted);font-size:11px}.chart-badge{font-size:10px;color:var(--primary);background:#f0efff;padding:7px 10px;border-radius:6px}.chart-wrap{height:245px;margin-top:18px}.pie-wrap{height:220px}.chart-note{border-top:1px solid var(--line);padding-top:14px;color:#77849a;font-size:11px}.stock-warning{float:right;color:#e0a23b}.welcome-card{background:linear-gradient(105deg,#635bff,#776cf2);color:#fff;border-radius:12px;padding:20px 24px;display:flex;align-items:center;gap:16px;box-shadow:0 10px 25px #635bff2b}.welcome-icon{width:38px;height:38px;border-radius:10px;background:#ffffff2b;display:grid;place-items:center;font-size:19px}.welcome-card h5{margin:0 0 5px;font:700 15px Manrope}.welcome-card p{margin:0;color:#dedcff;font-size:11px}.welcome-card .btn{margin-left:auto;background:#fff;color:var(--primary);border:0;font-size:11px;padding:10px 14px}.welcome-card .btn span{margin-left:8px;font-size:15px}.card{border-color:var(--line)}.form-control{border-color:#e0e6f0;border-radius:7px;height:38px;font-size:12px}.form-control:focus{border-color:#8c83ff;box-shadow:0 0 0 3px #635bff18}.btn{border-radius:7px;font-size:12px;padding:9px 15px}.btn-primary{background:var(--primary);border-color:var(--primary)}.table{background:#fff;border-radius:8px;overflow:hidden}.table thead th{background:#f8f9fc;border:0;color:#7d8aa0;text-transform:uppercase;font-size:10px;letter-spacing:.06em}.table td{border-color:#edf0f5;color:#58667d;font-size:12px;vertical-align:middle}.login-bg{min-height:100vh;display:flex;align-items:center;justify-content:center;background:radial-gradient(circle at 10% 10%,#8277ff 0,#322e75 36%,#171d2b 100%)}.login-card{background:#fff;padding:36px;border-radius:16px;width:100%;max-width:400px;box-shadow:0 25px 65px #080b1d80}.login-card h4{font:800 19px Manrope;color:var(--ink)}@media(max-width:767px){.topbar{padding:0 16px}.account-name{display:none}.sidebar{min-height:auto}.content{padding:22px 15px}.page-heading{display:block}.date-pill{display:inline-block;margin-top:15px}.welcome-card{align-items:flex-start;flex-wrap:wrap}.welcome-card .btn{margin-left:54px}.chart-wrap{height:220px}}@media print{.sidebar,.topbar,form button{display:none!important}.content{width:100%;max-width:100%}}
/* Soft dashboard background */
body{background:radial-gradient(circle at 100% 0%,#f5f2ff 0,#edf1f7 34%,#e8edf4 100%)}
.sidebar{background:#f8f9fc}

.login-logo{display:block;width:64px;height:64px;margin:0 auto 16px}
.login-password-wrap{position:relative}.login-password-wrap .form-control{padding-right:42px}.login-password-toggle{position:absolute;right:8px;top:50%;transform:translateY(-50%);border:0;background:transparent;color:#68758b;font-size:18px;line-height:1;cursor:pointer;padding:4px}.login-password-toggle:focus{outline:0;color:var(--primary)}
.login-card #login-captcha{letter-spacing:.12em;font-weight:700}

/* Sidebar readability improvements */
.sidebar {
  color: #344054;
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
}

.sidebar .menu-label {
  color: #7b879b;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
}

.sidebar .nav-link-main,
.sidebar .menu-toggle {
  color: #344054;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  padding-top: 11px;
  padding-bottom: 11px;
}

.sidebar .nav-link-main:hover,
.sidebar .menu-toggle:hover,
.sidebar .nav-link-main:focus,
.sidebar .menu-toggle:focus {
  color: #5148e5;
  background: #eeecff;
}

.sidebar .nav-link-main.is-active {
  color: #5148e5;
  background: linear-gradient(100deg, #e9e7ff, #f3f1ff);
  font-weight: 700;
}

.sidebar .menu-icon {
  color: #7168e8;
  font-size: 14px;
}

.sidebar .submenu a {
  color: #526078;
  font-size: 12px !important;
  font-weight: 500;
  line-height: 1.4;
  padding-top: 9px !important;
  padding-bottom: 9px !important;
}

.sidebar .submenu a:hover,
.sidebar .submenu a:focus {
  color: #5148e5;
  background: #eeecff;
}

.sidebar .submenu a.is-active {
  color: #5148e5;
  background: #e9e7ff;
  font-weight: 700;
}

.sidebar .submenu a:before {
  background: #aeb8c9;
}

/* Warna abu-abu untuk seluruh header tabel */
.table thead th {
  background: #d1d5db;
  color: #4b5563;
}

/* Master data list */
.data-card {
  border: 0;
  border-radius: 14px;
  box-shadow: 0 8px 28px #1f2a4410;
  overflow: hidden;
}
.master-actions{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:48px}
.master-import-export{white-space:nowrap;text-align:right}
.master-total-purchase{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;min-height:48px;min-width:320px;padding:6px 14px;border-left:4px solid #2864dd;border-radius:2px;background:#fff;box-shadow:0 5px 16px rgba(31,42,68,.08);color:#526176}
.master-total-purchase span{font-size:11px;font-weight:700;line-height:1.2}
.master-total-purchase strong{margin-top:1px;color:#172033;font:800 17px/1.15 Manrope,Arial,sans-serif}
.master-total-purchase small{margin-top:1px;color:#8190a8;font-size:8px}
@media(max-width:767px){.master-actions{align-items:stretch;flex-direction:column}.master-total-purchase{min-width:0;width:100%}.master-import-export{text-align:left}}
.data-card .card-body { padding: 0; }
.data-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(120deg, #fff, #fbfbff);
}
.data-title { margin: 0 0 4px; color: var(--ink); font: 700 15px Manrope; }
.data-subtitle { color: var(--muted); font-size: 11px; }
.data-tools { display: flex; align-items: center; gap: 12px; }
.data-search { position: relative; width: min(280px, 38vw); }
.data-search > span { position: absolute; z-index: 1; left: 12px; top: 7px; color: #8c97aa; font-size: 20px; line-height: 22px; }
.data-search .form-control { height: 38px; padding-left: 34px; }
.data-page-size { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.data-page-size .form-control { width: 66px; height: 38px; }
.data-card .table-responsive { padding: 0 10px; }
.data-card .table { margin-bottom: 0; }
.data-card .table thead th { border-top: 0; padding: 13px 12px; }
.data-card .table td { padding: 12px; }
.data-card .table tbody tr { transition: background .18s ease; }
.data-card .table tbody tr:hover { background: #fafaff; }
.data-card .master-barang-table { min-width: 1480px; table-layout: fixed; border-collapse: separate; border-spacing: 0; }
.data-card .master-barang-table thead th { padding: 11px 10px; background: #dfe4eb; color: #445166; font-size: 10px; font-weight: 800; line-height: 1.25; letter-spacing: .02em; text-transform: uppercase; vertical-align: middle; white-space: normal; }
.data-card .master-barang-table td { padding: 10px; border-top: 1px solid #edf0f5; color: #526176; font-size: 11px; line-height: 1.35; vertical-align: middle; white-space: nowrap; }
.data-card .master-barang-table tbody tr:nth-child(even) { background: #fbfcfe; }
.data-card .master-barang-table tbody tr:hover { background: #f1f5ff; }
.data-card .master-barang-table th:nth-child(1), .data-card .master-barang-table td:nth-child(1) { width: 52px; }
.data-card .master-barang-table th:nth-child(2), .data-card .master-barang-table td:nth-child(2) { width: 105px; }
.data-card .master-barang-table th:nth-child(3), .data-card .master-barang-table td:nth-child(3) { width: 190px; white-space: normal; }
.data-card .master-barang-table th:nth-child(4), .data-card .master-barang-table td:nth-child(4) { width: 120px; }
.data-card .master-barang-table th:nth-child(5), .data-card .master-barang-table td:nth-child(5), .data-card .master-barang-table th:nth-child(6), .data-card .master-barang-table td:nth-child(6) { width: 105px; }
.data-card .master-barang-table th:nth-child(7), .data-card .master-barang-table td:nth-child(7), .data-card .master-barang-table th:nth-child(8), .data-card .master-barang-table td:nth-child(8), .data-card .master-barang-table th:nth-child(9), .data-card .master-barang-table td:nth-child(9) { width: 78px; text-align: right; }
.data-card .master-barang-table th:nth-child(n+10):nth-child(-n+13), .data-card .master-barang-table td:nth-child(n+10):nth-child(-n+13) { width: 122px; text-align: right; }
.data-card .master-barang-table th:last-child, .data-card .master-barang-table td:last-child { width: 220px; text-align: center; white-space: nowrap; }
.data-card .master-barang-table td:last-child .btn { margin: 2px 1px; padding: 5px 8px; font-size: 10px; border-radius: 5px; }
.data-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 16px 22px 18px; border-top: 1px solid var(--line); }
.data-result-info { color: var(--muted); font-size: 11px; }
.data-footer .pagination { gap: 4px; }
.data-footer .page-link { min-width: 30px; height: 30px; display: grid; place-items: center; padding: 0 8px; border: 0; border-radius: 7px !important; color: #718096; background: #f4f6fa; font-size: 11px; }
.data-footer .page-item.active .page-link { color: #fff; background: var(--primary); box-shadow: 0 5px 12px #635bff35; }
.data-footer .page-item:not(.active):not(.disabled) .page-link:hover { color: var(--primary); background: #eeecff; }
.data-footer .page-item.disabled .page-link { color: #c2c9d5; background: #f8f9fb; }
.transaction-status { display: inline-block; padding: 5px 9px; border-radius: 999px; background: #eef0f6; color: #68758b; font-size: 10px; font-weight: 700; white-space: nowrap; }
.status-masuk, .status-diagnosa { background: #fff4d8; color: #a66b00; }
.status-dikerjakan, .status-menunggu-sparepart { background: #e9edff; color: #5148e5; }
.status-selesai, .status-diambil { background: #e4f8f0; color: #16805d; }
.status-batal { background: #ffe8eb; color: #c24152; }
@media(max-width:767px) {
  .data-toolbar, .data-footer { align-items: flex-start; flex-direction: column; }
  .data-tools { width: 100%; }
  .data-search { flex: 1; width: auto; }
  .data-footer { align-items: center; }
  .data-card .table { min-width: 680px; }
}

/* Searchable combobox */
.ts-wrapper {
  width: 100%;
  font-size: 12px;
}
.ts-wrapper.single .ts-control {
  min-height: 38px;
  padding: 10px 34px 10px 12px;
  border: 1px solid #e0e6f0;
  border-radius: 7px;
  background: #fff;
  box-shadow: none;
  color: #58667d;
}
.ts-wrapper.single .ts-control:after {
  border-color: #8b97aa transparent transparent;
  right: 13px;
}
.ts-wrapper.focus .ts-control,
.ts-wrapper.dropdown-active .ts-control {
  border-color: #8c83ff;
  box-shadow: 0 0 0 3px #635bff18;
}
.ts-dropdown {
  z-index: 1060;
  margin-top: 5px;
  overflow: hidden;
  border: 1px solid #e0e6f0;
  border-radius: 9px;
  box-shadow: 0 12px 28px #1720331a;
  font-size: 12px;
}
.ts-dropdown .ts-dropdown-content {
  max-height: 250px;
  padding: 5px;
}
.ts-dropdown [data-selectable] {
  padding: 9px 10px;
  border-radius: 6px;
  color: #58667d;
}
.ts-dropdown .active {
  background: #f0efff;
  color: #5148e5;
}
.ts-dropdown .no-results {
  padding: 10px;
  color: #9aa6b8;
  text-align: center;
}
.ts-control input {
  color: #172033;
}
/* Dashboard charts */
.chart-wrap{position:relative}
.chart-card{overflow:hidden}
.chart-card .card-body{background:linear-gradient(180deg,#fff 0%,#fefeff 100%)}
.chart-card canvas{filter:drop-shadow(0 5px 8px rgba(99,91,255,.06))}
.pie-wrap{margin-top:10px}

/* Kasir: riwayat sebagai halaman utama */
.receipt-popup{display:none;position:fixed;z-index:1050;right:22px;bottom:22px;width:360px;height:min(680px,calc(100vh - 44px));background:#fff;border:1px solid #d6dce6;border-radius:10px;box-shadow:0 14px 42px rgba(31,42,68,.28);overflow:hidden}
.receipt-popup.is-open{display:block}
.receipt-popup-header{height:38px;display:flex;align-items:center;justify-content:space-between;padding:0 12px;background:#f5f7fa;border-bottom:1px solid #e1e5eb;color:#26364e;font-size:12px}
.receipt-popup-header button{border:0;background:transparent;color:#6d7888;font-size:23px;line-height:1;cursor:pointer;padding:0 3px}
.receipt-popup iframe{display:block;width:100%;height:calc(100% - 38px);border:0;background:#eee}
@media(max-width:640px){.receipt-popup{right:10px;bottom:10px;width:calc(100vw - 20px);height:calc(100vh - 20px)}}
.kasir-history-actions{display:flex;align-items:center}
.purchase-history-actions{display:flex;align-items:center}
.purchase-history-actions .btn{background:#2864dd;border-color:#2864dd;box-shadow:0 7px 14px rgba(40,100,221,.2);font-weight:600;padding:10px 17px}
.purchase-history-card{border:0;border-radius:12px;box-shadow:0 7px 24px #1f2a4410;overflow:hidden}
.purchase-history-card .card-body{padding:0}
.purchase-history-card .data-toolbar{padding:17px 18px;background:linear-gradient(105deg,#eef5ff,#dceaff);border-bottom:1px solid #dce7f5}
.purchase-history-card .data-title{font-size:16px;color:#26364e}
.purchase-history-card .data-subtitle{color:#71819a}
.purchase-pos-mode .purchase-form-card{border:0;border-radius:12px;box-shadow:0 7px 24px #1f2a4410}
.purchase-pos-mode{background:radial-gradient(circle at 100% 0%,#f5f2ff 0,#edf1f7 38%,#e8edf4 100%);color:#172033}
.purchase-pos-mode .content{padding-top:4px}
.purchase-pos-mode .content>h3{margin:0 0 9px;font:700 28px/1.15 Manrope,Arial,sans-serif;color:#10233f;letter-spacing:-.02em}
.purchase-pos-mode .purchase-form-card{border-radius:14px;background:#fff;box-shadow:0 12px 30px rgba(31,42,68,.08);overflow:visible}
.purchase-pos-mode .purchase-form-card>.card-body{padding:20px}
.purchase-pos-mode .purchase-form-card .form-row:first-of-type{align-items:end;margin-bottom:14px}
.purchase-pos-mode .purchase-form-card label{margin-bottom:6px;color:#172033;font-size:12px;font-weight:600}
.purchase-pos-mode .purchase-form-card .form-control{height:38px;border:1px solid #d8e0ec;border-radius:8px;color:#344054;background:#fff;font-size:12px;box-shadow:none;transition:border-color .15s,box-shadow .15s}
.purchase-pos-mode .purchase-form-card .form-control:focus{border-color:#6a63ff;box-shadow:0 0 0 3px rgba(106,99,255,.12)}
.purchase-pos-mode .purchase-form-card .input-group .form-control{border-radius:8px 0 0 8px}
.purchase-pos-mode .purchase-form-card .input-group-append .btn{height:38px;border-color:#d8e0ec;border-radius:0 8px 8px 0;background:#fff;color:#667085}
.purchase-pos-mode .purchase-form-card .input-group-append .btn:hover{background:#f6f7fb;color:#344054}
.purchase-pos-mode .purchase-form-card .btn-primary{height:38px;border:0;border-radius:8px;background:linear-gradient(135deg,#665df5,#756cff);box-shadow:0 6px 12px rgba(102,93,245,.2);font-weight:700}
.purchase-pos-mode .purchase-form-card .btn-outline-secondary{border-radius:8px;padding:7px 15px;color:#526174;border-color:#cbd5e1;background:#fff}
.purchase-pos-mode #purchase-table{border-color:#dfe5ee;border-radius:10px;overflow:hidden}
.purchase-pos-mode #purchase-table thead th{padding:11px 12px;background:#dfe3e9;color:#526174;border-color:#dfe5ee;font-size:10px;letter-spacing:.06em;text-transform:uppercase}
.purchase-pos-mode #purchase-table td{padding:12px;border-color:#e5e9ef;color:#344054;font-size:12px;vertical-align:middle}
.purchase-pos-mode #purchase-table tbody tr:hover{background:#f8faff}
.purchase-pos-mode #purchase-table tfoot th{padding:13px 12px;background:#fff;border-color:#dfe5ee;color:#172033;font-size:12px}
.purchase-pos-mode .purchase-cart-scroll{max-height:360px;overflow-x:auto;overflow-y:auto}
.purchase-pos-mode #purchase-table thead{position:sticky;top:0;z-index:2}
.purchase-pos-mode #purchase-table thead th{background:#dfe3e9}
.purchase-pos-mode #purchase-table tfoot{position:sticky;bottom:0;z-index:2}
.purchase-pos-mode #purchase-table tfoot th{background:#fff}
.purchase-pos-mode .purchase-item-name{color:#718096;font-size:11px}
.purchase-product-field{position:relative}
.purchase-product-select{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;overflow:hidden}
.purchase-search-wrap{position:relative}
.purchase-search-icon{height:38px;padding:0 10px;border:1px solid #d8e0ec;border-right:0;border-radius:8px 0 0 8px;background:#f8faff;color:#667085;font-size:20px;line-height:36px}
.purchase-search-wrap .input-group .form-control{border-left:0;border-radius:0!important}
.purchase-product-suggestions{top:calc(100% + 5px);left:0;right:0;border:1px solid #d9e1ed;border-radius:10px;box-shadow:0 12px 26px rgba(31,42,68,.14);overflow:hidden}
.purchase-product-suggestions .product-suggestion{padding:10px 12px;text-align:left}
.purchase-product-suggestions .product-suggestion strong{font-size:12px;color:#26364e}
.purchase-product-suggestions .product-suggestion small{font-size:10px;color:#7b8798}
.purchase-pos-mode .purchase-form-card .form-row:first-of-type .purchase-product-field{flex:0 0 33.333333%;max-width:33.333333%}
.purchase-pos-mode .purchase-actions-row{margin-top:2px}
@media(max-width:767px){.purchase-pos-mode .content{padding:10px 12px}.purchase-pos-mode .content>h3{font-size:23px}.purchase-pos-mode .purchase-form-card>.card-body{padding:14px}.purchase-pos-mode .purchase-form-card .form-row:first-of-type{display:block}.purchase-pos-mode .purchase-form-card .form-row:first-of-type .form-group{margin-bottom:11px}.purchase-pos-mode .purchase-form-card .form-row:last-of-type{display:block}.purchase-pos-mode .purchase-form-card .form-row:last-of-type .form-group{margin-bottom:11px}.purchase-pos-mode .purchase-form-card .form-row:last-of-type .text-right{text-align:left!important}.purchase-pos-mode .purchase-cart-scroll{max-height:330px}}
.kasir-history-actions .btn{background:#2864dd;border-color:#2864dd;box-shadow:0 7px 14px rgba(40,100,221,.2);font-weight:600;padding:10px 17px}
.kasir-history-actions .btn span{margin-right:7px}
.kasir-history-actions kbd{margin-left:8px;padding:2px 6px;border-radius:4px;background:rgba(255,255,255,.2);color:#fff;font-size:10px;font-weight:600}
.kasir-history-card{border:0;border-radius:12px;box-shadow:0 7px 24px #1f2a4410;overflow:hidden}
.kasir-history-card .card-body{padding:0}
.kasir-history-card .data-toolbar{padding:17px 18px;background:linear-gradient(105deg,#eef5ff,#dceaff);border-bottom:1px solid #dce7f5}
.kasir-history-card .data-title{font-size:16px;color:#26364e}
.kasir-history-card .data-subtitle{color:#71819a}
.kasir-history-card .table{border-radius:0}
.kasir-history-card .table thead th{padding:11px 12px;background:#f8fafc}
.kasir-history-card .table td{padding:13px 12px}
.kasir-history-card .table td strong{color:#26364e}
.kasir-badge{display:inline-block;padding:4px 8px;border-radius:20px;font-size:10px;line-height:1}
.kasir-badge-method{background:#f1f3f5;color:#566274;border:1px solid #e2e6eb}
.kasir-badge-status{background:#dff7e9;color:#2d9863}
.kasir-actions{white-space:nowrap;text-align:center}
.kasir-actions a,.kasir-actions button{display:inline-grid;place-items:center;width:30px;height:30px;margin:0 2px;border:0;border-radius:7px;background:#f4f7fb;vertical-align:middle;cursor:pointer;transition:transform .15s,background .15s,box-shadow .15s}
.kasir-actions svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.kasir-actions .action-print{color:#228b63}.kasir-actions .action-view{color:#2864dd}.kasir-actions .action-edit{color:#a16a12;font-size:17px;font-weight:700}.kasir-actions .action-delete{color:#d34d5d}
.kasir-actions .action-revision{width:auto!important;padding:0 7px;font-size:10px!important;white-space:nowrap;}
.sale-detail-modal{position:fixed;z-index:2000;inset:0;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(15,23,42,.55)}
.sale-detail-dialog{width:min(900px,100%);max-height:85vh;overflow:auto;background:#fff;border-radius:12px;box-shadow:0 18px 50px rgba(15,23,42,.28)}
.sale-detail-header{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;border-bottom:1px solid #e5e7eb}.sale-detail-header h5{margin:0;color:#26364e;font-size:20px;font-weight:700}.sale-detail-close{border:0;background:transparent;color:#64748b;font-size:25px;font-weight:700;line-height:1;cursor:pointer}.sale-detail-dialog table{width:100%;table-layout:fixed;border-collapse:collapse}.sale-detail-dialog th{background:#d9dee6;color:#344054;font-size:10px;letter-spacing:.5px;text-transform:uppercase}.sale-detail-dialog td,.sale-detail-dialog th{padding:11px 12px;vertical-align:middle;border:0;border-bottom:1px solid #e5e7eb}.sale-detail-dialog th:nth-child(1){width:18%}.sale-detail-dialog th:nth-child(2){width:29%}.sale-detail-dialog th:nth-child(3){width:10%}.sale-detail-dialog th:nth-child(4),.sale-detail-dialog th:nth-child(5),.sale-detail-dialog th:nth-child(6){width:14.3%}.sale-detail-dialog tbody tr:nth-child(even){background:#f8fafc}.sale-detail-dialog tbody td{color:#526176;font-size:12px}.sale-detail-dialog tbody td strong{color:#26364e}.sale-detail-dialog tfoot th{background:#fff;color:#26364e;font-size:12px;text-transform:none;letter-spacing:0;border-top:1px solid #cbd5e1;border-bottom:0}.sale-detail-dialog tfoot th:first-child{font-weight:700}
@media(max-width:650px){.sale-detail-modal{padding:10px}.sale-detail-header{padding:14px}.sale-detail-header h5{font-size:17px}.sale-detail-dialog{max-height:90vh}.sale-detail-dialog table{min-width:700px}}
.kasir-actions a:hover,.kasir-actions button:hover{background:#eaf1fb;transform:translateY(-1px);box-shadow:0 3px 8px #283b5b1a;text-decoration:none}
.kasir-actions .action-delete:hover{background:#fff0f2}
.action-delete-form{display:inline-block;margin:0;padding:0}
.kasir-history-card .data-footer{padding:13px 18px}
@media(max-width:767px){.kasir-history-card .data-toolbar{display:block}.kasir-history-card .data-tools{margin-top:12px}.kasir-history-card .table{min-width:850px}}

/* POS kasir layar penuh */
.pos-mode{background:#f4f6f8;color:#344054;overflow-x:hidden}
.pos-mode .topbar,.pos-mode .sidebar{display:none!important}
.pos-mode .app-shell,.pos-mode .app-shell>.row{display:block;margin:0;max-width:none}
.pos-mode .content{width:100%;max-width:none;padding:0}
.pos-mode .content>.alert,.pos-mode .content>h3{display:none}
.pos-toolbar{height:45px;display:flex;align-items:center;gap:18px;padding:0 10px;background:#26364e;color:#fff;border-bottom:1px solid #41536b}
.pos-brand{display:flex;align-items:center;gap:7px;min-width:145px;font-size:12px}.pos-brand-icon{color:#f6c51b;font-size:15px}.pos-brand strong{font-size:12px}
.pos-shortcuts{display:flex;align-items:center;gap:5px;flex:1}.pos-key{border:0;border-radius:3px;padding:3px 7px;color:#fff;font:600 10px 'DM Sans',sans-serif;white-space:nowrap;line-height:1.15}.pos-key b{font-size:9px;margin-right:4px}.key-blue{background:#1769e0}.key-slate{background:#526176}.key-orange{background:#ea8b18}.key-red{background:#c93443}.key-green{background:#168a55}.key-cyan{background:#087f9b}.key-purple{background:#7836be}.key-yellow{background:#f2b700;color:#27364b}
.pos-total-mini{display:flex;align-items:center;gap:9px;min-width:130px;justify-content:flex-end}.pos-total-mini small{font-size:7px;letter-spacing:.13em;color:#9caac0}.pos-total-mini strong{font-size:17px;color:#f5c400}.pos-total-mini span{font-size:17px;color:#c8d0dc}
.pos-customer-bar{height:35px;display:flex;align-items:center;gap:10px;padding:4px 10px;background:#fff;border-bottom:1px solid #d7dde6}.pos-customer-bar label{margin:0;font-size:11px;font-weight:600;color:#66758a}.pos-customer-bar input{height:26px;max-width:calc(100% - 250px);padding:4px 10px;font-size:11px;border-radius:3px}.pos-customer-hint{font-size:9px;color:#9aa6b6}
.pos-mode .kasir-card{margin:0!important;border:0;border-radius:0;box-shadow:none;background:#f8fafc}.pos-mode .kasir-card>.card-body{padding:0}.pos-mode #kasir-form{display:grid;grid-template-columns:minmax(0,1fr) 245px;grid-template-rows:auto minmax(300px,1fr);min-height:calc(100vh - 80px)}
.pos-mode #kasir-form>input{display:none}.pos-mode #kasir-form>.form-row:first-of-type{grid-column:1;grid-row:1;display:grid;grid-template-columns:110px minmax(210px,1fr) minmax(230px,1.1fr) 75px 130px 115px 86px;gap:5px;align-items:end;padding:6px 10px 4px;margin:0;background:#f8fafc;border-bottom:1px solid #d9dfe8}.pos-mode #kasir-form>.form-row:first-of-type .form-group{margin:0;max-width:none;padding:0}.pos-mode #kasir-form>.form-row:first-of-type .form-group:nth-child(1){display:none}.pos-mode #kasir-form label{margin:0 0 3px;font-size:9px;color:#69778a}.pos-mode #kasir-form .form-control{height:28px;border-radius:4px;font-size:11px;padding:4px 7px}.pos-mode #kasir-form #barcode-scan{border-color:#82b4e9;background:#f2f8ff}.pos-mode #clear-barcode{display:none}.pos-mode #barcode-status{font-size:8px;line-height:10px;margin:1px 0 0}.pos-mode #add-to-cart{height:28px;padding:3px;font-size:10px}.pos-mode #cart-table{margin:0;border-radius:0;background:#fff;min-width:650px}.pos-mode #cart-table thead th{padding:6px 8px;background:#edf0f4;color:#657084;font-size:9px}.pos-mode #cart-table td{padding:7px 8px;font-size:11px}.pos-mode #cart-table tfoot th{padding:8px;background:#f5f7fa;font-size:11px}.pos-mode #kasir-form>.table-responsive{grid-column:1;grid-row:2;align-self:stretch;margin:0!important;border-right:1px solid #d8dee7}.pos-mode #cart-table tbody{height:calc(100vh - 190px)}.pos-mode #cart-table tbody td{border-bottom:1px solid #f0f2f5}.pos-mode #empty-cart td,.pos-mode #cart-table tbody tr:only-child td{text-align:center;color:#9ba5b3;padding-top:70px}
.pos-mode #kasir-form>.form-row:last-of-type{grid-column:2;grid-row:1 / span 2;display:block;margin:0;padding:10px;background:#f4f6f8;border-left:1px solid #d8dee7}.pos-mode #kasir-form>.form-row:last-of-type .form-group{display:block!important;max-width:none;margin:0 0 9px;padding:0}.pos-mode #kasir-form>.form-row:last-of-type .form-group:nth-child(1){padding:9px;background:#fff;border:1px solid #dfe4eb;border-radius:7px}.pos-mode #kasir-form>.form-row:last-of-type .form-group:nth-child(1):before{content:'RINGKASAN';display:block;font-size:10px;font-weight:700;color:#667386;margin-bottom:7px}.pos-mode #kasir-form>.form-row:last-of-type .form-group:nth-child(2){background:#fff;border:1px solid #dfe4eb;border-radius:7px;padding:10px}.pos-mode #kasir-form>.form-row:last-of-type .form-group:nth-child(2):before{content:'METODE PEMBAYARAN';display:block;font-size:10px;font-weight:700;color:#667386;margin-bottom:7px}.pos-mode #metode-pembayaran{height:35px}.pos-mode #kasir-form>.form-row:last-of-type .form-group:nth-child(3){display:none!important}.pos-mode #kasir-form>.form-row:last-of-type .form-group:nth-child(4),.pos-mode #kasir-form>.form-row:last-of-type .form-group:nth-child(5){background:#fff;border:1px solid #ccebdc;border-radius:7px;padding:9px}.pos-mode #dibayar{border-color:#f0b274;background:#fffaf2;text-align:right;font-weight:700}.pos-mode #kembalian{background:#effbf4;color:#16805d;text-align:right;font-weight:700}.pos-mode #kasir-form>.form-row:last-of-type .form-group:nth-child(6){display:none!important}.pos-mode #save-sale{width:100%;height:37px;background:#168f54;border-color:#168f54;font-weight:700}.pos-mode #sales-history{display:none}
.pos-mode .kasir-card .table-responsive{overflow:auto}.pos-mode .ts-wrapper.single .ts-control{min-height:28px;padding:5px 26px 5px 7px;border-radius:4px;font-size:11px}
@media(max-width:900px){.pos-shortcuts{overflow:hidden}.pos-key:nth-child(n+6){display:none}.pos-brand{min-width:95px}.pos-mode #kasir-form{grid-template-columns:minmax(0,1fr) 205px}.pos-mode #kasir-form>.form-row:first-of-type{grid-template-columns:1fr 1fr 65px 105px 95px 70px}.pos-mode #kasir-form>.form-row:first-of-type .form-group:nth-child(3){grid-column:1 / span 2}}
@media(max-width:640px){.pos-toolbar{gap:8px}.pos-brand{min-width:auto}.pos-brand strong{display:none}.pos-total-mini{min-width:95px}.pos-customer-hint{display:none}.pos-customer-bar input{max-width:none;flex:1}.pos-mode #kasir-form{display:block}.pos-mode #kasir-form>.form-row:first-of-type,.pos-mode #kasir-form>.form-row:last-of-type{display:block}.pos-mode #kasir-form>.form-row:first-of-type .form-group{margin-bottom:5px}.pos-mode #kasir-form>.table-responsive{min-height:300px}.pos-mode #kasir-form>.form-row:last-of-type{border-top:1px solid #d8dee7}}
.pos-payment-buttons{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:8px}.pos-pay{min-height:49px;border:1px solid #d4dae2;border-radius:6px;background:#fff;color:#526074;font-size:16px;line-height:16px}.pos-pay strong,.pos-pay small{display:block;font-size:10px}.pos-pay small{font-size:8px;color:#8994a3;margin-top:2px}.pos-pay.active{background:#16a05a;color:#fff;border-color:#16a05a}.pos-pay.active small{color:#d8f6e5}

/* POS yang lebih lega dan mudah dibaca */
.pos-mode{background:#eef2f7;font-size:13px}
.pos-toolbar{height:54px;padding:0 18px;gap:22px;background:linear-gradient(100deg,#1e2d46,#293c5b);border-bottom:0}
.pos-brand{min-width:158px;font-size:14px}.pos-brand strong{font-size:14px;letter-spacing:.02em}.pos-brand-icon{font-size:17px}
.pos-shortcuts{gap:7px}.pos-key{padding:6px 9px;border-radius:5px;font-size:11px}.pos-key b{font-size:10px}
.pos-total-mini{min-width:160px;gap:10px}.pos-total-mini small{font-size:8px}.pos-total-mini strong{font-size:20px}
.pos-customer-bar{height:46px;padding:7px 18px;gap:14px}.pos-customer-bar label{font-size:12px}.pos-customer-bar input{height:32px;max-width:420px;font-size:12px;border-radius:6px}.pos-customer-hint{font-size:10px}
.pos-mode #kasir-form{grid-template-columns:minmax(0,1fr) 292px;grid-template-rows:auto minmax(360px,1fr);min-height:calc(100vh - 100px)}
.pos-mode #kasir-form>.form-row:first-of-type{grid-template-columns:minmax(150px,1.15fr) minmax(220px,1.9fr) 72px minmax(130px,1.1fr) minmax(100px,.85fr) 92px;gap:10px;padding:12px 18px 10px;background:#fff;border-bottom:1px solid #dce3ed}
.pos-mode #kasir-form>.form-row:first-of-type .form-group{min-width:0}.pos-mode #kasir-form label{margin-bottom:5px;font-size:11px;font-weight:600;color:#526174}.pos-mode #kasir-form .form-control{height:36px;border-radius:6px;font-size:12px;padding:6px 9px}
.pos-mode #barcode-status{font-size:10px;line-height:13px;margin-top:3px}.pos-mode #add-to-cart{height:36px;padding:6px 8px;font-size:12px;font-weight:700}
.pos-mode #cart-table{min-width:700px}.pos-mode #cart-table thead th{padding:10px 12px;font-size:10px;letter-spacing:.04em}.pos-mode #cart-table td{padding:12px;font-size:12px}.pos-mode #cart-table tfoot th{padding:12px;font-size:13px}.pos-mode #cart-table tbody{height:calc(100vh - 214px)}
.pos-mode #kasir-form>.form-row:last-of-type{padding:16px;background:#f5f7fa;border-left:1px solid #dce3ed}.pos-mode #kasir-form>.form-row:last-of-type .form-group{margin-bottom:12px}.pos-mode #kasir-form>.form-row:last-of-type .form-group:nth-child(1),.pos-mode #kasir-form>.form-row:last-of-type .form-group:nth-child(2){padding:12px;border-radius:10px}.pos-mode #kasir-form>.form-row:last-of-type .form-group:nth-child(1):before,.pos-mode #kasir-form>.form-row:last-of-type .form-group:nth-child(2):before{font-size:11px;margin-bottom:9px}
.pos-mode #metode-pembayaran{height:38px}.pos-mode .pos-payment-buttons{gap:8px;margin-top:10px}.pos-mode .pos-pay{min-height:55px;border-radius:8px;font-size:18px}.pos-mode .pos-pay strong{font-size:11px}.pos-mode #dibayar,.pos-mode #kembalian{height:40px;font-size:14px}.pos-mode #save-sale{height:43px;border-radius:8px;font-size:12px}.pos-mode .ts-wrapper.single .ts-control{min-height:36px;padding:9px 30px 9px 9px;font-size:12px;border-radius:6px}
@media(max-width:1100px){.pos-toolbar{gap:12px;padding:0 12px}.pos-brand{min-width:130px}.pos-mode #kasir-form{grid-template-columns:minmax(0,1fr) 260px}.pos-mode #kasir-form>.form-row:first-of-type{grid-template-columns:1.1fr 1.5fr 65px 1fr 90px 80px;gap:7px;padding-left:12px;padding-right:12px}}
@media(max-width:700px){.pos-toolbar{height:48px}.pos-total-mini{min-width:105px}.pos-mode #kasir-form{display:block;min-height:0}.pos-mode #kasir-form>.form-row:first-of-type,.pos-mode #kasir-form>.form-row:last-of-type{display:block;padding:12px}.pos-mode #kasir-form>.form-row:first-of-type .form-group{margin-bottom:8px}.pos-mode #kasir-form>.table-responsive{min-height:330px;border-right:0}.pos-mode #cart-table tbody{height:auto;min-height:250px}}

/* POS compact layout: optimized for cashier screens and the reference layout. */
.pos-mode{background:#f1f4f8;color:#31415a;font-size:12px;overflow:hidden}
.pos-toolbar{height:36px;padding:0 8px;gap:12px;background:#182942;border-bottom:1px solid #334866}
.pos-brand{min-width:165px;gap:6px;font-size:12px}.pos-brand strong{font-size:12px}.pos-brand-icon{font-size:14px}
.pos-shortcuts{gap:5px}.pos-key{padding:4px 7px;border-radius:3px;font-size:9px}.pos-key b{font-size:8px}
.pos-total-mini{min-width:120px;gap:7px}.pos-total-mini strong{font-size:16px}.pos-total-mini small{font-size:7px}
.pos-customer-bar{height:34px;padding:4px 8px;gap:8px}.pos-customer-bar label{font-size:10px}.pos-customer-bar input{height:26px;max-width:calc(100% - 240px);font-size:11px;border-radius:4px}.pos-customer-hint{font-size:8px}
.pos-mode #kasir-form{grid-template-columns:minmax(0,1fr) 245px;grid-template-rows:auto minmax(0,1fr);min-height:calc(100vh - 70px)}
.pos-mode #kasir-form>.form-row:first-of-type{grid-template-columns:minmax(190px,1.15fr) minmax(260px,1.7fr) 64px minmax(120px,1fr) 105px 82px;gap:7px;padding:8px 8px 7px;background:#fff}
.pos-mode #kasir-form label{margin-bottom:3px;font-size:9px}.pos-mode #kasir-form .form-control{height:34px;border-radius:5px;font-size:11px;padding:5px 8px}.pos-mode #add-to-cart{height:34px;font-size:10px}
.pos-mode #cart-table{min-width:650px}.pos-mode #cart-table thead th{padding:7px 10px;font-size:8px}.pos-mode #cart-table td{padding:7px 10px;font-size:11px}.pos-mode #cart-table tbody{height:calc(100vh - 165px)}.pos-mode #cart-table tfoot{display:none}
.pos-mode #kasir-form>.form-row:last-of-type{padding:8px;background:#f6f8fb;border-left:1px solid #d6deea;display:flex;flex-direction:column}.pos-mode #kasir-form>.form-row:last-of-type .form-group{margin-bottom:9px}
.pos-mode #kasir-form>.form-row:last-of-type .form-group:nth-child(1){padding:10px;border-radius:8px}.pos-mode #kasir-form>.form-row:last-of-type .form-group:nth-child(1):before{font-size:9px;margin-bottom:6px}
.pos-mode #kasir-form>.form-row:last-of-type .form-group:nth-child(2){padding:10px;border-radius:8px}.pos-mode #kasir-form>.form-row:last-of-type .form-group:nth-child(2):before{font-size:9px;margin-bottom:6px}
.pos-mode #metode-pembayaran{height:34px}.pos-mode .pos-payment-buttons{gap:5px;margin-top:7px}.pos-mode .pos-pay{min-height:48px;border-radius:6px;font-size:15px}.pos-mode .pos-pay strong{font-size:9px}.pos-mode .pos-pay small{font-size:7px}
.pos-mode #dibayar,.pos-mode #kembalian{height:33px;font-size:12px}.pos-mode #save-sale{height:38px;border-radius:7px;font-size:10px}.pos-mode #save-sale kbd{float:right;padding:2px 4px;background:#168f54;color:#fff;font-size:8px}
.pos-mode #kasir-form>.form-row:last-of-type .form-group:nth-child(7){margin-top:auto!important}
.pos-side-actions{display:flex;gap:5px;margin-top:6px}.pos-side-actions .btn{flex:1;height:30px;padding:5px;font-size:9px;border:1px solid #e0e4ea}.pos-mode #sales-history{display:none}
@media(max-width:900px){.pos-mode #kasir-form{grid-template-columns:minmax(0,1fr) 215px}.pos-brand{min-width:125px}.pos-key{padding-left:5px;padding-right:5px}.pos-mode #kasir-form>.form-row:first-of-type{grid-template-columns:1.1fr 1.5fr 60px 1fr 90px 75px;gap:5px}}

/* Cart table: compact product list with inline quantity controls. */
.pos-mode #cart-table{table-layout:fixed;border-color:#e0e5ec}
.pos-mode #cart-table .cart-col-number{width:34px}.pos-mode #cart-table .cart-col-product{width:auto}.pos-mode #cart-table .cart-col-unit{width:76px}.pos-mode #cart-table .cart-col-price{width:105px}.pos-mode #cart-table .cart-col-qty{width:126px}.pos-mode #cart-table .cart-col-subtotal{width:125px}.pos-mode #cart-table .cart-col-action{width:34px}
.pos-mode #cart-table thead th{background:#f1f3f6;color:#5b687b;border-top:0;border-bottom:1px solid #dfe4eb;font-weight:700;text-transform:none;white-space:nowrap}
.pos-mode #cart-table tbody tr{height:32px}.pos-mode #cart-table tbody td{padding:5px 8px;color:#4a586b;vertical-align:middle;border-color:#e5e9ef}.pos-mode #cart-table tbody tr:nth-child(even){background:#f5f8fc}.pos-mode #cart-table tbody tr:hover{background:#edf5ff}.pos-mode #cart-table .cart-row-number{color:#8b96a5;text-align:center;font-size:10px}.pos-mode #cart-table .cart-product{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pos-mode #cart-table .cart-product strong{font-weight:700}.pos-mode #cart-table .cart-remove{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;padding:0;border:1px solid #f2b8c0;border-radius:7px;background:#fff5f6;color:#c8374d;line-height:1;cursor:pointer;transition:color .15s,background .15s,border-color .15s,transform .15s,box-shadow .15s}.pos-mode #cart-table .cart-remove svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.pos-mode #cart-table .cart-remove:hover{color:#a91f36;background:#ffe7eb;border-color:#e78491;transform:translateY(-1px);box-shadow:0 3px 8px rgba(177,38,58,.16)}.pos-mode #cart-table .cart-remove:focus-visible{outline:3px solid rgba(200,55,77,.22);outline-offset:2px}
.pos-mode #cart-table .cart-remove{font-size:0}.pos-mode #cart-table .cart-remove:before{content:"";display:block;width:15px;height:15px;background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8374d' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M10 11v6M14 11v6M6 7l1 13h10l1-13M9 7V4h6v3'/%3E%3C/svg%3E")}.pos-mode #cart-table .cart-remove:hover:before{filter:brightness(.8)}
/* Final POS skin: compact cashier layout matching the reference proportions. */
.pos-mode .pos-toolbar{height:30px;padding:0 7px;gap:10px;background:#1d2d46}
.pos-mode .pos-brand{min-width:118px;font-size:10px}.pos-mode .pos-brand strong{font-size:10px}.pos-mode .pos-brand-icon{font-size:12px}
.pos-mode .pos-shortcuts{gap:4px}.pos-mode .pos-key{padding:3px 6px;font-size:8px;border-radius:2px}.pos-mode .pos-key b{font-size:7px}
.pos-mode .pos-total-mini{min-width:145px;gap:7px}.pos-mode .pos-total-mini strong{font-size:16px}.pos-mode .pos-total-mini small{font-size:7px}
.pos-mode .pos-customer-bar{height:27px;padding:3px 5px;gap:7px}.pos-mode .pos-customer-bar label{font-size:9px}.pos-mode .pos-customer-bar input{height:21px;max-width:none;flex:1;font-size:10px;padding:2px 7px}.pos-mode .pos-customer-hint{display:none}
.pos-mode #kasir-form{grid-template-columns:minmax(0,1fr) 196px;grid-template-rows:34px minmax(0,1fr);min-height:calc(100vh - 57px)}
.pos-mode #kasir-form>.form-row:first-of-type{grid-template-columns:minmax(170px,1.2fr) minmax(180px,1.5fr) 52px 105px 78px 66px;gap:5px;padding:5px 5px 4px;background:#fff}
.pos-mode #kasir-form label{margin-bottom:2px;font-size:8px}.pos-mode #kasir-form .form-control{height:24px;border-radius:3px;font-size:10px;padding:3px 6px}.pos-mode #add-to-cart{height:24px;font-size:9px;padding:2px 5px}
.pos-mode #cart-table{min-width:610px}.pos-mode #cart-table thead th{padding:6px 7px;font-size:8px}.pos-mode #cart-table tbody td{padding:5px 7px;font-size:10px}.pos-mode #cart-table tbody{height:calc(100vh - 120px)}
.pos-mode #kasir-form>.form-row:last-of-type{padding:6px;background:#f8fafc;border-left:1px solid #d7dee8}.pos-mode #kasir-form>.form-row:last-of-type .form-group{margin-bottom:6px}
.pos-mode #kasir-form>.form-row:last-of-type .form-group:nth-child(1){padding:7px;border-radius:6px}.pos-mode #kasir-form>.form-row:last-of-type .form-group:nth-child(1):before{content:'GRAND TOTAL';font-size:8px;margin-bottom:4px}.pos-mode #kasir-form>.form-row:last-of-type .form-group:nth-child(1):after{content:'TOTAL  Rp 0';display:block;margin-top:5px;padding-top:5px;border-top:1px solid #e6eaf0;color:#2864dd;font-size:9px;font-weight:700;text-align:right}
.pos-mode #kasir-form>.form-row:last-of-type .form-group:nth-child(1) label{display:inline-block;margin:4px 0 0;font-size:8px}.pos-mode #kasir-form>.form-row:last-of-type .form-group:nth-child(1) #diskon-global{display:inline-block;width:62%;height:23px;float:right;text-align:right}
.pos-mode #kasir-form>.form-row:last-of-type .form-group:nth-child(2){padding:7px;border-radius:6px}.pos-mode #kasir-form>.form-row:last-of-type .form-group:nth-child(2):before{font-size:8px;margin-bottom:5px}.pos-mode #metode-pembayaran{height:25px}.pos-mode .pos-payment-buttons{gap:4px;margin-top:5px}.pos-mode .pos-pay{min-height:42px;border-radius:5px;font-size:13px}.pos-mode .pos-pay strong{font-size:8px}.pos-mode .pos-pay small{font-size:6px}
.pos-mode #dibayar,.pos-mode #kembalian{height:25px;font-size:10px}.pos-mode #save-sale{height:31px;border-radius:6px;font-size:9px}.pos-mode #save-sale kbd{font-size:7px}.pos-mode .pos-side-actions .btn{height:24px;padding:3px;font-size:8px}.pos-mode #kasir-form>.form-row:last-of-type .form-group:nth-child(7){margin-top:auto!important}
.pos-mode .qty-control{display:inline-flex;align-items:center;justify-content:center;gap:4px}.pos-mode .qty-button{width:20px;height:20px;padding:0;border:1px solid #dfe4eb;border-radius:50%;background:#fff;color:#718096;font-size:14px;line-height:17px;cursor:pointer}.pos-mode .qty-button:hover{border-color:#9ab7d8;color:#2864a8;background:#f1f7ff}.pos-mode .qty-input{width:31px;height:22px;padding:2px;border:1px solid #d8dee8;border-radius:3px;background:#fff;text-align:center;color:#3f4d60;font-size:11px}.pos-mode .qty-input::-webkit-inner-spin-button,.pos-mode .qty-input::-webkit-outer-spin-button{appearance:none;margin:0}.pos-mode .qty-input{-moz-appearance:textfield}

/* Layout kasir klasik, sesuai tampilan formulir penjualan lama. */
.kasir-reference-mode #kasir-form>.form-row:first-of-type{grid-template-columns:1fr 1.35fr 1.35fr 82px}.kasir-reference-mode #kasir-form>.form-row:first-of-type .form-group:nth-child(1){grid-column:1;grid-row:1}.kasir-reference-mode #kasir-form>.form-row:first-of-type .form-group:nth-child(2){grid-column:2 / span 2;grid-row:1}.kasir-reference-mode #kasir-form>.form-row:first-of-type .form-group:nth-child(3){grid-column:3 / span 2;grid-row:1}.kasir-reference-mode #kasir-form>.form-row:first-of-type .form-group:nth-child(4){grid-column:1;grid-row:2}.kasir-reference-mode #kasir-form>.form-row:first-of-type .form-group:nth-child(5){grid-column:2;grid-row:2}.kasir-reference-mode #kasir-form>.form-row:first-of-type .form-group:nth-child(6){grid-column:3;grid-row:2}.kasir-reference-mode #kasir-form>.form-row:first-of-type .form-group:nth-child(7){grid-column:4;grid-row:2;margin:0;width:auto}
.pos-mode #kasir-form>.form-row:first-of-type .form-group:nth-child(1){display:block}
.kasir-reference-mode{background:radial-gradient(circle at 100% 0%,#f5f2ff 0,#edf1f7 34%,#e8edf4 100%);overflow-x:hidden}.kasir-reference-mode .topbar,.kasir-reference-mode .sidebar{display:none!important}.kasir-reference-mode .app-shell,.kasir-reference-mode .app-shell>.row{display:block;margin:0;max-width:none}.kasir-reference-mode .content{width:100%;max-width:none;padding:22px 23px}.kasir-reference-mode .content>h3{display:block;margin:0 0 8px;font:700 22px Manrope;color:#172033}.kasir-reference-mode .pos-toolbar,.kasir-reference-mode .pos-customer-bar,.kasir-reference-mode #sales-history{display:none}.kasir-reference-mode .kasir-card{margin:0!important;border:0;border-radius:0;background:#fff;box-shadow:none}.kasir-reference-mode .kasir-card>.card-body{padding:16px}.kasir-reference-mode #kasir-form>input{display:none}.kasir-reference-mode #kasir-form>.form-row:first-of-type{display:grid;grid-template-columns:1.05fr 1.42fr 1.42fr;gap:12px 8px;margin:0 0 12px;align-items:end}.kasir-reference-mode #kasir-form>.form-row:first-of-type .form-group{margin:0;padding:0;max-width:none}.kasir-reference-mode #kasir-form>.form-row:first-of-type .form-group:nth-child(n+4){grid-row:2}.kasir-reference-mode #kasir-form>.form-row:first-of-type .form-group:nth-child(4){grid-column:1}.kasir-reference-mode #kasir-form>.form-row:first-of-type .form-group:nth-child(5){grid-column:2}.kasir-reference-mode #kasir-form>.form-row:first-of-type .form-group:nth-child(6){grid-column:3}.kasir-reference-mode #kasir-form>.form-row:first-of-type .form-group:nth-child(7){grid-column:3;justify-self:start;width:82px;margin-left:178px}.kasir-reference-mode #kasir-form label{margin:0 0 5px;font-size:11px;color:#172033;font-weight:400}.kasir-reference-mode #kasir-form .form-control{height:32px;border-radius:6px;font-size:11px;padding:6px 10px}.kasir-reference-mode #barcode-status{display:none}.kasir-reference-mode #clear-barcode{display:block;height:32px;padding:4px 12px;font-size:10px}.kasir-reference-mode #add-to-cart{height:32px;padding:5px 12px;font-size:11px}.kasir-reference-mode #kasir-form>.table-responsive{margin:0 0 14px!important;overflow-x:auto}.kasir-reference-mode #cart-table{margin:0;table-layout:fixed;border-color:#dce2ea;border-radius:0;min-width:700px}.kasir-reference-mode #cart-table thead th{padding:8px 9px;background:#d1d5db;color:#4b5563;font-size:9px;text-transform:uppercase}.kasir-reference-mode #cart-table td{padding:8px 9px;font-size:10px;border-color:#e1e6ed}.kasir-reference-mode #cart-table tbody tr:only-child td{height:34px;color:#68758b}.kasir-reference-mode #cart-table tfoot th{padding:9px;font-size:11px;background:#fff;border-color:#dce2ea}.kasir-reference-mode #cart-table .cart-col-number,.kasir-reference-mode #cart-table .cart-col-unit{display:none}.kasir-reference-mode #cart-table thead th:nth-child(1),.kasir-reference-mode #cart-table thead th:nth-child(3),.kasir-reference-mode #cart-table tbody td:nth-child(1),.kasir-reference-mode #cart-table tbody td:nth-child(3){display:none}.kasir-reference-mode #cart-table .cart-col-product{width:34%}.kasir-reference-mode #cart-table .cart-col-price{width:18%}.kasir-reference-mode #cart-table .cart-col-qty{width:13%}.kasir-reference-mode #cart-table .cart-col-subtotal{width:20%}.kasir-reference-mode #cart-table .cart-col-action{width:10%}.kasir-reference-mode #kasir-form>.form-row:last-of-type{display:grid;grid-template-columns:1.05fr 1.05fr 1.05fr 1.05fr 1.05fr 121px;gap:8px;align-items:end;margin:0}.kasir-reference-mode #kasir-form>.form-row:last-of-type .form-group{margin:0;padding:0;max-width:none}.kasir-reference-mode #kasir-form>.form-row:last-of-type .form-group:nth-child(3){display:none!important}.kasir-reference-mode .pos-payment-buttons,.kasir-reference-mode .pos-side-actions{display:none}.kasir-reference-mode #save-sale{height:31px;padding:5px 10px;background:#51a2f5;border-color:#51a2f5;font-size:10px;white-space:nowrap}.kasir-reference-mode #dibayar,.kasir-reference-mode #kembalian{height:31px}.kasir-reference-mode #kembalian{background:#e9ecef}@media(max-width:800px){.kasir-reference-mode .content{padding:18px 12px}.kasir-reference-mode #kasir-form>.form-row:first-of-type,.kasir-reference-mode #kasir-form>.form-row:last-of-type{display:block}.kasir-reference-mode #kasir-form>.form-row:first-of-type .form-group,.kasir-reference-mode #kasir-form>.form-row:last-of-type .form-group{margin-bottom:10px}.kasir-reference-mode #kasir-form>.form-row:first-of-type .form-group:nth-child(n+4){display:block}.kasir-reference-mode #kasir-form>.form-row:first-of-type .form-group:nth-child(7){margin-left:0}}
@media(min-width:801px){.kasir-reference-mode #kasir-form>.form-row:first-of-type .form-group:nth-child(4),.kasir-reference-mode #kasir-form>.form-row:first-of-type .form-group:nth-child(5),.kasir-reference-mode #kasir-form>.form-row:first-of-type .form-group:nth-child(6){width:170px}}

/* Penyelarasan tabel keranjang kasir klasik. */
.kasir-reference-mode #cart-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}
.kasir-reference-mode #cart-table .cart-col-product { width: 29%; }
.kasir-reference-mode #cart-table .cart-col-price { width: 17%; }
.kasir-reference-mode #cart-table .cart-col-qty { width: 14%; }
.kasir-reference-mode #cart-table .cart-col-subtotal { width: 16%; }
.kasir-reference-mode #cart-table .cart-col-action { width: 10%; }
.kasir-reference-mode #cart-table th,
.kasir-reference-mode #cart-table td { white-space: nowrap; }
.kasir-reference-mode #cart-table .cart-product {
  overflow: hidden;
  text-overflow: ellipsis;
}
.kasir-reference-mode #cart-table tfoot th {
  white-space: nowrap;
  font-weight: 700;
}
.kasir-reference-mode #cart-table tfoot #cart-total {
  color: #172033;
  font-weight: 700;
}
.kasir-reference-mode #cart-table tfoot th[colspan="6"] {
  padding-right: 12px;
  text-align: right;
}
.kasir-reference-mode #cart-table tfoot th[id^="cart-"] {
  padding-left: 10px;
  padding-right: 10px;
  text-align: right;
  white-space: nowrap;
}
.kasir-reference-mode .qty-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  white-space: nowrap;
}
.kasir-reference-mode .qty-button {
  width: 16px;
  height: 20px;
  padding: 0;
  font-size: 11px;
  line-height: 18px;
}
.kasir-reference-mode .qty-input {
  width: 100px;
  height: 20px;
  padding: 2px 4px;
  font-size: 10px;
}
.kasir-reference-mode #cart-table .cart-remove { width: 25px; height: 25px; }
.kasir-reference-mode #cart-table .cart-remove svg { width: 14px; height: 14px; }

/* Batasi tinggi keranjang agar banyak item dapat digulir tanpa memanjangkan halaman. */
.kasir-reference-mode #kasir-form > .cart-scroll {
  max-height: 360px;
  overflow-x: auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.kasir-reference-mode #cart-table thead {
  position: sticky;
  top: 0;
  z-index: 2;
}
.kasir-reference-mode #cart-table thead th {
  background: #d1d5db;
}
.kasir-reference-mode #cart-table tfoot {
  position: sticky;
  bottom: 0;
  z-index: 2;
}

/* POS penuh layar: daftar item tetap berada di area scroll yang terbatas. */
.pos-mode #kasir-form > .cart-scroll {
  max-height: calc(100vh - 165px);
  overflow-x: auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

@media (max-width: 800px) {
  .kasir-reference-mode #save-sale {
    display: block;
    width: 100%;
    box-sizing: border-box;
    white-space: normal;
    line-height: 1.2;
  }
}

@media (min-width: 801px) {
  .kasir-reference-mode #save-sale {
    width: 112px;
    padding-left: 7px;
    padding-right: 7px;
  }
}

@media (min-width: 701px) {
  .kasir-reference-mode #kasir-form > .form-row:last-of-type {
    display: grid !important;
    grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    gap: 12px !important;
    justify-content: stretch;
  }
  .kasir-reference-mode #kasir-form > .form-row:last-of-type > .form-group,
  .kasir-reference-mode #kasir-form > .form-row:last-of-type > .form-group:last-child,
  .kasir-reference-mode #kasir-form > .form-row:last-of-type #save-sale {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }
}

/* Keep the receipt button inside its grid column on narrow layouts. */
.kasir-reference-mode #save-sale {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  line-height: 1.2;
  white-space: normal;
}

/* Bon wajib memakai pelanggan; tampilkan field ini pada layout kasir klasik. */
.kasir-reference-mode #kasir-form>.form-row:last-of-type {
  grid-template-columns: repeat(6, minmax(0, 1fr)) 121px;
}
.kasir-reference-mode #kasir-form>.form-row:last-of-type .form-group:nth-child(3) {
  display: block !important;
}
.cart-discount-input { min-width: 78px; text-align: right; }
.kasir-reference-mode #cart-table .cart-col-discount { width: 14%; }
.kasir-reference-mode #cart-table .cart-discount-input { width: 100%; height: 24px; padding: 3px 5px; font-size: 10px; }
.kasir-reference-mode #cart-table .cart-price-input { width: 100%; height: 24px; padding: 3px 5px; font-size: 10px; text-align: right; }
.kasir-card #cart-table .cart-price-input { width: 100%; min-width: 92px; text-align: right; }

/* Keep the cart as eight aligned columns in the reference cashier layout. */
.kasir-reference-mode #cart-table .cart-col-number,
.kasir-reference-mode #cart-table .cart-col-product,
.kasir-reference-mode #cart-table .cart-col-unit,
.kasir-reference-mode #cart-table .cart-col-price,
.kasir-reference-mode #cart-table .cart-col-discount,
.kasir-reference-mode #cart-table .cart-col-qty,
.kasir-reference-mode #cart-table .cart-col-subtotal,
.kasir-reference-mode #cart-table .cart-col-action { display: table-column; }
.kasir-reference-mode #cart-table thead th:nth-child(1),
.kasir-reference-mode #cart-table thead th:nth-child(3),
.kasir-reference-mode #cart-table tbody td:nth-child(1),
.kasir-reference-mode #cart-table tbody td:nth-child(3) { display: table-cell; }
.kasir-reference-mode #cart-table .cart-col-number { width: 5%; }
.kasir-reference-mode #cart-table .cart-col-product { width: 25%; }
.kasir-reference-mode #cart-table .cart-col-unit { width: 10%; }
.kasir-reference-mode #cart-table .cart-col-price { width: 15%; }
.kasir-reference-mode #cart-table .cart-col-discount { width: 14%; }
.kasir-reference-mode #cart-table .cart-col-qty { width: 12%; }
.kasir-reference-mode #cart-table .cart-col-subtotal { width: 14%; }
.kasir-reference-mode #cart-table .cart-col-action { width: 5%; }
.kasir-reference-mode #cart-table tfoot th[colspan="5"] { text-align: right; }
/* Autocomplete produk kasir: mendukung input manual selain scanner barcode. */
.product-suggestion.active{background:#edf5ff;outline:0}
.barcode-search-wrap{position:relative}.product-suggestions{display:none;position:absolute;z-index:1050;left:0;right:0;top:100%;max-height:260px;overflow-y:auto;background:#fff;border:1px solid #b9c7d8;border-radius:0 0 6px 6px;box-shadow:0 5px 14px rgba(30,55,90,.15)}.product-suggestions.is-open{display:block}.product-suggestion{display:block;width:100%;padding:8px 10px;border:0;border-bottom:1px solid #edf0f4;background:#fff;text-align:left;cursor:pointer;color:#26364a}.product-suggestion:last-child{border-bottom:0}.product-suggestion:hover,.product-suggestion:focus{background:#edf5ff;outline:0}.product-suggestion strong{display:block;font-size:12px}.product-suggestion small{display:block;margin-top:2px;color:#718096;font-size:10px}.product-suggestion-empty{padding:9px 10px;color:#7b8794;font-size:11px}

/* Harga dan scanner tetap sejajar pada tampilan kasir klasik yang sempit. */
@media (max-width: 800px) {
  .kasir-reference-mode #kasir-form>.form-row:first-of-type {
    display: grid;
    grid-template-columns: minmax(125px, .9fr) minmax(0, 1.6fr);
    gap: 8px;
    align-items: end;
  }
  .kasir-reference-mode #kasir-form>.form-row:first-of-type .form-group:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }
  .kasir-reference-mode #kasir-form>.form-row:first-of-type .form-group:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }
}

/* Tombol ikon metode pembayaran untuk kasir klasik. */
.kasir-reference-mode .pos-payment-buttons{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-top:7px}
.kasir-reference-mode #metode-pembayaran{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.kasir-reference-mode .pos-pay{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:58px;padding:6px 3px;border:1px solid #dce3ed;border-radius:8px;background:#fff;color:#526174;cursor:pointer;transition:all .15s ease}
.kasir-reference-mode .pos-pay:hover{border-color:#8db6ea;background:#f4f8ff;transform:translateY(-1px)}
.kasir-reference-mode .pos-pay:focus-visible{outline:3px solid rgba(40,100,221,.2);outline-offset:2px}
.kasir-reference-mode .pos-pay-icon{display:grid;place-items:center;width:25px;height:25px;margin-bottom:4px;color:#2864dd}
.kasir-reference-mode .pos-pay-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.kasir-reference-mode .pos-pay strong{font-size:9px;line-height:1.1}.kasir-reference-mode .pos-pay small{margin-top:3px;color:#8994a3;font-size:7px;line-height:1}
.kasir-reference-mode .pos-pay.active{background:#2864dd;border-color:#2864dd;color:#fff;box-shadow:0 4px 10px rgba(40,100,221,.18)}
.kasir-reference-mode .pos-pay.active .pos-pay-icon,.kasir-reference-mode .pos-pay.active small{color:#dceaff}.kasir-reference-mode .pos-side-actions{display:none}

/* Metode pembayaran dipilih lewat tombol ikon agar dropdown tidak memenuhi panel. */
.kasir-reference-mode #metode-pembayaran,.pos-mode #metode-pembayaran{display:none!important}
.kasir-card #metode-pembayaran{display:none!important}
.kasir-reference-mode .pos-payment-buttons,.pos-mode .pos-payment-buttons{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-top:7px;width:100%}
.kasir-card .pos-payment-buttons{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-top:7px;width:100%}
.kasir-reference-mode .pos-pay,.pos-mode .pos-pay{min-width:0;min-height:58px;padding:6px 3px;overflow:hidden}
.kasir-card .pos-pay{min-width:0;min-height:58px;padding:6px 3px;overflow:hidden}
.kasir-reference-mode .pos-pay strong,.pos-mode .pos-pay strong{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.kasir-card #cart-table tfoot th{border-top:0;background:#fbfcfe;color:#536174;font-size:11px;padding:5px 8px}
.kasir-card #cart-table tfoot th[rowspan]{background:#fff}
.kasir-card #cart-table tfoot .cart-grand-total th{border-top:2px solid #d8e0eb;background:#eef5ff;color:#172033;font-size:13px;font-weight:700;padding-top:8px;padding-bottom:8px}
.kasir-card #ppn-persen{border-color:#9cc3ed;background:#f7fbff;font-weight:600}
.kasir-card #ppn-persen:focus{border-color:#5b7cfa;box-shadow:0 0 0 .15rem rgba(91,124,250,.14)}
.kasir-card .form-group:has(#ppn-persen) label{white-space:nowrap}
/* Kolom PPN tetap mendapat ruang sendiri pada layout kasir klasik. */
@media (min-width:801px){
  .kasir-reference-mode #kasir-form>.form-row:last-of-type{grid-template-columns:repeat(7,minmax(0,1fr)) 121px;gap:8px}
  .kasir-reference-mode #kasir-form>.form-row:last-of-type .form-group{min-width:0}
}
@media (max-width:800px){
  .kasir-card #ppn-persen{min-width:0}
}
@media(max-width:800px){.kasir-card #cart-table tfoot th[rowspan]{display:none}.kasir-card #cart-table tfoot th[colspan="5"]{display:none}.kasir-card #cart-table tfoot tr{display:grid;grid-template-columns:1fr 1fr}.kasir-card #cart-table tfoot tr th{display:block}.kasir-card #cart-table tfoot tr th:nth-last-child(1){text-align:right}.kasir-card #cart-table tfoot tr th:last-child{display:none}}
@media(max-width:480px){.kasir-reference-mode .pos-payment-buttons,.pos-mode .pos-payment-buttons{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.kasir-reference-mode .pos-pay,.pos-mode .pos-pay{min-height:54px}}

/* Keranjang kasir di HP: ubah baris tabel menjadi kartu agar seluruh informasi
   dapat dibaca tanpa scroll horizontal. Tampilan desktop tetap berupa tabel. */
@media (max-width: 600px) {
  .kasir-reference-mode .kasir-card > .card-body {
    padding: 10px;
  }

  .kasir-reference-mode #kasir-form > .cart-scroll {
    max-height: none;
    margin: 0 -2px 12px !important;
    overflow: visible;
  }

  .kasir-reference-mode #cart-table,
  .kasir-reference-mode #cart-table tbody,
  .kasir-reference-mode #cart-table tfoot,
  .kasir-reference-mode #cart-table tr,
  .kasir-reference-mode #cart-table td,
  .kasir-reference-mode #cart-table th {
    display: block;
    width: auto;
  }

  .kasir-reference-mode #cart-table {
    min-width: 0;
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
  }

  .kasir-reference-mode #cart-table thead {
    display: none;
  }

  .kasir-reference-mode #cart-table tbody {
    padding: 0;
  }

  .kasir-reference-mode #cart-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0 10px;
    margin-bottom: 8px;
    padding: 9px 10px;
    border: 1px solid #dce3ed;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 7px rgba(31, 48, 76, .06);
  }

  .kasir-reference-mode #cart-table tbody tr:not(:has(.cart-product)) {
    display: block;
    min-height: 54px;
    padding: 17px 10px;
    text-align: center;
  }

  .kasir-reference-mode #cart-table tbody tr:not(:has(.cart-product)) td {
    display: block;
    min-height: 0;
    padding: 0;
    text-align: center;
  }

  .kasir-reference-mode #cart-table tbody tr:not(:has(.cart-product)) td:nth-child(1) {
    display: block;
  }

  .kasir-reference-mode #cart-table tbody td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    min-height: 30px;
    padding: 4px 0;
    border: 0;
    white-space: normal;
    text-align: right;
    font-size: 11px;
  }

  .kasir-reference-mode #cart-table tbody td::before {
    flex: 0 0 auto;
    margin-right: 10px;
    color: #7a8798;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    text-align: left;
  }

  .kasir-reference-mode #cart-table tbody td:nth-child(1)::before { content: '#'; }
  .kasir-reference-mode #cart-table tbody td:nth-child(2)::before { content: 'Barang'; }
  .kasir-reference-mode #cart-table tbody td:nth-child(3)::before { content: 'Satuan'; }
  .kasir-reference-mode #cart-table tbody td:nth-child(4)::before { content: 'Harga'; }
  .kasir-reference-mode #cart-table tbody td:nth-child(5)::before { content: 'Diskon/item'; }
  .kasir-reference-mode #cart-table tbody td:nth-child(6)::before { content: 'Qty'; }
  .kasir-reference-mode #cart-table tbody td:nth-child(7)::before { content: 'Subtotal'; }
  .kasir-reference-mode #cart-table tbody td:nth-child(8)::before { content: 'Aksi'; }

  .kasir-reference-mode #cart-table tbody td:nth-child(2) {
    grid-column: 1 / -1;
    align-items: flex-start;
    padding-bottom: 7px;
    border-bottom: 1px solid #edf0f4;
    text-align: left;
  }

  .kasir-reference-mode #cart-table tbody td:nth-child(2) .cart-product,
  .kasir-reference-mode #cart-table tbody .cart-product {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .kasir-reference-mode #cart-table tbody td:nth-child(1) {
    display: none;
  }

  .kasir-reference-mode #cart-table tbody td:nth-child(3),
  .kasir-reference-mode #cart-table tbody td:nth-child(4),
  .kasir-reference-mode #cart-table tbody td:nth-child(5),
  .kasir-reference-mode #cart-table tbody td:nth-child(6),
  .kasir-reference-mode #cart-table tbody td:nth-child(7),
  .kasir-reference-mode #cart-table tbody td:nth-child(8) {
    grid-column: 1 / -1;
  }

  .kasir-reference-mode #cart-table tbody .cart-discount-input {
    width: 120px;
    height: 28px;
  }

  .kasir-reference-mode #cart-table tbody .qty-control {
    gap: 5px;
  }

  .kasir-reference-mode #cart-table tbody .qty-input {
    width: 52px;
    height: 28px;
  }

  .kasir-reference-mode #cart-table tbody .qty-button {
    width: 27px;
    height: 27px;
  }

  .kasir-reference-mode #cart-table tbody td:nth-child(7) {
    font-weight: 700;
    color: #172033;
  }

  .kasir-reference-mode #cart-table tbody td:nth-child(8) {
    justify-content: flex-end;
    min-height: 28px;
    padding-top: 6px;
  }

  .kasir-reference-mode #cart-table tbody td:nth-child(8)::before {
    display: none;
  }

  .kasir-reference-mode #cart-table tfoot {
    display: grid;
    margin-top: 8px;
    border: 1px solid #dce3ed;
    border-radius: 8px;
    background: #f8fafc;
  }

  .kasir-reference-mode #cart-table tfoot tr {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .kasir-reference-mode #cart-table tfoot th {
    display: none;
    border: 0;
    padding: 10px;
  }

  .kasir-reference-mode #cart-table tfoot th:nth-child(2),
  .kasir-reference-mode #cart-table tfoot th:nth-child(3) {
    display: block;
  }

  .kasir-reference-mode #cart-table tfoot th:nth-child(2) {
    grid-column: 1;
    text-align: left;
  }

  .kasir-reference-mode #cart-table tfoot th:nth-child(3) {
    grid-column: 2;
    text-align: right;
  }
}

/* Dropdown tetap tersedia untuk form/JavaScript, tetapi pilihan pembayaran hanya melalui tombol ikon. */
#metode-pembayaran{display:none!important}

/* Layout aplikasi: jangan biarkan konten utama membungkus ke bawah sidebar
   ketika grid Bootstrap tidak tersedia atau ukurannya berubah. */
.app-shell > .row {
  display: flex;
  flex-wrap: nowrap;
  margin-left: 0;
  margin-right: 0;
}

.app-shell > .row > .sidebar {
  flex: 0 0 227px;
  width: 227px;
  max-width: 227px;
}

.app-shell > .row > .content {
  flex: 1 1 auto;
  width: auto;
  max-width: none;
  min-width: 0;
}

/* Satu sumber aturan submenu agar menu aktif tidak mendorong halaman secara
   tidak terduga dan animasinya tetap halus. */
.sidebar .submenu {
  display: block !important;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .25s ease, opacity .2s ease;
}

.sidebar .menu-group.is-open .submenu {
  max-height: 520px;
  opacity: 1;
}

@media (max-width: 767px) {
  .app-shell > .row {
    display: block;
  }

  .app-shell > .row > .sidebar,
  .app-shell > .row > .content {
    width: 100%;
    max-width: none;
  }

  .app-shell > .row > .sidebar {
    min-height: auto;
  }

  .app-shell > .row > .content {
    min-width: 0;
  }

  .data-tools {
    flex-wrap: wrap;
  }

  .data-card .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
/* Filter kategori barang pada POS. Kategori berasal dari data barang yang tersedia. */
.kasir-reference-mode,.pos-mode{-webkit-print-color-adjust:exact;print-color-adjust:exact}
.kasir-reference-mode{background:linear-gradient(135deg,#e8f0fa 0%,#dce6f2 52%,#eef3f9 100%);color:#132d49}
.kasir-reference-mode .content{background:transparent}
.kasir-reference-mode .kasir-card{background:#e8f0fa;border:1px solid #b9cbe0;border-radius:12px;box-shadow:0 10px 28px rgba(34,61,91,.12)}
.kasir-reference-mode .kasir-card>.card-body{background:transparent}
.kasir-reference-mode .kasir-category-filter{border-color:#b8cbe0;background:#e8f0fa;box-shadow:0 3px 10px rgba(55,83,116,.06)}
.kasir-reference-mode .kasir-category-heading label,.kasir-reference-mode #kasir-form label{color:#173452}
.kasir-reference-mode .kasir-category-heading small{color:#55708e}
.kasir-reference-mode .kasir-category-button{border-color:#aec2d9;background:#f4f8fd;color:#1f3c5b}
.kasir-reference-mode .kasir-category-button:hover,.kasir-reference-mode .kasir-category-button:focus-visible{border-color:#6d9bd4;background:#e4effb}
.kasir-reference-mode .kasir-category-button.active{border-color:#2864dd;background:#2864dd;color:#fff;box-shadow:0 4px 10px rgba(40,100,221,.22)}
.kasir-reference-mode #kasir-form .form-control{border-color:#aec2d9;background:#f7fbff;color:#173452}
.kasir-reference-mode #kasir-form .form-control:focus{border-color:#5b8ee8;box-shadow:0 0 0 3px rgba(91,142,232,.16);background:#fff}
.kasir-reference-mode #kasir-form #barcode-scan{background:#eef6ff;border-color:#79a8df}
.kasir-reference-mode #cart-table{border-color:#b8cbe0;background:#f7fbff;box-shadow:0 4px 12px rgba(44,71,103,.07)}
.kasir-reference-mode #cart-table thead th{background:#cbd9e8;color:#173452;border-color:#b8cbe0}
.kasir-reference-mode #cart-table td{background:#f7fbff;color:#274461;border-color:#c9d7e6}
.kasir-reference-mode #cart-table tbody tr:hover td{background:#eaf3fc}
.kasir-reference-mode #cart-table tfoot th{background:#e7f0fa;color:#24415f;border-color:#b8cbe0}
.kasir-reference-mode #cart-table tfoot .cart-grand-total th{background:#d8e8fa;border-top-color:#89add7;color:#102f50}
.kasir-reference-mode #cart-table tfoot #cart-total{color:#0f4f9a;font-weight:800}
.kasir-reference-mode .pos-pay{border-color:#aec2d9;background:#f4f8fd;color:#24415f}
.kasir-reference-mode .pos-pay:hover{border-color:#6d9bd4;background:#e4effb}
.kasir-reference-mode .pos-pay.active{border-color:#2864dd;background:#2864dd;color:#fff;box-shadow:0 4px 10px rgba(40,100,221,.2)}
.kasir-reference-mode #kembalian{background:#dce8f5;color:#173452;border-color:#aec2d9}
.kasir-reference-mode #save-sale{background:linear-gradient(135deg,#3478d1,#2864b7);border-color:#2864b7;box-shadow:0 5px 12px rgba(40,100,183,.2)}
.kasir-reference-mode .btn-light{background:#edf4fb;border-color:#b5c9df;color:#284765}
.kasir-reference-mode .btn-light:hover{background:#dceaf8;border-color:#86a9cf}
.pos-mode{background:linear-gradient(135deg,#e8f0fa 0%,#dce6f2 52%,#eef3f9 100%);color:#132d49}
.pos-mode .kasir-card{background:#e8f0fa}
.pos-mode #kasir-form>.form-row:first-of-type,.pos-mode #kasir-form>.form-row:last-of-type{background:#e8f0fa;border-color:#b9cbe0}
.pos-mode #cart-table{background:#f7fbff;border-color:#b8cbe0}
.pos-mode #cart-table thead th{background:#cbd9e8;color:#173452;border-color:#b8cbe0}
.pos-mode #cart-table td,.pos-mode #cart-table tfoot th{background:#f7fbff;color:#274461;border-color:#c9d7e6}
.pos-mode #cart-table tfoot .cart-grand-total th{background:#d8e8fa;color:#102f50}

/* Kasir mobile hard override: desktop grid rules above must collapse completely. */
@media (max-width:800px){
  .kasir-reference-mode{overflow-x:hidden!important}
  .kasir-reference-mode .content{width:100%!important;max-width:none!important;padding:12px 8px!important}
  .kasir-reference-mode .kasir-card{height:auto!important;min-height:0!important;overflow:visible!important;border-radius:9px!important}
  .kasir-reference-mode .kasir-card>.card-body{height:auto!important;min-height:0!important;padding:10px!important;display:block!important}
  .kasir-reference-mode #kasir-form{height:auto!important;min-height:0!important;display:block!important}
  .kasir-reference-mode #kasir-form>.form-row:first-of-type,
  .kasir-reference-mode #kasir-form>.kasir-top-row{display:block!important;grid-template-columns:none!important;grid-auto-flow:row!important;overflow:visible!important;width:100%!important;margin:0 0 10px!important;padding:0!important}
  .kasir-reference-mode #kasir-form>.form-row:first-of-type>.form-group,
  .kasir-reference-mode #kasir-form>.kasir-top-row>.form-group,
  .kasir-reference-mode #kasir-form>.form-row:first-of-type #sales-group,
  .kasir-reference-mode #kasir-form>.form-row:first-of-type #pelanggan-group,
  .kasir-reference-mode #kasir-form>.form-row:first-of-type #no-plat-group{display:block!important;grid-column:auto!important;grid-row:auto!important;width:100%!important;min-width:0!important;max-width:none!important;margin:0 0 9px!important;padding:0!important;border:0!important}
  .kasir-reference-mode #kasir-form>.form-row:first-of-type .form-control,
  .kasir-reference-mode #kasir-form>.form-row:first-of-type .ts-wrapper,
  .kasir-reference-mode #kasir-form>.form-row:first-of-type .ts-control,
  .kasir-reference-mode #kasir-form>.form-row:first-of-type .barcode-search-wrap,
  .kasir-reference-mode #kasir-form>.form-row:first-of-type .barcode-search-wrap .input-group{width:100%!important;min-width:0!important;max-width:none!important}
  .kasir-reference-mode #kasir-category-filter{display:block!important;width:100%!important;padding:9px!important;margin-bottom:10px!important}
  .kasir-reference-mode #kasir-category-filter .kasir-reference-fields{display:block!important;width:100%!important;padding:0!important;margin-top:10px!important}
  .kasir-reference-mode #kasir-category-filter .kasir-reference-fields>.form-group{display:block!important;width:100%!important;margin:0 0 9px!important;padding:0!important}
  .kasir-reference-mode #kasir-form>.cart-scroll{width:100%!important;max-width:100%!important;min-height:150px!important;max-height:46vh!important;overflow-x:auto!important;overflow-y:auto!important;margin:0 0 10px!important}
  .kasir-reference-mode #kasir-form>#cart-table,.kasir-reference-mode #cart-table{min-width:720px!important}
  .kasir-reference-mode #kasir-form>.form-row:last-of-type,
  .kasir-reference-mode #kasir-form>.kasir-bottom-row{display:block!important;grid-template-columns:none!important;grid-auto-flow:row!important;width:100%!important;margin:0!important;padding:0!important;overflow:visible!important}
  .kasir-reference-mode #kasir-form>.form-row:last-of-type>.form-group,
  .kasir-reference-mode #kasir-form>.kasir-bottom-row>.form-group{display:block!important;width:100%!important;min-width:0!important;max-width:none!important;margin:0 0 10px!important;padding:0!important}
  .kasir-reference-mode #kasir-form>.form-row:last-of-type .form-control,
  .kasir-reference-mode #kasir-form>.form-row:last-of-type .pos-payment-buttons,
  .kasir-reference-mode #kasir-form>.form-row:last-of-type #save-sale{width:100%!important;min-width:0!important;max-width:none!important}
  .kasir-reference-mode .pos-payment-buttons{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:5px!important}
  .kasir-reference-mode .pos-pay{min-width:0!important;width:100%!important;min-height:52px!important;padding:5px 2px!important}
  .kasir-reference-mode #save-sale{height:42px!important;margin-top:3px!important}
}

/* Responsive final layer: HP, tablet, dan desktop. */
html,body{max-width:100%;overflow-x:hidden}img,canvas,video{max-width:100%;height:auto}.content{min-width:0}.table-responsive{max-width:100%;-webkit-overflow-scrolling:touch}.modal-dialog{max-width:calc(100vw - 24px)}.modal-body{max-width:100%;overflow-x:auto}.actions,.kasir-actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.actions a,.actions button,.kasir-actions .action-delete-form{margin-left:0}
@media (min-width:768px) and (max-width:1100px){
  .app-shell>.row>.sidebar{flex-basis:205px;width:205px;max-width:205px;padding-left:10px;padding-right:10px}
  .content{padding:24px 18px}
  .page-heading h1{font-size:24px}
  .data-card .table-responsive,.table-responsive{overflow-x:auto}
  .form-row:not(.kasir-top-row):not(.kasir-bottom-row)>[class*="col-md-"]{flex:0 0 50%;max-width:50%}
  .form-row:not(.kasir-top-row):not(.kasir-bottom-row)>.col-md-12{flex-basis:100%;max-width:100%}
  .kasir-reference-mode .content,.pos-mode .content{padding-left:16px;padding-right:16px}
}
@media (max-width:767px){
  .content{padding:18px 10px}.content>.card,.content>.data-card{border-radius:9px}
  .card-body{padding:14px}.data-card .table-responsive{padding:0 6px}.data-card .table{min-width:680px}
  .table td,.table th{font-size:11px;padding:9px 8px}.btn{min-height:38px;padding:8px 11px}
  .form-row:not(.kasir-top-row):not(.kasir-bottom-row)>[class*="col-"]{flex:0 0 100%;max-width:100%}
  .form-row:not(.kasir-top-row):not(.kasir-bottom-row)>[class*="col-"] .form-control{width:100%}
  .data-footer{width:100%}.pagination{flex-wrap:wrap}.pagination .page-link{padding:7px 10px}
  .modal-dialog{margin:10px auto}.modal-content{max-height:calc(100vh - 20px)}.modal-body{overflow-y:auto}
  .sale-detail-modal{padding:8px}.sale-detail-dialog{width:100%;max-height:92vh}.sale-detail-header h5{font-size:16px}
  .receipt-popup{right:8px;bottom:8px;width:calc(100vw - 16px);height:calc(100vh - 16px)}
  .kasir-actions{justify-content:flex-start}.kasir-actions>a,.kasir-actions>form{flex:0 0 auto}
}
@media (max-width:420px){
  .topbar{padding-left:10px;padding-right:10px}.brand strong{font-size:12px}.brand small{max-width:105px;font-size:6px}.logout{font-size:10px;padding:6px}
  .content{padding-left:8px;padding-right:8px}.page-heading h1{font-size:21px}.page-heading p{font-size:12px}
  .data-toolbar{padding:12px}.data-title{font-size:15px!important}.form-control{font-size:13px}
  .sale-detail-dialog table{min-width:700px}.sale-detail-header{padding:12px}.sale-detail-header h5{font-size:15px}
}

@media (min-width: 701px) {
  .kasir-reference-mode #kasir-form > .form-row:last-of-type {
    display: grid !important;
    grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    gap: 12px !important;
    justify-content: stretch;
  }
  .kasir-reference-mode #kasir-form > .form-row:last-of-type > .form-group,
  .kasir-reference-mode #kasir-form > .form-row:last-of-type > .form-group:last-child,
  .kasir-reference-mode #kasir-form > .form-row:last-of-type #save-sale {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }
}
.kasir-reference-mode #kasir-form>.form-row:last-of-type .form-group:nth-child(n+4){margin-left:24px!important;width:calc(100% - 24px)!important}
.kasir-reference-mode #kasir-form>.form-row:last-of-type .form-group:nth-child(n+4){margin-left:30px!important;width:calc(100% - 30px)!important}
.kasir-reference-mode #kasir-form>.form-row:last-of-type{column-gap:16px!important}
.kasir-reference-mode #kasir-form>.form-row:last-of-type .form-group:nth-child(n+4){margin-left:0!important;width:100%!important;min-width:0!important}
.kasir-reference-mode #kasir-form>.form-row:last-of-type .form-group:nth-child(n+4) .form-control{width:100%!important;box-sizing:border-box}
.kasir-reference-mode #kasir-form>.form-row:last-of-type .form-group:has(#metode-pembayaran){width:calc(100% + 10px)!important;max-width:calc(100% + 10px)!important;margin-right:6px!important}

/* Final override layout kasir. */
html form#kasir-form > div.kasir-top-row{display:grid!important;grid-template-columns:220px minmax(360px,460px) 220px minmax(0,1fr)!important;gap:8px!important;align-items:end!important;width:100%!important;}
html form#kasir-form > div.kasir-top-row > div.form-group{min-width:0!important;width:auto!important;max-width:none!important;margin:0!important;}
html form#kasir-form > div.kasir-top-row #sales-group{display:block!important;grid-column:3!important;grid-row:1!important;min-width:220px!important;width:auto!important;}
html form#kasir-form > div.kasir-top-row #sales{width:100%!important;min-width:0!important;}
html form#kasir-form > div.kasir-top-row{margin-bottom:14px!important;padding-bottom:2px!important;position:relative;z-index:4;background:#e8f0fa;}
html form#kasir-form > div.kasir-top-row + .cart-scroll{margin-top:0!important;position:relative;z-index:1;border-top:1px solid #c6d5e5;}
html form#kasir-form > div.kasir-top-row .form-control{height:36px!important;min-height:36px!important;}
html form#kasir-form > div.kasir-top-row #barcode-scan,
html form#kasir-form > div.kasir-top-row #clear-barcode{height:36px!important;min-height:36px!important;}
html form#kasir-form > div.kasir-top-row .barcode-search-wrap .input-group{height:36px!important;align-items:stretch!important;}
html form#kasir-form > div.kasir-bottom-row{column-gap:10px!important;row-gap:8px!important;}
html form#kasir-form > div.kasir-bottom-row > #pelanggan-group,
html form#kasir-form > div.kasir-bottom-row > #no-plat-group{margin-right:0!important;min-width:0!important;}
html form#kasir-form > div.kasir-bottom-row > #pelanggan-group .form-control,
html form#kasir-form > div.kasir-bottom-row > #no-plat-group .form-control{border-radius:6px!important;}
#kasir-form > .kasir-top-row{display:grid!important;grid-template-columns:220px minmax(360px,460px) 220px minmax(0,1fr)!important;gap:8px!important;align-items:end!important;width:100%!important;}
#kasir-form > .kasir-top-row > .form-group{min-width:0!important;width:auto!important;max-width:none!important;margin:0!important;}
#kasir-form > .kasir-top-row #sales-group{display:block!important;grid-column:3!important;grid-row:1!important;min-width:220px!important;width:auto!important;}
#kasir-form > .kasir-top-row #sales{width:100%!important;min-width:0!important;}
#kasir-form > .kasir-top-row .barcode-search-wrap .input-group{display:flex!important;flex-wrap:nowrap!important;}
@media(max-width:800px){#kasir-form > .kasir-top-row{display:block!important;}#kasir-form > .kasir-top-row #sales-group{margin-top:8px!important;}}

/* Final override: layout kasir tetap rapi setelah seluruh aturan POS lama. */
#kasir-form > .kasir-top-row{display:grid!important;grid-template-columns:220px minmax(360px,460px) 220px minmax(0,1fr)!important;gap:8px!important;align-items:end!important;width:100%!important;}
#kasir-form > .kasir-top-row > .form-group{min-width:0!important;width:auto!important;max-width:none!important;margin:0!important;}
#kasir-form > .kasir-top-row #sales-group{display:block!important;grid-column:3!important;grid-row:1!important;min-width:220px!important;width:auto!important;}
#kasir-form > .kasir-top-row #sales{width:100%!important;min-width:0!important;}
#kasir-form > .kasir-top-row .barcode-search-wrap .input-group{display:flex!important;flex-wrap:nowrap!important;}
@media(max-width:800px){#kasir-form > .kasir-top-row{display:block!important;}#kasir-form > .kasir-top-row #sales-group{margin-top:8px!important;}}
#kasir-form > .kasir-top-row{display:grid!important;grid-template-columns:220px minmax(360px,460px) 220px minmax(0,1fr)!important;gap:8px!important;align-items:end!important;width:100%!important;}
#kasir-form > .kasir-top-row > .form-group{min-width:0!important;width:auto!important;max-width:none!important;margin:0!important;}
#kasir-form > .kasir-top-row #sales-group{display:block!important;grid-column:3!important;grid-row:1!important;min-width:220px!important;width:auto!important;}
#kasir-form > .kasir-top-row #sales{width:100%!important;min-width:0!important;}
#kasir-form > .kasir-top-row .barcode-search-wrap .input-group{display:flex!important;flex-wrap:nowrap!important;}
@media(max-width:800px){#kasir-form > .kasir-top-row{display:block!important;}#kasir-form > .kasir-top-row #sales-group{margin-top:8px!important;}}
.kasir-reference-mode #kasir-form>.form-row:last-of-type #sales-group{min-width:145px}
.kasir-reference-mode #kasir-form>.form-row:last-of-type #sales{min-width:145px;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kasir-reference-mode #kasir-form>.form-row:last-of-type #pelanggan-group,
.kasir-reference-mode #kasir-form>.form-row:last-of-type #sales-group{min-width:145px;align-self:end}
.kasir-reference-mode #kasir-form>.form-row:last-of-type #pelanggan,
.kasir-reference-mode #kasir-form>.form-row:last-of-type #sales{height:32px;width:100%;}
.kasir-reference-mode #kasir-form>.form-row:first-of-type{grid-template-columns:220px 380px 145px minmax(0,1fr)!important;}
.kasir-reference-mode #kasir-form>.form-row:first-of-type #sales-group{display:block!important;grid-column:3;grid-row:1;min-width:145px;margin:0;}
.kasir-reference-mode #kasir-form>.form-row:first-of-type #sales{min-width:145px;width:100%;}
.kasir-reference-mode #kasir-form>.form-row:last-of-type{grid-template-columns:repeat(9,minmax(0,1fr))!important;}
.kasir-reference-mode #kasir-form>.kasir-top-row{display:grid!important;grid-template-columns:220px 380px 145px minmax(0,1fr)!important;gap:8px;align-items:end;}
.kasir-reference-mode #kasir-form>.kasir-top-row #sales-group{display:block!important;grid-column:3;grid-row:1;min-width:145px;margin:0;}
.kasir-reference-mode #kasir-form>.kasir-top-row #sales{width:100%;min-width:145px;}
.kasir-reference-mode #kasir-form>.kasir-bottom-row{grid-template-columns:repeat(9,minmax(0,1fr))!important;}
@media(max-width:800px){.kasir-reference-mode #kasir-form>.kasir-top-row{display:block!important;}.kasir-reference-mode #kasir-form>.kasir-top-row #sales-group{margin-top:8px;}}

/* Baris input kasir: lebar stabil agar tidak menyempit/berantakan. */
#kasir-form > .kasir-top-row{display:grid!important;grid-template-columns:220px minmax(320px,380px) 180px minmax(0,1fr)!important;gap:8px;align-items:end;width:100%;}
#kasir-form > .kasir-top-row > .form-group{min-width:0;width:auto;max-width:none;margin:0;}
#kasir-form > .kasir-top-row #cart-harga,
#kasir-form > .kasir-top-row #barcode-scan,
#kasir-form > .kasir-top-row #sales{width:100%;min-width:0;}
#kasir-form > .kasir-top-row #sales-group{display:block!important;grid-column:3;grid-row:1;min-width:0;width:auto;margin:0;}
#kasir-form > .kasir-bottom-row{display:grid!important;grid-template-columns:repeat(9,minmax(0,1fr))!important;gap:8px;align-items:end;width:100%;}
@media(max-width:800px){#kasir-form > .kasir-top-row{display:block!important;}#kasir-form > .kasir-top-row > .form-group{margin-bottom:8px;}#kasir-form > .kasir-bottom-row{display:block!important;}#kasir-form > .kasir-bottom-row > .form-group{margin-bottom:10px;}}
#kasir-form > .kasir-top-row label{display:block;line-height:16px;margin:0 0 5px;}
#kasir-form > .kasir-top-row .form-control{height:32px;}
#kasir-form > .kasir-top-row #barcode-status{display:none!important;}
#kasir-form > .kasir-top-row .barcode-search-wrap,
#kasir-form > .kasir-top-row .barcode-search-wrap .input-group{width:100%;min-width:0;}
#kasir-form > .kasir-top-row .barcode-search-wrap .input-group{display:flex!important;flex-wrap:nowrap!important;align-items:stretch;}
#kasir-form > .kasir-top-row .barcode-search-wrap .input-group .form-control{min-width:0;flex:1 1 auto;}
#kasir-form > .kasir-top-row .barcode-search-wrap .input-group-append{display:flex;flex:0 0 auto;}
#kasir-form > .kasir-top-row #clear-barcode{height:32px;white-space:nowrap;}
#kasir-form > .kasir-top-row{grid-template-columns:220px minmax(360px,460px) 220px minmax(0,1fr)!important;}
#kasir-form > .kasir-top-row #sales-group{min-width:220px;}

/* Nama sales tetap terbaca pada form kasir. */
.kasir-reference-mode #sales-group{min-width:145px}
.kasir-reference-mode #sales{min-width:145px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Identitas transaksi ditempatkan di sisi kanan area scan. */
.kasir-reference-mode #kasir-form>.form-row:first-of-type{grid-template-columns:minmax(150px,1fr) minmax(260px,1.8fr) repeat(3,minmax(120px,1fr));gap:8px;align-items:end;}
.kasir-reference-mode #kasir-form>.form-row:first-of-type .kasir-customer-field{display:block!important;min-width:0;width:auto;}
.kasir-reference-mode #kasir-form>.form-row:first-of-type .kasir-customer-field .form-control{width:100%;}
.pos-mode #kasir-form>.form-row:first-of-type,.kasir-reference-mode #kasir-form>.form-row:first-of-type{display:grid!important;grid-template-columns:220px 380px minmax(0,1fr)!important;grid-auto-flow:column;align-items:end;flex-wrap:nowrap;}
.pos-mode #kasir-form>.form-row:first-of-type .kasir-customer-field,.kasir-reference-mode #kasir-form>.form-row:first-of-type .kasir-customer-field{display:block!important;min-width:0;width:auto;margin:0;}
.pos-mode #kasir-form>.form-row:first-of-type .kasir-customer-field .form-control,.kasir-reference-mode #kasir-form>.form-row:first-of-type .kasir-customer-field .form-control{width:100%;min-width:0;}
.pos-mode #kasir-form>.form-row:first-of-type #pelanggan-group,.kasir-reference-mode #kasir-form>.form-row:first-of-type #pelanggan-group{grid-column:3;}
.pos-mode #kasir-form>.form-row:first-of-type #sales-group,.kasir-reference-mode #kasir-form>.form-row:first-of-type #sales-group{grid-column:4;}
.pos-mode #kasir-form>.form-row:first-of-type #no-plat-group,.kasir-reference-mode #kasir-form>.form-row:first-of-type #no-plat-group{grid-column:5;}
.kasir-reference-mode #kasir-form>.form-row:first-of-type #cart-harga{width:220px;max-width:220px;}
.kasir-reference-mode #kasir-form>.form-row:first-of-type .barcode-search-wrap{width:380px;max-width:380px;}
.kasir-reference-mode #kasir-form>.form-row:first-of-type #barcode-scan{width:100%;}
@media(max-width:800px){.pos-mode #kasir-form>.form-row:first-of-type,.kasir-reference-mode #kasir-form>.form-row:first-of-type{display:block!important;}.pos-mode #kasir-form>.form-row:first-of-type .kasir-customer-field,.kasir-reference-mode #kasir-form>.form-row:first-of-type .kasir-customer-field{margin-top:8px;}}

.kasir-reference-mode #kasir-form>.form-row:last-of-type{display:grid!important;grid-template-columns:repeat(10,minmax(0,1fr))!important;gap:8px;align-items:end;}
.kasir-reference-mode #kasir-form>.form-row:last-of-type > .form-group{display:block!important;min-width:0;margin:0;}
.kasir-reference-mode #kasir-form>.form-row:last-of-type #pelanggan-group,.kasir-reference-mode #kasir-form>.form-row:last-of-type #sales-group,.kasir-reference-mode #kasir-form>.form-row:last-of-type #no-plat-group{display:block!important;}

/* Field tambahan Kasir: Pelanggan, Sales, dan No Plat tetap sejajar di desktop. */
.kasir-reference-mode #kasir-form>.form-row:last-of-type{grid-template-columns:repeat(10,minmax(0,1fr));gap:8px;}
.kasir-reference-mode #kasir-form>.form-row:last-of-type .form-group{min-width:0;margin:0;}
.kasir-reference-mode #sales-group select,.kasir-reference-mode #no-plat-group input{min-width:0;width:100%;}
@media(max-width:800px){.kasir-reference-mode #kasir-form>.form-row:last-of-type{display:block;}.kasir-reference-mode #kasir-form>.form-row:last-of-type .form-group{margin-bottom:10px;}}
/* Filter kategori barang pada POS. Kategori berasal dari data barang yang tersedia. */
.kasir-category-filter{margin:0 0 12px;padding:10px 12px;border:1px solid #e1e7ef;border-radius:8px;background:#f8fafc}
.kasir-category-heading{display:flex;align-items:baseline;gap:9px;margin-bottom:8px}.kasir-category-heading label{margin:0;color:#26364a;font-size:11px;font-weight:700}.kasir-category-heading small{color:#7b8794;font-size:10px}
.kasir-category-buttons{display:flex;flex-wrap:wrap;gap:7px}.kasir-category-button{display:inline-flex;align-items:center;gap:6px;min-height:42px;padding:5px 10px;border:1px solid #d7e0ec;border-radius:7px;background:#fff;color:#43536a;font-size:11px;cursor:pointer;transition:all .15s ease}.kasir-category-button:hover,.kasir-category-button:focus-visible{border-color:#7da9e8;background:#f0f6ff;outline:0}.kasir-category-button.active{border-color:#2864dd;background:#2864dd;color:#fff;box-shadow:0 3px 8px rgba(40,100,221,.18)}.kasir-category-icon{display:grid;place-items:center;width:27px;height:27px;border-radius:6px;background:#eef3fa;font-size:17px;line-height:1}.kasir-category-button.active .kasir-category-icon{background:rgba(255,255,255,.2)}
@media(max-width:700px){.kasir-category-heading{display:block}.kasir-category-heading small{display:block;margin-top:3px}.kasir-category-buttons{gap:5px}.kasir-category-button{min-height:38px;padding:4px 8px;font-size:10px}}

/* Mobile navigation: keep every menu available without pushing page content
   far below the header. The desktop sidebar remains unchanged. */
.mobile-menu-toggle,
.mobile-menu-backdrop { display: none; }

@media (max-width: 767px) {
  body { overflow-x: hidden; }
  body.mobile-menu-open { overflow: hidden; }
  .topbar { position: relative; z-index: 1040; min-height: 64px; height: 64px; }
  .mobile-menu-toggle {
    display: inline-flex; flex: 0 0 40px; width: 40px; height: 40px;
    margin-right: 8px; padding: 9px 8px; border: 1px solid #465168;
    border-radius: 8px; background: transparent; flex-direction: column;
    justify-content: center; gap: 4px;
  }
  .mobile-menu-toggle span { display: block; width: 22px; height: 2px; border-radius: 2px; background: #fff; }
  .brand { min-width: 0; gap: 7px; }
  .brand-logo { width: 36px !important; height: 36px !important; }
  .brand strong { font-size: 13px; }
  .brand small { max-width: 145px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 7px; }
  .account { margin-left: auto; gap: 6px; }
  .logout { margin-left: 2px; padding: 7px 8px; font-size: 11px; }
  .sidebar {
    position: fixed; z-index: 1035; top: 64px; bottom: 0; left: 0;
    width: min(86vw, 300px) !important; max-width: none !important;
    min-height: 0 !important; padding: 20px 15px 28px; overflow-y: auto;
    box-shadow: 12px 0 28px rgba(23, 29, 43, .16);
    transform: translateX(-105%); transition: transform .25s ease;
  }
  body.mobile-menu-open .sidebar { transform: translateX(0); }
  .mobile-menu-backdrop { position: fixed; z-index: 1030; inset: 64px 0 0; background: rgba(23, 29, 43, .48); }
  body.mobile-menu-open .mobile-menu-backdrop { display: block; }
  .app-shell > .row { display: block; }
  .app-shell > .row > .content { width: 100%; max-width: none; padding: 20px 12px; }
  .content .card-body { padding-left: 14px; padding-right: 14px; }
  .page-heading h1 { font-size: 23px; line-height: 1.2; }
  .page-heading .btn { width: 100%; margin-top: 12px; }
  .data-toolbar { padding: 15px; }
  .data-tools { gap: 8px; }
  .data-page-size { width: 100%; justify-content: space-between; }
  .data-page-size .form-control { width: 76px; }
  .table-responsive { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .form-row { margin-left: -5px; margin-right: -5px; }
  .form-row > .form-group { padding-left: 5px; padding-right: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  .sidebar, .mobile-menu-backdrop { transition: none; }
}

/* Ikon QRIS: fallback visual untuk markup QR pada tombol kasir. */
.pos-pay[data-pos-method="QRIS"] .pos-pay-icon::before {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  background:
    linear-gradient(90deg, currentColor 35%, transparent 35% 65%, currentColor 65%) 0 0 / 9px 9px,
    linear-gradient(currentColor 35%, transparent 35% 65%, currentColor 65%) 0 0 / 9px 9px;
  -webkit-mask: linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0);
}

/* POS service memakai hierarki visual yang sama dengan Kasir/Penjualan. */
.service-pos-panel {
  background: #f7f9ff;
  border-color: #d9e1ef !important;
}
/* Input barang/qty pada modal Kasir Service tidak ditampilkan di menu. */
.service-pos-panel > .d-flex + .form-row {
  display: none !important;
}
.service-pos-panel > .service-product-toolbar + .form-row {
  display: none !important;
}
.service-product-toolbar {
  margin: -4px -4px 14px;
  border: 1px solid #dbe3ef;
  border-radius: 6px;
  background: #f8fafc;
}
.service-category-box { padding: 10px 12px 9px; border-bottom: 1px solid #dbe3ef; }
.service-control-label, .service-price-field label, .service-search-field label { display: block; color: #263b5a; font-size: 10px; margin-bottom: 6px; }
.service-control-label small { color: #738198; font-size: 9px; margin-left: 6px; }
.service-category-list { display: flex; flex-wrap: wrap; gap: 6px; }
.service-category { border: 1px solid #d4deec; border-radius: 6px; background: #fff; color: #344c70; font-size: 10px; padding: 7px 12px; }
.service-category span, .service-category:first-child { }
.service-category.active { background: #2463d4; border-color: #2463d4; color: #fff; box-shadow: 0 2px 5px rgba(36,99,212,.18); }
.service-product-fields { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 9px; padding: 10px 12px 11px; }
.service-price-field, .service-search-field { min-width: 0; margin: 0; }
.service-search-inline { display: flex; gap: 0; }
.service-search-inline input { min-width: 0; border-radius: 5px 0 0 5px; }
.service-search-inline button { white-space: nowrap; border-radius: 0 5px 5px 0; font-size: 10px; }
.service-product-toolbar .product-suggestions { position: relative; z-index: 4; }
@media (max-width: 700px) { .service-product-fields { grid-template-columns: 1fr; } }
.service-pos-panel .table thead th {
  background: #d1d6df;
  color: #40516b;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.service-pos-panel .table tfoot th {
  background: #eef4ff;
}
/* Kontrol barang/qty pada modal Kasir Service tidak ditampilkan. */
.service-pos-panel > .d-flex + .form-row,
.service-pos-panel > .service-product-toolbar + .form-row { display: none !important; }
.service-pos-panel > .service-product-toolbar { display: none !important; }
.service-pos-panel .form-row .service-search-wrap { display: block; }
.service-pos-panel .table { background: #fff; }
.service-pos-panel .table thead th { height: 36px; }
.service-pos-panel .table tfoot th { font-weight: 700; }
.service-pos-panel .service-qty-input { width: 72px; min-width: 58px; margin: 0 auto; text-align: center; }
.service-total-box {
  padding: 12px 14px;
  border-top: 1px solid #d9e1ef;
  color: #17233b;
  font-size: 15px;
}
.service-total-box strong {
  color: #155eef;
  font-size: 20px;
}
.service-search-wrap { position: relative; }

/* Compact service receipt layout (restored). */
.service-receipt-form .modal-body > .form-row:first-of-type { display: none !important; }
.service-pos-panel > .d-flex + .form-row,
.service-pos-panel > .service-product-toolbar + .form-row { display: flex !important; }
.service-pos-panel > .service-product-toolbar { display: none !important; }
.service-pos-panel #service-item,
.service-pos-panel #service-item-search,
.service-pos-panel #service-barcode-search,
.service-pos-panel #service-barcode-input { display: block !important; }
.service-pos-panel #service-item-search,
.service-pos-panel #service-barcode-search,
.service-pos-panel #service-barcode-input,
.service-pos-panel .service-search-wrap > label,
.service-pos-panel .service-search-wrap > small,
.service-pos-panel .product-suggestions { display: none !important; }
.service-pos-panel .service-extra-row,
.service-pos-panel .service-extra-field { display: none !important; }
.service-receipt-form .modal-header,
.service-receipt-form .modal-footer { display: flex !important; }
.service-receipt-form .modal-body { padding: 6px !important; }
.service-search-wrap .product-suggestions { display: none; position: absolute; z-index: 1050; left: 0; right: 0; top: 100%; max-height: 260px; overflow-y: auto; background: #fff; border: 1px solid #b9c7d8; border-radius: 0 0 6px 6px; box-shadow: 0 5px 14px rgba(30,55,90,.15); }
.service-search-wrap .product-suggestions.is-open { display: block; }
.service-extra-field { vertical-align: bottom; }
/* Satuan dan ringkasan stok per item kasir */
.pos-mode #cart-table .cart-unit-select{min-width:78px;height:28px;padding:3px 20px 3px 6px;font-size:10px}
.pos-mode #cart-table .cart-stock-info{display:block;margin-top:3px;color:#7b8798;font-size:8px;line-height:1.25;white-space:nowrap}

/* Keranjang kasir: satuan, stok, harga, dan qty dibuat lebih ringkas serta sejajar. */
#cart-table .cart-unit-select{width:92px;min-width:92px;height:29px;margin:0 auto;padding:4px 22px 4px 8px;border:1px solid #cbd8e8;border-radius:6px;background-color:#f8fbff;color:#26364e;font-size:11px;font-weight:600;line-height:1.2}
#cart-table .cart-unit-select:focus{border-color:#5b8ee8;box-shadow:0 0 0 3px rgba(91,142,232,.14);outline:0}
#cart-table .cart-stock-info{display:block;margin:4px auto 0;color:#71819a;font-size:8px;line-height:1.25;text-align:center;white-space:nowrap;letter-spacing:-.01em}
#cart-table .cart-product{color:#2f5e9c;font-size:11px;font-weight:600;line-height:1.35}
#cart-table .cart-product strong{color:#244f87;font-weight:700}
#cart-table .cart-discount-input{width:100%;height:29px;margin:0;padding:4px 8px;border:1px solid #d4deeb;border-radius:6px;background:#fff;text-align:right;color:#344054;font-size:11px}
#cart-table .cart-discount-input:focus{border-color:#5b8ee8;box-shadow:0 0 0 3px rgba(91,142,232,.12);outline:0}
#cart-table .qty-control{display:inline-flex;align-items:center;justify-content:center;gap:4px;white-space:nowrap}
#cart-table .qty-button{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;padding:0;border:1px solid #c8d5e5;border-radius:4px;background:#f7faff;color:#526b8b;font-size:13px;line-height:1;cursor:pointer}
#cart-table .qty-button:hover{border-color:#6b9be6;background:#eaf3ff;color:#2864dd}
#cart-table .qty-input{width:58px;height:25px;padding:3px 6px;border:1px solid #cbd8e8;border-radius:5px;background:#fff;text-align:center;color:#26364e;font-size:11px;font-weight:600}
#cart-table .qty-input:focus{border-color:#5b8ee8;box-shadow:0 0 0 3px rgba(91,142,232,.12);outline:0}
#cart-table .cart-subtotal{color:#344054;font-weight:700;white-space:nowrap}
#cart-table .cart-remove{width:25px;height:25px;border-radius:5px;background:#fff5f5}
#cart-table thead th{vertical-align:middle;white-space:nowrap}
#cart-table tbody td{vertical-align:middle}
.pos-mode #cart-table .cart-stock-info{font-size:8px}
#cart-table .cart-remove{font-size:0!important;display:inline-flex;align-items:center;justify-content:center;color:#c8374d!important;background:#fff5f6!important;border:1px solid #efaab5!important}
#cart-table .cart-remove svg{display:none!important}
#cart-table .cart-remove:before{content:"";display:block;width:16px;height:16px;background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8374d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M9 7V4h6v3M7 7l1 13h8l1-13M10 11v5M14 11v5'/%3E%3C/svg%3E")}
#cart-table .cart-remove:hover{background:#ffe5e9!important;border-color:#df7787!important;color:#a51f34!important}
#cart-table .cart-remove:hover:before{filter:brightness(.78)}
@media(max-width:700px){#cart-table .cart-stock-info{white-space:normal;min-width:92px}.pos-mode #cart-table .cart-unit-select,#cart-table .cart-unit-select{width:82px;min-width:82px}.pos-mode #cart-table .qty-input,#cart-table .qty-input{width:48px}}

/* Tipografi kasir: tetap jelas pada berbagai ukuran layar dan level zoom. */
.pos-mode,.kasir-reference-mode{font-size:clamp(12px,.25vw + 10px,14px);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
.pos-mode .content>h3,.kasir-reference-mode .content>h3{font-size:clamp(21px,1.1vw + 12px,29px);font-weight:800;line-height:1.2;letter-spacing:-.02em}
.pos-mode #kasir-form label,.kasir-reference-mode #kasir-form label{font-size:clamp(11px,.22vw + 9px,13px);font-weight:700;line-height:1.35;color:#26364e}
.pos-mode #kasir-form .form-control,.kasir-reference-mode #kasir-form .form-control{font-size:clamp(12px,.22vw + 10px,14px);font-weight:500;line-height:1.35}
.pos-mode #cart-table thead th,.kasir-reference-mode #cart-table thead th{font-size:clamp(10px,.18vw + 9px,12px);font-weight:800;letter-spacing:.025em}
.pos-mode #cart-table tbody td,.kasir-reference-mode #cart-table tbody td{font-size:clamp(11px,.22vw + 9px,14px);font-weight:500;line-height:1.4}
.pos-mode #cart-table .cart-product,.kasir-reference-mode #cart-table .cart-product{font-size:clamp(11px,.22vw + 9px,14px);font-weight:700}
.pos-mode #cart-table .cart-stock-info,.kasir-reference-mode #cart-table .cart-stock-info{font-size:clamp(8px,.12vw + 7px,10px);font-weight:500}
.pos-mode #cart-table .cart-unit-select,.kasir-reference-mode #cart-table .cart-unit-select,.pos-mode #cart-table .qty-input,.kasir-reference-mode #cart-table .qty-input,.pos-mode #cart-table .cart-discount-input,.kasir-reference-mode #cart-table .cart-discount-input{font-size:clamp(11px,.18vw + 9px,13px);font-weight:600}
.pos-mode #cart-table tfoot th,.kasir-reference-mode #cart-table tfoot th{font-size:clamp(11px,.2vw + 9px,14px);font-weight:700}
.pos-mode #cart-table .cart-grand-total th,.kasir-reference-mode #cart-table .cart-grand-total th{font-size:clamp(12px,.25vw + 10px,15px);font-weight:800}
.pos-mode .pos-pay,.kasir-reference-mode .pos-pay{font-size:clamp(10px,.18vw + 8px,12px);font-weight:700}
.pos-mode .pos-pay small,.kasir-reference-mode .pos-pay small{font-size:clamp(8px,.12vw + 6px,10px);font-weight:600}
.pos-mode #save-sale,.kasir-reference-mode #save-sale{font-size:clamp(11px,.2vw + 9px,14px);font-weight:700}
@media(max-width:700px){.pos-mode .content,.kasir-reference-mode .content{padding-left:12px;padding-right:12px}.pos-mode #cart-table,.kasir-reference-mode #cart-table{min-width:760px}.pos-mode #cart-table thead th,.kasir-reference-mode #cart-table thead th{padding:8px 7px}.pos-mode #cart-table tbody td,.kasir-reference-mode #cart-table tbody td{padding:8px 7px}}

/* Kasir referensi: panel transaksi tetap setinggi layar; hanya daftar barang yang scroll. */
@media (min-width: 801px) {
  .kasir-reference-mode .kasir-card {
    height: calc(100vh - 96px);
    min-height: 0;
    overflow: hidden;
  }
  .kasir-reference-mode .kasir-card > .card-body {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .kasir-reference-mode #kasir-form {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .kasir-reference-mode #kasir-form > .form-row:first-of-type,
  .kasir-reference-mode #kasir-form > .form-row:last-of-type {
    flex: 0 0 auto;
  }
  .kasir-reference-mode #kasir-form > .cart-scroll {
    flex: 1 1 auto;
    min-height: 120px;
    max-height: none !important;
    overflow-x: auto;
    overflow-y: auto;
  }
  .kasir-reference-mode #kasir-form > .form-row:last-of-type {
    position: relative;
    z-index: 3;
    padding-top: 8px;
    background: #e8f0fa;
  }
}

/* Daftar keranjang memakai scroll internal agar form pembayaran tidak terdorong ke bawah. */
.pos-mode #kasir-form>.cart-scroll,.kasir-reference-mode #kasir-form>.cart-scroll{max-height:min(420px,52vh);min-height:120px;overflow-x:auto;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#aebed2 #f3f6fa}
.pos-mode #kasir-form>.cart-scroll::-webkit-scrollbar,.kasir-reference-mode #kasir-form>.cart-scroll::-webkit-scrollbar{width:9px;height:9px}

/* Form pembayaran kasir: beri ruang antar field dan lebar yang konsisten. */
@media (min-width: 801px) {
  .kasir-reference-mode #kasir-form > .form-row:first-of-type {
    display: grid !important;
    grid-template-columns: 220px 380px minmax(110px, .85fr) 220px minmax(120px, 1fr) !important;
    gap: 12px;
    align-items: end;
    overflow: hidden;
  }
  .kasir-reference-mode #kasir-form > .form-row:first-of-type #sales-group { grid-column: 3; margin-right: 8px !important; }
  .kasir-reference-mode #kasir-form > .form-row:first-of-type #pelanggan-group { grid-column: 4; width: 220px !important; margin-left: 8px !important; }
  .kasir-reference-mode #kasir-form > .form-row:first-of-type #no-plat-group { grid-column: 5; }
  .kasir-reference-mode #kasir-form > .form-row:first-of-type #sales,
  .kasir-reference-mode #kasir-form > .form-row:first-of-type #pelanggan,
  .kasir-reference-mode #kasir-form > .form-row:first-of-type #no-plat {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .kasir-reference-mode #kasir-form > .form-row:first-of-type #sales-group,
  .kasir-reference-mode #kasir-form > .form-row:first-of-type #pelanggan-group,
  .kasir-reference-mode #kasir-form > .form-row:first-of-type #no-plat-group {
    padding: 0 8px 8px;
    background: #e8f0fa;
    border-radius: 3px;
  }
  .kasir-reference-mode #kasir-form > .form-row:first-of-type #sales-group > label,
  .kasir-reference-mode #kasir-form > .form-row:first-of-type #pelanggan-group > label,
  .kasir-reference-mode #kasir-form > .form-row:first-of-type #no-plat-group > label {
    display: block;
    margin: 0 -8px 0;
    padding: 5px 8px;
    background: #dce8f5;
    color: #173452;
    font-size: 11px;
    line-height: 16px;
    font-weight: 700;
  }
  .kasir-reference-mode #kasir-form > .form-row:first-of-type #sales-group .form-control,
  .kasir-reference-mode #kasir-form > .form-row:first-of-type #pelanggan-group .form-control,
  .kasir-reference-mode #kasir-form > .form-row:first-of-type #no-plat-group .form-control {
    height: 34px;
    border-radius: 0 0 5px 5px;
    background: #fff;
  }
  .kasir-reference-mode #kasir-form > .form-row:last-of-type {
    display: grid !important;
    grid-template-columns: minmax(0, .9fr) minmax(0, .9fr) minmax(0, 1.35fr) repeat(6, minmax(0, 1.15fr)) minmax(0, 1fr);
    align-items: flex-end;
    column-gap: 12px;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow-x: hidden;
    padding-bottom: 4px;
  }
  .kasir-reference-mode #kasir-form > .form-row:last-of-type > .form-group {
    min-width: 0;
    width: auto !important;
    max-width: none;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .kasir-reference-mode #kasir-form > .form-row:last-of-type > .form-group:nth-child(3) {
    grid-column: auto;
    width: auto !important;
  }
  .kasir-reference-mode #kasir-form > .form-row:last-of-type > #pelanggan-group,
  .kasir-reference-mode #kasir-form > .form-row:last-of-type > #sales-group,
  .kasir-reference-mode #kasir-form > .form-row:last-of-type > #no-plat-group,
  .kasir-reference-mode #kasir-form > .form-row:last-of-type > .form-group:nth-child(7),
  .kasir-reference-mode #kasir-form > .form-row:last-of-type > .form-group:nth-child(8),
  .kasir-reference-mode #kasir-form > .form-row:last-of-type > .form-group:nth-child(9) {
    width: auto !important;
  }
  .kasir-reference-mode #kasir-form > .form-row:last-of-type > .form-group:last-child {
    width: auto !important;
  }
  .kasir-reference-mode #kasir-form > .form-row:last-of-type .form-control {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .kasir-reference-mode #kasir-form > .form-row:last-of-type #save-sale {
    min-width: 0;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
.pos-mode #kasir-form>.cart-scroll::-webkit-scrollbar-track,.kasir-reference-mode #kasir-form>.cart-scroll::-webkit-scrollbar-track{background:#f3f6fa;border-radius:8px}
.pos-mode #kasir-form>.cart-scroll::-webkit-scrollbar-thumb,.kasir-reference-mode #kasir-form>.cart-scroll::-webkit-scrollbar-thumb{background:#aebed2;border:2px solid #f3f6fa;border-radius:8px}
.pos-mode #kasir-form>.cart-scroll #cart-table thead th,.kasir-reference-mode #kasir-form>.cart-scroll #cart-table thead th{position:sticky;top:0;z-index:5;box-shadow:0 1px 0 #c8d1dc}
.pos-mode #kasir-form>.cart-scroll #cart-table tfoot th,.kasir-reference-mode #kasir-form>.cart-scroll #cart-table tfoot th{position:sticky;bottom:0;z-index:4;box-shadow:0 -1px 0 #d7e0eb}
@media(max-width:700px){.pos-mode #kasir-form>.cart-scroll,.kasir-reference-mode #kasir-form>.cart-scroll{max-height:46vh;min-height:180px}.pos-mode #kasir-form>.cart-scroll #cart-table,.kasir-reference-mode #kasir-form>.cart-scroll #cart-table{min-width:760px}}
/* Satuan dan ringkasan stok pada tabel barang terpakai service. */
.service-unit-select{min-width:82px;height:32px;padding:5px 22px 5px 8px;border:1px solid #cbd8e8;border-radius:6px;background:#f8fbff;color:#26364e;font-size:11px;font-weight:600}

/* Kasir: cegah Sales, Pelanggan, dan No Plat saling bertumpuk pada layar sempit. */
@media (max-width: 800px) {
.kasir-reference-mode #kasir-form > .form-row:first-of-type {
  display: grid !important;
  grid-template-columns: minmax(88px, .8fr) minmax(150px, 1.35fr) repeat(3, minmax(100px, 1fr)) !important;
  gap: 10px !important;
  align-items: end;
  overflow: hidden;
}
.kasir-reference-mode #kasir-form > .form-row:first-of-type #sales-group,
.kasir-reference-mode #kasir-form > .form-row:first-of-type #pelanggan-group,
.kasir-reference-mode #kasir-form > .form-row:first-of-type #no-plat-group {
  grid-row: 1;
  min-width: 0 !important;
  width: auto !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.kasir-reference-mode #kasir-form > .form-row:first-of-type #sales-group { grid-column: 3; }
.kasir-reference-mode #kasir-form > .form-row:first-of-type #pelanggan-group { grid-column: 4; }
.kasir-reference-mode #kasir-form > .form-row:first-of-type #no-plat-group { grid-column: 5; }
.kasir-reference-mode #kasir-form > .form-row:first-of-type #sales-group .form-control,
.kasir-reference-mode #kasir-form > .form-row:first-of-type #pelanggan-group .form-control,
.kasir-reference-mode #kasir-form > .form-row:first-of-type #no-plat-group .form-control {
  width: 100% !important;
  min-width: 0 !important;
}

@media (min-width: 801px) {
  .kasir-reference-mode #kasir-form > .form-row:first-of-type #pelanggan-group {
    width: 220px !important;
    min-width: 220px !important;
    max-width: 220px !important;
  }
  .kasir-reference-mode #kasir-form > .form-row:first-of-type #pelanggan {
    width: 220px !important;
    max-width: 220px !important;
  }
  .kasir-reference-mode #kasir-form > .form-row:last-of-type {
    grid-template-columns: minmax(100px, .9fr) minmax(100px, .9fr) minmax(150px, 1.35fr) minmax(140px, 1.2fr) minmax(120px, 1.05fr) minmax(120px, 1.05fr) minmax(135px, 1.2fr) minmax(115px, 1fr) !important;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .kasir-reference-mode #kasir-form > .form-row:last-of-type #no-plat-group {
    min-width: 140px !important;
    width: auto !important;
  }
  .kasir-reference-mode #kasir-form > .form-row:last-of-type #no-plat {
    width: 100% !important;
    min-width: 0 !important;
  }
  .kasir-reference-mode #kasir-form > .form-row:last-of-type > .form-group:last-child,
  .kasir-reference-mode #kasir-form > .form-row:last-of-type #save-sale {
    width: 100% !important;
    min-width: 0 !important;
  }
  }
}
@media (min-width: 701px) {
  .kasir-reference-mode #kasir-form > .form-row:last-of-type {
    display: grid !important;
    grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    gap: 12px !important;
  }
  .kasir-reference-mode #kasir-form > .form-row:last-of-type > .form-group,
  .kasir-reference-mode #kasir-form > .form-row:last-of-type #save-sale {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }
}
.service-stock-info{display:block;margin-top:3px;color:#71819a;font-size:9px;line-height:1.25;white-space:nowrap}

.kasir-reference-mode #kasir-form > .form-row:first-of-type #sales-group {
  margin-right: 8px !important;
}
.kasir-reference-mode #kasir-form > .form-row:first-of-type #pelanggan-group {
  margin-left: 8px !important;
}
.kasir-reference-mode #kasir-form > .form-row:first-of-type #sales-group {
  padding-right: 12px !important;
}
.kasir-reference-mode #kasir-form > .form-row:first-of-type #pelanggan-group {
  padding-left: 12px !important;
  border-left: 1px solid #b8cbe0;
}
.kasir-reference-mode #kasir-form > .form-row:first-of-type #sales-group .ts-dropdown {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}
.kasir-reference-mode #kasir-category-filter {
  display: grid !important;
  grid-template-columns: minmax(220px, 1fr) minmax(520px, 1.7fr) !important;
  column-gap: 16px;
  align-items: stretch;
}
.kasir-reference-mode #kasir-category-filter .kasir-category-heading,
.kasir-reference-mode #kasir-category-filter .kasir-category-buttons {
  grid-column: 1;
}
.kasir-reference-mode #kasir-category-filter .kasir-category-heading { grid-row: 1; }
.kasir-reference-mode #kasir-category-filter .kasir-category-buttons { grid-row: 2; }
.kasir-reference-mode #kasir-category-filter .kasir-reference-fields {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  min-width: 0;
  padding: 8px 10px 8px;
  box-sizing: border-box;
}
.kasir-reference-mode #kasir-category-filter .kasir-reference-fields .form-group {
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.kasir-reference-fields .form-control,
.kasir-reference-fields .ts-wrapper,
.kasir-reference-fields .ts-control { width: 100% !important; min-width: 0 !important; }
@media (max-width: 800px) {
  .kasir-reference-mode #kasir-category-filter { grid-template-columns: 1fr !important; row-gap: 10px; }
  .kasir-reference-mode #kasir-category-filter .kasir-category-heading,
  .kasir-reference-mode #kasir-category-filter .kasir-category-buttons,
  .kasir-reference-mode #kasir-category-filter .kasir-reference-fields { grid-column: 1; }
  .kasir-reference-mode #kasir-category-filter .kasir-reference-fields { grid-row: 3; }
}
.kasir-reference-mode #no-plat-group .ts-dropdown {
  top: auto !important;
  bottom: 100% !important;
  margin-bottom: 4px !important;
}
@media (min-width: 801px) {
  .kasir-reference-mode #kasir-form > .form-row:first-of-type {
    grid-template-columns: 220px 380px minmax(110px, .85fr) 245px minmax(120px, 1fr) !important;
  }
  .kasir-reference-mode #kasir-form > .form-row:first-of-type #pelanggan-group,
  .kasir-reference-mode #kasir-form > .form-row:first-of-type #pelanggan {
    width: 245px !important;
    min-width: 245px !important;
    max-width: 245px !important;
  }
}
.service-qty-input{width:64px;height:32px;margin:auto;border:1px solid #cbd8e8;border-radius:6px;background:#fff;color:#26364e;text-align:center;font-size:12px;font-weight:600}
.service-qty-input:focus{border-color:#5b8ee8;box-shadow:0 0 0 3px rgba(91,142,232,.13);outline:0}
.service-unit-input{height:36px;border:1px solid #cbd8e8;border-radius:6px;background:#fff;color:#26364e;font-size:12px;font-weight:600}
.service-unit-input:focus{border-color:#5b8ee8;box-shadow:0 0 0 3px rgba(91,142,232,.13);outline:0}
/* Tampilan keranjang service yang rapi dan konsisten. */
#cart-table .cart-unit-select{width:100%;min-width:92px;height:34px;padding:5px 8px;border:1px solid #b8cbea;border-radius:6px;background:#fff;color:#17345f;font-size:12px;font-weight:600;cursor:pointer}
#cart-table .cart-unit-select:focus{border-color:#2864d7;box-shadow:0 0 0 2px rgba(40,100,215,.15);outline:0}
#cart-table tbody td:nth-child(3){min-width:125px;vertical-align:middle}
#cart-table tbody td:nth-child(3) .cart-stock-info{display:block;margin-top:4px;color:#5d78a2;font-size:10px;line-height:1.25;white-space:normal}
#cart-table tbody td:nth-child(4),#cart-table tbody td:nth-child(7){white-space:nowrap;font-weight:600}
#service-receipt-modal .modal-body,#service-pos-panel,#service-items{overflow-anchor:none}
#service-items{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0;overflow:hidden;border:1px solid #d9e2ef;border-radius:8px;background:#fff}
#service-items thead th{height:38px;padding:9px 12px;background:#d5dbe5;color:#40516b;font-size:10px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;vertical-align:middle;border:0;border-bottom:1px solid #c8d2df}
#service-items tbody td{height:58px;padding:8px 12px;background:#fff;color:#304561;font-size:11px;vertical-align:middle;border:0;border-bottom:1px solid #e5ebf3}
#service-items tbody tr:last-child td{border-bottom:0}
#service-items thead th:nth-child(1),#service-items tbody td:nth-child(1){width:42%!important;text-align:left}
#service-items thead th:nth-child(2),#service-items tbody td:nth-child(2){width:15%!important;text-align:left}
#service-items thead th:nth-child(3),#service-items tbody td:nth-child(3){width:11%!important;text-align:center}
#service-items thead th:nth-child(4),#service-items tbody td:nth-child(4){width:14%!important;text-align:right}
#service-items thead th:nth-child(5),#service-items tbody td:nth-child(5){width:14%!important;text-align:right;font-weight:600}
#service-items thead th:nth-child(6),#service-items tbody td:nth-child(6){width:8%!important;text-align:center}
#service-items .service-unit-select{width:100%;min-width:0;height:31px;padding:4px 24px 4px 8px;border-color:#cbd8e8;background:#f8fbff;font-size:11px}
#service-items .service-stock-info{display:block;margin-top:4px;color:#71819a;font-size:9px;line-height:1.25;white-space:normal}
#service-items .service-qty-input{width:64px;height:31px;margin:0 auto;text-align:center;font-size:11px}
#service-items .service-action-cell .btn,#service-items tbody td:last-child .btn{min-width:58px;padding:6px 8px;border-radius:6px;font-size:10px;line-height:1.2}
#service-items tfoot th,#service-items tfoot td{padding:9px 12px;background:#eef4ff;color:#273954;font-size:11px;border:0;border-top:1px solid #d9e2ef}
#service-items tfoot .service-summary-row{font-size:16px;color:#075fe5}
@media(max-width:768px){#service-items{font-size:10px}#service-items thead th,#service-items tbody td,#service-items tfoot th,#service-items tfoot td{padding:7px 6px}#service-items .service-stock-info{font-size:8px}#service-items .service-qty-input{width:55px}#service-items .service-action-cell .btn,#service-items tbody td:last-child .btn{min-width:48px;padding:5px 5px}}

/* Tema biru-slate Kasir/Penjualan: kontras tetap jelas pada layar dan cetak. */
.kasir-reference-mode,.pos-mode{-webkit-print-color-adjust:exact;print-color-adjust:exact}
.kasir-reference-mode{background:linear-gradient(135deg,#e8f0fa 0%,#dce6f2 52%,#eef3f9 100%);color:#132d49}
.kasir-reference-mode .content{background:transparent}
.kasir-reference-mode .kasir-card{background:#e8f0fa;border:1px solid #b9cbe0;border-radius:12px;box-shadow:0 10px 28px rgba(34,61,91,.12)}
.kasir-reference-mode .kasir-card>.card-body{background:transparent}
.kasir-reference-mode .kasir-category-filter{border-color:#b8cbe0;background:#e8f0fa;box-shadow:0 3px 10px rgba(55,83,116,.06)}
.kasir-reference-mode .kasir-category-heading label,.kasir-reference-mode #kasir-form label{color:#173452}
.kasir-reference-mode .kasir-category-heading small{color:#55708e}
.kasir-reference-mode .kasir-category-button{border-color:#aec2d9;background:#f4f8fd;color:#1f3c5b}
.kasir-reference-mode .kasir-category-button:hover,.kasir-reference-mode .kasir-category-button:focus-visible{border-color:#6d9bd4;background:#e4effb}
.kasir-reference-mode .kasir-category-button.active{border-color:#2864dd;background:#2864dd;color:#fff;box-shadow:0 4px 10px rgba(40,100,221,.22)}
.kasir-reference-mode #kasir-form .form-control{border-color:#aec2d9;background:#f7fbff;color:#173452}
.kasir-reference-mode #kasir-form .form-control:focus{border-color:#5b8ee8;box-shadow:0 0 0 3px rgba(91,142,232,.16);background:#fff}
.kasir-reference-mode #kasir-form #barcode-scan{background:#eef6ff;border-color:#79a8df}
.kasir-reference-mode #cart-table{border-color:#b8cbe0;background:#f7fbff;box-shadow:0 4px 12px rgba(44,71,103,.07)}
.kasir-reference-mode #cart-table thead th{background:#cbd9e8;color:#173452;border-color:#b8cbe0}
.kasir-reference-mode #cart-table td{background:#f7fbff;color:#274461;border-color:#c9d7e6}
.kasir-reference-mode #cart-table tbody tr:hover td{background:#eaf3fc}
.kasir-reference-mode #cart-table tfoot th{background:#e7f0fa;color:#24415f;border-color:#b8cbe0}
.kasir-reference-mode #cart-table tfoot .cart-grand-total th{background:#d8e8fa;border-top-color:#89add7;color:#102f50}
.kasir-reference-mode #cart-table tfoot #cart-total{color:#0f4f9a;font-weight:800}
.kasir-reference-mode .pos-pay{border-color:#aec2d9;background:#f4f8fd;color:#24415f}
.kasir-reference-mode .pos-pay:hover{border-color:#6d9bd4;background:#e4effb}
.kasir-reference-mode .pos-pay.active{border-color:#2864dd;background:#2864dd;color:#fff;box-shadow:0 4px 10px rgba(40,100,221,.2)}
.kasir-reference-mode #kembalian{background:#dce8f5;color:#173452;border-color:#aec2d9}
.kasir-reference-mode #save-sale{background:linear-gradient(135deg,#3478d1,#2864b7);border-color:#2864b7;box-shadow:0 5px 12px rgba(40,100,183,.2)}
.kasir-reference-mode .btn-light{background:#edf4fb;border-color:#b5c9df;color:#284765}
.kasir-reference-mode .btn-light:hover{background:#dceaf8;border-color:#86a9cf}
.pos-mode{background:linear-gradient(135deg,#e8f0fa 0%,#dce6f2 52%,#eef3f9 100%);color:#132d49}
.pos-mode .kasir-card{background:#e8f0fa}
.pos-mode #kasir-form>.form-row:first-of-type,.pos-mode #kasir-form>.form-row:last-of-type{background:#e8f0fa;border-color:#b9cbe0}
.pos-mode #cart-table{background:#f7fbff;border-color:#b8cbe0}
.pos-mode #cart-table thead th{background:#cbd9e8;color:#173452;border-color:#b8cbe0}
.pos-mode #cart-table td,.pos-mode #cart-table tfoot th{background:#f7fbff;color:#274461;border-color:#c9d7e6}
.pos-mode #cart-table tfoot .cart-grand-total th{background:#d8e8fa;color:#102f50}
