* {
    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-service .nav-submenu {
    min-width: 280px;
}

.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-service-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-service-menu-list {
    display: grid;
    gap: 6px;
}

.nav-submenu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 14px;
    color: #526577;
    text-decoration: none;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.nav-submenu-link:hover,
.nav-submenu-link:focus-visible {
    color: var(--primary);
    background: rgba(244, 248, 253, 0.96);
}

.nav-submenu-link.is-active {
    color: var(--primary);
    background: rgba(34, 100, 232, 0.08);
}

.nav-submenu-link-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 999px;
    background: rgba(34, 100, 232, 0.66);
    box-shadow: 0 0 0 4px rgba(34, 100, 232, 0.08);
}

.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;
}

.vehicle-profile-inline {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.vehicle-profile-photo,
.vehicle-profile-photo-placeholder {
    width: 70px;
    height: 70px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: linear-gradient(135deg, var(--primary-soft), #fff);
    object-fit: cover;
    overflow: hidden;
    flex: 0 0 auto;
}

.vehicle-profile-photo-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.vehicle-profile-photo-placeholder svg {
    width: 24px;
    height: 24px;
}

.vehicle-profile-photo--sm,
.vehicle-profile-photo-placeholder--sm {
    width: 44px;
    height: 44px;
}

.vehicle-profile-photo--lg,
.vehicle-profile-photo-placeholder--lg {
    width: 118px;
    height: 92px;
}

.vehicle-profile-photo[data-profile-photo-expand] {
    cursor: zoom-in;
}

.vehicle-profile-photo[data-profile-photo-expand]:focus-visible {
    outline: 3px solid rgba(18, 75, 131, 0.3);
    outline-offset: 2px;
}

body.app-photo-modal-open {
    overflow: hidden;
}

.app-photo-modal {
    position: fixed;
    inset: 0;
    z-index: 1450;
    display: grid;
    place-items: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.app-photo-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.app-photo-modal[hidden] {
    display: none !important;
}

.app-photo-modal-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(7, 17, 30, 0.66);
    opacity: 0;
    transition: opacity 0.18s ease;
}

.app-photo-modal-dialog {
    position: relative;
    width: min(980px, calc(100vw - 40px));
    max-height: calc(100vh - 40px);
    padding: 14px;
    border-radius: 24px;
    border: 1px solid rgba(215, 224, 234, 0.92);
    background: var(--surface);
    box-shadow: 0 26px 56px rgba(7, 17, 30, 0.34);
    display: grid;
    gap: 12px;
    transform: translateY(10px) scale(0.985);
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.app-photo-modal.is-open .app-photo-modal-backdrop,
.app-photo-modal.is-open .app-photo-modal-dialog {
    opacity: 1;
}

.app-photo-modal.is-open .app-photo-modal-dialog {
    transform: translateY(0) scale(1);
}

.app-photo-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.app-photo-modal-title-wrap {
    display: grid;
    gap: 3px;
}

.app-photo-modal-head strong {
    color: var(--primary);
    font-size: 1rem;
}

.app-photo-modal-hint {
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

.app-photo-modal-image {
    width: 100%;
    max-height: calc(100vh - 168px);
    object-fit: contain;
    display: block;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(18, 75, 131, 0.04), rgba(18, 75, 131, 0.08));
    cursor: zoom-in;
    transform: scale(1);
    transition: transform 0.22s ease;
    will-change: transform;
    touch-action: manipulation;
}

.app-photo-modal-image.is-zoomed {
    transform: scale(1.72);
    cursor: zoom-out;
}

.vehicle-profile-upload-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.vehicle-profile-upload-form input[type="file"] {
    min-height: 38px;
    max-width: min(100%, 320px);
    padding: 7px 10px;
}

.vehicle-photo-picker {
    display: grid;
    gap: 8px;
    width: 100%;
}

.vehicle-photo-picker-input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-height: 0 !important;
    max-width: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.vehicle-photo-picker-surface {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 74px;
    padding: 12px;
    border: 1px solid rgba(173, 195, 217, 0.95);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 250, 253, 0.98));
    box-shadow: 0 12px 24px rgba(19, 44, 70, 0.06);
}

.vehicle-photo-picker-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: var(--primary);
    background: rgba(18, 75, 131, 0.08);
}

.vehicle-photo-picker-icon svg {
    width: 20px;
    height: 20px;
}

.vehicle-photo-picker-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.vehicle-photo-picker-copy strong,
.vehicle-photo-picker-copy span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vehicle-photo-picker-copy strong {
    color: var(--primary);
    font-size: 0.94rem;
    font-weight: 800;
}

.vehicle-photo-picker-copy span {
    color: var(--muted);
    font-size: 0.82rem;
}

.vehicle-photo-picker-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.vehicle-photo-picker-button {
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 13px;
    white-space: nowrap;
}

.vehicle-photo-picker.has-file .vehicle-photo-picker-surface {
    border-color: rgba(31, 191, 117, 0.42);
    background: linear-gradient(180deg, rgba(247, 255, 251, 0.99), rgba(255, 255, 255, 0.98));
}

.vehicle-photo-picker--compact .vehicle-photo-picker-surface {
    grid-template-columns: auto minmax(140px, 1fr);
}

.vehicle-photo-picker--compact .vehicle-photo-picker-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
}

.photo-camera-modal {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: grid;
    place-items: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.photo-camera-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.photo-camera-modal[hidden] {
    display: none !important;
}

.photo-camera-modal-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(7, 17, 30, 0.68);
}

.photo-camera-modal-dialog {
    position: relative;
    width: min(760px, calc(100vw - 36px));
    padding: 16px;
    border: 1px solid rgba(215, 224, 234, 0.9);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: 0 26px 56px rgba(7, 17, 30, 0.34);
    display: grid;
    gap: 14px;
}

.photo-camera-modal-head,
.photo-camera-modal-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.photo-camera-modal-head strong {
    color: var(--primary);
    font-size: 1rem;
}

.photo-camera-video {
    width: 100%;
    max-height: min(62vh, 520px);
    border-radius: 18px;
    background: #07111f;
    object-fit: contain;
}

.photo-camera-error {
    color: #c23b3b;
    font-size: 0.9rem;
}

body.photo-camera-modal-open {
    overflow: hidden;
}

@media (max-width: 680px) {
    .vehicle-photo-picker-surface {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .vehicle-photo-picker-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .photo-camera-modal {
        padding: 14px;
    }

    .photo-camera-modal-dialog {
        width: min(100%, calc(100vw - 20px));
        padding: 12px;
        border-radius: 18px;
    }
}

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

.member-vehicle-card-shell {
    display: grid;
    gap: 8px;
}

.member-vehicle-card {
    display: grid;
    grid-template-columns: auto 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-vehicle-photo-form {
    justify-content: flex-end;
    padding: 0 2px;
}

.open-bill-icon {
    width: 18px;
    height: 18px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

.open-bill-hero {
    position: relative;
    overflow: hidden;
    grid-template-columns: 1fr;
    gap: 12px;
}

.open-bill-hero::after {
    content: "";
    position: absolute;
    right: -44px;
    bottom: -64px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 68%);
    pointer-events: none;
}

.open-bill-hero-copy {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 10px;
}

body.page-open_bill .open-bill-section-eyebrow,
body.page-open_bill .open-bill-section-head > div > .helper,
body.page-open_bill .open-bill-panel-copy > span,
body.page-open_bill .open-bill-search-field > .helper {
    display: none;
}

body.page-open_bill .open-bill-section-head > div {
    display: grid;
    gap: 4px;
}

.open-bill-section-eyebrow,
.open-bill-action-kicker,
.open-bill-search-aside-label,
.open-bill-hero-panel-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.open-bill-hero-panel-label {
    color: rgba(255, 255, 255, 0.78);
}

.open-bill-hero-button {
    width: fit-content;
    min-height: 48px;
    padding-right: 18px;
    padding-left: 18px;
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.92);
}

.open-bill-search-card,
.open-bill-register-shell,
.open-bill-results-shell,
.open-bill-summary-card,
.open-bill-path-card,
.open-bill-history-card {
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(24, 32, 42, 0.08);
}

.open-bill-search-card {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(31, 191, 117, 0.08), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 250, 253, 0.98));
}

.open-bill-search-card::before,
.open-bill-register-shell::before,
.open-bill-summary-card::before,
.open-bill-path-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    border-radius: inherit 0 0 inherit;
    background: linear-gradient(180deg, rgba(6, 33, 63, 0.9), rgba(31, 191, 117, 0.92));
}

.open-bill-register-shell,
.open-bill-summary-card,
.open-bill-path-card {
    position: relative;
    overflow: hidden;
}

.open-bill-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.open-bill-section-eyebrow,
.open-bill-search-aside-label,
.open-bill-action-kicker {
    color: #5b7389;
}

.open-bill-jump-button {
    min-height: 46px;
    border-radius: 16px;
}

.open-bill-search-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 18px;
}

.open-bill-search-field input {
    min-height: 58px;
    border-radius: 18px;
    padding-right: 18px;
    padding-left: 18px;
    font-size: 1rem;
}

.open-bill-search-aside {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid rgba(215, 224, 234, 0.9);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(242, 247, 251, 0.94), rgba(255, 255, 255, 0.98));
}

.open-bill-search-tips {
    display: grid;
    gap: 10px;
}

.open-bill-search-tip {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid rgba(215, 224, 234, 0.88);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
}

.open-bill-search-tip strong {
    color: var(--primary);
    font-size: 0.96rem;
}

.open-bill-search-tip span {
    color: var(--muted);
    font-size: 0.89rem;
    line-height: 1.58;
}

.open-bill-toolbar-actions,
.open-bill-form-actions {
    margin-top: 18px;
}

.open-bill-toolbar-actions .button,
.open-bill-form-actions .button,
.open-bill-jump-button,
.open-bill-hero-button,
.open-bill-cta-button,
.open-bill-mini-button {
    border-radius: 16px;
}

.open-bill-toolbar-actions .button,
.open-bill-form-actions .button,
.open-bill-jump-button {
    min-height: 48px;
    padding-right: 18px;
    padding-left: 18px;
}

.open-bill-feedback-row {
    margin-top: 16px;
}

.open-bill-match-grid,
.open-bill-action-grid {
    display: grid;
    gap: 14px;
}

.open-bill-match-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    padding: 18px;
}

.open-bill-live-results {
    margin-top: 12px;
    padding-top: 0;
}

.booking-lookup-card[data-open-bill-root].is-loading .open-bill-live-results {
    opacity: 0.72;
}

.booking-lookup-card[data-open-bill-root].is-loading [data-open-bill-search-button] {
    cursor: wait;
}

.open-bill-match-card,
.open-bill-action-card,
.open-bill-form-panel {
    border-radius: 22px;
}

.open-bill-match-card,
.open-bill-action-card {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid rgba(215, 224, 234, 0.96);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 250, 253, 0.98));
}

.open-bill-match-card {
    color: inherit;
    text-decoration: none;
    transition:
        transform 0.16s ease,
        border-color 0.16s ease,
        box-shadow 0.16s ease,
        background 0.16s ease;
}

.open-bill-match-card--with-photo {
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: start;
}

.open-bill-match-photo {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(18, 75, 131, 0.12);
    background: rgba(18, 75, 131, 0.06);
}

.open-bill-match-card--with-photo .open-bill-match-photo {
    width: 92px;
    height: 92px;
    aspect-ratio: 1 / 1;
    grid-column: 1;
    grid-row: 1 / span 2;
}

.open-bill-match-card--with-photo .open-bill-match-head,
.open-bill-match-card--with-photo .stack {
    grid-column: 2;
}

.open-bill-match-photo[data-open-bill-photo-expand] {
    cursor: zoom-in;
}

.open-bill-match-photo[data-open-bill-photo-expand]:focus-visible {
    outline: 3px solid rgba(18, 75, 131, 0.3);
    outline-offset: 2px;
}

.open-bill-match-card:hover,
.open-bill-match-card:focus {
    transform: translateY(-2px);
    border-color: rgba(18, 75, 131, 0.35);
    box-shadow: 0 16px 28px rgba(24, 32, 42, 0.1);
    text-decoration: none;
}

.open-bill-match-card:focus-visible {
    outline: 3px solid rgba(18, 75, 131, 0.18);
    outline-offset: 2px;
}

.open-bill-match-card.is-selected {
    border-color: rgba(18, 75, 131, 0.42);
    background: linear-gradient(180deg, rgba(229, 238, 249, 0.96), rgba(244, 248, 252, 0.98));
}

.open-bill-match-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.open-bill-match-head strong {
    font-size: 1rem;
    line-height: 1.28;
}

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

.open-bill-form-panel {
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 1px solid rgba(215, 224, 234, 0.92);
    background: linear-gradient(180deg, rgba(248, 251, 254, 0.98), rgba(255, 255, 255, 0.99));
}

.open-bill-panel-head {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
}

.open-bill-panel-icon,
.open-bill-action-icon,
.open-bill-photo-placeholder-icon {
    display: inline-grid;
    place-items: center;
}

.open-bill-panel-icon,
.open-bill-action-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
}

.open-bill-panel-icon {
    color: var(--primary);
    background: linear-gradient(135deg, rgba(6, 33, 63, 0.08), rgba(31, 191, 117, 0.14));
}

.open-bill-panel-copy {
    display: grid;
    gap: 4px;
}

.open-bill-panel-copy strong {
    color: var(--primary);
    font-size: 1rem;
    line-height: 1.28;
}

.open-bill-panel-copy span {
    color: var(--muted);
    font-size: 0.89rem;
    line-height: 1.6;
}

.open-bill-form-grid {
    gap: 16px;
}

.open-bill-photo-panel {
    margin-top: 18px;
}

.open-bill-photo-field,
.open-bill-vehicle-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 16px;
    align-items: start;
}

.open-bill-file-field input[type="file"] {
    width: 100%;
}

