/* ══════════════ MOBILE VERSION CSS (<= 768px) ══════════════ */

/* 1. Professional Two-Tier Mobile App Header */
.bk-app-header { width: 100%; margin: 0; padding: 0 0 46px; border-radius: 0 0 22px 22px; border: none; border-bottom: 1.5px solid var(--brand-border); overflow: hidden; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 190' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='mhBeam' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%2334d399' stop-opacity='.28'/%3E%3Cstop offset='55%25' stop-color='%2314b8a6' stop-opacity='.16'/%3E%3Cstop offset='100%25' stop-color='%2338bdf8' stop-opacity='.34'/%3E%3C/linearGradient%3E%3Cpattern id='mhDots' width='16' height='16' patternUnits='userSpaceOnUse'%3E%3Ccircle cx='8' cy='8' r='1.2' fill='%230d9488' fill-opacity='.26'/%3E%3C/pattern%3E%3C/defs%3E%3Cpath d='M168 0H360V190H112C138 118 154 56 168 0Z' fill='url(%23mhBeam)'/%3E%3Cpath d='M232 0H360V190H192C210 120 222 58 232 0Z' fill='url(%23mhDots)' opacity='.75'/%3E%3Cg fill='none' stroke-linecap='round'%3E%3Cpath d='M0 148C95 118 188 176 286 138 322 124 345 132 360 124' stroke='%230d9488' stroke-opacity='.3' stroke-width='1.6'/%3E%3Cpath d='M0 164C102 134 194 188 292 152 326 140 347 146 360 138' stroke='%230284c7' stroke-opacity='.32' stroke-width='1.4' stroke-dasharray='4 6'/%3E%3Ccircle cx='324' cy='38' r='40' stroke='%230d9488' stroke-opacity='.24' stroke-width='1.4'/%3E%3Ccircle cx='324' cy='38' r='64' stroke='%2310b981' stroke-opacity='.26' stroke-width='1.2' stroke-dasharray='4 6'/%3E%3Ccircle cx='42' cy='154' r='32' stroke='%230d9488' stroke-opacity='.22' stroke-width='1.4'/%3E%3C/g%3E%3C/svg%3E") center center / 100% 100% no-repeat, var(--brand-grad); box-shadow: 0 14px 32px -14px rgba(5, 150, 105, 0.22); }
body.theme-sewing .bk-app-header { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 190' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='mhBeamB' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%2360a5fa' stop-opacity='.28'/%3E%3Cstop offset='55%25' stop-color='%233b82f6' stop-opacity='.16'/%3E%3Cstop offset='100%25' stop-color='%2338bdf8' stop-opacity='.34'/%3E%3C/linearGradient%3E%3Cpattern id='mhDotsB' width='16' height='16' patternUnits='userSpaceOnUse'%3E%3Ccircle cx='8' cy='8' r='1.2' fill='%232563eb' fill-opacity='.26'/%3E%3C/pattern%3E%3C/defs%3E%3Cpath d='M168 0H360V190H112C138 118 154 56 168 0Z' fill='url(%23mhBeamB)'/%3E%3Cpath d='M232 0H360V190H192C210 120 222 58 232 0Z' fill='url(%23mhDotsB)' opacity='.75'/%3E%3Cg fill='none' stroke-linecap='round'%3E%3Cpath d='M0 148C95 118 188 176 286 138 322 124 345 132 360 124' stroke='%232563eb' stroke-opacity='.3' stroke-width='1.6'/%3E%3Cpath d='M0 164C102 134 194 188 292 152 326 140 347 146 360 138' stroke='%230284c7' stroke-opacity='.32' stroke-width='1.4' stroke-dasharray='4 6'/%3E%3Ccircle cx='324' cy='38' r='40' stroke='%232563eb' stroke-opacity='.24' stroke-width='1.4'/%3E%3Ccircle cx='324' cy='38' r='64' stroke='%2360a5fa' stroke-opacity='.26' stroke-width='1.2' stroke-dasharray='4 6'/%3E%3Ccircle cx='42' cy='154' r='32' stroke='%232563eb' stroke-opacity='.22' stroke-width='1.4'/%3E%3C/g%3E%3C/svg%3E") center center / 100% 100% no-repeat, var(--brand-grad); box-shadow: 0 14px 32px -14px rgba(37, 99, 235, 0.22); }
.bk-header-vector { display: none; }
.bk-header-inner { display: flex; flex-direction: column; align-items: stretch; gap: 0; }

.bk-header-top { order: 1; width: calc(100% - 28px); margin: 0 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: nowrap; padding: calc(11px + env(safe-area-inset-top)) 0 10px; background: transparent; border-bottom: 1.5px dotted rgba(15, 23, 42, 0.18); border-radius: 0; box-shadow: none; }
body.theme-sewing .bk-header-top { box-shadow: none; }
.bk-brand-pill { order: 1; flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.bk-comp-title-line, .bk-verified-pill, .bk-tagline-chip { display: none; }
.bk-comp-meta { display: block; width: 100%; min-width: 0; }
.bk-comp-meta small { display: block; margin-top: 0; font-size: 8.4px; font-weight: 600; letter-spacing: -0.1px; color: #0f172a; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-comp-logo { width: auto; max-width: 170px; height: 34px; padding: 0; border-radius: 0; background: transparent; border: none; justify-content: flex-start; font-size: 19px; box-shadow: none; }
.bk-comp-logo img { max-height: 34px; max-width: 170px; width: auto; height: auto; object-fit: contain; filter: none; }
.bk-header-actions { order: 2; flex-shrink: 0; gap: 6px; align-self: center; margin-top: -4px; }
.btn-install-app { width: 29px; height: 29px; padding: 0; border-radius: 50%; background: var(--brand-soft); border: 1px solid var(--brand-border); color: var(--brand-dark); font-size: 11.5px; box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08); }
.btn-install-app span, .btn-logout span { display: none; }
.btn-logout { width: 29px; height: 29px; padding: 0; border-radius: 50%; background: #fff1f2; border: 1px solid #fecdd3; color: #e11d48; font-size: 12px; box-shadow: 0 2px 6px rgba(225, 29, 72, 0.12); }
.bk-user-hero { order: 2; width: 100%; min-width: 0; display: grid; grid-template-columns: 58px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 13px; row-gap: 6px; align-items: center; padding: 14px 15px 0; }
.bk-user-left { display: contents; }
.bk-avatar-ring { grid-column: 1; grid-row: 1 / span 2; align-self: center; width: 58px; height: 58px; padding: 2.5px; background: linear-gradient(135deg, var(--brand) 0%, #38bdf8 100%); box-shadow: 0 6px 16px rgba(15, 23, 42, 0.14); }
.bk-avatar-box { font-size: 20px; }
.bk-user-info { grid-column: 2; grid-row: 1; min-width: 0; align-self: end; }
.bk-name-row { flex-wrap: nowrap; align-items: center; gap: 6px; }
.bk-name-row h1 { font-size: 15.5px; font-weight: 800; color: #0f172a; letter-spacing: -0.1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: none; }
.bk-name-row .bk-badge, .bk-sub-meta { display: none; }

.bk-balance-wrap { grid-column: 2; grid-row: 2; width: auto; justify-self: start; max-width: 100%; }
.bk-tap-pill { width: auto; min-width: 0; max-width: 100%; height: 24px; padding: 2px 11px 2px 3.5px; gap: 5px; font-size: 10px; font-weight: 800; background: #ffffff; color: var(--brand-dark); border: 1.5px solid var(--brand-border); box-shadow: 0 6px 16px -6px rgba(5, 150, 105, 0.22); }
body.theme-sewing .bk-tap-pill { box-shadow: 0 6px 16px -6px rgba(37, 99, 235, 0.22); }
.bk-taka-circle { width: 17px; height: 17px; font-size: 10.5px; }
.bk-tap-text { overflow: hidden; text-overflow: ellipsis; }

/* 2. Main Body, Quick Services & Cards */
.bk-main { padding: 0 11px calc(74px + env(safe-area-inset-bottom)); margin-top: -20px; }
.bk-card { padding: 14px; border-radius: 18px; }
.bk-actions-card { padding: 13px 12px 12px; box-shadow: 0 10px 26px -10px rgba(15, 23, 42, 0.14); }
.bk-actions-card .bk-section-head { flex-direction: column; align-items: flex-start; gap: 2px; margin-bottom: 11px; }
.bk-actions-card .bk-section-head strong { font-size: 13.5px; line-height: 1.25; gap: 7px; }
.bk-actions-card .bk-section-head strong i { width: 15px; text-align: center; flex-shrink: 0; }
.bk-actions-card .bk-section-head small { font-size: 10.8px; line-height: 1.25; display: block; padding-left: 22px; }

.bk-qa-grid.bk-qa-8 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.bk-qa-item { padding: 6px 2px; border-radius: 11px; gap: 3px; }
.qa-icon { width: 38px; height: 38px; border-radius: 12px; font-size: 15px; margin-bottom: 1px; }
.qa-badge { min-width: 17px; height: 17px; font-size: 9.5px; top: -4px; right: -5px; padding: 0 4px; }
.bk-qa-item b { font-size: 10.5px; }
.bk-qa-item small { font-size: 9px; }

/* Account Financial Overview (Compact Mobile) */
.hd-overview-card { padding: 12px; }
.hd-ov-top { gap: 8px; margin-bottom: 9px; }
.hd-ov-top strong { font-size: 12.2px; line-height: 1.25; gap: 6px; }
.hd-ov-top strong i { width: 14px; text-align: center; flex-shrink: 0; }
.hd-ov-top small { font-size: 10.2px; line-height: 1.25; padding-left: 20px; margin-top: 2px; }
.hd-overview-card .hd-link-btn, .hd-overview-card .hd-progress-pill { height: 26px; padding: 0 10px; font-size: 11px; border-radius: 7px; }
.hd-progress-track { height: 7px; margin-bottom: 11px; }

.hd-metrics-row, .pay-hist-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.hd-metric-box { padding: 9px 10px; border-radius: 12px; }
.hd-metric-box span { font-size: 8.8px; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-metric-box strong { font-size: 13.5px; line-height: 1.25; margin-top: 3px; white-space: nowrap; }
.hd-metric-box small { font-size: 9.5px; margin-top: 2px; }

/* Recent Invoices & Account Summary (Compact Mobile) */
.hd-split-grid { gap: 12px; }
.hd-split-grid .bk-card { padding: 12px; }
.hd-split-grid .bk-section-head { flex-wrap: nowrap; gap: 6px; margin-bottom: 10px; }
.hd-split-grid .bk-section-head strong { font-size: 12.2px; gap: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.hd-split-grid .bk-section-head .hd-link-btn { height: 25px; padding: 0 9px; font-size: 10.8px; border-radius: 7px; flex-shrink: 0; }

.hd-recent-list { gap: 7px; }
.hd-recent-row { padding: 9px 10px; border-radius: 12px; gap: 8px; }
.hd-rec-left { gap: 8px; min-width: 0; flex: 1; }
.hd-rec-ico { width: 32px; height: 32px; border-radius: 9px; font-size: 13px; }
.hd-rec-left strong { font-size: 12.4px; line-height: 1.25; }
.hd-rec-left small { font-size: 10px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-rec-right { flex-shrink: 0; }
.hd-rec-right strong { font-size: 12.8px; line-height: 1.25; margin-bottom: 2px; white-space: nowrap; }
.hd-rec-right .badge-pay-status { font-size: 9.2px; padding: 2px 7px; border-radius: 5px; }

.hd-insights-list { gap: 6px; }
.hd-insight-row { padding: 8px 10px; border-radius: 10px; font-size: 11.2px; gap: 8px; }
.hd-insight-row span { gap: 6px; white-space: nowrap; flex-shrink: 0; }
.hd-insight-row b { font-size: 11.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 3. Subpage Bar, Toolbars, Date Filters & Store Slider */
.bk-view-panel { gap: 11px; }
.bk-view-panel > .bk-card { padding: 12px; border-radius: 16px; }
.bk-subpage-bar { padding: 12px 13px; gap: 9px; }
.subpage-left h2 { font-size: 14.5px; line-height: 1.25; }
.subpage-left small { font-size: 10.8px; line-height: 1.3; margin-top: 2px; }
.bk-subpage-bar .btn-submit-pay-hero, .bk-subpage-bar .btn-export-pdf-hero, .bk-subpage-bar .bk-count-pill { height: 29px; padding: 0 11px; font-size: 11px; border-radius: 8px; }
.bk-toolbar-row { gap: 8px; margin-bottom: 10px; padding-bottom: 10px; }
.bk-tabs { width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 5px; padding-bottom: 1px; }
.bk-tabs::-webkit-scrollbar { display: none; }
.bk-tab { height: 28px; padding: 0 11px; font-size: 11.2px; border-radius: 8px; flex-shrink: 0; }
.bk-toolbar-right { width: 100%; gap: 7px; }
.bk-date-filter-group { width: 100%; gap: 5px; }
.bk-date-chip { flex: 1; min-width: 0; height: 30px; padding: 0 8px; }
.bk-date-input { width: 100%; font-size: 11px; }
.btn-date-clear { width: 28px; height: 30px; font-size: 11px; }
.digital-calendar-popup { width: min(214px, calc(100vw - 24px)); padding: 7px; border-radius: 11px; }
.digital-calendar-popup .cal-header { gap: 4px; margin-bottom: 5px; }
.digital-calendar-popup .cal-nav-btn { width: 21px; height: 21px; font-size: 9px; border-radius: 5px; }
.cal-custom-picker-btn { height: 21px; padding: 0 6px; font-size: 10px; border-radius: 5px; gap: 3px; }
.cal-custom-picker-menu { min-width: 92px; }
.cal-pop-drop-item { padding: 4px 7px; font-size: 10px; }
.digital-calendar-popup .cal-weekdays { font-size: 9px; padding-bottom: 3px; margin-bottom: 3px; }
.digital-calendar-popup .cal-days-grid { gap: 1.5px; }
.digital-calendar-popup .cal-day-cell { height: 21px; font-size: 9.8px; border-radius: 5px; }
.cal-holiday-dot { bottom: 1.5px; width: 3px; height: 3px; }
.digital-calendar-popup .cal-footer { margin-top: 5px; padding-top: 5px; }
.cal-holiday-info-box { font-size: 8.6px; padding: 2.5px 5px; min-height: 17px; gap: 4px; border-radius: 5px; }
.cal-today-btn, .cal-close-btn { height: 20px; padding: 0 7px; font-size: 9.5px; border-radius: 5px; gap: 3px; }
.bk-search-box { width: 100%; height: 32px; padding: 0 10px; }
.bk-search-box input { font-size: 11.5px; }
#view-invoices .bk-toolbar-row { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 7px; row-gap: 8px; align-items: center; }
#view-invoices .bk-tabs { width: auto; grid-column: 1; grid-row: 1; overflow: visible; padding-bottom: 0; gap: 4px; }
#view-invoices .bk-tab { height: 30px; padding: 0 9px; font-size: 11px; }
#view-invoices .bk-toolbar-right { display: contents; }
#view-invoices .bk-search-box { grid-column: 2; grid-row: 1; width: 100%; min-width: 0; height: 30px; padding: 0 9px; gap: 6px; }
#view-invoices .bk-search-box input { font-size: 11px; }
#view-invoices .bk-date-filter-group { grid-column: 1 / -1; grid-row: 2; width: 100%; }

/* Featured Store Collection (Compact Mobile) */
.bk-promo-card { padding: 12px; }
.bk-promo-head { flex-wrap: nowrap; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.bk-promo-title { flex: 1; min-width: 0; }
.bk-promo-title strong { font-size: 12.2px; line-height: 1.25; gap: 5px; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-promo-title strong i { width: 14px; text-align: center; flex-shrink: 0; }
.promo-bn-sub, .promo-desk-only { display: none; }
.promo-mob-only { display: inline; }
.bk-promo-title small { font-size: 9.8px; line-height: 1.25; padding-left: 19px; margin-top: 2px; }

.bk-promo-controls { width: auto; flex-shrink: 0; }
#wp-store-tabs, .bk-promo-arrows { display: none; }
.bk-promo-controls .hd-link-btn { height: 25px; padding: 0 9px; font-size: 10.5px; border-radius: 7px; gap: 4px; white-space: nowrap; }

.bk-promo-track { gap: 8px; padding: 2px 0 4px; }
.bk-prod-card { flex: 0 0 calc((100% - 8px) / 2); border-radius: 13px; }
.bk-prod-tag { font-size: 8.5px; padding: 2px 6px; top: 6px; left: 6px; }
.bk-prod-body { padding: 8px 9px 9px; gap: 3px; }
.bk-prod-cat { font-size: 9px; }
.bk-prod-name { font-size: 11.2px; line-height: 1.3; min-height: 29px; }
.bk-prod-foot { padding-top: 5px; }
.bk-prod-price b { font-size: 12.2px; }
.bk-prod-price del { font-size: 9.5px; }
.btn-prod-order { padding: 3px 8px; font-size: 10px; border-radius: 6px; }

/* 4. Mobile App Card-Style Tables & Pagination */
.bk-view-panel table.bk-table thead { display: none; }
.bk-view-panel table.bk-table, .bk-view-panel table.bk-table tbody, .bk-view-panel table.bk-table tr, .bk-view-panel table.bk-table td { display: block; width: 100%; }
.bk-view-panel table.bk-table tr { background: #ffffff; border: 1.2px solid var(--border); border-radius: 14px; padding: 11px; margin-bottom: 9px; box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04); }
.bk-view-panel table.bk-table td { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px dashed #f1f5f9; text-align: right !important; }
.bk-view-panel table.bk-table td::before { content: attr(data-label); font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.bk-view-panel table.bk-table td:last-child { border-bottom: none; padding-top: 7px; padding-bottom: 0; }
.bk-view-panel table.bk-table td:last-child::before { display: none; }
.bk-view-panel table.bk-table td:last-child .btn-view-inv { width: 100%; height: 34px; justify-content: center; padding: 0 12px; font-size: 12px; border-radius: 9px; background: var(--brand-soft); color: var(--brand-dark); border-color: var(--brand-border); }
.inv-act-group { display: flex; align-items: center; gap: 5px; width: 100%; }
.bk-view-panel table.bk-table td:last-child .inv-act-group .btn-view-inv { flex: 1; width: auto; height: 28px; padding: 0 7px; font-size: 10.5px; border-radius: 7px; gap: 4px; }
.bk-view-panel table.bk-table td:last-child .inv-act-group .btn-view-inv.is-view { flex: 1.35; background: var(--brand-soft); color: var(--brand-dark); border-color: var(--brand-border); }
.bk-view-panel table.bk-table td:last-child .inv-act-group .btn-view-inv.is-jpg { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.bk-view-panel table.bk-table td:last-child .inv-act-group .btn-view-inv.is-pdf { background: #fff1f2; color: #be123c; border-color: #fecdd3; }
.bk-view-panel table.bk-table td:last-child .inv-act-group .btn-view-inv.is-jpg span, .bk-view-panel table.bk-table td:last-child .inv-act-group .btn-view-inv.is-pdf span { display: inline; }

#p-inv-tbody tr:has(> td[data-label]) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 6px; row-gap: 7px; }
#p-inv-tbody tr:has(> td[data-label]) td:nth-child(3) { grid-column: 1 / 3; grid-row: 1; justify-content: flex-start; padding: 0; border: none; font-size: 13.5px; color: #0f172a; text-align: left !important; }
#p-inv-tbody tr:has(> td[data-label]) td:nth-child(7) { grid-column: 3; grid-row: 1; justify-content: flex-end; padding: 0; border: none; }
#p-inv-tbody tr:has(> td[data-label]) td:nth-child(1) { grid-column: 1; grid-row: 2; justify-content: flex-start; gap: 0; margin-right: -6px; padding: 0 6px 6px 0; border-bottom: 1px dashed #e2e8f0; font-size: 10.5px; font-weight: 700; color: var(--muted); text-align: left !important; }
#p-inv-tbody tr:has(> td[data-label]) td:nth-child(1)::before { content: "SL-"; font-size: 10.5px; color: inherit; }
#p-inv-tbody tr:has(> td[data-label]) td:nth-child(2) { grid-column: 2 / 4; grid-row: 2; justify-content: flex-end; padding: 0 0 6px; border-bottom: 1px dashed #e2e8f0; font-size: 10.5px; font-weight: 600; color: #64748b; text-align: right !important; }
#p-inv-tbody tr:has(> td[data-label]) td:nth-child(2) span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
#p-inv-tbody tr:has(> td[data-label]) td:nth-child(2) small { display: inline !important; font-size: inherit !important; color: inherit !important; }
#p-inv-tbody tr:has(> td[data-label]) td:nth-child(3)::before, #p-inv-tbody tr:has(> td[data-label]) td:nth-child(2)::before, #p-inv-tbody tr:has(> td[data-label]) td:nth-child(7)::before { display: none; }
#p-inv-tbody tr:has(> td[data-label]) td:nth-child(4), #p-inv-tbody tr:has(> td[data-label]) td:nth-child(5), #p-inv-tbody tr:has(> td[data-label]) td:nth-child(6) { grid-row: 3; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding: 6px 7px; border: 1px solid #e2e8f0; border-radius: 9px; background: #f8fafc; font-size: 11px; white-space: nowrap; text-align: left !important; }
#p-inv-tbody tr:has(> td[data-label]) td:nth-child(4)::before, #p-inv-tbody tr:has(> td[data-label]) td:nth-child(5)::before, #p-inv-tbody tr:has(> td[data-label]) td:nth-child(6)::before { font-size: 8.5px; letter-spacing: 0.2px; }
#p-inv-tbody tr:has(> td[data-label]) td:nth-child(8) { grid-column: 1 / -1; grid-row: 4; display: block; padding: 1px 0 0; }

#view-payments { gap: 8px; }
#view-payments .bk-subpage-bar { padding: 10px 11px; gap: 7px; border-radius: 14px; }
#view-payments .subpage-left h2 { font-size: 12.8px; line-height: 1.2; }
#view-payments .subpage-left small { font-size: 9.5px; line-height: 1.3; margin-top: 2px; }
#view-payments .bk-subpage-bar > div:last-child { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 6px !important; }
#view-payments .bk-subpage-bar .btn-submit-pay-hero { flex: 1; height: 26px; padding: 0 10px; font-size: 10.5px; border-radius: 7px; }
#view-payments .bk-subpage-bar .bk-count-pill { height: 26px; padding: 0 10px; font-size: 10.2px; border-radius: 7px; }
#view-payments > .bk-card:last-child { padding: 10px; border-radius: 14px; }
#view-payments .bk-toolbar-row { gap: 6px; margin-bottom: 8px; padding-bottom: 8px; }
#view-payments #pay-filter-tabs { width: 100%; display: flex; justify-content: space-between; gap: 4px; overflow: visible; padding-bottom: 0; }
#view-payments #pay-filter-tabs .bk-tab { flex: 1; height: 25px; padding: 0 4px; font-size: 9.6px; border-radius: 6px; justify-content: center; white-space: nowrap; }
#view-payments #pay-filter-tabs .bk-tab:first-child { flex: 0.52; }
#view-payments #pay-filter-tabs .bk-tab[data-pfilter="REGULAR"] { flex: 1.32; }
#view-payments .bk-toolbar-right { gap: 5px; }
#view-payments .bk-date-chip { height: 26px; padding: 0 7px; border-radius: 6px; gap: 4px; }
#view-payments .bk-date-input { font-size: 10px; }
#view-payments .btn-date-clear { width: 26px; height: 26px; border-radius: 6px; font-size: 10.5px; }
#view-payments .bk-search-box { height: 28px; padding: 0 9px; border-radius: 7px; }
#view-payments .bk-search-box input { font-size: 10.8px; }
#p-pay-tbody tr:has(> td[data-label]) { display: grid; grid-template-columns: auto 1fr auto; column-gap: 6px; row-gap: 4px; padding: 9px 10px; margin-bottom: 7px; border-radius: 12px; }
#p-pay-tbody tr:has(> td[data-label]) td:nth-child(3) { grid-column: 1 / 3; grid-row: 1; justify-content: flex-start; padding: 0; border: none; text-align: left !important; }
#p-pay-tbody tr:has(> td[data-label]) td:nth-child(4) { grid-column: 3; grid-row: 1; justify-content: flex-end; padding: 0; border: none; }
#p-pay-tbody tr:has(> td[data-label]) td:nth-child(1) { grid-column: 1; grid-row: 2; justify-content: flex-start; gap: 0; margin-right: -6px; padding: 0 6px 4px 0; border-bottom: 1px dashed #e2e8f0; font-size: 9.8px; font-weight: 700; color: var(--muted); }
#p-pay-tbody tr:has(> td[data-label]) td:nth-child(1)::before { content: "SL-"; font-size: 9.8px; color: inherit; }
#p-pay-tbody tr:has(> td[data-label]) td:nth-child(2) { grid-column: 2; grid-row: 2; justify-content: flex-start; padding: 0 0 4px; border-bottom: 1px dashed #e2e8f0; font-size: 9.8px; color: #64748b; text-align: left !important; }
#p-pay-tbody tr:has(> td[data-label]) td:nth-child(6) { grid-column: 3; grid-row: 2; justify-content: flex-end; gap: 4px; padding: 0 0 4px; border-bottom: 1px dashed #e2e8f0; font-size: 10px; }
#p-pay-tbody tr:has(> td[data-label]) td:nth-child(6)::before { content: "Memo:"; font-size: 9px; }
#p-pay-tbody tr:has(> td[data-label]) td:nth-child(2)::before, #p-pay-tbody tr:has(> td[data-label]) td:nth-child(3)::before, #p-pay-tbody tr:has(> td[data-label]) td:nth-child(4)::before { display: none; }
#p-pay-tbody tr:has(> td[data-label]) td:nth-child(3) .pay-stack { align-items: flex-start; text-align: left; gap: 1px; }
#p-pay-tbody tr:has(> td[data-label]) td:nth-child(4) .pay-stack { align-items: flex-end; text-align: right; gap: 1px; }
#p-pay-tbody .pay-stack-main { font-size: 12px; }
#p-pay-tbody .pay-stack-sub { font-size: 9.8px; }
#p-pay-tbody .badge-pay-status { font-size: 8.6px; padding: 1.5px 6px; border-radius: 5px; }
#p-pay-tbody tr:has(> td[data-label]) td:nth-child(5) { grid-column: 1 / 3; grid-row: 3; flex-direction: column; align-items: flex-start; gap: 1px; padding: 2px 0 0; border: none; font-size: 12.2px; text-align: left !important; }
#p-pay-tbody tr:has(> td[data-label]) td:nth-child(5)::before { font-size: 8px; }
#p-pay-tbody tr:has(> td[data-label]) td:nth-child(7) { grid-column: 3; grid-row: 3; justify-content: flex-end; padding: 2px 0 0; border: none; }
.pay-stack { align-items: flex-end; text-align: right; }
.pay-act-1line { flex-direction: row; width: auto; justify-content: flex-end; gap: 4px; }
.bk-view-panel table.bk-table td:last-child .pay-act-1line .btn-view-inv, .bk-view-panel table.bk-table td:last-child .pay-act-1line:has(> :nth-child(2)) .btn-view-inv { width: auto; height: 25px; font-size: 10px; padding: 0 8px; border-radius: 6px; gap: 4px; }
#view-payments .bk-pagination-bar { margin-top: 6px; padding-top: 8px; }

#view-quotations { gap: 8px; }
#view-quotations .bk-subpage-bar { padding: 10px 11px; gap: 8px; border-radius: 14px; flex-wrap: nowrap; align-items: center; justify-content: space-between; }
#view-quotations .subpage-left { flex: 1; min-width: 0; }
#view-quotations .subpage-left > div { width: 100%; min-width: 0; }
#view-quotations .subpage-left h2 { font-size: 12.2px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-quotations .subpage-left small { font-size: 9.2px; line-height: 1.3; margin-top: 2px; }
#view-quotations .bk-subpage-bar .bk-count-pill { height: 24px; padding: 0 9px; font-size: 10px; border-radius: 7px; flex-shrink: 0; }
#view-quotations > .bk-card:last-child { padding: 10px; border-radius: 14px; }
#view-quotations .bk-toolbar-row { gap: 6px; margin-bottom: 8px; padding-bottom: 8px; }
#view-quotations .bk-search-box { width: 100% !important; height: 28px; padding: 0 9px; border-radius: 7px; }
#view-quotations .bk-search-box input { font-size: 10.8px; }
#p-quote-tbody tr:has(> td[data-label]) { display: grid; grid-template-columns: 38px minmax(0, 1fr) minmax(0, 1fr); column-gap: 5px; row-gap: 5px; padding: 8px 10px; margin-bottom: 7px; border-radius: 12px; }
#p-quote-tbody tr:has(> td[data-label]) td:nth-child(2) { grid-column: 1 / 3; grid-row: 1; justify-content: flex-start; padding: 0 0 5px; border-bottom: 1px dashed #e2e8f0; font-size: 12px; text-align: left !important; }
#p-quote-tbody tr:has(> td[data-label]) td:nth-child(5) { grid-column: 3; grid-row: 1; justify-content: flex-end; padding: 0 0 5px; border-bottom: 1px dashed #e2e8f0; }
#p-quote-tbody tr:has(> td[data-label]) td:nth-child(5) .badge-pay-status { font-size: 11px !important; padding: 2px 7px; border-radius: 6px; }
#p-quote-tbody tr:has(> td[data-label]) td:nth-child(2)::before, #p-quote-tbody tr:has(> td[data-label]) td:nth-child(5)::before { display: none; }
#p-quote-tbody tr:has(> td[data-label]) td:nth-child(1), #p-quote-tbody tr:has(> td[data-label]) td:nth-child(3), #p-quote-tbody tr:has(> td[data-label]) td:nth-child(4) { grid-row: 2; flex-direction: column; align-items: flex-start; gap: 1px; padding: 4px 6px; border: 1px solid #e2e8f0; border-radius: 7px; background: #f8fafc; font-size: 10.2px; text-align: left !important; }
#p-quote-tbody tr:has(> td[data-label]) td:nth-child(1)::before, #p-quote-tbody tr:has(> td[data-label]) td:nth-child(3)::before, #p-quote-tbody tr:has(> td[data-label]) td:nth-child(4)::before { font-size: 8px; }
#view-quotations .bk-pagination-bar { margin-top: 6px; padding-top: 8px; }

.bk-pagination-bar { flex-direction: row; flex-wrap: nowrap; align-items: center; justify-content: space-between; text-align: left; gap: 5px; margin-top: 10px; padding-top: 10px; }
.bk-pag-left { flex: 1; min-width: 0; flex-wrap: nowrap; justify-content: flex-start; gap: 5px; }
.bk-per-page-wrap { font-size: 9.5px; gap: 3px; flex-shrink: 0; }
.bk-per-page-btns { gap: 3px; }
.bk-pag-info { font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.bk-pag-controls, .bk-pag-nums { flex-wrap: nowrap; gap: 3px; flex-shrink: 0; }
.btn-pag { height: 23px; min-width: 23px; padding: 0 5px; font-size: 10px; border-radius: 6px; }
.bk-pag-controls > .btn-pag { width: 23px; padding: 0; font-size: 0; gap: 0; }
.bk-pag-controls > .btn-pag i { font-size: 10px; }

/* 5. Modals & Full-Screen Pinch-Zoom Invoice Preview */
body:has(.modal-bg:not(.hidden)) { padding-right: 0; }
#inv-modal.modal-bg { padding: 0; background: #ffffff; backdrop-filter: none; scrollbar-width: none; }
#inv-modal.modal-bg::-webkit-scrollbar, .inv-a4-scroll-wrap::-webkit-scrollbar { display: none; width: 0; height: 0; }
.inv-modal-shell { width: 100%; max-width: 100%; min-height: 100dvh; padding: 0; margin: 0; }
.inv-content-aligned-group { display: block; width: 100%; }
.inv-floating-side-dock { display: none; }
@supports (-webkit-touch-callout: none) {
  .inv-floating-side-dock { display: flex; position: fixed; top: calc(8px + env(safe-area-inset-top)); left: 8px; padding: 0; background: transparent; border: none; box-shadow: none; z-index: 120; }
  #portal-inv-dock .inv-side-btn:not(:first-child) { display: none; }
  #portal-inv-dock .inv-side-btn:first-child { width: 28px; height: 28px; font-size: 11px; background: rgba(15, 23, 42, 0.45); color: #ffffff; border: none; backdrop-filter: blur(6px); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18); }
}
.inv-a4-scroll-wrap { width: 100%; min-height: 100dvh; overflow: auto; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); touch-action: pan-x pan-y pinch-zoom; scrollbar-width: none; }
#portal-inv-pages { margin: 0 !important; }
.invoice-page { box-shadow: none; border-bottom: 1.5px dashed #e2e8f0; }
#shot-preview-modal.modal-bg { padding: 0; background: #ffffff; backdrop-filter: none; scrollbar-width: none; overflow: hidden; }
#shot-preview-modal.modal-bg::-webkit-scrollbar, .shot-stage-wrap::-webkit-scrollbar { display: none; width: 0; height: 0; }
.shot-modal-card { width: 100%; max-width: 100%; height: 100dvh; padding: 0; margin: 0; border-radius: 0; box-shadow: none; background: #ffffff; }
.shot-toolbar, .shot-ios-back { display: none; }
@supports (-webkit-touch-callout: none) {
  .shot-ios-back { display: flex; position: fixed; top: calc(8px + env(safe-area-inset-top)); left: 8px; width: 28px; height: 28px; font-size: 11px; background: rgba(15, 23, 42, 0.45); color: #ffffff; border: none; backdrop-filter: blur(6px); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18); z-index: 130; }
}
.shot-stage-wrap { width: 100%; height: 100dvh; overflow: auto; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); background: #ffffff; border: none; border-radius: 0; text-align: left; touch-action: pan-x pan-y pinch-zoom; scrollbar-width: none; }
#shot-modal-img { width: 100%; max-width: none; max-height: none; height: auto; border-radius: 0; display: block; transform-origin: top left; }
.pay-hist-strip { gap: 6px; }
.ph-box { padding: 7px 9px; border-radius: 10px; }
.ph-box span { font-size: 8.2px; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-box strong { font-size: 12.2px; line-height: 1.2; margin-top: 2px; white-space: nowrap; }
#view-monthly .ms-unified-card { padding: 12px; border-radius: 16px; }
#view-monthly .ms-unified-sec { padding: 10px 0; }
#view-monthly .ms-unified-head { gap: 8px; }
#view-monthly .ms-unified-head .subpage-left, #view-monthly .ms-unified-head .subpage-left > div { width: 100%; min-width: 0; }
#view-monthly .ms-unified-head .subpage-left h2 { font-size: 11.4px; letter-spacing: -0.25px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-monthly .ms-unified-head .subpage-left small { font-size: 9.4px; line-height: 1.3; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-monthly .ms-unified-head > div:last-child { width: 100%; display: flex; flex-wrap: nowrap !important; justify-content: space-between; gap: 5px !important; }
#view-monthly .ms-unified-head > div:last-child > * { height: 25px; padding: 0 7px; font-size: 10px; border-radius: 6px; gap: 4px; }
#view-monthly .ms-unified-head .btn-submit-pay-hero, #view-monthly .ms-unified-head .btn-export-pdf-hero { flex: 1; justify-content: center; }
#view-monthly .ms-unified-head .bk-count-pill { flex: 0.72; justify-content: center; }
#view-monthly .bk-toolbar-row { gap: 6px; margin-bottom: 0; padding-bottom: 0; }
#view-monthly #monthly-quick-tabs { width: 100%; display: flex; justify-content: space-between; gap: 5px; overflow: visible; }
#view-monthly #monthly-quick-tabs .bk-tab { flex: 1; height: 25px; padding: 0 5px; font-size: 10px; border-radius: 6px; justify-content: center; }
#view-monthly #monthly-quick-tabs .bk-tab:first-child { flex: 0.58; }
#view-monthly .bk-toolbar-right { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; width: 100%; }
#view-monthly .ps-dd-wrap.is-compact { width: 100%; min-width: 0; }
#view-monthly .ps-dd-wrap.is-compact .ps-dd-trigger { height: 26px; padding: 0 7px; gap: 4px; border-radius: 6px; }
#view-monthly .ps-dd-wrap.is-compact .ps-dd-ico { width: 16px; height: 16px; border-radius: 4px; font-size: 8.5px; }
#view-monthly .ps-dd-wrap.is-compact .ps-dd-label { font-size: 9.6px; letter-spacing: -0.15px; }
#view-monthly .ps-dd-wrap.is-compact .ps-dd-arrow { font-size: 9px; }
#view-monthly .bk-date-chip { height: 26px; padding: 0 7px; border-radius: 6px; gap: 5px; }
#view-monthly .bk-date-input { font-size: 10px; }
#view-monthly .btn-date-clear { height: 26px; width: 26px; border-radius: 6px; }
#monthly-month-select + .ps-dd-wrap .ps-dd-menu, #monthly-full-month + .ps-dd-wrap .ps-dd-menu { left: auto; right: 0; }
#view-monthly .bk-date-filter-group { grid-column: 1 / -1; grid-row: 2; }
#view-monthly .bk-section-head { gap: 5px; margin-bottom: 8px; }
#view-monthly .bk-section-head > div:first-child { width: 100%; min-width: 0; }
#view-monthly .bk-section-head strong { font-size: 10.6px; letter-spacing: -0.25px; line-height: 1.3; gap: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
#view-monthly .bk-section-head small { font-size: 9.4px; line-height: 1.3; }
#view-monthly .bk-section-head > div:last-child { width: 100%; flex-wrap: nowrap !important; gap: 6px !important; }
#view-monthly .bk-section-head .bk-search-box { flex: 1; width: auto !important; min-width: 0; height: 29px; }
#btn-monthly-full-view { height: 29px !important; padding: 0 10px !important; font-size: 10.5px; border-radius: 7px; flex-shrink: 0; }
.ms-chart-legend { font-size: 10px; gap: 9px; }
.ms-chart-wrap { padding: 4px 0 2px; }
.ms-chart-grid { width: 100%; min-width: 100%; height: 155px; padding: 12px 4px 6px; gap: 3px; }
.ms-bar-group { min-width: 21px; padding: 0 1px; gap: 4px; }
.ms-bars-pair { max-width: 46px; gap: 2px; }
.ms-bar { flex: 1; width: auto; min-width: 5px; max-width: 12px; }
.ms-bar-lbl { font-size: 8.5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.ms-excel-table { min-width: 620px; font-size: 10.5px; }
.ms-detail-excel-table { min-width: 780px; }
.ms-excel-table tr.ms-excel-col-letters th { font-size: 9px; padding: 2px 5px; }
.ms-excel-table thead tr:nth-child(2) th { font-size: 9.5px; padding: 6px 7px; }
.ms-excel-table tbody td, .ms-excel-table tfoot td { padding: 5px 7px; }
.ms-inv-link { font-size: 10.5px; }
#monthly-full-modal.ms-full-modal-bg { height: 100dvh; background: #ffffff; }
.ms-full-head, .ms-full-ios-back { display: none; }
@supports (-webkit-touch-callout: none) {
  .ms-full-ios-back { display: flex; position: fixed; top: calc(8px + env(safe-area-inset-top)); left: 8px; width: 28px; height: 28px; font-size: 11px; background: rgba(15, 23, 42, 0.45); color: #ffffff; border: none; backdrop-filter: blur(6px); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18); z-index: 120; }
}
.ms-full-body { height: 100%; padding: 0; }
.ms-full-body .ms-excel-frame { width: 100%; height: 100%; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); touch-action: pan-x pan-y pinch-zoom; scrollbar-width: none; }
.ms-full-body .ms-excel-frame::-webkit-scrollbar { display: none; width: 0; height: 0; }
.ms-full-excel-table { width: max-content; min-width: 1120px; font-size: 11.5px; }
.ms-full-excel-table thead th, .ms-full-excel-table tfoot td { position: static; }
.ms-full-excel-table tbody td { white-space: nowrap; word-break: normal; padding: 6px 9px; }
#pay-submit-modal.modal-bg { padding: calc(8px + env(safe-area-inset-top)) 8px calc(8px + env(safe-area-inset-bottom)); align-items: center; }
#pay-submit-modal .pay-sub-modal-card { width: 100%; max-width: 100% !important; max-height: calc(100dvh - 16px); overflow-y: auto; padding: 11px 12px; border-radius: 16px; }
#pay-submit-modal .pay-sub-header { margin-bottom: 8px; padding-bottom: 8px; gap: 8px; align-items: center; }
#pay-submit-modal .pay-sub-title-wrap { gap: 8px; min-width: 0; }
#pay-submit-modal .pay-sub-head-ico { width: 28px; height: 28px; border-radius: 8px; font-size: 11.5px; }
#pay-submit-modal .pay-sub-title-wrap strong { font-size: 13px; line-height: 1.2; }
#pay-submit-modal .pay-sub-title-wrap small { font-size: 9.5px; line-height: 1.25; margin-top: 1px; }
#pay-submit-modal .pay-sub-header .btn-view-inv { width: 26px; height: 26px; padding: 0; justify-content: center; border-radius: 7px; font-size: 11px; flex-shrink: 0; }
#pay-submit-modal .pay-sub-target-banner { padding: 7px 9px; border-radius: 9px; font-size: 10px; line-height: 1.35; margin-bottom: 8px; }
#pay-submit-modal .err-box, #pay-submit-modal .ok-box { font-size: 10.5px; padding: 7px 9px; border-radius: 8px; margin-bottom: 8px; }
#pay-submit-modal .pay-sub-form { gap: 8px; }
#pay-submit-modal .pay-sub-row2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; align-items: end; }
#pay-submit-modal .pay-sub-form .input-field label { font-size: 10px; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#pay-submit-modal .ps-dd-trigger { height: 33px; padding: 0 8px; border-radius: 9px; gap: 5px; }
#pay-submit-modal .ps-dd-left { gap: 6px; }
#pay-submit-modal .ps-dd-ico { width: 20px; height: 20px; border-radius: 5px; font-size: 10px; }
#pay-submit-modal .ps-dd-label { font-size: 11px; }
#pay-submit-modal .ps-dd-arrow { font-size: 9.5px; }
#pay-submit-modal .ps-dd-menu { min-width: 215px; border-radius: 11px; padding: 4px; }
#pay-submit-modal #sp-method + .ps-dd-wrap .ps-dd-menu { left: auto; right: 0; }
#pay-submit-modal .ps-dd-opt { padding: 6px 8px; border-radius: 8px; gap: 7px; }
#pay-submit-modal .ps-dd-opt-meta strong { font-size: 11.2px; }
#pay-submit-modal .ps-dd-opt-meta small { font-size: 9.5px; }
#pay-submit-modal .pay-sub-acct-box { border-radius: 10px; }
#pay-submit-modal .pay-sub-acct-head { padding: 6px 9px; font-size: 10.5px; }
#pay-submit-modal .pay-sub-acct-head .btn-pin-mini { height: 22px; padding: 0 7px; font-size: 9.8px; border-radius: 6px; }
#pay-submit-modal .pay-sub-acct-table { font-size: 10.4px; }
#pay-submit-modal .pay-sub-acct-table th { width: 32%; padding: 4.5px 8px; font-size: 9.6px; }
#pay-submit-modal .pay-sub-acct-table td { padding: 4.5px 8px; font-size: 10.3px; line-height: 1.3; }
#pay-submit-modal .pay-sub-acct-note { padding: 5px 8px; font-size: 9.5px; line-height: 1.25; }
#pay-submit-modal .input-icon-box { height: 33px; padding: 0 8px; border-radius: 9px; }
#pay-submit-modal .input-icon-box i { font-size: 11.5px; margin-right: 6px; }
#pay-submit-modal .input-icon-box input { font-size: 11.2px; }
#pay-submit-modal .pay-sub-dropzone { padding: 8px 10px; border-radius: 10px; gap: 8px; }
#pay-submit-modal .dropzone-ico { width: 30px; height: 30px; border-radius: 8px; font-size: 13px; }
#pay-submit-modal .dropzone-txt strong { font-size: 10.8px; }
#pay-submit-modal .dropzone-txt small { font-size: 9px; margin-top: 1px; }
#pay-submit-modal .pay-sub-preview-card { padding: 7px 9px; border-radius: 10px; gap: 9px; }
#pay-submit-modal .pay-sub-preview-card img { width: 44px; height: 44px; border-radius: 7px; }
#pay-submit-modal .preview-info strong { font-size: 11px; }
#pay-submit-modal .preview-info small { font-size: 9.5px; }
#pay-submit-modal #btn-submit-pay-req.btn-login { height: 37px; font-size: 12.2px; border-radius: 10px; margin-top: 2px; }
#pay-modal.modal-bg { padding: calc(8px + env(safe-area-inset-top)) 8px calc(8px + env(safe-area-inset-bottom)); align-items: center; }
#pay-modal .pay-modal-wide { width: 100%; max-width: 100% !important; max-height: calc(100dvh - 16px); overflow-y: auto; padding: 11px 12px; border-radius: 16px; }
#pay-modal .inv-toolbar { margin-bottom: 9px !important; padding-bottom: 8px; gap: 8px; }
#pay-modal .inv-toolbar strong { font-size: 13px; }
#pay-modal .inv-toolbar .btn-view-inv { width: 26px; height: 26px; padding: 0; justify-content: center; border-radius: 7px; font-size: 11px; }
#pay-modal .pay-top-due-banner { flex-direction: column; align-items: stretch; gap: 6px; padding: 8px 10px; border-radius: 11px; margin-bottom: 10px; }
#pay-modal .pay-due-left { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
#pay-modal .pay-due-left small { font-size: 8.8px; line-height: 1.2; }
#pay-modal .pay-due-left strong { font-size: 14.5px; margin-top: 0; white-space: nowrap; }
#pay-modal .pay-ref-pill { width: 100%; justify-content: space-between; padding: 4px 5px 4px 9px; border-radius: 8px; font-size: 10.2px; white-space: nowrap; }
#pay-modal .pay-ref-pill .btn-pin-mini { height: 22px; padding: 0 8px; font-size: 9.8px; border-radius: 6px; }
#pay-modal .pay-grid-2col { gap: 10px; }
#pay-modal .pay-col-head { font-size: 10.2px; margin-bottom: 7px; }
#pay-modal .pay-bank-card, #pay-modal .pay-mfs-card { padding: 9px 10px; border-radius: 11px; margin-bottom: 8px; border-left-width: 3px; }
#pay-modal .pay-bank-card .pay-card-top { flex-direction: column; align-items: stretch; gap: 6px; margin-bottom: 7px; }
#pay-modal .pay-card-top > div:last-child { justify-content: flex-end; gap: 5px; }
#pay-modal .pay-card-top .btn-pin-mini { height: 22px; padding: 0 8px; font-size: 9.8px; border-radius: 6px; }
#pay-modal .pay-bank-title { gap: 8px; align-items: center; }
#pay-modal .pay-bank-ico, #pay-modal .pay-mfs-ico { width: 28px; height: 28px; border-radius: 8px; font-size: 12px; }
#pay-modal .pay-bank-title strong { font-size: 12px; line-height: 1.25; }
#pay-modal .pay-bank-tag, #pay-modal .pay-mfs-pill { font-size: 8.8px; padding: 1px 6px; margin-top: 2px; }
#pay-modal .pay-detail-grid { gap: 4px; padding-top: 6px; }
#pay-modal .pay-detail-row { font-size: 10.5px; gap: 6px; }
#pay-modal .pay-detail-row span { font-size: 10px; white-space: nowrap; flex-shrink: 0; }
#pay-modal .pay-detail-row b { font-size: 10.8px !important; line-height: 1.25; }
#pay-modal .pay-mfs-num-row { margin-top: 7px; padding-top: 6px; }
#pay-modal .pay-mfs-num-row span { font-size: 8.8px !important; }
#pay-modal .pay-mfs-num-row strong { font-size: 13px; }
#pay-modal .pay-mfs-num-row .btn-pin-mini { height: 23px; padding: 0 9px; font-size: 10px; border-radius: 6px; }
#pay-modal .pay-mfs-charge-line { margin-top: 6px; padding: 5px 8px; border-radius: 7px; font-size: 9.6px; line-height: 1.3; }
#pay-modal .pay-note-box { margin-top: 8px; padding: 8px 10px; border-radius: 10px; font-size: 10px; line-height: 1.4; }
#pin-modal.modal-bg { padding: calc(10px + env(safe-area-inset-top)) 10px calc(10px + env(safe-area-inset-bottom)); align-items: center; }
#pin-modal .pin-modal-card { width: 100%; max-width: 100% !important; padding: 12px 13px; border-radius: 16px; }
#pin-modal .inv-toolbar { margin-bottom: 9px !important; padding-bottom: 8px; gap: 8px; }
#pin-modal .inv-toolbar strong { font-size: 13px; }
#pin-modal .inv-toolbar .btn-view-inv { width: 26px; height: 26px; padding: 0; justify-content: center; border-radius: 7px; font-size: 11px; }
#pin-modal .pin-modal-saved-box { padding: 8px 10px; border-radius: 11px; gap: 6px; }
#pin-modal .pin-strip-left { gap: 8px; }
#pin-modal .pin-ico { width: 28px; height: 28px; border-radius: 8px; font-size: 12px; }
#pin-modal .pin-lbl { font-size: 8.8px; line-height: 1.25; }
#pin-modal .pin-val { font-size: 12.8px; margin-top: 1px; }
#pin-modal .pin-strip-actions { width: 100%; padding-left: 36px; gap: 5px; }
#pin-modal .pin-strip-actions .btn-pin-mini { height: 23px; padding: 0 8px; font-size: 10px; border-radius: 6px; }
#pin-modal .pin-modal-divider { margin: 10px 0 9px; }
#pin-modal .pin-modal-divider span { font-size: 9.5px; padding: 0 8px; }
#pin-modal .err-box, #pin-modal .ok-box { font-size: 10.5px; padding: 7px 9px; border-radius: 8px; margin-bottom: 9px; }
#pin-modal .input-field { margin-bottom: 9px; }
#pin-modal .input-field label { font-size: 10.5px; margin-bottom: 4px; }
#pin-modal .input-icon-box { height: 35px; padding: 0 10px; border-radius: 9px; }
#pin-modal .input-icon-box i { font-size: 12px; margin-right: 7px; }
#pin-modal .input-icon-box input { font-size: 12px; }
#pin-modal .save-pin-chk { font-size: 10.5px; gap: 6px; margin-bottom: 11px !important; line-height: 1.3; }
#pin-modal .save-pin-chk input { width: 13.5px; height: 13.5px; flex-shrink: 0; }
#pin-modal #btn-save-new-pin.btn-login { height: 38px; font-size: 12.5px; border-radius: 10px; }
#help-modal.modal-bg { padding: calc(8px + env(safe-area-inset-top)) 8px calc(8px + env(safe-area-inset-bottom)); align-items: center; }
#help-modal .help-modal-wide { width: 100%; max-width: 100% !important; max-height: calc(100dvh - 16px); overflow-y: auto; overflow-x: hidden; padding: 11px 12px; border-radius: 16px; }
#help-modal .inv-toolbar { margin-bottom: 9px !important; padding-bottom: 8px; gap: 8px; }
#help-modal .inv-toolbar strong { font-size: 13px; }
#help-modal .inv-toolbar .btn-view-inv { width: 26px; height: 26px; padding: 0; justify-content: center; border-radius: 7px; font-size: 11px; }
#help-modal .help-grid-2col { grid-template-columns: minmax(0, 1fr); gap: 9px; }
#help-modal .help-left-col, #help-modal .help-right-col { min-width: 0; }
#help-modal .help-hero-card { padding: 9px 10px; gap: 10px; border-radius: 11px; margin-bottom: 8px; }
#help-modal .help-hero-logo { height: 34px; max-width: 105px; }
#help-modal .help-hero-logo img { max-height: 34px; max-width: 105px; }
#help-modal .help-hero-meta { min-width: 0; flex: 1; }
#help-modal .help-hero-meta strong { font-size: 12.2px; line-height: 1.2; }
#help-modal .help-hero-meta small { font-size: 9px; line-height: 1.25; }
#help-modal .help-sec-label { font-size: 9.5px; margin: 6px 0 5px; }
#help-modal .help-phone-list { gap: 6px; }
#help-modal .help-phone-row { flex-wrap: nowrap; padding: 7px 9px; border-radius: 10px; gap: 7px; }
#help-modal .help-phone-left { gap: 8px; min-width: 0; flex: 1; }
#help-modal .help-num-ico { width: 28px; height: 28px; border-radius: 8px; font-size: 11.5px; }
#help-modal .help-phone-left small { font-size: 8.8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#help-modal .help-phone-left strong { font-size: 12.2px; }
#help-modal .help-row-btns { gap: 4px; flex-shrink: 0; }
#help-modal .help-row-btns .btn-pin-mini { height: 24px; padding: 0 7px; font-size: 9.8px; border-radius: 6px; }
#help-modal .help-box-row { padding: 7px 9px; border-radius: 10px; margin-top: 6px; gap: 8px; }
#help-modal .help-box-left { gap: 8px; min-width: 0; flex: 1; }
#help-modal .help-box-left i { font-size: 13px; margin-top: 2px; flex-shrink: 0; }
#help-modal .help-box-left > div { min-width: 0; flex: 1; }
#help-modal .help-box-left strong { font-size: 11px; display: block; }
#help-modal .help-box-left small { font-size: 9.8px !important; line-height: 1.3; overflow-wrap: anywhere; }
#help-modal .help-box-row .btn-pin-mini { height: 23px; padding: 0 7px; font-size: 9.8px; border-radius: 6px; flex-shrink: 0; }
#help-modal .help-note-box { margin-top: 6px; padding: 7px 9px; border-radius: 9px; font-size: 9.6px; line-height: 1.38; }
#help-modal .help-map-card { border-radius: 11px; }
#help-modal .help-map-bar { padding: 7px 9px; gap: 6px; }
#help-modal .help-map-bar strong { font-size: 11px; }
#help-modal .help-map-btns { width: 100%; justify-content: flex-end; gap: 5px; }
#help-modal .help-map-btns .btn-pin-mini { height: 23px; padding: 0 8px; font-size: 9.8px; border-radius: 6px; }
#help-modal .help-dir-btn { height: 23px; padding: 0 9px; font-size: 9.8px; border-radius: 6px; }
#help-modal .help-map-iframe { min-height: 165px; height: 165px; }

/* 6. Footer & Bottom App Navigation Bar */
.bk-footer { display: none; }
.bk-bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #ffffff; border-top: 1px solid var(--border); box-shadow: 0 -6px 22px -6px rgba(15, 23, 42, 0.1); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; padding: 0; }
.bn-item { position: relative; border: none; border-radius: 0; background: #ffffff; color: #64748b; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 12px 2px calc(9px + env(safe-area-inset-bottom)); cursor: pointer; transition: background 0.18s ease, color 0.18s ease; }
.bn-item i { font-size: 16.5px; line-height: 1; transition: transform 0.18s ease; }
.bn-item span { font-size: 8.8px; font-weight: 700; letter-spacing: 0.1px; line-height: 1.1; white-space: nowrap; }
.bn-item:active i { transform: scale(0.9); }
.bn-item.active { background: var(--brand-soft); color: var(--brand-dark); }
.bn-item.active span { font-weight: 800; }
.bn-item.active::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3.5px; background: var(--brand); }
@media (hover: hover) and (pointer: fine) {
  .bn-item:hover { background: var(--brand); color: #ffffff; }
  .bn-item:hover::after { display: none; }
}

/* 7. Mobile Login Page (<= 768px) */
body:has(#view-login), #view-login.login-wrapper { background: #ffffff; min-height: 100dvh; }
#view-login .login-brand { width: auto; margin: 0 22px 14px; padding: 0; text-align: left; background: none; }
#view-login .brand-logo-circle, #view-login .mobile-comp-header { display: none; }
#view-login .login-split-shell { min-height: 100dvh; }
#view-login .login-main-row { grid-template-columns: 1fr; align-items: start; padding: 0; gap: 0; }
#view-login .login-form-pane { width: 100%; display: block; }
#view-login .login-card { width: 100%; max-width: 100%; padding: 0 0 14px; border-radius: 0; border: none; background: #ffffff; box-shadow: none; backdrop-filter: none; animation: loginCardPop 0.45s cubic-bezier(0.16, 1, 0.3, 1); }
#view-login .login-card.is-shake { animation: btnShake 0.36s ease-in-out; box-shadow: none; }
#view-login .login-card > :not(.login-brand):not(.login-card-top-badge) { margin-left: 22px; margin-right: 22px; }
#view-login .login-bottom-gradient-wave, #view-login .login-bg-orb, #view-login .login-bg-grid, #view-login .login-vector-backdrop, #view-login .login-vector-art, #view-login .login-sports-watermark, #view-login .login-card-top-badge { display: none; }
#view-login .login-showcase-pane { display: flex; flex-direction: column; gap: 10px; width: 100%; padding: calc(12px + env(safe-area-inset-top)) 16px 76px; margin-bottom: -14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 390 90' preserveAspectRatio='none'%3E%3Cpath d='M0 46 C95 -22, 220 108, 390 38 L390 90 L0 90 Z' fill='%23ffffff'/%3E%3Cpath d='M0 46 C95 -22, 220 108, 390 38' fill='none' stroke='rgba(13,148,136,0.2)' stroke-width='1.4'/%3E%3C/svg%3E") bottom center / 100% 78px no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 390 300' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='pcBg' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%2334d399' stop-opacity='.18'/%3E%3Cstop offset='48%25' stop-color='%2314b8a6' stop-opacity='.09'/%3E%3Cstop offset='100%25' stop-color='%2338bdf8' stop-opacity='.24'/%3E%3C/linearGradient%3E%3Cpattern id='pcWeave' width='24' height='24' patternUnits='userSpaceOnUse'%3E%3Cpath d='M12 4 20 12 12 20 4 12Z' fill='none' stroke='%230d9488' stroke-opacity='.15'/%3E%3Ccircle cx='12' cy='12' r='1.2' fill='%230d9488' fill-opacity='.17'/%3E%3C/pattern%3E%3C/defs%3E%3Cpath d='M0 0H390V58C335 30 285 18 230 34S130 72 70 48 20 18 0 42Z' fill='url(%23pcBg)'/%3E%3Cpath d='M0 218C85 182 145 236 225 218s105-42 165-16V300H0Z' fill='url(%23pcBg)'/%3E%3Cpath d='M185 125 255 62h80L250 144H185Z' fill='url(%23pcWeave)'/%3E%3Cg fill='none' stroke-linecap='round' stroke-width='1.3'%3E%3Cpath d='M0 48C85 16 145 42 210 60s105 16 180-12' stroke='%230d9488' stroke-opacity='.18'/%3E%3Cpath d='M0 58C85 26 145 52 210 70s105 16 180-12' stroke='%230d9488' stroke-opacity='.14' stroke-dasharray='3 7'/%3E%3Cpath d='M0 210C85 176 145 228 225 210s105-42 165-16' stroke='%230284c7' stroke-opacity='.18'/%3E%3C/g%3E%3C/svg%3E") center center / 100% 100% no-repeat, radial-gradient(rgba(15, 23, 42, 0.045) 1px, transparent 1px) 0 0 / 22px 22px, linear-gradient(180deg, #ffffff 0%, #ffffff 28%, #f0fdf4 68%, #e0f2fe 100%); }
#view-login .login-brand-bar { flex-direction: column; align-items: center; text-align: center; gap: 6px; padding-bottom: 12px; }
#view-login .login-logo-box { height: 48px; justify-content: center; font-size: 28px; }
#view-login .login-logo-box img { max-height: 46px; max-width: 200px; }
#view-login .login-brand-meta { width: 100%; align-items: center; gap: 4px; }
#view-login .login-brand-pills-row { justify-content: center; gap: 5px; }
#view-login .login-tag-pill, #view-login .login-erp-chip { font-size: 8px; padding: 1.5px 8px; letter-spacing: 0.4px; }
#view-login .login-hero-company { font-size: 15.5px; color: #0f172a; line-height: 1.15; }
#view-login .login-comp-loc { justify-content: center; flex-wrap: nowrap; font-size: 9px; color: #0f172a; gap: 4px; max-width: 100%; }
#view-login .login-comp-loc span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-login .login-comp-loc i { font-size: 9px; flex-shrink: 0; }
#view-login .login-headline-block { max-width: 100%; }
#view-login .login-headline-block h2 { font-size: 14.5px; letter-spacing: -0.2px; line-height: 1.28; color: #0f172a; margin-bottom: 4px; text-shadow: none; }
#view-login .login-headline-block h2 span { background: linear-gradient(135deg, #059669 0%, #0284c7 100%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
#view-login .login-headline-block p { font-size: 10.5px; line-height: 1.45; color: #475569; }
#view-login .login-features-grid, #view-login .login-workflow-strip { display: none; }
#view-login .portal-help-banner { max-width: 100%; flex-direction: column; align-items: flex-start; gap: 6px; padding: 8px 0 0; margin-top: 2px; border-radius: 0; background: transparent; border: none; border-top: 1px dashed rgba(15, 23, 42, 0.14); box-shadow: none; }
#view-login .phb-left { width: 100%; gap: 8px; min-width: 0; }
#view-login .phb-left > div:last-child { min-width: 0; flex: 1; }
#view-login .phb-ico { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 8px; font-size: 11px; background: #059669; border: none; color: #ffffff; }
#view-login .phb-left strong { font-size: 10.5px; color: #0f172a; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-login .phb-left small { font-size: 8.8px; color: #475569; line-height: 1.3; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-login .phb-phone { margin-left: 34px; font-size: 10.5px; padding: 4px 11px; border-radius: 999px; gap: 5px; border: 1px solid #a7f3d0; background: #ffffff; color: #047857; box-shadow: 0 3px 10px rgba(5, 150, 105, 0.1); white-space: nowrap; }
#view-login .login-brand h2 { font-size: 21px; font-weight: 800; color: #0f172a; text-align: left; position: relative; padding-bottom: 7px; margin-bottom: 6px; }
#view-login .login-brand h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 48px; height: 2.5px; border-radius: 999px; background: var(--green-brand); }
#view-login .login-brand p { font-size: 12px; color: #64748b; text-align: left; margin-top: 2px; }
#view-login .input-field { margin-bottom: 18px; }
#view-login .input-field label { font-size: 12px; font-weight: 700; margin-bottom: 4px; color: #1e293b; }
#view-login .input-icon-box { border: none; border-bottom: 1.5px solid #cbd5e1; border-radius: 0; padding: 0 2px; height: 42px; background: transparent; }
#view-login .input-icon-box:hover { border-color: #94a3b8; }
#view-login .input-icon-box:focus-within { border-color: var(--green-brand); box-shadow: none; }
#view-login .input-icon-box > i { color: #64748b; font-size: 13.5px; padding-right: 10px; margin-right: 10px; border-right: 1px solid #cbd5e1; line-height: 1.1; }
#view-login .input-icon-box input:-webkit-autofill, #view-login .input-icon-box input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 100px #ffffff inset; -webkit-text-fill-color: #0f172a; }
#view-login .save-pin-row { margin: -2px 0 22px; font-size: 11.8px; }
#view-login .btn-login { height: 46px; border-radius: 10px; font-size: 14px; box-shadow: 0 4px 12px rgba(5, 150, 105, 0.22); }
#view-login .login-footer { display: none; }
#view-login .login-global-footer { background: #ffffff; padding: 2px 0 calc(10px + env(safe-area-inset-bottom)); }
#view-login .login-global-footer::before, #view-login .login-tech-pill { display: none; }
#view-login .login-global-footer-inner { justify-content: center; text-align: center; padding: 6px 20px; gap: 4px; flex-direction: column; }
#view-login .login-gf-left { justify-content: center; gap: 12px; font-size: 10.5px; }
#view-login .login-srv-pill { border-right: none; padding-right: 0; }
#view-login .login-gf-copyright { text-align: center; }
#view-login .login-gf-copyright span { font-size: 11px; }
#view-login .login-gf-copyright small { font-size: 9.5px; }