/* Saff Akses 2.5 — compact multi-function customer workspace and payment overview. */
.customer-workspace-tabs{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin:0 0 20px;padding:9px;background:white;border:1px solid var(--border);border-radius:14px}
.customer-tab{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:10px 13px;border:1px solid transparent;border-radius:10px;font-size:.86rem;font-weight:500;line-height:1.3;color:#3d5869;min-height:44px}
.customer-tab>.ui-icon{width:19px;height:19px;color:var(--teal-dark)}
.customer-tab:hover{background:#f0f8f8;border-color:#c5e5e5}
.customer-tab.active{background:var(--teal-dark);color:white;border-color:var(--teal-dark)}
.customer-tab.active>.ui-icon{color:white}
.customer-notification{display:inline-flex;align-items:center;justify-content:center;min-width:23px;height:23px;background:#b62940;color:white;border-radius:99px;font-size:.74rem;font-weight:500;padding:0 6px;flex:none;font-variant-numeric:tabular-nums}
.customer-add-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,245px),1fr));gap:12px}
.customer-add-choice{display:flex;align-items:center;gap:12px;min-height:88px;padding:15px;border:1px solid var(--border);border-radius:13px;color:var(--navy);background:white}
.customer-add-choice.selected,.customer-add-choice:hover{background:#eff9f8;border-color:#80c7cb}
.customer-choice-icon{display:grid;place-items:center;width:45px;height:45px;background:var(--tint);color:var(--teal-dark);border-radius:12px;flex:none}
.customer-add-choice>span:nth-child(2){flex:1;min-width:0}
.customer-add-choice strong,.customer-add-choice small{display:block}
.customer-add-choice small{font-size:.78rem}
.customer-add-choice>.ui-icon{width:17px;height:17px;color:var(--teal-dark)}
.customer-import-form{margin-top:18px;max-width:650px}
.customer-request-action{margin-top:8px;min-width:180px}
.customer-request-action .field{margin-bottom:8px}
.customer-request-action select{font-size:.8rem;min-height:38px}
.billing-recap-top{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 15px}
.billing-recap-top h2{margin:3px 0 0;font-size:1.25rem}
.billing-percent{padding:7px 12px;border-radius:9px;background:#e0f3e9;color:#086344;font-size:.9rem;font-weight:500}
.billing-progress{height:14px;width:100%;border:1px solid #e4d9bd;background:#f5e7c8;overflow:hidden;border-radius:99px}
.billing-progress>span{height:100%;display:block;background:linear-gradient(90deg,#087c80,#16a281);border-radius:99px}
.billing-legend{display:flex;gap:15px;align-items:center;flex-wrap:wrap;font-size:.77rem;color:var(--muted);margin:8px 0 17px}
.billing-legend span{display:flex;align-items:center;gap:5px}
.billing-legend i{width:10px;height:10px;border-radius:50%;display:block}
.paid-dot{background:#087c80}.open-dot{background:#e5c175}
.billing-recap-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}
.billing-metric{display:flex;flex-direction:column;gap:5px;background:#f6f9fa;border:1px solid var(--border);border-radius:12px;padding:14px;min-width:0}
.billing-metric-icon{display:grid;place-items:center;width:35px;height:35px;background:var(--tint);color:var(--teal-dark);border-radius:10px}
.billing-metric-icon .ui-icon{width:20px;height:20px}
.billing-metric-label{font-size:.78rem;color:var(--muted)}
.billing-metric strong{color:var(--navy);font-size:clamp(.96rem,1.5vw,1.23rem);overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.billing-metric.paid{background:#f2fbf5;border-color:#c0e5cc}
.billing-metric.paid strong{color:#0a684a}
.billing-metric.unpaid{background:#fffaf0;border-color:#eedbb1}
.billing-metric.unpaid strong{color:#855810}
.billing-metric.unpaid .billing-metric-icon{background:#fff0ce;color:#855810}
.billing-recap-note{font-size:.77rem;color:var(--muted);line-height:1.55;margin:14px 0 0}
@media(max-width:1050px){.billing-recap-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:790px){.customer-workspace-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:7px}.customer-tab{justify-content:flex-start;font-size:.78rem;padding:9px 8px;min-height:48px}.customer-tab>.ui-icon{width:17px;height:17px}.customer-tab>span:first-of-type{min-width:0;overflow-wrap:anywhere}.customer-notification{min-width:20px;height:20px;font-size:.69rem}.customer-request-action{min-width:0}.billing-metric{padding:12px}.billing-metric-label{font-size:.74rem}}

/* 2.6 unified navigation and inline-search dropdown. */
.transaction-tabs .transaction-new{margin-left:auto;min-height:44px}
.customer-history-link{margin:14px 0 0}
.customer-add-choice-wrap{display:flex}.customer-add-choice-wrap .customer-add-choice{width:100%}
.saff-select-host{position:relative;width:100%;min-width:0}
.saff-select-host .saff-select-native{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;margin:0!important;opacity:0;clip-path:inset(50%);pointer-events:none;overflow:hidden}
.saff-select-trigger{width:100%;justify-content:space-between;text-align:left;min-height:44px;font-size:16px;font-weight:500;color:var(--text);background:#fff;border:1px solid #bbd0da;border-radius:10px;padding:9px 12px;gap:9px}
.saff-select-trigger:hover{filter:none;background:#f7fbfc}
.saff-select-trigger.is-placeholder{color:#667f90}
.saff-select-trigger[aria-expanded=true]{border-color:var(--teal);outline:3px solid #b7e5e8}
.saff-select-trigger[aria-invalid=true]{border-color:var(--red)}
.saff-select-caption{flex:1;overflow-wrap:anywhere;text-align:left}
.saff-select-chevron{display:block;flex:none;width:8px;height:8px;margin:0 5px 4px 3px;border-right:1.6px solid #466475;border-bottom:1.6px solid #466475;transform:rotate(45deg);transition:transform .15s ease}
.saff-select-trigger[aria-expanded=true] .saff-select-chevron{transform:rotate(225deg);margin-bottom:0;margin-top:4px}
.saff-select-panel{position:absolute;top:calc(100% + 5px);left:0;right:0;z-index:25;background:#fff;border:1px solid #b4d4d8;border-radius:12px;box-shadow:0 12px 36px #10395030;padding:9px;text-align:left}
.saff-select-panel .saff-select-search{width:100%;min-height:40px;font-size:15px;padding:8px 10px;margin:0 0 8px;text-align:left}
.saff-select-options{max-height:235px;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:3px}
.saff-select-option{background:white;color:var(--text);border:1px solid transparent;border-radius:7px;display:flex;width:100%;justify-content:space-between;align-items:center;min-height:38px;padding:8px 9px;text-align:left;font-size:.86rem;font-weight:500;gap:8px}
.saff-select-option-text{min-width:0;overflow-wrap:anywhere}
.saff-select-option:hover,.saff-select-option:focus-visible{filter:none;background:#f1f8f9;border-color:#c9e4e5}
.saff-select-option.selected{background:#e2f4ed;color:#096741;border-color:#bde1cf;font-weight:500}
.saff-select-option-tick{visibility:hidden;flex:none}
.saff-select-option.selected .saff-select-option-tick{visibility:visible}
.saff-select-empty{padding:12px 7px;font-size:.84rem;color:var(--muted)}
.saff-select-done{width:100%;min-height:40px;margin-top:8px;font-size:.86rem}
.registration-form .saff-select-trigger .saff-select-caption{text-align:left}
@media(max-width:790px){.transaction-tabs .transaction-new{grid-column:1/-1;margin-left:0;display:flex}.saff-select-options{max-height:200px}}
.receipt-jpeg{margin:16px 0 0;padding-top:13px;border-top:1px solid var(--border)}
.receipt-jpeg p{font-size:.78rem;line-height:1.5;margin:8px 0 0}
.staff-master .package-table-actions{justify-content:flex-end}
@media(max-width:790px){.staff-master .package-table-actions{justify-content:flex-start}.receipt-jpeg .row>button{flex:1 1 180px}}

/* 2.7 — conventional left alignment and responsive work-order workspace. */
.footer{text-align:left;display:flex;align-items:flex-start;justify-content:space-between;gap:8px;flex-wrap:wrap}
.footer div:last-child{margin-top:0}
.wo-mobile-list{display:none}
.wo-form-hint{display:block;margin:-6px 0 17px}
.wo-table-actions{gap:6px;min-width:170px}
.wo-list .table-wrap th:first-child{white-space:nowrap}
.wo-ticket{padding:0;overflow:hidden;margin:0;box-shadow:none}
.wo-ticket-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:15px;background:var(--tint);border-bottom:1px solid #c6e0e3}
.wo-ticket-head h2{margin:4px 0 0;font-size:1.07rem}
.wo-ticket-head small{color:var(--teal-dark);font-weight:500}
.wo-ticket-head .badge{flex:none}
.wo-ticket-body{padding:12px 15px 0}
.wo-ticket-body .info-line{align-items:flex-start}
.wo-ticket-actions{padding:13px 15px 16px;gap:7px}
.wo-ticket-actions>a{flex:1 1 auto;min-height:43px}
@media(max-width:790px){
 .footer{flex-direction:column}
 .wo-office .package-toolbar>.btn{width:100%}
 .wo-technician .wo-desktop-list{display:none}
 .wo-technician .wo-mobile-list{display:grid;gap:12px}
 .wo-office .table-wrap{overflow-x:auto;border:1px solid var(--border);border-radius:12px}
 .wo-office .table-wrap table{display:table;min-width:800px}
 .wo-office .table-wrap thead{position:static;width:auto;height:auto;clip:auto;white-space:normal;display:table-header-group;overflow:visible}
 .wo-office .table-wrap tbody{display:table-row-group}
 .wo-office .table-wrap tbody tr{display:table-row;border:0;padding:0}
 .wo-office .table-wrap td{display:table-cell;padding:10px 12px}
 .wo-office .table-wrap td::before{content:none}
}

/* 2.8 — centered Saff Akses login branding; keep form labels readable. */
.login-brand{display:flex;flex-direction:column;align-items:center;text-align:center;gap:15px;border-bottom:1px solid var(--border);padding:3px 0 17px;margin-bottom:20px}
.login-brand img{width:min(100%,235px);height:auto;display:block;object-fit:contain}
.login-brand h1{margin:0;font-size:1.48rem;color:var(--navy)}
.login-remember{margin:0 0 15px}
.login-remember .check{margin:0;align-items:flex-start;font-size:.84rem}
.login-remember small{font-size:.74rem;display:block;margin:5px 0 0;line-height:1.45}
.login-app-actions{text-align:center;display:flex;flex-direction:column;align-items:center;gap:8px;margin-top:13px}
.login-app-actions button,.login-app-actions .btn{min-width:220px;max-width:100%;justify-content:center}
.login-app-help{font-size:.79rem;line-height:1.5;margin:0}
@media(max-width:540px){.login-brand img{width:min(100%,205px)}.login-app-actions button,.login-app-actions .btn{width:100%;min-width:0}}

/* V2.11: status layanan + tagihan langsung pada dashboard pelanggan. */
.customer-service-card .customer-service-status{display:flex;margin:2px 0 12px}
.customer-service-status .badge{font-size:1.04rem;padding:10px 15px;gap:9px}
.customer-service-status .badge .ui-icon{width:20px;height:20px}
.customer-package-title{margin:0 0 14px;font-size:1.3rem}
.customer-service-card .notice{margin:14px 0 0}
.customer-due-card{border:1px solid #efb3bd;background:#fff;box-shadow:0 5px 20px #9c263408}
.customer-due-label{display:flex;gap:9px;align-items:center;color:#a91e32;font-weight:500;font-size:1.03rem}
.customer-due-amount{color:#a91e32;font-size:clamp(1.6rem,5vw,2.4rem);font-weight:500;line-height:1.3;margin:8px 0 15px;font-variant-numeric:tabular-nums}
.customer-due-item{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:12px 0;border-top:1px solid #e5e9ec;color:var(--navy)}
.customer-due-item small{display:block;color:var(--muted)}
.customer-due-item strong{white-space:nowrap}
.customer-due-action{display:flex;justify-content:center;margin-top:15px}
.customer-due-action .btn{width:min(100%,390px);justify-content:center}
.customer-due-card .notice{margin:14px 0 0}
.customer-no-due{display:flex;gap:9px;align-items:center;margin:0}
.proof-photo-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:11px;margin:12px 0}
.proof-photo-choice{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;justify-content:center;gap:8px;min-height:128px;padding:16px;border:1px solid #a8cbd0;background:#f1f8f8;border-radius:12px;color:var(--teal-dark);cursor:pointer}
.proof-photo-choice .ui-icon{width:25px;height:25px}
.proof-photo-choice strong{font-size:1rem}
.proof-photo-choice small{font-size:.77rem}
.proof-photo-choice input[type=file]{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer;margin:0;padding:0}
.proof-photo-choice:focus-within{outline:2px solid var(--teal-dark);outline-offset:2px}
#proof-selected{display:block;margin-bottom:8px;overflow-wrap:anywhere}

/* Customer-facing alignment only, leaving staff layout unchanged. */
.customer-bill-summary .stat{flex-direction:column;text-align:center;align-items:center;justify-content:center;gap:9px}
.customer-bill-summary .stat-body{text-align:center}
.customer-bill-details .card-heading{text-align:center}
.customer-bill-details th,.customer-bill-details td{text-align:center}
.center-actions{display:flex;justify-content:center;align-items:center;margin-top:16px;gap:8px;flex-wrap:wrap}
.customer-profile-photo{display:grid;place-items:center;margin:12px auto 18px;width:108px;height:108px;border-radius:50%;background:var(--tint);overflow:hidden;border:2px solid #b1d5d8}
.customer-profile-photo img,.receipt .customer-profile-photo img{width:100%;height:100%;max-width:none;object-fit:cover;display:block;margin:0}
.customer-photo-placeholder{display:grid;place-items:center;color:var(--teal-dark);width:100%;height:100%}
.customer-photo-placeholder .ui-icon{width:44px;height:44px}
@media(max-width:650px){
 .customer-bill-details .table-wrap td{text-align:right}
 .customer-bill-details .table-wrap td::before{text-align:left}
}
@media print{.customer-profile-photo{width:85px;height:85px;border:1px solid #a8b9c4;print-color-adjust:exact}}

.payment-notification[hidden],.payment-live-notice[hidden]{display:none!important}
.sidebar .nav-link .payment-notification{margin-left:auto}
.payment-review-queue .notice{margin:0 0 14px}
.payment-live-notice:not([hidden]){display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.bottom-nav .nav-link{position:relative}
.bottom-nav .payment-notification{position:absolute;top:2px;right:7px;min-width:18px;height:18px;padding:0 5px;font-size:.66rem}

/* V2.12: add forms stay inside centered popups; only the dialog body scrolls. */
html:has(dialog.package-dialog[open]){overflow:hidden}
dialog.cashier-dialog{width:520px}
dialog.customer-add-dialog{width:660px}
dialog.customer-new-dialog,dialog.wo-add-dialog{width:760px}
dialog.settlement-dialog{width:660px}
.package-dialog .saff-select-panel{position:relative;top:auto;left:auto;right:auto;margin:7px 0 0;box-shadow:0 6px 22px #10395016;z-index:1}
.package-dialog .saff-select-options{max-height:210px;overscroll-behavior:contain}
.package-dialog{overscroll-behavior:contain}
.package-dialog .package-dialog-body .customer-add-choices{grid-template-columns:1fr;gap:10px}
.package-dialog .customer-add-choices .customer-add-choice{min-height:76px}
.package-dialog .customer-add-choice:focus-visible{outline:2px solid var(--teal-dark);outline-offset:2px}
@media(max-width:790px){
 .package-dialog .form-grid{grid-template-columns:1fr}
 .package-dialog .saff-select-options{max-height:160px}
 .package-dialog .package-dialog-actions{display:flex;flex-wrap:wrap}
 .package-dialog .package-dialog-actions>button{flex:1 1 120px}
 .package-dialog .registration-actions>button{min-width:0;flex:1 1 120px}
}

/* V2.13: one transactions workspace, individual invoice refresh */
.billing-view-tabs{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:7px;border:1px solid #d4e3eb;background:#fff;border-radius:12px;margin:0 0 18px}
.billing-view-tabs .customer-tab{min-width:0}
.bill-row-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.invoice-refresh-form{display:inline-flex;margin:0;padding:0}
.invoice-refresh-button{display:inline-flex;align-items:center;justify-content:center;width:40px;min-width:40px;min-height:40px;padding:0;border-radius:9px}
.invoice-refresh-button>.ui-icon{width:20px;height:20px;margin:0}
.invoice-refresh-button:disabled{opacity:.46;cursor:not-allowed}
.invoice-refresh-note{display:flex;align-items:center;gap:8px;margin:14px 0;font-size:.82rem}
.invoice-refresh-note>.ui-icon{flex-shrink:0;width:18px;height:18px;color:var(--teal-dark)}
.bill-period-item{display:flex;flex-direction:column;gap:3px;padding:5px 0;white-space:nowrap}
.bill-period-item+.bill-period-item{border-top:1px solid #e0eaee}
.bill-period-item small{font-size:.78rem;color:#526c7b}
@media(max-width:790px){.billing-view-tabs{display:grid;grid-template-columns:repeat(auto-fit,minmax(125px,1fr))}.billing-view-tabs .customer-tab{justify-content:center;text-align:center}.bill-row-actions{min-width:145px}.invoice-refresh-button{min-height:44px;min-width:44px}}

/* V2.14: consistent, thin dropdown arrows and compact customer cards. */
select:not([multiple]):not(.saff-select-native){
 appearance:none;-webkit-appearance:none;-moz-appearance:none;
 background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23466475' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
 background-repeat:no-repeat;background-position:right 12px center;background-size:18px 18px;padding-right:38px
}
.customer-state-stack{display:flex;flex-direction:column;gap:5px;align-items:flex-start}
@media(max-width:790px){
 .customer-list-card .table-wrap tbody{gap:10px}
 .customer-list-card .table-wrap tbody tr{padding:8px 11px}
 .customer-list-card .table-wrap td{grid-template-columns:minmax(82px,34%) minmax(0,1fr);gap:8px;align-items:center;padding:7px 0}
 .customer-list-card .table-wrap td::before{text-align:left}
 .customer-list-card .table-wrap .cell-content{text-align:right;overflow-wrap:anywhere}
 .customer-list-card .customer-state-stack{align-items:flex-end}
 .customer-list-card .table-wrap .badge{max-width:100%;text-align:right;justify-content:flex-end}
 .customer-list-card .package-table-actions{justify-content:flex-end;gap:5px}
 .customer-list-card .package-table-actions .btn{margin:0}
 .customer-list-card .table-wrap td[data-label="Aksi"]{grid-template-columns:minmax(0,1fr);padding-top:9px}
 .customer-list-card .table-wrap td[data-label="Aksi"]::before{display:none}
}
@media(prefers-reduced-motion:reduce){.saff-select-chevron{transition:none}}

/* V2.16 — compact navigation, search and transaction controls. */
.compact-workspace-toolbar{gap:5px;padding:7px;margin-bottom:15px}
.compact-workspace-toolbar .customer-tab{flex:none;min-height:36px;padding:7px 9px;gap:6px;font-size:.82rem;white-space:nowrap}
.compact-workspace-toolbar .customer-tab>.ui-icon{width:17px;height:17px}
.compact-customer-search{display:flex;align-items:center;flex:0 1 216px;width:216px;max-width:100%;min-width:168px;margin:0 0 0 auto;gap:0;border:1px solid #bbd0da;border-radius:9px;background:#fff;overflow:hidden}
.compact-customer-search input[type=search]{flex:1 1 0;min-width:0;width:0;height:36px;min-height:36px;padding:6px 9px;border:0;border-radius:0;background:#fff;font-size:.82rem}
.compact-customer-search input[type=search]:focus{outline:none}
.compact-customer-search:focus-within{border-color:var(--teal);outline:2px solid #b7e5e8}
.compact-customer-search button{flex:0 0 36px;min-width:36px;width:36px;min-height:36px;padding:0;border:0;border-left:1px solid #d7e4ea;border-radius:0;background:white;color:var(--teal-dark)}
.compact-customer-search button>.ui-icon{width:17px;height:17px}
.transaction-tabs .transaction-new,.compact-workspace-toolbar .billing-generate-button{min-height:36px;padding:7px 10px;font-size:.82rem;white-space:nowrap;flex:none}
.staff-bill-list .invoice-refresh-note{margin:0 0 12px;font-size:.78rem;line-height:1.4}
.staff-bill-list .bill-row-actions{gap:5px;min-width:0}
.staff-bill-list .bill-row-actions .btn,.staff-bill-list .bill-row-actions button{padding:5px 8px;min-height:32px;font-size:.77rem;gap:4px;margin:0;white-space:nowrap}
.staff-bill-list .bill-row-actions .invoice-waive-button,.staff-bill-list .bill-row-actions .invoice-refresh-button{width:32px;min-width:32px;min-height:32px;height:32px;padding:0;flex:none;border-radius:8px}
.staff-bill-list .invoice-waive-button>.ui-icon,.staff-bill-list .invoice-refresh-button>.ui-icon{width:16px;height:16px}
.staff-bill-list .table-wrap td[data-label="Total"]{white-space:nowrap}
.staff-bill-list .badge>span,.customer-list-card .badge>span{overflow-wrap:normal;word-break:normal;hyphens:none}
.staff-bill-list .badge.good{white-space:nowrap}
.staff-bill-list .badge{font-size:.72rem;font-weight:500;max-width:100%;padding:5px 7px}
.staff-bill-list .badge .ui-icon{width:14px;height:14px}
.customer-list-card .package-table-actions .btn{padding:5px 8px;min-height:32px;font-size:.78rem;gap:5px}
@media(min-width:791px){
 .staff-bill-list .table-wrap td[data-label="Layanan"]{min-width:105px}
 .staff-bill-list .table-wrap td[data-label="Tindakan"]{min-width:255px}
 .staff-bill-list .bill-row-actions{flex-wrap:nowrap}
 .staff-bill-list .table-wrap td,.customer-list-card .table-wrap td{padding-top:9px;padding-bottom:9px}
}
@media(max-width:790px){
 .compact-workspace-toolbar .customer-tab{min-height:42px;white-space:normal}
 .compact-customer-search{grid-column:1/-1;width:100%;max-width:270px;justify-self:end;margin:0 0 0 auto}
 .compact-customer-search input[type=search],.compact-customer-search button{min-height:40px;height:40px}
 .transaction-tabs .transaction-new{grid-column:auto;margin:0;min-height:42px;white-space:normal}
 .compact-workspace-toolbar .billing-generate-button{min-height:42px}
 .staff-bill-list .bill-row-actions{justify-content:flex-end;flex-wrap:wrap}
 .staff-bill-list .bill-row-actions .btn,.staff-bill-list .bill-row-actions button{min-height:40px}
 .staff-bill-list .bill-row-actions .invoice-waive-button,.staff-bill-list .bill-row-actions .invoice-refresh-button{width:40px;min-width:40px;height:40px;min-height:40px}
 .staff-bill-list .table-wrap td[data-label="Tindakan"]{grid-template-columns:minmax(0,1fr)}
 .staff-bill-list .table-wrap td[data-label="Tindakan"]::before{display:none}
 .customer-list-card .package-table-actions .btn{min-height:40px}
}

/* V2.17 — dashboard financial overview, billing charts and operational groups.
   All selectors are scoped to staff dashboard content, never the customer portal. */
.dashboard-workspace{container-name:dash-workspace;container-type:inline-size;display:grid;gap:22px;min-width:0}
.dashboard-workspace .card{margin:0;min-width:0;box-shadow:0 3px 14px #0b354607}
.dashboard-section{display:grid;gap:12px;min-width:0}
.dashboard-section-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.dashboard-section-head h2{font-size:1.13rem;font-weight:550;margin:0 0 4px;color:var(--navy);letter-spacing:-.018em}
.dashboard-section-head p{margin:0;font-size:.82rem;color:var(--muted);line-height:1.45}
.dashboard-finance-grid,.dashboard-finance-insights,.dashboard-operations-grid,.dashboard-two-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:13px;min-width:0;align-items:stretch}
.dashboard-metric{--metric-ink:#285475;--metric-tint:#eaf3f9;--metric-accent:#679cbe;container-type:inline-size;min-width:0;display:flex;flex-direction:column;gap:9px;border:1px solid var(--border);border-top:3px solid var(--metric-accent);background:#fff;border-radius:13px;padding:15px 17px;color:var(--text);box-shadow:0 3px 14px #0b354607}
.dashboard-metric.dash-tone-green{--metric-ink:#126844;--metric-tint:#e7f5ed;--metric-accent:#37a579}
.dashboard-metric.dash-tone-amber{--metric-ink:#89581d;--metric-tint:#fff2dd;--metric-accent:#d9a04e}
.dashboard-metric.dash-tone-blue{--metric-ink:#245a91;--metric-tint:#eaf1fb;--metric-accent:#6d99c9}
a.dashboard-metric:hover{border-color:var(--metric-accent);box-shadow:var(--shadow-hover)}
.dashboard-metric-top{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:.84rem;font-weight:500;line-height:1.35;min-height:34px}
.dashboard-metric-icon{flex:none;width:36px;height:36px;border-radius:10px;display:grid;place-items:center;color:var(--metric-ink);background:var(--metric-tint)}
.dashboard-metric-icon .ui-icon{width:21px;height:21px}
.dashboard-metric-value{font-size:1.55rem;font-size:clamp(1rem,8cqw,1.85rem);font-weight:550;line-height:1.22;letter-spacing:-.035em;color:var(--metric-ink);font-variant-numeric:tabular-nums;white-space:nowrap;word-break:normal;overflow-wrap:normal}
.dashboard-metric-value.dashboard-value-long{font-size:1.1rem;font-size:clamp(.75rem,5.4cqw,1.3rem)}
.dashboard-metric>small{margin-top:auto;line-height:1.4;font-size:.75rem;color:var(--muted)}
.dashboard-panel{padding:17px 19px!important;border-radius:14px}
.dashboard-panel .card-heading,.dashboard-quick-card .card-heading,.dashboard-workspace .website-traffic-admin .card-heading{font-size:1rem;font-weight:550;margin:0 0 14px;padding-bottom:12px}
.dashboard-panel-caption{font-size:.79rem;color:var(--muted);margin:0;text-align:center}
.dashboard-chart-legend{display:flex;gap:14px;flex-wrap:wrap;margin-bottom:15px;color:var(--muted);font-size:.75rem}
.dashboard-chart-legend>span,.dashboard-progress-summary>div>span{display:flex;gap:6px;align-items:center}
.dash-swatch{display:inline-block;width:10px;height:10px;border-radius:3px;flex:none}
.dashboard-workspace .dash-paid{background:#22876b}
.dashboard-workspace .dash-open{background:#dfa75a}
.dashboard-month-chart{display:grid;gap:12px}
.dashboard-chart-row{display:grid;grid-template-columns:47px minmax(0,1fr);gap:11px;align-items:start}
.dashboard-chart-month{font-size:.77rem;white-space:nowrap;line-height:1.5;font-variant-numeric:tabular-nums}
.dashboard-chart-month:hover{text-decoration:underline}
.dashboard-chart-detail{min-width:0}
.dashboard-bar-track{height:11px;background:#edf2f5;border-radius:5px;display:flex;overflow:hidden;margin:3px 0 5px}
.dashboard-bar-track>span{display:block;height:100%;flex:none}
.dashboard-bar-values{display:flex;justify-content:space-between;gap:2px 10px;flex-wrap:wrap;font-size:.73rem;line-height:1.4;font-variant-numeric:tabular-nums}
.dashboard-bar-values>span{white-space:nowrap}
.dashboard-paid-text{color:#126844}
.dashboard-open-text{color:#89581d}
.dashboard-footnote{font-size:.73rem!important;color:var(--muted);margin:15px 0 0;padding-top:11px;border-top:1px solid #e5edf2;line-height:1.5}
.dashboard-chart-empty{color:var(--muted);font-size:.78rem;margin:0 0 11px}
.dashboard-progress-card{display:flex;flex-direction:column}
.dashboard-ring-wrap{display:grid;place-items:center;padding:14px 0 16px}
.dashboard-ring{--dash-progress:0%;width:min(158px,100%);aspect-ratio:1;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#22876b 0 var(--dash-progress),#dfa75a var(--dash-progress) 100%);padding:13px}
.dashboard-ring-empty{background:#e8eff3}
.dashboard-ring-inner{width:100%;height:100%;background:#fff;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:8px;text-align:center}
.dashboard-ring-inner>strong{font-size:1.75rem;font-weight:550;letter-spacing:-.035em;color:var(--navy);font-variant-numeric:tabular-nums}
.dashboard-ring-inner>small{font-size:.74rem;line-height:1.35}
.dashboard-progress-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.dashboard-progress-summary>div{background:#f3f7f8;border-radius:9px;padding:10px;display:flex;flex-direction:column;gap:4px;min-width:0;container-type:inline-size}
.dashboard-progress-summary>div>span{font-size:.74rem;line-height:1.4}
.dashboard-progress-summary strong{color:var(--navy);font-weight:500;font-size:1.4rem;font-variant-numeric:tabular-nums}
.dashboard-progress-summary small{font-size:.76rem;font-size:clamp(.62rem,8cqw,.86rem);font-variant-numeric:tabular-nums;white-space:nowrap}
.dashboard-progress-card .dashboard-footnote{margin-top:auto;padding-top:12px;min-height:0;border-top:none}
.dashboard-customer-total{display:flex;justify-content:space-between;gap:10px;align-items:center;background:#edf5f7;border-radius:11px;padding:15px;margin-bottom:17px}
.dashboard-customer-total>div{display:flex;flex-direction:column;gap:1px;min-width:0}
.dashboard-customer-total span{font-size:.79rem;color:var(--muted)}
.dashboard-customer-total strong{font-size:2rem;font-weight:550;line-height:1.2;letter-spacing:-.03em;color:var(--navy);font-variant-numeric:tabular-nums}
.dashboard-customer-total small{margin-top:3px;font-size:.72rem;line-height:1.4}
.dashboard-customer-icon{width:47px;height:47px;border-radius:12px;background:#dcecef;display:grid;place-items:center;flex:none;color:var(--teal-dark)!important}
.dashboard-customer-icon .ui-icon{width:25px;height:25px}
.dashboard-customer-breakdown{display:grid;gap:11px}
.dashboard-customer-status-row>div:first-child{display:flex;gap:8px;align-items:center;justify-content:space-between;font-size:.79rem;line-height:1.4;margin-bottom:5px}
.dashboard-customer-status-row>div:first-child>span{display:flex;gap:7px;align-items:center}
.dashboard-customer-status-row strong{font-size:.87rem;color:var(--navy);font-weight:500;font-variant-numeric:tabular-nums}
.dash-status-dot{display:inline-block;width:8px;height:8px;border-radius:50%;flex:none}
.dashboard-status-track{height:5px;background:#edf2f5;border-radius:8px;overflow:hidden}
.dashboard-status-track>span{display:block;height:100%;border-radius:8px}
.dash-status-green{background:#22876b}.dash-status-amber{background:#d5a14f}.dash-status-blue{background:#6295c2}.dash-status-red{background:#c46a75}.dash-status-slate{background:#899bac}
.dashboard-panel-actions{display:flex;justify-content:flex-end;margin-top:13px}
.dashboard-panel-actions .btn{margin:0}
.dashboard-task-list{display:flex;flex-direction:column}
.dashboard-task{display:flex;gap:10px;align-items:center;min-width:0;padding:11px 0;border-bottom:1px solid #e5edf2;color:var(--text)}
.dashboard-task:last-child{border-bottom:0}
.dashboard-task:hover .dashboard-task-text>strong{color:var(--teal-dark);text-decoration:underline}
.dashboard-task-icon{flex:none;display:grid;place-items:center;border-radius:9px;background:#edf5f7;color:var(--teal-dark);width:34px;height:34px}
.dashboard-task-icon .ui-icon{width:18px;height:18px}
.dashboard-task-text{min-width:0;flex:1;display:flex;flex-direction:column;gap:2px}
.dashboard-task-text strong{font-size:.84rem;font-weight:500;line-height:1.35}
.dashboard-task-text small{font-size:.73rem;line-height:1.4}
.dashboard-task-count{flex:none;min-width:28px;text-align:center;background:#eef3f6;color:#4c6679;padding:4px 7px;border-radius:7px;font-size:.8rem;font-weight:500;font-variant-numeric:tabular-nums}
.dashboard-task-count.has-count{background:#fff1da;color:#89581d}
.dashboard-task-arrow{width:14px;height:14px;color:#7a91a0}
.dashboard-workspace .website-traffic-admin{padding:17px 19px}
.dashboard-workspace .website-traffic-admin .stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.dashboard-workspace .website-traffic-admin .stat{padding:11px 12px;gap:7px;flex-direction:column;box-shadow:none;border-radius:10px}
.dashboard-workspace .website-traffic-admin .stat-icon{width:30px;height:30px;border-radius:8px}
.dashboard-workspace .website-traffic-admin .stat-icon .ui-icon{width:17px;height:17px}
.dashboard-workspace .website-traffic-admin .stat b{font-size:1.2rem;font-weight:500;white-space:nowrap;overflow-wrap:normal}
.dashboard-workspace .website-traffic-admin .stat-body>span{font-size:.74rem;line-height:1.4}
.dashboard-workspace .website-traffic-note{font-size:.72rem;line-height:1.5;margin:12px 0 0}
.dashboard-workspace .dashboard-quick-card{padding:17px 19px}
.dashboard-quick-card .menu-list{grid-template-columns:repeat(auto-fit,minmax(min(180px,100%),1fr));gap:8px}
.dashboard-quick-card .quick-link{min-height:58px;padding:10px;gap:8px;flex-direction:row;align-items:center;border-radius:9px}
.dashboard-quick-card .quick-icon{width:31px;height:31px;border-radius:8px}
.dashboard-quick-card .quick-icon .ui-icon{width:18px;height:18px}
.dashboard-quick-card .quick-text{min-width:0;flex:1}
.dashboard-quick-card .quick-text strong{font-size:.8rem;font-weight:500;line-height:1.3}
.dashboard-quick-card .quick-text small{display:none}
.dashboard-quick-card .quick-arrow{width:14px;height:14px;position:static}
@media(min-width:1200px){
 .dashboard-finance-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .dashboard-finance-insights{grid-template-columns:minmax(0,1.55fr) minmax(0,1fr)}
 .dashboard-operations-grid,.dashboard-two-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .dashboard-workspace .website-traffic-admin .stats{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@container dash-workspace (min-width:720px){
 .dashboard-finance-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .dashboard-finance-insights{grid-template-columns:minmax(0,1.55fr) minmax(0,1fr)}
 .dashboard-operations-grid,.dashboard-two-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .dashboard-workspace .website-traffic-admin .stats{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@container dash-workspace (max-width:719px){
 .dashboard-finance-grid,.dashboard-finance-insights,.dashboard-operations-grid,.dashboard-two-grid{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:790px){
 .dashboard-workspace{gap:19px}
 .dashboard-section{gap:10px}
 .dashboard-finance-grid,.dashboard-finance-insights,.dashboard-operations-grid,.dashboard-two-grid{gap:10px}
 .dashboard-metric{padding:12px 15px;gap:5px}
 .dashboard-panel,.dashboard-workspace .website-traffic-admin,.dashboard-workspace .dashboard-quick-card{padding:14px!important}
 .dashboard-progress-card .dashboard-footnote{margin-top:12px}
 .dashboard-quick-card .menu-list{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* V2.18 — compact mobile subscriber identity, preserving service and billing rules. */
.customer-service-card .customer-service-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:13px;border-bottom:1px solid var(--border);min-width:0}
.customer-service-card .customer-service-header h2{margin:0;font-size:1rem;line-height:1.4;font-weight:500;flex:0 1 auto;overflow-wrap:normal}
.customer-service-card .customer-service-header .customer-service-status{display:flex;justify-content:flex-end;align-items:center;margin:0;min-width:0;max-width:65%;flex:0 1 auto}
.customer-service-card .customer-service-status .badge{font-size:.8rem;line-height:1.35;padding:6px 10px;gap:5px;min-width:0;white-space:normal;text-align:left;font-weight:500}
.customer-service-card .customer-service-status .badge .ui-icon{width:16px;height:16px;flex:none}
.customer-service-card .customer-service-status .badge>span{overflow-wrap:normal;word-break:normal}
.customer-service-card .customer-package-panel{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(90px,124px);align-items:center;gap:10px;min-height:105px;min-width:0;overflow:hidden;margin:12px 0 0;padding:14px 15px;border:1px solid #dcebee;border-radius:12px;background:linear-gradient(115deg,#f8fbfc 10%,#eff8f8 100%)}
.customer-service-card .customer-package-panel::before{content:"";position:absolute;width:205px;height:205px;right:-58px;top:-75px;border:1px solid #cfe6e8;border-radius:50%;box-shadow:0 0 0 16px #d9eeef75,0 0 0 32px #e0f0f166;pointer-events:none}
.customer-service-card .customer-package-copy{position:relative;z-index:1;min-width:0}
.customer-service-card .customer-package-label{display:block;font-size:.73rem;color:var(--muted);line-height:1.4;margin-bottom:5px}
.customer-service-card .customer-package-title{font-size:clamp(1.22rem,3.6vw,1.6rem);font-weight:550;color:var(--navy);line-height:1.25;margin:0;overflow-wrap:anywhere}
.customer-service-card .customer-package-art{z-index:1;min-width:0;align-self:stretch;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;pointer-events:none}
.customer-service-card .customer-package-symbol{display:grid;place-items:center;width:43px;height:43px;border-radius:14px;color:var(--teal-dark);background:#fff;border:1px solid #d3e8e9;box-shadow:0 3px 10px #0b58640a}
.customer-service-card .customer-package-symbol>.ui-icon{width:25px;height:25px;stroke-width:1.65}
.customer-service-card .customer-package-watermark{display:block;width:min(100%,108px);height:auto;opacity:.27;object-fit:contain}
.customer-service-card>.info-line{align-items:center;gap:8px;margin:0;padding:13px 0 0;border:0;font-size:.85rem}
.customer-service-card>.info-line>span{flex:none}
.customer-service-card>.info-line>b{font-variant-numeric:tabular-nums;font-weight:500;text-align:right}
@media(max-width:790px){
 .customer-service-card .customer-service-header{gap:8px;padding-bottom:11px}
 .customer-service-card .customer-service-header h2{font-size:.94rem}
 .customer-service-card .customer-service-status .badge{font-size:.73rem;padding:5px 8px;gap:4px}
 .customer-service-card .customer-service-status .badge .ui-icon{width:14px;height:14px}
 .customer-service-card .customer-package-panel{margin-top:11px;min-height:94px;grid-template-columns:minmax(0,1fr) 88px;padding:12px;gap:7px}
 .customer-service-card .customer-package-symbol{width:39px;height:39px;border-radius:12px}
 .customer-service-card .customer-package-symbol>.ui-icon{width:23px;height:23px}
 .customer-service-card .customer-package-watermark{width:min(100%,87px)}
 .customer-service-card>.info-line{font-size:.79rem;padding-top:12px}
}

/* V2.19 — consistent collector workspace on phone and desktop.
   Scope presentation to the collector role; staff/customer/public stay unchanged. */
@media screen{
 .collector-mode .footer{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;text-align:center;line-height:1.6;padding:18px 8px 9px;margin:14px 0 6px}
 .collector-mode .footer>div{margin:0;text-align:center}
 .collector-mode .footer>div:last-child{font-size:.72rem;margin-top:3px;color:#607b8b}
 .collector-mode .customer-workspace-tabs,.collector-mode .billing-view-tabs{gap:8px;padding:9px;border-radius:13px;align-items:stretch;box-shadow:0 3px 12px #0b354606}
 .collector-mode .customer-workspace-tabs>.customer-tab,.collector-mode .billing-view-tabs>.customer-tab,.collector-mode .transaction-tabs>.transaction-new{position:relative;min-width:0;min-height:44px;padding:9px 12px;display:flex;align-items:center;justify-content:center;gap:7px;border:1px solid #087c80;border-radius:10px;color:#fff;background:#087c80;font-size:.81rem;font-weight:500;line-height:1.35;text-align:center;white-space:normal;margin:0;box-shadow:0 2px 5px #04565b12}
 .collector-mode .customer-workspace-tabs>.customer-tab>.ui-icon,.collector-mode .billing-view-tabs>.customer-tab>.ui-icon,.collector-mode .transaction-tabs>.transaction-new>.ui-icon{color:#fff;width:19px;height:19px;flex:none;stroke-width:1.7}
 .collector-mode .customer-workspace-tabs>.customer-tab>span:first-of-type,.collector-mode .billing-view-tabs>.customer-tab>span:first-of-type,.collector-mode .transaction-tabs>.transaction-new>span{min-width:0;overflow-wrap:normal;word-break:normal}
 .collector-mode .customer-workspace-tabs>.customer-tab.active,.collector-mode .billing-view-tabs>.customer-tab.active{background:#04565b;border-color:#04565b;box-shadow:inset 0 -3px 0 #90dbd2,0 2px 5px #04565b12}
 .collector-mode .customer-workspace-tabs>.customer-tab:hover,.collector-mode .billing-view-tabs>.customer-tab:hover,.collector-mode .transaction-tabs>.transaction-new:hover{background:#05666a;border-color:#05666a}
 .collector-mode .compact-customer-search{border-color:#c0d6dc;border-radius:10px}
 .collector-mode .compact-customer-search button{border:0;border-radius:0;border-left:1px solid #d7e4ea;color:var(--teal-dark);background:#eaf5f5}
 .collector-mode .compact-customer-search button:hover{background:#dcefee}
 .collector-mode .customer-notification{background:#b62940;color:white;border:1px solid #ffffff60}
 .collector-mode .collector-search-result{font-size:.8rem;color:var(--muted);display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:0 0 12px}
 .collector-mode .billing-metric strong{overflow-wrap:normal;word-break:normal}
}
@media screen and (max-width:790px){
 .collector-mode .main{padding-left:13px;padding-right:13px}
 .collector-mode .customer-workspace-tabs,.collector-mode .billing-view-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:7px;padding:8px;margin:0 0 14px;align-items:stretch}
 .collector-mode .transaction-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}
 .collector-mode .customer-workspace-tabs>.customer-tab,.collector-mode .billing-view-tabs>.customer-tab,.collector-mode .transaction-tabs>.transaction-new{width:100%;min-height:64px;flex-direction:column;justify-content:center;gap:5px;padding:9px 5px;font-size:.75rem;border-radius:9px}
 .collector-mode .transaction-tabs>.customer-tab,.collector-mode .transaction-tabs>.transaction-new{grid-column:auto;min-height:76px;font-size:.71rem;padding:8px 4px}
 .collector-mode .customer-workspace-tabs>.customer-tab>.ui-icon,.collector-mode .billing-view-tabs>.customer-tab>.ui-icon,.collector-mode .transaction-tabs>.transaction-new>.ui-icon{width:21px;height:21px}
 .collector-mode .customer-workspace-tabs .customer-notification{position:absolute;right:6px;top:6px;min-width:18px;height:18px;font-size:.63rem;padding:0 5px}
 .collector-mode .compact-customer-search{grid-column:1/-1;width:100%;max-width:none;min-width:0;margin:0;justify-self:stretch;align-self:stretch}
 .collector-mode .compact-customer-search input[type=search]{height:44px;min-height:44px;font-size:16px;padding:8px 11px}
 .collector-mode .compact-customer-search button{height:44px;min-height:44px;width:46px;min-width:46px;flex-basis:46px}
 .collector-mode .compact-customer-search button>.ui-icon{width:19px;height:19px}
 .collector-mode .billing-recap .billing-recap-grid{gap:8px}
 .collector-mode .billing-recap .billing-metric{container-type:inline-size;padding:10px;gap:5px}
 .collector-mode .billing-recap .billing-metric strong{font-size:.88rem;font-size:clamp(.75rem,10cqw,1rem);line-height:1.35}
 .collector-mode .billing-recap .billing-metric-label{font-size:.72rem;line-height:1.4}
 .collector-mode .billing-recap .billing-metric-icon{width:32px;height:32px;border-radius:9px}
 .collector-mode .billing-recap .billing-recap-note{font-size:.72rem}
 .collector-mode .customer-history-link{display:flex;justify-content:center}
 .collector-mode .customer-history-link>.btn{width:100%;min-height:43px}
 .collector-mode .customer-list-card .table-wrap td[data-label="Aksi"] .btn{min-height:42px}
 .collector-mode .staff-bill-list .table-wrap td,.collector-mode .collector-payment-history .table-wrap td{grid-template-columns:minmax(80px,34%) minmax(0,1fr);align-items:center;gap:8px}
 .collector-mode .staff-bill-list .table-wrap td>.cell-content,.collector-mode .collector-payment-history .table-wrap td>.cell-content{text-align:right;overflow-wrap:anywhere}
 .collector-mode .staff-bill-list .table-wrap td[data-label="Tindakan"]{grid-template-columns:1fr}
 .collector-mode .staff-bill-list .bill-row-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));min-width:0;gap:7px}
 .collector-mode .staff-bill-list .bill-row-actions .btn{width:100%;min-height:43px;white-space:normal;padding:7px 5px;font-size:.74rem}
 .collector-mode .collector-payment-history .table-wrap td[data-label="Aksi"] .btn{min-height:42px;margin:0}
}

/* V2.20 — one-step finance cashier dialog and icon-only receipt printing. */
dialog.cashier-dialog:has(#cashier-direct-form){width:600px}
#cashier-direct-form .field{margin-bottom:12px}
.cashier-invoices{border:1px solid var(--border);border-radius:12px;margin:0 0 12px;padding:9px 12px;min-width:0}
.cashier-invoices legend{font-size:.81rem;font-weight:500;color:var(--navy);padding:0 5px}
.cashier-empty{margin:4px 0;color:var(--muted);font-size:.8rem}
.cashier-bill.payment-list{gap:10px;padding:9px 0;border:0;border-bottom:1px solid #e5edf2;border-radius:0;margin:0;align-items:center;background:transparent}
.cashier-bill.payment-list:last-child{border-bottom:0}
.cashier-bill .grow{min-width:0}
.cashier-bill .grow small{display:block;font-size:.72rem}
.cashier-bill .cashier-pending{color:var(--amber)}
.cashier-bill-price{white-space:nowrap;font-size:.85rem;font-variant-numeric:tabular-nums}
.cashier-total{display:flex;justify-content:space-between;align-items:center;gap:9px;padding:13px 12px;background:#edf6f6;border:1px solid #d4e7e8;border-radius:10px;margin:0 0 14px}
.cashier-total>span{font-size:.82rem}
.cashier-total>strong{font-size:1.14rem;color:var(--teal-dark);white-space:nowrap;font-variant-numeric:tabular-nums}
.cashier-hint,.cashier-next-caption{font-size:.77rem;line-height:1.5;color:var(--muted);margin:8px 0}
.cashier-recorded{display:flex;align-items:center;gap:10px;padding:13px;border-radius:12px;background:#e9f7ef;border:1px solid #c6e8d5;color:#116445;margin-bottom:7px}
.cashier-recorded-icon{display:grid;place-items:center;width:37px;height:37px;flex:none;border-radius:10px;background:#d5efdf}
.cashier-recorded>div{min-width:0;flex:1;display:flex;flex-direction:column;gap:3px}
.cashier-recorded>div>strong{font-size:.84rem}
.cashier-recorded>div>small{font-size:.73rem;line-height:1.4}
.cashier-recorded>div>b{font-size:1.15rem;font-variant-numeric:tabular-nums}
.btn.receipt-print-icon{display:inline-flex;align-items:center;justify-content:center;min-width:40px;width:40px;min-height:40px;height:40px;flex:none;padding:0!important;border-radius:9px}
.btn.receipt-print-icon>.ui-icon{width:19px;height:19px}
@media(max-width:790px){
 .cashier-bill-price{font-size:.79rem}
 .cashier-recorded{padding:10px;gap:7px}
 .cashier-recorded-icon{width:30px;height:30px}
 .cashier-recorded-icon>.ui-icon{width:19px;height:19px}
 .cashier-total>strong{font-size:1.02rem}
 .btn.receipt-print-icon{min-width:44px;width:44px;min-height:44px;height:44px}
}
/* V2.20 reporting: status filter and alphabetic roster, independent of payment entry. */
.report-payment-tabs .customer-tab{white-space:normal}
.report-sort-note{display:flex;align-items:center;gap:6px}
.report-sort-note>.ui-icon{flex:none}
.report-customer-list td:first-child{font-variant-numeric:tabular-nums}
@media(max-width:650px){
 .report-payment-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 .report-payment-tabs .customer-tab{justify-content:center;text-align:center;min-height:44px;padding:8px}
}

/* V2.21 — one customer, one migration message. Keep the normal customer table unchanged. */
.migration-summary{display:flex;align-items:center;gap:14px;padding:15px;background:#f1f8f6;border:1px solid #cfe7df;border-radius:12px;margin-bottom:13px}
.migration-icon{display:grid;place-items:center;width:48px;height:48px;flex:none;border-radius:13px;background:#d9efe4;color:#08784e}
.migration-icon>.ui-icon{width:26px;height:26px}
.migration-summary>div{flex:1;min-width:0}
.migration-summary h3{font-size:1rem;font-weight:600;margin:0 0 5px;color:var(--navy)}
.migration-summary p{display:flex;align-items:center;flex-wrap:wrap;gap:6px;font-size:.9rem;font-weight:500;color:var(--teal-dark);margin:0 0 5px;overflow-wrap:anywhere}
.migration-summary p>.ui-icon{width:15px;height:15px;flex:none}
.migration-summary small{display:block;color:var(--muted);font-size:.77rem;line-height:1.5}
.migration-count{align-self:flex-start;background:#d9efe4;color:#116b48;border-radius:8px;padding:6px 9px;white-space:nowrap;font-size:.75rem}
.migration-note{display:flex;align-items:flex-start;gap:7px;font-size:.78rem;line-height:1.5;margin:0 0 15px}
.migration-note>.ui-icon{width:16px;height:16px;flex:none;margin-top:2px;color:var(--teal-dark)}
.btn.migration-wa-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:7px 10px;font-size:.78rem;font-weight:500;border:0;background:#0b714a;color:#fff;white-space:nowrap}
.btn.migration-wa-button:hover{background:#08613f}
.btn.migration-wa-button>.ui-icon{width:16px;height:16px;flex:none}
@media(max-width:790px){
 .migration-summary{flex-wrap:wrap;gap:10px;padding:12px}
 .migration-icon{width:40px;height:40px}
 .migration-icon>.ui-icon{width:24px;height:24px}
 .migration-summary>div{flex:1 1 calc(100% - 54px)}
 .migration-count{margin-left:50px}
 .btn.migration-wa-button{min-height:44px}
}

/* V2.22 — consistent customer footer on all authenticated customer routes. */
.customer-mode .footer{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;text-align:center;line-height:1.6;padding:18px 8px 9px;margin:14px 0 6px}
.customer-mode .footer>div{margin:0;text-align:center}
.customer-mode .footer>div:last-child{font-size:.72rem;margin-top:3px;color:#607b8b}

/* Single-customer entry: no auto-fit layout or orphaned fields. */
#customer-manual-dialog{width:860px}
#customer-manual-dialog .package-dialog-body{padding:20px 22px}
.manual-customer-form{display:flex;flex-direction:column;gap:12px}
.manual-customer-section{min-width:0;padding:16px 16px 13px;border:1px solid var(--border);background:#fff;border-radius:13px}
.manual-customer-section-heading{display:flex;gap:9px;align-items:center;margin:0 0 13px}
.manual-customer-section-icon{display:grid;place-items:center;flex:none;width:33px;height:33px;border-radius:9px;background:var(--tint);color:var(--teal-dark)}
.manual-customer-section-icon>.ui-icon{width:19px;height:19px}
.manual-customer-section-heading h3{margin:0;font-size:1rem;font-weight:500;color:var(--navy);line-height:1.4}
.manual-customer-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:start}
.manual-customer-grid>.field{margin:0;min-width:0}
.manual-customer-grid>.field>label{line-height:1.4;min-height:1.4em;white-space:normal}
.manual-customer-form .field input:not([type=hidden]),.manual-customer-form .field select,.manual-customer-form .saff-select-trigger{width:100%;min-width:0;min-height:44px}
.manual-customer-form .field .saff-select-trigger{font-size:.88rem;font-weight:400}
.manual-customer-form .field .saff-select-caption{white-space:normal;overflow-wrap:anywhere}
.manual-customer-help{display:block;margin-top:9px;color:var(--muted);font-size:.75rem;line-height:1.55}
.manual-customer-location>.field{margin-bottom:12px}
.manual-customer-location>.field textarea{min-height:82px}
.manual-customer-location .location-picker{margin:0;padding:13px}
.manual-customer-location .location-title{margin-bottom:8px}
.manual-customer-location .location-icon{width:36px;height:36px;border-radius:9px}
.manual-customer-location .location-icon>.ui-icon{width:20px;height:20px}
.manual-customer-location .location-status{margin:0 0 8px}
.manual-customer-location .location-privacy{font-size:.74rem;line-height:1.45}
.manual-customer-location .location-inputs{grid-template-columns:repeat(2,minmax(0,1fr))}
.manual-customer-location .location-inputs .field{margin-bottom:0}
.manual-customer-actions{padding-top:12px;margin-top:0;justify-content:center}
@media(max-width:790px){
 #customer-manual-dialog .package-dialog-body{padding:14px}
 .manual-customer-section{padding:12px}
 .manual-customer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
 .manual-customer-grid>.field:last-child{grid-column:1/-1}
 .manual-customer-form .field input:not([type=hidden]),.manual-customer-form .field select,.manual-customer-form .saff-select-trigger{font-size:16px}
 .manual-customer-actions{justify-content:center}
}
@media(max-width:540px){
 .manual-customer-grid,.manual-customer-location .location-inputs{grid-template-columns:minmax(0,1fr)}
 .manual-customer-grid>.field:last-child{grid-column:auto}
 .manual-customer-actions>button{flex:1;min-width:0}
}

/* V2.23 · work orders as perforated vouchers on every screen */
.wo-voucher-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:16px;align-items:stretch}
.wo-voucher-grid>.empty{grid-column:1/-1}
.wo-voucher{display:flex;flex-direction:column;border:1px solid #d4e4ea;border-radius:17px;background:#fff;min-width:0;overflow:visible;box-shadow:0 5px 14px #103c4d09}
.wo-voucher .wo-ticket-head{align-items:center;border-radius:16px 16px 0 0;padding:16px;background:linear-gradient(135deg,#e3f2f1,#f3f9fa);gap:10px}
.wo-ticket-symbol{display:grid;place-items:center;flex:0 0 40px;height:40px;background:#fff;color:#08747a;border-radius:11px}
.wo-ticket-symbol svg{width:23px;height:23px}
.wo-ticket-title{flex:1;min-width:0}
.wo-ticket-title h2{font-size:1.05rem;font-weight:600;overflow-wrap:anywhere}
.wo-voucher .wo-ticket-head .badge{max-width:42%;white-space:normal;font-weight:500}
.wo-voucher .wo-ticket-body{flex:1;padding:14px 16px}
.wo-ticket-date{display:flex;align-items:center;gap:6px;color:#5f7887}
.wo-ticket-date svg{width:15px;height:15px}
.wo-ticket-perforation{margin:0 10px;border-top:1px dashed #a9c8ce;position:relative}
.wo-ticket-perforation::before,.wo-ticket-perforation::after{content:"";position:absolute;top:-10px;width:19px;height:19px;background:#f1f5f7;border:1px solid #d4e4ea;border-radius:50%}
.wo-ticket-perforation::before{left:-20px;clip-path:inset(0 0 0 50%)}
.wo-ticket-perforation::after{right:-20px;clip-path:inset(0 50% 0 0)}
.wo-voucher .wo-ticket-actions{display:grid;gap:8px;padding:14px 16px 16px}
.wo-ticket-primary,.wo-ticket-notify{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.wo-ticket-primary>a,.wo-ticket-notify>.btn,.wo-ticket-notify>button{flex:1 1 auto;justify-content:center;white-space:normal;font-weight:500}
.wo-notify-member{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 0;border-bottom:1px solid #dbe7eb}
.wo-notify-member div{display:grid;gap:4px;min-width:0}
.wo-notify-member small{overflow-wrap:anywhere}
.customer-isolation-notice{display:flex;gap:12px;align-items:flex-start;margin:0 0 18px;padding:16px;border-radius:14px;border:1px solid #efc56b;background:#fff6e2;color:#805214}
.customer-isolation-icon{display:grid;place-items:center;flex:0 0 38px;height:38px;border-radius:10px;background:#ffebc1;color:#915600}
.customer-isolation-notice strong{font-weight:600;font-size:1.06rem}
.customer-isolation-notice p{margin:4px 0 6px;line-height:1.5}
.customer-isolation-notice small{color:#815e37}
@media(max-width:600px){.wo-voucher-grid{grid-template-columns:1fr;gap:14px}.wo-ticket-notify>.btn,.wo-ticket-notify>button{flex:1 1 130px;min-height:40px}.wo-voucher .wo-ticket-head{padding:13px}.wo-voucher .wo-ticket-head .badge{font-size:.77rem}.wo-ticket-symbol{flex-basis:35px;height:35px}.customer-isolation-notice{padding:13px;gap:10px}}

/* V2.24 · compact manual server grouping and filtered reports */
.server-filter-form{display:flex;align-items:center;gap:5px;flex:0 1 auto;margin:0}
.server-filter-form select{width:auto;max-width:175px;min-height:38px;padding:6px 28px 6px 10px;font-size:.88rem}
.server-filter-form button{min-width:36px;min-height:38px;padding:6px;justify-content:center}
.server-list-toolbar{margin-bottom:12px}
.server-report-groups{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.server-report-chip{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border:1px solid #c6dce1;border-radius:10px;background:#fff;color:var(--teal-dark);text-decoration:none;font-size:.88rem}
.server-report-chip b{padding:3px 8px;border-radius:20px;background:#e6f3f2;font-weight:600;white-space:nowrap}
.server-report-chip svg{width:17px;height:17px}
.server-report-chip:hover{background:#eff8f8}
@media(max-width:600px){.server-filter-form{flex:1 1 100%}.server-filter-form select{max-width:none;flex:1;width:100%}.server-report-chip{flex:1 1 135px}.server-report-chip b{margin-left:auto}}

/* V2.25 · checkboxes and a compact selection toolbar */
.customer-bulk-toolbar{position:relative;margin:0 0 12px;padding:6px 10px;border:1px solid var(--border);border-radius:10px;background:#f8fbfc}
.customer-bulk-toolbar.is-selecting{position:sticky;top:calc(var(--header-height) + 8px);z-index:12;border-color:#9bcfd0;background:#f1fafa;box-shadow:0 4px 14px #092d4917}
.bulk-select-top,.bulk-action-buttons{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px}
.bulk-select-top{min-height:36px}
.bulk-select-top .check{margin:0;padding:3px 0;min-height:32px;font-size:.85rem;white-space:nowrap}
.bulk-select-top [data-bulk-count]{font-size:.82rem;white-space:nowrap}
.bulk-clear{margin-left:auto}
.customer-bulk-toolbar form{margin:4px 0 2px}
.bulk-action-buttons{gap:7px}
.bulk-action-buttons button,.bulk-clear{min-height:34px;font-size:.81rem;padding:6px 10px;gap:6px}
.bulk-action-buttons .ui-icon,.bulk-clear .ui-icon{width:16px;height:16px}
.customer-bulk-toolbar form small{display:block;margin:6px 0 0;font-size:.76rem}
.customer-bulk-toolbar [hidden]{display:none!important}
.customer-bulk-toolbar [data-bulk-limit]{margin:6px 0}
.customer-list-card .table-wrap td[data-label="Pilih"]{width:44px;text-align:center;padding-left:7px;padding-right:7px}
.bulk-row-label{display:inline-flex;align-items:center;justify-content:center;min-width:34px;min-height:34px;cursor:pointer}
.bulk-row-label input,.bulk-select-all input{margin:0;cursor:pointer}
@media(max-width:790px){.customer-list-card .table-wrap td[data-label="Pilih"]{width:auto;text-align:right;padding:2px 0}}
.customer-list-card .table-wrap tbody tr.bulk-selected-row{background:#edf9f8!important}
@media(max-width:600px){
 .customer-bulk-toolbar{padding:6px 8px}
 .customer-bulk-toolbar.is-selecting{top:calc(var(--header-height) + 4px)}
 .bulk-select-top{gap:5px 8px}
 .bulk-select-top .check{font-size:.79rem}
 .bulk-select-top [data-bulk-count]{font-size:.77rem}
 .bulk-clear{min-height:32px;padding:4px 7px}
 .bulk-action-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
 .bulk-action-buttons button{justify-content:center;min-height:39px;white-space:normal;text-align:center}
 .customer-list-card .table-wrap td[data-label="Pilih"]{width:auto;padding:2px 0;text-align:right}
 .customer-list-card .table-wrap td[data-label="Pilih"] .cell-content{text-align:right}
 .customer-list-card .table-wrap tr.bulk-selected-row{border-color:#91cfd0}
}

/* 2.26: Explicit account switching and payment handoff. */
.topbar-account{display:flex;align-items:center;gap:10px;min-width:0}
.account-switch{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:8px 11px;border:1px solid var(--border);border-radius:9px;color:var(--teal-dark);font-size:.82rem;white-space:nowrap;background:var(--paper)}
.account-switch:hover{background:var(--tint)}
.account-switch .ui-icon{width:17px;height:17px}
.payment-step{margin:20px 0 8px;font-size:1.05rem;font-weight:600;color:var(--navy)}
.payment-flow-card{max-width:840px;margin-inline:auto}
.transfer-accounts{background:var(--tint);border:1px solid var(--border);border-radius:12px;padding:12px 16px;margin-bottom:18px}
.transfer-accounts section[hidden],#proof-preview[hidden]{display:none!important}
.proof-upload-feedback{display:flex;flex-direction:column;align-items:center;text-align:center;padding:12px;border-radius:12px;background:#f5f9f9;overflow-wrap:anywhere}
.proof-upload-feedback p{margin:7px 0}
#proof-preview{max-width:100%;max-height:240px;object-fit:contain;border-radius:8px}
.payment-pending-label{color:#89530b!important}
.transfer-review-detail .proof-image{margin-inline:auto}
.transfer-review-detail .center-actions{flex-wrap:wrap}
@media(max-width:720px){
 .topbar-account{gap:6px}
 .topbar-account .user-tag{max-width:36vw}
 .topbar-account .user-meta{max-width:25vw}
 .account-switch{padding:8px}
 .account-switch{font-size:.72rem;gap:4px;white-space:normal;text-align:center;line-height:1.1}
 .account-switch span{max-width:40px;display:inline-block}
 .app-mode .topbar .logo{max-width:31vw}
 .payment-flow-card{width:100%}
 .proof-photo-options{grid-template-columns:repeat(2,minmax(0,1fr))}
 .proof-photo-choice{min-height:116px;padding:9px}
 .proof-photo-choice strong{font-size:.87rem}
}

/* V2.27: one finance workspace, one tab strip, compact filters. */
.transaction-filter-row{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:0 0 18px}
.transaction-filter-bar{display:flex;align-items:flex-end;flex-wrap:wrap;gap:8px;min-width:0;margin:0}
.transaction-filter-bar .field{min-width:185px;max-width:300px;margin:0}
.transaction-filter-bar .field>label{font-size:.78rem;margin-bottom:4px}
.transaction-filter-bar .field select,.transaction-filter-bar .transaction-search input{height:40px;min-height:40px;font-size:.82rem;padding:7px 10px}
.transaction-filter-bar .transaction-search{min-width:180px;max-width:230px;flex:1}
.transaction-filter-bar .transaction-search input{width:100%}
.transaction-filter-bar>.btn,.transaction-filter-bar>button{min-height:40px;margin:0}
.transaction-tabs .customer-tab{position:relative}
@media(max-width:720px){
 .transaction-filter-row{align-items:stretch}
 .transaction-filter-bar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px;width:100%}
 .transaction-filter-bar .field{grid-column:1/-1;width:100%;min-width:0;max-width:none}
 .transaction-filter-bar .transaction-search{width:100%;min-width:0;max-width:none}
 .transaction-filter-bar .transaction-search input{font-size:16px;min-height:44px}
 .transaction-filter-bar>button,.transaction-filter-bar>.btn{min-height:44px}
 .collector-mode .transaction-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}
 .collector-mode .transaction-tabs>.customer-tab,.collector-mode .transaction-tabs>.transaction-new{min-height:54px;flex-direction:row;gap:6px;font-size:.77rem}
}
.cashier-service-state{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:6px}
.cashier-service-state .badge{white-space:nowrap}
