* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

:root {
    --bg: #f6f8fb;
    --surface: #ffffff;
    --surface-soft: #eef2f6;
    --surface-strong: #dfe7ef;
    --text: #18202a;
    --muted: #647484;
    --line: #d7e0ea;
    --primary: #06213f;
    --primary-soft: #e5eef9;
    --accent: #1fbf75;
    --accent-soft: #dff8ec;
    --warning: #c47a10;
    --warning-soft: #fff3d9;
    --danger: #b3261e;
    --danger-soft: #ffe4e0;
    --shadow: 0 18px 38px rgba(24, 32, 42, 0.08);
    --radius: 8px;
    --font-body: "Sarabun", "Noto Sans Thai", "Segoe UI", Tahoma, sans-serif;
    --font-heading: "Kanit", "Sarabun", "Noto Sans Thai", "Segoe UI", Tahoma, sans-serif;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

html {
    font-size: 80%;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-style: normal;
    font-size: 0.975rem;
    line-height: 1.66;
    letter-spacing: 0.002em;
    font-kerning: normal;
    font-synthesis: none;
    color: var(--text);
    background:
        linear-gradient(135deg, rgba(6, 33, 63, 0.07), transparent 34%),
        linear-gradient(180deg, #fbfcfe 0%, var(--bg) 100%);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

h1,
h2,
h3,
h4,
.section-title,
.page-hero h1,
.login-card h1,
.brand strong,
.nav-link,
.nav-group-toggle,
.user-menu strong {
    font-family: var(--font-heading);
    letter-spacing: 0;
}

.bill-link {
    color: #0b63ce;
    text-decoration: none;
    font-weight: 700;
}

.bill-link:hover,
.bill-link:focus {
    color: #084f9f;
    text-decoration: none;
}

.app-shell {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 22px 16px 44px;
}

body.display-web .app-shell {
    max-width: none;
    min-height: 100vh;
    padding-right: 18px;
    padding-left: 18px;
}

body.page-dashboard.display-web .app-shell {
    padding-top: 14px;
}

body.page-dashboard.display-web .topbar {
    display: none;
}

body.layout-sidebar.display-web .app-shell {
    padding-top: 14px;
}

body.layout-sidebar.display-web .page-hero,
body.page-dashboard.display-web .dashboard-hero-panel {
    display: none;
}

body.dashboard-sidebar-open {
    overflow: hidden;
}

.topbar {
    position: sticky;
    top: 14px;
    z-index: 20;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px;
    padding: 16px 18px;
    margin-bottom: 24px;
    overflow: visible;
    isolation: isolate;
    border: 1px solid rgba(215, 224, 234, 0.86);
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(31, 191, 117, 0.1), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(247, 250, 253, 0.92));
    box-shadow: 0 22px 48px rgba(24, 32, 42, 0.1);
    backdrop-filter: blur(18px);
}

.topbar::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 220px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(6, 33, 63, 0.1), rgba(6, 33, 63, 0));
    pointer-events: none;
}

.topbar-brand-zone,
.topbar-nav-zone,
.topbar-user-zone {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.topbar-nav-zone {
    display: flex;
    justify-content: center;
}

.topbar-user-zone {
    justify-self: end;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 4px 6px 4px 4px;
    border-radius: 18px;
    color: var(--primary);
    text-decoration: none;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), #124b83);
    box-shadow: 0 14px 28px rgba(6, 33, 63, 0.22);
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 1.04rem;
    line-height: 1.22;
    font-weight: 600;
}

.brand small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.79rem;
    line-height: 1.45;
}

.nav {
    width: 100%;
    max-width: 920px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(215, 224, 234, 0.94);
    border-radius: 20px;
    background: rgba(241, 245, 249, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.nav-link {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    border: 1px solid transparent;
    border-radius: 14px;
    color: #526577;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.94rem;
    line-height: 1.22;
    transition:
        transform 0.16s ease,
        color 0.16s ease,
        background 0.16s ease,
        border-color 0.16s ease,
        box-shadow 0.16s ease;
}

.nav-link-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    color: #7890a6;
}

.nav-link-icon svg {
    width: 18px;
    height: 18px;
}

.nav-link-label {
    white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(185, 204, 225, 0.94);
    box-shadow: 0 10px 18px rgba(24, 32, 42, 0.08);
    transform: translateY(-1px);
    outline: none;
}

.nav-link:hover .nav-link-icon,
.nav-link:focus-visible .nav-link-icon {
    color: #1a4f83;
}

.nav-link.is-active {
    color: #fff;
    border-color: rgba(6, 33, 63, 0.18);
    background: linear-gradient(135deg, var(--primary), #114d88 72%);
    box-shadow: 0 14px 22px rgba(6, 33, 63, 0.22);
}

.nav-link.is-active .nav-link-icon {
    color: rgba(255, 255, 255, 0.88);
}

.nav-logout-app {
    display: none;
}

.nav-group {
    position: relative;
    z-index: 1;
}

.nav-group.is-open {
    z-index: 30;
}

.nav-group-toggle {
    min-height: 46px;
}

.nav-group-toggle::after {
    content: "";
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    margin-left: 2px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    opacity: 0.66;
    transition: transform 0.16s ease, opacity 0.16s ease;
}

.nav-group.is-open .nav-group-toggle::after,
.nav-group:hover .nav-group-toggle::after {
    opacity: 1;
}

.nav-group.is-open .nav-group-toggle::after {
    transform: rotate(225deg) translateY(-1px);
}

.nav-submenu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    z-index: 60;
    min-width: 240px;
    display: none;
    padding: 10px;
    border: 1px solid rgba(215, 224, 234, 0.96);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 22px 40px rgba(24, 32, 42, 0.14);
    backdrop-filter: blur(18px);
}

.nav-group-report .nav-submenu {
    left: 50%;
    min-width: min(360px, calc(100vw - 48px));
    transform: translateX(-50%);
}

.nav-group:hover .nav-submenu,
.nav-group.is-open .nav-submenu,
.nav-submenu.is-open {
    display: grid;
    gap: 4px;
}

.nav-report-submenu {
    padding: 14px;
    gap: 12px;
}

.nav-report-menu-head {
    display: grid;
    gap: 4px;
    padding: 4px 6px 10px;
    border-bottom: 1px solid rgba(215, 224, 234, 0.94);
}

.nav-report-menu-eyebrow {
    color: #73869a;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-report-menu-head strong {
    color: var(--primary);
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 600;
}

.nav-report-menu-head small {
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.58;
}

.nav-report-menu-grid {
    display: grid;
    gap: 8px;
}

.nav-report-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 16px;
    color: var(--primary);
    background: rgba(243, 247, 251, 0.84);
    text-decoration: none;
    transition:
        transform 0.16s ease,
        border-color 0.16s ease,
        background 0.16s ease,
        box-shadow 0.16s ease;
}

.nav-report-card:hover,
.nav-report-card:focus-visible {
    border-color: rgba(185, 204, 225, 0.94);
    background: #fff;
    box-shadow: 0 12px 22px rgba(24, 32, 42, 0.08);
    transform: translateY(-1px);
    outline: none;
}

.nav-report-card.is-active {
    border-color: rgba(17, 77, 136, 0.18);
    background: linear-gradient(135deg, rgba(6, 33, 63, 0.05), rgba(31, 191, 117, 0.07));
}

.nav-report-card-icon {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    color: #1a4f83;
    background: linear-gradient(135deg, rgba(6, 33, 63, 0.08), rgba(31, 191, 117, 0.12));
}

.nav-report-card-icon svg {
    width: 20px;
    height: 20px;
}

.nav-report-card-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.nav-report-card-copy strong {
    color: var(--primary);
    font-size: 0.96rem;
    line-height: 1.3;
    font-weight: 600;
}

.nav-report-card-copy small {
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.56;
}

.nav-sub-link {
    display: block;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 14px;
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    line-height: 1.24;
    white-space: nowrap;
    transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.nav-sub-link:hover,
.nav-sub-link:focus,
.nav-sub-link.is-active {
    color: var(--primary);
    background: var(--primary-soft);
    border-color: rgba(185, 204, 225, 0.94);
    transform: translateX(1px);
}

.app-bottom-nav,
.app-menu-backdrop,
.app-menu-panel {
    display: none;
}

.app-nav-icon,
.app-menu-icon {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px;
    border: 1px solid rgba(215, 224, 234, 0.94);
    border-radius: 20px;
    background: rgba(248, 250, 253, 0.94);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96);
    color: var(--primary);
}

.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.language-switcher-label {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.language-switcher-options {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid rgba(215, 224, 234, 0.94);
    border-radius: 999px;
    background: rgba(241, 245, 249, 0.94);
}

.language-switcher-button {
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--muted);
    background: transparent;
    border: 0;
    box-shadow: none;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
}

.language-switcher-button:hover,
.language-switcher-button:focus-visible {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.96);
    outline: none;
    filter: none;
}

.language-switcher-button.is-active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), #114d88 72%);
    box-shadow: 0 8px 16px rgba(6, 33, 63, 0.2);
}

.user-menu-card {
    min-width: 0;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 4px 8px 4px 4px;
}

.user-menu-avatar {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    color: var(--primary);
    background: linear-gradient(135deg, rgba(6, 33, 63, 0.12), rgba(31, 191, 117, 0.18));
}

.user-menu-copy {
    min-width: 0;
}

.user-menu span,
.user-menu strong,
.user-menu small {
    display: block;
}

.user-menu strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.95rem;
    line-height: 1.22;
    font-weight: 600;
}

.user-menu small {
    margin-top: 3px;
    color: #73869a;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.topbar-logout {
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 14px;
    white-space: nowrap;
}

.topbar-logout:hover,
.topbar-logout:focus-visible {
    color: var(--danger);
    background: var(--danger-soft);
    border-color: rgba(179, 38, 30, 0.18);
    filter: none;
    outline: none;
}

.flash {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 0.94rem;
    line-height: 1.58;
}

body.page-login {
    background:
        radial-gradient(circle at top right, rgba(31, 191, 117, 0.18), transparent 24%),
        linear-gradient(180deg, #f6f8fb 0%, #edf3f8 100%);
}

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px 14px;
}

.login-card {
    width: min(420px, 100%);
    display: grid;
    gap: 20px;
    padding: 22px 22px 18px;
    border: 1px solid rgba(215, 224, 234, 0.88);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: 0 22px 44px rgba(24, 32, 42, 0.09);
}

.login-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.login-brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.login-brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 15px;
    box-shadow: 0 12px 24px rgba(6, 33, 63, 0.18);
}

.login-brand-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.login-brand-copy strong {
    font-size: 1.12rem;
    color: var(--primary);
}

.login-brand-copy span {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 600;
}

.login-copy {
    display: grid;
    gap: 10px;
}

.login-card h1 {
    margin: 0;
    color: var(--primary);
    font-size: 1.92rem;
    line-height: 1.08;
    font-weight: 700;
}

.login-language-switcher {
    display: grid;
    justify-items: end;
    gap: 6px;
    margin: 4px 0 0;
}

.login-language-switcher .language-switcher-label {
    font-size: 0.74rem;
    letter-spacing: 0.02em;
    text-transform: none;
}

.login-card form {
    display: grid;
    gap: 16px;
}

.display-mode-field {
    display: grid;
    gap: 10px;
}

.display-mode-title {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.98rem;
}

.display-mode-toggle {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #f6f8fb;
}

.display-mode-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.display-mode-option {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 14px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--muted);
    cursor: pointer;
    font-weight: 700;
}

.display-mode-icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.display-mode-toggle input:checked + .display-mode-option {
    color: var(--primary);
    background: #fff;
    border-color: rgba(215, 224, 234, 0.82);
    box-shadow: 0 8px 18px rgba(24, 32, 42, 0.06);
}

.display-mode-toggle input:focus-visible + .display-mode-option {
    outline: 3px solid rgba(18, 75, 131, 0.16);
    outline-offset: 2px;
}

.login-card .field {
    display: grid;
    gap: 8px;
}

.login-card .field label {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.96rem;
}

.login-input-wrap {
    position: relative;
}

.login-input-icon {
    position: absolute;
    top: 50%;
    left: 18px;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #9aa8b8;
    transform: translateY(-50%);
    pointer-events: none;
}

.login-input-icon svg {
    width: 17px;
    height: 17px;
    display: block;
    fill: currentColor;
}

.login-card .login-input-wrap input {
    min-height: 54px;
    padding-left: 52px;
    padding-right: 16px;
    text-indent: 0;
    border-radius: 16px;
    background: #fff;
}

.login-card .login-input-wrap input::placeholder {
    color: #9aa8b8;
    font-size: 0.96rem;
}

.login-submit-button {
    min-height: 56px;
    margin-top: 6px;
    border-radius: 16px;
    font-size: 1.12rem;
    font-weight: 700;
    box-shadow: 0 16px 24px rgba(31, 191, 117, 0.18);
}

.login-install-panel {
    display: grid;
    gap: 14px;
    padding: 18px 18px 18px 20px;
    border: 1px solid rgba(46, 115, 255, 0.14);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(232, 244, 255, 0.92) 0%, rgba(244, 250, 255, 0.98) 42%, rgba(255, 255, 255, 0.99) 100%);
    box-shadow: 0 18px 34px rgba(20, 45, 84, 0.08);
    position: relative;
    overflow: hidden;
}

.login-install-panel::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, #2e73ff 0%, #1fbf75 100%);
}

