/* Omego UI — premium global scale (admin + PE + POS + platform)
   Tuned for 100% browser zoom: compact, refined, responsive on any device. */

/* ---------- Base scale (premium density at 100%) ---------- */
html:has(.fi-body),
html:has(.pos-app),
html:has(.omego-site),
html:has(.attendance-app),
html:has(.waiter-app) {
    font-size: clamp(12px, 0.18vw + 10.8px, 13px) !important;
}

.fi-body,
.pos-app,
.omego-site {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.fi-body *,
.pos-app *,
.pe-screen * {
    box-sizing: border-box;
}

.fi-body {
    --sidebar-width: 20rem !important;
    --collapsed-sidebar-width: 4.5rem;
}

/* Force full label width for every login / browser (beats inline Filament vars + truncate). */
.fi-body .fi-sidebar,
.fi-body .fi-main-sidebar.fi-sidebar,
.fi-body .fi-sidebar.fi-sidebar-open {
    --sidebar-width: 20rem !important;
    width: 20rem !important;
    min-width: 20rem !important;
    max-width: none !important;
}

.fi-body.fi-body-has-sidebar-collapsible-on-desktop .fi-sidebar:not(.fi-sidebar-open) {
    width: var(--collapsed-sidebar-width) !important;
    min-width: var(--collapsed-sidebar-width) !important;
}

/* Full-bleed content, no orphan max-widths */
.fi-body main.fi-main,
.fi-body .fi-main,
.fi-body .fi-main-ctn,
.fi-body .fi-page,
.fi-body .fi-page-main,
.fi-body .fi-page-content,
.fi-body .fi-page > .fi-page-header-main-ctn,
.pe-screen,
.pe-panel,
.pe-panel-wide,
.pos-app {
    width: 100% !important;
    max-width: none !important;
}

.fi-body .fi-page-content {
    padding-inline: clamp(0.75rem, 1.4vw, 1.25rem) !important;
    padding-block: 0.4rem 0.85rem !important;
}

.fi-body .fi-page > .fi-page-header-main-ctn {
    gap: 0.45rem;
    padding-inline: clamp(0.75rem, 1.4vw, 1.25rem);
}

.fi-header {
    gap: 0.35rem !important;
    margin-bottom: 0.25rem !important;
}

.fi-header-heading {
    font-size: clamp(1.15rem, 0.35vw + 1rem, 1.35rem) !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    color: #0f172a !important;
}

.fi-header-subheading,
.fi-section-header-description {
    font-size: 0.8125rem !important;
    color: #64748b !important;
}

.fi-sidebar .fi-sidebar-item-label,
.fi-sidebar span.fi-sidebar-item-label,
.fi-sidebar .fi-sidebar-group-label,
.fi-sidebar .fi-sidebar-database-notifications-btn-label {
    font-size: 0.8125rem !important;
    font-weight: 550 !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    line-height: 1.25 !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: none !important;
}

.fi-sidebar-item-btn,
.fi-sidebar-group-btn {
    min-height: 2.15rem !important;
    padding: 0.35rem 0.55rem !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 0.55rem !important;
}

.fi-sidebar .fi-sidebar-item-btn .fi-sidebar-item-icon {
    width: 1.55rem !important;
    height: 1.55rem !important;
    flex-shrink: 0 !important;
}

.fi-sidebar .fi-sidebar-item-btn .fi-sidebar-item-icon svg,
.fi-sidebar .fi-sidebar-item-btn .fi-sidebar-item-icon .fi-icon {
    width: 1.05rem !important;
    height: 1.05rem !important;
}

.fi-topbar {
    min-height: 2.75rem !important;
}

.fi-topbar .fi-global-search-field input,
.fi-global-search-field input {
    font-size: 0.8125rem !important;
    min-height: 2rem !important;
}

.fi-fo-field-wrp label,
.fi-fo-field-wrp-label .fi-fo-field-wrp-label-text {
    font-size: 0.8125rem !important;
    font-weight: 650 !important;
    color: #334155 !important;
}

/* Refined borders — defined, not heavy */
.fi-input-wrp,
.fi-select-input,
.fi-fo-text-input,
.fi-fo-textarea,
.fi-ta-ctn,
.fi-ta-content,
div.fi-ta,
.fi-section:not(.fi-section-not-contained),
.fi-wi-stats-overview-stat {
    border-width: 1.5px !important;
    border-color: #cbd5e1 !important;
}

.fi-dropdown-panel,
.fi-modal-window,
.fi-modal-content {
    border: 1.5px solid #94a3b8 !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12) !important;
}

.fi-input-wrp input,
.fi-input-wrp select,
.fi-input-wrp textarea,
.fi-select-input,
.fi-fo-text-input input,
.fi-fo-textarea textarea,
.fi-body input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
.fi-body select,
.fi-body textarea,
.pos-app input:not([type="checkbox"]):not([type="radio"]),
.pos-app select,
.pos-app textarea {
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    min-height: 2.1rem !important;
    border-width: 1.5px !important;
    border-color: #94a3b8 !important;
    border-style: solid !important;
    border-radius: 0.45rem !important;
    padding-top: 0.35rem !important;
    padding-bottom: 0.35rem !important;
}

.fi-input-wrp:focus-within,
.fi-select-input:focus-within,
.fi-body input:focus,
.fi-body select:focus,
.fi-body textarea:focus {
    border-color: #2563eb !important;
    outline: 2px solid rgba(37, 99, 235, 0.18) !important;
    outline-offset: 0 !important;
}

.fi-btn,
.pos-app button {
    font-size: 0.8125rem !important;
    font-weight: 650 !important;
    min-height: 2.1rem !important;
    border-width: 1.5px !important;
    padding: 0.35rem 0.75rem !important;
    border-radius: 0.45rem !important;
}

.fi-ta-header-cell,
.fi-ta-cell {
    font-size: 0.8125rem !important;
    padding: 0.4rem 0.55rem !important;
}

.fi-ta-header-cell-label {
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em;
}

.fi-ta-table thead th,
.fi-ta-header-cell {
    border-bottom: 1.5px solid #e2e8f0 !important;
}

.fi-section:not(.fi-section-not-contained):not(.fi-aside) > .fi-section-header {
    padding: 0.5rem 0.75rem !important;
}

.fi-section:not(.fi-section-not-contained):not(.fi-divided) > .fi-section-content-ctn > .fi-section-content,
.fi-section.fi-divided > .fi-section-content-ctn > .fi-section-content > * {
    padding: 0.65rem 0.75rem !important;
}

.fi-section-header-heading {
    font-size: 0.875rem !important;
    font-weight: 700 !important;
}

.fi-wi-stats-overview-stat {
    padding: 0.5rem 0.65rem !important;
    border-radius: 0.55rem !important;
}

.fi-wi-stats-overview-stat-value {
    font-size: 1.15rem !important;
}

.fi-wi-stats-overview-stat-label {
    font-size: 0.7rem !important;
}

/* ---------- Payment Executive / custom screens ---------- */
.fi-page:has(.pe-screen) .fi-header { margin-bottom: 0.25rem; }
.fi-page:has(.pe-screen) .fi-header-heading {
    font-size: clamp(1.15rem, 0.35vw + 1rem, 1.35rem) !important;
}
.fi-page:has(.pe-screen) .fi-page-content {
    padding-block: 0.25rem 0.75rem;
    padding-inline: 0 !important;
}

.pe-screen {
    display: grid;
    gap: 0.55rem;
    width: 100%;
    max-width: none;
}

.pe-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
    width: fit-content;
    max-width: 100%;
    padding: 0.18rem;
    border-radius: 0.55rem;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
}
.pe-nav a {
    display: inline-flex;
    align-items: center;
    border-radius: 0.4rem;
    padding: 0.3rem 0.6rem;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    color: #475569;
}
.pe-nav a.is-on { background: #0f172a; color: #fff; }
.pe-nav a:hover:not(.is-on) { background: #e2e8f0; color: #0f172a; }

.pe-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.1rem;
    border-bottom: 1.5px solid #e2e8f0;
}
.pe-tabs button {
    appearance: none;
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -1.5px;
    padding: 0.4rem 0.65rem;
    font-size: 0.8125rem;
    font-weight: 650;
    color: #64748b;
    cursor: pointer;
}
.pe-tabs button.is-on { color: #0f172a; border-bottom-color: #0f172a; }
.pe-tabs button:hover:not(.is-on) { color: #0f172a; }
[x-cloak] { display: none !important; }

.pe-balance-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
}
@media (max-width: 720px) {
    .pe-balance-row { grid-template-columns: 1fr; }
}
.pe-balance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    padding: 0.4rem 0.65rem;
    border-radius: 0.5rem;
    background: #f0fdf4;
    border: 1.5px solid #bbf7d0;
}
.pe-balance span { color: #166534; font-size: 0.75rem; font-weight: 650; }
.pe-balance strong {
    color: #14532d;
    font-size: 1rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}
.pe-balance-bank { background: #eff6ff; border-color: #bfdbfe; }
.pe-balance-bank span { color: #1d4ed8; }
.pe-balance-bank strong { color: #1e3a8a; }

.pe-note { margin: 0; color: #64748b; font-size: 0.8125rem; line-height: 1.4; }
.pe-work {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(15rem, 0.85fr);
    gap: 0.55rem;
    align-items: start;
}
.pe-history-split { grid-template-columns: 1fr 1fr; }
.pe-history-split .pe-table-wrap { max-height: min(58vh, 34rem); overflow: auto; }
.pe-stack { display: grid; gap: 0.45rem; }

.pe-panel {
    background: #fff;
    border: 1.5px solid #cbd5e1;
    border-radius: 0.6rem;
    padding: 0.65rem 0.75rem 0.7rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    width: 100%;
    max-width: none;
}
.pe-panel h2 {
    margin: 0 0 0.35rem;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #334155;
}
.pe-panel.pe-panel-wide { width: 100%; max-width: none; }

.pe-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr));
    gap: 0.4rem 0.55rem;
}
.pe-fields.pe-fields-3 {
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}
.pe-fields.pe-fields-4 {
    grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
}
.pe-fields .span-2 { grid-column: span 2; }
.pe-fields .span-3 { grid-column: span 3; }
.pe-fields .span-all { grid-column: 1 / -1; }

.pe-form label,
.pe-fields label,
.pe-toolbar label {
    display: grid;
    gap: 0.18rem;
    font-size: 0.88rem;
    font-weight: 750;
    color: #1e293b;
}
.pe-form input,
.pe-form select,
.pe-form textarea,
.pe-fields input,
.pe-fields select,
.pe-fields textarea,
.pe-toolbar input,
.pe-toolbar select {
    width: 100%;
    border: 1.5px solid #94a3b8;
    border-radius: 0.4rem;
    padding: 0.35rem 0.5rem;
    font-size: 0.875rem;
    color: #0f172a;
    background: #fff;
    min-height: 2.1rem;
}
.pe-form textarea,
.pe-fields textarea { min-height: 2.1rem; resize: vertical; }
.pe-fields input[readonly] {
    background: #f8fafc;
    color: #0f172a;
    font-weight: 650;
    cursor: default;
}
.pe-form input:focus,
.pe-form select:focus,
.pe-form textarea:focus,
.pe-fields input:focus,
.pe-fields select:focus,
.pe-fields textarea:focus,
.pe-toolbar input:focus,
.pe-toolbar select:focus {
    outline: 2px solid rgba(37, 99, 235, 0.18);
    border-color: #2563eb;
}

.pe-check {
    display: flex !important;
    align-items: center;
    gap: 0.4rem;
    grid-template-columns: none;
    font-size: 0.8125rem !important;
    color: #0f172a !important;
}
.pe-check input { width: auto; min-height: auto; }

.pe-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.45rem;
}
.pe-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.4rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 700;
    background: #0f172a;
    color: #fff;
    border: 1.5px solid #0f172a;
    cursor: pointer;
    min-height: 2.1rem;
}
.pe-btn.secondary {
    background: #fff;
    color: #0f172a;
    border-color: #94a3b8;
}
.pe-btn:hover { filter: brightness(1.06); }

.pe-print-col { width: 2.25rem; text-align: center; }
.pe-print-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 0.4rem;
    color: #475569;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    text-decoration: none;
}
.pe-print-btn:hover {
    color: #0f172a;
    background: #e2e8f0;
    border-color: #94a3b8;
}