.open-bill-photo-preview-card,
.open-bill-vehicle-photo-card {
    margin: 0;
    overflow: hidden;
    border: 1px dashed rgba(18, 75, 131, 0.24);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(18, 75, 131, 0.04) 0%, rgba(18, 75, 131, 0.02) 100%);
}

.open-bill-photo-preview-card {
    min-height: 220px;
    padding: 12px;
    display: grid;
    place-items: center;
}

.open-bill-photo-preview-card.has-image {
    padding: 0;
    border-style: solid;
}

.open-bill-photo-preview-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.open-bill-photo-preview-card.is-clickable,
.open-bill-photo-preview-card.is-clickable img {
    cursor: zoom-in;
}

.open-bill-photo-preview-card.is-clickable:focus-visible {
    outline: 3px solid rgba(18, 75, 131, 0.25);
    outline-offset: 2px;
}

.open-bill-vehicle-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.open-bill-photo-preview-placeholder,
.open-bill-vehicle-photo-placeholder {
    display: grid;
    gap: 8px;
    padding: 24px 18px;
    text-align: center;
    color: var(--muted);
}

.open-bill-photo-placeholder-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto;
    border-radius: 18px;
    color: var(--primary);
    background: linear-gradient(135deg, rgba(6, 33, 63, 0.08), rgba(31, 191, 117, 0.14));
}

.open-bill-photo-preview-placeholder strong,
.open-bill-vehicle-photo-placeholder strong {
    color: var(--primary);
}

.open-bill-vehicle-hero {
    grid-template-columns: 168px minmax(0, 1fr);
}

.open-bill-vehicle-photo-card {
    border-style: solid;
    width: 168px;
    max-width: 100%;
}

.open-bill-photo-trigger {
    width: 100%;
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    display: block;
    cursor: zoom-in;
}

.open-bill-photo-trigger:focus-visible {
    outline: 3px solid rgba(18, 75, 131, 0.25);
    outline-offset: -3px;
}

.open-bill-photo-caption {
    margin: 0;
    padding: 8px 10px 11px;
    font-size: 0.79rem;
    line-height: 1.45;
    text-align: center;
    color: var(--muted);
    border-top: 1px solid rgba(18, 75, 131, 0.16);
}

body.open-bill-photo-modal-open {
    overflow: hidden;
}

.open-bill-photo-modal {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: grid;
    place-items: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.open-bill-photo-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.open-bill-photo-modal[hidden] {
    display: none !important;
}

.open-bill-photo-modal-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(7, 17, 30, 0.66);
    opacity: 0;
    transition: opacity 0.18s ease;
}

.open-bill-photo-modal-dialog {
    position: relative;
    width: min(980px, calc(100vw - 40px));
    max-height: calc(100vh - 40px);
    padding: 14px;
    border-radius: 24px;
    border: 1px solid rgba(215, 224, 234, 0.92);
    background: var(--surface);
    box-shadow: 0 26px 56px rgba(7, 17, 30, 0.34);
    display: grid;
    gap: 12px;
    transform: translateY(10px) scale(0.985);
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.open-bill-photo-modal.is-open .open-bill-photo-modal-backdrop,
.open-bill-photo-modal.is-open .open-bill-photo-modal-dialog {
    opacity: 1;
}

.open-bill-photo-modal.is-open .open-bill-photo-modal-dialog {
    transform: translateY(0) scale(1);
}

.open-bill-photo-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.open-bill-photo-modal-title-wrap {
    display: grid;
    gap: 3px;
}

.open-bill-photo-modal-head strong {
    color: var(--primary);
    font-size: 1rem;
}

.open-bill-photo-modal-hint {
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

.open-bill-photo-modal-image {
    width: 100%;
    max-height: calc(100vh - 168px);
    object-fit: contain;
    display: block;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(18, 75, 131, 0.04), rgba(18, 75, 131, 0.08));
    cursor: zoom-in;
    transform: scale(1);
    transition: transform 0.22s ease;
    will-change: transform;
    touch-action: manipulation;
}

.open-bill-photo-modal-image.is-zoomed {
    transform: scale(1.72);
    cursor: zoom-out;
}

.open-bill-profile-grid {
    gap: 16px;
}

.open-bill-context-grid {
    align-items: start;
}

.open-bill-stat-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 250, 253, 0.98)),
        var(--surface);
}

.open-bill-stat-card::after {
    content: "";
    position: absolute;
    inset: auto 18px 0 18px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(6, 33, 63, 0.86), rgba(31, 191, 117, 0.88));
}

.open-bill-action-grid {
    grid-template-columns: 1fr;
}

.open-bill-action-card {
    gap: 14px;
}

.open-bill-action-card-head {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
}

.open-bill-action-icon {
    color: var(--primary);
    background: rgba(6, 33, 63, 0.08);
}

.open-bill-action-icon.is-booking {
    color: #0d5ea8;
    background: rgba(13, 94, 168, 0.12);
}

.open-bill-action-icon.is-quick-service {
    color: #0a8b52;
    background: rgba(10, 139, 82, 0.13);
}

.open-bill-action-icon.is-member {
    color: #684dbd;
    background: rgba(104, 77, 189, 0.13);
}

.open-bill-action-copy {
    display: grid;
    gap: 4px;
}

.open-bill-action-copy strong {
    color: var(--primary);
    font-size: 1.04rem;
    line-height: 1.24;
}

.open-bill-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.open-bill-chip {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 12px;
    border: 1px solid rgba(18, 75, 131, 0.12);
    border-radius: 999px;
    background: rgba(18, 75, 131, 0.05);
    color: var(--primary);
    font-size: 0.84rem;
    font-weight: 700;
}

.open-bill-cta-button {
    width: 100%;
    min-height: 52px;
    justify-content: space-between;
    padding-right: 16px;
    padding-left: 16px;
}

.open-bill-cta-copy {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.open-bill-mini-button {
    min-height: 40px;
    gap: 7px;
    padding: 8px 12px;
}

@media (max-width: 1100px) {
    .open-bill-search-layout,
    .open-bill-form-columns,
    .open-bill-hero,
    .open-bill-context-grid {
        grid-template-columns: 1fr;
    }

    .open-bill-hero-button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 900px) {
    .open-bill-photo-field,
    .open-bill-vehicle-hero {
        grid-template-columns: 1fr;
    }
}

/* Open Bill v2 - web + app optimization */
body.page-open_bill .open-bill-search-card,
body.page-open_bill .open-bill-register-shell,
body.page-open_bill .open-bill-results-shell,
body.page-open_bill .open-bill-summary-card,
body.page-open_bill .open-bill-path-card,
body.page-open_bill .open-bill-history-card {
    border: 1px solid rgba(197, 212, 228, 0.92);
    border-radius: 24px;
    box-shadow: 0 14px 34px rgba(13, 31, 53, 0.08);
}

body.page-open_bill .open-bill-search-card,
body.page-open_bill .open-bill-register-shell,
body.page-open_bill .open-bill-results-shell,
body.page-open_bill .open-bill-summary-card,
body.page-open_bill .open-bill-path-card,
body.page-open_bill .open-bill-history-card,
body.page-open_bill .open-bill-form-panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 251, 254, 0.98));
}

body.page-open_bill .open-bill-search-card,
body.page-open_bill .open-bill-register-shell,
body.page-open_bill .open-bill-results-shell {
    padding: clamp(14px, 1.4vw, 20px);
}

body.page-open_bill .open-bill-section-head {
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

body.page-open_bill .open-bill-section-head .section-title {
    margin: 0;
    color: #072848;
    font-size: clamp(1.04rem, 1.1vw, 1.24rem);
    line-height: 1.28;
}

body.page-open_bill .open-bill-search-layout {
    margin-top: 8px;
    gap: 12px;
}

body.page-open_bill .open-bill-search-field {
    gap: 7px;
}

body.page-open_bill .open-bill-search-field label {
    color: #1b3957;
    font-size: 0.9rem;
    font-weight: 700;
}

body.page-open_bill .open-bill-search-field input {
    min-height: 56px;
    border-radius: 16px;
    border-color: rgba(173, 195, 217, 0.95);
    background: #fff;
    font-size: 1rem;
    letter-spacing: 0.01em;
}

body.page-open_bill .open-bill-search-field input:focus {
    border-color: rgba(17, 77, 136, 0.52);
    box-shadow: 0 0 0 3px rgba(17, 77, 136, 0.16);
}

body.page-open_bill .open-bill-toolbar-actions {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 0.78fr);
    gap: 10px;
    margin-top: 14px;
}

body.page-open_bill .open-bill-toolbar-actions .button {
    width: 100%;
    min-height: 50px;
    justify-content: center;
    font-weight: 700;
}

body.page-open_bill .open-bill-jump-button {
    min-height: 44px;
    padding-right: 14px;
    padding-left: 14px;
}

body.page-open_bill .open-bill-feedback-row {
    margin-top: 12px;
}

body.page-open_bill .open-bill-live-results {
    margin-top: 10px;
}

body.page-open_bill .open-bill-results-shell .open-bill-match-grid {
    padding: 10px 0 0;
}

body.page-open_bill .open-bill-match-grid {
    gap: 12px;
}

body.page-open_bill .open-bill-match-card,
body.page-open_bill .open-bill-action-card {
    border-radius: 18px;
    padding: 14px;
}

body.page-open_bill .open-bill-match-head strong {
    color: #102e4e;
    font-size: 0.98rem;
}

body.page-open_bill .open-bill-form-columns {
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.page-open_bill .open-bill-form-panel {
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(200, 214, 228, 0.92);
    box-shadow: 0 8px 18px rgba(17, 38, 62, 0.05);
}

body.page-open_bill .open-bill-panel-head {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
}

body.page-open_bill .open-bill-panel-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
}

body.page-open_bill .open-bill-panel-copy strong {
    font-size: 0.98rem;
}

body.page-open_bill .open-bill-form-grid {
    gap: 12px 14px;
}

body.page-open_bill .open-bill-form-grid .field {
    gap: 6px;
}

body.page-open_bill .open-bill-form-grid label {
    color: #1f3d5c;
    font-size: 0.86rem;
    font-weight: 700;
}

body.page-open_bill .open-bill-form-grid input,
body.page-open_bill .open-bill-form-grid select {
    min-height: 46px;
    border-radius: 14px;
    border-color: rgba(173, 195, 217, 0.95);
    background: #fff;
}

body.page-open_bill .open-bill-form-grid input:focus,
body.page-open_bill .open-bill-form-grid select:focus {
    border-color: rgba(17, 77, 136, 0.52);
    box-shadow: 0 0 0 3px rgba(17, 77, 136, 0.16);
}

body.page-open_bill .open-bill-form-columns > .open-bill-form-panel:nth-child(2) .open-bill-form-grid .field:last-child {
    grid-column: 1 / -1;
}

body.page-open_bill .open-bill-photo-panel {
    margin-top: 14px;
}

body.page-open_bill .open-bill-photo-field {
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 14px;
}

body.page-open_bill .open-bill-file-field input[type="file"] {
    min-height: 46px;
    padding: 8px 10px;
    border-radius: 14px;
    border-color: rgba(173, 195, 217, 0.95);
    background: #fff;
}

body.page-open_bill .open-bill-file-field .helper {
    margin-top: 8px;
    color: #0e7f4c;
    font-size: 0.82rem;
}

body.page-open_bill .open-bill-photo-preview-card {
    min-height: 184px;
    height: 198px;
    border-style: solid;
    border-radius: 18px;
}

body.page-open_bill .open-bill-photo-preview-card img {
    height: 100%;
    aspect-ratio: auto;
}

body.page-open_bill .open-bill-photo-preview-placeholder,
body.page-open_bill .open-bill-vehicle-photo-placeholder {
    gap: 6px;
    padding: 16px 12px;
}

body.page-open_bill .open-bill-photo-placeholder-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
}

body.page-open_bill .open-bill-photo-preview-placeholder span:last-child,
body.page-open_bill .open-bill-vehicle-photo-placeholder span:last-child {
    display: none;
}

body.page-open_bill .open-bill-form-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}

body.page-open_bill .open-bill-form-actions .button {
    min-height: 48px;
}

body.page-open_bill .open-bill-save-button {
    box-shadow: 0 12px 22px rgba(31, 191, 117, 0.2);
}

body.page-open_bill .open-bill-context-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
    gap: 14px;
}

body.page-open_bill .open-bill-stats-grid {
    gap: 12px;
}

body.page-open_bill .open-bill-stat-card {
    border-radius: 18px;
}

body.page-open_bill .open-bill-vehicle-hero {
    grid-template-columns: 148px minmax(0, 1fr);
    gap: 12px;
}

body.page-open_bill .open-bill-vehicle-photo-card {
    width: 148px;
    border-radius: 18px;
}

body.page-open_bill .open-bill-photo-caption {
    padding: 7px 8px 9px;
    font-size: 0.76rem;
}

body.page-open_bill .open-bill-action-grid {
    gap: 10px;
}

body.page-open_bill .open-bill-action-card {
    gap: 12px;
}

body.page-open_bill .open-bill-action-card-head {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
}

body.page-open_bill .open-bill-action-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
}

body.page-open_bill .open-bill-action-copy strong {
    font-size: 0.98rem;
}

body.page-open_bill .open-bill-chip {
    min-height: 30px;
    font-size: 0.8rem;
    padding: 5px 11px;
}

body.page-open_bill .open-bill-cta-button {
    min-height: 48px;
}

body.page-open_bill .open-bill-mini-button {
    min-height: 36px;
    padding: 7px 10px;
}