.login-install-panel::after {
    content: "";
    position: absolute;
    right: -44px;
    top: -40px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(46, 115, 255, 0.12), transparent 68%);
    pointer-events: none;
}

.login-install-panel.is-hidden[hidden] {
    display: none !important;
}

.login-install-panel-copy {
    display: grid;
    gap: 6px;
}

.login-install-panel-copy strong {
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: 1.06rem;
    line-height: 1.24;
}

.login-install-panel-copy span {
    color: #587089;
    font-size: 0.93rem;
    line-height: 1.62;
}

.login-install-panel-actions {
    display: flex;
    gap: 10px;
}

.login-install-panel-actions .button {
    flex: 1;
    min-height: 46px;
    border-radius: 14px;
}

.login-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 6px;
    padding-top: 4px;
}

.login-footer .helper {
    margin: 0;
}

.login-version {
    color: #b4bfcb;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.flash-success {
    color: #0d7143;
    background: var(--accent-soft);
    border-color: rgba(31, 191, 117, 0.25);
}

.flash-error {
    color: var(--danger);
    background: var(--danger-soft);
    border-color: rgba(179, 38, 30, 0.24);
}

.page-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) auto;
    gap: 22px;
    align-items: end;
    margin-bottom: 22px;
    padding: 28px;
    border-radius: var(--radius);
    color: #fff;
    background:
        linear-gradient(120deg, rgba(6, 33, 63, 0.98), rgba(18, 75, 131, 0.92) 58%, rgba(31, 191, 117, 0.86));
    box-shadow: var(--shadow);
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(1.92rem, 3.6vw, 2.82rem);
    line-height: 1.12;
    font-weight: 700;
}

.page-hero p {
    max-width: 720px;
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
    line-height: 1.66;
}

.hero-actions,
.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.inline-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.actions-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.inline-form {
    display: block;
    margin: 0;
}

.inline-form button {
    width: auto;
}

.actions-inline form {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.actions-inline .button,
.actions-inline button {
    width: auto;
    white-space: nowrap;
}

.grid {
    display: grid;
    gap: 18px;
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.8fr);
    gap: 18px;
    align-items: start;
}

.manage-system-grid {
    align-items: stretch;
}

.manage-system-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 100%;
}

.manage-system-eyebrow {
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.manage-system-actions {
    margin-top: auto;
}

.service-management-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.service-management-filter-actions {
    justify-content: flex-start;
}

.service-content-grid.is-form-hidden {
    grid-template-columns: minmax(0, 1fr);
}

.service-content-grid.is-form-hidden .summary-panel {
    max-width: 420px;
    justify-self: start;
}

.card,
.table-card,
.form-card,
.stat-card {
    border: 1px solid rgba(215, 224, 234, 0.95);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.card,
.form-card {
    padding: 20px;
}

.stat-card {
    padding: 20px;
}

.job-summary-stats {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.stat-label {
    margin: 0;
    color: var(--muted);
    font-size: 0.89rem;
    font-weight: 600;
    line-height: 1.46;
}

.stat-value {
    margin: 9px 0 0;
    color: var(--primary);
    font-size: 1.94rem;
    line-height: 1.12;
    font-weight: 700;
}

.job-edit-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

body.page-queue .queue-card-main > .queue-card-title + span + span.muted,
body.page-queue .queue-card-main > .queue-card-title + span + span.muted + span.muted,
body.page-queue .queue-card-main > .queue-card-title + span + span.muted + span.muted + span.muted,
body.page-queue .queue-card-main > .queue-card-title + span + span.muted + span.muted + span.muted + span.muted {
    display: none;
}

.member-selected-row td {
    background: var(--primary-soft);
}

.member-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.member-vehicle-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.member-section-head {
    align-items: center;
    margin-bottom: 4px;
}

.member-vehicle-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.member-vehicle-card:hover,
.member-vehicle-card:focus {
    border-color: rgba(6, 33, 63, 0.28);
    background: var(--primary-soft);
    transform: translateY(-1px);
}

.member-vehicle-card.is-selected {
    border-color: var(--primary);
    background: var(--primary-soft);
    box-shadow: inset 4px 0 0 var(--primary);
}

.member-vehicle-card .plate-card {
    width: 128px;
}

.member-summary-list {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.member-summary-list > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.member-summary-list > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.member-summary-list strong {
    color: var(--primary);
    text-align: right;
    white-space: nowrap;
}

.member-history-table {
    min-width: 1120px;
}

.branch-revenue-card {
    margin-top: 18px;
}

.dashboard-console {
    display: grid;
    grid-template-columns: 224px minmax(0, 1fr);
    align-items: start;
    gap: 18px;
    position: relative;
}

.dashboard-console-sidebar {
    position: sticky;
    top: 14px;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 18px;
    min-height: calc(100vh - 28px);
    padding: 20px 14px 18px;
    border-radius: 30px 0 0 30px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, #071326 0%, #0a1a30 100%);
    box-shadow: 0 18px 34px rgba(6, 33, 63, 0.16);
    transition: width 0.22s ease, transform 0.22s ease, opacity 0.22s ease, padding 0.22s ease;
}

.dashboard-console-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-console-sidebar-close,
.dashboard-console-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.dashboard-console-sidebar-close svg,
.dashboard-console-toggle svg {
    width: 18px;
    height: 18px;
}

.dashboard-console-sidebar-close {
    margin-left: auto;
    display: none;
}

.dashboard-console-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0fc57a 0%, #2fd18a 100%);
    color: #06213f;
    font-family: var(--font-heading);
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.dashboard-console-brand strong {
    display: block;
    color: #f5fbff;
    font-size: 1.06rem;
    font-weight: 700;
}

.dashboard-console-brand small {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.82rem;
    font-weight: 600;
}

.dashboard-console-nav,
.dashboard-console-footer {
    display: grid;
    gap: 10px;
}

.dashboard-console-link,
.dashboard-console-footer-link,
.dashboard-console-primary {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding: 11px 13px;
    border-radius: 16px;
    text-decoration: none;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.dashboard-console-link,
.dashboard-console-footer-link {
    color: rgba(226, 236, 248, 0.82);
}

.dashboard-console-link:hover,
.dashboard-console-link:focus,
.dashboard-console-footer-link:hover,
.dashboard-console-footer-link:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.dashboard-console-link.is-active {
    color: #fff;
    background: rgba(47, 209, 138, 0.14);
    box-shadow: inset 3px 0 0 #2fd18a;
}

.dashboard-console-group {
    display: grid;
    gap: 8px;
}

.dashboard-console-group-link {
    position: relative;
}

.dashboard-console-group.is-open .dashboard-console-group-link {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.dashboard-console-group-caret {
    margin-left: auto;
    color: rgba(226, 236, 248, 0.55);
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1;
    transition: transform 0.18s ease, color 0.18s ease;
}

.dashboard-console-submenu {
    display: none;
    gap: 6px;
    padding: 4px 0 2px 14px;
    margin-left: 21px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-console-group.is-open .dashboard-console-submenu {
    display: grid;
}

.dashboard-console-group.is-open .dashboard-console-group-caret {
    color: #fff;
    transform: rotate(90deg);
}

.dashboard-console-submenu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 14px;
    color: rgba(226, 236, 248, 0.74);
    text-decoration: none;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.dashboard-console-submenu-link:hover,
.dashboard-console-submenu-link:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.dashboard-console-submenu-link.is-active {
    color: #fff;
    background: rgba(47, 209, 138, 0.12);
}

.dashboard-console-submenu-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 999px;
    background: rgba(47, 209, 138, 0.72);
    box-shadow: 0 0 0 4px rgba(47, 209, 138, 0.08);
}

.dashboard-console-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
}

.dashboard-console-link-icon svg {
    width: 18px;
    height: 18px;
}

.dashboard-console-link span:last-child,
.dashboard-console-footer-link span:last-child,
.dashboard-console-primary span:last-child {
    font-size: 0.95rem;
    font-weight: 700;
}

.dashboard-console-primary {
    justify-content: center;
    color: #06213f;
    background: linear-gradient(135deg, #16b76f 0%, #34d48f 100%);
    box-shadow: 0 14px 26px rgba(21, 146, 93, 0.24);
}

.dashboard-console-primary:hover,
.dashboard-console-primary:focus {
    transform: translateY(-1px);
}

.dashboard-console-footer {
    align-content: end;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-console-footer-link {
    min-height: 40px;
    padding: 9px 12px;
    color: rgba(226, 236, 248, 0.68);
}

.dashboard-console-main {
    min-width: 0;
    display: grid;
    gap: 18px;
}

.dashboard-console-backdrop {
    position: fixed;
    inset: 0;
    z-index: 39;
    border: 0;
    background: rgba(8, 23, 45, 0.42);
}

.dashboard-console-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 22px;
    border: 1px solid rgba(215, 224, 234, 0.95);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 254, 0.96));
    box-shadow: var(--shadow);
}

.dashboard-console-toolbar-copy h2 {
    margin: 0;
    color: var(--primary);
    font-size: 1.34rem;
    line-height: 1.14;
    font-weight: 700;
}

.dashboard-console-toolbar-copy p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.62;
}

.dashboard-console-toolbar-side {
    display: flex;
    align-items: center;
    gap: 14px;
}

.dashboard-console-toggle {
    border-color: rgba(215, 224, 234, 0.96);
    background: #fff;
    color: var(--primary);
    box-shadow: 0 10px 20px rgba(6, 33, 63, 0.06);
}

.dashboard-console-bell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(215, 224, 234, 0.96);
    border-radius: 14px;
    background: #fff;
    color: var(--primary);
}

.dashboard-console-bell svg {
    width: 18px;
    height: 18px;
}

.notification-center {
    position: relative;
    flex: 0 0 auto;
}

.notification-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(215, 224, 234, 0.96);
    border-radius: 14px;
    background: #fff;
    color: var(--primary);
    box-shadow: 0 10px 20px rgba(6, 33, 63, 0.06);
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.notification-toggle:hover,
.notification-toggle:focus-visible,
.notification-center.is-open .notification-toggle {
    transform: translateY(-1px);
    border-color: rgba(17, 77, 136, 0.18);
    box-shadow: 0 14px 24px rgba(6, 33, 63, 0.12);
    outline: none;
}

.notification-toggle svg {
    width: 18px;
    height: 18px;
}

.notification-toggle.has-alerts {
    color: #0d4e7c;
}

.notification-toggle-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: linear-gradient(135deg, #c23127, #ef5b4f);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1;
}

.topbar-notification {
    width: 42px;
    height: 42px;
    border-radius: 13px;
}

.notification-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 90;
    width: min(420px, calc(100vw - 32px));
    max-height: min(70vh, 620px);
    display: grid;
    gap: 14px;
    overflow: auto;
    padding: 16px;
    border: 1px solid rgba(215, 224, 234, 0.96);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 44px rgba(24, 32, 42, 0.16);
    backdrop-filter: blur(18px);
}

.notification-panel-head {
    display: grid;
    gap: 4px;
}

.notification-panel-head strong {
    color: var(--primary);
    font-size: 1rem;
    line-height: 1.28;
    font-weight: 700;
}

.notification-panel-head small {
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.56;
}

.notification-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.notification-summary-card {
    display: grid;
    gap: 6px;
    padding: 12px 13px;
    border: 1px solid rgba(215, 224, 234, 0.96);
    border-radius: 16px;
    background: #fff;
}

.notification-summary-card span {
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.36;
    font-weight: 700;
}

.notification-summary-card strong {
    color: var(--primary);
    font-size: 1.4rem;
    line-height: 1;
    font-weight: 700;
}

.notification-summary-card.is-danger {
    background: linear-gradient(180deg, #fff6f4, #fff);
    border-color: rgba(179, 38, 30, 0.18);
}

.notification-summary-card.is-warning {
    background: linear-gradient(180deg, #fffaf0, #fff);
    border-color: rgba(196, 122, 16, 0.18);
}

.notification-summary-card.is-info {
    background: linear-gradient(180deg, #f4f9ff, #fff);
    border-color: rgba(18, 75, 131, 0.16);
}

.notification-summary-card.is-success {
    background: linear-gradient(180deg, #f2fff8, #fff);
    border-color: rgba(31, 191, 117, 0.22);
}

.notification-section-list {
    display: grid;
    gap: 12px;
}

.notification-section {
    display: grid;
    gap: 8px;
}

.notification-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.notification-section-head strong {
    color: var(--primary);
    font-size: 0.92rem;
    line-height: 1.3;
    font-weight: 700;
}

.notification-section-head span {
    min-width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    border-radius: 999px;
    color: #fff;
    background: var(--primary);
    font-size: 0.78rem;
    font-weight: 800;
}

.notification-section.is-danger .notification-section-head span {
    background: var(--danger);
}

.notification-section.is-warning .notification-section-head span {
    background: var(--warning);
}

.notification-section.is-info .notification-section-head span {
    background: #1a4f83;
}

.notification-section.is-success .notification-section-head span {
    background: #0d7143;
}

.notification-item,
.notification-item.is-static {
    display: grid;
    gap: 4px;
    padding: 11px 12px;
    border: 1px solid rgba(215, 224, 234, 0.9);
    border-radius: 14px;
    background: rgba(248, 250, 253, 0.94);
    text-decoration: none;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.notification-item:hover,
.notification-item:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(17, 77, 136, 0.18);
    background: #fff;
    box-shadow: 0 10px 20px rgba(24, 32, 42, 0.08);
    outline: none;
}

.notification-item-title {
    color: var(--primary);
    font-size: 0.9rem;
    line-height: 1.3;
    font-weight: 700;
}

.notification-item-meta,
.notification-item-aux {
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.52;
}

.notification-empty-state {
    padding: 18px 16px;
    border: 1px dashed rgba(215, 224, 234, 0.96);
    border-radius: 16px;
    color: var(--muted);
    text-align: center;
    background: rgba(248, 250, 253, 0.84);
    font-size: 0.88rem;
}

.app-notification-dock {
    display: none;
}

.dashboard-console-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-console-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #06213f 0%, #2e79be 100%);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
}

.dashboard-console-user strong {
    display: block;
    color: var(--primary);
    font-size: 0.96rem;
    font-weight: 700;
}

.dashboard-console-user small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.dashboard-console.is-collapsed {
    grid-template-columns: 0 minmax(0, 1fr);
    gap: 0;
}

.dashboard-console.is-collapsed .dashboard-console-sidebar {
    width: 0;
    min-width: 0;
    padding: 0;
    border-width: 0;
    opacity: 0;
    overflow: hidden;
    box-shadow: none;
    pointer-events: none;
}

.dashboard-stage {
    display: grid;
    gap: 18px;
}

.dashboard-hero-panel {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) auto;
    gap: 22px 26px;
    align-items: start;
    padding: 28px 30px;
    border: 1px solid rgba(215, 224, 234, 0.95);
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(31, 191, 117, 0.08), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 254, 0.96));
    box-shadow: var(--shadow);
    color: var(--text);
}

.dashboard-hero-panel::after {
    content: "";
    position: absolute;
    right: -88px;
    bottom: -92px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 33, 63, 0.05), transparent 62%);
}

