:root {
    --bg: #07111f;
    --bg-accent: #10233b;
    --surface: rgba(9, 19, 34, 0.9);
    --surface-soft: rgba(14, 27, 47, 0.72);
    --surface-strong: rgba(8, 17, 31, 0.94);
    --panel: rgba(246, 249, 253, 0.96);
    --panel-soft: rgba(255, 255, 255, 0.82);
    --line: rgba(148, 163, 184, 0.18);
    --line-strong: rgba(148, 163, 184, 0.28);
    --text: #dbe7f5;
    --text-muted: #758aa2;
    --text-strong: #081222;
    --text-soft: #475d76;
    --accent: #d7b760;
    --accent-strong: #b99438;
    --accent-soft: rgba(215, 183, 96, 0.16);
    --success: #21c57d;
    --warning: #ffbf47;
    --danger: #ff6b6b;
    --info: #d7b760;
    --shadow-lg: 0 32px 80px rgba(1, 8, 18, 0.45);
    --shadow-md: 0 20px 40px rgba(7, 17, 31, 0.16);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --mono: "JetBrains Mono", "SFMono-Regular", "Menlo", monospace;
    --font-sans: "Plus Jakarta Sans", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --sans: var(--font-sans);
    --display: var(--font-sans);
    --sidebar-width: 78px;
    --content-max: 1480px;
    --section-gap: clamp(18px, 2vw, 24px);
    --theme-button-bg: linear-gradient(135deg, #0d2340 0%, #122a52 62%, #d7b760 100%);
    --theme-button-color: #f8fbff;
    --theme-button-border: rgba(215, 183, 96, 0.28);
    --theme-button-shadow: 0 18px 34px rgba(13, 35, 64, 0.20);
    --theme-button-hover-shadow: 0 24px 42px rgba(13, 35, 64, 0.24);
    --theme-button-hover-border: rgba(215, 183, 96, 0.42);
    --theme-sidebar-link-color: #95a9bf;
    --theme-sidebar-link-active-color: #f8fbff;
    --theme-sidebar-link-bg: rgba(215, 183, 96, 0.1);
    --theme-sidebar-link-border: rgba(215, 183, 96, 0.14);
    --theme-sidebar-label: #7187a0;
    --theme-sidebar-label-active: #dfeeff;
    --theme-sidebar-icon: rgba(223, 238, 255, 0.72);
    --theme-subnav-border: rgba(215, 183, 96, 0.14);
    --theme-sidebar-panel-bg: rgba(255, 255, 255, 0.03);
    --theme-sidebar-panel-border: rgba(148, 163, 184, 0.08);
    --theme-sidebar-group-toggle-bg: rgba(255, 255, 255, 0.02);
    --theme-sidebar-group-toggle-active-bg: rgba(215, 183, 96, 0.10);
    --theme-sidebar-active-dot: #d7b760;
    --theme-sidebar-active-dot-ring: rgba(215, 183, 96, 0.16);
    --theme-sidebar-focus-ring: rgba(215, 183, 96, 0.24);
    --theme-footer-bg: rgba(255, 255, 255, 0.03);
    --theme-footer-border: rgba(148, 163, 184, 0.18);
    --theme-status-pill-color: #eef7ff;
    --theme-status-pill-bg: rgba(215, 183, 96, 0.12);
    --theme-status-pill-border: rgba(215, 183, 96, 0.18);
}

body .searchable-select-shell {
    display: grid;
    gap: 8px;
}

html,
body,
button,
input,
select,
textarea {
    font-family: var(--font-sans) !important;
}

body .searchable-select-input {
    min-height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid var(--theme-input-border, rgba(148, 163, 184, 0.18));
    background: var(--theme-input-bg, rgba(10, 18, 31, 0.88));
    color: var(--theme-input-color, #ecf4ff);
    font: inherit;
}

body .searchable-select-input::placeholder {
    color: var(--theme-input-placeholder, #7f96b0);
    opacity: 0.58;
}

body .searchable-select-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(93, 183, 255, 0.12);
    background: var(--theme-input-focus-bg, rgba(8, 17, 29, 0.96));
}

body .searchable-select-summary {
    margin-top: -2px;
}

/* ==========================
   POS IPOS REFACTOR
   ========================== */
body .pos-ipos-refactor {
    --ipos-bg: #edf1f5;
    --ipos-surface: #ffffff;
    --ipos-surface-soft: #f7f9fb;
    --ipos-elevated: #ffffff;
    --ipos-elevated-soft: #f3f7fb;
    --ipos-border: #d4dde6;
    --ipos-border-strong: #c3ced9;
    --ipos-text: #233343;
    --ipos-muted: #69798a;
    --ipos-accent: #1d79c7;
    --ipos-accent-soft: #eaf3fb;
    --ipos-dark: #24374c;
    --ipos-dark-soft: #31475f;
    --ipos-button-bg: linear-gradient(180deg, #ffffff 0%, #f2f6fa 100%);
    --ipos-button-hover-bg: linear-gradient(180deg, #ffffff 0%, #edf4fb 100%);
    --ipos-primary-bg: linear-gradient(180deg, rgba(29, 121, 199, 0.18) 0%, rgba(29, 121, 199, 0.08) 100%);
    --ipos-primary-border: rgba(29, 121, 199, 0.28);
    --ipos-primary-color: #165b95;
    --ipos-success-bg: linear-gradient(180deg, rgba(33, 197, 125, 0.18) 0%, rgba(33, 197, 125, 0.08) 100%);
    --ipos-success-border: rgba(33, 197, 125, 0.24);
    --ipos-success-color: #196846;
    --ipos-danger-bg: linear-gradient(180deg, rgba(255, 107, 107, 0.16) 0%, rgba(255, 107, 107, 0.08) 100%);
    --ipos-danger-border: rgba(255, 107, 107, 0.24);
    --ipos-danger-color: #9a3030;
    --ipos-table-head-bg: rgba(17, 49, 80, 0.07);
    --ipos-table-head-color: #49637d;
    --ipos-table-row-hover: rgba(29, 121, 199, 0.07);
    --ipos-total-bg: linear-gradient(180deg, rgba(29, 121, 199, 0.08) 0%, rgba(29, 121, 199, 0.03) 100%);
    --ipos-total-border: rgba(29, 121, 199, 0.18);
    --ipos-total-value: #17304a;
    --ipos-empty-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 253, 0.96));
    --ipos-empty-border: rgba(116, 138, 165, 0.22);
    --ipos-cart-table-bg: #f8fbfe;
    --ipos-cart-row-bg: rgba(255, 255, 255, 0.96);
    --ipos-cart-row-alt-bg: rgba(243, 247, 252, 0.96);
    --ipos-cart-row-active-bg: rgba(234, 243, 251, 0.98);
    --ipos-cart-row-border: rgba(212, 221, 230, 0.72);
    --ipos-cart-input-bg: #ffffff;
    --ipos-cart-input-border: #ccd7e3;
    --ipos-cart-empty-bg: linear-gradient(180deg, rgba(251, 253, 255, 0.98), rgba(243, 247, 252, 0.96));
    --ipos-picker-window-bg: #ffffff;
    --ipos-picker-table-bg: #f9fbfd;
    --ipos-picker-row-bg: rgba(255, 255, 255, 0.98);
    --ipos-picker-row-alt-bg: rgba(243, 247, 252, 0.98);
    --ipos-picker-row-hover-bg: rgba(29, 121, 199, 0.09);
    --ipos-overlay: rgba(20, 29, 40, 0.42);
    --ipos-panel-shadow: 0 18px 34px rgba(36, 58, 84, 0.1);
    --ipos-topbar-text: #f8fbff;
    --ipos-topbar-muted: rgba(245, 248, 252, 0.76);
    --ipos-topbar-chip-bg: rgba(255, 255, 255, 0.08);
    --ipos-topbar-chip-border: rgba(255, 255, 255, 0.14);
    --ipos-topbar-button-bg: rgba(255, 255, 255, 0.08);
    --ipos-topbar-button-border: rgba(255, 255, 255, 0.18);
    margin-top: 0;
    color: var(--ipos-text);
    font-family: var(--font-sans) !important;
}

body.pos-ipos-picker-open {
    overflow: hidden;
}

body.pos-ipos-menu-open {
    overflow: hidden;
}

body .pos-ipos-refactor .pos-ipos-window {
    overflow: hidden;
    border: 1px solid var(--ipos-border-strong);
    border-radius: 18px;
    background: var(--ipos-bg);
    box-shadow: none;
}

body .pos-ipos-refactor .pos-ipos-topbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(180deg, var(--ipos-dark) 0%, var(--ipos-dark-soft) 100%);
    color: var(--ipos-topbar-text);
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
}

body .pos-ipos-refactor .pos-ipos-topbar > * {
    flex: 0 0 auto;
}

body .pos-ipos-refactor .pos-ipos-brand {
    order: 1;
}

body .pos-ipos-refactor .pos-ipos-topstats {
    order: 2;
    flex-wrap: nowrap;
    justify-content: flex-start;
}

body .pos-ipos-refactor .pos-ipos-toolbar {
    order: 3;
    width: auto;
    padding: 0;
}

body .pos-ipos-refactor .pos-ipos-topactions {
    order: 4;
    margin-left: auto;
}

body .pos-ipos-refactor .pos-ipos-brand,
body .pos-ipos-refactor .pos-ipos-topstats,
body .pos-ipos-refactor .pos-ipos-topactions,
body .pos-ipos-refactor .pos-ipos-panel-head,
body .pos-ipos-refactor .pos-ipos-cart-head-actions,
body .pos-ipos-refactor .pos-ipos-totalmeta,
body .pos-ipos-refactor .pos-ipos-pickerhead,
body .pos-ipos-refactor .pos-ipos-pickeractions {
    display: flex;
    align-items: center;
    gap: 12px;
}

body .pos-ipos-refactor .pos-ipos-brand-mark {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--ipos-topbar-chip-bg);
    border: 1px solid var(--ipos-topbar-chip-border);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

body .pos-ipos-refactor .pos-ipos-brand-copy,
body .pos-ipos-refactor .pos-ipos-draft-copy,
body .pos-ipos-refactor .pos-ipos-panel-head > div:first-child {
    display: grid;
    gap: 4px;
}

body .pos-ipos-refactor .pos-ipos-brand-copy strong {
    font-size: 1.08rem;
    color: var(--ipos-topbar-text);
    white-space: nowrap;
}

body .pos-ipos-refactor .pos-ipos-brand-copy small,
body .pos-ipos-refactor .pos-ipos-topstat span {
    color: var(--ipos-topbar-muted);
}

body .pos-ipos-refactor .pos-ipos-topstat,
body .pos-ipos-refactor .pos-ipos-toolbar-pill {
    display: grid;
    gap: 2px;
    min-width: 110px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

body .pos-ipos-refactor .pos-ipos-topstat {
    background: var(--ipos-topbar-chip-bg);
    border-color: var(--ipos-topbar-chip-border);
}

body .pos-ipos-refactor .pos-ipos-topstat strong {
    color: var(--ipos-topbar-text);
    font-size: 0.96rem;
}

body .pos-ipos-refactor .pos-ipos-header-menu {
    position: relative;
}

body .pos-ipos-refactor .pos-ipos-menu-trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid var(--ipos-topbar-button-border);
    background: var(--ipos-topbar-button-bg);
    color: var(--ipos-topbar-text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    user-select: none;
    white-space: nowrap;
}

body .pos-ipos-refactor .pos-ipos-menu-trigger::-webkit-details-marker {
    display: none;
}

body .pos-ipos-refactor .pos-ipos-menu-trigger::after {
    content: "";
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-top: -4px;
    transition: transform 0.18s ease;
}

body .pos-ipos-refactor .pos-ipos-header-menu[open] > .pos-ipos-menu-trigger::after {
    transform: rotate(225deg);
    margin-top: 4px;
}

body .pos-ipos-refactor .pos-ipos-menu-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 12;
    width: min(380px, calc(100vw - 40px));
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--ipos-border-strong);
    border-radius: 20px;
    background: var(--ipos-picker-window-bg);
    box-shadow: 0 28px 60px rgba(4, 10, 18, 0.28);
    transform: translate(-50%, -50%);
}

body .pos-ipos-refactor .pos-ipos-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 11;
    border: 0;
    padding: 0;
    background: var(--ipos-overlay);
    cursor: pointer;
}

body .pos-ipos-refactor .pos-ipos-menu-link {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid var(--ipos-border);
    border-radius: 12px;
    background: var(--ipos-surface-soft);
    color: var(--ipos-text);
    text-decoration: none;
}

body .pos-ipos-refactor .pos-ipos-menu-link strong {
    font-size: 0.95rem;
    color: var(--ipos-text);
}

body .pos-ipos-refactor .pos-ipos-menu-link small {
    color: var(--ipos-muted);
    line-height: 1.45;
}

body .pos-ipos-refactor .pos-ipos-menu-link:hover {
    border-color: var(--ipos-border-strong);
    background: var(--ipos-accent-soft);
}

body .pos-ipos-refactor .pos-ipos-close {
    min-height: 42px;
    padding: 0 18px;
    border-radius: 12px;
    border: 1px solid var(--ipos-topbar-button-border);
    background: var(--ipos-topbar-button-bg);
    color: var(--ipos-topbar-text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

body .pos-ipos-refactor .pos-ipos-toolbar {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    order: 10;
    padding: 4px 0 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
}

body .pos-ipos-refactor .pos-ipos-toolbar > * {
    flex: 0 0 auto;
}

body .pos-ipos-refactor .pos-ipos-toolbar-pill {
    background: var(--ipos-surface);
    border-color: var(--ipos-border);
    min-height: 54px;
    align-content: center;
}

body .pos-ipos-refactor .pos-ipos-toolbar-pill :is(span, strong) {
    white-space: nowrap;
}

body .pos-ipos-refactor .pos-ipos-toolbar-switcher {
    min-width: 180px;
}

body .pos-ipos-refactor .pos-ipos-toolbar-pill span,
body .pos-ipos-refactor .pos-ipos-summaryrows span,
body .pos-ipos-refactor .pos-ipos-helper,
body .pos-ipos-refactor .pos-ipos-panel-head small,
body .pos-ipos-refactor .pos-ipos-draft-copy small,
body .pos-ipos-refactor .helper-text,
body .pos-ipos-refactor .pos-ipos-pickerhead small {
    color: var(--ipos-muted);
}

body .pos-ipos-refactor .pos-ipos-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 16px;
    padding: 16px;
    align-items: start;
    min-width: 0;
}

body .pos-ipos-refactor .pos-ipos-main,
body .pos-ipos-refactor .pos-ipos-side {
    display: grid;
    gap: 16px;
    min-width: 0;
}

body .pos-ipos-refactor .pos-ipos-side {
    position: sticky;
    top: 16px;
}

body .pos-ipos-refactor .pos-ipos-panel {
    border: 1px solid var(--ipos-border-strong);
    border-radius: 16px;
    background: var(--ipos-surface);
    padding: 16px;
    box-shadow: none;
    min-width: 0;
}

body .pos-ipos-refactor .pos-ipos-panel-head {
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
}

body .pos-ipos-refactor .pos-ipos-panel-head strong,
body .pos-ipos-refactor .pos-ipos-draft-copy strong {
    font-size: 1rem;
    font-weight: 800;
    color: var(--ipos-text);
}

body .pos-ipos-refactor .pos-ipos-kicker {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ipos-accent);
}

body .pos-ipos-refactor .pos-ipos-transaction-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px 10px;
    grid-auto-flow: dense;
}

body .pos-ipos-refactor .pos-ipos-transaction-panel,
body .pos-ipos-refactor .pos-ipos-draft-panel {
    padding: 14px;
}

body .pos-ipos-refactor .pos-ipos-transaction-panel .pos-ipos-panel-head,
body .pos-ipos-refactor .pos-ipos-draft-panel .pos-ipos-panel-head {
    margin-bottom: 10px;
}

body .pos-ipos-refactor .pos-ipos-field {
    display: grid;
    gap: 4px;
    align-content: start;
}

body .pos-ipos-refactor .pos-ipos-transaction-panel {
    padding: 12px 13px;
}

body .pos-ipos-refactor .pos-ipos-transaction-panel .pos-ipos-panel-head {
    margin-bottom: 8px;
}

body .pos-ipos-refactor .pos-ipos-transaction-panel .pos-ipos-field {
    gap: 3px;
}

body .pos-ipos-refactor .pos-ipos-field-full {
    grid-column: 1 / -1;
}

body .pos-ipos-refactor .pos-ipos-transaction-panel :is(
    .pos-ipos-field-transaction-no,
    .pos-ipos-field-transaction-date,
    .pos-ipos-field-homebase,
    .pos-ipos-field-transaction-type,
    .pos-ipos-field-customer-name,
    .pos-ipos-field-customer-phone,
    .pos-ipos-field-customer,
    .pos-ipos-field-cashier
) {
    grid-column: span 1;
}

body .pos-ipos-refactor .pos-ipos-field-transaction-no {
    grid-column: 1;
    grid-row: 1;
}

body .pos-ipos-refactor .pos-ipos-field-transaction-date {
    grid-column: 2;
    grid-row: 1;
}

body .pos-ipos-refactor .pos-ipos-field-homebase {
    grid-column: 3;
    grid-row: 1;
}

body .pos-ipos-refactor .pos-ipos-field-transaction-type {
    grid-column: 4;
    grid-row: 1;
}

body .pos-ipos-refactor .pos-ipos-field-customer-name {
    grid-column: 1;
    grid-row: 2;
}

body .pos-ipos-refactor .pos-ipos-field-customer-phone {
    grid-column: 2;
    grid-row: 2;
}

body .pos-ipos-refactor .pos-ipos-field-customer {
    grid-column: 3;
    grid-row: 2;
}

body .pos-ipos-refactor .pos-ipos-field-cashier {
    grid-column: 4;
    grid-row: 2;
}

body .pos-ipos-refactor .pos-ipos-select-search {
    display: grid;
    gap: 6px;
    min-width: 0;
}

body .pos-ipos-refactor .pos-ipos-transaction-panel .pos-ipos-select-search {
    gap: 4px;
}

body .pos-ipos-refactor .pos-ipos-field-dualcontrol,
body .pos-ipos-refactor .pos-ipos-field-dualcontrol .pos-ipos-select-search {
    min-width: 0;
}

body .pos-ipos-refactor .pos-ipos-transaction-panel .pos-ipos-field-dualcontrol .pos-ipos-select-search {
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    align-items: center;
    gap: 6px;
}

body .pos-ipos-refactor .pos-ipos-transaction-panel .pos-ipos-field-dualcontrol .pos-ipos-select-search :is(
    input[type="search"],
    select
) {
    min-height: 36px;
    min-width: 0;
    max-width: 100%;
}

body .pos-ipos-refactor .pos-ipos-transaction-panel .pos-ipos-field-dualcontrol .pos-ipos-select-search select {
    text-overflow: ellipsis;
}

body .pos-ipos-refactor .pos-ipos-field-member-status .helper-text {
    margin: 0;
    line-height: 1.35;
}

body .pos-ipos-refactor #posCustomerSearchSummary,
body .pos-ipos-refactor #posCashierSearchSummary,
body .pos-ipos-refactor .pos-ipos-field-member-status {
    display: none !important;
}

body .pos-ipos-refactor .pos-ipos-select-search input[type="search"] {
    min-height: 38px;
    padding-block: 7px;
}

body .crm-smart-select {
    display: grid;
    gap: 8px;
}

body .crm-smart-select input[type="search"] {
    min-height: 40px;
}

body .crm-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(8, 18, 32, 0.42);
}

body .crm-confirm-modal[hidden] {
    display: none;
}

body .warehouse-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(8, 18, 32, 0.42);
}

body .warehouse-confirm-modal[hidden] {
    display: none;
}

body .crm-confirm-dialog {
    width: min(420px, 100%);
    display: grid;
    gap: 12px;
    padding: 20px;
    border: 1px solid rgba(203, 213, 225, 0.86);
    border-radius: 18px;
    background: #ffffff;
    color: #10213a;
    box-shadow: 0 24px 64px rgba(8, 18, 32, 0.2);
}

body .crm-confirm-dialog h2,
body .crm-confirm-dialog p {
    margin: 0;
}

body .crm-confirm-dialog h2 {
    font-size: 1.05rem;
}

body .crm-confirm-dialog p {
    color: #64748b;
    line-height: 1.5;
}

body .warehouse-confirm-dialog {
    width: min(420px, 100%);
    display: grid;
    gap: 12px;
    padding: 20px;
    border: 1px solid rgba(203, 213, 225, 0.86);
    border-radius: 18px;
    background: #ffffff;
    color: #10213a;
    box-shadow: 0 24px 64px rgba(8, 18, 32, 0.2);
}

body .warehouse-confirm-dialog h2,
body .warehouse-confirm-dialog p {
    margin: 0;
}

body .warehouse-confirm-dialog h2 {
    font-size: 1.05rem;
}

body .warehouse-confirm-dialog p {
    color: #64748b;
    line-height: 1.5;
}

body .pos-ipos-refactor .pos-ipos-field label,
body .pos-ipos-refactor .pos-ipos-summary-input span {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--ipos-text);
}

body .pos-ipos-refactor input,
body .pos-ipos-refactor select,
body .pos-ipos-refactor textarea {
    width: 100%;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid var(--ipos-border);
    border-radius: 12px;
    background: var(--ipos-elevated);
    color: var(--ipos-text);
    box-shadow: none;
    font: inherit;
}

body .pos-ipos-refactor input[readonly] {
    background: var(--ipos-surface-soft);
}

body .pos-ipos-refactor textarea {
    min-height: 98px;
    resize: vertical;
}

body .pos-ipos-refactor .pos-vintage-button,
body .pos-ipos-refactor .pos-vintage-mini,
body .pos-ipos-refactor .pos-payment-method,
body .pos-ipos-refactor .danger-button,
body .pos-ipos-refactor .ghost-button {
    min-height: 40px;
    border-radius: 12px;
    border: 1px solid var(--ipos-border-strong);
    background: var(--ipos-button-bg);
    color: var(--ipos-text);
    box-shadow: none;
    font-size: 0.8rem;
    font-weight: 700;
}

body .pos-ipos-refactor .pos-vintage-button.is-primary {
    border-color: var(--ipos-primary-border);
    background: var(--ipos-primary-bg);
    color: var(--ipos-primary-color);
}

body .pos-ipos-refactor .pos-vintage-button.is-success {
    border-color: var(--ipos-success-border);
    background: var(--ipos-success-bg);
    color: var(--ipos-success-color);
}

body .pos-ipos-refactor .pos-vintage-mini.danger,
body .pos-ipos-refactor .danger-button {
    border-color: var(--ipos-danger-border);
    background: var(--ipos-danger-bg);
    color: var(--ipos-danger-color);
}

body .pos-ipos-refactor .pos-ipos-draft-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) 110px 150px 170px auto;
    gap: 12px;
    align-items: end;
}

body .pos-ipos-refactor .pos-ipos-draft-panel .pos-ipos-draft-grid {
    gap: 10px;
}

body .pos-ipos-refactor .pos-ipos-transaction-panel input,
body .pos-ipos-refactor .pos-ipos-transaction-panel select,
body .pos-ipos-refactor .pos-ipos-draft-panel input {
    min-height: 38px;
    padding-block: 7px;
}

body .pos-ipos-refactor .pos-ipos-stockbox {
    display: grid;
    gap: 2px;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid var(--ipos-border);
    border-radius: 12px;
    background: var(--ipos-surface-soft);
}

body .pos-ipos-refactor .pos-ipos-stockbox strong {
    font-size: 1rem;
}

body .pos-ipos-refactor .pos-ipos-draft-actions {
    display: grid;
}

body .pos-ipos-refactor .pos-ipos-quicksearch {
    display: grid;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--ipos-border);
}

body .pos-ipos-refactor .pos-ipos-quicksearch-form {
    display: grid;
    gap: 10px;
}

body .pos-ipos-refactor .pos-ipos-quicksearch-copy {
    display: grid;
    gap: 4px;
}

body .pos-ipos-refactor .pos-ipos-quicksearch-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

body .pos-ipos-refactor .pos-ipos-quicksearch-controls .pos-vintage-button {
    min-width: 132px;
}

body .pos-ipos-refactor .pos-ipos-quicksearch-results {
    display: grid;
    gap: 10px;
    max-height: 340px;
    overflow: auto;
    padding: 10px;
    border: 1px solid var(--ipos-border);
    border-radius: 16px;
    background: color-mix(in srgb, var(--ipos-surface-soft) 88%, transparent);
    align-content: start;
    scrollbar-gutter: stable;
}

body .pos-ipos-refactor .pos-ipos-quicksearch-result {
    width: 100%;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(110px, auto);
    align-items: start;
    gap: 14px;
    min-height: 88px;
    height: auto;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--ipos-border);
    background: linear-gradient(180deg, var(--ipos-elevated) 0%, var(--ipos-elevated-soft) 100%);
    color: var(--ipos-text);
    text-align: left;
    white-space: normal;
    overflow: visible;
    transition: border-color 160ms ease, background 160ms ease;
}

body .pos-ipos-refactor .pos-ipos-quicksearch-result:hover,
body .pos-ipos-refactor .pos-ipos-quicksearch-result:focus-visible {
    border-color: var(--ipos-primary-border);
    background: linear-gradient(180deg, var(--ipos-elevated) 0%, var(--ipos-accent-soft) 100%);
}

body .pos-ipos-refactor .pos-ipos-quicksearch-result.is-active {
    border-color: var(--ipos-primary-border);
    background: linear-gradient(180deg, var(--ipos-elevated) 0%, var(--ipos-accent-soft) 100%);
    box-shadow: inset 0 0 0 1px rgba(49, 109, 247, 0.18);
}

body .pos-ipos-refactor .pos-ipos-quicksearch-result-copy {
    display: grid;
    gap: 8px;
    min-width: 0;
    align-content: start;
}

body .pos-ipos-refactor .pos-ipos-quicksearch-result-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

body .pos-ipos-refactor .pos-ipos-quicksearch-result-code {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid var(--ipos-border);
    background: color-mix(in srgb, var(--ipos-surface-soft) 82%, transparent);
    color: var(--ipos-muted);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

body .pos-ipos-refactor .pos-ipos-quicksearch-result-title {
    display: block;
    max-width: 100%;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

body .pos-ipos-refactor .pos-ipos-quicksearch-result-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-width: 0;
    overflow: visible;
}

body .pos-ipos-refactor .pos-ipos-quicksearch-result-chip {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    max-width: 100%;
    padding: 0 8px;
    border-radius: 999px;
    border: 1px solid var(--ipos-border);
    background: color-mix(in srgb, var(--ipos-accent-soft) 45%, transparent);
    color: var(--ipos-muted);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body .pos-ipos-refactor .pos-ipos-quicksearch-result-meta {
    display: grid;
    justify-items: end;
    align-content: space-between;
    gap: 8px;
    min-width: 96px;
    width: auto;
    justify-self: end;
    align-self: stretch;
    padding-top: 0;
    border-top: 0;
    font-size: 0.74rem;
    font-weight: 700;
}

body .pos-ipos-refactor .pos-ipos-quicksearch-result-price {
    display: block;
    min-width: 0;
    text-align: right;
    white-space: nowrap;
    line-height: 1.2;
    font-size: 0.92rem;
    font-weight: 800;
}

body .pos-ipos-refactor .pos-ipos-quicksearch-empty {
    padding: 14px 12px;
    border-radius: 14px;
    border: 1px dashed var(--ipos-empty-border);
    background: var(--ipos-empty-bg);
    color: var(--ipos-muted);
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
}

body .pos-ipos-refactor .pos-ipos-cartbox {
    margin: 0;
    min-height: 420px;
    max-height: 520px;
    overflow: auto;
    border-radius: 14px;
    border-color: var(--ipos-border);
    background: var(--ipos-surface);
    box-shadow: none;
}

body .pos-ipos-refactor .pos-ipos-log-shell {
    margin: 0 16px 16px;
    padding: 14px;
}

body .pos-ipos-refactor .pos-ipos-log-head-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

body .pos-ipos-refactor .pos-ipos-log-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

body .pos-ipos-refactor .pos-ipos-log-card {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid var(--ipos-border);
    border-radius: 14px;
    background: var(--ipos-surface-soft);
}

body .pos-ipos-refactor .pos-ipos-log-card span {
    color: var(--ipos-muted);
    font-size: 0.76rem;
    font-weight: 700;
}

body .pos-ipos-refactor .pos-ipos-log-card strong {
    color: var(--ipos-text);
    font-size: 0.98rem;
}

body .pos-ipos-refactor .pos-ipos-log-tablebox {
    margin: 0;
    max-height: 420px;
    overflow: auto;
    border-radius: 14px;
    border-color: var(--ipos-border);
    background: var(--ipos-surface);
}

body .pos-ipos-refactor .pos-ipos-logtable,
body [data-pos-sales-log="1"] table {
    min-width: 1180px;
}

body [data-pos-sales-log="1"] tbody tr[data-pos-sales-log-row="1"] td {
    border-bottom: 1px solid rgba(116, 138, 165, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
    background: rgba(255, 255, 255, 0.72);
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

body [data-pos-sales-log="1"] tbody tr[data-pos-sales-log-row="1"]:nth-child(even) td {
    background: rgba(244, 248, 252, 0.94);
}

body [data-pos-sales-log="1"] tbody tr[data-pos-sales-log-row="1"]:hover td {
    background: rgba(234, 243, 251, 0.98);
    border-bottom-color: rgba(33, 137, 255, 0.18);
}

body .pos-sales-log-items {
    min-width: 240px;
}

body .pos-sales-log-item-sale-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    padding: 8px 10px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.08);
}

body .pos-sales-log-item-sale-total span {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-soft);
}

body .pos-sales-log-item-sale-total strong {
    font-size: 0.88rem;
    line-height: 1.1;
    white-space: nowrap;
}

body .pos-sales-log-itemline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(174, 188, 204, 0.55);
}

body .pos-sales-log-itemline:last-child {
    border-bottom: 0;
}

body .pos-sales-log-itemline strong {
    display: block;
    font-size: 0.82rem;
    line-height: 1.2;
    max-width: 320px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body .pos-sales-log-itemline .helper-text {
    font-size: 0.74rem;
    line-height: 1.2;
    max-width: 320px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body .pos-ipos-refactor .pos-ipos-logtable td,
body [data-pos-sales-log="1"] table td {
    padding: 10px 12px;
    vertical-align: middle;
}

body .pos-ipos-refactor .pos-ipos-logtable td strong,
body [data-pos-sales-log="1"] table td strong {
    font-size: 0.9rem;
    line-height: 1.2;
}

body .pos-sales-log-date-cell {
    min-width: 116px;
}

body .pos-sales-log-date-label,
body .pos-sales-log-time-label {
    display: block;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

body .pos-sales-log-date-label {
    letter-spacing: 0.01em;
}

body .pos-sales-log-time-label {
    margin-top: 4px;
}

body .pos-ipos-refactor .pos-ipos-logtable td .helper-text,
body [data-pos-sales-log="1"] table td .helper-text {
    font-size: 0.78rem;
    line-height: 1.2;
}

body .pos-ipos-refactor .pos-ipos-logtable .pos-sales-log-status,
body [data-pos-sales-log="1"] table .pos-sales-log-status {
    min-height: 28px;
    padding: 0 9px;
    font-size: 0.68rem;
}

body .pos-sales-log-itemline[data-item-status="partial_void"] strong,
body .pos-sales-log-itemline[data-item-status="voided"] strong {
    color: #c6711a;
}

body .pos-sales-log-itemline[data-item-status="voided"] strong {
    color: #b84545;
}

body .pos-sales-log-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
}

body .pos-sales-log-actions .ghost-button,
body .pos-sales-log-actions .btn-link,
body .pos-sales-log-actions .pos-vintage-mini {
    justify-content: center;
    text-align: center;
}

body .pos-sales-log-actions .ghost-button {
    min-height: 34px;
    padding: 6px 12px;
    font-size: 0.82rem;
    border-radius: 12px;
}

body .pos-sales-log-actions .pos-sales-log-action-trigger {
    min-width: 64px;
}

body .pos-sales-log-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(138, 156, 176, 0.32);
    background: rgba(216, 231, 244, 0.55);
    color: #31506f;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body .pos-sales-log-status[data-tone="green"] {
    border-color: rgba(71, 145, 89, 0.28);
    background: rgba(125, 205, 147, 0.16);
    color: #245b34;
}

body .pos-sales-log-status[data-tone="orange"] {
    border-color: rgba(205, 143, 72, 0.3);
    background: rgba(255, 193, 120, 0.18);
    color: #8f4d09;
}

body .pos-sales-log-status[data-tone="red"] {
    border-color: rgba(189, 80, 80, 0.32);
    background: rgba(224, 122, 122, 0.16);
    color: #9a3030;
}

body [data-pos-sales-log-preview="1"] .pos-ipos-logtable {
    min-width: 1040px;
}

body [data-pos-sales-log-preview="1"] .pos-ipos-logtable td {
    padding: 8px 10px;
}

body [data-pos-sales-log-preview="1"] .pos-ipos-logtable td strong {
    font-size: 0.82rem;
}

body [data-pos-sales-log-preview="1"] .pos-ipos-logtable td .helper-text {
    font-size: 0.7rem;
    line-height: 1.1;
}

body [data-pos-sales-log-preview="1"] .pos-sales-log-items {
    min-width: 200px;
}

body [data-pos-sales-log-preview="1"] .pos-sales-log-item-sale-total {
    margin-bottom: 8px;
    padding: 6px 8px;
}

body [data-pos-sales-log-preview="1"] .pos-sales-log-item-sale-total span {
    font-size: 0.62rem;
}

body [data-pos-sales-log-preview="1"] .pos-sales-log-item-sale-total strong {
    font-size: 0.8rem;
}

body [data-pos-sales-log-preview="1"] .pos-sales-log-itemline {
    padding: 4px 0;
    gap: 8px;
}

body [data-pos-sales-log-preview="1"] .pos-sales-log-itemline .helper-text {
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body [data-pos-sales-log-preview="1"] .pos-sales-log-actions {
    gap: 6px;
}

body [data-pos-sales-log-preview="1"] .pos-sales-log-actions .pos-vintage-mini {
    min-height: 28px;
    padding: 4px 10px;
    font-size: 0.72rem;
}

body [data-pos-sales-log-preview="1"] .pos-sales-log-status {
    min-height: 24px;
    padding: 0 8px;
    font-size: 0.62rem;
}

body .pos-ipos-refactor .pos-ipos-carttable,
body .pos-ipos-refactor .pos-ipos-pickertable {
    min-width: 100%;
}

body .pos-ipos-refactor .ops-queue-table thead th,
body .pos-ipos-refactor .pos-ipos-pickertable thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--ipos-table-head-bg);
    color: var(--ipos-table-head-color);
    font-size: 0.79rem;
    font-weight: 800;
}

body .pos-ipos-refactor .ops-queue-table th,
body .pos-ipos-refactor .ops-queue-table td,
body .pos-ipos-refactor .pos-ipos-pickertable th,
body .pos-ipos-refactor .pos-ipos-pickertable td {
    padding: 11px 10px;
    border-color: var(--ipos-border);
    vertical-align: middle;
    font-size: 0.8rem;
}

body .pos-ipos-refactor .ops-queue-table tbody tr:hover td,
body .pos-ipos-refactor .pos-classic-browser-row:hover td {
    background: var(--ipos-table-row-hover);
}

body .pos-ipos-refactor .pos-vintage-cart-row.is-active td,
body .pos-ipos-refactor .pos-classic-browser-row.is-active td {
    background: var(--ipos-accent-soft);
}

body .pos-ipos-refactor .pos-vintage-cart-row {
    cursor: pointer;
}

body .pos-ipos-refactor .pos-order-stepper {
    gap: 6px;
}

body .pos-ipos-refactor .pos-order-stepper button {
    width: 30px;
    min-width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid var(--ipos-border);
    background: var(--ipos-surface-soft);
    box-shadow: none;
}

body .pos-ipos-refactor .pos-inline-qty {
    width: 62px;
    min-height: 30px;
    padding: 4px 6px;
    text-align: center;
    font-weight: 700;
}

body .pos-ipos-refactor .pos-cart-price-editor {
    display: grid;
    gap: 4px;
}

body .pos-ipos-refactor .pos-inline-price {
    width: 118px;
    min-height: 34px;
    padding: 6px 10px;
    text-align: right;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

body .pos-ipos-refactor .pos-cart-price-editor small {
    color: var(--ipos-muted);
    font-size: 0.72rem;
    font-weight: 600;
}

body .pos-ipos-refactor .pos-cart-price-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

body .pos-ipos-refactor .pos-cart-price-badge {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 0 8px;
    border-radius: 999px;
    border: 1px solid var(--ipos-success-border);
    background: var(--ipos-success-bg);
    color: var(--ipos-success-color);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

body .pos-ipos-refactor .pos-ipos-counter,
body .pos-ipos-refactor .pos-ipos-pagebadge {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--ipos-border);
    background: var(--ipos-surface-soft);
    font-size: 0.78rem;
    font-weight: 800;
}

body .pos-ipos-refactor .pos-ipos-payment-panel {
    gap: 14px;
}

body .pos-ipos-refactor .pos-ipos-totalbox,
body .pos-ipos-refactor .pos-ipos-payment-panel,
body .pos-ipos-refactor .pos-ipos-methods {
    display: grid;
    gap: 12px;
    min-width: 0;
}

body .pos-ipos-refactor .pos-ipos-split-toggle {
    display: grid;
    gap: 6px;
    padding: 10px 12px;
    border: 1px dashed var(--ipos-border);
    border-radius: 12px;
    background: color-mix(in srgb, var(--ipos-surface) 82%, transparent);
}

body .pos-ipos-refactor .pos-ipos-split-toggle-main {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

body .pos-ipos-refactor .pos-ipos-split-toggle input[type="checkbox"] {
    inline-size: 16px;
    block-size: 16px;
    accent-color: var(--ipos-primary);
}

body .pos-ipos-refactor .pos-ipos-split-panel {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--ipos-border);
    border-radius: 14px;
    background: var(--ipos-surface);
}

body .pos-ipos-refactor .pos-ipos-split-list {
    display: grid;
    gap: 8px;
}

body .pos-ipos-refactor .pos-ipos-split-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) auto;
    gap: 8px;
    align-items: center;
}

body .pos-ipos-refactor .pos-ipos-split-row select,
body .pos-ipos-refactor .pos-ipos-split-row input {
    min-width: 0;
}

body .pos-ipos-refactor .pos-ipos-split-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

body .pos-ipos-refactor .pos-ipos-split-summary.is-valid {
    color: var(--ipos-success, #2f7d32);
}

body .pos-ipos-refactor .pos-ipos-split-summary.is-warning {
    color: var(--ipos-warn, #b26a00);
}

body .pos-ipos-refactor .pos-ipos-split-summary.is-error {
    color: var(--ipos-danger, #c0392b);
}

body .pos-ipos-refactor .pos-ipos-totalbox {
    padding: 16px;
    border-radius: 16px;
    background: var(--ipos-total-bg);
    border: 1px solid var(--ipos-total-border);
}

body .pos-ipos-refactor .pos-ipos-totalbox > strong {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: clip;
    font-size: clamp(2.1rem, 6vw, 4.8rem);
    line-height: 0.92;
    letter-spacing: -0.06em;
    font-variant-numeric: tabular-nums lining-nums;
    color: var(--ipos-total-value);
}

body .pos-ipos-refactor .pos-ipos-totalmeta strong {
    font-size: 1rem;
}

body .pos-ipos-refactor .pos-ipos-summaryrows {
    display: grid;
    border: 1px solid var(--ipos-border);
    border-radius: 14px;
    overflow: hidden;
    background: var(--ipos-surface);
    min-width: 0;
}

body .pos-ipos-refactor .pos-ipos-summaryrows > div,
body .pos-ipos-refactor .pos-ipos-summary-input {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 50px;
    padding: 0 14px;
    border-bottom: 1px solid var(--ipos-border);
    min-width: 0;
}

body .pos-ipos-refactor .pos-ipos-summaryrows > .pos-ipos-summary-heading {
    justify-content: flex-start;
    min-height: 30px;
    padding-inline: 12px;
    background: var(--ipos-surface-soft);
}

body .pos-ipos-refactor .pos-ipos-summaryrows > .pos-ipos-summary-heading span {
    color: var(--ipos-muted);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

body .pos-ipos-refactor .pos-ipos-summaryrows > div:last-child {
    border-bottom: 0;
}

body .pos-ipos-refactor .pos-ipos-summary-input input {
    max-width: 170px;
    min-height: 36px;
    text-align: right;
}

body .pos-ipos-refactor .pos-ipos-adjustment-input {
    align-items: flex-start;
}

body .pos-ipos-refactor .pos-ipos-adjustment-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    justify-content: flex-end;
    min-width: 0;
}

body .pos-ipos-refactor .pos-ipos-adjustment-controls select {
    width: 76px;
    min-width: 76px;
}

body .pos-ipos-refactor .pos-ipos-adjustment-controls input {
    max-width: 120px;
}

body .pos-ipos-refactor .pos-ipos-summaryrows strong {
    font-size: 0.95rem;
}

body .pos-ipos-refactor .pos-ipos-summaryrows .is-accent strong {
    color: var(--ipos-accent);
}

body .pos-ipos-refactor .pos-ipos-methodgrid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    align-items: stretch;
}

body .pos-ipos-refactor .pos-ipos-methodgrid .pos-payment-method {
    width: 100%;
    min-width: 0;
    padding-inline: 10px;
    justify-content: center;
    white-space: nowrap;
    font-size: 0.82rem;
    letter-spacing: 0.03em;
}

body .pos-ipos-refactor .pos-payment-method.is-active {
    border-color: var(--ipos-primary-border);
    background: var(--ipos-primary-bg);
    color: var(--ipos-primary-color);
}

body .pos-ipos-refactor .pos-ipos-shortcuts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

body .pos-ipos-refactor .pos-ipos-shortcuts .pos-ipos-shortcut-exact {
    border-color: #d39b12;
    background: linear-gradient(180deg, #ffe589 0%, #f7c94a 100%);
    color: #5f3900;
    box-shadow: 0 8px 18px rgba(211, 155, 18, 0.18);
}

body .pos-ipos-refactor .pos-ipos-shortcuts .pos-ipos-shortcut-exact:hover,
body .pos-ipos-refactor .pos-ipos-shortcuts .pos-ipos-shortcut-exact:focus-visible {
    border-color: #b98008;
    background: linear-gradient(180deg, #ffeeb0 0%, #ffcf57 100%);
    color: #4f2e00;
}

body .pos-ipos-refactor .pos-ipos-checkout {
    width: 100%;
    min-height: 48px;
    font-size: 0.92rem;
}

body.pos-payment-modal-open {
    overflow: hidden !important;
}

body.pos-ipos-refactor.pos-payment-modal-open,
body.pos-terminal-clean.pos-ipos-refactor.pos-payment-modal-open {
    background: #f7fafc !important;
    overflow-x: hidden !important;
}

body.pos-ipos-refactor.pos-payment-modal-open::before,
body.pos-ipos-refactor.pos-payment-modal-open::after,
body.pos-terminal-clean.pos-ipos-refactor.pos-payment-modal-open::before,
body.pos-terminal-clean.pos-ipos-refactor.pos-payment-modal-open::after {
    content: none !important;
    display: none !important;
}

body .pos-ipos-refactor .pos-ipos-payment-dock {
    align-self: start;
}

body .pos-ipos-refactor .pos-ipos-payment-compact {
    position: sticky;
    top: 14px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
    border-color: var(--ipos-border-strong);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

body .pos-ipos-refactor .pos-ipos-payment-compact > div {
    display: grid;
    gap: 3px;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid var(--ipos-border);
    border-radius: 12px;
    background: var(--ipos-surface-soft);
}

body .pos-ipos-refactor .pos-ipos-payment-compact span {
    color: var(--ipos-muted);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

body .pos-ipos-refactor .pos-ipos-payment-compact strong {
    overflow: hidden;
    color: var(--ipos-text);
    font-size: 0.9rem;
    font-weight: 900;
    line-height: 1.1;
    white-space: nowrap;
    text-overflow: ellipsis;
}

body .pos-ipos-refactor .pos-ipos-payment-compact .pos-ipos-pay-open {
    grid-column: 1 / -1;
    min-height: 42px;
}

body .pos-ipos-refactor .pos-payment-modal[hidden] {
    display: none !important;
}

body .pos-ipos-refactor .pos-payment-modal {
    position: fixed;
    inset: 0;
    z-index: 520;
    display: grid;
    place-items: center;
    padding: 12px;
    overflow: hidden;
    background: #f7fafc;
}

body .pos-ipos-refactor .pos-payment-modal-backdrop {
    position: fixed;
    inset: 0;
    border: 0;
    border-radius: 0;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    cursor: default;
}

body .pos-ipos-refactor .pos-payment-modal::before,
body .pos-ipos-refactor .pos-payment-modal::after,
body .pos-ipos-refactor .pos-payment-modal-backdrop::before,
body .pos-ipos-refactor .pos-payment-modal-backdrop::after,
body .pos-ipos-refactor .pos-payment-modal-window::before,
body .pos-ipos-refactor .pos-payment-modal-window::after {
    content: none !important;
    display: none !important;
}

body .pos-ipos-refactor .pos-payment-modal-window {
    position: relative;
    z-index: 1;
    width: min(520px, calc(100vw - 28px));
    height: min(720px, calc(100dvh - 24px));
    max-height: calc(100dvh - 24px);
    max-width: 100%;
    min-width: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid rgba(195, 211, 229, 0.96);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 28px 72px rgba(7, 20, 39, 0.30);
}

body .pos-ipos-refactor .pos-payment-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px 12px;
    border-bottom: 1px solid var(--ipos-border);
}

body .pos-ipos-refactor .pos-payment-modal-head h3 {
    margin: 3px 0 0;
    color: var(--ipos-text);
    font-size: 1.24rem;
    line-height: 1.05;
    letter-spacing: -0.035em;
}

body .pos-ipos-refactor .pos-payment-modal-close {
    inline-size: 38px;
    block-size: 38px;
    border: 1px solid var(--ipos-border);
    border-radius: 999px;
    background: var(--ipos-surface-soft);
    color: var(--ipos-text);
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
}

body .pos-ipos-refactor .pos-payment-modal-body {
    min-height: 0;
    min-width: 0;
    overflow: auto;
    overflow-x: hidden;
    padding: 14px;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    -webkit-overflow-scrolling: touch;
}

body .pos-ipos-refactor .pos-payment-modal .pos-ipos-payment-panel {
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
    position: relative;
    overflow: visible;
}

body .pos-ipos-refactor .pos-payment-modal .pos-ipos-payment-panel::before,
body .pos-ipos-refactor .pos-payment-modal .pos-ipos-payment-panel::after,
body .pos-ipos-refactor .pos-payment-modal .pos-ipos-totalbox::before,
body .pos-ipos-refactor .pos-payment-modal .pos-ipos-totalbox::after {
    content: none !important;
    display: none !important;
}

body .pos-ipos-refactor .pos-payment-modal .pos-ipos-totalbox {
    padding: 13px 14px;
    border-radius: 16px;
}

body .pos-ipos-refactor .pos-payment-modal .pos-ipos-totalbox > strong {
    font-size: clamp(2rem, 7vw, 3.35rem);
}

body .pos-ipos-refactor .pos-payment-modal .pos-ipos-summaryrows > div,
body .pos-ipos-refactor .pos-payment-modal .pos-ipos-summary-input {
    min-height: 42px;
    padding-inline: 12px;
}

body .pos-ipos-refactor .pos-payment-modal .pos-ipos-methodgrid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

body .pos-ipos-refactor .pos-payment-modal .pos-ipos-shortcuts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body .pos-ipos-refactor .pos-payment-modal .pos-ipos-checkout {
    min-height: 46px;
}

body .pos-ipos-refactor #posDebitBankModal {
    z-index: 760;
    padding: 18px;
}

body .pos-ipos-refactor #posDebitBankModal .picker-modal-backdrop {
    background: rgba(7, 20, 39, 0.34);
    backdrop-filter: blur(8px);
}

body .pos-ipos-refactor #posDebitBankModal .picker-modal-panel {
    width: min(440px, calc(100vw - 32px));
    max-height: min(620px, calc(100dvh - 24px));
    overflow: auto;
    gap: 12px;
    padding: 18px;
    border-radius: 22px;
    border-color: rgba(195, 211, 229, 0.96);
    background: #ffffff;
    box-shadow: 0 28px 72px rgba(7, 20, 39, 0.32);
}

body .pos-ipos-refactor #posDebitBankModal .section-title {
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 0;
}

body .pos-ipos-refactor #posDebitBankModal .section-title h2 {
    margin: 0;
    color: var(--ipos-text);
    font-size: 1.1rem;
    letter-spacing: -0.025em;
}

body .pos-ipos-refactor #posDebitBankModal .section-title p {
    margin-top: 4px;
    font-size: 0.78rem;
    line-height: 1.45;
}

body .pos-ipos-refactor #posDebitBankModal .pos-ipos-bank-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

body .pos-ipos-refactor #posDebitBankModal .pos-ipos-summary-input {
    min-height: auto;
    padding: 10px;
}

body .pos-ipos-refactor #posDebitBankModal .picker-pagination {
    gap: 8px;
    margin-top: 0;
}

body .pos-ipos-refactor .pos-ipos-helper {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.5;
}

body .pos-ipos-refactor .ops-queue-empty,
body .pos-ipos-refactor .empty-state {
    padding: 30px 14px;
    color: var(--ipos-muted);
    text-align: center;
}

body .pos-ipos-refactor .pos-ipos-picker {
    position: fixed;
    inset: 0;
    z-index: 380;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 4vw, 28px);
    background: var(--ipos-overlay);
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

body .pos-ipos-refactor .pos-ipos-picker-window {
    width: min(1200px, calc(100vw - 56px));
    max-height: calc(100vh - 56px);
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid var(--ipos-border-strong);
    background: var(--ipos-picker-window-bg);
    box-shadow: var(--ipos-panel-shadow);
    margin: auto;
    align-self: center;
    justify-self: center;
}

body .pos-ipos-refactor .pos-ipos-pickerhead {
    justify-content: space-between;
    align-items: flex-start;
}

body .pos-ipos-refactor .pos-ipos-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

body .pos-ipos-refactor .pos-ipos-pickerbrowsertools {
    display: grid;
    gap: 12px;
    justify-items: center;
}

body .pos-ipos-refactor .pos-ipos-pickerbrowsertools .pos-ipos-search {
    width: min(980px, 100%);
    margin-inline: auto;
}

body .pos-ipos-refactor .pos-ipos-categorystrip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: min(1120px, 100%);
    justify-content: center;
    margin-inline: auto;
}

body .pos-ipos-refactor .pos-ipos-categorystrip button {
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--ipos-border);
    background: var(--ipos-surface-soft);
    color: var(--ipos-text);
    font: inherit;
    font-size: 0.76rem;
}

body .pos-ipos-refactor .pos-ipos-categorystrip button.is-active {
    border-color: var(--ipos-primary-border);
    background: var(--ipos-primary-bg);
    color: var(--ipos-primary-color);
}

body .pos-ipos-refactor .pos-ipos-pickertablebox {
    margin: 0;
    max-height: 56vh;
    overflow: auto;
    border-radius: 14px;
    border-color: var(--ipos-border);
    background: var(--ipos-picker-table-bg);
}

body .pos-ipos-refactor .pos-ipos-pickertable,
body .pos-ipos-refactor .pos-ipos-pickertable tbody {
    background: var(--ipos-picker-table-bg);
}

body .pos-ipos-refactor .pos-ipos-pickertable tbody tr td {
    background: var(--ipos-picker-row-bg);
    color: var(--ipos-text);
}

body .pos-ipos-refactor .pos-ipos-pickertable tbody tr:nth-child(even) td {
    background: var(--ipos-picker-row-alt-bg);
}

body .pos-ipos-refactor .pos-ipos-pickertable tbody tr:hover td,
body .pos-ipos-refactor .pos-ipos-pickertable tbody tr:focus-within td {
    background: var(--ipos-picker-row-hover-bg);
}

body .pos-ipos-refactor .pos-ipos-pickertable tbody td :is(strong, small, .mono, .empty-state) {
    color: inherit;
}

body .pos-ipos-refactor .pos-ipos-pickerpagination {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

body .pos-ipos-refactor .pos-terminal-hiddentools {
    display: none;
}

@media (max-width: 1280px) {
    body .pos-ipos-refactor .pos-ipos-transaction-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body .pos-ipos-refactor .pos-ipos-transaction-panel :is(
        .pos-ipos-field-transaction-no,
        .pos-ipos-field-transaction-date,
        .pos-ipos-field-homebase,
        .pos-ipos-field-transaction-type,
        .pos-ipos-field-customer-name,
        .pos-ipos-field-customer-phone,
        .pos-ipos-field-customer,
        .pos-ipos-field-cashier
    ) {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    body .pos-ipos-refactor .pos-ipos-transaction-panel .pos-ipos-field-dualcontrol .pos-ipos-select-search {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    body .pos-ipos-refactor .pos-ipos-draft-grid {
        grid-template-columns: minmax(0, 1fr) repeat(2, minmax(120px, 1fr));
    }

    body .pos-ipos-refactor .pos-ipos-draft-actions,
    body .pos-ipos-refactor .pos-ipos-field-stock {
        grid-column: 1 / -1;
    }

    body .pos-ipos-refactor .pos-ipos-log-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body .pos-ipos-refactor .pos-ipos-quicksearch-result {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        padding: 14px;
    }

    body .pos-ipos-refactor .pos-ipos-quicksearch-result-meta {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-width: 0;
        width: 100%;
        padding-top: 6px;
        border-top: 1px solid var(--ipos-border);
    }

    body .pos-ipos-refactor .pos-ipos-quicksearch-result-price {
        text-align: left;
        white-space: normal;
    }
}

@media (min-width: 1500px) {
    body .pos-ipos-refactor .pos-ipos-transaction-panel .pos-ipos-transaction-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px 10px;
    }
}

@media (max-width: 1120px) {
    body .pos-ipos-refactor .pos-ipos-layout {
        grid-template-columns: 1fr;
    }

    body .pos-ipos-refactor .pos-ipos-side {
        position: static;
    }

    body .pos-ipos-refactor .pos-ipos-payment-panel {
        width: 100%;
    }

    body .pos-ipos-refactor .pos-ipos-summaryrows > div {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    body .pos-ipos-refactor .pos-ipos-split-row {
        grid-template-columns: 1fr;
    }

    body .pos-ipos-refactor .pos-ipos-summaryrows > div > :is(span, strong),
    body .pos-ipos-refactor .pos-ipos-totalmeta > :is(span, strong) {
        min-width: 0;
    }

    body .pos-ipos-refactor .pos-ipos-summary-input {
        display: grid;
        grid-template-columns: 1fr;
        align-items: stretch;
        padding: 12px 14px;
    }

    body .pos-ipos-refactor .pos-ipos-adjustment-controls {
        width: 100%;
        display: grid;
        grid-template-columns: 92px minmax(0, 1fr);
        justify-content: stretch;
    }

    body .pos-ipos-refactor .pos-ipos-adjustment-controls select,
    body .pos-ipos-refactor .pos-ipos-adjustment-controls input,
    body .pos-ipos-refactor .pos-ipos-summary-input input {
        width: 100%;
        min-width: 0;
        max-width: none;
    }

    body .pos-ipos-refactor .pos-ipos-methodgrid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    body .pos-ipos-refactor .pos-ipos-shortcuts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body .pos-ipos-refactor .pos-ipos-log-shell {
        margin-inline: 14px;
    }
}

@media (max-width: 760px) {
    body .pos-ipos-refactor .pos-payment-modal {
        align-items: end;
        place-items: end center;
        padding: 0;
    }

    body .pos-ipos-refactor .pos-payment-modal-window {
        width: 100%;
        height: min(92dvh, calc(100dvh - env(safe-area-inset-top) - 10px));
        max-height: calc(100dvh - env(safe-area-inset-top) - 10px);
        border-radius: 24px 24px 0 0;
        border-bottom: 0;
    }

    body .pos-ipos-refactor .pos-payment-modal-body {
        padding: 10px 10px max(14px, env(safe-area-inset-bottom));
    }

    body .pos-ipos-refactor .pos-payment-modal .pos-ipos-methodgrid,
    body .pos-ipos-refactor .pos-payment-modal .pos-ipos-shortcuts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body .pos-ipos-refactor .pos-ipos-payment-compact {
        position: fixed;
        inset-inline: 12px;
        bottom: 12px;
        z-index: 240;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        box-shadow: 0 18px 48px rgba(12, 35, 68, 0.18);
    }

    body .pos-ipos-refactor .pos-ipos-payment-compact > div:nth-child(3) {
        display: none;
    }

    body .pos-ipos-refactor .pos-ipos-payment-compact .pos-ipos-pay-open {
        grid-column: auto;
    }

    body .pos-ipos-refactor .pos-ipos-topbar,
    body .pos-ipos-refactor .pos-ipos-panel-head,
    body .pos-ipos-refactor .pos-ipos-pickerhead,
    body .pos-ipos-refactor .pos-ipos-pickeractions {
        flex-direction: column;
        align-items: stretch;
    }

    body .pos-ipos-refactor .pos-ipos-toolbar,
    body .pos-ipos-refactor .pos-ipos-topstats {
        display: grid;
        grid-template-columns: 1fr;
    }

    body .pos-ipos-refactor .pos-ipos-topactions {
        width: 100%;
        margin-left: 0;
        justify-content: stretch;
    }

    body .pos-ipos-refactor .pos-ipos-header-menu,
    body .pos-ipos-refactor .pos-ipos-close {
        width: 100%;
    }

    body .pos-ipos-refactor .pos-ipos-menu-trigger {
        width: 100%;
        justify-content: space-between;
    }

    body .pos-ipos-refactor .pos-ipos-menu-panel {
        width: min(100%, calc(100vw - 32px));
    }

    body .pos-ipos-refactor .pos-ipos-transaction-grid,
    body .pos-ipos-refactor .pos-ipos-draft-grid,
    body .pos-ipos-refactor .pos-ipos-support-grid,
    body .pos-ipos-refactor .pos-ipos-shortcuts,
    body .pos-ipos-refactor .pos-ipos-search,
    body .pos-ipos-refactor .pos-ipos-quicksearch-controls {
        grid-template-columns: 1fr;
    }

    body .pos-ipos-refactor .pos-ipos-transaction-panel :is(
        .pos-ipos-field-transaction-no,
        .pos-ipos-field-transaction-date,
        .pos-ipos-field-homebase,
        .pos-ipos-field-transaction-type,
        .pos-ipos-field-customer-name,
        .pos-ipos-field-customer-phone,
        .pos-ipos-field-customer,
        .pos-ipos-field-cashier
    ),
    body .pos-ipos-refactor .pos-ipos-field-full {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    body .pos-ipos-refactor .pos-ipos-transaction-panel .pos-ipos-field-dualcontrol .pos-ipos-select-search {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    body .pos-ipos-refactor .pos-ipos-methodgrid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    body .pos-ipos-refactor .pos-ipos-pickerbrowsertools,
    body .pos-ipos-refactor .pos-ipos-pickerbrowsertools .pos-ipos-categorystrip {
        justify-items: stretch;
        justify-content: flex-start;
    }

    body .pos-ipos-refactor .pos-ipos-quicksearch-controls .pos-vintage-button {
        width: 100%;
        min-width: 0;
    }

    body .pos-ipos-refactor .pos-ipos-summary-input {
        display: grid;
        grid-template-columns: 1fr;
        padding: 12px 14px;
    }

    body .pos-ipos-refactor .pos-ipos-summary-input input {
        max-width: none;
    }

    body .pos-ipos-refactor .pos-ipos-picker {
        padding: 12px;
    }

    body .pos-ipos-refactor .pos-ipos-picker-window {
        width: min(100vw - 24px, 100%);
        max-height: calc(100vh - 24px);
        padding: 14px;
    }

    body .pos-ipos-refactor .pos-ipos-log-meta {
        grid-template-columns: 1fr;
    }

    body .pos-ipos-refactor .pos-ipos-log-shell {
        margin: 0 14px 14px;
        padding: 12px;
    }

    body .pos-ipos-refactor .pos-ipos-log-head-actions {
        width: 100%;
        justify-content: space-between;
    }
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
    overscroll-behavior-y: none;
}

@media (max-height: 720px) {
    body .pos-ipos-refactor .pos-payment-modal {
        padding: 8px;
    }

    body .pos-ipos-refactor .pos-payment-modal-window {
        height: calc(100dvh - 16px);
        max-height: calc(100dvh - 16px);
        border-radius: 18px;
    }

    body .pos-ipos-refactor .pos-payment-modal-head {
        padding: 10px 12px 8px;
    }

    body .pos-ipos-refactor .pos-payment-modal-head h3 {
        margin-top: 1px;
        font-size: 1.08rem;
    }

    body .pos-ipos-refactor .pos-payment-modal-close {
        inline-size: 34px;
        block-size: 34px;
        font-size: 1.2rem;
    }

    body .pos-ipos-refactor .pos-payment-modal-body {
        padding: 10px;
    }

    body .pos-ipos-refactor .pos-payment-modal .pos-ipos-totalbox {
        padding: 10px 12px;
        border-radius: 14px;
    }

    body .pos-ipos-refactor .pos-payment-modal .pos-ipos-totalbox > strong {
        font-size: clamp(1.7rem, 6vw, 2.65rem);
    }

    body .pos-ipos-refactor .pos-payment-modal .pos-ipos-summaryrows > div,
    body .pos-ipos-refactor .pos-payment-modal .pos-ipos-summary-input {
        min-height: 36px;
        padding-inline: 10px;
    }

    body .pos-ipos-refactor .pos-payment-modal .pos-ipos-methodgrid,
    body .pos-ipos-refactor .pos-payment-modal .pos-ipos-shortcuts {
        gap: 8px;
    }

    body .pos-ipos-refactor .pos-payment-modal .pos-ipos-checkout {
        min-height: 42px;
    }
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(93, 183, 255, 0.18), transparent 34%),
        radial-gradient(circle at top right, rgba(255, 191, 71, 0.14), transparent 26%),
        linear-gradient(145deg, #05101d 0%, #0a172a 42%, #112645 100%);
    font-family: var(--sans);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "cv11", "ss01";
}

body.menu-open {
    overflow: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: radial-gradient(circle at center, black 32%, transparent 92%);
    pointer-events: none;
}

a {
    color: inherit;
}

body .skip-link {
    position: fixed;
    top: 14px;
    left: 16px;
    z-index: 5000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-decoration: none;
    transform: translateY(-140%);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

body .skip-link:focus-visible {
    transform: translateY(0);
}

body label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-strong);
    font-size: 0.9rem;
    font-weight: 600;
}

body small,
body .helper-text {
    display: block;
    margin-top: 6px;
    color: var(--text-soft);
    line-height: 1.5;
}

body .layout {
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
    min-height: 100vh;
    transition: grid-template-columns 0.28s ease;
}

body .layout.layout-plain {
    grid-template-columns: minmax(0, 1fr);
}

body .layout.layout-no-sidebar {
    grid-template-columns: minmax(0, 1fr) !important;
}

body .layout.layout-no-sidebar > .main {
    grid-column: 1 / -1;
    min-width: 0;
    width: 100%;
}

body .layout.layout-no-sidebar > .main > * {
    width: 100%;
    max-width: none;
    margin-inline: 0;
}

body .sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    padding: 28px 22px;
    padding-bottom: calc(28px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(149, 169, 191, 0.72) rgba(255, 255, 255, 0.06);
    border-right: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(11, 21, 37, 0.94) 0%, rgba(6, 14, 28, 0.94) 100%);
    backdrop-filter: blur(18px);
    transition: transform 0.28s ease, opacity 0.28s ease;
}

body .desktop-sidebar-toggle {
    position: fixed;
    top: 22px;
    left: calc(var(--sidebar-width) + 14px);
    z-index: 65;
    width: 52px;
    min-width: 52px;
    height: 52px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(10, 24, 42, 0.88);
    border-color: rgba(93, 183, 255, 0.18);
    box-shadow: 0 18px 32px rgba(7, 17, 31, 0.24);
    backdrop-filter: blur(14px);
    transition: left 0.28s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

body .desktop-sidebar-toggle-bars {
    display: grid;
    gap: 5px;
}

body .desktop-sidebar-toggle-bars span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #f7fbff;
}

body .sidebar::-webkit-scrollbar {
    width: 10px;
}

body .sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
}

body .sidebar::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(184, 197, 214, 0.9), rgba(121, 138, 161, 0.96));
    border-radius: 999px;
    border: 2px solid rgba(7, 17, 31, 0.92);
}

body .sidebar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(214, 223, 234, 0.96), rgba(148, 163, 184, 0.98));
}

body .sidebar::-webkit-scrollbar-button {
    width: 0;
    height: 0;
    display: none;
}

body .brand-block {
    padding: 18px;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(145deg, rgba(93, 183, 255, 0.18), rgba(17, 38, 69, 0.12));
    border: 1px solid rgba(93, 183, 255, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body .brand-block-logo-only {
    display: grid;
    place-items: center;
    padding: 18px 16px;
}

body .brand-lockup {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

body .brand-mark {
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(233, 241, 250, 0.92));
    box-shadow: 0 18px 32px rgba(1, 8, 18, 0.25);
}

body .brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 14px;
}

body .brand-mark-full-logo {
    width: min(100%, 220px);
    height: auto;
    aspect-ratio: 1 / 1;
    flex-basis: auto;
    border-radius: 28px;
}

body .brand-mark-full-logo img {
    padding: 18px;
}

body .brand-meta {
    min-width: 0;
}

body .suite-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 191, 71, 0.14);
    color: #ffe5ab;
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

body .brand-kicker {
    margin: 0 0 8px;
    font-size: 0.76rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
}

body .brand-title {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    font-family: var(--display);
}

body .brand-copy {
    margin: 8px 0 0;
    line-height: 1.6;
    color: var(--text-muted);
    font-size: 0.92rem;
}

body .sidebar nav {
    display: grid;
    gap: 14px;
}

body .sidebar-section {
    display: grid;
    gap: 10px;
}

body .sidebar-section-label {
    margin: 0;
    padding: 0 6px;
    color: var(--theme-sidebar-label);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

body .sidebar-group {
    display: grid;
    gap: 8px;
    padding: 10px;
    border-radius: 20px;
    border: 1px solid var(--theme-sidebar-panel-border);
    background: var(--theme-sidebar-panel-bg);
}

body .sidebar-single {
    gap: 0;
}

body .sidebar-group-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 46px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid transparent;
    background: var(--theme-sidebar-group-toggle-bg);
    box-shadow: none;
    border-radius: 16px;
    color: inherit;
    cursor: pointer;
    user-select: none;
    list-style: none;
}

body .sidebar-group-toggle:hover {
    transform: none;
    box-shadow: none;
}

body .sidebar-group-toggle::-webkit-details-marker {
    display: none;
}

body .sidebar-group-label {
    display: block;
    color: var(--theme-sidebar-label);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

body .sidebar-group.active .sidebar-group-label,
body .sidebar-disclosure[open] .sidebar-group-label {
    color: var(--theme-sidebar-label-active);
}

body .sidebar-group.active .sidebar-group-toggle,
body .sidebar-disclosure[open] .sidebar-group-toggle {
    background: var(--theme-sidebar-group-toggle-active-bg);
    border-color: var(--theme-sidebar-link-border);
}

body .sidebar-group-icon {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-right: 2px solid var(--theme-sidebar-icon);
    border-bottom: 2px solid var(--theme-sidebar-icon);
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.72;
}

body .sidebar-disclosure[open] .sidebar-group-icon {
    transform: rotate(225deg) translateY(1px);
    opacity: 1;
}

body .sidebar-subnav {
    display: grid;
    gap: 6px;
    margin-left: 6px;
    padding-left: 14px;
    border-left: 1px solid var(--theme-subnav-border);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-4px);
    transition: max-height 0.24s ease, opacity 0.2s ease, transform 0.2s ease;
}

body .sidebar-disclosure[open] .sidebar-subnav {
    max-height: 1200px;
    opacity: 1;
    transform: translateY(0);
}

body .sidebar-subgroup {
    display: grid;
    gap: 6px;
}

body .sidebar-subgroup-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 46px;
    padding: 12px 14px;
    border-radius: 16px;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: var(--theme-sidebar-link-color);
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    list-style: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

body .sidebar-subgroup-toggle::-webkit-details-marker {
    display: none;
}

body .sidebar-subgroup-toggle::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: transparent;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

body .sidebar-subgroup:hover .sidebar-subgroup-toggle,
body .sidebar-subgroup.active .sidebar-subgroup-toggle,
body .sidebar-subgroup[open] .sidebar-subgroup-toggle {
    color: var(--theme-sidebar-link-active-color);
    background: var(--theme-sidebar-link-bg);
    border-color: var(--theme-sidebar-link-border);
    transform: translateX(2px);
}

body .sidebar-subgroup.active .sidebar-subgroup-toggle::after,
body .sidebar-subgroup[open] .sidebar-subgroup-toggle::after {
    background: var(--theme-sidebar-active-dot);
    box-shadow: 0 0 0 6px var(--theme-sidebar-active-dot-ring);
}

body .sidebar-subgroup-label {
    display: block;
}

body .sidebar-subgroup-links {
    display: grid;
    gap: 6px;
    margin-left: 14px;
    padding-left: 12px;
    border-left: 1px solid var(--theme-subnav-border);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-4px);
    transition: max-height 0.24s ease, opacity 0.2s ease, transform 0.2s ease;
}

body .sidebar-subgroup[open] .sidebar-subgroup-links {
    max-height: 320px;
    opacity: 1;
    transform: translateY(0);
}

body .sidebar-subgroup-links a {
    min-height: 42px;
    padding-inline: 12px;
    font-size: 0.92rem;
}

body .sidebar a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 46px;
    padding: 12px 14px;
    border-radius: 16px;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: var(--theme-sidebar-link-color);
    text-decoration: none;
    border: 1px solid transparent;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

body .sidebar a::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: transparent;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

body .sidebar a:hover,
body .sidebar a.active {
    color: var(--theme-sidebar-link-active-color);
    background: var(--theme-sidebar-link-bg);
    border-color: var(--theme-sidebar-link-border);
    transform: translateX(2px);
}

body .sidebar a.active::after {
    background: var(--theme-sidebar-active-dot);
    box-shadow: 0 0 0 6px var(--theme-sidebar-active-dot-ring);
}

body .sidebar-footer {
    margin-top: auto;
    padding: 18px;
    display: grid;
    gap: 14px;
    border-radius: var(--radius-lg);
    background: var(--theme-footer-bg);
    border: 1px solid var(--theme-footer-border);
}

body .sidebar-footer-link.active {
    background: var(--theme-sidebar-link-bg);
    border-color: var(--theme-sidebar-link-border);
    color: var(--theme-sidebar-link-active-color);
}

body .account-settings-form {
    display: grid;
    gap: 18px;
}

body .account-volume-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    margin-top: 12px;
}

body .account-volume-row input[type="range"] {
    width: 100%;
}

body.sidebar-minimized .layout,
html.sidebar-minimized-pending body .layout {
    grid-template-columns: 0 minmax(0, 1fr);
}

body.sidebar-minimized .sidebar,
html.sidebar-minimized-pending body .sidebar {
    transform: translateX(-112%);
    opacity: 0;
    pointer-events: none;
}

body.sidebar-minimized .desktop-sidebar-toggle,
html.sidebar-minimized-pending body .desktop-sidebar-toggle {
    left: 22px;
}

body .sidebar-footer p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

body .sidebar-footer-actions {
    display: grid;
    gap: 12px;
}

body .sidebar-footer-actions form,
body .sidebar-footer-actions .ghost-button,
body .sidebar-footer-actions form button {
    width: 100%;
}

body .sidebar-footer-actions .ghost-button,
body .sidebar-footer-actions form button {
    justify-content: center;
}

body .status-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

body .status-pill {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    color: var(--theme-status-pill-color);
    background: var(--theme-status-pill-bg);
    border: 1px solid var(--theme-status-pill-border);
}

body .sidebar a:focus-visible,
body .sidebar-group-toggle:focus-visible,
body .sidebar-subgroup-toggle:focus-visible,
body .sidebar-footer .ghost-button:focus-visible {
    outline: none;
    border-color: var(--theme-sidebar-link-border);
    box-shadow: 0 0 0 4px var(--theme-sidebar-focus-ring);
}

body .main {
    min-width: 0;
    padding: 32px;
    display: grid;
    justify-items: stretch;
    align-content: start;
    gap: var(--section-gap);
}

body .main > * {
    width: 100%;
    max-width: none;
}

body .main-public {
    padding-top: clamp(28px, 8vh, 76px);
    padding-bottom: clamp(32px, 7vh, 56px);
}

body .page-content {
    display: grid;
    gap: var(--section-gap);
    align-content: start;
}

body.pos-page-wide .layout {
    grid-template-columns: minmax(0, 1fr);
}

body.pos-page-wide .main {
    padding: 20px 24px 32px;
}

body.pos-page-wide .page-content.page-content-bleed {
    width: 100%;
    max-width: none;
    padding: 0;
}

body.pos-page-wide.pos-tool-page .page-content.page-content-bleed,
body.pos-page-wide.pos-manual-doc-page .page-content.page-content-bleed {
    display: block;
}

body.pos-page-wide #posCheckoutRoot,
body.pos-page-wide #posCheckoutRoot .pos-ipos-window {
    width: 100%;
    max-width: none;
}

body.pos-page-wide .floating-toolbelt,
body.pos-page-wide .notification-center-root,
body.pos-page-wide .attendance-camera-shortcut-root,
body.pos-page-wide .chat-widget-root {
    display: none !important;
    pointer-events: none !important;
}

@media (min-width: 1081px) {
    body .page-content.chat-page-content {
        min-height: calc(100dvh - 64px);
        height: calc(100dvh - 64px);
        align-content: stretch;
    }

    body .page-content.chat-page-content > .chat-page-shell {
        height: 100%;
        min-height: 0;
        max-height: none;
    }
}

@media (max-width: 760px) {
    body.pos-page-wide .main {
        padding: 12px 12px 24px;
    }
}

body .page-content > .panel,
body .page-content > .card,
body .page-content > .card-mini,
body .page-content > .form-box,
body .page-content > .table-box,
body .page-content > .import-box,
body .page-content > .box,
body .page-content > .cards,
body .page-content > .summary,
body .page-content > .meta-grid,
body .page-content > .alerts {
    margin-bottom: 0;
}

body .page-content > .helper-text {
    margin-top: -8px;
}

@supports (content-visibility: auto) {
    body .page-content > :is(.panel, .card, .card-mini, .form-box, .table-box, .import-box, .box, .summary, .meta-grid, .alerts) {
        content-visibility: auto;
        contain-intrinsic-size: 420px;
    }

    body .cards > * {
        content-visibility: auto;
        contain-intrinsic-size: 280px;
    }

    body .stack-scroll-list > * {
        content-visibility: auto;
        contain-intrinsic-size: 180px;
    }
}

body .auth-flow-box {
    width: min(100%, 760px);
    margin-inline: auto;
}

body .auth-flow-box form {
    display: grid;
    gap: 18px;
}

body .page-hero {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 22px;
    margin-bottom: 0;
    padding: 32px 34px;
    border-radius: 32px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(10, 24, 42, 0.34), rgba(17, 38, 69, 0.18));
    box-shadow: 0 24px 52px rgba(1, 8, 18, 0.16);
    backdrop-filter: blur(18px);
    isolation: isolate;
    overflow: hidden;
}

body .page-hero::after {
    content: "";
    position: absolute;
    inset: auto 24px -40px auto;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(93, 183, 255, 0.18), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

body .page-hero-text {
    max-width: 780px;
    min-width: 0;
    position: relative;
    z-index: 1;
}

body .page-eyebrow {
    margin: 0 0 12px;
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--warning);
}

body .page-hero h1,
body .header h1,
body .main > h1 {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(2.1rem, 3.2vw, 3.35rem);
    line-height: 0.96;
    letter-spacing: -0.065em;
    color: #f7fbff;
    text-wrap: balance;
}

body .page-subtitle {
    display: none;
}

body .page-actions,
body .header > div:last-child {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
    min-width: min(100%, 260px);
}

body .page-actions > *,
body .split-actions > *,
body .split-actions > form,
body .split-actions > form > *,
body .notification-center-actions > *,
body .chat-widget-head-actions > *,
body .mobile-nav-actions > * {
    min-width: 0;
    max-width: 100%;
}

body .page-actions:empty {
    display: none;
}

body .page-actions-desktop-slot {
    display: flex;
    margin-left: auto;
    min-width: min(100%, 260px);
    position: relative;
    z-index: 1;
}

body .page-actions-desktop-slot:empty {
    display: none;
}

body .mobile-command-deck {
    display: none;
    position: relative;
    overflow: hidden;
    padding: 16px 18px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(10, 24, 42, 0.3), rgba(17, 38, 69, 0.18));
    box-shadow: 0 18px 30px rgba(1, 8, 18, 0.16);
}

body .mobile-command-deck[hidden] {
    display: none !important;
}

body .mobile-command-deck-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

body .mobile-command-kicker {
    margin: 0 0 6px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 191, 71, 0.92);
}

body .mobile-command-deck-head strong {
    display: block;
    color: #f7fbff;
    font-size: 1rem;
    letter-spacing: -0.02em;
}

body .mobile-command-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(93, 183, 255, 0.16);
    background: rgba(93, 183, 255, 0.12);
    color: #eef7ff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

body .mobile-page-actions-slot {
    min-width: 0;
}

body .mobile-page-actions-slot .page-actions {
    min-width: 0;
    margin-left: 0;
    justify-content: flex-start;
}

body .mobile-page-actions-slot .page-actions > * {
    flex: 0 0 auto;
}

body.minimal-shell .main > * {
    max-width: 760px;
}

body.minimal-shell .page-hero {
    padding: 24px 26px;
}

body .panel,
body .card,
body .card-mini,
body .form-box,
body .table-box,
body .import-box,
body .box {
    position: relative;
    overflow: hidden;
    min-width: 0;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(240, 245, 251, 0.96));
    box-shadow: var(--shadow-md);
    color: var(--text-strong);
}

body .panel::before,
body .card::before,
body .card-mini::before,
body .form-box::before,
body .table-box::before,
body .import-box::before,
body .box::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), rgba(93, 183, 255, 0.08));
    opacity: 0.9;
}

body .header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 18px;
}

body .cards,
body .summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 16px;
    margin-bottom: 20px;
    align-items: stretch;
}

body .card,
body .card-mini {
    padding: 22px;
    display: grid;
    gap: 10px;
    align-content: start;
    min-height: 100%;
    min-width: 0;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

body .card:hover,
body .card-mini:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 44px rgba(7, 17, 31, 0.14);
}

body .card p,
body .card-mini p {
    margin: 0;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #4f667f;
    font-weight: 700;
}

body .card h2,
body .card-mini h3 {
    margin: 8px 0 0;
    font-family: var(--display);
    font-size: clamp(1.9rem, 2.3vw, 2.45rem);
    letter-spacing: -0.06em;
    line-height: 0.95;
    color: var(--text-strong);
    overflow-wrap: anywhere;
}

body .card.warning {
    background: linear-gradient(180deg, rgba(255, 245, 220, 0.98), rgba(255, 238, 204, 0.95));
}

body .card-mini.warning {
    background: linear-gradient(180deg, rgba(255, 245, 220, 0.98), rgba(255, 238, 204, 0.95));
}

body .card.danger {
    background: linear-gradient(180deg, rgba(255, 233, 233, 0.98), rgba(255, 219, 219, 0.95));
}

body .card.success {
    background: linear-gradient(180deg, rgba(231, 255, 244, 0.98), rgba(216, 249, 233, 0.95));
}

body .alert {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 10px;
    border: 1px solid transparent;
    font-size: 0.94rem;
}

body .alert.danger {
    background: var(--theme-danger-soft-bg, rgba(255, 107, 107, 0.12));
    color: var(--theme-danger-soft-color, #7c1d1d);
    border-color: var(--theme-danger-soft-border, rgba(255, 107, 107, 0.2));
}

body .alert.warning {
    background: var(--theme-warning-soft-bg, rgba(255, 191, 71, 0.18));
    color: var(--theme-warning-soft-color, #6b4b0d);
    border-color: var(--theme-warning-soft-border, rgba(255, 191, 71, 0.22));
}

body .alert.info {
    background: var(--theme-info-soft-bg, rgba(107, 212, 255, 0.16));
    color: var(--theme-info-soft-color, #0c4f74);
    border-color: var(--theme-info-soft-border, rgba(107, 212, 255, 0.22));
}

body .form-box,
body .table-box,
body .import-box,
body .box {
    padding: 22px;
    margin-bottom: 20px;
}

body .table-box {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(93, 183, 255, 0.32) rgba(10, 24, 42, 0.08);
    overscroll-behavior-x: contain;
    scroll-padding-inline: 18px;
}

body[data-device-mode="mobile"] .table-box[data-scrollable-table="1"]::after,
body[data-device-mode="tablet"] .table-box[data-scrollable-table="1"]::after {
    content: "Geser untuk lihat kolom";
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 4;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(248, 251, 255, 0.94);
    border: 1px solid rgba(10, 24, 42, 0.08);
    color: #314861;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    pointer-events: none;
    box-shadow: 0 12px 18px rgba(7, 17, 31, 0.08);
}

body[data-device-mode="mobile"] .table-box[data-scrollable-table="1"],
body[data-device-mode="tablet"] .table-box[data-scrollable-table="1"] {
    padding-bottom: 52px;
}

body .table-box.stack-scroll-shell {
    display: grid;
    align-content: start;
    gap: 16px;
    max-height: min(78vh, 1040px);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    padding-right: 14px;
}

body .table-box.stack-scroll-shell > .section-title {
    position: sticky;
    top: -20px;
    z-index: 4;
    margin: -20px -14px 0 -20px;
    padding: 20px 14px 14px 20px;
    background: var(--panel);
    border-bottom: 1px solid rgba(10, 24, 42, 0.08);
    box-shadow: 0 14px 20px rgba(7, 17, 31, 0.06);
}

body .table-box.stack-scroll-shell > .stack-scroll-list {
    max-height: none;
    overflow: visible;
    padding-right: 0;
}

body .table-box.stack-scroll-shell::-webkit-scrollbar {
    width: 10px;
}

body .table-box.stack-scroll-shell::-webkit-scrollbar-track {
    background: rgba(10, 24, 42, 0.06);
    border-radius: 999px;
}

body .table-box.stack-scroll-shell::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(93, 183, 255, 0.58), rgba(33, 137, 255, 0.38));
    border-radius: 999px;
    border: 2px solid rgba(246, 249, 253, 0.96);
}

body table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
}

body table.wms-layout-resizable {
    position: relative;
}

body table.wms-layout-resizable th,
body table.wms-layout-resizable td {
    position: relative;
}

body table.wms-layout-resizable.has-manual-layout {
    max-width: none;
}

body table.wms-layout-resizable .table-col-resizer,
body table.wms-layout-resizable .table-row-resizer {
    position: absolute;
    z-index: 3;
    border: 0;
    padding: 0;
    background: transparent;
    opacity: 0;
    transition: opacity 0.16s ease, background 0.16s ease;
}

body table.wms-layout-resizable .table-col-resizer {
    top: 6px;
    right: 0;
    width: 16px;
    height: calc(100% - 12px);
    cursor: col-resize;
}

body table.wms-layout-resizable .table-col-resizer::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: rgba(93, 183, 255, 0.44);
}

body table.wms-layout-resizable .table-row-resizer {
    left: 50%;
    bottom: 0;
    width: min(96px, 64%);
    height: 12px;
    transform: translateX(-50%);
    cursor: row-resize;
}

body table.wms-layout-resizable .table-row-resizer::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    transform: translateY(-50%);
    border-radius: 999px;
    background: rgba(93, 183, 255, 0.42);
}

body table.wms-layout-resizable th:hover > .table-col-resizer,
body table.wms-layout-resizable td:hover > .table-row-resizer,
body table.wms-layout-resizable.has-manual-layout .table-col-resizer,
body table.wms-layout-resizable.has-manual-layout .table-row-resizer,
body table.wms-layout-resizable .table-col-resizer:focus-visible,
body table.wms-layout-resizable .table-row-resizer:focus-visible,
body.is-table-layout-resizing table.wms-layout-resizable .table-col-resizer,
body.is-table-layout-resizing table.wms-layout-resizable .table-row-resizer {
    opacity: 1;
}

body table.wms-layout-resizable .table-col-resizer:hover,
body table.wms-layout-resizable .table-row-resizer:hover {
    background: rgba(93, 183, 255, 0.08);
}

body table.wms-layout-resizable .table-col-resizer:focus-visible,
body table.wms-layout-resizable .table-row-resizer:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(93, 183, 255, 0.18);
    border-radius: 999px;
}

body.is-table-layout-resizing,
body.is-table-layout-resizing * {
    user-select: none !important;
}

body.is-table-layout-resizing[data-table-resize-axis="col"],
body.is-table-layout-resizing[data-table-resize-axis="col"] * {
    cursor: col-resize !important;
}

body.is-table-layout-resizing[data-table-resize-axis="row"],
body.is-table-layout-resizing[data-table-resize-axis="row"] * {
    cursor: row-resize !important;
}

@media (hover: none), (pointer: coarse) {
    body table.wms-layout-resizable .table-col-resizer,
    body table.wms-layout-resizable .table-row-resizer {
        opacity: 0.58;
    }
}

body th,
body td {
    padding: 15px 12px;
    border-bottom: 1px solid rgba(10, 24, 42, 0.08);
    font-size: 0.92rem;
    vertical-align: middle;
    text-align: left;
    overflow-wrap: anywhere;
    word-break: break-word;
}

body th {
    font-size: 0.76rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #43586f;
    background: rgba(12, 24, 43, 0.06);
    white-space: nowrap;
    font-weight: 800;
    font-family: var(--display);
}

body th .sort-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: inherit;
    text-decoration: none;
    transition: color 0.18s ease;
}

body th .sort-link:hover,
body th .sort-link.active {
    color: #1d3f68;
}

body th .sort-indicator {
    font-size: 0.72rem;
    letter-spacing: 0;
}

body td {
    white-space: normal;
    color: var(--text-strong);
}

body td small,
body td .helper-text,
body td .stock-readonly-field small {
    color: #596f87;
}

body .mono,
body .badge,
body .status-pill,
body button,
body .btn-link,
body a.btn-link,
body .money-input,
body input,
body select {
    overflow-wrap: normal;
    word-break: normal;
}

body tbody tr:hover {
    background: rgba(93, 183, 255, 0.06);
}

body input,
body select,
body textarea {
    width: 100%;
    padding: 13px 15px;
    border-radius: 16px;
    border: 1px solid rgba(10, 24, 42, 0.12);
    background: rgba(255, 255, 255, 0.86);
    color: var(--text-strong);
    font: inherit;
    font-weight: 500;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    touch-action: manipulation;
}

body input[type="file"] {
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.92);
}

body input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 10px 14px;
    border: 0;
    border-radius: 999px;
    background: rgba(10, 24, 42, 0.08);
    color: var(--text-strong);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

body input::placeholder,
body textarea::placeholder {
    color: #7b8ea5;
    opacity: 0.58;
}

body input:focus,
body select:focus,
body textarea:focus {
    outline: none;
    border-color: rgba(33, 137, 255, 0.45);
    box-shadow: 0 0 0 4px rgba(33, 137, 255, 0.12);
    background: #fff;
}

body input[readonly] {
    background: rgba(10, 24, 42, 0.05);
}

body input:disabled,
body select:disabled,
body textarea:disabled {
    opacity: 1;
    cursor: not-allowed;
}

body .money-input {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border-radius: 16px;
    border: 1px solid rgba(10, 24, 42, 0.12);
    background: rgba(255, 255, 255, 0.86);
    min-width: 150px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

body .money-input span {
    flex: 0 0 auto;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-soft);
    letter-spacing: 0.06em;
}

body .money-input input {
    border: 0;
    box-shadow: none;
    background: transparent;
    padding: 12px 0;
    min-width: 0;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

body .money-input input:focus {
    box-shadow: none;
    background: transparent;
}

body .money-input:focus-within {
    border-color: rgba(33, 137, 255, 0.45);
    box-shadow: 0 0 0 4px rgba(33, 137, 255, 0.12);
    background: #fff;
}

body button,
body .btn-link,
body a.btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 20px;
    border: 1px solid var(--theme-button-border);
    border-radius: 999px;
    text-decoration: none;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--theme-button-color);
    background: var(--theme-button-bg);
    box-shadow: var(--theme-button-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
    touch-action: manipulation;
}

body button:hover,
body .btn-link:hover,
body a.btn-link:hover {
    transform: translateY(-1px);
    border-color: var(--theme-button-hover-border);
    box-shadow: var(--theme-button-hover-shadow);
}

body button:disabled {
    opacity: 0.72;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    filter: saturate(0.8);
}

body .danger-button,
body .danger {
    background: linear-gradient(135deg, #7f1d1d, #ef4444);
    color: #fff;
}

body .ghost-button {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(236, 242, 248, 0.94));
    color: #10233b;
    border-color: rgba(10, 24, 42, 0.14);
    box-shadow: 0 10px 22px rgba(7, 17, 31, 0.08);
}

body .ghost-button:hover {
    color: #081222;
    border-color: rgba(33, 137, 255, 0.28);
    box-shadow: 0 14px 24px rgba(7, 17, 31, 0.12);
}

body .ghost-button:disabled {
    background: linear-gradient(180deg, rgba(247, 250, 253, 0.94), rgba(234, 240, 246, 0.92));
    color: #576b82;
    border-color: rgba(10, 24, 42, 0.1);
}

body .sidebar .ghost-button,
body .mobile-nav .ghost-button {
    background: rgba(255, 255, 255, 0.04);
    color: #f7fbff;
    border-color: rgba(255, 255, 255, 0.1);
}

body .admin-local-nav-box {
    display: grid;
    gap: 12px;
}

body .admin-local-nav {
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

body .admin-local-nav .ghost-button {
    min-width: 190px;
}

body .admin-local-nav .ghost-button.active {
    background: linear-gradient(135deg, #123d74, #0f5ec7);
    color: #f7fbff;
    border-color: transparent;
    box-shadow: 0 16px 28px rgba(15, 94, 199, 0.28);
}

body .admin-role-guide-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

body .admin-role-card {
    display: grid;
    gap: 14px;
    min-height: 100%;
}

body .admin-role-card p {
    margin: 0;
}

body .admin-role-card h2 {
    margin: 0;
    font-size: clamp(1.35rem, 1.9vw, 1.7rem);
}

body .admin-role-card-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

body .admin-role-copy {
    color: var(--text-soft);
    line-height: 1.65;
}

body .stack-scroll-list {
    display: grid;
    gap: 16px;
    max-height: min(74vh, 980px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    padding-right: 6px;
    -webkit-overflow-scrolling: touch;
}

body .stack-scroll-card {
    min-width: 0;
}

body .table-box.stack-scroll-shell .stack-scroll-card:last-child {
    margin-bottom: 0;
}

body .stack-scroll-list::-webkit-scrollbar {
    width: 10px;
}

body .stack-scroll-list::-webkit-scrollbar-track {
    background: rgba(10, 24, 42, 0.06);
    border-radius: 999px;
}

body .stack-scroll-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(93, 183, 255, 0.7), rgba(15, 94, 199, 0.92));
    border-radius: 999px;
    border: 2px solid rgba(248, 251, 255, 0.92);
}

body .crm-local-nav-box {
    display: grid;
    gap: 12px;
}

body .crm-local-nav {
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

body .crm-local-nav .ghost-button {
    min-width: 160px;
}

body .crm-local-nav .ghost-button.active {
    background: linear-gradient(135deg, #123d74, #0f5ec7);
    color: #f7fbff;
    border-color: transparent;
    box-shadow: 0 16px 28px rgba(15, 94, 199, 0.28);
}

body .crm-members-grid {
    align-items: start;
}

body .crm-long-text {
    min-width: 220px;
    color: var(--text-strong);
    line-height: 1.6;
}

body .recruitment-assessment-access {
    display: grid;
    gap: 10px;
}

body .recruitment-quick-actions {
    margin-top: 12px;
    gap: 10px;
    flex-wrap: wrap;
}

body .recruitment-quick-actions > * {
    flex: 1 1 220px;
}

body .crm-purchase-entry-grid {
    grid-template-columns: minmax(260px, 1.7fr) minmax(180px, 0.8fr) minmax(120px, 0.7fr) minmax(160px, 0.8fr) auto;
}

body .crm-purchase-queue-table {
    min-width: 980px;
}

body .crm-purchase-queue-table th:nth-child(1),
body .crm-purchase-queue-table td:nth-child(1) {
    width: 6%;
}

body .crm-purchase-queue-table th:nth-child(2),
body .crm-purchase-queue-table td:nth-child(2) {
    width: 38%;
}

body .crm-purchase-queue-table th:nth-child(3),
body .crm-purchase-queue-table td:nth-child(3),
body .crm-purchase-queue-table th:nth-child(4),
body .crm-purchase-queue-table td:nth-child(4),
body .crm-purchase-queue-table th:nth-child(5),
body .crm-purchase-queue-table td:nth-child(5) {
    width: 16%;
}

body .crm-purchase-queue-table th:nth-child(6),
body .crm-purchase-queue-table td:nth-child(6) {
    width: 10%;
}

body .sidebar-counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    min-height: 28px;
    padding: 4px 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #26a3ff, #0f5ec7);
    color: #f7fbff;
    font-size: 0.76rem;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(15, 94, 199, 0.24);
}

body .chat-incoming-banner {
    position: fixed;
    top: calc(18px + env(safe-area-inset-top));
    right: 18px;
    z-index: 2205;
    width: min(420px, calc(100vw - 28px));
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px 16px;
    align-items: center;
    padding: 16px 18px;
    border-radius: 24px;
    border: 1px solid rgba(93, 183, 255, 0.24);
    background:
        radial-gradient(circle at top left, rgba(93, 183, 255, 0.16), transparent 26%),
        linear-gradient(160deg, rgba(10, 24, 42, 0.96), rgba(17, 38, 69, 0.94));
    box-shadow: 0 24px 48px rgba(7, 17, 31, 0.32);
    backdrop-filter: blur(18px);
}

body .chat-incoming-banner[hidden] {
    display: none;
}

body .chat-incoming-banner.is-ringing {
    animation: chatIncomingBannerPulse 1.4s ease-in-out infinite;
}

body .chat-incoming-banner-media {
    align-self: start;
}

body .chat-incoming-banner-copy {
    display: grid;
    gap: 6px;
    min-width: 0;
}

body .chat-incoming-banner-copy strong {
    color: #f7fbff;
    font-size: 1rem;
    line-height: 1.2;
}

body .chat-incoming-banner-copy p {
    margin: 0;
    color: rgba(247, 251, 255, 0.78);
    line-height: 1.5;
}

body .chat-incoming-banner-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

body .chat-incoming-banner-answer,
body .chat-incoming-banner-decline {
    min-height: 44px;
    padding: 10px 18px;
    border: none;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #f7fbff;
    font-weight: 800;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

body .chat-incoming-banner-answer {
    background: linear-gradient(135deg, #22c55e, #16914a);
    box-shadow: 0 14px 28px rgba(22, 145, 74, 0.28);
}

body .chat-incoming-banner-decline {
    background: linear-gradient(135deg, #d33d3d, #9d2020);
    box-shadow: 0 14px 28px rgba(157, 32, 32, 0.24);
}

body .chat-incoming-banner-answer:hover,
body .chat-incoming-banner-decline:hover {
    transform: translateY(-1px);
}

body .chat-incoming-banner-answer:disabled,
body .chat-incoming-banner-decline:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}

@keyframes chatIncomingBannerPulse {
    0%,
    100% {
        box-shadow: 0 24px 48px rgba(7, 17, 31, 0.32);
        transform: translateY(0);
    }
    50% {
        box-shadow: 0 28px 56px rgba(15, 94, 199, 0.34);
        transform: translateY(-1px);
    }
}

@media (max-width: 1080px) {
    body .chat-incoming-banner {
        top: auto;
        right: 14px;
        left: 14px;
        bottom: calc(92px + env(safe-area-inset-bottom));
        width: auto;
    }

    body .chat-incoming-banner-actions {
        justify-content: stretch;
    }

    body .chat-incoming-banner-answer,
    body .chat-incoming-banner-decline {
        flex: 1 1 0;
    }
}

body .chat-widget-root {
    --chat-widget-accent-start: #173a6a;
    --chat-widget-accent-end: #0f5ec7;
    --chat-widget-accent-shadow: rgba(15, 94, 199, 0.28);
    --chat-widget-accent-shadow-strong: rgba(15, 94, 199, 0.34);
    position: fixed;
    right: 18px;
    bottom: calc(18px + env(safe-area-inset-bottom));
    z-index: 2100;
    display: grid;
    justify-items: end;
    gap: 10px;
}

body .chat-widget-launcher {
    position: relative;
    width: 58px;
    min-width: 58px;
    height: 58px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    border: none;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--chat-widget-accent-start), var(--chat-widget-accent-end));
    color: #ffffff;
    box-shadow: 0 18px 32px var(--chat-widget-accent-shadow);
    overflow: hidden;
    touch-action: manipulation;
    transition:
        width 0.18s ease,
        min-width 0.18s ease,
        gap 0.18s ease,
        padding 0.18s ease,
        border-radius 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

body .chat-widget-launcher:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 38px var(--chat-widget-accent-shadow-strong);
}

body .chat-widget-launcher-icon {
    flex: 0 0 auto;
    font-size: 1.3rem;
    line-height: 1;
}

body .chat-widget-launcher-label {
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    margin-left: 0;
    white-space: nowrap;
    transform: translateX(8px);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition:
        max-width 0.18s ease,
        opacity 0.18s ease,
        margin-left 0.18s ease,
        transform 0.18s ease;
}

body .chat-widget-launcher-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    min-height: 24px;
    padding: 2px 7px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    background: rgba(247, 251, 255, 0.98);
    color: #0f5ec7;
    font-size: 0.72rem;
    font-weight: 800;
    box-shadow: 0 8px 16px rgba(9, 23, 40, 0.16);
}

body .chat-widget-root:hover .chat-widget-launcher,
body .chat-widget-root:focus-within .chat-widget-launcher,
body .chat-widget-root.is-open .chat-widget-launcher {
    width: 132px;
    min-width: 132px;
    padding-inline: 16px 18px;
    justify-content: flex-start;
    gap: 10px;
    border-radius: 999px;
}

body .chat-widget-root:hover .chat-widget-launcher-label,
body .chat-widget-root:focus-within .chat-widget-launcher-label,
body .chat-widget-root.is-open .chat-widget-launcher-label {
    max-width: 84px;
    opacity: 1;
    margin-left: 2px;
    transform: translateX(0);
}

body .chat-widget-panel {
    width: min(420px, calc(100vw - 32px));
    height: min(70vh, 640px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
    contain: layout paint style;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(248, 251, 255, 0.98);
    box-shadow: 0 28px 70px rgba(7, 17, 31, 0.3);
    backdrop-filter: blur(16px);
}

body .chat-widget-panel[hidden] {
    display: none !important;
}

body .chat-widget-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px;
    background: linear-gradient(135deg, var(--chat-widget-accent-start), var(--chat-widget-accent-end));
    color: #ffffff;
}

body .chat-widget-head strong {
    display: block;
    font-size: 1.1rem;
    overflow-wrap: anywhere;
}

body .chat-widget-head span {
    display: block;
    margin-top: 4px;
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.84);
}

body .chat-widget-head-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

body .chat-widget-full-link,
body .chat-widget-close,
body .chat-widget-back,
body .chat-widget-ghost,
body .chat-widget-tab,
body .chat-widget-attach,
body .chat-widget-send {
    border: none;
    border-radius: 999px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

body .chat-widget-full-link,
body .chat-widget-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-weight: 700;
}

body .chat-widget-close {
    width: 40px;
    min-width: 40px;
    padding: 0;
    font-size: 1.6rem;
    line-height: 1;
}

body .chat-widget-body,
body .chat-widget-home,
body .chat-widget-thread-view {
    min-height: 0;
}

body .chat-widget-body {
    display: grid;
    min-height: 0;
    height: 100%;
}

body .chat-widget-home,
body .chat-widget-thread-view {
    display: grid;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    background: rgba(248, 251, 255, 0.98);
}

body .chat-widget-home {
    grid-template-rows: auto auto minmax(0, 1fr);
}

body .chat-widget-thread-view {
    grid-template-rows: auto auto minmax(0, 1fr) auto;
}

body .chat-widget-thread-view[hidden],
body .chat-widget-home[hidden] {
    display: none !important;
}

body .chat-widget-toolbar,
body .chat-widget-thread-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px 12px;
}

body .chat-widget-tabs {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
}

body .chat-widget-tab,
body .chat-widget-ghost {
    min-height: 36px;
    padding: 0 14px;
    background: rgba(10, 24, 42, 0.08);
    color: var(--text-strong);
    font-weight: 700;
}

body .chat-widget-tab.active {
    background: linear-gradient(135deg, #123d74, #0f5ec7);
    color: #ffffff;
    box-shadow: 0 12px 22px rgba(15, 94, 199, 0.22);
}

body .chat-widget-search {
    padding: 0 18px 14px;
}

body .chat-widget-search input {
    width: 100%;
}

body .chat-widget-list-stack {
    min-height: 0;
    display: grid;
    overflow: hidden;
}

body .chat-widget-list-panel {
    display: none;
    min-height: 0;
    overflow: hidden;
}

body .chat-widget-list-panel.active {
    display: grid;
    min-height: 0;
}

body .chat-widget-thread-list,
body .chat-widget-contact-list {
    min-height: 0;
    height: auto;
    padding: 0 12px 14px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    align-content: start;
}

body .chat-widget-thread-card,
body .chat-widget-contact-card {
    align-items: start;
    appearance: none;
    font: inherit;
    box-shadow: none;
    border-radius: 20px;
    padding: 14px;
    min-height: 94px;
}

body .chat-widget-thread-card .chat-thread-meta,
body .chat-widget-contact-card .chat-thread-meta {
    line-clamp: 1;
    -webkit-line-clamp: 1;
}

body .chat-widget-thread-card .chat-thread-body p {
    line-clamp: 1;
    -webkit-line-clamp: 1;
}

body .chat-widget-thread-head {
    padding-top: 14px;
    border-bottom: 1px solid rgba(10, 24, 42, 0.08);
}

body .chat-widget-thread-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(10, 24, 42, 0.08);
    background: rgba(247, 250, 253, 0.96);
}

body .chat-widget-action {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.8rem;
}

body .chat-widget-back {
    width: 38px;
    min-width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 24, 42, 0.08);
    color: var(--text-strong);
    font-size: 1.1rem;
    font-weight: 800;
}

body .chat-widget-thread-focus {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
}

body .chat-widget-thread-focus strong {
    display: block;
    color: var(--text-strong);
    font-size: 0.95rem;
}

body .chat-widget-thread-focus span:not(.chat-avatar) {
    display: block;
    color: var(--text-soft);
    font-size: 0.8rem;
    line-height: 1.45;
}

body .chat-widget-message-board {
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    padding: 16px;
}

body .chat-widget-panel .chat-message-row {
    max-width: 88%;
}

body .chat-widget-panel .chat-message-bubble {
    padding: 12px 14px 10px;
    border-radius: 20px;
}

body .chat-widget-composer {
    padding: 12px 16px 16px;
    border-top: 1px solid rgba(10, 24, 42, 0.08);
    background: rgba(247, 250, 253, 0.96);
}

body .chat-widget-sticker-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(10, 24, 42, 0.08);
}

body .chat-widget-sticker-panel[hidden] {
    display: none !important;
}

body .chat-widget-sticker-button {
    padding: 12px 8px;
    border-radius: 14px;
}

body .chat-widget-attachment-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(10, 24, 42, 0.05);
    border: 1px solid rgba(10, 24, 42, 0.08);
}

body .chat-widget-attachment-preview strong,
body .chat-widget-attachment-preview span {
    display: block;
}

body .chat-widget-attachment-preview span {
    color: var(--text-soft);
    font-size: 0.8rem;
}

body .chat-widget-composer-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
}

body .chat-widget-composer-row textarea {
    min-height: 48px;
    max-height: 132px;
    resize: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

body .chat-widget-attach,
body .chat-widget-send {
    width: 46px;
    min-width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

body .chat-widget-attach {
    background: rgba(10, 24, 42, 0.08);
    color: var(--text-strong);
}

body .chat-widget-send {
    background: linear-gradient(135deg, var(--chat-widget-accent-start), var(--chat-widget-accent-end));
    color: #ffffff;
    box-shadow: 0 14px 24px rgba(15, 94, 199, 0.24);
}

body .chat-widget-full-link:hover,
body .chat-widget-close:hover,
body .chat-widget-back:hover,
body .chat-widget-ghost:hover,
body .chat-widget-tab:hover,
body .chat-widget-attach:hover,
body .chat-widget-send:hover {
    transform: translateY(-1px);
}

body.menu-open .chat-widget-root {
    opacity: 0;
    pointer-events: none;
}

body .attendance-camera-shortcut-root {
    --attendance-camera-accent-start: #0b223f;
    --attendance-camera-accent-end: #0f5ec7;
    --attendance-camera-shadow: rgba(15, 94, 199, 0.24);
    --attendance-camera-shadow-strong: rgba(15, 94, 199, 0.34);
    position: fixed;
    left: 18px;
    bottom: calc(18px + env(safe-area-inset-bottom));
    z-index: 2090;
    display: grid;
    justify-items: start;
}

body .attendance-camera-shortcut-button {
    width: 58px;
    min-width: 58px;
    height: 58px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    background: linear-gradient(135deg, var(--attendance-camera-accent-start), var(--attendance-camera-accent-end));
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 18px 30px var(--attendance-camera-shadow);
    overflow: hidden;
    touch-action: manipulation;
    transition:
        width 0.18s ease,
        min-width 0.18s ease,
        gap 0.18s ease,
        padding 0.18s ease,
        border-radius 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

body .attendance-camera-shortcut-button:hover,
body .attendance-camera-shortcut-button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 22px 38px var(--attendance-camera-shadow-strong);
}

body .attendance-camera-shortcut-icon {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
    font-size: 1.2rem;
    line-height: 1;
}

body .attendance-camera-shortcut-label {
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    margin-left: 0;
    white-space: nowrap;
    transform: translateX(-4px);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition:
        max-width 0.18s ease,
        opacity 0.18s ease,
        margin-left 0.18s ease,
        transform 0.18s ease;
}

body .attendance-camera-shortcut-root:hover .attendance-camera-shortcut-button,
body .attendance-camera-shortcut-root:focus-within .attendance-camera-shortcut-button {
    width: 148px;
    min-width: 148px;
    padding-inline: 16px 18px;
    justify-content: flex-start;
    gap: 10px;
    border-radius: 999px;
}

body .attendance-camera-shortcut-root:hover .attendance-camera-shortcut-label,
body .attendance-camera-shortcut-root:focus-within .attendance-camera-shortcut-label {
    max-width: 90px;
    opacity: 1;
    margin-left: 2px;
    transform: translateX(0);
}

body.menu-open .attendance-camera-shortcut-root {
    opacity: 0;
    pointer-events: none;
}

body .chat-shell {
    display: grid;
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
    gap: 0;
    padding: 0;
    height: clamp(460px, calc(100dvh - 300px), 760px);
    min-height: 460px;
    max-height: calc(100dvh - 180px);
    align-items: stretch;
    overflow: hidden;
    border-radius: 30px;
    border: 1px solid rgba(124, 156, 193, 0.24);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 28px 50px rgba(7, 17, 31, 0.18);
}

body .chat-page-shell {
    width: 100%;
    height: clamp(620px, calc(100dvh - 148px), 980px);
    min-height: 620px;
    max-height: calc(100dvh - 96px);
    margin-bottom: 0;
}

body .chat-sidebar-panel {
    display: grid;
    grid-template-rows: auto auto auto minmax(0, 1fr);
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.9), rgba(240, 245, 251, 0.86));
    border-right: 1px solid rgba(10, 24, 42, 0.08);
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

body .chat-main-panel {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    position: relative;
    background:
        radial-gradient(circle at top left, rgba(93, 183, 255, 0.12), transparent 22%),
        linear-gradient(180deg, rgba(232, 239, 247, 0.88), rgba(220, 231, 242, 0.82));
}

body .chat-main-panel.chat-main-panel-empty {
    display: grid;
    grid-template-rows: minmax(0, 1fr);
}

body .chat-sidebar-head,
body .chat-search-row,
body .chat-tab-row,
body .chat-main-head,
body .chat-composer {
    padding: 18px 20px;
}

body .chat-sidebar-head,
body .chat-search-row,
body .chat-tab-row,
body .chat-main-head {
    border-bottom: 1px solid rgba(10, 24, 42, 0.08);
    background: linear-gradient(180deg, rgba(247, 250, 253, 0.98), rgba(240, 245, 251, 0.94));
    backdrop-filter: blur(18px);
}

body .chat-sidebar-head,
body .chat-main-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    min-width: 0;
}

body .chat-self-card,
body .chat-thread-focus {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

body .chat-self-card > div,
body .chat-thread-focus > div {
    min-width: 0;
    flex: 1 1 auto;
}

body .chat-mobile-back {
    display: none;
    min-height: 40px;
    padding-inline: 14px;
    white-space: nowrap;
    flex: 0 0 auto;
}

body .chat-self-card strong,
body .chat-thread-focus strong,
body .chat-list-caption strong {
    display: block;
    font-size: 1rem;
    color: var(--text-strong);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body .chat-self-card span:not(.chat-avatar),
body .chat-thread-focus span:not(.chat-avatar) {
    display: block;
    max-width: 100%;
    color: var(--text-soft);
    font-size: 0.9rem;
    line-height: 1.45;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body .chat-avatar {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #123d74, #0f5ec7);
    color: #f7fbff;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    box-shadow: 0 14px 30px rgba(15, 94, 199, 0.2);
}

body .chat-avatar.mini {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    font-size: 0.8rem;
    box-shadow: 0 10px 18px rgba(15, 94, 199, 0.14);
}

body .chat-tab-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

body .chat-tab-row .ghost-button.active {
    background: linear-gradient(135deg, #123d74, #0f5ec7);
    color: #f7fbff;
    border-color: transparent;
    box-shadow: 0 16px 28px rgba(15, 94, 199, 0.28);
}

body .chat-list-stack {
    min-height: 0;
    display: grid;
    overflow: hidden;
}

body .chat-tab-panel {
    display: none;
    min-height: 0;
}

body .chat-tab-panel.active {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
}

body .chat-list-caption {
    display: grid;
    gap: 4px;
    padding: 16px 20px 12px;
}

body .chat-thread-list,
body .chat-contact-list {
    min-height: 0;
    overflow-y: auto;
    padding: 0 12px 14px;
    display: grid;
    gap: 8px;
    align-content: start;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

body .chat-thread-card,
body .chat-contact-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
    width: 100%;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(10, 24, 42, 0.08);
    background: rgba(255, 255, 255, 0.76);
    color: var(--text-strong);
    text-align: left;
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0 14px 28px rgba(7, 17, 31, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

body .chat-thread-card {
    grid-template-areas: "avatar body side";
    min-height: 96px;
}

body .chat-contact-card {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "avatar body";
    min-height: 82px;
}

body .chat-thread-card > .chat-avatar,
body .chat-contact-card > .chat-avatar {
    grid-area: avatar;
    align-self: center;
}

body .chat-thread-card *,
body .chat-contact-card * {
    text-decoration: none;
}

body .chat-thread-card:hover,
body .chat-contact-card:hover,
body .chat-thread-card.active {
    transform: translateY(-1px);
    border-color: rgba(33, 137, 255, 0.24);
    box-shadow: 0 18px 30px rgba(7, 17, 31, 0.12);
}

body .chat-thread-card.active {
    background: linear-gradient(135deg, rgba(18, 61, 116, 0.14), rgba(15, 94, 199, 0.08));
}

body .chat-thread-body,
body .chat-contact-body {
    grid-area: body;
    display: grid;
    align-content: start;
    gap: 2px;
    min-width: 0;
}

body .chat-thread-topline {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

body .chat-thread-topline strong {
    color: var(--text-strong);
    font-size: 0.96rem;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body .chat-thread-meta {
    color: var(--text-soft);
    font-size: 0.82rem;
    line-height: 1.4;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    line-clamp: 1;
    -webkit-line-clamp: 1;
}

body .chat-thread-body p {
    margin: 8px 0 0;
    color: var(--text-soft);
    font-size: 0.88rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    -webkit-line-clamp: 2;
}

body .chat-thread-side {
    grid-area: side;
    display: grid;
    justify-items: end;
    align-content: space-between;
    gap: 10px;
    min-width: 54px;
    min-height: 0;
    align-self: stretch;
}

body .chat-thread-side time {
    color: var(--text-soft);
    font-size: 0.76rem;
}

body .chat-unread-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    min-height: 26px;
    padding: 4px 7px;
    border-radius: 999px;
    background: linear-gradient(135deg, #25b66d, #169557);
    color: #f7fbff;
    font-size: 0.76rem;
    font-weight: 800;
}

body .chat-list-empty {
    margin: 0 8px 14px;
    padding: 18px;
    border-radius: 18px;
    border: 1px dashed rgba(10, 24, 42, 0.16);
    background: rgba(255, 255, 255, 0.58);
    color: var(--text-soft);
    line-height: 1.6;
}

body .chat-message-board {
    min-height: 0;
    min-width: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    padding: 22px 18px 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 14px;
    overscroll-behavior: contain;
    scrollbar-gutter: auto;
    scroll-behavior: auto;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.72), transparent 16%),
        radial-gradient(circle at top right, rgba(93, 183, 255, 0.08), transparent 18%),
        linear-gradient(180deg, rgba(244, 248, 252, 0.82), rgba(233, 240, 248, 0.52));
}

body .chat-message-board::before {
    content: "";
    flex: 1 1 auto;
    min-height: 0;
}

body .chat-message-board::-webkit-scrollbar {
    width: 8px;
}

body .chat-message-board::-webkit-scrollbar-track {
    background: transparent;
}

body .chat-message-board::-webkit-scrollbar-thumb {
    background: rgba(10, 24, 42, 0.12);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

body .chat-message-board:hover::-webkit-scrollbar-thumb {
    background: rgba(10, 24, 42, 0.22);
    background-clip: padding-box;
}

body .chat-message-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: fit-content;
    max-width: min(72%, 720px);
    flex: 0 0 auto;
}

body .chat-day-separator {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0 2px;
    color: rgba(10, 24, 42, 0.52);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

body .chat-day-separator::before,
body .chat-day-separator::after {
    content: "";
    height: 1px;
    flex: 1 1 auto;
    background: linear-gradient(90deg, rgba(124, 156, 193, 0), rgba(124, 156, 193, 0.26), rgba(124, 156, 193, 0));
}

body .chat-message-row.mine {
    margin-left: auto;
    align-items: flex-end;
}

body .chat-message-row.other {
    margin-right: auto;
    align-items: flex-start;
}

body .chat-message-row.is-grouped {
    margin-top: 3px;
}

body .chat-message-row.other.is-grouped {
    padding-left: 40px;
}

body .chat-message-sender {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-soft);
    font-size: 0.82rem;
    font-weight: 700;
}

body .chat-message-bubble {
    min-width: 110px;
    padding: 14px 16px 12px;
    border-radius: 22px;
    box-shadow: 0 18px 28px rgba(7, 17, 31, 0.1);
}

body .chat-message-row.other .chat-message-bubble {
    background: rgba(255, 255, 255, 0.96);
    border-top-left-radius: 12px;
}

body .chat-message-row.mine .chat-message-bubble {
    background: linear-gradient(135deg, rgba(18, 61, 116, 0.96), rgba(15, 94, 199, 0.94));
    color: #f7fbff;
    border-top-right-radius: 12px;
}

body .chat-message-row.is-grouped .chat-message-bubble {
    box-shadow: 0 12px 22px rgba(7, 17, 31, 0.08);
}

body .chat-message-row.mine.is-grouped .chat-message-bubble {
    border-top-right-radius: 22px;
}

body .chat-message-row.other.is-grouped .chat-message-bubble {
    border-top-left-radius: 22px;
}

body .chat-message-bubble p {
    margin: 0;
    line-height: 1.6;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

body .chat-message-bubble time {
    display: block;
    margin-top: 10px;
    font-size: 0.74rem;
    color: inherit;
    opacity: 0.72;
}

body .chat-message-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
}

body .chat-message-meta-row time {
    margin-top: 0;
}

body .chat-message-action {
    min-height: 28px;
    padding: 4px 10px;
    border: 1px solid rgba(10, 24, 42, 0.08);
    border-radius: 999px;
    background: rgba(10, 24, 42, 0.04);
    color: inherit;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease;
}

body .chat-message-action:hover {
    background: rgba(10, 24, 42, 0.08);
    border-color: rgba(10, 24, 42, 0.14);
    transform: translateY(-1px);
}

body .chat-message-row.mine .chat-message-action {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.12);
    color: #f7fbff;
}

body .chat-reply-quote {
    width: 100%;
    margin: 0 0 10px;
    padding: 10px 12px;
    display: flex;
    align-items: stretch;
    gap: 10px;
    border: 0;
    border-radius: 16px;
    background: rgba(10, 24, 42, 0.05);
    color: inherit;
    text-align: left;
}

body .chat-reply-quote:hover {
    background: rgba(10, 24, 42, 0.08);
}

body .chat-message-row.mine .chat-reply-quote {
    background: rgba(255, 255, 255, 0.14);
}

body .chat-reply-quote-bar {
    width: 4px;
    min-width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, #46a46e, #1a77d9);
}

body .chat-reply-quote-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

body .chat-reply-quote-copy strong,
body .chat-reply-quote-copy span {
    display: block;
}

body .chat-reply-quote-copy strong {
    font-size: 0.78rem;
}

body .chat-reply-quote-copy span {
    font-size: 0.78rem;
    line-height: 1.45;
    opacity: 0.82;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body .chat-message-row.is-focused .chat-message-bubble {
    box-shadow:
        0 0 0 2px rgba(93, 183, 255, 0.26),
        0 20px 34px rgba(15, 94, 199, 0.16);
}

body .chat-search-panel {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(10, 24, 42, 0.08);
    background: linear-gradient(180deg, rgba(244, 248, 252, 0.98), rgba(237, 243, 249, 0.94));
    display: grid;
    gap: 12px;
}

body .chat-search-panel[hidden] {
    display: none !important;
}

body .chat-search-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

body .chat-search-panel-head strong,
body .chat-search-panel-head span {
    display: block;
}

body .chat-search-panel-head span {
    margin-top: 4px;
    color: var(--text-soft);
    font-size: 0.84rem;
    line-height: 1.5;
}

body .chat-thread-search-field input {
    width: 100%;
}

body .chat-thread-search-results {
    display: grid;
    gap: 10px;
}

body .chat-search-result {
    width: 100%;
    padding: 12px 14px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(10, 24, 42, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--text-strong);
    text-align: left;
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

body .chat-search-result:hover {
    transform: translateY(-1px);
    border-color: rgba(33, 137, 255, 0.2);
    box-shadow: 0 16px 26px rgba(7, 17, 31, 0.08);
}

body .chat-search-result-body {
    min-width: 0;
    display: grid;
    gap: 4px;
}

body .chat-search-result-body strong,
body .chat-search-result-body span {
    display: block;
}

body .chat-search-result-body span {
    color: var(--text-soft);
    font-size: 0.82rem;
    line-height: 1.45;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body .chat-search-result time {
    color: var(--text-soft);
    font-size: 0.76rem;
    font-weight: 700;
}

body .chat-typing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 20px 8px;
    padding: 10px 14px;
    border-radius: 16px;
    background: rgba(10, 24, 42, 0.05);
    color: var(--text-soft);
    font-size: 0.84rem;
    font-weight: 700;
}

body .chat-typing-indicator[hidden] {
    display: none !important;
}

body .chat-typing-dots {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

body .chat-typing-dots i {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.34;
    animation: chat-typing-pulse 1.05s ease-in-out infinite;
}

body .chat-typing-dots i:nth-child(2) {
    animation-delay: 0.14s;
}

body .chat-typing-dots i:nth-child(3) {
    animation-delay: 0.28s;
}

body .chat-reply-preview {
    margin-bottom: 10px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid rgba(10, 24, 42, 0.08);
    border-radius: 16px;
    background: rgba(10, 24, 42, 0.04);
}

body .chat-reply-preview[hidden] {
    display: none !important;
}

body .chat-reply-preview-body {
    min-width: 0;
    display: grid;
    gap: 4px;
}

body .chat-reply-preview-body strong,
body .chat-reply-preview-body span {
    display: block;
}

body .chat-reply-preview-body span {
    color: var(--text-soft);
    font-size: 0.82rem;
    line-height: 1.45;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body .chat-widget-typing-indicator {
    margin: 0 16px 8px;
}

body .chat-widget-reply-preview {
    margin-bottom: 10px;
}

@keyframes chat-typing-pulse {
    0%,
    80%,
    100% {
        opacity: 0.26;
        transform: translateY(0);
    }
    40% {
        opacity: 0.9;
        transform: translateY(-2px);
    }
}

body .chat-composer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "tools tools"
        "inputs submit";
    gap: 12px 14px;
    align-items: stretch;
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(10, 24, 42, 0.08);
    background: rgba(247, 250, 253, 0.92);
    box-shadow: 0 -14px 28px rgba(7, 17, 31, 0.08);
}

body .chat-composer textarea {
    min-height: 52px;
    max-height: 160px;
    resize: none;
    width: 100%;
}

body .chat-empty-state {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 14px;
    min-height: 100%;
    overflow-y: auto;
    padding: 48px 24px;
    text-align: center;
}

body .chat-empty-art {
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    border-radius: 28px;
    background: linear-gradient(135deg, #123d74, #0f5ec7);
    color: #f7fbff;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    box-shadow: 0 22px 38px rgba(15, 94, 199, 0.24);
}

body .chat-empty-state h2 {
    margin: 0;
    color: var(--text-strong);
    font-size: clamp(1.5rem, 2vw, 2rem);
}

body .chat-empty-state p {
    margin: 0;
    max-width: 520px;
    color: var(--text-soft);
    line-height: 1.7;
}

body .chat-sidebar-actions,
body .chat-focus-actions,
body .chat-composer-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

body .chat-action-button,
body .chat-tool-button {
    min-height: 40px;
    padding-inline: 16px;
}

body .chat-focus-actions {
    margin-left: auto;
    justify-content: flex-end;
    min-width: 0;
}

body .chat-sync-badge {
    border-color: rgba(70, 164, 110, 0.2);
    background: rgba(70, 164, 110, 0.08);
    color: #0e7a43;
}

body .chat-sync-badge.is-syncing {
    border-color: rgba(33, 137, 255, 0.22);
    background: rgba(33, 137, 255, 0.1);
    color: #1250aa;
}

body .chat-sync-badge.is-stale {
    border-color: rgba(220, 136, 36, 0.24);
    background: rgba(220, 136, 36, 0.12);
    color: #9c5c00;
}

body .chat-action-button:disabled {
    opacity: 0.54;
    cursor: not-allowed;
    transform: none;
}

body .chat-action-icon {
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 16px;
}

body .chat-action-icon span {
    font-size: 1rem;
    line-height: 1;
}

body .chat-focus-menu {
    position: relative;
}

body .chat-focus-menu summary {
    list-style: none;
}

body .chat-focus-menu summary::-webkit-details-marker {
    display: none;
}

body .chat-focus-menu-toggle {
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 16px;
}

body .chat-focus-menu[open] .chat-focus-menu-toggle {
    background: rgba(15, 94, 199, 0.12);
    border-color: rgba(33, 137, 255, 0.24);
    box-shadow: 0 16px 28px rgba(15, 94, 199, 0.14);
}

body .chat-focus-menu-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    padding: 10px;
    display: grid;
    gap: 6px;
    border-radius: 22px;
    border: 1px solid rgba(124, 156, 193, 0.2);
    background:
        radial-gradient(circle at top left, rgba(93, 183, 255, 0.12), transparent 28%),
        linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(240, 245, 251, 0.96));
    box-shadow: 0 24px 38px rgba(7, 17, 31, 0.18);
    z-index: 14;
}

body .chat-focus-menu-item {
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid rgba(10, 24, 42, 0.06);
    background: rgba(255, 255, 255, 0.64);
    color: var(--text-strong);
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

body .chat-focus-menu-item:hover {
    transform: translateY(-1px);
    border-color: rgba(33, 137, 255, 0.2);
    background: rgba(33, 137, 255, 0.08);
}

body .chat-participant-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 20px 0;
}

body .chat-participant-strip.is-hidden {
    display: none;
}

body .chat-member-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(10, 24, 42, 0.08);
    color: var(--text-strong);
}

body .chat-message-attachment {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

body .chat-message-attachment strong,
body .chat-call-bubble strong,
body .chat-sticker-bubble strong {
    display: block;
    margin-bottom: 4px;
}

body .chat-message-attachment span {
    display: block;
    font-size: 0.78rem;
    opacity: 0.7;
}

body .chat-message-attachment a {
    color: inherit;
    font-weight: 700;
    text-decoration: none;
}

body .chat-message-board > .chat-list-empty,
body .chat-widget-message-board > .chat-list-empty {
    width: 100%;
    margin-top: auto;
    margin-block: auto;
}

body .chat-sticker-bubble {
    display: grid;
    justify-items: center;
    gap: 8px;
    min-width: 140px;
}

body .chat-sticker-bubble.has-image {
    min-width: 0;
}

body .chat-sticker-bubble span {
    font-size: 2.2rem;
    line-height: 1;
}

body .chat-sticker-bubble img {
    display: block;
    max-width: min(220px, 48vw);
    max-height: 220px;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 16px 28px rgba(7, 17, 31, 0.18);
}

body .chat-call-bubble {
    display: grid;
    gap: 6px;
}

body .chat-call-bubble p {
    margin: 0;
}

body .chat-composer {
    grid-template-columns: minmax(0, 1fr) auto;
}

body .chat-composer-inputs {
    grid-area: inputs;
    display: grid;
    gap: 12px;
    min-width: 0;
}

body .chat-composer-tools {
    grid-area: tools;
    min-width: 0;
}

body #chatComposerButton {
    grid-area: submit;
    min-width: 116px;
    align-self: stretch;
}

body .chat-attachment-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(10, 24, 42, 0.08);
}

body .chat-attachment-preview strong,
body .chat-attachment-preview span {
    display: block;
}

body .chat-attachment-preview span {
    color: var(--text-soft);
    font-size: 0.82rem;
}

body .chat-sticker-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 10px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(10, 24, 42, 0.08);
}

body .chat-call-layer {
    position: absolute;
    inset: 0;
    z-index: 8;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(7, 17, 31, 0.28);
    backdrop-filter: blur(16px);
}

body .chat-call-layer[hidden] {
    display: none;
}

body .chat-call-card {
    width: min(100%, 860px);
    min-height: min(100%, 640px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 18px;
    padding: 22px;
    border-radius: 30px;
    border: 1px solid rgba(124, 156, 193, 0.24);
    background:
        radial-gradient(circle at top left, rgba(93, 183, 255, 0.16), transparent 20%),
        linear-gradient(160deg, rgba(246, 250, 255, 0.98), rgba(231, 239, 248, 0.94));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 28px 60px rgba(7, 17, 31, 0.24);
}

body .chat-call-head,
body .chat-call-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

body .chat-call-chip {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(18, 61, 116, 0.08);
    border: 1px solid rgba(18, 61, 116, 0.1);
    color: var(--text-strong);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.76rem;
}

body .chat-call-stage {
    position: relative;
    min-height: 380px;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(10, 24, 42, 0.08);
    background:
        radial-gradient(circle at top, rgba(93, 183, 255, 0.16), transparent 26%),
        linear-gradient(180deg, rgba(13, 27, 46, 0.96), rgba(9, 18, 31, 0.98));
}

body .chat-call-remote-video,
body .chat-call-local-video {
    background: #09121f;
    object-fit: cover;
}

body .chat-call-remote-video {
    width: 100%;
    height: 100%;
}

body .chat-call-local-video {
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: min(28vw, 220px);
    aspect-ratio: 4 / 3;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: 0 18px 30px rgba(7, 17, 31, 0.34);
}

body .chat-call-avatar-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 16px;
    padding: 28px;
    text-align: center;
    color: #f7fbff;
}

body .chat-call-avatar-fallback.has-remote-video {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

body .chat-call-avatar-badge {
    width: 90px;
    height: 90px;
    flex-basis: 90px;
    font-size: 1.5rem;
    box-shadow: 0 22px 36px rgba(15, 94, 199, 0.28);
}

body .chat-call-meta {
    display: grid;
    gap: 8px;
}

body .chat-call-meta strong {
    font-size: clamp(1.55rem, 3vw, 2.25rem);
    line-height: 1.1;
}

body .chat-call-status {
    color: rgba(247, 251, 255, 0.86);
    font-weight: 700;
    letter-spacing: 0.02em;
}

body .chat-call-hint {
    max-width: 560px;
    margin: 0;
    color: rgba(247, 251, 255, 0.72);
    line-height: 1.7;
}

body .chat-call-primary-actions,
body .chat-call-secondary-actions,
body .chat-call-incoming-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

body .chat-call-secondary-actions.is-hidden {
    display: none;
}

body .chat-call-control.is-active {
    background: linear-gradient(135deg, #123d74, #0f5ec7);
    color: #f7fbff;
    border-color: transparent;
}

body .chat-call-danger {
    background: linear-gradient(135deg, #b63030, #8c1f1f);
    border-color: transparent;
    color: #f7fbff;
}

body .chat-call-danger:hover {
    color: #f7fbff;
}

body .chat-sticker-button {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 14px 10px;
    border-radius: 16px;
    border: 1px solid rgba(10, 24, 42, 0.08);
    background: rgba(248, 251, 255, 0.9);
    color: var(--text-strong);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

body .chat-sticker-button:hover {
    transform: translateY(-1px);
    border-color: rgba(33, 137, 255, 0.24);
    box-shadow: 0 16px 28px rgba(7, 17, 31, 0.12);
}

body .chat-sticker-button span {
    font-size: 1.9rem;
    line-height: 1;
}

body .chat-sticker-button strong {
    font-size: 0.82rem;
}

body .chat-sticker-upload-button {
    border-style: dashed;
}

body .chat-sticker-upload-button span {
    font-size: 1.6rem;
    font-weight: 800;
}

body .chat-widget-panel .chat-sticker-bubble img {
    max-width: min(160px, 50vw);
    max-height: 160px;
    border-radius: 16px;
}

body .chat-modal-backdrop {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(7, 17, 31, 0.5);
    z-index: 2400;
}

body .chat-modal-backdrop[hidden] {
    display: none !important;
}

body.chat-modal-open {
    overflow: hidden;
}

body .chat-modal-card {
    width: min(760px, 100%);
    max-height: min(88vh, 920px);
    overflow: auto;
    border-radius: 28px;
    background: rgba(247, 250, 253, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 28px 70px rgba(7, 17, 31, 0.32);
}

body .chat-modal-head,
body .chat-modal-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px;
}

body .chat-modal-head {
    border-bottom: 1px solid rgba(10, 24, 42, 0.08);
}

body .chat-modal-head strong {
    display: block;
    color: var(--text-strong);
}

body .chat-modal-head span {
    color: var(--text-soft);
    font-size: 0.9rem;
}

body .chat-modal-form {
    display: grid;
    gap: 16px;
    padding: 20px;
}

body .chat-modal-form label,
body .chat-modal-members {
    display: grid;
    gap: 8px;
}

body .chat-group-member-list {
    display: grid;
    gap: 10px;
    max-height: 320px;
    overflow: auto;
    padding-right: 6px;
}

body .chat-group-member-option {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid rgba(10, 24, 42, 0.08);
    background: rgba(255, 255, 255, 0.76);
}

body .chat-group-member-option strong,
body .chat-group-member-option small {
    display: block;
}

body .chat-group-member-option small {
    color: var(--text-soft);
}

body .chat-modal-actions {
    border-top: 1px solid rgba(10, 24, 42, 0.08);
}

@media (max-width: 1080px) {
    body .chat-composer {
        grid-template-columns: 1fr;
        grid-template-areas:
            "tools"
            "inputs"
            "submit";
    }

    body .chat-composer-tools,
    body .chat-focus-actions,
    body .chat-sidebar-actions,
    body .chat-modal-head,
    body .chat-modal-actions {
        justify-content: flex-start;
    }

    body .chat-participant-strip {
        padding-inline: 16px;
    }
}

body .badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: var(--mono);
    background: rgba(10, 24, 42, 0.08);
    color: var(--text-soft);
}

body .pending,
body .orange {
    background: var(--theme-warning-soft-bg, rgba(255, 191, 71, 0.18));
    color: var(--theme-warning-soft-color, #7d5500);
}

body .approved,
body .green {
    background: var(--theme-success-soft-bg, rgba(33, 197, 125, 0.16));
    color: var(--theme-success-soft-color, #0d6b43);
}

body .rejected,
body .red {
    background: var(--theme-danger-soft-bg, rgba(255, 107, 107, 0.16));
    color: var(--theme-danger-soft-color, #8d1e1e);
}

body .INBOUND,
body .stock-ok {
    color: var(--theme-success-soft-color, #0d6b43);
}

body .OUTBOUND,
body .stock-empty,
body .low {
    color: var(--theme-danger-soft-color, #9b1c1c);
}

body .TRANSFER,
body .TRANSFER_IN,
body .TRANSFER_OUT,
body .stock-low {
    color: var(--theme-info-soft-color, #155e75);
}

body .flash-stack {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

body .flash,
body .msg {
    padding: 14px 16px;
    border-radius: 16px;
    font-size: 0.94rem;
    border: 1px solid transparent;
}

body .flash.error,
body .msg.error {
    background: var(--theme-danger-soft-bg, rgba(255, 107, 107, 0.12));
    color: var(--theme-danger-soft-color, #7c1d1d);
    border-color: var(--theme-danger-soft-border, rgba(255, 107, 107, 0.18));
}

body .flash.success,
body .msg.success {
    background: var(--theme-success-soft-bg, rgba(33, 197, 125, 0.12));
    color: var(--theme-success-soft-color, #0f6a43);
    border-color: var(--theme-success-soft-border, rgba(33, 197, 125, 0.18));
}

body .flash.warning,
body .msg.warning {
    background: var(--theme-warning-soft-bg, rgba(255, 191, 71, 0.12));
    color: var(--theme-warning-soft-color, #7d5500);
    border-color: var(--theme-warning-soft-border, rgba(255, 191, 71, 0.18));
}

body .flash.info,
body .msg.info {
    background: var(--theme-info-soft-bg, rgba(107, 212, 255, 0.12));
    color: var(--theme-info-soft-color, #155e75);
    border-color: var(--theme-info-soft-border, rgba(107, 212, 255, 0.18));
}

body .form-grid,
body .top-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

body .top-bar {
    margin-bottom: 16px;
}

body .top-bar > * {
    margin: 0;
}

body .pos-sales-log-wa-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(8, 15, 28, 0.42);
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-strong);
    user-select: none;
    cursor: pointer;
}

body .pos-sales-log-wa-filter input {
    width: 16px;
    height: 16px;
    margin: 0;
}

body .alerts {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

body .stock-table {
    min-width: 1840px;
    table-layout: fixed;
}

body .stock-table th:nth-child(1),
body .stock-table td:nth-child(1) {
    width: 52px;
}

body .stock-table th:nth-child(2),
body .stock-table td:nth-child(2) {
    width: 150px;
}

body .stock-table th:nth-child(3),
body .stock-table td:nth-child(3) {
    width: 280px;
}

body .stock-table th:nth-child(4),
body .stock-table td:nth-child(4) {
    width: 180px;
}

body .stock-table th:nth-child(5),
body .stock-table td:nth-child(5) {
    width: 90px;
}

body .stock-table th:nth-child(6),
body .stock-table td:nth-child(6),
body .stock-table th:nth-child(11),
body .stock-table td:nth-child(11) {
    width: 110px;
}

body .stock-table th:nth-child(7),
body .stock-table td:nth-child(7) {
    width: 260px;
}

body .stock-table th:nth-child(8),
body .stock-table td:nth-child(8),
body .stock-table th:nth-child(9),
body .stock-table td:nth-child(9),
body .stock-table th:nth-child(10),
body .stock-table td:nth-child(10) {
    width: 160px;
}

body .stock-table th:nth-child(12),
body .stock-table td:nth-child(12) {
    width: 130px;
}

body .stock-table .edit-field {
    width: 100%;
    min-width: 0;
}

body .stock-table td:nth-child(3) .edit-field,
body .stock-table td:nth-child(4) .edit-field {
    text-overflow: clip;
}

body .stock-table .split-actions {
    min-width: 170px;
}

body .stock-table .money-input {
    min-width: 150px;
}

body .stock-readonly-field,
body .stock-readonly-money {
    min-height: 44px;
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(8, 15, 28, 0.46);
    color: #e5eefb;
}

body .stock-readonly-field {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    line-height: 1.35;
}

body .stock-readonly-money {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 0 12px;
}

body .stock-readonly-money span {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--text-soft);
}

body .stock-readonly-money strong {
    min-width: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #e5eefb;
}

body .stock-mobile-hint {
    margin-bottom: 14px;
}

body .workspace-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    margin-bottom: 18px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(8, 15, 28, 0.46);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body .workspace-switch a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    color: var(--text-soft);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

body .workspace-switch a:hover {
    color: var(--text-strong);
    background: rgba(255, 255, 255, 0.04);
}

body .workspace-switch a.active {
    color: #f8fbff;
    background: linear-gradient(135deg, rgba(28, 108, 226, 0.96), rgba(43, 129, 255, 0.9));
    box-shadow: 0 16px 28px rgba(18, 67, 136, 0.24);
}

body .product-studio-shell {
    margin-top: 20px;
    padding: 24px;
    border-radius: 28px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background:
        linear-gradient(180deg, rgba(10, 18, 32, 0.92), rgba(9, 16, 28, 0.9));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 22px 44px rgba(3, 10, 20, 0.2);
    scroll-margin-top: 108px;
}

body .product-studio-shell.is-active {
    border-color: rgba(76, 159, 255, 0.28);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 0 0 1px rgba(76, 159, 255, 0.12),
        0 24px 48px rgba(3, 10, 20, 0.24);
}

body .product-studio-shell .section-title + .meta-grid {
    margin-top: 16px;
}

body .products-filter-bar {
    margin-top: 18px;
}

body .product-studio-import-box {
    margin-top: 18px;
}

body .products-manual-box,
body .products-list-box {
    margin-top: 18px;
}

body .stock-context-menu {
    position: fixed;
    z-index: 1400;
    min-width: 220px;
    padding: 10px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: linear-gradient(180deg, rgba(10, 18, 32, 0.98), rgba(8, 15, 28, 0.98));
    box-shadow: 0 24px 48px rgba(2, 8, 18, 0.3);
}

body .stock-context-menu button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 44px;
    padding: 10px 14px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--text-strong);
    font-size: 0.92rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

body .stock-context-menu button:hover {
    background: rgba(93, 183, 255, 0.12);
    color: #f8fbff;
}

body .pos-sales-context-menu {
    position: fixed;
    z-index: 1400;
    min-width: 240px;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: linear-gradient(180deg, rgba(10, 18, 32, 0.98), rgba(8, 15, 28, 0.98));
    box-shadow: 0 24px 48px rgba(2, 8, 18, 0.3);
}

body .pos-sales-context-header {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-strong);
    margin-bottom: 6px;
}

body .pos-sales-context-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

body .pos-sales-context-divider {
    height: 1px;
    background: rgba(148, 163, 184, 0.16);
    margin: 8px 0;
}

body .pos-sales-context-link,
body .pos-sales-context-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 44px;
    padding: 10px 14px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--text-strong);
    font-size: 0.92rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    text-decoration: none;
}

body .pos-sales-context-link:hover,
body .pos-sales-context-button:hover {
    background: rgba(93, 183, 255, 0.12);
    color: #f8fbff;
}

body .pos-sales-context-form {
    display: grid;
    gap: 8px;
    margin-top: 4px;
}

body .pos-sales-context-form select {
    width: 100%;
    min-height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    padding: 8px 10px;
    background: rgba(15, 23, 42, 0.6);
    color: var(--text-strong);
}

html[data-theme="light"] body .pos-sales-context-menu {
    border-color: rgba(148, 163, 184, 0.26);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.985), rgba(242, 247, 252, 0.975));
    box-shadow:
        0 26px 52px rgba(15, 23, 42, 0.18),
        0 8px 18px rgba(215, 183, 96, 0.08);
}

html[data-theme="light"] body .pos-sales-context-header {
    color: #12253c;
}

html[data-theme="light"] body .pos-sales-context-meta {
    color: #5f738b;
}

html[data-theme="light"] body .pos-sales-context-divider {
    background: rgba(148, 163, 184, 0.2);
}

html[data-theme="light"] body .pos-sales-context-link,
html[data-theme="light"] body .pos-sales-context-button {
    color: #12253c;
}

html[data-theme="light"] body .pos-sales-context-link:hover,
html[data-theme="light"] body .pos-sales-context-button:hover {
    background: rgba(33, 137, 255, 0.12);
    color: #0b1d33;
}

html[data-theme="light"] body .pos-sales-context-form select {
    border-color: rgba(148, 163, 184, 0.28);
    background: rgba(255, 255, 255, 0.96);
    color: #12253c;
}

body .stock-edit-modal-open {
    overflow: hidden;
}

body .stock-edit-modal-panel {
    width: min(680px, calc(100vw - 32px));
}

body .stock-search-replace-panel {
    width: min(760px, calc(100vw - 32px));
}

body .stock-edit-modal-panel [hidden] {
    display: none !important;
}

body .stock-edit-detail-form {
    display: grid;
    gap: 18px;
}

body .stock-edit-detail-form .form-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

body .stock-edit-modal-actions {
    margin-top: 4px;
}

body .stock-search-replace-form .form-grid {
    align-items: start;
}

body .stock-search-replace-option {
    display: grid;
    gap: 10px;
}

body .stock-search-replace-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #f8fbff;
}

body .stock-search-replace-checkbox input {
    width: 18px;
    height: 18px;
}

body .stock-search-replace-preview {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(93, 183, 255, 0.18);
    background: rgba(11, 18, 32, 0.6);
    color: rgba(226, 232, 240, 0.92);
    line-height: 1.5;
}

body .stock-search-replace-preview-list {
    display: grid;
    gap: 10px;
    max-height: 240px;
    overflow: auto;
    padding-right: 4px;
}

body .stock-search-replace-preview-item {
    display: grid;
    gap: 6px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(8, 15, 28, 0.6);
}

body .stock-search-replace-preview-item strong {
    color: #f8fbff;
    font-size: 0.88rem;
}

body .stock-search-replace-preview-before,
body .stock-search-replace-preview-after {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.84rem;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body .stock-search-replace-preview-before {
    color: rgba(226, 232, 240, 0.7);
}

body .stock-search-replace-preview-after {
    color: #8fd0ff;
}

body .stock-search-replace-preview-more {
    padding-inline: 4px;
}

@media (max-width: 720px) {
    body .workspace-switch {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body .workspace-switch a {
        width: 100%;
        min-width: 0;
        padding-inline: 12px;
        font-size: 0.86rem;
    }

    body .product-studio-shell {
        padding: 18px;
    }

    body .stock-context-menu {
        min-width: min(240px, calc(100vw - 24px));
    }

    body .stock-edit-modal-panel {
        width: calc(100vw - 20px);
        padding: 20px 18px;
        border-radius: 22px;
    }

    body .stock-search-replace-panel {
        width: calc(100vw - 20px);
    }
}

body .stock-product-group-row > td {
    vertical-align: top;
}

body .stock-group-check-cell {
    vertical-align: middle;
}

body .stock-group-summary-meta {
    display: grid;
    gap: 4px;
    min-width: 0;
}

body .stock-group-summary-meta strong {
    color: #f8fafc;
    font-size: 0.94rem;
}

body .stock-group-summary-meta small {
    color: rgba(226, 232, 240, 0.74);
    white-space: normal;
}

body .stock-group-mobile-copy {
    display: none;
    min-width: 0;
}

body .stock-group-mobile-copy strong {
    display: block;
    color: #f8fafc;
    font-size: 0.94rem;
}

body .stock-group-mobile-copy small {
    display: block;
    margin-top: 4px;
    color: rgba(226, 232, 240, 0.72);
}

body .stock-product-group-cell {
    padding: 14px 16px;
}

body .stock-variant-disclosure {
    width: 100%;
}

body .stock-variant-disclosure summary {
    list-style: none;
}

body .stock-variant-disclosure summary::-webkit-details-marker {
    display: none;
}

body .stock-variant-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(11, 18, 32, 0.44);
    cursor: pointer;
}

body .stock-variant-summary-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

body .stock-variant-summary-copy strong {
    font-size: 0.96rem;
    color: #f8fafc;
}

body .stock-variant-summary-copy small {
    color: rgba(226, 232, 240, 0.78);
    white-space: normal;
}

body .stock-variant-summary-pills {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    min-width: 0;
}

body .stock-group-edit-trigger {
    min-width: 0;
    padding: 10px 14px;
    min-height: 40px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(236, 243, 249, 0.92));
    color: #0f223b;
    border-color: rgba(10, 24, 42, 0.16);
    box-shadow: none;
    white-space: nowrap;
}

body .stock-group-edit-trigger:hover {
    transform: translateY(-1px);
}

body .stock-group-detail-panel {
    margin-top: 12px;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(8, 15, 28, 0.6);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

body .stock-group-variant-table {
    width: 100%;
    min-width: 1080px;
    border-collapse: collapse;
    table-layout: fixed;
}

body .stock-group-variant-table th,
body .stock-group-variant-table td {
    padding: 10px 8px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    text-align: left;
    vertical-align: middle;
}

body .stock-group-variant-table th {
    font-size: 0.74rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

body .stock-group-variant-table .stock-col-select {
    width: 56px;
}

body .stock-group-variant-table .stock-col-sku {
    width: 88px;
}

body .stock-group-variant-table .stock-col-variant {
    width: 152px;
}

body .stock-group-variant-table .stock-col-qty {
    width: 60px;
}

body .stock-group-variant-table .stock-col-status {
    width: 88px;
}

body .stock-group-variant-table .stock-col-price {
    width: 132px;
}

body .stock-group-variant-table .stock-col-aging {
    width: 90px;
}

body .stock-group-variant-table .stock-col-date {
    width: 118px;
}

body .stock-group-variant-table tbody tr:last-child td {
    border-bottom: 0;
}

body .stock-group-variant-table .edit-field,
body .stock-group-variant-table .money-input {
    width: 100%;
}

body .stock-group-variant-table .edit-field {
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 16px;
}

body .stock-group-variant-table .money-input {
    min-width: 0;
    min-height: 42px;
    padding: 0 10px;
    border-radius: 16px;
}

body .stock-group-variant-table .money-input input {
    padding: 10px 0;
}

body .stock-group-variant-table td.stock-col-qty,
body .stock-group-variant-table td.stock-col-status {
    padding-left: 2px;
    padding-right: 6px;
}

body .stock-group-variant-table td.stock-col-price {
    padding-left: 6px;
}

body .stock-group-variant-table .qty-text,
body .stock-group-variant-table .stock-col-aging {
    white-space: nowrap;
}

body .variant-builder {
    padding: 0;
    margin-bottom: 14px;
    border-radius: 22px;
    border-color: rgba(10, 24, 42, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 249, 252, 0.98));
}

body .variant-builder::before {
    display: none;
}

body .variant-builder table {
    min-width: 1020px;
    background: #fff;
}

body .variant-builder th,
body .variant-builder td {
    border-right: 1px solid rgba(10, 24, 42, 0.08);
}

body .variant-builder th:last-child,
body .variant-builder td:last-child {
    border-right: 0;
}

body .variant-builder th {
    background: #f4f5f7;
    color: #6d7683;
    text-align: center;
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    padding: 14px 12px;
}

body .variant-builder td {
    vertical-align: top;
    padding: 12px 12px;
    background: rgba(255, 255, 255, 0.98);
}

body .variant-builder tbody tr:nth-child(even) td {
    background: #fcfcfd;
}

body .variant-builder td:first-child {
    background: #f9fafb;
}

body .variant-builder th:nth-child(1),
body .variant-builder td:nth-child(1) {
    width: 172px;
}

body .variant-builder th:nth-child(2),
body .variant-builder td:nth-child(2) {
    width: 320px;
}

body .variant-builder th:nth-child(3),
body .variant-builder td:nth-child(3) {
    width: 170px;
}

body .variant-builder th:nth-child(4),
body .variant-builder td:nth-child(4),
body .variant-builder th:nth-child(5),
body .variant-builder td:nth-child(5) {
    width: 180px;
}

body .variant-builder th:nth-child(6),
body .variant-builder td:nth-child(6) {
    width: 110px;
}

body .variant-builder input[type="text"],
body .variant-builder input[type="number"] {
    min-width: 0;
    background: #fff;
    border-color: rgba(148, 163, 184, 0.26);
    min-height: 38px;
    padding: 10px 12px;
    font-size: 0.92rem;
    box-shadow: none;
}

body .variant-builder input[type="text"]::placeholder,
body .variant-builder input[type="number"]::placeholder {
    color: #b0bac8;
    opacity: 0.58;
}

body .variant-builder input:focus {
    border-color: rgba(33, 137, 255, 0.28);
    box-shadow: 0 0 0 3px rgba(33, 137, 255, 0.08);
}

body .variant-size-input {
    max-width: 82px;
    margin-inline: auto;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
}

body .variant-color-input {
    max-width: 116px;
    margin-inline: auto;
    text-align: center;
    font-weight: 600;
}

body .variant-size-cell {
    vertical-align: middle;
}

body .variant-size-shell {
    display: grid;
    justify-items: stretch;
    min-height: 126px;
    align-content: center;
}

body .variant-size-stack {
    display: grid;
    gap: 12px;
}

body .variant-size-block {
    display: grid;
    justify-items: center;
    gap: 8px;
}

body .variant-size-label {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #97a1af;
}

body .variant-price-card,
body .variant-stock-card,
body .variant-meta-stack {
    display: grid;
    gap: 10px;
    min-height: 126px;
    align-content: start;
}

body .variant-field-stack {
    display: grid;
    gap: 10px;
    min-width: 190px;
}

body .variant-field-stack > div {
    display: grid;
    gap: 5px;
}

body .variant-currency-input {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    background: #fff;
}

body .variant-currency-input span {
    flex: 0 0 auto;
    font-size: 0.78rem;
    font-weight: 700;
    color: #98a4b3;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body .variant-currency-input input {
    border: 0;
    padding: 0;
    min-height: 0;
    background: transparent;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

body input[data-wms-currency] {
    font-variant-numeric: tabular-nums;
}

body input[data-wms-currency].is-updated {
    border-color: rgba(33, 137, 255, 0.42);
    box-shadow: 0 0 0 4px rgba(33, 137, 255, 0.12);
    background: rgba(255, 255, 255, 0.92);
    transition: box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

html[data-theme="dark"] body input[data-wms-currency].is-updated {
    background: rgba(10, 24, 42, 0.78);
}

body input[data-wms-currency]::-webkit-outer-spin-button,
body input[data-wms-currency]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

body .variant-currency-input input:focus {
    border: 0;
    box-shadow: none;
    background: transparent;
}

body .variant-currency-input:focus-within {
    border-color: rgba(33, 137, 255, 0.28);
    box-shadow: 0 0 0 3px rgba(33, 137, 255, 0.08);
}

body .variant-mini-label {
    display: inline-block;
    margin: 0;
    color: var(--text-soft);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body .variant-price-summary,
body .variant-stock-hint {
    font-size: 0.78rem;
    line-height: 1.5;
    color: #68778a;
}

body .variant-price-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

body .variant-price-action-button {
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-main);
    background: rgba(33, 137, 255, 0.08);
    border-color: rgba(33, 137, 255, 0.16);
}

body .variant-price-action-button:hover {
    background: rgba(33, 137, 255, 0.14);
    border-color: rgba(33, 137, 255, 0.26);
}

body .variant-stock-card input {
    max-width: 132px;
}

body .variant-builder td:nth-child(1),
body .variant-builder td:nth-child(3),
body .variant-builder td:nth-child(6) {
    text-align: center;
}

body .variant-remove-button {
    min-width: 96px;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 12px;
    background: rgba(10, 24, 42, 0.04);
    color: var(--text-soft);
    border-color: rgba(10, 24, 42, 0.1);
}

body .ops-batch-box {
    padding: clamp(20px, 2vw, 28px);
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(240, 245, 251, 0.96));
}

body .ops-config-grid {
    grid-template-columns: minmax(240px, 1.2fr) minmax(240px, 0.8fr);
    align-items: stretch;
    margin-bottom: 12px;
    gap: 14px;
}

body .ops-config-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 18px 20px;
    border-radius: 22px;
    border: 1px solid rgba(10, 24, 42, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 252, 0.94));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 14px 28px rgba(4, 12, 24, 0.08);
}

body .ops-config-card strong {
    font-family: var(--display);
    font-size: 1.05rem;
    letter-spacing: -0.03em;
    color: var(--text-strong);
}

body .ops-mobile-hint {
    margin-bottom: 14px;
}

body .ops-entry-box {
    margin-bottom: 18px;
    padding: 20px;
    border-radius: 24px;
    border: 1px solid rgba(10, 24, 42, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(243, 247, 252, 0.92));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 18px 34px rgba(7, 17, 31, 0.08);
}

body .ops-entry-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.7fr) minmax(180px, 0.8fr) repeat(4, minmax(140px, 0.8fr)) auto;
    gap: 14px;
    align-items: end;
}

body .ops-entry-grid.request-entry-grid {
    grid-template-columns: minmax(260px, 1.7fr) minmax(180px, 0.8fr) minmax(140px, 0.7fr) auto;
}

body .ops-entry-grid.request-custom-entry-grid {
    grid-template-columns: minmax(260px, 1.4fr) minmax(180px, 1fr) minmax(220px, 1fr) minmax(140px, 0.7fr) auto;
    margin-top: 14px;
}

body .ops-entry-grid.outbound-entry-grid {
    grid-template-columns: minmax(260px, 1.7fr) minmax(180px, 0.8fr) minmax(140px, 0.7fr) minmax(220px, 1fr) auto;
}

body .ops-entry-grid > div {
    min-width: 0;
}

body .ops-entry-actions {
    display: flex;
    align-items: stretch;
}

body .ops-entry-actions button {
    width: 100%;
    min-width: 118px;
}

body .ops-entry-stock {
    display: grid;
    gap: 8px;
}

body .ops-entry-stock label,
body .ops-entry-item label {
    margin-bottom: 0;
}

body .ops-entry-box .helper-text {
    margin-top: 8px;
}

body .request-custom-callout {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(49, 91, 150, 0.18);
    background: linear-gradient(180deg, rgba(228, 239, 252, 0.95), rgba(239, 246, 255, 0.92));
}

body .request-custom-callout strong {
    display: block;
    margin-bottom: 4px;
    color: #17304a;
}

body .request-custom-callout p {
    margin: 0;
    color: #45617c;
}

html[data-theme="dark"] body .request-custom-callout {
    border-color: rgba(110, 168, 255, 0.18);
    background: linear-gradient(180deg, rgba(18, 31, 50, 0.92), rgba(13, 25, 40, 0.9));
}

html[data-theme="dark"] body .request-custom-callout strong {
    color: #fff4cf;
}

html[data-theme="dark"] body .request-custom-callout p {
    color: #9db4cf;
}

body .ops-queue-box {
    padding: 0;
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable both-edges;
    border-radius: 22px;
}

body .ops-queue-table {
    min-width: 960px;
    table-layout: fixed;
    background: rgba(255, 255, 255, 0.98);
    color: #10233b;
}

body .ops-queue-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 16px 14px;
    background: #eef4fa;
    color: #2e4864;
    font-weight: 800;
    box-shadow: inset 0 -1px 0 rgba(10, 24, 42, 0.06);
}

body .ops-queue-table td {
    padding: 14px;
    vertical-align: top;
    color: #10233b;
}

body .ops-queue-table tbody tr:nth-child(even) td {
    background: rgba(248, 250, 253, 0.84);
}

body .ops-queue-table td strong,
body .ops-queue-table td .mono {
    color: #081222;
}

body .ops-queue-table td strong {
    display: block;
    margin-bottom: 4px;
}

body .ops-queue-table td small:not(.stock-empty):not(.stock-low):not(.stock-ok):not(.green):not(.red):not(.orange),
body .ops-queue-table td .helper-text:not(.stock-empty):not(.stock-low):not(.stock-ok):not(.green):not(.red):not(.orange) {
    color: #5a7189;
}

body .ops-queue-empty {
    min-height: 180px;
    display: grid;
    place-items: center;
    padding: 24px;
    text-align: center;
    color: #44617d;
    font-weight: 700;
    background: linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(243, 247, 252, 0.96));
}

body .ops-lines-box {
    padding: 0;
    overflow: auto;
    max-height: min(58vh, 680px);
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable both-edges;
}

body .ops-lines-table {
    min-width: 1120px;
    table-layout: fixed;
    background: rgba(255, 255, 255, 0.98);
    color: #10233b;
}

body .ops-lines-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 16px 14px;
    background: #eef4fa;
    color: #2e4864;
    font-weight: 800;
}

body .ops-lines-table td {
    padding: 14px;
    vertical-align: top;
    color: #10233b;
}

body .ops-lines-table tbody tr:nth-child(even) td {
    background: rgba(248, 250, 253, 0.84);
}

body .ops-lines-table td strong,
body .ops-lines-table td .mono {
    color: #081222;
}

body .ops-lines-table td small:not(.stock-empty):not(.stock-low):not(.stock-ok):not(.green):not(.red):not(.orange),
body .ops-lines-table td .helper-text:not(.stock-empty):not(.stock-low):not(.stock-ok):not(.green):not(.red):not(.orange) {
    color: #5a7189;
}

body .inbound-lines-table th:nth-child(1),
body .inbound-lines-table td:nth-child(1) {
    width: 32%;
}

body .inbound-lines-table th:nth-child(2),
body .inbound-lines-table td:nth-child(2) {
    width: 16%;
}

body .inbound-lines-table th:nth-child(3),
body .inbound-lines-table td:nth-child(3),
body .inbound-lines-table th:nth-child(4),
body .inbound-lines-table td:nth-child(4),
body .inbound-lines-table th:nth-child(5),
body .inbound-lines-table td:nth-child(5),
body .inbound-lines-table th:nth-child(6),
body .inbound-lines-table td:nth-child(6) {
    width: 12%;
}

body .inbound-lines-table th:nth-child(7),
body .inbound-lines-table td:nth-child(7) {
    width: 16%;
}

body .inbound-lines-table th:nth-child(8),
body .inbound-lines-table td:nth-child(8) {
    width: 12%;
}

body .outbound-lines-table {
    min-width: 980px;
}

body .outbound-lines-table th:nth-child(1),
body .outbound-lines-table td:nth-child(1) {
    width: 40%;
}

body .outbound-lines-table th:nth-child(2),
body .outbound-lines-table td:nth-child(2) {
    width: 18%;
}

body .outbound-lines-table th:nth-child(3),
body .outbound-lines-table td:nth-child(3) {
    width: 18%;
}

body .outbound-lines-table th:nth-child(4),
body .outbound-lines-table td:nth-child(4) {
    width: 16%;
}

body .outbound-lines-table th:nth-child(5),
body .outbound-lines-table td:nth-child(5) {
    width: 8%;
}

body .inbound-queue-table th:nth-child(1),
body .inbound-queue-table td:nth-child(1) {
    width: 6%;
}

body .inbound-queue-table th:nth-child(2),
body .inbound-queue-table td:nth-child(2) {
    width: 26%;
}

body .inbound-queue-table th:nth-child(3),
body .inbound-queue-table td:nth-child(3),
body .inbound-queue-table th:nth-child(4),
body .inbound-queue-table td:nth-child(4),
body .inbound-queue-table th:nth-child(6),
body .inbound-queue-table td:nth-child(6) {
    width: 9%;
}

body .inbound-queue-table th:nth-child(5),
body .inbound-queue-table td:nth-child(5) {
    width: 11%;
}

body .inbound-queue-table th:nth-child(7),
body .inbound-queue-table td:nth-child(7),
body .inbound-queue-table th:nth-child(8),
body .inbound-queue-table td:nth-child(8) {
    width: 10%;
}

body .inbound-queue-table th:nth-child(9),
body .inbound-queue-table td:nth-child(9) {
    width: 10%;
    text-align: center;
    white-space: nowrap;
}

body .outbound-queue-table th:nth-child(1),
body .outbound-queue-table td:nth-child(1),
body .request-queue-table th:nth-child(1),
body .request-queue-table td:nth-child(1) {
    width: 6%;
}

body .outbound-queue-table th:nth-child(2),
body .outbound-queue-table td:nth-child(2),
body .request-queue-table th:nth-child(2),
body .request-queue-table td:nth-child(2) {
    width: 34%;
}

body .outbound-queue-table th:nth-child(3),
body .outbound-queue-table td:nth-child(3),
body .request-queue-table th:nth-child(3),
body .request-queue-table td:nth-child(3) {
    width: 14%;
}

body .outbound-queue-table th:nth-child(4),
body .outbound-queue-table td:nth-child(4),
body .request-queue-table th:nth-child(4),
body .request-queue-table td:nth-child(4) {
    width: 14%;
}

body .outbound-queue-table th:nth-child(5),
body .outbound-queue-table td:nth-child(5) {
    width: 22%;
}

body .outbound-queue-table th:nth-child(6),
body .outbound-queue-table td:nth-child(6),
body .request-queue-table th:nth-child(5),
body .request-queue-table td:nth-child(5) {
    width: 10%;
}

body .request-queue-table th:nth-child(6),
body .request-queue-table td:nth-child(6) {
    width: 10%;
}

body .ops-item-selector {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

body .ops-item-display {
    min-width: 0;
    font-weight: 600;
    color: var(--text-strong);
    letter-spacing: -0.01em;
}

body .ops-picker-button {
    width: 46px;
    min-width: 46px;
    padding: 0;
    border-radius: 14px;
}

body .ops-picker-button svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body .ops-picker-button svg path:first-child {
    fill: currentColor;
    stroke: none;
    opacity: 0.9;
}

body .ops-item-meta {
    margin-top: 8px;
    font-size: 0.8rem;
    min-height: 2.4em;
}

body .ops-stock-card {
    display: grid;
    gap: 8px;
    padding: 16px;
    min-height: 100%;
    border-radius: 20px;
    border: 1px solid rgba(10, 24, 42, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(242, 246, 251, 0.92));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74), 0 12px 22px rgba(4, 12, 24, 0.06);
}

body .ops-stock-value {
    font-family: var(--mono);
    font-size: 1.28rem;
    letter-spacing: -0.05em;
    color: var(--text-strong);
}

body .ops-stock-state,
body .ops-row-feedback {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.5;
}

body .ops-mobile-hint {
    padding: 0 2px;
    font-size: 0.84rem;
}

body .ops-qty-input,
body .ops-expiry-input,
body .ops-date-input,
body .ops-note-input {
    min-height: 46px;
}

body .ops-remove-button {
    min-width: 80px;
    justify-content: center;
    white-space: nowrap;
}

body .picker-modal[hidden] {
    display: none;
}

body .picker-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    place-items: center;
    padding: 20px;
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

body .picker-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 12, 24, 0.72);
    backdrop-filter: blur(4px);
}

body .picker-modal-panel {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100vw - 40px));
    max-height: min(820px, calc(100dvh - 40px));
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 24px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.99), rgba(238, 244, 250, 0.98));
    box-shadow: 0 28px 64px rgba(1, 8, 18, 0.35);
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

body .picker-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

body .picker-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

body .picker-results-box {
    flex: 1 1 auto;
    min-height: 0;
    max-height: min(54dvh, 520px);
    margin-bottom: 0;
    padding: 0;
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

body .picker-results-table {
    min-width: 980px;
    table-layout: fixed;
}

body .picker-results-table th:nth-child(1),
body .picker-results-table td:nth-child(1) {
    width: 12%;
}

body .picker-results-table th:nth-child(2),
body .picker-results-table td:nth-child(2) {
    width: 14%;
}

body .picker-results-table th:nth-child(3),
body .picker-results-table td:nth-child(3) {
    width: 26%;
}

body .picker-results-table th:nth-child(4),
body .picker-results-table td:nth-child(4) {
    width: 14%;
}

body .picker-results-table th:nth-child(5),
body .picker-results-table td:nth-child(5) {
    width: 10%;
}

body .picker-results-table th:nth-child(6),
body .picker-results-table td:nth-child(6) {
    width: 16%;
}

body .picker-results-table th:nth-child(7),
body .picker-results-table td:nth-child(7) {
    width: 8%;
}

body .picker-choose-button,
body .ops-remove-button {
    min-height: 38px;
    padding: 9px 14px;
    border-radius: 12px;
}

body .picker-inline-state {
    min-height: 220px;
    display: grid;
    place-items: center;
    padding: 24px;
}

body .picker-pagination {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

body.picker-open {
    overflow: hidden;
}

body .split-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

body .stack-gap-xs {
    margin-top: 4px;
}

body .stack-gap-sm {
    margin-top: 12px;
}

body .stack-gap-md {
    margin-top: 16px;
}

body .stack-gap-lg {
    margin-top: 20px;
}

body .span-full {
    grid-column: 1 / -1;
}

body .box-no-margin {
    margin-bottom: 0;
}

body .page-helper-inline {
    margin-bottom: 16px;
}

body .muted-note {
    margin-top: 6px;
    color: var(--text-soft);
}

body .table-action-stack {
    display: grid;
    gap: 10px;
    min-width: 220px;
}

body .table-action-stack form {
    margin: 0;
}

body .table-action-stack > form > button {
    width: 100%;
}

body .table-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

body .table-action-row button {
    flex: 0 0 auto;
}

body .approval-reason-input {
    flex: 1 1 140px;
    min-width: 0;
    width: auto;
}

body .approval-queue-table {
    min-width: 1180px;
}

body .approval-queue-table th,
body .approval-queue-table td {
    vertical-align: top;
}

body .approval-queue-action-col {
    min-width: 286px;
}

body .approval-queue-table-box .approval-queue-action-col {
    position: sticky;
    right: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.99), rgba(240, 245, 251, 0.98));
    box-shadow: -14px 0 20px rgba(10, 24, 42, 0.08);
}

body .approval-queue-table-box .approval-queue-table thead .approval-queue-action-col {
    z-index: 5;
}

body .approval-queue-table-box .table-action-stack {
    min-width: 246px;
}

body .approval-queue-table-box .table-action-row {
    align-items: stretch;
}

body .approval-queue-table-box .approval-reason-input {
    min-height: 40px;
}

body[data-device-mode="mobile"] .approval-queue-table-box::after,
body[data-device-mode="tablet"] .approval-queue-table-box::after {
    top: 18px;
    right: 18px;
    bottom: auto;
}

body[data-device-mode="mobile"] .approval-queue-table-box,
body[data-device-mode="tablet"] .approval-queue-table-box {
    padding-bottom: 18px;
}

html[data-theme] body .approval-queue-table-box .approval-queue-action-col {
    background: var(--theme-surface-bg);
    box-shadow: -14px 0 20px rgba(3, 8, 18, 0.16);
}

@media (max-width: 1080px) {
    body .approval-queue-action-col {
        min-width: 252px;
    }

    body .approval-queue-table-box .table-action-stack {
        min-width: 224px;
    }
}

@media (max-width: 720px) {
    body .approval-queue-table {
        min-width: 1040px;
    }

    body .approval-queue-action-col {
        min-width: 236px;
    }

    body .approval-queue-table-box .table-action-stack {
        min-width: 208px;
        gap: 8px;
    }
}

body .meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 16px;
    margin-bottom: 18px;
    align-items: stretch;
}

body .meta-card {
    padding: 16px 18px;
    display: grid;
    gap: 6px;
    align-content: start;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 252, 0.94));
    border: 1px solid rgba(10, 24, 42, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 12px 28px rgba(4, 12, 24, 0.14);
    min-height: 100%;
    min-width: 0;
}

body .meta-card span {
    display: block;
    margin-bottom: 8px;
    color: #506882;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

body .meta-card strong {
    font-size: 1.4rem;
    letter-spacing: -0.04em;
    line-height: 1.18;
    color: #0b1a2c;
    text-shadow: none;
    overflow-wrap: anywhere;
}

body .stock-filter-bar,
body .products-filter-bar,
body #soFilterForm {
    padding: 14px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(10, 24, 42, 0.28), rgba(17, 38, 69, 0.22));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(14px);
    align-items: stretch;
}

body .stock-filter-bar > *,
body .products-filter-bar > *,
body #soFilterForm > * {
    align-self: stretch;
}

body .stock-filter-bar button,
body .products-filter-bar button,
body #soFilterForm button {
    min-width: 158px;
}

body .stock-filter-bar .ghost-button,
body .products-filter-bar .ghost-button,
body #soFilterForm .ghost-button {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(237, 243, 249, 0.94));
    color: #0f223b;
    border-color: rgba(10, 24, 42, 0.16);
}

body .wms-page-stack {
    display: grid;
    gap: 20px;
}

body .stock-page-shell {
    gap: 18px;
}

body .page-content.page-content-bleed .stock-page-shell,
body .page-content.page-content-bleed .stock-workband,
body .page-content.page-content-bleed .wms-filter-band,
body .page-content.page-content-bleed .stock-filter-shell {
    width: 100%;
    max-width: none;
}

body .stock-workband {
    grid-template-columns: 1fr;
    margin-bottom: 2px;
}

body .stock-overview-shell {
    display: block;
}

body .stock-overview-hero,
body .stock-overview-note,
body .stock-filter-shell {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-md);
}

body .stock-overview-hero {
    display: grid;
    gap: 16px;
    padding: 24px 26px;
    background:
        radial-gradient(circle at top right, rgba(93, 183, 255, 0.2), rgba(93, 183, 255, 0) 40%),
        linear-gradient(145deg, rgba(10, 24, 42, 0.92), rgba(14, 31, 55, 0.9));
    color: #f4f8ff;
}

body .stock-overview-hero::before,
body .stock-overview-note::before,
body .stock-filter-shell::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), rgba(93, 183, 255, 0.08));
    opacity: 0.95;
}

body .stock-overview-kicker,
body .stock-filter-head h2 {
    margin: 0;
}

body .stock-overview-kicker {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(248, 251, 255, 0.84);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

body .stock-overview-copy {
    display: grid;
    gap: 14px;
}

body .stock-mini-card,
body .stock-meta-card {
    gap: 8px;
}

body .stock-summary-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

body .stock-summary-grid .stock-mini-card {
    padding: 16px 18px;
    border-radius: 18px;
}

body .stock-mini-topline,
body .stock-meta-topline,
body .stock-command-topline {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

body .stock-mini-topline p,
body .stock-meta-topline span,
body .stock-command-topline span {
    margin: 0;
}

body .stock-mini-icon,
body .stock-command-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: rgba(28, 108, 226, 0.1);
    border: 1px solid rgba(28, 108, 226, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

body .stock-command-icon {
    width: 42px;
    height: 42px;
}

body .stock-mini-icon-image {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

body .stock-command-card {
    gap: 8px;
}

body .stock-command-card p {
    max-width: 28ch;
}

body .stock-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

body .stock-quick-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    color: #f7fbff;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

body .stock-quick-action:hover {
    transform: translateY(-1px);
    border-color: rgba(93, 183, 255, 0.28);
    background: linear-gradient(180deg, rgba(93, 183, 255, 0.14), rgba(93, 183, 255, 0.08));
}

body .stock-overview-copy h2,
body .stock-filter-head h2 {
    color: inherit;
    font-family: var(--display);
    font-size: clamp(1.38rem, 2.2vw, 2rem);
    letter-spacing: -0.04em;
    line-height: 1;
}

body .stock-filter-head h2 {
    color: var(--theme-heading, var(--text-strong));
    font-size: clamp(1.04rem, 1.45vw, 1.3rem);
}

body .stock-overview-copy p,
body .stock-overview-note li,
body .stock-filter-head p,
body .stock-filter-footnote span {
    margin: 0;
    line-height: 1.5;
}

body .stock-overview-copy p {
    color: rgba(228, 236, 248, 0.84);
    max-width: 48ch;
}

body .stock-overview-tags,
body .stock-filter-compact-meta,
body .stock-filter-footnote {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

body .stock-overview-tags .status-pill,
body .stock-filter-compact-meta .status-pill {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
    color: #f7fbff;
}

body .stock-overview-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 2px;
}

body .stock-overview-stat,
body .stock-filter-shell {
    min-width: 0;
}

body .stock-overview-stat {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

body .stock-overview-stat span {
    color: rgba(230, 238, 249, 0.7);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body .stock-overview-stat strong {
    color: #f8fbff;
    font-size: 0.98rem;
    line-height: 1.3;
}

body .stock-overview-note {
    padding: 22px 22px 18px;
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(240, 245, 251, 0.96));
    color: var(--text-strong);
}

body .stock-overview-note strong {
    display: block;
    margin-bottom: 12px;
    color: var(--text-strong);
    font-family: var(--display);
    font-size: 1.08rem;
    letter-spacing: -0.03em;
}

body .stock-overview-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 10px;
    color: #5e758f;
}

body .stock-operations-shell {
    display: grid;
    gap: 10px;
}

body .stock-command-grid {
    margin-bottom: 0;
}

body .stock-filter-shell {
    display: grid;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(240, 245, 251, 0.96));
}

body .stock-filter-head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

body .stock-filter-head p {
    color: #5e758f;
    font-size: 0.88rem;
}

body .stock-filter-shell .stock-filter-bar {
    margin: 0;
}

body .stock-filter-bar {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

body .stock-filter-bar input[name="q"] {
    min-height: 50px;
    font-size: 1rem;
    padding-inline: 16px;
    grid-column: 1 / -1;
}

body .stock-clean-shell .stock-summary-grid {
    gap: 10px;
}

body .stock-clean-shell .stock-mini-card {
    padding: 14px 16px;
}

body .stock-clean-shell .stock-mini-topline p,
body .product-clean-shell .meta-card span {
    margin-bottom: 4px;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
}

body .stock-clean-shell .stock-detail-box .section-title,
body .product-clean-shell .section-title {
    gap: 10px;
    align-items: center;
}

body .stock-clean-shell .stock-quick-actions {
    gap: 8px;
}

body .stock-clean-shell .stock-quick-action {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 14px;
    font-size: 0.92rem;
}

body .product-clean-shell .products-meta-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

body .product-clean-shell .meta-card {
    padding: 14px 16px;
    border-radius: 16px;
}

body .product-clean-shell .meta-card strong {
    font-size: 1.08rem;
    line-height: 1.2;
}

body .product-clean-shell .products-filter-bar {
    padding: 10px;
    gap: 10px;
}

body .product-clean-shell .products-filter-bar input[type="text"] {
    grid-column: 1 / -1;
    min-height: 48px;
}

body .product-clean-shell .helper-text {
    font-size: 0.82rem;
}

body .product-clean-shell .product-studio-import-box .helper-text,
body .product-clean-shell .products-manual-box .helper-text {
    color: rgba(202, 215, 232, 0.78);
}

body .product-clean-shell .products-list-box .section-title p,
body .product-clean-shell .product-studio-import-box .section-title p,
body .product-clean-shell .products-manual-box .section-title p {
    display: none;
}

body .stock-filter-bar button {
    min-width: 0;
}

body .stock-detail-box .section-title {
    margin-bottom: 12px;
}

body .stock-detail-box .section-title h2 {
    font-size: 1rem;
}

body .stock-filter-footnote {
    color: #607791;
    font-size: 0.8rem;
}

body .wms-command-grid,
body .wms-kpi-grid,
body .wms-step-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 20px;
}

body .wms-command-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

body .wms-kpi-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
}

body .wms-step-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

body .wms-command-card,
body .wms-kpi-card,
body .wms-step-card,
body .wms-panel-note {
    position: relative;
    overflow: hidden;
    min-width: 0;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(240, 245, 251, 0.96));
    box-shadow: var(--shadow-md);
    color: var(--text-strong);
}

body .wms-command-card::before,
body .wms-kpi-card::before,
body .wms-step-card::before,
body .wms-panel-note::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), rgba(93, 183, 255, 0.08));
    opacity: 0.9;
}

body .wms-command-card::after,
body .wms-kpi-card::after,
body .wms-step-card::after {
    content: "";
    position: absolute;
    inset: auto -18% -42% auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(93, 183, 255, 0.18) 0%, rgba(93, 183, 255, 0) 72%);
    pointer-events: none;
}

body .wms-command-card,
body .wms-kpi-card,
body .wms-step-card {
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 20px 22px;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

body .wms-command-card:hover,
body .wms-step-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 44px rgba(7, 17, 31, 0.14);
    border-color: rgba(33, 137, 255, 0.14);
}

body .wms-command-card > *,
body .wms-kpi-card > *,
body .wms-step-card > *,
body .wms-panel-note > * {
    position: relative;
    z-index: 1;
}

body .wms-command-card span,
body .wms-step-card span,
body .wms-kpi-card span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #4f667f;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

body .wms-command-card strong,
body .wms-step-card strong,
body .wms-kpi-card strong {
    display: block;
    margin: 0;
    color: var(--text-strong);
    font-family: var(--display);
    letter-spacing: -0.04em;
}

body .wms-command-card strong,
body .wms-step-card strong {
    font-size: 1.16rem;
    line-height: 1.06;
}

body .wms-kpi-card strong {
    font-size: clamp(1.6rem, 2vw, 2.05rem);
    line-height: 0.98;
}

body .wms-command-card p,
body .wms-step-card p,
body .wms-panel-note p {
    margin: 0;
    color: #5e758f;
    font-size: 0.9rem;
    line-height: 1.65;
}

body .wms-kpi-card small,
body .wms-panel-note small {
    color: #607791;
    line-height: 1.58;
}

body .wms-panel-note {
    padding: 18px 20px;
    margin-bottom: 18px;
}

body .wms-panel-note strong {
    display: block;
    margin-bottom: 8px;
    color: var(--text-strong);
    font-family: var(--display);
    font-size: 1.04rem;
    letter-spacing: -0.03em;
}

body .wms-panel-note ul {
    margin: 10px 0 0;
    padding-left: 18px;
    color: #5e758f;
    display: grid;
    gap: 8px;
}

body .wms-panel-note li {
    line-height: 1.6;
}

body .wms-split-band {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    gap: 18px;
    margin-bottom: 20px;
}

body .wms-split-band.stock-workband {
    grid-template-columns: minmax(0, 1fr);
}

body .wms-filter-band {
    display: grid;
    gap: 12px;
}

body .wms-filter-band .helper-text:last-child {
    margin-bottom: 0;
}

body .wms-inline-status {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

body .wms-inline-status .status-pill,
body .wms-inline-status .badge {
    min-height: 32px;
}

body .wms-ops-shell {
    display: grid;
    gap: 18px;
}

body .wms-queue-box {
    margin-top: 0;
}

body .wms-table-shell {
    display: grid;
    gap: 14px;
}

body .wms-table-shell .section-title {
    margin-bottom: 0;
}

body .workspace-gateway {
    display: grid;
    gap: 22px;
}

body .workspace-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 16px;
}

body .workspace-summary-card {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 10px;
    padding: 20px 22px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(240, 245, 251, 0.96));
    box-shadow: var(--shadow-md);
    color: var(--text-strong);
}

body .workspace-summary-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), rgba(93, 183, 255, 0.08));
    opacity: 0.9;
}

body .workspace-summary-card span,
body .workspace-summary-card strong,
body .workspace-summary-card small {
    position: relative;
    z-index: 1;
}

body .workspace-summary-card span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #4f667f;
}

body .workspace-summary-card strong {
    display: block;
    font-family: var(--display);
    font-size: clamp(1.35rem, 2.1vw, 1.8rem);
    letter-spacing: -0.05em;
    line-height: 1.02;
    color: var(--text-strong);
}

body .workspace-summary-card small {
    color: #5f7690;
    line-height: 1.6;
}

body .workspace-section {
    display: grid;
    gap: 14px;
}

body .workspace-app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
    gap: 18px;
}

body .workspace-app-tile {
    position: relative;
    overflow: hidden;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    align-content: start;
    min-height: 220px;
    gap: 12px;
    padding: 22px 18px 18px;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(240, 245, 251, 0.96));
    box-shadow: var(--shadow-md);
    color: var(--text-strong);
    text-decoration: none;
    text-align: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

body .workspace-app-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0));
    pointer-events: none;
}

body .workspace-app-tile::after {
    content: "";
    position: absolute;
    inset: auto -24% -42% auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(93, 183, 255, 0.16) 0%, rgba(93, 183, 255, 0) 72%);
    pointer-events: none;
}

body .workspace-app-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 26px 44px rgba(7, 17, 31, 0.16);
    border-color: rgba(33, 137, 255, 0.16);
}

body .workspace-app-icon,
body .workspace-app-copy,
body .workspace-app-badge {
    position: relative;
    z-index: 1;
}

body .workspace-app-icon {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    color: #f8fbff;
    box-shadow: 0 18px 30px rgba(7, 17, 31, 0.18);
}

body .workspace-app-icon-image {
    width: 34px;
    height: 34px;
    display: block;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 8px 16px rgba(6, 11, 20, 0.16));
    pointer-events: none;
    user-select: none;
}

body .workspace-app-copy {
    display: grid;
    gap: 6px;
    min-width: 0;
    justify-items: center;
    text-align: center;
}

body .workspace-app-copy strong {
    display: block;
    font-family: var(--display);
    font-size: 1.02rem;
    line-height: 1.12;
    letter-spacing: -0.04em;
    color: var(--text-strong);
}

body .workspace-app-copy small {
    display: block;
    color: #607791;
    line-height: 1.55;
    max-width: 18ch;
}

body .workspace-app-badge {
    margin-top: auto;
    justify-self: center;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(10, 24, 42, 0.06);
    color: #536a83;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

body .workspace-app-tile.accent-blue .workspace-app-icon {
    background: linear-gradient(145deg, #d7b760 0%, #f1e2ac 100%);
}

body .workspace-app-tile.accent-sky .workspace-app-icon {
    background: linear-gradient(145deg, #f1e2ac 0%, #f8f2df 100%);
}

body .workspace-app-tile.accent-violet .workspace-app-icon {
    background: linear-gradient(145deg, #6946ff 0%, #ad7bff 100%);
}

body .workspace-app-tile.accent-emerald .workspace-app-icon {
    background: linear-gradient(145deg, #0f9d72 0%, #4ed7a8 100%);
}

body .workspace-app-tile.accent-teal .workspace-app-icon {
    background: linear-gradient(145deg, #0f7f94 0%, #44c9d7 100%);
}

body .workspace-app-tile.accent-rose .workspace-app-icon {
    background: linear-gradient(145deg, #cf3d72 0%, #ff8fb5 100%);
}

body .workspace-app-tile.accent-amber .workspace-app-icon {
    background: linear-gradient(145deg, #c98514 0%, #ffcc57 100%);
}

body .workspace-app-tile.accent-indigo .workspace-app-icon {
    background: linear-gradient(145deg, #122a52 0%, #d7b760 100%);
}

body .workspace-app-tile.accent-orange .workspace-app-icon {
    background: linear-gradient(145deg, #e96b1a 0%, #ff9f43 100%);
}

body .workspace-app-tile.accent-cyan .workspace-app-icon {
    background: linear-gradient(145deg, #0f88b8 0%, #4fdcff 100%);
}

body .workspace-app-tile.accent-pink .workspace-app-icon {
    background: linear-gradient(145deg, #be3a9f 0%, #ef7ed9 100%);
}

body .workspace-app-tile.accent-slate .workspace-app-icon {
    background: linear-gradient(145deg, #32445d 0%, #6d88a8 100%);
}

body.internal-portal-shell,
body.internal-module-shell,
body.internal-clean-page-shell {
    --internal-bg: #f4f6fa;
    --internal-surface: #ffffff;
    --internal-line: #e3e8ef;
    --internal-line-strong: #d6dde7;
    --internal-text: #13233b;
    --internal-muted: #6d7685;
    --internal-gold: #c7a95d;
    --internal-navy: #10264d;
    --internal-shadow: 0 22px 44px rgba(23, 35, 58, 0.08);
    --internal-soft-shadow: 0 10px 24px rgba(23, 35, 58, 0.06);
    color: var(--internal-text);
    background: var(--internal-bg);
}

body.internal-portal-shell::before,
body.internal-module-shell::before,
body.internal-clean-page-shell::before {
    display: none;
}

body.internal-portal-shell .layout,
body.internal-module-shell .layout,
body.internal-clean-page-shell .layout {
    display: block;
    min-height: 100vh;
    background:
        linear-gradient(180deg, #ffffff 0, #ffffff 68px, var(--internal-bg) 68px),
        var(--internal-bg);
}

body.internal-portal-shell .sidebar,
body.internal-portal-shell .desktop-sidebar-toggle,
body.internal-portal-shell .mobile-nav,
body.internal-portal-shell .mobile-dock,
body.internal-portal-shell .floating-toolbelt,
body.internal-portal-shell .notification-center-root,
body.internal-portal-shell .attendance-camera-shortcut-root,
body.internal-portal-shell .chat-widget-root,
body.internal-portal-shell .app-version-badge,
body.internal-module-shell .sidebar,
body.internal-module-shell .desktop-sidebar-toggle,
body.internal-module-shell .mobile-nav,
body.internal-module-shell .mobile-dock,
body.internal-module-shell .floating-toolbelt,
body.internal-module-shell .notification-center-root,
body.internal-module-shell .attendance-camera-shortcut-root,
body.internal-module-shell .chat-widget-root,
body.internal-module-shell .app-version-badge {
    display: none !important;
}

body.internal-clean-page-shell .sidebar,
body.internal-clean-page-shell .desktop-sidebar-toggle,
body.internal-clean-page-shell .mobile-nav,
body.internal-clean-page-shell .mobile-dock,
body.internal-clean-page-shell .floating-toolbelt,
body.internal-clean-page-shell .notification-center-root,
body.internal-clean-page-shell .attendance-camera-shortcut-root,
body.internal-clean-page-shell .chat-widget-root,
body.internal-clean-page-shell .app-version-badge {
    display: none !important;
}

body.internal-portal-shell .main,
body.internal-module-shell .main,
body.internal-clean-page-shell .main {
    padding: 0 0 32px;
    gap: 0;
}

body.internal-portal-shell .page-content,
body.internal-module-shell .page-content,
body.internal-clean-page-shell .page-content {
    width: min(100%, 1260px);
    margin: 0 auto;
    padding: 0 24px 34px;
}

body .internal-app-topbar {
    position: sticky;
    top: 0;
    z-index: 80;
    min-height: 68px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    padding: 0 48px;
    border-bottom: 1px solid var(--internal-line);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
}

body .internal-topbar-left,
body .internal-topbar-user,
body .internal-user-pill,
body .internal-brand-pill,
body .internal-icon-button {
    display: inline-flex;
    align-items: center;
}

body .internal-topbar-left {
    justify-self: start;
    gap: 12px;
    min-width: 0;
}

body .internal-topbar-user {
    justify-self: end;
    gap: 10px;
    min-width: 0;
}

body .internal-brand-pill {
    min-height: 42px;
    padding: 0 22px;
    border-radius: 10px;
    border: 1px solid var(--internal-line);
    background: var(--internal-surface);
    color: var(--internal-text);
    box-shadow: var(--internal-soft-shadow);
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

body .internal-topbar-separator {
    width: 1px;
    height: 32px;
    background: var(--internal-line);
}

body .internal-topbar-logo {
    width: 158px;
    height: 44px;
    display: grid;
    place-items: center;
}

body .internal-topbar-logo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

body .internal-icon-button {
    justify-content: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid var(--internal-line);
    background: var(--internal-surface);
    color: var(--internal-gold);
    box-shadow: var(--internal-soft-shadow);
    font-size: 1rem;
    text-decoration: none;
}

body .internal-user-pill {
    gap: 10px;
    min-height: 44px;
    padding: 0 12px 0 16px;
    border-radius: 999px;
    border: 1px solid var(--internal-line);
    background: var(--internal-surface);
    color: var(--internal-text);
    box-shadow: var(--internal-soft-shadow);
    text-decoration: none;
}

body .internal-user-pill span {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 800;
}

body .internal-user-pill strong {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--internal-navy);
    color: #ffffff;
    font-size: 0.82rem;
    line-height: 1;
}

body .internal-portal-home {
    gap: 24px;
    padding-top: 18px;
}

body .internal-status-grid {
    width: min(100%, 790px);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 0 auto 14px;
}

body .internal-status-card {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border: 1px solid var(--internal-line);
    border-radius: 10px;
    background: var(--internal-surface);
    box-shadow: var(--internal-soft-shadow);
}

body .internal-status-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 12px;
    border: 1px solid #f1e2b7;
    background: #fff6dd;
    color: #1d2638;
    font-size: 0.9rem;
    font-weight: 900;
}

body .internal-status-card strong,
body .internal-status-card small {
    display: block;
}

body .internal-status-card strong {
    font-size: 0.98rem;
    color: var(--internal-text);
}

body .internal-status-card small {
    margin-top: 5px;
    color: var(--internal-muted);
    font-size: 0.9rem;
}

body .internal-apps-section {
    width: min(100%, 1180px);
    margin: 0 auto;
}

body .internal-apps-heading {
    margin-bottom: 16px;
}

body .internal-apps-heading p {
    display: block;
    margin: 0 0 8px;
    color: var(--internal-gold);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

body .internal-apps-heading h2 {
    color: var(--internal-text);
    font-size: 1.28rem;
    letter-spacing: -0.02em;
}

body .internal-apps-heading > span {
    color: var(--internal-muted);
    font-size: 0.86rem;
}

body .internal-app-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px 18px;
}

body .internal-app-card {
    min-height: 158px;
    display: grid;
    justify-items: start;
    align-content: start;
    gap: 14px;
    padding: 20px;
    border-radius: 14px;
    border-color: var(--internal-line);
    background: var(--internal-surface);
    box-shadow: var(--internal-shadow);
    text-align: left;
}

body .internal-app-card::before,
body .internal-app-card::after {
    display: none;
}

body .internal-app-card:hover {
    transform: translateY(-2px);
    border-color: var(--internal-line-strong);
    box-shadow: 0 26px 48px rgba(23, 35, 58, 0.11);
}

body .internal-app-icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    box-shadow: none;
    border: 1px solid rgba(27, 39, 59, 0.05);
}

body .internal-app-card.accent-lavender .internal-app-icon { background: #f0edff; }
body .internal-app-card.accent-cream .internal-app-icon { background: #fff4d8; }
body .internal-app-card.accent-mint .internal-app-icon { background: #e9f8f1; }
body .internal-app-card.accent-sage .internal-app-icon { background: #edf8f4; }
body .internal-app-card.accent-lilac .internal-app-icon { background: #f3f0ff; }
body .internal-app-card.accent-blue .internal-app-icon { background: #f8f2df; }

body .internal-app-icon .workspace-app-icon-image {
    width: 26px;
    height: 26px;
    filter: none;
    opacity: 0.94;
}

body .internal-app-copy {
    justify-items: start;
    text-align: left;
    gap: 8px;
}

body .internal-app-copy strong {
    color: var(--internal-text);
    font-size: 1.02rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

body .internal-app-copy small {
    max-width: 24ch;
    color: var(--internal-muted);
    font-size: 0.86rem;
    line-height: 1.5;
}

body .internal-app-badge {
    position: absolute;
    top: 22px;
    right: 18px;
    margin: 0;
    min-height: 26px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f3f6f9;
    color: var(--internal-text);
    font-size: 0.68rem;
    letter-spacing: 0;
    text-transform: none;
    box-shadow: 0 5px 12px rgba(23, 35, 58, 0.05);
}

body .internal-app-badge.tone-green {
    background: #eaf8f0;
    color: #2c7b5a;
}

body .internal-app-badge.tone-amber {
    background: #fff2d4;
    color: #9a6a16;
}

body .internal-breadcrumb {
    width: min(100%, 1260px);
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--internal-muted);
    font-size: 0.9rem;
}

body .internal-breadcrumb a {
    color: var(--internal-text);
    font-weight: 800;
    text-decoration: none;
}

body .internal-module-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

body .internal-module-nav {
    position: sticky;
    top: 90px;
}

body.internal-module-shell .hris-module-disclosure {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--internal-line);
    border-radius: 8px;
    background: var(--internal-surface);
    box-shadow: var(--internal-soft-shadow);
}

body.internal-module-shell .hris-module-disclosure > summary {
    cursor: default;
    padding: 18px 20px;
    border-bottom: 1px solid var(--internal-line);
    background: var(--internal-surface);
    list-style: none;
}

body.internal-module-shell .hris-module-disclosure > summary::-webkit-details-marker {
    display: none;
}

body.internal-module-shell .hris-module-summary-copy {
    display: grid;
    gap: 6px;
}

body.internal-module-shell .hris-module-summary-copy > span:first-child {
    color: var(--internal-gold);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

body.internal-module-shell .hris-module-summary-copy strong {
    color: var(--internal-text);
    font-size: 1.05rem;
}

body.internal-module-shell .hris-module-summary-note,
body.internal-module-shell .hris-module-summary-meta,
body.internal-module-shell .hris-module-summary-icon {
    display: none;
}

body.internal-module-shell .hris-module-summary-body {
    display: block;
}

body.internal-module-shell .hris-module-grid {
    display: grid;
    gap: 0;
}

body.internal-module-shell .hris-module-card {
    min-height: 56px;
    margin: 0;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    border: 0;
    border-radius: 0;
    border-bottom: 1px solid var(--internal-line);
    background: var(--internal-surface);
    box-shadow: none;
    color: var(--internal-muted);
    text-decoration: none;
}

body.internal-module-shell .hris-module-card:last-child {
    border-bottom: 0;
}

body.internal-module-shell .hris-module-card .badge {
    display: none;
}

body.internal-module-shell .hris-module-card h2 {
    margin: 0;
    color: inherit;
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0;
}

body.internal-module-shell .hris-module-card:hover,
body.internal-module-shell .hris-module-card.active {
    transform: none;
    background: var(--internal-navy);
    color: #ffffff;
}

body .internal-module-panel {
    min-height: calc(100vh - 170px);
    padding: 34px;
    border: 1px solid var(--internal-line);
    border-radius: 8px;
    background: var(--internal-surface);
    box-shadow: var(--internal-shadow);
}

body .internal-module-panel > :first-child {
    margin-top: 0;
}

body .internal-module-panel .summary,
body .internal-module-panel .meta-grid,
body .internal-module-panel .cards {
    margin-bottom: 18px;
}

body .internal-module-panel .table-box,
body .internal-module-panel .form-box,
body .internal-module-panel .box,
body .internal-module-panel .panel {
    box-shadow: none;
    border-color: var(--internal-line);
}

body.internal-clean-page-shell .page-hero {
    width: min(100%, 1260px);
    margin: 16px auto 0;
    padding: 14px 24px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    overflow: visible;
}

body.internal-clean-page-shell .page-hero::after {
    display: none;
}

body.internal-clean-page-shell .page-eyebrow {
    margin: 0 0 4px;
    color: var(--internal-gold);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.14em;
}

body.internal-clean-page-shell .page-hero h1 {
    color: var(--internal-text);
    font-size: clamp(1.42rem, 2vw, 1.9rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

body.internal-clean-page-shell .page-actions-desktop-slot {
    align-self: center;
}

body.internal-clean-page-shell .page-actions {
    gap: 8px;
}

body.internal-clean-page-shell .page-content {
    min-height: calc(100vh - 190px);
    margin-top: 10px;
    padding: 26px;
    border: 1px solid var(--internal-line);
    border-radius: 8px;
    background: var(--internal-surface);
    box-shadow: var(--internal-shadow);
}

body.internal-clean-page-shell .page-content > .table-box,
body.internal-clean-page-shell .page-content > .form-box,
body.internal-clean-page-shell .page-content > .box,
body.internal-clean-page-shell .page-content > .panel,
body.internal-clean-page-shell .page-content > .card,
body.internal-clean-page-shell .page-content > .card-mini {
    box-shadow: none;
    border-color: var(--internal-line);
}

body.internal-clean-page-shell .card,
body.internal-clean-page-shell .card-mini,
body.internal-clean-page-shell .meta-card,
body.internal-clean-page-shell .table-box,
body.internal-clean-page-shell .form-box,
body.internal-clean-page-shell .box,
body.internal-clean-page-shell .panel {
    border-radius: 8px;
}

@media (max-width: 1080px) {
    body .internal-app-topbar {
        position: static;
        grid-template-columns: 1fr auto;
        padding: 12px 18px;
    }

    body .internal-topbar-left {
        gap: 8px;
    }

    body .internal-topbar-logo {
        order: -1;
        width: 128px;
        justify-self: start;
    }

    body .internal-topbar-user {
        grid-column: 2;
        grid-row: 1 / span 2;
    }

    body .internal-brand-pill {
        min-height: 38px;
        padding: 0 14px;
    }

    body .internal-status-grid,
    body .internal-app-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body .internal-module-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    body .internal-module-nav {
        position: static;
    }

    body .internal-module-panel {
        min-height: 0;
        padding: 22px 18px;
    }
}

@media (max-width: 640px) {
    body.internal-portal-shell .page-content,
    body.internal-module-shell .page-content,
    body.internal-clean-page-shell .page-content {
        padding-inline: 14px;
    }

    body .internal-app-topbar {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    body .internal-topbar-left,
    body .internal-topbar-user {
        width: 100%;
        justify-content: space-between;
    }

    body .internal-topbar-logo {
        width: 118px;
    }

    body .internal-status-grid,
    body .internal-app-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    body .internal-status-card {
        min-height: 64px;
    }

    body .internal-app-card {
        min-height: 142px;
    }
}

body .mobile-nav {
    display: none;
}

body .mobile-dock {
    display: none;
}

body .mobile-nav-leading {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1 1 auto;
}

body .mobile-nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

body .mobile-menu-button {
    min-height: 40px;
    padding: 10px 16px;
    border-radius: 16px;
    white-space: nowrap;
    flex: 0 0 auto;
}

body .mobile-chip {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #f7fbff;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

body .mobile-user-chip {
    max-width: 148px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: none;
}

body .shell-break-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-variant-numeric: tabular-nums;
}

body .shell-break-chip-label {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.78;
}

body .shell-break-chip-value {
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

body .shell-break-chip-hint {
    font-size: 0.7rem;
    opacity: 0.72;
}

body .mobile-break-chip {
    gap: 8px;
    flex-wrap: wrap;
}

body .mobile-break-chip.is-over-limit {
    background: rgba(255, 92, 138, 0.18);
    border-color: rgba(255, 92, 138, 0.32);
    color: #fff0f4;
}

body .mobile-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1 1 auto;
}

body .mobile-brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(233, 241, 250, 0.92));
    flex: 0 0 44px;
}

body .mobile-brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

body .mobile-brand strong {
    display: block;
    font-size: 0.95rem;
    color: #f7fbff;
}

body .mobile-brand span {
    display: block;
    color: var(--text-muted);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body .mobile-sidebar-backdrop {
    display: none;
}

body .empty-state {
    padding: 40px 24px;
    text-align: center;
    border-radius: 22px;
    border: 1px dashed rgba(148, 163, 184, 0.32);
    color: #51677f;
    background: rgba(255, 255, 255, 0.72);
    line-height: 1.7;
}

body .section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    min-width: 0;
}

body .section-title > div:first-child {
    min-width: 0;
}

body .section-title h2,
body .section-title h3 {
    margin: 0;
    font-family: var(--display);
    font-size: 1.14rem;
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: var(--text-strong);
    overflow-wrap: anywhere;
    text-wrap: balance;
}

body .section-title p {
    display: none;
}

body .mono {
    font-family: var(--mono);
    font-variant-numeric: tabular-nums;
}

body .pagination {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 18px;
}

body .pagination a {
    text-decoration: none;
}

body .pagination-rich {
    align-items: center;
    gap: 10px;
}

body .pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 9px 14px;
    border-radius: 14px;
    border: 1px solid var(--theme-pagination-border, var(--line));
    background: var(--theme-pagination-bg, var(--panel));
    color: var(--theme-pagination-color, #10233b);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

body .pagination-link:visited {
    color: var(--theme-pagination-color, #10233b);
}

body .pagination-link:hover {
    transform: translateY(-1px);
    border-color: var(--line-strong);
    background: var(--theme-pagination-hover-bg, var(--theme-pagination-bg, var(--panel)));
    color: var(--theme-pagination-hover-color, #081222);
}

body .pagination-link:focus-visible {
    outline: none;
    border-color: var(--theme-button-hover-border);
    box-shadow: 0 0 0 4px rgba(33, 137, 255, 0.14);
}

body .pagination-link.is-active {
    background: linear-gradient(135deg, rgba(13, 35, 64, 0.96), rgba(185, 148, 56, 0.94));
    border-color: rgba(215, 183, 96, 0.34);
    color: #f7fbff;
    box-shadow:
        0 12px 22px rgba(1, 8, 18, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

body .pagination-link.is-active:visited,
body .pagination-link.is-active:hover {
    color: #f7fbff;
}

body .pagination-link.is-jump,
body .pagination-link.pagination-edge {
    min-width: 56px;
}

body .pagination-ellipsis {
    color: var(--text-soft);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    line-height: 1;
}

body .pagination-summary {
    margin-left: auto;
}

body .audit-log-table td {
    vertical-align: top;
}

body .audit-series-cell strong,
body .audit-variant-cell strong {
    display: block;
    color: var(--text-strong);
}

body .audit-series-meta {
    display: block;
    margin-top: 6px;
}

body .audit-variant-inline {
    display: grid;
    gap: 4px;
}

body .audit-variant-inline small {
    color: var(--text-soft);
}

body .audit-variant-disclosure {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.18);
    overflow: hidden;
}

body .audit-variant-disclosure > summary {
    list-style: none;
    cursor: pointer;
}

body .audit-variant-disclosure > summary::-webkit-details-marker {
    display: none;
}

body .audit-variant-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
}

body .audit-variant-summary-copy {
    display: grid;
    gap: 4px;
    font-weight: 700;
    color: var(--text-strong);
}

body .audit-variant-summary-copy small {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-soft);
}

body .audit-variant-groups {
    display: grid;
    gap: 12px;
    padding: 0 14px 14px;
}

body .audit-variant-group {
    display: grid;
    gap: 10px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(9, 17, 31, 0.56);
}

body .audit-variant-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

body .audit-variant-items {
    display: grid;
    gap: 8px;
}

body .audit-variant-item {
    display: grid;
    gap: 3px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

body .audit-variant-item small {
    color: var(--text-soft);
    word-break: break-word;
}

body .audit-variant-item .mono {
    color: var(--text-muted);
}

body .so-save-bar {
    position: sticky;
    bottom: 18px;
    z-index: 18;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    margin-bottom: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 17, 31, 0.92);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(18px);
}

body .so-save-bar strong {
    display: block;
    font-size: 1rem;
    color: #f7fbff;
}

body .so-save-bar .helper-text {
    margin-top: 4px;
    color: var(--text-muted);
}

body .so-save-bar[data-state="dirty"] {
    border-color: rgba(93, 183, 255, 0.32);
}

body .so-save-bar[data-state="invalid"] {
    border-color: rgba(255, 107, 107, 0.38);
}

body .stock-opname-shell {
    gap: 18px;
}

body .stock-opname-note {
    padding: 18px 20px;
    display: grid;
    gap: 8px;
}

body .stock-opname-note strong {
    font-size: 1rem;
    color: var(--text-strong);
}

body .stock-opname-note p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.7;
}

body .stock-opname-table-box {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto;
    touch-action: pan-x pan-y;
}

body .stock-opname-table {
    min-width: 1080px;
}

body .stock-opname-table tbody tr {
    transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

body .stock-opname-table tbody tr.is-dirty {
    background: rgba(93, 183, 255, 0.08);
}

body .stock-opname-table tbody tr.is-invalid {
    background: rgba(255, 107, 107, 0.08);
}

body .stock-opname-table tbody tr.so-empty-row {
    background: transparent;
}

body .stock-opname-product-cell {
    min-width: 220px;
}

body .stock-opname-product-cell strong {
    display: block;
    color: var(--text-strong);
}

body .stock-opname-product-cell small {
    display: block;
    margin-top: 6px;
    color: var(--text-soft);
}

body .stock-opname-system-cell {
    font-weight: 700;
    color: var(--text-strong);
}

body .stock-opname-input-cell input {
    min-width: 112px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

body .stock-opname-diff-cell {
    font-weight: 700;
}

body .stock-opname-diff-cell[data-state="up"] {
    color: #179f66;
}

body .stock-opname-diff-cell[data-state="down"] {
    color: #ff7b7b;
}

body .stock-opname-diff-cell[data-state="zero"] {
    color: var(--text-muted);
}

body .pill-select {
    min-width: 220px;
}

body .floating-toast {
    position: fixed;
    right: 20px;
    top: 20px;
    z-index: 9999;
    padding: 14px 18px;
    border-radius: 16px;
    background: rgba(7, 17, 31, 0.92);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-lg);
}

body.login-page {
    min-height: 100vh;
    padding: 0;
    color: var(--text);
}

body.login-page .login-shell {
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(360px, 29vw, 460px);
    overflow: hidden;
    background: var(--theme-login-shell-bg);
}

body.login-page .login-hero-panel {
    position: relative;
    min-height: 100vh;
    background: #07111f;
}

body.login-page .login-hero-media,
body.login-page .login-hero-media img {
    width: 100%;
    height: 100%;
}

body.login-page .login-hero-media img {
    display: block;
    object-fit: cover;
    object-position: center 46%;
    filter: saturate(1.04) contrast(1.02);
}

body.login-page .login-hero-scrim {
    position: absolute;
    inset: 0;
    background:
        var(--theme-login-hero-edge),
        var(--theme-login-hero-scrim);
}

body .login-form-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    padding: clamp(34px, 5vh, 56px) clamp(30px, 3vw, 46px);
    color: var(--text-strong);
    background: var(--theme-login-panel-bg);
    border-left: 1px solid var(--theme-login-panel-border);
}

body.login-page .login-auth-panel {
    min-height: 100%;
}

body .login-form-panel a {
    color: var(--accent-strong);
    font-weight: 600;
}

body.login-page .login-panel-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

body.login-page .login-panel-brand-mark {
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(233, 241, 250, 0.92));
    box-shadow: 0 14px 28px rgba(1, 8, 18, 0.16);
}

body.login-page .login-panel-brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
}

body.login-page .login-panel-brand-copy {
    display: grid;
    gap: 2px;
}

body.login-page .login-panel-brand-copy span {
    color: var(--text-soft);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

body.login-page .login-panel-brand-copy strong {
    color: var(--text-strong);
    font-size: 1.12rem;
    letter-spacing: -0.02em;
}

body.login-page .login-panel-copy {
    margin-bottom: 24px;
}

body.login-page .login-panel-copy h1 {
    margin: 0 0 10px;
    color: var(--text-strong);
    font-size: clamp(2.1rem, 2.8vw, 2.85rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

body.login-page .login-form-panel .subcopy {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.72;
}

body.login-page .login-form-grid {
    display: grid;
    gap: 14px;
}

body.login-page .login-form-grid button[type="submit"] {
    width: 100%;
    min-height: 52px;
}

body.login-page.login-otp-page .login-code-form {
    gap: 10px;
    margin-top: 2px;
}

body.login-page.login-otp-page .login-code-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(126px, 0.45fr);
    align-items: stretch;
    gap: 12px;
}

body.login-page.login-otp-page .login-code-row input {
    min-height: 54px;
    text-align: center;
    font-family: "JetBrains Mono", monospace;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

body.login-page.login-otp-page .login-code-row button {
    min-width: 126px;
    padding-inline: 18px;
    white-space: nowrap;
}

body.login-page.login-otp-page .login-secondary-stack {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

body.login-page.login-otp-page .login-secondary-form {
    gap: 0;
}

body.login-page.login-otp-page .login-secondary-form .ghost-button {
    min-height: 50px;
    padding-inline: 18px;
    line-height: 1.35;
    text-align: center;
    white-space: normal;
}

body.login-page .password-box {
    position: relative;
}

body.login-page .password-box .toggle {
    position: absolute;
    right: 14px;
    bottom: 13px;
    border: 0;
    background: transparent;
    padding: 6px 0;
    color: var(--accent-strong);
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1;
}

body .login-theme-row {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

body .login-theme-toggle,
body .login-install-toggle {
    min-width: 148px;
    justify-content: center;
}

body.login-page .login-forgot-link {
    margin: 14px 0 0;
}

body.login-page .login-footnote {
    margin-top: 12px;
    color: var(--text-soft);
    font-size: 0.92rem;
    line-height: 1.7;
}

@media (max-width: 1080px) {
    body.login-page .login-shell {
        grid-template-columns: minmax(0, 1fr) clamp(340px, 34vw, 410px);
    }
}

body .sidebar.sidebar-app-nav {
    overflow: visible;
    z-index: 120;
    isolation: isolate;
}

body .sidebar.sidebar-icon-rail.sidebar-app-nav {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    max-width: var(--sidebar-width);
    flex: 0 0 var(--sidebar-width);
}

body .sidebar.sidebar-app-nav .sidebar-app-shell {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    display: flex;
    flex: 1 1 auto;
    align-items: stretch;
    justify-content: center;
    position: relative;
    overflow: visible;
}

body .sidebar.sidebar-app-nav .sidebar-main-rail {
    width: 46px;
    min-width: 46px;
    max-width: 46px;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

body .sidebar.sidebar-app-nav .sidebar-main-icons {
    width: 46px;
    min-width: 46px;
    max-width: 46px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

body .sidebar.sidebar-app-nav .sidebar-main-trigger {
    position: relative;
    width: 46px;
    min-width: 46px;
    height: 46px;
    min-height: 46px;
    padding: 0;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body .sidebar.sidebar-app-nav .sidebar-main-trigger.active {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08));
    border-color: rgba(188, 218, 255, 0.28);
    box-shadow: inset 3px 0 0 #79b7ff;
}

html[data-sidebar-main-active] body .sidebar.sidebar-app-nav .sidebar-main-trigger.active {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

html[data-sidebar-main-open="coordination"] body .sidebar.sidebar-app-nav .sidebar-main-trigger[data-sidebar-main-trigger="coordination"],
html[data-sidebar-main-open="workspace"] body .sidebar.sidebar-app-nav .sidebar-main-trigger[data-sidebar-main-trigger="workspace"],
html[data-sidebar-main-open="wms"] body .sidebar.sidebar-app-nav .sidebar-main-trigger[data-sidebar-main-trigger="wms"],
html[data-sidebar-main-open="hris"] body .sidebar.sidebar-app-nav .sidebar-main-trigger[data-sidebar-main-trigger="hris"],
html[data-sidebar-main-open="system"] body .sidebar.sidebar-app-nav .sidebar-main-trigger[data-sidebar-main-trigger="system"] {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08));
    border-color: rgba(188, 218, 255, 0.28);
    box-shadow: inset 3px 0 0 #79b7ff;
}

body .sidebar.sidebar-app-nav .sidebar-main-trigger::after {
    display: none;
}

body .sidebar.sidebar-app-nav .sidebar-subpanel-stack {
    position: absolute;
    left: calc(100% + 12px);
    top: 12px;
    width: min(360px, calc(100vw - var(--sidebar-width) - 36px));
    max-height: calc(100dvh - 24px);
    display: flex;
    flex-direction: column;
    min-height: 0;
    z-index: 260;
    pointer-events: none;
}

body .sidebar.sidebar-app-nav .sidebar-subpanel {
    position: relative;
    z-index: 1;
    pointer-events: auto;
    padding: 18px;
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: inherit;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(147, 197, 253, 0.2);
    background: linear-gradient(180deg, rgba(7, 17, 31, 0.96), rgba(11, 23, 43, 0.94));
    box-shadow: 0 24px 40px rgba(2, 8, 18, 0.28);
    backdrop-filter: blur(20px);
}

body .sidebar.sidebar-app-nav .sidebar-subpanel[hidden] {
    display: none !important;
}

html[data-sidebar-main-open="coordination"] body .sidebar.sidebar-app-nav .sidebar-subpanel[data-sidebar-main-panel="coordination"],
html[data-sidebar-main-open="workspace"] body .sidebar.sidebar-app-nav .sidebar-subpanel[data-sidebar-main-panel="workspace"],
html[data-sidebar-main-open="wms"] body .sidebar.sidebar-app-nav .sidebar-subpanel[data-sidebar-main-panel="wms"],
html[data-sidebar-main-open="hris"] body .sidebar.sidebar-app-nav .sidebar-subpanel[data-sidebar-main-panel="hris"],
html[data-sidebar-main-open="system"] body .sidebar.sidebar-app-nav .sidebar-subpanel[data-sidebar-main-panel="system"] {
    display: block !important;
}

body .sidebar.sidebar-app-nav .sidebar-subpanel-head {
    margin-bottom: 14px;
}

body .sidebar.sidebar-app-nav .sidebar-subpanel-head h3 {
    margin: 0;
    color: #f8fbff;
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

body .sidebar.sidebar-app-nav .sidebar-subgrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    flex: 1 1 auto;
    min-height: 0;
    gap: 12px;
    max-height: calc(100dvh - 120px);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    scrollbar-gutter: stable;
    padding-right: 2px;
}

body .sidebar.sidebar-app-nav .sidebar-subtile {
    min-height: 104px;
    padding: 14px 12px;
    border-radius: 20px;
    border: 1px solid rgba(120, 177, 244, 0.18);
    background: linear-gradient(180deg, rgba(18, 30, 52, 0.96), rgba(13, 24, 44, 0.92));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    color: #eaf3ff;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

body .sidebar.sidebar-app-nav .sidebar-subtile:hover,
body .sidebar.sidebar-app-nav .sidebar-subtile.active {
    color: #ffffff;
    transform: translateY(-1px);
    border-color: rgba(128, 194, 255, 0.4);
    background: linear-gradient(180deg, rgba(31, 60, 111, 0.98), rgba(15, 37, 74, 0.96));
    box-shadow: 0 16px 24px rgba(8, 21, 43, 0.18);
}

body .sidebar.sidebar-app-nav .sidebar-subtile-icon {
    width: 28px;
    height: 28px;
    display: block;
}

body .sidebar.sidebar-app-nav .sidebar-subtile span {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.32;
    letter-spacing: 0.01em;
}

body .sidebar.sidebar-app-nav .sidebar-footer.sidebar-footer-rail {
    margin-top: auto;
    padding-top: 8px;
}

body .sidebar.sidebar-app-nav .sidebar-footer-actions {
    width: 46px;
    min-width: 46px;
    max-width: 46px;
    gap: 8px;
}

@media (min-width: 1081px) {
    body .layout {
        position: relative;
        isolation: isolate;
        overflow: visible;
    }

    body .main {
        position: relative;
        z-index: 1;
    }

    body .sidebar.sidebar-app-nav {
        z-index: 220;
    }

    body .sidebar.sidebar-app-nav .sidebar-subpanel-stack {
        z-index: 360;
    }
}

@media (max-width: 1080px) {
    body .sidebar.sidebar-icon-rail.sidebar-app-nav {
        width: 82px;
        min-width: 82px;
        max-width: 82px;
        flex-basis: 82px;
    }

    body .sidebar.sidebar-app-nav .sidebar-main-rail,
    body .sidebar.sidebar-app-nav .sidebar-main-icons,
    body .sidebar.sidebar-app-nav .sidebar-footer-actions {
        width: 44px;
        min-width: 44px;
        max-width: 44px;
    }

    body .sidebar.sidebar-app-nav .sidebar-subpanel-stack {
        left: calc(100% + 10px);
        top: calc(10px + env(safe-area-inset-top));
        width: min(330px, calc(100vw - 104px));
        max-height: calc(100dvh - 20px - env(safe-area-inset-top));
    }

    body .sidebar.sidebar-app-nav .sidebar-subpanel {
        padding: 16px;
        border-radius: 18px;
    }

    body .sidebar.sidebar-app-nav .sidebar-subgrid {
        gap: 10px;
    }

    body .sidebar.sidebar-app-nav .sidebar-subtile {
        min-height: 96px;
        padding: 12px 10px;
        border-radius: 18px;
    }

    body .sidebar.sidebar-app-nav .sidebar-subtile span {
        font-size: 0.78rem;
    }
}

@media (max-width: 767px) {
    body .sidebar.sidebar-app-nav .sidebar-subpanel-stack {
        left: calc(100% + 8px);
        top: calc(8px + env(safe-area-inset-top));
        width: min(300px, calc(100vw - 98px));
        max-height: calc(100dvh - 16px - env(safe-area-inset-top));
    }

    body .sidebar.sidebar-app-nav .sidebar-subpanel {
        padding: 14px;
    }

    body .sidebar.sidebar-app-nav .sidebar-subgrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    body .sidebar.sidebar-app-nav .sidebar-subtile {
        min-height: 88px;
        gap: 8px;
    }

    body .sidebar.sidebar-app-nav .sidebar-subtile-icon {
        width: 26px;
        height: 26px;
    }
}

@media (max-height: 760px) and (max-width: 1080px) {
    body .sidebar.sidebar-app-nav .sidebar-subpanel {
        padding: 14px;
    }

    body .sidebar.sidebar-app-nav .sidebar-subgrid {
        gap: 8px;
    }

    body .sidebar.sidebar-app-nav .sidebar-subtile {
        min-height: 82px;
        padding: 10px 9px;
    }

    body .sidebar.sidebar-app-nav .sidebar-subtile span {
        font-size: 0.74rem;
    }
}

@media (max-width: 900px) {
    body.login-page {
        min-height: 100svh;
    }

    body.login-page .login-shell {
        min-height: auto;
        grid-template-columns: 1fr;
    }

    body.login-page .login-hero-panel {
        min-height: clamp(180px, 28svh, 260px);
    }

    body.login-page .login-form-panel {
        min-height: auto;
        justify-content: flex-start;
        padding-top: 22px;
        border-left: 0;
        border-top: 1px solid var(--theme-login-panel-border);
    }
}

@media (max-width: 560px) {
    body.login-page .login-shell {
        min-height: 100svh;
    }

    body.login-page .login-hero-panel {
        min-height: clamp(148px, 22svh, 198px);
    }

    body.login-page .login-form-panel {
        justify-content: flex-start;
        padding: 18px 18px 28px;
    }

    body.login-page .login-panel-brand {
        margin-bottom: 18px;
    }

    body.login-page .login-panel-brand-mark {
        width: 56px;
        height: 56px;
        flex-basis: 56px;
    }

    body.login-page .login-panel-copy {
        margin-bottom: 16px;
    }

    body.login-page.login-otp-page .login-panel-copy h1 {
        font-size: clamp(2rem, 12vw, 2.65rem);
        line-height: 1.04;
    }

    body.login-page.login-otp-page .login-form-panel .subcopy {
        line-height: 1.55;
    }

    body.login-page.login-otp-page .flash-stack {
        margin-bottom: 14px;
    }

    body.login-page.login-otp-page .msg {
        padding: 12px 14px;
        line-height: 1.45;
    }

    body.login-page.login-otp-page .login-code-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    body.login-page.login-otp-page .login-code-row input,
    body.login-page.login-otp-page .login-code-row button {
        min-height: 52px;
    }

    body.login-page.login-otp-page .login-code-row button {
        min-width: 0;
    }

    body.login-page.login-otp-page .login-secondary-stack {
        gap: 9px;
        margin-top: 10px;
    }

    body.login-page.login-otp-page .login-footnote {
        margin-top: 12px;
        font-size: 0.82rem;
        line-height: 1.55;
    }

    body .login-theme-row {
        margin-bottom: 14px;
    }
}

body .import-progress {
    display: none;
    margin-top: 16px;
}

body .import-progress.is-visible {
    display: block;
}

body .progress-text {
    margin-bottom: 8px;
    color: var(--theme-progress-text);
}

body .progress-track {
    width: 100%;
    height: 14px;
    border-radius: 999px;
    background: var(--theme-progress-track-bg);
    overflow: hidden;
}

body .progress-bar {
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: var(--theme-progress-bar);
    transition: width 240ms ease;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body .page-hero,
body .card,
body .card-mini,
body .table-box,
body .form-box,
body .import-box,
body .box {
    animation: fade-up 0.35s ease both;
}

@media (max-width: 1080px) {
    html {
        scroll-behavior: auto;
        overscroll-behavior-y: auto;
    }

    body {
        background: linear-gradient(180deg, #07111f 0%, #0a172a 52%, #10233b 100%);
    }

    body::before {
        display: none;
    }

    body .desktop-sidebar-toggle {
        display: none;
    }

    body .layout {
        grid-template-columns: 1fr;
    }

    body .panel,
    body .card,
    body .card-mini,
    body .form-box,
    body .table-box,
    body .import-box,
    body .box,
    body .meta-card {
        border-radius: 20px;
        box-shadow: 0 12px 28px rgba(1, 8, 18, 0.18);
    }

    body .form-box,
    body .table-box,
    body .import-box {
        content-visibility: auto;
        contain-intrinsic-size: 420px;
    }

    body .chat-shell {
        grid-template-columns: 1fr;
        gap: 16px;
        height: auto;
        max-height: none;
        overflow: visible;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    body .chat-sidebar-panel,
    body .chat-main-panel {
        border-radius: 26px;
        overflow: hidden;
        border: 1px solid rgba(124, 156, 193, 0.18);
        box-shadow: 0 24px 42px rgba(1, 8, 18, 0.2);
    }

    body .chat-sidebar-panel {
        min-height: 0;
    }

    body .chat-main-panel {
        min-height: min(72dvh, 760px);
    }

    body .chat-list-stack {
        min-height: min(42dvh, 430px);
    }

    body .chat-main-head,
    body .chat-composer {
        background: var(--theme-surface-bg, rgba(247, 250, 253, 0.94));
        backdrop-filter: blur(18px);
    }

    body .chat-shell[data-current-thread-id]:not([data-current-thread-id=""]) .chat-sidebar-panel {
        display: none;
    }

    body .chat-shell[data-current-thread-id]:not([data-current-thread-id=""]) .chat-main-panel {
        min-height: min(78dvh, 840px);
        max-height: calc(100dvh - 180px);
    }

    body .chat-call-card {
        min-height: 560px;
        padding: 20px;
    }

    body .chat-call-stage {
        min-height: 320px;
    }

    body .chat-widget-root {
        right: 16px;
        bottom: calc(94px + env(safe-area-inset-bottom));
    }

    body .chat-widget-panel {
        width: min(420px, calc(100vw - 24px));
        height: min(68dvh, 620px);
    }

    body .chat-widget-launcher {
        width: 54px;
        min-width: 54px;
        height: 54px;
        padding-inline: 15px;
    }

    body .chat-widget-launcher-label {
        display: none;
    }

    body .chat-widget-root:hover .chat-widget-launcher,
    body .chat-widget-root:focus-within .chat-widget-launcher,
    body .chat-widget-root.is-open .chat-widget-launcher {
        width: 54px;
        min-width: 54px;
        padding-inline: 15px;
        justify-content: center;
        gap: 0;
    }

    body .sidebar {
        display: flex;
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 55;
        width: min(88vw, 360px);
        height: 100vh;
        height: 100dvh;
        border-right: 1px solid var(--line);
        border-bottom: 0;
        transform: translateX(-105%);
        transition: transform 0.28s ease;
        box-shadow: 0 18px 42px rgba(1, 8, 18, 0.26);
        backdrop-filter: none;
    }

    body.menu-open .sidebar {
        transform: translateX(0);
    }

    body .mobile-nav {
        position: sticky;
        top: 0;
        z-index: 40;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
        border-bottom: 1px solid var(--line);
        background: rgba(6, 14, 28, 0.92);
        box-shadow: 0 16px 32px rgba(1, 8, 18, 0.18);
        backdrop-filter: blur(16px);
    }

    body .mobile-nav button {
        box-shadow: none;
        min-height: 40px;
        padding: 10px 16px;
    }

    body .mobile-nav-leading {
        min-width: 0;
    }

    body .mobile-nav-actions {
        flex: 0 0 auto;
    }

    body .mobile-command-deck {
        display: grid;
        gap: 12px;
        position: sticky;
        top: calc(92px + env(safe-area-inset-top));
        z-index: 28;
        margin-top: -4px;
    }

    body .mobile-sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 50;
        opacity: 0;
        pointer-events: none;
        background: rgba(3, 10, 20, 0.58);
        transition: opacity 0.25s ease;
    }

    body.menu-open .mobile-sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    body .main {
        gap: 18px;
        padding: 18px 16px calc(104px + env(safe-area-inset-bottom));
    }

    body.minimal-shell .main {
        padding: 28px 16px 24px;
    }

    body .page-hero {
        padding: 22px 18px;
        border-radius: 22px;
    }

    body[data-device-mode="mobile"] .page-actions-desktop-slot,
    body[data-device-mode="tablet"] .page-actions-desktop-slot {
        display: none;
    }

    body[data-device-mode="tablet"] .top-bar {
        padding: 14px;
        border-radius: 22px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(255, 255, 255, 0.04);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    }

    body[data-device-mode="tablet"] .mobile-page-actions-slot .page-actions {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(168px, max-content);
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    body[data-device-mode="tablet"] .mobile-page-actions-slot .page-actions::-webkit-scrollbar {
        display: none;
    }

    body[data-device-mode="tablet"] .mobile-page-actions-slot .page-actions > * {
        min-width: 168px;
    }

    body .table-box,
    body .form-box,
    body .import-box,
    body .box {
        padding: 18px;
    }

    body .summary,
    body .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body .ops-config-grid {
        grid-template-columns: 1fr;
    }

    body .picker-modal {
        padding: 16px;
    }

    body .picker-modal-panel {
        width: min(100vw - 32px, 1024px);
        max-height: calc(100dvh - 32px);
        padding: 20px;
        backdrop-filter: none;
        box-shadow: 0 18px 40px rgba(1, 8, 18, 0.24);
    }

    body .picker-results-box {
        max-height: min(50dvh, 460px);
    }

    body .mobile-nav,
    body .mobile-command-deck,
    body .notification-center-toggle,
    body .notification-center-panel,
    body .chat-widget-panel,
    body .floating-toolbelt-menu {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    body .mobile-nav,
    body .mobile-command-deck,
    body .notification-center-panel,
    body .chat-widget-panel {
        box-shadow: 0 14px 28px rgba(1, 8, 18, 0.18);
    }

    body .notification-center-toggle,
    body .chat-widget-launcher,
    body .attendance-camera-shortcut-button,
    body .floating-toolbelt-launcher {
        box-shadow: 0 12px 22px rgba(7, 17, 31, 0.18);
    }
}

@media (max-width: 768px) {
    body .page-hero h1,
    body .header h1,
    body .main > h1 {
        font-size: clamp(1.9rem, 7vw, 2.5rem);
        line-height: 1.04;
    }

    body .page-subtitle {
        font-size: 0.94rem;
        line-height: 1.65;
    }

    body .cards,
    body .summary,
    body .meta-grid {
        gap: 12px;
    }

    body .form-grid,
    body .top-bar,
    body .ops-config-grid,
    body .attendance-identity-grid,
    body .stock-filter-bar,
    body .products-filter-bar,
    body .products-import-bar,
    body .products-manual-box .form-grid {
        grid-template-columns: 1fr;
    }

    body .chat-sidebar-head,
    body .chat-search-row,
    body .chat-tab-row,
    body .chat-main-head,
    body .chat-composer {
        padding: 16px;
    }

    body .chat-shell {
        width: 100%;
        min-width: 0;
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
        height: auto;
        min-height: 0;
        max-height: none;
        overflow: visible;
    }

    body .chat-sidebar-panel,
    body .chat-main-panel {
        border-radius: 24px;
        min-width: 0;
        width: 100%;
        max-width: 100%;
    }

    body .chat-sidebar-head,
    body .chat-search-row,
    body .chat-tab-row {
        background: var(--theme-surface-bg, linear-gradient(180deg, rgba(248, 251, 255, 0.94), rgba(241, 246, 252, 0.9)));
        backdrop-filter: blur(18px);
    }

    body .chat-tab-row {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    body .chat-tab-row .ghost-button {
        justify-content: center;
        min-height: 44px;
        padding-inline: 12px;
    }

    body .chat-mobile-back {
        display: inline-flex;
    }

    body .chat-thread-focus {
        width: 100%;
        flex-wrap: wrap;
    }

    body .chat-main-head {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        background: var(--theme-surface-bg, linear-gradient(180deg, rgba(247, 250, 253, 0.96), rgba(239, 245, 251, 0.92)));
    }

    body .chat-focus-actions {
        width: 100%;
        margin-left: 0;
    }

    body .chat-focus-actions .chat-action-button {
        flex: 1 1 0;
        justify-content: center;
    }

    body .chat-focus-actions .badge {
        min-height: 42px;
        justify-content: center;
    }

    body .chat-search-panel {
        padding: 14px 16px;
    }

    body .chat-search-panel-head {
        flex-direction: column;
        align-items: stretch;
    }

    body .chat-list-caption {
        padding: 14px 16px 12px;
    }

    body .chat-thread-list,
    body .chat-contact-list {
        padding: 0 10px 12px;
        max-height: min(36dvh, 360px);
    }

    body .chat-thread-card,
    body .chat-contact-card {
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-areas:
            "avatar body"
            "avatar side";
        padding: 13px 14px;
        border-radius: 20px;
        align-items: center;
    }

    body .chat-thread-side {
        grid-area: side;
        display: flex;
        justify-content: space-between;
        justify-items: initial;
        grid-auto-flow: initial;
        align-items: center;
        min-width: 0;
        min-height: 0;
        gap: 10px;
        margin-top: 6px;
    }

    body .chat-contact-card {
        grid-template-areas: "avatar body";
    }

    body .chat-message-board {
        padding: 18px 14px 16px;
        max-height: min(52dvh, 560px);
    }

    body .chat-message-row {
        max-width: 92%;
    }

    body .chat-composer {
        grid-template-columns: 1fr;
        grid-template-areas:
            "tools"
            "inputs"
            "submit";
        gap: 12px;
    }

    body .chat-composer-tools {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    body .chat-composer-tools .helper-text {
        grid-column: 1 / -1;
    }

    body .chat-tool-button,
    body #chatComposerButton {
        width: 100%;
    }

    body .chat-main-panel {
        min-height: min(68dvh, 700px);
        max-height: calc(100dvh - 150px);
    }

    body .chat-shell[data-current-thread-id]:not([data-current-thread-id=""]) .chat-sidebar-panel {
        display: none;
    }

    body .chat-shell[data-current-thread-id=""] .chat-main-panel.chat-main-panel-empty {
        display: none;
    }

    body .chat-call-layer {
        padding: 16px;
    }

    body .chat-call-card {
        min-height: 0;
        padding: 18px;
        border-radius: 24px;
    }

    body .chat-call-head,
    body .chat-call-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    body .chat-call-stage {
        min-height: 260px;
    }

    body .chat-call-local-video {
        width: min(36vw, 170px);
        right: 14px;
        bottom: 14px;
    }

    body .chat-call-primary-actions,
    body .chat-call-secondary-actions,
    body .chat-call-incoming-actions {
        width: 100%;
    }

    body .chat-empty-state {
        min-height: min(54dvh, 500px);
        padding: 40px 18px;
    }

    body .table-box.stack-scroll-shell {
        max-height: min(72dvh, 860px);
        padding-right: 10px;
    }

    body .table-box.stack-scroll-shell > .section-title {
        top: -20px;
        margin-right: -10px;
        padding-right: 10px;
    }

    body .stack-scroll-list {
        max-height: min(68dvh, 820px);
        padding-right: 2px;
    }

    body .mobile-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding-inline: 14px;
    }

    body .mobile-nav-leading,
    body .mobile-nav-actions {
        width: 100%;
    }

    body .mobile-nav-actions {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    body .mobile-nav-actions::-webkit-scrollbar {
        display: none;
    }

    body .mobile-brand {
        align-items: flex-start;
    }

    body .mobile-brand-mark {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        flex-basis: 42px;
    }

    body .page-hero,
    body .header,
    body .section-title {
        flex-direction: column;
        align-items: flex-start;
    }

    body .mobile-command-deck {
        top: calc(132px + env(safe-area-inset-top));
        padding: 14px;
        border-radius: 20px;
    }

    body .mobile-command-deck-head {
        align-items: flex-start;
    }

    body .mobile-page-actions-slot .page-actions {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(152px, 78vw);
        gap: 10px;
        justify-content: flex-start;
        overflow-x: auto;
        padding: 2px 2px 4px;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }

    body .mobile-page-actions-slot .page-actions::-webkit-scrollbar {
        display: none;
    }

    body .mobile-page-actions-slot .page-actions > * {
        width: 100%;
        min-width: 0;
        scroll-snap-align: start;
    }

    body .mobile-page-actions-slot .page-actions button,
    body .mobile-page-actions-slot .page-actions .btn-link,
    body .mobile-page-actions-slot .page-actions select {
        min-height: 48px;
    }

    body[data-device-mode="mobile"] .top-bar {
        padding: 14px;
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(255, 255, 255, 0.04);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    }

    body .page-actions,
    body .header > div:last-child,
    body .split-actions {
        width: 100%;
    }

    body .page-actions > *,
    body .split-actions > *,
    body .split-actions > form,
    body .split-actions > form > * {
        flex: 1 1 100%;
        width: 100%;
    }

    body .page-actions,
    body .header > div:last-child {
        min-width: 0;
        margin-left: 0;
    }

    body .page-actions button,
    body .page-actions .btn-link,
    body .stock-filter-bar button,
    body .products-filter-bar button,
    body .products-import-bar button {
        min-height: 46px;
        font-size: 0.94rem;
        letter-spacing: 0.01em;
        text-shadow: 0 1px 0 rgba(0, 0, 0, 0.16);
    }

    body .summary,
    body .meta-grid,
    body .dashboard-cards {
        overflow: visible;
        padding-bottom: 0;
        scroll-snap-type: none;
        scrollbar-width: auto;
    }

    body .summary,
    body .cards,
    body .meta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-flow: row;
    }

    body table {
        min-width: 860px;
    }

    body .ops-batch-box {
        padding: 18px;
    }

    body .ops-entry-grid,
    body .ops-entry-grid.request-entry-grid,
    body .ops-entry-grid.request-custom-entry-grid,
    body .ops-entry-grid.outbound-entry-grid {
        grid-template-columns: 1fr;
    }

    body .ops-lines-table {
        min-width: 980px;
    }

    body .outbound-lines-table {
        min-width: 920px;
    }

    body .ops-queue-table {
        min-width: 920px;
    }

    body th,
    body td {
        padding: 12px 10px;
    }

    body .card,
    body .card-mini {
        padding: 18px;
    }

    body .money-input {
        min-width: 132px;
    }

    body .card h2,
    body .card-mini h3 {
        font-size: clamp(1.5rem, 8vw, 2rem);
    }

    body .dashboard-cards,
    body .dashboard-aging-grid,
    body .stock-summary-grid,
    body .stock-meta-grid,
    body .products-meta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body .stock-filter-bar,
    body .products-filter-bar,
    body .products-import-bar,
    body .products-manual-box .form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body #warehouseSelect {
        min-width: 0;
        width: 100%;
    }

    body .stock-detail-box .section-title,
    body .products-list-box .section-title,
    body .dashboard-activity-box .section-title {
        gap: 12px;
    }

    body .status-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    body .stock-table {
        min-width: 1840px;
    }

    body .variant-builder table {
        min-width: 1040px;
    }

    body .picker-toolbar {
        grid-template-columns: 1fr;
    }

    body .picker-pagination {
        justify-content: space-between;
    }

    body .mobile-dock {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom));
        z-index: 45;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 8px;
        padding: 10px;
        border-radius: 24px;
        background: rgba(6, 14, 28, 0.9);
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 18px 30px rgba(1, 8, 18, 0.2);
        backdrop-filter: none;
    }

    body .so-save-bar {
        bottom: calc(92px + env(safe-area-inset-bottom));
        flex-direction: column;
        align-items: stretch;
    }

    body .stock-opname-note {
        padding: 16px 18px;
    }

    body .stock-opname-table {
        min-width: 980px;
    }

    body .mobile-dock a,
    body .mobile-dock button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 4px;
        min-height: 48px;
        padding: 10px 8px;
        border-radius: 18px;
        border: 0;
        background: transparent;
        color: var(--text-muted);
        font: inherit;
        font-size: 0.76rem;
        font-weight: 700;
        text-decoration: none;
        letter-spacing: 0.02em;
        box-shadow: none;
    }

    body .mobile-dock a.active,
    body .mobile-dock button.active {
        background: rgba(93, 183, 255, 0.14);
        color: #f7fbff;
    }
}

@media (max-width: 540px) {
    body .main {
        padding: 16px 12px 104px;
    }

    body .attendance-camera-shortcut-root {
        left: 12px;
        bottom: calc(88px + env(safe-area-inset-bottom));
    }

    body .chat-widget-root {
        left: 12px;
        right: 12px;
        bottom: calc(88px + env(safe-area-inset-bottom));
        justify-items: end;
    }

    body .chat-widget-panel {
        width: min(100vw - 24px, 100%);
        height: min(72dvh, 560px);
    }

    body .chat-widget-head {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    body .chat-widget-head-actions {
        width: 100%;
        justify-content: space-between;
    }

    body .chat-widget-full-link {
        flex: 1 1 auto;
        justify-content: center;
    }

    body .chat-widget-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    body .chat-widget-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body .chat-widget-tab,
    body .chat-widget-ghost {
        width: 100%;
        justify-content: center;
    }

    body .chat-widget-toolbar,
    body .chat-widget-thread-head,
    body .chat-widget-thread-tools,
    body .chat-widget-composer {
        padding-inline: 14px;
    }

    body .chat-widget-search {
        padding-inline: 14px;
    }

    body .chat-widget-thread-card,
    body .chat-widget-contact-card {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 12px;
        min-height: 88px;
    }

    body .chat-widget-thread-card .chat-thread-side {
        grid-column: 2;
        grid-auto-flow: column;
        justify-content: space-between;
        justify-items: start;
        align-content: start;
        min-height: auto;
        margin-top: 8px;
    }

    body .chat-widget-message-board {
        padding: 14px;
    }

    body .chat-widget-sticker-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body .hris-module-grid {
        grid-template-columns: 1fr;
    }

    body .hris-module-card {
        min-height: 0;
    }

    body .schedule-board-lane-wrap {
        padding: 8px;
        border-radius: 20px;
    }

    body .schedule-board-lane {
        --schedule-day-column-width: 102px;
    }

    body .schedule-board-lane-head,
    body .schedule-lane-row {
        grid-template-columns: minmax(78vw, 84vw) minmax(0, 1fr);
        gap: 10px;
    }

    body .schedule-board-lane-axis,
    body .schedule-lane-member {
        width: min(84vw, 300px);
        padding: 14px;
    }

    body .schedule-lane-day-card,
    body .schedule-lane-cell {
        min-height: 80px;
        padding: 10px;
    }

    body .schedule-lane-day-card strong {
        font-size: 1rem;
    }

    body .schedule-lane-member strong {
        font-size: 0.98rem;
    }

    body .chat-shell {
        gap: 12px;
    }

    body .chat-main-panel {
        min-height: min(62dvh, 560px);
        max-height: calc(100dvh - 138px);
    }

    body .table-box.stack-scroll-shell {
        max-height: min(66dvh, 760px);
        padding-right: 6px;
    }

    body .table-box.stack-scroll-shell > .section-title {
        margin-right: -6px;
        padding-right: 6px;
    }

    body .stack-scroll-list {
        max-height: min(62dvh, 760px);
    }

    body .mobile-brand strong {
        font-size: 0.9rem;
    }

    body .mobile-brand span {
        font-size: 0.72rem;
        letter-spacing: 0.06em;
    }

    body .mobile-chip {
        font-size: 0.7rem;
        padding: 6px 10px;
    }

    body .page-eyebrow {
        letter-spacing: 0.12em;
    }

    body .stock-filter-bar,
    body .products-filter-bar,
    body .products-import-bar,
    body .products-manual-box .form-grid {
        grid-template-columns: 1fr;
    }

    body .meta-card strong {
        font-size: 1.18rem;
        line-height: 1.2;
    }

    body .dashboard-cards .card,
    body .dashboard-aging-grid .card-mini,
    body .stock-summary-grid .card-mini,
    body .stock-meta-grid .meta-card,
    body .products-meta-grid .meta-card {
        padding: 16px;
    }

    body .cards,
    body .summary,
    body .meta-grid,
    body .dashboard-cards,
    body .dashboard-aging-grid,
    body .stock-summary-grid,
    body .stock-meta-grid,
    body .products-meta-grid,
    body .attendance-identity-grid {
        grid-template-columns: 1fr !important;
        grid-auto-flow: row;
    }

    body .cards > *,
    body .summary > *,
    body .meta-grid > *,
    body .dashboard-cards > *,
    body .dashboard-aging-grid > *,
    body .stock-summary-grid > *,
    body .stock-meta-grid > *,
    body .products-meta-grid > *,
    body .attendance-identity-grid > * {
        min-width: 0;
        width: 100%;
    }

    body .table-box,
    body .form-box,
    body .import-box,
    body .box {
        padding: 16px;
    }

    body .stock-detail-box,
    body .products-list-box,
    body .products-manual-box,
    body .dashboard-activity-box {
        padding: 14px;
    }

    body .mobile-dock {
        left: 10px;
        right: 10px;
        gap: 6px;
        padding: 8px;
    }

    body .mobile-dock a,
    body .mobile-dock button {
        min-height: 44px;
        font-size: 0.7rem;
        padding: 8px 6px;
    }

    body .money-input {
        padding: 0 10px;
    }

    body .stock-table {
        min-width: 1680px;
    }

    body .ops-batch-box {
        padding: 16px;
    }

    body .ops-entry-grid,
    body .ops-entry-grid.request-entry-grid,
    body .ops-entry-grid.request-custom-entry-grid,
    body .ops-entry-grid.outbound-entry-grid {
        grid-template-columns: 1fr;
    }

    body .ops-lines-table {
        min-width: 860px;
    }

    body .outbound-lines-table {
        min-width: 820px;
    }

    body .ops-queue-table {
        min-width: 800px;
    }

    body .picker-modal {
        padding: 10px;
    }

    body .picker-modal-panel {
        width: calc(100vw - 20px);
        max-height: calc(100dvh - 20px);
        padding: 16px;
        border-radius: 22px;
    }

    body .picker-results-box {
        max-height: min(46dvh, 380px);
    }
}

@media (prefers-reduced-motion: reduce), (max-width: 768px) {
    html {
        scroll-behavior: auto;
    }

    body .page-hero,
    body .card,
    body .card-mini,
    body .table-box,
    body .form-box,
    body .import-box,
    body .box,
    body .sidebar,
    body .desktop-sidebar-toggle,
    body .mobile-sidebar-backdrop,
    body .chat-thread-card,
    body .chat-contact-card,
    body .chat-sticker-button,
    body .ghost-button,
    body button,
    body a {
        animation: none !important;
        transition: none !important;
    }
}

@media (max-width: 400px) {
    body .dashboard-cards,
    body .dashboard-aging-grid,
    body .stock-summary-grid,
    body .stock-meta-grid,
    body .products-meta-grid,
    body .summary,
    body .meta-grid,
    body .cards {
        grid-template-columns: 1fr;
    }
}

body .theme-switcher {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

body .theme-switcher-label {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-soft);
}

body .theme-toggle {
    width: 100%;
}

body .mobile-theme-toggle {
    min-height: 32px;
    padding: 8px 12px;
    box-shadow: none;
    flex: 0 0 auto;
}

body .hris-module-grid {
    grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
    gap: 12px;
    align-items: stretch;
}

body .hris-module-disclosure {
    margin-bottom: 18px;
}

body .hris-clean-shell {
    display: grid;
    gap: 14px;
}

body .hris-module-disclosure summary {
    list-style: none;
}

body .hris-module-disclosure summary::-webkit-details-marker {
    display: none;
}

body .hris-module-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
}

body .hris-module-summary-copy {
    display: grid;
    gap: 6px;
    min-width: 0;
}

body .hris-module-summary-note {
    color: var(--text-soft);
    font-size: 0.82rem;
    font-weight: 600;
}

body .hris-module-summary-kicker {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-soft);
}

body .hris-module-summary strong {
    font-size: 1.08rem;
    color: var(--text-strong);
    letter-spacing: -0.03em;
}

body .hris-module-summary small {
    color: var(--text-soft);
    font-size: 0.86rem;
    line-height: 1.5;
}

body .hris-module-summary-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

body .hris-module-summary-icon {
    width: 14px;
    height: 14px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    color: var(--text-soft);
    transform: rotate(45deg);
    transition: transform 0.2s ease, color 0.2s ease;
    margin-top: -4px;
}

body .hris-module-disclosure[open] .hris-module-summary-icon {
    transform: rotate(-135deg);
    color: var(--accent);
    margin-top: 4px;
}

body .hris-module-summary-body {
    margin-top: 16px;
}

body .hris-module-card {
    display: block;
    padding: 14px 16px;
    min-height: 148px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

body .hris-module-card .badge {
    justify-self: start;
}

body .hris-module-card h2 {
    margin-top: 8px;
    font-size: clamp(1.02rem, 1.08vw, 1.42rem);
    line-height: 1.04;
    letter-spacing: -0.03em;
    overflow-wrap: anywhere;
}

body .hris-module-card .helper-text {
    display: -webkit-box;
    margin-top: 8px;
    font-size: 0.8rem;
    line-height: 1.48;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body .hris-module-card.active {
    border-color: rgba(93, 183, 255, 0.28);
    box-shadow: 0 22px 42px rgba(15, 94, 199, 0.18);
}

body .hris-module-card:hover {
    transform: translateY(-2px);
}

html[data-theme="light"] {
    color-scheme: light;
    --text: #10233b;
    --text-muted: #556d86;
    --text-strong: #081222;
    --text-soft: #556b84;
    --line: rgba(116, 138, 165, 0.18);
    --line-strong: rgba(116, 138, 165, 0.28);
    --shadow-lg: 0 24px 56px rgba(28, 48, 72, 0.14);
    --shadow-md: 0 14px 28px rgba(36, 58, 84, 0.1);
    --theme-bg-left: rgba(93, 183, 255, 0.16);
    --theme-bg-right: rgba(255, 191, 71, 0.16);
    --theme-bg-start: #f7fafc;
    --theme-bg-middle: #eef4f9;
    --theme-bg-end: #e2ebf3;
    --theme-grid-line: rgba(12, 24, 43, 0.05);
    --theme-sidebar-bg: linear-gradient(180deg, rgba(247, 250, 255, 0.98) 0%, rgba(232, 240, 249, 0.96) 100%);
    --theme-sidebar-scroll-track: rgba(10, 24, 42, 0.08);
    --theme-sidebar-scroll-thumb: linear-gradient(180deg, rgba(121, 138, 161, 0.82), rgba(84, 103, 129, 0.92));
    --theme-sidebar-scroll-thumb-border: rgba(234, 240, 246, 0.94);
    --theme-brand-bg: linear-gradient(145deg, rgba(93, 183, 255, 0.14), rgba(17, 38, 69, 0.04));
    --theme-brand-border: rgba(33, 137, 255, 0.12);
    --theme-brand-inset: rgba(255, 255, 255, 0.72);
    --theme-brand-mark-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(233, 241, 250, 0.92));
    --theme-brand-mark-shadow: 0 18px 32px rgba(35, 55, 78, 0.12);
    --theme-suite-chip-bg: rgba(255, 191, 71, 0.16);
    --theme-suite-chip-color: #7a4f00;
    --theme-sidebar-link-color: #31465e;
    --theme-sidebar-link-active-color: #0a1a2d;
    --theme-sidebar-link-bg: rgba(33, 137, 255, 0.1);
    --theme-sidebar-link-border: rgba(33, 137, 255, 0.14);
    --theme-sidebar-label: #5b7390;
    --theme-sidebar-label-active: #0d2340;
    --theme-sidebar-icon: rgba(13, 35, 64, 0.6);
    --theme-sidebar-rail-icon-filter: brightness(0) saturate(100%) invert(20%) sepia(16%) saturate(1125%) hue-rotate(174deg) brightness(93%) contrast(91%);
    --theme-subnav-border: rgba(33, 137, 255, 0.16);
    --theme-sidebar-panel-bg: rgba(255, 255, 255, 0.04);
    --theme-sidebar-panel-border: rgba(116, 138, 165, 0.14);
    --theme-sidebar-group-toggle-bg: rgba(255, 255, 255, 0.04);
    --theme-sidebar-group-toggle-active-bg: rgba(33, 137, 255, 0.12);
    --theme-footer-bg: rgba(255, 255, 255, 0.62);
    --theme-footer-border: rgba(116, 138, 165, 0.16);
    --theme-status-pill-color: #0f2e50;
    --theme-status-pill-bg: rgba(33, 137, 255, 0.1);
    --theme-status-pill-border: rgba(33, 137, 255, 0.14);
    --theme-heading: #0c1a2e;
    --theme-subtitle: #3f5975;
    --theme-hero-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 249, 253, 0.8));
    --theme-hero-border: rgba(116, 138, 165, 0.18);
    --theme-hero-shadow: 0 16px 32px rgba(44, 62, 84, 0.1);
    --theme-label-color: #10233b;
    --theme-helper-color: #334e69;
    --theme-card-kicker: #3d5874;
    --theme-card-value: #091a2e;
    --theme-page-eyebrow: #8b5a00;
    --theme-surface-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 253, 0.96));
    --theme-surface-border: rgba(116, 138, 165, 0.14);
    --theme-surface-shadow: 0 14px 28px rgba(36, 58, 84, 0.1);
    --theme-surface-topline: rgba(93, 183, 255, 0.12);
    --theme-table-header-bg: rgba(12, 24, 43, 0.04);
    --theme-table-header-color: #27415d;
    --theme-table-border: rgba(10, 24, 42, 0.08);
    --theme-table-hover: rgba(93, 183, 255, 0.08);
    --theme-input-bg: rgba(255, 255, 255, 0.92);
    --theme-input-border: rgba(10, 24, 42, 0.12);
    --theme-input-color: #081222;
    --theme-input-placeholder: #7b8ea5;
    --theme-input-focus-bg: #ffffff;
    --theme-input-readonly-bg: rgba(10, 24, 42, 0.05);
    --theme-disabled-bg: rgba(231, 238, 246, 0.92);
    --theme-disabled-color: #3c5168;
    --theme-disabled-border: rgba(84, 103, 129, 0.18);
    --theme-money-span: #526a84;
    --theme-filter-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(244, 248, 252, 0.96));
    --theme-filter-border: rgba(116, 138, 165, 0.16);
    --theme-ghost-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 245, 250, 0.94));
    --theme-ghost-color: #10233b;
    --theme-ghost-border: rgba(10, 24, 42, 0.12);
    --theme-ghost-shadow: 0 10px 22px rgba(7, 17, 31, 0.08);
    --theme-ghost-hover-border: rgba(33, 137, 255, 0.24);
    --theme-ghost-hover-shadow: 0 14px 24px rgba(7, 17, 31, 0.1);
    --theme-ghost-disabled-bg: linear-gradient(180deg, rgba(247, 250, 253, 0.94), rgba(234, 240, 246, 0.92));
    --theme-ghost-disabled-color: #576b82;
    --theme-ghost-disabled-border: rgba(10, 24, 42, 0.1);
    --theme-pagination-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 245, 250, 0.94));
    --theme-pagination-color: #10233b;
    --theme-pagination-border: rgba(10, 24, 42, 0.12);
    --theme-pagination-hover-bg: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(233, 241, 250, 0.96));
    --theme-pagination-hover-color: #081222;
    --theme-button-disabled-bg: linear-gradient(180deg, rgba(221, 229, 238, 0.98), rgba(206, 217, 229, 0.96));
    --theme-button-disabled-color: #3b5168;
    --theme-button-disabled-border: rgba(84, 103, 129, 0.18);
    --theme-file-button-bg: rgba(10, 24, 42, 0.08);
    --theme-file-button-color: #10233b;
    --theme-mobile-nav-bg: rgba(248, 251, 255, 0.9);
    --theme-mobile-nav-border: rgba(116, 138, 165, 0.18);
    --theme-mobile-chip-bg: rgba(33, 137, 255, 0.1);
    --theme-mobile-chip-color: #0f2846;
    --theme-mobile-chip-border: rgba(33, 137, 255, 0.12);
    --theme-mobile-dock-bg: rgba(248, 251, 255, 0.92);
    --theme-mobile-dock-border: rgba(116, 138, 165, 0.16);
    --theme-mobile-dock-link: #4f6681;
    --theme-mobile-dock-active-bg: rgba(33, 137, 255, 0.12);
    --theme-mobile-dock-active-color: #0d2340;
    --theme-empty-bg: rgba(255, 255, 255, 0.82);
    --theme-empty-border: rgba(116, 138, 165, 0.3);
    --theme-empty-color: #39546f;
    --theme-picker-panel-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(243, 247, 252, 0.98));
    --theme-picker-shadow: 0 28px 64px rgba(44, 62, 84, 0.18);
    --theme-stock-card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 247, 252, 0.94));
    --theme-toast-bg: rgba(255, 255, 255, 0.96);
    --theme-toast-color: #10233b;
    --theme-toast-border: rgba(116, 138, 165, 0.18);
    --theme-badge-neutral-bg: rgba(10, 24, 42, 0.08);
    --theme-badge-neutral-color: #465b73;
    --theme-badge-neutral-border: rgba(10, 24, 42, 0.1);
    --theme-warning-card-bg: linear-gradient(180deg, rgba(255, 245, 220, 0.98), rgba(255, 238, 204, 0.95));
    --theme-danger-card-bg: linear-gradient(180deg, rgba(255, 233, 233, 0.98), rgba(255, 219, 219, 0.95));
    --theme-success-card-bg: linear-gradient(180deg, rgba(231, 255, 244, 0.98), rgba(216, 249, 233, 0.95));
    --theme-warning-soft-bg: rgba(255, 191, 71, 0.18);
    --theme-warning-soft-color: #7d5500;
    --theme-warning-soft-border: rgba(255, 191, 71, 0.22);
    --theme-success-soft-bg: rgba(33, 197, 125, 0.16);
    --theme-success-soft-color: #0d6b43;
    --theme-success-soft-border: rgba(33, 197, 125, 0.2);
    --theme-danger-soft-bg: rgba(255, 107, 107, 0.14);
    --theme-danger-soft-color: #8d1e1e;
    --theme-danger-soft-border: rgba(255, 107, 107, 0.22);
    --theme-info-soft-bg: rgba(107, 212, 255, 0.16);
    --theme-info-soft-color: #0c4f74;
    --theme-info-soft-border: rgba(107, 212, 255, 0.22);
    --theme-login-shell-bg: rgba(255, 255, 255, 0.58);
    --theme-login-shell-border: rgba(116, 138, 165, 0.16);
    --theme-login-hero-scrim: linear-gradient(180deg, rgba(7, 17, 31, 0.04), rgba(7, 17, 31, 0.44));
    --theme-login-hero-edge: linear-gradient(90deg, rgba(7, 17, 31, 0.2), rgba(7, 17, 31, 0.04));
    --theme-login-hero-badge-bg: rgba(9, 24, 42, 0.54);
    --theme-login-hero-badge-border: rgba(255, 255, 255, 0.16);
    --theme-login-hero-badge-color: #f7fbff;
    --theme-login-panel-bg: linear-gradient(180deg, rgba(252, 254, 255, 0.98), rgba(243, 247, 252, 0.97));
    --theme-login-panel-border: rgba(116, 138, 165, 0.16);
    --theme-login-panel-shadow: 0 24px 56px rgba(24, 40, 63, 0.12);
    --theme-progress-text: #5f7289;
    --theme-progress-track-bg: rgba(10, 24, 42, 0.08);
    --theme-progress-bar: linear-gradient(90deg, #21c57d, #5db7ff);
    --theme-variant-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 249, 252, 0.98));
    --theme-variant-table-bg: #ffffff;
    --theme-variant-head-bg: #f4f5f7;
    --theme-variant-head-color: #6d7683;
    --theme-variant-row-bg: rgba(255, 255, 255, 0.98);
    --theme-variant-row-alt: #fcfcfd;
    --theme-variant-row-side: #f9fafb;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --text: #dbe7f5;
    --text-muted: #a6b8cc;
    --text-strong: #ecf4ff;
    --text-soft: #a8bbd0;
    --line: rgba(148, 163, 184, 0.16);
    --line-strong: rgba(148, 163, 184, 0.28);
    --shadow-lg: 0 32px 80px rgba(1, 8, 18, 0.48);
    --shadow-md: 0 22px 42px rgba(1, 8, 18, 0.34);
    --theme-bg-left: rgba(93, 183, 255, 0.18);
    --theme-bg-right: rgba(255, 191, 71, 0.14);
    --theme-bg-start: #05101d;
    --theme-bg-middle: #0a172a;
    --theme-bg-end: #112645;
    --theme-grid-line: rgba(255, 255, 255, 0.03);
    --theme-sidebar-bg: linear-gradient(180deg, rgba(11, 21, 37, 0.96) 0%, rgba(6, 14, 28, 0.96) 100%);
    --theme-sidebar-scroll-track: rgba(255, 255, 255, 0.06);
    --theme-sidebar-scroll-thumb: linear-gradient(180deg, rgba(184, 197, 214, 0.9), rgba(121, 138, 161, 0.96));
    --theme-sidebar-scroll-thumb-border: rgba(7, 17, 31, 0.92);
    --theme-brand-bg: linear-gradient(145deg, rgba(93, 183, 255, 0.18), rgba(17, 38, 69, 0.12));
    --theme-brand-border: rgba(93, 183, 255, 0.18);
    --theme-brand-inset: rgba(255, 255, 255, 0.05);
    --theme-brand-mark-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(233, 241, 250, 0.92));
    --theme-brand-mark-shadow: 0 18px 32px rgba(1, 8, 18, 0.25);
    --theme-suite-chip-bg: rgba(255, 191, 71, 0.14);
    --theme-suite-chip-color: #ffe5ab;
    --theme-sidebar-link-color: #95a9bf;
    --theme-sidebar-link-active-color: #f8fbff;
    --theme-sidebar-link-bg: rgba(93, 183, 255, 0.1);
    --theme-sidebar-link-border: rgba(93, 183, 255, 0.12);
    --theme-sidebar-label: #7187a0;
    --theme-sidebar-label-active: #dfeeff;
    --theme-sidebar-icon: rgba(223, 238, 255, 0.72);
    --theme-sidebar-rail-icon-filter: none;
    --theme-subnav-border: rgba(93, 183, 255, 0.12);
    --theme-sidebar-panel-bg: rgba(255, 255, 255, 0.03);
    --theme-sidebar-panel-border: rgba(148, 163, 184, 0.08);
    --theme-sidebar-group-toggle-bg: rgba(255, 255, 255, 0.02);
    --theme-sidebar-group-toggle-active-bg: rgba(93, 183, 255, 0.08);
    --theme-footer-bg: rgba(255, 255, 255, 0.03);
    --theme-footer-border: rgba(148, 163, 184, 0.18);
    --theme-status-pill-color: #eef7ff;
    --theme-status-pill-bg: rgba(93, 183, 255, 0.12);
    --theme-status-pill-border: rgba(93, 183, 255, 0.15);
    --theme-heading: #f7fbff;
    --theme-subtitle: #aabacc;
    --theme-hero-bg: linear-gradient(180deg, rgba(11, 24, 40, 0.56), rgba(15, 31, 53, 0.34));
    --theme-hero-border: rgba(148, 163, 184, 0.14);
    --theme-hero-shadow: 0 18px 34px rgba(1, 8, 18, 0.18);
    --theme-label-color: #e6f0fb;
    --theme-helper-color: #b8c7d9;
    --theme-card-kicker: #bacbdd;
    --theme-card-value: #f7fbff;
    --theme-page-eyebrow: #ffd27a;
    --theme-surface-bg: linear-gradient(180deg, rgba(13, 22, 38, 0.98), rgba(10, 18, 32, 0.97));
    --theme-surface-border: rgba(148, 163, 184, 0.14);
    --theme-surface-shadow: 0 18px 36px rgba(1, 8, 18, 0.28);
    --theme-surface-topline: rgba(93, 183, 255, 0.14);
    --theme-table-header-bg: rgba(255, 255, 255, 0.04);
    --theme-table-header-color: #b3c5d8;
    --theme-table-border: rgba(148, 163, 184, 0.12);
    --theme-table-hover: rgba(93, 183, 255, 0.09);
    --theme-input-bg: rgba(10, 18, 31, 0.88);
    --theme-input-border: rgba(148, 163, 184, 0.18);
    --theme-input-color: #ecf4ff;
    --theme-input-placeholder: #7f96b0;
    --theme-input-focus-bg: rgba(8, 17, 29, 0.96);
    --theme-input-readonly-bg: rgba(255, 255, 255, 0.06);
    --theme-disabled-bg: rgba(23, 36, 55, 0.96);
    --theme-disabled-color: #b7c7d9;
    --theme-disabled-border: rgba(148, 163, 184, 0.18);
    --theme-money-span: #9fb5cb;
    --theme-filter-bg: linear-gradient(180deg, rgba(11, 24, 40, 0.5), rgba(15, 31, 53, 0.36));
    --theme-filter-border: rgba(148, 163, 184, 0.14);
    --theme-ghost-bg: linear-gradient(180deg, rgba(19, 31, 50, 0.92), rgba(12, 22, 38, 0.94));
    --theme-ghost-color: #ecf4ff;
    --theme-ghost-border: rgba(148, 163, 184, 0.18);
    --theme-ghost-shadow: 0 14px 28px rgba(1, 8, 18, 0.22);
    --theme-ghost-hover-border: rgba(93, 183, 255, 0.24);
    --theme-ghost-hover-shadow: 0 18px 30px rgba(1, 8, 18, 0.28);
    --theme-ghost-disabled-bg: linear-gradient(180deg, rgba(17, 28, 45, 0.84), rgba(12, 21, 36, 0.9));
    --theme-ghost-disabled-color: #7e93ab;
    --theme-ghost-disabled-border: rgba(148, 163, 184, 0.12);
    --theme-pagination-bg: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(235, 241, 248, 0.94));
    --theme-pagination-color: #10233b;
    --theme-pagination-border: rgba(184, 197, 214, 0.34);
    --theme-pagination-hover-bg: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(236, 243, 250, 0.98));
    --theme-pagination-hover-color: #081222;
    --theme-button-disabled-bg: linear-gradient(180deg, rgba(27, 42, 63, 0.95), rgba(20, 31, 48, 0.98));
    --theme-button-disabled-color: #bdd0e5;
    --theme-button-disabled-border: rgba(148, 163, 184, 0.16);
    --theme-file-button-bg: rgba(255, 255, 255, 0.08);
    --theme-file-button-color: #ecf4ff;
    --theme-mobile-nav-bg: rgba(6, 14, 28, 0.92);
    --theme-mobile-nav-border: rgba(148, 163, 184, 0.16);
    --theme-mobile-chip-bg: rgba(255, 255, 255, 0.08);
    --theme-mobile-chip-color: #f7fbff;
    --theme-mobile-chip-border: rgba(255, 255, 255, 0.08);
    --theme-mobile-dock-bg: rgba(6, 14, 28, 0.9);
    --theme-mobile-dock-border: rgba(255, 255, 255, 0.08);
    --theme-mobile-dock-link: #98aec6;
    --theme-mobile-dock-active-bg: rgba(93, 183, 255, 0.14);
    --theme-mobile-dock-active-color: #f7fbff;
    --theme-empty-bg: rgba(255, 255, 255, 0.05);
    --theme-empty-border: rgba(148, 163, 184, 0.24);
    --theme-empty-color: #b1c3d6;
    --theme-picker-panel-bg: linear-gradient(180deg, rgba(12, 22, 38, 0.99), rgba(8, 16, 30, 0.98));
    --theme-picker-shadow: 0 28px 64px rgba(1, 8, 18, 0.42);
    --theme-stock-card-bg: linear-gradient(180deg, rgba(15, 25, 42, 0.96), rgba(10, 19, 33, 0.94));
    --theme-toast-bg: rgba(7, 17, 31, 0.94);
    --theme-toast-color: #eef7ff;
    --theme-toast-border: rgba(148, 163, 184, 0.16);
    --theme-badge-neutral-bg: rgba(255, 255, 255, 0.08);
    --theme-badge-neutral-color: #c5d4e4;
    --theme-badge-neutral-border: rgba(148, 163, 184, 0.14);
    --theme-warning-card-bg: linear-gradient(180deg, rgba(87, 60, 10, 0.64), rgba(62, 43, 7, 0.76));
    --theme-danger-card-bg: linear-gradient(180deg, rgba(89, 24, 24, 0.66), rgba(64, 16, 16, 0.78));
    --theme-success-card-bg: linear-gradient(180deg, rgba(12, 76, 49, 0.64), rgba(8, 54, 35, 0.78));
    --theme-warning-soft-bg: rgba(255, 191, 71, 0.14);
    --theme-warning-soft-color: #ffe3ab;
    --theme-warning-soft-border: rgba(255, 191, 71, 0.18);
    --theme-success-soft-bg: rgba(33, 197, 125, 0.14);
    --theme-success-soft-color: #c9f6e3;
    --theme-success-soft-border: rgba(33, 197, 125, 0.18);
    --theme-danger-soft-bg: rgba(255, 107, 107, 0.14);
    --theme-danger-soft-color: #ffd8d8;
    --theme-danger-soft-border: rgba(255, 107, 107, 0.18);
    --theme-info-soft-bg: rgba(107, 212, 255, 0.14);
    --theme-info-soft-color: #dff1ff;
    --theme-info-soft-border: rgba(107, 212, 255, 0.18);
    --theme-login-shell-bg: rgba(7, 17, 31, 0.46);
    --theme-login-shell-border: rgba(255, 255, 255, 0.08);
    --theme-login-hero-scrim: linear-gradient(180deg, rgba(5, 12, 24, 0.1), rgba(5, 12, 24, 0.54));
    --theme-login-hero-edge: linear-gradient(90deg, rgba(4, 10, 20, 0.34), rgba(4, 10, 20, 0.06));
    --theme-login-hero-badge-bg: rgba(7, 17, 31, 0.6);
    --theme-login-hero-badge-border: rgba(255, 255, 255, 0.1);
    --theme-login-hero-badge-color: #f7fbff;
    --theme-login-panel-bg: linear-gradient(180deg, rgba(13, 23, 39, 0.98), rgba(9, 17, 31, 0.97));
    --theme-login-panel-border: rgba(148, 163, 184, 0.14);
    --theme-login-panel-shadow: 0 26px 58px rgba(1, 8, 18, 0.34);
    --theme-progress-text: #a9bed4;
    --theme-progress-track-bg: rgba(255, 255, 255, 0.08);
    --theme-progress-bar: linear-gradient(90deg, #2bce85, #5db7ff);
    --theme-variant-bg: linear-gradient(180deg, rgba(12, 21, 36, 0.98), rgba(10, 18, 32, 0.97));
    --theme-variant-table-bg: rgba(11, 20, 34, 0.98);
    --theme-variant-head-bg: rgba(255, 255, 255, 0.05);
    --theme-variant-head-color: #92a8bf;
    --theme-variant-row-bg: rgba(11, 20, 34, 0.98);
    --theme-variant-row-alt: rgba(255, 255, 255, 0.02);
    --theme-variant-row-side: rgba(255, 255, 255, 0.03);
}

html[data-theme] body {
    color: var(--text);
    background:
        radial-gradient(circle at top left, var(--theme-bg-left), transparent 34%),
        radial-gradient(circle at top right, var(--theme-bg-right), transparent 26%),
        linear-gradient(145deg, var(--theme-bg-start) 0%, var(--theme-bg-middle) 42%, var(--theme-bg-end) 100%);
}

html[data-theme] body::before {
    background-image:
        linear-gradient(var(--theme-grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--theme-grid-line) 1px, transparent 1px);
}

html[data-theme] body .skip-link {
    background: var(--theme-button-bg);
    color: var(--theme-button-color);
    border-color: var(--theme-button-border);
    box-shadow: var(--theme-button-shadow);
}

html[data-theme] body .skip-link:focus-visible {
    box-shadow: var(--theme-button-hover-shadow);
}

html[data-theme] body .main {
    padding: clamp(18px, 2.4vw, 34px);
}

html[data-theme] body .layout.layout-plain > .main > * {
    width: min(100%, var(--content-max));
    max-width: var(--content-max);
    margin-inline: auto;
}

html[data-theme] body .layout:not(.layout-plain) > .main > * {
    width: 100%;
    max-width: none;
    margin-inline: 0;
}

html[data-theme] body .main > .page-content.page-content-bleed,
html[data-theme] body .main > .page-content.chat-page-content {
    width: 100%;
    max-width: none;
}

html[data-theme] body .page-hero,
html[data-theme] body .mobile-command-deck {
    backdrop-filter: blur(22px);
}

html[data-theme] body .sidebar {
    background: var(--theme-sidebar-bg);
    scrollbar-color: var(--text-muted) var(--theme-sidebar-scroll-track);
}

html[data-theme] body .sidebar::-webkit-scrollbar-track {
    background: var(--theme-sidebar-scroll-track);
}

html[data-theme] body .sidebar::-webkit-scrollbar-thumb {
    background: var(--theme-sidebar-scroll-thumb);
    border-color: var(--theme-sidebar-scroll-thumb-border);
}

html[data-theme] body .brand-block {
    background: var(--theme-brand-bg);
    border-color: var(--theme-brand-border);
    box-shadow: inset 0 1px 0 var(--theme-brand-inset);
}

html[data-theme] body .brand-mark {
    background: var(--theme-brand-mark-bg);
    box-shadow: var(--theme-brand-mark-shadow);
}

html[data-theme] body .suite-chip {
    background: var(--theme-suite-chip-bg);
    color: var(--theme-suite-chip-color);
}

html[data-theme] body .sidebar-section-label {
    color: var(--theme-sidebar-label);
}

html[data-theme] body .sidebar-group {
    background: var(--theme-sidebar-panel-bg);
    border-color: var(--theme-sidebar-panel-border);
}

html[data-theme] body .sidebar-group-label {
    color: var(--theme-sidebar-label);
}

html[data-theme] body .sidebar-group.active .sidebar-group-label {
    color: var(--theme-sidebar-label-active);
}

html[data-theme] body .sidebar-group-toggle {
    background: var(--theme-sidebar-group-toggle-bg);
}

html[data-theme] body .sidebar-group.active .sidebar-group-toggle,
html[data-theme] body .sidebar-disclosure[open] .sidebar-group-toggle {
    background: var(--theme-sidebar-group-toggle-active-bg);
}

html[data-theme] body .sidebar-group-icon {
    border-right-color: var(--theme-sidebar-icon);
    border-bottom-color: var(--theme-sidebar-icon);
}

html[data-theme] body .sidebar-subnav {
    border-left-color: var(--theme-subnav-border);
}

html[data-theme] body .sidebar a {
    color: var(--theme-sidebar-link-color);
}

html[data-theme] body .sidebar-subgroup-toggle {
    color: var(--theme-sidebar-link-color);
}

html[data-theme] body .sidebar a:hover,
html[data-theme] body .sidebar a.active {
    color: var(--theme-sidebar-link-active-color);
    background: var(--theme-sidebar-link-bg);
    border-color: var(--theme-sidebar-link-border);
}

html[data-theme] body .sidebar-subgroup:hover .sidebar-subgroup-toggle,
html[data-theme] body .sidebar-subgroup.active .sidebar-subgroup-toggle,
html[data-theme] body .sidebar-subgroup[open] .sidebar-subgroup-toggle {
    color: var(--theme-sidebar-link-active-color);
    background: var(--theme-sidebar-link-bg);
    border-color: var(--theme-sidebar-link-border);
}

html[data-theme] body .sidebar-subgroup-links {
    border-left-color: var(--theme-subnav-border);
}

html[data-theme] body .sidebar-footer {
    background: var(--theme-footer-bg);
    border-color: var(--theme-footer-border);
}

html[data-theme] body .status-pill {
    color: var(--theme-status-pill-color);
    background: var(--theme-status-pill-bg);
    border-color: var(--theme-status-pill-border);
}

html[data-theme] body .page-hero h1,
html[data-theme] body .header h1,
html[data-theme] body .main > h1,
html[data-theme] body .mobile-brand strong {
    color: var(--theme-heading);
}

html[data-theme] body .page-hero {
    background: var(--theme-hero-bg);
    border-color: var(--theme-hero-border);
    box-shadow: var(--theme-hero-shadow);
}

html[data-theme] body .page-subtitle {
    color: var(--theme-subtitle);
}

html[data-theme] body .page-eyebrow {
    color: var(--theme-page-eyebrow);
}

html[data-theme] body label {
    color: var(--theme-label-color);
}

html[data-theme] body small:not(.stock-empty):not(.stock-low):not(.stock-ok):not(.green):not(.red):not(.orange),
html[data-theme] body .helper-text:not(.stock-empty):not(.stock-low):not(.stock-ok):not(.green):not(.red):not(.orange),
html[data-theme] body .section-title p,
html[data-theme] body .brand-copy,
html[data-theme] body .mobile-brand span {
    color: var(--theme-helper-color);
}

html[data-theme] body .card p,
html[data-theme] body .card-mini p,
html[data-theme] body .variant-size-label,
html[data-theme] body .variant-price-summary,
html[data-theme] body .variant-stock-hint {
    color: var(--theme-card-kicker);
}

html[data-theme] body .card h2,
html[data-theme] body .card-mini h3 {
    color: var(--theme-card-value);
}

html[data-theme] body .panel,
html[data-theme] body .card,
html[data-theme] body .card-mini,
html[data-theme] body .form-box,
html[data-theme] body .table-box,
html[data-theme] body .import-box,
html[data-theme] body .box,
html[data-theme] body .meta-card,
html[data-theme] body .picker-modal-panel,
html[data-theme] body .ops-stock-card {
    background: var(--theme-surface-bg);
    border-color: var(--theme-surface-border);
    box-shadow: var(--theme-surface-shadow);
    color: var(--text-strong);
}

html[data-theme] body .panel::before,
html[data-theme] body .card::before,
html[data-theme] body .card-mini::before,
html[data-theme] body .form-box::before,
html[data-theme] body .table-box::before,
html[data-theme] body .import-box::before,
html[data-theme] body .box::before {
    background: linear-gradient(90deg, var(--accent), var(--theme-surface-topline));
}

html[data-theme] body th,
html[data-theme] body td {
    border-bottom-color: var(--theme-table-border);
}

html[data-theme="dark"] body [data-pos-sales-log="1"] tbody tr[data-pos-sales-log-row="1"] td {
    border-bottom-color: var(--theme-table-border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    background: rgba(255, 255, 255, 0.02);
}

html[data-theme="dark"] body [data-pos-sales-log="1"] tbody tr[data-pos-sales-log-row="1"]:nth-child(even) td {
    background: rgba(255, 255, 255, 0.035);
}

html[data-theme="dark"] body [data-pos-sales-log="1"] tbody tr[data-pos-sales-log-row="1"]:hover td {
    background: var(--theme-table-hover);
    border-bottom-color: var(--theme-surface-border);
}

html[data-theme] body th {
    color: var(--theme-table-header-color);
    background: var(--theme-table-header-bg);
}

html[data-theme] body tbody tr:hover {
    background: var(--theme-table-hover);
}

html[data-theme] body .table-box.stack-scroll-shell > .section-title {
    background: var(--theme-surface-bg);
    border-bottom-color: var(--theme-surface-border);
    box-shadow: 0 14px 20px rgba(3, 8, 18, 0.18);
}

html[data-theme] body .table-box.stack-scroll-shell::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
}

html[data-theme] body .table-box.stack-scroll-shell::-webkit-scrollbar-thumb {
    border-color: var(--theme-surface-bg);
}

html[data-theme] body input,
html[data-theme] body select,
html[data-theme] body textarea {
    background: var(--theme-input-bg);
    border-color: var(--theme-input-border);
    color: var(--theme-input-color);
}

html[data-theme] body input:disabled,
html[data-theme] body select:disabled,
html[data-theme] body textarea:disabled,
html[data-theme] body input[readonly] {
    background: var(--theme-disabled-bg);
    border-color: var(--theme-disabled-border);
    color: var(--theme-disabled-color);
    -webkit-text-fill-color: var(--theme-disabled-color);
}

html[data-theme] body input::placeholder,
html[data-theme] body textarea::placeholder {
    color: var(--theme-input-placeholder);
    opacity: 0.58;
}

html[data-theme] body input:focus,
html[data-theme] body select:focus,
html[data-theme] body textarea:focus {
    background: var(--theme-input-focus-bg);
}

html[data-theme] body input[readonly] {
    background: var(--theme-input-readonly-bg);
}

html[data-theme="dark"] body .attendance-cash-closing-toggle {
    background: var(--theme-surface-bg);
    border-color: var(--theme-surface-border);
    box-shadow: var(--theme-surface-shadow);
}

html[data-theme="dark"] body .attendance-cash-closing-toggle > summary {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
}

html[data-theme="dark"] body .attendance-cash-closing-toggle[open] > summary {
    border-bottom-color: var(--theme-surface-border);
}

html[data-theme="dark"] body .attendance-cash-closing-summary-text h2 {
    color: var(--theme-card-value);
}

html[data-theme="dark"] body .attendance-cash-closing-summary-text p,
html[data-theme="dark"] body .attendance-cash-closing-preview-label,
html[data-theme="dark"] body .attendance-cash-closing-item-head p,
html[data-theme="dark"] body .attendance-cash-closing-error {
    color: var(--theme-helper-color);
}

html[data-theme="dark"] body .attendance-cash-closing-preview,
html[data-theme="dark"] body .attendance-cash-closing-sheet,
html[data-theme="dark"] body .attendance-cash-closing-item {
    border-color: var(--theme-surface-border);
    background:
        radial-gradient(circle at top right, rgba(93, 183, 255, 0.12), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
        var(--theme-input-readonly-bg);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    color: var(--text-strong);
}

html[data-theme] body input[type="file"]::file-selector-button {
    background: var(--theme-file-button-bg);
    color: var(--theme-file-button-color);
}

html[data-theme] body .money-input,
html[data-theme] body .variant-currency-input {
    background: var(--theme-input-bg);
    border-color: var(--theme-input-border);
}

html[data-theme] body .money-input span,
html[data-theme] body .variant-currency-input span {
    color: var(--theme-money-span);
}

html[data-theme] body .ghost-button {
    background: var(--theme-ghost-bg);
    color: var(--theme-ghost-color);
    border-color: var(--theme-ghost-border);
    box-shadow: var(--theme-ghost-shadow);
}

html[data-theme] body .ghost-button:hover {
    border-color: var(--theme-ghost-hover-border);
    box-shadow: var(--theme-ghost-hover-shadow);
}

html[data-theme] body .ops-remove-button {
    background: var(--theme-danger-soft-bg);
    color: var(--theme-danger-soft-color);
    border-color: var(--theme-danger-soft-border);
    box-shadow: none;
}

html[data-theme] body .ops-remove-button:hover {
    background: var(--theme-danger-soft-bg);
    color: var(--theme-danger-soft-color);
    border-color: var(--theme-danger-soft-border);
    box-shadow: 0 12px 22px rgba(127, 29, 29, 0.12);
}

html[data-theme] body .ghost-button:disabled {
    background: var(--theme-ghost-disabled-bg);
    color: var(--theme-ghost-disabled-color);
    border-color: var(--theme-ghost-disabled-border);
}

html[data-theme] body button:disabled:not(.ghost-button),
html[data-theme] body .btn-link:disabled,
html[data-theme] body a.btn-link[aria-disabled="true"] {
    opacity: 1;
    background: var(--theme-button-disabled-bg);
    color: var(--theme-button-disabled-color);
    border-color: var(--theme-button-disabled-border);
    box-shadow: none;
    filter: none;
}

html[data-theme] body .sidebar .ghost-button,
html[data-theme] body .mobile-nav .ghost-button {
    background: var(--theme-ghost-bg);
    color: var(--theme-ghost-color);
    border-color: var(--theme-ghost-border);
}

html[data-theme] body .stock-filter-bar,
html[data-theme] body .products-filter-bar,
html[data-theme] body #soFilterForm {
    background: var(--theme-filter-bg);
    border-color: var(--theme-filter-border);
}

html[data-theme] body .mobile-nav {
    background: var(--theme-mobile-nav-bg);
    border-bottom-color: var(--theme-mobile-nav-border);
}

html[data-theme] body .mobile-chip {
    background: var(--theme-mobile-chip-bg);
    color: var(--theme-mobile-chip-color);
    border-color: var(--theme-mobile-chip-border);
}

html[data-theme] body .mobile-dock {
    background: var(--theme-mobile-dock-bg);
    border-color: var(--theme-mobile-dock-border);
}

html[data-theme] body .mobile-dock a,
html[data-theme] body .mobile-dock button {
    color: var(--theme-mobile-dock-link);
}

html[data-theme] body .mobile-dock a.active,
html[data-theme] body .mobile-dock button.active {
    background: var(--theme-mobile-dock-active-bg);
    color: var(--theme-mobile-dock-active-color);
}

body [data-pwa-install-trigger][hidden] {
    display: none !important;
}

body .mobile-install-button,
body .pwa-install-button {
    position: relative;
    overflow: hidden;
    border-color: rgba(93, 183, 255, 0.24);
    background: linear-gradient(135deg, rgba(93, 183, 255, 0.18), rgba(52, 120, 255, 0.24));
    color: var(--text-strong);
}

body .mobile-install-button::after,
body .pwa-install-button::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 55%);
    pointer-events: none;
}

body .mobile-install-button:hover,
body .pwa-install-button:hover {
    border-color: rgba(93, 183, 255, 0.34);
    transform: translateY(-1px);
}

body.browser-mode .mobile-install-button,
body.browser-mode .pwa-install-button {
    box-shadow: 0 16px 32px rgba(30, 87, 184, 0.16);
}

body.standalone-mode .mobile-install-button,
body.standalone-mode .pwa-install-button {
    display: none !important;
}

body.browser-mode[data-app-surface="desktop"] .mobile-install-button {
    display: none !important;
}

body.browser-mode[data-app-surface="mobile"] .pwa-install-button,
body.browser-mode[data-app-surface="tablet"] .pwa-install-button {
    display: none !important;
}

body.browser-mode[data-app-surface="mobile"] .page-hero,
body.browser-mode[data-app-surface="tablet"] .page-hero {
    margin-top: 6px;
}

body.standalone-mode .page-hero,
body.standalone-mode .panel,
body.standalone-mode .card,
body.standalone-mode .form-box,
body.standalone-mode .table-box,
body.standalone-mode .box {
    box-shadow: 0 16px 36px rgba(7, 17, 31, 0.14);
}

body.standalone-mode .mobile-nav {
    padding-top: calc(env(safe-area-inset-top, 0px) + 8px);
}

body.standalone-mode .main {
    padding-top: 18px;
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 116px);
}

body.standalone-mode .mobile-dock {
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
}

body.standalone-mode .notification-center-root {
    top: calc(env(safe-area-inset-top, 0px) + 18px);
}

body.standalone-mode .chat-widget-root {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 92px);
}

body.standalone-mode .attendance-camera-shortcut-root {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 92px);
}

@media (max-width: 1080px) {
    body .mobile-install-button {
        min-height: 42px;
        padding-inline: 14px;
        font-size: 0.88rem;
        border-radius: 16px;
        white-space: nowrap;
    }
}

@media (hover: none), (pointer: coarse) {
    body .chat-widget-root:hover .chat-widget-launcher {
        width: 58px;
        min-width: 58px;
        padding-inline: 16px;
        justify-content: center;
        gap: 0;
        border-radius: 20px;
    }

    body .chat-widget-root:hover .chat-widget-launcher-label {
        max-width: 0;
        opacity: 0;
        margin-left: 0;
        transform: translateX(8px);
    }

    body .attendance-camera-shortcut-root:hover .attendance-camera-shortcut-button {
        width: 58px;
        min-width: 58px;
        padding-inline: 16px;
        justify-content: center;
        gap: 0;
        border-radius: 20px;
    }

    body .attendance-camera-shortcut-root:hover .attendance-camera-shortcut-label {
        max-width: 0;
        opacity: 0;
        margin-left: 0;
        transform: translateX(-4px);
    }
}

@media (max-width: 767px) {
    body .mobile-install-button {
        min-height: 38px;
        padding-inline: 12px;
        font-size: 0.82rem;
    }

    body .pwa-install-button {
        width: 100%;
        justify-content: center;
    }

    body.browser-mode[data-install-context="ios-browser"] .mobile-install-button {
        max-width: 152px;
    }
}

html[data-theme] body .mobile-command-deck {
    background: var(--theme-surface-bg);
    border-color: var(--theme-surface-border);
    box-shadow: var(--theme-surface-shadow);
}

html[data-theme] body .mobile-command-kicker {
    color: var(--theme-card-kicker);
}

html[data-theme] body .mobile-command-deck-head strong {
    color: var(--theme-heading);
}

html[data-theme] body .mobile-command-badge {
    background: var(--theme-badge-neutral-bg);
    border-color: var(--theme-badge-neutral-border);
    color: var(--theme-badge-neutral-color);
}

html[data-theme] body[data-device-mode="mobile"] .table-box[data-scrollable-table="1"]::after,
html[data-theme] body[data-device-mode="tablet"] .table-box[data-scrollable-table="1"]::after {
    background: var(--theme-surface-bg);
    border-color: var(--theme-surface-border);
    color: var(--theme-helper-color);
}

html[data-theme] body[data-device-mode="mobile"] .top-bar,
html[data-theme] body[data-device-mode="tablet"] .top-bar {
    background: var(--theme-filter-bg);
    border-color: var(--theme-filter-border);
}

html[data-theme] body .meta-card span {
    color: var(--theme-table-header-color);
}

html[data-theme] body .meta-card strong {
    color: var(--text-strong);
}

html[data-theme] body .wms-command-card,
html[data-theme] body .wms-kpi-card,
html[data-theme] body .wms-step-card,
html[data-theme] body .wms-panel-note {
    background: var(--theme-surface-bg);
    border-color: var(--theme-surface-border);
    box-shadow: var(--theme-surface-shadow);
    color: var(--text-strong);
}

html[data-theme] body .stock-overview-note,
html[data-theme] body .stock-filter-shell {
    background: var(--theme-surface-bg);
    border-color: var(--theme-surface-border);
    box-shadow: var(--theme-surface-shadow);
    color: var(--text-strong);
}

html[data-theme] body .stock-overview-note strong,
html[data-theme] body .stock-filter-head h2 {
    color: var(--theme-heading);
}

html[data-theme] body .stock-quick-action {
    background: var(--theme-surface-bg);
    border-color: var(--theme-surface-border);
    box-shadow: var(--theme-surface-shadow);
    color: var(--text-strong);
}

html[data-theme] body .stock-mini-icon,
html[data-theme] body .stock-command-icon {
    background: rgba(93, 183, 255, 0.12);
    border-color: rgba(93, 183, 255, 0.14);
}

html[data-theme] body .stock-overview-note li,
html[data-theme] body .stock-filter-head p,
html[data-theme] body .stock-filter-footnote {
    color: var(--theme-helper-color);
}

html[data-theme] body .stock-overview-hero {
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-md);
}

html[data-theme="light"] body .stock-overview-hero {
    background:
        radial-gradient(circle at top right, rgba(28, 108, 226, 0.12), rgba(28, 108, 226, 0) 38%),
        linear-gradient(145deg, rgba(246, 250, 255, 0.98), rgba(232, 241, 252, 0.98));
    color: var(--text-strong);
    border-color: rgba(33, 137, 255, 0.12);
}

html[data-theme="light"] body .stock-overview-kicker,
html[data-theme="light"] body .stock-overview-tags .status-pill,
html[data-theme="light"] body .stock-filter-compact-meta .status-pill {
    background: rgba(28, 108, 226, 0.08);
    border-color: rgba(28, 108, 226, 0.1);
    color: #16407b;
}

html[data-theme="light"] body .stock-overview-copy p,
html[data-theme="light"] body .stock-overview-stat span {
    color: #5a728d;
}

html[data-theme="light"] body .stock-overview-stat {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(33, 137, 255, 0.1);
}

html[data-theme="light"] body .stock-overview-stat strong {
    color: var(--text-strong);
}

html[data-theme="light"] body .stock-quick-action {
    background: rgba(255, 255, 255, 0.86);
    border-color: rgba(33, 137, 255, 0.12);
}

html[data-theme="dark"] body .stock-quick-action {
    background: rgba(15, 28, 49, 0.82);
    border-color: rgba(93, 183, 255, 0.12);
}

html[data-theme="dark"] body .stock-mini-icon,
html[data-theme="dark"] body .stock-command-icon {
    background: rgba(93, 183, 255, 0.14);
    border-color: rgba(93, 183, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html[data-theme] body .wms-command-card::before,
html[data-theme] body .wms-kpi-card::before,
html[data-theme] body .wms-step-card::before,
html[data-theme] body .wms-panel-note::before {
    background: linear-gradient(90deg, var(--accent), var(--theme-surface-topline));
}

html[data-theme] body .wms-command-card span,
html[data-theme] body .wms-step-card span,
html[data-theme] body .wms-kpi-card span {
    color: var(--theme-table-header-color);
}

html[data-theme] body .wms-command-card strong,
html[data-theme] body .wms-step-card strong,
html[data-theme] body .wms-kpi-card strong,
html[data-theme] body .wms-panel-note strong {
    color: var(--theme-heading);
}

html[data-theme] body .wms-command-card p,
html[data-theme] body .wms-step-card p,
html[data-theme] body .wms-panel-note p,
html[data-theme] body .wms-kpi-card small,
html[data-theme] body .wms-panel-note small,
html[data-theme] body .wms-panel-note li {
    color: var(--theme-helper-color);
}

html[data-theme] body .workspace-summary-card,
html[data-theme] body .workspace-app-tile {
    background: var(--theme-surface-bg);
    border-color: var(--theme-surface-border);
    box-shadow: var(--theme-surface-shadow);
    color: var(--text-strong);
}

html[data-theme] body .workspace-summary-card::before {
    background: linear-gradient(90deg, var(--accent), var(--theme-surface-topline));
}

html[data-theme] body .workspace-app-tile::after {
    background: radial-gradient(circle, rgba(93, 183, 255, 0.14) 0%, rgba(93, 183, 255, 0) 72%);
}

html[data-theme] body .workspace-summary-card span,
html[data-theme] body .workspace-app-badge {
    color: var(--theme-table-header-color);
}

html[data-theme] body .workspace-summary-card strong,
html[data-theme] body .workspace-app-copy strong {
    color: var(--theme-heading);
}

html[data-theme] body .workspace-summary-card small,
html[data-theme] body .workspace-app-copy small {
    color: var(--theme-helper-color);
}

html[data-theme] body .workspace-summary-card,
html[data-theme] body .workspace-app-tile,
html[data-theme] body .wms-command-card,
html[data-theme] body .wms-kpi-card,
html[data-theme] body .wms-step-card,
html[data-theme] body .wms-panel-note {
    border-radius: 22px;
}

html[data-theme] body .workspace-app-tile {
    justify-items: start;
    text-align: left;
    min-height: 208px;
    padding: 22px 20px 18px;
    gap: 14px;
}

html[data-theme] body .workspace-app-copy {
    justify-items: start;
    text-align: left;
}

html[data-theme] body .workspace-app-copy small {
    max-width: none;
}

html[data-theme] body .workspace-app-badge {
    justify-self: start;
}

html[data-theme] body .workspace-app-icon {
    width: 68px;
    height: 68px;
    border-radius: 20px;
}

html[data-theme] body .workspace-switch {
    background: var(--theme-surface-bg);
    border-color: var(--theme-surface-border);
    box-shadow: var(--theme-surface-shadow);
}

html[data-theme] body .workspace-switch a {
    color: var(--theme-helper-color);
}

html[data-theme] body .workspace-switch a:hover {
    color: var(--theme-heading);
    background: rgba(255, 255, 255, 0.06);
}

html[data-theme] body .product-studio-shell,
html[data-theme] body .stock-context-menu {
    background: var(--theme-surface-bg);
    border-color: var(--theme-surface-border);
    box-shadow: var(--theme-surface-shadow);
}

html[data-theme] body .meeting-profile-card,
html[data-theme] body .meeting-side-card,
html[data-theme] body .meeting-room-card,
html[data-theme] body .meeting-stage-box,
html[data-theme] body .meeting-session-hero {
    background: var(--theme-surface-bg);
    border-color: var(--theme-surface-border);
    box-shadow: var(--theme-surface-shadow);
    color: var(--text-strong);
}

html[data-theme] body .meeting-profile-topline strong,
html[data-theme] body .meeting-side-card .section-title h2,
html[data-theme] body .meeting-side-card .section-title h3 {
    color: var(--theme-heading);
}

html[data-theme] body .meeting-profile-card p,
html[data-theme] body .meeting-profile-card small,
html[data-theme] body .meeting-side-card p,
html[data-theme] body .meeting-benefit-list {
    color: var(--theme-helper-color);
}

html[data-theme] body .meeting-profile-card:hover,
html[data-theme] body .meeting-profile-card.is-selected {
    border-color: rgba(93, 183, 255, 0.24);
    box-shadow: 0 20px 36px rgba(1, 8, 18, 0.18);
}

html[data-theme] body .stock-context-menu button {
    color: var(--theme-heading);
}

html[data-theme] body .stock-context-menu button:hover {
    background: rgba(93, 183, 255, 0.12);
    color: var(--theme-heading);
}

html[data-theme] body .workspace-app-badge {
    background: var(--theme-badge-neutral-bg);
    border: 1px solid var(--theme-badge-neutral-border);
}

html[data-theme] body .workspace-app-tile:hover {
    border-color: rgba(93, 183, 255, 0.22);
    box-shadow: 0 26px 44px rgba(1, 8, 18, 0.22);
}

html[data-theme] body .badge {
    background: var(--theme-badge-neutral-bg);
    color: var(--theme-badge-neutral-color);
    border: 1px solid var(--theme-badge-neutral-border);
}

html[data-theme] body th .sort-link:hover,
html[data-theme] body th .sort-link.active {
    color: var(--theme-sidebar-link-active-color);
}

html[data-theme] body .empty-state {
    background: var(--theme-empty-bg);
    border-color: var(--theme-empty-border);
    color: var(--theme-empty-color);
}

html[data-theme] body .notification-center-empty,
html[data-theme] body .empty-state {
    line-height: 1.7;
}

html[data-theme] body .top-bar {
    padding: 16px;
    border-radius: 22px;
    border: 1px solid var(--theme-filter-border);
    background: var(--theme-filter-bg);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html[data-theme] body .top-bar > * {
    min-width: 0;
}

html[data-theme] body .panel-summary-state,
html[data-theme] body .schedule-panel-summary-state {
    background: var(--theme-badge-neutral-bg);
    border-color: var(--theme-badge-neutral-border);
    color: var(--theme-heading);
}

html[data-theme] body .panel-disclosure[open] .panel-summary-state,
html[data-theme] body .schedule-panel-disclosure[open] .schedule-panel-summary-state {
    background: var(--theme-status-pill-bg);
    border-color: var(--theme-status-pill-border);
    color: var(--theme-status-pill-color);
}

html[data-theme] body .notification-entry-topline time,
html[data-theme] body .workspace-summary-card strong,
html[data-theme] body .meta-card strong,
html[data-theme] body .wms-kpi-card strong,
html[data-theme] body .card h2,
html[data-theme] body .card-mini h3 {
    font-variant-numeric: tabular-nums;
}

html[data-theme] body .picker-modal-panel {
    background: var(--theme-picker-panel-bg);
    box-shadow: var(--theme-picker-shadow);
}

html[data-theme] body .ops-stock-card {
    background: var(--theme-stock-card-bg);
}

html[data-theme] body .ops-config-card,
html[data-theme] body .ops-entry-box {
    background: var(--theme-surface-bg);
    border-color: var(--theme-surface-border);
    box-shadow: var(--theme-surface-shadow);
}

html[data-theme] body .floating-toast {
    background: var(--theme-toast-bg);
    color: var(--theme-toast-color);
    border-color: var(--theme-toast-border);
}

html[data-theme] body .sidebar-counter {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #f7fbff;
}

html[data-theme] body .chat-widget-panel,
html[data-theme] body .chat-widget-home,
html[data-theme] body .chat-widget-thread-view,
html[data-theme] body .chat-widget-composer,
html[data-theme] body .chat-widget-attachment-preview {
    background: var(--theme-surface-bg);
    border-color: var(--theme-surface-border);
    color: var(--text-strong);
}

html[data-theme] body .chat-widget-search input,
html[data-theme] body .chat-widget-composer-row textarea {
    background: var(--theme-input-bg);
    border-color: var(--theme-input-border);
    color: var(--theme-input-color);
}

html[data-theme] body .chat-widget-tab,
html[data-theme] body .chat-widget-ghost,
html[data-theme] body .chat-widget-back,
html[data-theme] body .chat-widget-attach {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-strong);
}

html[data-theme] body .chat-widget-thread-focus span:not(.chat-avatar),
html[data-theme] body .chat-widget-attachment-preview span {
    color: var(--theme-helper-color);
}

html[data-theme] body .chat-sidebar-panel,
html[data-theme] body .chat-main-panel,
html[data-theme] body .chat-composer {
    background: var(--theme-surface-bg);
    border-color: var(--theme-surface-border);
}

html[data-theme] body .chat-thread-card,
html[data-theme] body .chat-contact-card,
html[data-theme] body .chat-list-empty,
html[data-theme] body .chat-message-row.other .chat-message-bubble {
    background: var(--theme-surface-bg);
    border-color: var(--theme-surface-border);
    color: var(--text-strong);
}

html[data-theme] body .chat-thread-card.active {
    background: var(--theme-sidebar-link-bg);
    border-color: var(--theme-sidebar-link-border);
}

html[data-theme] body .chat-message-board {
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.04), transparent 18%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
}

html[data-theme] body .chat-message-row.mine .chat-message-bubble {
    background: linear-gradient(135deg, var(--accent-strong), #123d74);
    color: #f7fbff;
}

html[data-theme] body .chat-call-card,
html[data-theme] body .chat-call-stage {
    border-color: var(--theme-surface-border);
}

html[data-theme] body .chat-call-card {
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 18%),
        linear-gradient(160deg, rgba(10, 18, 30, 0.94), rgba(14, 24, 39, 0.96));
}

html[data-theme] body .chat-call-chip {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--theme-surface-border);
    color: var(--text-strong);
}

html[data-theme] body .chat-call-status,
html[data-theme] body .chat-call-hint {
    color: var(--theme-helper-color);
}

html[data-theme] body .chat-thread-topline strong,
html[data-theme] body .chat-self-card strong,
html[data-theme] body .chat-thread-focus strong,
html[data-theme] body .chat-empty-state h2,
html[data-theme] body .chat-list-caption strong {
    color: var(--text-strong);
}

html[data-theme] body .chat-thread-meta,
html[data-theme] body .chat-thread-body p,
html[data-theme] body .chat-self-card span:not(.chat-avatar),
html[data-theme] body .chat-thread-focus span:not(.chat-avatar),
html[data-theme] body .chat-empty-state p,
html[data-theme] body .chat-list-empty {
    color: var(--theme-helper-color);
}

html[data-theme="dark"] body .chat-sidebar-panel {
    background: linear-gradient(180deg, rgba(9, 16, 27, 0.98), rgba(5, 11, 20, 0.97));
    border-right-color: rgba(148, 163, 184, 0.12);
}

html[data-theme="dark"] body .chat-main-panel {
    background:
        radial-gradient(circle at top right, rgba(57, 138, 255, 0.12), transparent 24%),
        linear-gradient(180deg, rgba(9, 16, 27, 0.98), rgba(5, 10, 18, 0.98));
}

html[data-theme="dark"] body .chat-main-head,
html[data-theme="dark"] body .chat-composer,
html[data-theme="dark"] body .chat-participant-strip {
    background: linear-gradient(180deg, rgba(10, 17, 27, 0.96), rgba(6, 12, 20, 0.94));
    border-color: rgba(148, 163, 184, 0.12);
}

html[data-theme="dark"] body .chat-thread-card,
html[data-theme="dark"] body .chat-contact-card,
html[data-theme="dark"] body .chat-list-empty,
html[data-theme="dark"] body .chat-message-row.other .chat-message-bubble {
    background: linear-gradient(180deg, rgba(16, 24, 38, 0.96), rgba(10, 16, 27, 0.94));
    border-color: rgba(148, 163, 184, 0.14);
    color: #eef6ff;
}

html[data-theme="dark"] body .chat-thread-card.active {
    background: linear-gradient(135deg, rgba(22, 88, 154, 0.34), rgba(9, 60, 118, 0.22));
    border-color: rgba(93, 183, 255, 0.26);
    box-shadow: 0 20px 32px rgba(1, 8, 18, 0.28);
}

html[data-theme="dark"] body .chat-message-board {
    background:
        radial-gradient(circle at top left, rgba(93, 183, 255, 0.1), transparent 18%),
        radial-gradient(circle at center right, rgba(0, 92, 75, 0.14), transparent 22%),
        linear-gradient(180deg, rgba(8, 14, 24, 0.94), rgba(5, 10, 17, 0.98));
    scrollbar-color: rgba(184, 197, 214, 0.28) transparent;
}

html[data-theme="dark"] body .chat-message-board::-webkit-scrollbar-thumb {
    background: rgba(184, 197, 214, 0.18);
    background-clip: padding-box;
}

html[data-theme="dark"] body .chat-message-board:hover::-webkit-scrollbar-thumb {
    background: rgba(184, 197, 214, 0.32);
    background-clip: padding-box;
}

html[data-theme="dark"] body .chat-message-row.other .chat-message-bubble {
    border: 1px solid rgba(148, 163, 184, 0.1);
}

html[data-theme="dark"] body .chat-message-row.mine .chat-message-bubble {
    background: linear-gradient(135deg, #005c4b, #0a7b68);
}

html[data-theme="dark"] body .chat-day-separator {
    color: rgba(221, 233, 247, 0.54);
}

html[data-theme="dark"] body .chat-day-separator::before,
html[data-theme="dark"] body .chat-day-separator::after {
    background: linear-gradient(90deg, rgba(124, 156, 193, 0), rgba(124, 156, 193, 0.22), rgba(124, 156, 193, 0));
}

html[data-theme="dark"] body .chat-sync-badge {
    border-color: rgba(94, 234, 145, 0.18);
    background: rgba(18, 80, 46, 0.42);
    color: #c9f8d7;
}

html[data-theme="dark"] body .chat-sync-badge.is-syncing {
    border-color: rgba(93, 183, 255, 0.2);
    background: rgba(22, 88, 154, 0.28);
    color: #d7ecff;
}

html[data-theme="dark"] body .chat-sync-badge.is-stale {
    border-color: rgba(245, 158, 11, 0.24);
    background: rgba(120, 53, 15, 0.42);
    color: #ffd89c;
}

html[data-theme="dark"] body .chat-focus-menu-panel {
    background: linear-gradient(180deg, rgba(12, 20, 31, 0.98), rgba(7, 13, 21, 0.97));
    border-color: rgba(148, 163, 184, 0.16);
    box-shadow: 0 26px 42px rgba(1, 8, 18, 0.44);
}

html[data-theme="dark"] body .chat-focus-menu-item {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(148, 163, 184, 0.1);
    color: #eef6ff;
}

html[data-theme="dark"] body .chat-focus-menu-item:hover {
    background: rgba(93, 183, 255, 0.12);
    border-color: rgba(93, 183, 255, 0.22);
}

html[data-theme="dark"] body .chat-message-action {
    border-color: rgba(148, 163, 184, 0.14);
    background: rgba(255, 255, 255, 0.05);
    color: #d7e5f5;
}

html[data-theme="dark"] body .chat-message-action:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(148, 163, 184, 0.24);
}

html[data-theme="dark"] body .chat-reply-quote,
html[data-theme="dark"] body .chat-reply-preview,
html[data-theme="dark"] body .chat-typing-indicator {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(148, 163, 184, 0.14);
    color: #d7e5f5;
}

html[data-theme="dark"] body .chat-search-panel,
html[data-theme="dark"] body .chat-search-result {
    background: linear-gradient(180deg, rgba(12, 20, 31, 0.98), rgba(7, 13, 21, 0.97));
    border-color: rgba(148, 163, 184, 0.14);
    color: #eef6ff;
}

html[data-theme="dark"] body .chat-search-result:hover {
    border-color: rgba(93, 183, 255, 0.24);
    box-shadow: 0 16px 26px rgba(1, 8, 18, 0.3);
}

html[data-theme="dark"] body .chat-search-result-body span,
html[data-theme="dark"] body .chat-reply-preview-body span,
html[data-theme="dark"] body .chat-search-panel-head span,
html[data-theme="dark"] body .chat-typing-indicator,
html[data-theme="dark"] body .chat-search-result time,
html[data-theme="dark"] body .chat-reply-quote-copy span {
    color: rgba(221, 233, 247, 0.72);
}

html[data-theme] body .card.warning,
html[data-theme] body .card-mini.warning {
    background: var(--theme-warning-card-bg);
}

html[data-theme] body .card.danger {
    background: var(--theme-danger-card-bg);
}

html[data-theme="dark"] body .schedule-checkline {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(148, 163, 184, 0.18);
    color: var(--text-strong);
}

html[data-theme="dark"] body .schedule-checkline span {
    color: var(--text-strong);
}

html[data-theme="dark"] body .schedule-board-wrap {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] body .schedule-board th,
html[data-theme="dark"] body .schedule-board td {
    border-right-color: rgba(148, 163, 184, 0.16);
    border-bottom-color: rgba(148, 163, 184, 0.16);
}

html[data-theme="dark"] body .schedule-day-header {
    color: var(--text-strong) !important;
    background: linear-gradient(180deg, rgba(18, 31, 51, 0.98), rgba(13, 24, 40, 0.96)) !important;
}

html[data-theme="dark"] body .schedule-row-weekend .schedule-day-header {
    background: linear-gradient(180deg, rgba(16, 41, 68, 0.98), rgba(10, 31, 52, 0.96)) !important;
}

html[data-theme="dark"] body .schedule-board-cell,
html[data-theme="dark"] body .schedule-note-cell {
    background: rgba(8, 16, 29, 0.84);
    color: var(--text-strong);
}

html[data-theme="dark"] body .schedule-row-weekend .schedule-board-cell,
html[data-theme="dark"] body .schedule-row-weekend .schedule-note-cell {
    background: rgba(11, 21, 37, 0.92);
}

html[data-theme="dark"] body .schedule-empty {
    color: var(--theme-helper-color);
}

html[data-theme="dark"] body .schedule-note-text {
    color: var(--text-strong);
}

html[data-theme] body .card.success {
    background: var(--theme-success-card-bg);
}

html[data-theme] body .variant-builder {
    background: var(--theme-variant-bg);
    border-color: var(--theme-input-border);
}

html[data-theme] body .variant-builder table {
    background: var(--theme-variant-table-bg);
}

html[data-theme] body .variant-builder th,
html[data-theme] body .variant-builder td {
    border-right-color: var(--theme-table-border);
}

html[data-theme] body .variant-builder th {
    background: var(--theme-variant-head-bg);
    color: var(--theme-variant-head-color);
}

html[data-theme] body .variant-builder td {
    background: var(--theme-variant-row-bg);
}

html[data-theme] body .variant-builder tbody tr:nth-child(even) td {
    background: var(--theme-variant-row-alt);
}

html[data-theme] body .variant-builder td:first-child {
    background: var(--theme-variant-row-side);
}

html[data-theme] body .variant-builder input[type="text"],
html[data-theme] body .variant-builder input[type="number"] {
    background: var(--theme-input-bg);
    border-color: var(--theme-input-border);
    color: var(--theme-input-color);
}

html[data-theme] body .variant-builder input[type="text"]::placeholder,
html[data-theme] body .variant-builder input[type="number"]::placeholder {
    color: var(--theme-input-placeholder);
    opacity: 0.58;
}

html[data-theme] body .variant-price-summary,
html[data-theme] body .variant-stock-hint {
    color: var(--theme-subtitle);
}

html[data-theme] body .variant-remove-button {
    background: var(--theme-ghost-bg);
    color: var(--theme-ghost-color);
    border-color: var(--theme-ghost-border);
}

body .schedule-filter-bar {
    align-items: stretch;
}

body .schedule-legend-box {
    margin-bottom: 20px;
}

body .schedule-legend-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

body .schedule-control-grid {
    align-items: stretch;
}

body .schedule-master-new-form {
    margin-bottom: 18px;
}

body .panel-disclosure,
body .schedule-panel-disclosure {
    overflow: hidden;
}

body .panel-disclosure > summary,
body .schedule-panel-disclosure > summary {
    list-style: none;
}

body .panel-disclosure > summary::-webkit-details-marker,
body .schedule-panel-disclosure > summary::-webkit-details-marker {
    display: none;
}

body .panel-summary,
body .schedule-panel-summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
}

body .panel-summary .section-title {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
}

body .panel-summary .section-title > div {
    min-width: 0;
}

body .panel-summary .section-title h2,
body .panel-summary .section-title h3 {
    margin: 0;
    color: var(--text-strong);
}

body .panel-summary .section-title p {
    display: none;
}

body .panel-summary-copy,
body .schedule-panel-summary-copy {
    min-width: 0;
}

body .panel-summary h2,
body .schedule-panel-summary h2 {
    margin: 0;
    color: var(--text-strong);
}

body .panel-summary p,
body .schedule-panel-summary p {
    margin: 8px 0 0;
    color: var(--text-soft);
    line-height: 1.55;
}

body .panel-summary-meta,
body .schedule-panel-summary-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

body .panel-summary-state,
body .schedule-panel-summary-state {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(93, 183, 255, 0.1);
    border: 1px solid rgba(93, 183, 255, 0.14);
    color: var(--text-strong);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

body .panel-summary-state::after,
body .schedule-panel-summary-state::after {
    content: "";
    width: 9px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    transition: transform 0.18s ease;
}

body .panel-disclosure[open] .panel-summary-state::after,
body .schedule-panel-disclosure[open] .schedule-panel-summary-state::after {
    transform: rotate(-135deg) translateY(-1px);
}

body .panel-disclosure[open] .panel-summary-state,
body .schedule-panel-disclosure[open] .schedule-panel-summary-state {
    background: rgba(255, 191, 71, 0.12);
    border-color: rgba(255, 191, 71, 0.16);
}

body .panel-content,
body .schedule-panel-content {
    margin-top: 18px;
}

body .schedule-shift-list,
body .schedule-profile-list {
    display: grid;
    gap: 16px;
}

body .schedule-shift-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

body .schedule-shift-card,
body .schedule-profile-card {
    margin-bottom: 0;
}

body .schedule-shift-card-top,
body .schedule-profile-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

body .schedule-profile-head strong {
    display: block;
    font-size: 1rem;
    color: var(--text-strong);
}

body .schedule-profile-head p {
    margin: 6px 0 0;
    color: var(--text-soft);
    font-size: 0.9rem;
}

body .schedule-profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

body .schedule-checkbox-field {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

body .schedule-checkline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    margin: 0;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(10, 24, 42, 0.12);
    background: rgba(255, 255, 255, 0.86);
    color: var(--text-strong);
}

body .schedule-checkline input {
    width: auto;
    margin: 0;
    accent-color: #0f5ec7;
}

body .schedule-checkline span {
    font-size: 0.92rem;
    font-weight: 500;
}

body .schedule-multi-select {
    min-width: 0;
    border: 1px solid rgba(10, 24, 42, 0.12);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.86);
}

body .schedule-multi-select > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 46px;
    padding: 10px 14px;
    cursor: pointer;
    list-style: none;
}

body .schedule-multi-select > summary::-webkit-details-marker {
    display: none;
}

body .schedule-multi-select > summary span {
    min-width: 0;
    overflow: hidden;
    color: var(--text-strong);
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body .schedule-multi-select > summary small {
    flex: 0 0 auto;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

body .schedule-multi-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 8px;
    max-height: 260px;
    overflow-y: auto;
    padding: 10px;
    border-top: 1px solid rgba(10, 24, 42, 0.08);
}

body .schedule-multi-options-slots {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

body .schedule-master-new-form input[type="color"],
body .schedule-shift-card input[type="color"] {
    min-height: 48px;
    padding: 6px;
    cursor: pointer;
}

body .schedule-board-shell {
    position: relative;
    overflow: hidden;
    padding: 22px;
    background:
        radial-gradient(circle at top right, rgba(93, 183, 255, 0.18), transparent 26%),
        radial-gradient(circle at bottom left, rgba(255, 191, 71, 0.1), transparent 22%),
        linear-gradient(180deg, rgba(8, 17, 31, 0.94), rgba(11, 21, 37, 0.96));
    border: 1px solid rgba(93, 183, 255, 0.14);
    box-shadow:
        0 26px 44px rgba(1, 8, 18, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body .schedule-board-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.35;
    pointer-events: none;
}

body .schedule-board-shell > * {
    position: relative;
    z-index: 1;
}

body .schedule-board-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding: 18px 20px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(18, 36, 63, 0.92), rgba(11, 24, 44, 0.8));
    border: 1px solid rgba(93, 183, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body .schedule-board-hero h3 {
    margin: 10px 0 8px;
    color: #f7fbff;
    font-size: 1.3rem;
}

body .schedule-board-hero p {
    margin: 0;
    max-width: 760px;
    color: rgba(219, 231, 245, 0.8);
    line-height: 1.6;
}

body .schedule-board-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

body .schedule-board-hero-actions {
    display: grid;
    gap: 12px;
    justify-items: end;
}

body .schedule-density-toggle {
    display: inline-grid;
    grid-auto-flow: column;
    gap: 8px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(7, 17, 31, 0.54);
    border: 1px solid rgba(93, 183, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body .schedule-density-button {
    min-height: 36px;
    padding: 8px 14px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(219, 231, 245, 0.76);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

body .schedule-density-button:hover {
    color: #f7fbff;
}

body .schedule-density-button.is-active {
    background: linear-gradient(135deg, rgba(13, 35, 64, 0.94), rgba(185, 148, 56, 0.92));
    color: #f7fbff;
    box-shadow:
        0 10px 18px rgba(1, 8, 18, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

body .schedule-board-hero-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(93, 183, 255, 0.12);
    border: 1px solid rgba(93, 183, 255, 0.16);
    color: #eff7ff;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

body .schedule-board-lane-wrap {
    width: 100%;
    max-width: 100%;
    max-height: min(76vh, 860px);
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 12px 14px 14px;
    border-radius: 28px;
    background: rgba(5, 13, 24, 0.42);
    border: 1px solid rgba(93, 183, 255, 0.1);
    scrollbar-gutter: stable both-edges;
}

body .schedule-board-lane {
    --schedule-day-column-width: 132px;
    display: grid;
    gap: 18px;
    min-width: max-content;
}

body .schedule-board-lane-head,
body .schedule-lane-row {
    display: grid;
    grid-template-columns: 232px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

body .schedule-board-lane-head {
    position: sticky;
    top: 0;
    z-index: 8;
}

body .schedule-board-lane-axis,
body .schedule-lane-member {
    position: sticky;
    left: 0;
    z-index: 6;
    min-width: 0;
}

body .schedule-board-lane-axis {
    min-height: 118px;
    padding: 18px;
    display: grid;
    align-content: start;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(19, 38, 67, 0.96), rgba(10, 22, 40, 0.92));
    border: 1px solid rgba(93, 183, 255, 0.14);
    box-shadow:
        0 18px 36px rgba(1, 8, 18, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body .schedule-board-lane-axis strong {
    display: block;
    color: #f7fbff;
    font-size: 1.08rem;
    line-height: 1.35;
}

body .schedule-board-lane-axis p {
    margin: 10px 0 0;
    color: rgba(219, 231, 245, 0.78);
    line-height: 1.55;
    font-size: 0.88rem;
}

body .schedule-board-lane-days,
body .schedule-lane-track {
    display: grid;
    grid-template-columns: repeat(var(--schedule-day-count), minmax(var(--schedule-day-column-width), var(--schedule-day-column-width)));
    gap: 12px;
    min-width: max-content;
}

body .schedule-board-lane-days {
    align-items: stretch;
}

body .schedule-lane-day-card {
    min-height: 118px;
    padding: 14px;
    display: grid;
    gap: 8px;
    align-content: start;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(12, 25, 44, 0.95), rgba(9, 20, 35, 0.9));
    border: 1px solid rgba(93, 183, 255, 0.12);
    box-shadow:
        0 14px 24px rgba(1, 8, 18, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body .schedule-lane-day-card-weekend {
    background: linear-gradient(180deg, rgba(15, 31, 55, 0.96), rgba(11, 23, 42, 0.92));
    border-color: rgba(107, 212, 255, 0.15);
}

body .schedule-lane-day-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

body .schedule-lane-day-short {
    color: rgba(149, 169, 191, 0.94);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

body .schedule-lane-day-card strong {
    color: #f7fbff;
    font-size: 1.14rem;
    line-height: 1.1;
}

body .schedule-lane-day-card span,
body .schedule-lane-day-card small {
    color: rgba(219, 231, 245, 0.72);
    line-height: 1.45;
}

body .schedule-lane-day-card small {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    font-size: 0.76rem;
}

body .schedule-board-lane-body {
    display: grid;
    gap: 18px;
}

body .schedule-lane-group {
    display: grid;
    gap: 12px;
}

body .schedule-lane-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 20px;
    background: rgba(9, 19, 34, 0.72);
    border: 1px solid rgba(93, 183, 255, 0.1);
}

body .schedule-lane-group-head strong {
    display: block;
    color: #f7fbff;
    font-size: 1rem;
    line-height: 1.25;
}

body .schedule-lane-group-rows {
    display: grid;
    gap: 12px;
}

body .schedule-lane-member {
    min-height: 96px;
    padding: 14px 16px;
    display: grid;
    gap: 8px;
    align-content: start;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(17, 36, 63, 0.95), rgba(10, 22, 40, 0.92));
    border: 1px solid rgba(93, 183, 255, 0.14);
    box-shadow:
        0 16px 30px rgba(1, 8, 18, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body .schedule-lane-member strong {
    color: #f7fbff;
    font-size: 1.04rem;
    line-height: 1.2;
}

body .schedule-lane-member p,
body .schedule-lane-member small {
    margin: 0;
    color: rgba(219, 231, 245, 0.74);
    line-height: 1.45;
}

body .schedule-lane-member p {
    font-size: 0.86rem;
}

body .schedule-lane-member small {
    font-size: 0.76rem;
}

body .schedule-lane-cell {
    min-height: 96px;
    padding: 12px;
    display: grid;
    gap: 8px;
    align-content: start;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(9, 19, 34, 0.92), rgba(7, 16, 29, 0.86));
    border: 1px solid rgba(93, 183, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body .schedule-lane-cell-weekend {
    background: linear-gradient(180deg, rgba(11, 24, 44, 0.94), rgba(8, 18, 33, 0.9));
}

body .schedule-lane-cell-auto {
    border-color: rgba(107, 212, 255, 0.18);
    box-shadow:
        inset 0 0 0 1px rgba(107, 212, 255, 0.08),
        0 10px 22px rgba(1, 8, 18, 0.12);
}

body .schedule-lane-cell-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

body .schedule-lane-cell-label {
    color: #f7fbff;
    font-size: 0.84rem;
    line-height: 1.35;
    font-weight: 700;
}

body .schedule-lane-cell-meta {
    color: rgba(219, 231, 245, 0.7);
    font-size: 0.74rem;
    line-height: 1.4;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    -webkit-line-clamp: 2;
}

body .schedule-board-lane-wrap[data-schedule-density="compact"] {
    padding: 10px 12px 12px;
}

body .schedule-board-lane-wrap[data-schedule-density="compact"] .schedule-board-lane {
    --schedule-day-column-width: 116px;
    gap: 14px;
}

body .schedule-board-lane-wrap[data-schedule-density="compact"] .schedule-board-lane-head,
body .schedule-board-lane-wrap[data-schedule-density="compact"] .schedule-lane-row {
    grid-template-columns: 208px minmax(0, 1fr);
    gap: 12px;
}

body .lookup-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

body .lookup-page-actions {
    align-items: center;
}

body .lookup-focus-inline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

body .product-lookup-shell,
body .product-lookup-results-shell {
    gap: 20px;
}

body .product-lookup-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(220px, 0.6fr);
    gap: 16px;
    align-items: end;
}

body .product-lookup-field {
    margin: 0;
}

body .product-lookup-field span {
    display: block;
    margin-bottom: 8px;
    color: var(--text-strong);
    font-size: 0.9rem;
    font-weight: 600;
}

body .product-lookup-hints {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

body .product-lookup-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 18px;
}

body .product-lookup-empty {
    min-height: 220px;
    display: grid;
    place-items: center;
}

body .product-lookup-card {
    padding: 22px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(9, 20, 35, 0.94), rgba(12, 26, 45, 0.92));
    border: 1px solid rgba(93, 183, 255, 0.14);
    box-shadow: 0 20px 42px rgba(4, 10, 20, 0.2);
    display: grid;
    gap: 18px;
}

body .product-lookup-card-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px;
    gap: 16px;
    align-items: start;
}

body .product-lookup-kicker {
    margin: 0 0 8px;
    color: rgba(219, 231, 245, 0.68);
    font-size: 0.74rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

body .product-lookup-card h3 {
    margin: 0;
    font-size: 1.16rem;
    color: #f7fbff;
    line-height: 1.35;
}

body .product-lookup-code-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

body .product-lookup-stock-overview {
    padding: 16px;
    border-radius: 20px;
    background: rgba(93, 183, 255, 0.09);
    border: 1px solid rgba(93, 183, 255, 0.14);
    display: grid;
    gap: 6px;
    justify-items: end;
    text-align: right;
}

body .product-lookup-stock-overview span,
body .product-lookup-price-card span {
    color: rgba(219, 231, 245, 0.7);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

body .product-lookup-stock-overview strong {
    font-size: 1.9rem;
    line-height: 1;
    color: #f7fbff;
}

body .product-lookup-stock-overview small {
    margin: 0;
    color: rgba(219, 231, 245, 0.78);
}

body .product-lookup-price-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

body .product-lookup-price-card {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.14);
    display: grid;
    gap: 8px;
}

body .product-lookup-price-card strong {
    color: #f7fbff;
    font-size: 1rem;
    line-height: 1.35;
}

body .product-lookup-price-card.is-best {
    background: linear-gradient(135deg, rgba(23, 131, 255, 0.22), rgba(9, 31, 58, 0.78));
    border-color: rgba(93, 183, 255, 0.24);
}

body .product-lookup-warehouse-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

body .product-lookup-warehouse-pill {
    min-width: 120px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.14);
    display: grid;
    gap: 4px;
}

body .product-lookup-warehouse-pill strong {
    color: #f7fbff;
    font-size: 0.84rem;
    line-height: 1.35;
}

body .product-lookup-warehouse-pill span {
    color: rgba(219, 231, 245, 0.78);
    font-size: 1rem;
    font-weight: 700;
}

body .product-lookup-warehouse-pill.is-focus {
    background: rgba(93, 183, 255, 0.12);
    border-color: rgba(93, 183, 255, 0.22);
}

body .product-lookup-warehouse-pill.has-stock span {
    color: #d8ffe9;
}

body .product-lookup-warehouse-pill.is-empty span {
    color: rgba(219, 231, 245, 0.5);
}

body .schedule-board-lane-wrap[data-schedule-density="compact"] .schedule-board-lane-axis,
body .schedule-board-lane-wrap[data-schedule-density="compact"] .schedule-lane-day-card {
    min-height: 98px;
    padding: 12px;
}

body .schedule-board-lane-wrap[data-schedule-density="compact"] .schedule-lane-member,
body .schedule-board-lane-wrap[data-schedule-density="compact"] .schedule-lane-cell {
    min-height: 78px;
    padding: 10px 12px;
}

body .schedule-board-lane-wrap[data-schedule-density="compact"] .schedule-board-lane-days,
body .schedule-board-lane-wrap[data-schedule-density="compact"] .schedule-lane-track {
    gap: 10px;
}

body .schedule-board-lane-wrap[data-schedule-density="compact"] .schedule-board-lane-axis strong,
body .schedule-board-lane-wrap[data-schedule-density="compact"] .schedule-lane-member strong {
    font-size: 0.96rem;
}

body .schedule-board-lane-wrap[data-schedule-density="compact"] .schedule-board-lane-axis p,
body .schedule-board-lane-wrap[data-schedule-density="compact"] .schedule-lane-member p,
body .schedule-board-lane-wrap[data-schedule-density="compact"] .schedule-lane-member small {
    font-size: 0.74rem;
}

body .schedule-board-lane-wrap[data-schedule-density="compact"] .schedule-lane-day-card strong {
    font-size: 0.96rem;
}

body .schedule-board-lane-wrap[data-schedule-density="compact"] .schedule-lane-day-card small,
body .schedule-board-lane-wrap[data-schedule-density="compact"] .schedule-lane-cell-meta {
    line-clamp: 1;
    -webkit-line-clamp: 1;
    font-size: 0.7rem;
}

body .schedule-board-lane-wrap[data-schedule-density="compact"] .schedule-lane-cell-label {
    font-size: 0.78rem;
}

body .schedule-board-lane-wrap[data-schedule-density="compact"] .schedule-board-studio .schedule-chip {
    min-width: 60px;
    min-height: 34px;
    padding-inline: 10px;
    font-size: 0.74rem;
}

body .schedule-board-studio-wrap {
    max-height: min(78vh, 980px);
    padding: 12px;
    border-radius: 28px;
    background: rgba(5, 13, 24, 0.42);
    border: 1px solid rgba(93, 183, 255, 0.1);
    scrollbar-gutter: stable both-edges;
}

body .schedule-board-studio {
    display: grid;
    grid-template-columns: minmax(250px, 290px) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    min-width: max-content;
}

body .schedule-board-rail {
    position: sticky;
    left: 0;
    z-index: 3;
    width: 290px;
}

body .schedule-board-rail-head {
    position: sticky;
    top: 0;
    z-index: 4;
    min-height: 156px;
    padding: 18px;
    display: grid;
    align-content: start;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(19, 38, 67, 0.96), rgba(10, 22, 40, 0.92));
    border: 1px solid rgba(93, 183, 255, 0.14);
    box-shadow:
        0 18px 36px rgba(1, 8, 18, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body .schedule-board-rail-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 10px;
    color: rgba(149, 169, 191, 0.95);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

body .schedule-board-rail-head strong {
    display: block;
    color: #f7fbff;
    font-size: 1.08rem;
    line-height: 1.4;
}

body .schedule-board-rail-head p {
    margin: 10px 0 0;
    color: rgba(219, 231, 245, 0.78);
    line-height: 1.55;
    font-size: 0.88rem;
}

body .schedule-board-rail-body {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

body .schedule-day-tile {
    height: 116px;
    padding: 16px;
    display: grid;
    gap: 10px;
    align-content: start;
    overflow: hidden;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(9, 19, 34, 0.94), rgba(7, 16, 29, 0.88));
    border: 1px solid rgba(93, 183, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body .schedule-day-tile-weekend {
    background: linear-gradient(180deg, rgba(13, 29, 51, 0.96), rgba(10, 22, 39, 0.92));
    border-color: rgba(107, 212, 255, 0.14);
}

body .schedule-day-tile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

body .schedule-day-tile-date {
    color: rgba(149, 169, 191, 0.92);
    font-family: var(--mono);
    font-size: 0.74rem;
    letter-spacing: 0.08em;
}

body .schedule-day-note-tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 191, 71, 0.14);
    border: 1px solid rgba(255, 191, 71, 0.18);
    color: #ffe4aa;
    font-size: 0.74rem;
    font-weight: 700;
}

body .schedule-day-tile strong {
    color: #f7fbff;
    font-size: 0.98rem;
    line-height: 1.4;
}

body .schedule-day-tile p {
    margin: 0;
    color: rgba(219, 231, 245, 0.72);
    font-size: 0.84rem;
    line-height: 1.55;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    -webkit-line-clamp: 2;
}

body .schedule-day-tile-empty {
    color: rgba(149, 169, 191, 0.88) !important;
}

body .schedule-member-stage {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(190px, 212px);
    gap: 14px;
    align-items: start;
    min-width: max-content;
}

body .schedule-member-column {
    display: grid;
    gap: 12px;
}

body .schedule-member-header {
    position: sticky;
    top: 0;
    z-index: 2;
    min-height: 156px;
    padding: 16px;
    display: grid;
    gap: 10px;
    align-content: start;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(19, 41, 72, 0.96), rgba(10, 23, 41, 0.92));
    border: 1px solid rgba(93, 183, 255, 0.14);
    box-shadow:
        0 18px 32px rgba(1, 8, 18, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body .schedule-member-header-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

body .schedule-member-group,
body .schedule-member-location {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

body .schedule-member-group {
    background: rgba(255, 191, 71, 0.14);
    border: 1px solid rgba(255, 191, 71, 0.16);
    color: #ffe3ab;
}

body .schedule-member-location {
    background: rgba(93, 183, 255, 0.12);
    border: 1px solid rgba(93, 183, 255, 0.16);
    color: #dff1ff;
}

body .schedule-member-header strong {
    color: #f7fbff;
    font-size: 1.15rem;
    line-height: 1.2;
}

body .schedule-member-header p,
body .schedule-member-header small {
    margin: 0;
    color: rgba(219, 231, 245, 0.72);
    line-height: 1.5;
}

body .schedule-member-header small {
    font-size: 0.8rem;
}

body .schedule-member-cells {
    display: grid;
    gap: 12px;
}

body .schedule-slot {
    height: 116px;
    padding: 14px;
    display: grid;
    gap: 8px;
    align-content: start;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(9, 19, 34, 0.92), rgba(7, 16, 29, 0.86));
    border: 1px solid rgba(93, 183, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body .schedule-slot-weekend {
    background: linear-gradient(180deg, rgba(11, 24, 44, 0.94), rgba(8, 18, 33, 0.9));
}

body .schedule-slot-auto {
    border-color: rgba(107, 212, 255, 0.18);
    box-shadow:
        inset 0 0 0 1px rgba(107, 212, 255, 0.1),
        0 12px 28px rgba(1, 8, 18, 0.12);
}

body .schedule-slot-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

body .schedule-slot-date {
    color: rgba(149, 169, 191, 0.9);
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
}

body .schedule-slot-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: radial-gradient(circle, #ffd36b 0%, #ff9f43 100%);
    box-shadow: 0 0 0 4px rgba(255, 191, 71, 0.16);
}

body .schedule-board-studio .schedule-chip {
    min-width: 68px;
    min-height: 38px;
    justify-self: start;
    border-radius: 14px;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.16),
        0 10px 18px rgba(1, 8, 18, 0.16);
}

body .schedule-slot-label {
    color: #f7fbff;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.4;
}

body .schedule-slot-note,
body .schedule-slot-meta {
    color: rgba(219, 231, 245, 0.7);
    font-size: 0.78rem;
    line-height: 1.45;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    -webkit-line-clamp: 2;
}

body .schedule-board-studio .schedule-empty {
    color: #f7fbff;
    font-size: 0.94rem;
    font-weight: 700;
}


body .schedule-board-wrap {
    overflow: auto;
    border-radius: 18px;
    border: 1px solid rgba(10, 24, 42, 0.1);
    background: rgba(255, 255, 255, 0.42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32);
    -webkit-overflow-scrolling: touch;
}

body .schedule-board {
    width: max-content;
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    font-size: 0.9rem;
}

body .schedule-board th,
body .schedule-board td {
    min-width: 92px;
    padding: 0;
    text-align: center;
    border-right: 1px solid rgba(10, 24, 42, 0.12);
    border-bottom: 1px solid rgba(10, 24, 42, 0.12);
    overflow: visible;
}

body .schedule-board thead th {
    color: #f7fbff;
    background: linear-gradient(180deg, #123d74, #0e56aa);
    border-bottom-color: rgba(255, 255, 255, 0.14);
}

body .schedule-axis-cell {
    min-width: 240px;
    max-width: 240px;
    padding: 14px 16px;
    text-align: left;
    background: linear-gradient(180deg, #7a1846, #5f1234) !important;
    color: #fff3fb !important;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
}

body .schedule-group-header {
    padding: 14px 10px;
    background: linear-gradient(180deg, #173e79, #2151a8) !important;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: none;
}

body .schedule-location-header {
    padding: 10px 8px;
    background: linear-gradient(180deg, #1a66d4, #0d56be) !important;
    font-size: 0.76rem;
}

body .schedule-name-header {
    padding: 12px 8px;
    background: linear-gradient(180deg, #4d85d7, #2f6fcb) !important;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

body .schedule-note-header {
    min-width: 240px;
    padding: 14px 12px;
    background: linear-gradient(180deg, #204d8d, #294f93) !important;
    font-size: 1rem;
    text-transform: none;
}

body .schedule-sticky {
    position: sticky;
    left: 0;
    z-index: 3;
}

body .schedule-day-header {
    position: sticky;
    left: 0;
    z-index: 2;
    min-width: 240px;
    max-width: 240px;
    padding: 12px 14px;
    text-align: left;
    color: var(--text-strong) !important;
    background: linear-gradient(180deg, rgba(242, 245, 249, 0.98), rgba(229, 235, 242, 0.96)) !important;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

body .schedule-row-weekend .schedule-day-header {
    background: linear-gradient(180deg, rgba(224, 242, 255, 0.98), rgba(206, 229, 248, 0.96)) !important;
}

body .schedule-board-cell,
body .schedule-note-cell {
    padding: 10px 8px;
    background: rgba(255, 255, 255, 0.84);
}

body .schedule-row-weekend .schedule-board-cell,
body .schedule-row-weekend .schedule-note-cell {
    background: rgba(247, 249, 252, 0.94);
}

body .schedule-chip {
    --schedule-chip-bg-light: #dce7f3;
    --schedule-chip-bg-dark: #31465f;
    --schedule-chip-color-light: #27394f;
    --schedule-chip-color-dark: #f3f8ff;
    --schedule-chip-border-light: rgba(39, 57, 79, 0.14);
    --schedule-chip-border-dark: rgba(243, 248, 255, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    min-height: 34px;
    padding: 8px 10px;
    border: 1px solid var(--schedule-chip-border-dark);
    border-radius: 12px;
    background: var(--schedule-chip-bg-dark);
    color: var(--schedule-chip-color-dark);
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

body .schedule-chip-auto {
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.34),
        0 0 0 2px rgba(7, 17, 31, 0.04);
}

body .schedule-empty {
    color: rgba(68, 88, 111, 0.68);
    font-weight: 600;
}

body .schedule-note-text {
    min-width: 220px;
    text-align: left;
    color: var(--text-strong);
    line-height: 1.55;
}

body .announcement-center-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    align-items: start;
}

body .announcement-stream,
body .announcement-permission-panel {
    display: grid;
    gap: 18px;
}

body .announcement-stream-head,
body .announcement-permission-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

body .announcement-stream-head > div,
body .announcement-permission-head > div {
    flex: 1 1 220px;
    min-width: 0;
}

body .announcement-stream-head > .ghost-button,
body .announcement-permission-head > .status-pill {
    flex: 0 0 auto;
    align-self: flex-start;
    white-space: nowrap;
}

body .announcement-stream-head h2,
body .announcement-permission-head h2 {
    margin: 4px 0 0;
    color: var(--theme-heading, var(--text-strong));
}

body .announcement-feed {
    display: grid;
    gap: 14px;
}

body .announcement-feed-scroll {
    max-height: min(72dvh, 980px);
    overflow-y: auto;
    padding-right: 6px;
    scrollbar-width: thin;
    overscroll-behavior: contain;
}

body .announcement-feed-scroll::-webkit-scrollbar {
    width: 8px;
}

body .announcement-feed-scroll::-webkit-scrollbar-track {
    background: rgba(148, 163, 184, 0.08);
    border-radius: 999px;
}

body .announcement-feed-scroll::-webkit-scrollbar-thumb {
    background: rgba(93, 183, 255, 0.24);
    border-radius: 999px;
}

body .announcement-event-card,
body .announcement-permission-card {
    display: grid;
    gap: 12px;
    margin-bottom: 0;
}

body .announcement-event-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

body .announcement-event-head h3 {
    margin: 0 0 4px;
    color: var(--theme-heading, var(--text-strong));
}

body .announcement-event-head p,
body .announcement-body {
    margin: 0;
    color: var(--theme-helper-color, var(--text-soft));
}

body .announcement-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    color: var(--theme-helper-color, var(--text-soft));
    font-size: 0.84rem;
}

body .announcement-body {
    line-height: 1.65;
}

body .announcement-stream-schedule {
    gap: 16px;
}

body .announcement-feed-schedule {
    gap: 10px;
}

body .announcement-event-card-schedule {
    gap: 10px;
    padding: 15px 18px;
    border-radius: 20px;
    border-color: rgba(93, 183, 255, 0.16);
    background:
        linear-gradient(180deg, rgba(14, 25, 43, 0.96), rgba(10, 20, 35, 0.98));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        0 14px 28px rgba(6, 15, 29, 0.14);
}

body .announcement-event-card-schedule .announcement-event-head {
    align-items: center;
    gap: 14px;
}

body .announcement-event-card-schedule .announcement-event-head > div {
    min-width: 0;
    flex: 1 1 auto;
}

body .announcement-event-card-schedule .announcement-event-head h3 {
    margin: 0 0 4px;
    font-size: 1.02rem;
    line-height: 1.28;
}

body .announcement-event-card-schedule .announcement-event-head p {
    font-size: 0.82rem;
}

body .announcement-event-card-schedule .announcement-meta-row {
    gap: 8px 14px;
    padding-top: 8px;
    border-top: 1px dashed rgba(148, 163, 184, 0.18);
    font-size: 0.78rem;
}

body .announcement-event-card-schedule .announcement-body {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--theme-helper-color, var(--text-soft));
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

html[data-theme="light"] body .announcement-event-card-schedule {
    border-color: rgba(52, 104, 177, 0.12);
    background:
        linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(241, 246, 252, 0.98));
}

body .announcement-permission-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

body .announcement-permission-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

body .hris-dashboard-grid {
    align-items: start;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}

body .hris-dashboard-panel {
    display: grid;
    gap: 14px;
}

body .hris-dashboard-schedule-section {
    display: grid;
    gap: 14px;
    margin-bottom: 0;
}

body .hris-dashboard-announcement-list {
    display: grid;
    gap: 14px;
}

body .hris-dashboard-leave-list,
body .hris-dashboard-reminder-list {
    display: grid;
    gap: 14px;
}

body .hris-dashboard-announcement-card {
    display: grid;
    gap: 10px;
    margin-bottom: 0;
}

body .hris-dashboard-leave-card,
body .hris-dashboard-reminder-card {
    display: grid;
    gap: 10px;
    margin-bottom: 0;
}

body .hris-dashboard-announcement-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

body .hris-dashboard-leave-head,
body .hris-dashboard-reminder-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

body .hris-dashboard-announcement-head h3 {
    margin: 0 0 4px;
    font-size: 1rem;
    color: var(--theme-heading);
}

body .hris-dashboard-leave-head h3,
body .hris-dashboard-reminder-head h3 {
    margin: 0 0 4px;
    font-size: 1rem;
    color: var(--theme-heading);
}

body .hris-dashboard-announcement-head p,
body .hris-dashboard-announcement-meta,
body .hris-dashboard-announcement-body {
    margin: 0;
    color: var(--theme-helper-color);
}

body .hris-dashboard-leave-head p,
body .hris-dashboard-leave-meta,
body .hris-dashboard-leave-body,
body .hris-dashboard-reminder-head p,
body .hris-dashboard-reminder-body {
    margin: 0;
    color: var(--theme-helper-color);
}

body .hris-document-workspace {
    display: grid;
    gap: 18px;
    margin-top: 16px;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.85fr);
    align-items: start;
}

body .hris-document-preview-panel,
body .hris-document-approval-panel {
    display: grid;
    gap: 16px;
    min-width: 0;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(8, 17, 31, 0.92), rgba(11, 22, 40, 0.88));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body .hris-document-preview-banner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 16px;
    border-radius: 22px;
    background: linear-gradient(120deg, rgba(14, 92, 199, 0.92), rgba(63, 179, 255, 0.78));
    color: #f8fbff;
}

body .hris-document-preview-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

body .hris-document-preview-brand-mark {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(3, 13, 25, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

body .hris-document-preview-brand strong,
body .hris-document-preview-brand span {
    display: block;
}

body .hris-document-preview-brand strong {
    font-size: 1rem;
    color: #ffffff;
}

body .hris-document-preview-brand span {
    margin-top: 2px;
    font-size: 0.78rem;
    color: rgba(248, 251, 255, 0.88);
}

body .hris-document-preview-copy h3,
body .hris-document-signature-preview-copy strong {
    margin: 0;
    color: var(--theme-heading, var(--text-strong));
}

body .hris-document-preview-copy p,
body .hris-document-signature-preview-copy span,
body .hris-document-sign-help {
    margin: 0;
    color: var(--theme-helper-color, var(--text-soft));
}

body .hris-document-preview-stage {
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(93, 183, 255, 0.18);
    background: rgba(255, 255, 255, 0.98);
    min-height: 540px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

body .hris-document-preview-stage iframe,
body .hris-document-preview-stage img {
    width: 100%;
    height: min(72vh, 760px);
    display: block;
    border: 0;
}

body .hris-document-preview-stage.image-only img {
    object-fit: contain;
    background: rgba(244, 247, 251, 0.96);
}

body .hris-document-preview-empty {
    min-height: 260px;
    display: grid;
    place-items: center;
    padding: 24px;
    text-align: center;
    border-radius: 24px;
    border: 1px dashed rgba(148, 163, 184, 0.24);
    background: rgba(9, 18, 31, 0.54);
    color: var(--theme-helper-color, var(--text-soft));
}

body .hris-document-preview-meta {
    margin-top: 0;
}

body .hris-document-signature-preview {
    display: grid;
    gap: 12px;
    padding: 14px;
    border-radius: 20px;
    border: 1px solid rgba(93, 183, 255, 0.18);
    background: rgba(248, 251, 255, 0.04);
}

body .hris-document-signature-preview img {
    width: 100%;
    max-width: 340px;
    min-height: 120px;
    object-fit: contain;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: #ffffff;
    padding: 10px;
}

body .hris-document-sign-form {
    display: grid;
    gap: 14px;
}

body .hris-document-sign-pad {
    position: relative;
    min-height: 190px;
    border-radius: 22px;
    border: 1px dashed rgba(148, 163, 184, 0.3);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 252, 0.98));
    overflow: hidden;
}

body .hris-document-sign-pad::before {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 28px;
    border-top: 2px solid rgba(148, 163, 184, 0.28);
}

body .hris-document-sign-pad canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    cursor: crosshair;
    touch-action: none;
}

body .hris-document-sign-help {
    font-size: 0.82rem;
    line-height: 1.5;
}

@media (max-width: 1080px) {
    body .hris-document-workspace {
        grid-template-columns: minmax(0, 1fr);
    }

    body .hris-document-preview-stage {
        min-height: 420px;
    }

    body .hris-document-preview-stage iframe,
    body .hris-document-preview-stage img {
        height: min(64vh, 620px);
    }
}

@media (max-width: 720px) {
    body .hris-document-preview-panel,
    body .hris-document-approval-panel {
        padding: 14px;
        border-radius: 20px;
    }

    body .hris-document-preview-banner {
        padding: 12px 14px;
    }

    body .hris-document-preview-brand {
        align-items: flex-start;
    }

    body .hris-document-preview-brand-mark {
        width: 36px;
        height: 36px;
        border-radius: 14px;
    }

    body .hris-document-preview-stage {
        min-height: 320px;
    }

    body .hris-document-preview-stage iframe,
    body .hris-document-preview-stage img {
        height: min(52vh, 420px);
    }

    body .hris-document-sign-pad {
        min-height: 170px;
    }
}

body .hris-dashboard-announcement-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    font-size: 0.84rem;
}

body .hris-dashboard-announcement-body {
    line-height: 1.6;
}

body .hris-dashboard-leave-body,
body .hris-dashboard-reminder-body {
    line-height: 1.6;
}

body .hris-dashboard-leave-meta {
    font-size: 0.82rem;
}

body .hris-dashboard-reminder-form {
    margin-bottom: 2px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

body .hris-dashboard-reminder-card.is-done {
    opacity: 0.82;
}

body .hris-dashboard-reminder-actions {
    margin-top: 2px;
}

body .hris-clean-shell .summary {
    gap: 10px;
}

body .hris-clean-shell .card-mini {
    padding: 14px 16px;
}

body .hris-clean-shell .card-mini p {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body .hris-clean-shell .card-mini h3 {
    font-size: clamp(1.16rem, 1.8vw, 1.58rem);
}

body .hris-clean-shell .meta-grid {
    gap: 10px;
}

body .hris-clean-shell .meta-card {
    padding: 12px 14px;
    min-height: 0;
}

body .hris-clean-shell .meta-card span {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body .hris-clean-shell .meta-card strong {
    font-size: 0.96rem;
    letter-spacing: 0;
    word-spacing: normal;
}

body .hris-clean-shell .section-title {
    gap: 10px;
    align-items: center;
}

body .hris-clean-shell .section-title > div {
    display: grid;
    gap: 2px;
}

body .hris-clean-shell .section-title p,
body .hris-clean-shell .hris-module-card .helper-text,
body .hris-clean-shell .hris-module-summary small {
    display: none;
}

body .hris-clean-shell .top-bar {
    gap: 10px;
}

body .hris-clean-shell .hris-module-summary-copy {
    gap: 4px;
}

body .hris-clean-shell .hris-module-summary-body {
    margin-top: 12px;
}

body .hris-clean-shell .hris-module-card {
    padding: 12px 14px;
    min-height: 84px;
}

body .hris-clean-shell .hris-module-card h2 {
    margin-top: 10px;
    font-size: clamp(0.98rem, 1.02vw, 1.18rem);
    line-height: 1.08;
}

body .hris-clean-shell .recruitment-workspace {
    display: grid;
    gap: 12px;
}

body .hris-clean-shell .recruitment-workspace-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

body .hris-clean-shell .recruitment-workspace-card {
    width: 100%;
    min-height: 156px;
    border: 1px solid rgba(93, 183, 255, 0.16);
    border-radius: 22px;
    padding: 18px 18px 16px;
    background: linear-gradient(180deg, rgba(15, 28, 47, 0.98), rgba(11, 22, 38, 0.98));
    color: #eaf4ff;
    text-align: left;
    display: grid;
    gap: 12px;
    align-content: start;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

body .hris-clean-shell .recruitment-workspace-card:hover,
body .hris-clean-shell .recruitment-workspace-card.active {
    transform: translateY(-2px);
    border-color: rgba(93, 183, 255, 0.3);
    box-shadow: 0 18px 34px rgba(6, 13, 24, 0.24);
}

body .hris-clean-shell .recruitment-workspace-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-family: var(--display);
    font-size: 1.3rem;
    font-weight: 800;
    color: #f8fbff;
    background: linear-gradient(145deg, #d7b760 0%, #f1e2ac 100%);
    box-shadow: 0 14px 26px rgba(7, 17, 31, 0.18);
}

body .hris-clean-shell .recruitment-workspace-card.accent-sky .recruitment-workspace-icon {
    background: linear-gradient(145deg, #f1e2ac 0%, #f8f2df 100%);
}

body .hris-clean-shell .recruitment-workspace-card.accent-indigo .recruitment-workspace-icon {
    background: linear-gradient(145deg, #122a52 0%, #d7b760 100%);
}

body .hris-clean-shell .recruitment-workspace-card.accent-emerald .recruitment-workspace-icon {
    background: linear-gradient(145deg, #0f9d72 0%, #4ed7a8 100%);
}

body .hris-clean-shell .recruitment-workspace-card.accent-teal .recruitment-workspace-icon {
    background: linear-gradient(145deg, #0f7f94 0%, #44c9d7 100%);
}

body .hris-clean-shell .recruitment-workspace-card.accent-amber .recruitment-workspace-icon {
    background: linear-gradient(145deg, #c98514 0%, #ffcc57 100%);
}

body .hris-clean-shell .recruitment-workspace-card.accent-blue .recruitment-workspace-icon {
    background: linear-gradient(145deg, #d7b760 0%, #f1e2ac 100%);
}

body .hris-clean-shell .recruitment-workspace-copy {
    display: grid;
    gap: 6px;
}

body .hris-clean-shell .recruitment-workspace-copy strong {
    font-family: var(--display);
    font-size: 1rem;
    line-height: 1.14;
    letter-spacing: -0.03em;
    color: #f2f8ff;
}

body .hris-clean-shell .recruitment-workspace-copy small {
    display: block;
    color: rgba(220, 231, 244, 0.74);
    line-height: 1.5;
}

body .hris-clean-shell .recruitment-workspace-badge {
    margin-top: auto;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(230, 239, 249, 0.84);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

body .hris-clean-shell .recruitment-workspace-panel > summary {
    display: none;
}

body .hris-clean-shell .recruitment-workspace-panel:not([open]) {
    display: none;
}

body .hris-clean-shell .recruitment-workspace-panel[open] {
    display: block;
}

body .hris-clean-shell .recruitment-workspace-head {
    margin-bottom: 14px;
}

body .hris-clean-shell .recruitment-workspace-head p {
    display: block;
}

body .hris-clean-shell .biometric-workspace-shell {
    display: grid;
    gap: 14px;
}

body .hris-clean-shell .biometric-workspace-modules {
    display: grid;
    gap: 12px;
}

body .hris-clean-shell .biometric-workspace-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

body .hris-clean-shell .biometric-workspace-card {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 14px;
    min-height: 238px;
    text-decoration: none;
}

body .hris-clean-shell .biometric-workspace-card::after {
    content: "";
    position: absolute;
    inset: auto -32px -54px auto;
    width: 124px;
    height: 124px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--biometric-accent-glow, rgba(28, 109, 255, 0.16)) 0%, transparent 70%);
    pointer-events: none;
}

body .hris-clean-shell .biometric-module-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

body .hris-clean-shell .biometric-module-mark {
    position: relative;
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

body .hris-clean-shell .biometric-module-mark-core,
body .hris-clean-shell .biometric-stage-art-chip,
body .hris-clean-shell .biometric-focus-icon {
    display: inline-grid;
    place-items: center;
    background: var(--biometric-accent-gradient, linear-gradient(145deg, #d7b760 0%, #f1e2ac 100%));
    color: #f8fbff;
    font-family: var(--display);
    font-weight: 800;
    letter-spacing: 0.08em;
    box-shadow: 0 14px 26px var(--biometric-accent-glow, rgba(28, 109, 255, 0.22));
}

body .hris-clean-shell .biometric-module-mark-core {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    font-size: 0.86rem;
}

body .hris-clean-shell .biometric-module-mark-dot {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    border: 2px solid rgba(13, 25, 43, 0.72);
}

body .hris-clean-shell .biometric-module-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: rgba(237, 244, 250, 0.84);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body .hris-clean-shell .biometric-module-eyebrow,
body .hris-clean-shell .biometric-stage-kicker,
body .hris-clean-shell .biometric-focus-kicker {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    min-height: 28px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(226, 237, 248, 0.8);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

body .hris-clean-shell .biometric-module-copy {
    gap: 8px;
}

body .hris-clean-shell .biometric-module-copy strong {
    font-size: 1.08rem;
    line-height: 1.18;
}

body .hris-clean-shell .biometric-module-copy small {
    display: block;
    line-height: 1.58;
}

body .hris-clean-shell .biometric-module-points,
body .hris-clean-shell .biometric-focus-points,
body .hris-clean-shell .biometric-stage-points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

body .hris-clean-shell .biometric-module-points span,
body .hris-clean-shell .biometric-focus-points span,
body .hris-clean-shell .biometric-stage-points span {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(228, 238, 248, 0.78);
    font-size: 0.72rem;
    font-weight: 700;
}

body .hris-clean-shell .biometric-module-footer {
    margin-top: auto;
    display: grid;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body .hris-clean-shell .biometric-module-footer small {
    color: rgba(220, 232, 244, 0.72);
    line-height: 1.58;
}

body .hris-clean-shell .biometric-module-link {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    color: #f7fbff;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body .hris-clean-shell .biometric-workspace-card:hover .biometric-module-link,
body .hris-clean-shell .biometric-workspace-card.active .biometric-module-link {
    transform: translateX(3px);
}

body .hris-clean-shell .biometric-stage-shell {
    display: grid;
    grid-template-columns: minmax(220px, 290px) minmax(0, 1fr);
    gap: 22px;
    align-items: center;
}

body .hris-clean-shell .biometric-stage-art {
    position: relative;
    min-height: 232px;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid var(--biometric-accent-border, rgba(74, 179, 255, 0.2));
    background:
        radial-gradient(circle at top right, var(--biometric-accent-glow, rgba(28, 109, 255, 0.14)), transparent 34%),
        linear-gradient(180deg, rgba(16, 29, 48, 0.98), rgba(10, 20, 34, 0.98));
    display: grid;
    place-items: center;
}

body .hris-clean-shell .biometric-stage-art-chip,
body .hris-clean-shell .biometric-focus-icon {
    width: 74px;
    height: 74px;
    border-radius: 24px;
    font-size: 1rem;
}

body .hris-clean-shell .biometric-stage-orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.03);
}

body .hris-clean-shell .biometric-stage-orbit.orbit-one {
    width: 184px;
    height: 184px;
}

body .hris-clean-shell .biometric-stage-orbit.orbit-two {
    width: 122px;
    height: 122px;
}

body .hris-clean-shell .biometric-stage-orbit.orbit-three {
    right: 26px;
    bottom: 24px;
    width: 22px;
    height: 22px;
    background: rgba(255, 255, 255, 0.18);
    border: 0;
    box-shadow: 0 0 0 12px rgba(255, 255, 255, 0.05);
}

body .hris-clean-shell .biometric-stage-copy {
    display: grid;
    gap: 12px;
}

body .hris-clean-shell .biometric-stage-copy h2,
body .hris-clean-shell .biometric-focus-copy h2 {
    margin: 0;
    font-family: var(--display);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

body .hris-clean-shell .biometric-stage-copy h2 {
    font-size: clamp(1.56rem, 2vw, 2rem);
}

body .hris-clean-shell .biometric-stage-copy p,
body .hris-clean-shell .biometric-focus-copy p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.66;
}

body .hris-clean-shell .biometric-stage-grid,
body .hris-clean-shell .biometric-focus-meta {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
}

body .hris-clean-shell .biometric-stage-mini,
body .hris-clean-shell .biometric-focus-meta-card {
    border-radius: 18px;
    border: 1px solid var(--biometric-accent-border, rgba(74, 179, 255, 0.14));
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 255, 0.94));
    padding: 16px;
}

body .hris-clean-shell .biometric-stage-mini {
    text-decoration: none;
    display: grid;
    gap: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

body .hris-clean-shell .biometric-stage-mini:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(12, 22, 36, 0.08);
}

body .hris-clean-shell .biometric-stage-mini span,
body .hris-clean-shell .biometric-focus-meta-card span {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

body .hris-clean-shell .biometric-stage-mini strong,
body .hris-clean-shell .biometric-focus-meta-card strong {
    color: var(--text-strong);
    font-family: var(--display);
    line-height: 1.24;
}

body .hris-clean-shell .biometric-stage-mini small {
    color: var(--text-soft);
    line-height: 1.5;
}

body .hris-clean-shell .biometric-workspace-focus-card {
    padding: 20px 20px 18px;
    border-color: var(--biometric-accent-border, rgba(74, 179, 255, 0.16));
    background:
        radial-gradient(circle at top right, var(--biometric-accent-glow, rgba(28, 109, 255, 0.12)), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.96));
}

body .hris-clean-shell .biometric-workspace-subnav {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
}

body .hris-clean-shell .biometric-focus-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

body .hris-clean-shell .biometric-focus-intro {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

body .hris-clean-shell .biometric-focus-copy {
    display: grid;
    gap: 10px;
}

body .hris-clean-shell .biometric-focus-copy h2 {
    font-size: clamp(1.42rem, 1.85vw, 1.86rem);
}

body .hris-clean-shell .biometric-workspace-card {
    text-decoration: none;
}

body .hris-clean-shell .biometric-workspace-center-stage,
body .hris-clean-shell .biometric-workspace-focus-card {
    padding: 18px 18px 16px;
}

body .hris-clean-shell .biometric-workspace-stat.accent-sky,
body .hris-clean-shell .biometric-action-panel.accent-sky,
body .hris-clean-shell .biometric-data-card.accent-sky,
body .hris-clean-shell .biometric-section-title.accent-sky,
body .hris-clean-shell .biometric-workspace-card.accent-sky,
body .hris-clean-shell .biometric-stage-art.accent-sky,
body .hris-clean-shell .biometric-stage-mini.accent-sky,
body .hris-clean-shell .biometric-workspace-focus-card.accent-sky,
body .hris-clean-shell .biometric-workspace-icon.accent-sky,
body .hris-clean-shell .biometric-workspace-stat-icon.accent-sky,
body .hris-clean-shell .biometric-meta-icon.accent-sky {
    --biometric-accent-gradient: linear-gradient(145deg, #f1e2ac 0%, #f8f2df 100%);
    --biometric-accent-border: rgba(215, 183, 96, 0.24);
    --biometric-accent-glow: rgba(52, 180, 255, 0.22);
    --biometric-card-bg: linear-gradient(145deg, rgba(7, 39, 60, 0.98), rgba(7, 21, 37, 0.99));
}

body .hris-clean-shell .biometric-workspace-stat.accent-indigo,
body .hris-clean-shell .biometric-action-panel.accent-indigo,
body .hris-clean-shell .biometric-data-card.accent-indigo,
body .hris-clean-shell .biometric-section-title.accent-indigo,
body .hris-clean-shell .biometric-workspace-card.accent-indigo,
body .hris-clean-shell .biometric-stage-art.accent-indigo,
body .hris-clean-shell .biometric-stage-mini.accent-indigo,
body .hris-clean-shell .biometric-workspace-focus-card.accent-indigo,
body .hris-clean-shell .biometric-workspace-icon.accent-indigo,
body .hris-clean-shell .biometric-workspace-stat-icon.accent-indigo,
body .hris-clean-shell .biometric-meta-icon.accent-indigo {
    --biometric-accent-gradient: linear-gradient(145deg, #122a52 0%, #d7b760 100%);
    --biometric-accent-border: rgba(215, 183, 96, 0.24);
    --biometric-accent-glow: rgba(73, 109, 239, 0.22);
    --biometric-card-bg: linear-gradient(145deg, rgba(21, 27, 64, 0.98), rgba(9, 15, 35, 0.99));
}

body .hris-clean-shell .biometric-workspace-stat.accent-emerald,
body .hris-clean-shell .biometric-action-panel.accent-emerald,
body .hris-clean-shell .biometric-data-card.accent-emerald,
body .hris-clean-shell .biometric-section-title.accent-emerald,
body .hris-clean-shell .biometric-workspace-card.accent-emerald,
body .hris-clean-shell .biometric-stage-art.accent-emerald,
body .hris-clean-shell .biometric-stage-mini.accent-emerald,
body .hris-clean-shell .biometric-workspace-focus-card.accent-emerald,
body .hris-clean-shell .biometric-workspace-icon.accent-emerald,
body .hris-clean-shell .biometric-workspace-stat-icon.accent-emerald,
body .hris-clean-shell .biometric-meta-icon.accent-emerald {
    --biometric-accent-gradient: linear-gradient(145deg, #0f9d72 0%, #4ed7a8 100%);
    --biometric-accent-border: rgba(78, 215, 168, 0.22);
    --biometric-accent-glow: rgba(15, 157, 114, 0.22);
    --biometric-card-bg: linear-gradient(145deg, rgba(5, 47, 36, 0.98), rgba(7, 22, 31, 0.99));
}

body .hris-clean-shell .biometric-workspace-stat.accent-amber,
body .hris-clean-shell .biometric-action-panel.accent-amber,
body .hris-clean-shell .biometric-data-card.accent-amber,
body .hris-clean-shell .biometric-section-title.accent-amber,
body .hris-clean-shell .biometric-workspace-card.accent-amber,
body .hris-clean-shell .biometric-stage-art.accent-amber,
body .hris-clean-shell .biometric-stage-mini.accent-amber,
body .hris-clean-shell .biometric-workspace-focus-card.accent-amber,
body .hris-clean-shell .biometric-workspace-icon.accent-amber,
body .hris-clean-shell .biometric-workspace-stat-icon.accent-amber,
body .hris-clean-shell .biometric-meta-icon.accent-amber {
    --biometric-accent-gradient: linear-gradient(145deg, #c98514 0%, #ffcc57 100%);
    --biometric-accent-border: rgba(255, 204, 87, 0.24);
    --biometric-accent-glow: rgba(201, 133, 20, 0.22);
    --biometric-card-bg: linear-gradient(145deg, rgba(58, 39, 11, 0.98), rgba(29, 20, 10, 0.99));
}

body .hris-clean-shell .biometric-workspace-stat.accent-blue,
body .hris-clean-shell .biometric-action-panel.accent-blue,
body .hris-clean-shell .biometric-data-card.accent-blue,
body .hris-clean-shell .biometric-section-title.accent-blue,
body .hris-clean-shell .biometric-workspace-card.accent-blue,
body .hris-clean-shell .biometric-stage-art.accent-blue,
body .hris-clean-shell .biometric-stage-mini.accent-blue,
body .hris-clean-shell .biometric-workspace-focus-card.accent-blue,
body .hris-clean-shell .biometric-workspace-icon.accent-blue,
body .hris-clean-shell .biometric-workspace-stat-icon.accent-blue,
body .hris-clean-shell .biometric-meta-icon.accent-blue {
    --biometric-accent-gradient: linear-gradient(145deg, #d7b760 0%, #f1e2ac 100%);
    --biometric-accent-border: rgba(215, 183, 96, 0.24);
    --biometric-accent-glow: rgba(28, 109, 255, 0.22);
    --biometric-card-bg: linear-gradient(145deg, rgba(9, 36, 70, 0.98), rgba(7, 18, 38, 0.99));
}

body .hris-clean-shell .biometric-workspace-card {
    border-color: var(--biometric-accent-border, rgba(74, 179, 255, 0.22));
    background:
        radial-gradient(circle at 92% 6%, var(--biometric-accent-glow, rgba(74, 179, 255, 0.2)), transparent 34%),
        radial-gradient(circle at 0% 100%, rgba(255, 255, 255, 0.06), transparent 30%),
        var(--biometric-card-bg, linear-gradient(145deg, rgba(15, 31, 54, 0.98), rgba(8, 18, 32, 0.99)));
    color: #eef7ff;
    box-shadow: 0 20px 44px rgba(2, 8, 20, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

body .hris-clean-shell .biometric-workspace-card:hover,
body .hris-clean-shell .biometric-workspace-card.active {
    border-color: var(--biometric-accent-border, rgba(74, 179, 255, 0.3));
    box-shadow: 0 22px 48px rgba(2, 8, 20, 0.34), 0 0 0 1px var(--biometric-accent-border, rgba(74, 179, 255, 0.18));
}

body .hris-clean-shell .biometric-workspace-card .biometric-module-mark,
body .hris-clean-shell .biometric-workspace-card .biometric-module-badge,
body .hris-clean-shell .biometric-workspace-card .biometric-module-eyebrow,
body .hris-clean-shell .biometric-workspace-card .biometric-module-points span {
    background: rgba(3, 13, 25, 0.42);
    border-color: rgba(255, 255, 255, 0.11);
    color: rgba(239, 247, 255, 0.9);
}

body .hris-clean-shell .biometric-workspace-card .biometric-module-copy strong {
    color: #f8fbff;
}

body .hris-clean-shell .biometric-workspace-card .biometric-module-copy small,
body .hris-clean-shell .biometric-workspace-card .biometric-module-footer small {
    color: rgba(224, 235, 247, 0.82);
}

body .hris-clean-shell .biometric-workspace-card .biometric-module-footer {
    border-top-color: rgba(255, 255, 255, 0.12);
}

body .hris-clean-shell .biometric-workspace-card .biometric-module-link {
    color: #ffffff;
}

body .hris-clean-shell .biometric-workspace-hero {
    padding: 22px 22px 20px;
    border-color: rgba(93, 183, 255, 0.16);
    background:
        radial-gradient(circle at top right, rgba(74, 179, 255, 0.2), transparent 28%),
        radial-gradient(circle at left bottom, rgba(78, 215, 168, 0.14), transparent 26%),
        linear-gradient(180deg, rgba(15, 28, 47, 0.98), rgba(11, 22, 38, 0.98));
    color: #eaf4ff;
}

body .hris-clean-shell .biometric-workspace-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 18px;
    align-items: start;
    margin-bottom: 18px;
}

body .hris-clean-shell .biometric-workspace-icon,
body .hris-clean-shell .biometric-workspace-stat-icon,
body .hris-clean-shell .biometric-meta-icon {
    display: inline-grid;
    place-items: center;
    border-radius: 18px;
    background: var(--biometric-accent-gradient, linear-gradient(145deg, #d7b760 0%, #f1e2ac 100%));
    color: #f8fbff;
    font-family: var(--display);
    font-weight: 800;
    letter-spacing: 0.08em;
    box-shadow: 0 14px 26px var(--biometric-accent-glow, rgba(28, 109, 255, 0.22));
}

body .hris-clean-shell .biometric-workspace-icon {
    width: 60px;
    height: 60px;
    font-size: 1.02rem;
}

body .hris-clean-shell .biometric-workspace-headline {
    display: grid;
    gap: 8px;
    min-width: 0;
}

body .hris-clean-shell .biometric-workspace-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-self: start;
    min-height: 28px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(226, 237, 248, 0.84);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

body .hris-clean-shell .biometric-workspace-headline h2 {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(1.7rem, 2.3vw, 2.24rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
    color: #f5fbff;
}

body .hris-clean-shell .biometric-workspace-headline p {
    margin: 0;
    max-width: 820px;
    color: rgba(223, 233, 245, 0.8);
    line-height: 1.62;
}

body .hris-clean-shell .biometric-workspace-badge {
    min-width: 190px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    gap: 6px;
    align-content: start;
}

body .hris-clean-shell .biometric-workspace-badge strong {
    display: block;
    font-family: var(--display);
    font-size: 1rem;
    line-height: 1.14;
    color: #f1f8ff;
}

body .hris-clean-shell .biometric-workspace-badge span {
    display: block;
    color: rgba(223, 233, 245, 0.74);
    font-size: 0.82rem;
    line-height: 1.5;
}

body .hris-clean-shell .biometric-workspace-filter {
    margin: 0 0 16px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    gap: 10px;
}

body .hris-clean-shell .biometric-workspace-filter > * {
    flex: 1 1 160px;
}

body .hris-clean-shell .biometric-workspace-filter button {
    flex: 0 0 auto;
    min-width: 160px;
    border: 0;
    background: linear-gradient(145deg, #d7b760 0%, #f1e2ac 100%);
    color: #f8fbff;
    box-shadow: 0 14px 26px rgba(28, 109, 255, 0.22);
}

body .hris-clean-shell .biometric-workspace-filter select,
body .hris-clean-shell .biometric-workspace-filter input {
    min-height: 46px;
    border-color: rgba(143, 198, 255, 0.18);
    background: rgba(8, 17, 30, 0.82);
    color: #f5fbff;
}

body .hris-clean-shell .biometric-workspace-filter select:focus,
body .hris-clean-shell .biometric-workspace-filter input:focus {
    border-color: rgba(143, 198, 255, 0.42);
    box-shadow: 0 0 0 3px rgba(74, 179, 255, 0.12);
}

body .hris-clean-shell .biometric-workspace-note,
body .hris-clean-shell .biometric-workspace-footnote {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

body .hris-clean-shell .biometric-workspace-note {
    color: rgba(229, 237, 248, 0.82);
    line-height: 1.62;
}

body .hris-clean-shell .biometric-workspace-footnote .helper-text {
    display: block;
    color: rgba(223, 233, 245, 0.74);
    line-height: 1.62;
}

body .hris-clean-shell .biometric-workspace-summary,
body .hris-clean-shell .biometric-workspace-meta {
    margin-bottom: 0;
    gap: 12px;
}

body .hris-clean-shell .biometric-workspace-stat.card-mini,
body .hris-clean-shell .biometric-meta-card {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 14px;
    align-items: start;
    border-radius: 22px;
    border: 1px solid var(--biometric-accent-border, rgba(74, 179, 255, 0.2));
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    box-shadow: none;
}

body .hris-clean-shell .biometric-workspace-stat.card-mini {
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 0;
    padding: 16px;
}

body .hris-clean-shell .biometric-workspace-stat.card-mini::before,
body .hris-clean-shell .biometric-meta-card::before {
    display: none;
}

body .hris-clean-shell .biometric-workspace-stat-icon,
body .hris-clean-shell .biometric-meta-icon {
    width: 50px;
    height: 50px;
    font-size: 0.84rem;
}

body .hris-clean-shell .biometric-workspace-stat-copy,
body .hris-clean-shell .biometric-meta-copy {
    display: grid;
    gap: 6px;
    min-width: 0;
}

body .hris-clean-shell .biometric-workspace-stat-copy p,
body .hris-clean-shell .biometric-meta-copy span {
    margin: 0;
    color: rgba(226, 237, 248, 0.76);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

body .hris-clean-shell .biometric-workspace-stat-copy h3,
body .hris-clean-shell .biometric-meta-copy strong {
    margin: 0;
    color: #f4fbff;
    font-family: var(--display);
    line-height: 1.06;
}

body .hris-clean-shell .biometric-workspace-stat-copy h3 {
    font-size: clamp(1.34rem, 2vw, 1.8rem);
    letter-spacing: -0.05em;
}

body .hris-clean-shell .biometric-workspace-stat-copy small {
    display: block;
    color: rgba(220, 232, 244, 0.7);
    line-height: 1.48;
}

body .hris-clean-shell .biometric-meta-card {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 16px;
}

body .hris-clean-shell .biometric-meta-copy strong {
    font-size: 1.02rem;
    letter-spacing: -0.03em;
    line-height: 1.34;
}

body .hris-clean-shell .biometric-action-panel,
body .hris-clean-shell .biometric-data-card {
    border-color: var(--biometric-accent-border, rgba(74, 179, 255, 0.16));
    box-shadow: 0 18px 34px rgba(6, 13, 24, 0.08);
}

body .hris-clean-shell .biometric-action-panel::before,
body .hris-clean-shell .biometric-data-card::before {
    background: var(--biometric-accent-gradient, linear-gradient(145deg, #d7b760 0%, #f1e2ac 100%));
}

body .hris-clean-shell .biometric-action-panel .panel-summary {
    gap: 18px;
    align-items: flex-start;
}

body .hris-clean-shell .biometric-action-panel .panel-summary-meta {
    padding-top: 6px;
}

body .hris-clean-shell .biometric-section-title {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    margin-bottom: 14px;
}

body .hris-clean-shell .biometric-section-title::before {
    content: attr(data-panel-icon);
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: var(--biometric-accent-gradient, linear-gradient(145deg, #d7b760 0%, #f1e2ac 100%));
    color: #f8fbff;
    font-family: var(--display);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    box-shadow: 0 14px 28px var(--biometric-accent-glow, rgba(28, 109, 255, 0.22));
}

body .hris-clean-shell .biometric-section-title > div {
    min-width: 0;
}

body .hris-clean-shell .biometric-section-title h2,
body .hris-clean-shell .biometric-action-panel .panel-summary .biometric-section-title h2 {
    margin: 0;
    color: var(--text-strong);
}

body .hris-clean-shell .biometric-section-title p,
body .hris-clean-shell .biometric-action-panel .panel-summary .biometric-section-title p {
    display: block;
    margin: 8px 0 0;
    color: var(--text-soft);
    line-height: 1.58;
}

body .hris-clean-shell .biometric-action-panel[open] .panel-summary-state {
    background: var(--biometric-accent-border, rgba(74, 179, 255, 0.12));
    border-color: var(--biometric-accent-border, rgba(74, 179, 255, 0.18));
}

@media (max-width: 1180px) {
    body .hris-clean-shell .biometric-workspace-head {
        grid-template-columns: auto minmax(0, 1fr);
    }

    body .hris-clean-shell .biometric-workspace-badge {
        grid-column: 1 / -1;
        min-width: 0;
    }
}

@media (max-width: 720px) {
    body .hris-clean-shell .biometric-workspace-hero {
        padding: 18px 16px 16px;
    }

    body .hris-clean-shell .biometric-stage-shell,
    body .hris-clean-shell .biometric-focus-intro {
        grid-template-columns: 1fr;
    }

    body .hris-clean-shell .biometric-workspace-head,
    body .hris-clean-shell .biometric-workspace-stat.card-mini,
    body .hris-clean-shell .biometric-meta-card,
    body .hris-clean-shell .biometric-section-title {
        grid-template-columns: 1fr;
    }

    body .hris-clean-shell .biometric-focus-head {
        flex-direction: column;
    }

    body .hris-clean-shell .biometric-workspace-icon,
    body .hris-clean-shell .biometric-workspace-stat-icon,
    body .hris-clean-shell .biometric-meta-icon,
    body .hris-clean-shell .biometric-section-title::before {
        width: 46px;
        height: 46px;
        border-radius: 14px;
    }

    body .hris-clean-shell .biometric-workspace-filter {
        padding: 12px;
    }

    body .hris-clean-shell .biometric-workspace-filter > *,
    body .hris-clean-shell .biometric-workspace-filter button {
        width: 100%;
        min-width: 0;
        flex-basis: 100%;
    }

    body .hris-clean-shell .biometric-action-panel .panel-summary {
        flex-direction: column;
    }

    body .hris-clean-shell .biometric-action-panel .panel-summary-meta {
        width: 100%;
        justify-content: flex-start;
        padding-top: 0;
    }

    body .hris-clean-shell .biometric-workspace-card {
        min-height: 0;
    }

    body .hris-clean-shell .biometric-module-head {
        flex-direction: column;
        align-items: flex-start;
    }

    body .hris-clean-shell .biometric-stage-art {
        min-height: 186px;
    }
}

body .ghost-button.danger {
    border-color: rgba(255, 107, 107, 0.28);
    color: #ffd3d3;
}

body .product-trash-button {
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

body .product-trash-button svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

body .product-list-toolbar {
    margin-left: auto;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

body .stock-quick-action-danger {
    border-color: rgba(220, 38, 38, 0.34);
    color: #b91c1c;
    background: #fff7f7;
}

body .stock-quick-action-danger:hover {
    border-color: rgba(220, 38, 38, 0.5);
    background: #ffecec;
}

body .stock-product-delete-button {
    flex: 0 0 34px;
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
}

body .product-action-modal-panel {
    max-width: 520px;
}

body .product-action-confirm-field {
    display: grid;
    gap: 8px;
}

body .product-action-confirm-field[hidden] {
    display: none;
}

body .hris-dashboard-schedule-meta {
    margin-top: 0;
}

body .hris-dashboard-schedule-wrap {
    max-height: 780px;
}

body .hris-dashboard-schedule .schedule-name-header small {
    display: block;
    margin-top: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--theme-helper-color);
}

body .hris-dashboard-day-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

body .hris-dashboard-day-highlights span {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--theme-badge-neutral-bg);
    border: 1px solid var(--theme-badge-neutral-border);
    color: var(--theme-badge-neutral-color);
    font-size: 0.74rem;
    font-weight: 700;
}

@media (min-width: 1180px) {
    body .hris-dashboard-grid {
        grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.18fr);
    }
}

@media (max-width: 1080px) {
    body .announcement-event-head,
    body .announcement-permission-head {
        flex-direction: column;
    }

    body .schedule-board-hero {
        flex-direction: column;
    }

    body .schedule-board-hero-meta {
        justify-content: flex-start;
    }

    body .schedule-board-hero-actions {
        width: 100%;
        justify-items: start;
    }

    body .schedule-board-lane {
        --schedule-day-column-width: 136px;
    }

    body .schedule-board-lane-head,
    body .schedule-lane-row {
        grid-template-columns: 228px minmax(0, 1fr);
    }

    body .schedule-board-lane-axis,
    body .schedule-lane-day-card {
        min-height: 108px;
    }

    body .schedule-lane-member,
    body .schedule-lane-cell {
        min-height: 88px;
    }

    body .schedule-board-studio {
        grid-template-columns: minmax(220px, 250px) minmax(0, 1fr);
    }

    body .schedule-board-rail {
        width: 250px;
    }

    body .schedule-member-stage {
        grid-auto-columns: minmax(176px, 196px);
    }

    body .schedule-axis-cell,
    body .schedule-day-header {
        min-width: 180px;
        max-width: 180px;
    }

    body .schedule-note-header,
    body .schedule-note-text {
        min-width: 180px;
    }

    body .hris-dashboard-announcement-head,
    body .hris-dashboard-leave-head,
    body .hris-dashboard-reminder-head {
        flex-direction: column;
    }

    body .hris-module-summary {
        align-items: flex-start;
    }
}

@media (max-width: 720px) {
    body .announcement-permission-actions > * {
        width: 100%;
    }

    body .schedule-shift-list,
    body .schedule-profile-list {
        grid-template-columns: 1fr;
    }

    body .schedule-checkline {
        min-height: 44px;
    }

    body .schedule-board-shell {
        padding: 16px;
    }

    body .schedule-board-hero {
        padding: 16px;
        border-radius: 20px;
    }

    body .schedule-board-hero h3 {
        font-size: 1.08rem;
    }

    body .schedule-density-toggle {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body .schedule-density-button {
        width: 100%;
        justify-content: center;
    }

    body .schedule-board-lane-wrap {
        max-height: 68vh;
        padding: 10px 12px 12px;
        border-radius: 22px;
    }

    body .lookup-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body .product-lookup-toolbar {
        grid-template-columns: 1fr;
    }

    body .product-lookup-results {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body .schedule-board-lane {
        --schedule-day-column-width: 114px;
    }

    body .schedule-board-lane-head,
    body .schedule-lane-row {
        grid-template-columns: 178px minmax(0, 1fr);
        gap: 10px;
    }

    body .schedule-board-lane-axis,
    body .schedule-lane-day-card {
        min-height: 102px;
        border-radius: 18px;
    }

    body .schedule-lane-member,
    body .schedule-lane-cell {
        min-height: 84px;
        border-radius: 18px;
    }

    body .schedule-lane-group-head {
        flex-direction: column;
        align-items: flex-start;
    }

    body .schedule-board-studio-wrap {
        max-height: 70vh;
        padding: 10px;
        border-radius: 22px;
    }

    body .schedule-board-studio {
        grid-template-columns: 200px minmax(0, 1fr);
        gap: 12px;
    }

    body .schedule-board-rail {
        width: 200px;
    }

    body .schedule-board-rail-head {
        min-height: 146px;
    }

    body .schedule-board-rail-head,
    body .schedule-day-tile,
    body .schedule-member-header,
    body .schedule-slot {
        border-radius: 18px;
    }

    body .schedule-day-tile,
    body .schedule-slot {
        height: 106px;
    }

    body .schedule-member-stage {
        grid-auto-columns: minmax(160px, 172px);
        gap: 10px;
    }

    body .schedule-member-header {
        min-height: 146px;
        padding: 14px;
    }

    body .schedule-board th,
    body .schedule-board td {
        min-width: 82px;
    }

    body .schedule-axis-cell,
    body .schedule-day-header {
        min-width: 150px;
        max-width: 150px;
        font-size: 0.82rem;
    }

    body .schedule-note-header,
    body .schedule-note-text {
        min-width: 150px;
    }
}

@media (max-width: 1080px) {
    body .schedule-board-shell {
        padding: 18px;
    }

    body .schedule-board-hero {
        gap: 14px;
    }

    body .schedule-board-studio-wrap {
        padding: 12px;
        border-radius: 24px;
    }

    body .schedule-board-studio {
        grid-template-columns: minmax(246px, 268px) minmax(0, 1fr);
    }

    body .schedule-board-rail {
        width: 268px;
    }

    body .schedule-member-stage {
        padding-bottom: 6px;
        scroll-snap-type: x proximity;
    }

    body .schedule-board-rail,
    body .schedule-member-column {
        scroll-snap-align: start;
    }

    body .hris-module-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    body .hris-module-card {
        min-height: 144px;
    }

    body .hris-dashboard-panel {
        gap: 16px;
    }

    body .hris-dashboard-schedule-wrap {
        max-height: 68vh;
    }
}

@media (max-width: 720px) {
    body .announcement-feed-scroll {
        max-height: min(62dvh, 760px);
        padding-right: 2px;
    }

    body .announcement-stream-head > .ghost-button {
        width: 100%;
        justify-content: center;
    }

    body .announcement-event-card-schedule {
        padding: 14px 15px;
    }

    body .announcement-event-card-schedule .announcement-event-head {
        align-items: flex-start;
    }

    body .announcement-event-card-schedule .announcement-meta-row {
        gap: 6px 10px;
    }

    body .schedule-filter-bar {
        padding: 14px;
        border-radius: 22px;
    }

    body .hris-module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body .hris-module-summary {
        flex-direction: column;
        align-items: flex-start;
    }

    body .hris-module-summary-meta {
        width: 100%;
        justify-content: space-between;
    }

    body .hris-module-summary-body {
        margin-top: 14px;
    }

    body .schedule-board-shell {
        padding: 14px;
        border-radius: 24px;
    }

    body .schedule-board-shell::before {
        background-size: 20px 20px;
        opacity: 0.24;
    }

    body .schedule-board-hero-meta {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: max-content;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    body .schedule-board-hero-meta::-webkit-scrollbar {
        display: none;
    }

    body .schedule-board-hero-meta span {
        white-space: nowrap;
    }

    body .schedule-board-hero-actions {
        gap: 10px;
    }

    body .lookup-summary-grid,
    body .product-lookup-results,
    body .product-lookup-price-grid {
        grid-template-columns: 1fr;
    }

    body .product-lookup-card {
        padding: 18px;
        border-radius: 20px;
    }

    body .product-lookup-card-head {
        grid-template-columns: 1fr;
    }

    body .product-lookup-stock-overview {
        justify-items: start;
        text-align: left;
    }

    body .schedule-board-lane {
        --schedule-day-column-width: 96px;
    }

    body .schedule-board-lane-head,
    body .schedule-lane-row {
        grid-template-columns: minmax(68vw, 74vw) minmax(0, 1fr);
        gap: 10px;
    }

    body .schedule-board-lane-axis,
    body .schedule-lane-member {
        width: min(74vw, 300px);
    }

    body .schedule-board-lane-axis,
    body .schedule-lane-day-card,
    body .schedule-lane-member,
    body .schedule-lane-cell {
        border-radius: 18px;
    }

    body .schedule-board-lane-days,
    body .schedule-lane-track {
        gap: 10px;
    }

    body .schedule-lane-day-card small,
    body .schedule-lane-cell-meta {
        line-clamp: 1;
        -webkit-line-clamp: 1;
    }

    body .schedule-board-studio {
        grid-template-columns: minmax(78vw, 84vw) minmax(0, 1fr);
        gap: 12px;
    }

    body .schedule-board-rail {
        width: min(84vw, 320px);
    }

    body .schedule-board-rail-head,
    body .schedule-member-header {
        min-height: 138px;
    }

    body .schedule-member-stage {
        grid-auto-columns: minmax(72vw, 78vw);
        gap: 12px;
        scroll-snap-type: x mandatory;
    }

    body .schedule-member-column {
        scroll-snap-align: start;
    }

    body .schedule-day-tile,
    body .schedule-slot {
        height: 112px;
    }

    body .hris-module-card {
        min-height: 140px;
        padding: 14px;
    }

    body .hris-dashboard-panel,
    body .hris-dashboard-schedule-section {
        gap: 14px;
    }

    body .hris-dashboard-announcement-card {
        padding: 14px;
        border-radius: 20px;
        background: var(--theme-surface-bg, var(--panel));
        border: 1px solid var(--theme-surface-border, var(--line));
        box-shadow: var(--theme-surface-shadow, var(--shadow-md));
    }

    body .hris-dashboard-leave-card,
    body .hris-dashboard-reminder-card {
        padding: 14px;
        border-radius: 20px;
        background: var(--theme-surface-bg, var(--panel));
        border: 1px solid var(--theme-surface-border, var(--line));
        box-shadow: var(--theme-surface-shadow, var(--shadow-md));
    }

    body .hris-dashboard-announcement-meta {
        display: grid;
        gap: 8px;
    }

    body .hris-dashboard-reminder-form {
        padding-bottom: 12px;
    }

    body .hris-dashboard-schedule-wrap {
        max-height: 62vh;
        border-radius: 22px;
    }

    body .hris-dashboard-panel .section-title,
    body .hris-dashboard-schedule-section .section-title {
        align-items: stretch;
        flex-direction: column;
    }

    body .hris-dashboard-panel .section-title .ghost-button,
    body .hris-dashboard-schedule-section .section-title .ghost-button {
        width: 100%;
        justify-content: center;
    }
}

body .attendance-portal-shell {
    display: grid;
    gap: 14px;
}

body .attendance-portal-main .page-hero {
    padding: 18px 22px;
    min-height: 0;
    gap: 14px;
}

body .attendance-portal-main .page-hero .page-subtitle {
    max-width: 640px;
}

body .attendance-overview-card {
    display: grid;
    gap: 14px;
}

body .attendance-overview-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

body .attendance-overview-head h2,
body .attendance-overview-head p {
    margin: 0;
}

body .attendance-overview-head p {
    color: var(--text-muted);
}

body .attendance-overview-kicker {
    margin: 0 0 6px;
    color: var(--accent-strong);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

body .attendance-overview-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

body .attendance-overview-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

body .attendance-break-countdown-card {
    align-items: flex-start;
    border-color: rgba(212, 167, 62, 0.45);
    background: linear-gradient(180deg, rgba(255, 248, 225, 0.94), rgba(255, 255, 255, 0.96));
}

body .attendance-break-countdown-card .shell-break-chip-value {
    color: var(--primary-color);
    font-family: var(--mono);
    font-size: clamp(1.18rem, 2vw, 1.55rem);
    line-height: 1.1;
}

body .attendance-break-countdown-card .shell-break-chip-hint {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
}

body .attendance-break-countdown-card.is-over-limit {
    border-color: rgba(220, 38, 38, 0.38);
    background: linear-gradient(180deg, rgba(254, 242, 242, 0.96), rgba(255, 255, 255, 0.98));
}

body .attendance-break-countdown-card.is-over-limit .shell-break-chip-value,
body .attendance-break-countdown-card.is-over-limit .shell-break-chip-hint {
    color: #b42318;
}

body .attendance-identity-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

body .attendance-capture-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
    align-items: start;
}

body .attendance-camera-panel,
body .attendance-form-panel {
    min-width: 0;
}

body .attendance-form-panel {
    display: grid;
    gap: 14px;
}

body .attendance-form-panel .form-grid {
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body .attendance-form-quick-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

body .attendance-shortcut-link {
    white-space: nowrap;
}

body .attendance-shortcut-icon {
    width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
    font-size: 1rem;
    line-height: 1;
}

body .attendance-capture-card {
    scroll-margin-top: calc(112px + env(safe-area-inset-top));
}

body .attendance-camera-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background:
        radial-gradient(circle at top, rgba(215, 183, 96, 0.18), transparent 58%),
        linear-gradient(180deg, rgba(7, 17, 31, 0.96), rgba(12, 22, 39, 0.94));
    min-height: 300px;
    aspect-ratio: 3 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
}

body .attendance-camera-frame[data-camera-orientation="portrait"] {
    aspect-ratio: 3 / 4;
}

body .attendance-camera-frame[data-camera-orientation="landscape"] {
    aspect-ratio: 4 / 3;
    min-height: 240px;
}

body .attendance-camera-frame video,
body .attendance-camera-frame img,
body .attendance-camera-frame canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

body .attendance-camera-frame canvas {
    opacity: 0;
    pointer-events: none;
}

body .attendance-camera-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

body .attendance-submit-row {
    justify-content: flex-end;
}

body .attendance-optional-panel {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    background: rgba(148, 163, 184, 0.05);
    overflow: hidden;
}

body .attendance-optional-panel summary {
    cursor: pointer;
    list-style: none;
    padding: 12px 14px;
    font-weight: 700;
}

body .attendance-optional-panel summary::-webkit-details-marker {
    display: none;
}

body .attendance-optional-panel-body {
    display: grid;
    gap: 8px;
    padding: 0 14px 14px;
}

body .attendance-history-card {
    scroll-margin-top: calc(112px + env(safe-area-inset-top));
}

body .attendance-history-disclosure .panel-content {
    display: grid;
    gap: 16px;
}

body .attendance-log-list {
    display: grid;
    gap: 16px;
}

body .attendance-log-card {
    border: 1px solid var(--line);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(10, 20, 36, 0.78), rgba(10, 18, 31, 0.88));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

body .attendance-log-card-disclosure {
    display: block;
}

body .attendance-log-toggle {
    position: relative;
    cursor: pointer;
    list-style: none;
    display: grid;
    gap: 10px;
    padding: 18px 54px 18px 18px;
}

body .attendance-log-toggle::-webkit-details-marker {
    display: none;
}

body .attendance-log-card-disclosure > .attendance-log-toggle::after {
    content: "";
    position: absolute;
    top: 24px;
    right: 20px;
    width: 12px;
    height: 12px;
    border-right: 2px solid rgba(255, 255, 255, 0.58);
    border-bottom: 2px solid rgba(255, 255, 255, 0.58);
    transform: rotate(45deg);
    transition: transform 0.18s ease;
}

body .attendance-log-card-disclosure[open] > .attendance-log-toggle::after {
    transform: rotate(225deg);
}

body .attendance-log-body {
    display: grid;
    gap: 14px;
    padding: 0 18px 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

body .attendance-log-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

body .attendance-log-head h3,
body .attendance-log-head p,
body .attendance-log-note,
body .attendance-log-event p,
body .attendance-log-event-note {
    margin: 0;
}

body .attendance-log-head p,
body .attendance-log-note,
body .attendance-log-event p,
body .attendance-log-event-note {
    color: var(--text-muted);
}

body .attendance-log-toggle-meta {
    display: block;
    margin-top: 6px;
    color: var(--text-soft);
    font-size: 0.82rem;
    line-height: 1.5;
}

body .attendance-log-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

body .attendance-log-summary {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

body .attendance-log-detail {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    background: rgba(148, 163, 184, 0.06);
    overflow: hidden;
}

body .attendance-log-detail summary {
    cursor: pointer;
    list-style: none;
    padding: 14px 16px;
    font-weight: 700;
}

body .attendance-log-detail summary::-webkit-details-marker {
    display: none;
}

body .attendance-log-events,
body .attendance-log-edit-form {
    padding: 0 16px 16px;
}

body .attendance-log-events {
    display: grid;
    gap: 12px;
}

body .attendance-log-event {
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(8, 15, 28, 0.38);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

body .attendance-log-event-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

body .attendance-log-media {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

body .attendance-log-photo-link {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.04);
}

body .attendance-log-photo-thumb {
    display: block;
    width: min(240px, 100%);
    max-width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    background: rgba(15, 23, 42, 0.3);
}

body .attendance-history-actions {
    justify-content: flex-end;
    margin-top: 12px;
}

body:is(.attendance-page-shell, .schedule-self-page-shell, .daily-report-portal-shell, .overtime-page-shell, .kpi-page-shell, .internal-module-attendance-shell) {
    overflow-x: hidden;
}

body:is(.attendance-page-shell, .schedule-self-page-shell, .daily-report-portal-shell, .overtime-page-shell, .kpi-page-shell) .page-content,
body:is(.attendance-page-shell, .schedule-self-page-shell, .daily-report-portal-shell, .overtime-page-shell, .kpi-page-shell) .page-content-bleed {
    gap: 10px;
    max-width: 1180px;
}

body:is(.attendance-page-shell, .schedule-self-page-shell, .daily-report-portal-shell, .overtime-page-shell, .kpi-page-shell) .page-hero {
    min-height: 0;
    padding: 10px 14px;
    gap: 6px;
}

body:is(.attendance-page-shell, .schedule-self-page-shell, .daily-report-portal-shell, .overtime-page-shell, .kpi-page-shell) .page-hero h1,
body.internal-module-attendance-shell .information-panel-head h1,
body:is(.attendance-page-shell, .schedule-self-page-shell, .daily-report-portal-shell, .overtime-page-shell, .kpi-page-shell) .attendance-page-title h1 {
    font-size: clamp(22px, 2vw, 26px);
    line-height: 1.12;
    letter-spacing: 0;
}

body:is(.attendance-page-shell, .schedule-self-page-shell, .daily-report-portal-shell, .overtime-page-shell, .kpi-page-shell) .page-subtitle,
body.internal-module-attendance-shell .information-panel-head span,
body:is(.attendance-page-shell, .schedule-self-page-shell, .daily-report-portal-shell, .overtime-page-shell, .kpi-page-shell) .helper-text,
body:is(.attendance-page-shell, .schedule-self-page-shell, .daily-report-portal-shell, .overtime-page-shell, .kpi-page-shell) small {
    font-size: 11px;
    line-height: 1.35;
}

body:is(.attendance-page-shell, .schedule-self-page-shell, .daily-report-portal-shell, .overtime-page-shell, .kpi-page-shell) :is(.form-box, .table-box, .card-mini, .meta-card, .box),
body.internal-module-attendance-shell .internal-hub-card {
    border-radius: 8px;
}

body:is(.attendance-page-shell, .schedule-self-page-shell, .daily-report-portal-shell, .overtime-page-shell, .kpi-page-shell) :is(.form-box, .table-box, .box) {
    padding: 10px;
}

body:is(.attendance-page-shell, .schedule-self-page-shell, .daily-report-portal-shell, .overtime-page-shell, .kpi-page-shell) .summary,
body:is(.attendance-page-shell, .schedule-self-page-shell, .daily-report-portal-shell, .overtime-page-shell, .kpi-page-shell) .attendance-identity-grid,
body:is(.attendance-page-shell, .schedule-self-page-shell, .daily-report-portal-shell, .overtime-page-shell, .kpi-page-shell) .attendance-overview-grid,
body:is(.attendance-page-shell, .schedule-self-page-shell, .daily-report-portal-shell, .overtime-page-shell, .kpi-page-shell) .attendance-form-quick-grid {
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
}

body:is(.attendance-page-shell, .schedule-self-page-shell, .daily-report-portal-shell, .overtime-page-shell, .kpi-page-shell) .card-mini,
body:is(.attendance-page-shell, .schedule-self-page-shell, .daily-report-portal-shell, .overtime-page-shell, .kpi-page-shell) .meta-card {
    min-height: 0;
    padding: 8px 10px;
    gap: 4px;
}

body:is(.attendance-page-shell, .schedule-self-page-shell, .daily-report-portal-shell, .overtime-page-shell, .kpi-page-shell) .card-mini p,
body:is(.attendance-page-shell, .schedule-self-page-shell, .daily-report-portal-shell, .overtime-page-shell, .kpi-page-shell) .meta-card span {
    font-size: 10px;
    line-height: 1.2;
}

body:is(.attendance-page-shell, .schedule-self-page-shell, .daily-report-portal-shell, .overtime-page-shell, .kpi-page-shell) .card-mini h3,
body:is(.attendance-page-shell, .schedule-self-page-shell, .daily-report-portal-shell, .overtime-page-shell, .kpi-page-shell) .meta-card strong {
    font-size: clamp(18px, 1.8vw, 22px);
    line-height: 1.12;
}

body:is(.attendance-page-shell, .schedule-self-page-shell, .daily-report-portal-shell, .overtime-page-shell, .kpi-page-shell) .section-title {
    gap: 8px;
    margin: 0;
}

body:is(.attendance-page-shell, .schedule-self-page-shell, .daily-report-portal-shell, .overtime-page-shell, .kpi-page-shell) .section-title h2 {
    font-size: 15px;
    line-height: 1.2;
}

body:is(.attendance-page-shell, .schedule-self-page-shell, .daily-report-portal-shell, .overtime-page-shell, .kpi-page-shell) .section-title h3 {
    font-size: 13px;
    line-height: 1.2;
}

body:is(.attendance-page-shell, .schedule-self-page-shell, .daily-report-portal-shell, .overtime-page-shell, .kpi-page-shell) .section-title p,
body:is(.attendance-page-shell, .schedule-self-page-shell, .daily-report-portal-shell, .overtime-page-shell, .kpi-page-shell) .empty-state,
body:is(.attendance-page-shell, .schedule-self-page-shell, .daily-report-portal-shell, .overtime-page-shell, .kpi-page-shell) .report-portal-text {
    font-size: 12px;
    line-height: 1.35;
}

body:is(.attendance-page-shell, .daily-report-portal-shell, .overtime-page-shell, .kpi-page-shell) .form-grid {
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body:is(.attendance-page-shell, .daily-report-portal-shell, .overtime-page-shell, .kpi-page-shell) label {
    font-size: 11px;
    line-height: 1.25;
}

body:is(.attendance-page-shell, .daily-report-portal-shell, .overtime-page-shell, .kpi-page-shell) :is(input, select, textarea) {
    min-height: 34px;
    font-size: 12px;
    padding: 7px 9px;
}

body:is(.attendance-page-shell, .daily-report-portal-shell, .overtime-page-shell, .kpi-page-shell) textarea {
    min-height: 64px;
}

body:is(.attendance-page-shell, .daily-report-portal-shell, .overtime-page-shell, .kpi-page-shell) :is(button, .ghost-button) {
    min-height: 36px;
    padding: 7px 12px;
    font-size: 12px;
}

body.attendance-page-shell .attendance-portal-shell,
body.daily-report-portal-shell .page-content-bleed,
body.overtime-page-shell .page-content-bleed,
body.kpi-page-shell .page-content-bleed {
    gap: 10px;
}

body.attendance-page-shell .attendance-overview-card,
body.attendance-page-shell .attendance-capture-card {
    gap: 10px;
}

body.attendance-page-shell .attendance-capture-grid {
    grid-template-columns: minmax(230px, 340px) minmax(0, 1fr);
    gap: 10px;
}

body.attendance-page-shell .attendance-camera-frame {
    min-height: 220px;
    max-height: 260px;
    border-radius: 8px;
}

body.attendance-page-shell .attendance-camera-frame[data-camera-orientation="landscape"] {
    min-height: 210px;
}

body.attendance-page-shell .attendance-camera-actions {
    gap: 8px;
    margin-top: 8px;
}

body.attendance-page-shell .attendance-camera-actions > * {
    flex: 1 1 132px;
}

body.attendance-page-shell .attendance-form-panel {
    gap: 8px;
}

body.attendance-page-shell .attendance-optional-panel,
body.attendance-page-shell .attendance-log-detail {
    border-radius: 8px;
}

body.attendance-page-shell .attendance-optional-panel summary,
body.attendance-page-shell .attendance-log-detail summary,
body:is(.daily-report-portal-shell, .overtime-page-shell, .kpi-page-shell, .attendance-page-shell) .panel-summary {
    min-height: 36px;
    padding: 8px 10px;
}

body:is(.daily-report-portal-shell, .overtime-page-shell, .kpi-page-shell, .attendance-page-shell) .attendance-history-content,
body:is(.daily-report-portal-shell, .overtime-page-shell, .kpi-page-shell, .attendance-page-shell) .panel-content {
    display: grid;
    gap: 10px;
    padding-top: 10px;
}

body.attendance-page-shell .attendance-log-list,
body:is(.daily-report-portal-shell, .overtime-page-shell, .kpi-page-shell) .stack-scroll-list {
    gap: 8px;
    max-height: min(58vh, 420px);
    overflow: auto;
    overscroll-behavior: contain;
}

body.attendance-page-shell .attendance-log-card,
body:is(.daily-report-portal-shell, .overtime-page-shell, .kpi-page-shell) .stack-scroll-card {
    border-radius: 8px;
}

body.attendance-page-shell .attendance-log-toggle {
    padding: 10px 38px 10px 10px;
}

body.attendance-page-shell .attendance-log-body {
    gap: 10px;
    padding: 0 10px 10px;
}

body.attendance-page-shell .attendance-log-summary {
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(124px, 1fr));
}

body.kpi-page-shell .kpi-profile-strip {
    margin-bottom: 10px;
}

body.kpi-page-shell .attendance-table-scroll {
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow-x: auto;
}

body.kpi-page-shell .attendance-table-scroll table {
    min-width: 680px;
    font-size: 11px;
}

body.kpi-page-shell .attendance-table-scroll :is(th, td) {
    padding: 6px 8px;
}

body.schedule-self-page-shell .schedule-self-shell {
    display: grid;
    gap: 10px;
}

body.schedule-self-page-shell .schedule-self-filter,
body.schedule-self-page-shell .schedule-self-summary,
body.schedule-self-page-shell .schedule-self-list {
    gap: 8px;
}

body.schedule-self-page-shell .schedule-self-card,
body.schedule-self-page-shell .schedule-self-day {
    border-radius: 8px;
    padding: 8px 10px;
    min-width: 0;
}

body.schedule-self-page-shell .schedule-self-list {
    max-width: 100%;
    overflow-x: hidden;
}

body.internal-module-attendance-shell .internal-hub-shell {
    gap: 10px;
}

body.internal-module-attendance-shell .internal-hub-card {
    min-height: 0;
    padding: 10px;
}

body.internal-module-attendance-shell .internal-hub-card-copy h2 {
    font-size: 15px;
    line-height: 1.2;
}

body.internal-module-attendance-shell .internal-hub-card-copy p {
    font-size: 12px;
    line-height: 1.35;
}

@media (max-width: 760px) {
    body:is(.attendance-page-shell, .schedule-self-page-shell, .daily-report-portal-shell, .overtime-page-shell, .kpi-page-shell) .page-content,
    body:is(.attendance-page-shell, .schedule-self-page-shell, .daily-report-portal-shell, .overtime-page-shell, .kpi-page-shell) .page-content-bleed {
        max-width: 100%;
        padding-inline: 8px;
    }

    body:is(.attendance-page-shell, .daily-report-portal-shell, .overtime-page-shell, .kpi-page-shell) .form-grid,
    body.attendance-page-shell .attendance-capture-grid {
        grid-template-columns: 1fr;
    }

    body.attendance-page-shell .attendance-camera-frame {
        min-height: 180px;
        max-height: 220px;
        aspect-ratio: 4 / 3;
    }

    body.attendance-page-shell .attendance-camera-frame[data-camera-orientation="portrait"] {
        aspect-ratio: 4 / 3;
    }

    body.attendance-page-shell .attendance-submit-row,
    body:is(.daily-report-portal-shell, .overtime-page-shell, .kpi-page-shell) .attendance-submit-row {
        justify-content: stretch;
    }

    body.attendance-page-shell .attendance-submit-row button,
    body:is(.daily-report-portal-shell, .overtime-page-shell, .kpi-page-shell) .attendance-submit-row button {
        width: 100%;
    }

    body.kpi-page-shell .attendance-table-scroll table {
        min-width: 620px;
    }
}

body .attendance-cash-closing-card {
    display: grid;
    gap: 16px;
    scroll-margin-top: calc(112px + env(safe-area-inset-top));
}

body.pos-tool-page [data-cash-closing-cancel-edit][hidden],
body.pos-tool-page [data-cash-closing-edit-state][hidden],
body.pos-tool-page [data-cash-closing-debit-breakdown][hidden] {
    display: none !important;
}

body .attendance-cash-closing-toggle {
    border-radius: 22px;
    border: 1px solid rgba(116, 138, 165, 0.18);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 252, 0.95));
    box-shadow: 0 18px 34px rgba(36, 58, 84, 0.08);
    overflow: hidden;
}

body .attendance-cash-closing-toggle > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    background: linear-gradient(180deg, rgba(252, 254, 255, 0.98), rgba(239, 245, 250, 0.92));
}

body .attendance-cash-closing-toggle > summary::-webkit-details-marker {
    display: none;
}

body .attendance-cash-closing-toggle[open] > summary {
    border-bottom: 1px solid rgba(116, 138, 165, 0.16);
}

body .attendance-cash-closing-summary-text {
    display: grid;
    gap: 6px;
}

body .attendance-cash-closing-summary-text h2 {
    margin: 0;
}

body .attendance-cash-closing-summary-text p {
    margin: 0;
    color: #57708a;
    font-size: 0.84rem;
}

body .attendance-cash-closing-toggle .attendance-cash-closing-card {
    border: 0;
    background: transparent;
    padding: 16px 18px 18px;
}

body .attendance-cash-closing-form,
body .attendance-cash-closing-fields,
body .attendance-cash-closing-list {
    display: grid;
    gap: 16px;
}

body .attendance-cash-closing-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    align-items: start;
}

body .attendance-cash-closing-preview-panel {
    min-width: 0;
    display: grid;
    gap: 10px;
}

body .attendance-cash-closing-preview-label {
    margin: 0;
    color: #56718d;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body .attendance-cash-closing-preview,
body .attendance-cash-closing-sheet {
    margin: 0;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid rgba(116, 138, 165, 0.18);
    background:
        radial-gradient(circle at top right, rgba(33, 137, 255, 0.12), transparent 42%),
        linear-gradient(180deg, rgba(253, 254, 255, 0.98), rgba(236, 243, 249, 0.95));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    color: #18324c;
    font-family: var(--mono);
    font-size: 0.84rem;
    line-height: 1.72;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

body .attendance-cash-closing-item {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 22px;
    border: 1px solid rgba(116, 138, 165, 0.16);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 252, 0.94));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

body .attendance-cash-closing-item-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

body .attendance-cash-closing-item-head h3,
body .attendance-cash-closing-item-head p,
body .attendance-cash-closing-error {
    margin: 0;
}

body .attendance-cash-closing-item-head p,
body .attendance-cash-closing-error {
    color: #60768f;
}

body .attendance-cash-closing-error {
    font-size: 0.82rem;
}

body .report-portal-card,
body .report-review-text {
    min-width: 0;
}

body .report-feed-shell,
body .report-feed-panel,
body .report-feed-stack {
    display: grid;
    gap: 18px;
}

body .report-feed-panel .stack-scroll-list {
    display: grid;
    gap: 16px;
}

body .report-portal-text,
body .report-review-text {
    justify-content: flex-start;
    text-align: left;
    white-space: pre-wrap;
    line-height: 1.6;
    min-height: 78px;
}

body .report-status-stack,
body .report-review-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

body .attendance-history-list {
    display: grid;
    gap: 14px;
}

body .attendance-history-item {
    display: grid;
    gap: 14px;
    grid-template-columns: 104px minmax(0, 1fr);
    align-items: start;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 14px;
    background: var(--panel);
}

body .attendance-history-photo {
    width: 104px;
    height: 104px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: rgba(148, 163, 184, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-soft);
    font-size: 12px;
    text-align: center;
    padding: 10px;
}

body .attendance-history-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

body .attendance-history-meta {
    min-width: 0;
    display: grid;
    gap: 6px;
}

body .attendance-history-meta p {
    margin: 0;
}

body .attendance-history-head {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
}

body .biometric-photo-link {
    display: inline-flex;
    width: min(220px, 100%);
}

body .biometric-photo-preview {
    width: 100%;
    max-height: 220px;
    border-radius: 18px;
    border: 1px solid var(--line);
    object-fit: cover;
    display: block;
}

body .biometric-photo-empty {
    border: 1px dashed var(--line);
    border-radius: 18px;
    padding: 18px;
    color: var(--text-soft);
    background: rgba(148, 163, 184, 0.08);
}

body .biometric-photo-inline-link {
    color: var(--accent-strong);
    font-weight: 700;
    text-decoration: none;
}

body .biometric-photo-inline-link:hover {
    text-decoration: underline;
}

body .biometric-attendance-status-form {
    display: inline-flex;
    margin: 0;
}

body .biometric-attendance-time-form {
    display: block;
    width: 100%;
}

body .biometric-attendance-time-stack,
body .biometric-attendance-time-readonly {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 206px;
    flex-wrap: wrap;
}

body .biometric-attendance-time-pill,
body .biometric-attendance-time-readonly {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid #d6e2ef;
    border-radius: 999px;
    background: linear-gradient(180deg, #f8fbff 0%, #edf4fb 100%);
}

body .biometric-attendance-time-input {
    width: 84px;
    min-width: 84px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #18314f;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

body .biometric-attendance-time-input:focus {
    outline: none;
}

body .biometric-attendance-time-pill:focus-within {
    border-color: #91c2f2;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(93, 183, 255, 0.12);
}

body .biometric-attendance-time-input:disabled {
    opacity: 0.74;
    cursor: not-allowed;
}

body .biometric-attendance-time-pill.is-disabled {
    background: #f3f6fa;
}

body .biometric-attendance-time-divider {
    color: #8fa2b6;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
}

body .biometric-attendance-time-readonly-value {
    color: #18314f;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

body .biometric-attendance-time-submit {
    padding: 6px 12px;
    white-space: nowrap;
}

body .biometric-recap-table {
    min-width: 1940px;
    table-layout: auto;
}

body .biometric-recap-table th,
body .biometric-recap-table td {
    overflow-wrap: normal;
    word-break: normal;
}

body .biometric-recap-table th {
    white-space: nowrap;
}

body .biometric-recap-table td {
    white-space: normal;
}

body .biometric-recap-date-cell,
body .biometric-recap-code-cell,
body .biometric-recap-geo-cell,
body .biometric-recap-log-cell {
    white-space: nowrap;
}

body .biometric-recap-name-cell,
body .biometric-recap-warehouse-cell,
body .biometric-recap-shift-cell,
body .biometric-recap-location-cell,
body .biometric-recap-photo-cell,
body .biometric-recap-final-status-cell {
    overflow-wrap: break-word;
}

body .biometric-recap-name-cell {
    min-width: 154px;
}

body .biometric-recap-warehouse-cell {
    min-width: 148px;
}

body .biometric-recap-shift-cell {
    min-width: 228px;
}

body .biometric-recap-status-cell {
    min-width: 170px;
}

body .biometric-recap-break-cell {
    min-width: 150px;
}

body .biometric-recap-break-duration-cell {
    min-width: 168px;
}

body .biometric-recap-overtime-cell {
    min-width: 164px;
}

body .biometric-recap-attendance-cell {
    min-width: 252px;
}

body .biometric-recap-location-cell {
    min-width: 156px;
}

body .biometric-recap-coordinate-cell {
    min-width: 184px;
}

body .biometric-recap-photo-cell {
    min-width: 120px;
}

body .biometric-recap-final-status-cell {
    min-width: 142px;
}

body .biometric-attendance-status-select {
    min-width: 132px;
    min-height: 38px;
    padding: 8px 36px 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.42);
    color: #e5eefb;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: var(--mono);
    cursor: pointer;
}

body .biometric-recap-shift-cell .biometric-attendance-status-select {
    min-width: 220px;
}

body .biometric-recap-status-cell .biometric-attendance-status-select {
    min-width: 146px;
}

body .biometric-attendance-status-select:focus {
    outline: none;
    border-color: rgba(93, 183, 255, 0.6);
    box-shadow: 0 0 0 3px rgba(93, 183, 255, 0.14);
}

body .biometric-break-duration-stack {
    display: grid;
    gap: 4px;
    min-width: 110px;
}

body .biometric-break-duration {
    color: var(--text-strong);
    font-family: var(--mono);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.2;
    white-space: nowrap;
}

body .biometric-break-duration.is-live {
    color: #9fd5ff;
}

body .biometric-break-duration.is-alert {
    color: #ffb185;
}

body .biometric-break-reminder-alert {
    color: #ffb185;
    font-weight: 700;
}

@media (max-width: 900px) {
    body .biometric-recap-table {
        min-width: 1680px;
    }

    body .biometric-recap-shift-cell .biometric-attendance-status-select {
        min-width: 200px;
    }
}

body .biometric-overtime-stack {
    display: grid;
    gap: 6px;
    min-width: 180px;
}

body .biometric-overtime-head {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

body .biometric-overtime-duration {
    color: #8fe0a0;
    font-family: var(--mono);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.2;
    white-space: nowrap;
}

body .biometric-overtime-actions {
    gap: 8px;
    margin-top: 2px;
}

body .biometric-overtime-actions > form {
    margin: 0;
}

@media (max-width: 1080px) {
    body .attendance-capture-grid {
        grid-template-columns: 1fr;
    }

    body .attendance-capture-card {
        scroll-margin-top: calc(154px + env(safe-area-inset-top));
    }

    body .attendance-cash-closing-card {
        scroll-margin-top: calc(154px + env(safe-area-inset-top));
    }

    body .attendance-history-card {
        scroll-margin-top: calc(154px + env(safe-area-inset-top));
    }

    body .attendance-cash-closing-grid {
        grid-template-columns: 1fr;
    }

    body .attendance-camera-frame {
        min-height: 250px;
    }

    body .attendance-camera-frame[data-camera-orientation="landscape"] {
        min-height: 220px;
    }
}

@media (max-width: 720px) {
    body .attendance-portal-main .page-hero {
        padding: 14px 14px 12px;
        gap: 10px;
    }

    body .attendance-portal-main .page-hero .page-subtitle {
        font-size: 0.84rem;
        line-height: 1.45;
    }

    body .attendance-overview-head,
    body .attendance-overview-badges {
        align-items: stretch;
    }

    body .attendance-overview-badges {
        justify-content: flex-start;
    }

    body .attendance-overview-grid,
    body .attendance-form-quick-grid,
    body .attendance-form-panel .form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body .attendance-cash-closing-fields .form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body .attendance-log-head,
    body .attendance-log-event-meta,
    body .attendance-history-actions,
    body .attendance-cash-closing-item-head {
        align-items: stretch;
    }

    body .attendance-history-actions button,
    body .attendance-cash-closing-form button {
        width: 100%;
    }

    body .attendance-history-item {
        grid-template-columns: 1fr;
    }

    body .attendance-history-photo {
        width: 100%;
        height: 180px;
    }

    body .attendance-submit-row {
        justify-content: stretch;
    }

    body .attendance-submit-row button {
        width: 100%;
    }

    body .attendance-camera-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body .attendance-camera-actions > * {
        width: 100%;
        justify-content: center;
    }

    body .attendance-camera-frame {
        min-height: 220px;
    }
}

@media (max-width: 520px) {
    body .attendance-overview-grid,
    body .attendance-form-quick-grid,
    body .attendance-form-panel .form-grid {
        grid-template-columns: 1fr;
    }

    body .attendance-log-card {
        border-radius: 18px;
    }

    body .attendance-log-toggle {
        padding: 14px 46px 14px 14px;
    }

    body .attendance-log-body {
        padding: 0 14px 14px;
    }

    body .attendance-log-card-disclosure > .attendance-log-toggle::after {
        top: 20px;
        right: 16px;
    }

    body .attendance-log-detail summary,
    body .attendance-optional-panel summary {
        padding-inline: 12px;
    }

    body .attendance-log-events,
    body .attendance-log-edit-form,
    body .attendance-optional-panel-body {
        padding-left: 12px;
        padding-right: 12px;
        padding-bottom: 12px;
    }
}

/* Schedule Board Refresh */
body .schedule-board-shell {
    gap: 20px;
}

body .schedule-board-hero {
    align-items: start;
    gap: 20px;
    padding: 24px 26px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(82, 179, 255, 0.2), transparent 34%),
        linear-gradient(145deg, rgba(16, 35, 60, 0.96), rgba(8, 18, 33, 0.94));
    border: 1px solid rgba(93, 183, 255, 0.14);
    box-shadow:
        0 24px 48px rgba(1, 8, 18, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body .schedule-board-hero h3 {
    max-width: 760px;
    font-size: clamp(1.2rem, 1.1rem + 0.7vw, 1.7rem);
    line-height: 1.2;
}

body .schedule-board-hero p {
    max-width: 860px;
    margin-top: 10px;
    color: rgba(219, 231, 245, 0.8);
    line-height: 1.7;
}

body .schedule-board-hero-actions {
    gap: 14px;
}

body .schedule-board-hero-meta {
    gap: 10px;
}

body .schedule-board-hero-meta span {
    min-height: 40px;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(93, 183, 255, 0.1);
    border: 1px solid rgba(93, 183, 255, 0.12);
    color: #eff7ff;
}

body .schedule-board-lane-wrap {
    max-height: min(78vh, 920px);
    padding: 16px 18px 18px;
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(6, 14, 26, 0.82), rgba(10, 20, 35, 0.72)),
        rgba(5, 13, 24, 0.48);
    border: 1px solid rgba(93, 183, 255, 0.12);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        0 30px 60px rgba(1, 8, 18, 0.18);
}

body .schedule-board-lane {
    --schedule-day-column-width: 148px;
    gap: 20px;
}

body .schedule-board-lane-head,
body .schedule-lane-row {
    grid-template-columns: 272px minmax(0, 1fr);
    gap: 16px;
}

body .schedule-board-lane-head {
    padding-bottom: 4px;
}

body .schedule-board-lane-axis,
body .schedule-lane-member {
    border-radius: 26px;
    backdrop-filter: blur(16px);
}

body .schedule-board-lane-axis {
    min-height: 144px;
    padding: 22px;
    gap: 14px;
    background:
        radial-gradient(circle at top right, rgba(104, 201, 255, 0.18), transparent 34%),
        linear-gradient(180deg, rgba(17, 38, 68, 0.98), rgba(10, 22, 40, 0.96));
    border: 1px solid rgba(93, 183, 255, 0.16);
}

body .schedule-axis-range {
    display: grid;
    gap: 4px;
}

body .schedule-axis-range strong {
    color: #f7fbff;
    font-size: 1.22rem;
    line-height: 1.15;
}

body .schedule-axis-range span {
    color: rgba(219, 231, 245, 0.78);
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body .schedule-axis-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

body .schedule-axis-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(239, 247, 255, 0.9);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body .schedule-board-lane-axis p {
    margin-top: 0;
    color: rgba(219, 231, 245, 0.78);
}

body .schedule-board-lane-days,
body .schedule-lane-track {
    gap: 14px;
}

body .schedule-lane-day-card {
    min-height: 132px;
    padding: 16px;
    gap: 10px;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(93, 183, 255, 0.14), transparent 32%),
        linear-gradient(180deg, rgba(12, 26, 46, 0.98), rgba(8, 18, 33, 0.94));
    border: 1px solid rgba(93, 183, 255, 0.12);
}

body .schedule-lane-day-card-weekend {
    background:
        radial-gradient(circle at top right, rgba(123, 220, 255, 0.16), transparent 32%),
        linear-gradient(180deg, rgba(14, 30, 54, 0.98), rgba(10, 22, 39, 0.94));
    border-color: rgba(107, 212, 255, 0.16);
}

body .schedule-lane-day-top {
    gap: 10px;
}

body .schedule-lane-day-short {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(93, 183, 255, 0.12);
    color: #dff2ff;
    letter-spacing: 0.08em;
}

body .schedule-lane-day-date {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(239, 247, 255, 0.92);
    font-family: var(--mono);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

body .schedule-lane-day-card strong {
    font-size: 1rem;
    line-height: 1.35;
}

body .schedule-lane-day-note {
    color: rgba(219, 231, 245, 0.78);
    font-size: 0.78rem;
    line-height: 1.5;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    -webkit-line-clamp: 2;
}

body .schedule-lane-day-note-muted {
    color: rgba(219, 231, 245, 0.54);
}

body .schedule-lane-group {
    gap: 14px;
}

body .schedule-lane-group-head {
    padding: 14px 16px;
    border-radius: 22px;
    background: rgba(10, 22, 39, 0.78);
    border: 1px solid rgba(93, 183, 255, 0.1);
}

body .schedule-lane-group-head strong {
    font-size: 1.04rem;
}

body .schedule-lane-group-rows {
    gap: 14px;
}

body .schedule-lane-member {
    min-height: 118px;
    padding: 16px;
    background:
        radial-gradient(circle at top right, rgba(93, 183, 255, 0.14), transparent 34%),
        linear-gradient(180deg, rgba(17, 36, 63, 0.98), rgba(10, 22, 40, 0.94));
    border: 1px solid rgba(93, 183, 255, 0.14);
}

body .schedule-lane-member-shell {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

body .schedule-lane-member-avatar {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(67, 145, 255, 0.95), rgba(21, 74, 168, 0.94));
    color: #f7fbff;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow:
        0 16px 28px rgba(1, 8, 18, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

body .schedule-lane-member-body {
    display: grid;
    gap: 8px;
    min-width: 0;
}

body .schedule-member-name-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

body .schedule-member-status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 159, 67, 0.14);
    border: 1px solid rgba(255, 159, 67, 0.16);
    color: #ffd9a7;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body .schedule-lane-member strong {
    font-size: 1.08rem;
}

body .schedule-lane-member p {
    font-size: 0.88rem;
    color: rgba(219, 231, 245, 0.8);
}

body .schedule-lane-member small {
    font-size: 0.78rem;
    color: rgba(219, 231, 245, 0.62);
}

body .schedule-lane-cell {
    position: relative;
    min-height: 118px;
    padding: 14px;
    gap: 10px;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(9, 19, 34, 0.96), rgba(7, 16, 29, 0.92));
    border: 1px solid rgba(93, 183, 255, 0.1);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 12px 24px rgba(1, 8, 18, 0.12);
}

body .schedule-lane-cell::before {
    content: "";
    position: absolute;
    inset: 12px auto 12px 0;
    width: 4px;
    border-radius: 999px;
    background: rgba(93, 183, 255, 0.24);
}

body .schedule-lane-cell-weekend {
    background:
        linear-gradient(180deg, rgba(11, 24, 44, 0.98), rgba(8, 18, 33, 0.94));
}

body .schedule-lane-cell-auto {
    border-color: rgba(107, 212, 255, 0.18);
}

body .schedule-lane-cell-auto::before {
    background: linear-gradient(180deg, #88e5ff, #3ca6ff);
}

body .schedule-lane-cell .schedule-chip {
    min-width: 72px;
    min-height: 40px;
    padding-inline: 12px;
    border-radius: 14px;
    font-size: 0.82rem;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.18),
        0 10px 18px rgba(1, 8, 18, 0.16);
}

body .schedule-lane-cell-top {
    gap: 10px;
}

body .schedule-lane-cell-tone {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(239, 247, 255, 0.88);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body .schedule-lane-cell-tone-auto {
    background: rgba(93, 183, 255, 0.14);
    border-color: rgba(93, 183, 255, 0.18);
    color: #dff2ff;
}

body .schedule-lane-cell-tone-manual {
    background: rgba(255, 191, 71, 0.12);
    border-color: rgba(255, 191, 71, 0.16);
    color: #ffe1a0;
}

body .schedule-lane-cell-tone-open {
    color: rgba(219, 231, 245, 0.66);
}

body .schedule-empty {
    color: rgba(219, 231, 245, 0.82);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body .schedule-lane-cell-label {
    font-size: 0.92rem;
    line-height: 1.4;
}

body .schedule-lane-cell-meta {
    color: rgba(219, 231, 245, 0.72);
    font-size: 0.78rem;
    line-height: 1.5;
}

body .schedule-slot-dot {
    width: 9px;
    height: 9px;
    box-shadow: 0 0 0 3px rgba(255, 191, 71, 0.14);
}

body .schedule-board-lane-wrap[data-schedule-density="compact"] {
    padding: 12px 14px 14px;
}

body .schedule-board-lane-wrap[data-schedule-density="compact"] .schedule-board-lane {
    --schedule-day-column-width: 126px;
    gap: 16px;
}

body .schedule-board-lane-wrap[data-schedule-density="compact"] .schedule-board-lane-head,
body .schedule-board-lane-wrap[data-schedule-density="compact"] .schedule-lane-row {
    grid-template-columns: 236px minmax(0, 1fr);
    gap: 12px;
}

body .schedule-board-lane-wrap[data-schedule-density="compact"] .schedule-board-lane-axis,
body .schedule-board-lane-wrap[data-schedule-density="compact"] .schedule-lane-day-card {
    min-height: 112px;
    padding: 14px;
}

body .schedule-board-lane-wrap[data-schedule-density="compact"] .schedule-lane-member,
body .schedule-board-lane-wrap[data-schedule-density="compact"] .schedule-lane-cell {
    min-height: 96px;
    padding: 12px;
}

body .schedule-board-lane-wrap[data-schedule-density="compact"] .schedule-lane-member-shell {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
}

body .schedule-board-lane-wrap[data-schedule-density="compact"] .schedule-lane-member-avatar {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    font-size: 0.88rem;
}

body .schedule-board-lane-wrap[data-schedule-density="compact"] .schedule-axis-range strong,
body .schedule-board-lane-wrap[data-schedule-density="compact"] .schedule-lane-member strong {
    font-size: 0.98rem;
}

body .schedule-board-lane-wrap[data-schedule-density="compact"] .schedule-lane-day-card strong {
    font-size: 0.9rem;
}

body .schedule-board-lane-wrap[data-schedule-density="compact"] .schedule-lane-cell-label {
    font-size: 0.82rem;
}

body .schedule-board-lane-wrap[data-schedule-density="compact"] .schedule-lane-day-note,
body .schedule-board-lane-wrap[data-schedule-density="compact"] .schedule-lane-cell-meta {
    font-size: 0.72rem;
    line-clamp: 2;
    -webkit-line-clamp: 2;
}

@media (max-width: 1080px) {
    body .schedule-board-lane {
        --schedule-day-column-width: 136px;
    }

    body .schedule-board-lane-head,
    body .schedule-lane-row {
        grid-template-columns: 242px minmax(0, 1fr);
    }

    body .schedule-axis-meta {
        gap: 8px;
    }
}

@media (max-width: 720px) {
    body .schedule-board-hero {
        padding: 18px;
        border-radius: 22px;
    }

    body .schedule-board-lane-wrap {
        max-height: 70vh;
        padding: 10px;
        border-radius: 22px;
    }

    body .schedule-board-lane {
        --schedule-day-column-width: 120px;
        gap: 14px;
    }

    body .schedule-board-lane-head,
    body .schedule-lane-row {
        grid-template-columns: minmax(78vw, 84vw) minmax(0, 1fr);
        gap: 10px;
    }

    body .schedule-board-lane-axis,
    body .schedule-lane-member {
        width: min(84vw, 320px);
    }

    body .schedule-board-lane-axis,
    body .schedule-lane-day-card,
    body .schedule-lane-member,
    body .schedule-lane-cell {
        min-height: 92px;
        padding: 12px;
        border-radius: 18px;
    }

    body .schedule-axis-meta {
        display: grid;
        grid-template-columns: 1fr;
    }

    body .schedule-lane-member-shell {
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 10px;
    }

    body .schedule-lane-member-avatar {
        width: 46px;
        height: 46px;
        border-radius: 15px;
        font-size: 0.82rem;
    }

    body .schedule-lane-day-card strong {
        font-size: 0.88rem;
    }

    body .schedule-lane-cell-label {
        font-size: 0.8rem;
    }

    body .schedule-lane-day-note,
    body .schedule-lane-cell-meta {
        font-size: 0.7rem;
        line-clamp: 2;
        -webkit-line-clamp: 2;
    }
}

@media (max-width: 540px) {
    body .schedule-board-lane {
        --schedule-day-column-width: 112px;
    }

    body .schedule-lane-day-date,
    body .schedule-lane-cell-tone,
    body .schedule-axis-meta span {
        font-size: 0.62rem;
    }

    body .schedule-axis-range strong {
        font-size: 1.02rem;
    }
}

body .schedule-matrix-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

body .schedule-matrix-toolbar h3 {
    margin: 10px 0 8px;
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    color: #f3f8ff;
}

body .schedule-matrix-toolbar p {
    margin: 0;
    max-width: 760px;
    color: var(--text-muted);
    line-height: 1.6;
}

body .schedule-matrix-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

body .schedule-matrix-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #d7e6fb;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body .schedule-board-action-hint {
    margin: 10px 0 0;
    color: rgba(203, 218, 238, 0.86);
    font-size: 0.84rem;
    line-height: 1.45;
    font-weight: 600;
}

body .schedule-matrix-wrap {
    position: relative;
    isolation: isolate;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 6px;
    border-radius: 24px;
    border: 1px solid rgba(115, 156, 214, 0.18);
    background: linear-gradient(180deg, rgba(11, 23, 40, 0.92), rgba(8, 18, 32, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable both-edges;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto;
}

body .schedule-matrix {
    width: max-content;
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
}

body .schedule-matrix thead th {
    position: sticky;
    top: 0;
    z-index: 4;
    padding: 14px 16px 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body .schedule-matrix-date-head {
    position: sticky;
    left: 0;
    z-index: 8;
    min-width: 252px;
    width: 252px;
    background: linear-gradient(180deg, #7d123e, #5f1838);
    color: #fef7fb;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-shadow: 14px 0 26px rgba(4, 12, 22, 0.34);
    background-clip: padding-box;
}

body .schedule-matrix-date-head-label {
    display: block;
}

body .schedule-matrix-date-head small {
    display: block;
    margin-top: 8px;
    color: rgba(254, 247, 251, 0.82);
    font-size: 0.68rem;
    line-height: 1.45;
    letter-spacing: 0.04em;
    text-transform: none;
}

body .schedule-matrix-member-head {
    min-width: 148px;
    width: 148px;
    background: linear-gradient(180deg, #4b88dd 0%, #2f69c0 100%);
    color: #f8fbff;
    text-align: center;
    vertical-align: top;
}

body .schedule-matrix-member-head strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.92rem;
    line-height: 1.2;
    white-space: normal;
    overflow-wrap: anywhere;
}

body .schedule-matrix-member-head small {
    display: block;
    margin: 0;
    color: rgba(236, 245, 255, 0.92);
    font-size: 0.73rem;
    line-height: 1.3;
    white-space: normal;
    overflow-wrap: anywhere;
}

body .schedule-matrix tbody th,
body .schedule-matrix tbody td {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body .schedule-matrix-date-cell {
    position: sticky;
    left: 0;
    z-index: 5;
    min-width: 252px;
    width: 252px;
    padding: 10px 14px;
    background: rgba(11, 21, 36, 0.98);
    color: #edf5ff;
    text-align: left;
    box-shadow: 14px 0 26px rgba(4, 12, 22, 0.22);
    background-clip: padding-box;
}

body .schedule-matrix-date-main {
    display: grid;
    gap: 4px;
}

body .schedule-matrix-date-day {
    color: #f5f9ff;
    font-size: 0.94rem;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body .schedule-matrix-date-value {
    color: rgba(202, 219, 239, 0.92);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.04em;
    white-space: normal;
    overflow-wrap: anywhere;
}

body .schedule-matrix-date-meta {
    display: grid;
    gap: 6px;
    margin-top: 8px;
}

body .schedule-date-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 24px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(104, 211, 145, 0.18);
    border: 1px solid rgba(104, 211, 145, 0.24);
    color: #c8ffe0;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body .schedule-matrix-date-note {
    color: #9fc6ff;
    font-size: 0.74rem;
    line-height: 1.35;
    font-weight: 600;
    white-space: normal;
    overflow-wrap: anywhere;
}

body .schedule-matrix-cell {
    min-width: 148px;
    width: 148px;
    min-height: 74px;
    padding: 8px 10px;
    background: rgba(10, 19, 33, 0.96);
    text-align: center;
    vertical-align: middle;
}

body .schedule-matrix-cell[data-schedule-entry-cell="1"],
body .schedule-live-cell[data-schedule-live-cell="1"] {
    cursor: context-menu;
    touch-action: pan-x pan-y;
    -webkit-touch-callout: none;
}

body .schedule-matrix-cell[data-schedule-entry-cell="1"]:hover,
body .schedule-live-cell[data-schedule-live-cell="1"]:hover {
    box-shadow:
        inset 0 0 0 1px rgba(111, 191, 255, 0.22),
        0 10px 22px rgba(4, 10, 20, 0.18);
}

body .schedule-matrix-cell.is-touch-armed,
body .schedule-live-cell.is-touch-armed {
    box-shadow:
        inset 0 0 0 2px rgba(111, 191, 255, 0.28),
        0 12px 28px rgba(4, 10, 20, 0.22);
}

body .schedule-matrix tbody tr.is-weekend .schedule-matrix-date-cell,
body .schedule-matrix tbody tr.is-weekend .schedule-matrix-cell {
    background: rgba(14, 25, 42, 0.98);
}

body .schedule-matrix-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    min-height: 34px;
    padding: 6px 12px;
    border: 1px solid var(--schedule-chip-border-dark, rgba(243, 248, 255, 0.12));
    border-radius: 12px;
    background: var(--schedule-chip-bg-dark, #31465f);
    color: var(--schedule-chip-color-dark, #f3f8ff);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
    font-size: 0.86rem;
    font-weight: 900;
    letter-spacing: 0.04em;
}

body .schedule-matrix-cell-label {
    display: block;
    margin-top: 6px;
    color: #9ab0c9;
    font-size: 0.72rem;
    line-height: 1.3;
    white-space: normal;
    overflow-wrap: anywhere;
}

body .schedule-matrix-empty {
    display: inline-block;
    color: rgba(236, 244, 255, 0.92);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

html[data-theme="light"] body .schedule-matrix-wrap {
    border-color: rgba(32, 88, 166, 0.14);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 247, 253, 0.98));
}

html[data-theme="light"] body .schedule-matrix thead th {
    border-right-color: rgba(62, 108, 170, 0.12);
    border-bottom-color: rgba(62, 108, 170, 0.12);
    color: #17304a;
}

html[data-theme="light"] body .schedule-matrix-date-head {
    background: linear-gradient(180deg, rgba(221, 234, 249, 0.98), rgba(204, 221, 242, 0.98));
    color: #17304a;
}

html[data-theme="light"] body .schedule-matrix-date-head small {
    color: #63809d;
}

html[data-theme="light"] body .schedule-matrix-member-head {
    background: linear-gradient(180deg, rgba(237, 244, 252, 0.98), rgba(223, 235, 248, 0.98));
    color: #17304a;
}

html[data-theme="light"] body .schedule-matrix-date-cell {
    background: rgba(247, 250, 254, 0.98);
    color: #13304f;
    box-shadow: 12px 0 24px rgba(33, 71, 119, 0.12);
}

html[data-theme="light"] body .schedule-matrix-date-day {
    color: #17304a;
}

html[data-theme="light"] body .schedule-matrix-date-value,
html[data-theme="light"] body .schedule-matrix-cell-label {
    color: #5e7894;
}

html[data-theme="light"] body .schedule-matrix tbody tr.is-weekend .schedule-matrix-date-cell,
html[data-theme="light"] body .schedule-matrix tbody tr.is-weekend .schedule-matrix-cell {
    background: rgba(239, 245, 252, 0.98);
}

html[data-theme="light"] body .schedule-matrix-cell {
    background: rgba(255, 255, 255, 0.98);
}

html[data-theme="light"] body :is(.schedule-chip, .schedule-matrix-pill) {
    background: var(--schedule-chip-bg-light);
    color: var(--schedule-chip-color-light);
    border-color: var(--schedule-chip-border-light);
}

html[data-theme="light"] body .schedule-matrix-empty {
    color: #36516f;
}

body .schedule-live-shell {
    margin-top: 20px;
}

body .schedule-live-batch-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid rgba(167, 190, 221, 0.14);
    background: linear-gradient(180deg, rgba(17, 29, 49, 0.96), rgba(12, 23, 39, 0.96));
    box-shadow: 0 18px 32px rgba(3, 10, 20, 0.18);
}

body .schedule-live-batch-toolbar strong {
    display: block;
    color: #f4f9ff;
    font-size: 0.98rem;
}

body .schedule-live-batch-toolbar p {
    margin: 6px 0 0;
    color: rgba(210, 223, 240, 0.82);
    font-size: 0.88rem;
    line-height: 1.45;
}

body .schedule-live-batch-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

body .schedule-live-batch-button {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 14px;
    border: 1px solid rgba(145, 183, 116, 0.24);
    background: linear-gradient(180deg, #d6ecb4 0%, #b8d98d 100%);
    color: #1d3418;
    font-size: 0.88rem;
    font-weight: 800;
    box-shadow: 0 14px 24px rgba(92, 127, 54, 0.12);
    transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

body .schedule-live-batch-button.is-secondary {
    border-color: rgba(166, 188, 219, 0.16);
    background: rgba(24, 38, 60, 0.92);
    color: #d7e6f7;
    box-shadow: none;
}

body .schedule-live-batch-button:hover:not(:disabled),
body .schedule-live-batch-button:focus-visible:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 18px 26px rgba(90, 124, 54, 0.16);
}

body .schedule-live-batch-button.is-secondary:hover:not(:disabled),
body .schedule-live-batch-button.is-secondary:focus-visible:not(:disabled) {
    box-shadow: 0 12px 20px rgba(6, 13, 24, 0.18);
}

body .schedule-live-batch-button:disabled {
    cursor: not-allowed;
    opacity: 0.56;
    transform: none;
    box-shadow: none;
}

body .schedule-live-section + .schedule-live-section {
    margin-top: 20px;
}

body .schedule-live-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

body .schedule-live-section-head h3 {
    margin: 10px 0 6px;
    font-size: 1.28rem;
    color: #f7fbff;
}

body .schedule-live-section-head p {
    margin: 0;
    color: rgba(217, 230, 246, 0.82);
    font-size: 0.92rem;
}

body .schedule-live-section-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

body .schedule-live-section-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(20, 34, 57, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(223, 234, 247, 0.88);
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body .schedule-live-wrap {
    position: relative;
    isolation: isolate;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 6px;
    border-radius: 24px;
    border: 1px solid rgba(90, 126, 177, 0.22);
    background: linear-gradient(180deg, rgba(13, 23, 40, 0.98), rgba(10, 18, 32, 0.98));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    scrollbar-gutter: stable both-edges;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto;
}

body .schedule-live-table {
    width: max-content;
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
}

body .schedule-live-table thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    padding: 14px 10px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
    font-weight: 800;
    color: #ffffff;
    text-align: center;
}

body .schedule-live-date-head {
    position: sticky;
    left: 0;
    z-index: 8;
    min-width: 248px;
    background: linear-gradient(180deg, #233854 0%, #17283f 100%);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: 14px 0 26px rgba(4, 12, 22, 0.34);
    background-clip: padding-box;
}

body .schedule-live-slot-head {
    min-width: 126px;
    background: linear-gradient(180deg, #2a4f78 0%, #1d3756 100%);
}

body .schedule-live-date-cell {
    position: sticky;
    left: 0;
    z-index: 5;
    min-width: 248px;
    padding: 13px 14px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(12, 23, 39, 0.98);
    color: #f4f8ff;
    text-align: left;
    box-shadow: 14px 0 26px rgba(4, 12, 22, 0.22);
    background-clip: padding-box;
}

body .schedule-live-date-main {
    display: grid;
    gap: 4px;
}

body .schedule-live-date-day {
    color: #f6fbff;
    font-size: 0.94rem;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body .schedule-live-date-value {
    color: rgba(206, 220, 238, 0.92);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.04em;
}

body .schedule-live-cell {
    --schedule-live-person-color: var(--schedule-live-person-color-dark, #f2f7ff);
    --schedule-live-channel-color: var(--schedule-live-channel-color-dark, rgba(214, 226, 240, 0.9));
    --schedule-live-note-color: var(--schedule-live-note-color-dark, rgba(181, 198, 221, 0.92));
    --schedule-live-check-bg: var(--schedule-live-check-bg-dark, rgba(38, 55, 82, 0.58));
    --schedule-live-check-border: var(--schedule-live-check-border-dark, rgba(151, 174, 208, 0.28));
    --schedule-live-check-color: var(--schedule-live-check-color-dark, transparent);
    --schedule-live-cell-border: var(--schedule-live-cell-border-dark, rgba(111, 139, 82, 0.28));
    --schedule-live-cell-shadow: var(--schedule-live-cell-shadow-dark, rgba(126, 151, 95, 0.2));
    min-width: 126px;
    min-height: 92px;
    padding: 8px 8px 10px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(11, 20, 35, 0.98);
    text-align: center;
    vertical-align: middle;
}

body .schedule-live-table tbody tr.is-weekend .schedule-live-date-cell,
body .schedule-live-table tbody tr.is-weekend .schedule-live-cell {
    background: rgba(14, 25, 42, 0.99);
}

body .schedule-live-cell.is-filled {
    background: var(--schedule-live-cell-bg-dark, linear-gradient(90deg, rgba(201, 219, 156, 0.92) 0%, rgba(225, 237, 193, 0.98) 28%, rgba(197, 216, 153, 0.96) 100%));
    border-right-color: var(--schedule-live-cell-border);
    border-bottom-color: var(--schedule-live-cell-border);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        inset 0 0 0 1px rgba(112, 138, 84, 0.08),
        0 10px 18px var(--schedule-live-cell-shadow);
}

body .schedule-live-table tbody tr.is-weekend .schedule-live-cell.is-filled {
    background: var(--schedule-live-cell-bg-dark, linear-gradient(90deg, rgba(194, 211, 149, 0.94) 0%, rgba(216, 229, 183, 0.98) 28%, rgba(188, 207, 145, 0.96) 100%));
}

body .schedule-live-cell.is-checked {
    box-shadow:
        inset 0 0 0 1px rgba(86, 121, 62, 0.16),
        0 10px 20px rgba(45, 69, 28, 0.12);
}

body .schedule-live-cell.has-pending-check-change {
    box-shadow:
        inset 0 0 0 2px rgba(92, 183, 255, 0.28),
        0 0 0 1px rgba(92, 183, 255, 0.12),
        0 14px 28px rgba(11, 39, 69, 0.18);
}

body .schedule-live-person {
    display: block;
    color: var(--schedule-live-person-color);
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.15;
    white-space: normal;
    overflow-wrap: anywhere;
}

body .schedule-live-channel {
    display: block;
    margin-top: 4px;
    color: var(--schedule-live-channel-color);
    font-size: 0.72rem;
    line-height: 1.28;
    font-weight: 700;
    white-space: normal;
    overflow-wrap: anywhere;
}

body .schedule-live-note {
    display: block;
    margin-top: 5px;
    color: var(--schedule-live-note-color);
    font-size: 0.68rem;
    line-height: 1.28;
    font-weight: 700;
    white-space: normal;
    overflow-wrap: anywhere;
}

body .schedule-live-status {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

body .schedule-live-check {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--schedule-live-check-bg);
    border: 1px solid var(--schedule-live-check-border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body .schedule-live-check.is-checked {
    background: linear-gradient(180deg, rgba(247, 254, 238, 0.95), rgba(228, 241, 208, 0.96));
    border-color: rgba(90, 126, 64, 0.38);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.34),
        0 8px 16px rgba(90, 126, 64, 0.12);
}

body .schedule-live-check-mark {
    color: var(--schedule-live-check-color);
    font-size: 0.88rem;
    font-weight: 900;
    line-height: 1;
}

body .schedule-live-empty {
    display: inline-block;
    color: rgba(217, 228, 244, 0.72);
    font-size: 1.02rem;
    font-weight: 700;
}

html[data-theme="light"] body .schedule-live-wrap {
    border-color: rgba(32, 88, 166, 0.14);
    background: rgba(255, 255, 255, 0.98);
}

html[data-theme="light"] body .schedule-live-table thead th {
    border-right-color: rgba(62, 108, 170, 0.12);
    border-bottom-color: rgba(62, 108, 170, 0.12);
    color: #17304a;
}

html[data-theme="light"] body .schedule-live-date-head {
    background: linear-gradient(180deg, rgba(221, 234, 249, 0.98), rgba(204, 221, 242, 0.98));
    color: #17304a;
}

html[data-theme="light"] body .schedule-live-slot-head {
    background: linear-gradient(180deg, rgba(240, 246, 253, 0.98), rgba(223, 235, 248, 0.98));
    color: #17304a;
}

html[data-theme="light"] body .schedule-live-date-cell {
    background: rgba(244, 248, 252, 0.98);
    color: #17304a;
    box-shadow: 12px 0 24px rgba(33, 71, 119, 0.12);
}

html[data-theme="light"] body .schedule-live-date-day {
    color: #17304a;
}

html[data-theme="light"] body .schedule-live-date-value {
    color: #5e7894;
}

html[data-theme="light"] body .schedule-live-table tbody tr.is-weekend .schedule-live-date-cell,
html[data-theme="light"] body .schedule-live-table tbody tr.is-weekend .schedule-live-cell {
    background: rgba(240, 246, 251, 0.98);
}

html[data-theme="light"] body .schedule-live-cell {
    background: rgba(255, 255, 255, 0.98);
    --schedule-live-person-color: var(--schedule-live-person-color-light, #17304a);
    --schedule-live-channel-color: var(--schedule-live-channel-color-light, #4a6280);
    --schedule-live-note-color: var(--schedule-live-note-color-light, #6a5b38);
    --schedule-live-check-bg: var(--schedule-live-check-bg-light, rgba(221, 232, 245, 0.96));
    --schedule-live-check-border: var(--schedule-live-check-border-light, rgba(132, 161, 198, 0.38));
    --schedule-live-check-color: var(--schedule-live-check-color-light, #17304a);
    --schedule-live-cell-border: var(--schedule-live-cell-border-light, rgba(111, 139, 82, 0.24));
    --schedule-live-cell-shadow: var(--schedule-live-cell-shadow-light, rgba(126, 151, 95, 0.12));
}

html[data-theme="light"] body .schedule-live-cell.is-filled,
html[data-theme="light"] body .schedule-live-table tbody tr.is-weekend .schedule-live-cell.is-filled {
    background: var(--schedule-live-cell-bg-light, linear-gradient(90deg, rgba(209, 225, 173, 0.96) 0%, rgba(233, 242, 208, 0.98) 28%, rgba(204, 221, 167, 0.98) 100%));
    border-right-color: var(--schedule-live-cell-border);
    border-bottom-color: var(--schedule-live-cell-border);
}

html[data-theme="light"] body .schedule-live-section-head p {
    color: #5f7691;
}

html[data-theme="light"] body .schedule-live-section-meta span {
    background: rgba(236, 243, 250, 0.98);
    border-color: rgba(74, 110, 157, 0.16);
    color: #214264;
}

html[data-theme="light"] body .schedule-live-empty {
    color: #47637f;
}

html[data-theme="light"] body .schedule-live-batch-toolbar {
    border-color: rgba(62, 108, 170, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.98));
    box-shadow: 0 18px 32px rgba(23, 52, 86, 0.1);
}

html[data-theme="light"] body .schedule-live-batch-toolbar strong {
    color: #17304a;
}

html[data-theme="light"] body .schedule-live-batch-toolbar p {
    color: #5f7691;
}

html[data-theme="light"] body .schedule-live-batch-button.is-secondary {
    border-color: rgba(74, 110, 157, 0.16);
    background: rgba(236, 243, 250, 0.98);
    color: #214264;
}

html[data-theme="light"] body .schedule-context-menu {
    border-color: rgba(44, 93, 159, 0.14);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.98));
    box-shadow: 0 24px 48px rgba(26, 54, 93, 0.16);
}

html[data-theme="light"] body .schedule-context-menu button {
    color: #17304a;
}

html[data-theme="light"] body .schedule-context-menu button:hover {
    color: #0d2742;
}

html[data-theme="light"] body .schedule-board-action-hint {
    color: #496480;
}

html[data-theme="light"] body .schedule-matrix-toolbar h3 {
    color: #17304a;
}

html[data-theme="light"] body .schedule-matrix-toolbar p {
    color: #5f7691;
}

html[data-theme="light"] body .schedule-matrix-meta span {
    background: rgba(236, 243, 250, 0.98);
    border-color: rgba(74, 110, 157, 0.16);
    color: #214264;
}

body .schedule-context-menu {
    position: fixed;
    z-index: 1400;
    min-width: 220px;
    padding: 10px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: linear-gradient(180deg, rgba(10, 18, 32, 0.98), rgba(8, 15, 28, 0.98));
    box-shadow: 0 24px 48px rgba(2, 8, 18, 0.3);
}

body .schedule-context-menu button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 44px;
    padding: 10px 14px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--text-strong);
    font-size: 0.92rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

body .schedule-context-menu button:hover {
    background: rgba(93, 183, 255, 0.12);
    color: #f8fbff;
}

body .schedule-context-menu button[data-schedule-context-action="delete"]:hover {
    background: rgba(255, 117, 117, 0.14);
}

body .schedule-live-check-button {
    padding: 0;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

body .schedule-live-check-button:hover,
body .schedule-live-check-button:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(98, 132, 70, 0.42);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 10px 18px rgba(88, 118, 63, 0.14);
}

@media (max-width: 1080px) {
    body .schedule-matrix-date-head,
    body .schedule-matrix-date-cell {
        min-width: 228px;
        width: 228px;
    }

    body .schedule-matrix-member-head,
    body .schedule-matrix-cell {
        min-width: 132px;
        width: 132px;
    }

    body .schedule-live-date-head,
    body .schedule-live-date-cell {
        min-width: 224px;
    }

    body .schedule-live-slot-head,
    body .schedule-live-cell {
        min-width: 114px;
    }
}

@media (max-width: 640px) {
    body .schedule-matrix-toolbar {
        gap: 14px;
    }

    body .schedule-matrix-toolbar h3 {
        font-size: 1.05rem;
    }

    body .schedule-matrix-date-head,
    body .schedule-matrix-date-cell {
        min-width: 196px;
        width: 196px;
    }

    body .schedule-matrix-member-head,
    body .schedule-matrix-cell {
        min-width: 110px;
        width: 110px;
    }

    body .schedule-matrix thead th {
        padding: 12px 10px 10px;
    }

    body .schedule-matrix-date-cell {
        padding: 10px 10px;
    }

    body .schedule-matrix-date-main,
    body .schedule-live-date-main {
        gap: 3px;
    }

    body .schedule-matrix-date-day,
    body .schedule-live-date-day {
        font-size: 0.8rem;
    }

    body .schedule-matrix-date-value,
    body .schedule-live-date-value {
        font-size: 0.72rem;
    }

    body .schedule-date-badge {
        min-height: 22px;
        padding-inline: 8px;
        font-size: 0.64rem;
    }

    body .schedule-matrix-member-head strong {
        font-size: 0.84rem;
    }

    body .schedule-matrix-member-head small,
    body .schedule-matrix-cell-label {
        font-size: 0.67rem;
    }

    body .schedule-live-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    body .schedule-live-batch-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    body .schedule-live-batch-actions {
        width: 100%;
        justify-content: stretch;
    }

    body .schedule-live-batch-button {
        width: 100%;
    }

    body .schedule-live-date-head,
    body .schedule-live-date-cell {
        min-width: 190px;
    }

    body .schedule-live-slot-head,
    body .schedule-live-cell {
        min-width: 102px;
    }

    body .schedule-live-date-cell {
        padding: 10px 10px;
        font-size: 0.82rem;
    }

    body .schedule-live-person {
        font-size: 0.82rem;
    }

    body .schedule-live-channel,
    body .schedule-live-note {
        font-size: 0.66rem;
    }
}

body .meeting-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

body .meeting-page-actions {
    justify-content: flex-end;
}

body .meeting-portal-shell {
    overflow: hidden;
}

body .meeting-portal-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.95fr);
    gap: 20px;
    align-items: start;
}

body .meeting-join-form {
    display: grid;
    gap: 22px;
}

body .meeting-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

body .meeting-field-grid label {
    margin-bottom: 0;
}

body .meeting-form-note {
    display: grid;
    gap: 10px;
    align-content: start;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(93, 183, 255, 0.14);
    background: linear-gradient(180deg, rgba(9, 20, 35, 0.78), rgba(7, 17, 31, 0.9));
}

body .meeting-form-note p {
    margin: 0;
    color: var(--text);
    line-height: 1.6;
}

body .meeting-profile-stack {
    display: grid;
    gap: 14px;
}

body .section-title.compact h3 {
    margin: 0;
    font-size: 1.05rem;
}

body .section-title.compact p {
    margin-top: 6px;
    color: var(--text-soft);
}

body .meeting-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

body .meeting-profile-card {
    display: grid;
    gap: 10px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(93, 183, 255, 0.14);
    background: linear-gradient(180deg, rgba(10, 23, 40, 0.82), rgba(7, 18, 32, 0.9));
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

body .meeting-profile-card:hover,
body .meeting-profile-card.is-selected {
    transform: translateY(-2px);
    border-color: rgba(93, 183, 255, 0.42);
    box-shadow: 0 18px 32px rgba(7, 17, 31, 0.18);
}

body .meeting-profile-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

body .meeting-profile-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

body .meeting-profile-card p,
body .meeting-profile-card small {
    margin: 0;
}

body .meeting-profile-card p {
    color: var(--text);
    line-height: 1.55;
}

body .meeting-profile-card small {
    color: var(--text-muted);
}

body .meeting-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

body .meeting-form-actions .ghost-button.primary {
    background: linear-gradient(135deg, rgba(34, 124, 255, 0.96), rgba(26, 87, 187, 0.94));
    color: #f8fbff;
    border-color: rgba(34, 124, 255, 0.42);
}

body .meeting-form-actions .ghost-button.subtle {
    background: rgba(255, 255, 255, 0.04);
}

body .meeting-side-panel {
    display: grid;
    gap: 18px;
}

body .meeting-side-card {
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: linear-gradient(180deg, rgba(7, 18, 32, 0.78), rgba(9, 21, 37, 0.92));
}

body .meeting-room-list {
    display: grid;
    gap: 12px;
}

body .meeting-room-card {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(148, 163, 184, 0.1);
}

body .meeting-room-card p,
body .meeting-room-card small {
    margin: 0;
}

body .meeting-room-card .helper-text {
    color: var(--text-muted);
    word-break: break-word;
}

body .meeting-room-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

body .meeting-room-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

body .meeting-benefit-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding-left: 18px;
    color: var(--text);
}

body .meeting-benefit-list li {
    line-height: 1.6;
}

body.meeting-stage-page {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(93, 183, 255, 0.16), transparent 30%),
        radial-gradient(circle at top right, rgba(255, 191, 71, 0.12), transparent 24%),
        linear-gradient(145deg, #05101d 0%, #0a172a 42%, #112645 100%);
    font-family: var(--sans);
}

body.meeting-stage-page::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: radial-gradient(circle at center, black 32%, transparent 92%);
    pointer-events: none;
}

body .meeting-session-root {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 22px;
}

body .meeting-session-shell {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    gap: 18px;
}

body .meeting-session-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

body .meeting-session-hero {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 24px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(9, 19, 34, 0.92), rgba(8, 17, 31, 0.84));
    border: 1px solid rgba(93, 183, 255, 0.14);
}

body .meeting-stage-box {
    display: grid;
    gap: 18px;
    padding: 24px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(9, 19, 34, 0.94), rgba(8, 17, 31, 0.92));
    border: 1px solid rgba(93, 183, 255, 0.18);
    box-shadow: 0 26px 60px rgba(1, 8, 18, 0.28);
}

body .meeting-stage-box.is-live {
    padding: 16px;
    gap: 14px;
}

body .meeting-stage-box.is-minimized {
    padding: 14px 18px;
    gap: 10px;
}

body .meeting-stage-loader {
    display: grid;
    gap: 12px;
    justify-items: start;
}

body .meeting-stage-loader-dot {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(34, 124, 255, 0.96), rgba(93, 183, 255, 0.86));
    box-shadow: 0 18px 40px rgba(34, 124, 255, 0.34);
    position: relative;
}

body .meeting-stage-loader-dot::after {
    content: "";
    position: absolute;
    inset: 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
}

body .meeting-stage-hints {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

body .meeting-stage-hint-card {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

body .meeting-stage-hint-card p {
    margin: 10px 0 0;
    color: var(--text);
    line-height: 1.55;
}

body .meeting-stage-error {
    margin: 0;
}

body .meeting-stage-host {
    width: 100%;
    min-height: 72vh;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(93, 183, 255, 0.16);
    background: rgba(3, 9, 16, 0.82);
}

body .meeting-stage-host iframe {
    width: 100%;
    min-height: 72vh;
    border: 0;
    border-radius: 22px;
}

@media (max-width: 1220px) {
    body .page-hero,
    body .header,
    body .section-title {
        flex-direction: column;
        align-items: stretch;
    }

    body .page-hero-text,
    body .section-title > div:first-child,
    body .header > * {
        max-width: 100%;
    }

    body .page-actions-desktop-slot,
    body .split-actions,
    body .status-row,
    body .sidebar-footer-actions,
    body .table-action-row,
    body .meeting-page-actions,
    body .meeting-form-actions,
    body .meeting-room-actions {
        width: 100%;
        justify-content: flex-start;
    }

    body .split-actions > *,
    body .status-row > *,
    body .meeting-page-actions > * {
        max-width: 100%;
    }

    body .meeting-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body .meeting-portal-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 900px) {
    body .main {
        padding-inline: 18px;
    }

    body .page-hero,
    body .panel,
    body .card,
    body .card-mini,
    body .form-box,
    body .table-box,
    body .import-box,
    body .box {
        border-radius: 22px;
    }

    body .page-hero,
    body .form-box,
    body .table-box,
    body .import-box,
    body .box {
        padding: 18px;
    }

    body .meeting-field-grid,
    body .meeting-profile-grid,
    body .meeting-stage-hints,
    body .ops-config-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    body .meeting-profile-topline,
    body .meeting-room-meta,
    body .meeting-session-topbar,
    body .meeting-session-hero {
        flex-direction: column;
        align-items: stretch;
    }

    body .meeting-page-actions .status-pill,
    body .meeting-form-actions .ghost-button,
    body .meeting-room-actions .ghost-button,
    body .meeting-room-actions button {
        width: 100%;
        justify-content: center;
    }

    body .meeting-stage-host,
    body .meeting-stage-host iframe {
        min-height: 62vh;
    }

    body .recruitment-quick-actions {
        position: sticky;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        z-index: 8;
        padding: 12px;
        border-radius: 18px;
        background: rgba(248, 251, 255, 0.96);
        border: 1px solid rgba(148, 163, 184, 0.2);
        box-shadow: 0 18px 34px rgba(7, 17, 31, 0.14);
        backdrop-filter: blur(8px);
    }

    body .recruitment-quick-actions > * {
        min-height: 48px;
        justify-content: center;
    }
}

@media (max-width: 680px) {
    body .main {
        padding-inline: 14px;
    }

    body .page-hero {
        padding: 18px 16px;
    }

    body .page-hero h1,
    body .header h1,
    body .main > h1 {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
        line-height: 1.06;
    }

    body .page-subtitle,
    body .section-title p,
    body .helper-text,
    body small {
        font-size: 0.88rem;
    }

    body .summary,
    body .cards,
    body .meta-grid,
    body .meeting-summary-grid,
    body .meeting-profile-grid,
    body .meeting-stage-hints,
    body .dashboard-cards,
    body .stock-meta-grid,
    body .products-meta-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    body .page-actions,
    body .split-actions,
    body .status-row,
    body .table-action-row,
    body .meeting-form-actions,
    body .meeting-room-actions,
    body .sidebar-footer-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    body .page-actions > *,
    body .split-actions > *,
    body .table-action-row > *,
    body .meeting-form-actions > *,
    body .meeting-room-actions > *,
    body .sidebar-footer-actions > * {
        width: 100%;
        min-width: 0;
    }

    body .meeting-portal-shell,
    body .meeting-side-card,
    body .meeting-stage-box,
    body .meeting-session-hero {
        border-radius: 20px;
    }

    body .meeting-stage-box,
    body .meeting-session-hero,
    body .meeting-side-card,
    body .meeting-room-card {
        padding: 16px;
    }

    body .meeting-stage-host,
    body .meeting-stage-host iframe {
        min-height: 56vh;
    }
}

@media (max-width: 420px) {
    body .main {
        padding-inline: 12px;
    }

    body .page-hero,
    body .form-box,
    body .table-box,
    body .import-box,
    body .box,
    body .meeting-stage-box,
    body .meeting-session-hero,
    body .meeting-side-card {
        padding: 14px;
        border-radius: 18px;
    }

    body .status-pill,
    body .mobile-chip,
    body .badge {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    body .meeting-room-meta,
    body .meeting-profile-topline,
    body .section-title,
    body .header,
    body .page-hero {
        gap: 10px;
    }

    body .meeting-stage-host,
    body .meeting-stage-host iframe {
        min-height: 52vh;
        border-radius: 18px;
    }
}
@media (max-width: 1220px) {
    body .meeting-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body .meeting-portal-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 860px) {
    body .meeting-field-grid,
    body .meeting-profile-grid,
    body .meeting-stage-hints {
        grid-template-columns: minmax(0, 1fr);
    }

    body .meeting-session-hero,
    body .meeting-session-topbar,
    body .meeting-room-meta {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 540px) {
    body .meeting-summary-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    body .meeting-session-root {
        padding: 14px;
    }

    body .meeting-stage-box,
    body .meeting-session-hero {
        padding: 18px;
        border-radius: 20px;
    }

    body .meeting-form-actions,
    body .meeting-room-actions {
        flex-direction: column;
    }
}

body .floating-toolbelt {
    position: fixed;
    right: 22px;
    bottom: calc(28px + env(safe-area-inset-bottom));
    z-index: 2205;
    display: grid;
    justify-items: end;
    gap: 10px;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

body .floating-toolbelt.is-muted:not(.is-open) {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}

body.floating-toolbelt-disabled .floating-toolbelt {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}

body .floating-toolbelt-launcher {
    width: 54px;
    min-width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    background: linear-gradient(145deg, #0f4fa7 0%, #0a2f63 100%);
    box-shadow: 0 18px 34px rgba(10, 40, 88, 0.24);
    color: #ffffff;
    cursor: pointer;
    user-select: none;
    touch-action: manipulation;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

body .floating-toolbelt-launcher:hover,
body .floating-toolbelt.is-open .floating-toolbelt-launcher {
    transform: translateY(-1px);
    border-color: rgba(188, 218, 255, 0.26);
    box-shadow: 0 22px 40px rgba(10, 40, 88, 0.3);
}

body .floating-toolbelt-launcher-core {
    font-size: 1.45rem;
    line-height: 1;
    letter-spacing: -0.12em;
    transform: translateX(1px);
}

body .floating-toolbelt-menu {
    position: absolute;
    right: 0;
    bottom: calc(100% + 12px);
    display: grid;
    gap: 8px;
    min-width: 220px;
    padding: 10px;
    contain: layout paint style;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(12, 23, 40, 0.98), rgba(17, 31, 54, 0.97));
    box-shadow: 0 22px 46px rgba(7, 17, 31, 0.26);
    justify-items: stretch;
}

body .floating-toolbelt-menu[hidden] {
    display: none !important;
}

body .floating-toolbelt-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    color: #f7fbff;
    box-shadow: none;
    font: inherit;
    cursor: pointer;
    text-align: left;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

body .floating-toolbelt-item:hover,
body .floating-toolbelt-item:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(188, 218, 255, 0.2);
    background: rgba(93, 183, 255, 0.08);
    box-shadow: 0 12px 22px rgba(7, 17, 31, 0.18);
}

body .floating-toolbelt-item-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02) 62%);
    font-size: 1rem;
}

body .floating-toolbelt-item-label {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    border: 0;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
}

body .floating-toolbelt-item-badge {
    position: static;
    margin-left: auto;
    min-width: 24px;
    min-height: 24px;
    display: inline-grid;
    place-items: center;
    padding: 0 7px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff8f4d, #ff5d7a);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    box-shadow: 0 12px 20px rgba(255, 93, 122, 0.24);
}

body .floating-toolbelt-item-badge.is-chat {
    background: linear-gradient(135deg, #6ab8ff, #2f7cff);
    box-shadow: 0 12px 20px rgba(47, 124, 255, 0.24);
}

body.has-floating-toolbelt:not(.floating-toolbelt-disabled) .notification-center-root > .notification-center-toggle,
body.has-floating-toolbelt:not(.floating-toolbelt-disabled) .attendance-camera-shortcut-root,
body.has-floating-toolbelt:not(.floating-toolbelt-disabled) .chat-widget-root > .chat-widget-launcher,
body.has-floating-toolbelt:not(.floating-toolbelt-disabled) .floating-toolbelt ~ .notification-center-root .notification-center-toggle,
body.has-floating-toolbelt:not(.floating-toolbelt-disabled) .floating-toolbelt ~ .attendance-camera-shortcut-root .attendance-camera-shortcut-button,
body.has-floating-toolbelt:not(.floating-toolbelt-disabled) .floating-toolbelt ~ .chat-widget-root .chat-widget-launcher {
    display: none !important;
}

body.menu-open .floating-toolbelt {
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 1080px) {
    body .floating-toolbelt {
        bottom: calc(94px + env(safe-area-inset-bottom));
    }

    body .floating-toolbelt [data-floating-toolbelt-action="camera"] {
        display: none !important;
    }

    body.has-floating-toolbelt:not(.floating-toolbelt-disabled) .attendance-camera-shortcut-root,
    body.has-floating-toolbelt:not(.floating-toolbelt-disabled) .floating-toolbelt ~ .attendance-camera-shortcut-root {
        display: grid !important;
    }

    body.has-floating-toolbelt:not(.floating-toolbelt-disabled) .attendance-camera-shortcut-root .attendance-camera-shortcut-button,
    body.has-floating-toolbelt:not(.floating-toolbelt-disabled) .floating-toolbelt ~ .attendance-camera-shortcut-root .attendance-camera-shortcut-button {
        display: inline-flex !important;
        box-shadow: 0 12px 22px rgba(15, 94, 199, 0.18);
    }

    body .floating-toolbelt-launcher {
        touch-action: manipulation;
    }
}

@media (max-width: 720px) {
    body .floating-toolbelt {
        right: 12px;
        bottom: calc(88px + env(safe-area-inset-bottom));
    }

    body .floating-toolbelt-launcher {
        width: 50px;
        min-width: 50px;
        height: 50px;
        border-radius: 16px;
    }

    body .floating-toolbelt-menu {
        min-width: min(220px, calc(100vw - 24px));
    }

    body .floating-toolbelt-item {
        min-height: 46px;
        padding: 9px 11px;
    }
}

body .notification-center-root {
    position: fixed;
    top: 24px;
    right: 28px;
    z-index: 46;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

body .notification-break-chip {
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(44, 138, 255, 0.16);
    color: var(--text-strong);
    box-shadow: var(--theme-picker-shadow);
    backdrop-filter: blur(14px);
}

body .notification-break-chip.is-over-limit {
    background: rgba(255, 92, 138, 0.18);
    border-color: rgba(255, 92, 138, 0.3);
}

body .notification-center-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 12px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--theme-picker-panel-bg);
    color: var(--text-strong);
    box-shadow: var(--theme-picker-shadow);
    cursor: pointer;
    backdrop-filter: blur(16px);
    touch-action: manipulation;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

body .notification-center-toggle:hover,
body .notification-center-root.is-open .notification-center-toggle {
    transform: translateY(-1px);
    border-color: rgba(93, 183, 255, 0.22);
}

body .notification-center-toggle-icon {
    width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
    font-size: 1rem;
}

body .notification-center-toggle-label {
    font-size: 0.86rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

body .notification-center-badge {
    min-width: 22px;
    min-height: 22px;
    display: inline-grid;
    place-items: center;
    padding: 0 6px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff8f4d, #ff5d7a);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    box-shadow: 0 10px 18px rgba(255, 93, 122, 0.28);
}

body .notification-center-panel,
body .notifications-page-shell {
    border: 1px solid var(--line);
    background: var(--theme-picker-panel-bg);
    box-shadow: var(--theme-picker-shadow);
    backdrop-filter: blur(18px);
}

body .notification-center-panel {
    width: min(540px, calc(100vw - 32px));
    max-height: min(78vh, 720px);
    overflow: hidden;
    contain: layout paint style;
    border-radius: 28px;
}

body .notifications-page-shell {
    display: grid;
    gap: 18px;
    padding: 24px;
    border-radius: 28px;
}

body .notification-center-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 22px 22px 0;
}

body .notifications-page-shell .notification-center-head {
    padding: 0;
}

body .notification-center-head h2 {
    margin: 6px 0 0;
    font-size: 1.35rem;
    color: var(--text-strong);
}

body .notification-device-pill {
    flex: 0 0 auto;
}

body .notification-center-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding: 0 22px;
}

body .notifications-page-shell .notification-center-toolbar {
    padding: 0;
}

body .notification-center-tabs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
}

body .notification-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    font: inherit;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

body .notification-tab.active {
    background: linear-gradient(135deg, rgba(93, 183, 255, 0.22), rgba(33, 197, 125, 0.18));
    color: var(--text-strong);
    transform: translateY(-1px);
}

body .notification-center-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

body .notification-mini-action {
    min-height: 40px;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

body .notification-center-meta {
    padding: 0 22px;
    color: var(--text-soft);
    font-size: 0.9rem;
}

body .notifications-page-shell .notification-center-meta {
    padding: 0;
}

body .notification-center-list {
    display: grid;
    gap: 10px;
    padding: 0 22px 22px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable both-edges;
}

body .notification-center-list.is-page {
    padding: 0;
    max-height: none;
}

body .notification-center-panel .notification-center-list {
    max-height: min(48vh, 420px);
}

body .notification-card {
    display: grid;
    gap: 8px;
}

body .notification-center-foot {
    display: flex;
    justify-content: flex-end;
    padding: 0 22px 22px;
}

body .notification-center-empty {
    padding: 28px 18px;
    text-align: center;
    border-radius: 22px;
    border: 1px dashed var(--line-strong);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-soft);
}

body .notification-entry {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px;
    align-items: flex-start;
    padding: 16px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

body .notification-entry:hover {
    transform: translateY(-1px);
    border-color: rgba(93, 183, 255, 0.22);
    background: rgba(93, 183, 255, 0.06);
}

body .notification-entry.is-unread {
    border-color: rgba(93, 183, 255, 0.18);
    background: linear-gradient(180deg, rgba(93, 183, 255, 0.09), rgba(255, 255, 255, 0.03));
}

body .notification-entry-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: rgba(148, 163, 184, 0.16);
    color: var(--text-strong);
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

body .notification-entry-icon.announcement {
    background: rgba(255, 191, 71, 0.18);
}

body .notification-entry-icon.approval,
body .notification-entry-icon.request,
body .notification-entry-icon.owner_request {
    background: rgba(93, 183, 255, 0.18);
}

body .notification-entry-icon.chat,
body .notification-entry-icon.meeting {
    background: rgba(33, 197, 125, 0.18);
}

body .notification-entry-icon.inventory,
body .notification-entry-icon.schedule,
body .notification-entry-icon.hris {
    background: rgba(107, 212, 255, 0.18);
}

body .notification-entry-body {
    min-width: 0;
    display: grid;
    gap: 8px;
    max-width: 100%;
}

body .notification-entry-topline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    column-gap: 12px;
    row-gap: 4px;
}

body .notification-entry-topline strong {
    display: block;
    min-width: 0;
    font-size: 0.98rem;
    line-height: 1.4;
    color: var(--text-strong);
    overflow-wrap: anywhere;
    word-break: break-word;
}

body .notification-entry-topline time {
    color: var(--text-soft);
    font-size: 0.8rem;
    white-space: nowrap;
}

body .notification-entry-body p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
    overflow-wrap: anywhere;
    word-break: break-word;
}

body .notification-entry-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: var(--text-soft);
    font-size: 0.8rem;
    overflow-wrap: anywhere;
}

body .notification-entry-actions {
    display: flex;
    justify-content: flex-end;
}

body .notification-entry-action {
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.74rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

body .notification-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-strong);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.72rem;
    font-weight: 700;
}

body .notification-unread-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #3da5ff;
    box-shadow: 0 0 0 6px rgba(61, 165, 255, 0.14);
}

body .notifications-summary-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.menu-open .notification-center-root {
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 1280px) {
    body .page-hero {
        flex-wrap: wrap;
    }

    body .page-actions-desktop-slot,
    body .page-actions,
    body .header > div:last-child {
        width: 100%;
        min-width: 0;
        margin-left: 0;
        justify-content: flex-start;
    }
}

@media (max-width: 960px) {
    body .stock-group-summary-meta {
        max-width: 140px;
    }

    body .stock-group-summary-meta small,
    body .stock-group-mobile-copy small,
    body .stock-variant-summary-copy small {
        display: -webkit-box;
        overflow: hidden;
        text-overflow: ellipsis;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    body .stock-product-group-cell {
        padding: 12px;
    }

    body .stock-variant-summary {
        flex-direction: column;
        align-items: flex-start;
    }

    body .stock-variant-summary-pills {
        width: 100%;
        justify-content: flex-start;
    }

    body .stock-group-detail-panel {
        margin-top: 10px;
        padding: 12px;
    }

    body .attendance-camera-actions > * {
        flex: 1 1 calc(50% - 8px);
        justify-content: center;
    }
}

@media (max-width: 1080px) {
    body .notification-center-root {
        top: calc(88px + env(safe-area-inset-top));
        right: 16px;
        left: 16px;
        align-items: stretch;
    }

    body .notification-center-toggle {
        align-self: flex-end;
    }

    body .notification-center-panel {
        width: 100%;
    }

    body .notifications-summary-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    body .stock-table {
        min-width: 1480px;
    }

    body .stock-product-group-row .stock-group-sku-cell,
    body .stock-product-group-row .stock-group-name-cell {
        display: none;
    }

    body .stock-product-group-row .stock-group-check-cell {
        display: none;
    }

    body .stock-product-group-cell {
        padding: 8px 0 0;
    }

    body .stock-group-mobile-copy {
        display: grid;
        gap: 2px;
    }

    body .stock-variant-summary {
        align-items: flex-start;
        gap: 10px;
        padding: 14px;
    }

    body .stock-variant-summary-copy {
        gap: 3px;
    }

    body .stock-variant-summary-copy strong {
        font-size: 0.9rem;
    }

    body .stock-variant-summary-pills {
        width: 100%;
        justify-content: flex-start;
    }

    body .notification-center-head,
    body .notification-center-toolbar,
    body .notification-center-meta,
    body .notification-center-list,
    body .notification-center-foot {
        padding-left: 18px;
        padding-right: 18px;
    }

    body .notifications-page-shell {
        padding: 18px;
    }

    body .notification-center-head,
    body .notification-center-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    body .notification-center-actions,
    body .notification-center-tabs {
        width: 100%;
    }

    body .notification-center-actions .notification-mini-action,
    body .notification-center-tabs .notification-tab {
        flex: 1 1 auto;
    }

    body .notification-entry {
        grid-template-columns: 1fr;
    }

    body .notification-entry-icon {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 640px) {
    body .chat-incoming-banner {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    body .chat-search-result {
        grid-template-columns: auto minmax(0, 1fr);
    }

    body .chat-search-result time {
        grid-column: 2 / 3;
        justify-self: end;
    }

    body .chat-incoming-banner-media {
        align-self: center;
    }

    body .chat-widget-root {
        left: 12px;
        right: 12px;
        justify-items: stretch;
    }

    body .chat-widget-launcher {
        justify-self: end;
    }

    body .chat-widget-panel {
        width: 100%;
    }

    body .notification-entry-topline {
        grid-template-columns: 1fr;
        row-gap: 6px;
    }

    body .stock-group-summary-meta strong,
    body .stock-variant-summary-copy strong {
        font-size: 0.9rem;
    }
}

@media (max-width: 560px) {
    body .notifications-summary-cards {
        grid-template-columns: 1fr;
    }

    body .notification-center-toggle-label {
        display: none;
    }

    body .attendance-camera-actions > * {
        flex-basis: 100%;
    }

    body .stock-group-variant-table {
        min-width: 860px;
    }
}

@media (max-width: 720px) {
    body .main {
        gap: 14px;
        padding: 14px 12px calc(96px + env(safe-area-inset-bottom));
    }

    body.minimal-shell .main {
        padding: 20px 12px 18px;
    }

    body .panel,
    body .page-hero,
    body .card,
    body .card-mini,
    body .form-box,
    body .table-box,
    body .import-box,
    body .box,
    body .meta-card,
    body .attendance-log-card,
    body .notification-entry,
    body .stock-variant-summary,
    body .stock-group-detail-panel {
        border-radius: 18px;
    }

    body .page-hero,
    body .card,
    body .card-mini,
    body .form-box,
    body .table-box,
    body .import-box,
    body .box,
    body .meta-card,
    body .attendance-log-card,
    body .notification-entry {
        padding: 14px;
    }

    body .page-hero {
        gap: 14px;
    }

    body .page-hero-text {
        max-width: none;
    }

    body .page-eyebrow {
        margin-bottom: 8px;
        font-size: 0.72rem;
        letter-spacing: 0.14em;
    }

    body .page-subtitle,
    body .section-title p,
    body .helper-text,
    body small {
        font-size: 0.82rem;
        line-height: 1.5;
    }

    body .card,
    body .card-mini,
    body .meta-card {
        gap: 6px;
        min-height: 0;
    }

    body .card p,
    body .card-mini p,
    body .meta-card span {
        margin-bottom: 4px;
        font-size: 0.74rem;
        letter-spacing: 0.08em;
    }

    body .card h2,
    body .card-mini h3 {
        margin-top: 8px;
        font-size: clamp(1.25rem, 5.8vw, 1.6rem);
    }

    body .meta-card strong {
        font-size: 1.12rem;
        line-height: 1.16;
    }

    body .section-title {
        margin-bottom: 12px;
        gap: 10px;
    }

    body .section-title h2,
    body .section-title h3 {
        font-size: 1rem;
    }

    body input,
    body select,
    body textarea {
        padding: 10px 12px;
    }

    body .money-input,
    body .stock-readonly-field,
    body .stock-readonly-money {
        min-height: 42px;
        gap: 8px;
        padding-inline: 10px;
    }

    body .money-input input {
        padding: 10px 0;
    }

    body button,
    body .btn-link,
    body a.btn-link {
        min-height: 42px;
        padding: 10px 14px;
        font-size: 0.88rem;
    }

    body .badge,
    body .status-pill,
    body .mobile-chip {
        min-height: 30px;
        padding: 5px 10px;
        font-size: 0.68rem;
        letter-spacing: 0.05em;
    }

    body th,
    body td {
        padding: 10px 8px;
    }

    body .mobile-page-actions-slot .page-actions {
        grid-auto-columns: minmax(136px, 70vw);
        gap: 8px;
    }

    body .stock-product-group-cell {
        padding: 10px;
    }

    body .stock-group-summary-meta small,
    body .stock-variant-summary-copy small {
        font-size: 0.76rem;
        line-height: 1.4;
    }

    body .attendance-camera-frame {
        min-height: 220px;
        border-radius: 18px;
    }

    body .attendance-camera-frame[data-camera-orientation="landscape"] {
        min-height: 190px;
    }

    body .attendance-log-list {
        gap: 12px;
    }

    body .attendance-log-card {
        gap: 12px;
    }

    body .attendance-log-summary {
        grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
        gap: 10px;
    }

    body .notification-entry-icon {
        border-radius: 14px;
    }
}

@media (max-width: 540px) {
    body .stock-table {
        min-width: 1320px;
    }

    body .stock-group-mobile-copy strong,
    body .stock-variant-summary-copy strong {
        font-size: 0.86rem;
    }

    body .main {
        gap: 12px;
        padding: 12px 10px calc(92px + env(safe-area-inset-bottom));
    }

    body.minimal-shell .main {
        padding: 18px 10px 16px;
    }

    body .page-hero,
    body .card,
    body .card-mini,
    body .form-box,
    body .table-box,
    body .import-box,
    body .box,
    body .meta-card,
    body .attendance-log-card,
    body .notification-entry {
        padding: 12px;
        border-radius: 16px;
    }

    body .page-hero,
    body .header,
    body .section-title {
        gap: 8px;
    }

    body .page-eyebrow {
        margin-bottom: 6px;
        font-size: 0.68rem;
        letter-spacing: 0.12em;
    }

    body .page-subtitle,
    body .section-title p,
    body .helper-text,
    body small {
        font-size: 0.78rem;
        line-height: 1.45;
    }

    body .card p,
    body .card-mini p,
    body .meta-card span {
        font-size: 0.7rem;
        letter-spacing: 0.07em;
    }

    body .card h2,
    body .card-mini h3 {
        margin-top: 6px;
        font-size: clamp(1.1rem, 6vw, 1.36rem);
    }

    body .meta-card strong {
        font-size: 1rem;
    }

    body .section-title {
        margin-bottom: 10px;
    }

    body .section-title h2,
    body .section-title h3 {
        font-size: 0.94rem;
    }

    body input,
    body select,
    body textarea {
        padding: 9px 11px;
    }

    body .money-input,
    body .stock-readonly-field,
    body .stock-readonly-money {
        min-height: 40px;
        padding-inline: 9px;
    }

    body button,
    body .btn-link,
    body a.btn-link {
        min-height: 40px;
        padding: 9px 12px;
        font-size: 0.84rem;
    }

    body .badge,
    body .status-pill,
    body .mobile-chip {
        min-height: 28px;
        padding: 4px 9px;
        font-size: 0.64rem;
    }

    body .stock-variant-summary,
    body .stock-group-detail-panel {
        padding: 10px;
        border-radius: 16px;
    }

    body .attendance-camera-frame {
        min-height: 210px;
        border-radius: 16px;
    }

    body .attendance-camera-frame[data-camera-orientation="landscape"] {
        min-height: 176px;
    }

    body .notification-entry {
        gap: 10px;
    }

    body .notification-entry-icon {
        width: 40px;
        height: 40px;
        font-size: 0.78rem;
    }

body .notification-chip {
        min-height: 24px;
        font-size: 0.66rem;
    }
}

@media (max-width: 1080px) {
    body .wms-split-band {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    body .wms-command-card,
    body .wms-kpi-card,
    body .wms-step-card,
    body .wms-panel-note {
        padding: 16px 18px;
        border-radius: 20px;
    }

    body .wms-command-card strong,
    body .wms-step-card strong {
        font-size: 1.04rem;
    }

    body .wms-kpi-card strong {
        font-size: 1.4rem;
    }

    body .wms-command-card p,
    body .wms-step-card p,
    body .wms-panel-note p,
    body .wms-kpi-card small {
        font-size: 0.82rem;
    }
}

@media (max-width: 540px) {
    body .wms-page-stack,
    body .wms-command-grid,
    body .wms-kpi-grid,
    body .wms-step-grid {
        gap: 12px;
    }

    body .wms-command-card,
    body .wms-kpi-card,
    body .wms-step-card,
    body .wms-panel-note {
        padding: 14px 15px;
        border-radius: 18px;
    }

    body .wms-command-card span,
    body .wms-step-card span,
    body .wms-kpi-card span {
        font-size: 0.66rem;
        letter-spacing: 0.12em;
    }

    body .workspace-summary-card {
        padding: 16px 17px;
        border-radius: 20px;
    }

    body .workspace-app-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    body .workspace-app-tile {
        min-height: 192px;
        padding: 18px 14px 16px;
        border-radius: 22px;
    }

    body .workspace-app-icon {
        width: 64px;
        height: 64px;
        flex-basis: 64px;
        border-radius: 18px;
    }

    body .workspace-app-icon-image {
        width: 30px;
        height: 30px;
    }

    body .workspace-app-copy strong {
        font-size: 0.96rem;
    }

    body .workspace-app-copy small {
        max-width: 16ch;
        font-size: 0.8rem;
    }
}





/* ==========================
   POS / KASIR HARIAN
   ========================== */
body .pos-filter-actions {
    align-items: center;
    gap: 10px;
}

body .pos-filter-actions input,
body .pos-filter-actions select,
body .pos-filter-actions button {
    min-height: 44px;
}

body .pos-shell {
    margin-top: 18px;
}

body .pos-classic-shell {
    background:
        linear-gradient(180deg, rgba(252, 253, 255, 0.96), rgba(244, 247, 251, 0.98));
    border-color: rgba(148, 163, 184, 0.18);
}

body .pos-classic-shell .section-title h2,
body .pos-classic-shell .section-title h3,
body .pos-classic-shell .section-title p,
body .pos-classic-shell label,
body .pos-classic-shell .helper-text,
body .pos-classic-shell small {
    color: #39485b;
}

body .pos-classic-shell .section-title h2,
body .pos-classic-shell .section-title h3,
body .pos-classic-shell strong {
    color: #1a2b3d;
}

body .pos-classic-overview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

body .pos-classic-window {
    margin-top: 18px;
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 251, 0.98));
    box-shadow: 0 22px 46px rgba(15, 23, 42, 0.14);
    overflow: hidden;
}

body .pos-classic-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    background: linear-gradient(180deg, rgba(247, 249, 252, 0.98), rgba(237, 241, 246, 0.96));
}

body .pos-classic-toolbar-copy {
    display: grid;
    gap: 4px;
}

body .pos-classic-toolbar-copy strong {
    font-size: 1.02rem;
}

body .pos-classic-toolbar-copy small,
body .pos-classic-toolbar-meta span {
    color: #607287;
}

body .pos-classic-toolbar-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.82rem;
}

body .pos-classic-toolbar-meta span {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.84);
}

body .pos-classic-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.95fr);
    gap: 16px;
    padding: 16px;
}

body .pos-classic-main {
    display: grid;
    gap: 16px;
}

body .pos-classic-head-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.88fr) minmax(360px, 1.05fr) minmax(240px, 0.7fr);
    gap: 14px;
}

body .pos-classic-meta-panel,
body .pos-classic-draft-panel,
body .pos-classic-total-panel,
body .pos-classic-browser-window,
body .pos-classic-keypad-box,
body .pos-classic-note-box,
body .pos-classic-action-box {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

body .pos-classic-shell input,
body .pos-classic-shell select,
body .pos-classic-shell textarea {
    background: #ffffff;
    color: #12263a;
    border-color: rgba(148, 163, 184, 0.34);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05);
}

body .pos-classic-shell input[readonly] {
    background: #f5f7fb;
    color: #5b6b7d;
}

body .pos-classic-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

body .pos-span-2 {
    grid-column: span 2;
}

body .pos-classic-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: #eef4fb;
    color: #56708e;
    border: 1px solid rgba(148, 163, 184, 0.22);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body .pos-classic-draft-panel {
    display: grid;
    gap: 14px;
}

body .pos-classic-draft-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 12px;
    align-items: start;
}

body .pos-classic-draft-head strong {
    display: block;
    margin-top: 10px;
    font-size: 1.08rem;
}

body .pos-classic-draft-grid {
    display: grid;
    grid-template-columns: 120px minmax(140px, 180px) minmax(220px, 1fr) 170px;
    gap: 12px;
    align-items: end;
}

body .pos-classic-add-cell {
    display: flex;
}

body .pos-classic-stock-card {
    padding: 12px;
    background: #f8fbff;
    border-color: rgba(148, 163, 184, 0.22);
}

body .pos-payment-method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
    gap: 8px;
}

body .pos-payment-method {
    min-height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    background: #f8fbff;
    color: #24364a;
    font-weight: 800;
    letter-spacing: 0.04em;
}

body .pos-payment-method.is-active {
    border-color: rgba(215, 183, 96, 0.38);
    background: linear-gradient(180deg, rgba(255, 250, 235, 0.98), rgba(245, 232, 192, 0.98));
    color: #122a52;
}

body .pos-classic-total-panel {
    display: grid;
    gap: 12px;
    align-content: start;
    background: linear-gradient(180deg, #ffffff, #eef3f8);
}

body .pos-classic-total-label {
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6d8095;
    font-weight: 800;
}

body .pos-classic-total-panel > strong {
    font-family: var(--display);
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: 1;
    color: #1b2b3a;
    letter-spacing: -0.04em;
}

body .pos-classic-total-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    min-height: 52px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: #f7f9fc;
}

body .pos-classic-total-meta span {
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6d8095;
    font-weight: 800;
}

body .pos-classic-total-meta strong {
    font-size: 1.02rem;
    color: #1b2b3a;
}

body .pos-classic-total-meta.success {
    background: linear-gradient(180deg, #f0fbf5, #e6f8ef);
}

body .pos-payment-field {
    display: grid;
    gap: 8px;
}

body .pos-payment-field input {
    min-height: 52px;
    font-size: 1.04rem;
    font-weight: 800;
}

body .pos-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

body .pos-classic-quick-actions .ghost-button {
    min-height: 40px;
}

body .pos-classic-cart-box,
body .pos-classic-browser-table-box {
    margin: 0;
    border-radius: 18px;
    background: #ffffff;
    border-color: rgba(148, 163, 184, 0.22);
    box-shadow: none;
}

body .pos-classic-browser-table-box {
    position: relative;
    overflow-x: auto;
    overflow-y: auto;
    max-height: min(58vh, 720px);
    padding: 0;
    margin-top: 12px;
    overscroll-behavior: contain;
}

body .pos-classic-browser-columns {
    display: grid;
    grid-template-columns: 148px minmax(260px, 41%) 16% 88px 132px 110px;
    align-items: center;
    gap: 0;
    padding: 18px 12px;
    margin-top: 2px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: #eef2f7;
    color: #53657a;
    box-shadow: inset 0 -1px 0 rgba(148, 163, 184, 0.18), 0 10px 18px rgba(15, 23, 42, 0.08);
}

body .pos-classic-browser-columns > span {
    min-width: 0;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

body .pos-classic-cart-table,
body .pos-classic-browser-table {
    min-width: 760px;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
}

body .pos-classic-browser-table thead th {
    position: sticky;
    top: 0;
    z-index: 12;
    padding-top: 18px;
    padding-bottom: 18px;
    background: #eef2f7;
    color: #53657a;
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: inset 0 -1px 0 rgba(148, 163, 184, 0.18), 0 10px 18px rgba(15, 23, 42, 0.08);
    background-clip: padding-box;
}

body .pos-classic-browser-table thead,
body .pos-classic-browser-table thead tr {
    background: #eef2f7;
}

body .pos-classic-browser-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    border: 0;
    white-space: nowrap;
}

body .pos-classic-cart-table tbody tr,
body .pos-classic-browser-table tbody tr {
    background: #ffffff;
}

body .pos-classic-browser-table th,
body .pos-classic-browser-table td {
    position: relative;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    white-space: nowrap;
}

body .pos-classic-browser-table tbody td {
    z-index: 0;
    background: #ffffff;
}

body .pos-classic-browser-table tbody {
    position: relative;
    z-index: 0;
}

body .pos-classic-browser-table tbody tr:nth-child(even) td {
    background: #fbfcfd;
}

body .pos-classic-browser-table th:nth-child(1),
body .pos-classic-browser-table td:nth-child(1) {
    width: 148px;
    font-variant-numeric: tabular-nums;
}

body .pos-classic-browser-table th:nth-child(2),
body .pos-classic-browser-table td:nth-child(2) {
    width: 41%;
    min-width: 260px;
}

body .pos-classic-browser-table th:nth-child(3),
body .pos-classic-browser-table td:nth-child(3) {
    width: 16%;
}

body .pos-classic-browser-table th:nth-child(4),
body .pos-classic-browser-table td:nth-child(4) {
    width: 88px;
}

body .pos-classic-browser-table th:nth-child(5),
body .pos-classic-browser-table td:nth-child(5) {
    width: 132px;
}

body .pos-classic-browser-table th:nth-child(6),
body .pos-classic-browser-table td:nth-child(6) {
    width: 110px;
}

body .pos-classic-browser-table td strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    position: relative;
    z-index: 1;
    line-height: 1.25;
}

body .pos-classic-browser-table td .helper-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    position: relative;
    z-index: 1;
    line-height: 1.2;
}

body .pos-classic-browser-row {
    cursor: pointer;
    transition: background 0.16s ease;
}

body .pos-classic-browser-row:hover td,
body .pos-classic-browser-row.is-active td {
    background: #edf5ff;
}

body .pos-order-stepper {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

body .pos-order-stepper button {
    width: 32px;
    min-width: 32px;
    height: 32px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: #f4f8fc;
    color: #21364b;
    font-size: 1rem;
    font-weight: 800;
}

body .pos-inline-qty {
    width: 68px;
    min-height: 34px;
    text-align: center;
    font-weight: 700;
    padding-inline: 8px;
}

body .pos-classic-footer {
    display: grid;
    grid-template-columns: minmax(300px, 0.72fr) minmax(260px, 0.72fr) 220px;
    gap: 14px;
}

body .pos-keypad-box {
    display: grid;
    gap: 12px;
}

body .pos-classic-keypad-box .pos-panel-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
}

body .pos-keypad-targets {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
}

body .pos-keypad-targets button {
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    background: #f4f8fc;
    color: #21364b;
    font-weight: 700;
}

body .pos-keypad-targets button.is-active {
    border-color: rgba(215, 183, 96, 0.38);
    background: #fff4df;
    color: #122a52;
}

body .pos-keypad-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

body .pos-keypad-grid button {
    min-height: 58px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    background: #f7f9fc;
    color: #203246;
    font-size: 1rem;
    font-weight: 800;
}

body .pos-note-field {
    display: grid;
    gap: 8px;
}

body .pos-note-field textarea {
    min-height: 160px;
}

body .pos-classic-action-box {
    display: grid;
    gap: 12px;
    align-content: space-between;
}

body .pos-classic-cart-badge {
    display: grid;
    gap: 6px;
    padding: 14px;
    border-radius: 14px;
    background: #f7f9fc;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

body .pos-classic-cart-badge span {
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6d8095;
    font-weight: 800;
}

body .pos-classic-cart-badge strong {
    font-size: 1.1rem;
    color: #1b2b3a;
}

body .pos-large-button,
body .pos-checkout-button {
    min-height: 54px;
    font-size: 1rem;
    font-weight: 800;
}

body .pos-checkout-progress {
    display: none;
    gap: 8px;
    margin-top: 6px;
}

body .pos-checkout-progress.is-visible {
    display: grid;
}

body .pos-checkout-progress .progress-text {
    font-size: 0.75rem;
    font-weight: 700;
    color: #5c6f84;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

body .pos-checkout-progress .progress-track {
    height: 10px;
}

body .pos-checkout-progress .progress-bar {
    width: 40%;
    animation: pos-checkout-progress 1.1s ease-in-out infinite;
}

@keyframes pos-checkout-progress {
    0% {
        transform: translateX(-120%);
    }
    50% {
        transform: translateX(40%);
    }
    100% {
        transform: translateX(140%);
    }
}

body .pos-classic-browser {
    display: grid;
    align-content: start;
}

body .pos-classic-browser-window {
    display: grid;
    gap: 14px;
    position: sticky;
    top: 16px;
}

body .pos-classic-browser-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: start;
}

body .pos-classic-search {
    margin-top: 0;
}

body .pos-classic-category-strip {
    margin-top: 0;
}

body .pos-classic-browser-pagination {
    margin-top: 0;
}

body .pos-classic-browser-table-box .empty-state {
    padding: 24px 12px;
}

body .pos-catalog-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

body .pos-catalog-search input,
body .pos-catalog-search button {
    min-height: 48px;
}

body .pos-category-strip {
    display: flex;
    gap: 10px;
    padding-bottom: 4px;
    overflow-x: auto;
}

body .pos-category-strip button {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    background: #f6f9fc;
    color: #203246;
    font-weight: 700;
    white-space: nowrap;
}

body .pos-category-strip button.is-active {
    border-color: rgba(215, 183, 96, 0.38);
    background: #fff4df;
    color: #122a52;
}

body .pos-catalog-pagination {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

@media (max-width: 1340px) {
    body .pos-classic-head-grid {
        grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1fr);
    }

    body .pos-classic-total-panel {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    body .pos-classic-total-panel > strong {
        grid-column: 1 / -1;
    }

    body .pos-classic-footer {
        grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr);
    }

    body .pos-classic-action-box {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1120px) {
    body .pos-classic-layout {
        grid-template-columns: 1fr;
    }

    body .pos-classic-browser-window {
        position: static;
    }
}

@media (max-width: 920px) {
    body .pos-classic-head-grid,
    body .pos-classic-footer,
    body .pos-classic-meta-grid,
    body .pos-classic-draft-grid {
        grid-template-columns: 1fr;
    }

    body .pos-classic-draft-head {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    body .pos-classic-shell {
        padding: 18px;
    }

    body .pos-classic-overview,
    body .pos-classic-toolbar,
    body .pos-classic-toolbar-meta,
    body .pos-catalog-pagination,
    body .pos-filter-actions {
        justify-content: flex-start;
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    body .pos-classic-layout {
        padding: 12px;
    }

    body .pos-classic-meta-panel,
    body .pos-classic-draft-panel,
    body .pos-classic-total-panel,
    body .pos-classic-browser-window,
    body .pos-classic-keypad-box,
    body .pos-classic-note-box,
    body .pos-classic-action-box {
        padding: 14px;
        border-radius: 16px;
    }

    body .pos-classic-total-panel > strong {
        font-size: 2.3rem;
    }

    body .pos-checkout-button,
    body .pos-large-button {
        min-height: 50px;
    }
}

@media (max-width: 540px) {
    body .pos-product-grid,
    body .pos-quick-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    body .mobile-nav {
        gap: 8px;
        padding: calc(10px + env(safe-area-inset-top)) 12px 8px;
    }

    body .mobile-nav-leading {
        gap: 10px;
    }

    body .mobile-menu-button {
        min-height: 36px;
        padding: 8px 12px;
        border-radius: 14px;
    }

    body .mobile-brand {
        gap: 10px;
    }

    body .mobile-brand-copy {
        min-width: 0;
    }

    body .mobile-brand-mark {
        width: 38px;
        height: 38px;
        border-radius: 12px;
        flex-basis: 38px;
    }

    body .mobile-brand-mark img {
        padding: 7px;
    }

    body .mobile-brand strong {
        font-size: 0.88rem;
        line-height: 1.12;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    body .mobile-brand span {
        font-size: 0.68rem;
        line-height: 1.08;
        letter-spacing: 0.05em;
    }

    body .mobile-nav-actions {
        gap: 6px;
        padding-bottom: 0;
    }

    body .mobile-chip {
        min-height: 28px;
        padding: 4px 9px;
        font-size: 0.65rem;
        letter-spacing: 0.05em;
    }

    body .mobile-theme-toggle {
        min-height: 28px;
        padding: 4px 10px;
        border-radius: 999px;
    }

    body .mobile-theme-toggle [data-theme-toggle-label] {
        font-size: 0.68rem;
        letter-spacing: 0.03em;
    }

    body .mobile-command-deck {
        top: calc(74px + env(safe-area-inset-top));
        gap: 8px;
        padding: 10px 12px;
        border-radius: 16px;
    }

    body .mobile-command-deck-head {
        display: none;
    }

    body .mobile-page-actions-slot .page-actions {
        grid-auto-columns: minmax(132px, 68vw);
        gap: 8px;
    }

    body .mobile-page-actions-slot .page-actions button,
    body .mobile-page-actions-slot .page-actions .btn-link,
    body .mobile-page-actions-slot .page-actions select {
        min-height: 40px;
        padding: 8px 10px;
        font-size: 0.82rem;
    }

    body .page-hero {
        gap: 8px;
        padding: 14px 12px;
        border-radius: 16px;
    }

    body .page-subtitle {
        font-size: 0.78rem;
        line-height: 1.42;
    }

    body .mobile-dock {
        left: 10px;
        right: 10px;
        bottom: calc(10px + env(safe-area-inset-bottom));
        gap: 6px;
        padding: 8px;
        border-radius: 20px;
    }

    body .mobile-dock a,
    body .mobile-dock button {
        min-height: 42px;
        padding: 8px 6px;
        font-size: 0.72rem;
    }

    body .notification-center-root {
        top: calc(10px + env(safe-area-inset-top));
        right: 12px;
        left: auto;
        gap: 8px;
        z-index: 48;
    }

    body .notification-center-toggle {
        min-height: 42px;
        padding: 10px 12px;
        border-radius: 18px;
    }

    body .notification-center-toggle-label {
        display: none;
    }

    body .notification-center-panel {
        width: min(360px, calc(100vw - 24px));
        max-height: min(74vh, 620px);
    }

    body .attendance-portal-main .page-hero {
        display: none;
    }

    body .attendance-portal-main {
        gap: 10px;
        padding-top: 10px;
    }

    body .attendance-portal-main .attendance-overview-card {
        gap: 10px;
    }

    body .attendance-portal-main .attendance-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    body .attendance-portal-main .attendance-overview-card .helper-text {
        display: none;
    }
}

@media (max-width: 540px) {
    body .main {
        gap: 10px;
        padding: 10px 10px calc(86px + env(safe-area-inset-bottom));
    }

    body.minimal-shell .main {
        padding: 16px 10px 14px;
    }

    body .mobile-nav {
        gap: 7px;
        padding: calc(9px + env(safe-area-inset-top)) 10px 7px;
    }

    body .mobile-nav-leading {
        gap: 8px;
    }

    body .mobile-brand span {
        display: none;
    }

    body .mobile-nav-actions {
        gap: 5px;
    }

    body .mobile-command-deck {
        top: calc(62px + env(safe-area-inset-top));
        padding: 8px 10px;
    }

    body .page-hero .page-subtitle {
        display: none;
    }

    body .attendance-portal-shell {
        gap: 10px;
    }

    body .attendance-overview-head h2 {
        font-size: 1rem;
    }

    body .attendance-form-panel {
        gap: 10px;
    }

    body .attendance-form-panel .form-grid {
        gap: 10px;
    }

    body .attendance-camera-frame {
        min-height: 186px;
        border-radius: 14px;
    }

    body .attendance-camera-frame[data-camera-orientation="landscape"] {
        min-height: 164px;
    }

    body .attendance-camera-actions {
        gap: 8px;
    }
}

@media (max-width: 900px) {
    body .workspace-gateway {
        gap: 14px;
    }

    body .workspace-gateway-actions {
        width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    body .workspace-gateway-actions::-webkit-scrollbar,
    body .workspace-switch::-webkit-scrollbar,
    body .meeting-page-actions::-webkit-scrollbar,
    body .meeting-profile-grid::-webkit-scrollbar,
    body .chat-tab-row::-webkit-scrollbar,
    body .notification-center-actions::-webkit-scrollbar,
    body .notification-center-tabs::-webkit-scrollbar,
    body .pos-category-strip::-webkit-scrollbar {
        display: none;
    }

    body .workspace-gateway-actions > * {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    body .workspace-summary-grid {
        gap: 12px;
    }

    body .workspace-summary-card {
        padding: 15px 16px;
        gap: 8px;
        border-radius: 18px;
    }

    body .workspace-summary-card strong {
        font-size: clamp(1.05rem, 4.6vw, 1.45rem);
    }

    body .workspace-summary-card small {
        font-size: 0.76rem;
        line-height: 1.42;
    }

    body .workspace-section {
        gap: 12px;
    }

    body .workspace-app-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    body .workspace-app-tile {
        min-height: 164px;
        padding: 16px 12px 14px;
        border-radius: 18px;
        gap: 10px;
    }

    body .workspace-app-icon {
        width: 52px;
        height: 52px;
        border-radius: 14px;
    }

    body .workspace-app-icon-image {
        width: 24px;
        height: 24px;
    }

    body .workspace-app-copy strong {
        font-size: 0.92rem;
        line-height: 1.22;
    }

    body .workspace-app-copy small {
        font-size: 0.74rem;
        line-height: 1.42;
    }

    body .workspace-app-badge {
        min-height: 26px;
        padding: 4px 9px;
        font-size: 0.62rem;
    }

    body .wms-page-stack {
        gap: 12px;
    }

    body .stock-page-shell {
        gap: 14px;
    }

    body .stock-overview-shell {
        display: block;
    }

    body .stock-overview-hero,
    body .stock-overview-note,
    body .stock-filter-shell {
        border-radius: 22px;
    }

    body .stock-overview-hero,
    body .stock-filter-shell {
        padding: 18px;
    }

    body .stock-mini-icon,
    body .stock-command-icon {
        width: 36px;
        height: 36px;
        border-radius: 13px;
    }

    body .stock-overview-meta {
        grid-template-columns: 1fr;
    }

    body .stock-filter-head {
        flex-direction: column;
        align-items: flex-start;
    }

    body .stock-quick-actions {
        gap: 10px;
    }

    body .stock-quick-action {
        flex: 1 1 calc(50% - 10px);
        min-width: 0;
        padding-inline: 14px;
    }

    body .wms-command-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin-bottom: 14px;
    }

    body .wms-command-card {
        min-height: 0;
        padding: 14px;
        border-radius: 18px;
    }

    body .wms-command-card p,
    body .wms-panel-note p,
    body .wms-panel-note small {
        font-size: 0.78rem;
        line-height: 1.42;
    }

    body .workspace-switch {
        display: flex;
        flex-wrap: nowrap;
        gap: 6px;
        overflow-x: auto;
        padding: 6px;
        scrollbar-width: none;
    }

    body .workspace-switch a {
        flex: 0 0 auto;
        white-space: nowrap;
        min-height: 38px;
        padding: 9px 12px;
    }

    body .wms-split-band {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    body .wms-panel-note {
        padding: 14px;
        border-radius: 18px;
    }

    body .stock-filter-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    body .stock-filter-bar input[name="q"] {
        grid-column: 1 / -1;
    }

    body .stock-detail-box .section-title {
        margin-bottom: 8px;
    }

    body .stock-detail-box .section-title p,
    body .stock-mobile-hint {
        font-size: 0.76rem;
        line-height: 1.42;
    }

    body .meeting-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    body .meeting-page-actions {
        width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    body .meeting-page-actions > * {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    body .meeting-portal-shell {
        padding: 14px;
        border-radius: 18px;
    }

    body .meeting-portal-layout {
        gap: 14px;
    }

    body .meeting-field-grid,
    body .meeting-profile-grid {
        gap: 10px;
    }

    body .meeting-profile-card,
    body .meeting-side-card {
        padding: 14px;
        border-radius: 16px;
    }

    body .meeting-benefit-list {
        gap: 8px;
    }

    body .chat-shell {
        gap: 10px;
    }

    body .chat-sidebar-panel,
    body .chat-main-panel {
        border-radius: 18px;
        box-shadow: none;
    }

    body .chat-sidebar-head,
    body .chat-search-row,
    body .chat-tab-row,
    body .chat-main-head,
    body .chat-composer,
    body .chat-participant-strip {
        padding: 12px;
    }

    body .chat-tab-row {
        gap: 8px;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }

    body .chat-tab-row .ghost-button {
        flex: 0 0 auto;
        min-height: 38px;
        padding: 8px 12px;
        border-radius: 14px;
    }

    body .chat-thread-card,
    body .chat-contact-card {
        min-height: 0;
        padding: 12px;
        border-radius: 16px;
        gap: 10px;
    }

    body .chat-thread-meta,
    body .chat-thread-body p {
        font-size: 0.76rem;
        line-height: 1.38;
    }

    body .chat-message-board {
        padding: 12px;
    }

    body .chat-message-bubble {
        padding: 10px 12px;
        border-radius: 14px;
    }

    body .chat-focus-actions {
        gap: 8px;
        flex-wrap: wrap;
    }

    body .chat-widget-panel {
        height: min(68dvh, 520px);
    }

    body .notifications-summary-cards {
        gap: 12px;
    }

    body .notifications-page-shell {
        gap: 12px;
        padding: 14px;
        border-radius: 18px;
    }

    body .notification-center-head h2 {
        font-size: 1.04rem;
    }

    body .notification-center-tabs,
    body .notification-center-actions {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    body .notification-center-tabs .notification-tab,
    body .notification-center-actions .notification-mini-action {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    body .notification-center-meta {
        font-size: 0.78rem;
        line-height: 1.42;
    }

    body .notification-entry {
        padding: 12px;
        gap: 10px;
    }

    body .notification-entry-body p {
        font-size: 0.78rem;
        line-height: 1.42;
    }

    body .pos-shell .section-title p,
    body .pos-classic-toolbar-copy small,
    body .pos-classic-toolbar-meta span {
        font-size: 0.76rem;
        line-height: 1.42;
    }

    body .pos-classic-overview {
        justify-content: flex-start;
        gap: 8px;
    }

    body .pos-classic-window {
        margin-top: 12px;
        border-radius: 18px;
    }

    body .pos-classic-toolbar {
        padding: 12px 14px;
        flex-direction: column;
        align-items: flex-start;
    }

    body .pos-classic-toolbar-meta {
        gap: 6px;
    }

    body .pos-classic-layout {
        padding: 12px;
        gap: 12px;
    }

    body .pos-classic-browser-head {
        gap: 8px;
        flex-direction: column;
        align-items: flex-start;
    }

    body .pos-category-strip {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    body .pos-category-strip button {
        flex: 0 0 auto;
        white-space: nowrap;
    }
}

@media (max-width: 540px) {
    body .workspace-summary-grid,
    body .meeting-summary-grid,
    body .stock-summary-grid,
    body .stock-meta-grid,
    body .notifications-summary-cards {
        grid-template-columns: 1fr;
    }

    body .workspace-app-grid {
        gap: 10px;
    }

    body .workspace-app-tile {
        min-height: 148px;
        padding: 13px 10px 12px;
        gap: 8px;
    }

    body .workspace-app-icon {
        width: 46px;
        height: 46px;
        border-radius: 13px;
    }

    body .workspace-app-icon-image {
        width: 22px;
        height: 22px;
    }

    body .workspace-app-copy small {
        display: none;
    }

    body .wms-command-grid {
        grid-template-columns: 1fr;
    }

    body .stock-overview-kicker {
        min-height: 28px;
        padding-inline: 10px;
        font-size: 0.66rem;
    }

    body .stock-mini-topline,
    body .stock-meta-topline,
    body .stock-command-topline,
    body .stock-overview-tags,
    body .stock-filter-compact-meta,
    body .stock-filter-footnote {
        gap: 8px;
    }

    body .stock-overview-copy h2 {
        font-size: 1.22rem;
    }

    body .stock-overview-copy p,
    body .stock-overview-note li,
    body .stock-filter-head p,
    body .stock-filter-footnote {
        font-size: 0.78rem;
    }

    body .wms-panel-note p,
    body .wms-panel-note small,
    body .stock-detail-box .section-title p {
        display: none;
    }

    body .stock-quick-action {
        flex-basis: 100%;
    }

    body .stock-filter-bar {
        grid-template-columns: 1fr;
    }

    body .stock-filter-bar input[name="q"] {
        grid-column: 1;
    }

    body .meeting-portal-shell .section-title p {
        display: none;
    }

    body .meeting-side-card p,
    body .meeting-benefit-list {
        font-size: 0.76rem;
        line-height: 1.4;
    }

    body .chat-sidebar-head,
    body .chat-search-row,
    body .chat-tab-row,
    body .chat-main-head,
    body .chat-composer,
    body .chat-participant-strip,
    body .chat-message-board {
        padding: 10px;
    }

    body .chat-thread-card,
    body .chat-contact-card {
        padding: 10px;
        gap: 8px;
    }

    body .chat-thread-topline {
        gap: 6px;
    }

    body .chat-thread-topline strong,
    body .chat-contact-body strong,
    body .chat-thread-focus strong {
        font-size: 0.88rem;
    }

    body .chat-widget-panel {
        height: min(66dvh, 480px);
    }

    body .notification-center-head,
    body .notification-center-toolbar,
    body .notification-center-meta,
    body .notification-center-list,
    body .notification-center-foot {
        padding-left: 14px;
        padding-right: 14px;
    }

    body .notification-entry-actions {
        justify-content: flex-start;
    }

    body .pos-classic-shell .section-title p,
    body .pos-classic-toolbar-copy small {
        display: none;
    }

    body .pos-classic-total-panel > strong {
        font-size: 1.9rem;
    }

    body .pos-classic-browser-table-box,
    body .pos-classic-cart-box {
        border-radius: 14px;
    }
}

body .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body .sidebar.sidebar-icon-rail {
    padding: 10px 7px 14px;
    gap: 12px;
    align-items: center;
    border-radius: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, #183a72 0%, #1d3566 34%, #14294f 100%);
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.04);
}

body .sidebar.sidebar-icon-rail .brand-block {
    width: 100%;
    padding: 4px 0 6px;
    border: 0;
    background: transparent;
    box-shadow: none;
}

body .sidebar.sidebar-icon-rail .brand-mark-full-logo {
    width: 68px;
    max-width: 100%;
    height: 68px;
    margin-inline: auto;
    display: grid;
    place-items: center;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(233, 241, 250, 0.92));
    box-shadow: 0 10px 22px rgba(5, 17, 34, 0.22);
}

body .sidebar.sidebar-icon-rail .brand-mark-full-logo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    padding: 2px;
    transform: none;
}

body .sidebar.sidebar-icon-rail .sidebar-nav.sidebar-icon-nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

body .sidebar.sidebar-icon-rail .sidebar-icon-cluster {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

body .sidebar.sidebar-icon-rail .sidebar-icon-divider {
    width: 20px;
    height: 1px;
    margin: 2px auto;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(213, 227, 247, 0.34), rgba(255, 255, 255, 0));
}

body .sidebar.sidebar-icon-rail .sidebar-icon-link,
body .sidebar.sidebar-icon-rail .sidebar-icon-button {
    position: relative;
    width: 46px;
    min-width: 46px;
    height: 46px;
    min-height: 46px;
    padding: 0;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    transform: none;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

body .sidebar.sidebar-icon-rail .sidebar-icon-link::after,
body .sidebar.sidebar-icon-rail .sidebar-icon-button::after {
    display: none;
}

body .sidebar.sidebar-icon-rail .sidebar-icon-link:hover,
body .sidebar.sidebar-icon-rail .sidebar-icon-link.active,
body .sidebar.sidebar-icon-rail .sidebar-icon-button:hover,
body .sidebar.sidebar-icon-rail .sidebar-icon-button.active {
    transform: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

body .sidebar.sidebar-icon-rail .sidebar-icon-link.active,
body .sidebar.sidebar-icon-rail .sidebar-icon-button.active {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.08));
    border-color: rgba(188, 218, 255, 0.28);
    box-shadow: inset 3px 0 0 #79b7ff;
}

body .sidebar.sidebar-icon-rail .sidebar-icon-image {
    width: 24px;
    height: 24px;
    display: block;
    opacity: 0.96;
    filter: var(--theme-sidebar-rail-icon-filter, none);
    transition: filter 0.18s ease, opacity 0.18s ease;
}

body .sidebar.sidebar-icon-rail .sidebar-footer.sidebar-footer-rail {
    margin-top: auto;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

body .sidebar.sidebar-icon-rail .sidebar-footer-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

body .sidebar.sidebar-icon-rail .sidebar-footer-actions > *,
body .sidebar.sidebar-icon-rail .sidebar-footer-actions form {
    width: auto;
}

body .sidebar.sidebar-icon-rail .sidebar-footer-actions form button {
    width: 46px;
}

/* Keep all non-logo main icons at fixed size. */
body .sidebar.sidebar-app-nav .sidebar-main-trigger {
    width: 46px !important;
    min-width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
    padding: 0 !important;
    border-radius: 14px !important;
    overflow: hidden;
}

body .sidebar.sidebar-app-nav .sidebar-main-trigger .sidebar-icon-image {
    width: 24px !important;
    height: 24px !important;
    display: block;
    flex: 0 0 24px;
}

body .sidebar.sidebar-app-nav .sidebar-main-trigger .sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

body .sidebar.sidebar-icon-rail .theme-switcher,
body .sidebar.sidebar-icon-rail .theme-switcher-label,
body .sidebar.sidebar-icon-rail .sidebar-section,
body .sidebar.sidebar-icon-rail .sidebar-section-label,
body .sidebar.sidebar-icon-rail .sidebar-group,
body .sidebar.sidebar-icon-rail .sidebar-group-label,
body .sidebar.sidebar-icon-rail .sidebar-group-icon,
body .sidebar.sidebar-icon-rail .sidebar-subnav,
body .sidebar.sidebar-icon-rail .sidebar-subgroup,
body .sidebar.sidebar-icon-rail .sidebar-subgroup-toggle,
body .sidebar.sidebar-icon-rail .sidebar-subgroup-links,
body .sidebar.sidebar-icon-rail .sidebar-footer p,
body .sidebar.sidebar-icon-rail .status-row {
    all: unset;
}

body .sidebar.sidebar-icon-rail [data-tooltip]::before,
body .sidebar.sidebar-icon-rail [data-tooltip]::after {
    position: absolute;
    left: calc(100% + 14px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

body .sidebar.sidebar-icon-rail [data-tooltip]::before {
    content: attr(data-tooltip);
    top: 50%;
    transform: translateY(-50%) translateX(-4px);
    padding: 8px 11px;
    border-radius: 12px;
    background: rgba(6, 16, 31, 0.94);
    color: #f8fbff;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
    box-shadow: 0 16px 30px rgba(3, 12, 24, 0.28);
    z-index: 4;
}

body .sidebar.sidebar-icon-rail [data-tooltip]::after {
    content: "";
    top: 50%;
    transform: translateY(-50%) translateX(-4px);
    width: 10px;
    height: 10px;
    margin-left: -5px;
    background: rgba(6, 16, 31, 0.94);
    clip-path: polygon(0 50%, 100% 0, 100% 100%);
    z-index: 3;
}

@media (hover: hover) and (pointer: fine) {
    body .sidebar.sidebar-icon-rail [data-tooltip]:hover::before,
    body .sidebar.sidebar-icon-rail [data-tooltip]:hover::after,
    body .sidebar.sidebar-icon-rail [data-tooltip]:focus-visible::before,
    body .sidebar.sidebar-icon-rail [data-tooltip]:focus-visible::after {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

@media (max-width: 1080px) {
    body .sidebar.sidebar-icon-rail {
        width: 82px;
        padding: 10px 7px 14px;
        box-shadow: 0 18px 42px rgba(1, 8, 18, 0.24);
    }

    body .sidebar.sidebar-icon-rail .sidebar-icon-link,
    body .sidebar.sidebar-icon-rail .sidebar-icon-button,
    body .sidebar.sidebar-icon-rail .sidebar-footer-actions form button {
        width: 44px;
        min-width: 44px;
        height: 44px;
        min-height: 44px;
        border-radius: 13px;
    }

    body .sidebar.sidebar-app-nav .sidebar-main-trigger {
        width: 44px !important;
        min-width: 44px !important;
        height: 44px !important;
        min-height: 44px !important;
        border-radius: 13px !important;
    }

    body .sidebar.sidebar-icon-rail .brand-mark-full-logo {
        width: 60px;
        height: 60px;
        border-radius: 18px;
    }

    body .sidebar.sidebar-icon-rail .brand-mark-full-logo img {
        padding: 2px;
        transform: none;
    }
}

/* ==========================
   POS / KASIR VINTAGE DESKTOP
   ========================== */
body .pos-vintage-shell {
    margin-top: 0;
    color: #39434e;
    font-family: var(--font-sans) !important;
}

body .pos-vintage-window {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(154, 160, 166, 0.6);
    background: linear-gradient(180deg, #f7f7f7 0%, #ececec 100%);
    box-shadow: 0 24px 48px rgba(8, 17, 28, 0.18);
}

body .pos-vintage-titlebar,
body .pos-vintage-menubar,
body .pos-vintage-subtabs {
    display: flex;
    align-items: center;
}

body .pos-vintage-titlebar {
    justify-content: space-between;
    gap: 16px;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(181, 187, 193, 0.8);
    background: linear-gradient(180deg, #fefefe 0%, #f0f1f3 100%);
}

body .pos-vintage-titlecopy {
    display: grid;
    gap: 2px;
}

body .pos-vintage-titlecopy strong,
body .pos-vintage-titlecopy span,
body .pos-vintage-menubar button,
body .pos-vintage-subtabs span,
body .pos-vintage-shell label,
body .pos-vintage-shell small,
body .pos-vintage-shell strong,
body .pos-vintage-shell th,
body .pos-vintage-shell td {
    color: #39434e;
}

body .pos-vintage-titlecopy strong {
    font-size: 0.92rem;
    font-weight: 600;
}

body .pos-vintage-titlecopy span {
    font-size: 0.73rem;
}

body .pos-vintage-windowtools {
    display: flex;
    gap: 8px;
}

body .pos-vintage-windowtools span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #b3bac4;
}

body .pos-vintage-menubar {
    flex-wrap: wrap;
    gap: 2px;
    padding: 6px 10px;
    border-bottom: 1px solid rgba(184, 190, 196, 0.8);
    background: #f1f2f4;
}

body .pos-vintage-menubar button,
body .pos-vintage-subtabs span,
body .pos-vintage-button,
body .pos-vintage-mini {
    font: inherit;
}

body .pos-vintage-menubar button {
    border: 0;
    background: transparent;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.76rem;
    cursor: default;
}

body .pos-vintage-menubar button.is-active,
body .pos-vintage-subtabs span.is-active {
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(168, 175, 183, 0.9);
}

body .pos-vintage-subtabs {
    gap: 6px;
    padding: 7px 10px;
    border-bottom: 1px solid rgba(184, 190, 196, 0.8);
    background: #eceff2;
}

body .pos-vintage-subtabs span {
    padding: 6px 10px;
    border-radius: 6px 6px 0 0;
    font-size: 0.74rem;
}

body .pos-vintage-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 14px;
    padding: 14px;
}

body .pos-vintage-main,
body .pos-vintage-sidepanel,
body .pos-vintage-topgrid,
body .pos-vintage-lowergrid,
body .pos-vintage-drafttools,
body .pos-vintage-sidebox,
body .pos-vintage-fieldgrid,
body .pos-vintage-detailfields,
body .pos-vintage-paymentrows {
    display: grid;
    gap: 12px;
}

body .pos-vintage-topgrid {
    grid-template-columns: minmax(0, 1fr) 280px;
}

body .pos-vintage-formpanel,
body .pos-vintage-draftpanel,
body .pos-vintage-detailpanel,
body .pos-vintage-paymentpanel,
body .pos-vintage-sidebox,
body .pos-vintage-picker-window,
body .pos-vintage-recent {
    border: 1px solid rgba(179, 186, 194, 0.9);
    background: #fbfbfb;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

body .pos-vintage-formpanel,
body .pos-vintage-draftpanel,
body .pos-vintage-detailpanel,
body .pos-vintage-paymentpanel,
body .pos-vintage-sidebox {
    padding: 12px;
    border-radius: 10px;
}

body .pos-vintage-fieldgrid,
body .pos-vintage-detailfields {
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: center;
}

body .pos-vintage-shell input,
body .pos-vintage-shell select,
body .pos-vintage-shell textarea {
    width: 100%;
    min-height: 34px;
    border-radius: 6px;
    border: 1px solid #bfc5cd;
    background: #ffffff;
    color: #2f3943;
    padding: 6px 10px;
    font: inherit;
    box-shadow: inset 0 1px 2px rgba(23, 30, 39, 0.08);
}

body .pos-vintage-shell textarea {
    resize: vertical;
}

body .pos-vintage-shell input[readonly] {
    background: #f2f4f7;
}

body .pos-vintage-fieldrow,
body .pos-vintage-paymentgrid,
body .pos-vintage-inlineactions,
body .pos-vintage-quickpanel,
body .pos-vintage-actionbuttons,
body .pos-vintage-sidepills,
body .pos-vintage-picker-head,
body .pos-vintage-picker-tools,
body .pos-vintage-keytargets,
body .pos-vintage-pickerpagination {
    display: flex;
    align-items: center;
    gap: 8px;
}

body .pos-vintage-receiptrow input {
    flex: 1 1 auto;
}

body .pos-vintage-shortcode,
body .pos-vintage-statusline,
body .pos-vintage-sidepills span,
body .pos-vintage-pagebadge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 6px;
    border: 1px solid rgba(181, 186, 194, 0.9);
    background: #f2f4f6;
    font-size: 0.74rem;
    color: #4f5963;
}

body .pos-vintage-totalpanel {
    align-content: start;
    padding: 18px 16px;
    border-radius: 10px;
    border: 1px solid rgba(177, 184, 191, 0.9);
    background: linear-gradient(180deg, #ffffff 0%, #f6f7f9 100%);
}

body .pos-vintage-totalcaption {
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

body .pos-vintage-totalpanel > strong {
    font-size: clamp(2.6rem, 4vw, 4rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

body .pos-vintage-mini-summary,
body .pos-vintage-paymentrows > div,
body .pos-vintage-sidefigure {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

body .pos-vintage-mini-summary.success,
body .pos-vintage-paymentrows > div.emphasis {
    color: #0f5b3a;
}

body .pos-vintage-draftpanel.has-selection {
    border-color: rgba(72, 134, 212, 0.65);
}

body .pos-vintage-drafttools {
    grid-template-columns: 120px 150px minmax(160px, 190px) minmax(280px, 1fr) 220px;
    align-items: end;
}

body .pos-vintage-label,
body .pos-vintage-sidecaption {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #58616b;
}

body .pos-vintage-stockbox {
    display: grid;
    gap: 2px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(189, 195, 202, 0.9);
    background: #f2f6fa;
}

body .pos-vintage-button,
body .pos-vintage-mini {
    border: 1px solid rgba(164, 171, 180, 0.9);
    background: linear-gradient(180deg, #ffffff 0%, #e8ebee 100%);
    color: #33404c;
    border-radius: 7px;
    padding: 8px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
    cursor: pointer;
}

body .pos-vintage-button.is-primary,
body .pos-vintage-button.is-success {
    background: linear-gradient(180deg, #8fd074 0%, #68b34c 100%);
    border-color: rgba(88, 150, 63, 0.92);
    color: #ffffff;
}

body .pos-vintage-button.ghost,
body .pos-vintage-mini.close {
    background: linear-gradient(180deg, #ffffff 0%, #edf0f3 100%);
}

body .pos-vintage-mini.danger {
    color: #a94442;
}

body .pos-vintage-cartbox,
body .pos-vintage-pickertablebox,
body .pos-vintage-recenttable {
    margin: 0;
    border-radius: 10px;
    border: 1px solid rgba(185, 191, 199, 0.9);
    background: #ffffff;
}

body .pos-vintage-carttable,
body .pos-vintage-pickertable {
    min-width: 920px;
}

body .pos-vintage-carttable thead th,
body .pos-vintage-pickertable thead th,
body .pos-vintage-recenttable thead th {
    background: #eef2f5;
    color: #5d6670;
    font-size: 0.73rem;
    text-transform: none;
}

body .pos-vintage-carttable tbody tr,
body .pos-vintage-pickertable tbody tr,
body .pos-vintage-recenttable tbody tr {
    background: #ffffff;
}

body .pos-vintage-lowergrid {
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.72fr);
}

body .pos-vintage-detailtabs {
    display: flex;
    gap: 6px;
}

body .pos-vintage-detailtabs button {
    border: 1px solid rgba(189, 195, 202, 0.9);
    background: #f6f8fa;
    border-radius: 6px;
    padding: 6px 10px;
    font: inherit;
    font-size: 0.74rem;
    color: #4a5661;
}

body .pos-vintage-detailtabs button.is-active {
    background: #ffffff;
}

body .pos-vintage-paymentrows {
    gap: 0;
}

body .pos-vintage-paymentrows > div {
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    border-bottom: 1px solid rgba(223, 227, 233, 0.95);
}

body .pos-vintage-paymentrows > div:last-child {
    border-bottom: 0;
}

body .pos-vintage-paymentrows input {
    min-width: 160px;
    text-align: right;
}

body .pos-vintage-actionbar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 8px 2px 2px;
}

body .pos-vintage-sidepanel {
    align-content: start;
}

body .pos-vintage-sidefigure {
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid rgba(220, 224, 229, 0.9);
}

body .pos-vintage-sidefigure strong {
    font-size: 1rem;
}

body .pos-vintage-keygrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body .pos-vintage-keygrid button {
    min-height: 42px;
    border-radius: 8px;
    border: 1px solid rgba(179, 186, 194, 0.9);
    background: #ffffff;
    color: #35404b;
    font-weight: 700;
}

body .pos-vintage-keytargets button {
    flex: 1 1 0;
}

body .pos-vintage-picker:not(.pos-ipos-picker) {
    position: absolute;
    z-index: 6;
    top: 108px;
    left: 208px;
    width: min(980px, calc(100% - 248px));
}

body .pos-vintage-picker[hidden],
body .pos-vintage-picker:not(.is-open) {
    display: none;
}

body .pos-vintage-picker-window:not(.pos-ipos-picker-window) {
    display: grid;
    gap: 12px;
    padding: 14px;
    border-radius: 12px;
    box-shadow: 0 24px 40px rgba(12, 19, 29, 0.24);
}

body .pos-vintage-picker-head {
    justify-content: space-between;
}

body .pos-vintage-picker-head strong {
    display: block;
    font-size: 1rem;
}

body .pos-vintage-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin: 0;
}

body .pos-vintage-categorystrip {
    flex-wrap: wrap;
    gap: 8px;
}

body .pos-vintage-categorystrip button {
    border-radius: 999px;
    border: 1px solid rgba(179, 186, 194, 0.85);
    background: #f6f7f9;
    color: #495764;
    padding: 6px 10px;
    font: inherit;
    font-size: 0.73rem;
}

body .pos-vintage-categorystrip button.is-active {
    background: #dce8f5;
    border-color: rgba(99, 149, 202, 0.6);
    color: #215f93;
}

body .pos-vintage-pickertablebox {
    max-height: 420px;
}

body .pos-vintage-pickerpagination {
    justify-content: flex-end;
}

body .pos-vintage-recent {
    margin-top: 16px;
    border-radius: 12px;
    overflow: hidden;
}

body .pos-vintage-recent > summary {
    cursor: pointer;
    padding: 12px 16px;
    font-weight: 700;
    list-style: none;
    background: #f5f7f9;
}

body .pos-vintage-recent > summary::-webkit-details-marker {
    display: none;
}

body .pos-vintage-recent .empty-state,
body .pos-vintage-recent .pos-vintage-recenttable {
    margin: 0;
}

body .pos-vintage-recent .empty-state {
    padding: 18px 16px;
}

@media (max-width: 1400px) {
    body .pos-vintage-picker:not(.pos-ipos-picker) {
        left: 120px;
        width: calc(100% - 160px);
    }
}

@media (max-width: 1180px) {
    body .pos-vintage-workspace,
    body .pos-vintage-topgrid,
    body .pos-vintage-lowergrid {
        grid-template-columns: 1fr;
    }

    body .pos-vintage-drafttools {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body .pos-vintage-picker:not(.pos-ipos-picker) {
        position: static;
        width: 100%;
        margin-top: 14px;
    }
}

@media (max-width: 760px) {
    body .pos-vintage-shell {
        margin-top: 0;
    }

    body .pos-vintage-window {
        border-radius: 12px;
    }

    body .pos-vintage-titlebar,
    body .pos-vintage-menubar,
    body .pos-vintage-subtabs,
    body .pos-vintage-workspace {
        padding-left: 10px;
        padding-right: 10px;
    }

    body .pos-vintage-titlebar,
    body .pos-vintage-picker-head,
    body .pos-vintage-actionbar,
    body .pos-vintage-pickerpagination,
    body .pos-vintage-inlineactions {
        flex-direction: column;
        align-items: stretch;
    }

    body .pos-vintage-fieldgrid,
    body .pos-vintage-detailfields,
    body .pos-vintage-drafttools {
        grid-template-columns: 1fr;
    }

    body .pos-vintage-fieldgrid label,
    body .pos-vintage-detailfields label {
        padding-top: 4px;
    }

    body .pos-vintage-pickertablebox,
    body .pos-vintage-cartbox,
    body .pos-vintage-recenttable {
        overflow: auto;
    }

    body .pos-ipos-refactor .pos-ipos-adjustment-controls {
        width: 100%;
        flex-wrap: wrap;
        justify-content: stretch;
    }

    body .pos-ipos-refactor .pos-ipos-adjustment-controls select,
    body .pos-ipos-refactor .pos-ipos-adjustment-controls input {
        flex: 1 1 100%;
        max-width: none;
    }

    body .pos-sales-log-itemline {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    body .pos-sales-log-status {
        width: 100%;
    }
}

/* ==========================
   POS TERMINAL CLEAN
   ========================== */
body .pos-terminal-clean {
    --pos-border: #ccd2d8;
    --pos-border-strong: #b9c1c9;
    --pos-muted: #65717d;
    --pos-soft: #f3f5f7;
    --pos-soft-2: #eef1f4;
    --pos-selected: #e8edf3;
    --pos-text: #24313c;
    margin-top: 0;
    color: var(--pos-text);
    font-family: var(--font-sans) !important;
}

body .pos-terminal-clean .pos-vintage-window.pos-terminal-window {
    position: relative;
    border-radius: 0;
    border: 1px solid var(--pos-border-strong);
    background: #ffffff;
    box-shadow: none;
}

body .pos-terminal-clean .pos-terminal-tabbar {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    border-bottom: 1px solid var(--pos-border-strong);
    background: #f7f7f8;
}

body .pos-terminal-clean .pos-terminal-tabs {
    display: flex;
    align-items: stretch;
    gap: 0;
}

body .pos-terminal-clean .pos-terminal-tab {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 20px;
    border-right: 1px solid var(--pos-border-strong);
    color: var(--pos-text);
    font-size: 0.84rem;
    font-weight: 500;
    background: #f5f5f6;
}

body .pos-terminal-clean .pos-terminal-tab.is-active {
    background: #ffffff;
    color: #0e78c9;
    font-weight: 700;
}

body .pos-terminal-clean .pos-terminal-close {
    min-width: 52px;
    border: 0;
    border-left: 1px solid var(--pos-border-strong);
    background: transparent;
    color: #424b55;
    font-size: 1.9rem;
    line-height: 1;
    cursor: pointer;
}

body .pos-terminal-clean .pos-terminal-body {
    display: grid;
    gap: 12px;
    padding: 14px;
}

body .pos-terminal-clean .pos-terminal-head {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
    gap: 12px;
    align-items: stretch;
}

body .pos-terminal-clean .pos-terminal-meta,
body .pos-terminal-clean .pos-terminal-entry,
body .pos-terminal-clean .pos-terminal-detailpanel,
body .pos-terminal-clean .pos-terminal-summarypanel,
body .pos-terminal-clean .pos-terminal-cartbox,
body .pos-terminal-clean .pos-terminal-picker-window {
    border: 1px solid var(--pos-border-strong);
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
}

body .pos-terminal-clean .pos-terminal-meta,
body .pos-terminal-clean .pos-terminal-entry,
body .pos-terminal-clean .pos-terminal-detailpanel,
body .pos-terminal-clean .pos-terminal-summarypanel {
    padding: 14px;
}

body .pos-terminal-clean .pos-terminal-row {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

body .pos-terminal-clean .pos-terminal-row + .pos-terminal-row {
    margin-top: 10px;
}

body .pos-terminal-clean label,
body .pos-terminal-clean small,
body .pos-terminal-clean td,
body .pos-terminal-clean th,
body .pos-terminal-clean strong {
    color: var(--pos-text);
}

body .pos-terminal-clean .pos-terminal-row label,
body .pos-terminal-clean .pos-terminal-field label,
body .pos-terminal-clean .pos-terminal-summaryrows label {
    font-size: 0.78rem;
    font-weight: 700;
}

body .pos-terminal-clean .pos-terminal-row-field,
body .pos-terminal-clean .pos-terminal-inlinegrid,
body .pos-terminal-clean .pos-terminal-entry-grid,
body .pos-terminal-clean .pos-terminal-actions,
body .pos-terminal-clean .pos-terminal-pickerhead,
body .pos-terminal-clean .pos-terminal-pickeractions {
    display: flex;
    align-items: center;
    gap: 8px;
}

body .pos-terminal-clean .pos-terminal-row-field {
    flex-wrap: wrap;
}

body .pos-terminal-clean .pos-terminal-row-field-stack {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    align-items: center;
}

body .pos-terminal-clean .pos-terminal-row-field .is-compact {
    width: 112px;
    flex: 0 0 112px;
}

body .pos-terminal-clean .pos-terminal-row-field .is-wide {
    width: 180px;
    flex: 0 0 180px;
}

body .pos-terminal-clean input,
body .pos-terminal-clean select,
body .pos-terminal-clean textarea {
    width: 100%;
    min-height: 38px;
    border-radius: 0;
    border: 1px solid var(--pos-border);
    background: #ffffff;
    box-shadow: none;
    color: var(--pos-text);
    padding: 7px 10px;
    font: inherit;
}

body .pos-terminal-clean input[readonly] {
    background: var(--pos-soft);
}

body .pos-terminal-clean textarea {
    min-height: 78px;
    resize: vertical;
}

body .pos-terminal-clean .pos-terminal-totalbox {
    display: grid;
    align-content: center;
    gap: 10px;
    min-height: 100%;
    padding: 18px 20px;
    border: 1px solid var(--pos-border-strong);
    background: #ffffff;
    text-align: right;
}

body .pos-terminal-clean .pos-terminal-section-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pos-muted);
}

body .pos-terminal-clean .pos-terminal-totalbox > strong {
    font-size: clamp(3.6rem, 7vw, 5.8rem);
    line-height: 0.95;
    letter-spacing: -0.08em;
    font-weight: 500;
}

body .pos-terminal-clean .pos-terminal-totalmeta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--pos-border);
    font-size: 0.82rem;
}

body .pos-terminal-clean .pos-terminal-totalmeta strong {
    font-size: 1rem;
}

body .pos-terminal-clean .pos-terminal-entry {
    display: grid;
    gap: 12px;
}

body .pos-terminal-clean .pos-terminal-entry-copy {
    display: grid;
    gap: 4px;
}

body .pos-terminal-clean .pos-terminal-entry-copy strong {
    font-size: 1rem;
    font-weight: 700;
}

body .pos-terminal-clean .pos-terminal-entry-copy small {
    color: var(--pos-muted);
}

body .pos-terminal-clean .pos-terminal-entry-grid {
    align-items: end;
    display: grid;
    grid-template-columns: 96px 140px 170px minmax(0, 1fr) auto;
    gap: 10px;
}

body .pos-terminal-clean .pos-terminal-field {
    display: grid;
    gap: 6px;
}

body .pos-terminal-clean .pos-terminal-stockbox {
    display: grid;
    gap: 2px;
    min-height: 38px;
    align-content: center;
    padding: 6px 10px;
    border: 1px solid var(--pos-border);
    background: var(--pos-soft);
}

body .pos-terminal-clean .pos-terminal-stockbox strong {
    font-size: 1rem;
}

body .pos-terminal-clean .pos-terminal-stockbox small {
    color: var(--pos-muted);
}

body .pos-terminal-clean .pos-terminal-methodgrid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

body .pos-terminal-clean .pos-payment-method {
    min-height: 34px;
    border: 1px solid var(--pos-border);
    background: var(--pos-soft);
    color: var(--pos-text);
    border-radius: 0;
    padding: 0 12px;
    font-size: 0.76rem;
    font-weight: 700;
    box-shadow: none;
}

body .pos-terminal-clean .pos-payment-method.is-active {
    border-color: #7ca3cb;
    background: #eaf3fb;
    color: #205b8f;
}

body .pos-terminal-clean .pos-terminal-entry-actions {
    display: grid;
    grid-auto-flow: row;
    gap: 8px;
}

body .pos-terminal-clean .pos-vintage-button,
body .pos-terminal-clean .pos-vintage-mini,
body .pos-terminal-clean .danger-button,
body .pos-terminal-clean .ghost-button {
    min-height: 38px;
    border-radius: 0;
    border: 1px solid var(--pos-border-strong);
    background: linear-gradient(180deg, #ffffff 0%, #f0f2f4 100%);
    color: var(--pos-text);
    box-shadow: none;
    font-size: 0.8rem;
}

body .pos-terminal-clean .pos-vintage-button.is-primary {
    border-color: #8aa3ba;
    background: linear-gradient(180deg, #fdfefe 0%, #e9f1f8 100%);
    color: #205b8f;
}

body .pos-terminal-clean .pos-vintage-button.is-success {
    border-color: #bca551;
    background: linear-gradient(180deg, #fffef7 0%, #f6efc9 100%);
    color: #5c4b08;
    font-weight: 800;
}

body .pos-terminal-clean .danger-button,
body .pos-terminal-clean .pos-vintage-mini.danger {
    border-color: #d5bbbb;
    background: linear-gradient(180deg, #fffefe 0%, #f8ecec 100%);
    color: #9a3434;
}

body .pos-terminal-clean .pos-terminal-cartbox,
body .pos-terminal-clean .pos-terminal-pickertablebox,
body .pos-terminal-clean .table-box {
    margin: 0;
    border-radius: 0;
    border-color: var(--pos-border-strong);
    background: #ffffff;
    box-shadow: none;
}

body .pos-terminal-clean .pos-terminal-cartbox {
    min-height: 236px;
}

body .pos-terminal-clean .pos-vintage-carttable,
body .pos-terminal-clean .pos-vintage-pickertable {
    min-width: 100%;
}

body .pos-terminal-clean .ops-queue-table th,
body .pos-terminal-clean .ops-queue-table td,
body .pos-terminal-clean .pos-vintage-pickertable th,
body .pos-terminal-clean .pos-vintage-pickertable td {
    padding: 9px 10px;
    border-color: var(--pos-border);
    font-size: 0.8rem;
}

body .pos-terminal-clean .ops-queue-table:not(.pos-classic-cart-table) thead th,
body .pos-terminal-clean .pos-vintage-pickertable thead th {
    background: var(--pos-soft-2);
    color: #4f5c69;
    font-weight: 700;
}

body .pos-terminal-clean .ops-queue-table:not(.pos-classic-cart-table) tbody tr:nth-child(even) td,
body .pos-terminal-clean .pos-vintage-pickertable tbody tr:nth-child(even) td {
    background: #fbfcfd;
}

body .pos-terminal-clean .ops-queue-empty,
body .pos-terminal-clean .empty-state {
    padding: 22px 12px;
    color: var(--pos-muted);
    text-align: center;
}

body .pos-terminal-clean .pos-classic-browser-row {
    cursor: pointer;
}

body .pos-terminal-clean .pos-classic-browser-row:hover,
body .pos-terminal-clean .pos-classic-browser-row.is-active {
    background: var(--pos-selected);
}

body .pos-terminal-clean .pos-order-stepper {
    gap: 4px;
}

body .pos-terminal-clean .pos-order-stepper button {
    width: 28px;
    min-width: 28px;
    height: 28px;
    border-radius: 0;
    border: 1px solid var(--pos-border);
    background: var(--pos-soft);
    box-shadow: none;
}

body .pos-terminal-clean .pos-inline-qty {
    width: 56px;
    min-height: 28px;
    border-radius: 0;
    font-weight: 700;
}

body .pos-terminal-clean .pos-terminal-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
    gap: 12px;
    align-items: start;
}

body .pos-terminal-clean .pos-terminal-inlinegrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

body .pos-terminal-clean .pos-terminal-actions {
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

body .pos-terminal-clean .pos-terminal-status,
body .pos-terminal-clean .pos-terminal-pagebadge {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid var(--pos-border);
    background: var(--pos-soft);
    border-radius: 0;
    font-size: 0.79rem;
    font-weight: 700;
}

body .pos-terminal-clean .pos-terminal-actionbuttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

body .pos-terminal-clean .pos-terminal-shortcutline {
    margin: 10px 0 0;
    color: var(--pos-muted);
    font-size: 0.76rem;
}

body .pos-terminal-clean .pos-terminal-summaryrows {
    display: grid;
}

body .pos-terminal-clean .pos-terminal-summaryrows > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 46px;
    padding: 0 12px;
    border-bottom: 1px solid var(--pos-border);
}

body .pos-terminal-clean .pos-terminal-summaryrows > div:last-child {
    border-bottom: 0;
}

body .pos-terminal-clean .pos-terminal-summaryrows > div.is-input {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
}

body .pos-terminal-clean .pos-terminal-summaryrows strong {
    font-size: 0.96rem;
}

body .pos-terminal-clean .pos-terminal-summaryrows input {
    min-height: 36px;
    text-align: right;
}

body .pos-terminal-clean .pos-terminal-shortcuts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

body .pos-terminal-clean .pos-terminal-picker {
    position: absolute;
    top: 58px;
    left: 14px;
    width: calc(100% - 28px);
    z-index: 14;
}

body .pos-terminal-clean .pos-terminal-picker-window {
    display: grid;
    gap: 12px;
    padding: 14px;
    box-shadow: none;
}

body .pos-terminal-clean .pos-terminal-pickerhead {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

body .pos-terminal-clean .pos-terminal-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

body .pos-terminal-clean .pos-terminal-categorystrip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

body .pos-terminal-clean .pos-terminal-categorystrip button {
    min-height: 34px;
    border: 1px solid var(--pos-border);
    background: var(--pos-soft);
    border-radius: 0;
    padding: 0 10px;
    font: inherit;
    font-size: 0.75rem;
    color: var(--pos-text);
}

body .pos-terminal-clean .pos-terminal-categorystrip button.is-active {
    border-color: #7ca3cb;
    background: #eaf3fb;
    color: #205b8f;
}

body .pos-terminal-clean .pos-terminal-pickerpagination {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

body .pos-terminal-clean .pos-terminal-hiddentools {
    display: none;
}

@media (max-width: 1200px) {
    body .pos-terminal-clean .pos-terminal-head,
    body .pos-terminal-clean .pos-terminal-bottom {
        grid-template-columns: 1fr;
    }

    body .pos-terminal-clean .pos-terminal-entry-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body .pos-terminal-clean .pos-terminal-entry-actions {
        grid-column: 1 / -1;
        grid-auto-flow: column;
        justify-content: flex-start;
    }
}

@media (max-width: 860px) {
    body .pos-terminal-clean .pos-terminal-tabs {
        overflow-x: auto;
    }

    body .pos-terminal-clean .pos-terminal-tab {
        min-width: max-content;
    }

    body .pos-terminal-clean .pos-terminal-row,
    body .pos-terminal-clean .pos-terminal-summaryrows > div.is-input {
        grid-template-columns: 1fr;
    }

    body .pos-terminal-clean .pos-terminal-row-field-stack,
    body .pos-terminal-clean .pos-terminal-inlinegrid,
    body .pos-terminal-clean .pos-terminal-shortcuts,
    body .pos-terminal-clean .pos-terminal-search {
        grid-template-columns: 1fr;
    }

    body .pos-terminal-clean .pos-terminal-actions,
    body .pos-terminal-clean .pos-terminal-pickerhead,
    body .pos-terminal-clean .pos-terminal-pickeractions {
        flex-direction: column;
        align-items: stretch;
    }

    body .pos-terminal-clean .pos-terminal-actionbuttons {
        justify-content: stretch;
    }

    body .pos-terminal-clean .pos-terminal-actionbuttons > * {
        width: 100%;
    }
}

@media (max-width: 640px) {
    body .pos-terminal-clean .pos-terminal-body {
        padding: 10px;
    }

    body .pos-terminal-clean .pos-terminal-entry-grid {
        grid-template-columns: 1fr;
    }

    body .pos-terminal-clean .pos-terminal-totalbox {
        text-align: left;
    }

    body .pos-terminal-clean .pos-terminal-totalbox > strong {
        font-size: clamp(2.6rem, 16vw, 4rem);
    }

    body .pos-terminal-clean .pos-terminal-picker {
        position: static;
        width: 100%;
        padding-top: 4px;
    }

    body .pos-terminal-clean .pos-terminal-cartbox,
    body .pos-terminal-clean .pos-terminal-pickertablebox {
        overflow: auto;
    }
}

/* ==========================
   POS IPOS REFACTOR OVERRIDES
   ========================== */
body .pos-terminal-clean.pos-ipos-refactor input,
body .pos-terminal-clean.pos-ipos-refactor select,
body .pos-terminal-clean.pos-ipos-refactor textarea {
    width: 100%;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid var(--ipos-border);
    border-radius: 12px;
    background: var(--ipos-elevated);
    color: var(--ipos-text);
    box-shadow: none;
    font: inherit;
    color-scheme: inherit;
    caret-color: var(--ipos-text);
    -webkit-text-fill-color: var(--ipos-text);
}

body .pos-terminal-clean.pos-ipos-refactor input[readonly] {
    background: var(--ipos-surface-soft);
}

body .pos-terminal-clean.pos-ipos-refactor textarea {
    min-height: 98px;
    resize: vertical;
}

body .pos-terminal-clean.pos-ipos-refactor input::placeholder,
body .pos-terminal-clean.pos-ipos-refactor textarea::placeholder {
    color: var(--ipos-muted);
    opacity: 0.58;
}

body .pos-terminal-clean.pos-ipos-refactor select option {
    background: var(--ipos-surface);
    color: var(--ipos-text);
}

html[data-theme="dark"] body .pos-terminal-clean.pos-ipos-refactor {
    color-scheme: inherit;
}

html[data-theme="dark"] body .pos-terminal-clean.pos-ipos-refactor input,
html[data-theme="dark"] body .pos-terminal-clean.pos-ipos-refactor select,
html[data-theme="dark"] body .pos-terminal-clean.pos-ipos-refactor textarea {
    background: var(--ipos-elevated);
    border-color: var(--ipos-border);
    color: var(--ipos-text);
    -webkit-text-fill-color: var(--ipos-text);
    box-shadow: none;
}

html[data-theme="dark"] body .pos-terminal-clean.pos-ipos-refactor input:focus,
html[data-theme="dark"] body .pos-terminal-clean.pos-ipos-refactor select:focus,
html[data-theme="dark"] body .pos-terminal-clean.pos-ipos-refactor textarea:focus {
    background: var(--ipos-elevated);
    border-color: var(--ipos-accent);
}

html[data-theme="dark"] body .pos-terminal-clean.pos-ipos-refactor input[readonly] {
    background: var(--ipos-surface-soft);
    -webkit-text-fill-color: var(--ipos-muted);
}

body .pos-terminal-clean.pos-ipos-refactor .pos-vintage-button,
body .pos-terminal-clean.pos-ipos-refactor .pos-vintage-mini,
body .pos-terminal-clean.pos-ipos-refactor .pos-payment-method,
body .pos-terminal-clean.pos-ipos-refactor .danger-button,
body .pos-terminal-clean.pos-ipos-refactor .ghost-button {
    min-height: 40px;
    border-radius: 12px;
    border: 1px solid var(--ipos-border-strong);
    background: var(--ipos-button-bg);
    color: var(--ipos-text);
    box-shadow: none;
    font-size: 0.8rem;
    font-weight: 700;
}

body .pos-terminal-clean.pos-ipos-refactor .pos-vintage-button.is-primary {
    border-color: var(--ipos-primary-border);
    background: var(--ipos-primary-bg);
    color: var(--ipos-primary-color);
}

body .pos-terminal-clean.pos-ipos-refactor .pos-vintage-button.is-success {
    border-color: var(--ipos-success-border);
    background: var(--ipos-success-bg);
    color: var(--ipos-success-color);
}

body .pos-terminal-clean.pos-ipos-refactor .pos-vintage-mini.danger,
body .pos-terminal-clean.pos-ipos-refactor .danger-button {
    border-color: var(--ipos-danger-border);
    background: var(--ipos-danger-bg);
    color: var(--ipos-danger-color);
}

body .pos-terminal-clean.pos-ipos-refactor .pos-payment-method.is-active {
    border-color: var(--ipos-primary-border);
    background: var(--ipos-primary-bg);
    color: var(--ipos-primary-color);
}

body .pos-terminal-clean.pos-ipos-refactor .table-box,
body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-cartbox,
body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-pickertablebox {
    margin: 0;
    border-radius: 14px;
    border-color: var(--ipos-border);
    background: var(--ipos-surface);
    box-shadow: none;
}

body .pos-terminal-clean.pos-ipos-refactor .ops-queue-table thead th,
body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-pickertable thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--ipos-table-head-bg);
    color: var(--ipos-table-head-color);
    font-size: 0.79rem;
    font-weight: 800;
}

body .pos-terminal-clean.pos-ipos-refactor .ops-queue-table th,
body .pos-terminal-clean.pos-ipos-refactor .ops-queue-table td,
body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-pickertable th,
body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-pickertable td {
    padding: 11px 10px;
    border-color: var(--ipos-border);
    vertical-align: middle;
    font-size: 0.8rem;
}

body .pos-terminal-clean.pos-ipos-refactor .ops-queue-table tbody tr:hover td,
body .pos-terminal-clean.pos-ipos-refactor .pos-classic-browser-row:hover td {
    background: var(--ipos-table-row-hover);
}

body .pos-terminal-clean.pos-ipos-refactor .pos-vintage-cart-row.is-active td,
body .pos-terminal-clean.pos-ipos-refactor .pos-classic-browser-row.is-active td {
    background: var(--ipos-accent-soft);
}

body .pos-terminal-clean.pos-ipos-refactor .pos-order-stepper button {
    width: 30px;
    min-width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid var(--ipos-border);
    background: var(--ipos-surface-soft);
    box-shadow: none;
}

body .pos-terminal-clean.pos-ipos-refactor .pos-inline-qty {
    width: 62px;
    min-height: 30px;
    padding: 4px 6px;
    text-align: center;
    font-weight: 700;
}

body .pos-terminal-clean.pos-ipos-refactor .ops-queue-empty,
body .pos-terminal-clean.pos-ipos-refactor .empty-state {
    padding: 30px 14px;
    color: var(--ipos-muted);
    text-align: center;
}

/* ==========================
   THEME CONTRAST SAFETY NET
   ========================== */
html[data-theme="light"] body :is(
    .pos-vintage-window,
    .pos-classic-shell,
    .pos-terminal-clean,
    .pos-terminal-clean.pos-ipos-refactor,
    .hris-document-preview-stage,
    .hris-document-sign-pad
) {
    color-scheme: light;
    color: #10233b;
}

html[data-theme="dark"] body :is(
    .pos-vintage-window,
    .pos-classic-shell,
    .pos-terminal-clean,
    .pos-terminal-clean.pos-ipos-refactor,
    .hris-document-preview-stage,
    .hris-document-sign-pad
) {
    color-scheme: dark;
    color: var(--text-strong);
}

html[data-theme] body :is(.pos-vintage-shell, .pos-classic-shell) :is(select, option) {
    background-color: var(--theme-input-bg);
    color: var(--theme-input-color);
}

html[data-theme] body :is(.pos-vintage-shell, .pos-classic-shell, .hris-document-sign-form) input::placeholder,
html[data-theme] body :is(.pos-vintage-shell, .pos-classic-shell, .hris-document-sign-form) textarea::placeholder {
    color: var(--theme-input-placeholder);
    opacity: 0.58;
}

html[data-theme] body .pos-classic-shell {
    color: var(--text-strong);
}

html[data-theme] body .pos-classic-shell :is(.section-title h2, .section-title h3, strong, label) {
    color: var(--text-strong);
}

html[data-theme] body .pos-classic-shell :is(.section-title p, .helper-text, small) {
    color: var(--theme-helper-color);
}

html[data-theme] body :is(
    .pos-classic-meta-panel,
    .pos-classic-draft-panel,
    .pos-classic-total-panel,
    .pos-classic-browser-window,
    .pos-classic-keypad-box,
    .pos-classic-note-box,
    .pos-classic-action-box,
    .pos-classic-stock-card
) {
    background: var(--theme-surface-bg);
    border-color: var(--theme-surface-border);
    box-shadow:
        var(--theme-surface-shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html[data-theme] body .pos-classic-shell :is(input, select, textarea) {
    background: var(--theme-input-bg);
    color: var(--theme-input-color);
    border-color: var(--theme-input-border);
    box-shadow: none;
}

html[data-theme] body .pos-classic-shell input[readonly] {
    background: var(--theme-input-readonly-bg);
    color: var(--theme-disabled-color);
    -webkit-text-fill-color: var(--theme-disabled-color);
}

html[data-theme] body .pos-classic-kicker,
html[data-theme] body .pos-payment-method {
    background: var(--theme-filter-bg);
    color: var(--theme-ghost-color);
    border-color: var(--theme-filter-border);
}

html[data-theme] body .pos-payment-method.is-active {
    background: var(--theme-sidebar-link-bg);
    color: var(--theme-sidebar-link-active-color);
    border-color: var(--theme-sidebar-link-border);
}

html[data-theme] body .pos-vintage-shell {
    color: var(--text-strong);
}

html[data-theme] body .pos-vintage-shell :is(label, strong) {
    color: var(--text-strong);
}

html[data-theme] body .pos-vintage-shell small {
    color: var(--theme-helper-color);
}

html[data-theme] body :is(
    .pos-vintage-formpanel,
    .pos-vintage-draftpanel,
    .pos-vintage-detailpanel,
    .pos-vintage-paymentpanel,
    .pos-vintage-sidebox,
    .pos-vintage-picker-window,
    .pos-vintage-recent
) {
    border-color: var(--theme-surface-border);
    background: var(--theme-surface-bg);
    box-shadow:
        var(--theme-surface-shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html[data-theme] body .pos-vintage-subtabs {
    border-bottom-color: var(--theme-filter-border);
    background: var(--theme-filter-bg);
}

html[data-theme] body .pos-vintage-subtabs span {
    color: var(--theme-helper-color);
}

html[data-theme] body .pos-vintage-menubar button.is-active,
html[data-theme] body .pos-vintage-subtabs span.is-active {
    background: var(--theme-input-bg);
    color: var(--theme-input-color);
    box-shadow: inset 0 0 0 1px var(--theme-input-border);
}

html[data-theme] body .pos-vintage-shell :is(input, select, textarea) {
    background: var(--theme-input-bg);
    color: var(--theme-input-color);
    border-color: var(--theme-input-border);
    box-shadow: none;
}

html[data-theme] body .pos-vintage-shell input[readonly] {
    background: var(--theme-input-readonly-bg);
    color: var(--theme-disabled-color);
    -webkit-text-fill-color: var(--theme-disabled-color);
}

html[data-theme] body .pos-vintage-shell th {
    color: var(--theme-table-header-color);
    background: var(--theme-table-header-bg);
}

html[data-theme] body .pos-vintage-shell td {
    color: var(--text-strong);
}

html[data-theme="dark"] body .pos-ipos-refactor {
    --ipos-bg: #0d1728;
    --ipos-surface: #101d31;
    --ipos-surface-soft: #17263b;
    --ipos-elevated: #142237;
    --ipos-elevated-soft: #1a2b42;
    --ipos-border: rgba(148, 163, 184, 0.18);
    --ipos-border-strong: rgba(148, 163, 184, 0.26);
    --ipos-text: #e6f0fb;
    --ipos-muted: #9eb3c8;
    --ipos-accent: #7ec2ff;
    --ipos-accent-soft: rgba(93, 183, 255, 0.18);
    --ipos-dark: #15253a;
    --ipos-dark-soft: #0f1d30;
    --ipos-button-bg: linear-gradient(180deg, rgba(24, 38, 57, 0.98) 0%, rgba(16, 29, 49, 0.98) 100%);
    --ipos-button-hover-bg: linear-gradient(180deg, rgba(29, 46, 68, 0.98) 0%, rgba(20, 34, 54, 0.98) 100%);
    --ipos-primary-bg: linear-gradient(180deg, rgba(93, 183, 255, 0.24) 0%, rgba(93, 183, 255, 0.1) 100%);
    --ipos-primary-border: rgba(126, 194, 255, 0.34);
    --ipos-primary-color: #dff1ff;
    --ipos-success-bg: linear-gradient(180deg, rgba(33, 197, 125, 0.24) 0%, rgba(33, 197, 125, 0.1) 100%);
    --ipos-success-border: rgba(33, 197, 125, 0.28);
    --ipos-success-color: #c7ffe2;
    --ipos-danger-bg: linear-gradient(180deg, rgba(255, 107, 107, 0.24) 0%, rgba(255, 107, 107, 0.1) 100%);
    --ipos-danger-border: rgba(255, 107, 107, 0.28);
    --ipos-danger-color: #ffd6d6;
    --ipos-table-head-bg: rgba(255, 255, 255, 0.04);
    --ipos-table-head-color: #b2c5d9;
    --ipos-table-row-hover: rgba(93, 183, 255, 0.08);
    --ipos-total-bg: linear-gradient(180deg, rgba(93, 183, 255, 0.16) 0%, rgba(16, 29, 49, 0.96) 100%);
    --ipos-total-border: rgba(93, 183, 255, 0.24);
    --ipos-total-value: #f7fbff;
    --ipos-empty-bg: linear-gradient(180deg, rgba(19, 31, 50, 0.94), rgba(14, 24, 40, 0.96));
    --ipos-empty-border: rgba(148, 163, 184, 0.22);
    --ipos-cart-table-bg: #0f1b2d;
    --ipos-cart-row-bg: rgba(18, 29, 46, 0.96);
    --ipos-cart-row-alt-bg: rgba(23, 37, 58, 0.98);
    --ipos-cart-row-active-bg: rgba(54, 99, 149, 0.3);
    --ipos-cart-row-border: rgba(148, 163, 184, 0.16);
    --ipos-cart-input-bg: #17263b;
    --ipos-cart-input-border: rgba(148, 163, 184, 0.24);
    --ipos-cart-empty-bg: linear-gradient(180deg, rgba(20, 33, 53, 0.96), rgba(14, 24, 40, 0.98));
    --ipos-picker-window-bg: #0f1b2d;
    --ipos-picker-table-bg: #0b1525;
    --ipos-picker-row-bg: rgba(14, 24, 40, 0.98);
    --ipos-picker-row-alt-bg: rgba(18, 29, 46, 0.98);
    --ipos-picker-row-hover-bg: rgba(93, 183, 255, 0.12);
    --ipos-overlay: rgba(3, 8, 15, 0.72);
    --ipos-panel-shadow: 0 24px 46px rgba(1, 8, 18, 0.34);
    --ipos-topbar-text: #f4f8ff;
    --ipos-topbar-muted: rgba(223, 233, 245, 0.76);
    --ipos-topbar-chip-bg: rgba(255, 255, 255, 0.08);
    --ipos-topbar-chip-border: rgba(255, 255, 255, 0.12);
    --ipos-topbar-button-bg: rgba(255, 255, 255, 0.08);
    --ipos-topbar-button-border: rgba(255, 255, 255, 0.16);
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor :is(input, select, textarea) {
    background: var(--ipos-elevated);
    color: var(--ipos-text);
    border-color: var(--ipos-border);
    box-shadow: none;
    caret-color: var(--ipos-text);
    -webkit-text-fill-color: var(--ipos-text);
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor input[readonly] {
    background: var(--ipos-surface-soft);
    -webkit-text-fill-color: var(--ipos-muted);
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor input::placeholder,
html[data-theme] body .pos-terminal-clean.pos-ipos-refactor textarea::placeholder {
    color: var(--ipos-muted);
    opacity: 0.58;
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor select option {
    background: var(--ipos-surface);
    color: var(--ipos-text);
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor :is(input:focus, select:focus, textarea:focus) {
    background: var(--ipos-elevated);
    border-color: var(--ipos-accent);
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor :is(
    .pos-vintage-button,
    .pos-vintage-mini,
    .pos-payment-method,
    .danger-button,
    .ghost-button
) {
    border-color: var(--ipos-border-strong);
    background: var(--ipos-button-bg);
    color: var(--ipos-text);
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-vintage-button.is-primary {
    border-color: var(--ipos-primary-border);
    background: var(--ipos-primary-bg);
    color: var(--ipos-primary-color);
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-vintage-button.is-success {
    border-color: var(--ipos-success-border);
    background: var(--ipos-success-bg);
    color: var(--ipos-success-color);
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor :is(.pos-vintage-mini.danger, .danger-button) {
    border-color: var(--ipos-danger-border);
    background: var(--ipos-danger-bg);
    color: var(--ipos-danger-color);
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-payment-method.is-active {
    border-color: var(--ipos-primary-border);
    background: var(--ipos-primary-bg);
    color: var(--ipos-primary-color);
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-window {
    background: var(--ipos-bg);
    border-color: var(--ipos-border-strong);
    box-shadow: none;
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor :is(
    .pos-ipos-panel,
    .pos-ipos-toolbar-pill,
    .pos-ipos-summaryrows,
    .pos-ipos-cartbox,
    .pos-ipos-log-tablebox,
    .pos-ipos-pickertablebox,
    .pos-ipos-picker-window
) {
    background: var(--ipos-surface);
    border-color: var(--ipos-border);
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-picker {
    background: var(--ipos-overlay);
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-picker-window {
    background: var(--ipos-picker-window-bg);
    border-color: var(--ipos-border-strong);
    box-shadow: var(--ipos-panel-shadow);
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor :is(
    .pos-ipos-pickertablebox,
    .pos-ipos-pickertable,
    .pos-ipos-pickertable tbody
) {
    background: var(--ipos-picker-table-bg);
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-pickertable tbody tr td {
    background: var(--ipos-picker-row-bg);
    color: var(--ipos-text);
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-pickertable tbody tr:nth-child(even) td {
    background: var(--ipos-picker-row-alt-bg);
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-pickertable tbody tr:hover td,
html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-pickertable tbody tr:focus-within td {
    background: var(--ipos-picker-row-hover-bg);
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-pickertable tbody td :is(strong, small, .mono, .empty-state) {
    color: inherit;
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor :is(
    .pos-ipos-stockbox,
    .pos-ipos-log-card,
    .pos-ipos-counter,
    .pos-ipos-pagebadge
) {
    background: var(--ipos-surface-soft);
    border-color: var(--ipos-border);
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-totalbox {
    background: var(--ipos-total-bg);
    border-color: var(--ipos-total-border);
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-totalbox > strong {
    color: var(--ipos-total-value);
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-cart-panel,
html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-cartbox,
html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-carttable,
html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-carttable tbody,
html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-carttable tbody tr,
html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .ops-queue-table {
    background: var(--ipos-cart-table-bg);
    color: var(--ipos-text);
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-vintage-cartbox {
    background: var(--ipos-cart-table-bg);
    border-color: var(--ipos-border);
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-vintage-cart-row td {
    background: var(--ipos-cart-row-bg);
    color: var(--ipos-text);
    box-shadow: inset 0 -1px 0 var(--ipos-cart-row-border);
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-vintage-cart-row:nth-child(even) td {
    background: var(--ipos-cart-row-alt-bg);
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-vintage-cart-row:hover td {
    background: var(--ipos-table-row-hover);
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-vintage-cart-row.is-active td {
    background: var(--ipos-cart-row-active-bg);
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .ops-queue-table :is(td, td strong, td .mono, td label) {
    color: var(--ipos-text);
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .ops-queue-table td :is(small, .helper-text) {
    color: var(--ipos-muted);
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor :is(.pos-order-stepper button, .pos-inline-qty, .pos-inline-price) {
    background: var(--ipos-cart-input-bg);
    color: var(--ipos-text);
    border-color: var(--ipos-cart-input-border);
    -webkit-text-fill-color: var(--ipos-text);
    box-shadow: none;
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-inline-price:disabled {
    background: var(--ipos-surface-soft);
    color: var(--ipos-muted);
    border-color: var(--ipos-border);
    -webkit-text-fill-color: var(--ipos-muted);
    opacity: 1;
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .ops-queue-empty {
    border: 1px dashed var(--ipos-empty-border);
    border-radius: 14px;
    background: var(--ipos-cart-empty-bg);
    color: var(--ipos-muted);
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-toolbar-switcher select {
    min-height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ipos-text);
    font-size: 0.92rem;
    font-weight: 700;
    box-shadow: none;
    -webkit-text-fill-color: var(--ipos-text);
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-toolbar-switcher select:focus {
    background: transparent;
    border-color: transparent;
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-topbar {
    color: var(--ipos-topbar-text);
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-topbar :is(
    .pos-ipos-brand-copy strong,
    .pos-ipos-topstat strong
) {
    color: var(--ipos-topbar-text);
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-topbar :is(
    .pos-ipos-brand-copy small,
    .pos-ipos-topstat span
) {
    color: var(--ipos-topbar-muted);
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor :is(
    .pos-ipos-brand-mark,
    .pos-ipos-topstat
) {
    border-color: var(--ipos-topbar-chip-border);
    background: var(--ipos-topbar-chip-bg);
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor :is(
    .pos-ipos-menu-trigger,
    .pos-ipos-close
) {
    border-color: var(--ipos-topbar-button-border);
    background: var(--ipos-topbar-button-bg);
    color: var(--ipos-topbar-text);
}

html[data-theme] body .hris-document-signature-preview img {
    background: var(--theme-surface-bg);
    border-color: var(--theme-input-border);
}

html[data-theme] body .hris-document-sign-pad {
    border-color: var(--theme-input-border);
    background: var(--theme-surface-bg);
}

html[data-theme] body .hris-document-sign-pad::before {
    border-top-color: var(--theme-table-border);
}

html[data-theme] body :is(
    .pos-vintage-window,
    .pos-terminal-clean .pos-vintage-window.pos-terminal-window,
    .pos-classic-cart-box,
    .pos-classic-browser-table-box,
    .pos-terminal-clean .pos-terminal-meta,
    .pos-terminal-clean .pos-terminal-entry,
    .pos-terminal-clean .pos-terminal-detailpanel,
    .pos-terminal-clean .pos-terminal-summarypanel,
    .pos-terminal-clean .pos-terminal-cartbox,
    .pos-terminal-clean .pos-terminal-picker-window,
    .pos-terminal-clean .pos-terminal-pickertablebox,
    .pos-terminal-clean:not(.pos-ipos-refactor) .table-box
) {
    background: var(--theme-surface-bg);
    border-color: var(--theme-surface-border);
    box-shadow: var(--theme-surface-shadow);
}

html[data-theme] body :is(
    .pos-vintage-titlebar,
    .pos-vintage-menubar,
    .pos-vintage-subtabs,
    .pos-terminal-clean .pos-terminal-tabbar,
    .pos-terminal-clean .pos-terminal-tab
) {
    background: var(--theme-filter-bg);
    border-color: var(--theme-filter-border);
    color: var(--text-strong);
}

html[data-theme] body .pos-vintage-titlecopy strong,
html[data-theme] body .pos-vintage-menubar button,
html[data-theme] body .pos-vintage-subtabs span,
html[data-theme] body .pos-terminal-clean:not(.pos-ipos-refactor) :is(label, td, th, strong) {
    color: var(--text-strong);
}

html[data-theme] body .pos-vintage-titlecopy span,
html[data-theme] body .pos-terminal-clean:not(.pos-ipos-refactor) small {
    color: var(--theme-helper-color);
}

html[data-theme] body .pos-terminal-clean:not(.pos-ipos-refactor) .pos-terminal-tab.is-active {
    background: var(--theme-input-bg);
    color: var(--accent-strong);
}

html[data-theme] body .pos-terminal-clean:not(.pos-ipos-refactor) .pos-terminal-close {
    border-left-color: var(--theme-filter-border);
    color: var(--text-strong);
}

html[data-theme] body :is(
    .pos-classic-cart-table thead th,
    .pos-classic-browser-table thead th,
    .pos-vintage-recenttable thead th,
    .pos-terminal-clean:not(.pos-ipos-refactor) .ops-queue-table thead th,
    .pos-terminal-clean:not(.pos-ipos-refactor) .pos-vintage-pickertable thead th,
    .pos-terminal-clean.pos-ipos-refactor .ops-queue-table thead th,
    .pos-terminal-clean.pos-ipos-refactor .pos-ipos-pickertable thead th
) {
    background: var(--theme-table-header-bg);
    color: var(--theme-table-header-color);
}

html[data-theme] body :is(
    .pos-classic-browser-columns,
    .pos-classic-browser-table thead,
    .pos-classic-browser-table thead tr
) {
    background: #eef2f7;
}

html[data-theme="dark"] body :is(
    .pos-classic-browser-columns,
    .pos-classic-browser-table thead th,
    .pos-classic-browser-table thead,
    .pos-classic-browser-table thead tr
) {
    background: #1a2738;
}

html[data-theme="dark"] body .pos-classic-browser-columns {
    border-color: rgba(148, 163, 184, 0.14);
    box-shadow: inset 0 -1px 0 rgba(148, 163, 184, 0.14), 0 12px 20px rgba(2, 6, 23, 0.26);
}

html[data-theme="light"] body :is(
    .pos-classic-browser-columns,
    .pos-classic-browser-table thead th,
    .pos-classic-browser-table thead,
    .pos-classic-browser-table thead tr
) {
    background: #eef2f7;
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-pickertable thead th {
    background: var(--ipos-table-head-bg);
    color: var(--ipos-table-head-color);
}

html[data-theme] body .pos-classic-cart-table tbody tr,
html[data-theme] body .pos-classic-browser-table tbody tr {
    background: transparent;
}

html[data-theme] body .pos-classic-browser-table tbody td {
    background: var(--theme-card-bg, rgba(9, 18, 31, 0.94));
}

html[data-theme] body .pos-classic-browser-table tbody tr:nth-child(even) td {
    background: var(--theme-input-readonly-bg, rgba(16, 29, 49, 0.96));
}

html[data-theme] body :is(
    .pos-terminal-clean:not(.pos-ipos-refactor) .ops-queue-table tbody tr:nth-child(even) td,
    .pos-terminal-clean:not(.pos-ipos-refactor) .pos-vintage-pickertable tbody tr:nth-child(even) td
) {
    background: var(--theme-input-readonly-bg);
}

html[data-theme] body :is(
    .pos-classic-browser-row:hover,
    .pos-classic-browser-row.is-active,
    .pos-terminal-clean:not(.pos-ipos-refactor) .pos-classic-browser-row:hover,
    .pos-terminal-clean:not(.pos-ipos-refactor) .pos-classic-browser-row.is-active
) {
    background: var(--theme-table-hover);
}

html[data-theme] body :is(
    .pos-classic-browser-row:hover td,
    .pos-classic-browser-row.is-active td,
    .pos-terminal-clean:not(.pos-ipos-refactor) .pos-classic-browser-row:hover td,
    .pos-terminal-clean:not(.pos-ipos-refactor) .pos-classic-browser-row.is-active td
) {
    background: var(--theme-table-hover);
}

html[data-theme] body :is(
    .pos-vintage-shell .pos-vintage-button,
    .pos-vintage-shell .pos-vintage-mini,
    .pos-classic-shell .pos-payment-method,
    .pos-terminal-clean:not(.pos-ipos-refactor) .pos-vintage-button,
    .pos-terminal-clean:not(.pos-ipos-refactor) .pos-vintage-mini,
    .pos-terminal-clean:not(.pos-ipos-refactor) .pos-payment-method,
    .pos-terminal-clean:not(.pos-ipos-refactor) .danger-button,
    .pos-terminal-clean:not(.pos-ipos-refactor) .ghost-button
) {
    background: var(--theme-ghost-bg);
    color: var(--theme-ghost-color);
    border-color: var(--theme-ghost-border);
    box-shadow: none;
}

html[data-theme] body :is(
    .pos-vintage-shell .pos-vintage-mini.danger,
    .pos-terminal-clean:not(.pos-ipos-refactor) .danger-button,
    .pos-terminal-clean:not(.pos-ipos-refactor) .pos-vintage-mini.danger
) {
    background: var(--theme-danger-soft-bg);
    color: var(--theme-danger-soft-color);
    border-color: var(--theme-danger-soft-border);
}

html[data-theme] body :is(
    .pos-classic-shell .pos-order-stepper button,
    .pos-terminal-clean:not(.pos-ipos-refactor) .pos-order-stepper button
) {
    background: var(--theme-input-bg);
    color: var(--theme-input-color);
    border-color: var(--theme-input-border);
    box-shadow: none;
}

html[data-theme] body .so-save-bar {
    border-color: var(--theme-surface-border);
    background: var(--theme-surface-bg);
    box-shadow: var(--theme-surface-shadow);
}

html[data-theme] body .so-save-bar strong {
    color: var(--text-strong);
}

html[data-theme] body .so-save-bar .helper-text {
    color: var(--theme-helper-color);
}

html[data-theme] body .floating-toast {
    background: var(--theme-toast-bg);
    color: var(--theme-toast-color);
    border-color: var(--theme-toast-border);
    box-shadow: var(--theme-surface-shadow);
}

html[data-theme] body .product-lookup-card {
    border-color: var(--theme-surface-border);
    box-shadow: var(--theme-surface-shadow);
}

html[data-theme="dark"] body .product-lookup-card {
    background: linear-gradient(180deg, rgba(9, 20, 35, 0.94), rgba(12, 26, 45, 0.92));
}

html[data-theme="dark"] body .product-lookup-kicker,
html[data-theme="dark"] body .product-lookup-stock-overview span,
html[data-theme="dark"] body .product-lookup-price-card span,
html[data-theme="dark"] body .product-lookup-stock-overview small,
html[data-theme="dark"] body .product-lookup-warehouse-pill span {
    color: rgba(219, 231, 245, 0.74);
}

html[data-theme="dark"] body .product-lookup-card h3,
html[data-theme="dark"] body .product-lookup-stock-overview strong,
html[data-theme="dark"] body .product-lookup-price-card strong,
html[data-theme="dark"] body .product-lookup-warehouse-pill strong {
    color: #f7fbff;
}

html[data-theme="light"] body .product-lookup-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 247, 252, 0.97));
}

html[data-theme="light"] body .product-lookup-kicker,
html[data-theme="light"] body .product-lookup-stock-overview span,
html[data-theme="light"] body .product-lookup-price-card span,
html[data-theme="light"] body .product-lookup-stock-overview small,
html[data-theme="light"] body .product-lookup-warehouse-pill span {
    color: #5a728b;
}

html[data-theme="light"] body .product-lookup-card h3,
html[data-theme="light"] body .product-lookup-stock-overview strong,
html[data-theme="light"] body .product-lookup-price-card strong,
html[data-theme="light"] body .product-lookup-warehouse-pill strong {
    color: #0d2340;
}

html[data-theme="light"] body .product-lookup-stock-overview,
html[data-theme="light"] body .product-lookup-price-card,
html[data-theme="light"] body .product-lookup-warehouse-pill {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(116, 138, 165, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

html[data-theme="light"] body .product-lookup-price-card.is-best {
    background: linear-gradient(135deg, rgba(93, 183, 255, 0.18), rgba(231, 242, 255, 0.98));
    border-color: rgba(33, 137, 255, 0.18);
}

html[data-theme="light"] body .product-lookup-warehouse-pill.is-focus,
html[data-theme="light"] body .product-lookup-stock-overview {
    background: rgba(93, 183, 255, 0.1);
    border-color: rgba(33, 137, 255, 0.14);
}

html[data-theme="light"] body .product-lookup-warehouse-pill.has-stock span {
    color: #0f6a43;
}

html[data-theme="light"] body .product-lookup-warehouse-pill.is-empty span {
    color: #8aa0b7;
}

html[data-theme] body .leave-request-reason-box {
    background: var(--theme-input-readonly-bg);
    border-color: var(--theme-surface-border);
}

html[data-theme] body .leave-request-reason-box p {
    color: var(--theme-helper-color);
}

html[data-theme] body .stock-group-edit-trigger {
    background: var(--theme-ghost-bg);
    color: var(--theme-ghost-color);
    border-color: var(--theme-ghost-border);
}

html[data-theme] body .stock-group-detail-panel {
    background: var(--theme-surface-bg);
    border-color: var(--theme-surface-border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html[data-theme] body .stock-group-variant-table th {
    color: var(--theme-table-header-color);
    background: var(--theme-table-header-bg);
}

html[data-theme] body .stock-group-variant-table td {
    color: var(--text-strong);
}

html[data-theme] body .meeting-form-note {
    background: var(--theme-surface-bg);
    border-color: var(--theme-surface-border);
    box-shadow: var(--theme-surface-shadow);
}

html[data-theme] body .meeting-form-note p,
html[data-theme] body .meeting-room-card .helper-text,
html[data-theme] body .meeting-stage-hint-card p {
    color: var(--theme-helper-color);
}

html[data-theme] body .meeting-form-actions .ghost-button.subtle {
    background: var(--theme-ghost-bg);
    color: var(--theme-ghost-color);
    border-color: var(--theme-ghost-border);
}

html[data-theme] body .meeting-room-card,
html[data-theme] body .meeting-stage-hint-card {
    background: var(--theme-surface-bg);
    border-color: var(--theme-surface-border);
}

html[data-theme] body.meeting-stage-page {
    color: var(--text);
    background:
        radial-gradient(circle at top left, var(--theme-bg-left), transparent 30%),
        radial-gradient(circle at top right, var(--theme-bg-right), transparent 24%),
        linear-gradient(145deg, var(--theme-bg-start) 0%, var(--theme-bg-middle) 42%, var(--theme-bg-end) 100%);
}

html[data-theme] body.meeting-stage-page::before {
    background-image:
        linear-gradient(var(--theme-grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--theme-grid-line) 1px, transparent 1px);
}

html[data-theme] body .meeting-stage-host {
    background: var(--theme-surface-bg);
    border-color: var(--theme-sidebar-link-border);
}

html[data-theme] body .hris-document-preview-panel,
html[data-theme] body .hris-document-approval-panel {
    background: var(--theme-surface-bg);
    border-color: var(--theme-surface-border);
    box-shadow: var(--theme-surface-shadow);
}

html[data-theme="light"] body .hris-document-preview-banner {
    background: linear-gradient(120deg, rgba(93, 183, 255, 0.18), rgba(107, 212, 255, 0.14));
    color: #0d2340;
    border: 1px solid rgba(33, 137, 255, 0.14);
}

html[data-theme="light"] body .hris-document-preview-brand-mark {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(33, 137, 255, 0.16);
    color: #103152;
}

html[data-theme="light"] body .hris-document-preview-brand strong,
html[data-theme="light"] body .hris-document-preview-brand span {
    color: #103152;
}

html[data-theme] body .hris-document-preview-empty {
    background: var(--theme-empty-bg);
    border-color: var(--theme-empty-border);
    color: var(--theme-empty-color);
}

html[data-theme] body .hris-document-signature-preview {
    background: var(--theme-surface-bg);
    border-color: var(--theme-surface-border);
}

html[data-theme] body .attendance-camera-frame {
    border-color: var(--theme-surface-border);
    box-shadow: var(--theme-surface-shadow);
}

html[data-theme="dark"] body .attendance-camera-frame {
    background:
        radial-gradient(circle at top, rgba(215, 183, 96, 0.18), transparent 58%),
        linear-gradient(180deg, rgba(7, 17, 31, 0.96), rgba(12, 22, 39, 0.94));
}

html[data-theme="light"] body .attendance-camera-frame {
    background:
        radial-gradient(circle at top, rgba(93, 183, 255, 0.16), transparent 58%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 246, 252, 0.98));
}

html[data-theme] body .attendance-optional-panel,
html[data-theme] body .attendance-log-detail {
    border-color: var(--theme-surface-border);
    background: var(--theme-input-readonly-bg);
}

html[data-theme] body .attendance-log-card {
    border-color: var(--theme-surface-border);
    background: var(--theme-surface-bg);
    box-shadow: var(--theme-surface-shadow);
}

html[data-theme] body .attendance-log-card-disclosure > .attendance-log-toggle::after {
    border-right-color: var(--theme-helper-color);
    border-bottom-color: var(--theme-helper-color);
}

html[data-theme] body .attendance-log-body {
    border-top-color: var(--theme-table-border);
}

html[data-theme] body .attendance-log-head :is(h3, p),
html[data-theme] body .attendance-log-note,
html[data-theme] body .attendance-log-event p,
html[data-theme] body .attendance-log-event-note,
html[data-theme] body .attendance-log-toggle-meta {
    color: var(--theme-helper-color);
}

html[data-theme] body .attendance-log-head h3,
html[data-theme] body .attendance-log-summary strong {
    color: var(--text-strong);
}

html[data-theme] body .attendance-log-event {
    background: var(--theme-input-readonly-bg);
    border-color: var(--theme-table-border);
}

html[data-theme] body .attendance-history-item {
    border-color: var(--theme-surface-border);
    background: var(--theme-surface-bg);
    box-shadow: var(--theme-surface-shadow);
}

html[data-theme] body .attendance-history-photo,
html[data-theme] body .biometric-photo-empty {
    border-color: var(--theme-input-border);
    background: var(--theme-input-readonly-bg);
    color: var(--theme-helper-color);
}

html[data-theme] body .biometric-photo-preview {
    border-color: var(--theme-input-border);
}

html[data-theme] body .biometric-attendance-status-select {
    border-color: var(--theme-input-border);
    background: var(--theme-input-bg);
    color: var(--theme-input-color);
}

html[data-theme] body .biometric-attendance-time-pill,
html[data-theme] body .biometric-attendance-time-readonly {
    border-color: var(--theme-input-border);
    background: var(--theme-input-bg);
}

html[data-theme] body .biometric-attendance-time-pill.is-disabled {
    background: var(--theme-input-readonly-bg);
}

html[data-theme] body .biometric-attendance-time-input,
html[data-theme] body .biometric-attendance-time-readonly-value {
    color: var(--theme-input-color);
}

html[data-theme] body .biometric-attendance-time-divider {
    color: var(--theme-helper-color);
}

html[data-theme] body .biometric-attendance-status-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(93, 183, 255, 0.16);
}

html[data-theme="light"] body .biometric-break-duration.is-live {
    color: #0c6aa1;
}

html[data-theme="light"] body .biometric-break-duration.is-alert,
html[data-theme="light"] body .biometric-break-reminder-alert {
    color: #b45309;
}

html[data-theme="light"] body .biometric-overtime-duration {
    color: #0f6a43;
}

html[data-theme] body .report-feed-panel .stack-scroll-list {
    gap: 16px;
}

html[data-theme="light"] body .schedule-board-shell,
html[data-theme="light"] body .schedule-board-studio-wrap {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 246, 252, 0.98));
    border-color: rgba(116, 138, 165, 0.16);
    box-shadow:
        0 18px 34px rgba(36, 58, 84, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

html[data-theme="light"] body .schedule-board-shell::before {
    background:
        linear-gradient(rgba(12, 24, 43, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(12, 24, 43, 0.04) 1px, transparent 1px);
    opacity: 0.28;
}

html[data-theme="light"] body .schedule-board-hero,
html[data-theme="light"] body .schedule-board-lane-axis,
html[data-theme="light"] body .schedule-lane-day-card,
html[data-theme="light"] body .schedule-lane-group-head,
html[data-theme="light"] body .schedule-lane-member,
html[data-theme="light"] body .schedule-lane-cell,
html[data-theme="light"] body .schedule-board-rail-head,
html[data-theme="light"] body .schedule-day-tile,
html[data-theme="light"] body .schedule-member-header,
html[data-theme="light"] body .schedule-slot {
    border-color: rgba(116, 138, 165, 0.16);
    box-shadow:
        0 14px 26px rgba(36, 58, 84, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

html[data-theme="light"] body .schedule-board-hero,
html[data-theme="light"] body .schedule-board-lane-axis,
html[data-theme="light"] body .schedule-lane-member,
html[data-theme="light"] body .schedule-board-rail-head,
html[data-theme="light"] body .schedule-member-header {
    background:
        radial-gradient(circle at top right, rgba(82, 179, 255, 0.12), transparent 36%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 247, 252, 0.97));
}

html[data-theme="light"] body .schedule-lane-day-card,
html[data-theme="light"] body .schedule-lane-cell,
html[data-theme="light"] body .schedule-day-tile,
html[data-theme="light"] body .schedule-slot {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 253, 0.97));
}

html[data-theme="light"] body .schedule-lane-day-card-weekend,
html[data-theme="light"] body .schedule-lane-cell-weekend,
html[data-theme="light"] body .schedule-day-tile-weekend,
html[data-theme="light"] body .schedule-slot-weekend {
    background: linear-gradient(180deg, rgba(242, 247, 253, 0.98), rgba(234, 242, 250, 0.97));
    border-color: rgba(107, 212, 255, 0.16);
}

html[data-theme="light"] body .schedule-lane-group-head {
    background: rgba(239, 245, 252, 0.94);
}

html[data-theme="light"] body .schedule-density-toggle {
    background: rgba(231, 238, 246, 0.94);
    border-color: rgba(116, 138, 165, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

html[data-theme="light"] body .schedule-density-button {
    color: #4d6680;
}

html[data-theme="light"] body .schedule-density-button:hover {
    color: #10233b;
}

html[data-theme="light"] body .schedule-density-button.is-active {
    background: linear-gradient(135deg, #1d6fd6, #1654a7);
    color: #f7fbff;
    box-shadow:
        0 10px 18px rgba(28, 78, 156, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

html[data-theme="light"] body .schedule-board-hero-meta span {
    background: rgba(33, 137, 255, 0.1);
    border-color: rgba(33, 137, 255, 0.14);
    color: #103152;
}

html[data-theme="light"] body .schedule-board-lane-wrap {
    background: rgba(248, 251, 255, 0.9);
    border-color: rgba(116, 138, 165, 0.14);
}

html[data-theme="light"] body .schedule-board-hero h3,
html[data-theme="light"] body .schedule-board-lane-axis strong,
html[data-theme="light"] body .schedule-lane-day-card strong,
html[data-theme="light"] body .schedule-lane-group-head strong,
html[data-theme="light"] body .schedule-lane-member strong,
html[data-theme="light"] body .schedule-lane-cell-label,
html[data-theme="light"] body .schedule-board-rail-head strong,
html[data-theme="light"] body .schedule-day-tile strong,
html[data-theme="light"] body .schedule-member-header strong,
html[data-theme="light"] body .schedule-slot-label,
html[data-theme="light"] body .schedule-board-studio .schedule-empty {
    color: #0d2340;
}

html[data-theme="light"] body .schedule-board-hero p,
html[data-theme="light"] body .schedule-board-lane-axis p,
html[data-theme="light"] body .schedule-lane-day-card span,
html[data-theme="light"] body .schedule-lane-day-card small,
html[data-theme="light"] body .schedule-lane-member p,
html[data-theme="light"] body .schedule-lane-member small,
html[data-theme="light"] body .schedule-lane-cell-meta,
html[data-theme="light"] body .schedule-board-rail-head p,
html[data-theme="light"] body .schedule-day-tile p,
html[data-theme="light"] body .schedule-member-header p,
html[data-theme="light"] body .schedule-member-header small,
html[data-theme="light"] body .schedule-slot-note,
html[data-theme="light"] body .schedule-slot-meta {
    color: #526b84;
}

html[data-theme="light"] body .schedule-lane-day-short,
html[data-theme="light"] body .schedule-board-rail-kicker,
html[data-theme="light"] body .schedule-day-tile-date,
html[data-theme="light"] body .schedule-slot-date,
html[data-theme="light"] body .schedule-day-tile-empty {
    color: #6b829b !important;
}

html[data-theme="light"] body .schedule-day-note-tag,
html[data-theme="light"] body .schedule-member-group {
    background: rgba(255, 191, 71, 0.18);
    border-color: rgba(255, 191, 71, 0.22);
    color: #7a4f00;
}

html[data-theme="light"] body .schedule-member-location {
    background: rgba(93, 183, 255, 0.12);
    border-color: rgba(93, 183, 255, 0.16);
    color: #0c4f74;
}

body .app-version-badge {
    position: fixed;
    right: 10px;
    bottom: 10px;
    z-index: 40;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(121, 154, 197, 0.1);
    background: rgba(7, 17, 31, 0.38);
    color: rgba(225, 236, 250, 0.48);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 8px 18px rgba(3, 10, 19, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: none;
    user-select: none;
}

body .app-update-prompt {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 2200;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 28px;
    gap: 12px;
    width: min(360px, calc(100vw - 24px));
    padding: 22px 18px 18px;
    border: 1px solid rgba(15, 35, 68, 0.12);
    border-radius: 20px;
    background: #ffffff;
    color: #172033;
    box-shadow: 0 18px 44px rgba(15, 35, 68, 0.18);
}

body .app-update-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: #eef4ff;
    color: #2563eb;
}

body .app-update-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

body .app-update-complete .app-update-icon {
    background: #ecfdf3;
    color: #039855;
}

body .app-update-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

body .app-update-copy strong {
    font-size: 1rem;
    line-height: 1.2;
    color: #172033;
}

body .app-update-copy span,
body .app-update-copy small,
body .app-update-notes {
    color: #667085;
    font-size: 0.88rem;
    line-height: 1.35;
}

body .app-update-notes {
    margin-top: 4px;
}

body .app-update-notes p,
body .app-update-notes ul {
    margin: 0;
}

body .app-update-notes ul {
    padding-left: 17px;
}

body .app-update-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

body .app-update-actions button,
body .app-update-close {
    border: 0;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
}

body .app-update-primary {
    padding: 0;
    color: #2563eb;
    font-weight: 800;
}

body .app-update-secondary {
    padding: 0;
    color: #98a2b3;
    font-weight: 800;
}

body .app-update-close {
    width: 28px;
    height: 28px;
    padding: 0;
    color: #98a2b3;
    font-size: 1.55rem;
    line-height: 1;
}

@media (max-width: 640px) {
    body .app-update-prompt {
        right: 12px;
        bottom: 12px;
        grid-template-columns: 40px minmax(0, 1fr) 26px;
        padding: 18px 14px 16px;
    }
}

body.has-floating-toolbelt .app-version-badge {
    bottom: 18px;
}

html[data-theme="light"] body .app-version-badge {
    background: rgba(244, 249, 255, 0.72);
    color: rgba(18, 44, 74, 0.46);
    border-color: rgba(116, 138, 165, 0.12);
    box-shadow: 0 10px 22px rgba(41, 73, 112, 0.08);
}

@media (max-width: 768px) {
    body .app-version-badge {
        display: none;
    }

    body.has-floating-toolbelt .app-version-badge {
        display: none;
    }
}

body .hris-recruitment-portal-box {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.22);
    color: #0f172a;
}

body .hris-recruitment-portal-note {
    color: #64748b;
}

body .hris-recruitment-portal-card {
    background: rgba(248, 250, 252, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: #0f172a;
}

body .hris-recruitment-portal-card-title,
body .hris-recruitment-portal-field-value {
    color: #0f172a;
}

body .hris-recruitment-portal-field-label {
    color: #64748b;
}

html[data-theme] body .hris-recruitment-portal-box,
html[data-theme] body .hris-recruitment-portal-card,
html[data-theme] body .hris-recruitment-portal-card-title,
html[data-theme] body .hris-recruitment-portal-field-value {
    color: #0f172a !important;
}

html[data-theme] body .hris-recruitment-portal-note,
html[data-theme] body .hris-recruitment-portal-field-label {
    color: #64748b !important;
}

body .hris-recruitment-violation-box {
    margin-top: 10px;
    padding: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
    border: 1px solid rgba(148, 163, 184, 0.24);
    color: #0f172a;
}

body .hris-recruitment-violation-summary {
    margin-bottom: 10px;
    color: #475569;
}

body .hris-recruitment-violation-list {
    display: grid;
    gap: 10px;
}

body .hris-recruitment-violation-event {
    padding: 12px 14px;
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 251, 235, 0.98), rgba(255, 247, 237, 0.96));
    color: #1f2937;
    box-shadow: inset 3px 0 0 rgba(245, 158, 11, 0.72);
}

body .hris-recruitment-violation-event.is-reset {
    border-color: rgba(215, 183, 96, 0.28);
    background: linear-gradient(135deg, rgba(255, 250, 235, 0.98), rgba(248, 242, 223, 0.96));
    box-shadow: inset 3px 0 0 rgba(215, 183, 96, 0.72);
}

body .hris-recruitment-violation-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

body .hris-recruitment-violation-title {
    color: #111827;
    font-weight: 700;
}

body .hris-recruitment-violation-meta,
body .hris-recruitment-violation-note {
    margin-top: 6px;
    color: #64748b;
}

body .hris-recruitment-violation-note {
    margin-top: 4px;
}

body .hris-recruitment-violation-badge {
    background: rgba(245, 158, 11, 0.16);
    border-color: rgba(245, 158, 11, 0.28);
    color: #92400e;
}

body .hris-recruitment-violation-event.is-reset .hris-recruitment-violation-badge {
    background: rgba(215, 183, 96, 0.14);
    border-color: rgba(215, 183, 96, 0.26);
    color: #8a6417;
}

html[data-theme="dark"] body .hris-recruitment-violation-box {
    background: linear-gradient(180deg, rgba(13, 22, 38, 0.98), rgba(8, 15, 28, 0.98));
    border-color: rgba(215, 183, 96, 0.22);
    color: #e5edf7;
}

html[data-theme="dark"] body .hris-recruitment-violation-summary {
    color: #cbd5e1;
}

html[data-theme="dark"] body .hris-recruitment-violation-event {
    background: linear-gradient(135deg, rgba(120, 53, 15, 0.34), rgba(67, 36, 10, 0.4));
    border-color: rgba(251, 191, 36, 0.34);
    color: #f8fafc;
    box-shadow: inset 3px 0 0 rgba(251, 191, 36, 0.82);
}

html[data-theme="dark"] body .hris-recruitment-violation-event.is-reset {
    background: linear-gradient(135deg, rgba(136, 95, 28, 0.34), rgba(15, 23, 42, 0.5));
    border-color: rgba(215, 183, 96, 0.38);
    box-shadow: inset 3px 0 0 rgba(215, 183, 96, 0.82);
}

html[data-theme="dark"] body .hris-recruitment-violation-title {
    color: #f8fafc;
}

html[data-theme="dark"] body .hris-recruitment-violation-meta,
html[data-theme="dark"] body .hris-recruitment-violation-note {
    color: #cbd5e1;
}

html[data-theme="dark"] body .hris-recruitment-violation-badge {
    background: rgba(251, 191, 36, 0.16);
    border-color: rgba(251, 191, 36, 0.3);
    color: #fde68a;
}

html[data-theme="dark"] body .hris-recruitment-violation-event.is-reset .hris-recruitment-violation-badge {
    background: rgba(215, 183, 96, 0.16);
    border-color: rgba(215, 183, 96, 0.3);
    color: #fde68a;
}

html[data-performance-tier="low"] {
    --shadow-lg: none;
    --shadow-md: none;
    --theme-button-shadow: none;
    --theme-button-hover-shadow: none;
}

html[data-performance-tier="low"] body,
html[data-performance-tier="low"] body * {
    animation: none !important;
    transition: none !important;
}

html[data-performance-tier="low"] body .layout,
html[data-performance-tier="low"] body .panel,
html[data-performance-tier="low"] body .card,
html[data-performance-tier="low"] body .sidebar-subnav-panel,
html[data-performance-tier="low"] body .notification-center-panel,
html[data-performance-tier="low"] body .chat-incoming-banner,
html[data-performance-tier="low"] body .chat-widget-panel,
html[data-performance-tier="low"] body .app-version-badge {
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* ==========================
   SINGLE THEME INTERNAL REFRESH
   ========================== */
html[data-theme] body.internal-portal-shell,
html[data-theme] body.internal-module-shell,
html[data-theme] body.internal-clean-page-shell {
    --internal-bg: #f5f7fb;
    --internal-surface: #ffffff;
    --internal-panel: #ffffff;
    --internal-soft: #f1f5f9;
    --internal-line: #dfe7f1;
    --internal-line-strong: #cbd7e6;
    --internal-text: #13233b;
    --internal-muted: #64748b;
    --internal-gold: #c6a758;
    --internal-navy: #122a52;
    --internal-blue: #d7b760;
    --internal-shadow: 0 20px 44px rgba(15, 23, 42, 0.08);
    --internal-soft-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    color: var(--internal-text) !important;
    background: var(--internal-bg) !important;
}

html[data-theme] body.internal-portal-shell::before,
html[data-theme] body.internal-module-shell::before,
html[data-theme] body.internal-clean-page-shell::before {
    display: none !important;
}

html[data-theme] body.internal-portal-shell .layout,
html[data-theme] body.internal-module-shell .layout,
html[data-theme] body.internal-clean-page-shell .layout {
    display: block !important;
    background:
        linear-gradient(180deg, #ffffff 0, #ffffff 68px, var(--internal-bg) 68px),
        var(--internal-bg) !important;
}

html[data-theme] body .internal-app-topbar {
    min-height: 68px !important;
    background: rgba(255, 255, 255, 0.98) !important;
    border-color: var(--internal-line) !important;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.04) !important;
}

html[data-theme] body .internal-topbar-logo {
    width: 150px !important;
    height: 42px !important;
    overflow: hidden !important;
}

html[data-theme] body .internal-topbar-logo img {
    width: 100% !important;
    height: 100% !important;
    max-height: 42px !important;
    object-fit: contain !important;
    transform: none !important;
}

html[data-theme] body .internal-brand-pill,
html[data-theme] body .internal-user-pill,
html[data-theme] body .internal-icon-button {
    background: #ffffff !important;
    border-color: var(--internal-line) !important;
    color: var(--internal-text) !important;
    box-shadow: var(--internal-soft-shadow) !important;
}

html[data-theme] body .internal-icon-button {
    color: var(--internal-gold) !important;
}

html[data-theme] body .internal-user-pill strong {
    background: var(--internal-navy) !important;
    color: #ffffff !important;
}

html[data-theme] body.internal-portal-shell .page-content,
html[data-theme] body.internal-module-shell .page-content,
html[data-theme] body.internal-clean-page-shell .page-content {
    background: transparent !important;
    color: var(--internal-text) !important;
}

html[data-theme] body.internal-portal-shell .internal-status-card,
html[data-theme] body.internal-portal-shell .workspace-app-tile.internal-app-card {
    background: #ffffff !important;
    border: 1px solid var(--internal-line) !important;
    color: var(--internal-text) !important;
    box-shadow: var(--internal-shadow) !important;
}

html[data-theme] body.internal-portal-shell .workspace-app-tile.internal-app-card::before,
html[data-theme] body.internal-portal-shell .workspace-app-tile.internal-app-card::after {
    display: none !important;
}

html[data-theme] body.internal-portal-shell .workspace-app-tile.internal-app-card:hover {
    border-color: var(--internal-line-strong) !important;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.11) !important;
}

html[data-theme] body.internal-portal-shell .internal-app-copy strong,
html[data-theme] body.internal-portal-shell .internal-status-card strong,
html[data-theme] body.internal-portal-shell .internal-apps-heading h2 {
    color: var(--internal-text) !important;
}

html[data-theme] body.internal-portal-shell .internal-app-copy small,
html[data-theme] body.internal-portal-shell .internal-status-card small,
html[data-theme] body.internal-portal-shell .internal-apps-heading > span {
    color: var(--internal-muted) !important;
}

html[data-theme] body.internal-portal-shell .internal-app-badge {
    background: #eef3f8 !important;
    color: var(--internal-text) !important;
    border: 1px solid rgba(203, 213, 225, 0.7) !important;
}

html[data-theme] body.internal-portal-shell .internal-app-badge.tone-green {
    background: #e8f7ef !important;
    color: #257154 !important;
}

html[data-theme] body.internal-portal-shell .internal-app-badge.tone-amber {
    background: #fff2d2 !important;
    color: #8c5d12 !important;
}

html[data-theme] body.internal-module-shell .internal-module-panel,
html[data-theme] body.internal-clean-page-shell .page-content {
    background: #ffffff !important;
    border: 1px solid var(--internal-line) !important;
    color: var(--internal-text) !important;
    box-shadow: var(--internal-shadow) !important;
}

html[data-theme] body.internal-module-shell .hris-module-disclosure,
html[data-theme] body.internal-module-shell .hris-module-card,
html[data-theme] body.internal-module-shell .hris-module-disclosure > summary {
    background: #ffffff !important;
    border-color: var(--internal-line) !important;
    color: var(--internal-muted) !important;
    box-shadow: none !important;
}

html[data-theme] body.internal-module-shell .hris-module-summary-copy strong,
html[data-theme] body.internal-module-shell .hris-module-card h2 {
    color: inherit !important;
}

html[data-theme] body.internal-module-shell .hris-module-card.active,
html[data-theme] body.internal-module-shell .hris-module-card:hover {
    background: var(--internal-navy) !important;
    color: #ffffff !important;
}

html[data-theme] body.internal-module-shell :is(
    .panel,
    .card,
    .card-mini,
    .form-box,
    .table-box,
    .import-box,
    .box,
    .meta-card,
    .summary > *,
    .cards > *
),
html[data-theme] body.internal-clean-page-shell :is(
    .panel,
    .card,
    .card-mini,
    .form-box,
    .table-box,
    .import-box,
    .box,
    .meta-card,
    .summary > *,
    .cards > *
) {
    background: #ffffff !important;
    border-color: var(--internal-line) !important;
    color: var(--internal-text) !important;
    box-shadow: none !important;
}

html[data-theme] body.internal-module-shell :is(.card p, .card-mini p, .meta-card span, .section-title p, small, .helper-text),
html[data-theme] body.internal-clean-page-shell :is(.card p, .card-mini p, .meta-card span, .section-title p, small, .helper-text) {
    color: var(--internal-muted) !important;
}

html[data-theme] body.internal-module-shell :is(.card h2, .card-mini h3, .meta-card strong, .section-title h2, .section-title h3, label),
html[data-theme] body.internal-clean-page-shell :is(.card h2, .card-mini h3, .meta-card strong, .section-title h2, .section-title h3, label) {
    color: var(--internal-text) !important;
}

html[data-theme] body.internal-module-shell :is(input, select, textarea),
html[data-theme] body.internal-clean-page-shell :is(input, select, textarea) {
    background: #ffffff !important;
    border-color: var(--internal-line-strong) !important;
    color: var(--internal-text) !important;
}

html[data-theme] body.internal-module-shell :is(.top-bar, .products-filter-bar, .stock-filter-bar, #soFilterForm),
html[data-theme] body.internal-clean-page-shell :is(.top-bar, .products-filter-bar, .stock-filter-bar, #soFilterForm) {
    background: #f1f5f9 !important;
    border-color: var(--internal-line) !important;
    box-shadow: none !important;
}

html[data-theme] body.internal-module-shell th,
html[data-theme] body.internal-clean-page-shell th {
    background: #f8fafc !important;
    color: #475569 !important;
}

html[data-theme] body.internal-module-shell td,
html[data-theme] body.internal-clean-page-shell td {
    color: var(--internal-text) !important;
}

html[data-theme] body.internal-clean-page-shell .page-hero {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

html[data-theme] body.internal-clean-page-shell .page-hero h1 {
    color: var(--internal-text) !important;
}

html[data-theme] body.internal-clean-page-shell .page-eyebrow,
html[data-theme] body.internal-module-shell .internal-breadcrumb a,
html[data-theme] body.internal-module-shell .hris-module-summary-copy > span:first-child,
html[data-theme] body.internal-portal-shell .internal-apps-heading p {
    color: var(--internal-gold) !important;
}

html[data-theme] body :is(.theme-toggle, .mobile-theme-toggle, .login-theme-toggle, [data-theme-toggle], [data-login-theme-toggle]) {
    display: none !important;
}

/* ==========================
   INTERNAL MODULE REFERENCE MATCH
   ========================== */
html[data-theme] body.internal-module-shell {
    --internal-bg: #f4f6fa;
    --internal-line: #dfe7f1;
    --internal-line-strong: #cfd9e7;
    --internal-text: #13233b;
    --internal-muted: #6f7f93;
    --internal-gold: #c3a65b;
    --internal-navy: #122a52;
    --internal-blue: #d7b760;
    --internal-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    --internal-soft-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

html[data-theme] body.internal-module-shell .layout {
    background:
        linear-gradient(180deg, #ffffff 0, #ffffff 68px, #f4f6fa 68px),
        #f4f6fa !important;
}

html[data-theme] body.internal-module-shell .internal-app-topbar {
    min-height: 68px !important;
    padding: 0 40px !important;
    border-bottom: 1px solid var(--internal-line) !important;
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.035) !important;
}

html[data-theme] body.internal-module-shell .internal-brand-pill {
    min-width: 98px !important;
    min-height: 38px !important;
    justify-content: center !important;
    padding: 0 18px !important;
    border-radius: 9px !important;
    font-size: 0.78rem !important;
}

html[data-theme] body.internal-module-shell .internal-topbar-logo {
    width: 126px !important;
    height: 42px !important;
}

html[data-theme] body.internal-module-shell .internal-icon-button,
html[data-theme] body.internal-module-shell .internal-user-pill {
    min-height: 42px !important;
    height: 42px !important;
}

html[data-theme] body.internal-module-shell .internal-breadcrumb,
html[data-theme] body.internal-module-shell .page-content.hris-clean-shell {
    width: min(calc(100% - 64px), 1248px) !important;
    max-width: 1248px !important;
}

html[data-theme] body.internal-module-shell .internal-breadcrumb {
    padding: 13px 0 16px !important;
    font-size: 0.82rem !important;
}

html[data-theme] body.internal-module-shell .internal-breadcrumb a {
    color: var(--internal-text) !important;
    font-weight: 800 !important;
}

html[data-theme] body.internal-module-shell .page-content.hris-clean-shell {
    margin: 0 auto !important;
    padding: 0 0 34px !important;
}

html[data-theme] body.internal-module-shell .internal-module-layout {
    grid-template-columns: 216px minmax(0, 1fr) !important;
    gap: 18px !important;
    align-items: start !important;
}

html[data-theme] body.internal-module-shell .internal-module-nav {
    position: sticky !important;
    top: 92px !important;
}

html[data-theme] body.internal-module-shell .hris-module-disclosure {
    width: 216px !important;
    border: 1px solid var(--internal-line) !important;
    border-radius: 7px !important;
    background: #ffffff !important;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07) !important;
}

html[data-theme] body.internal-module-shell .hris-module-disclosure > summary {
    min-height: 64px !important;
    padding: 16px 16px 14px !important;
    border-bottom: 1px solid #edf1f6 !important;
}

html[data-theme] body.internal-module-shell .hris-module-summary-copy {
    gap: 4px !important;
}

html[data-theme] body.internal-module-shell .hris-module-summary-copy > span:first-child {
    color: var(--internal-gold) !important;
    font-size: 0.67rem !important;
    letter-spacing: 0.14em !important;
}

html[data-theme] body.internal-module-shell .hris-module-summary-copy strong {
    color: var(--internal-text) !important;
    font-size: 0.98rem !important;
    line-height: 1.16 !important;
}

html[data-theme] body.internal-module-shell .hris-module-summary-body {
    margin-top: 0 !important;
}

html[data-theme] body.internal-module-shell .hris-module-grid {
    gap: 0 !important;
}

html[data-theme] body.internal-module-shell .hris-module-card {
    min-height: 46px !important;
    padding: 0 15px 0 17px !important;
    gap: 12px !important;
    border: 0 !important;
    border-bottom: 1px solid #edf1f6 !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    color: #4f6075 !important;
    box-shadow: none !important;
}

html[data-theme] body.internal-module-shell .hris-module-card:last-child {
    border-bottom: 0 !important;
}

html[data-theme] body.internal-module-shell .hris-module-nav-icon {
    width: 15px !important;
    height: 15px !important;
    flex: 0 0 15px !important;
    object-fit: contain !important;
    opacity: 0.62 !important;
}

html[data-theme] body.internal-module-shell .hris-module-card-copy {
    min-width: 0 !important;
    display: grid !important;
    gap: 1px !important;
}

html[data-theme] body.internal-module-shell .hris-module-card h2 {
    margin: 0 !important;
    color: inherit !important;
    font-size: 0.82rem !important;
    font-weight: 650 !important;
    line-height: 1.18 !important;
}

html[data-theme] body.internal-module-shell .hris-module-card small {
    margin: 0 !important;
    color: inherit !important;
    font-size: 0.65rem !important;
    line-height: 1.1 !important;
    opacity: 0.72 !important;
}

html[data-theme] body.internal-module-shell .hris-module-card.active,
html[data-theme] body.internal-module-shell .hris-module-card:hover {
    background: var(--internal-navy) !important;
    color: #ffffff !important;
}

html[data-theme] body.internal-module-shell .hris-module-card.active h2,
html[data-theme] body.internal-module-shell .hris-module-card:hover h2,
html[data-theme] body.internal-module-shell .hris-module-card.active small,
html[data-theme] body.internal-module-shell .hris-module-card:hover small {
    color: #ffffff !important;
}

html[data-theme] body.internal-module-shell .hris-module-card.active .hris-module-nav-icon,
html[data-theme] body.internal-module-shell .hris-module-card:hover .hris-module-nav-icon {
    opacity: 0.95 !important;
    filter: brightness(0) invert(1) !important;
}

html[data-theme] body.internal-module-shell .internal-module-panel {
    min-height: 598px !important;
    padding: 28px 28px 34px !important;
    border: 1px solid var(--internal-line) !important;
    border-radius: 7px !important;
    background: #ffffff !important;
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.075) !important;
}

html[data-theme] body.internal-module-shell .internal-module-panel :is(.summary, .meta-grid) {
    gap: 10px !important;
}

html[data-theme] body.internal-module-shell .internal-module-panel .summary {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

html[data-theme] body.internal-module-shell .internal-module-panel .meta-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

html[data-theme] body.internal-module-shell .internal-module-panel :is(.card-mini, .meta-card) {
    min-height: 74px !important;
    padding: 15px 16px !important;
    border: 1px solid var(--internal-line) !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    box-shadow: none !important;
}

html[data-theme] body.internal-module-shell .internal-module-panel .card-mini {
    border-top: 3px solid var(--internal-blue) !important;
}

html[data-theme] body.internal-module-shell .internal-module-panel .card-mini p,
html[data-theme] body.internal-module-shell .internal-module-panel .meta-card span {
    margin: 0 0 10px !important;
    color: #687a90 !important;
    font-size: 0.7rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
}

html[data-theme] body.internal-module-shell .internal-module-panel .card-mini h3 {
    color: var(--internal-text) !important;
    font-size: 1.5rem !important;
    line-height: 1 !important;
    letter-spacing: -0.045em !important;
}

html[data-theme] body.internal-module-shell .internal-module-panel .meta-card strong {
    color: var(--internal-text) !important;
    font-size: 0.92rem !important;
    line-height: 1.22 !important;
}

html[data-theme] body.internal-module-shell .internal-module-panel .top-bar {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(180px, 0.95fr) !important;
    gap: 10px !important;
    padding: 16px !important;
    border: 1px solid var(--internal-line) !important;
    border-radius: 12px !important;
    background: #eef3f8 !important;
}

html[data-theme] body.internal-module-shell .internal-module-panel :is(input, select, textarea) {
    min-height: 50px !important;
    border-radius: 9px !important;
    border: 1px solid var(--internal-line-strong) !important;
    background: #ffffff !important;
    color: var(--internal-text) !important;
    box-shadow: none !important;
}

html[data-theme] body.internal-module-shell .internal-module-panel button:not(.ghost-button),
html[data-theme] body.internal-module-shell .internal-module-panel .button-primary {
    min-height: 50px !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #1957ad 0%, #4bb0ff 100%) !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

html[data-theme] body.internal-module-shell .internal-module-panel :is(.table-box, .form-box, .box, .panel, .card) {
    border: 1px solid var(--internal-line) !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    box-shadow: none !important;
}

html[data-theme] body.internal-module-shell .internal-module-panel .section-title {
    margin-bottom: 12px !important;
    gap: 10px !important;
}

html[data-theme] body.internal-module-shell .internal-module-panel .section-title h2,
html[data-theme] body.internal-module-shell .internal-module-panel .section-title h3 {
    color: var(--internal-text) !important;
    font-size: 1rem !important;
    line-height: 1.2 !important;
}

html[data-theme] body.internal-module-shell .internal-module-panel .empty-state {
    min-height: 98px !important;
    border-radius: 12px !important;
    background: #f8fafc !important;
    color: #64748b !important;
}

html[data-theme] body.internal-module-shell .hris-clean-shell :is(
    .recruitment-workspace-card,
    .recruitment-workspace-panel,
    .biometric-workspace-card,
    .biometric-workspace-hero,
    .biometric-workspace-focus-card,
    .biometric-action-panel,
    .biometric-data-card
) {
    border-color: var(--internal-line) !important;
    background: #ffffff !important;
    color: var(--internal-text) !important;
    box-shadow: none !important;
}

html[data-theme] body.internal-module-shell .hris-clean-shell :is(
    .recruitment-workspace-copy small,
    .biometric-module-copy small,
    .biometric-workspace-headline p,
    .biometric-stage-copy p,
    .biometric-focus-copy p
) {
    color: var(--internal-muted) !important;
}

html[data-theme] body.internal-module-shell .information-sidebar-card {
    display: block !important;
    overflow: hidden !important;
}

html[data-theme] body.internal-module-shell .information-sidebar-head {
    min-height: 64px !important;
    padding: 16px 16px 14px !important;
    border-bottom: 1px solid #edf1f6 !important;
    background: #ffffff !important;
}

html[data-theme] body.internal-module-shell .information-panel {
    padding: 40px 28px 34px !important;
}

html[data-theme] body.internal-module-shell .information-panel-head {
    max-width: 720px !important;
    margin-bottom: 18px !important;
}

html[data-theme] body.internal-module-shell .information-panel-head p {
    margin: 0 0 4px !important;
    color: #6f7f93 !important;
    font-size: 0.72rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.16em !important;
    text-transform: uppercase !important;
}

html[data-theme] body.internal-module-shell .information-panel-head h1 {
    margin: 0 !important;
    color: var(--internal-text) !important;
    font-size: clamp(2rem, 3vw, 2.34rem) !important;
    line-height: 1.03 !important;
    letter-spacing: -0.045em !important;
}

html[data-theme] body.internal-module-shell .information-panel-head span {
    display: block !important;
    margin-top: 12px !important;
    color: #6f7f93 !important;
    font-size: 0.9rem !important;
    line-height: 1.55 !important;
}

html[data-theme] body.internal-module-shell .information-policy-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
}

html[data-theme] body.internal-module-shell .information-policy-card {
    min-height: 108px !important;
    display: flex !important;
    justify-content: space-between !important;
    gap: 16px !important;
    padding: 18px 16px !important;
    border: 1px solid var(--internal-line) !important;
    border-radius: 7px !important;
    background: #fbfcfe !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

html[data-theme] body.internal-module-shell .information-policy-card.is-featured {
    border-color: #dccb9a !important;
    background: #ffffff !important;
    box-shadow: 0 10px 22px rgba(198, 167, 88, 0.08) !important;
}

html[data-theme] body.internal-module-shell .information-policy-scope {
    display: block !important;
    margin-bottom: 12px !important;
    color: #7b8798 !important;
    font-size: 0.68rem !important;
    font-weight: 750 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
}

html[data-theme] body.internal-module-shell .information-policy-card h2 {
    margin: 0 !important;
    color: var(--internal-text) !important;
    font-size: 0.86rem !important;
    line-height: 1.35 !important;
}

html[data-theme] body.internal-module-shell .information-policy-card p {
    margin: 8px 0 0 !important;
    color: #6f7f93 !important;
    font-size: 0.82rem !important;
    line-height: 1.45 !important;
}

html[data-theme] body.internal-module-shell .information-policy-badge {
    height: 24px !important;
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    border: 1px solid transparent !important;
    font-size: 0.68rem !important;
    line-height: 1 !important;
}

html[data-theme] body.internal-module-shell .information-policy-badge.tone-green {
    background: #eaf8f0 !important;
    border-color: #d6f0e2 !important;
    color: #2b7a58 !important;
}

html[data-theme] body.internal-module-shell .information-policy-badge.tone-blue {
    background: #fff4df !important;
    border-color: rgba(217, 166, 46, 0.32) !important;
    color: #3562b7 !important;
}

html[data-theme] body.internal-module-shell .information-policy-badge.tone-amber {
    background: #fff3dc !important;
    border-color: #f4dfb8 !important;
    color: #9a6518 !important;
}

html[data-theme] body.internal-module-shell .information-toast {
    position: fixed !important;
    right: 18px !important;
    bottom: 18px !important;
    z-index: 90 !important;
    padding: 14px 18px !important;
    border-left: 4px solid var(--internal-gold) !important;
    border-radius: 6px !important;
    background: var(--internal-navy) !important;
    color: #ffffff !important;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.18) !important;
    font-size: 0.84rem !important;
}

html[data-theme] body.internal-module-shell .internal-module-footer {
    width: min(calc(100% - 64px), 1248px) !important;
    margin: 16px auto 0 !important;
    color: #7b8798 !important;
    text-align: center !important;
    font-size: 0.74rem !important;
}

@media (max-width: 1080px) {
    html[data-theme] body.internal-module-shell .internal-breadcrumb,
    html[data-theme] body.internal-module-shell .page-content.hris-clean-shell {
        width: min(calc(100% - 28px), 1248px) !important;
    }

    html[data-theme] body.internal-module-shell .internal-module-layout {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    html[data-theme] body.internal-module-shell .hris-module-disclosure {
        width: 100% !important;
    }

    html[data-theme] body.internal-module-shell .hris-module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    html[data-theme] body.internal-module-shell .hris-module-card {
        border-right: 1px solid #edf1f6 !important;
    }

    html[data-theme] body.internal-module-shell .internal-module-panel .summary,
    html[data-theme] body.internal-module-shell .internal-module-panel .meta-grid,
    html[data-theme] body.internal-module-shell .internal-module-panel .top-bar,
    html[data-theme] body.internal-module-shell .information-policy-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 640px) {
    html[data-theme] body.internal-module-shell .internal-app-topbar {
        padding: 12px 14px !important;
    }

    html[data-theme] body.internal-module-shell .hris-module-grid,
    html[data-theme] body.internal-module-shell .internal-module-panel .summary,
    html[data-theme] body.internal-module-shell .internal-module-panel .meta-grid,
    html[data-theme] body.internal-module-shell .internal-module-panel .top-bar,
    html[data-theme] body.internal-module-shell .information-policy-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    html[data-theme] body.internal-module-shell .internal-module-panel {
        min-height: 0 !important;
        padding: 18px !important;
    }
}

/* ==========================
   WEB CV BJAS PORTAL ZIP MATCH
   ========================== */
html[data-theme] body.internal-portal-shell,
html[data-theme] body.internal-module-shell {
    --portal-navy: #0c2344;
    --portal-navy-2: #14345e;
    --portal-gold: #d9a62e;
    --portal-gold-soft: #fff4d8;
    --portal-bg: #f4f6f9;
    --portal-surface: #ffffff;
    --portal-surface-soft: #f9fafc;
    --portal-border: #dfe5ee;
    --portal-text: #172033;
    --portal-muted: #667085;
    --portal-success: #168364;
    --portal-warning: #b45f06;
    --portal-shadow-soft: 0 14px 36px rgba(12, 35, 68, 0.08);
    --portal-shadow-card: 0 10px 24px rgba(12, 35, 68, 0.07);
    color: var(--portal-text) !important;
    background:
        radial-gradient(circle at top left, rgba(217, 166, 46, 0.12), transparent 30rem),
        linear-gradient(180deg, #f7f9fc 0%, var(--portal-bg) 42%, #eef2f7 100%) !important;
}

html[data-theme] body.internal-portal-shell .layout,
html[data-theme] body.internal-module-shell .layout {
    background:
        linear-gradient(180deg, #ffffff 0, #ffffff 76px, transparent 76px),
        radial-gradient(circle at top left, rgba(217, 166, 46, 0.12), transparent 30rem),
        linear-gradient(180deg, #f7f9fc 0%, var(--portal-bg) 42%, #eef2f7 100%) !important;
}

html[data-theme] body.internal-portal-shell .main,
html[data-theme] body.internal-module-shell .main {
    padding: 0 0 28px !important;
}

html[data-theme] body.internal-portal-shell .page-content {
    width: min(1180px, calc(100% - 32px)) !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

html[data-theme] body.internal-portal-shell .workspace-gateway.portal-shell {
    width: 100% !important;
    display: block !important;
    padding: 42px 0 30px !important;
}

html[data-theme] body .internal-app-topbar {
    min-height: 76px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
    gap: 24px !important;
    align-items: center !important;
    padding: 14px clamp(18px, 4vw, 48px) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border-bottom: 1px solid rgba(223, 229, 238, 0.92) !important;
    box-shadow: none !important;
    backdrop-filter: blur(16px) !important;
}

html[data-theme] body .internal-brand-pill {
    min-width: 92px !important;
    min-height: 46px !important;
    justify-content: center !important;
    padding: 0 14px !important;
    border-radius: 12px !important;
    border: 1px solid var(--portal-border) !important;
    background: #ffffff !important;
    color: var(--portal-navy) !important;
    box-shadow: 0 6px 16px rgba(12, 35, 68, 0.07) !important;
    font-size: 0.76rem !important;
    font-weight: 800 !important;
}

html[data-theme] body .internal-topbar-left .internal-brand-pill:last-child {
    min-width: 154px !important;
}

html[data-theme] body .internal-topbar-separator {
    width: 1px !important;
    height: 30px !important;
    background: var(--portal-border) !important;
}

html[data-theme] body .internal-topbar-logo {
    width: clamp(170px, 20vw, 260px) !important;
    height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}

html[data-theme] body .internal-topbar-logo img {
    width: 100% !important;
    height: auto !important;
    max-height: 72px !important;
    object-fit: contain !important;
}

html[data-theme] body .internal-icon-button,
html[data-theme] body .internal-user-pill {
    border: 1px solid var(--portal-border) !important;
    background: var(--portal-surface) !important;
    box-shadow: 0 6px 16px rgba(12, 35, 68, 0.06) !important;
}

html[data-theme] body .internal-icon-button {
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    color: var(--portal-gold) !important;
}

html[data-theme] body .internal-user-pill {
    min-height: 42px !important;
    gap: 10px !important;
    padding: 6px 8px 6px 14px !important;
    color: var(--portal-navy) !important;
}

html[data-theme] body .internal-user-pill strong {
    width: 30px !important;
    height: 30px !important;
    background: linear-gradient(135deg, var(--portal-navy), var(--portal-navy-2)) !important;
    color: #ffffff !important;
}

html[data-theme] body.internal-portal-shell .internal-hero-section {
    display: grid !important;
    gap: 24px !important;
    justify-items: center !important;
    text-align: center !important;
}

html[data-theme] body.internal-portal-shell .internal-search-wrap {
    position: relative !important;
    width: min(680px, 100%) !important;
}

html[data-theme] body.internal-portal-shell .search-icon {
    position: absolute !important;
    left: 22px !important;
    top: 50% !important;
    color: var(--portal-muted) !important;
    font-size: 1.25rem !important;
    transform: translateY(-50%) !important;
    pointer-events: none !important;
}

html[data-theme] body.internal-portal-shell .internal-search-wrap input {
    width: 100% !important;
    height: 62px !important;
    padding: 0 22px 0 58px !important;
    color: var(--portal-text) !important;
    background: var(--portal-surface) !important;
    border: 1px solid var(--portal-border) !important;
    border-radius: 999px !important;
    box-shadow: var(--portal-shadow-soft) !important;
    outline: none !important;
}

html[data-theme] body.internal-portal-shell .internal-search-wrap input:focus {
    border-color: rgba(217, 166, 46, 0.85) !important;
    box-shadow: 0 0 0 4px rgba(217, 166, 46, 0.16), var(--portal-shadow-soft) !important;
}

html[data-theme] body.internal-portal-shell .internal-welcome-copy {
    max-width: 720px !important;
}

html[data-theme] body.internal-portal-shell .internal-welcome-copy .eyebrow,
html[data-theme] body.internal-portal-shell .internal-apps-heading p {
    margin: 0 0 7px !important;
    color: var(--portal-gold) !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
}

html[data-theme] body.internal-portal-shell .internal-welcome-copy h1 {
    margin: 0 !important;
    color: var(--portal-navy) !important;
    font-size: clamp(2rem, 5vw, 3.4rem) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.045em !important;
}

html[data-theme] body.internal-portal-shell .internal-welcome-copy p:last-child {
    margin: 10px 0 0 !important;
    color: var(--portal-muted) !important;
    font-size: 1.05rem !important;
}

html[data-theme] body.internal-portal-shell .internal-status-grid {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
    margin: 4px 0 0 !important;
}

html[data-theme] body.internal-portal-shell .internal-status-card {
    min-height: 96px !important;
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 20px !important;
    text-align: left !important;
    background: rgba(255, 255, 255, 0.82) !important;
    border: 1px solid rgba(223, 229, 238, 0.92) !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 22px rgba(12, 35, 68, 0.05) !important;
}

html[data-theme] body.internal-portal-shell .internal-status-icon {
    width: 42px !important;
    height: 42px !important;
    flex: 0 0 42px !important;
    color: var(--portal-navy) !important;
    background: var(--portal-gold-soft) !important;
    border: 1px solid rgba(217, 166, 46, 0.25) !important;
    border-radius: 12px !important;
}

html[data-theme] body.internal-portal-shell .internal-status-card strong {
    color: var(--portal-navy) !important;
    font-size: 0.95rem !important;
}

html[data-theme] body.internal-portal-shell .internal-status-card small {
    margin-top: 3px !important;
    color: var(--portal-muted) !important;
    font-size: 0.92rem !important;
}

html[data-theme] body.internal-portal-shell .internal-apps-section {
    width: 100% !important;
    padding-top: 34px !important;
    margin: 0 !important;
}

html[data-theme] body.internal-portal-shell .internal-apps-heading {
    display: flex !important;
    align-items: flex-end !important;
    justify-content: space-between !important;
    gap: 18px !important;
    margin-bottom: 18px !important;
}

html[data-theme] body.internal-portal-shell .internal-apps-heading h2 {
    margin: 0 !important;
    color: var(--portal-navy) !important;
    font-size: 1.45rem !important;
    line-height: 1.15 !important;
}

html[data-theme] body.internal-portal-shell .internal-apps-heading .app-count,
html[data-theme] body.internal-portal-shell .internal-apps-heading > span {
    margin: 0 !important;
    color: var(--portal-muted) !important;
    font-size: 0.9rem !important;
    white-space: nowrap !important;
}

html[data-theme] body.internal-portal-shell .internal-app-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 18px !important;
}

html[data-theme] body.internal-portal-shell .workspace-app-tile.internal-app-card {
    position: relative !important;
    min-height: 218px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 20px !important;
    overflow: hidden !important;
    background: var(--portal-surface) !important;
    border: 1px solid var(--portal-border) !important;
    border-radius: 18px !important;
    box-shadow: var(--portal-shadow-card) !important;
    color: var(--portal-text) !important;
    text-align: left !important;
    text-decoration: none !important;
    outline: none !important;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease !important;
}

html[data-theme] body.internal-portal-shell .workspace-app-tile.internal-app-card[hidden] {
    display: none !important;
}

html[data-theme] body.internal-portal-shell .workspace-app-tile.internal-app-card::after {
    content: "" !important;
    position: absolute !important;
    inset: auto 18px 0 18px !important;
    height: 3px !important;
    display: block !important;
    background: linear-gradient(90deg, var(--portal-navy), var(--portal-gold)) !important;
    border-radius: 999px 999px 0 0 !important;
    opacity: 0 !important;
    transition: opacity 0.18s ease !important;
}

html[data-theme] body.internal-portal-shell .workspace-app-tile.internal-app-card:hover,
html[data-theme] body.internal-portal-shell .workspace-app-tile.internal-app-card:focus-visible {
    border-color: rgba(217, 166, 46, 0.55) !important;
    box-shadow: 0 18px 36px rgba(12, 35, 68, 0.12) !important;
    transform: translateY(-4px) !important;
}

html[data-theme] body.internal-portal-shell .workspace-app-tile.internal-app-card:hover::after,
html[data-theme] body.internal-portal-shell .workspace-app-tile.internal-app-card:focus-visible::after {
    opacity: 1 !important;
}

html[data-theme] body.internal-portal-shell .card-topline {
    width: 100% !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin-bottom: 18px !important;
}

html[data-theme] body.internal-portal-shell .internal-app-icon {
    width: 58px !important;
    height: 58px !important;
    display: inline-grid !important;
    place-items: center !important;
    flex: 0 0 58px !important;
    border: 1px solid #d9e5f2 !important;
    border-radius: 16px !important;
    box-shadow: none !important;
}

html[data-theme] body.internal-portal-shell .internal-app-card.accent-lavender .internal-app-icon,
html[data-theme] body.internal-portal-shell .internal-app-card.accent-lilac .internal-app-icon {
    background: #f0edff !important;
    border-color: #e3dcff !important;
}

html[data-theme] body.internal-portal-shell .internal-app-card.accent-cream .internal-app-icon {
    background: var(--portal-gold-soft) !important;
    border-color: rgba(217, 166, 46, 0.28) !important;
}

html[data-theme] body.internal-portal-shell .internal-app-card.accent-mint .internal-app-icon,
html[data-theme] body.internal-portal-shell .internal-app-card.accent-sage .internal-app-icon {
    background: #eef8f4 !important;
    border-color: #d5eee4 !important;
}

html[data-theme] body.internal-portal-shell .internal-app-card.accent-blue .internal-app-icon {
    background: #eef4fb !important;
    border-color: #d9e5f2 !important;
}

html[data-theme] body.internal-portal-shell .workspace-app-icon-image,
html[data-theme] body.internal-module-shell .hris-module-nav-icon {
    opacity: 1 !important;
    filter: brightness(0) saturate(100%) invert(13%) sepia(33%) saturate(1299%) hue-rotate(181deg) brightness(95%) contrast(96%) !important;
}

html[data-theme] body.internal-portal-shell .internal-app-icon .workspace-app-icon-image {
    width: 30px !important;
    height: 30px !important;
}

html[data-theme] body.internal-portal-shell .internal-app-copy {
    display: grid !important;
    justify-items: start !important;
    gap: 8px !important;
    text-align: left !important;
}

html[data-theme] body.internal-portal-shell .internal-app-copy strong {
    margin: 0 !important;
    color: var(--portal-navy) !important;
    font-size: 1.05rem !important;
    line-height: 1.28 !important;
    letter-spacing: -0.02em !important;
}

html[data-theme] body.internal-portal-shell .internal-app-copy small {
    max-width: none !important;
    margin: 0 0 18px !important;
    color: var(--portal-muted) !important;
    font-size: 0.92rem !important;
    line-height: 1.45 !important;
}

html[data-theme] body.internal-portal-shell .internal-app-badge {
    position: static !important;
    min-height: 26px !important;
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 5px 10px !important;
    border-radius: 999px !important;
    color: var(--portal-navy) !important;
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: none !important;
    font-size: 0.74rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

html[data-theme] body.internal-portal-shell .internal-app-badge.tone-green {
    color: var(--portal-success) !important;
    background: #eaf8f2 !important;
    border-color: #ccebdd !important;
}

html[data-theme] body.internal-portal-shell .internal-app-badge.tone-amber {
    color: var(--portal-warning) !important;
    background: #fff4df !important;
    border-color: #f3d49b !important;
}

html[data-theme] body.internal-portal-shell .internal-empty-state {
    margin: 24px 0 0 !important;
    padding: 22px !important;
    color: var(--portal-muted) !important;
    text-align: center !important;
    background: rgba(255, 255, 255, 0.78) !important;
    border: 1px dashed var(--portal-border) !important;
    border-radius: 14px !important;
}

html[data-theme] body.internal-module-shell .page-content.hris-clean-shell,
html[data-theme] body.internal-module-shell .internal-breadcrumb {
    width: min(1500px, calc(100% - 40px)) !important;
    max-width: 1500px !important;
}

html[data-theme] body.internal-module-shell .internal-breadcrumb {
    margin: 0 auto !important;
    padding: 0 !important;
    background: rgba(255, 255, 255, 0.94) !important;
    border-bottom: 1px solid var(--portal-border) !important;
}

html[data-theme] body.internal-module-shell .breadcrumb-list {
    width: 100% !important;
    min-height: 54px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    color: var(--portal-muted) !important;
    font-size: 0.92rem !important;
    list-style: none !important;
}

html[data-theme] body.internal-module-shell .breadcrumb-list li {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
}

html[data-theme] body.internal-module-shell .breadcrumb-list li + li::before {
    content: "/" !important;
    color: #9aa4b2 !important;
}

html[data-theme] body.internal-module-shell .breadcrumb-list a {
    color: var(--portal-navy) !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

html[data-theme] body.internal-module-shell .page-content.hris-clean-shell {
    margin: 0 auto !important;
    padding: 24px 0 28px !important;
}

html[data-theme] body.internal-module-shell .internal-module-layout {
    display: grid !important;
    grid-template-columns: 260px minmax(0, 1fr) !important;
    gap: 22px !important;
    align-items: start !important;
}

html[data-theme] body.internal-module-shell .internal-module-nav {
    position: sticky !important;
    top: 100px !important;
}

html[data-theme] body.internal-module-shell .hris-module-disclosure {
    width: 260px !important;
    overflow: hidden !important;
    background: var(--portal-surface) !important;
    border: 1px solid var(--portal-border) !important;
    border-radius: 10px !important;
    box-shadow: 0 10px 24px rgba(12, 35, 68, 0.05) !important;
}

html[data-theme] body.internal-module-shell .information-sidebar-head {
    min-height: auto !important;
    padding: 18px 20px 16px !important;
    background: var(--portal-surface) !important;
    border-bottom: 1px solid var(--portal-border) !important;
}

html[data-theme] body.internal-module-shell .hris-module-summary-copy > span:first-child {
    margin: 0 0 4px !important;
    color: var(--portal-gold) !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
}

html[data-theme] body.internal-module-shell .hris-module-summary-copy strong {
    color: var(--portal-navy) !important;
    font-size: 1.1rem !important;
    line-height: 1.2 !important;
}

html[data-theme] body.internal-module-shell .hris-module-grid {
    display: grid !important;
    gap: 0 !important;
}

html[data-theme] body.internal-module-shell .hris-module-card {
    width: 100% !important;
    min-height: 56px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 13px 18px !important;
    color: #344054 !important;
    text-align: left !important;
    background: #ffffff !important;
    border: 0 !important;
    border-bottom: 1px solid #edf1f5 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

html[data-theme] body.internal-module-shell .hris-module-card:last-child {
    border-bottom: 0 !important;
}

html[data-theme] body.internal-module-shell .hris-module-card:hover,
html[data-theme] body.internal-module-shell .hris-module-card.active,
html[data-theme] body.internal-module-shell .hris-module-card.is-active {
    color: #ffffff !important;
    background: var(--portal-navy) !important;
}

html[data-theme] body.internal-module-shell .hris-module-card h2 {
    color: inherit !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
}

html[data-theme] body.internal-module-shell .hris-module-card small {
    color: currentColor !important;
    font-size: 0.76rem !important;
    opacity: 0.72 !important;
}

html[data-theme] body.internal-module-shell .hris-module-nav-icon {
    width: 24px !important;
    height: 24px !important;
    flex: 0 0 24px !important;
}

html[data-theme] body.internal-module-shell .hris-module-card:hover .hris-module-nav-icon,
html[data-theme] body.internal-module-shell .hris-module-card.active .hris-module-nav-icon,
html[data-theme] body.internal-module-shell .hris-module-card.is-active .hris-module-nav-icon {
    filter: brightness(0) invert(1) !important;
}

html[data-theme] body.internal-module-shell .internal-module-panel {
    min-width: 0 !important;
    min-height: 720px !important;
    padding: clamp(24px, 3vw, 34px) !important;
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid var(--portal-border) !important;
    border-radius: 10px !important;
    box-shadow: 0 12px 28px rgba(12, 35, 68, 0.07) !important;
}

html[data-theme] body.internal-module-shell .information-panel-head {
    max-width: 760px !important;
    margin-bottom: 22px !important;
}

html[data-theme] body.internal-module-shell .information-panel-head p {
    margin: 0 0 7px !important;
    color: var(--portal-gold) !important;
    font-size: 0.76rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
}

html[data-theme] body.internal-module-shell .information-panel-head h1 {
    margin: 0 !important;
    color: var(--portal-navy) !important;
    font-size: clamp(1.8rem, 3vw, 2.45rem) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.035em !important;
}

html[data-theme] body.internal-module-shell .information-panel-head span {
    display: block !important;
    max-width: 760px !important;
    margin: 12px 0 0 !important;
    color: var(--portal-muted) !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
}

html[data-theme] body.internal-module-shell .information-policy-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
}

html[data-theme] body.internal-module-shell .information-policy-card {
    min-height: 108px !important;
    display: flex !important;
    justify-content: space-between !important;
    gap: 16px !important;
    padding: 18px !important;
    background: var(--portal-surface-soft) !important;
    border: 1px solid var(--portal-border) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    color: var(--portal-text) !important;
    text-decoration: none !important;
}

html[data-theme] body.internal-module-shell .information-policy-card.is-featured {
    border-color: rgba(217, 166, 46, 0.46) !important;
    background: #ffffff !important;
    box-shadow: 0 10px 22px rgba(217, 166, 46, 0.08) !important;
}

html[data-theme] body.internal-module-shell .information-policy-scope {
    display: block !important;
    margin-bottom: 12px !important;
    color: var(--portal-muted) !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
}

html[data-theme] body.internal-module-shell .information-policy-card h2 {
    margin: 0 !important;
    color: var(--portal-navy) !important;
    font-size: 1.02rem !important;
    line-height: 1.3 !important;
}

html[data-theme] body.internal-module-shell .information-policy-card p {
    margin: 9px 0 0 !important;
    color: var(--portal-muted) !important;
    font-size: 0.92rem !important;
    line-height: 1.45 !important;
}

html[data-theme] body.internal-module-shell .information-policy-badge {
    min-height: 26px !important;
    display: inline-flex !important;
    align-items: center !important;
    padding: 4px 10px !important;
    border-radius: 999px !important;
    font-size: 0.75rem !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
}

html[data-theme] body.internal-module-shell .information-policy-badge.tone-green {
    color: var(--portal-success) !important;
    background: #eaf8f2 !important;
    border: 1px solid #ccebdd !important;
}

html[data-theme] body.internal-module-shell .information-policy-badge.tone-blue {
    color: #8a6417 !important;
    background: #fff4df !important;
    border: 1px solid rgba(217, 166, 46, 0.32) !important;
}

html[data-theme] body.internal-module-shell .information-policy-badge.tone-amber {
    color: var(--portal-warning) !important;
    background: #fff4df !important;
    border: 1px solid #f3d49b !important;
}

html[data-theme] body.internal-module-shell .information-toast {
    right: 22px !important;
    bottom: 22px !important;
    padding: 14px 16px !important;
    color: #ffffff !important;
    background: var(--portal-navy) !important;
    border-left: 4px solid var(--portal-gold) !important;
    border-radius: 8px !important;
    box-shadow: 0 18px 38px rgba(12, 35, 68, 0.22) !important;
}

html[data-theme] body.internal-module-shell .internal-module-footer {
    width: min(1500px, calc(100% - 40px)) !important;
    margin: 0 auto !important;
    padding: 0 16px 26px !important;
    color: var(--portal-muted) !important;
    font-size: 0.82rem !important;
    text-align: center !important;
}

@media (max-width: 1024px) {
    html[data-theme] body.internal-portal-shell .internal-app-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 1100px) {
    html[data-theme] body.internal-module-shell .internal-module-layout {
        grid-template-columns: 220px minmax(0, 1fr) !important;
    }

    html[data-theme] body.internal-module-shell .hris-module-disclosure {
        width: 220px !important;
    }
}

@media (max-width: 760px) {
    html[data-theme] body .internal-app-topbar {
        grid-template-columns: minmax(0, 1fr) auto !important;
        grid-template-areas:
            "brand user"
            "center center" !important;
        gap: 14px !important;
        padding: 12px !important;
    }

    html[data-theme] body .internal-topbar-left {
        grid-area: brand !important;
        gap: 10px !important;
    }

    html[data-theme] body .internal-topbar-logo {
        grid-area: center !important;
        width: min(240px, 72vw) !important;
        height: 42px !important;
        margin-inline: auto !important;
    }

    html[data-theme] body .internal-topbar-user {
        grid-area: user !important;
    }

    html[data-theme] body .internal-brand-pill {
        min-width: 88px !important;
        min-height: 42px !important;
    }

    html[data-theme] body .internal-topbar-left .internal-brand-pill:last-child {
        min-width: 112px !important;
    }

    html[data-theme] body.internal-portal-shell .page-content,
    html[data-theme] body.internal-portal-shell .workspace-gateway.portal-shell {
        width: min(100% - 24px, 1180px) !important;
    }

    html[data-theme] body.internal-portal-shell .workspace-gateway.portal-shell {
        padding-top: 28px !important;
    }

    html[data-theme] body.internal-portal-shell .internal-search-wrap input {
        height: 56px !important;
    }

    html[data-theme] body.internal-portal-shell .internal-status-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    html[data-theme] body.internal-portal-shell .internal-apps-heading {
        align-items: flex-start !important;
        flex-direction: column !important;
    }

    html[data-theme] body.internal-module-shell .page-content.hris-clean-shell,
    html[data-theme] body.internal-module-shell .internal-breadcrumb,
    html[data-theme] body.internal-module-shell .internal-module-footer {
        width: min(100% - 24px, 1500px) !important;
    }

    html[data-theme] body.internal-module-shell .internal-module-layout {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        padding-top: 0 !important;
    }

    html[data-theme] body.internal-module-shell .internal-module-nav {
        position: static !important;
    }

    html[data-theme] body.internal-module-shell .hris-module-disclosure {
        width: 100% !important;
    }

    html[data-theme] body.internal-module-shell .information-sidebar-head {
        display: none !important;
    }

    html[data-theme] body.internal-module-shell .hris-module-grid {
        display: flex !important;
        gap: 8px !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        padding: 10px !important;
    }

    html[data-theme] body.internal-module-shell .hris-module-card {
        width: auto !important;
        min-width: max-content !important;
        min-height: 42px !important;
        flex: 0 0 auto !important;
        padding: 9px 12px !important;
        border: 1px solid var(--portal-border) !important;
        border-radius: 8px !important;
    }

    html[data-theme] body.internal-module-shell .internal-module-panel {
        min-height: auto !important;
        padding: 20px !important;
    }

    html[data-theme] body.internal-module-shell .information-policy-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 560px) {
    html[data-theme] body .internal-topbar-separator,
    html[data-theme] body .internal-topbar-left .internal-brand-pill:last-child,
    html[data-theme] body .internal-user-pill span {
        display: none !important;
    }

    html[data-theme] body.internal-portal-shell .internal-app-grid {
        grid-template-columns: 1fr !important;
    }

    html[data-theme] body.internal-portal-shell .workspace-app-tile.internal-app-card {
        min-height: 190px !important;
    }
}

/* POS simple cashier refactor - inspired by SolusiToko keyboard-first flow. */
html[data-theme] body .pos-terminal-clean.pos-ipos-refactor,
body .pos-terminal-clean.pos-ipos-refactor {
    --ipos-bg: linear-gradient(135deg, #eef7ff 0%, #f9fbfd 42%, #fffaf0 100%);
    --ipos-surface: rgba(255, 255, 255, 0.94);
    --ipos-surface-soft: #f3f8fc;
    --ipos-elevated: #ffffff;
    --ipos-elevated-soft: #f7fafd;
    --ipos-border: #d9e4ef;
    --ipos-border-strong: #c8d8e8;
    --ipos-text: #0d2340;
    --ipos-muted: #63758a;
    --ipos-accent: #1d79c7;
    --ipos-accent-soft: #eaf5ff;
    --ipos-dark: #173456;
    --ipos-dark-soft: #102740;
    --ipos-button-bg: #ffffff;
    --ipos-button-hover-bg: #f0f7ff;
    --ipos-primary-bg: linear-gradient(180deg, #eef8ff 0%, #dcefff 100%);
    --ipos-primary-border: #b8dafa;
    --ipos-primary-color: #0d4f8f;
    --ipos-success-bg: linear-gradient(180deg, #12345a 0%, #0d2744 100%);
    --ipos-success-border: #12345a;
    --ipos-success-color: #ffffff;
    --ipos-danger-bg: #fff1f1;
    --ipos-danger-border: #f2c7c7;
    --ipos-danger-color: #9a3434;
    --ipos-table-head-bg: #eef4fa;
    --ipos-table-head-color: #40546b;
    --ipos-table-row-hover: #f0f8ff;
    --ipos-total-bg: linear-gradient(180deg, #f0f8ff 0%, #ffffff 100%);
    --ipos-total-border: #c9e2fa;
    --ipos-total-value: #0d2340;
    --ipos-empty-bg: linear-gradient(180deg, #fbfdff, #f5f9fc);
    --ipos-empty-border: #d7e3ef;
    --ipos-cart-table-bg: #ffffff;
    --ipos-cart-row-bg: #ffffff;
    --ipos-cart-row-alt-bg: #f8fbfe;
    --ipos-cart-row-active-bg: #eaf5ff;
    --ipos-cart-row-border: #e3ebf3;
    --ipos-cart-input-bg: #ffffff;
    --ipos-cart-input-border: #cbd8e6;
    --ipos-cart-empty-bg: linear-gradient(180deg, #ffffff, #f7fbff);
    --ipos-picker-window-bg: #ffffff;
    --ipos-picker-table-bg: #f8fbfe;
    --ipos-picker-row-bg: #ffffff;
    --ipos-picker-row-alt-bg: #f8fbfe;
    --ipos-picker-row-hover-bg: #eaf5ff;
    --ipos-overlay: rgba(12, 24, 38, 0.38);
    --ipos-panel-shadow: 0 18px 44px rgba(24, 45, 72, 0.11);
    color-scheme: light;
}

body.pos-page-wide .main {
    padding: 18px 22px 28px !important;
}

body.pos-page-wide .page-content.page-content-bleed {
    min-height: auto;
}

html[data-theme] body.pos-page-wide #posCheckoutRoot,
body.pos-page-wide #posCheckoutRoot {
    width: 100%;
    max-width: none;
}

html[data-theme] body.pos-page-wide #posCheckoutRoot .pos-ipos-window,
body.pos-page-wide #posCheckoutRoot .pos-ipos-window {
    width: min(100%, 1760px);
    max-width: none;
    margin: 0 auto;
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-window,
body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-window {
    overflow: visible;
    border-radius: 24px;
    background: var(--ipos-bg);
    box-shadow: 0 26px 70px rgba(35, 55, 82, 0.12);
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-topbar,
body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-topbar {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 24px 24px 0 0;
    background: linear-gradient(180deg, #18395d 0%, #102740 100%);
    overflow: visible;
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-brand,
body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-brand {
    order: 1;
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-topactions,
body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-topactions {
    order: 2;
    margin-left: 0;
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-toolbar,
body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-toolbar {
    order: 3;
    justify-content: flex-end;
    gap: 10px;
    width: auto;
    padding: 0;
    overflow-x: auto;
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-brand-mark,
body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-brand-copy strong,
body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-brand-copy strong {
    font-size: 0.96rem;
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-toolbar-pill,
body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-toolbar-pill {
    min-width: 104px;
    min-height: 46px;
    padding: 8px 12px;
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.09);
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-toolbar-pill:last-child,
body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-toolbar-pill:last-child {
    display: none;
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-toolbar-pill span,
body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-toolbar-pill span {
    color: rgba(244, 248, 255, 0.72);
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-toolbar-pill strong,
html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-toolbar-switcher select,
body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-toolbar-pill strong,
body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-toolbar-switcher select {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quickbar,
body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quickbar {
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) repeat(4, minmax(128px, 0.7fr));
    gap: 10px;
    padding: 12px 16px 0;
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quickbar-action,
body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quickbar-action {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 14px;
    border: 1px solid var(--ipos-border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.86);
    color: var(--ipos-text);
    font: inherit;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(24, 45, 72, 0.07);
    cursor: pointer;
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quickbar-action.is-primary,
body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quickbar-action.is-primary {
    border-color: var(--ipos-primary-border);
    background: var(--ipos-primary-bg);
    color: var(--ipos-primary-color);
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quickbar-action.is-success,
body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quickbar-action.is-success {
    border-color: var(--ipos-success-border);
    background: var(--ipos-success-bg);
    color: var(--ipos-success-color);
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quickbar-action kbd,
body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quickbar-action kbd {
    min-width: 34px;
    padding: 4px 8px;
    border: 1px solid currentColor;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    font: inherit;
    font-size: 0.72rem;
    text-align: center;
    white-space: nowrap;
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-layout,
body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-layout {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
    gap: 14px;
    padding: 14px 16px 16px;
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-main,
html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-side,
body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-main,
body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-side {
    gap: 12px;
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-side,
body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-side {
    top: 14px;
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-panel,
body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-panel {
    padding: 14px;
    border-radius: 18px;
    background: var(--ipos-surface);
    box-shadow: var(--ipos-panel-shadow);
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-panel-head,
body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-panel-head {
    margin-bottom: 10px;
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-panel .pos-ipos-transaction-grid,
body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-panel .pos-ipos-transaction-grid {
    grid-template-columns: minmax(110px, 0.55fr) minmax(150px, 0.75fr) repeat(4, minmax(150px, 1fr));
    gap: 8px;
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-panel .pos-ipos-field,
body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-panel .pos-ipos-field {
    grid-column: auto !important;
    grid-row: auto !important;
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field-transaction-date,
html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field-homebase,
body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field-transaction-date,
body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field-homebase {
    display: none;
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field label,
body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field label {
    font-size: 0.72rem;
    letter-spacing: 0.02em;
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor :is(input, select, textarea),
body .pos-terminal-clean.pos-ipos-refactor :is(input, select, textarea) {
    min-height: 38px;
    border-radius: 12px;
    background: #ffffff;
    color: var(--ipos-text);
    -webkit-text-fill-color: var(--ipos-text);
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-draft-panel,
body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-draft-panel {
    border-color: #b9dcfb;
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch,
body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-copy,
body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-copy {
    display: none;
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-controls,
body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-controls {
    grid-template-columns: minmax(0, 1fr) 118px;
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor #posQuickSearch,
body .pos-terminal-clean.pos-ipos-refactor #posQuickSearch {
    min-height: 48px;
    padding-inline: 16px;
    font-size: 1rem;
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-cartbox,
body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-cartbox {
    min-height: 300px;
    max-height: min(46vh, 520px);
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .ops-queue-table th,
html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .ops-queue-table td,
body .pos-terminal-clean.pos-ipos-refactor .ops-queue-table th,
body .pos-terminal-clean.pos-ipos-refactor .ops-queue-table td {
    padding: 9px 10px;
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-panel,
body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-panel {
    padding: 12px;
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-totalbox,
body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-totalbox {
    padding: 18px;
    min-height: 138px;
    border-radius: 18px;
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-totalbox > strong,
body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-totalbox > strong {
    font-size: clamp(2.4rem, 4.2vw, 4rem);
    letter-spacing: -0.06em;
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-summaryrows,
body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-summaryrows {
    gap: 0;
    border-radius: 16px;
    overflow: hidden;
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-summaryrows > div,
html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-summaryrows > label,
body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-summaryrows > div,
body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-summaryrows > label {
    min-height: 42px;
    padding: 8px 12px;
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-methodgrid,
body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-methodgrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-shortcuts,
body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-shortcuts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-checkout,
body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-checkout {
    min-height: 52px;
    border-radius: 16px;
    font-size: 1rem;
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-log-shell,
body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-log-shell {
    margin: 0 16px 16px;
    padding: 0;
    overflow: hidden;
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-log-summary,
body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-log-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 64px;
    padding: 14px 16px;
    cursor: pointer;
    list-style: none;
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-log-summary::-webkit-details-marker,
body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-log-summary::-webkit-details-marker {
    display: none;
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-log-summary > span:first-child,
body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-log-summary > span:first-child {
    display: grid;
    gap: 4px;
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-log-shell[open],
body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-log-shell[open] {
    padding-bottom: 14px;
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-log-shell[open] .pos-ipos-log-meta,
html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-log-shell[open] .pos-ipos-log-tablebox,
body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-log-shell[open] .pos-ipos-log-meta,
body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-log-shell[open] .pos-ipos-log-tablebox {
    margin-inline: 14px;
}

@media (max-width: 1280px) {
    html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-topbar,
    body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-topbar {
        grid-template-columns: 1fr auto;
    }

    html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-toolbar,
    body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-toolbar {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quickbar,
    body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quickbar {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-layout,
    body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-layout {
        grid-template-columns: 1fr;
    }

    html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-side,
    body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-side {
        position: static;
    }
}

@media (max-width: 860px) {
    html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quickbar,
    body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quickbar,
    html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-panel .pos-ipos-transaction-grid,
    body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-panel .pos-ipos-transaction-grid,
    html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-controls,
    body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-controls {
        grid-template-columns: 1fr;
    }

    html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-log-summary,
    body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-log-summary {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Keep text selection aligned with the clean portal palette, not browser-blue. */
body ::selection,
html[data-theme] body ::selection {
    background: rgba(215, 183, 96, 0.34);
    color: #0d2340;
}

body.admin-suite-shell button.admin-secret-trigger::selection,
html[data-theme] body.admin-suite-shell button.admin-secret-trigger::selection,
body.internal-clean-page-shell button.admin-secret-trigger::selection,
html[data-theme] body.internal-clean-page-shell button.admin-secret-trigger::selection {
    background: rgba(215, 183, 96, 0.28) !important;
    color: inherit !important;
}

/* Premium page motion: lightweight CSS-only visuals, JS only toggles states. */
.page-motion-curtain {
    display: none;
}

html.page-motion-enabled .page-motion-curtain {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.98) 0 15%, rgba(245, 248, 252, 0.94) 35%, rgba(232, 237, 245, 0.92) 100%),
        linear-gradient(135deg, rgba(215, 183, 96, 0.14), rgba(13, 35, 64, 0.08));
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 420ms cubic-bezier(0.22, 1, 0.36, 1), visibility 420ms ease;
}

html.page-motion-enabled .page-motion-curtain::before {
    content: "";
    position: absolute;
    inset: -18%;
    background:
        linear-gradient(90deg, rgba(13, 35, 64, 0.045) 1px, transparent 1px),
        linear-gradient(180deg, rgba(13, 35, 64, 0.035) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(circle at center, #000 0 36%, transparent 74%);
    mask-image: radial-gradient(circle at center, #000 0 36%, transparent 74%);
    opacity: 0.8;
    transform: scale(1.02);
    animation: pageMotionGridDrift 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

html.page-motion-enabled .page-motion-panel {
    position: relative;
    width: min(380px, calc(100vw - 48px));
    min-height: 184px;
    display: grid;
    place-items: center;
    gap: 18px;
    padding: 34px 32px;
    border: 1px solid rgba(218, 226, 236, 0.88);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 34px 90px rgba(13, 35, 64, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px);
    transform-origin: 50% 52%;
    animation: pageMotionPanelIn 620ms cubic-bezier(0.2, 1, 0.25, 1) both;
}

html.page-motion-enabled .page-motion-orb {
    position: absolute;
    top: 28px;
    left: 50%;
    width: 156px;
    height: 96px;
    border-radius: 999px;
    background:
        radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.95) 0 18%, rgba(215, 183, 96, 0.34) 36%, rgba(13, 35, 64, 0.10) 68%, transparent 74%);
    filter: blur(2px);
    opacity: 0.88;
    transform: translateX(-50%);
    animation: pageMotionOrbFloat 900ms cubic-bezier(0.2, 1, 0.25, 1) both;
}

html.page-motion-enabled .page-motion-logo {
    position: relative;
    z-index: 1;
    width: min(214px, 62vw);
    height: 78px;
    object-fit: contain;
    filter: drop-shadow(0 16px 24px rgba(13, 35, 64, 0.14));
}

html.page-motion-enabled .page-motion-line {
    position: relative;
    z-index: 1;
    width: 148px;
    height: 4px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(13, 35, 64, 0.09);
}

html.page-motion-enabled .page-motion-line::after {
    content: "";
    display: block;
    width: 48%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(215, 183, 96, 0), #d7b760, rgba(215, 183, 96, 0));
    animation: pageMotionLineSweep 880ms cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

html.page-motion-enabled.page-motion-ready .page-motion-curtain {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

html.page-motion-enabled.page-motion-leaving .page-motion-curtain {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-duration: 180ms;
}

html.page-motion-enabled.page-motion-leaving .page-motion-panel {
    animation: pageMotionPanelOut 210ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

html.page-motion-enabled.page-motion-ready body:not(.reduced-effects-mode) :is(.workspace-gateway, .layout, .login-shell, .internal-module-shell, .sms-drive-shell) {
    animation: pageMotionContentIn 540ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes pageMotionPanelIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.96);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes pageMotionPanelOut {
    from {
        opacity: 0.82;
        transform: translateY(10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pageMotionOrbFloat {
    0% {
        transform: translateX(-50%) translateY(8px) scale(0.92);
    }
    60% {
        transform: translateX(-50%) translateY(-3px) scale(1.02);
    }
    100% {
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

@keyframes pageMotionLineSweep {
    from {
        transform: translateX(-115%);
    }
    to {
        transform: translateX(230%);
    }
}

@keyframes pageMotionGridDrift {
    from {
        transform: translate3d(-10px, 8px, 0) scale(1.04);
        opacity: 0;
    }
    to {
        transform: translate3d(0, 0, 0) scale(1.02);
        opacity: 0.8;
    }
}

@keyframes pageMotionContentIn {
    from {
        opacity: 0.94;
        transform: translateY(8px);
        filter: blur(3px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

html[data-reduced-effects="1"] .page-motion-curtain {
    display: none !important;
}

html[data-reduced-effects="1"] {
    scroll-behavior: auto !important;
}

html[data-reduced-effects="1"] body,
html[data-reduced-effects="1"] body *,
html[data-reduced-effects="1"] body *::before,
html[data-reduced-effects="1"] body *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
}

@media (prefers-reduced-motion: reduce) {
    .page-motion-curtain {
        display: none !important;
    }

    html.page-motion-enabled.page-motion-ready body:not(.reduced-effects-mode) :is(.workspace-gateway, .layout, .login-shell, .internal-module-shell, .sms-drive-shell) {
        animation: none !important;
    }
}

@media print {
    .page-motion-curtain {
        display: none !important;
    }
}

/* WMS Stock & Produk compact inventory layout. Scoped to this page only. */
body.wms-stock-compact-shell.internal-clean-page-shell {
    --wms-stock-navy: #0d2340;
    --wms-stock-gold: #d7b760;
    --wms-stock-line: #dbe5ef;
    --wms-stock-muted: #6d7d91;
    --wms-stock-surface: #ffffff;
}

body.wms-stock-compact-shell.internal-clean-page-shell .internal-app-topbar {
    min-height: 62px;
    padding-inline: clamp(16px, 2.5vw, 34px);
}

body.wms-stock-compact-shell.internal-clean-page-shell .internal-brand-pill {
    min-height: 36px;
    padding-inline: 16px;
}

body.wms-stock-compact-shell.internal-clean-page-shell .internal-icon-button,
body.wms-stock-compact-shell.internal-clean-page-shell .internal-user-pill {
    min-height: 38px;
    height: 38px;
}

body.wms-stock-compact-shell.internal-clean-page-shell .internal-breadcrumb {
    padding-block: 10px;
}

body.wms-stock-compact-shell.internal-clean-page-shell .internal-module-layout {
    width: min(100%, 1540px);
    grid-template-columns: minmax(198px, 220px) minmax(0, 1fr);
    gap: 14px;
    padding: 0 16px 14px;
    margin-inline: auto;
    align-items: stretch;
}

body.wms-stock-compact-shell.internal-clean-page-shell .internal-module-nav {
    top: 76px;
}

body.wms-stock-compact-shell.internal-clean-page-shell .information-sidebar-card {
    overflow: hidden;
    border: 1px solid var(--wms-stock-line);
    border-top: 3px solid var(--wms-stock-gold);
    border-radius: 12px;
    background: var(--wms-stock-surface);
    box-shadow: 0 18px 36px rgba(13, 35, 64, 0.08);
}

body.wms-stock-compact-shell.internal-clean-page-shell .information-sidebar-head {
    padding: 13px 16px;
    border-bottom: 1px solid var(--wms-stock-line);
}

body.wms-stock-compact-shell.internal-clean-page-shell .hris-module-summary-copy {
    gap: 4px;
}

body.wms-stock-compact-shell.internal-clean-page-shell .hris-module-summary-copy > span:first-child {
    color: var(--wms-stock-gold);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

body.wms-stock-compact-shell.internal-clean-page-shell .hris-module-summary-copy strong {
    color: var(--wms-stock-navy);
    font-size: 0.98rem;
}

body.wms-stock-compact-shell.internal-clean-page-shell .hris-module-grid {
    display: grid;
    gap: 0;
}

body.wms-stock-compact-shell.internal-clean-page-shell .hris-module-card {
    min-height: 44px;
    margin: 0;
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 0;
    border-bottom: 1px solid var(--wms-stock-line);
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
    color: #3d4a5f;
    text-decoration: none;
}

body.wms-stock-compact-shell.internal-clean-page-shell .hris-module-card:last-child {
    border-bottom: 0;
}

body.wms-stock-compact-shell.internal-clean-page-shell .hris-module-card h2 {
    margin: 0;
    color: inherit;
    font-size: 0.84rem;
    line-height: 1.2;
    letter-spacing: 0;
}

body.wms-stock-compact-shell.internal-clean-page-shell .hris-module-card small {
    display: none;
}

body.wms-stock-compact-shell.internal-clean-page-shell .hris-module-nav-icon {
    width: 22px;
    min-width: 22px;
    color: inherit;
    text-align: center;
}

body.wms-stock-compact-shell.internal-clean-page-shell .hris-module-card:hover,
body.wms-stock-compact-shell.internal-clean-page-shell .hris-module-card.active {
    transform: none;
    background: var(--wms-stock-navy);
    color: #ffffff;
}

body.wms-stock-compact-shell.internal-clean-page-shell .internal-module-panel {
    min-height: calc(100vh - 122px);
    max-height: calc(100vh - 122px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 10px;
    padding: 14px 16px;
    overflow: hidden;
    border-radius: 14px;
}

body.wms-stock-compact-shell.internal-clean-page-shell .page-hero {
    width: 100%;
    margin: 0;
    padding: 0 2px 6px;
}

body.wms-stock-compact-shell.internal-clean-page-shell .page-eyebrow {
    margin-bottom: 2px;
    font-size: 0.65rem;
}

body.wms-stock-compact-shell.internal-clean-page-shell .page-hero h1 {
    font-size: clamp(1.55rem, 2.2vw, 2.15rem);
}

body.wms-stock-compact-shell.internal-clean-page-shell .page-actions .btn-link {
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 0.78rem;
}

body.wms-stock-compact-shell.internal-clean-page-shell .page-content.page-content-bleed {
    width: 100%;
    min-height: 0;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body.wms-stock-compact-shell .stock-page-shell {
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-rows: auto auto auto minmax(0, 1fr);
    gap: 8px;
    overflow: hidden;
}

body.wms-stock-compact-shell .stock-page-shell.is-inventory-workspace #productStudioPanel {
    display: none;
}

body.wms-stock-compact-shell .stock-page-shell.is-products-workspace {
    height: auto;
    min-height: 100%;
    overflow: auto;
}

body.wms-stock-compact-shell .stock-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

body.wms-stock-compact-shell .stock-summary-grid .stock-mini-card {
    min-height: 68px;
    padding: 10px 12px;
    gap: 4px;
    border-top: 3px solid var(--wms-stock-gold);
    border-radius: 12px;
}

body.wms-stock-compact-shell .stock-mini-topline p {
    margin: 0;
    font-size: 0.64rem;
    letter-spacing: 0.13em;
}

body.wms-stock-compact-shell .stock-mini-card h3 {
    font-size: clamp(1.08rem, 1.55vw, 1.45rem);
    line-height: 1.05;
}

body.wms-stock-compact-shell .stock-mini-card .helper-text {
    font-size: 0.68rem;
    line-height: 1.25;
}

body.wms-stock-compact-shell .workspace-switch {
    min-height: 32px;
    justify-content: flex-start;
    margin: 0;
    padding: 3px;
    border-radius: 10px;
    width: max-content;
}

body.wms-stock-compact-shell .workspace-switch a {
    min-height: 26px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 0.72rem;
}

body.wms-stock-compact-shell .stock-workband {
    margin: 0;
}

body.wms-stock-compact-shell .stock-filter-shell {
    gap: 7px;
    padding: 8px 10px;
    border: 1px solid var(--wms-stock-line);
    border-top: 3px solid var(--wms-stock-gold);
    border-radius: 12px;
    background: #f6f9fc;
    box-shadow: none;
}

body.wms-stock-compact-shell .stock-filter-shell::before {
    display: none;
}

body.wms-stock-compact-shell .stock-filter-head h2 {
    font-size: 0.86rem;
}

body.wms-stock-compact-shell .stock-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

body.wms-stock-compact-shell .stock-filter-bar input[name="q"] {
    flex: 1 1 280px;
    grid-column: auto;
    min-width: 220px;
    min-height: 34px;
    padding: 7px 10px;
    font-size: 0.8rem;
}

body.wms-stock-compact-shell .stock-filter-bar select,
body.wms-stock-compact-shell .stock-filter-bar input[type="date"] {
    flex: 0 1 126px;
    min-width: 118px;
    min-height: 34px;
    padding: 6px 10px;
    border-radius: 9px;
    font-size: 0.78rem;
}

body.wms-stock-compact-shell .stock-filter-bar button,
body.wms-stock-compact-shell .stock-filter-bar .ghost-button {
    flex: 0 0 auto;
    min-width: 86px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.74rem;
}

body.wms-stock-compact-shell .stock-filter-bar .ghost-button {
    background: #ffffff;
    color: var(--wms-stock-navy);
}

body.wms-stock-compact-shell .stock-detail-box {
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 7px;
    padding: 8px 10px;
    overflow: hidden;
    border-radius: 12px;
    border-top: 3px solid var(--wms-stock-gold);
}

body.wms-stock-compact-shell .stock-detail-box .section-title {
    margin: 0;
    gap: 8px;
}

body.wms-stock-compact-shell .stock-detail-box .section-title h2 {
    font-size: 0.9rem;
}

body.wms-stock-compact-shell .stock-quick-actions {
    gap: 5px;
}

body.wms-stock-compact-shell .stock-quick-action {
    min-height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    background: #ffffff;
    color: var(--wms-stock-navy);
    border-color: var(--wms-stock-line);
    font-size: 0.68rem;
}

body.wms-stock-compact-shell .stock-table-viewport {
    min-height: 0;
    max-height: calc(100vh - 412px);
    overflow: auto;
    overscroll-behavior: contain;
    border: 1px solid var(--wms-stock-line);
    border-radius: 10px;
    background: #ffffff;
}

body.wms-stock-compact-shell .stock-table {
    width: 100%;
    min-width: 1180px !important;
    table-layout: fixed;
    border-collapse: collapse;
}

body.wms-stock-compact-shell .stock-table thead th,
body.wms-stock-compact-shell .stock-group-variant-table thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    height: 34px;
    padding: 6px 8px;
    background: #f2f6fa;
    color: #40536c;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
}

body.wms-stock-compact-shell .stock-table td,
body.wms-stock-compact-shell .stock-group-variant-table td {
    height: 40px;
    padding: 5px 8px;
    color: #12233d;
    font-size: 0.76rem;
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: normal;
}

body.wms-stock-compact-shell .stock-table tbody tr:hover td {
    background: #f8fbff;
}

body.wms-stock-compact-shell .stock-table input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

body.wms-stock-compact-shell .stock-name-stack {
    gap: 3px;
}

body.wms-stock-compact-shell .stock-name-stack small {
    display: none;
}

body.wms-stock-compact-shell .stock-readonly-field,
body.wms-stock-compact-shell .edit-field,
body.wms-stock-compact-shell .money-input,
body.wms-stock-compact-shell .stock-readonly-money {
    min-height: 30px;
    min-width: 0;
    width: 100%;
    padding: 5px 8px;
    border-radius: 8px;
    font-size: 0.76rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.wms-stock-compact-shell .money-input {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 5px;
}

body.wms-stock-compact-shell .money-input input {
    min-width: 0;
    padding: 0;
}

body.wms-stock-compact-shell .badge {
    min-height: 22px;
    padding: 3px 7px;
    border-radius: 999px;
    font-size: 0.65rem;
    white-space: nowrap;
}

body.wms-stock-compact-shell .stock-variant-summary {
    min-height: 38px;
    padding: 6px 8px;
    gap: 8px;
}

body.wms-stock-compact-shell .stock-group-detail-panel {
    padding: 6px;
}

body.wms-stock-compact-shell .stock-group-variant-table {
    min-width: 980px;
}

body.wms-stock-compact-shell .stock-pagination-strip {
    min-height: 32px;
    display: flex;
    align-items: center;
    overflow-x: auto;
}

body.wms-stock-compact-shell .stock-pagination-strip .pagination {
    margin: 0;
    gap: 5px;
    flex-wrap: nowrap;
}

body.wms-stock-compact-shell .stock-pagination-strip .pagination-link,
body.wms-stock-compact-shell .stock-pagination-strip .pagination-summary {
    min-height: 26px;
    padding: 0 9px;
    font-size: 0.68rem;
}

@media (min-width: 1600px) {
    body.wms-stock-compact-shell.internal-clean-page-shell .internal-module-layout {
        max-width: 1480px;
    }

    body.wms-stock-compact-shell .stock-table-viewport {
        max-height: calc(100vh - 398px);
    }
}

@media (max-width: 1180px) {
    body.wms-stock-compact-shell.internal-clean-page-shell .internal-module-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    body.wms-stock-compact-shell.internal-clean-page-shell .internal-module-nav {
        position: static;
    }

    body.wms-stock-compact-shell.internal-clean-page-shell .hris-module-grid {
        grid-template-columns: repeat(5, minmax(140px, 1fr));
        overflow-x: auto;
    }

    body.wms-stock-compact-shell.internal-clean-page-shell .hris-module-card {
        min-width: 140px;
        border-right: 1px solid var(--wms-stock-line);
    }

    body.wms-stock-compact-shell.internal-clean-page-shell .internal-module-panel {
        max-height: none;
        overflow: visible;
    }
}

@media (max-width: 900px) {
    body.wms-stock-compact-shell .stock-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.wms-stock-compact-shell .stock-table-viewport {
        max-height: 58vh;
    }
}

@media (max-width: 640px) {
    body.wms-stock-compact-shell.internal-clean-page-shell .internal-app-topbar {
        min-height: auto;
    }

    body.wms-stock-compact-shell.internal-clean-page-shell .internal-module-layout {
        padding-inline: 10px;
    }

    body.wms-stock-compact-shell .stock-summary-grid,
    body.wms-stock-compact-shell .stock-filter-bar {
        grid-template-columns: 1fr;
    }

    body.wms-stock-compact-shell .stock-summary-grid {
        grid-template-columns: 1fr;
    }

    body.wms-stock-compact-shell .stock-filter-bar input[name="q"],
    body.wms-stock-compact-shell .stock-filter-bar select,
    body.wms-stock-compact-shell .stock-filter-bar input[type="date"],
    body.wms-stock-compact-shell .stock-filter-bar button,
    body.wms-stock-compact-shell .stock-filter-bar .ghost-button {
        width: 100%;
        flex-basis: 100%;
    }
}

@media (max-width: 760px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    body :is(.layout, .main, .page-content, .internal-app-topbar, .internal-module-layout, .clean-module-layout, .module-layout, .content-panel, .internal-module-panel, .information-panel, .form-box, .panel, .box, .card) {
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    body :is(.table-box, .table-responsive, .stock-table-viewport, .pos-ipos-tablewrap, .pos-ipos-cartwrap) {
        max-width: 100% !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    body :is(input, select, textarea, button, .ghost-button, .button-primary, .button-secondary) {
        max-width: 100%;
    }
}



/* ======================================================================
   HRIS v13 - Recruitment command cards no-blue hard lock
   Reason: previous CSS made cards blue until clicked/active.
   ====================================================================== */
body .hris-clean-shell .recruitment-workspace button.hris-recruitment-command,
body .hris-clean-shell .recruitment-workspace button.hris-recruitment-command:not(.active),
body .hris-clean-shell .recruitment-workspace button.hris-recruitment-command:hover,
body .hris-clean-shell .recruitment-workspace button.hris-recruitment-command:focus,
body .hris-clean-shell .recruitment-workspace button.hris-recruitment-command:focus-visible,
body.internal-module-shell .hris-clean-shell .recruitment-workspace button.hris-recruitment-command,
body.internal-module-shell .hris-clean-shell .recruitment-workspace button.hris-recruitment-command:not(.active),
body.internal-module-shell .hris-clean-shell .recruitment-workspace button.hris-recruitment-command:hover,
body.internal-module-shell .hris-clean-shell .recruitment-workspace button.hris-recruitment-command:focus,
body.internal-module-shell .hris-clean-shell .recruitment-workspace button.hris-recruitment-command:focus-visible,
html body .hris-clean-shell .recruitment-workspace-grid > button.recruitment-workspace-card.hris-recruitment-command {
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
    color: #071a33 !important;
    border: 1px solid #dce4ee !important;
    border-top: 2px solid #d6a935 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    transform: none !important;
}
body .hris-clean-shell .recruitment-workspace button.hris-recruitment-command.active,
body.internal-module-shell .hris-clean-shell .recruitment-workspace button.hris-recruitment-command.active,
html body .hris-clean-shell .recruitment-workspace-grid > button.recruitment-workspace-card.hris-recruitment-command.active {
    background: #fffdf7 !important;
    background-color: #fffdf7 !important;
    background-image: none !important;
    border-color: rgba(214,169,53,.62) !important;
    border-top-color: #d6a935 !important;
}
body .hris-clean-shell .recruitment-workspace button.hris-recruitment-command .recruitment-workspace-icon,
body.internal-module-shell .hris-clean-shell .recruitment-workspace button.hris-recruitment-command .recruitment-workspace-icon {
    background: #fff4cf !important;
    background-image: none !important;
    color: #071a33 !important;
    border-color: rgba(214,169,53,.34) !important;
    box-shadow: none !important;
}

/* ======================================================================
   V16 POS Header Homebase Select Fix
   Fix: dropdown Homebase pada topbar kasir sebelumnya ikut style global input
   sehingga background menjadi putih di area header navy.
   ====================================================================== */
html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-topbar .pos-ipos-toolbar-switcher,
body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-topbar .pos-ipos-toolbar-switcher {
    min-width: 190px !important;
    background: rgba(255, 255, 255, 0.09) !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-topbar .pos-ipos-toolbar-switcher select,
body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-topbar .pos-ipos-toolbar-switcher select {
    width: 100% !important;
    min-height: 30px !important;
    height: 30px !important;
    padding: 2px 30px 2px 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    box-shadow: none !important;
    outline: none !important;
    font-size: 0.92rem !important;
    font-weight: 800 !important;
    cursor: pointer !important;
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-topbar .pos-ipos-toolbar-switcher select:focus,
body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-topbar .pos-ipos-toolbar-switcher select:focus {
    background: transparent !important;
    background-color: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-topbar .pos-ipos-toolbar-switcher select option,
body .pos-terminal-clean.pos-ipos-refactor .pos-ipos-topbar .pos-ipos-toolbar-switcher select option {
    color: #0b1f3a !important;
    background: #ffffff !important;
    -webkit-text-fill-color: #0b1f3a !important;
}
body .stock-opname-confirm-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(8, 18, 32, 0.38);
    backdrop-filter: blur(6px);
}

body .stock-opname-confirm-dialog {
    width: min(440px, 100%);
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 18px;
    padding: 20px;
    background: #ffffff;
    color: #0f2442;
    box-shadow: 0 22px 54px rgba(15, 36, 66, 0.18);
}

body .stock-opname-confirm-dialog strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1rem;
    line-height: 1.3;
}

body .stock-opname-confirm-dialog p {
    margin: 0;
    color: #5f6f86;
    line-height: 1.5;
}

body .stock-opname-confirm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

body .stock-opname-confirm-actions button {
    flex: 1 1 150px;
    min-height: 42px;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 999px;
    background: #ffffff;
    color: #0f2442;
    font-weight: 800;
}

body .stock-opname-confirm-actions button.danger {
    border-color: rgba(37, 99, 235, 0.22);
    background: #2563eb;
    color: #ffffff;
}

/* === Login OTP spacing guard: input and verify button stay readable on mobile === */
body.login-page.login-otp-page .login-code-form {
    gap: 14px;
    margin-top: 6px;
}

body.login-page.login-otp-page .login-code-row {
    gap: 16px;
    align-items: stretch;
}

body.login-page.login-otp-page .login-code-row input,
body.login-page.login-otp-page .login-code-row button {
    min-height: 58px;
}

body.login-page.login-otp-page .login-secondary-stack {
    gap: 12px;
    margin-top: 16px;
}

@media (max-width: 640px) {
    body.login-page.login-otp-page .login-code-form {
        gap: 16px;
        margin-top: 8px;
    }

    body.login-page.login-otp-page .login-code-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    body.login-page.login-otp-page .login-code-row button {
        min-width: 0;
    }

    body.login-page.login-otp-page .login-secondary-stack {
        gap: 11px;
        margin-top: 16px;
    }
}

html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-catalog-trigger,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-cv-trigger,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-catalog-trigger,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-cv-trigger {
    min-height: 40px !important;
    padding: 0 14px !important;
    border-radius: 12px !important;
    border: 1px solid #bfd2e6 !important;
    background: linear-gradient(180deg, #ffffff 0%, #f3f8fd 100%) !important;
    color: #10233b !important;
    font-weight: 800 !important;
    box-shadow: 0 6px 14px rgba(15, 35, 58, 0.05) !important;
}

html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch {
    margin-top: 6px !important;
    padding: 12px !important;
    border: 1px solid #d6e2ef !important;
    border-radius: 18px !important;
    background: linear-gradient(180deg, #f9fbfe 0%, #f3f7fc 100%) !important;
}

html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-copy,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-copy {
    display: grid !important;
    gap: 4px !important;
    margin-bottom: 10px !important;
}

html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-copy .pos-ipos-kicker,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-copy .pos-ipos-kicker {
    font-size: 0.74rem !important;
    letter-spacing: 0.08em !important;
}

html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-copy small,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-copy small {
    color: #506579 !important;
    font-size: 0.82rem !important;
    line-height: 1.35 !important;
}

html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-controls,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-controls {
    grid-template-columns: minmax(0, 1fr) 132px !important;
    gap: 10px !important;
    align-items: stretch !important;
}

html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor #posQuickSearch,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor #posQuickSearch {
    min-height: 50px !important;
    padding: 0 16px !important;
    border-radius: 14px !important;
    font-size: 1rem !important;
    border-color: #c9d7e5 !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9) !important;
}

html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor #posQuickSearch::placeholder,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor #posQuickSearch::placeholder {
    color: #8092a7 !important;
}

html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-controls .pos-vintage-button,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-controls .pos-vintage-button {
    min-height: 50px !important;
    border-radius: 14px !important;
    font-size: 0.94rem !important;
    font-weight: 800 !important;
}

html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-results,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-results {
    margin-top: 10px !important;
    padding: 12px !important;
    border-radius: 18px !important;
    background: #f7fbff !important;
    gap: 10px !important;
}

html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-result,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-result {
    gap: 16px !important;
    min-height: 96px !important;
    padding: 16px 18px !important;
    border-radius: 18px !important;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease !important;
}

html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-result:is(:hover, :focus-visible, .is-active),
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-result:is(:hover, :focus-visible, .is-active) {
    transform: translateY(-1px) !important;
    box-shadow: 0 10px 24px rgba(15, 35, 58, 0.08) !important;
}

html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-result-copy,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-result-copy {
    gap: 10px !important;
}

html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-result-code,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-result-code {
    min-height: 34px !important;
    padding: 0 14px !important;
    font-size: 0.9rem !important;
    font-weight: 800 !important;
}

html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-result-title,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-result-title {
    font-size: 1rem !important;
    line-height: 1.4 !important;
}

html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-result-chip,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-result-chip {
    min-height: 28px !important;
    padding: 0 10px !important;
    font-size: 0.77rem !important;
}

html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-result-meta,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-result-meta {
    gap: 10px !important;
    min-width: 108px !important;
}

html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-result-price,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-result-price {
    font-size: 0.98rem !important;
}

html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-methodgrid,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-methodgrid {
    gap: 12px !important;
}

html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-methodgrid .pos-payment-method,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-methodgrid .pos-payment-method {
    min-height: 56px !important;
    padding: 10px 12px !important;
    border-radius: 16px !important;
    border: 1px solid #cddceb !important;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%) !important;
    color: #17324f !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.02em !important;
    box-shadow: 0 6px 16px rgba(15, 35, 58, 0.04) !important;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease !important;
}

html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-methodgrid .pos-payment-method:hover,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-methodgrid .pos-payment-method:focus-visible,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-methodgrid .pos-payment-method:hover,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-methodgrid .pos-payment-method:focus-visible {
    border-color: #9cb8d4 !important;
    background: linear-gradient(180deg, #ffffff 0%, #edf5fd 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 10px 20px rgba(15, 35, 58, 0.08) !important;
}

html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-methodgrid .pos-payment-method.is-active,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-methodgrid .pos-payment-method.is-active {
    border-color: #2f67f6 !important;
    background: linear-gradient(180deg, #eff5ff 0%, #dbeafe 100%) !important;
    color: #0f2f63 !important;
    box-shadow: inset 0 0 0 1px rgba(47, 103, 246, 0.18), 0 12px 24px rgba(47, 103, 246, 0.14) !important;
}

@media (max-width: 860px) {
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-controls,
    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-controls {
        grid-template-columns: 1fr !important;
    }

    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-copy,
    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-copy {
        margin-bottom: 8px !important;
    }

    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-methodgrid,
    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-methodgrid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}
/* ==================================================
BJAS WMS Dashboard Quick Access
Scoped only for WMS dashboard and module gateway
================================================== */

body:is(.wms-module-shell.wms-dashboard-page-shell, .internal-wms-module-shell) .wms-dashboard-page-hero {
    align-items: flex-start;
    margin-bottom: 32px;
    padding: 0;
}

body:is(.wms-module-shell.wms-dashboard-page-shell, .internal-wms-module-shell) .wms-dashboard-page-hero h1 {
    margin: 0;
    font-size: 44px;
    line-height: 1.05;
    letter-spacing: 0;
    color: #071f3f;
}

body:is(.wms-module-shell.wms-dashboard-page-shell, .internal-wms-module-shell) .wms-dashboard-subtitle {
    margin: 14px 0 0;
    color: #53637f;
    font-size: 15px;
    line-height: 1.5;
}

body:is(.wms-module-shell.wms-dashboard-page-shell, .internal-wms-module-shell) .wms-dashboard-content {
    width: 100%;
    max-width: none;
    min-width: 0;
}

body:is(.wms-module-shell.wms-dashboard-page-shell, .internal-wms-module-shell) .wms-dashboard-quick {
    width: 100%;
    max-width: 1280px;
    min-width: 0;
}

body:is(.wms-module-shell.wms-dashboard-page-shell, .internal-wms-module-shell) .wms-dashboard-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    width: 100%;
    min-width: 0;
}

body:is(.wms-module-shell.wms-dashboard-page-shell, .internal-wms-module-shell) .wms-dashboard-quick-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto 1fr auto auto;
    min-height: 178px;
    padding: 24px 24px 22px;
    border: 1px solid #d8e4f2;
    border-radius: 16px;
    background: #fff;
    color: #071f3f;
    text-decoration: none;
    box-shadow: 0 16px 34px rgba(8, 31, 63, .08);
    overflow: hidden;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

body:is(.wms-module-shell.wms-dashboard-page-shell, .internal-wms-module-shell) .wms-dashboard-quick-card:hover,
body:is(.wms-module-shell.wms-dashboard-page-shell, .internal-wms-module-shell) .wms-dashboard-quick-card:focus-visible {
    transform: translateY(-2px);
    border-color: #b7c9e1;
    box-shadow: 0 20px 42px rgba(8, 31, 63, .12);
    outline: 0;
}

body:is(.wms-module-shell.wms-dashboard-page-shell, .internal-wms-module-shell) .wms-dashboard-quick-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: #edf5ff;
    border: 1px solid #d8e8ff;
}

body:is(.wms-module-shell.wms-dashboard-page-shell, .internal-wms-module-shell) .wms-dashboard-quick-icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

body:is(.wms-module-shell.wms-dashboard-page-shell, .internal-wms-module-shell) .wms-dashboard-quick-card[data-wms-quick-tone="green"] .wms-dashboard-quick-icon {
    background: #eafbf2;
    border-color: #d3f4e1;
}

body:is(.wms-module-shell.wms-dashboard-page-shell, .internal-wms-module-shell) .wms-dashboard-quick-card[data-wms-quick-tone="orange"] .wms-dashboard-quick-icon {
    background: #fff1e8;
    border-color: #ffe0ce;
}

body:is(.wms-module-shell.wms-dashboard-page-shell, .internal-wms-module-shell) .wms-dashboard-quick-card[data-wms-quick-tone="purple"] .wms-dashboard-quick-icon {
    background: #f3eafe;
    border-color: #e7d7ff;
}

body:is(.wms-module-shell.wms-dashboard-page-shell, .internal-wms-module-shell) .wms-dashboard-quick-badge {
    justify-self: end;
    align-self: start;
    max-width: 132px;
    padding: 7px 13px;
    border-radius: 999px;
    background: #edf4ff;
    color: #0b63d8;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body:is(.wms-module-shell.wms-dashboard-page-shell, .internal-wms-module-shell) .wms-dashboard-quick-card[data-wms-quick-tone="green"] .wms-dashboard-quick-badge {
    background: #e7f8ed;
    color: #079447;
}

body:is(.wms-module-shell.wms-dashboard-page-shell, .internal-wms-module-shell) .wms-dashboard-quick-card[data-wms-quick-tone="orange"] .wms-dashboard-quick-badge {
    background: #fff0e6;
    color: #dc5b0a;
}

body:is(.wms-module-shell.wms-dashboard-page-shell, .internal-wms-module-shell) .wms-dashboard-quick-card[data-wms-quick-tone="purple"] .wms-dashboard-quick-badge {
    background: #f4eaff;
    color: #7c3bd6;
}

body:is(.wms-module-shell.wms-dashboard-page-shell, .internal-wms-module-shell) .wms-dashboard-quick-card strong {
    grid-column: 1 / -1;
    margin-top: 26px;
    font-size: 22px;
    line-height: 1.18;
    color: #071f3f;
}

body:is(.wms-module-shell.wms-dashboard-page-shell, .internal-wms-module-shell) .wms-dashboard-quick-card small {
    grid-column: 1 / -1;
    margin-top: 12px;
    color: #667895;
    font-size: 13px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body:is(.wms-module-shell.wms-dashboard-page-shell, .internal-wms-module-shell) .wms-dashboard-quick-arrow {
    position: absolute;
    right: 24px;
    bottom: 18px;
    color: #071f3f;
    font-size: 34px;
    line-height: 1;
    font-weight: 800;
}

@media (max-width: 1180px) {
    body:is(.wms-module-shell.wms-dashboard-page-shell, .internal-wms-module-shell) .wms-dashboard-quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    body:is(.wms-module-shell.wms-dashboard-page-shell, .internal-wms-module-shell) .wms-dashboard-page-hero {
        margin-bottom: 20px;
    }

    body:is(.wms-module-shell.wms-dashboard-page-shell, .internal-wms-module-shell) .wms-dashboard-page-hero h1 {
        font-size: 32px;
    }

    body:is(.wms-module-shell.wms-dashboard-page-shell, .internal-wms-module-shell) .wms-dashboard-quick-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    body:is(.wms-module-shell.wms-dashboard-page-shell, .internal-wms-module-shell) .wms-dashboard-quick-card {
        min-height: 142px;
        padding: 18px;
    }

    body:is(.wms-module-shell.wms-dashboard-page-shell, .internal-wms-module-shell) .wms-dashboard-quick-icon {
        width: 50px;
        height: 50px;
        border-radius: 12px;
    }

    body:is(.wms-module-shell.wms-dashboard-page-shell, .internal-wms-module-shell) .wms-dashboard-quick-icon img {
        width: 30px;
        height: 30px;
    }

    body:is(.wms-module-shell.wms-dashboard-page-shell, .internal-wms-module-shell) .wms-dashboard-quick-card strong {
        margin-top: 16px;
        font-size: 19px;
    }
}

/* POS payment dialog iPOS dense revision. Keep selectors scoped to checkout modal. */
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal {
    padding: 10px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal-window,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal-window {
    width: min(640px, calc(100vw - 24px)) !important;
    max-width: 640px !important;
    max-height: 82vh !important;
    height: auto !important;
    border-radius: 6px !important;
    box-shadow: 0 14px 36px rgba(15, 23, 42, .2) !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal-head,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal-head {
    min-height: 44px !important;
    padding: 6px 10px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal-head h3,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal-head h3 {
    font-size: 18px !important;
    margin: 1px 0 0 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal-close,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal-close {
    width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    font-size: 20px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal-body,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal-body {
    padding: 8px 10px 10px !important;
    overflow-y: hidden !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-payment-panel,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-payment-panel {
    gap: 6px !important;
    grid-template-rows: auto auto auto auto !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-total-row,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-total-row {
    min-height: 76px !important;
    height: 76px !important;
    padding: 6px 10px !important;
    grid-template-columns: 86px minmax(0, 1fr) !important;
    grid-template-rows: 1fr !important;
    align-items: center !important;
    gap: 8px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-total-row .pos-ipos-kicker,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-total-row .pos-ipos-kicker {
    grid-column: 1 !important;
    align-self: center !important;
    color: #0b1f3d !important;
    font-size: 12px !important;
    font-weight: 800 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-total-row > strong,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-total-row > strong {
    grid-column: 2 !important;
    justify-self: stretch !important;
    padding: 4px 10px !important;
    border: 1px solid #e0d46d !important;
    background: #fff400 !important;
    color: #000000 !important;
    font-size: clamp(42px, 5.5vw, 56px) !important;
    line-height: .95 !important;
    text-align: right !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-total-row .pos-ipos-totalmeta,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-total-row .pos-ipos-totalmeta {
    display: none !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summaryrows,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summaryrows {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    border-radius: 4px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summary-heading,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summary-heading,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal #posChangeAmountMirror,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal #posChangeAmountMirror {
    display: none !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal #posChangeAmountMirror,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal #posChangeAmountMirror {
    display: none !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summaryrows > div,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summary-input,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summaryrows > div,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summary-input {
    min-height: 32px !important;
    height: 32px !important;
    padding: 2px 8px !important;
    border-right: 1px solid #d7e1ee !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summaryrows > div:has(#posChangeAmountMirror),
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summaryrows > div:has(#posChangeAmountMirror) {
    display: none !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summaryrows .pos-ipos-adjustment-input,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summaryrows .pos-ipos-adjustment-input,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summaryrows .pos-ipos-summary-input[for="posPaidAmount"],
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summaryrows .pos-ipos-summary-input[for="posPaidAmount"] {
    grid-column: span 2 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-adjustment-controls,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-adjustment-controls {
    width: min(290px, 58%) !important;
    grid-template-columns: 62px minmax(0, 1fr) !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summaryrows span,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summaryrows span {
    font-size: 11px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summaryrows strong,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summaryrows strong {
    font-size: 15px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal input,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal select,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal input,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal select {
    min-height: 26px !important;
    height: 26px !important;
    padding: 2px 7px !important;
    border-radius: 3px !important;
    font-size: 12px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-total-paid-row,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-total-paid-row {
    background: #dff5dc !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-shortage-row,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-shortage-row {
    background: #ffd9c2 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summaryrows .is-accent,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summaryrows .is-accent {
    background: #dff5dc !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-methods,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-methods {
    grid-template-columns: 82px minmax(0, 1fr) auto !important;
    min-height: 40px !important;
    padding: 4px 6px !important;
    border-radius: 4px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-methodgrid,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-methodgrid {
    grid-template-columns: repeat(auto-fit, minmax(44px, 1fr)) !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-methodgrid .pos-payment-method,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-methodgrid .pos-payment-method,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-vintage-mini,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-vintage-mini {
    min-height: 24px !important;
    height: 24px !important;
    padding: 2px 6px !important;
    border-radius: 3px !important;
    font-size: 10px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-split-toggle,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-split-toggle {
    min-height: 24px !important;
    height: 24px !important;
    padding: 2px 6px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-split-toggle strong,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-split-toggle strong {
    font-size: 11px !important;
}


body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-checkout-footer,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-checkout-footer {
    position: static !important;
    margin: 0 !important;
    padding: 2px 0 0 !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, .9fr) 92px !important;
    gap: 6px !important;
    border-top: 0 !important;
}

/* POS payment height trim for 1366x768: keep every control visible without modal body scroll. */
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal-head,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal-head {
    min-height: 36px !important;
    padding: 4px 9px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-total-row,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-totalbox,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-total-row,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-totalbox {
    height: 62px !important;
    min-height: 62px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-total-row > strong,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-total-row > strong {
    font-size: clamp(36px, 4.6vw, 48px) !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-cash-grid,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-cash-grid,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-adjustment,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-adjustment {
    gap: 3px 6px !important;
    padding: 3px 6px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-pay-row,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-pay-row,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-summary > div,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-summary > div {
    min-height: 24px !important;
    height: 24px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal input,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal select,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal input,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal select {
    min-height: 22px !important;
    height: 22px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-methods,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-methods {
    min-height: 30px !important;
    padding: 2px 6px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-split-toggle,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-split-toggle {
    min-height: 20px !important;
    height: 20px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-checkout-footer .pos-vintage-button,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-checkout-footer .pos-vintage-button {
    min-height: 30px !important;
    height: 30px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-cash-grid,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-cash-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-pay-row,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-pay-row-wide,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-pay-row,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-pay-row-wide {
    grid-column: auto !important;
    grid-template-columns: 1fr !important;
    gap: 2px !important;
    align-content: start !important;
    min-height: 42px !important;
    height: 42px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-pay-row-wide input:nth-of-type(n+2),
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-pay-row-wide input:nth-of-type(n+2) {
    display: none !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-summary > .pos-payment-preview-row,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-summary > .pos-payment-preview-row {
    display: none !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-checkout-footer .pos-vintage-button,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-checkout-footer .pos-vintage-button {
    min-height: 34px !important;
    height: 34px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
}

@media (max-width: 720px) {
    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal-body,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal-body {
        overflow-y: auto !important;
    }

    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-total-row,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-total-row {
        height: auto !important;
        min-height: 72px !important;
        grid-template-columns: 1fr !important;
    }

    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-total-row > strong,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-total-row > strong,
    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-total-row .pos-ipos-kicker,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-total-row .pos-ipos-kicker {
        grid-column: 1 !important;
    }

    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summaryrows,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summaryrows {
        grid-template-columns: 1fr !important;
    }

    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summaryrows .pos-ipos-adjustment-input,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summaryrows .pos-ipos-adjustment-input,
    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summaryrows .pos-ipos-summary-input[for="posPaidAmount"],
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summaryrows .pos-ipos-summary-input[for="posPaidAmount"] {
        grid-column: auto !important;
    }
}

/* ==================================================
BJAS WMS Dashboard Quick Access Compact Balance
Scoped only for the 4-card WMS dashboard
================================================== */

body.internal-wms-module-shell.internal-module-root-shell {
    min-height: 100vh !important;
    overflow-y: auto !important;
}

body.internal-wms-module-shell.internal-module-root-shell .layout,
body.internal-wms-module-shell.internal-module-root-shell .main {
    min-height: 0 !important;
    height: auto !important;
    overflow: visible !important;
}

body.internal-wms-module-shell.internal-module-root-shell .internal-module-layout {
    align-items: start !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
}

body.internal-wms-module-shell.internal-module-root-shell .info-sidebar,
body.internal-wms-module-shell.internal-module-root-shell .information-sidebar-card {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
}

body.internal-wms-module-shell.internal-module-root-shell .sidebar-menu {
    overflow: visible !important;
}

body.internal-wms-module-shell.internal-module-root-shell .sidebar-link {
    min-height: 40px !important;
    padding-block: 8px !important;
}

body.internal-wms-module-shell.internal-module-root-shell .internal-module-panel {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 22px 24px 28px !important;
    align-self: start !important;
    overflow: visible !important;
}

body.internal-wms-module-shell.internal-module-root-shell .information-panel-head {
    display: block !important;
    max-width: 620px !important;
    margin: 0 0 20px !important;
    padding-bottom: 16px !important;
    border-bottom: 1px solid #dbe6f4 !important;
}

body.internal-wms-module-shell.internal-module-root-shell .information-panel-head p {
    margin: 0 0 10px !important;
    font-size: 12px !important;
    line-height: 1.1 !important;
    letter-spacing: .18em !important;
}

body.internal-wms-module-shell.internal-module-root-shell .information-panel-head h1 {
    margin: 0 0 8px !important;
    font-size: clamp(34px, 3vw, 44px) !important;
    line-height: 1.04 !important;
    letter-spacing: 0 !important;
}

body.internal-wms-module-shell.internal-module-root-shell .information-panel-head span {
    display: block !important;
    max-width: 520px !important;
    margin: 0 !important;
    text-align: left !important;
    font-size: 15px !important;
    line-height: 1.45 !important;
}

body:is(.wms-module-shell.wms-dashboard-page-shell, .internal-wms-module-shell) .wms-dashboard-page-hero {
    margin-bottom: 20px !important;
}

body:is(.wms-module-shell.wms-dashboard-page-shell, .internal-wms-module-shell) .wms-dashboard-page-hero h1 {
    font-size: clamp(34px, 3vw, 44px) !important;
}

body:is(.wms-module-shell.wms-dashboard-page-shell, .internal-wms-module-shell) .wms-dashboard-subtitle {
    margin-top: 8px !important;
    max-width: 520px !important;
}

body:is(.wms-module-shell.wms-dashboard-page-shell, .internal-wms-module-shell) .wms-dashboard-quick {
    max-width: 1180px !important;
    min-height: 0 !important;
    height: auto !important;
}

body:is(.wms-module-shell.wms-dashboard-page-shell, .internal-wms-module-shell) .wms-dashboard-quick-grid {
    gap: 18px !important;
    align-items: stretch !important;
}

body:is(.wms-module-shell.wms-dashboard-page-shell, .internal-wms-module-shell) .wms-dashboard-quick-card {
    min-height: 138px !important;
    padding: 20px 22px !important;
    grid-template-rows: auto auto 1fr !important;
    box-shadow: 0 10px 24px rgba(8, 31, 63, .06) !important;
}

body:is(.wms-module-shell.wms-dashboard-page-shell, .internal-wms-module-shell) .wms-dashboard-quick-icon {
    width: 52px !important;
    height: 52px !important;
    border-radius: 14px !important;
}

body:is(.wms-module-shell.wms-dashboard-page-shell, .internal-wms-module-shell) .wms-dashboard-quick-icon img {
    width: 30px !important;
    height: 30px !important;
}

body:is(.wms-module-shell.wms-dashboard-page-shell, .internal-wms-module-shell) .wms-dashboard-quick-badge[hidden],
body:is(.wms-module-shell.wms-dashboard-page-shell, .internal-wms-module-shell) .wms-dashboard-quick-badge.is-default {
    display: none !important;
}

body:is(.wms-module-shell.wms-dashboard-page-shell, .internal-wms-module-shell) .wms-dashboard-quick-card strong {
    margin-top: 14px !important;
    font-size: 19px !important;
    line-height: 1.15 !important;
}

body:is(.wms-module-shell.wms-dashboard-page-shell, .internal-wms-module-shell) .wms-dashboard-quick-card small {
    margin-top: 8px !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
}

body:is(.wms-module-shell.wms-dashboard-page-shell, .internal-wms-module-shell) .wms-dashboard-quick-arrow {
    right: 20px !important;
    bottom: 18px !important;
    font-size: 22px !important;
}

@media (max-width: 1200px) {
    body:is(.wms-module-shell.wms-dashboard-page-shell, .internal-wms-module-shell) .wms-dashboard-quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 720px) {
    body:is(.wms-module-shell.wms-dashboard-page-shell, .internal-wms-module-shell) .wms-dashboard-quick-card {
        min-height: 128px !important;
        padding: 18px !important;
    }
}

/* ==================================================
POS / Kasir iPOS compact workstation
Final scoped override for the active POS terminal only.
================================================== */

body.pos-page-wide {
    overflow: hidden !important;
    background: #e8edf3 !important;
}

body.pos-page-wide .layout,
body.pos-page-wide .main,
body.pos-page-wide .page-content,
body.pos-page-wide .page-content-bleed {
    min-width: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

body.pos-page-wide .main {
    height: 100dvh !important;
    padding: 6px !important;
}

body.pos-page-wide .page-content-bleed,
body.pos-page-wide #posCheckoutRoot {
    height: calc(100dvh - 12px) !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor.kasir-shell {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    color: #101828 !important;
    font-size: 12px !important;
    letter-spacing: 0 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-window {
    height: 100% !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    overflow: hidden !important;
    border: 1px solid #bfc9d7 !important;
    border-radius: 6px !important;
    background: #f7f9fc !important;
    box-shadow: none !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-topbar {
    order: 1 !important;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 8px !important;
    min-height: 40px !important;
    padding: 5px 8px !important;
    border-bottom: 1px solid #cfd8e5 !important;
    background: #eef2f7 !important;
    color: #10243f !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-brand {
    gap: 8px !important;
    min-width: 142px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-brand-mark {
    width: 26px !important;
    height: 24px !important;
    border-radius: 4px !important;
    background: #103261 !important;
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 900 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-brand-copy strong {
    display: block !important;
    font-size: 13px !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-toolbar {
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    overflow: hidden !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-toolbar-pill {
    min-height: 28px !important;
    padding: 3px 8px !important;
    border: 1px solid #cbd6e4 !important;
    border-radius: 4px !important;
    background: #ffffff !important;
    box-shadow: none !important;
    color: #10243f !important;
    gap: 4px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-toolbar-pill span {
    font-size: 9px !important;
    line-height: 1 !important;
    color: #6b778c !important;
    letter-spacing: .04em !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-toolbar-pill strong,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-toolbar-pill select {
    font-size: 11px !important;
    line-height: 1.05 !important;
    color: #10243f !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-toolbar-pill:last-child {
    display: none !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-topactions {
    justify-content: end !important;
    gap: 5px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-menu-trigger,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-close {
    min-height: 28px !important;
    padding: 0 9px !important;
    border-radius: 4px !important;
    font-size: 11px !important;
    box-shadow: none !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-layout {
    order: 2 !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    width: 100% !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 286px !important;
    gap: 8px !important;
    padding: 8px !important;
    overflow: hidden !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-main {
    min-width: 0 !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-rows: auto auto minmax(0, 1fr) !important;
    gap: 8px !important;
    overflow: hidden !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-side {
    min-width: 0 !important;
    min-height: 0 !important;
    display: block !important;
    overflow: hidden !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-panel,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-cart-panel,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-draft-panel,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-panel,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact {
    border: 1px solid #cfd8e5 !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    box-shadow: none !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-panel,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-draft-panel,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-panel {
    padding: 8px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-panel-head {
    min-height: 0 !important;
    margin: 0 0 6px !important;
    padding: 0 !important;
    border: 0 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-panel-head strong {
    font-size: 13px !important;
    line-height: 1.1 !important;
    color: #10243f !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-panel-head small,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-draft-panel > .helper-text,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-log-shell {
    display: none !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid {
    display: grid !important;
    grid-template-columns: 140px 118px 132px minmax(150px, 1fr) minmax(130px, 1fr) 126px !important;
    gap: 6px !important;
    align-items: end !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field {
    gap: 3px !important;
    min-width: 0 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field label,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-picker-filter label,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-vintage-form-grid label {
    margin: 0 !important;
    font-size: 10px !important;
    line-height: 1 !important;
    color: #30445f !important;
    letter-spacing: 0 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor input,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor select,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor textarea {
    min-height: 30px !important;
    border-radius: 4px !important;
    border-color: #c7d2e1 !important;
    background: #ffffff !important;
    color: #101828 !important;
    font-size: 12px !important;
    line-height: 1.15 !important;
    box-shadow: none !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-select-search {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr) !important;
    gap: 4px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field-customer,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field-cashier {
    grid-column: span 3 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-draft-panel {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    gap: 6px !important;
    align-items: end !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-draft-panel .pos-ipos-panel-head {
    grid-column: 1 / -1 !important;
    margin-bottom: 0 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-form {
    min-width: 0 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-form {
    display: grid !important;
    grid-template-columns: 156px minmax(0, 1fr) !important;
    gap: 6px !important;
    align-items: end !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-copy {
    gap: 2px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-copy small {
    display: none !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-controls {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 92px !important;
    gap: 6px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-results {
    margin-top: 6px !important;
    max-height: 150px !important;
    overflow: auto !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-searchbar {
    grid-column: 1 / -1 !important;
    display: grid !important;
    grid-template-columns: 116px minmax(0, 1fr) 92px !important;
    gap: 6px !important;
    align-items: end !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-searchbar label {
    display: grid !important;
    gap: 3px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-searchbar > label:first-child {
    grid-column: 2 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-icon-button,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-vintage-button,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-checkout,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-searchbar button {
    min-height: 30px !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    font-size: 12px !important;
    font-weight: 800 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-cart-panel {
    min-height: 0 !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    padding: 0 !important;
    overflow: hidden !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-cart-panel .pos-ipos-panel-head {
    padding: 7px 8px !important;
    margin: 0 !important;
    border-bottom: 1px solid #d7e0ec !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-cartbox {
    min-height: 0 !important;
    height: 100% !important;
    max-height: none !important;
    overflow: auto !important;
    border: 0 !important;
    border-radius: 0 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-carttable,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-order-table {
    min-width: 780px !important;
    border-collapse: collapse !important;
    font-size: 12px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-carttable th,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-order-table th {
    position: sticky !important;
    top: 0 !important;
    z-index: 1 !important;
    height: 30px !important;
    padding: 5px 7px !important;
    background: #eef2f7 !important;
    color: #30445f !important;
    font-size: 10px !important;
    letter-spacing: .05em !important;
    border-bottom: 1px solid #cfd8e5 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-carttable td,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-order-table td {
    height: 32px !important;
    padding: 4px 7px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    color: #111827 !important;
    vertical-align: middle !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-order-item-title {
    font-size: 12px !important;
    line-height: 1.15 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-order-item-meta,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-order-stock-note {
    font-size: 10px !important;
    line-height: 1.15 !important;
    color: #64748b !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-order-stepper {
    display: flex !important;
    align-items: center !important;
    gap: 2px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-order-stepper button,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-inline-remove {
    width: 24px !important;
    height: 24px !important;
    min-height: 24px !important;
    border-radius: 4px !important;
    padding: 0 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-inline-qty {
    width: 52px !important;
    min-height: 24px !important;
    padding: 0 4px !important;
    text-align: right !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-inline-price {
    width: 94px !important;
    min-height: 24px !important;
    padding: 0 4px !important;
    text-align: right !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact {
    height: 100% !important;
    min-height: 0 !important;
    padding: 8px !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: auto auto auto 1fr auto !important;
    gap: 7px !important;
    overflow: hidden !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact > div {
    min-height: 34px !important;
    padding: 7px 8px !important;
    border: 1px solid #d7e0ec !important;
    border-radius: 4px !important;
    background: #f9fbfd !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact > div:first-child {
    grid-column: 1 / -1 !important;
    min-height: 118px !important;
    display: grid !important;
    align-content: center !important;
    background: #ffffff !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact span {
    font-size: 10px !important;
    line-height: 1 !important;
    color: #64748b !important;
    letter-spacing: .04em !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact strong {
    display: block !important;
    color: #06152b !important;
    font-size: 18px !important;
    line-height: 1.05 !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact > div:first-child strong {
    text-align: right !important;
    font-size: clamp(32px, 3.4vw, 52px) !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact .pos-vintage-button {
    grid-column: 1 / -1 !important;
    align-self: end !important;
    width: 100% !important;
    min-height: 40px !important;
    font-size: 14px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quickbar {
    order: 3 !important;
    min-height: 42px !important;
    padding: 5px 8px !important;
    border-top: 1px solid #cfd8e5 !important;
    background: #eef2f7 !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    overflow: hidden !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quickbar-action {
    flex: 0 1 160px !important;
    min-width: 0 !important;
    min-height: 32px !important;
    padding: 0 9px !important;
    border-radius: 4px !important;
    border: 1px solid #cbd6e4 !important;
    background: #ffffff !important;
    color: #10243f !important;
    box-shadow: none !important;
    font-size: 12px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quickbar-action.is-success {
    margin-left: auto !important;
    flex-basis: 180px !important;
    background: #18813d !important;
    border-color: #18813d !important;
    color: #ffffff !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quickbar-action span {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quickbar-action kbd {
    min-width: 32px !important;
    height: 20px !important;
    padding: 2px 5px !important;
    border-radius: 4px !important;
    font-size: 10px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-modal,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-picker {
    padding: 12px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal-window,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-modal-window {
    width: min(660px, calc(100vw - 24px)) !important;
    max-height: calc(100dvh - 24px) !important;
    border-radius: 6px !important;
    overflow: hidden !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal-body,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-modal-body {
    max-height: calc(100dvh - 102px) !important;
    overflow: auto !important;
    padding: 10px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-totalbox,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-totalbox {
    padding: 8px 10px !important;
    border-radius: 4px !important;
    background: #fff7b8 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-totalbox > strong,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-totalbox strong {
    font-size: clamp(34px, 5vw, 50px) !important;
    line-height: 1 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-summary-grid,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-methods,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-summaryrows,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-methods,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-split-payment-panel {
    gap: 6px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-picker-window {
    width: min(980px, calc(100vw - 24px)) !important;
    max-height: calc(100dvh - 24px) !important;
    display: grid !important;
    grid-template-rows: auto auto minmax(0, 1fr) auto !important;
    border-radius: 6px !important;
    overflow: hidden !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-pickerhead,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-picker-head,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal-head,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-modal-head {
    min-height: 40px !important;
    padding: 8px 10px !important;
    border-bottom: 1px solid #d7e0ec !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-pickerbrowsertools,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-search,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-picker-form {
    padding: 8px 10px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 6px !important;
    align-items: end !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-pickertablebox,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-picker-tablewrap {
    min-height: 0 !important;
    max-height: none !important;
    overflow: auto !important;
    border-top: 1px solid #d7e0ec !important;
    border-bottom: 1px solid #d7e0ec !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-pickertable,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-picker-table {
    min-width: 760px !important;
    font-size: 12px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-pickertable th,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-picker-table th {
    position: sticky !important;
    top: 0 !important;
    z-index: 1 !important;
    height: 28px !important;
    padding: 5px 7px !important;
    background: #eef2f7 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-pickertable td,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-picker-table td {
    height: 30px !important;
    padding: 4px 7px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-pickerpagination,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-picker-footer {
    min-height: 40px !important;
    padding: 6px 10px !important;
}

@media (max-width: 1280px) {
    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-layout {
        grid-template-columns: minmax(0, 1fr) 248px !important;
    }

    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid {
        grid-template-columns: 128px 110px minmax(130px, 1fr) minmax(138px, 1fr) minmax(118px, 1fr) !important;
    }

    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field-transaction-type {
        display: none !important;
    }
}

@media (max-width: 980px) {
    body.pos-page-wide {
        overflow: auto !important;
    }

    body.pos-page-wide .main,
    body.pos-page-wide .page-content-bleed,
    body.pos-page-wide #posCheckoutRoot {
        height: auto !important;
        min-height: 100dvh !important;
        overflow: visible !important;
    }

    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-window {
        height: auto !important;
        min-height: 100dvh !important;
    }

    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-topbar,
    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-layout,
    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-main,
    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid,
    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-draft-panel,
    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-form,
    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-controls,
    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-searchbar {
        display: grid !important;
        grid-template-columns: 1fr !important;
        overflow: visible !important;
    }

    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field-customer,
    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field-cashier,
    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-searchbar > label:first-child {
        grid-column: auto !important;
    }

    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quickbar {
        flex-wrap: wrap !important;
        overflow: visible !important;
    }
}

/* ==================================================
POS / Kasir classic iPOS workstation
Final mandor override: table-first, no dashboard cards.
================================================== */

body.pos-page-wide {
    overflow: hidden !important;
    background: #e9edf2 !important;
}

body.pos-page-wide .main {
    height: 100dvh !important;
    padding: 0 !important;
    overflow: hidden !important;
}

body.pos-page-wide .page-content.page-content-bleed,
body.pos-page-wide #posCheckoutRoot {
    height: 100dvh !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor.kasir-shell {
    height: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    font-size: 12px !important;
    color: #07162b !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-window {
    height: 100% !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #edf1f6 !important;
    box-shadow: none !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-topbar {
    order: 1 !important;
    min-height: 38px !important;
    height: 38px !important;
    padding: 4px 8px !important;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    gap: 8px !important;
    align-items: center !important;
    border: 0 !important;
    border-bottom: 1px solid #aeb8c8 !important;
    border-radius: 0 !important;
    background: #10243f !important;
    color: #fff !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-brand {
    min-width: 132px !important;
    gap: 8px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-brand-mark {
    width: 24px !important;
    height: 24px !important;
    border-radius: 3px !important;
    background: #123f77 !important;
    color: #fff !important;
    font-size: 10px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-brand-copy strong {
    font-size: 13px !important;
    color: #fff !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-toolbar {
    display: flex !important;
    justify-content: end !important;
    gap: 6px !important;
    min-width: 0 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-toolbar-pill {
    min-height: 28px !important;
    padding: 2px 8px !important;
    border: 1px solid rgba(255, 255, 255, .22) !important;
    border-radius: 3px !important;
    background: rgba(255, 255, 255, .08) !important;
    color: #fff !important;
    box-shadow: none !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-toolbar-pill span {
    font-size: 9px !important;
    color: rgba(255, 255, 255, .68) !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-toolbar-pill strong,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-toolbar-pill select {
    font-size: 12px !important;
    color: #fff !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-toolbar-pill:last-child {
    display: none !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-menu-trigger,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-close {
    min-height: 28px !important;
    padding: 0 10px !important;
    border-radius: 3px !important;
    font-size: 12px !important;
    box-shadow: none !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-layout {
    order: 2 !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    width: 100% !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 342px !important;
    grid-template-rows: 78px 50px minmax(300px, 1fr) !important;
    gap: 4px !important;
    padding: 4px 6px !important;
    overflow: hidden !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-main {
    display: contents !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-panel {
    grid-column: 1 !important;
    grid-row: 1 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-side {
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-draft-panel {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-cart-panel {
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-panel,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-panel,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-draft-panel,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-cart-panel,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact {
    border: 1px solid #c4cedb !important;
    border-radius: 3px !important;
    background: #f9fbfd !important;
    box-shadow: none !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-panel-head,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-panel-head small {
    display: none !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-panel {
    padding: 6px 8px !important;
    overflow: hidden !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid {
    height: 100% !important;
    display: grid !important;
    grid-template-columns: 132px 118px 120px minmax(150px, 1fr) minmax(150px, 1fr) 116px minmax(130px, .8fr) !important;
    gap: 6px !important;
    align-items: end !important;
    overflow: hidden !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field {
    min-width: 0 !important;
    gap: 2px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field label,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-qty-scan-field span,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-bottom-panel span {
    margin: 0 !important;
    color: #223a5b !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-layout input,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-layout select,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal input,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal select,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-picker input,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-picker select {
    min-height: 30px !important;
    height: 30px !important;
    border: 1px solid #bdc9d8 !important;
    border-radius: 3px !important;
    background: #fff !important;
    box-shadow: none !important;
    color: #06152b !important;
    font-size: 12px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-select-search {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr) !important;
    gap: 4px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field-customer,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field-cashier {
    grid-column: span 1 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field-member-status,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor #posCustomerSearchSummary,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor #posCashierSearchSummary {
    display: none !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact {
    height: 100% !important;
    min-height: 0 !important;
    padding: 4px 8px !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: 1fr !important;
    align-items: center !important;
    overflow: hidden !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact > div {
    display: none !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact > div:first-child {
    display: grid !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    align-content: center !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact > div:first-child span {
    color: #223a5b !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact > div:first-child strong {
    width: 100% !important;
    text-align: right !important;
    color: #06152b !important;
    font-size: clamp(36px, 4vw, 58px) !important;
    line-height: .95 !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: clip !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact .pos-vintage-button {
    display: none !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-draft-panel {
    padding: 6px 8px !important;
    overflow: visible !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-draft-head-actions {
    display: none !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-form {
    height: 100% !important;
    min-width: 0 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-form {
    display: grid !important;
    grid-template-columns: 92px 160px minmax(0, 1fr) !important;
    gap: 8px !important;
    align-items: end !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-qty-scan-field,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-copy {
    display: grid !important;
    gap: 3px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-copy small {
    display: none !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-kicker {
    color: #223a5b !important;
    font-size: 10px !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-controls {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 92px 132px !important;
    gap: 6px !important;
    align-items: end !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor #posQuickSearch {
    width: 100% !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-results {
    position: absolute !important;
    z-index: 20 !important;
    left: 108px !important;
    right: 148px !important;
    top: 48px !important;
    max-height: 190px !important;
    overflow: auto !important;
    border: 1px solid #b9c5d4 !important;
    border-radius: 3px !important;
    background: #fff !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .16) !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-vintage-button,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-vintage-mini,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .ghost-button,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .danger-button {
    min-height: 30px !important;
    border-radius: 3px !important;
    box-shadow: none !important;
    font-size: 12px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-cart-panel {
    min-height: 0 !important;
    display: grid !important;
    grid-template-rows: 32px minmax(0, 1fr) !important;
    padding: 0 !important;
    overflow: hidden !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-cart-panel .pos-ipos-panel-head {
    display: flex !important;
    min-height: 32px !important;
    height: 32px !important;
    margin: 0 !important;
    padding: 4px 8px !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-bottom: 1px solid #c4cedb !important;
    background: #f9fbfd !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-cart-panel .pos-ipos-panel-head strong {
    display: block !important;
    font-size: 13px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-cart-head-actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-counter {
    min-height: 24px !important;
    padding: 3px 10px !important;
    border-radius: 999px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-cartbox {
    min-height: 0 !important;
    height: 100% !important;
    max-height: none !important;
    overflow: auto !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-carttable {
    min-width: 980px !important;
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 12px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-carttable th {
    position: sticky !important;
    top: 0 !important;
    z-index: 1 !important;
    height: 30px !important;
    padding: 5px 7px !important;
    border-bottom: 1px solid #b8c4d3 !important;
    background: #e8edf3 !important;
    color: #10243f !important;
    font-size: 10px !important;
    letter-spacing: .03em !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-carttable td {
    height: 30px !important;
    padding: 3px 7px !important;
    border-bottom: 1px solid #d8e0ea !important;
    color: #07162b !important;
    vertical-align: middle !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .ops-queue-empty {
    min-height: 0 !important;
    padding: 44px 12px !important;
    border: 0 !important;
    background: transparent !important;
    text-align: center !important;
    font-size: 13px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-order-stepper button,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-inline-remove {
    width: 24px !important;
    height: 24px !important;
    min-height: 24px !important;
    border-radius: 3px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-inline-qty {
    width: 52px !important;
    min-height: 24px !important;
    height: 24px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-inline-price {
    width: 92px !important;
    min-height: 24px !important;
    height: 24px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-bottom-panel {
    order: 3 !important;
    flex: 0 0 94px !important;
    min-height: 94px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 420px !important;
    gap: 6px !important;
    padding: 6px !important;
    border-top: 1px solid #b8c4d3 !important;
    background: #edf1f6 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-bottom-left,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-bottom-right {
    min-width: 0 !important;
    display: grid !important;
    gap: 4px !important;
    padding: 6px !important;
    border: 1px solid #c4cedb !important;
    border-radius: 3px !important;
    background: #f9fbfd !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-bottom-left {
    grid-template-columns: 180px 180px minmax(0, 1fr) !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-bottom-right {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-bottom-left > div,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-bottom-right > div {
    min-width: 0 !important;
    display: grid !important;
    gap: 2px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-bottom-panel strong {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    color: #06152b !important;
    font-size: 12px !important;
    line-height: 1.15 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-bottom-right .is-total {
    grid-column: 1 / -1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-top: 3px !important;
    border-top: 1px solid #d4dde8 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-bottom-right .is-total strong {
    font-size: 16px !important;
    font-weight: 900 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quickbar {
    order: 4 !important;
    flex: 0 0 44px !important;
    min-height: 44px !important;
    padding: 5px 8px !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    overflow: hidden !important;
    border-top: 1px solid #b8c4d3 !important;
    background: #e4eaf2 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quickbar-action {
    flex: 0 1 128px !important;
    min-width: 0 !important;
    min-height: 32px !important;
    height: 32px !important;
    padding: 0 9px !important;
    border: 1px solid #b8c4d3 !important;
    border-radius: 3px !important;
    background: #fff !important;
    color: #07162b !important;
    box-shadow: none !important;
    font-size: 12px !important;
    font-weight: 800 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quickbar-action[disabled] {
    opacity: .58 !important;
    cursor: not-allowed !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quickbar-action.is-success {
    margin-left: auto !important;
    flex-basis: 170px !important;
    background: #10243f !important;
    border-color: #10243f !important;
    color: #fff !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quickbar-action kbd {
    height: 20px !important;
    min-width: 32px !important;
    padding: 2px 5px !important;
    border-radius: 3px !important;
    font-size: 10px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-picker-window {
    width: min(75vw, 1040px) !important;
    max-height: 80dvh !important;
    border-radius: 3px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal-window {
    width: min(680px, calc(100vw - 24px)) !important;
    max-height: 84dvh !important;
    border-radius: 3px !important;
}

@media (max-width: 1440px) {
    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-layout {
        grid-template-columns: minmax(0, 1fr) 312px !important;
        grid-template-rows: 74px 48px minmax(292px, 1fr) !important;
    }

    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid {
        grid-template-columns: 128px 112px 118px minmax(140px, 1fr) minmax(140px, 1fr) 108px minmax(118px, .75fr) !important;
        gap: 5px !important;
    }

    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-bottom-panel {
        grid-template-columns: minmax(0, 1fr) 380px !important;
    }
}

/* POS final mandor revision: compact customer header and iPOS payment dialog. */
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-panel,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-panel {
    min-height: 54px !important;
    height: 54px !important;
    padding: 5px 8px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid.pos-customer-row,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid.pos-customer-row {
    display: grid !important;
    grid-template-columns: minmax(360px, 1.5fr) minmax(220px, .8fr) minmax(300px, 1fr) !important;
    grid-template-rows: 1fr !important;
    gap: 8px !important;
    align-items: end !important;
    min-width: 0 !important;
    height: 100% !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-field-customer-combined,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-field-customer-combined {
    display: grid !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-field-transaction-type,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-field-transaction-type {
    display: grid !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-field-customer,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-field-customer {
    display: grid !important;
    grid-column: 3 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-hidden-customer-field,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-hidden-customer-field {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row input,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row select,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row input,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row select {
    height: 32px !important;
    min-height: 32px !important;
    padding: 4px 9px !important;
    font-size: 12px !important;
    border-radius: 5px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal-window,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal-window {
    width: min(680px, calc(100vw - 24px)) !important;
    max-width: 680px !important;
    max-height: 82vh !important;
    border-radius: 6px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal-body,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal-body {
    padding: 6px 8px 8px !important;
    overflow-y: hidden !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-payment-panel,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-payment-panel {
    gap: 5px !important;
    grid-template-rows: auto auto auto auto auto auto !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-total-row,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-totalbox,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-total-row,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-totalbox {
    height: 70px !important;
    min-height: 70px !important;
    padding: 5px 8px !important;
    grid-template-columns: 120px minmax(0, 1fr) !important;
    grid-template-rows: 1fr !important;
    align-items: center !important;
    background: #fff6b8 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-total-row > strong,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-total-row > strong {
    grid-column: 2 !important;
    justify-self: stretch !important;
    padding: 3px 8px !important;
    background: #fff400 !important;
    color: #000 !important;
    font-size: clamp(40px, 5vw, 52px) !important;
    line-height: .94 !important;
    text-align: right !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-cash-grid,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-cash-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 3px 6px !important;
    padding: 3px 6px !important;
    border: 1px solid #d7e1ee !important;
    border-radius: 4px !important;
    background: #fff !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-pay-row,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-pay-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 2px !important;
    align-content: start !important;
    min-height: 42px !important;
    height: 42px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-pay-row-wide,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-pay-row-wide {
    grid-column: auto !important;
    grid-template-columns: 1fr !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-pay-row-wide input:nth-of-type(n+2),
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-pay-row-wide input:nth-of-type(n+2) {
    display: none !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-pay-row span,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-adjustment-row > span,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-summary span,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-pay-row span,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-adjustment-row > span,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-summary span {
    font-size: 11px !important;
    font-weight: 800 !important;
    color: #334b67 !important;
    white-space: nowrap !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-adjustment,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-adjustment {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
    padding: 5px 7px !important;
    border: 1px solid #d7e1ee !important;
    border-radius: 4px !important;
    background: #f8fafc !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-adjustment-row,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-adjustment-row {
    display: grid !important;
    grid-template-columns: 104px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 6px !important;
    min-width: 0 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-adjustment-controls,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-adjustment-controls {
    width: 100% !important;
    grid-template-columns: 52px minmax(0, 1fr) !important;
    gap: 5px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-summary,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-summary {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0 !important;
    border: 1px solid #d7e1ee !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    background: #fff !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-summary > div,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-summary > div {
    min-height: 28px !important;
    height: 28px !important;
    padding: 2px 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    border-bottom: 1px solid #d7e1ee !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-summary strong,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-summary strong {
    font-size: 13px !important;
    line-height: 1.1 !important;
    text-align: right !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-preview-row,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summaryrows,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-preview-row,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summaryrows {
    display: none !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal input,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal select,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal input,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal select {
    min-height: 26px !important;
    height: 26px !important;
    padding: 2px 7px !important;
    border-radius: 3px !important;
    font-size: 12px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-methods,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-methods {
    min-height: 34px !important;
    padding: 3px 6px !important;
    border-radius: 4px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-split-toggle,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-split-toggle {
    min-height: 24px !important;
    height: 24px !important;
    padding: 2px 6px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-checkout-footer,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-checkout-footer {
    position: static !important;
    margin: 0 !important;
    padding: 2px 0 0 !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, .9fr) 96px !important;
    gap: 6px !important;
    border-top: 0 !important;
}

/* POS final mandor lock: compact customer header + dominant total. */
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-layout,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) clamp(390px, 27vw, 520px) !important;
    gap: 8px !important;
    padding: 6px 8px !important;
    align-items: start !important;
    overflow: hidden !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-main,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-main {
    display: grid !important;
    grid-template-rows: 72px 54px minmax(0, 1fr) !important;
    gap: 5px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-panel,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-panel {
    min-height: 72px !important;
    height: 72px !important;
    padding: 7px 8px !important;
    overflow: visible !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-panel .pos-ipos-panel-head,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-panel .pos-ipos-panel-head {
    display: none !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid.pos-customer-row,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid.pos-customer-row {
    display: grid !important;
    grid-template-columns: minmax(220px, 1fr) minmax(170px, .75fr) minmax(220px, .9fr) minmax(170px, .75fr) !important;
    grid-template-rows: 58px !important;
    gap: 8px !important;
    align-items: end !important;
    align-content: end !important;
    height: 58px !important;
    min-width: 0 !important;
    overflow: visible !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-field,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-field {
    display: grid !important;
    align-content: end !important;
    gap: 3px !important;
    min-width: 0 !important;
    height: 58px !important;
    overflow: visible !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-field-customer-combined,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-field-customer-combined {
    grid-column: 1 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-field-transaction-type,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-field-transaction-type {
    grid-column: 2 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-field-customer,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-field-customer {
    grid-column: 3 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-field-member-status,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-field-member-status {
    display: grid !important;
    grid-column: 4 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row label,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row label {
    margin: 0 !important;
    color: #10243f !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row input,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row select,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-customer-status,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row input,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row select,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-customer-status {
    width: 100% !important;
    min-width: 0 !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 4px 9px !important;
    border-radius: 5px !important;
    font-size: 12px !important;
    line-height: 1.15 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-select-search,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-select-search {
    display: grid !important;
    grid-template-columns: minmax(82px, .6fr) minmax(118px, 1fr) !important;
    gap: 5px !important;
    min-width: 0 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .helper-text,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .helper-text {
    display: none !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-dock,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-dock {
    min-width: 390px !important;
    width: auto !important;
    min-height: 72px !important;
    height: 72px !important;
    position: static !important;
    align-self: start !important;
    overflow: hidden !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact {
    height: 72px !important;
    min-height: 72px !important;
    padding: 7px 18px !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    border-left: 1px solid #d7e1ef !important;
    overflow: hidden !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact > div:not(:first-child),
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact .pos-ipos-pay-open,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact > div:not(:first-child),
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact .pos-ipos-pay-open {
    display: none !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact > div:first-child,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact > div:first-child {
    display: grid !important;
    justify-items: end !important;
    gap: 2px !important;
    width: 100% !important;
    min-width: 0 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact > div:first-child span,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact > div:first-child span {
    margin: 0 !important;
    color: #10243f !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    letter-spacing: .04em !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact > div:first-child strong,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact > div:first-child strong {
    max-width: 100% !important;
    color: #071326 !important;
    font-size: clamp(50px, 5vw, 74px) !important;
    font-weight: 900 !important;
    line-height: .9 !important;
    text-align: right !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

@media (max-width: 1200px) {
    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-layout,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-layout {
        grid-template-columns: 1fr !important;
    }

    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-main,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-main {
        grid-template-rows: auto 54px minmax(0, 1fr) !important;
    }

    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-panel,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-panel {
        height: auto !important;
        min-height: 116px !important;
    }

    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid.pos-customer-row,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid.pos-customer-row {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-template-rows: repeat(2, 58px) !important;
        height: auto !important;
    }

    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-dock,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-dock {
        min-width: 0 !important;
        width: 100% !important;
    }
}

/* POS true EOF mandor lock: method fields + quick buttons must beat every older lock. */
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-layout,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-layout {
    grid-template-columns: minmax(0, 1fr) clamp(390px, 27vw, 520px) !important;
    gap: 10px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid.pos-customer-row,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid.pos-customer-row {
    grid-template-columns: minmax(220px, 1fr) minmax(190px, .85fr) minmax(170px, .75fr) minmax(190px, .85fr) !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-field-member-status,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-field-member-status {
    display: grid !important;
    grid-column: 4 !important;
    grid-row: 1 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-dock,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-dock,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact {
    min-width: 390px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact > div:first-child strong,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact > div:first-child strong {
    font-size: clamp(50px, 5vw, 74px) !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal-window,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal-window {
    width: min(720px, calc(100vw - 24px)) !important;
    max-width: 720px !important;
    max-height: 86vh !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-pay-row,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-pay-row {
    min-height: 46px !important;
    height: 46px !important;
    border: 1px solid transparent !important;
    border-radius: 5px !important;
    padding: 3px !important;
    position: relative !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-pay-row.is-active-payment-field,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-pay-row.is-active-payment-field {
    border-color: #2563eb !important;
    background: #eff6ff !important;
    opacity: 1 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-pay-row.is-disabled-payment-field,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-pay-row.is-disabled-payment-field {
    opacity: .62 !important;
    background: #f1f5f9 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-bank-trigger,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-bank-trigger {
    display: none !important;
    position: absolute !important;
    right: 4px !important;
    bottom: 3px !important;
    width: 44px !important;
    height: 26px !important;
    min-height: 26px !important;
    padding: 2px 6px !important;
    border: 1px solid #bfd0e5 !important;
    border-radius: 3px !important;
    background: #ffffff !important;
    color: #0b1f3d !important;
    font-size: 11px !important;
    font-weight: 800 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-pay-row[data-pos-payment-field="debit"].is-active-payment-field .pos-payment-bank-trigger,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-pay-row[data-pos-payment-field="debit"].is-active-payment-field .pos-payment-bank-trigger {
    display: block !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-pay-row[data-pos-payment-field="debit"].is-active-payment-field input,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-pay-row[data-pos-payment-field="debit"].is-active-payment-field input {
    padding-right: 52px !important;
}

html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-shortcuts {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 6px !important;
    margin-top: 2px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-shortcuts button,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-shortcuts button {
    min-height: 30px !important;
    height: 30px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    border-radius: 6px !important;
}

@media (max-width: 1200px) {
    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-layout,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-layout {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-dock,
    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-dock,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact {
        min-width: 0 !important;
        width: 100% !important;
    }
}

@media (max-width: 720px) {
    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-shortcuts,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-shortcuts {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

/* POS mandor final payment/header lock. Keep after older POS overrides. */
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-layout,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-layout {
    grid-template-columns: minmax(0, 1fr) clamp(390px, 27vw, 520px) !important;
    gap: 10px !important;
    align-items: start !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid.pos-customer-row,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid.pos-customer-row {
    grid-template-columns: minmax(220px, 1fr) minmax(190px, .85fr) minmax(170px, .75fr) minmax(190px, .85fr) !important;
    gap: 8px !important;
    min-width: 0 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-field-customer-combined,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-field-customer-combined {
    grid-column: 1 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-field-transaction-type,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-field-transaction-type {
    grid-column: 2 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-field-customer,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-field-customer {
    grid-column: 3 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-field-member-status,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-field-member-status {
    display: grid !important;
    grid-column: 4 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-customer-status,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-customer-status {
    min-height: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    padding: 4px 9px !important;
    border: 1px solid #d7e1ef !important;
    border-radius: 5px !important;
    background: #f8fafc !important;
    color: #0b1f3d !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-customer-status.is-member,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-customer-status.is-member {
    border-color: #93c5fd !important;
    background: #eff6ff !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-dock,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-dock {
    min-width: 390px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact {
    min-width: 390px !important;
    padding: 8px 18px !important;
    border-left: 1px solid #d7e1ef !important;
    background: #ffffff !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact > div:first-child span,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact > div:first-child span {
    font-size: 11px !important;
    font-weight: 900 !important;
    letter-spacing: .04em !important;
    text-transform: uppercase !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact > div:first-child strong,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact > div:first-child strong {
    font-size: clamp(50px, 5vw, 74px) !important;
    line-height: .95 !important;
    font-weight: 900 !important;
    text-align: right !important;
    white-space: nowrap !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal-window,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal-window {
    width: min(720px, calc(100vw - 24px)) !important;
    max-width: 720px !important;
    max-height: 86vh !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-cash-grid,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-cash-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 5px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-pay-row,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-pay-row {
    min-height: 46px !important;
    height: 46px !important;
    border: 1px solid transparent !important;
    border-radius: 5px !important;
    padding: 3px !important;
    position: relative !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-pay-row.is-active-payment-field,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-pay-row.is-active-payment-field {
    border-color: #2563eb !important;
    background: #eff6ff !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-pay-row.is-disabled-payment-field,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-pay-row.is-disabled-payment-field {
    opacity: .62 !important;
    background: #f1f5f9 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal input.is-active-payment-field,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal input.is-active-payment-field {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, .16) !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal input.is-disabled-payment-field,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal input.is-disabled-payment-field {
    background: #f1f5f9 !important;
    color: #64748b !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-bank-trigger,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-bank-trigger {
    display: none !important;
    position: absolute !important;
    right: 4px !important;
    bottom: 3px !important;
    width: 44px !important;
    min-height: 26px !important;
    height: 26px !important;
    padding: 2px 6px !important;
    border: 1px solid #bfd0e5 !important;
    border-radius: 3px !important;
    background: #fff !important;
    color: #0b1f3d !important;
    font-size: 11px !important;
    font-weight: 800 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-pay-row[data-pos-payment-field="debit"].is-active-payment-field .pos-payment-bank-trigger,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-pay-row[data-pos-payment-field="debit"].is-active-payment-field .pos-payment-bank-trigger {
    display: block !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-pay-row[data-pos-payment-field="debit"].is-active-payment-field input,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-pay-row[data-pos-payment-field="debit"].is-active-payment-field input {
    padding-right: 52px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-pay-row[data-pos-payment-field="debit"].is-active-payment-field,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-pay-row[data-pos-payment-field="debit"].is-active-payment-field {
    grid-template-columns: 1fr !important;
}

html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-shortcuts {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 6px !important;
    margin-top: 2px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-shortcuts button,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-shortcuts button {
    min-height: 30px !important;
    height: 30px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    border-radius: 6px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-method.is-selected-payment-method,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-method.is-selected-payment-method {
    outline: 2px solid rgba(37, 99, 235, .32) !important;
    outline-offset: 1px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-total-paid-row,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-total-paid-row {
    background: #ecfdf5 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-shortage-row,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-shortage-row {
    background: #fff7ed !important;
}

@media (max-width: 1200px) {
    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-layout,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-layout {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-dock,
    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-dock,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact {
        min-width: 0 !important;
        width: 100% !important;
    }
}

@media (max-width: 720px) {
    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid.pos-customer-row,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid.pos-customer-row,
    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-cash-grid,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-cash-grid {
        grid-template-columns: 1fr !important;
        height: auto !important;
    }

    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-shortcuts,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-shortcuts {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

/* POS payment absolute last lock for 1366 modal height. */
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-cash-grid,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-cash-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 3px 6px !important;
    padding: 3px 6px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-pay-row,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-pay-row-wide,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-pay-row,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-pay-row-wide {
    grid-column: auto !important;
    grid-template-columns: 1fr !important;
    gap: 2px !important;
    align-content: start !important;
    min-height: 42px !important;
    height: 42px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-pay-row-wide input:nth-of-type(n+2),
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-pay-row-wide input:nth-of-type(n+2) {
    display: none !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal-head,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal-head {
    min-height: 36px !important;
    padding: 4px 9px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-total-row,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-totalbox,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-total-row,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-totalbox {
    height: 62px !important;
    min-height: 62px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal input,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal select,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal input,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal select {
    min-height: 22px !important;
    height: 22px !important;
}

@media (max-width: 720px) {
    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid.pos-customer-row,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid.pos-customer-row,
    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-cash-grid,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-cash-grid,
    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-adjustment,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-adjustment,
    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-summary,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-summary {
        grid-template-columns: 1fr !important;
    }
}

/* POS payment modal EOF override: this block intentionally comes after older modal locks. */
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal-window,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal-window {
    width: min(640px, calc(100vw - 24px)) !important;
    max-width: 640px !important;
    max-height: 82vh !important;
    border-radius: 6px !important;
    overflow: hidden !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal-head,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal-head {
    min-height: 40px !important;
    padding: 5px 10px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal-head h3,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal-head h3 {
    font-size: 18px !important;
    line-height: 1.05 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal-close,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal-close {
    width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal-body,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal-body {
    padding: 6px 8px 8px !important;
    overflow-y: hidden !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-payment-panel,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-payment-panel {
    gap: 5px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-total-row,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-total-row {
    min-height: 70px !important;
    height: 70px !important;
    padding: 5px 8px !important;
    grid-template-columns: 76px minmax(0, 1fr) !important;
    grid-template-rows: 1fr !important;
    align-items: center !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-total-row .pos-ipos-kicker,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-total-row .pos-ipos-kicker {
    grid-column: 1 !important;
    align-self: center !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-total-row > strong,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-total-row > strong {
    grid-column: 2 !important;
    padding: 3px 8px !important;
    background: #fff400 !important;
    color: #000 !important;
    font-size: clamp(42px, 5.4vw, 54px) !important;
    line-height: .92 !important;
    text-align: right !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-total-row .pos-ipos-totalmeta,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-total-row .pos-ipos-totalmeta,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summary-heading,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summary-heading,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-preview-row,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-preview-row {
    display: none !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summaryrows,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summaryrows {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    border-radius: 4px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summaryrows > div,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summary-input,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summaryrows > div,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summary-input {
    min-height: 28px !important;
    height: 28px !important;
    padding: 1px 7px !important;
    border-right: 1px solid #d7e1ee !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summaryrows .pos-ipos-adjustment-input,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summaryrows .pos-ipos-adjustment-input,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summaryrows .pos-ipos-summary-input[for="posPaidAmount"],
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summaryrows .pos-ipos-summary-input[for="posPaidAmount"] {
    grid-column: span 2 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-adjustment-controls,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-adjustment-controls {
    width: min(280px, 58%) !important;
    grid-template-columns: 58px minmax(0, 1fr) !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal input,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal select,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal input,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal select {
    min-height: 24px !important;
    height: 24px !important;
    padding: 1px 6px !important;
    border-radius: 3px !important;
    font-size: 12px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-methods,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-methods {
    grid-template-columns: 78px minmax(0, 1fr) auto !important;
    min-height: 34px !important;
    padding: 3px 6px !important;
    border-radius: 4px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-methodgrid .pos-payment-method,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-methodgrid .pos-payment-method,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-vintage-mini,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-vintage-mini {
    min-height: 22px !important;
    height: 22px !important;
    padding: 1px 6px !important;
    border-radius: 3px !important;
    font-size: 10px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-split-toggle,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-split-toggle {
    min-height: 22px !important;
    height: 22px !important;
    padding: 1px 6px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-checkout-footer,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-checkout-footer {
    position: static !important;
    margin: 0 !important;
    padding: 2px 0 0 !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, .9fr) 92px !important;
    gap: 6px !important;
    border-top: 0 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-checkout-footer .pos-vintage-button,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-checkout-footer .pos-vintage-button {
    min-height: 32px !important;
    height: 32px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
}

/* POS payment dialog final cascade override: iPOS-sized checkout without page scroll. */
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal-window,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal-window {
    width: min(640px, calc(100vw - 24px)) !important;
    max-width: 640px !important;
    max-height: 82vh !important;
    border-radius: 6px !important;
    overflow: hidden !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal-head,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal-head {
    min-height: 44px !important;
    padding: 6px 10px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal-body,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal-body {
    padding: 8px 10px 10px !important;
    overflow-y: hidden !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-payment-panel,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-payment-panel {
    gap: 6px !important;
    grid-template-rows: auto auto auto auto !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-total-row,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-total-row {
    min-height: 76px !important;
    height: 76px !important;
    padding: 6px 10px !important;
    grid-template-columns: 86px minmax(0, 1fr) !important;
    grid-template-rows: 1fr !important;
    align-items: center !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-total-row > strong,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-total-row > strong {
    grid-column: 2 !important;
    justify-self: stretch !important;
    padding: 4px 10px !important;
    border: 1px solid #e0d46d !important;
    background: #fff400 !important;
    color: #000 !important;
    font-size: clamp(42px, 5.5vw, 56px) !important;
    line-height: .95 !important;
    text-align: right !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-total-row .pos-ipos-totalmeta,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-total-row .pos-ipos-totalmeta,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summary-heading,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summary-heading,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-preview-row,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-preview-row {
    display: none !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summaryrows,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summaryrows {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    border-radius: 4px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summaryrows > div,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summary-input,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summaryrows > div,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summary-input {
    min-height: 32px !important;
    height: 32px !important;
    padding: 2px 8px !important;
    border-right: 1px solid #d7e1ee !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summaryrows .pos-ipos-adjustment-input,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summaryrows .pos-ipos-adjustment-input,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summaryrows .pos-ipos-summary-input[for="posPaidAmount"],
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summaryrows .pos-ipos-summary-input[for="posPaidAmount"] {
    grid-column: span 2 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-adjustment-controls,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-adjustment-controls {
    width: min(290px, 58%) !important;
    grid-template-columns: 62px minmax(0, 1fr) !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal input,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal select,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal input,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal select {
    min-height: 26px !important;
    height: 26px !important;
    padding: 2px 7px !important;
    border-radius: 3px !important;
    font-size: 12px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-methods,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-methods {
    grid-template-columns: 82px minmax(0, 1fr) auto !important;
    min-height: 40px !important;
    padding: 4px 6px !important;
    border-radius: 4px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-methodgrid .pos-payment-method,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-methodgrid .pos-payment-method,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-vintage-mini,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-vintage-mini {
    min-height: 24px !important;
    height: 24px !important;
    padding: 2px 6px !important;
    border-radius: 3px !important;
    font-size: 10px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-split-toggle,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-split-toggle {
    min-height: 24px !important;
    height: 24px !important;
    padding: 2px 6px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-checkout-footer,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-checkout-footer {
    position: static !important;
    margin: 0 !important;
    padding: 2px 0 0 !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, .9fr) 92px !important;
    gap: 6px !important;
    border-top: 0 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-checkout-footer .pos-vintage-button,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-checkout-footer .pos-vintage-button {
    min-height: 34px !important;
    height: 34px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
}

/* Theme-specific lock so old themed POS grid rules cannot reorder customer fields. */
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid {
    grid-template-columns: 104px 104px minmax(150px, 1fr) 140px 170px 152px !important;
    grid-template-rows: repeat(2, minmax(0, 40px)) !important;
    gap: 4px !important;
}

html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field-transaction-no {
    display: grid !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
}

html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field-transaction-date {
    display: grid !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
}

html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field-customer-name {
    display: grid !important;
    grid-column: 3 !important;
    grid-row: 1 !important;
}

html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field-customer-phone {
    display: grid !important;
    grid-column: 4 !important;
    grid-row: 1 !important;
}

html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field-cashier {
    display: grid !important;
    grid-column: 5 !important;
    grid-row: 1 !important;
}

html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field-homebase {
    display: grid !important;
    grid-column: 6 !important;
    grid-row: 1 !important;
}

html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field-transaction-type {
    display: grid !important;
    grid-column: 1 / span 2 !important;
    grid-row: 2 !important;
}

html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field-customer {
    display: grid !important;
    grid-column: 3 / span 3 !important;
    grid-row: 2 !important;
}

/* POS classic finishing: compact header, slim barcode row, lighter empty state, readable footer. */
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-layout,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-layout {
    grid-template-rows: 90px 54px minmax(300px, 1fr) !important;
    gap: 4px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-panel,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-panel {
    padding: 6px 8px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid {
    grid-template-columns: 108px 108px minmax(190px, 1fr) 150px 190px 170px !important;
    grid-template-rows: repeat(2, 36px) !important;
    gap: 4px 6px !important;
    align-content: center !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid .pos-ipos-field,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid .pos-ipos-field {
    gap: 2px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid .pos-ipos-field label,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid .pos-ipos-field label {
    font-size: 10px !important;
    line-height: 1 !important;
    margin: 0 !important;
    white-space: nowrap !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid input,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid select,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid input,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid select {
    min-height: 28px !important;
    height: 28px !important;
    padding: 3px 8px !important;
    border-radius: 5px !important;
    font-size: 12px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-draft-panel,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-draft-panel {
    min-height: 54px !important;
    height: 54px !important;
    padding: 5px 8px !important;
    border-radius: 5px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor form.pos-ipos-flat-item-form,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor form.pos-ipos-flat-item-form {
    grid-template-columns: 124px minmax(420px, 1fr) 102px 148px !important;
    gap: 8px !important;
    align-items: end !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor form.pos-ipos-flat-item-form label,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor form.pos-ipos-flat-item-form label {
    gap: 2px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor form.pos-ipos-flat-item-form span,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor form.pos-ipos-flat-item-form span {
    font-size: 10px !important;
    line-height: 1 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor form.pos-ipos-flat-item-form input,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor form.pos-ipos-flat-item-form button,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor form.pos-ipos-flat-item-form input,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor form.pos-ipos-flat-item-form button {
    min-height: 34px !important;
    height: 34px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor form.pos-ipos-flat-item-form #posQuickSearch,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor form.pos-ipos-flat-item-form #posQuickSearch {
    min-height: 34px !important;
    height: 34px !important;
    padding-inline: 12px !important;
    border-radius: 6px !important;
    font-size: 14px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-cart-panel,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-cart-panel {
    border-radius: 5px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .ops-queue-empty,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .ops-queue-empty {
    min-height: 112px !important;
    padding: 30px 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #64748b !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-bottom-panel,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-bottom-panel {
    flex-basis: 86px !important;
    min-height: 86px !important;
    grid-template-columns: minmax(0, 1fr) 380px !important;
    gap: 10px !important;
    padding: 6px 8px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-bottom-left,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-bottom-left {
    grid-template-columns: 180px 180px minmax(260px, 1fr) !important;
    gap: 8px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-bottom-right,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-bottom-right {
    grid-template-columns: 1fr 1fr !important;
    gap: 4px 16px !important;
    font-size: 12px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-bottom-left,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-bottom-right,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-bottom-left,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-bottom-right {
    padding: 6px 8px !important;
    border-radius: 5px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-bottom-panel strong,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-bottom-panel strong {
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quickbar,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quickbar {
    flex-basis: 40px !important;
    min-height: 40px !important;
    padding: 4px 8px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quickbar-action,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quickbar-action {
    min-height: 32px !important;
    height: 32px !important;
    border-radius: 5px !important;
}

@media (max-width: 1440px) {
    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-layout,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-layout {
        grid-template-rows: 88px 52px minmax(270px, 1fr) !important;
    }

    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid {
        grid-template-columns: 104px 104px minmax(164px, 1fr) 140px 168px 150px !important;
    }

    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-bottom-panel,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-bottom-panel {
        grid-template-columns: minmax(0, 1fr) 360px !important;
    }
}

/* POS classic EOF lock: this must stay after older POS overrides. */
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-layout,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-layout {
    grid-template-rows: 94px 54px minmax(292px, 1fr) !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid {
    grid-template-rows: repeat(2, 38px) !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor form.pos-ipos-flat-item-form #posQuickSearch,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor form.pos-ipos-flat-item-form #posQuickSearch,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor form.pos-ipos-flat-item-form .pos-vintage-button,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor form.pos-ipos-flat-item-form .pos-vintage-button {
    min-height: 34px !important;
    height: 34px !important;
    border-radius: 6px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-bottom-panel,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-bottom-panel {
    flex-basis: 94px !important;
    min-height: 94px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-bottom-left,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-bottom-right,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-bottom-left,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-bottom-right {
    padding-block: 5px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-bottom-right,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-bottom-right {
    gap: 2px 14px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-bottom-right .is-total,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-bottom-right .is-total {
    padding-top: 2px !important;
}

@media (max-width: 1440px) {
    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-layout,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-layout {
        grid-template-rows: 92px 52px minmax(260px, 1fr) !important;
    }
}

/* POS classic polish: prevent clipped header labels and bottom totals on short screens. */
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-layout,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-layout {
    grid-template-rows: 94px 54px minmax(292px, 1fr) !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid {
    grid-template-rows: repeat(2, 38px) !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-bottom-panel,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-bottom-panel {
    flex-basis: 94px !important;
    min-height: 94px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-bottom-left,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-bottom-right,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-bottom-left,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-bottom-right {
    padding-block: 5px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-bottom-right,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-bottom-right {
    gap: 2px 14px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-bottom-right .is-total,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-bottom-right .is-total {
    padding-top: 2px !important;
}

@media (max-width: 1440px) {
    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-layout,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-layout {
        grid-template-rows: 92px 52px minmax(260px, 1fr) !important;
    }
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor form.pos-ipos-flat-item-form {
    display: grid !important;
    grid-template-columns: 112px minmax(0, 1fr) 92px 132px !important;
    grid-auto-flow: column !important;
    grid-auto-columns: auto !important;
    align-items: end !important;
    gap: 8px !important;
    width: 100% !important;
    height: 100% !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor form.pos-ipos-flat-item-form .pos-ipos-qty-scan-field {
    grid-column: 1 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor form.pos-ipos-flat-item-form .pos-ipos-scan-field {
    grid-column: 2 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor form.pos-ipos-flat-item-form > button[type="submit"] {
    grid-column: 3 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor form.pos-ipos-flat-item-form > button[data-pos-open-catalog] {
    grid-column: 4 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field-transaction-no {
    display: grid !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field-transaction-date {
    display: grid !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field-customer-name {
    display: grid !important;
    grid-column: 3 !important;
    grid-row: 1 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field-cashier {
    display: grid !important;
    grid-column: 4 !important;
    grid-row: 1 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field-homebase {
    display: grid !important;
    grid-column: 5 !important;
    grid-row: 1 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-layout {
    grid-template-rows: 82px 46px minmax(300px, 1fr) !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-draft-panel {
    padding: 5px 8px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-form {
    grid-template-columns: 96px minmax(0, 1fr) !important;
    gap: 8px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-copy {
    display: none !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-controls {
    grid-column: 2 !important;
    grid-row: 1 !important;
    grid-template-columns: minmax(0, 1fr) 92px 132px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-results {
    left: 112px !important;
    right: 148px !important;
    top: 42px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-flat-item-form {
    height: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    display: grid !important;
    grid-column: 1 / -1 !important;
    grid-template-columns: 112px minmax(0, 1fr) 92px 132px !important;
    gap: 8px !important;
    align-items: end !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-flat-item-form label {
    min-width: 0 !important;
    display: grid !important;
    gap: 3px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-flat-item-form .pos-ipos-qty-scan-field {
    grid-column: 1 !important;
    grid-row: 1 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-flat-item-form .pos-ipos-scan-field {
    grid-column: 2 !important;
    grid-row: 1 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-flat-item-form > button[type="submit"] {
    grid-column: 3 !important;
    grid-row: 1 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-flat-item-form > button[data-pos-open-catalog] {
    grid-column: 4 !important;
    grid-row: 1 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-flat-item-form input {
    width: 100% !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-flat-item-form span {
    color: #223a5b !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-flat-item-form button {
    width: 100% !important;
    height: 30px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-flat-item-form #posQuickSearchSummary {
    display: none !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-flat-item-form + .pos-ipos-quicksearch-results {
    left: 128px !important;
    right: 240px !important;
    top: 46px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-draft-panel {
    display: block !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor form.pos-ipos-flat-item-form {
    display: grid !important;
    grid-template-columns: 112px minmax(0, 1fr) 92px 132px !important;
    grid-auto-flow: column !important;
    grid-auto-columns: unset !important;
    align-items: end !important;
    gap: 8px !important;
}

@media (max-width: 1250px) {
    body.pos-page-wide {
        overflow: auto !important;
    }

    body.pos-page-wide .main,
    body.pos-page-wide .page-content.page-content-bleed,
    body.pos-page-wide #posCheckoutRoot,
    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-window {
        height: auto !important;
        min-height: 100dvh !important;
        overflow: visible !important;
    }

    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-layout {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto minmax(320px, 1fr) auto !important;
        overflow: visible !important;
    }

    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-panel,
    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-side,
    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-draft-panel,
    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-cart-panel {
        grid-column: 1 !important;
        grid-row: auto !important;
    }
}

/* POS classic tightening pass: keep the work surface flat and table-led. */
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-layout {
    align-items: stretch !important;
    grid-template-rows: 86px 62px minmax(300px, 1fr) !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid {
    grid-template-columns: 132px 118px minmax(190px, 1fr) 220px 170px !important;
    align-content: center !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field-customer-phone,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field-transaction-type,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field-customer {
    display: none !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-draft-panel {
    position: relative !important;
    z-index: 3 !important;
    align-self: stretch !important;
    overflow: visible !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-form {
    grid-template-columns: 92px 168px minmax(0, 1fr) !important;
    align-content: center !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-controls {
    grid-template-columns: minmax(0, 1fr) 92px 132px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-cart-panel {
    height: 100% !important;
    align-self: stretch !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-bottom-panel {
    flex-basis: 78px !important;
    min-height: 78px !important;
    grid-template-columns: minmax(0, 1fr) 400px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-bottom-left,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-bottom-right {
    padding: 5px 6px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quickbar {
    flex-basis: 38px !important;
    min-height: 38px !important;
    padding: 3px 8px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quickbar-action {
    min-height: 30px !important;
    height: 30px !important;
}

@media (max-width: 1440px) {
    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-layout {
        grid-template-rows: 82px 60px minmax(292px, 1fr) !important;
    }

    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid {
        grid-template-columns: 128px 112px minmax(180px, 1fr) 210px 156px !important;
    }
}

/* Absolute last POS item row lock. */
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor form.pos-ipos-flat-item-form {
    display: grid !important;
    grid-template-columns: 112px minmax(0, 1fr) 92px 132px !important;
    grid-auto-flow: column !important;
    grid-auto-columns: auto !important;
    align-items: end !important;
    gap: 8px !important;
    width: 100% !important;
    height: 100% !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor form.pos-ipos-flat-item-form .pos-ipos-qty-scan-field {
    grid-column: 1 !important;
    grid-row: 1 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor form.pos-ipos-flat-item-form .pos-ipos-scan-field {
    grid-column: 2 !important;
    grid-row: 1 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor form.pos-ipos-flat-item-form > button[type="submit"] {
    grid-column: 3 !important;
    grid-row: 1 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor form.pos-ipos-flat-item-form > button[data-pos-open-catalog] {
    grid-column: 4 !important;
    grid-row: 1 !important;
}

/* POS customer identity lock: No HP, CRM, and loyalty stay visible and wired. */
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-layout {
    grid-template-rows: 98px 60px minmax(280px, 1fr) !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid {
    height: 100% !important;
    display: grid !important;
    grid-template-columns: 112px 108px minmax(170px, 1fr) 150px 190px 170px !important;
    grid-template-rows: repeat(2, minmax(0, 40px)) !important;
    gap: 5px !important;
    align-content: center !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field-transaction-no {
    display: grid !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field-transaction-date {
    display: grid !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field-customer-name {
    display: grid !important;
    grid-column: 3 !important;
    grid-row: 1 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field-customer-phone {
    display: grid !important;
    grid-column: 4 !important;
    grid-row: 1 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field-cashier {
    display: grid !important;
    grid-column: 5 !important;
    grid-row: 1 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field-homebase {
    display: grid !important;
    grid-column: 6 !important;
    grid-row: 1 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field-transaction-type {
    display: grid !important;
    grid-column: 1 / span 2 !important;
    grid-row: 2 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field-customer {
    display: grid !important;
    grid-column: 3 / span 3 !important;
    grid-row: 2 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid .pos-ipos-field label {
    font-size: 9px !important;
    line-height: 1 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid input,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid select {
    min-height: 27px !important;
    height: 27px !important;
    padding: 3px 8px !important;
    font-size: 12px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid .pos-ipos-select-search {
    grid-template-columns: minmax(72px, .7fr) minmax(82px, 1fr) !important;
    gap: 4px !important;
}

@media (max-width: 1440px) {
    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-layout {
        grid-template-rows: 96px 58px minmax(270px, 1fr) !important;
    }

    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid {
        grid-template-columns: 104px 104px minmax(150px, 1fr) 140px 170px 152px !important;
        gap: 4px !important;
    }
}

/* POS classic final lock: keep required fields visible while matching the flatter iPOS density. */
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-layout,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-layout {
    grid-template-rows: 94px 54px minmax(292px, 1fr) !important;
    gap: 4px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-panel,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-panel {
    padding: 6px 8px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid {
    grid-template-columns: 108px 108px minmax(190px, 1fr) 150px 190px 170px !important;
    grid-template-rows: repeat(2, 38px) !important;
    gap: 4px 6px !important;
    align-content: center !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field-transaction-no,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field-transaction-no {
    display: grid !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field-transaction-date,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field-transaction-date {
    display: grid !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field-customer-name,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field-customer-name {
    display: grid !important;
    grid-column: 3 !important;
    grid-row: 1 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field-customer-phone,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field-customer-phone {
    display: grid !important;
    grid-column: 4 !important;
    grid-row: 1 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field-cashier,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field-cashier {
    display: grid !important;
    grid-column: 5 !important;
    grid-row: 1 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field-homebase,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field-homebase {
    display: grid !important;
    grid-column: 6 !important;
    grid-row: 1 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field-transaction-type,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field-transaction-type {
    display: grid !important;
    grid-column: 1 / span 2 !important;
    grid-row: 2 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field-customer,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field-customer {
    display: grid !important;
    grid-column: 3 / span 3 !important;
    grid-row: 2 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid .pos-ipos-field,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid .pos-ipos-field,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor form.pos-ipos-flat-item-form label,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor form.pos-ipos-flat-item-form label {
    gap: 2px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid .pos-ipos-field label,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid .pos-ipos-field label,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor form.pos-ipos-flat-item-form span,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor form.pos-ipos-flat-item-form span {
    font-size: 10px !important;
    line-height: 1 !important;
    margin: 0 !important;
    white-space: nowrap !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid input,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid select,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid input,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid select {
    min-height: 28px !important;
    height: 28px !important;
    padding: 3px 8px !important;
    border-radius: 5px !important;
    font-size: 12px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-draft-panel,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-draft-panel {
    min-height: 54px !important;
    height: 54px !important;
    padding: 5px 8px !important;
    border-radius: 5px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor form.pos-ipos-flat-item-form,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor form.pos-ipos-flat-item-form {
    grid-template-columns: 124px minmax(420px, 1fr) 102px 148px !important;
    gap: 8px !important;
    align-items: end !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor form.pos-ipos-flat-item-form input,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor form.pos-ipos-flat-item-form button,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor form.pos-ipos-flat-item-form input,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor form.pos-ipos-flat-item-form button {
    min-height: 34px !important;
    height: 34px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor form.pos-ipos-flat-item-form #posQuickSearch,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor form.pos-ipos-flat-item-form #posQuickSearch {
    min-height: 34px !important;
    height: 34px !important;
    padding-inline: 12px !important;
    border-radius: 6px !important;
    font-size: 14px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor form.pos-ipos-flat-item-form .pos-vintage-button,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor form.pos-ipos-flat-item-form .pos-vintage-button {
    min-height: 34px !important;
    height: 34px !important;
    border-radius: 6px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .ops-queue-empty,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .ops-queue-empty {
    min-height: 112px !important;
    padding: 30px 12px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #64748b !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-bottom-panel,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-bottom-panel {
    flex-basis: 94px !important;
    min-height: 94px !important;
    grid-template-columns: minmax(0, 1fr) 380px !important;
    gap: 10px !important;
    padding: 6px 8px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-bottom-left,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-bottom-left {
    grid-template-columns: 180px 180px minmax(260px, 1fr) !important;
    gap: 8px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-bottom-right,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-bottom-right {
    grid-template-columns: 1fr 1fr !important;
    gap: 2px 14px !important;
    font-size: 12px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-bottom-left,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-bottom-right,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-bottom-left,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-bottom-right {
    padding: 5px 8px !important;
    border-radius: 5px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-bottom-panel strong,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-bottom-panel strong {
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quickbar,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quickbar {
    flex-basis: 40px !important;
    min-height: 40px !important;
    padding: 4px 8px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quickbar-action,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quickbar-action {
    min-height: 32px !important;
    height: 32px !important;
    border-radius: 5px !important;
}

@media (max-width: 1440px) {
    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-layout,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-layout {
        grid-template-rows: 92px 52px minmax(260px, 1fr) !important;
    }

    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid {
        grid-template-columns: 104px 104px minmax(164px, 1fr) 140px 168px 150px !important;
        gap: 4px !important;
    }

    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-bottom-panel,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-bottom-panel {
        grid-template-columns: minmax(0, 1fr) 360px !important;
    }
}

/* POS payment dialog compact iPOS lock. Scoped to checkout modal only. */
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal {
    align-items: center !important;
    justify-content: center !important;
    padding: 16px !important;
    overflow: hidden !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal-window,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal-window {
    width: min(640px, calc(100vw - 24px)) !important;
    max-width: 640px !important;
    max-height: min(82vh, 620px) !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    border-radius: 6px !important;
    background: #ffffff !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal-head,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal-head {
    flex: 0 0 auto !important;
    min-height: 40px !important;
    padding: 5px 10px !important;
    border-bottom: 1px solid #d7e1ee !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal-head .pos-ipos-kicker,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal-head .pos-ipos-kicker {
    font-size: 10px !important;
    line-height: 1 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal-head h3,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal-head h3 {
    font-size: 18px !important;
    line-height: 1.05 !important;
    margin: 1px 0 0 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal-close,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal-close {
    width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    border-radius: 50% !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal-body,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 6px 8px 8px !important;
    overflow-y: hidden !important;
    overflow-x: hidden !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-payment-panel,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-payment-panel {
    min-height: 0 !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-rows: auto auto auto auto auto !important;
    gap: 5px !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal [hidden],
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal [hidden] {
    display: none !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-totalbox,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-totalbox {
    min-height: 70px !important;
    height: 70px !important;
    padding: 5px 8px !important;
    border-radius: 5px !important;
    display: grid !important;
    grid-template-columns: 76px minmax(0, 1fr) !important;
    grid-template-rows: 1fr !important;
    align-items: center !important;
    gap: 4px 12px !important;
    background: #fff6b8 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-totalbox .pos-ipos-kicker,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-totalbox .pos-ipos-kicker {
    grid-column: 1 !important;
    align-self: center !important;
    font-size: 11px !important;
    line-height: 1 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-totalbox > strong,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-totalbox > strong {
    grid-column: 2 !important;
    justify-self: stretch !important;
    padding: 3px 8px !important;
    border: 1px solid #e0d46d !important;
    background: #fff400 !important;
    color: #000 !important;
    font-size: clamp(42px, 5.4vw, 54px) !important;
    line-height: .92 !important;
    letter-spacing: 0 !important;
    text-align: right !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-totalmeta,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-totalmeta {
    display: none !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summaryrows,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summaryrows {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 0 !important;
    border: 1px solid #d7e1ee !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    background: #ffffff !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summary-heading,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summary-heading {
    display: none !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summaryrows > div,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summary-input,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summaryrows > div,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summary-input {
    min-height: 28px !important;
    height: 28px !important;
    padding: 1px 7px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    border-bottom: 1px solid #d7e1ee !important;
    border-radius: 0 !important;
    background: #ffffff !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summaryrows > div:not(.pos-ipos-summary-heading):nth-last-child(-n + 2),
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summaryrows > div:not(.pos-ipos-summary-heading):nth-last-child(-n + 2) {
    border-bottom: 0 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summaryrows > .pos-payment-preview-row,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summaryrows > .pos-payment-preview-row {
    display: none !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summaryrows span,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summaryrows span {
    min-width: max-content !important;
    font-size: 12px !important;
    color: #334b67 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summaryrows strong,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summaryrows strong {
    margin-left: auto !important;
    font-size: 14px !important;
    line-height: 1.1 !important;
    text-align: right !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-adjustment-input,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-adjustment-input {
    grid-column: span 2 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-adjustment-controls,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-adjustment-controls {
    width: min(280px, 58%) !important;
    display: grid !important;
    grid-template-columns: 58px minmax(0, 1fr) !important;
    gap: 6px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal input,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal select,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal input,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal select {
    min-height: 24px !important;
    height: 24px !important;
    padding: 1px 6px !important;
    border-radius: 3px !important;
    font-size: 12px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal input[type="number"],
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal input[type="number"] {
    text-align: right !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .is-accent,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .is-accent {
    background: #e8f8ee !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-methods,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-methods {
    display: grid !important;
    grid-template-columns: 78px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 4px 8px !important;
    min-height: 34px !important;
    padding: 3px 6px !important;
    border: 1px solid #d7e1ee !important;
    border-radius: 4px !important;
    background: #f8fafc !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-methods > .pos-ipos-kicker,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-methods > .pos-ipos-kicker {
    font-size: 11px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-methodgrid,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-methodgrid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(58px, 1fr)) !important;
    gap: 4px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-methodgrid .pos-payment-method,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-methodgrid .pos-payment-method {
    min-height: 22px !important;
    height: 22px !important;
    padding: 1px 6px !important;
    border-radius: 3px !important;
    font-size: 10px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .split-actions,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .split-actions {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .split-actions small,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .split-actions small {
    display: none !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-split-toggle,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-split-toggle {
    grid-column: 1 / -1 !important;
    min-height: 22px !important;
    height: 22px !important;
    padding: 1px 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    border-radius: 5px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-split-toggle small,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-split-toggle small,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal #posPaymentBankSummary,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal #posPaymentBankSummary {
    font-size: 11px !important;
    line-height: 1.2 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-split-toggle small,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-split-toggle small {
    display: none !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-split-panel,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-split-panel,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal #posPaymentBankSummary,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal #posPaymentBankSummary {
    grid-column: 1 / -1 !important;
}


body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-vintage-mini,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-vintage-mini {
    min-height: 22px !important;
    height: 22px !important;
    padding: 1px 6px !important;
    border-radius: 3px !important;
    font-size: 10px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-checkout-footer,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-checkout-footer {
    position: static !important;
    bottom: auto !important;
    z-index: 4 !important;
    margin: 0 !important;
    padding: 2px 0 0 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, .9fr) 92px !important;
    gap: 6px !important;
    border-top: 0 !important;
    background: #ffffff !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-checkout-footer .pos-vintage-button,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-checkout-footer .pos-vintage-button {
    min-height: 32px !important;
    height: 32px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-checkout-progress,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-checkout-progress {
    margin: 0 !important;
}

@media (max-width: 720px) {
    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal {
        padding: 10px !important;
    }

    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal-window,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal-window {
        width: calc(100vw - 20px) !important;
        max-height: 90vh !important;
    }

    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summaryrows,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summaryrows,
    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-methods,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-methods {
        grid-template-columns: 1fr !important;
    }

    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-adjustment-input,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-adjustment-input {
        grid-column: auto !important;
    }

    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-shortcuts,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-shortcuts {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-checkout-footer,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-checkout-footer {
        grid-template-columns: 1fr !important;
    }
}

/* POS admin fields footer move: customer-first header, admin metadata below. */
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-layout,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-layout {
    grid-template-rows: 58px 52px minmax(330px, 1fr) !important;
    gap: 4px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-panel,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-panel {
    min-height: 58px !important;
    height: 58px !important;
    padding: 6px 8px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-panel .pos-ipos-panel-head,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-panel .pos-ipos-panel-head {
    display: none !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid {
    height: 100% !important;
    display: grid !important;
    grid-template-columns: minmax(220px, 1.15fr) minmax(150px, .7fr) minmax(210px, .9fr) minmax(320px, 1.25fr) !important;
    grid-template-rows: 1fr !important;
    gap: 8px !important;
    align-items: end !important;
    align-content: center !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field-customer-name,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field-customer-name {
    display: grid !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field-customer-phone,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field-customer-phone {
    display: grid !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field-transaction-type,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field-transaction-type {
    display: grid !important;
    grid-column: 3 !important;
    grid-row: 1 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field-customer,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field-customer {
    display: grid !important;
    grid-column: 4 !important;
    grid-row: 1 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field-transaction-no,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field-transaction-date,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field-cashier,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field-homebase,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field-transaction-no,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field-transaction-date,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field-cashier,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-field-homebase {
    display: none !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid .pos-ipos-field,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid .pos-ipos-field {
    min-width: 0 !important;
    gap: 2px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid label,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid label {
    font-size: 10px !important;
    line-height: 1 !important;
    margin: 0 !important;
    white-space: nowrap !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid input,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid select,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid input,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid select {
    min-height: 32px !important;
    height: 32px !important;
    padding: 4px 9px !important;
    border-radius: 5px !important;
    font-size: 12px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid .pos-ipos-select-search,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid .pos-ipos-select-search {
    grid-template-columns: minmax(120px, .8fr) minmax(150px, 1fr) !important;
    gap: 6px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-draft-panel,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-draft-panel {
    min-height: 52px !important;
    height: 52px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-bottom-panel,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-bottom-panel {
    min-height: 92px !important;
    flex-basis: 92px !important;
    grid-template-columns: minmax(0, 1fr) 380px !important;
    gap: 10px !important;
    padding: 6px 8px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-bottom-left,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-bottom-left {
    display: grid !important;
    grid-template-columns: minmax(100px, .65fr) minmax(110px, .65fr) minmax(240px, 1.4fr) minmax(140px, .8fr) minmax(230px, 1.35fr) !important;
    gap: 8px !important;
    align-items: start !important;
    padding: 6px 8px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-mini-field,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-mini-field {
    min-width: 0 !important;
    display: grid !important;
    gap: 3px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-mini-field label,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-mini-field span,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-mini-field label,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-mini-field span {
    margin: 0 !important;
    color: #334b67 !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-mini-field strong,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-mini-field input,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-mini-field select,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-mini-field strong,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-mini-field input,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-mini-field select {
    min-width: 0 !important;
    width: 100% !important;
    height: 28px !important;
    min-height: 28px !important;
    padding: 3px 7px !important;
    border-radius: 5px !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-footer-cashier .pos-ipos-select-search,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-footer-cashier .pos-ipos-select-search {
    display: grid !important;
    grid-template-columns: minmax(78px, .55fr) minmax(120px, 1fr) !important;
    gap: 5px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-dock,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-dock {
    min-height: 58px !important;
    height: 58px !important;
    align-self: start !important;
    margin-top: 0 !important;
    position: static !important;
    top: auto !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact {
    position: static !important;
    top: auto !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact {
    min-height: 58px !important;
    height: 58px !important;
    padding: 6px 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    overflow: hidden !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact > div:not(:first-child),
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact .pos-ipos-pay-open,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact > div:not(:first-child),
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact .pos-ipos-pay-open {
    display: none !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact > div:first-child,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact > div:first-child {
    width: 100% !important;
    display: grid !important;
    gap: 2px !important;
    justify-items: end !important;
    align-content: center !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact > div:first-child span,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact > div:first-child span {
    font-size: 10px !important;
    line-height: 1 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact > div:first-child strong,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact > div:first-child strong {
    max-width: 100% !important;
    font-size: clamp(32px, 3.2vw, 44px) !important;
    line-height: .95 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

@media (max-width: 1440px) {
    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-layout,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-layout {
        grid-template-rows: 56px 50px minmax(300px, 1fr) !important;
    }

    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-panel,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-panel {
        min-height: 56px !important;
        height: 56px !important;
    }

    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid {
        grid-template-columns: minmax(180px, 1fr) minmax(130px, .7fr) minmax(190px, .9fr) minmax(270px, 1.25fr) !important;
        gap: 6px !important;
    }

    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-bottom-panel,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-bottom-panel {
        grid-template-columns: minmax(0, 1fr) 360px !important;
    }

    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-bottom-left,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-bottom-left {
        grid-template-columns: 92px 104px minmax(210px, 1.35fr) 130px minmax(190px, 1.25fr) !important;
        gap: 6px !important;
    }

    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-dock,
    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-dock,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact {
        min-height: 56px !important;
        height: 56px !important;
    }
}

/* POS mandor EOF lock: must stay after older POS overrides. */
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-panel,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-panel {
    min-height: 54px !important;
    height: 54px !important;
    padding: 5px 8px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid.pos-customer-row,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid.pos-customer-row {
    display: grid !important;
    grid-template-columns: minmax(360px, 1.5fr) minmax(220px, .8fr) minmax(300px, 1fr) !important;
    grid-template-rows: 1fr !important;
    gap: 8px !important;
    align-items: end !important;
    height: 100% !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-field-customer-combined,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-field-customer-combined {
    display: grid !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-field-transaction-type,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-field-transaction-type {
    display: grid !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-field-customer,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-field-customer {
    display: grid !important;
    grid-column: 3 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-hidden-customer-field,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-hidden-customer-field {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row input,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row select,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row input,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row select {
    height: 32px !important;
    min-height: 32px !important;
    padding: 4px 9px !important;
    font-size: 12px !important;
    border-radius: 5px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal-window,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal-window {
    width: min(680px, calc(100vw - 24px)) !important;
    max-width: 680px !important;
    max-height: 82vh !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal-body,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal-body {
    padding: 6px 8px 8px !important;
    overflow-y: hidden !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-payment-panel,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-payment-panel {
    gap: 5px !important;
    grid-template-rows: auto auto auto auto auto auto !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-total-row,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-totalbox,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-total-row,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-totalbox {
    height: 70px !important;
    min-height: 70px !important;
    padding: 5px 8px !important;
    grid-template-columns: 120px minmax(0, 1fr) !important;
    grid-template-rows: 1fr !important;
    align-items: center !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-cash-grid,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-cash-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 3px 6px !important;
    padding: 3px 6px !important;
    border: 1px solid #d7e1ee !important;
    border-radius: 4px !important;
    background: #fff !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-pay-row,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-pay-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 2px !important;
    align-content: start !important;
    min-height: 42px !important;
    height: 42px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-pay-row-wide,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-pay-row-wide {
    grid-column: auto !important;
    grid-template-columns: 1fr !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-pay-row-wide input:nth-of-type(n+2),
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-pay-row-wide input:nth-of-type(n+2) {
    display: none !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-adjustment,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-adjustment {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
    padding: 5px 7px !important;
    border: 1px solid #d7e1ee !important;
    border-radius: 4px !important;
    background: #f8fafc !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-adjustment-row,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-adjustment-row {
    display: grid !important;
    grid-template-columns: 104px minmax(0, 1fr) !important;
    gap: 6px !important;
    align-items: center !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-adjustment-controls,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-adjustment-controls {
    width: 100% !important;
    grid-template-columns: 52px minmax(0, 1fr) !important;
    gap: 5px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-summary,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-summary {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0 !important;
    border: 1px solid #d7e1ee !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    background: #fff !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-summary > div,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-summary > div {
    min-height: 28px !important;
    height: 28px !important;
    padding: 2px 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    border-bottom: 1px solid #d7e1ee !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-preview-row,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summaryrows,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-payment-preview-row,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-summaryrows {
    display: none !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal input,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal select,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal input,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal select {
    min-height: 26px !important;
    height: 26px !important;
    padding: 2px 7px !important;
    border-radius: 3px !important;
    font-size: 12px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-checkout-footer,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-payment-modal .pos-ipos-checkout-footer {
    position: static !important;
    margin: 0 !important;
    padding: 2px 0 0 !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, .9fr) 96px !important;
    gap: 6px !important;
    border-top: 0 !important;
}

/* POS final EOF lock: compact customer header + dominant total. */
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-layout,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) clamp(390px, 27vw, 520px) !important;
    gap: 8px !important;
    padding: 6px 8px !important;
    align-items: start !important;
    overflow: hidden !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-main,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-main {
    display: grid !important;
    grid-template-rows: 72px 54px minmax(0, 1fr) !important;
    gap: 5px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-panel,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-panel {
    min-height: 72px !important;
    height: 72px !important;
    padding: 7px 8px !important;
    overflow: visible !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-panel .pos-ipos-panel-head,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-panel .pos-ipos-panel-head {
    display: none !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid.pos-customer-row,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid.pos-customer-row {
    display: grid !important;
    grid-template-columns: minmax(220px, 1fr) minmax(170px, .75fr) minmax(220px, .9fr) minmax(170px, .75fr) !important;
    grid-template-rows: 58px !important;
    gap: 8px !important;
    align-items: end !important;
    align-content: end !important;
    height: 58px !important;
    min-width: 0 !important;
    overflow: visible !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-field,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-field {
    display: grid !important;
    align-content: end !important;
    gap: 3px !important;
    min-width: 0 !important;
    height: 58px !important;
    overflow: visible !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-field-customer-combined,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-field-customer-combined {
    grid-column: 1 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-field-transaction-type,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-field-transaction-type {
    grid-column: 2 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-field-customer,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-field-customer {
    grid-column: 3 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-field-member-status,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-field-member-status {
    display: grid !important;
    grid-column: 4 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row label,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row label {
    margin: 0 !important;
    color: #10243f !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row input,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row select,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-customer-status,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row input,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row select,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-customer-status {
    width: 100% !important;
    min-width: 0 !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 4px 9px !important;
    border-radius: 5px !important;
    font-size: 12px !important;
    line-height: 1.15 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-select-search,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-select-search {
    display: grid !important;
    grid-template-columns: minmax(82px, .6fr) minmax(118px, 1fr) !important;
    gap: 5px !important;
    min-width: 0 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .helper-text,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .helper-text {
    display: none !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-dock,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-dock {
    min-width: 390px !important;
    width: auto !important;
    min-height: 72px !important;
    height: 72px !important;
    position: static !important;
    align-self: start !important;
    overflow: hidden !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact {
    height: 72px !important;
    min-height: 72px !important;
    padding: 7px 18px !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    border-left: 1px solid #d7e1ef !important;
    overflow: hidden !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact > div:not(:first-child),
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact .pos-ipos-pay-open,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact > div:not(:first-child),
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact .pos-ipos-pay-open {
    display: none !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact > div:first-child,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact > div:first-child {
    display: grid !important;
    justify-items: end !important;
    gap: 2px !important;
    width: 100% !important;
    min-width: 0 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact > div:first-child span,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact > div:first-child span {
    margin: 0 !important;
    color: #10243f !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    letter-spacing: .04em !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact > div:first-child strong,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact > div:first-child strong {
    max-width: 100% !important;
    color: #071326 !important;
    font-size: clamp(50px, 5vw, 74px) !important;
    font-weight: 900 !important;
    line-height: .9 !important;
    text-align: right !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

@media (max-width: 1200px) {
    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-layout,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-layout {
        grid-template-columns: 1fr !important;
    }

    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-main,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-main {
        grid-template-rows: auto 54px minmax(0, 1fr) !important;
    }

    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-panel,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-panel {
        height: auto !important;
        min-height: 116px !important;
    }

    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid.pos-customer-row,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid.pos-customer-row {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-template-rows: repeat(2, 58px) !important;
        height: auto !important;
    }

    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-dock,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-dock {
        min-width: 0 !important;
        width: 100% !important;
    }
}

/* POS final EOF layout lock: total only in header, cart full width. */
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-layout,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-layout {
    grid-template-rows: 72px 54px minmax(0, 1fr) !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-main,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-main {
    display: contents !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-panel,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-panel {
    grid-column: 1 !important;
    grid-row: 1 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-side,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-side,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-dock,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-dock {
    grid-column: 2 !important;
    grid-row: 1 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-draft-panel,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-draft-panel {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-cart-panel,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-cart-panel {
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
}

@media (max-width: 1200px) {
    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-layout,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-layout {
        grid-template-rows: auto 72px 54px minmax(0, 1fr) !important;
    }

    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-panel,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-panel {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }

    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-side,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-side,
    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-dock,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-dock {
        grid-column: 1 !important;
        grid-row: 2 !important;
    }

    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-draft-panel,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-draft-panel {
        grid-column: 1 !important;
        grid-row: 3 !important;
    }

    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-cart-panel,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-cart-panel {
        grid-column: 1 !important;
        grid-row: 4 !important;
    }
}

/* POS final customer split lock: keep name/phone separate and total unclipped. */
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-layout,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-layout {
    grid-template-columns: minmax(0, 1fr) clamp(340px, 24vw, 460px) !important;
    grid-template-rows: 82px 54px minmax(0, 1fr) !important;
    gap: 10px !important;
    padding: 6px 8px !important;
    align-items: start !important;
    overflow: visible !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-panel,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-panel {
    grid-column: 1 !important;
    grid-row: 1 !important;
    min-height: 82px !important;
    height: 82px !important;
    padding: 7px 8px !important;
    overflow: visible !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid.pos-customer-row,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid.pos-customer-row {
    display: grid !important;
    grid-template-columns:
        minmax(198px, 1.08fr)
        minmax(140px, .72fr)
        minmax(184px, .9fr)
        minmax(218px, 1.05fr)
        minmax(150px, .72fr) !important;
    grid-template-rows: 66px !important;
    gap: 6px !important;
    align-items: end !important;
    align-content: end !important;
    height: 66px !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: visible !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-field,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-field {
    display: grid !important;
    align-content: end !important;
    gap: 3px !important;
    min-width: 0 !important;
    height: 66px !important;
    overflow: visible !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-field-customer-name,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-field-customer-name {
    grid-column: 1 !important;
    grid-row: 1 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-field-customer-phone,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-field-customer-phone {
    grid-column: 2 !important;
    grid-row: 1 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-field-transaction-type,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-field-transaction-type {
    grid-column: 3 !important;
    grid-row: 1 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-field-customer,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-field-customer {
    grid-column: 4 !important;
    grid-row: 1 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-field-member-status,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-field-member-status {
    display: grid !important;
    grid-column: 5 !important;
    grid-row: 1 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row label,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row label {
    display: block !important;
    margin: 0 0 2px !important;
    color: #10243f !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
    overflow: visible !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row input,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row select,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-customer-status,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row input,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row select,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-customer-status {
    width: 100% !important;
    min-width: 0 !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 4px 8px !important;
    border-radius: 5px !important;
    font-size: 12px !important;
    line-height: 1.15 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-select-search,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-select-search {
    display: grid !important;
    grid-template-columns: minmax(76px, .58fr) minmax(102px, 1fr) !important;
    gap: 4px !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-dock,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-dock {
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-width: 340px !important;
    width: auto !important;
    min-height: 82px !important;
    height: 82px !important;
    position: static !important;
    align-self: start !important;
    overflow: visible !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact {
    min-width: 340px !important;
    min-height: 82px !important;
    height: 82px !important;
    padding: 8px 18px 10px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-end !important;
    border-left: 1px solid #d7e1ef !important;
    overflow: visible !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact > div:first-child,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact > div:first-child {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact > div:first-child span,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact > div:first-child span {
    display: block !important;
    margin: 0 0 4px !important;
    padding: 0 !important;
    color: #10243f !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    letter-spacing: .04em !important;
    line-height: 1.15 !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    overflow: visible !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact > div:first-child strong,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-compact > div:first-child strong {
    display: block !important;
    max-width: none !important;
    color: #071326 !important;
    font-size: clamp(44px, 3.8vw, 60px) !important;
    font-weight: 900 !important;
    line-height: .95 !important;
    text-align: right !important;
    white-space: nowrap !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

@media (max-width: 1200px) {
    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-layout,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-layout {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto 82px 54px minmax(0, 1fr) !important;
        overflow: visible !important;
    }

    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-panel,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-panel {
        grid-column: 1 !important;
        grid-row: 1 !important;
        height: auto !important;
        min-height: 148px !important;
    }

    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid.pos-customer-row,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-transaction-grid.pos-customer-row {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-template-rows: repeat(3, 58px) !important;
        height: auto !important;
    }

    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-field-customer-name,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-field-customer-name {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }

    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-field-customer-phone,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-field-customer-phone {
        grid-column: 2 !important;
        grid-row: 1 !important;
    }

    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-field-transaction-type,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-field-transaction-type {
        grid-column: 1 !important;
        grid-row: 2 !important;
    }

    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-field-customer,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-field-customer {
        grid-column: 2 !important;
        grid-row: 2 !important;
    }

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-field-member-status,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-customer-row .pos-ipos-field-member-status {
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
}

    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-dock,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-payment-dock {
        grid-column: 1 !important;
        grid-row: 2 !important;
        min-width: 0 !important;
        width: 100% !important;
    }
}

/* WMS Approval operational layout: queue + focused detail/action. */
body.wms-approval-page-shell .page-content.page-content-bleed,
html[data-theme] body.wms-approval-page-shell .page-content.page-content-bleed {
    width: min(100% - 32px, 1640px) !important;
    max-width: 1640px !important;
    margin-inline: auto !important;
    padding: 0 0 28px !important;
    overflow-x: clip !important;
}

body.wms-approval-page-shell .approval-page,
html[data-theme] body.wms-approval-page-shell .approval-page {
    --approval-navy: #0d2340;
    --approval-text: #10233d;
    --approval-muted: #63748a;
    --approval-border: #d8e2ee;
    --approval-soft: #f5f8fb;
    --approval-soft-strong: #edf3f8;
    --approval-gold: #d4a83b;
    --approval-green: #0f9461;
    --approval-red: #b42318;
    width: 100%;
    display: grid;
    gap: 12px;
    color: var(--approval-text);
    overflow-x: clip;
}

body.wms-approval-page-shell .approval-page *,
html[data-theme] body.wms-approval-page-shell .approval-page * {
    box-sizing: border-box;
}

body.wms-approval-page-shell .approval-page-head,
html[data-theme] body.wms-approval-page-shell .approval-page-head {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px 18px;
    border: 1px solid var(--approval-border);
    border-top: 3px solid var(--approval-gold);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 35, 62, 0.06);
}

body.wms-approval-page-shell .approval-kicker,
html[data-theme] body.wms-approval-page-shell .approval-kicker {
    display: block;
    margin-bottom: 4px;
    color: #936912;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1.1;
    text-transform: uppercase;
}

body.wms-approval-page-shell .approval-page-head h2,
html[data-theme] body.wms-approval-page-shell .approval-page-head h2 {
    margin: 0;
    color: var(--approval-navy);
    font-size: clamp(1.8rem, 2.6vw, 2.45rem);
    line-height: 1;
    letter-spacing: 0;
}

body.wms-approval-page-shell .approval-page-head p,
html[data-theme] body.wms-approval-page-shell .approval-page-head p {
    max-width: 720px;
    margin: 6px 0 0;
    color: var(--approval-muted);
    font-size: 0.92rem;
    line-height: 1.35;
}

body.wms-approval-page-shell .approval-total-badge,
html[data-theme] body.wms-approval-page-shell .approval-total-badge,
body.wms-approval-page-shell .approval-toolbar-count,
html[data-theme] body.wms-approval-page-shell .approval-toolbar-count,
body.wms-approval-page-shell .approval-mini-badge,
html[data-theme] body.wms-approval-page-shell .approval-mini-badge {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border: 1px solid #cfdbea;
    border-radius: 999px;
    background: var(--approval-soft);
    color: var(--approval-navy);
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

body.wms-approval-page-shell .approval-total-badge strong,
html[data-theme] body.wms-approval-page-shell .approval-total-badge strong,
body.wms-approval-page-shell .approval-toolbar-count strong,
html[data-theme] body.wms-approval-page-shell .approval-toolbar-count strong {
    color: var(--approval-navy);
    font-size: 1rem;
}

body.wms-approval-page-shell .approval-helper-links,
html[data-theme] body.wms-approval-page-shell .approval-helper-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    min-width: 0;
}

body.wms-approval-page-shell .approval-helper-link,
html[data-theme] body.wms-approval-page-shell .approval-helper-link {
    min-height: 52px;
    display: grid;
    align-content: center;
    gap: 3px;
    padding: 9px 13px;
    color: var(--approval-text);
    text-decoration: none;
    border: 1px solid var(--approval-border);
    border-left: 3px solid var(--approval-gold);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 35, 62, 0.05);
}

body.wms-approval-page-shell .approval-helper-link span,
html[data-theme] body.wms-approval-page-shell .approval-helper-link span {
    color: var(--approval-muted);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.07em;
    line-height: 1;
    text-transform: uppercase;
}

body.wms-approval-page-shell .approval-helper-link strong,
html[data-theme] body.wms-approval-page-shell .approval-helper-link strong {
    min-width: 0;
    overflow: hidden;
    color: var(--approval-navy);
    font-size: 0.9rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.wms-approval-page-shell .approval-toolbar,
html[data-theme] body.wms-approval-page-shell .approval-toolbar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(150px, 0.55fr) minmax(140px, 0.46fr) minmax(128px, 0.38fr) auto;
    gap: 8px;
    align-items: end;
    padding: 10px;
    border: 1px solid var(--approval-border);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 35, 62, 0.05);
}

body.wms-approval-page-shell .approval-filter-field,
html[data-theme] body.wms-approval-page-shell .approval-filter-field {
    display: grid;
    gap: 4px;
    min-width: 0;
    margin: 0;
}

body.wms-approval-page-shell .approval-filter-field span,
html[data-theme] body.wms-approval-page-shell .approval-filter-field span {
    color: var(--approval-muted);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
}

body.wms-approval-page-shell .approval-filter-field :is(input, select),
html[data-theme] body.wms-approval-page-shell .approval-filter-field :is(input, select) {
    width: 100%;
    min-width: 0;
    min-height: 36px;
    height: 36px;
    padding: 7px 10px;
    border: 1px solid #cbd8e6;
    border-radius: 6px;
    background: #ffffff;
    color: var(--approval-text);
    font-size: 0.86rem;
    line-height: 1.2;
}

body.wms-approval-page-shell .approval-workspace,
html[data-theme] body.wms-approval-page-shell .approval-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(340px, 0.95fr);
    gap: 14px;
    align-items: start;
    min-width: 0;
}

body.wms-approval-page-shell .approval-queue-panel,
body.wms-approval-page-shell .approval-detail-panel,
html[data-theme] body.wms-approval-page-shell .approval-queue-panel,
html[data-theme] body.wms-approval-page-shell .approval-detail-panel {
    min-width: 0;
    border: 1px solid var(--approval-border);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 24px rgba(15, 35, 62, 0.07);
}

body.wms-approval-page-shell .approval-queue-panel,
html[data-theme] body.wms-approval-page-shell .approval-queue-panel {
    padding: 12px;
}

body.wms-approval-page-shell .approval-panel-head,
html[data-theme] body.wms-approval-page-shell .approval-panel-head {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

body.wms-approval-page-shell .approval-panel-head div,
html[data-theme] body.wms-approval-page-shell .approval-panel-head div {
    display: grid;
    gap: 2px;
    min-width: 0;
}

body.wms-approval-page-shell .approval-panel-head span:first-child,
html[data-theme] body.wms-approval-page-shell .approval-panel-head span:first-child {
    color: var(--approval-muted);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

body.wms-approval-page-shell .approval-panel-head strong,
html[data-theme] body.wms-approval-page-shell .approval-panel-head strong {
    color: var(--approval-navy);
    font-size: 1.02rem;
    line-height: 1.1;
}

body.wms-approval-page-shell .approval-queue-list,
html[data-theme] body.wms-approval-page-shell .approval-queue-list {
    display: grid;
    gap: 8px;
}

body.wms-approval-page-shell .approval-row,
html[data-theme] body.wms-approval-page-shell .approval-row {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 82px;
    padding: 10px 12px;
    border: 1px solid #dbe5f0;
    border-radius: 7px;
    background: #ffffff;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

body.wms-approval-page-shell .approval-row:hover,
body.wms-approval-page-shell .approval-row.is-active,
html[data-theme] body.wms-approval-page-shell .approval-row:hover,
html[data-theme] body.wms-approval-page-shell .approval-row.is-active {
    border-color: #8db9ef;
    background: #f5f9ff;
    box-shadow: inset 3px 0 0 #2563eb;
}

body.wms-approval-page-shell .approval-row[hidden],
html[data-theme] body.wms-approval-page-shell .approval-row[hidden] {
    display: none !important;
}

body.wms-approval-page-shell .approval-row-main,
body.wms-approval-page-shell .approval-row-metrics,
html[data-theme] body.wms-approval-page-shell .approval-row-main,
html[data-theme] body.wms-approval-page-shell .approval-row-metrics {
    min-width: 0;
}

body.wms-approval-page-shell .approval-row-main,
html[data-theme] body.wms-approval-page-shell .approval-row-main {
    display: grid;
    gap: 5px;
}

body.wms-approval-page-shell .approval-row-title,
html[data-theme] body.wms-approval-page-shell .approval-row-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

body.wms-approval-page-shell .approval-row-main > strong,
html[data-theme] body.wms-approval-page-shell .approval-row-main > strong {
    min-width: 0;
    overflow: hidden;
    color: var(--approval-navy);
    font-size: 0.98rem;
    line-height: 1.18;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.wms-approval-page-shell .approval-row-main > small,
html[data-theme] body.wms-approval-page-shell .approval-row-main > small {
    min-width: 0;
    overflow: hidden;
    color: var(--approval-muted);
    font-size: 0.82rem;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.wms-approval-page-shell .approval-row-metrics,
html[data-theme] body.wms-approval-page-shell .approval-row-metrics {
    display: grid;
    grid-template-columns: 72px minmax(86px, 1fr) minmax(112px, 1.2fr);
    gap: 6px;
}

body.wms-approval-page-shell .approval-row-metrics > span,
html[data-theme] body.wms-approval-page-shell .approval-row-metrics > span {
    min-width: 0;
    display: grid;
    gap: 2px;
    padding: 6px 8px;
    border: 1px solid #e2e9f2;
    border-radius: 6px;
    background: var(--approval-soft);
}

body.wms-approval-page-shell .approval-row-metrics small,
html[data-theme] body.wms-approval-page-shell .approval-row-metrics small {
    color: var(--approval-muted);
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    line-height: 1;
    text-transform: uppercase;
}

body.wms-approval-page-shell .approval-row-metrics strong,
html[data-theme] body.wms-approval-page-shell .approval-row-metrics strong {
    min-width: 0;
    overflow: hidden;
    color: var(--approval-navy);
    font-size: 0.82rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.wms-approval-page-shell .approval-row-detail-cta,
html[data-theme] body.wms-approval-page-shell .approval-row-detail-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 11px;
    border-radius: 6px;
    border: 1px solid #cbd8e6;
    background: #ffffff;
    color: var(--approval-navy);
    font-size: 0.78rem;
    font-weight: 900;
    white-space: nowrap;
}

body.wms-approval-page-shell .approval-type-badge,
body.wms-approval-page-shell .approval-status-badge,
html[data-theme] body.wms-approval-page-shell .approval-type-badge,
html[data-theme] body.wms-approval-page-shell .approval-status-badge {
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

body.wms-approval-page-shell .approval-type-badge,
html[data-theme] body.wms-approval-page-shell .approval-type-badge {
    color: #664400;
    background: #fff6db;
    border: 1px solid #ecd492;
}

body.wms-approval-page-shell .approval-status-badge.is-pending,
html[data-theme] body.wms-approval-page-shell .approval-status-badge.is-pending {
    color: #155a8a;
    background: #eaf5ff;
    border: 1px solid #cbe4fb;
}

body.wms-approval-page-shell .approval-detail-panel,
html[data-theme] body.wms-approval-page-shell .approval-detail-panel {
    position: sticky;
    top: 88px;
    max-height: calc(100dvh - 108px);
    overflow: auto;
    padding: 12px;
}

body.wms-approval-page-shell .approval-detail-mobile-head,
html[data-theme] body.wms-approval-page-shell .approval-detail-mobile-head {
    display: none;
}

body.wms-approval-page-shell .approval-detail-card,
html[data-theme] body.wms-approval-page-shell .approval-detail-card {
    display: none;
    gap: 10px;
}

body.wms-approval-page-shell .approval-detail-card.is-active,
html[data-theme] body.wms-approval-page-shell .approval-detail-card.is-active {
    display: grid;
}

body.wms-approval-page-shell .approval-detail-head,
html[data-theme] body.wms-approval-page-shell .approval-detail-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
    padding-bottom: 12px;
    border-bottom: 1px solid #e3ebf3;
}

body.wms-approval-page-shell .approval-detail-head h3,
html[data-theme] body.wms-approval-page-shell .approval-detail-head h3 {
    margin: 8px 0 0;
    color: var(--approval-navy);
    font-size: 1.22rem;
    line-height: 1.18;
    letter-spacing: 0;
}

body.wms-approval-page-shell .approval-detail-grid,
html[data-theme] body.wms-approval-page-shell .approval-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

body.wms-approval-page-shell .approval-detail-grid > div,
html[data-theme] body.wms-approval-page-shell .approval-detail-grid > div {
    min-width: 0;
    display: grid;
    gap: 4px;
    padding: 9px 10px;
    border: 1px solid #e2e9f2;
    border-radius: 7px;
    background: var(--approval-soft);
}

body.wms-approval-page-shell .approval-detail-grid span,
body.wms-approval-page-shell .approval-note-block > span,
body.wms-approval-page-shell .approval-action-panel label > span,
html[data-theme] body.wms-approval-page-shell .approval-detail-grid span,
html[data-theme] body.wms-approval-page-shell .approval-note-block > span,
html[data-theme] body.wms-approval-page-shell .approval-action-panel label > span {
    color: var(--approval-muted);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
}

body.wms-approval-page-shell .approval-detail-grid strong,
html[data-theme] body.wms-approval-page-shell .approval-detail-grid strong {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--approval-navy);
    font-size: 0.9rem;
    line-height: 1.25;
}

body.wms-approval-page-shell .approval-note-block,
html[data-theme] body.wms-approval-page-shell .approval-note-block {
    display: grid;
    gap: 7px;
    padding: 10px;
    border: 1px solid #e2e9f2;
    border-radius: 7px;
    background: #ffffff;
}

body.wms-approval-page-shell .approval-note-block p,
html[data-theme] body.wms-approval-page-shell .approval-note-block p {
    margin: 0;
    color: #41546a;
    font-size: 0.88rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

body.wms-approval-page-shell .approval-reference-strip,
html[data-theme] body.wms-approval-page-shell .approval-reference-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

body.wms-approval-page-shell .approval-reference-strip a,
html[data-theme] body.wms-approval-page-shell .approval-reference-strip a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 8px;
    border: 1px solid #d7e1ec;
    border-radius: 6px;
    background: var(--approval-soft);
    color: var(--approval-navy);
    font-size: 0.76rem;
    font-weight: 850;
    text-align: center;
    text-decoration: none;
}

body.wms-approval-page-shell .approval-action-panel,
html[data-theme] body.wms-approval-page-shell .approval-action-panel {
    position: sticky;
    bottom: 0;
    display: grid;
    gap: 7px;
    margin: 0 -12px -12px;
    padding: 8px 12px 10px;
    background: #ffffff;
    border-top: 1px solid #e3ebf3;
    box-shadow: 0 -10px 22px rgba(15, 35, 62, 0.08);
}

body.wms-approval-page-shell .approval-action-panel form,
html[data-theme] body.wms-approval-page-shell .approval-action-panel form {
    margin: 0;
}

body.wms-approval-page-shell .approval-approve-button,
body.wms-approval-page-shell .approval-reject-button,
html[data-theme] body.wms-approval-page-shell .approval-approve-button,
html[data-theme] body.wms-approval-page-shell .approval-reject-button {
    width: 100%;
    min-height: 39px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border-radius: 7px;
    font-size: 0.94rem;
    font-weight: 900;
    cursor: pointer;
}

body.wms-approval-page-shell .approval-action-panel textarea,
html[data-theme] body.wms-approval-page-shell .approval-action-panel textarea {
    min-height: 52px;
    padding: 8px 10px;
    border-radius: 7px;
    font-size: 0.86rem;
    line-height: 1.35;
}

body.wms-approval-page-shell .approval-approve-button,
html[data-theme] body.wms-approval-page-shell .approval-approve-button {
    border: 1px solid #0f7b50;
    background: #0f9461;
    color: #ffffff;
}

body.wms-approval-page-shell .approval-reject-form,
html[data-theme] body.wms-approval-page-shell .approval-reject-form {
    display: grid;
    gap: 7px;
}

body.wms-approval-page-shell .approval-reject-form label,
html[data-theme] body.wms-approval-page-shell .approval-reject-form label {
    display: grid;
    gap: 5px;
    margin: 0;
}

body.wms-approval-page-shell .approval-reject-form textarea,
html[data-theme] body.wms-approval-page-shell .approval-reject-form textarea {
    width: 100%;
    min-width: 0;
    min-height: 72px;
    resize: vertical;
    padding: 9px 10px;
    border: 1px solid #cbd8e6;
    border-radius: 7px;
    background: #ffffff;
    color: var(--approval-text);
    font-size: 0.88rem;
    line-height: 1.35;
}

body.wms-approval-page-shell .approval-reject-button,
html[data-theme] body.wms-approval-page-shell .approval-reject-button {
    border: 1px solid #efb4ad;
    background: #fff4f2;
    color: var(--approval-red);
}

body.wms-approval-page-shell .approval-empty-state,
html[data-theme] body.wms-approval-page-shell .approval-empty-state {
    display: grid;
    justify-items: center;
    gap: 8px;
    min-height: 220px;
    padding: 28px 16px;
    border: 1px dashed #cbd8e6;
    border-radius: 8px;
    background: #f8fbfe;
    color: var(--approval-muted);
    text-align: center;
}

body.wms-approval-page-shell .approval-empty-state[hidden],
html[data-theme] body.wms-approval-page-shell .approval-empty-state[hidden] {
    display: none !important;
}

body.wms-approval-page-shell .approval-empty-icon,
html[data-theme] body.wms-approval-page-shell .approval-empty-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #edf6ff;
    color: #155a8a;
    font-size: 0.72rem;
    font-weight: 900;
}

body.wms-approval-page-shell .approval-empty-state strong,
html[data-theme] body.wms-approval-page-shell .approval-empty-state strong {
    color: var(--approval-navy);
    font-size: 1rem;
}

body.wms-approval-page-shell .approval-empty-state small,
html[data-theme] body.wms-approval-page-shell .approval-empty-state small {
    max-width: 420px;
    color: var(--approval-muted);
    font-size: 0.86rem;
    line-height: 1.4;
}

body.wms-approval-page-shell .approval-detail-backdrop,
html[data-theme] body.wms-approval-page-shell .approval-detail-backdrop {
    display: none;
}

@media (max-width: 1279px) {
    body.wms-approval-page-shell .page-content.page-content-bleed,
    html[data-theme] body.wms-approval-page-shell .page-content.page-content-bleed {
        width: min(100% - 28px, 1180px) !important;
    }

    body.wms-approval-page-shell .approval-toolbar,
    html[data-theme] body.wms-approval-page-shell .approval-toolbar {
        grid-template-columns: minmax(260px, 1fr) repeat(2, minmax(150px, 0.5fr));
    }

    body.wms-approval-page-shell .approval-filter-field:nth-of-type(4),
    html[data-theme] body.wms-approval-page-shell .approval-filter-field:nth-of-type(4),
    body.wms-approval-page-shell .approval-toolbar-count,
    html[data-theme] body.wms-approval-page-shell .approval-toolbar-count {
        grid-column: span 1;
    }

    body.wms-approval-page-shell .approval-workspace,
    html[data-theme] body.wms-approval-page-shell .approval-workspace {
        grid-template-columns: 1fr;
    }

    body.wms-approval-page-shell .approval-detail-panel,
    html[data-theme] body.wms-approval-page-shell .approval-detail-panel {
        position: static;
        max-height: none;
    }
}

@media (max-width: 900px) {
    body.wms-approval-page-shell .approval-helper-links,
    html[data-theme] body.wms-approval-page-shell .approval-helper-links {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    body.wms-approval-page-shell .approval-helper-link,
    html[data-theme] body.wms-approval-page-shell .approval-helper-link {
        min-height: 46px;
    }

    body.wms-approval-page-shell .approval-toolbar,
    html[data-theme] body.wms-approval-page-shell .approval-toolbar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.wms-approval-page-shell .approval-filter-search,
    html[data-theme] body.wms-approval-page-shell .approval-filter-search {
        grid-column: 1 / -1;
    }

    body.wms-approval-page-shell .approval-row,
    html[data-theme] body.wms-approval-page-shell .approval-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 9px;
    }

    body.wms-approval-page-shell .approval-row-metrics,
    html[data-theme] body.wms-approval-page-shell .approval-row-metrics {
        grid-template-columns: 76px minmax(0, 1fr) minmax(120px, 1fr);
    }

    body.wms-approval-page-shell .approval-row-detail-cta,
    html[data-theme] body.wms-approval-page-shell .approval-row-detail-cta {
        justify-self: start;
    }
}

@media (max-width: 767px) {
    body.wms-approval-page-shell,
    html[data-theme] body.wms-approval-page-shell {
        overflow-x: hidden;
    }

    body.wms-approval-page-shell .page-content.page-content-bleed,
    html[data-theme] body.wms-approval-page-shell .page-content.page-content-bleed {
        width: min(100% - 20px, 640px) !important;
        padding-bottom: 24px !important;
        overflow-x: hidden !important;
    }

    body.wms-approval-page-shell .approval-page,
    html[data-theme] body.wms-approval-page-shell .approval-page {
        gap: 10px;
    }

    body.wms-approval-page-shell .approval-page-head,
    html[data-theme] body.wms-approval-page-shell .approval-page-head {
        grid-template-columns: minmax(0, 1fr);
        padding: 12px;
    }

    body.wms-approval-page-shell .approval-page-head h2,
    html[data-theme] body.wms-approval-page-shell .approval-page-head h2 {
        font-size: 1.72rem;
    }

    body.wms-approval-page-shell .approval-total-badge,
    html[data-theme] body.wms-approval-page-shell .approval-total-badge {
        justify-self: start;
    }

    body.wms-approval-page-shell .approval-toolbar,
    html[data-theme] body.wms-approval-page-shell .approval-toolbar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 9px;
    }

    body.wms-approval-page-shell .approval-toolbar-count,
    html[data-theme] body.wms-approval-page-shell .approval-toolbar-count {
        justify-content: center;
        align-self: end;
    }

    body.wms-approval-page-shell .approval-helper-links,
    html[data-theme] body.wms-approval-page-shell .approval-helper-links {
        display: flex;
        gap: 8px;
        max-width: 100%;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: thin;
    }

    body.wms-approval-page-shell .approval-helper-link,
    html[data-theme] body.wms-approval-page-shell .approval-helper-link {
        flex: 0 0 min(180px, 58vw);
    }

    body.wms-approval-page-shell .approval-queue-panel,
    html[data-theme] body.wms-approval-page-shell .approval-queue-panel {
        padding: 10px;
    }

    body.wms-approval-page-shell .approval-row,
    html[data-theme] body.wms-approval-page-shell .approval-row {
        min-height: 0;
        padding: 10px;
    }

    body.wms-approval-page-shell .approval-row-main > strong,
    body.wms-approval-page-shell .approval-row-main > small,
    html[data-theme] body.wms-approval-page-shell .approval-row-main > strong,
    html[data-theme] body.wms-approval-page-shell .approval-row-main > small {
        white-space: normal;
    }

    body.wms-approval-page-shell .approval-row-metrics,
    html[data-theme] body.wms-approval-page-shell .approval-row-metrics {
        grid-template-columns: 1fr 1fr;
    }

    body.wms-approval-page-shell .approval-row-metrics > span:last-child,
    html[data-theme] body.wms-approval-page-shell .approval-row-metrics > span:last-child {
        grid-column: 1 / -1;
    }

    body.wms-approval-page-shell .approval-detail-backdrop,
    html[data-theme] body.wms-approval-page-shell .approval-detail-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1050;
        border: 0;
        background: rgba(10, 24, 42, 0.42);
    }

    body.wms-approval-page-shell.approval-detail-open .approval-detail-backdrop,
    html[data-theme] body.wms-approval-page-shell.approval-detail-open .approval-detail-backdrop {
        display: block;
    }

    body.wms-approval-page-shell .approval-detail-panel,
    html[data-theme] body.wms-approval-page-shell .approval-detail-panel {
        position: fixed;
        inset: auto 0 0;
        z-index: 1060;
        width: 100%;
        max-height: 88dvh;
        padding: 12px;
        border-radius: 14px 14px 0 0;
        overflow: auto;
        transform: translateY(108%);
        transition: transform 0.2s ease;
        box-shadow: 0 -18px 44px rgba(10, 24, 42, 0.18);
    }

    body.wms-approval-page-shell.approval-detail-open .approval-detail-panel,
    html[data-theme] body.wms-approval-page-shell.approval-detail-open .approval-detail-panel {
        transform: translateY(0);
    }

    body.wms-approval-page-shell .approval-detail-mobile-head,
    html[data-theme] body.wms-approval-page-shell .approval-detail-mobile-head {
        position: sticky;
        top: 0;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin: -12px -12px 10px;
        padding: 10px 12px;
        border-bottom: 1px solid #e3ebf3;
        background: #ffffff;
    }

    body.wms-approval-page-shell .approval-detail-mobile-head strong,
    html[data-theme] body.wms-approval-page-shell .approval-detail-mobile-head strong {
        color: var(--approval-navy);
    }

    body.wms-approval-page-shell .approval-detail-mobile-head button,
    html[data-theme] body.wms-approval-page-shell .approval-detail-mobile-head button {
        min-height: 34px;
        padding: 6px 10px;
        border: 1px solid #cbd8e6;
        border-radius: 7px;
        background: #ffffff;
        color: var(--approval-navy);
        font-weight: 900;
    }

    body.wms-approval-page-shell .approval-detail-head,
    html[data-theme] body.wms-approval-page-shell .approval-detail-head {
        grid-template-columns: 1fr;
    }

    body.wms-approval-page-shell .approval-detail-grid,
    html[data-theme] body.wms-approval-page-shell .approval-detail-grid {
        grid-template-columns: 1fr;
    }

    body.wms-approval-page-shell .approval-reference-strip,
    html[data-theme] body.wms-approval-page-shell .approval-reference-strip {
        grid-template-columns: 1fr;
    }

    body.wms-approval-page-shell .approval-action-panel,
    html[data-theme] body.wms-approval-page-shell .approval-action-panel {
        bottom: 0;
        margin: 0 -12px -12px;
        padding: 10px 12px 12px;
        background: #ffffff;
        border-top: 1px solid #e3ebf3;
        box-shadow: 0 -10px 22px rgba(15, 35, 62, 0.08);
    }

    body.wms-approval-page-shell .approval-approve-button,
    body.wms-approval-page-shell .approval-reject-button,
    html[data-theme] body.wms-approval-page-shell .approval-approve-button,
    html[data-theme] body.wms-approval-page-shell .approval-reject-button {
        min-height: 44px;
    }
}

@media (max-width: 420px) {
    body.wms-approval-page-shell .approval-row-metrics,
    html[data-theme] body.wms-approval-page-shell .approval-row-metrics {
        grid-template-columns: 1fr;
    }

    body.wms-approval-page-shell .approval-row-metrics > span:last-child,
    html[data-theme] body.wms-approval-page-shell .approval-row-metrics > span:last-child {
        grid-column: auto;
    }
}

body.pos-pending-modal-open,
html[data-theme] body.pos-pending-modal-open {
    overflow: hidden;
}

body .pos-terminal-clean.pos-ipos-refactor .pos-pending-badge,
html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-pending-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    min-height: 20px;
    padding: 2px 7px;
    border: 1px solid #dbe3ef;
    border-radius: 999px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

body .pos-terminal-clean.pos-ipos-refactor .pos-pending-modal[hidden],
html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-pending-modal[hidden] {
    display: none !important;
}

body .pos-terminal-clean.pos-ipos-refactor .pos-pending-modal,
html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-pending-modal {
    position: fixed;
    inset: 0;
    z-index: 2450;
    display: grid;
    place-items: center;
    padding: 18px;
    background: transparent !important;
    background-image: none !important;
}

body .pos-terminal-clean.pos-ipos-refactor .pos-pending-modal-backdrop,
html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-pending-modal-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.28) !important;
    background-image: none !important;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

body.internal-clean-page-shell #posPendingModal > .pos-pending-modal-backdrop,
html[data-theme] body.internal-clean-page-shell #posPendingModal > .pos-pending-modal-backdrop {
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: rgba(15, 23, 42, 0.28) !important;
    background-image: none !important;
    color: transparent !important;
    box-shadow: none !important;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

body .pos-terminal-clean.pos-ipos-refactor .pos-pending-modal::before,
body .pos-terminal-clean.pos-ipos-refactor .pos-pending-modal::after,
body .pos-terminal-clean.pos-ipos-refactor .pos-pending-modal-backdrop::before,
body .pos-terminal-clean.pos-ipos-refactor .pos-pending-modal-backdrop::after,
body .pos-terminal-clean.pos-ipos-refactor .pos-pending-modal-window::before,
body .pos-terminal-clean.pos-ipos-refactor .pos-pending-modal-window::after,
html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-pending-modal::before,
html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-pending-modal::after,
html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-pending-modal-backdrop::before,
html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-pending-modal-backdrop::after,
html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-pending-modal-window::before,
html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-pending-modal-window::after {
    content: none !important;
    display: none !important;
    background: none !important;
    background-image: none !important;
}

body .pos-terminal-clean.pos-ipos-refactor .pos-pending-modal-window,
html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-pending-modal-window {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    width: min(900px, calc(100vw - 32px));
    max-height: min(80vh, 720px);
    overflow: hidden;
    border: 1px solid #dbe3ef !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    background-image: none !important;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18) !important;
}

body .pos-terminal-clean.pos-ipos-refactor .pos-pending-modal-head,
html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-pending-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px 12px;
    border-bottom: 1px solid #dbe3ef;
    background: #ffffff;
}

body .pos-terminal-clean.pos-ipos-refactor .pos-pending-modal-head h3,
html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-pending-modal-head h3 {
    margin: 2px 0 0;
    color: #071d3a;
    font-size: 22px;
    line-height: 1.1;
}

body .pos-terminal-clean.pos-ipos-refactor .pos-pending-modal-head small,
html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-pending-modal-head small {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
}

body .pos-terminal-clean.pos-ipos-refactor .pos-pending-modal-close,
html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-pending-modal-close {
    width: 38px;
    height: 38px;
    border: 1px solid #dbe3ef !important;
    border-radius: 999px;
    background: #f8fafc !important;
    background-image: none !important;
    color: #0f172a !important;
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
    box-shadow: none !important;
}

body .pos-terminal-clean.pos-ipos-refactor .pos-pending-modal-close:hover,
html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-pending-modal-close:hover {
    background: #eef2f7 !important;
    background-image: none !important;
}

body.internal-clean-page-shell #posPendingModal .pos-pending-modal-close,
html[data-theme] body.internal-clean-page-shell #posPendingModal .pos-pending-modal-close {
    width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 !important;
    border: 1px solid #dbe3ef !important;
    border-radius: 999px !important;
    background: #f8fafc !important;
    background-image: none !important;
    color: #0f172a !important;
    box-shadow: none !important;
}

body.internal-clean-page-shell #posPendingModal .pos-pending-modal-close:hover,
html[data-theme] body.internal-clean-page-shell #posPendingModal .pos-pending-modal-close:hover {
    background: #eef2f7 !important;
    background-image: none !important;
}

body .pos-terminal-clean.pos-ipos-refactor .pos-pending-toolbar,
html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-pending-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #dbe3ef;
    background: #f8fafc;
}

body .pos-terminal-clean.pos-ipos-refactor .pos-pending-toolbar input,
html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-pending-toolbar input {
    min-width: 0;
    height: 38px;
    border: 1px solid #dbe3ef;
    border-radius: 7px;
    padding: 0 12px;
    font-size: 13px;
}

body .pos-terminal-clean.pos-ipos-refactor .pos-pending-modal input:focus,
body .pos-terminal-clean.pos-ipos-refactor .pos-pending-modal select:focus,
body .pos-terminal-clean.pos-ipos-refactor .pos-pending-modal textarea:focus,
html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-pending-modal input:focus,
html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-pending-modal select:focus,
html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-pending-modal textarea:focus {
    outline: none;
    border-color: #93a8c7 !important;
    box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.18) !important;
}

body .pos-terminal-clean.pos-ipos-refactor .pos-pending-list,
html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-pending-list {
    display: grid;
    align-content: start;
    gap: 8px;
    min-height: 180px;
    overflow: auto;
    padding: 12px 16px 16px;
    background: #ffffff;
}

body .pos-terminal-clean.pos-ipos-refactor .pos-pending-card,
html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-pending-card {
    display: grid;
    grid-template-columns: minmax(150px, 0.9fr) minmax(220px, 1.3fr) minmax(180px, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-width: 0;
    padding: 10px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #ffffff;
}

body .pos-terminal-clean.pos-ipos-refactor .pos-pending-main,
body .pos-terminal-clean.pos-ipos-refactor .pos-pending-customer,
body .pos-terminal-clean.pos-ipos-refactor .pos-pending-meta,
html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-pending-main,
html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-pending-customer,
html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-pending-meta {
    display: grid;
    gap: 3px;
    min-width: 0;
}

body .pos-terminal-clean.pos-ipos-refactor .pos-pending-main strong,
body .pos-terminal-clean.pos-ipos-refactor .pos-pending-customer strong,
body .pos-terminal-clean.pos-ipos-refactor .pos-pending-meta span:first-child,
html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-pending-main strong,
html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-pending-customer strong,
html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-pending-meta span:first-child {
    overflow: hidden;
    color: #071d3a;
    font-size: 13px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body .pos-terminal-clean.pos-ipos-refactor .pos-pending-main span,
body .pos-terminal-clean.pos-ipos-refactor .pos-pending-customer span,
body .pos-terminal-clean.pos-ipos-refactor .pos-pending-meta span,
html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-pending-main span,
html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-pending-customer span,
html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-pending-meta span {
    overflow: hidden;
    color: #64748b;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body .pos-terminal-clean.pos-ipos-refactor .pos-pending-actions,
html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-pending-actions {
    display: flex;
    justify-content: flex-end;
    gap: 7px;
}

body .pos-terminal-clean.pos-ipos-refactor .pos-pending-actions .pos-vintage-mini,
html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-pending-actions .pos-vintage-mini {
    min-height: 34px;
    padding: 7px 11px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 900;
}

body .pos-terminal-clean.pos-ipos-refactor .pos-pending-actions .pos-vintage-mini.is-primary,
html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-pending-actions .pos-vintage-mini.is-primary {
    border-color: #0b2241;
    background: #0b2241;
    color: #ffffff;
}

body .pos-terminal-clean.pos-ipos-refactor .pos-pending-toast,
html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-pending-toast,
body > .pos-pending-toast,
html[data-theme] body > .pos-pending-toast {
    position: fixed;
    right: 18px;
    bottom: 72px;
    z-index: 2600;
    max-width: min(360px, calc(100vw - 32px));
    padding: 10px 14px;
    border: 1px solid #cbd8e6;
    border-radius: 8px;
    background: #0b2241;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

body .pos-terminal-clean.pos-ipos-refactor .pos-pending-toast.is-visible,
html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-pending-toast.is-visible,
body > .pos-pending-toast.is-visible,
html[data-theme] body > .pos-pending-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 760px) {
    body .pos-terminal-clean.pos-ipos-refactor .pos-pending-modal,
    html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-pending-modal {
        align-items: end;
        padding: 10px;
    }

    body .pos-terminal-clean.pos-ipos-refactor .pos-pending-modal-window,
    html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-pending-modal-window {
        width: min(100%, 640px);
        max-height: 88dvh;
        border-radius: 16px 16px 0 0 !important;
    }

    body .pos-terminal-clean.pos-ipos-refactor .pos-pending-toolbar,
    html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-pending-toolbar {
        grid-template-columns: minmax(0, 1fr);
    }

    body .pos-terminal-clean.pos-ipos-refactor .pos-pending-toolbar .pos-pending-badge,
    html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-pending-toolbar .pos-pending-badge {
        justify-self: start;
    }

    body .pos-terminal-clean.pos-ipos-refactor .pos-pending-card,
    html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-pending-card {
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch;
    }

    body .pos-terminal-clean.pos-ipos-refactor .pos-pending-actions,
    html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-pending-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    body .pos-terminal-clean.pos-ipos-refactor .pos-pending-actions .pos-vintage-mini,
    html[data-theme] body .pos-terminal-clean.pos-ipos-refactor .pos-pending-actions .pos-vintage-mini {
        width: 100%;
    }
}

/* POS payment modal size lock: checkout must dominate desktop monitors. */
body.pos-page-wide #posPaymentModal.pos-payment-modal,
html[data-theme] body.pos-page-wide #posPaymentModal.pos-payment-modal {
    align-items: center !important;
    justify-content: center !important;
    padding: 16px !important;
    overflow: hidden !important;
    background: transparent !important;
    background-image: none !important;
    transform: none !important;
    zoom: 1 !important;
}

body.internal-clean-page-shell #posPaymentModal > .pos-payment-modal-backdrop,
html[data-theme] body.internal-clean-page-shell #posPaymentModal > .pos-payment-modal-backdrop {
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: rgba(15, 23, 42, 0.28) !important;
    background-image: none !important;
    color: transparent !important;
    box-shadow: none !important;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

body.pos-page-wide #posPaymentModal .pos-payment-modal-window,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-modal-window {
    width: min(1280px, 94vw) !important;
    max-width: 1280px !important;
    min-width: min(980px, 94vw) !important;
    max-height: min(900px, calc(100vh - 16px)) !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    border: 1px solid #dbe3ef !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    background-image: none !important;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22) !important;
    transform: none !important;
    zoom: 1 !important;
}

body.pos-page-wide #posPaymentModal .pos-payment-modal-head,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-modal-head {
    flex: 0 0 auto !important;
    min-height: 68px !important;
    padding: 16px 20px 14px !important;
    border-bottom: 1px solid #dbe3ef !important;
    background: #ffffff !important;
}

body.pos-page-wide #posPaymentModal .pos-payment-modal-head .pos-ipos-kicker,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-modal-head .pos-ipos-kicker {
    font-size: 12px !important;
    line-height: 1.1 !important;
    font-weight: 900 !important;
}

body.pos-page-wide #posPaymentModal .pos-payment-modal-head h3,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-modal-head h3 {
    margin: 3px 0 0 !important;
    font-size: 22px !important;
    line-height: 1.15 !important;
    font-weight: 900 !important;
}

body.internal-clean-page-shell #posPaymentModal .pos-payment-modal-close,
html[data-theme] body.internal-clean-page-shell #posPaymentModal .pos-payment-modal-close {
    width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    border: 1px solid #dbe3ef !important;
    border-radius: 999px !important;
    background: #f8fafc !important;
    background-image: none !important;
    color: #0f172a !important;
    box-shadow: none !important;
    font-size: 26px !important;
}

body.internal-clean-page-shell #posPaymentModal .pos-payment-modal-close:hover,
html[data-theme] body.internal-clean-page-shell #posPaymentModal .pos-payment-modal-close:hover {
    background: #eef2f7 !important;
    background-image: none !important;
}

body.pos-page-wide #posPaymentModal .pos-payment-modal-body,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-modal-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 16px 18px 18px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    scrollbar-width: thin !important;
}

body.pos-page-wide #posPaymentModal .pos-ipos-payment-panel,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-ipos-payment-panel {
    min-height: 0 !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr) !important;
    grid-template-areas:
        "total total"
        "cash summary"
        "methods summary"
        "adjust footer"
        "shortcuts footer"
        "progress progress" !important;
    gap: 6px 12px !important;
    align-items: stretch !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.pos-page-wide #posPaymentModal .pos-payment-total-row,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-total-row {
    grid-area: total !important;
}

body.pos-page-wide #posPaymentModal .pos-payment-cash-grid,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-cash-grid {
    grid-area: cash !important;
    align-items: start !important;
}

body.pos-page-wide #posPaymentModal .pos-payment-adjustment,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-adjustment {
    grid-area: adjust !important;
}

body.pos-page-wide #posPaymentModal .pos-payment-summary,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-summary {
    grid-area: summary !important;
}

body.pos-page-wide #posPaymentModal .pos-ipos-methods,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-ipos-methods {
    grid-area: methods !important;
}

body.pos-page-wide #posPaymentModal .pos-ipos-shortcuts,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-ipos-shortcuts {
    grid-area: shortcuts !important;
}

body.pos-page-wide #posPaymentModal .pos-ipos-checkout-footer,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-ipos-checkout-footer {
    grid-area: footer !important;
}

body.pos-page-wide #posPaymentModal .pos-checkout-progress,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-checkout-progress {
    grid-area: progress !important;
}

body.pos-page-wide #posPaymentModal .pos-payment-total-row,
body.pos-page-wide #posPaymentModal .pos-ipos-totalbox,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-total-row,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-ipos-totalbox {
    min-height: 96px !important;
    height: auto !important;
    padding: 14px 16px !important;
    display: grid !important;
    grid-template-columns: 180px minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    gap: 8px 16px !important;
    align-items: center !important;
    border: 1px solid #e3d77b !important;
    border-radius: 10px !important;
    background: #fff7b8 !important;
}

body.pos-page-wide #posPaymentModal .pos-payment-total-row .pos-ipos-kicker,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-total-row .pos-ipos-kicker {
    grid-column: 1 !important;
    grid-row: 1 !important;
    align-self: end !important;
    font-size: 15px !important;
    line-height: 1.1 !important;
    font-weight: 900 !important;
}

body.pos-page-wide #posPaymentModal .pos-payment-total-row > strong,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-total-row > strong {
    grid-column: 2 !important;
    grid-row: 1 / span 2 !important;
    justify-self: stretch !important;
    align-self: center !important;
    min-width: 0 !important;
    padding: 8px 14px !important;
    overflow: hidden !important;
    border: 1px solid #ded36d !important;
    border-radius: 7px !important;
    background: #fff400 !important;
    color: #020617 !important;
    font-size: 60px !important;
    line-height: 1 !important;
    font-weight: 950 !important;
    letter-spacing: 0 !important;
    text-align: right !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body.pos-page-wide #posPaymentModal .pos-payment-total-row .pos-ipos-totalmeta,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-total-row .pos-ipos-totalmeta {
    grid-column: 1 !important;
    grid-row: 2 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    color: #0f172a !important;
    font-size: 14px !important;
    font-weight: 800 !important;
}

body.pos-page-wide #posPaymentModal .pos-payment-cash-grid,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-cash-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 8px !important;
    padding: 10px !important;
    min-height: 92px !important;
    height: 92px !important;
    align-content: start !important;
    border: 1px solid #dbe3ef !important;
    border-radius: 10px !important;
    background: #ffffff !important;
}

body.pos-page-wide #posPaymentModal .pos-payment-pay-row,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-pay-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 6px !important;
    align-content: start !important;
    min-height: 68px !important;
    height: 68px !important;
    padding: 0 !important;
}

body.pos-page-wide #posPaymentModal .pos-payment-pay-row span,
body.pos-page-wide #posPaymentModal .pos-payment-adjustment-row > span,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-pay-row span,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-adjustment-row > span {
    color: #0f172a !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
}

body.pos-page-wide #posPaymentModal .pos-payment-pay-row-wide,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-pay-row-wide {
    grid-column: auto !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
}

body.pos-page-wide #posPaymentModal .pos-payment-pay-row[data-pos-payment-field="debit"].is-active-payment-field,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-pay-row[data-pos-payment-field="debit"].is-active-payment-field {
    grid-template-columns: minmax(0, 1fr) 72px !important;
}

body.pos-page-wide #posPaymentModal .pos-payment-pay-row-wide span,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-pay-row-wide span {
    grid-column: 1 / -1 !important;
}

body.pos-page-wide #posPaymentModal .pos-payment-pay-row[data-pos-payment-field="debit"].is-active-payment-field input,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-pay-row[data-pos-payment-field="debit"].is-active-payment-field input {
    grid-column: 1 !important;
    padding-right: 12px !important;
}

body.pos-page-wide #posPaymentModal .pos-payment-bank-trigger,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-bank-trigger {
    width: auto !important;
    min-width: 72px !important;
    min-height: 42px !important;
    height: 42px !important;
    padding: 0 14px !important;
    border: 1px solid #dbe3ef !important;
    border-radius: 8px !important;
    background: #f8fafc !important;
    background-image: none !important;
    color: #0f172a !important;
    font-size: 13px !important;
    font-weight: 900 !important;
}

body.pos-page-wide #posPaymentModal .pos-payment-pay-row[data-pos-payment-field="debit"].is-active-payment-field .pos-payment-bank-trigger,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-pay-row[data-pos-payment-field="debit"].is-active-payment-field .pos-payment-bank-trigger {
    position: static !important;
    right: auto !important;
    bottom: auto !important;
    display: inline-flex !important;
    grid-column: 2 !important;
    align-self: end !important;
}

body.pos-page-wide #posPaymentModal .pos-payment-adjustment,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-adjustment {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    padding: 10px !important;
    border: 1px solid #dbe3ef !important;
    border-radius: 10px !important;
    background: #f8fafc !important;
}

body.pos-page-wide #posPaymentModal .pos-payment-adjustment-row,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-adjustment-row {
    display: grid !important;
    grid-template-columns: 130px minmax(0, 1fr) !important;
    gap: 10px !important;
    align-items: center !important;
}

body.pos-page-wide #posPaymentModal .pos-ipos-adjustment-controls,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-ipos-adjustment-controls {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 68px minmax(0, 1fr) !important;
    gap: 8px !important;
}

body.pos-page-wide #posPaymentModal .pos-payment-summary,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-summary {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0 !important;
    overflow: hidden !important;
    border: 1px solid #dbe3ef !important;
    border-radius: 10px !important;
    background: #ffffff !important;
}

body.pos-page-wide #posPaymentModal .pos-payment-summary > div,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-summary > div {
    min-height: 42px !important;
    height: auto !important;
    padding: 0 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    border-bottom: 1px solid #dbe3ef !important;
    background: #ffffff !important;
    font-size: 15px !important;
}

body.pos-page-wide #posPaymentModal .pos-payment-summary span,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-summary span {
    min-width: max-content !important;
    color: #475569 !important;
    font-size: 15px !important;
}

body.pos-page-wide #posPaymentModal .pos-payment-summary strong,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-summary strong {
    margin-left: auto !important;
    color: #0f172a !important;
    font-size: 16px !important;
    line-height: 1.15 !important;
    font-weight: 900 !important;
    text-align: right !important;
}

body.pos-page-wide #posPaymentModal .pos-payment-preview-row,
body.pos-page-wide #posPaymentModal .pos-ipos-summaryrows,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-preview-row,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-ipos-summaryrows {
    display: none !important;
}

body.pos-page-wide #posPaymentModal input:not([type="hidden"]),
body.pos-page-wide #posPaymentModal select,
html[data-theme] body.pos-page-wide #posPaymentModal input:not([type="hidden"]),
html[data-theme] body.pos-page-wide #posPaymentModal select {
    min-height: 42px !important;
    height: 42px !important;
    padding: 0 12px !important;
    border-radius: 8px !important;
    font-size: 15px !important;
}

body.pos-page-wide #posPaymentModal input[type="number"],
html[data-theme] body.pos-page-wide #posPaymentModal input[type="number"] {
    text-align: right !important;
}

body.pos-page-wide #posPaymentModal .pos-ipos-methods,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-ipos-methods {
    display: grid !important;
    grid-template-columns: 120px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 8px 10px !important;
    min-height: 0 !important;
    padding: 10px !important;
    border: 1px solid #dbe3ef !important;
    border-radius: 10px !important;
    background: #f8fafc !important;
}

body.pos-page-wide #posPaymentModal .pos-ipos-methods > .pos-ipos-kicker,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-ipos-methods > .pos-ipos-kicker {
    font-size: 13px !important;
    font-weight: 900 !important;
}

body.pos-page-wide #posPaymentModal .pos-ipos-methodgrid,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-ipos-methodgrid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 7px !important;
}

body.pos-page-wide #posPaymentModal .pos-ipos-methodgrid .pos-payment-method,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-ipos-methodgrid .pos-payment-method {
    min-height: 40px !important;
    height: auto !important;
    padding: 7px 16px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 900 !important;
}

body.pos-page-wide #posPaymentModal .split-actions,
html[data-theme] body.pos-page-wide #posPaymentModal .split-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
}

body.pos-page-wide #posPaymentModal .pos-ipos-split-toggle,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-ipos-split-toggle {
    grid-column: 1 / -1 !important;
    min-height: 36px !important;
    height: auto !important;
    padding: 7px 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    border-radius: 8px !important;
}

body.pos-page-wide #posPaymentModal .pos-ipos-split-toggle small,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-ipos-split-toggle small {
    display: none !important;
}

body.pos-page-wide #posPaymentModal .pos-ipos-split-panel,
body.pos-page-wide #posPaymentModal #posPaymentBankSummary,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-ipos-split-panel,
html[data-theme] body.pos-page-wide #posPaymentModal #posPaymentBankSummary {
    grid-column: 1 / -1 !important;
}

body.pos-page-wide #posPaymentModal .pos-ipos-shortcuts,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-ipos-shortcuts {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 8px !important;
}

body.pos-page-wide #posPaymentModal .pos-vintage-mini,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-vintage-mini {
    min-height: 36px !important;
    height: auto !important;
    padding: 7px 12px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 900 !important;
}

body.pos-page-wide #posPaymentModal .pos-ipos-checkout-footer,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-ipos-checkout-footer {
    position: static !important;
    align-self: end !important;
    margin: 0 !important;
    padding: 2px 0 0 !important;
    display: grid !important;
    grid-template-columns: 1fr 1.2fr .8fr !important;
    gap: 12px !important;
    align-items: center !important;
    border-top: 0 !important;
    background: #ffffff !important;
}

body.pos-page-wide #posPaymentModal .pos-ipos-checkout-footer .pos-vintage-button,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-ipos-checkout-footer .pos-vintage-button {
    min-height: 48px !important;
    height: auto !important;
    padding: 10px 16px !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-weight: 950 !important;
}

body.pos-page-wide #posPaymentModal .pos-checkout-progress,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-checkout-progress {
    margin: 0 !important;
}

@media (min-width: 1600px) {
    body.pos-page-wide #posPaymentModal .pos-payment-total-row > strong,
    html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-total-row > strong {
        font-size: 72px !important;
    }
}

@media (max-width: 1100px) {
    body.pos-page-wide #posPaymentModal .pos-payment-modal-window,
    html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-modal-window {
        min-width: 0 !important;
        width: 94vw !important;
    }

    body.pos-page-wide #posPaymentModal .pos-payment-cash-grid,
    html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-cash-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    body.pos-page-wide #posPaymentModal .pos-payment-adjustment,
    body.pos-page-wide #posPaymentModal .pos-payment-summary,
    body.pos-page-wide #posPaymentModal .pos-ipos-methods,
    html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-adjustment,
    html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-summary,
    html[data-theme] body.pos-page-wide #posPaymentModal .pos-ipos-methods {
        grid-template-columns: 1fr !important;
    }

    body.pos-page-wide #posPaymentModal .pos-ipos-payment-panel,
    html[data-theme] body.pos-page-wide #posPaymentModal .pos-ipos-payment-panel {
        grid-template-columns: 1fr !important;
        grid-template-areas:
            "total"
            "cash"
            "adjust"
            "summary"
            "methods"
            "shortcuts"
            "footer"
            "progress" !important;
    }
}

@media (max-width: 760px) {
    body.pos-page-wide #posPaymentModal.pos-payment-modal,
    html[data-theme] body.pos-page-wide #posPaymentModal.pos-payment-modal {
        align-items: end !important;
        padding: 8px !important;
    }

    body.pos-page-wide #posPaymentModal .pos-payment-modal-window,
    html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-modal-window {
        width: calc(100vw - 16px) !important;
        max-width: calc(100vw - 16px) !important;
        min-width: 0 !important;
        max-height: 92dvh !important;
        border-radius: 16px 16px 0 0 !important;
    }

    body.pos-page-wide #posPaymentModal .pos-payment-modal-head,
    html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-modal-head {
        min-height: 60px !important;
        padding: 12px 14px !important;
    }

    body.pos-page-wide #posPaymentModal .pos-payment-modal-body,
    html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-modal-body {
        padding: 12px !important;
    }

    body.pos-page-wide #posPaymentModal .pos-payment-total-row,
    body.pos-page-wide #posPaymentModal .pos-ipos-totalbox,
    html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-total-row,
    html[data-theme] body.pos-page-wide #posPaymentModal .pos-ipos-totalbox {
        grid-template-columns: 1fr !important;
        min-height: 120px !important;
    }

    body.pos-page-wide #posPaymentModal .pos-payment-total-row > strong,
    html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-total-row > strong {
        grid-column: 1 !important;
        grid-row: auto !important;
        font-size: 46px !important;
    }

    body.pos-page-wide #posPaymentModal .pos-payment-cash-grid,
    body.pos-page-wide #posPaymentModal .pos-ipos-shortcuts,
    body.pos-page-wide #posPaymentModal .pos-ipos-checkout-footer,
    html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-cash-grid,
    html[data-theme] body.pos-page-wide #posPaymentModal .pos-ipos-shortcuts,
    html[data-theme] body.pos-page-wide #posPaymentModal .pos-ipos-checkout-footer {
        grid-template-columns: 1fr !important;
    }

    body.pos-page-wide #posPaymentModal .pos-payment-adjustment-row,
    html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-adjustment-row {
        grid-template-columns: 1fr !important;
    }
}

/* POS edit mode lock: compact banner must not cover customer fields. */
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor.pos-edit-mode,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor.pos-edit-mode {
    overflow-x: clip !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor.pos-edit-mode .pos-ipos-layout,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor.pos-edit-mode .pos-ipos-layout {
    grid-template-rows: 126px 54px minmax(0, 1fr) !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor.pos-edit-mode .pos-ipos-main,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor.pos-edit-mode .pos-ipos-main {
    grid-template-rows: 126px 54px minmax(0, 1fr) !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor.pos-edit-mode .pos-ipos-transaction-panel,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor.pos-edit-mode .pos-ipos-transaction-panel {
    position: relative !important;
    z-index: 1 !important;
    display: grid !important;
    grid-template-rows: minmax(42px, auto) 58px !important;
    gap: 6px !important;
    min-height: 126px !important;
    height: 126px !important;
    padding: 7px 8px !important;
    overflow: visible !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor.pos-edit-mode .pos-edit-banner,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor.pos-edit-mode .pos-edit-banner {
    position: relative !important;
    z-index: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    min-height: 42px !important;
    max-height: 52px !important;
    padding: 8px 12px !important;
    border: 1px solid #e8c35d !important;
    border-radius: 8px !important;
    background: #fff8df !important;
    color: #10243f !important;
    box-shadow: none !important;
    pointer-events: auto !important;
    overflow: hidden !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor.pos-edit-mode .pos-edit-banner *,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor.pos-edit-mode .pos-edit-banner * {
    pointer-events: auto !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor.pos-edit-mode .pos-edit-copy,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor.pos-edit-mode .pos-edit-copy {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 0 !important;
    color: #10243f !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor.pos-edit-mode .pos-edit-copy > span:last-child,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor.pos-edit-mode .pos-edit-copy > span:last-child {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor.pos-edit-mode .pos-edit-badge,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor.pos-edit-mode .pos-edit-badge {
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 24px !important;
    padding: 4px 8px !important;
    border: 1px solid #d6a928 !important;
    border-radius: 999px !important;
    background: #f7c948 !important;
    color: #0f172a !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor.pos-edit-mode .pos-edit-cancel,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor.pos-edit-mode .pos-edit-cancel {
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 86px !important;
    min-height: 30px !important;
    height: 30px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    border-radius: 7px !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor.pos-edit-mode .pos-ipos-transaction-grid.pos-customer-row,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor.pos-edit-mode .pos-ipos-transaction-grid.pos-customer-row {
    position: relative !important;
    z-index: 2 !important;
    grid-row: 2 !important;
    height: 58px !important;
    min-height: 58px !important;
    pointer-events: auto !important;
    overflow: visible !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor.pos-edit-mode .pos-customer-row .pos-ipos-field,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor.pos-edit-mode .pos-customer-row .pos-ipos-field {
    pointer-events: auto !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor.pos-edit-mode .pos-customer-row input,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor.pos-edit-mode .pos-customer-row select,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor.pos-edit-mode .pos-ipos-bottom-panel input,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor.pos-edit-mode .pos-ipos-bottom-panel select,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor.pos-edit-mode .pos-customer-row input,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor.pos-edit-mode .pos-customer-row select,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor.pos-edit-mode .pos-ipos-bottom-panel input,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor.pos-edit-mode .pos-ipos-bottom-panel select {
    position: relative !important;
    z-index: 3 !important;
    pointer-events: auto !important;
}

@media (max-width: 1200px) {
    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor.pos-edit-mode .pos-ipos-layout,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor.pos-edit-mode .pos-ipos-layout {
        grid-template-rows: auto 82px 54px minmax(0, 1fr) !important;
    }

    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor.pos-edit-mode .pos-ipos-main,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor.pos-edit-mode .pos-ipos-main {
        grid-template-rows: 236px 54px minmax(0, 1fr) !important;
    }

    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor.pos-edit-mode .pos-ipos-transaction-panel,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor.pos-edit-mode .pos-ipos-transaction-panel {
        grid-template-rows: minmax(42px, auto) minmax(174px, auto) !important;
        min-height: 236px !important;
        height: auto !important;
    }

    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor.pos-edit-mode .pos-ipos-transaction-grid.pos-customer-row,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor.pos-edit-mode .pos-ipos-transaction-grid.pos-customer-row {
        height: auto !important;
        min-height: 174px !important;
    }
}

@media (max-width: 760px) {
    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor.pos-edit-mode .pos-ipos-layout,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor.pos-edit-mode .pos-ipos-layout {
        grid-template-rows: auto 82px 54px minmax(0, 1fr) !important;
    }

    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor.pos-edit-mode .pos-ipos-main,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor.pos-edit-mode .pos-ipos-main {
        grid-template-rows: auto 54px minmax(0, 1fr) !important;
    }

    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor.pos-edit-mode .pos-ipos-transaction-panel,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor.pos-edit-mode .pos-ipos-transaction-panel {
        grid-template-rows: auto auto !important;
    }

    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor.pos-edit-mode .pos-edit-banner,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor.pos-edit-mode .pos-edit-banner {
        flex-wrap: wrap !important;
        align-items: flex-start !important;
        max-height: none !important;
    }

    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor.pos-edit-mode .pos-edit-copy,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor.pos-edit-mode .pos-edit-copy {
        flex: 1 1 100% !important;
        flex-wrap: wrap !important;
        white-space: normal !important;
    }
}

/* POS payment modal balance lock: two-column cashier checkout. */
body.pos-page-wide #posPaymentModal .pos-payment-modal-window,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-modal-window {
    width: min(1280px, 94vw) !important;
    max-width: 1280px !important;
    max-height: min(900px, calc(100vh - 16px)) !important;
}

body.pos-page-wide #posPaymentModal .pos-payment-modal-body,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-modal-body {
    padding: 14px 18px 18px !important;
}

body.pos-page-wide #posPaymentModal .pos-ipos-payment-panel,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-ipos-payment-panel {
    grid-template-columns: minmax(0, 1.15fr) minmax(380px, .85fr) !important;
    grid-template-areas:
        "total total"
        "cash summary"
        "adjust summary"
        "methods summary"
        "shortcuts summary"
        "footer footer"
        "progress progress" !important;
    gap: 10px 14px !important;
    align-items: start !important;
}

body.pos-page-wide #posPaymentModal .pos-payment-total-row,
body.pos-page-wide #posPaymentModal .pos-ipos-totalbox,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-total-row,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-ipos-totalbox {
    min-height: 94px !important;
    padding: 14px 18px !important;
}

body.pos-page-wide #posPaymentModal .pos-payment-total-row > strong,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-total-row > strong {
    min-height: 74px !important;
    padding: 8px 16px !important;
}

body.pos-page-wide #posPaymentModal .pos-payment-cash-grid,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-cash-grid {
    height: auto !important;
    min-height: 108px !important;
    gap: 10px !important;
    padding: 12px !important;
}

body.pos-page-wide #posPaymentModal .pos-payment-pay-row,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-pay-row {
    min-height: 82px !important;
    height: auto !important;
    gap: 8px !important;
}

body.pos-page-wide #posPaymentModal .pos-payment-pay-row span,
body.pos-page-wide #posPaymentModal .pos-payment-adjustment-row > span,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-pay-row span,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-adjustment-row > span {
    font-size: 13px !important;
    line-height: 1.2 !important;
    font-weight: 900 !important;
}

body.pos-page-wide #posPaymentModal input:not([type="hidden"]),
body.pos-page-wide #posPaymentModal select,
html[data-theme] body.pos-page-wide #posPaymentModal input:not([type="hidden"]),
html[data-theme] body.pos-page-wide #posPaymentModal select {
    min-height: 42px !important;
    height: 42px !important;
    font-size: 15px !important;
}

body.pos-page-wide #posPaymentModal [data-pos-payment-amount],
html[data-theme] body.pos-page-wide #posPaymentModal [data-pos-payment-amount] {
    width: 100% !important;
    text-align: right !important;
}

body.pos-page-wide #posPaymentModal .pos-payment-pay-row.is-active-payment-field,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-pay-row.is-active-payment-field {
    padding: 0 !important;
}

body.pos-page-wide #posPaymentModal .pos-payment-pay-row.is-disabled-payment-field,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-pay-row.is-disabled-payment-field {
    opacity: .66 !important;
}

body.pos-page-wide #posPaymentModal .pos-payment-pay-row[data-pos-payment-field="debit"].is-active-payment-field,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-pay-row[data-pos-payment-field="debit"].is-active-payment-field {
    grid-template-columns: minmax(0, 1fr) !important;
    min-height: 118px !important;
}

body.pos-page-wide #posPaymentModal .pos-payment-pay-row[data-pos-payment-field="debit"].is-active-payment-field input,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-pay-row[data-pos-payment-field="debit"].is-active-payment-field input {
    grid-column: 1 !important;
    padding-right: 12px !important;
}

body.pos-page-wide #posPaymentModal .pos-payment-pay-row[data-pos-payment-field="debit"].is-active-payment-field .pos-payment-bank-trigger,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-pay-row[data-pos-payment-field="debit"].is-active-payment-field .pos-payment-bank-trigger {
    position: static !important;
    grid-column: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 36px !important;
    height: 36px !important;
    margin-top: 0 !important;
    justify-content: center !important;
}

body.pos-page-wide #posPaymentModal #posPaymentBankSummary:not([hidden]),
html[data-theme] body.pos-page-wide #posPaymentModal #posPaymentBankSummary:not([hidden]) {
    display: block !important;
    min-height: 36px !important;
    padding: 9px 10px !important;
    border: 1px solid #bfdbfe !important;
    border-radius: 8px !important;
    background: #eff6ff !important;
    color: #1e3a8a !important;
    font-size: 12px !important;
    font-weight: 800 !important;
}

body.pos-page-wide #posPaymentModal .pos-payment-adjustment,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-adjustment {
    grid-area: adjust !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    padding: 12px !important;
    border: 1px solid #dbe3ef !important;
    border-radius: 10px !important;
    background: #f8fafc !important;
}

body.pos-page-wide #posPaymentModal .pos-payment-adjustment-row,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-adjustment-row {
    grid-template-columns: minmax(118px, .72fr) minmax(0, 1fr) !important;
    gap: 10px !important;
}

body.pos-page-wide #posPaymentModal .pos-ipos-adjustment-controls,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-ipos-adjustment-controls {
    grid-template-columns: 76px minmax(0, 1fr) !important;
}

body.pos-page-wide #posPaymentModal .pos-payment-summary,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-summary {
    grid-area: summary !important;
    align-self: stretch !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-auto-rows: minmax(46px, auto) !important;
    gap: 0 !important;
    overflow: hidden !important;
    border: 1px solid #dbe3ef !important;
    border-radius: 10px !important;
    background: #ffffff !important;
}

body.pos-page-wide #posPaymentModal .pos-payment-summary::before,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-summary::before {
    content: "Ringkasan";
    display: flex !important;
    align-items: center !important;
    min-height: 42px !important;
    padding: 0 16px !important;
    border-bottom: 1px solid #dbe3ef !important;
    background: #f8fafc !important;
    color: #475569 !important;
    font-size: 13px !important;
    font-weight: 950 !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
}

body.pos-page-wide #posPaymentModal .pos-payment-summary > div,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-summary > div {
    min-height: 46px !important;
    height: auto !important;
    padding: 0 16px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 14px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
}

body.pos-page-wide #posPaymentModal .pos-payment-summary > div:last-child,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-summary > div:last-child {
    border-bottom: 0 !important;
}

body.pos-page-wide #posPaymentModal .pos-payment-summary span,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-summary span {
    min-width: 0 !important;
    color: #475569 !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
}

body.pos-page-wide #posPaymentModal .pos-payment-summary strong,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-summary strong {
    min-width: 0 !important;
    color: #0f172a !important;
    font-size: 16px !important;
    line-height: 1.15 !important;
    font-weight: 950 !important;
    text-align: right !important;
    white-space: nowrap !important;
}

body.pos-page-wide #posPaymentModal .pos-payment-summary > .is-accent,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-summary > .is-accent {
    background: #e8f8eb !important;
}

body.pos-page-wide #posPaymentModal .pos-payment-summary > .pos-payment-shortage-row,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-summary > .pos-payment-shortage-row {
    background: #fff0df !important;
}

body.pos-page-wide #posPaymentModal .pos-payment-summary > .pos-payment-preview-row,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-summary > .pos-payment-preview-row {
    display: grid !important;
    background: #f8fafc !important;
}

body.pos-page-wide #posPaymentModal .pos-payment-preview-row strong,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-preview-row strong {
    font-size: 18px !important;
}

body.pos-page-wide #posPaymentModal .pos-ipos-methods,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-ipos-methods {
    grid-area: methods !important;
    display: grid !important;
    grid-template-columns: 120px minmax(0, 1fr) minmax(118px, auto) !important;
    gap: 10px !important;
    align-items: center !important;
    padding: 12px !important;
}

body.pos-page-wide #posPaymentModal .pos-ipos-methodgrid,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-ipos-methodgrid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 8px !important;
}

body.pos-page-wide #posPaymentModal .pos-ipos-methodgrid .pos-payment-method,
body.pos-page-wide #posPaymentModal .pos-ipos-cv-trigger,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-ipos-methodgrid .pos-payment-method,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-ipos-cv-trigger {
    min-height: 40px !important;
    height: auto !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 900 !important;
}

body.pos-page-wide #posPaymentModal .pos-payment-method.is-active,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-method.is-active {
    border-color: #2563eb !important;
    background: #dbeafe !important;
    color: #0f172a !important;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, .18) !important;
}

body.pos-page-wide #posPaymentModal .split-actions,
html[data-theme] body.pos-page-wide #posPaymentModal .split-actions {
    justify-content: stretch !important;
}

body.pos-page-wide #posPaymentModal .split-actions small,
html[data-theme] body.pos-page-wide #posPaymentModal .split-actions small {
    display: none !important;
}

body.pos-page-wide #posPaymentModal .pos-ipos-cv-trigger,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-ipos-cv-trigger {
    width: 100% !important;
}

body.pos-page-wide #posPaymentModal .pos-ipos-split-toggle,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-ipos-split-toggle {
    grid-column: 1 / -1 !important;
    min-height: 44px !important;
    padding: 8px 12px !important;
}

body.pos-page-wide #posPaymentModal .pos-ipos-shortcuts,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-ipos-shortcuts {
    grid-area: shortcuts !important;
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 8px !important;
}

body.pos-page-wide #posPaymentModal .pos-ipos-shortcuts .pos-vintage-mini,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-ipos-shortcuts .pos-vintage-mini {
    min-height: 38px !important;
    border: 1px solid #c8d7ea !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    color: #0f2442 !important;
    font-size: 14px !important;
    font-weight: 900 !important;
}

body.pos-page-wide #posPaymentModal .pos-ipos-shortcuts .pos-vintage-mini.danger,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-ipos-shortcuts .pos-vintage-mini.danger {
    border-color: #fecaca !important;
    background: #fff1f2 !important;
    color: #b91c1c !important;
}

body.pos-page-wide #posPaymentModal .pos-ipos-checkout-footer,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-ipos-checkout-footer {
    grid-area: footer !important;
    align-self: stretch !important;
    margin-top: 0 !important;
    padding-top: 4px !important;
    display: grid !important;
    grid-template-columns: 1fr 1.2fr .8fr !important;
    gap: 12px !important;
    background: transparent !important;
}

body.pos-page-wide #posPaymentModal .pos-ipos-checkout-footer .pos-vintage-button,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-ipos-checkout-footer .pos-vintage-button {
    min-height: 48px !important;
    height: auto !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-weight: 950 !important;
}

body.pos-page-wide #posPaymentModal .pos-ipos-checkout-print,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-ipos-checkout-print {
    border: 1px solid #c8d7ea !important;
    background: #ffffff !important;
    color: #0f2442 !important;
    box-shadow: inset 0 0 0 1px rgba(15, 36, 66, .05) !important;
}

body.pos-page-wide #posPaymentModal .pos-ipos-checkout,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-ipos-checkout {
    border-color: #0f2442 !important;
    background: #0f2442 !important;
    color: #ffffff !important;
}

body.pos-page-wide #posPaymentModal .pos-ipos-checkout-cancel,
html[data-theme] body.pos-page-wide #posPaymentModal .pos-ipos-checkout-cancel {
    border-color: #3b9be8 !important;
    background: #3b9be8 !important;
    color: #ffffff !important;
}

@media (max-width: 1100px) {
    body.pos-page-wide #posPaymentModal .pos-ipos-payment-panel,
    html[data-theme] body.pos-page-wide #posPaymentModal .pos-ipos-payment-panel {
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-areas:
            "total"
            "cash"
            "adjust"
            "summary"
            "methods"
            "shortcuts"
            "footer"
            "progress" !important;
    }

    body.pos-page-wide #posPaymentModal .pos-payment-summary,
    html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-summary {
        align-self: start !important;
    }

    body.pos-page-wide #posPaymentModal .pos-payment-cash-grid,
    html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-cash-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    body.pos-page-wide #posPaymentModal .pos-payment-adjustment,
    html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-adjustment {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

@media (max-width: 760px) {
    body.pos-page-wide #posPaymentModal .pos-payment-total-row,
    body.pos-page-wide #posPaymentModal .pos-ipos-totalbox,
    html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-total-row,
    html[data-theme] body.pos-page-wide #posPaymentModal .pos-ipos-totalbox {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    body.pos-page-wide #posPaymentModal .pos-payment-cash-grid,
    body.pos-page-wide #posPaymentModal .pos-ipos-methodgrid,
    body.pos-page-wide #posPaymentModal .pos-ipos-shortcuts,
    body.pos-page-wide #posPaymentModal .pos-ipos-checkout-footer,
    html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-cash-grid,
    html[data-theme] body.pos-page-wide #posPaymentModal .pos-ipos-methodgrid,
    html[data-theme] body.pos-page-wide #posPaymentModal .pos-ipos-shortcuts,
    html[data-theme] body.pos-page-wide #posPaymentModal .pos-ipos-checkout-footer {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    body.pos-page-wide #posPaymentModal .pos-ipos-methods,
    html[data-theme] body.pos-page-wide #posPaymentModal .pos-ipos-methods {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

@media (max-height: 760px) and (min-width: 1101px) {
    body.pos-page-wide #posPaymentModal .pos-payment-modal-window,
    html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-modal-window {
        max-height: calc(100vh - 12px) !important;
    }

    body.pos-page-wide #posPaymentModal .pos-payment-modal-head,
    html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-modal-head {
        min-height: 56px !important;
        padding: 10px 18px !important;
    }

    body.pos-page-wide #posPaymentModal .pos-payment-modal-head h3,
    html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-modal-head h3 {
        font-size: 20px !important;
    }

    body.pos-page-wide #posPaymentModal .pos-payment-modal-close,
    html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-modal-close {
        width: 40px !important;
        height: 40px !important;
        min-height: 40px !important;
    }

    body.pos-page-wide #posPaymentModal .pos-payment-modal-body,
    html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-modal-body {
        padding: 10px 18px 12px !important;
    }

    body.pos-page-wide #posPaymentModal .pos-ipos-payment-panel,
    html[data-theme] body.pos-page-wide #posPaymentModal .pos-ipos-payment-panel {
        gap: 8px 14px !important;
    }

    body.pos-page-wide #posPaymentModal .pos-payment-total-row,
    body.pos-page-wide #posPaymentModal .pos-ipos-totalbox,
    html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-total-row,
    html[data-theme] body.pos-page-wide #posPaymentModal .pos-ipos-totalbox {
        min-height: 82px !important;
        padding: 10px 14px !important;
    }

    body.pos-page-wide #posPaymentModal .pos-payment-total-row > strong,
    html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-total-row > strong {
        min-height: 58px !important;
        padding: 6px 14px !important;
        font-size: 52px !important;
    }

    body.pos-page-wide #posPaymentModal .pos-payment-cash-grid,
    html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-cash-grid {
        min-height: 96px !important;
        padding: 10px !important;
    }

    body.pos-page-wide #posPaymentModal .pos-payment-pay-row,
    html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-pay-row {
        min-height: 74px !important;
        gap: 6px !important;
    }

    body.pos-page-wide #posPaymentModal .pos-payment-pay-row[data-pos-payment-field="debit"].is-active-payment-field,
    html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-pay-row[data-pos-payment-field="debit"].is-active-payment-field {
        min-height: 110px !important;
    }

    body.pos-page-wide #posPaymentModal .pos-payment-adjustment,
    html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-adjustment {
        padding: 10px !important;
    }

    body.pos-page-wide #posPaymentModal .pos-ipos-methods,
    html[data-theme] body.pos-page-wide #posPaymentModal .pos-ipos-methods {
        grid-template-rows: auto auto !important;
        align-content: start !important;
        gap: 8px !important;
        padding: 10px !important;
    }

    body.pos-page-wide #posPaymentModal .pos-ipos-split-toggle,
    html[data-theme] body.pos-page-wide #posPaymentModal .pos-ipos-split-toggle {
        min-height: 36px !important;
        padding: 6px 10px !important;
    }

    body.pos-page-wide #posPaymentModal .pos-payment-summary::before,
    html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-summary::before {
        min-height: 36px !important;
    }

    body.pos-page-wide #posPaymentModal .pos-payment-summary > div,
    html[data-theme] body.pos-page-wide #posPaymentModal .pos-payment-summary > div {
        min-height: 42px !important;
    }

    body.pos-page-wide #posPaymentModal .pos-ipos-shortcuts .pos-vintage-mini,
    html[data-theme] body.pos-page-wide #posPaymentModal .pos-ipos-shortcuts .pos-vintage-mini {
        min-height: 34px !important;
    }

    body.pos-page-wide #posPaymentModal .pos-ipos-checkout-footer .pos-vintage-button,
    html[data-theme] body.pos-page-wide #posPaymentModal .pos-ipos-checkout-footer .pos-vintage-button {
        min-height: 44px !important;
    }
}

/* POS item search and catalog picker lock: compact barcode row, no ghost field, table-first picker. */
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-draft-panel,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-draft-panel {
    position: relative !important;
    z-index: 20 !important;
    min-height: 58px !important;
    height: 58px !important;
    padding: 5px 8px !important;
    overflow: visible !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-draft-panel .pos-ipos-panel-head,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-draft-panel .pos-ipos-panel-head {
    display: none !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-item-input-bar,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-item-input-bar {
    display: grid !important;
    grid-template-columns: 140px minmax(420px, 1fr) 110px 160px !important;
    grid-template-rows: minmax(46px, auto) !important;
    gap: 8px !important;
    align-items: end !important;
    width: 100% !important;
    min-height: 48px !important;
    height: 48px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-item-input-bar label,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-item-input-bar label {
    min-width: 0 !important;
    height: 48px !important;
    margin: 0 !important;
    display: grid !important;
    grid-template-rows: 12px 36px !important;
    gap: 0 !important;
    align-content: end !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-item-input-bar .pos-ipos-qty-scan-field,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-item-input-bar .pos-ipos-qty-scan-field {
    grid-column: 1 !important;
    grid-row: 1 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-item-input-bar .pos-ipos-scan-field,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-item-input-bar .pos-ipos-scan-field {
    grid-column: 2 !important;
    grid-row: 1 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-item-input-bar > button[type="submit"],
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-item-input-bar > button[type="submit"] {
    grid-column: 3 !important;
    grid-row: 1 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-item-input-bar > button[data-pos-open-catalog],
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-item-input-bar > button[data-pos-open-catalog] {
    grid-column: 4 !important;
    grid-row: 1 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-item-input-bar span,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-item-input-bar span {
    display: block !important;
    min-width: 0 !important;
    margin: 0 !important;
    color: #0f2442 !important;
    font-size: 11px !important;
    line-height: 12px !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-item-input-bar input,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-item-input-bar button,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-item-input-bar input,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-item-input-bar button {
    min-height: 36px !important;
    height: 36px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-item-input-bar label input,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-item-input-bar label input {
    align-self: end !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-item-input-bar #posQuickSearch,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-item-input-bar #posQuickSearch {
    min-height: 36px !important;
    height: 36px !important;
    padding-inline: 12px !important;
    color: #0f172a !important;
    font-size: 14px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-item-input-bar #posDraftQty,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-item-input-bar #posDraftQty {
    text-align: center !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-item-input-bar > button[type="submit"],
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-item-input-bar > button[type="submit"] {
    align-self: end !important;
    border-color: #10243f !important;
    background: #10243f !important;
    background-image: none !important;
    color: #ffffff !important;
    box-shadow: none !important;
    font-weight: 900 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-item-input-bar > button[data-pos-open-catalog],
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-item-input-bar > button[data-pos-open-catalog] {
    align-self: end !important;
    border-color: #c8d7ea !important;
    background: #ffffff !important;
    background-image: none !important;
    color: #0f2442 !important;
    box-shadow: none !important;
    font-weight: 900 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-item-input-bar #posQuickSearchSummary,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-item-input-bar #posQuickSearchSummary[hidden],
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-item-input-bar #posQuickSearchSummary,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-item-input-bar #posQuickSearchSummary[hidden] {
    display: none !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-quick-results[hidden],
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-quick-results:empty,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-results[hidden],
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-results:empty,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-quick-results[hidden],
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-quick-results:empty,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-results[hidden],
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-results:empty {
    display: none !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-quick-results:not([hidden]),
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-quick-results:not([hidden]) {
    position: absolute !important;
    z-index: 80 !important;
    top: 55px !important;
    left: 148px !important;
    right: 178px !important;
    max-height: 280px !important;
    margin: 0 !important;
    padding: 6px !important;
    display: grid !important;
    gap: 6px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    border: 1px solid #c8d7ea !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    box-shadow: 0 16px 36px rgba(15, 36, 66, .18) !important;
    scrollbar-width: thin !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-result,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-result {
    min-height: 64px !important;
    height: auto !important;
    padding: 8px 10px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 150px !important;
    gap: 12px !important;
    align-items: center !important;
    border: 1px solid #dbe3ef !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    background-image: none !important;
    color: #0f172a !important;
    box-shadow: none !important;
    text-align: left !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-result:is(:hover, :focus-visible, .is-active),
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-result:is(:hover, :focus-visible, .is-active) {
    border-color: #2563eb !important;
    background: #eff6ff !important;
    outline: 0 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-result-copy,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-result-copy {
    min-width: 0 !important;
    display: grid !important;
    gap: 4px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-result-head,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-result-head {
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    gap: 8px !important;
    align-items: center !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-result-code,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-result-code {
    min-height: 22px !important;
    padding: 3px 7px !important;
    border-radius: 999px !important;
    background: #edf2f7 !important;
    color: #0f2442 !important;
    font-size: 11px !important;
    font-weight: 900 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-result-title,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-result-title {
    min-width: 0 !important;
    overflow: hidden !important;
    color: #0f172a !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    font-weight: 900 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-result-tags,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-result-tags {
    min-width: 0 !important;
    display: flex !important;
    gap: 5px !important;
    overflow: hidden !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-result-chip,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-result-chip {
    max-width: 180px !important;
    min-height: 18px !important;
    padding: 2px 6px !important;
    overflow: hidden !important;
    border-radius: 999px !important;
    background: #f8fafc !important;
    color: #64748b !important;
    font-size: 11px !important;
    line-height: 14px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-result-meta,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-result-meta {
    min-width: 0 !important;
    display: grid !important;
    justify-items: end !important;
    gap: 5px !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-result-price,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-result-price {
    color: #0f172a !important;
    font-size: 15px !important;
    line-height: 1.15 !important;
    font-weight: 950 !important;
    text-align: right !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-empty,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-empty {
    min-height: 42px !important;
    padding: 10px 12px !important;
    display: grid !important;
    place-items: center !important;
    color: #64748b !important;
    font-size: 13px !important;
}

body.pos-page-wide #posCatalogPicker.pos-item-picker-modal[hidden],
html[data-theme] body.pos-page-wide #posCatalogPicker.pos-item-picker-modal[hidden] {
    display: none !important;
}

body.pos-page-wide #posCatalogPicker.pos-item-picker-modal,
html[data-theme] body.pos-page-wide #posCatalogPicker.pos-item-picker-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 390 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px !important;
    overflow: hidden !important;
    background: rgba(15, 23, 42, .32) !important;
}

body.pos-page-wide #posCatalogPicker .pos-item-picker-window,
html[data-theme] body.pos-page-wide #posCatalogPicker .pos-item-picker-window {
    width: min(980px, 94vw) !important;
    max-width: 980px !important;
    max-height: 84vh !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 14px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    overflow: hidden !important;
    border: 1px solid #dbe3ef !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    box-shadow: 0 24px 58px rgba(15, 23, 42, .24) !important;
}

body.pos-page-wide #posCatalogPicker .pos-ipos-pickerhead,
html[data-theme] body.pos-page-wide #posCatalogPicker .pos-ipos-pickerhead {
    flex: 0 0 auto !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 0 !important;
}

body.pos-page-wide #posCatalogPicker .pos-ipos-pickerhead strong,
html[data-theme] body.pos-page-wide #posCatalogPicker .pos-ipos-pickerhead strong {
    color: #0f172a !important;
    font-size: 18px !important;
    line-height: 1.15 !important;
    font-weight: 950 !important;
}

body.pos-page-wide #posCatalogPicker .pos-ipos-pickerhead small,
html[data-theme] body.pos-page-wide #posCatalogPicker .pos-ipos-pickerhead small {
    max-width: 560px !important;
    overflow: hidden !important;
    color: #64748b !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body.pos-page-wide #posCatalogPicker .pos-ipos-pickeractions,
html[data-theme] body.pos-page-wide #posCatalogPicker .pos-ipos-pickeractions {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

body.pos-page-wide #posCatalogPicker .pos-ipos-pagebadge,
html[data-theme] body.pos-page-wide #posCatalogPicker .pos-ipos-pagebadge {
    min-height: 32px !important;
    padding: 0 10px !important;
    border: 1px solid #dbe3ef !important;
    border-radius: 999px !important;
    background: #f8fafc !important;
    color: #0f2442 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
}

body.pos-page-wide #posCatalogPicker #posCatalogCloseButton,
html[data-theme] body.pos-page-wide #posCatalogPicker #posCatalogCloseButton {
    min-height: 34px !important;
    border-radius: 7px !important;
    font-weight: 900 !important;
}

body.pos-page-wide #posCatalogPicker .pos-ipos-pickerbrowsertools,
html[data-theme] body.pos-page-wide #posCatalogPicker .pos-ipos-pickerbrowsertools {
    flex: 0 0 auto !important;
    display: block !important;
}

body.pos-page-wide #posCatalogPicker .pos-picker-search-row,
html[data-theme] body.pos-page-wide #posCatalogPicker .pos-picker-search-row {
    width: 100% !important;
    margin: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 96px !important;
    gap: 8px !important;
    align-items: center !important;
}

body.pos-page-wide #posCatalogPicker .pos-picker-search-row input,
body.pos-page-wide #posCatalogPicker .pos-picker-search-row button,
html[data-theme] body.pos-page-wide #posCatalogPicker .pos-picker-search-row input,
html[data-theme] body.pos-page-wide #posCatalogPicker .pos-picker-search-row button {
    min-height: 38px !important;
    height: 38px !important;
    border-radius: 7px !important;
    font-size: 13px !important;
}

body.pos-page-wide #posCatalogPicker .pos-picker-search-row input,
html[data-theme] body.pos-page-wide #posCatalogPicker .pos-picker-search-row input {
    padding-inline: 12px !important;
}

body.pos-page-wide #posCatalogPicker .pos-picker-search-row button,
html[data-theme] body.pos-page-wide #posCatalogPicker .pos-picker-search-row button {
    border-color: #10243f !important;
    background: #10243f !important;
    background-image: none !important;
    color: #ffffff !important;
    font-weight: 900 !important;
}

body.pos-page-wide #posCatalogPicker .pos-picker-table-wrap,
html[data-theme] body.pos-page-wide #posCatalogPicker .pos-picker-table-wrap {
    flex: 1 1 auto !important;
    min-height: 260px !important;
    max-height: 420px !important;
    margin: 0 !important;
    overflow: auto !important;
    border: 1px solid #dbe3ef !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    scrollbar-width: thin !important;
}

body.pos-page-wide #posCatalogPicker .pos-picker-table,
html[data-theme] body.pos-page-wide #posCatalogPicker .pos-picker-table {
    width: 100% !important;
    min-width: 760px !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    table-layout: fixed !important;
    background: #ffffff !important;
}

body.pos-page-wide #posCatalogPicker .pos-picker-table thead th,
html[data-theme] body.pos-page-wide #posCatalogPicker .pos-picker-table thead th {
    position: sticky !important;
    top: 0 !important;
    z-index: 4 !important;
    height: 36px !important;
    padding: 8px 10px !important;
    border-bottom: 1px solid #dbe3ef !important;
    background: #f1f5f9 !important;
    color: #475569 !important;
    font-size: 11px !important;
    line-height: 1.1 !important;
    font-weight: 950 !important;
    letter-spacing: .04em !important;
    text-transform: uppercase !important;
    vertical-align: middle !important;
    box-shadow: 0 1px 0 #dbe3ef !important;
}

body.pos-page-wide #posCatalogPicker .pos-picker-table th:nth-child(1),
body.pos-page-wide #posCatalogPicker .pos-picker-table td:nth-child(1),
html[data-theme] body.pos-page-wide #posCatalogPicker .pos-picker-table th:nth-child(1),
html[data-theme] body.pos-page-wide #posCatalogPicker .pos-picker-table td:nth-child(1) {
    width: 112px !important;
}

body.pos-page-wide #posCatalogPicker .pos-picker-table th:nth-child(3),
body.pos-page-wide #posCatalogPicker .pos-picker-table td:nth-child(3),
html[data-theme] body.pos-page-wide #posCatalogPicker .pos-picker-table th:nth-child(3),
html[data-theme] body.pos-page-wide #posCatalogPicker .pos-picker-table td:nth-child(3) {
    width: 140px !important;
}

body.pos-page-wide #posCatalogPicker .pos-picker-table th:nth-child(4),
body.pos-page-wide #posCatalogPicker .pos-picker-table td:nth-child(4),
html[data-theme] body.pos-page-wide #posCatalogPicker .pos-picker-table th:nth-child(4),
html[data-theme] body.pos-page-wide #posCatalogPicker .pos-picker-table td:nth-child(4) {
    width: 88px !important;
    text-align: center !important;
}

body.pos-page-wide #posCatalogPicker .pos-picker-table th:nth-child(5),
body.pos-page-wide #posCatalogPicker .pos-picker-table td:nth-child(5),
html[data-theme] body.pos-page-wide #posCatalogPicker .pos-picker-table th:nth-child(5),
html[data-theme] body.pos-page-wide #posCatalogPicker .pos-picker-table td:nth-child(5) {
    width: 118px !important;
    text-align: right !important;
}

body.pos-page-wide #posCatalogPicker .pos-picker-table th:nth-child(6),
body.pos-page-wide #posCatalogPicker .pos-picker-table td:nth-child(6),
html[data-theme] body.pos-page-wide #posCatalogPicker .pos-picker-table th:nth-child(6),
html[data-theme] body.pos-page-wide #posCatalogPicker .pos-picker-table td:nth-child(6) {
    width: 92px !important;
    text-align: center !important;
}

body.pos-page-wide #posCatalogPicker .pos-picker-table tbody td,
html[data-theme] body.pos-page-wide #posCatalogPicker .pos-picker-table tbody td {
    height: 44px !important;
    padding: 8px 10px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #0f172a !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
    vertical-align: middle !important;
}

body.pos-page-wide #posCatalogPicker .pos-picker-table tbody tr:nth-child(even) td,
html[data-theme] body.pos-page-wide #posCatalogPicker .pos-picker-table tbody tr:nth-child(even) td {
    background: #fbfdff !important;
}

body.pos-page-wide #posCatalogPicker .pos-picker-table tbody tr:is(:hover, :focus-within) td,
body.pos-page-wide #posCatalogPicker .pos-picker-table tbody tr.is-active td,
html[data-theme] body.pos-page-wide #posCatalogPicker .pos-picker-table tbody tr:is(:hover, :focus-within) td,
html[data-theme] body.pos-page-wide #posCatalogPicker .pos-picker-table tbody tr.is-active td {
    background: #eff6ff !important;
}

body.pos-page-wide #posCatalogPicker .pos-picker-table tbody td strong,
html[data-theme] body.pos-page-wide #posCatalogPicker .pos-picker-table tbody td strong {
    display: block !important;
    max-width: 100% !important;
    overflow: hidden !important;
    color: #0f172a !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body.pos-page-wide #posCatalogPicker .pos-picker-table tbody td .helper-text,
html[data-theme] body.pos-page-wide #posCatalogPicker .pos-picker-table tbody td .helper-text {
    margin-top: 2px !important;
    overflow: hidden !important;
    color: #64748b !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body.pos-page-wide #posCatalogPicker .pos-picker-table .ghost-button,
html[data-theme] body.pos-page-wide #posCatalogPicker .pos-picker-table .ghost-button {
    min-height: 30px !important;
    height: 30px !important;
    padding: 0 10px !important;
    border: 1px solid #c8d7ea !important;
    border-radius: 7px !important;
    background: #ffffff !important;
    background-image: none !important;
    color: #0f2442 !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    box-shadow: none !important;
}

body.pos-page-wide #posCatalogPicker .pos-picker-table .ghost-button:is(:hover, :focus-visible),
html[data-theme] body.pos-page-wide #posCatalogPicker .pos-picker-table .ghost-button:is(:hover, :focus-visible) {
    border-color: #2563eb !important;
    background: #dbeafe !important;
    outline: 0 !important;
}

body.pos-page-wide #posCatalogPicker .pos-ipos-pickerpagination,
html[data-theme] body.pos-page-wide #posCatalogPicker .pos-ipos-pickerpagination {
    flex: 0 0 auto !important;
    min-height: 38px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
}

body.pos-page-wide #posCatalogPicker .pos-ipos-pickerpagination .pos-vintage-mini,
html[data-theme] body.pos-page-wide #posCatalogPicker .pos-ipos-pickerpagination .pos-vintage-mini {
    min-height: 34px !important;
    border-radius: 7px !important;
    font-weight: 900 !important;
}

@media (max-width: 980px) {
    body.pos-page-wide #posCatalogPicker.pos-item-picker-modal,
    html[data-theme] body.pos-page-wide #posCatalogPicker.pos-item-picker-modal {
        padding: 10px !important;
    }

    body.pos-page-wide #posCatalogPicker .pos-item-picker-window,
    html[data-theme] body.pos-page-wide #posCatalogPicker .pos-item-picker-window {
        width: 94vw !important;
        max-height: 86vh !important;
    }

    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-item-input-bar,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-item-input-bar {
        grid-template-columns: 96px minmax(0, 1fr) !important;
        grid-template-rows: auto auto !important;
        height: auto !important;
        min-height: 92px !important;
    }

    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-draft-panel,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-draft-panel {
        height: auto !important;
        min-height: 102px !important;
    }

    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-item-input-bar > button[type="submit"],
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-item-input-bar > button[type="submit"] {
        grid-column: 1 !important;
        grid-row: 2 !important;
    }

    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-item-input-bar > button[data-pos-open-catalog],
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-item-input-bar > button[data-pos-open-catalog] {
        grid-column: 2 !important;
        grid-row: 2 !important;
    }

    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-quick-results:not([hidden]),
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-quick-results:not([hidden]) {
        left: 8px !important;
        right: 8px !important;
        top: 104px !important;
    }
}

/* POS header menu lock: keep Menu POS as a compact dropdown, not a center-screen modal. */
body.pos-page-wide.pos-ipos-menu-open,
html[data-theme] body.pos-page-wide.pos-ipos-menu-open {
    overflow: auto !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-header-menu,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-header-menu {
    position: relative !important;
    z-index: 360 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-menu-backdrop,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-menu-backdrop {
    position: fixed !important;
    inset: 0 !important;
    z-index: 350 !important;
    border: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    cursor: default !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-menu-panel,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-menu-panel {
    position: fixed !important;
    top: var(--pos-menu-top, 64px) !important;
    left: var(--pos-menu-left, 12px) !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 361 !important;
    width: min(320px, calc(100vw - 20px)) !important;
    max-height: min(360px, calc(100vh - var(--pos-menu-top, 64px) - 10px)) !important;
    display: grid !important;
    gap: 6px !important;
    padding: 8px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    border: 1px solid #c8d7ea !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    box-shadow: 0 18px 36px rgba(15, 23, 42, .22) !important;
    transform: none !important;
    scrollbar-width: thin !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-menu-link,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-menu-link {
    min-height: 0 !important;
    padding: 9px 10px !important;
    gap: 2px !important;
    border-radius: 8px !important;
    background: #f8fafc !important;
    box-shadow: none !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-menu-link strong,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-menu-link strong {
    font-size: 13px !important;
    line-height: 1.2 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-menu-link small,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-menu-link small {
    font-size: 11.5px !important;
    line-height: 1.25 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-menu-link:is(:hover, :focus-visible),
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-menu-link:is(:hover, :focus-visible) {
    border-color: #2563eb !important;
    background: #eff6ff !important;
    outline: 0 !important;
}

@media (max-width: 760px) {
    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-menu-panel,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-menu-panel {
        left: 10px !important;
        width: calc(100vw - 20px) !important;
        max-height: min(70vh, calc(100vh - var(--pos-menu-top, 64px) - 10px)) !important;
    }
}

body.pos-page-wide [data-pos-header-menu-close].pos-ipos-menu-backdrop,
html[data-theme] body.pos-page-wide [data-pos-header-menu-close].pos-ipos-menu-backdrop {
    z-index: 350 !important;
    background: transparent !important;
    box-shadow: none !important;
}

@media (max-width: 760px) {
    body.pos-page-wide #posCatalogPicker .pos-ipos-pickerhead,
    html[data-theme] body.pos-page-wide #posCatalogPicker .pos-ipos-pickerhead,
    body.pos-page-wide #posCatalogPicker .pos-picker-search-row,
    html[data-theme] body.pos-page-wide #posCatalogPicker .pos-picker-search-row,
    body.pos-page-wide #posCatalogPicker .pos-ipos-pickerpagination,
    html[data-theme] body.pos-page-wide #posCatalogPicker .pos-ipos-pickerpagination {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
    }

    body.pos-page-wide #posCatalogPicker .pos-picker-table-wrap,
    html[data-theme] body.pos-page-wide #posCatalogPicker .pos-picker-table-wrap {
        min-height: 240px !important;
        max-height: 58vh !important;
        overflow: auto !important;
    }
}

/* POS quick search compact picker: keep search results dense for cashier workflow. */
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-quick-results:not([hidden]),
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-quick-results:not([hidden]) {
    max-height: 260px !important;
    margin-top: 4px !important;
    padding: 4px !important;
    display: grid !important;
    gap: 4px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-result.pos-quick-result-card,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-result.pos-quick-result-card {
    min-height: 48px !important;
    max-height: 56px !important;
    padding: 7px 10px !important;
    display: grid !important;
    grid-template-columns: 76px minmax(0, 1fr) 84px 110px !important;
    gap: 8px !important;
    align-items: center !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    border: 1px solid #dbe6f3 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    box-shadow: none !important;
    text-align: left !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-result.pos-quick-result-card:is(:hover, :focus-visible, .is-active),
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-result.pos-quick-result-card:is(:hover, :focus-visible, .is-active) {
    border-color: #2563eb !important;
    background: #f4f8ff !important;
    outline: 0 !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-quick-result-code,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-quick-result-code {
    min-height: 0 !important;
    width: fit-content !important;
    max-width: 76px !important;
    padding: 4px 8px !important;
    border-radius: 999px !important;
    background: #eef5ff !important;
    color: #0f2a4d !important;
    font-size: 12px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-quick-result-copy,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-quick-result-copy {
    min-width: 0 !important;
    display: block !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-quick-result-name,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-quick-result-name {
    display: block !important;
    min-width: 0 !important;
    overflow: hidden !important;
    color: #0f172a !important;
    font-size: 13.5px !important;
    line-height: 1.15 !important;
    font-weight: 800 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-quick-result-meta,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-quick-result-meta {
    display: block !important;
    min-width: 0 !important;
    margin-top: 2px !important;
    overflow: hidden !important;
    color: #64748b !important;
    font-size: 11px !important;
    line-height: 1.15 !important;
    font-weight: 650 !important;
    letter-spacing: 0 !important;
    text-overflow: ellipsis !important;
    text-transform: none !important;
    white-space: nowrap !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-quick-result-stock,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-quick-result-stock {
    justify-self: end !important;
    min-height: 0 !important;
    padding: 4px 8px !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-quick-result-price,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-quick-result-price {
    justify-self: end !important;
    color: #0f172a !important;
    font-size: 14px !important;
    line-height: 1.05 !important;
    font-weight: 900 !important;
    text-align: right !important;
    white-space: nowrap !important;
}

body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-result-tags,
body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-result-chip,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-result-tags,
html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-result-chip {
    display: none !important;
}

@media (max-width: 760px) {
    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-result.pos-quick-result-card,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-ipos-quicksearch-result.pos-quick-result-card {
        max-height: none !important;
        min-height: 58px !important;
        grid-template-columns: 68px minmax(0, 1fr) auto !important;
        grid-template-areas:
            "code copy copy"
            "code stock price" !important;
        row-gap: 4px !important;
        column-gap: 8px !important;
    }

    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-quick-result-code,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-quick-result-code {
        grid-area: code !important;
        max-width: 68px !important;
        align-self: center !important;
    }

    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-quick-result-copy,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-quick-result-copy {
        grid-area: copy !important;
    }

    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-quick-result-stock,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-quick-result-stock {
        grid-area: stock !important;
        justify-self: start !important;
    }

    body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-quick-result-price,
    html[data-theme] body.pos-page-wide .pos-terminal-clean.pos-ipos-refactor .pos-quick-result-price {
        grid-area: price !important;
        justify-self: end !important;
    }
}