@media (max-width: 1200px) {
    body.page-open_bill .open-bill-context-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1100px) {
    body.page-open_bill .open-bill-toolbar-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.page-open_bill .open-bill-form-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    body.page-open_bill .open-bill-toolbar-actions,
    body.page-open_bill .open-bill-form-actions {
        grid-template-columns: 1fr;
    }

    body.page-open_bill .open-bill-photo-field,
    body.page-open_bill .open-bill-vehicle-hero {
        grid-template-columns: 1fr;
    }

    body.page-open_bill .open-bill-photo-preview-card {
        height: 174px;
    }

    body.page-open_bill .open-bill-vehicle-photo-card {
        width: 100%;
    }
}

body.display-app.page-open_bill .open-bill-search-card,
body.display-app.page-open_bill .open-bill-register-shell,
body.display-app.page-open_bill .open-bill-results-shell,
body.display-app.page-open_bill .open-bill-summary-card,
body.display-app.page-open_bill .open-bill-path-card,
body.display-app.page-open_bill .open-bill-history-card {
    border-radius: 18px;
    padding: 13px;
}

body.display-app.page-open_bill .open-bill-section-head {
    gap: 10px;
    margin-bottom: 6px;
}

body.display-app.page-open_bill .open-bill-section-head .section-title {
    font-size: 1.02rem;
}

body.display-app.page-open_bill .open-bill-search-field input {
    min-height: 50px;
}

body.display-app.page-open_bill .open-bill-toolbar-actions {
    grid-template-columns: 1fr;
    gap: 8px;
}

body.display-app.page-open_bill .open-bill-toolbar-actions .button {
    justify-content: flex-start;
    min-height: 44px;
    padding-right: 12px;
    padding-left: 12px;
}

body.display-app.page-open_bill .open-bill-form-columns {
    grid-template-columns: 1fr;
    gap: 10px;
}

body.display-app.page-open_bill .open-bill-form-grid {
    grid-template-columns: 1fr;
}

body.display-app.page-open_bill .open-bill-form-columns > .open-bill-form-panel:nth-child(2) .open-bill-form-grid .field:last-child {
    grid-column: auto;
}

body.display-app.page-open_bill .open-bill-panel-head {
    grid-template-columns: 36px minmax(0, 1fr);
}

body.display-app.page-open_bill .open-bill-panel-icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
}

body.display-app.page-open_bill .open-bill-photo-field {
    grid-template-columns: 1fr;
    gap: 10px;
}

body.display-app.page-open_bill .open-bill-photo-preview-card {
    height: 156px;
    min-height: 156px;
}

body.display-app.page-open_bill .open-bill-form-actions {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

body.display-app.page-open_bill .open-bill-form-actions .button {
    min-height: 44px;
}

body.display-app.page-open_bill .open-bill-context-grid {
    grid-template-columns: 1fr;
}

body.display-app.page-open_bill .open-bill-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

body.display-app.page-open_bill .open-bill-stat-card {
    border-radius: 14px;
}

body.display-app.page-open_bill .open-bill-match-card--with-photo {
    grid-template-columns: 72px minmax(0, 1fr);
}

body.display-app.page-open_bill .open-bill-match-card--with-photo .open-bill-match-photo {
    width: 72px;
    height: 72px;
}

.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;
}

.bill-note-field textarea {
    min-height: 120px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.bill-note-field .helper {
    max-width: 760px;
}

.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;
}

.service-item-note {
    display: grid;
    gap: 6px;
    margin-top: 12px;
}

.service-item-note input {
    width: 100%;
    min-height: 42px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--text);
    background: #f8fbff;
    font: inherit;
}

.service-item-note input:disabled {
    color: var(--muted);
    background: #eef4fb;
    opacity: 0.75;
}

.service-item-note input:focus {
    border-color: rgba(12, 93, 169, 0.52);
    box-shadow: 0 0 0 4px rgba(12, 93, 169, 0.12);
    outline: none;
}

.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-service-search-grid {
    align-items: end;
}

.film-service-search-field input[type="search"] {
    min-height: 52px;
    padding-right: 38px;
    border-color: rgba(148, 167, 189, 0.72);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98)),
        #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.film-service-search-field input[type="search"]::-webkit-search-cancel-button {
    cursor: pointer;
}

.film-service-search-field input[type="search"]:focus {
    border-color: rgba(18, 75, 131, 0.72);
    box-shadow: 0 0 0 4px rgba(18, 75, 131, 0.1);
    outline: none;
}

.film-service-search-field input[type="search"]:invalid {
    border-color: rgba(214, 69, 65, 0.72);
    box-shadow: 0 0 0 4px rgba(214, 69, 65, 0.1);
}

.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-sunroof {
    top: 90px;
    left: 50%;
    width: 38px;
    height: 34px;
    border-radius: 12px;
    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-sunroof {
    top: 18px;
    right: 14px;
}

.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;
    }

    .open-bill-match-grid {
        grid-template-columns: 1fr;
    }

    .open-bill-match-card--with-photo {
        grid-template-columns: 78px minmax(0, 1fr);
    }

    .open-bill-match-card--with-photo .open-bill-match-photo {
        width: 78px;
        height: 78px;
    }

    .open-bill-match-head {
        flex-direction: column;
    }

    .open-bill-photo-modal {
        padding: 12px;
    }

    .open-bill-photo-modal-dialog {
        width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
        padding: 10px;
        border-radius: 18px;
    }

    .open-bill-photo-modal-hint {
        font-size: 0.76rem;
    }

    .open-bill-photo-modal-image {
        max-height: calc(100vh - 136px);
    }

    .open-bill-photo-modal-image.is-zoomed {
        transform: scale(1.5);
    }

    .app-photo-modal {
        padding: 12px;
    }

    .app-photo-modal-dialog {
        width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
        padding: 10px;
        border-radius: 18px;
    }

    .app-photo-modal-hint {
        font-size: 0.76rem;
    }

    .app-photo-modal-image {
        max-height: calc(100vh - 136px);
    }

    .app-photo-modal-image.is-zoomed {
        transform: scale(1.5);
    }

    .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;
}

/* Queue v2 - web + app optimization */
body.page-queue .queue-hero {
    margin-bottom: 14px;
    padding: clamp(16px, 1.8vw, 24px);
    border-radius: 22px;
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: start;
    background:
        radial-gradient(circle at 88% -12%, rgba(255, 255, 255, 0.36), transparent 44%),
        linear-gradient(132deg, #05203e 0%, #114d88 56%, #1aa768 100%);
    box-shadow: 0 18px 36px rgba(8, 29, 51, 0.18);
}

body.page-queue .queue-hero h1 {
    font-size: clamp(1.42rem, 2vw, 2rem);
    line-height: 1.15;
}

body.page-queue .queue-hero p {
    margin-top: 8px;
    max-width: 680px;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.58;
}

body.page-queue .queue-tabs {
    margin-bottom: 12px;
    padding: 6px;
    border: 1px solid rgba(197, 212, 228, 0.92);
    border-radius: 16px;
    background: rgba(239, 245, 251, 0.82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

body.page-queue .queue-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    border-radius: 12px;
    border-color: transparent;
    color: #3f5670;
    background: transparent;
    font-size: 0.88rem;
}

body.page-queue .queue-tabs a:hover,
body.page-queue .queue-tabs a:focus-visible {
    color: #0b3158;
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(181, 200, 221, 0.96);
}

body.page-queue .queue-tabs a.is-active {
    color: #fff;
    background: linear-gradient(135deg, #06213f, #0f4d86 72%);
    box-shadow: 0 10px 18px rgba(6, 33, 63, 0.24);
}

body.page-queue .queue-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    min-height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    border: 1px solid rgba(178, 198, 220, 0.96);
    background: rgba(255, 255, 255, 0.9);
    color: #1a426b;
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1;
}

body.page-queue .queue-tabs a.is-active .queue-tab-count {
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

body.page-queue .queue-source-filter {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    padding: 5px;
    width: fit-content;
    border: 1px solid rgba(197, 212, 228, 0.9);
    border-radius: 14px;
    background: rgba(246, 250, 254, 0.78);
}

body.page-queue .queue-source-filter a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 6px 12px;
    border-radius: 10px;
    color: #47627d;
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
    transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

body.page-queue .queue-source-filter a:hover,
body.page-queue .queue-source-filter a:focus-visible {
    color: #0b3158;
    background: rgba(255, 255, 255, 0.94);
}

body.page-queue .queue-source-filter a.is-active {
    color: #06351f;
    background: linear-gradient(135deg, rgba(31, 191, 117, 0.2), rgba(46, 115, 255, 0.1));
    box-shadow: inset 0 0 0 1px rgba(31, 191, 117, 0.24);
}

body.page-queue .queue-source-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid rgba(193, 210, 228, 0.9);
    background: rgba(245, 249, 253, 0.94);
    color: #365570;
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

body.page-queue .queue-source-badge.is-quick-service {
    border-color: rgba(31, 191, 117, 0.3);
    background: rgba(31, 191, 117, 0.12);
    color: #087044;
}

body.page-queue .queue-source-badge.is-booking {
    border-color: rgba(46, 115, 255, 0.22);
    background: rgba(46, 115, 255, 0.08);
    color: #174b85;
}

body.page-queue .queue-toolbar-card {
    margin-bottom: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(197, 212, 228, 0.92);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 254, 0.95));
    box-shadow: 0 12px 28px rgba(13, 31, 53, 0.08);
}

body.page-queue .queue-toolbar-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

body.page-queue .queue-toolbar-copy {
    min-width: 0;
    display: grid;
    gap: 5px;
}

body.page-queue .queue-toolbar-copy strong {
    color: #072848;
    font-size: 0.98rem;
    line-height: 1.26;
    font-weight: 700;
}

body.page-queue .queue-toolbar-copy span {
    color: #5f7489;
    font-size: 0.84rem;
    line-height: 1.48;
}

body.page-queue .queue-toolbar-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
}

body.page-queue .queue-toolbar-metric {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(195, 211, 227, 0.9);
    background: rgba(255, 255, 255, 0.86);
}

body.page-queue .queue-toolbar-metric-label {
    color: #4b647e;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1;
}

body.page-queue .queue-toolbar-metric strong {
    color: #0b3a62;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
}

body.page-queue .queue-toolbar-metric--waiting {
    border-color: rgba(236, 200, 130, 0.95);
    background: rgba(255, 246, 232, 0.94);
}

body.page-queue .queue-toolbar-metric--washing {
    border-color: rgba(145, 185, 234, 0.95);
    background: rgba(236, 245, 255, 0.95);
}

body.page-queue .queue-toolbar-metric--done {
    border-color: rgba(163, 225, 196, 0.95);
    background: rgba(236, 252, 245, 0.95);
}

body.page-queue .queue-toolbar-metric--cancelled {
    border-color: rgba(233, 181, 177, 0.95);
    background: rgba(255, 241, 239, 0.95);
}

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

body.page-queue .queue-toolbar-actions .app-action-button {
    min-height: 42px;
    padding: 8px 12px;
    border-radius: 13px;
}

body.page-queue .queue-toolbar-actions .app-action-button .app-action-button-label {
    font-size: 0.84rem;
    font-weight: 800;
}

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

body.page-queue .queue-card {
    position: relative;
    grid-template-columns: 112px minmax(0, 1fr) minmax(200px, 0.82fr);
    align-items: start;
    gap: 14px;
    min-height: 0;
    padding: 14px;
    border: 1px solid rgba(194, 209, 225, 0.92);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 251, 254, 0.97));
    box-shadow: 0 12px 28px rgba(13, 31, 53, 0.08);
    overflow: hidden;
}

body.page-queue .queue-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 4px;
    border-radius: 0 8px 8px 0;
    background: rgba(99, 123, 148, 0.34);
}