.dashboard-hero-copy,
.dashboard-hero-actions,
.dashboard-hero-branches {
    position: relative;
    z-index: 1;
}

.dashboard-hero-copy {
    display: grid;
    gap: 12px;
    max-width: 780px;
}

.dashboard-eyebrow,
.dashboard-month-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(6, 33, 63, 0.08);
    background: rgba(229, 238, 249, 0.7);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    width: fit-content;
}

.dashboard-month-chip {
    margin-top: -2px;
    color: var(--muted);
}

.dashboard-hero-copy h1 {
    margin: 0;
    color: var(--primary);
    font-size: 1.96rem;
    line-height: 1.08;
    font-weight: 700;
}

.dashboard-hero-copy p {
    margin: 0;
    max-width: 660px;
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.72;
}

.dashboard-hero-actions {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.dashboard-hero-actions .button {
    min-width: 152px;
    min-height: 54px;
    padding: 14px 18px;
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(6, 33, 63, 0.08);
}

.dashboard-hero-actions .button-secondary {
    border-color: rgba(215, 224, 234, 0.95);
    background: #fff;
    color: var(--primary);
}

.dashboard-hero-actions .button-secondary:hover,
.dashboard-hero-actions .button-secondary:focus {
    background: #fff;
}

.dashboard-hero-actions .button-accent {
    background: linear-gradient(135deg, #1ba261 0%, #28c77f 100%);
}

.dashboard-hero-branches {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.dashboard-branch-chip {
    display: grid;
    gap: 3px;
    min-width: 160px;
    padding: 13px 14px;
    border: 1px solid rgba(215, 224, 234, 0.92);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 252, 0.92));
}

.dashboard-branch-chip strong {
    color: var(--primary);
    font-size: 0.98rem;
    font-weight: 700;
}

.dashboard-branch-chip small {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.dashboard-kpi-grid,
.dashboard-status-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.dashboard-kpi-card,
.dashboard-status-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(215, 224, 234, 0.95);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 253, 0.96));
    box-shadow: var(--shadow);
}

.dashboard-kpi-card {
    padding: 20px 22px 18px;
}

.dashboard-kpi-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 16px;
    bottom: 16px;
    width: 4px;
    border-radius: 999px;
    background: var(--line);
}

.dashboard-kpi-card.is-emerald::before {
    background: linear-gradient(180deg, #0fa36a, #50d39a);
}

.dashboard-kpi-card.is-blue::before {
    background: linear-gradient(180deg, #2b6de7, #81a9ff);
}

.dashboard-kpi-card.is-slate::before {
    background: linear-gradient(180deg, #102846, #4b6f9f);
}

.dashboard-kpi-card.is-green::before {
    background: linear-gradient(180deg, #15925d, #2cc77e);
}

.dashboard-kpi-label {
    display: block;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.dashboard-kpi-main {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-top: 14px;
}

.dashboard-kpi-main strong {
    color: var(--primary);
    font-size: 2rem;
    line-height: 1;
    font-weight: 700;
}

.dashboard-kpi-main span {
    color: var(--primary);
    font-size: 0.92rem;
    font-weight: 700;
    text-align: right;
}

.dashboard-kpi-helper {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.dashboard-status-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
}

.dashboard-status-card::before {
    content: none;
}

.dashboard-status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 50%;
}

.dashboard-status-icon svg {
    width: 20px;
    height: 20px;
}

.dashboard-status-icon.is-waiting {
    background: rgba(233, 82, 60, 0.14);
    color: #d24432;
}

.dashboard-status-icon.is-service {
    background: rgba(64, 115, 255, 0.12);
    color: #2c62db;
}

.dashboard-status-icon.is-done {
    background: rgba(31, 191, 117, 0.14);
    color: #14945d;
}

.dashboard-status-icon.is-payment {
    background: rgba(196, 122, 16, 0.14);
    color: #a66a11;
}

.dashboard-status-copy {
    min-width: 0;
}

.dashboard-status-label {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-status-card strong {
    display: block;
    margin-top: 8px;
    color: var(--primary);
    font-size: 1.82rem;
    line-height: 1;
    font-weight: 700;
}

.dashboard-status-card small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 600;
}

.dashboard-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.9fr);
    align-items: start;
    gap: 18px;
}

.dashboard-main-column,
.dashboard-side-column {
    min-width: 0;
    display: grid;
    gap: 18px;
}

.dashboard-focus-card,
.dashboard-payment-mix-card,
.dashboard-branch-list-card {
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(250, 252, 255, 0.98));
}

.dashboard-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.dashboard-summary-item {
    padding: 16px;
    border: 1px solid rgba(215, 224, 234, 0.92);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 252, 0.92));
}

.dashboard-summary-item span {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.45;
}

.dashboard-summary-item strong {
    display: block;
    margin-top: 10px;
    color: var(--primary);
    font-size: 1.78rem;
    line-height: 1.08;
    font-weight: 700;
}

.dashboard-summary-item.is-danger {
    border-color: rgba(179, 38, 30, 0.18);
    background: linear-gradient(180deg, rgba(255, 244, 242, 0.98), rgba(255, 233, 229, 0.88));
}

.dashboard-summary-item.is-danger strong {
    color: var(--danger);
}

.dashboard-progress-card {
    position: relative;
    overflow: hidden;
    padding: 24px;
    border-radius: 24px;
    background: linear-gradient(135deg, #08172d 0%, #122847 54%, #183866 100%);
    color: #fff;
}

.dashboard-progress-card::after {
    content: "";
    position: absolute;
    right: -36px;
    bottom: -54px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 62%);
}

.dashboard-progress-head,
.dashboard-progress-foot {
    position: relative;
    z-index: 1;
}

.dashboard-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.dashboard-progress-head strong {
    color: #fff;
    font-size: 1.08rem;
    font-weight: 700;
}

.dashboard-progress-head span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.86rem;
    font-weight: 700;
}

.dashboard-progress-track {
    position: relative;
    z-index: 1;
    height: 14px;
    margin: 18px 0 14px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.dashboard-progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2fd18a, #88f2be);
}

.dashboard-progress-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.92rem;
    font-weight: 700;
}

.dashboard-payment-mix-list,
.dashboard-branch-list,
.dashboard-branch-revenue-list {
    display: grid;
    gap: 12px;
}

.dashboard-payment-mix-row,
.dashboard-branch-list-item,
.dashboard-branch-revenue-item {
    padding: 15px 16px;
    border: 1px solid rgba(215, 224, 234, 0.92);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 252, 0.92));
}

.dashboard-payment-mix-row {
    display: grid;
    gap: 8px;
}

.dashboard-payment-mix-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-payment-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 12px;
    background: var(--surface-soft);
}

.dashboard-payment-icon svg {
    width: 18px;
    height: 18px;
}

.dashboard-payment-icon.is-cash {
    color: #06213f;
    background: rgba(6, 33, 63, 0.08);
}

.dashboard-payment-icon.is-transfer {
    color: #4b84ff;
    background: rgba(75, 132, 255, 0.12);
}

.dashboard-payment-icon.is-qr {
    color: #0c8f79;
    background: rgba(12, 143, 121, 0.12);
}

.dashboard-payment-icon.is-card {
    color: #515f6f;
    background: rgba(81, 95, 111, 0.12);
}

.dashboard-payment-mix-meta,
.dashboard-branch-revenue-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.dashboard-payment-mix-meta strong,
.dashboard-branch-list-item strong,
.dashboard-branch-revenue-meta strong {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 700;
}

.dashboard-payment-mix-meta span,
.dashboard-branch-list-item span,
.dashboard-branch-revenue-meta span {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 600;
}

.dashboard-payment-mix-meta > span,
.dashboard-branch-list-item > strong:last-child,
.dashboard-branch-revenue-item > strong {
    color: var(--primary);
    white-space: nowrap;
}

.dashboard-payment-mix-track,
.dashboard-branch-revenue-bar {
    overflow: hidden;
    border-radius: 999px;
    background: var(--surface-soft);
}

.dashboard-payment-mix-track {
    height: 8px;
}

.dashboard-branch-revenue-bar {
    height: 10px;
    margin-top: 10px;
}

.dashboard-payment-mix-track span,
.dashboard-branch-revenue-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
}