.pe-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 0.4rem;
}
.pe-toolbar label { min-width: 8rem; flex: 1 1 8rem; }
.pe-toolbar .pe-actions { margin-top: 0; }

.pe-chips { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.pe-chip {
    border: 1.5px solid #cbd5e1;
    background: #f8fafc;
    border-radius: 999px;
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    color: #475569;
}

.pe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
    gap: 0.4rem;
}
.pe-card {
    background: #fff;
    border: 1.5px solid #cbd5e1;
    border-radius: 0.5rem;
    padding: 0.4rem 0.55rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
.pe-card span { display: block; color: #64748b; font-size: 0.7rem; font-weight: 650; }
.pe-card strong {
    display: block;
    margin-top: 0.1rem;
    font-size: 0.95rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}
.pe-card.balance { background: #f0fdf4; border-color: #bbf7d0; }
.pe-card.balance strong { color: #14532d; }

.pe-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1.5px solid #cbd5e1;
    border-radius: 0.5rem;
    background: #fff;
    width: 100%;
    max-width: 100%;
}
.pe-reports,
.pe-reports-table { width: 100%; max-width: none; }

.pe-report-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.65rem 1rem;
    padding: 0.7rem 0.85rem;
    border-radius: 0.65rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #334155 100%);
    color: #fff;
    border: 1px solid #0f172a;
}
.pe-report-kicker {
    margin: 0 0 0.15rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
}
.pe-report-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}
.pe-report-meta { margin: 0.2rem 0 0; font-size: 0.8125rem; color: #cbd5e1; }
.pe-report-hero__stats { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pe-report-stat {
    min-width: 7.5rem;
    padding: 0.4rem 0.55rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.pe-report-stat span {
    display: block;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
}
.pe-report-stat strong {
    display: block;
    margin-top: 0.1rem;
    font-size: 0.9rem;
    font-variant-numeric: tabular-nums;
    color: #fff;
}
.pe-report-stat--closing {
    background: rgba(34, 197, 94, 0.16);
    border-color: rgba(74, 222, 128, 0.35);
}
.pe-report-stat--closing span { color: #86efac; }
.pe-report-filters { padding: 0.6rem 0.7rem; }
.pe-report-toolbar { width: 100%; }
.pe-report-exports { margin-left: auto; display: grid; gap: 0.15rem; align-items: end; }
.pe-report-exports__label { font-size: 0.65rem; font-weight: 650; color: #64748b; }
.pe-report-export-btns { margin-top: 0; }
.pe-report-body { padding: 0; overflow: hidden; }
.pe-report-body--ledger-select { position: relative; }
.pe-report-table-shell { border: 0; border-radius: 0; }
.pe-table-ledger-select tbody tr.pe-ledger-row--selectable {
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}
.pe-table-ledger-select tbody tr.pe-ledger-row--selectable td {
    user-select: none;
    -webkit-user-select: none;
}
.pe-table-ledger-select tbody tr.pe-ledger-row--selectable:hover td {
    background: #eff6ff;
}
.pe-table-ledger-select tbody tr.pe-ledger-row--selected td,
.pe-table-ledger-select tbody tr.pe-ledger-row--selected:hover td,
.pe-table-report.pe-table-ledger-select tbody tr.pe-ledger-row--selected td,
.pe-table-report.pe-table-ledger-select tbody tr.pe-ledger-row--selected:hover td,
.pe-screen .pe-table-ledger-select tbody tr.pe-ledger-row--selected td,
.pe-screen .pe-table-ledger-select tbody tr.pe-ledger-row--selected:hover td {
    background: #93c5fd !important;
}
.pe-table-ledger-select tbody tr.pe-ledger-row--selected {
    outline: 2px solid #2563eb;
    outline-offset: -2px;
}
.pe-ledger-select-summary {
    /* Stay visible while the ledger scrolls (page / panel scroll). */
    position: fixed;
    top: 5.75rem;
    right: 1.25rem;
    z-index: 60;
    width: min(16.5rem, calc(100vw - 2rem));
    padding: 0.75rem 0.85rem;
    border: 1px solid #bfdbfe;
    border-radius: 0.65rem;
    background: rgba(239, 246, 255, 0.96);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(4px);
    pointer-events: none;
}
@media (max-width: 960px) {
    .pe-ledger-select-summary {
        top: auto;
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        width: auto;
    }
}
.pe-ledger-select-summary__kicker {
    margin: 0 0 0.55rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #1d4ed8;
}
.pe-ledger-select-summary__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0.28rem 0;
    font-size: 0.8125rem;
    color: #334155;
}
.pe-ledger-select-summary__row strong {
    font-variant-numeric: tabular-nums;
    color: #0f172a;
}
.pe-ledger-select-summary__row--net {
    margin-top: 0.55rem;
    padding-top: 0.55rem;
    border-top: 1px solid #bfdbfe;
    font-weight: 700;
}
.pe-ledger-select-summary__hint {
    margin: 0.65rem 0 0;
    font-size: 0.68rem;
    color: #64748b;
}

.pe-table {
    width: 100%;
    min-width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}
.pe-table-statement { table-layout: fixed; }
.pe-table-statement th:first-child,
.pe-table-statement td:first-child { width: 70%; }
.pe-table-statement th:last-child,
.pe-table-statement td:last-child { width: 30%; }
.pe-table th,
.pe-table td {
    border-bottom: 1px solid #e2e8f0;
    padding: 0.4rem 0.55rem;
    text-align: left;
    font-size: 0.8125rem;
    white-space: normal;
}
.pe-table th {
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: #f8fafc;
    border-bottom: 1.5px solid #cbd5e1;
    white-space: nowrap;
}
.pe-table tr:last-child td { border-bottom: 0; }
.pe-table td.num,
.pe-table th.num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.pe-table-report th { padding: 0.45rem 0.7rem; background: #f8fafc; border-bottom: 1px solid #e2e8f0; }
.pe-table-report td { padding: 0.45rem 0.7rem; font-size: 0.8125rem; color: #0f172a; }
.pe-table-report tbody tr:hover td { background: #f8fafc; }
.pe-table-report .pe-report-row--balance td {
    background: #f8fafc;
    font-weight: 700;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}
.pe-table-report .pe-report-row--balance:hover td { background: #f1f5f9; }
.pe-table-report .pe-report-row--in .pe-report-amount { color: #047857; font-weight: 700; }
.pe-table-report .pe-report-row--out .pe-report-amount { color: #b91c1c; font-weight: 700; }
.pe-table-report .pe-report-amount--zero { color: #94a3b8 !important; font-weight: 500 !important; }
.pe-report-empty { padding: 1.2rem 0.75rem !important; text-align: center; }
.pe-empty { color: #94a3b8; white-space: normal; }
.pe-error { color: #b91c1c; font-weight: 700; font-size: 0.75rem; }

.pe-search-select { position: relative; }
.pe-search-select__control { position: relative; }
.pe-search-select__input {
    width: 100%;
    border: 1.5px solid #94a3b8;
    border-radius: 0.4rem;
    padding: 0.35rem 1.6rem 0.35rem 0.5rem;
    font-size: 0.875rem;
    color: #0f172a;
    background: #fff;
    min-height: 2.1rem;
}
.pe-search-select__input:focus {
    outline: 2px solid rgba(37, 99, 235, 0.18);
    border-color: #2563eb;
}
.pe-search-select__input:disabled {
    background: #f8fafc;
    color: #94a3b8;
    cursor: not-allowed;
}
.pe-search-select__clear {
    position: absolute;
    right: 0.3rem;
    top: 50%;
    transform: translateY(-50%);
    appearance: none;
    border: 0;
    background: transparent;
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.1rem 0.2rem;
}
.pe-search-select__list {
    position: absolute;
    z-index: 40;
    left: 0;
    right: 0;
    top: calc(100% + 0.15rem);
    margin: 0;
    padding: 0.2rem;
    list-style: none;
    max-height: 14rem;
    overflow: auto;
    background: #fff;
    border: 1.5px solid #94a3b8;
    border-radius: 0.45rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}
.pe-search-select__option {
    width: 100%;
    appearance: none;
    border: 0;
    background: transparent;
    text-align: left;
    border-radius: 0.3rem;
    padding: 0.4rem 0.5rem;
    font-size: 0.8125rem;
    color: #0f172a;
    cursor: pointer;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.6rem;
}
.pe-search-select__option:hover,
.pe-search-select__option.is-on { background: #eff6ff; color: #1d4ed8; }
.pe-search-select__main { min-width: 0; display: grid; gap: 0.05rem; }
.pe-search-select__name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pe-search-select__phone { color: #94a3b8; font-size: 0.68rem; font-variant-numeric: tabular-nums; }
.pe-search-select__due {
    flex: 0 0 auto;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #0f172a;
    font-size: 0.75rem;
    white-space: nowrap;
}
.pe-search-select__option.is-on .pe-search-select__phone,
.pe-search-select__option:hover .pe-search-select__phone { color: #3b82f6; }
.pe-search-select__option.is-on .pe-search-select__due,
.pe-search-select__option:hover .pe-search-select__due { color: #1d4ed8; }
.pe-search-select__empty { padding: 0.4rem 0.45rem; color: #94a3b8; font-size: 0.75rem; }

.pe-bills-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.45rem 0.75rem;
}
.pe-bills-title {
    margin: 0;
    font-size: clamp(1.15rem, 0.35vw + 1rem, 1.35rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
}
.pe-bills-filters { display: grid; gap: 0.45rem; }
.pe-bills-search { min-width: 11rem; flex: 1 1 10rem; }
.pe-bills-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.3rem 0.4rem;
}
.pe-bills-sum {
    flex: 1 1 6.5rem;
    min-width: 6.5rem;
    border-radius: 0.45rem;
    padding: 0.45rem 0.55rem;
    border: 1.5px solid transparent;
}
.pe-bills-sum span {
    display: block;
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.pe-bills-sum strong {
    display: block;
    margin-top: 0.1rem;
    font-size: 1rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}
.pe-bills-sum--paid { background: #ecfdf5; border-color: #a7f3d0; }
.pe-bills-sum--paid span { color: #047857; }
.pe-bills-sum--paid strong { color: #065f46; }
.pe-bills-sum--unpaid { background: #eff6ff; border-color: #bfdbfe; }
.pe-bills-sum--unpaid span { color: #1d4ed8; }
.pe-bills-sum--unpaid strong { color: #1e3a8a; }
.pe-bills-sum--total { background: #fff7ed; border-color: #fed7aa; }
.pe-bills-sum--total span { color: #c2410c; }
.pe-bills-sum--total strong { color: #9a3412; }
.pe-bills-op {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0.85rem;
    color: #94a3b8;
    font-weight: 700;
    font-size: 0.85rem;
}
.pe-bills-table tbody tr:hover { background: #f8fafc; }
.pe-bills-due { color: #b91c1c; font-weight: 700; }

/* Side-by-side purchase layout on wide screens */
@media (min-width: 1100px) {
    .pe-bills {
        grid-template-columns: minmax(0, 1.2fr) minmax(16rem, 0.85fr);
        align-items: start;
    }
    .pe-bills > .pe-bills-header { grid-column: 1 / -1; }
    .pe-bills > form.pe-panel { grid-column: 1; grid-row: 2; }
    .pe-bills > .pe-bills-filters {
        grid-column: 2;
        grid-row: 2;
        align-self: start;
    }
    .pe-bills > .pe-panel:not(form):not(.pe-bills-filters) { grid-column: 1 / -1; }
    .pe-bills:not(:has(> form.pe-panel)) > .pe-bills-filters {
        grid-column: 1 / -1;
        grid-row: auto;
    }
    .pe-work { grid-template-columns: minmax(0, 1.2fr) minmax(16rem, 0.8fr); }
}

@media (max-width: 1100px) {
    .pe-fields.pe-fields-4 .span-3 { grid-column: span 2; }
}

@media (max-width: 900px) {
    .pe-work,
    .pe-history-split,
    .pe-balance-row { grid-template-columns: 1fr !important; }
    .pe-fields .span-2,
    .pe-fields .span-3 { grid-column: auto; }
    .pe-bills-op { display: none; }
    .pe-report-exports { margin-left: 0; width: 100%; }
    .pe-toolbar label { min-width: 100%; flex: 1 1 100%; }
}

@media (max-width: 640px) {
    html:has(.fi-body),
    html:has(.pos-app) {
        font-size: 13px !important;
    }
    .fi-body .fi-page-content {
        padding-inline: 0.55rem !important;
    }
    .pe-panel { padding: 0.5rem 0.55rem 0.55rem; }
    .pe-bills-title { font-size: 1.1rem; }
    .pe-table th,
    .pe-table td { padding: 0.35rem 0.45rem; font-size: 0.78rem; }
}


/* ============================================================
   Lock preferred visual scale: 100% browser zoom ≈ former 90% zoom
   ============================================================ */
html:has(.fi-body),
html:has(.pos-app),
html:has(.omego-site),
html:has(.attendance-app),
html:has(.waiter-app) {
    font-size: clamp(12px, 0.18vw + 10.8px, 13px) !important;
}

.fi-body {
    --sidebar-width: 20rem !important;
}

.fi-header-heading,
.pe-bills-title {
    font-size: clamp(1.05rem, 0.3vw + 0.92rem, 1.2rem) !important;
}

.pe-panel {
    padding: 0.55rem 0.65rem 0.6rem;
}

.pe-form input,
.pe-form select,
.pe-form textarea,
.pe-fields input,
.pe-fields select,
.pe-fields textarea,
.pe-toolbar input,
.pe-toolbar select,
.pe-search-select__input,
.fi-input-wrp input,
.fi-input-wrp select,
.fi-input-wrp textarea,
.fi-body input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
.fi-body select,
.fi-body textarea {
    min-height: 1.95rem !important;
    font-size: 0.8125rem !important;
}

.pe-btn,
.fi-btn {
    min-height: 1.95rem !important;
    font-size: 0.78rem !important;
    padding: 0.3rem 0.65rem !important;
}

.pe-table th,
.pe-table td,
.fi-ta-header-cell,
.fi-ta-cell {
    font-size: 0.78rem !important;
    padding: 0.35rem 0.5rem !important;
}

.pe-form label,
.pe-fields label,
.pe-toolbar label,
.fi-fo-field-wrp label {
    font-size: 0.88rem !important;
    font-weight: 750 !important;
    color: #1e293b !important;
}

.pe-panel h2 {
    font-size: 0.82rem !important;
    font-weight: 800 !important;
    color: #334155 !important;
}

.pe-bills-title,
.fi-page:has(.pe-screen) .fi-header-heading {
    font-weight: 800 !important;
}

.pe-screen { gap: 0.45rem; }
.pe-fields { gap: 0.35rem 0.45rem; }

/* Purchase: make amount unmistakable vs invoice number */
.pe-field-amount {
    padding: 0.35rem 0.45rem 0.45rem;
    border-radius: 0.45rem;
    background: #fff7ed;
    border: 1.5px solid #fdba74;
    box-shadow: inset 0 0 0 1px rgba(251, 146, 60, 0.12);
}
.pe-field-amount,
.pe-fields label.pe-field-amount {
    color: #9a3412 !important;
    font-weight: 800 !important;
    font-size: 0.9rem !important;
}
.pe-field-amount .pe-field-hint,
.pe-field-secondary .pe-field-hint {
    font-weight: 650;
    font-size: 0.68rem;
    letter-spacing: 0.01em;
    text-transform: none;
}
.pe-field-amount .pe-field-hint { color: #c2410c; }
.pe-field-amount input {
    border-color: #ea580c !important;
    background: #fff !important;
    font-weight: 700 !important;
    font-variant-numeric: tabular-nums;
    font-size: 0.95rem !important;
    min-height: 2.15rem !important;
}
.pe-field-amount input:focus {
    border-color: #c2410c !important;
    outline: 2px solid rgba(234, 88, 12, 0.22) !important;
}
.pe-field-secondary .pe-field-hint { color: #94a3b8; }
.pe-field-secondary input {
    border-style: dashed !important;
    border-color: #cbd5e1 !important;
    background: #f8fafc !important;
    font-weight: 500 !important;
}

/* Date/time values: bigger bold digits, same control height */
.pe-fields input.pe-datetime-value[type="date"],
.pe-fields input.pe-datetime-value[type="time"],
input.pe-datetime-value[type="date"],
input.pe-datetime-value[type="time"] {
    font-size: 1.05rem !important;
    font-weight: 750 !important;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
    color: #0f172a !important;
    min-height: 1.95rem !important;
    height: 1.95rem !important;
    padding-top: 0.15rem !important;
    padding-bottom: 0.15rem !important;
    line-height: 1.2 !important;
}