body.page-queue .queue-card--status-waiting::before {
    background: linear-gradient(180deg, #c47a10, #f0bb57);
}

body.page-queue .queue-card--status-washing::before {
    background: linear-gradient(180deg, #1b6fd7, #68a7ff);
}

body.page-queue .queue-card--status-done::before {
    background: linear-gradient(180deg, #1ca662, #61d29a);
}

body.page-queue .queue-card--status-cancelled::before {
    background: linear-gradient(180deg, #a33832, #d96f67);
}

body.page-queue .queue-card-identity {
    gap: 7px;
    justify-items: stretch;
}

body.page-queue .queue-card .queue-chip {
    min-height: 30px;
    border-radius: 10px;
    font-size: 1.06rem;
}

body.page-queue .queue-card-photo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
}

body.page-queue .queue-card-photo,
body.page-queue .queue-card-photo-placeholder {
    width: 70px;
    height: 70px;
    border-radius: 12px;
}

body.page-queue .queue-card .queue-card-plate {
    min-height: 62px;
    padding: 8px 10px;
    border-width: 1px;
    border-radius: 12px;
}

body.page-queue .queue-card .queue-card-plate .plate {
    font-size: 1.8rem;
    font-weight: 800;
}

body.page-queue .queue-card .queue-card-plate .plate-province {
    font-size: 0.76rem;
}

body.page-queue .queue-card-main {
    gap: 7px;
}

body.page-queue .queue-card-bill-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
}

body.page-queue .queue-card-bill-label {
    color: #5f7489;
    font-size: 0.78rem;
    font-weight: 700;
}

body.page-queue .queue-card-bill-value {
    color: #1a436d;
    font-size: 0.9rem;
    line-height: 1.24;
}

body.page-queue .queue-card-reference {
    font-size: 0.78rem;
}

body.page-queue .queue-card-title {
    gap: 4px 12px;
    line-height: 1.28;
}

body.page-queue .queue-card-title .queue-card-customer {
    color: #072848;
    font-size: 1rem;
    font-weight: 700;
}

body.page-queue .queue-card-title .queue-card-vehicle {
    color: #0f3559;
    font-size: 0.97rem;
    font-weight: 700;
}

body.page-queue .queue-card-services {
    color: #30465d;
    line-height: 1.5;
    font-size: 0.88rem;
}

body.page-queue .queue-card-timeline {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

body.page-queue .queue-card-timeline-item {
    display: grid;
    gap: 2px;
    min-height: 44px;
    padding: 6px 8px;
    border: 1px solid rgba(205, 217, 231, 0.92);
    border-radius: 10px;
    background: rgba(245, 249, 253, 0.88);
}

body.page-queue .queue-card-timeline-label {
    color: #5f7489;
    font-size: 0.72rem;
    line-height: 1.3;
    font-weight: 700;
}

body.page-queue .queue-card-timeline-value {
    color: #153b63;
    font-size: 0.78rem;
    line-height: 1.35;
    font-weight: 700;
}

body.page-queue .queue-card-side {
    justify-items: stretch;
    align-content: start;
    gap: 10px;
}

body.page-queue .queue-card-status {
    justify-content: flex-start;
    gap: 6px;
}

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

body.page-queue .queue-secondary-actions > * {
    flex: 1 1 calc(50% - 4px);
    min-width: 128px;
}

body.page-queue .queue-secondary-actions > :only-child {
    flex-basis: 100%;
}

body.page-queue .queue-secondary-actions .inline-form {
    margin: 0;
}

body.page-queue .queue-secondary-actions .button,
body.page-queue .queue-secondary-actions .queue-details-button {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    border-radius: 12px;
}

body.display-web.page-queue .queue-secondary-actions .app-action-button {
    box-shadow: none;
}

body.page-queue .queue-secondary-actions .app-action-button .app-action-button-label {
    font-size: 0.81rem;
    font-weight: 800;
}

body.page-queue .queue-secondary-actions .app-action-button .app-action-button-icon {
    width: 24px;
    height: 24px;
    border-radius: 8px;
}

body.page-queue .empty-state {
    border-radius: 18px;
    border-style: solid;
    background: rgba(247, 251, 255, 0.86);
}

@media (max-width: 1280px) {
    body.page-queue .queue-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 920px) {
    body.page-queue .queue-toolbar-main {
        grid-template-columns: 1fr;
    }

    body.page-queue .queue-toolbar-actions {
        justify-content: flex-start;
    }

    body.page-queue .queue-card {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    body.page-queue .queue-card-side {
        grid-column: 1 / -1;
    }

    body.page-queue .queue-card-timeline {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    body.page-queue .queue-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: thin;
    }

    body.page-queue .queue-tabs a {
        white-space: nowrap;
    }
}

body.display-app.page-queue .queue-toolbar-card {
    margin-bottom: 10px;
    padding: 12px;
    border-radius: 16px;
}

body.display-app.page-queue .queue-toolbar-copy strong {
    font-size: 0.92rem;
}

body.display-app.page-queue .queue-toolbar-copy span {
    font-size: 0.78rem;
}

body.display-app.page-queue .queue-toolbar-metrics {
    gap: 6px;
}

body.display-app.page-queue .queue-toolbar-metric {
    min-height: 28px;
    padding: 4px 9px;
}

body.display-app.page-queue .queue-toolbar-metric-label {
    font-size: 0.7rem;
}

body.display-app.page-queue .queue-toolbar-metric strong {
    font-size: 0.74rem;
}

body.display-app.page-queue .queue-toolbar-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

body.display-app.page-queue .queue-toolbar-actions .app-action-button {
    min-height: 42px;
    padding: 8px 10px;
}

body.display-app.page-queue .queue-grid {
    grid-template-columns: 1fr;
    gap: 10px;
}

body.display-app.page-queue .queue-card {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
}

body.display-app.page-queue .queue-card::before {
    top: 10px;
    bottom: 10px;
}

body.display-app.page-queue .queue-card-photo,
body.display-app.page-queue .queue-card-photo-placeholder {
    width: 58px;
    height: 58px;
    border-radius: 10px;
}

body.display-app.page-queue .queue-card .queue-card-plate {
    min-height: 54px;
}

body.display-app.page-queue .queue-card .queue-card-plate .plate {
    font-size: 1.55rem;
}

body.display-app.page-queue .queue-card-main {
    gap: 6px;
}

body.display-app.page-queue .queue-card-bill-value {
    font-size: 0.84rem;
}

body.display-app.page-queue .queue-card-title .queue-card-customer {
    font-size: 0.92rem;
}

body.display-app.page-queue .queue-card-title .queue-card-vehicle {
    font-size: 0.88rem;
}

body.display-app.page-queue .queue-card-services {
    font-size: 0.82rem;
    line-height: 1.44;
}

body.display-app.page-queue .queue-card-timeline {
    gap: 5px;
}

body.display-app.page-queue .queue-card-timeline-item {
    min-height: 40px;
    padding: 5px 7px;
}

body.display-app.page-queue .queue-card-timeline-label {
    font-size: 0.68rem;
}

body.display-app.page-queue .queue-card-timeline-value {
    font-size: 0.74rem;
}

body.display-app.page-queue .queue-card-side {
    grid-column: 1 / -1;
    gap: 8px;
}

body.display-app.page-queue .queue-card-status {
    justify-content: flex-start;
}

body.display-app.page-queue .queue-secondary-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

body.display-app.page-queue .queue-secondary-actions > * {
    min-width: 0;
}

body.display-app.page-queue .queue-secondary-actions .button,
body.display-app.page-queue .queue-secondary-actions .queue-details-button {
    min-height: 42px;
    padding: 8px 9px;
}

body.display-app.page-queue .queue-secondary-actions .app-action-button {
    grid-template-columns: 24px minmax(0, 1fr) !important;
    gap: 7px;
}

body.display-app.page-queue .queue-secondary-actions .app-action-button .app-action-button-icon {
    width: 24px;
    height: 24px;
    border-radius: 8px;
}

body.display-app.page-queue .queue-secondary-actions .app-action-button .app-action-button-label {
    font-size: 0.76rem;
}

@media (max-width: 520px) {
    body.display-app.page-queue .queue-toolbar-actions {
        grid-template-columns: 1fr;
    }

    body.display-app.page-queue .queue-secondary-actions {
        grid-template-columns: 1fr;
    }

    body.page-queue .queue-tabs a {
        padding-inline: 10px;
        gap: 6px;
    }

    body.page-queue .queue-tab-count {
        min-width: 21px;
        min-height: 20px;
        padding-inline: 6px;
        font-size: 0.7rem;
    }
}

/* Queue UX refresh - sample inspired */
body.page-queue .queue-hero {
    margin-bottom: 14px;
    padding: 14px 18px;
    border-radius: 20px;
    border: 1px solid rgba(204, 217, 232, 0.92);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 251, 254, 0.98));
    box-shadow: 0 12px 24px rgba(9, 30, 53, 0.07);
}

body.page-queue .queue-hero h1 {
    font-size: clamp(1.34rem, 1.7vw, 1.86rem);
    color: #0b2f53;
}

body.page-queue .queue-hero p {
    margin-top: 5px;
    color: #5b7389;
    font-size: 0.9rem;
}

body.page-queue .queue-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

body.page-queue .queue-overview-grid--cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

body.page-queue .queue-overview-card {
    min-height: 112px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(203, 216, 231, 0.96);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 250, 253, 0.97));
    box-shadow: 0 10px 22px rgba(9, 30, 53, 0.07);
    display: grid;
    gap: 10px;
}

body.page-queue .queue-overview-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

body.page-queue .queue-overview-card-head strong {
    display: block;
    color: #092846;
    font-family: var(--font-heading);
    font-size: 2rem;
    line-height: 1;
}

body.page-queue .queue-overview-card-head span {
    display: block;
    margin-top: 6px;
    color: #2e4964;
    font-size: 0.88rem;
    font-weight: 700;
}

body.page-queue .queue-overview-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(169, 191, 216, 0.92);
    background: linear-gradient(180deg, rgba(244, 249, 255, 0.98), rgba(225, 236, 249, 0.94));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
    color: #103a63;
    flex: 0 0 auto;
}

body.page-queue .queue-overview-icon svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.1;
}

body.page-queue .queue-overview-card small {
    color: #617b95;
    font-size: 0.8rem;
    font-weight: 600;
}

body.page-queue .queue-overview-card--waiting {
    background: linear-gradient(145deg, #07284a 0%, #123c6a 100%);
    border-color: rgba(15, 54, 95, 0.95);
}

body.page-queue .queue-overview-card--waiting .queue-overview-card-head strong,
body.page-queue .queue-overview-card--waiting .queue-overview-card-head span,
body.page-queue .queue-overview-card--waiting .queue-overview-card small {
    color: #fff;
}

body.page-queue .queue-overview-card--waiting .queue-overview-icon {
    border-color: rgba(255, 255, 255, 0.26);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.16));
    color: #fff;
}

body.page-queue .queue-overview-card--washing {
    background: linear-gradient(180deg, rgba(238, 245, 253, 0.98), rgba(249, 252, 255, 0.98));
}

body.page-queue .queue-overview-card--washing .queue-overview-icon {
    border-color: rgba(155, 188, 228, 0.95);
    background: linear-gradient(180deg, rgba(237, 245, 255, 0.98), rgba(220, 236, 253, 0.96));
    color: #0f4d88;
}

body.page-queue .queue-overview-card--done {
    background: linear-gradient(180deg, rgba(236, 250, 243, 0.98), rgba(248, 255, 251, 0.98));
}

body.page-queue .queue-overview-card--done .queue-overview-icon {
    border-color: rgba(167, 217, 193, 0.95);
    background: linear-gradient(180deg, rgba(236, 251, 245, 0.98), rgba(214, 243, 230, 0.96));
    color: #0f8454;
}

body.page-queue .queue-overview-card--cancelled {
    background: linear-gradient(180deg, rgba(255, 246, 237, 0.98), rgba(255, 252, 248, 0.98));
}

body.page-queue .queue-overview-card--cancelled .queue-overview-icon {
    border-color: rgba(238, 199, 188, 0.95);
    background: linear-gradient(180deg, rgba(255, 245, 241, 0.98), rgba(253, 228, 221, 0.96));
    color: #b55748;
}

body.page-queue .queue-overview-card--overview {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 14px;
    align-items: center;
}

body.page-queue .queue-overview-summary-head {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

body.page-queue .queue-overview-summary-head strong {
    color: #0a2f54;
    font-size: 0.95rem;
    font-weight: 800;
}

body.page-queue .queue-overview-summary-head span {
    color: #607a94;
    font-size: 0.78rem;
}

body.page-queue .queue-overview-summary-stats {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

body.page-queue .queue-overview-summary-stats span {
    min-width: 82px;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid rgba(208, 220, 233, 0.94);
    background: rgba(255, 255, 255, 0.92);
    display: grid;
    gap: 2px;
}

body.page-queue .queue-overview-summary-stats strong {
    color: #0f3a64;
    font-size: 1.2rem;
    line-height: 1;
}

body.page-queue .queue-overview-summary-stats small {
    color: #5f7791;
    font-size: 0.72rem;
    font-weight: 700;
}

body.page-queue .queue-overview-summary-ring {
    --queue-progress: 0%;
    width: 82px;
    height: 82px;
    border-radius: 999px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: conic-gradient(#0e4d86 var(--queue-progress), rgba(223, 233, 243, 0.94) 0);
}

body.page-queue .queue-overview-summary-ring::before {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: inherit;
    background: #fff;
}

body.page-queue .queue-overview-summary-ring strong,
body.page-queue .queue-overview-summary-ring small {
    position: relative;
    z-index: 1;
}

body.page-queue .queue-overview-summary-ring strong {
    color: #0d355b;
    font-size: 1.02rem;
    line-height: 1;
}

body.page-queue .queue-overview-summary-ring small {
    display: block;
    margin-top: 3px;
    color: #688099;
    font-size: 0.62rem;
    text-align: center;
}

body.page-queue .queue-control-card {
    margin-bottom: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    border-color: rgba(202, 216, 231, 0.95);
    box-shadow: 0 10px 24px rgba(9, 30, 53, 0.07);
}

body.page-queue .queue-control-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr) auto;
    align-items: center;
    gap: 10px;
}

body.page-queue .queue-tabs {
    margin: 0;
    padding: 5px;
    border-radius: 14px;
}

body.page-queue .queue-tabs a {
    min-height: 38px;
    padding: 6px 11px;
    font-size: 0.82rem;
}

body.page-queue .queue-tab-count {
    min-width: 22px;
    min-height: 20px;
    font-size: 0.69rem;
}

body.page-queue .queue-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

body.page-queue .queue-search-field {
    min-width: 0;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid rgba(189, 206, 224, 0.98);
    border-radius: 13px;
    background: #fff;
}

body.page-queue .queue-search-icon {
    width: 18px;
    height: 18px;
    color: #40607f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.page-queue .queue-search-icon svg {
    width: 16px;
    height: 16px;
}

body.page-queue .queue-search-field input {
    width: 100%;
    min-height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

body.page-queue .queue-search-field:focus-within {
    border-color: rgba(17, 76, 135, 0.78);
    box-shadow: 0 0 0 3px rgba(17, 76, 135, 0.12);
}

body.page-queue .queue-search-form .app-action-button {
    min-height: 44px;
    border-radius: 12px;
}

body.page-queue .queue-sort-field {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    border: 1px solid rgba(189, 206, 224, 0.98);
    border-radius: 12px;
    background: #fff;
}

body.page-queue .queue-sort-field span {
    color: #56718c;
    font-size: 0.74rem;
    font-weight: 700;
    white-space: nowrap;
}

body.page-queue .queue-sort-field select {
    min-height: 34px;
    border: 0;
    padding: 0 20px 0 0;
    font-size: 0.82rem;
    color: #173e66;
    background-color: transparent;
    box-shadow: none;
}

body.page-queue .queue-sort-field select:focus {
    outline: none;
    box-shadow: none;
}

body.page-queue .queue-toolbar-actions {
    justify-content: flex-end;
}

body.page-queue .queue-toolbar-copy {
    margin-top: 10px;
}

body.page-queue .queue-toolbar-copy strong {
    font-size: 0.88rem;
}

body.page-queue .queue-toolbar-copy span {
    font-size: 0.8rem;
}

body.page-queue .queue-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

body.page-queue .queue-card-v4 {
    display: block;
    min-height: 0;
    padding: 12px 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(200, 213, 228, 0.98);
    background: #fff;
    box-shadow: 0 10px 22px rgba(9, 30, 53, 0.06);
}

body.page-queue .queue-card-v4::before {
    display: none;
}

body.page-queue .queue-card-v4-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

body.page-queue .queue-card-v4-number {
    min-width: 58px;
    min-height: 30px;
    font-size: 1rem;
    border-radius: 10px;
    justify-content: center;
}

body.page-queue .queue-card-v4-head .queue-card-bill-row {
    margin: 0;
}

body.page-queue .queue-card-v4-head .queue-card-bill-label {
    font-size: 0.72rem;
}

body.page-queue .queue-card-v4-head .queue-card-bill-value {
    font-size: 0.82rem;
}

body.page-queue .queue-card-v4-body {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) 118px;
    align-items: center;
    gap: 10px;
}

body.page-queue .queue-card-v4-plate-col {
    display: grid;
    gap: 6px;
}

body.page-queue .queue-card-v4 .queue-card-plate {
    min-height: 70px;
    padding: 8px;
    border-radius: 12px;
}

body.page-queue .queue-card-v4 .queue-card-plate .plate {
    font-size: 1.62rem;
    line-height: 1.08;
    overflow-wrap: break-word;
    word-break: normal;
}

body.page-queue .queue-card-v4 .queue-card-plate .plate-province {
    font-size: 0.72rem;
}

body.page-queue .queue-card-branch {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(205, 217, 231, 0.95);
    background: rgba(246, 249, 253, 0.92);
    color: #546f8b;
    font-size: 0.71rem;
    font-weight: 700;
}

body.page-queue .queue-card-v4-main {
    display: grid;
    gap: 5px;
}

body.page-queue .queue-card-v4-main .queue-card-title {
    gap: 4px;
}

body.page-queue .queue-card-v4-main .queue-card-customer {
    font-size: 1.03rem;
}

body.page-queue .queue-card-v4-main .queue-card-vehicle {
    font-size: 0.96rem;
}

body.page-queue .queue-card-v4-main .queue-card-services {
    font-size: 0.86rem;
    line-height: 1.4;
}

body.page-queue .queue-card-phone {
    color: #466482;
    font-size: 0.82rem;
    font-weight: 700;
}

body.page-queue .queue-card-v4-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    color: #607a95;
    font-size: 0.75rem;
    font-weight: 600;
}