.dashboard-payment-mix-track.is-cash span {
    background: linear-gradient(90deg, #0f955f, #39d391);
}

.dashboard-payment-mix-track.is-transfer span {
    background: linear-gradient(90deg, #1d60ea, #78a7ff);
}

.dashboard-payment-mix-track.is-qr span {
    background: linear-gradient(90deg, #0a8a7f, #38d3be);
}

.dashboard-payment-mix-track.is-card span {
    background: linear-gradient(90deg, #5f6a79, #a8b3c1);
}

.dashboard-branch-revenue-bar span {
    background: linear-gradient(90deg, #06213f, #1fbf75);
}

.dashboard-payment-mix-row small {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.dashboard-branch-list-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.dashboard-branch-list-item > div {
    display: grid;
    gap: 4px;
}

.dashboard-branch-revenue-item {
    display: grid;
    gap: 8px;
}

.dashboard-branch-revenue-item > strong {
    text-align: right;
    font-size: 1rem;
    font-weight: 700;
}

.dashboard-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.dashboard-table-section {
    overflow: hidden;
}

.dashboard-table-section-head {
    padding: 22px 22px 0;
    margin-bottom: 18px;
}

.dashboard-table-empty {
    margin: 0 22px 22px;
}

.dashboard-overview-grid {
    align-items: start;
}

.dashboard-compact-stats .stat-card {
    padding: 16px 18px;
}

.dashboard-compact-stats .stat-value {
    font-size: 1.55rem;
}

.dashboard-table {
    min-width: 860px;
}

.dashboard-table thead th {
    color: var(--primary);
    background: var(--surface-soft);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-table tbody tr:hover td {
    background: rgba(229, 238, 249, 0.4);
}

.dashboard-table th:first-child,
.dashboard-table td:first-child {
    padding-left: 22px;
}

.dashboard-table th:last-child,
.dashboard-table td:last-child {
    padding-right: 22px;
}

.dashboard-table td strong {
    font-weight: 700;
}

@media (max-width: 1280px) {
    .dashboard-console {
        grid-template-columns: 250px minmax(0, 1fr);
    }

    .dashboard-kpi-grid,
    .dashboard-status-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-main-grid,
    .dashboard-detail-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 900px) {
    .dashboard-console {
        grid-template-columns: minmax(0, 1fr);
    }

    .dashboard-console-sidebar {
        position: fixed;
        top: 16px;
        left: 16px;
        bottom: 16px;
        z-index: 40;
        width: min(320px, calc(100vw - 32px));
        max-width: calc(100vw - 32px);
        overflow-y: auto;
        transform: translateX(-110%);
        opacity: 0;
        pointer-events: none;
    }

    .dashboard-console-nav {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dashboard-console-link,
    .dashboard-console-footer-link {
        justify-content: center;
    }

    .dashboard-console-link span:last-child,
    .dashboard-console-footer-link span:last-child {
        font-size: 0.86rem;
    }

    .dashboard-hero-panel {
        grid-template-columns: minmax(0, 1fr);
        padding: 24px;
    }

    .dashboard-console-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-console-toolbar-side {
        width: 100%;
        justify-content: space-between;
    }

    .dashboard-console-sidebar-close {
        display: inline-flex;
    }

    .dashboard-console.is-sidebar-open .dashboard-console-sidebar {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }

    .dashboard-hero-actions {
        justify-content: stretch;
    }

    .dashboard-hero-actions .button {
        width: 100%;
    }

    .dashboard-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .dashboard-console-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-console-user {
        min-width: 0;
    }

    .dashboard-console-user div {
        min-width: 0;
    }

    .dashboard-hero-copy h1 {
        font-size: 1.78rem;
    }

    .dashboard-kpi-grid,
    .dashboard-status-grid,
    .dashboard-summary-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .dashboard-status-card {
        align-items: flex-start;
    }

    .dashboard-progress-foot,
    .dashboard-branch-list-item,
    .dashboard-branch-revenue-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-hero-branches {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }
}

.revenue-comparison-card {
    margin-top: 18px;
}

.revenue-comparison-gap {
    display: grid;
    justify-items: end;
    gap: 3px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
}

.revenue-comparison-gap strong {
    color: var(--danger);
    font-size: 1.4rem;
    line-height: 1;
}

.revenue-comparison-chart {
    display: grid;
    gap: 14px;
}

.revenue-comparison-row {
    display: grid;
    grid-template-columns: minmax(150px, 0.45fr) minmax(180px, 1fr) minmax(96px, auto);
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.revenue-comparison-meta {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.revenue-comparison-meta strong,
.revenue-comparison-meta span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.revenue-comparison-meta span {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.revenue-comparison-track {
    height: 20px;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--surface-soft);
}

.revenue-comparison-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
}

.revenue-comparison-track.is-opened span {
    background: linear-gradient(90deg, var(--primary), #2f78bd);
}

.revenue-comparison-track.is-paid span {
    background: linear-gradient(90deg, #138a55, var(--accent));
}

.revenue-comparison-value {
    color: var(--primary);
    text-align: right;
    white-space: nowrap;
}

.branch-revenue-total {
    display: grid;
    justify-items: end;
    gap: 3px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
}

.branch-revenue-total strong {
    color: var(--primary);
    font-size: 1.4rem;
    line-height: 1;
}

.branch-revenue-chart {
    display: grid;
    gap: 12px;
}

.branch-revenue-row {
    display: grid;
    grid-template-columns: minmax(130px, 0.5fr) minmax(150px, 1fr) minmax(96px, auto);
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.branch-revenue-meta {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.branch-revenue-meta strong,
.branch-revenue-meta span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.branch-revenue-meta span {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.branch-revenue-track {
    height: 14px;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--surface-soft);
}

.branch-revenue-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.branch-revenue-value {
    color: var(--primary);
    text-align: right;
    white-space: nowrap;
}

.section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.section-title {
    margin: 0;
    color: var(--primary);
    font-size: 1.16rem;
    line-height: 1.34;
    font-weight: 600;
}

.card > .section-title + .field,
.card > .field + .field {
    margin-top: 14px;
}

.muted {
    color: var(--muted);
}

.helper {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.62;
}

.table-card {
    overflow-x: auto;
}

.multi-role-filter-panel {
    display: grid;
    gap: 14px;
}

.multi-role-select-all {
    max-width: 220px;
}

.multi-role-role-toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.multi-role-toggle {
    min-width: 180px;
}

.multi-role-table-card {
    overflow-x: auto;
}

.multi-role-permission-table th,
.multi-role-permission-table td {
    padding: 10px 12px;
}

.multi-role-group-cell {
    width: 150px;
    white-space: nowrap;
    background: rgba(232, 239, 247, 0.55);
}

.multi-role-permission-cell {
    min-width: 280px;
    font-weight: 600;
}

.multi-role-role-head,
.multi-role-checkbox-cell {
    text-align: center;
    vertical-align: middle;
}

.multi-role-checkbox-cell input {
    width: 18px;
    height: 18px;
}

table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
    font-size: 0.93rem;
}

th,
td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
    line-height: 1.5;
}

th {
    color: var(--muted);
    background: var(--surface-soft);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

tr:last-child td {
    border-bottom: 0;
}

.stack {
    display: grid;
    gap: 5px;
}

.stack-tight {
    gap: 2px;
}

.bill-management-summary-panel {
    min-width: 0;
}

.bill-management-stats {
    margin-top: 18px;
}

.bill-management-stat-combo {
    font-size: 1.48rem;
}

.bill-management-table td {
    vertical-align: top;
}

.bill-management-services-cell {
    min-width: 240px;
}

.bill-management-row-actions {
    justify-content: flex-start;
    gap: 6px;
    flex-wrap: nowrap;
}

.qr-profile-actions {
    justify-content: flex-start;
    gap: 6px;
    flex-wrap: nowrap;
}

.qr-profile-action {
    min-width: 0;
}

.bill-management-action {
    min-width: 0;
    justify-content: center;
}

body.page-bill_management .bill-management-action.app-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    min-width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 12px;
    flex: 0 0 auto;
}

body.page-bill_management .bill-management-action.app-action-button .app-action-button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}

body.page-bill_management .bill-management-action.app-action-button .app-action-button-icon svg {
    width: 18px;
    height: 18px;
}

body.page-bill_management .bill-management-action.app-action-button .app-action-button-label {
    display: none;
}

.queue-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    padding: 6px 10px;
    border-radius: var(--radius);
    color: var(--primary);
    background: var(--primary-soft);
    font-weight: 700;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border-radius: var(--radius);
    font-size: 0.84rem;
    line-height: 1.22;
    font-weight: 700;
    white-space: nowrap;
}

.badge-waiting,
.badge-partial {
    color: var(--warning);
    background: var(--warning-soft);
}

.badge-washing,
.badge-paid,
.badge-done {
    color: #0d7143;
    background: var(--accent-soft);
}

.badge-unpaid,
.badge-cancelled {
    color: var(--danger);
    background: var(--danger-soft);
}

.button,
button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    color: #fff;
    background: var(--primary);
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    font-size: 0.94rem;
    line-height: 1.25;
    text-decoration: none;
}

.button:hover,
button:hover {
    filter: brightness(1.05);
}

.button.is-disabled,
.button[aria-disabled="true"],
button:disabled {
    color: var(--muted);
    background: var(--surface-strong);
    border-color: var(--line);
    box-shadow: none;
    filter: none;
    opacity: 1;
    pointer-events: none;
}

.button-secondary {
    color: var(--primary);
    background: var(--primary-soft);
}

.button-ghost {
    color: var(--primary);
    background: #fff;
    border-color: var(--line);
}

.button-accent {
    color: #06351f;
    background: var(--accent);
}

.button-danger {
    color: var(--danger);
    background: var(--danger-soft);
}

.button-full {
    width: 100%;
}

.app-action-button-icon {
    display: none;
}

.app-action-button-label {
    display: inline;
}

.nav .nav-group-toggle {
    min-height: 46px;
    border: 1px solid transparent;
    color: #526577;
    background: transparent;
    filter: none;
}

.nav .nav-group-toggle:hover,
.nav .nav-group-toggle:focus-visible {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(185, 204, 225, 0.94);
    filter: none;
}

.nav .nav-group-toggle.is-active {
    color: #fff;
    border-color: rgba(6, 33, 63, 0.18);
    background: linear-gradient(135deg, var(--primary), #114d88 72%);
}

form {
    display: grid;
    gap: 18px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.field {
    display: grid;
    gap: 7px;
}

.field label {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.93rem;
    line-height: 1.42;
}

.ccw-month-picker {
    position: relative;
    width: 100%;
}

.ccw-month-picker-native {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.ccw-month-picker-display {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    color: var(--primary);
    font: inherit;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.ccw-month-picker-display span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ccw-month-picker-display svg {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    color: var(--muted);
}

.ccw-month-picker-display:hover {
    border-color: #b8c9db;
}

.ccw-month-picker-display:focus-visible {
    outline: 3px solid rgba(18, 75, 131, 0.12);
    border-color: #124b83;
}

.ccw-month-picker.is-open .ccw-month-picker-display {
    border-color: #124b83;
    box-shadow: 0 0 0 3px rgba(18, 75, 131, 0.08);
}

.ccw-month-picker-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 30;
    min-width: 280px;
    padding: 12px;
    border: 1px solid rgba(211, 221, 233, 0.96);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 36px -24px rgba(13, 31, 56, 0.24);
}

.ccw-month-picker-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.ccw-month-picker-panel-head strong {
    color: var(--primary);
    font-size: 0.96rem;
    font-weight: 800;
}

.ccw-month-picker-nav {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(211, 221, 233, 0.96);
    border-radius: 12px;
    background: #fff;
    color: var(--primary);
    cursor: pointer;
}

.ccw-month-picker-nav svg {
    width: 18px;
    height: 18px;
}

.ccw-month-picker-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.ccw-month-picker-month {
    min-height: 40px;
    padding: 8px 10px;
    font: inherit;
    border: 1px solid rgba(211, 221, 233, 0.96);
    border-radius: 12px;
    background: #fff;
    color: var(--primary);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
}

.ccw-month-picker-month:hover {
    border-color: #b8c9db;
    background: rgba(244, 248, 253, 0.94);
}

.ccw-month-picker-month.is-selected {
    border-color: #124b83;
    background: #124b83;
    color: #fff;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    background: #fff;
    font: inherit;
    line-height: 1.5;
}

.field textarea {
    min-height: 110px;
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: 3px solid rgba(18, 75, 131, 0.12);
    border-color: #124b83;
}

.lookup-feedback,
.lookup-results {
    grid-column: 1 / -1;
}

.lookup-feedback {
    min-height: 22px;
    color: var(--muted);
    font-size: 0.91rem;
    line-height: 1.58;
    font-weight: 600;
}

.lookup-feedback[data-state="success"] {
    color: #0d7143;
}

.lookup-feedback[data-state="warning"] {
    color: var(--warning);
}

.lookup-feedback[data-state="error"] {
    color: var(--danger);
}

.lookup-results {
    display: grid;
    gap: 10px;
}

.lookup-results[hidden] {
    display: none;
}

.lookup-result {
    display: grid;
    justify-content: stretch;
    gap: 4px;
    min-height: 0;
    padding: 12px;
    border-color: var(--line);
    color: var(--primary);
    background: #fff;
    text-align: left;
}

.lookup-result span {
    color: var(--muted);
    font-size: 0.87rem;
    font-weight: 500;
}

.service-options {
    display: grid;
    gap: 12px;
}

.service-group-head h3,
.service-group-subhead {
    margin: 0;
    color: var(--primary);
}

.service-group-head {
    padding-top: 4px;
}

.service-group-subhead {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 900;
}

.service-option {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.compact-option {
    padding: 10px 12px;
}

.service-option input {
    margin-top: 4px;
}

.service-option strong {
    display: block;
    color: var(--primary);
}

.package-usage-picker {
    display: grid;
    gap: 6px;
    margin-top: 12px;
}

.package-usage-picker select {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    background: #fff;
    font: inherit;
}

.package-item-option {
    grid-template-columns: minmax(0, 1fr) 110px;
    align-items: center;
}

.package-item-option input {
    width: 100%;
    min-height: 42px;
    margin-top: 0;
}

.service-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.9rem;
}

.compact-service-options {
    margin-top: 10px;
}

.service-flow-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    overflow: hidden;
}

.service-flow-card summary {
    display: block;
    padding: 14px 16px;
    cursor: pointer;
    list-style: none;
}

.service-flow-card summary::-webkit-details-marker {
    display: none;
}

.service-flow-card summary span {
    display: grid;
    gap: 4px;
}

.service-flow-body {
    display: grid;
    gap: 14px;
    padding: 0 16px 16px;
}

.service-flow-step {
    display: grid;
    gap: 10px;
}

.service-flow-step > .helper:first-child {
    margin: 0;
    color: var(--primary);
    font-size: 1rem;
    font-weight: 800;
}

.service-flow-chip-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    gap: 12px;
}

.service-chip {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 14px 16px;
    border: 1px solid #c9d8e8;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f4f8fd 100%);
    color: var(--primary);
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(6, 33, 63, 0.06);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.service-chip:hover {
    border-color: #9fb9d6;
    box-shadow: 0 14px 26px rgba(6, 33, 63, 0.11);
    transform: translateY(-1px);
}

.service-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.service-chip span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    text-align: center;
    line-height: 1.2;
}

.service-chip span::before {
    content: '';
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    border: 2px solid #9fb9d6;
    border-radius: 999px;
    background: #fff;
    box-shadow: inset 0 0 0 3px #fff;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.service-chip input:checked + span {
    color: #0f5132;
}

.service-chip input:checked + span::before {
    border-color: var(--accent);
    background: radial-gradient(circle, var(--accent) 0 48%, #ffffff 50% 100%);
}

.service-chip:has(input:checked) {
    border-color: rgba(31, 191, 117, 0.58);
    background: linear-gradient(180deg, #ffffff 0%, var(--accent-soft) 100%);
    box-shadow: 0 16px 30px rgba(31, 191, 117, 0.18);
    transform: translateY(-1px);
}

.service-chip:has(input:focus-visible) {
    outline: 3px solid rgba(11, 99, 206, 0.2);
    outline-offset: 2px;
}

.service-chip:has(input:checked) span {
    color: #0f5132;
}

.film-options-panel {
    display: grid;
    gap: 16px;
    margin-top: 16px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #f9fbfe;
}

.film-options-panel[hidden] {
    display: none;
}

.film-layout {
    display: grid;
    grid-template-columns: minmax(180px, 0.55fr) minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}

.film-car-preview {
    position: relative;
    min-height: 210px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(135deg, #f7fbff, #ecf7f2);
    overflow: hidden;
}

.film-car-body {
    position: absolute;
    top: 30px;
    left: 50%;
    width: min(150px, 62%);
    height: 142px;
    border: 3px solid var(--primary);
    border-radius: 46px 46px 34px 34px;
    background:
        linear-gradient(90deg, transparent 46%, rgba(6, 33, 63, 0.16) 47%, rgba(6, 33, 63, 0.16) 53%, transparent 54%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(229, 238, 249, 0.84));
    box-shadow: inset 0 0 0 10px rgba(255, 255, 255, 0.55);
    transform: translateX(-50%);
}

.film-car-body::before,
.film-car-body::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 46px;
    border-radius: 9px;
    background: #263548;
}

.film-car-body::before {
    left: -13px;
    top: 35px;
    box-shadow: 0 54px 0 #263548;
}

.film-car-body::after {
    right: -13px;
    top: 35px;
    box-shadow: 0 54px 0 #263548;
}

.film-glass {
    position: absolute;
    z-index: 1;
    border: 2px solid rgba(6, 33, 63, 0.38);
    background: rgba(77, 173, 210, 0.26);
}

.film-glass-front {
    top: 50px;
    left: 50%;
    width: 76px;
    height: 34px;
    border-radius: 20px 20px 9px 9px;
    transform: translateX(-50%);
}

.film-glass-front-left,
.film-glass-front-right,
.film-glass-rear-left,
.film-glass-rear-right {
    width: 32px;
    height: 31px;
    border-radius: 12px;
}

.film-glass-front-left,
.film-glass-rear-left {
    left: calc(50% - 68px);
}

.film-glass-front-right,
.film-glass-rear-right {
    right: calc(50% - 68px);
}

.film-glass-front-left,
.film-glass-front-right {
    top: 90px;
}

.film-glass-rear-left,
.film-glass-rear-right {
    top: 126px;
}

.film-glass-rear {
    left: 50%;
    bottom: 38px;
    width: 74px;
    height: 30px;
    border-radius: 9px 9px 20px 20px;
    transform: translateX(-50%);
}

.film-zone {
    position: absolute;
    z-index: 2;
    display: inline-grid;
    place-items: center;
    min-width: 56px;
    min-height: 28px;
    padding: 4px 8px;
    border: 1px solid rgba(6, 33, 63, 0.22);
    border-radius: var(--radius);
    color: var(--primary);
    background: rgba(255, 255, 255, 0.86);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
}

.film-zone-front {
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
}

.film-zone-side-front {
    top: 82px;
    left: 8px;
}

.film-zone-side-rear {
    top: 124px;
    left: 8px;
}

.film-zone-rear {
    right: 18px;
    bottom: 12px;
}

.summary-panel {
    position: sticky;
    top: 108px;
}

.booking-lookup-card {
    margin-bottom: 18px;
}

.booking-flow-grid[hidden] {
    display: none !important;
}

.summary-total {
    margin: 8px 0 0;
    color: var(--primary);
    font-size: 1.82rem;
    font-weight: 700;
}

.branch-field {
    margin-bottom: 16px;
}

.summary-price-field {
    margin-top: 16px;
}

.quick-service-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.quick-service-summary-grid > div {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-soft);
}

.quick-service-summary-grid span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.quick-service-summary-grid strong {
    color: var(--primary);
    font-size: 1.02rem;
    font-weight: 700;
}

.quick-service-summary-grid > div.is-danger {
    border-color: rgba(179, 38, 30, 0.25);
    background: var(--danger-soft);
}

.quick-service-summary-grid > div.is-danger span,
.quick-service-summary-grid > div.is-danger strong {
    color: var(--danger);
}

.field input.is-danger,
.field select.is-danger,
.field textarea.is-danger {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.12);
}

.helper.is-danger {
    color: var(--danger);
    font-weight: 700;
}

.helper.is-success {
    color: var(--accent);
    font-weight: 700;
}

.checkbox-card {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #fff;
}

.checkbox-card input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
}

.quick-service-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.quick-service-actions.is-single {
    grid-template-columns: 1fr;
}

.quick-service-qr-panel {
    margin: 10px 0 18px;
    background: linear-gradient(180deg, #f8fcff 0%, #ffffff 100%);
}

.payment-slip-field input[type="file"] {
    padding: 12px 14px;
    background: #fff;
}

.quick-service-qr-preview {
    display: flex;
    justify-content: center;
    padding: 12px 0 4px;
}

.quick-service-qr-preview img {
    width: min(100%, 240px);
    max-width: 240px;
    aspect-ratio: 1;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
}

.quick-service-qr-actions {
    justify-content: center;
    margin-top: 10px;
}

.quick-service-qr-actions .button {
    min-width: 160px;
}

.quick-service-editor-note {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.quick-service-editor-meta {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.quick-service-held-card {
    margin-top: 18px;
}

.quick-service-held-table {
    min-width: 980px;
}

.quick-service-held-table .number {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.quick-service-held-table td strong,
.quick-service-held-table td .muted {
    display: block;
}

.quick-service-held-table tr.is-current td {
    background: #f4fbf8;
}

.quick-service-payment-history-card {
    margin-top: 18px;
}

.quick-service-payment-empty {
    margin: 18px;
}

.quick-service-payment-history {
    display: grid;
    gap: 12px;
}

.quick-service-payment-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface-soft);
}

.quick-service-payment-main {
    min-width: 0;
    flex: 1 1 auto;
}

.quick-service-payment-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
    color: var(--primary);
}

.quick-service-payment-topline strong {
    font-size: 1rem;
}

.quick-service-payment-topline span {
    color: var(--muted);
    font-size: 0.86rem;
    white-space: nowrap;
}

.quick-service-payment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    color: var(--text);
    font-size: 0.92rem;
    font-variant-numeric: tabular-nums;
}

.quick-service-payment-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.quick-service-payment-links .button {
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.82rem;
}

.quick-service-payment-actions {
    margin-top: 12px;
}

.quick-service-payment-edit-form {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--line);
}

.quick-service-payment-edit-actions {
    margin-top: 10px;
}

.quick-service-payment-delete {
    flex: 0 0 auto;
}

@media (max-width: 820px) {
    .quick-service-payment-row {
        flex-direction: column;
    }

    .quick-service-payment-topline {
        flex-wrap: wrap;
    }

    .quick-service-payment-delete {
        width: 100%;
    }

    .quick-service-payment-delete .button {
        width: 100%;
    }

    .quick-service-payment-links .button {
        flex: 1 1 140px;
    }
}

.booking-summary-card {
    order: 1;
}

.booking-due-card {
    order: 2;
}

.datetime-split-field {
    gap: 10px;
}

.datetime-split-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1.6fr) minmax(120px, 0.9fr);
}

.datetime-split-grid input[type="date"],
.datetime-split-grid input[type="time"] {
    width: 100%;
}

@media (max-width: 720px) {
    .datetime-split-grid {
        grid-template-columns: 1fr;
    }
}

.sale-report-card {
    max-width: 100%;
}

.sale-report-toolbar-card {
    padding: 16px 18px;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(73, 206, 171, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 250, 255, 0.96));
}

.sale-report-toolbar-form {
    display: grid;
    gap: 12px;
}

.sale-report-toolbar-head,
.sale-report-toolbar-actions,
.sale-report-current-scope,
.sale-report-kpi-head,
.sale-report-panel-head,
.sale-report-outstanding-meta {
    display: flex;
    align-items: center;
}

.sale-report-toolbar-head,
.sale-report-panel-head,
.sale-report-outstanding-meta {
    justify-content: space-between;
    gap: 12px;
}

.sale-report-toolbar-actions,
.sale-report-current-scope {
    flex-wrap: wrap;
    gap: 8px;
}

.sale-report-toolbar-actions {
    justify-content: flex-end;
}

.sale-report-filter-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(128px, 1fr));
    gap: 10px;
}

.sale-report-filter-pill {
    display: grid;
    gap: 6px;
    padding: 10px 12px;
    border: 1px solid rgba(211, 221, 233, 0.96);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.sale-report-filter-pill.is-active {
    border-color: rgba(34, 100, 232, 0.28);
    box-shadow: 0 14px 26px -24px rgba(34, 100, 232, 0.44);
}

.sale-report-filter-pill span,
.sale-report-overview-primary span,
.sale-report-overview-secondary span,
.sale-report-outstanding-label,
.sale-report-kpi-head span:first-child {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.sale-report-filter-pill input,
.sale-report-filter-pill select,
.sale-report-filter-pill .ccw-month-picker-display {
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: var(--primary);
    font-size: 0.92rem;
    font-weight: 700;
}

.sale-report-filter-pill input:focus,
.sale-report-filter-pill select:focus,
.sale-report-filter-pill .ccw-month-picker-display:focus-visible {
    outline: none;
    box-shadow: none;
}

.sale-report-filter-pill .ccw-month-picker-display {
    border-radius: 0;
}

.sale-report-filter-pill .ccw-month-picker-display svg {
    width: 16px;
    height: 16px;
}

.sale-report-current-scope span {
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--muted);
    background: rgba(230, 237, 246, 0.72);
    font-size: 0.75rem;
    font-weight: 700;
}

.sale-report-current-scope strong {
    color: var(--primary);
}

.sale-report-dashboard-modern {
    display: grid;
    gap: 14px;
}

.sale-report-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.sale-report-kpi-card,
.sale-report-overview-card,
.sale-report-outstanding-card {
    border: 1px solid rgba(215, 224, 234, 0.94);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 250, 255, 0.95));
    box-shadow: 0 18px 36px -28px rgba(13, 31, 56, 0.18);
}

.sale-report-kpi-card {
    padding: 14px 15px;
    min-height: 122px;
    border-left: 4px solid transparent;
}

.sale-report-kpi-card.is-bookings {
    border-left-color: #0b8b63;
}

.sale-report-kpi-card.is-paid {
    border-left-color: #2e73ff;
}

.sale-report-kpi-card.is-partial {
    border-left-color: #f0a827;
}

.sale-report-kpi-card.is-unpaid {
    border-left-color: #d44d41;
}

.sale-report-kpi-head {
    justify-content: space-between;
    gap: 8px;
}

.sale-report-kpi-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: rgba(226, 233, 244, 0.58);
}

.sale-report-kpi-icon svg {
    width: 18px;
    height: 18px;
}

.sale-report-kpi-icon.is-bookings {
    color: #2e73ff;
}

.sale-report-kpi-icon.is-paid {
    color: #2ab76f;
}

.sale-report-kpi-icon.is-partial {
    color: #f0a827;
}

.sale-report-kpi-icon.is-unpaid {
    color: #d44d41;
}

.sale-report-kpi-card strong,
.sale-report-overview-primary strong,
.sale-report-outstanding-card strong {
    display: block;
    color: var(--primary);
    font-size: 1.92rem;
    line-height: 1.04;
    font-weight: 800;
}

.sale-report-kpi-card p {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.sale-report-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sale-report-pill.is-healthy {
    color: #0b8b63;
    background: rgba(11, 139, 99, 0.12);
}

.sale-report-pill.is-warning {
    color: #ae6a09;
    background: rgba(240, 168, 39, 0.16);
}

.sale-report-pill.is-danger {
    color: #b3261e;
    background: rgba(211, 64, 46, 0.14);
}

.sale-report-overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.9fr);
    gap: 14px;
    align-items: stretch;
}

.sale-report-overview-card {
    padding: 18px;
    display: grid;
    gap: 14px;
}

.sale-report-overview-summary {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    gap: 12px;
}

.sale-report-overview-primary,
.sale-report-overview-secondary > div {
    padding: 14px;
    border: 1px solid rgba(221, 229, 239, 0.92);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
}

.sale-report-overview-secondary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.sale-report-overview-secondary strong {
    display: block;
    margin-top: 8px;
    color: var(--primary);
    font-size: 1.28rem;
    line-height: 1.08;
    font-weight: 800;
}

.sale-report-panel-head h3 {
    margin: 0;
    color: var(--primary);
    font-size: 1rem;
    font-weight: 800;
}

.sale-report-panel-head p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.sale-report-panel-head a {
    color: #2e73ff;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 800;
}

.sale-report-payment-mix-card {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(248, 250, 255, 0.98), rgba(242, 246, 252, 0.96));
}

.sale-report-payment-mix-list {
    display: grid;
    gap: 10px;
}

.sale-report-payment-mix-row {
    display: grid;
    gap: 7px;
}

.sale-report-payment-mix-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sale-report-payment-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: rgba(221, 229, 239, 0.56);
}

.sale-report-payment-icon svg {
    width: 20px;
    height: 20px;
}

.sale-report-payment-icon.is-cash {
    color: #0e2649;
}

.sale-report-payment-icon.is-transfer {
    color: #4b84ff;
}

.sale-report-payment-icon.is-card {
    color: #6a7788;
}

.sale-report-payment-icon.is-unknown {
    color: #91641c;
}

.sale-report-payment-mix-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.sale-report-payment-mix-meta strong {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 800;
}

.sale-report-payment-mix-meta span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.sale-report-payment-track {
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(221, 229, 239, 0.9);
}

.sale-report-payment-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
}

.sale-report-payment-track span.is-cash {
    background: #0e2649;
}

.sale-report-payment-track span.is-transfer {
    background: #4b84ff;
}

.sale-report-payment-track span.is-card {
    background: #6a7788;
}

.sale-report-payment-track span.is-unknown {
    background: #c18b34;
}

.sale-report-outstanding-card {
    position: relative;
    overflow: hidden;
    padding: 18px;
    background: linear-gradient(135deg, #0a1732 0%, #122245 58%, #18325f 100%);
    color: #fff;
}

.sale-report-outstanding-card::after {
    content: "";
    position: absolute;
    right: -52px;
    bottom: -60px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(90, 161, 255, 0.18), transparent 62%);
}