body.page-queue .queue-card-v4-photo-col {
    display: flex;
    justify-content: flex-end;
}

body.page-queue .queue-card-photo-lg {
    width: 118px;
    height: 84px;
    border-radius: 12px;
}

body.page-queue .queue-card-v4-actions {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

body.page-queue .queue-card-v4-actions .queue-secondary-actions {
    margin: 0;
    flex: 1 1 220px;
}

body.page-queue .queue-card-v4-actions .queue-secondary-actions > * {
    min-width: 0;
}

body.page-queue .queue-card-v4 .queue-card-status {
    justify-content: flex-end;
}

body.page-queue .queue-card-v4 .queue-secondary-actions .button {
    min-height: 38px;
}

body.display-web.page-queue .queue-card-v4-actions {
    flex-wrap: nowrap;
    gap: 6px;
}

body.display-web.page-queue .queue-card-v4-actions .queue-secondary-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    margin: 0;
    flex: 0 0 auto;
}

body.display-web.page-queue .queue-card-v4-actions .queue-secondary-actions > * {
    min-width: 0;
    flex: 0 0 auto;
}

body.display-web.page-queue .queue-card-v4-actions .queue-secondary-actions .inline-form {
    margin: 0;
}

body.display-web.page-queue .queue-card-v4 .queue-secondary-actions .button {
    min-height: 36px;
    min-width: 40px;
    width: 40px;
    padding: 0;
    justify-content: center;
}

body.display-web.page-queue .queue-card-v4 .queue-secondary-actions .app-action-button {
    grid-template-columns: 1fr !important;
    gap: 0;
    justify-items: center;
}

body.display-web.page-queue .queue-card-v4 .queue-secondary-actions .app-action-button .app-action-button-icon {
    width: 22px;
    height: 22px;
    border-radius: 7px;
}

body.display-web.page-queue .queue-card-v4 .queue-secondary-actions .app-action-button .app-action-button-label {
    display: none;
}

@media (max-width: 1560px) {
    body.page-queue .queue-overview-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    body.page-queue .queue-overview-card--overview {
        grid-column: span 3;
    }
}

@media (max-width: 1320px) {
    body.page-queue .queue-control-main {
        grid-template-columns: 1fr;
    }

    body.page-queue .queue-toolbar-actions {
        justify-content: flex-start;
    }

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

@media (max-width: 980px) {
    body.page-queue .queue-overview-grid {
        grid-template-columns: 1fr 1fr;
    }

    body.page-queue .queue-overview-card--overview {
        grid-column: 1 / -1;
    }

    body.page-queue .queue-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    body.page-queue .queue-search-form {
        flex-wrap: wrap;
    }

    body.page-queue .queue-sort-field {
        flex: 1 1 180px;
        justify-content: space-between;
    }

    body.page-queue .queue-search-form .app-action-button {
        flex: 1 1 150px;
    }

    body.page-queue .queue-card-v4-body {
        grid-template-columns: 1fr;
    }

    body.page-queue .queue-card-v4-photo-col {
        justify-content: flex-start;
    }

    body.page-queue .queue-card-photo-lg {
        width: min(100%, 240px);
        height: 120px;
    }

    body.page-queue .queue-card-v4 .queue-card-status {
        justify-content: flex-start;
    }
}

body.display-app.page-queue .queue-overview-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

body.display-app.page-queue .queue-overview-card {
    min-height: 98px;
    padding: 12px;
    border-radius: 14px;
}

body.display-app.page-queue .queue-overview-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
}

body.display-app.page-queue .queue-overview-icon svg {
    width: 16px;
    height: 16px;
}

body.display-app.page-queue .queue-overview-card-head strong {
    font-size: 1.66rem;
}

body.display-app.page-queue .queue-overview-card-head span {
    font-size: 0.79rem;
}

body.display-app.page-queue .queue-overview-card small {
    font-size: 0.73rem;
}

body.display-app.page-queue .queue-overview-card--overview {
    grid-column: 1 / -1;
}

body.display-app.page-queue .queue-overview-summary-ring {
    width: 74px;
    height: 74px;
}

body.display-app.page-queue .queue-control-card {
    padding: 12px;
}

body.display-app.page-queue .queue-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
}

body.display-app.page-queue .queue-tabs a {
    white-space: nowrap;
}

body.display-app.page-queue .queue-search-form {
    flex-wrap: wrap;
}

body.display-app.page-queue .queue-sort-field {
    width: 100%;
    justify-content: space-between;
}

body.display-app.page-queue .queue-sort-field select {
    flex: 1;
    min-width: 140px;
}

body.display-app.page-queue .queue-search-form .app-action-button {
    flex: 1 1 calc(50% - 4px);
}

body.display-app.page-queue .queue-toolbar-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

body.display-app.page-queue .queue-grid {
    grid-template-columns: 1fr;
    gap: 10px;
}

body.display-app.page-queue .queue-card-v4 {
    padding: 10px;
    border-radius: 14px;
}

body.display-app.page-queue .queue-card-v4-head {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;
}

body.display-app.page-queue .queue-card-v4 .queue-card-status {
    grid-column: auto;
    justify-content: flex-end;
    gap: 5px;
}

body.display-app.page-queue .queue-card-v4-body {
    grid-template-columns: 94px minmax(0, 1fr) 84px;
    align-items: start;
    gap: 7px;
}

body.display-app.page-queue .queue-card-v4 .queue-card-plate {
    min-height: 58px;
    padding: 7px 6px;
}

body.display-app.page-queue .queue-card-v4 .queue-card-plate .plate {
    font-size: 1.36rem;
    line-height: 1.08;
}

body.display-app.page-queue .queue-card-v4 .queue-card-plate .plate-province {
    font-size: 0.66rem;
}

body.display-app.page-queue .queue-card-v4-main {
    gap: 4px;
}

body.display-app.page-queue .queue-card-v4-main .queue-card-customer {
    font-size: 0.9rem;
}

body.display-app.page-queue .queue-card-v4-main .queue-card-vehicle {
    font-size: 0.84rem;
}

body.display-app.page-queue .queue-card-v4-main .queue-card-services {
    font-size: 0.78rem;
    line-height: 1.38;
}

body.display-app.page-queue .queue-card-phone {
    font-size: 0.74rem;
}

body.display-app.page-queue .queue-card-v4-meta {
    gap: 4px 8px;
    font-size: 0.7rem;
}

body.display-app.page-queue .queue-card-v4-photo-col {
    justify-content: flex-end;
}

body.display-app.page-queue .queue-card-photo-lg {
    width: 84px;
    height: 64px;
    border-radius: 10px;
}

body.display-app.page-queue .queue-card-v4-actions {
    margin-top: 8px;
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    scrollbar-width: thin;
}

body.display-app.page-queue .queue-card-v4-actions .queue-secondary-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    margin: 0;
    flex: 0 0 auto;
}

body.display-app.page-queue .queue-card-v4-actions .queue-secondary-actions > * {
    min-width: 0;
    flex: 0 0 auto;
}

body.display-app.page-queue .queue-card-v4-actions .queue-secondary-actions .inline-form {
    margin: 0;
}

body.display-app.page-queue .queue-card-v4 .queue-secondary-actions .button {
    min-height: 36px;
    min-width: 40px;
    width: 40px;
    padding: 0;
    justify-content: center;
}

body.display-app.page-queue .queue-card-v4 .queue-secondary-actions .app-action-button {
    grid-template-columns: 1fr !important;
    gap: 0;
    justify-items: center;
    text-align: center;
}

body.display-app.page-queue .queue-card-v4 .queue-secondary-actions .app-action-button .app-action-button-icon {
    width: 22px;
    height: 22px;
    border-radius: 7px;
}

body.display-app.page-queue .queue-card-v4 .queue-secondary-actions .app-action-button .app-action-button-label {
    display: none;
}

@media (max-width: 520px) {
    body.display-app.page-queue .queue-overview-grid {
        grid-template-columns: 1fr;
    }

    body.display-app.page-queue .queue-search-form .app-action-button {
        flex-basis: 100%;
    }

    body.display-app.page-queue .queue-toolbar-actions {
        grid-template-columns: 1fr;
    }

    body.display-app.page-queue .queue-card-v4-body {
        grid-template-columns: 82px minmax(0, 1fr) 74px;
        gap: 7px;
    }

    body.display-app.page-queue .queue-card-v4-photo-col {
        justify-content: flex-end;
    }

    body.display-app.page-queue .queue-card-photo-lg {
        width: 74px;
        height: 58px;
    }
}

body.page-dashboard .dashboard-console-main {
    background:
        radial-gradient(circle at 8% 10%, rgba(24, 82, 152, 0.2), transparent 38%),
        radial-gradient(circle at 85% 2%, rgba(31, 191, 117, 0.14), transparent 36%),
        linear-gradient(180deg, #07172d 0%, #091a35 55%, #08152b 100%);
    border-radius: 24px;
}

body.page-dashboard .dashboard-console-sidebar {
    border-color: rgba(122, 164, 216, 0.24);
    background:
        radial-gradient(circle at 18% 8%, rgba(30, 176, 117, 0.2), transparent 34%),
        linear-gradient(180deg, #04122a 0%, #061731 50%, #041127 100%);
}

body.page-dashboard .dashboard-console-brand {
    border-bottom-color: rgba(120, 167, 224, 0.2);
}

body.page-dashboard .dashboard-console-brand strong,
body.page-dashboard .dashboard-console-link,
body.page-dashboard .dashboard-console-footer-link,
body.page-dashboard .dashboard-console-brand small {
    color: #d8eafc;
}

body.page-dashboard .dashboard-console-link,
body.page-dashboard .dashboard-console-footer-link {
    border-color: rgba(126, 170, 224, 0.16);
    background: rgba(8, 29, 56, 0.34);
}

body.page-dashboard .dashboard-console-link:hover,
body.page-dashboard .dashboard-console-footer-link:hover {
    background: rgba(16, 49, 89, 0.48);
}

body.page-dashboard .dashboard-console-link.is-active {
    border-color: rgba(49, 217, 149, 0.5);
    background: linear-gradient(145deg, rgba(17, 133, 95, 0.46), rgba(14, 53, 94, 0.62));
    color: #f2fcff;
}

body.page-dashboard .dashboard-console-link-icon {
    color: rgba(219, 236, 254, 0.92);
}

body.page-dashboard .dashboard-console-help-card {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: auto 0 12px;
    padding: 12px;
    border: 1px solid rgba(126, 171, 223, 0.24);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(10, 35, 66, 0.78), rgba(7, 27, 50, 0.9));
}

body.page-dashboard .dashboard-console-help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: #e0f2ff;
    background: rgba(31, 191, 117, 0.2);
}

body.page-dashboard .dashboard-console-help-icon svg {
    width: 16px;
    height: 16px;
}

body.page-dashboard .dashboard-console-help-card strong {
    display: block;
    color: #f1f8ff;
    font-size: 0.82rem;
    font-weight: 700;
}

body.page-dashboard .dashboard-console-help-card small {
    display: block;
    margin-top: 2px;
    color: rgba(202, 223, 247, 0.82);
    font-size: 0.76rem;
    font-weight: 600;
}

body.page-dashboard .dashboard-console-toolbar {
    border-color: rgba(128, 172, 221, 0.24);
    background: linear-gradient(180deg, rgba(7, 27, 53, 0.82), rgba(8, 25, 49, 0.9));
}

body.page-dashboard .dashboard-console-toolbar-copy h2 {
    color: #f2f8ff;
}

body.page-dashboard .dashboard-console-toolbar-copy p {
    color: rgba(203, 224, 249, 0.74);
}

body.page-dashboard .dashboard-console-user {
    border-color: rgba(131, 174, 223, 0.24);
    background: rgba(13, 35, 64, 0.66);
}

body.page-dashboard .dashboard-console-user strong {
    color: #f5faff;
}

body.page-dashboard .dashboard-console-user small {
    color: rgba(206, 226, 248, 0.8);
}

body.page-dashboard .dashboard-console-toggle {
    border-color: rgba(131, 173, 220, 0.28);
    background: rgba(10, 33, 62, 0.7);
    color: #def0ff;
}

body.page-dashboard .dashboard-stage-neo {
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 1px solid rgba(125, 164, 214, 0.2);
    border-radius: 24px;
    background: linear-gradient(150deg, rgba(6, 24, 49, 0.9), rgba(12, 31, 61, 0.92) 60%, rgba(9, 28, 54, 0.95));
    box-shadow: 0 24px 60px rgba(1, 10, 23, 0.35);
    color: #e9f3ff;
}

body.page-dashboard .dashneo-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 4px 2px;
}

body.page-dashboard .dashneo-hero-copy h1 {
    margin: 0;
    color: #f3f8ff;
    font-size: 2rem;
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -0.01em;
}

body.page-dashboard .dashneo-hero-copy p {
    margin: 8px 0 0;
    color: rgba(218, 233, 251, 0.8);
    font-size: 0.96rem;
}

body.page-dashboard .dashneo-hero-meta {
    min-width: 180px;
    display: grid;
    justify-items: end;
    gap: 8px;
    text-align: right;
}

body.page-dashboard .dashneo-hero-meta span,
body.page-dashboard .dashneo-hero-meta small {
    padding: 8px 11px;
    border: 1px solid rgba(146, 184, 228, 0.28);
    border-radius: 999px;
    background: rgba(11, 31, 57, 0.55);
    color: rgba(219, 235, 255, 0.92);
    font-size: 0.76rem;
    font-weight: 700;
}

body.page-dashboard .dashneo-hero-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

body.page-dashboard .dashneo-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid rgba(138, 182, 228, 0.28);
    border-radius: 10px;
    background: rgba(14, 39, 71, 0.72);
    color: #e8f4ff;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

body.page-dashboard .dashneo-hero-btn.is-primary {
    border-color: rgba(65, 218, 153, 0.52);
    background: linear-gradient(135deg, rgba(24, 188, 126, 0.9), rgba(21, 138, 186, 0.78));
    color: #fff;
}

body.page-dashboard .dashneo-branch-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

body.page-dashboard .dashneo-branch-chip {
    display: grid;
    gap: 2px;
    min-width: 120px;
    padding: 8px 10px;
    border: 1px solid rgba(130, 173, 221, 0.24);
    border-radius: 11px;
    background: linear-gradient(180deg, rgba(15, 40, 73, 0.86), rgba(11, 30, 56, 0.9));
}

body.page-dashboard .dashneo-branch-chip strong {
    color: #f2f8ff;
    font-size: 0.8rem;
    font-weight: 700;
}

body.page-dashboard .dashneo-branch-chip small {
    color: rgba(199, 221, 245, 0.78);
    font-size: 0.72rem;
    font-weight: 700;
}

body.page-dashboard .dashneo-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

body.page-dashboard .dashneo-metric-card {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(134, 171, 214, 0.26);
    border-radius: 20px;
    backdrop-filter: blur(6px);
}

body.page-dashboard .dashneo-metric-card::after {
    content: "";
    position: absolute;
    right: -34px;
    bottom: -42px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 64%);
    pointer-events: none;
}

body.page-dashboard .dashneo-metric-card.is-income {
    background: linear-gradient(140deg, rgba(8, 74, 64, 0.64), rgba(7, 48, 89, 0.74));
}

body.page-dashboard .dashneo-metric-card.is-cars {
    background: linear-gradient(140deg, rgba(11, 62, 118, 0.68), rgba(18, 43, 89, 0.78));
}

body.page-dashboard .dashneo-metric-card.is-progress {
    background: linear-gradient(140deg, rgba(102, 61, 12, 0.68), rgba(86, 36, 10, 0.74));
}

body.page-dashboard .dashneo-metric-card.is-payment {
    background: linear-gradient(140deg, rgba(109, 23, 52, 0.7), rgba(72, 23, 73, 0.74));
}

body.page-dashboard .dashneo-metric-icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #e7f2ff;
}

body.page-dashboard .dashneo-metric-icon svg {
    width: 24px;
    height: 24px;
}

body.page-dashboard .dashneo-metric-card.is-income .dashneo-metric-icon {
    background: rgba(37, 221, 146, 0.28);
    color: #91ffd2;
}

body.page-dashboard .dashneo-metric-card.is-cars .dashneo-metric-icon {
    background: rgba(84, 149, 255, 0.26);
    color: #b6d6ff;
}

body.page-dashboard .dashneo-metric-card.is-progress .dashneo-metric-icon {
    background: rgba(255, 151, 54, 0.25);
    color: #ffd2a1;
}

body.page-dashboard .dashneo-metric-card.is-payment .dashneo-metric-icon {
    background: rgba(239, 86, 115, 0.27);
    color: #ffc1cc;
}

body.page-dashboard .dashneo-metric-copy {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 6px;
    min-width: 0;
}

body.page-dashboard .dashneo-metric-copy span {
    color: rgba(214, 230, 248, 0.86);
    font-size: 0.86rem;
    font-weight: 700;
}

body.page-dashboard .dashneo-metric-copy strong {
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    font-weight: 700;
}

body.page-dashboard .dashneo-metric-copy small {
    color: rgba(221, 236, 255, 0.84);
    font-size: 0.84rem;
    font-weight: 600;
}

body.page-dashboard .dashneo-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

body.page-dashboard .dashneo-quick-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(130, 170, 217, 0.24);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(14, 36, 67, 0.88), rgba(10, 31, 59, 0.92));
    text-decoration: none;
}

body.page-dashboard .dashneo-quick-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    color: #d9ecff;
    background: rgba(255, 255, 255, 0.1);
}

body.page-dashboard .dashneo-quick-icon svg {
    width: 20px;
    height: 20px;
}

body.page-dashboard .dashneo-quick-card:nth-child(1) .dashneo-quick-icon {
    background: rgba(37, 210, 142, 0.2);
    color: #62ffc0;
}

body.page-dashboard .dashneo-quick-card:nth-child(2) .dashneo-quick-icon {
    background: rgba(80, 145, 255, 0.2);
    color: #9ec2ff;
}

body.page-dashboard .dashneo-quick-card:nth-child(3) .dashneo-quick-icon {
    background: rgba(177, 107, 244, 0.2);
    color: #d8b2ff;
}

body.page-dashboard .dashneo-quick-card:nth-child(4) .dashneo-quick-icon {
    background: rgba(43, 197, 161, 0.2);
    color: #8ef6dc;
}

body.page-dashboard .dashneo-quick-card strong {
    display: block;
    color: #f3f8ff;
    font-size: 0.94rem;
    font-weight: 700;
}

body.page-dashboard .dashneo-quick-card small {
    display: block;
    margin-top: 2px;
    color: rgba(205, 223, 243, 0.74);
    font-size: 0.78rem;
    font-weight: 600;
}

body.page-dashboard .dashneo-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.75fr);
    gap: 14px;
}

body.page-dashboard .dashneo-side-panels {
    display: grid;
    gap: 14px;
}

body.page-dashboard .dashneo-panel {
    border: 1px solid rgba(129, 171, 220, 0.2);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(13, 34, 64, 0.86), rgba(11, 30, 56, 0.95));
    box-shadow: 0 16px 34px rgba(4, 14, 28, 0.26);
    min-width: 0;
}

body.page-dashboard .dashneo-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px 0;
}

body.page-dashboard .dashneo-panel-head h2 {
    margin: 0;
    color: #f2f8ff;
    font-size: 1.08rem;
    font-weight: 700;
}

body.page-dashboard .dashneo-panel-head span,
body.page-dashboard .dashneo-panel-head a {
    color: rgba(200, 222, 247, 0.78);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
}

body.page-dashboard .dashneo-trend-panel {
    padding-bottom: 14px;
}

body.page-dashboard .dashneo-line-wrap {
    position: relative;
    margin: 12px 14px 2px;
    padding: 10px 8px 0;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(7, 24, 48, 0.82), rgba(10, 31, 57, 0.92));
}

body.page-dashboard .dashneo-y-label {
    position: absolute;
    left: 18px;
    top: 16px;
    color: rgba(197, 219, 246, 0.68);
    font-size: 0.76rem;
    font-weight: 700;
}

body.page-dashboard .dashneo-line-wrap svg {
    width: 100%;
    height: 238px;
    display: block;
}

body.page-dashboard .dashneo-line-wrap line {
    stroke: rgba(150, 184, 224, 0.16);
    stroke-width: 1;
}

body.page-dashboard .dashneo-area-path {
    fill: rgba(36, 221, 148, 0.2);
}

body.page-dashboard .dashneo-line-path {
    fill: none;
    stroke: #2fe59a;
    stroke-width: 3;
    stroke-linejoin: round;
    stroke-linecap: round;
}

body.page-dashboard .dashneo-line-wrap circle {
    fill: #081a34;
    stroke: #32e7a0;
    stroke-width: 2;
}

body.page-dashboard .dashneo-line-labels {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
    padding: 0 12px 12px;
}

body.page-dashboard .dashneo-line-labels span {
    color: rgba(203, 223, 245, 0.86);
    font-size: 0.78rem;
    font-weight: 700;
    text-align: center;
}

body.page-dashboard .dashneo-overview-panel,
body.page-dashboard .dashneo-goal-panel,
body.page-dashboard .dashneo-alert-panel {
    padding-bottom: 14px;
}

body.page-dashboard .dashneo-overview-grid {
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px 14px 2px;
}

body.page-dashboard .dashneo-donut {
    --dashneo-donut: conic-gradient(#29405f 0% 100%);
    position: relative;
    width: 130px;
    height: 130px;
    margin: 0 auto;
    border-radius: 50%;
    background: var(--dashneo-donut);
    display: grid;
    place-items: center;
}

body.page-dashboard .dashneo-donut::before {
    content: "";
    position: absolute;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(9, 27, 52, 0.98), rgba(8, 23, 45, 0.98));
    box-shadow: inset 0 0 0 1px rgba(141, 182, 227, 0.12);
}

body.page-dashboard .dashneo-donut div {
    position: relative;
    z-index: 1;
    text-align: center;
}

body.page-dashboard .dashneo-donut strong {
    display: block;
    color: #f8fbff;
    font-size: 1.2rem;
    line-height: 1.1;
    font-weight: 700;
}

body.page-dashboard .dashneo-donut small {
    display: block;
    margin-top: 4px;
    color: rgba(201, 224, 250, 0.78);
    font-size: 0.72rem;
    font-weight: 700;
}

body.page-dashboard .dashneo-payment-list {
    display: grid;
    gap: 8px;
}

body.page-dashboard .dashneo-payment-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

body.page-dashboard .dashneo-payment-row > div {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

body.page-dashboard .dashneo-payment-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

body.page-dashboard .dashneo-payment-row strong {
    color: #f3f8ff;
    font-size: 0.84rem;
    font-weight: 700;
}

body.page-dashboard .dashneo-payment-row span {
    color: rgba(204, 223, 245, 0.82);
    font-size: 0.77rem;
    font-weight: 600;
    white-space: nowrap;
}

body.page-dashboard .dashneo-goal-amount {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 8px 18px 0;
}

body.page-dashboard .dashneo-goal-amount strong {
    color: #f7fbff;
    font-size: 1.8rem;
    line-height: 1;
    font-weight: 700;
}

body.page-dashboard .dashneo-goal-amount span {
    color: rgba(204, 224, 247, 0.82);
    font-size: 0.92rem;
    font-weight: 700;
}

body.page-dashboard .dashneo-goal-track {
    height: 12px;
    margin: 14px 18px 0;
    border-radius: 999px;
    background: rgba(132, 170, 215, 0.2);
    overflow: hidden;
}

body.page-dashboard .dashneo-goal-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #1dc57e, #60f2bb);
}

body.page-dashboard .dashneo-alert-list {
    display: grid;
    gap: 8px;
    padding: 12px 14px 2px;
}

body.page-dashboard .dashneo-alert-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 12px;
    border: 1px solid rgba(136, 177, 223, 0.2);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(18, 40, 72, 0.82), rgba(12, 31, 56, 0.9));
}

body.page-dashboard .dashneo-alert-row strong {
    color: #f6faff;
    font-size: 0.85rem;
    font-weight: 700;
}

body.page-dashboard .dashneo-alert-row span {
    color: rgba(211, 230, 250, 0.86);
    font-size: 0.78rem;
    font-weight: 700;
}

body.page-dashboard .dashneo-lower-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
    gap: 14px;
}

body.page-dashboard .dashneo-queue-panel,
body.page-dashboard .dashneo-service-panel,
body.page-dashboard .dashneo-latest-panel {
    padding-bottom: 14px;
}

body.page-dashboard .dashneo-queue-list {
    display: grid;
    gap: 10px;
    padding: 12px 14px 0;
}

body.page-dashboard .dashneo-queue-item {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
    border: 1px solid rgba(136, 176, 219, 0.2);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(17, 39, 71, 0.88), rgba(13, 34, 62, 0.94));
}

body.page-dashboard .dashneo-queue-photo .vehicle-profile-photo,
body.page-dashboard .dashneo-queue-photo .vehicle-profile-photo-placeholder {
    width: 52px;
    height: 52px;
    border-radius: 12px;
}