.sale-report-outstanding-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(50, 116, 255, 0.18);
    color: #6ea4ff;
}

.sale-report-outstanding-icon svg {
    width: 22px;
    height: 22px;
}

.sale-report-outstanding-copy {
    margin: 8px 0 0;
    color: rgba(232, 239, 255, 0.72);
    font-size: 0.86rem;
    line-height: 1.5;
}

.sale-report-outstanding-card strong {
    margin-top: 14px;
    color: #fff;
}

.sale-report-outstanding-meta {
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.sale-report-outstanding-meta span {
    color: rgba(232, 239, 255, 0.7);
    font-size: 0.82rem;
    font-weight: 700;
}

.sale-report-outstanding-meta strong {
    margin: 0;
    color: #fff;
    font-size: 1rem;
}

.sale-report-outstanding-card .button {
    position: relative;
    z-index: 1;
    margin-top: 16px;
    background: #1f6cff;
    border-color: #1f6cff;
}

.sale-report-toolbar-actions .button {
    min-height: 40px;
    padding: 10px 15px;
    border-radius: 14px;
    font-size: 0.86rem;
}

@media (max-width: 1480px) {
    .sale-report-filter-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.sale-report-dashboard .section-head {
    padding: 0;
}

.sale-report-stat-card .stat-value {
    font-size: 1.85rem;
}

.sale-report-stat-helper {
    margin: 12px 0 0;
    min-height: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sale-report-table {
    min-width: 1680px;
    font-size: 0.84rem;
}

.sale-report-table th,
.sale-report-table td {
    padding: 9px 10px;
    border: 1px solid var(--line);
    vertical-align: middle;
}

.sale-report-table thead th {
    color: var(--primary);
    background: var(--surface-strong);
    text-align: center;
    white-space: nowrap;
}

.sale-report-table .number {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.sale-report-status-cell {
    text-align: center;
    white-space: nowrap;
}

.sale-report-total-row td {
    color: var(--primary);
    background: var(--warning-soft);
    font-weight: 900;
}

.sale-report-month-row td {
    background: var(--primary-soft);
}

.sale-report-void-row td {
    color: var(--danger);
    background: var(--danger-soft);
    font-weight: 800;
}

.sale-report-void-row .bill-link {
    color: var(--danger);
}

.void-label {
    display: block;
    margin-top: 3px;
    color: var(--danger);
    font-size: 0.78rem;
    font-weight: 900;
}

.ref-label {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
}

.sale-report-spacer td {
    height: 14px;
    padding: 0;
    background: var(--surface-soft);
}

.empty-report-cell {
    padding: 24px !important;
    color: var(--muted);
    text-align: center;
}

@media (max-width: 1240px) {
    .sale-report-filter-strip,
    .sale-report-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sale-report-overview-grid,
    .sale-report-overview-summary,
    .sale-report-overview-secondary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .sale-report-toolbar-card,
    .sale-report-overview-card,
    .sale-report-outstanding-card {
        padding: 18px;
    }

    .sale-report-toolbar-head,
    .sale-report-toolbar-actions,
    .sale-report-current-scope,
    .sale-report-panel-head,
    .sale-report-payment-mix-meta,
    .sale-report-outstanding-meta {
        align-items: stretch;
        flex-direction: column;
    }

    .sale-report-filter-strip,
    .sale-report-kpi-grid {
        grid-template-columns: 1fr;
    }

    .sale-report-kpi-card {
        min-height: 0;
    }
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.tabs a {
    padding: 10px 13px;
    border-radius: var(--radius);
    color: var(--muted);
    background: var(--surface);
    border: 1px solid var(--line);
    text-decoration: none;
    font-weight: 800;
}

.tabs a.is-active {
    color: #fff;
    background: var(--primary);
}

.job-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.job-card-head,
.job-card-foot {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.plate {
    display: inline-flex;
    padding: 10px 14px;
    border: 2px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: 900;
}

.plate-card {
    display: inline-grid;
    justify-items: center;
    gap: 3px;
    padding: 8px 12px;
    border: 2px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.plate-card .plate {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.plate-province {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.1;
}

.queue-grid {
    align-items: start;
}

.queue-card {
    grid-template-columns: 128px minmax(0, 1fr) auto;
    align-items: start;
    gap: 18px;
    min-height: 128px;
    padding: 14px 16px;
}

.queue-card-identity {
    display: grid;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
}

.queue-card .queue-chip {
    width: 100%;
    min-height: 32px;
}

.queue-card .plate-card {
    width: 100%;
    min-height: 64px;
    padding: 8px 10px;
    overflow: hidden;
}

.queue-card .plate-card .plate {
    max-width: 100%;
    font-size: 1.45rem;
    line-height: 1;
    overflow-wrap: anywhere;
    text-align: center;
}

.queue-card .plate-province {
    max-width: 100%;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.queue-card-main {
    display: grid;
    align-content: start;
    gap: 5px;
    min-width: 0;
}

.queue-card-main > span,
.queue-card-title span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.queue-card-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 18px;
    min-width: 0;
    color: var(--text);
    font-weight: 900;
}

.queue-card-title strong {
    color: var(--primary);
    font-size: 1.05rem;
}

.queue-card-side {
    display: grid;
    align-content: start;
    justify-items: end;
    gap: 18px;
    min-width: 0;
}

.queue-card-status {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.queue-details-button {
    min-width: 84px;
}

.queue-secondary-actions {
    justify-content: flex-end;
    gap: 8px;
}

.queue-secondary-actions .button {
    min-height: 34px;
    padding: 8px 10px;
    font-size: 0.82rem;
}

body.display-web.page-queue .app-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 14px;
}

body.display-web.page-queue .app-action-button .app-action-button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 9px;
    color: currentColor;
    background: rgba(16, 48, 86, 0.08);
    flex: 0 0 auto;
}

body.display-web.page-queue .button-accent.app-action-button .app-action-button-icon {
    background: rgba(6, 53, 31, 0.12);
}

body.display-web.page-queue .button-danger.app-action-button .app-action-button-icon {
    background: rgba(179, 38, 30, 0.12);
}

body.display-web.page-queue .app-action-button .app-action-button-icon svg {
    width: 15px;
    height: 15px;
}

body.display-web.page-queue .app-action-button .app-action-button-label {
    display: inline;
    line-height: 1.15;
}

body.display-web.page-queue .queue-details-button {
    min-width: 0;
}

body.display-web.page-queue .queue-secondary-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

body.display-web.page-queue .queue-secondary-actions .button {
    width: auto;
}

body.display-web.page-queue .queue-details-button,
body.display-web.page-queue .queue-secondary-actions .app-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 14px;
    box-shadow: 0 10px 20px rgba(24, 32, 42, 0.06);
}

body.display-web.page-queue .queue-details-button .app-action-button-icon,
body.display-web.page-queue .queue-secondary-actions .app-action-button .app-action-button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 10px;
    background: rgba(16, 48, 86, 0.08);
}

body.display-web.page-queue .queue-details-button .app-action-button-icon svg,
body.display-web.page-queue .queue-secondary-actions .app-action-button .app-action-button-icon svg {
    width: 15px;
    height: 15px;
}

body.display-web.page-queue .queue-details-button .app-action-button-label,
body.display-web.page-queue .queue-secondary-actions .app-action-button .app-action-button-label {
    display: inline;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.18;
}

body.display-web.page-queue .queue-details-button.button-accent .app-action-button-icon,
body.display-web.page-queue .queue-secondary-actions .button-accent.app-action-button .app-action-button-icon {
    background: rgba(6, 53, 31, 0.12);
}

body.display-web.page-queue .queue-details-button.button-secondary .app-action-button-icon,
body.display-web.page-queue .queue-secondary-actions .button-secondary.app-action-button .app-action-button-icon,
body.display-web.page-queue .queue-details-button.is-disabled .app-action-button-icon {
    background: rgba(16, 48, 86, 0.08);
}

body.display-web.page-queue .queue-secondary-actions {
    align-items: center;
}

.empty-state {
    padding: 28px;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    color: var(--muted);
    text-align: center;
    background: rgba(255, 255, 255, 0.72);
}

body.display-app {
    background: #dfe7ef;
}

body.display-app.app-menu-open {
    overflow: hidden;
}

body.display-app .login-shell {
    padding: 14px;
}

body.display-app .login-card {
    width: min(380px, 100%);
    padding: 20px 18px 16px;
    border-radius: 20px;
}

body.display-app .login-header {
    align-items: center;
}

body.display-app .login-brand-mark {
    width: 48px;
    height: 48px;
}

body.display-app .login-card h1 {
    font-size: 1.9rem;
}

body.display-app .login-brand-copy strong {
    font-size: 1.06rem;
}

body.display-app .display-mode-option {
    min-height: 48px;
}

body.display-app .login-submit-button {
    min-height: 54px;
    font-size: 1.12rem;
}

body.display-app .login-install-panel {
    padding: 15px 14px 15px 16px;
    border-radius: 18px;
}

body.display-app .login-install-panel-copy strong {
    font-size: 0.98rem;
}

body.display-app .login-install-panel-copy span {
    font-size: 0.9rem;
    line-height: 1.5;
}

body.display-app .login-install-panel-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

body.display-app .login-footer {
    align-items: flex-end;
}

body.page-login.display-app .login-language-switcher {
    gap: 5px;
}

body.page-login.display-app .login-language-switcher .language-switcher-label {
    display: inline-flex;
    justify-self: start;
    font-size: 0.74rem;
    letter-spacing: 0.02em;
    text-transform: none;
}

body.page-login.display-app .login-language-switcher .language-switcher-options {
    padding: 3px;
}

body.page-login.display-app .login-language-switcher .language-switcher-button {
    min-height: 34px;
    min-width: 38px;
    padding: 6px 12px;
    font-size: 0.76rem;
}

body.display-app .login-card .login-input-wrap input {
    min-height: 52px;
    padding-left: 50px;
}

body.display-app .login-header {
    gap: 14px;
}

body.display-app .login-brand-lockup {
    gap: 12px;
}

body.display-app .app-shell {
    width: min(430px, 100%);
    min-height: 100vh;
    padding: 0 0 calc(92px + env(safe-area-inset-bottom));
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 248, 251, 0.98)),
        var(--bg);
    box-shadow: 0 0 0 1px rgba(215, 224, 234, 0.8), 0 22px 48px rgba(24, 32, 42, 0.12);
}

body.display-app .topbar {
    top: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    padding: 8px 10px;
    border-width: 0 0 1px;
    border-radius: 0;
    box-shadow: 0 8px 18px rgba(24, 32, 42, 0.06);
}

body.display-app .topbar::before,
body.display-app .topbar-nav-zone {
    display: none;
}

body.display-app .brand {
    min-width: 0;
    padding: 0;
    gap: 8px;
}

body.display-app .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    font-size: 0.84rem;
}

body.display-app .brand strong {
    overflow: hidden;
    max-width: 120px;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.88rem;
    line-height: 1.24;
}

body.display-app .brand small,
body.display-app .user-menu small {
    display: none;
}

body.display-app .topbar-user-zone {
    min-width: 0;
}

body.display-app .user-menu {
    justify-content: end;
    gap: 6px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    flex-wrap: nowrap;
    white-space: nowrap;
}

body.display-app .notification-center {
    flex: 0 0 auto;
}

body.display-app .topbar-notification {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(6, 33, 63, 0.08);
}

body.display-app .topbar-notification svg {
    width: 16px;
    height: 16px;
}

body.display-app .notification-toggle-badge {
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    font-size: 0.64rem;
}

body.display-app .notification-panel {
    position: fixed;
    top: calc(env(safe-area-inset-top) + 82px);
    left: 10px;
    right: 10px;
    width: auto;
    max-height: calc(100vh - 180px - env(safe-area-inset-bottom));
    padding: 14px;
    border-radius: 18px;
    z-index: 120;
    overscroll-behavior: contain;
}

body.display-app .app-notification-dock {
    display: block;
    margin: 0 10px 12px;
}

body.display-app .app-notification-dock[hidden] {
    display: none !important;
}

body.display-app .app-notification-dock .notification-panel {
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: 100% !important;
    max-height: none !important;
    margin: 0 !important;
    z-index: auto !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    overscroll-behavior: contain;
    transform: none !important;
}

body.display-app .app-notification-dock .notification-panel-head {
    position: static;
    top: auto;
    z-index: auto;
    padding-bottom: 0;
    background: transparent;
}

body.display-app .notification-summary-grid {
    grid-template-columns: 1fr 1fr;
}

body.display-app .user-menu-card {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    padding: 0;
}

body.display-app .user-menu-avatar {
    display: none;
}

body.display-app .user-menu strong {
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.84rem;
    line-height: 1.24;
}

body.display-app .dashboard-console-toolbar {
    display: none;
}

body.display-app .user-menu .button {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 0.82rem;
}

body.display-app .language-switcher {
    gap: 0;
}

body.display-app .language-switcher-label {
    display: none;
}

body.display-app .language-switcher-options {
    padding: 2px;
}

body.display-app .language-switcher-button {
    min-height: 28px;
    padding: 5px 8px;
    font-size: 0.72rem;
}

body.display-app .topbar-logout {
    display: none;
}

body.display-app .notification-panel-head {
    position: static;
    top: auto;
    z-index: auto;
    padding-bottom: 4px;
    background: transparent;
}

body.display-app .notification-section-head {
    align-items: center;
    gap: 8px;
}

body.display-app .notification-section-head strong {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.78rem;
    line-height: 1.2;
    white-space: nowrap;
    word-break: normal;
    overflow: visible;
}

body.display-app .notification-section-head span {
    flex: 0 0 auto;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    font-size: 0.7rem;
}

body.display-app .notification-item,
body.display-app .notification-item.is-static {
    gap: 3px;
    padding: 10px 11px;
}

body.display-app .notification-item-title {
    font-size: 0.84rem;
    line-height: 1.34;
    word-break: break-word;
}

body.display-app .notification-item-meta,
body.display-app .notification-item-aux {
    font-size: 0.74rem;
    line-height: 1.45;
    word-break: break-word;
}

body.display-app .nav {
    display: none;
}

body.display-app .app-bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 0;
    z-index: 80;
    width: min(430px, 100%);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(215, 224, 234, 0.96);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -12px 26px rgba(24, 32, 42, 0.12);
    transform: translateX(-50%);
}

body.display-app .app-nav-link {
    width: 100%;
    min-width: 0;
    min-height: 60px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 7px 4px;
    border: 0;
    border-radius: var(--radius);
    color: var(--muted);
    background: transparent;
    text-align: center;
    text-decoration: none;
    font: inherit;
    font-weight: 700;
    font-size: 0.74rem;
    line-height: 1.1;
}

body.display-app .app-nav-link:hover,
body.display-app .app-nav-link:focus {
    color: var(--primary);
    background: var(--surface-soft);
}

body.display-app .app-nav-link.is-active {
    color: var(--primary);
    background: var(--primary-soft);
}

body.display-app .app-nav-link span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

body.display-app .app-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: block;
    background: rgba(6, 33, 63, 0.36);
}

body.display-app .app-menu-panel {
    position: fixed;
    left: 50%;
    bottom: calc(82px + env(safe-area-inset-bottom));
    z-index: 100;
    width: min(410px, calc(100% - 20px));
    max-height: min(72vh, 620px);
    display: block;
    overflow-y: auto;
    padding: 10px 12px 14px;
    border: 1px solid rgba(215, 224, 234, 0.96);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 18px 42px rgba(24, 32, 42, 0.22);
    transform: translateX(-50%);
}

body.display-app .app-menu-backdrop[hidden],
body.display-app .app-menu-panel[hidden] {
    display: none;
}

body.display-app .app-menu-grip {
    width: 42px;
    height: 4px;
    margin: 2px auto 10px;
    border-radius: 99px;
    background: var(--line);
}

body.display-app .app-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 2px 10px;
}

body.display-app .app-menu-head h2 {
    margin: 0;
    color: var(--primary);
    font-size: 1.08rem;
    line-height: 1.3;
}

body.display-app .app-menu-close {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: var(--radius);
    color: var(--primary);
    background: var(--surface-soft);
}

body.display-app .app-menu-section {
    padding: 12px 0;
    border-top: 1px solid var(--line);
}

body.display-app .app-menu-section h3 {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
}

body.display-app .app-menu-list {
    display: grid;
    gap: 8px;
}

body.display-app .app-menu-link {
    min-height: 52px;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--primary);
    background: #fff;
    text-decoration: none;
    font-weight: 700;
}

body.display-app .app-menu-link:hover,
body.display-app .app-menu-link:focus,
body.display-app .app-menu-link.is-active {
    border-color: #b9cce1;
    background: var(--primary-soft);
}

body.display-app .app-menu-link-icon {
    width: 40px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border-radius: var(--radius);
    color: var(--primary);
    background: var(--surface-soft);
}

body.display-app .app-menu-link[href*="logout"] {
    color: var(--danger);
}

body.display-app .app-menu-link[href*="logout"] .app-menu-link-icon {
    color: var(--danger);
    background: var(--danger-soft);
}

body.display-app .app-shell > .flash,
body.display-app .app-shell > .page-hero,
body.display-app .app-shell > .dashboard-hero-panel,
body.display-app .app-shell > .content-grid,
body.display-app .app-shell > .grid,
body.display-app .app-shell > .tabs,
body.display-app .app-shell > .card,
body.display-app .app-shell > .form-card,
body.display-app .app-shell > .table-card {
    margin-right: 12px;
    margin-left: 12px;
}

body.display-app .page-hero {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
}

body.display-app .page-hero,
body.display-app .dashboard-hero-panel {
    display: none;
}

body.display-app .page-hero h1 {
    font-size: 1.72rem;
    line-height: 1.16;
}

body.display-app .page-hero p {
    font-size: 0.92rem;
    line-height: 1.6;
}

body.display-app .dashboard-console {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
}

body.display-app .dashboard-console-sidebar {
    position: fixed;
    top: 70px;
    left: 12px;
    bottom: calc(82px + env(safe-area-inset-bottom));
    z-index: 95;
    width: min(320px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    min-height: auto;
    overflow-y: auto;
    transform: translateX(-110%);
    opacity: 0;
    pointer-events: none;
}

body.display-app .dashboard-console-sidebar-close {
    display: inline-flex;
}

body.display-app .dashboard-console-backdrop {
    position: fixed;
    inset: 0;
    z-index: 94;
    background: rgba(8, 23, 45, 0.42);
}

body.display-app .dashboard-console.is-sidebar-open .dashboard-console-sidebar {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

body.display-app .dashboard-console-main {
    min-width: 0;
}

body.display-app .dashboard-stage {
    gap: 14px;
}

body.display-app .dashboard-kpi-grid,
body.display-app .dashboard-status-grid,
body.display-app .dashboard-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

body.display-app .dashboard-kpi-card,
body.display-app .dashboard-status-card,
body.display-app .dashboard-focus-card,
body.display-app .dashboard-payment-mix-card,
body.display-app .dashboard-branch-list-card,
body.display-app .dashboard-table-section {
    border-radius: 18px;
}

body.display-app .dashboard-kpi-card {
    padding: 16px 16px 14px 18px;
}

body.display-app .dashboard-kpi-card::before {
    top: 12px;
    bottom: 12px;
}

body.display-app .dashboard-kpi-label {
    font-size: 0.7rem;
    letter-spacing: 0.06em;
}

body.display-app .dashboard-kpi-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-top: 10px;
}

body.display-app .dashboard-kpi-main strong {
    font-size: 1.85rem;
}

body.display-app .dashboard-kpi-main span {
    font-size: 0.82rem;
    text-align: left;
}

body.display-app .dashboard-kpi-helper {
    margin-top: 10px;
    font-size: 0.84rem;
    line-height: 1.48;
}

body.display-app .dashboard-status-card {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 12px;
    padding: 14px 14px 14px 16px;
}

body.display-app .dashboard-status-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
}

body.display-app .dashboard-status-card strong {
    margin-top: 6px;
    font-size: 1.58rem;
}

body.display-app .dashboard-status-card small {
    margin-top: 4px;
    font-size: 0.8rem;
    line-height: 1.4;
}

body.display-app .dashboard-main-grid,
body.display-app .dashboard-detail-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}

body.display-app .dashboard-main-column,
body.display-app .dashboard-side-column {
    gap: 14px;
}

body.display-app .dashboard-focus-card,
body.display-app .dashboard-payment-mix-card,
body.display-app .dashboard-branch-list-card {
    padding: 16px;
}

body.display-app .dashboard-summary-grid {
    margin-bottom: 14px;
}

body.display-app .dashboard-summary-item {
    padding: 13px 12px;
    border-radius: 14px;
}

body.display-app .dashboard-summary-item span {
    font-size: 0.76rem;
    line-height: 1.38;
}

body.display-app .dashboard-summary-item strong {
    margin-top: 8px;
    font-size: 1.42rem;
}

body.display-app .dashboard-progress-card {
    padding: 16px;
    border-radius: 18px;
}

body.display-app .dashboard-progress-head,
body.display-app .dashboard-progress-foot {
    display: grid;
    gap: 6px;
}

body.display-app .dashboard-progress-head strong {
    font-size: 0.98rem;
}

body.display-app .dashboard-progress-head span,
body.display-app .dashboard-progress-foot {
    font-size: 0.8rem;
}

body.display-app .dashboard-progress-track {
    margin: 12px 0 10px;
}

body.display-app .dashboard-payment-mix-list,
body.display-app .dashboard-branch-list,
body.display-app .dashboard-branch-revenue-list {
    gap: 10px;
}

body.display-app .dashboard-payment-mix-row,
body.display-app .dashboard-branch-list-item,
body.display-app .dashboard-branch-revenue-item {
    padding: 12px;
    border-radius: 14px;
}

body.display-app .dashboard-payment-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 10px;
}

body.display-app .dashboard-payment-icon svg {
    width: 16px;
    height: 16px;
}

body.display-app .dashboard-payment-mix-meta strong,
body.display-app .dashboard-branch-list-item strong,
body.display-app .dashboard-branch-revenue-meta strong,
body.display-app .dashboard-branch-revenue-item > strong {
    font-size: 0.92rem;
}

body.display-app .dashboard-payment-mix-meta span,
body.display-app .dashboard-branch-list-item span,
body.display-app .dashboard-branch-revenue-meta span,
body.display-app .dashboard-payment-mix-row small {
    font-size: 0.78rem;
}

body.display-app .dashboard-table-section-head {
    padding: 16px 16px 0;
    margin-bottom: 12px;
}

body.display-app .dashboard-table-empty {
    margin: 0 16px 16px;
}

body.display-app .dashboard-table {
    min-width: 680px;
}

body.display-app .dashboard-table th:first-child,
body.display-app .dashboard-table td:first-child {
    padding-left: 16px;
}

body.display-app .dashboard-table th:last-child,
body.display-app .dashboard-table td:last-child {
    padding-right: 16px;
}

@media (max-width: 380px) {
    body.display-app .dashboard-kpi-grid,
    body.display-app .dashboard-status-grid,
    body.display-app .dashboard-summary-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

body.display-app .content-grid,
body.display-app .grid-4,
body.display-app .grid-3,
body.display-app .grid-2,
body.display-app .form-grid,
body.display-app .film-layout {
    grid-template-columns: 1fr;
}

body.display-app .job-summary-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

body.display-app .card,
body.display-app .form-card,
body.display-app .table-card,
body.display-app .stat-card,
body.display-app .job-card {
    border-radius: var(--radius);
    box-shadow: 0 12px 28px rgba(24, 32, 42, 0.07);
}

body.display-app .card,
body.display-app .form-card,
body.display-app .stat-card {
    padding: 18px;
}

body.display-app .summary-panel {
    position: static;
}

body.display-app .section-head,
body.display-app .job-card-head,
body.display-app .job-card-foot {
    display: grid;
}

body.display-app .button,
body.display-app button,
body.display-app .field input,
body.display-app .field select,
body.display-app .field textarea {
    min-height: 50px;
    font-size: 0.97rem;
}

body.display-app .ccw-month-picker-display {
    min-height: 50px;
    font-size: 0.97rem;
}

body.display-app .ccw-month-picker-panel {
    min-width: 250px;
}

body.display-app .datetime-split-grid {
    grid-template-columns: minmax(0, 1fr) 118px;
    align-items: center;
}

body.display-app .datetime-split-grid input[type="date"],
body.display-app .datetime-split-grid input[type="time"] {
    min-width: 0;
}

body.display-app .section-title {
    font-size: 1.08rem;
    line-height: 1.34;
}

body.display-app .helper,
body.display-app .muted {
    line-height: 1.56;
}

body.display-app .stat-value {
    font-size: 1.82rem;
}

body.display-app .actions .button,
body.display-app .actions button,
body.display-app .hero-actions .button,
body.display-app .hero-actions button {
    width: 100%;
}

body.display-app .booking-lookup-actions,
body.display-app .service-management-filter-actions,
body.display-app .sale-report-toolbar-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

body.display-app .queue-secondary-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

body.display-app .app-action-button {
    display: grid !important;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    justify-content: stretch;
    gap: 8px;
    min-height: 46px;
    padding: 8px 10px;
    border-radius: 14px;
    text-align: left;
    box-shadow: 0 8px 18px rgba(24, 32, 42, 0.06);
}

body.display-app .app-action-button .app-action-button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    color: currentColor;
    background: rgba(255, 255, 255, 0.16);
}

body.display-app .app-action-button .app-action-button-icon svg {
    width: 15px;
    height: 15px;
}

body.display-app .app-action-button .app-action-button-label {
    display: block;
    min-width: 0;
    text-align: left;
    font-weight: 800;
    font-size: 0.84rem;
    line-height: 1.16;
}

body.display-app .booking-lookup-actions .app-action-button,
body.display-app .service-management-filter-actions .app-action-button,
body.display-app .sale-report-toolbar-actions .app-action-button {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 6px;
    padding: 8px 8px 9px;
}

body.display-app .booking-lookup-actions .app-action-button .app-action-button-label,
body.display-app .service-management-filter-actions .app-action-button .app-action-button-label,
body.display-app .sale-report-toolbar-actions .app-action-button .app-action-button-label {
    text-align: center;
}

body.display-app .queue-secondary-actions .app-action-button {
    grid-template-columns: 28px minmax(0, 1fr);
}

body.display-app .queue-secondary-actions .app-action-button .app-action-button-label {
    font-size: 0.82rem;
}

body.display-app.page-bill_management .bill-management-row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: nowrap;
}