body.page-dashboard .dashneo-queue-main {
    min-width: 0;
    display: grid;
    gap: 6px;
}

body.page-dashboard .dashneo-queue-main-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

body.page-dashboard .dashneo-queue-main-top .bill-link,
body.page-dashboard .dashneo-queue-main-top strong {
    color: #f8fbff;
    font-size: 0.9rem;
    font-weight: 700;
}

body.page-dashboard .dashneo-queue-main-top .status,
body.page-dashboard .dashneo-queue-main-top .status-warning,
body.page-dashboard .dashneo-queue-main-top .status-success,
body.page-dashboard .dashneo-queue-main-top .status-danger,
body.page-dashboard .dashneo-queue-main-top .status-muted {
    font-size: 0.66rem;
    padding: 4px 8px;
    border-radius: 999px;
}

body.page-dashboard .dashneo-queue-main p {
    margin: 0;
    color: rgba(205, 224, 245, 0.86);
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.page-dashboard .dashneo-queue-foot {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

body.page-dashboard .dashneo-queue-foot span {
    color: rgba(198, 220, 245, 0.84);
    font-size: 0.75rem;
    font-weight: 600;
}

body.page-dashboard .dashneo-service-list {
    display: grid;
    gap: 12px;
    padding: 12px 14px 0;
}

body.page-dashboard .dashneo-service-row {
    display: grid;
    gap: 7px;
}

body.page-dashboard .dashneo-service-row-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

body.page-dashboard .dashneo-service-row-top strong {
    color: #f4f9ff;
    font-size: 0.84rem;
    font-weight: 700;
}

body.page-dashboard .dashneo-service-row-top span {
    color: rgba(205, 225, 246, 0.84);
    font-size: 0.78rem;
    font-weight: 700;
}

body.page-dashboard .dashneo-service-track {
    height: 10px;
    border-radius: 999px;
    background: rgba(140, 178, 221, 0.22);
    overflow: hidden;
}

body.page-dashboard .dashneo-service-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
}

body.page-dashboard .dashneo-service-track.is-cyan span {
    background: linear-gradient(90deg, #23cfc7, #77f2e6);
}

body.page-dashboard .dashneo-service-track.is-blue span {
    background: linear-gradient(90deg, #3d74ff, #8eb0ff);
}

body.page-dashboard .dashneo-service-track.is-green span {
    background: linear-gradient(90deg, #1bb96f, #69ecaa);
}

body.page-dashboard .dashneo-latest-panel .table-card {
    margin: 12px 14px 0;
    border: 1px solid rgba(135, 177, 224, 0.2);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(16, 39, 71, 0.88), rgba(12, 33, 61, 0.95));
}

body.page-dashboard .dashneo-latest-panel .dashboard-table {
    min-width: 760px;
}

body.page-dashboard .dashneo-latest-panel .dashboard-table thead th {
    color: rgba(211, 230, 250, 0.9);
    background: rgba(24, 52, 88, 0.78);
    border-bottom-color: rgba(135, 177, 224, 0.2);
}

body.page-dashboard .dashneo-latest-panel .dashboard-table td {
    color: rgba(225, 239, 255, 0.9);
    border-bottom-color: rgba(132, 170, 213, 0.18);
}

body.page-dashboard .dashneo-latest-panel .vehicle-profile-inline strong,
body.page-dashboard .dashneo-latest-panel .vehicle-profile-inline .muted {
    color: rgba(224, 239, 255, 0.9);
}

body.page-dashboard .dashneo-latest-panel .dashboard-table tbody tr:hover td {
    background: rgba(34, 67, 107, 0.42);
}

body.page-dashboard .dashboard-stage-neo .empty-state {
    margin: 12px 14px 0;
    border: 1px dashed rgba(146, 184, 228, 0.34);
    border-radius: 14px;
    background: rgba(13, 35, 64, 0.44);
    color: rgba(201, 223, 247, 0.84);
}

@media (max-width: 1380px) {
    body.page-dashboard .dashneo-metric-grid,
    body.page-dashboard .dashneo-quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.page-dashboard .dashneo-main-grid,
    body.page-dashboard .dashneo-lower-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 900px) {
    body.page-dashboard .dashboard-stage-neo {
        padding: 14px;
        border-radius: 18px;
    }

    body.page-dashboard .dashneo-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    body.page-dashboard .dashneo-hero-meta {
        width: 100%;
        justify-items: start;
        text-align: left;
    }

    body.page-dashboard .dashneo-hero-actions {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    body.page-dashboard .dashneo-overview-grid {
        grid-template-columns: 1fr;
    }

    body.page-dashboard .dashboard-console-help-card {
        margin-bottom: 10px;
    }
}

@media (max-width: 640px) {
    body.page-dashboard .dashneo-metric-grid,
    body.page-dashboard .dashneo-quick-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    body.page-dashboard .dashneo-hero-copy h1 {
        font-size: 1.56rem;
    }

    body.page-dashboard .dashneo-metric-copy strong {
        font-size: 1.64rem;
    }

    body.page-dashboard .dashneo-line-wrap {
        margin: 10px 10px 0;
    }

    body.page-dashboard .dashneo-line-wrap svg {
        height: 214px;
    }

    body.page-dashboard .dashneo-line-labels {
        padding-inline: 8px;
    }
}

body.display-app.page-dashboard .dashboard-stage-neo {
    padding: 12px;
    gap: 12px;
}

body.display-app.page-dashboard .dashneo-hero-copy h1 {
    font-size: 1.44rem;
}

body.display-app.page-dashboard .dashneo-metric-card,
body.display-app.page-dashboard .dashneo-quick-card,
body.display-app.page-dashboard .dashneo-panel {
    border-radius: 14px;
}

body.display-app.page-dashboard .dashneo-line-wrap {
    margin: 10px 8px 0;
    border-radius: 12px;
}

body.display-app.page-dashboard .dashneo-line-wrap svg {
    height: 204px;
}

body.display-app.page-dashboard .dashneo-hero-actions {
    width: 100%;
}

body.display-app.page-dashboard .dashneo-hero-btn {
    min-height: 34px;
    padding-inline: 10px;
    font-size: 0.74rem;
}

body.page-dashboard .dashneo-chart-filters {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

body.page-dashboard .dashneo-chart-filters span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(138, 179, 224, 0.24);
    border-radius: 9px;
    background: rgba(11, 33, 61, 0.7);
    color: rgba(204, 225, 248, 0.82);
    font-size: 0.72rem;
    font-weight: 700;
}

body.page-dashboard .dashneo-chart-filters span.is-active {
    border-color: rgba(57, 224, 158, 0.54);
    background: linear-gradient(145deg, rgba(12, 112, 76, 0.74), rgba(16, 74, 110, 0.7));
    color: #efffff;
}

body.page-dashboard .dashneo-line-wrap {
    overflow: hidden;
}

body.page-dashboard .dashneo-line-glow {
    fill: none;
    stroke: rgba(47, 229, 154, 0.26);
    stroke-width: 9;
    stroke-linejoin: round;
    stroke-linecap: round;
}

body.page-dashboard .dashneo-line-path {
    stroke-width: 3.2;
}

body.page-dashboard .dashneo-chart-tip {
    position: absolute;
    z-index: 3;
    min-width: 112px;
    padding: 8px 10px;
    border: 1px solid rgba(133, 176, 222, 0.3);
    border-radius: 11px;
    background: linear-gradient(180deg, rgba(14, 41, 73, 0.94), rgba(10, 31, 58, 0.94));
    box-shadow: 0 10px 22px rgba(3, 14, 32, 0.34);
}

body.page-dashboard .dashneo-chart-tip strong {
    display: block;
    color: #eaf6ff;
    font-size: 0.72rem;
    font-weight: 700;
}

body.page-dashboard .dashneo-chart-tip span {
    display: block;
    margin-top: 3px;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
}

body.page-dashboard .dashneo-queue-list {
    gap: 8px;
}

body.page-dashboard .dashneo-queue-item {
    grid-template-columns: 58px minmax(0, 1fr) auto 44px;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 12px;
}

body.page-dashboard .dashneo-queue-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    border-radius: 8px;
    background: rgba(22, 74, 133, 0.5);
    color: #8ec3ff;
    font-size: 0.74rem;
    font-weight: 700;
}

body.page-dashboard .dashneo-queue-meta {
    min-width: 0;
    display: grid;
    gap: 2px;
}

body.page-dashboard .dashneo-queue-meta strong {
    color: #f2f9ff;
    font-size: 0.89rem;
    font-weight: 700;
    line-height: 1.14;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.page-dashboard .dashneo-queue-meta small {
    color: rgba(199, 221, 245, 0.74);
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.page-dashboard .dashneo-queue-state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    white-space: nowrap;
}

body.page-dashboard .dashneo-queue-state.is-waiting {
    color: #f9d98d;
    background: rgba(157, 120, 39, 0.28);
}

body.page-dashboard .dashneo-queue-state.is-working {
    color: #8ee5ff;
    background: rgba(32, 108, 148, 0.28);
}

body.page-dashboard .dashneo-queue-state.is-done {
    color: #97f0c0;
    background: rgba(26, 123, 82, 0.3);
}

body.page-dashboard .dashneo-queue-state.is-cancelled {
    color: #ff9ea4;
    background: rgba(133, 44, 52, 0.3);
}

body.page-dashboard .dashneo-queue-item time {
    color: rgba(195, 218, 244, 0.8);
    font-size: 0.74rem;
    font-weight: 700;
    text-align: right;
}

body.page-dashboard .dashneo-service-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

body.page-dashboard .dashneo-service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 7px;
    color: #dff2ff;
    background: rgba(19, 55, 94, 0.76);
}

body.page-dashboard .dashneo-service-icon svg {
    width: 13px;
    height: 13px;
}

body.page-dashboard .dashneo-service-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 8px;
    margin-top: 2px;
    border-top: 1px solid rgba(138, 180, 225, 0.2);
}

body.page-dashboard .dashneo-service-total strong {
    color: #ebf6ff;
    font-size: 0.84rem;
    font-weight: 700;
}

body.page-dashboard .dashneo-service-total span {
    color: rgba(197, 218, 243, 0.82);
    font-size: 0.78rem;
    font-weight: 700;
}

@media (max-width: 900px) {
    body.page-dashboard .dashneo-chart-filters {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
        margin-top: 2px;
    }

    body.page-dashboard .dashneo-queue-item {
        grid-template-columns: 52px minmax(0, 1fr) auto;
    }

    body.page-dashboard .dashneo-queue-item time {
        grid-column: 3;
    }
}

@media (max-width: 640px) {
    body.page-dashboard .dashneo-queue-item {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 8px;
    }

    body.page-dashboard .dashneo-queue-state {
        justify-self: start;
    }

    body.page-dashboard .dashneo-queue-item time {
        grid-column: 2;
        justify-self: end;
    }
}

/* Dashboard reference pass: tighter composition for web and app. */
body.page-dashboard .dashboard-stage-neo {
    gap: 14px;
    padding: 20px;
    border-color: rgba(120, 166, 222, 0.22);
    background:
        radial-gradient(circle at 78% 3%, rgba(59, 120, 205, 0.12), transparent 30%),
        radial-gradient(circle at 18% 14%, rgba(18, 209, 139, 0.08), transparent 28%),
        linear-gradient(150deg, #061733 0%, #081d3b 46%, #07172f 100%);
}

body.page-dashboard .dashneo-metric-card {
    min-height: 122px;
    align-items: center;
    padding: 20px 22px;
    border-color: rgba(132, 179, 232, 0.25);
    box-shadow: 0 20px 44px rgba(2, 10, 25, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.page-dashboard .dashneo-metric-icon {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body.page-dashboard .dashneo-quick-card {
    min-height: 72px;
    background:
        linear-gradient(135deg, rgba(23, 55, 91, 0.94), rgba(11, 31, 58, 0.95));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.page-dashboard .dashneo-main-grid,
body.page-dashboard .dashneo-lower-grid {
    grid-template-columns: minmax(0, 1.62fr) minmax(360px, 0.78fr);
    align-items: start;
}

body.page-dashboard .dashneo-side-panels,
body.page-dashboard .dashneo-lower-side {
    display: grid;
    align-content: start;
    gap: 14px;
}

body.page-dashboard .dashneo-lower-left {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
    min-width: 0;
}

body.page-dashboard .dashneo-panel {
    background:
        linear-gradient(180deg, rgba(13, 35, 66, 0.9), rgba(9, 27, 53, 0.96));
    box-shadow: 0 16px 34px rgba(3, 13, 29, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

body.page-dashboard .dashneo-trend-panel {
    align-self: start;
}

body.page-dashboard .dashneo-line-wrap {
    min-height: 286px;
    margin: 12px 14px 2px;
    padding: 8px 8px 0 28px;
    background:
        radial-gradient(circle at 62% 38%, rgba(40, 227, 152, 0.12), transparent 25%),
        linear-gradient(180deg, rgba(6, 22, 45, 0.88), rgba(8, 27, 54, 0.94));
}

body.page-dashboard .dashneo-y-ticks {
    position: absolute;
    inset: 8px auto auto 10px;
    z-index: 2;
}

body.page-dashboard .dashneo-y-ticks span {
    position: absolute;
    left: 0;
    transform: translateY(-50%);
    color: rgba(189, 211, 239, 0.72);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

body.page-dashboard .dashneo-y-label {
    left: 18px;
    top: 16px;
    transform: translateY(-100%);
}

body.page-dashboard .dashneo-line-wrap svg {
    height: 238px;
}

body.page-dashboard .dashneo-overview-panel {
    min-height: 286px;
}

body.page-dashboard .dashneo-overview-grid {
    min-height: 218px;
    grid-template-columns: 150px minmax(0, 1fr);
    padding: 16px 18px 14px;
}

body.page-dashboard .dashneo-donut {
    width: 140px;
    height: 140px;
    box-shadow: 0 18px 36px rgba(1, 9, 24, 0.28);
}

body.page-dashboard .dashneo-donut::before {
    width: 92px;
    height: 92px;
}

body.page-dashboard .dashneo-goal-panel,
body.page-dashboard .dashneo-alert-panel,
body.page-dashboard .dashneo-queue-panel,
body.page-dashboard .dashneo-service-panel {
    min-height: 0;
}

body.page-dashboard .dashneo-queue-item {
    min-height: 52px;
    border-color: rgba(131, 177, 231, 0.18);
    background:
        linear-gradient(180deg, rgba(18, 44, 78, 0.84), rgba(12, 34, 64, 0.92));
}

body.page-dashboard .dashneo-service-row {
    padding: 2px 0;
}

body.page-dashboard .dashneo-service-track {
    height: 9px;
}

@media (max-width: 1380px) {
    body.page-dashboard .dashneo-main-grid,
    body.page-dashboard .dashneo-lower-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 1100px) {
    body.page-dashboard .dashneo-lower-left {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 900px) {
    body.page-dashboard .dashboard-stage-neo {
        padding: 14px;
    }

    body.page-dashboard .dashneo-main-grid,
    body.page-dashboard .dashneo-lower-grid {
        gap: 12px;
    }

    body.page-dashboard .dashneo-line-wrap,
    body.page-dashboard .dashneo-overview-panel {
        min-height: unset;
    }

    body.page-dashboard .dashneo-overview-grid {
        min-height: unset;
        grid-template-columns: minmax(0, 1fr);
    }
}

body.display-app.page-dashboard .dashboard-stage-neo {
    padding: 12px;
}

body.display-app.page-dashboard .dashneo-main-grid,
body.display-app.page-dashboard .dashneo-lower-grid,
body.display-app.page-dashboard .dashneo-lower-left {
    grid-template-columns: minmax(0, 1fr);
}

/* Dashboard composition v2: closer to the requested dark operations console. */
body.page-dashboard {
    background:
        radial-gradient(circle at 88% 2%, rgba(37, 99, 178, 0.16), transparent 28%),
        linear-gradient(180deg, #051225 0%, #07172f 100%);
}

body.page-dashboard.display-web .app-shell {
    padding: 0;
    background: #061327;
}

body.page-dashboard .dashboard-console {
    grid-template-columns: 244px minmax(0, 1fr);
    gap: 0;
    min-height: 100vh;
    background: #061327;
}

body.page-dashboard .dashboard-console-sidebar {
    top: 0;
    min-height: 100vh;
    padding: 28px 20px 22px;
    border: 0;
    border-radius: 0;
    box-shadow: inset -1px 0 0 rgba(112, 156, 211, 0.14);
}

body.page-dashboard .dashboard-console-logo {
    width: 52px;
    height: 52px;
    border-radius: 15px;
    box-shadow: 0 16px 30px rgba(25, 210, 137, 0.18);
}

body.page-dashboard .dashboard-console-nav {
    gap: 12px;
}

body.page-dashboard .dashboard-console-link,
body.page-dashboard .dashboard-console-footer-link {
    min-height: 50px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: transparent;
}

body.page-dashboard .dashboard-console-link.is-active {
    background:
        radial-gradient(circle at 100% 0%, rgba(39, 218, 149, 0.16), transparent 40%),
        linear-gradient(135deg, rgba(10, 102, 77, 0.58), rgba(9, 48, 79, 0.72));
    box-shadow: inset 3px 0 0 #25d28f, 0 16px 30px rgba(0, 0, 0, 0.18);
}

body.page-dashboard .dashboard-console-main {
    position: relative;
    gap: 18px;
    min-height: 100vh;
    padding: 28px 30px 34px;
    border-radius: 0;
    background:
        radial-gradient(circle at 24% 8%, rgba(24, 101, 190, 0.16), transparent 28%),
        radial-gradient(circle at 82% 6%, rgba(33, 211, 146, 0.1), transparent 30%),
        linear-gradient(180deg, #081a34 0%, #07162f 56%, #061225 100%);
}

body.page-dashboard .dashboard-console-toolbar {
    position: absolute;
    top: 24px;
    right: 30px;
    z-index: 5;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

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

body.page-dashboard .dashboard-console-toolbar-side {
    gap: 12px;
}

body.page-dashboard .dashboard-console-toggle,
body.page-dashboard .dashboard-console-bell,
body.page-dashboard .dashboard-console-user {
    border-color: rgba(123, 171, 226, 0.24);
    background: rgba(12, 32, 60, 0.78);
    color: #e8f4ff;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
}

body.page-dashboard .dashboard-console-avatar {
    background: linear-gradient(135deg, #0e4e8b, #1765a8);
    box-shadow: 0 12px 26px rgba(11, 79, 145, 0.24);
}

body.page-dashboard .dashboard-stage-neo {
    gap: 16px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body.page-dashboard .dashneo-hero {
    min-height: 70px;
    padding: 0 500px 2px 0;
    align-items: center;
}

body.page-dashboard .dashneo-hero-copy h1 {
    font-size: 1.9rem;
    letter-spacing: -0.035em;
}

body.page-dashboard .dashneo-hero-copy p {
    margin-top: 4px;
    color: rgba(211, 228, 249, 0.72);
}

body.page-dashboard .dashneo-hero-meta {
    display: none;
}

body.page-dashboard .dashneo-branch-row {
    display: none;
}

body.page-dashboard .dashneo-metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

body.page-dashboard .dashneo-metric-card {
    min-height: 128px;
    padding: 22px 24px;
    border-radius: 12px;
    border-color: rgba(121, 170, 231, 0.26);
}

body.page-dashboard .dashneo-metric-card::after {
    right: -48px;
    bottom: -56px;
    width: 170px;
    height: 170px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.13), transparent 64%);
}

body.page-dashboard .dashneo-metric-copy strong {
    font-size: 1.9rem;
    letter-spacing: -0.03em;
}

body.page-dashboard .dashneo-quick-grid {
    gap: 14px;
}

body.page-dashboard .dashneo-quick-card {
    min-height: 76px;
    padding: 15px 16px;
    border-radius: 10px;
    border-color: rgba(123, 170, 225, 0.2);
}

body.page-dashboard .dashneo-quick-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
}

body.page-dashboard .dashneo-panel {
    border-radius: 12px;
    border-color: rgba(124, 170, 226, 0.22);
    background:
        radial-gradient(circle at 100% 0%, rgba(74, 137, 218, 0.08), transparent 28%),
        linear-gradient(180deg, rgba(12, 32, 61, 0.92), rgba(8, 25, 50, 0.98));
}

body.page-dashboard .dashneo-panel-head {
    padding: 18px 20px 0;
}

body.page-dashboard .dashneo-panel-head h2 {
    font-size: 1rem;
    letter-spacing: -0.01em;
}

body.page-dashboard .dashneo-main-grid,
body.page-dashboard .dashneo-lower-grid {
    grid-template-columns: minmax(0, 1.68fr) minmax(390px, 0.78fr);
    gap: 16px;
}

body.page-dashboard .dashneo-line-wrap {
    min-height: 328px;
    margin: 12px 18px 4px;
    padding: 12px 12px 0 36px;
    border-radius: 12px;
}

body.page-dashboard .dashneo-line-wrap svg {
    height: 268px;
}

body.page-dashboard .dashneo-line-wrap line {
    stroke: rgba(143, 180, 222, 0.17);
}

body.page-dashboard .dashneo-line-glow {
    stroke-width: 11;
    stroke: rgba(38, 229, 152, 0.2);
}

body.page-dashboard .dashneo-line-path {
    stroke-width: 3.6;
    filter: drop-shadow(0 6px 14px rgba(30, 225, 147, 0.24));
}

body.page-dashboard .dashneo-area-path {
    fill: rgba(31, 210, 143, 0.18);
}

body.page-dashboard .dashneo-overview-panel {
    min-height: 328px;
}

body.page-dashboard .dashneo-overview-grid {
    min-height: 262px;
    grid-template-columns: 156px minmax(0, 1fr);
    padding: 18px 20px 16px;
}

body.page-dashboard .dashneo-payment-row {
    padding: 5px 0;
}

body.page-dashboard .dashneo-lower-left {
    gap: 16px;
}

body.page-dashboard .dashneo-queue-list,
body.page-dashboard .dashneo-service-list,
body.page-dashboard .dashneo-alert-list {
    padding: 14px 16px 4px;
}

body.page-dashboard .dashneo-queue-item,
body.page-dashboard .dashneo-alert-row {
    border-radius: 10px;
}

body.page-dashboard .dashneo-goal-track {
    height: 13px;
    margin-top: 16px;
}

body.page-dashboard .dashneo-goal-track span {
    background: linear-gradient(90deg, #17cc80, #26e59b 55%, #71f4bf);
    box-shadow: 0 8px 20px rgba(25, 217, 138, 0.22);
}

body.page-dashboard .dashneo-latest-panel .table-card {
    border-radius: 10px;
}

body.page-dashboard .dashneo-latest-panel .dashboard-table th,
body.page-dashboard .dashneo-latest-panel .dashboard-table td {
    padding-top: 9px;
    padding-bottom: 9px;
}

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

    body.page-dashboard .dashneo-hero {
        padding-right: 360px;
    }

    body.page-dashboard .dashneo-main-grid,
    body.page-dashboard .dashneo-lower-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 900px) {
    body.page-dashboard.display-web .app-shell {
        padding: 0;
    }

    body.page-dashboard .dashboard-console {
        grid-template-columns: minmax(0, 1fr);
    }

    body.page-dashboard .dashboard-console-main {
        padding: 16px 14px 90px;
    }

    body.page-dashboard .dashboard-console-toolbar {
        position: static;
        margin-bottom: 12px;
    }

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

    body.page-dashboard .dashneo-hero {
        min-height: auto;
        padding-right: 0;
    }

    body.page-dashboard .dashneo-metric-grid,
    body.page-dashboard .dashneo-quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    body.page-dashboard .dashneo-metric-grid,
    body.page-dashboard .dashneo-quick-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    body.page-dashboard .dashneo-line-wrap {
        min-height: 250px;
        margin: 10px;
        padding-left: 30px;
    }

    body.page-dashboard .dashneo-line-wrap svg {
        height: 198px;
    }

    body.page-dashboard .dashneo-overview-panel {
        min-height: auto;
    }
}

body.display-app.page-dashboard .app-shell {
    background:
        radial-gradient(circle at 50% -10%, rgba(33, 109, 196, 0.16), transparent 32%),
        linear-gradient(180deg, #07172f, #061225);
}

body.display-app.page-dashboard .dashboard-console {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    min-height: auto;
    background: transparent;
}

body.display-app.page-dashboard .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;
    padding: 18px 14px;
    border-radius: 24px;
    overflow-y: auto;
    transform: translateX(-110%);
    opacity: 0;
    pointer-events: none;
}

body.display-app.page-dashboard .dashboard-console-main {
    min-height: auto;
    padding: 12px 12px calc(92px + env(safe-area-inset-bottom));
    border-radius: 0;
    background: transparent;
}

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

body.display-app.page-dashboard .dashneo-hero {
    min-height: auto;
    padding: 0;
}

body.display-app.page-dashboard .dashneo-metric-grid,
body.display-app.page-dashboard .dashneo-quick-grid,
body.display-app.page-dashboard .dashneo-main-grid,
body.display-app.page-dashboard .dashneo-lower-grid,
body.display-app.page-dashboard .dashneo-lower-left {
    grid-template-columns: minmax(0, 1fr);
}

/* Dashboard operational link final overrides */
body.page-dashboard a.dashneo-metric-card,
body.page-dashboard a.dashneo-quick-card,
body.page-dashboard a.dashneo-payment-row,
body.page-dashboard a.dashneo-queue-item,
body.page-dashboard a.dashneo-service-row,
body.page-dashboard a.dashneo-goal-panel,
body.page-dashboard a.dashneo-alert-row {
    color: inherit;
    text-decoration: none;
}

body.page-dashboard a.dashneo-metric-card,
body.page-dashboard a.dashneo-quick-card,
body.page-dashboard a.dashneo-payment-row,
body.page-dashboard a.dashneo-queue-item,
body.page-dashboard a.dashneo-service-row,
body.page-dashboard a.dashneo-goal-panel,
body.page-dashboard a.dashneo-alert-row,
body.page-dashboard .dashneo-chart-filters a {
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

body.page-dashboard a.dashneo-metric-card:hover,
body.page-dashboard a.dashneo-quick-card:hover,
body.page-dashboard a.dashneo-goal-panel:hover {
    transform: translateY(-2px);
    border-color: rgba(82, 196, 255, 0.42);
    box-shadow: 0 24px 56px rgba(3, 14, 35, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.page-dashboard a.dashneo-payment-row:hover,
body.page-dashboard a.dashneo-queue-item:hover,
body.page-dashboard a.dashneo-service-row:hover,
body.page-dashboard a.dashneo-alert-row:hover {
    transform: translateX(2px);
    border-color: rgba(93, 141, 255, 0.38);
    background: rgba(44, 78, 124, 0.22);
}

body.page-dashboard .dashneo-panel-head > .dashneo-chart-filters:not(.dashneo-chart-filters-live) {
    display: none;
}

body.page-dashboard .dashneo-chart-filters a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(138, 179, 224, 0.24);
    border-radius: 9px;
    background: rgba(11, 33, 61, 0.7);
    color: rgba(204, 225, 248, 0.82);
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
}

body.page-dashboard .dashneo-chart-filters a:hover,
body.page-dashboard .dashneo-chart-filters a.is-active {
    border-color: rgba(57, 224, 158, 0.54);
    background: linear-gradient(145deg, rgba(12, 112, 76, 0.74), rgba(16, 74, 110, 0.7));
    color: #efffff;
}