body.display-app.page-bill_management .bill-management-row-actions .button,
body.display-app.page-bill_management .bill-management-row-actions button {
    width: 38px;
    min-width: 38px;
    max-width: 38px;
}

body.display-app.page-bill_management .bill-management-action.app-action-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    grid-template-columns: none;
    width: 38px;
    min-width: 38px;
    max-width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    gap: 0;
    border-radius: 12px;
    text-align: center;
    box-shadow: none;
}

body.display-app.page-bill_management .bill-management-action.app-action-button .app-action-button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 0;
    background: transparent;
}

body.display-app.page-bill_management .bill-management-action.app-action-button .app-action-button-icon svg {
    width: 18px;
    height: 18px;
}

body.display-app.page-bill_management .bill-management-action.app-action-button .app-action-button-label {
    display: none !important;
}

body.display-app.page-quick_service_settings .qr-profile-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
}

body.display-app.page-quick_service_settings .qr-profile-actions form {
    display: inline-flex;
    margin: 0;
}

body.display-app.page-quick_service_settings .qr-profile-action.app-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    min-width: 38px;
    height: 38px;
    padding: 0;
    gap: 0;
    font-size: 0;
    line-height: 0;
    border-radius: 12px;
    text-align: center;
    box-shadow: none;
    flex: 0 0 auto;
}

body.display-app.page-quick_service_settings .qr-profile-action.app-action-button .app-action-button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    line-height: 0;
    border-radius: 0;
    background: transparent;
}

body.display-app.page-quick_service_settings .qr-profile-action.app-action-button .app-action-button-icon svg {
    display: block;
    width: 20px;
    height: 20px;
}

body.display-app.page-quick_service_settings .qr-profile-action.app-action-button .app-action-button-label {
    display: none !important;
}

body.display-app .button-secondary.app-action-button,
body.display-app .button-ghost.app-action-button,
body.display-app .is-disabled.app-action-button {
    color: var(--primary);
    box-shadow: none;
}

body.display-app .button-secondary.app-action-button .app-action-button-icon,
body.display-app .button-ghost.app-action-button .app-action-button-icon,
body.display-app .is-disabled.app-action-button .app-action-button-icon {
    background: rgba(16, 48, 86, 0.08);
}

body.display-app .button-accent.app-action-button {
    color: #06351f;
}

body.display-app .button-accent.app-action-button .app-action-button-icon {
    background: rgba(6, 53, 31, 0.12);
}

body.display-app .button.app-action-button:not(.button-secondary):not(.button-ghost):not(.button-accent):not(.button-danger) .app-action-button-icon,
body.display-app button.app-action-button:not(.button-secondary):not(.button-ghost):not(.button-accent):not(.button-danger) .app-action-button-icon {
    background: rgba(255, 255, 255, 0.14);
}

body.display-app .button-danger.app-action-button {
    color: var(--danger);
}

body.display-app .button-danger.app-action-button .app-action-button-icon {
    background: rgba(179, 38, 30, 0.12);
}

body.display-app .queue-card {
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
}

body.display-app .queue-card-side {
    grid-column: 1 / -1;
    justify-items: stretch;
    gap: 10px;
}

body.display-app .queue-card-status {
    justify-content: flex-start;
}

body.display-app.page-member .card,
body.display-app.page-member .table-card,
body.display-app.page-member .form-card {
    padding: 14px;
}

body.display-app.page-member .section-head {
    gap: 8px;
}

body.display-app.page-member .helper,
body.display-app.page-member .muted {
    line-height: 1.42;
}

body.display-app.page-member .actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

body.display-app.page-member .actions .button,
body.display-app.page-member .actions button {
    width: 100%;
    min-height: 42px;
    padding: 8px 10px;
    font-size: 0.86rem;
}

body.display-app.page-member .actions-inline {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
}

body.display-app.page-member .actions-inline form {
    display: inline-flex;
    margin: 0;
}

body.display-app.page-member .actions-inline .button,
body.display-app.page-member .actions-inline button {
    min-height: 38px;
    padding: 7px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    line-height: 1.08;
}

body.display-app.page-member table th,
body.display-app.page-member table td {
    padding: 10px 8px;
    font-size: 0.82rem;
}

body.display-app.page-member .stack {
    gap: 2px;
}

body.display-app.page-member .empty-state {
    padding: 18px 14px;
}

body.display-app.page-queue .job-edit-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px;
    align-items: center;
    justify-content: stretch;
    gap: 10px;
    width: 100%;
}

body.display-app.page-queue .job-edit-actions .plate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 246, 252, 0.92));
    box-shadow: 0 8px 20px rgba(24, 32, 42, 0.05);
}

body.display-app.page-queue .job-edit-actions [data-edit-toggle],
body.display-app.page-queue .table-card .section-head [data-edit-toggle] {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    min-width: 46px;
    height: 46px;
    min-height: 46px;
    padding: 0;
    border-radius: 14px;
    font-size: 0;
    line-height: 0;
    color: var(--primary);
}

body.display-app.page-queue .job-edit-actions [data-edit-toggle]::before,
body.display-app.page-queue .table-card .section-head [data-edit-toggle]::before {
    content: "";
    display: block;
    width: 18px;
    height: 18px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.12 2.12 0 1 1 3 3L7 19l-4 1 1-4 12.5-12.5Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.12 2.12 0 1 1 3 3L7 19l-4 1 1-4 12.5-12.5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.display-app.page-queue .job-edit-actions [data-edit-toggle] .app-action-button-label,
body.display-app.page-queue .table-card .section-head [data-edit-toggle] .app-action-button-label {
    display: none !important;
}

body.display-app.page-queue .job-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px 14px;
    margin-top: 12px;
}

body.display-app.page-queue .job-meta-grid .stack {
    min-width: 0;
    gap: 3px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body.display-app.page-queue .job-meta-grid .stack strong,
body.display-app.page-queue .job-meta-grid .stack span {
    min-width: 0;
    word-break: break-word;
}

body.display-app.page-queue .job-meta-grid .stack strong {
    font-size: 0.98rem;
    line-height: 1.35;
}

body.display-app.page-queue .job-meta-grid .stack .muted {
    line-height: 1.3;
    font-size: 0.8rem;
}

body.display-app.page-queue .job-meta-grid .stack:nth-child(-n+4) strong {
    font-size: 1rem;
}

body.display-app.page-queue .job-meta-grid .stack:nth-child(odd) {
    padding-right: 6px;
}

body.display-app.page-queue .job-meta-grid .stack:nth-child(even) {
    padding-left: 6px;
}

body.display-app .branch-revenue-row {
    grid-template-columns: 1fr;
    gap: 7px;
}

body.display-app .revenue-comparison-row {
    grid-template-columns: 1fr;
    gap: 7px;
}

body.display-app .branch-revenue-value {
    text-align: left;
}

body.display-app .revenue-comparison-value {
    text-align: left;
}

body.display-app table {
    min-width: 780px;
}

body.display-app .sale-report-table {
    min-width: 1500px;
}

body.display-app .member-history-table {
    min-width: 1120px;
}

@media (max-width: 1220px) {
    .topbar {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "brand user"
            "nav nav";
    }

    .topbar-brand-zone {
        grid-area: brand;
    }

    .topbar-nav-zone {
        grid-area: nav;
        justify-content: flex-start;
    }

    .topbar-user-zone {
        grid-area: user;
    }

    .nav {
        max-width: none;
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: thin;
    }
}

@media (max-width: 940px) {
    .page-hero,
    .content-grid {
        grid-template-columns: 1fr;
    }

    .topbar {
        grid-template-columns: 1fr;
        grid-template-areas:
            "brand"
            "user"
            "nav";
        gap: 14px;
        align-items: stretch;
    }

    .topbar-nav-zone,
    .topbar-user-zone {
        justify-self: stretch;
    }

    .nav {
        padding-bottom: 10px;
    }

    .user-menu {
        justify-content: space-between;
    }

    .summary-panel {
        position: static;
    }

    .job-summary-stats,
    .grid-4,
    .grid-3,
    .grid-2,
    .form-grid,
    .film-layout {
        grid-template-columns: 1fr;
    }

    .quick-service-summary-grid,
    .quick-service-actions {
        grid-template-columns: 1fr;
    }

    .quick-service-editor-note {
        flex-direction: column;
    }
}

@media (max-width: 680px) {
    .app-shell {
        padding: 12px 10px 44px;
    }

    body.display-web .app-shell {
        padding-right: 10px;
        padding-left: 10px;
    }

    .topbar {
        padding: 14px;
        border-radius: 18px;
    }

    .brand {
        gap: 10px;
    }

    .brand-mark {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }

    .nav {
        display: flex;
        gap: 6px;
        padding: 7px 7px 10px;
        overflow-x: auto;
    }

    .nav-link {
        flex: 0 0 auto;
        text-align: left;
    }

    .user-menu {
        display: grid;
        gap: 10px;
    }

    .topbar-logout {
        width: 100%;
    }

    .page-hero {
        padding: 20px;
    }

    .job-card-head,
    .job-card-foot,
    .section-head {
        display: grid;
    }

    .queue-card {
        grid-template-columns: 128px minmax(0, 1fr);
        gap: 14px;
        padding: 14px;
    }

    .queue-card-side {
        grid-column: 1 / -1;
        justify-items: stretch;
        gap: 10px;
    }

    .queue-card-status,
    .queue-secondary-actions {
        justify-content: flex-start;
    }

    .branch-revenue-card .section-head,
    .revenue-comparison-card .section-head {
        display: grid;
    }

    .branch-revenue-total,
    .revenue-comparison-gap {
        justify-items: start;
    }

    .branch-revenue-row,
    .revenue-comparison-row {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .branch-revenue-value,
    .revenue-comparison-value {
        text-align: left;
    }

    .job-edit-actions {
        justify-content: flex-start;
    }

    .member-profile-grid,
    .member-vehicle-card {
        grid-template-columns: 1fr;
    }

    .actions .button,
    .actions button {
        width: 100%;
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

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

.audit-log-details {
    margin-top: 8px;
}

.audit-log-details summary {
    cursor: pointer;
    color: var(--secondary);
    font-weight: 600;
}

.audit-log-block {
    margin-top: 10px;
}

.audit-log-lines {
    display: grid;
    gap: 4px;
    margin-top: 6px;
}

.audit-log-lines span {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

@media print {
    .topbar,
    .page-hero,
    .sale-report-filters {
        display: none !important;
    }

    .app-shell {
        width: 100%;
        max-width: none;
        padding: 0;
    }

    body {
        background: #fff;
    }

    .table-card,
    .card,
    .form-card {
        box-shadow: none;
    }

    .sale-report-table {
        min-width: 0;
        font-size: 0.64rem;
    }

    .sale-report-table th,
    .sale-report-table td {
        padding: 4px;
    }
}

body.display-app .topbar {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
}

body.display-app .topbar-brand-zone,
body.display-app .topbar-user-zone {
    display: flex;
    align-items: center;
    min-width: 0;
}

body.display-app .topbar-user-zone {
    justify-content: flex-end !important;
    max-width: 54%;
}

body.display-app .user-menu {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap !important;
    gap: 6px;
    width: auto;
}

body.display-app .user-menu-card {
    display: inline-flex !important;
    align-items: center;
    min-width: 0;
}

body.display-app .user-menu-copy {
    min-width: 0;
}

body.display-app .user-menu strong {
    max-width: 58px;
}

body.display-app .topbar-logout {
    display: none !important;
}

.pwa-update-prompt {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    width: min(100vw - 24px, 420px);
    padding: 16px;
    border-radius: 20px;
    border: 1px solid rgba(12, 35, 64, 0.12);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 42px rgba(12, 35, 64, 0.18);
    backdrop-filter: blur(14px);
}

.pwa-update-prompt-copy {
    display: grid;
    gap: 6px;
}

.pwa-update-prompt-copy strong {
    font-family: var(--font-heading);
    font-size: 1rem;
    line-height: 1.25;
    color: var(--ink-900);
}

.pwa-update-prompt-copy span {
    color: var(--muted-700);
    font-size: 0.92rem;
    line-height: 1.5;
}

.pwa-update-prompt-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
}

.pwa-update-prompt-actions .button {
    min-height: 42px;
    padding-inline: 16px;
}

body.display-app .pwa-update-prompt {
    right: 12px;
    left: 12px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 86px);
    width: auto;
    border-radius: 18px;
    padding: 14px;
}

body.display-app .pwa-update-prompt-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.pwa-install-prompt {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 9998;
    width: min(420px, calc(100vw - 40px));
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(12, 35, 64, 0.1);
    box-shadow: 0 22px 54px rgba(12, 35, 64, 0.16);
    backdrop-filter: blur(12px);
}

.pwa-install-prompt-copy {
    display: grid;
    gap: 6px;
}

.pwa-install-prompt-copy strong {
    font-family: var(--font-heading);
    font-size: 1rem;
    line-height: 1.25;
    color: var(--ink-900);
}

.pwa-install-prompt-copy span {
    color: var(--muted-700);
    font-size: 0.92rem;
    line-height: 1.52;
}

.pwa-install-prompt-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
}

.pwa-install-prompt-actions .button {
    min-height: 42px;
    padding-inline: 16px;
}

body.display-app .pwa-install-prompt {
    right: 12px;
    left: 12px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 86px);
    width: auto;
    padding: 14px 14px 16px;
    border-radius: 18px;
}

body.display-app .pwa-install-prompt-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
