@import './bootstrap-compat.scss';
@import 'primeicons/primeicons.css';
@import './calendar.scss';

/* ============================================================
   An Oath — design tokens
   ============================================================ */
:root {
    --brand: #8a0b71;
    --brand-2: #b376a1;
    --brand-deep: #5e0a4e;
    --brand-ink: #3d0833;
    --brand-tint: #f7eef4;
    --brand-tint-2: #efe0ea;

    --ink: #211a20;
    --ink-2: #5b525a;
    --ink-3: #8a818a;
    --line: #e7e0e6;
    --line-2: #efeaef;
    --bg: #f4eef3;
    --card: #ffffff;
    --ok: #1f9d57;
    --warn: #d98a17;
    --danger: #d93a3a;

    /* TEST actions — a reserved slate charcoal, never used for live customer sends */
    --test: #334155;
    --test-deep: #1e293b;
    --test-tint: #e2e8f0;

    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(61, 8, 51, .06), 0 1px 1px rgba(61, 8, 51, .04);
    --shadow: 0 6px 18px rgba(61, 8, 51, .08), 0 2px 6px rgba(61, 8, 51, .05);
    --shadow-lg: 0 24px 60px rgba(61, 8, 51, .18);

    --font: 'Hanken Grotesk', 'Noto Sans HK', system-ui, -apple-system, sans-serif;
    --serif: 'Cormorant Garamond', 'Noto Serif HK', Georgia, serif;
}

html,
body {
    margin: 0;
}

body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::selection {
    background: var(--brand);
    color: #fff;
}

*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

*::-webkit-scrollbar-thumb {
    background: #d8cdd6;
    border-radius: 20px;
    border: 3px solid transparent;
    background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
    background: #c3b3c0;
    background-clip: padding-box;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

/* ============================================================
   Legacy classes used by existing data pages — preserved
   ============================================================ */
.primary {
    background-color: #ffffff;
    color: black;
}

.primary:hover {
    background-color: var(--brand-2);
}

.primary:active {
    background-color: var(--brand);
}

/* ============================================================
   TEST action buttons — reserved slate charcoal + a "TEST" pill.
   Add class="ao-test-btn" to any safe/sandbox action (dry-run,
   in-window test, broadcast preview). Live customer-sends keep
   the brand colour; this slate is never used for a real send.
   ============================================================ */
.p-button.ao-test-btn {
    /* idiomatic PrimeVue v4: override the button's own design tokens … */
    --p-button-primary-background: var(--test);
    --p-button-primary-border-color: var(--test);
    --p-button-primary-hover-background: var(--test-deep);
    --p-button-primary-hover-border-color: var(--test-deep);
    --p-button-primary-active-background: var(--test-deep);
    --p-button-primary-active-border-color: var(--test-deep);
    /* … plus a hard override so it wins over the runtime-injected theme rule */
    background: var(--test) !important;
    border-color: var(--test) !important;
    color: #fff !important;
}

.p-button.ao-test-btn:enabled:hover,
.p-button.ao-test-btn:enabled:focus {
    background: var(--test-deep) !important;
    border-color: var(--test-deep) !important;
    color: #fff !important;
}

.p-button.ao-test-btn:disabled {
    background: var(--test) !important;
    border-color: var(--test) !important;
    opacity: .45;
}

/* outlined variant — lighter-weight test action */
.p-button.ao-test-btn.p-button-outlined {
    background: transparent !important;
    color: var(--test-deep) !important;
    border-color: var(--test) !important;
}

.p-button.ao-test-btn.p-button-outlined:enabled:hover {
    background: var(--test-tint) !important;
    color: var(--test-deep) !important;
}

/* the "TEST" pill — generated, so no per-button markup needed */
.p-button.ao-test-btn .p-button-label::after {
    content: 'TEST';
    display: inline-block;
    margin-left: 7px;
    padding: 1px 6px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .6px;
    line-height: 1.55;
    border-radius: 999px;
    background: rgba(255, 255, 255, .28);
    vertical-align: middle;
}

.p-button.ao-test-btn.p-button-outlined .p-button-label::after {
    background: var(--test);
    color: #fff;
}

.btn-primary {
    color: #ffffff;
    background-color: var(--brand);
    border: none;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background: linear-gradient(to right, var(--brand-2), var(--brand));
    color: #ffffff;
}

.btn-orange {
    color: #ffffff;
    background-color: var(--brand-2);
    border: none;
    transition: background-color 0.3s;
}

.btn-orange:hover {
    background: linear-gradient(to right, var(--brand-2), var(--brand));
    color: #ffffff;
}

.custom-close .p-button {
    background-color: var(--primary-color, #03a9f4);
    border-color: var(--primary-color, #03a9f4);
    color: white;
}

.custom-close .p-button .pi {
    color: white;
}

.list-vertical-center {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.primevue-tag-list span {
    margin: 5px;
}

.primevue-image-list img {
    max-width: 100px;
}

.table-label-section {
    background-color: #ddd;
    padding: 20px;
    border-radius: 10px;
}

.remove-cursor {
    cursor: default !important;
}

.form-group {
    margin-bottom: 1.35rem;
}

.form-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: #adb1b9;
    margin-bottom: 0.1rem;
}

.required {
    color: #ef4444;
}

.form-input {
    height: 48px !important;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    width: 18rem !important;
}

.detail-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
}

.detail-table th {
    width: 220px;
    text-align: left;
    padding: 10px 12px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    font-weight: 600;
    color: #333;
    vertical-align: top;
}

.detail-table td {
    padding: 10px 12px;
    border: 1px solid #dee2e6;
    word-break: break-all;
    background: #fff;
}

.detail-table tr:nth-child(even) td {
    background: #fdfdfd;
}

.nested-data-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    margin: 0;
}

.nested-data-table th {
    background: #f1f3f5;
    padding: 8px 10px;
    text-align: left;
    border: 1px solid #dee2e6;
    font-weight: 600;
}

.nested-data-table td {
    padding: 8px 10px;
    border: 1px solid #dee2e6;
}

.nested-data-table .value-cell {
    word-break: break-all;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    max-width: 0;
}

.nested-data-table .value-cell a {
    color: #0d6efd;
    text-decoration: underline;
}

@media print {
    .no-print {
        display: none !important;
    }

    .printable {
        position: absolute;
        left: 0;
        top: 0;
        width: 200%;
        background-color: white;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}

.status-tag {
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-block;
    text-align: center;
    min-width: 60px;
}

.status-tag.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-tag.contrast {
    background-color: #3d3d3d;
    color: #ffffff;
    border: 1px solid #202020;
}

.status-tag.danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-tag.unknown {
    background-color: #ececec;
    color: #9a9a9a;
    border: 1px solid #ffffff;
}

#printable-table.print-mode .status-tag {
    font-size: 9px !important;
    padding: 3px 8px !important;
    border-radius: 4px !important;
    min-width: 50px;
}

/* ============================================================
   Login (split-screen branded layout)
   ============================================================ */
.ao-login {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    background: #fff;
}

.ao-login-art {
    position: relative;
    background: radial-gradient(120% 120% at 20% 10%, var(--brand) 0%, var(--brand-deep) 52%, var(--brand-ink) 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 48px;
    padding: 54px 56px;
    overflow: hidden;
    text-align: center;
}

.ao-login-art .ring-deco {
    position: absolute;
    border: 1.5px solid rgba(255, 255, 255, .13);
    border-radius: 50%;
    z-index: 1;
}

.ao-login-art .ring-1 { width: 520px; height: 520px; top: -180px; right: -160px; }
.ao-login-art .ring-2 { width: 380px; height: 380px; bottom: -120px; left: -80px; }
.ao-login-art .ring-3 { width: 220px; height: 220px; top: 50%; left: 12%; }

.ao-login-art .glow {
    position: absolute;
    border-radius: 50%;
    /* Soft halo via a radial gradient instead of `filter: blur(60px)`.
       Safari re-composites a large blur filter on every animation frame and
       janks the whole page; a gradient of the same colour is effectively free
       and looks identical. Sized/offset to match the old blurred footprint. */
    background: radial-gradient(circle,
        rgba(179, 118, 161, .60) 0%,
        rgba(179, 118, 161, .34) 38%,
        rgba(179, 118, 161, 0) 70%);
    opacity: .5;
    width: 440px;
    height: 440px;
    top: calc(12% - 90px);
    left: calc(8% - 90px);
    z-index: 1;
    will-change: opacity;
}

.ao-login-plaque {
    position: relative;
    z-index: 2;
    background: #fff;
    border-radius: 26px;
    padding: 32px 44px;
    box-shadow: 0 34px 80px rgba(40, 6, 34, .32);
}

.ao-login-plaque img {
    width: 220px;
    height: auto;
    display: block;
}

.ao-login-tag {
    position: relative;
    z-index: 2;
    max-width: 440px;
}

.ao-login-tag h1 {
    font-family: var(--serif);
    font-size: 42px;
    line-height: 1.08;
    font-weight: 600;
    margin: 0 0 14px;
    letter-spacing: .3px;
}

.ao-login-tag p {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .82);
    margin: 0;
}

.ao-login-form-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: #fff;
}

.ao-login-form {
    width: 100%;
    max-width: 380px;
}

.ao-login-form .lf-h {
    font-size: 27px;
    font-weight: 700;
    letter-spacing: -.01em;
    margin: 0;
}

.ao-login-form .lf-s {
    color: var(--ink-3);
    margin-top: 7px;
    margin-bottom: 30px;
    font-size: 14px;
}

.ao-inp {
    margin-bottom: 18px;
}

.ao-inp label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 7px;
    color: var(--ink-2);
}

.ao-inp .ibox {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    padding: 0 14px;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}

.ao-inp .ibox:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(138, 11, 113, .10);
}

.ao-inp .ibox .iic {
    color: var(--ink-3);
    flex: none;
    font-size: 16px;
}

.ao-inp input {
    border: 0;
    outline: none;
    font-family: inherit;
    font-size: 15px;
    padding: 13px 0;
    width: 100%;
    background: none;
    color: var(--ink);
}

.ao-inp .eye {
    border: 0;
    background: none;
    color: var(--ink-3);
    padding: 4px;
    display: flex;
    cursor: pointer;
}

.ao-inp .eye:hover {
    color: var(--brand);
}

.ao-btn-block {
    position: relative;
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 15px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    background: var(--brand);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(138, 11, 113, .25);
    transition: background .15s, transform .15s, box-shadow .2s;
}

/* pulsing glow lives on a pseudo so we animate opacity (compositable),
   not box-shadow (a per-frame repaint that janks Safari) */
.ao-btn-block::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 12px 34px rgba(138, 11, 113, .46);
    opacity: 0;
    pointer-events: none;
}

.ao-btn-block:hover {
    background: var(--brand-deep);
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(138, 11, 113, .30);
}

.ao-btn-block:active {
    transform: translateY(1px) scale(.992);
}

.ao-btn-block:disabled {
    opacity: .7;
    cursor: not-allowed;
}

.ao-login-err {
    background: #fbe9e9;
    color: #a52a2a;
    font-size: 13px;
    font-weight: 600;
    padding: 9px 12px;
    border-radius: 10px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.ao-login-ok {
    background: #e6f6ec;
    color: #1f7a48;
    font-size: 13px;
    font-weight: 600;
    padding: 9px 12px;
    border-radius: 10px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.ao-btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    animation: aoSpin .8s linear infinite;
}

.ao-spinner {
    display: inline-block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 3px solid rgba(138, 11, 113, .18);
    border-top-color: var(--brand);
    animation: aoSpin .85s linear infinite;
}

@keyframes aoSpin {
    to { transform: rotate(360deg); }
}

.ao-login-overlay {
    position: fixed;
    inset: 0;
    background: rgba(45, 8, 38, .42);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 80;
    animation: aoFadeIn .18s ease both;
}

.ao-overlay-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px 32px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    min-width: 240px;
}

.ao-overlay-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}

@keyframes aoFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ao-login-foot {
    margin-top: 22px;
    text-align: center;
    color: var(--ink-3);
    font-size: 12.5px;
}

/* auth method tabs */
.ao-auth-tabs {
    display: flex;
    gap: 5px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 24px;
}

.ao-auth-tabs button {
    flex: 1;
    border: 0;
    background: none;
    padding: 10px 8px;
    border-radius: 9px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
    transition: background .15s, color .15s, box-shadow .15s;
    white-space: nowrap;
}

.ao-auth-tabs button i {
    color: var(--ink-3);
    transition: color .15s;
}

.ao-auth-tabs button.on {
    background: #fff;
    color: var(--brand);
    box-shadow: var(--shadow-sm);
}

.ao-auth-tabs button.on i {
    color: var(--brand);
}

/* OTP code input */
.ao-otp {
    display: flex;
    gap: 10px;
    margin: 4px 0 6px;
}

.ao-otp input {
    flex: 1;
    min-width: 0;
    width: 0;
    height: 58px;
    text-align: center;
    font-size: 23px;
    font-weight: 700;
    border: 1.5px solid var(--line);
    border-radius: 13px;
    background: #fff;
    outline: none;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    transition: border-color .15s, box-shadow .15s, transform .12s;
}

.ao-otp input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(138, 11, 113, .10);
}

.ao-otp input.filled {
    border-color: var(--brand-2);
    background: var(--brand-tint);
}

.ao-code-hint {
    font-size: 12px;
    color: var(--ink-3);
    margin: 8px 2px 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ao-code-hint::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-2);
}

.ao-resend-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
    font-size: 13px;
}

.ao-muted-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--ink-3);
    font-weight: 600;
    background: none;
    border: 0;
    padding: 4px 0;
    cursor: pointer;
    transition: color .15s;
    white-space: nowrap;
}

.ao-muted-link:not(:disabled):hover {
    color: var(--brand);
}

.ao-muted-link.active {
    color: var(--brand);
}

.ao-muted-link:disabled {
    color: var(--ink-3);
    cursor: default;
}

@media (max-width: 1100px) {
    .ao-login {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }
    .ao-login-art {
        min-height: 248px;
        padding: 34px 26px;
        gap: 24px;
    }
    .ao-login-plaque {
        padding: 22px 28px;
    }
    .ao-login-plaque img {
        width: 150px;
    }
    .ao-login-tag h1 {
        font-size: 28px;
    }
    .ao-login-form-wrap {
        padding: 32px 24px 30px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .ao-login-art .ring-deco {
        animation: aoFloatRing 15s ease-in-out infinite;
        will-change: transform;
    }
    .ao-login-art .ring-2 {
        animation-duration: 19s;
        animation-direction: reverse;
    }
    .ao-login-art .glow {
        animation: aoGlowPulse 9s ease-in-out infinite;
    }
    .ao-login-plaque img {
        animation: aoFloatY 6s ease-in-out infinite;
        will-change: transform;
    }
    .ao-btn-block::after {
        animation: aoCtaPulse 3s ease-in-out infinite;
        will-change: opacity;
    }
}

@keyframes aoFloatRing {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-16px, 20px); }
}

@keyframes aoGlowPulse {
    0%, 100% { opacity: .34; }
    50% { opacity: .62; }
}

@keyframes aoFloatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

@keyframes aoCtaPulse {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* ============================================================
   Admin shell (sidebar + topbar)
   ============================================================ */
#dashboard {
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
}

#dashboard-container {
    flex: 1;
    display: grid;
    grid-template-columns: 288px 1fr;
    grid-template-rows: minmax(0, 1fr);
    min-height: 0;
    height: calc(100vh - 70px);
}

#dashboard-content {
    flex: 1;
    overflow-y: auto;
    padding: 26px;
    background: var(--bg);
    min-width: 0;
}

/* topbar */
header.ao-topbar {
    height: 70px;
    flex: none;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0 26px;
    z-index: 5;
    position: relative;
}

.ao-topbar .crumbs {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--ink-3);
    font-size: 13px;
    min-width: 0;
}

.ao-topbar .crumbs .crumb {
    white-space: nowrap;
}

.ao-topbar .crumbs .crumb.curr {
    color: var(--ink);
    font-weight: 600;
    font-size: 15px;
}

.ao-topbar .crumbs .sep {
    color: var(--line);
}

.ao-topbar .spacer {
    flex: 1;
}

.ao-searchbox {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 11px;
    padding: 9px 14px;
    width: 300px;
    color: var(--ink-3);
    transition: border-color .15s, background .15s, width .25s cubic-bezier(.2, .8, .2, 1);
}

.ao-searchbox:focus-within {
    border-color: var(--brand-2);
    background: #fff;
    width: 344px;
}

.ao-searchbox input {
    border: 0;
    background: none;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    color: var(--ink);
    width: 100%;
}

.ao-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    border: 1px solid var(--line);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-2);
    position: relative;
    transition: .15s;
    cursor: pointer;
}

.ao-icon-btn:hover {
    border-color: var(--brand-2);
    color: var(--brand);
}

.ao-icon-btn .dot {
    position: absolute;
    top: 9px;
    right: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand);
    border: 2px solid #fff;
}

.ao-userwrap {
    position: relative;
}

.ao-userchip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 6px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    transition: .15s;
    cursor: pointer;
}

.ao-userchip:hover,
.ao-userchip.open {
    border-color: var(--brand-2);
}

.ao-userchip .avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex: none;
}

.ao-userchip .un {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.1;
    white-space: nowrap;
}

.ao-userchip .ur {
    font-size: 11px;
    color: var(--ink-3);
}

.ao-userchip .chev {
    color: var(--ink-3);
    font-size: 12px;
    margin-left: 4px;
}

.ao-usermenu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 260px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    z-index: 60;
    padding: 8px;
    animation: aoMenuIn .16s ease;
}

@keyframes aoMenuIn {
    from { transform: translateY(-7px); opacity: 0; }
    to { transform: none; opacity: 1; }
}

.ao-um-head {
    display: flex;
    gap: 11px;
    align-items: center;
    padding: 8px 9px 11px;
}

.ao-um-head .un {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}

.ao-um-head .em {
    font-size: 12px;
    color: var(--ink-3);
    word-break: break-all;
}

.ao-um-sep {
    height: 1px;
    background: var(--line-2);
    margin: 2px 4px 6px;
}

.ao-um-item {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    border: 0;
    background: none;
    padding: 11px 12px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    text-align: left;
    transition: background .13s;
    white-space: nowrap;
    cursor: pointer;
}

.ao-um-item i {
    color: var(--ink-3);
    flex: none;
    font-size: 14px;
}

.ao-um-item:hover {
    background: var(--brand-tint);
}

.ao-um-item:hover i {
    color: var(--brand);
}

.ao-um-item.danger {
    color: var(--danger);
}

.ao-um-item.danger i {
    color: var(--danger);
}

.ao-um-item.danger:hover {
    background: #fbe9e9;
}

/* sidebar */
aside.ao-side {
    background: linear-gradient(180deg, #fbf7fa 0%, #f4eaf1 100%);
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.ao-side-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 22px 14px;
}

.ao-side-brand img {
    width: 150px;
    height: auto;
    display: block;
}

.ao-side-nav {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 6px 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.ao-side-nav::-webkit-scrollbar {
    width: 8px;
}

.ao-navcard {
    background: var(--card);
    border: 1.5px solid var(--line-2);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    flex: none;
    transition: border-color .15s, box-shadow .18s, transform .15s;
}

.ao-navcard:not(.active-solo):hover {
    box-shadow: 0 9px 22px rgba(138, 11, 113, .10);
}

.ao-navcard.open {
    border-color: var(--brand-2);
    box-shadow: 0 8px 22px rgba(138, 11, 113, .10);
}

.ao-navcard-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    width: 100%;
    background: none;
    border: 0;
    text-align: left;
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}

.ao-navcard-head .ic {
    color: var(--brand);
    display: flex;
    flex: none;
    font-size: 18px;
    transition: transform .25s cubic-bezier(.2, .8, .2, 1);
}

.ao-navcard:hover .ao-navcard-head .ic {
    transform: scale(1.12);
}

.ao-navcard-head .lbl {
    flex: 1;
}

.ao-navcard-head .chev {
    color: var(--brand-2);
    transition: transform .2s;
    flex: none;
    font-size: 12px;
}

.ao-navcard.open .ao-navcard-head .chev {
    transform: rotate(180deg);
}

.ao-navcard-head.solo:hover {
    background: var(--brand-tint);
}

.ao-navcard.active-solo .ao-navcard-head {
    background: var(--brand);
    color: #fff;
}

.ao-navcard.active-solo .ao-navcard-head .ic {
    color: #fff;
}

.ao-subnav {
    padding: 4px 10px 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    animation: aoSubExpand .26s cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes aoSubExpand {
    from { transform: translateY(-7px); opacity: 0; }
    to { transform: none; opacity: 1; }
}

.ao-subitem {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 0;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 14px;
    color: var(--ink-2);
    font-weight: 500;
    transition: background .14s, color .14s, transform .16s, box-shadow .14s;
    cursor: pointer;
}

.ao-subitem .sic {
    color: var(--ink-3);
    display: flex;
    flex: none;
    font-size: 14px;
}

.ao-subitem:hover {
    background: var(--brand-tint);
    transform: translateX(3px);
}

.ao-subitem.active {
    background: var(--brand);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(138, 11, 113, .28);
}

.ao-subitem.active .sic {
    color: #fff;
}

/* mobile sidebar */
.ao-menu-btn {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    border: 1px solid var(--line);
    background: #fff;
    align-items: center;
    justify-content: center;
    color: var(--ink-2);
    cursor: pointer;
}

@media (max-width: 992px) {
    #dashboard-container {
        grid-template-columns: 1fr;
    }
    aside.ao-side {
        position: fixed;
        top: 70px;
        left: 0;
        bottom: 0;
        width: 288px;
        max-width: 88vw;
        z-index: 50;
        transform: translateX(-105%);
        transition: transform .28s cubic-bezier(.2, .8, .2, 1);
        box-shadow: var(--shadow-lg);
    }
    aside.ao-side.active {
        transform: translateX(0);
    }
    .ao-menu-btn {
        display: inline-flex;
    }
    .ao-searchbox {
        display: none;
    }
}

/* ============================================================
   Dashboard
   ============================================================ */
.ao-page-head {
    margin-bottom: 22px;
}

.ao-page-head h1 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -.01em;
    margin: 0;
}

.ao-page-head .sub {
    color: var(--ink-3);
    font-size: 13.5px;
    margin-top: 6px;
}

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

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

@media (max-width: 1200px) {
    .ao-statgrid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .ao-statgrid { grid-template-columns: 1fr; }
}

.ao-stat {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: box-shadow .22s ease;
}

.ao-stat:hover {
    box-shadow: var(--shadow);
}

.ao-stat .si {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    font-size: 18px;
    transition: transform .25s cubic-bezier(.2, .8, .2, 1);
}

.ao-stat:hover .si {
    transform: scale(1.1) rotate(-4deg);
}

.ao-stat .si.brand { background: var(--brand-tint); color: var(--brand); }
.ao-stat .si.teal { background: #e2f7f7; color: #0a7d7d; }
.ao-stat .si.green { background: #e6f6ec; color: var(--ok); }
.ao-stat .si.amber { background: #fdf1dd; color: #9a6610; }

.ao-stat .sv {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1;
}

.ao-stat .sl {
    color: var(--ink-3);
    font-size: 13px;
    margin-top: 6px;
    font-weight: 500;
}

.ao-stat .sd {
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 3px;
}

.ao-stat .sd.up { color: var(--ok); }
.ao-stat .sd.down { color: var(--danger); }

.ao-twocol {
    grid-template-columns: 1.5fr 1fr;
    margin-top: 18px;
}

@media (max-width: 992px) {
    .ao-twocol { grid-template-columns: 1fr; }
}

.ao-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.ao-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line-2);
}

.ao-panel-head h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.ao-panel-body {
    padding: 8px 10px;
}

.ao-link {
    color: var(--brand);
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    transition: color .15s, letter-spacing .15s;
}

.ao-link:hover {
    text-decoration: underline;
    letter-spacing: .2px;
}

.ao-srow {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    transition: background .12s, transform .16s;
}

.ao-srow:hover {
    background: var(--bg);
    transform: translateX(3px);
}

.ao-srow .tt {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    font-size: 13px;
    color: var(--ink-2);
    width: 54px;
    flex: none;
}

.ao-srow .bar {
    width: 4px;
    align-self: stretch;
    border-radius: 4px;
    flex: none;
    background: var(--brand-2);
}

.ao-srow .who {
    font-weight: 600;
    font-size: 14px;
}

.ao-srow .meta {
    color: var(--ink-3);
    font-size: 12.5px;
    margin-top: 1px;
}

.ao-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 999px;
    white-space: nowrap;
    background: var(--brand-tint);
    color: var(--brand);
}

.ao-action {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: background .12s;
}

.ao-action:hover {
    background: var(--brand-tint);
}

.ao-action .ai {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    font-size: 15px;
}

.ao-action .ai.brand { background: var(--brand-tint); color: var(--brand); }
.ao-action .ai.amber { background: #fdf1dd; color: #9a6610; }
.ao-action .ai.teal { background: #e2f7f7; color: #0a7d7d; }

.ao-action .at {
    font-weight: 600;
    font-size: 14px;
}

.ao-action .am {
    color: var(--ink-3);
    font-size: 12.5px;
    margin-top: 2px;
}

.ao-action .chev {
    margin-left: auto;
    color: var(--ink-3);
    font-size: 12px;
    align-self: center;
}

.ao-bars-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
    font-size: 13.5px;
}

.ao-bars-row .nm {
    font-weight: 600;
}

.ao-bars-row .vl {
    font-weight: 700;
    color: var(--ink-2);
}

.ao-bar-track {
    background: var(--bg);
    border-radius: 999px;
    height: 8px;
    margin-bottom: 14px;
    overflow: hidden;
}

.ao-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.ao-bar-fill.hall { background: linear-gradient(90deg, #2323c4, #6f6fd6); }
.ao-bar-fill.french { background: linear-gradient(90deg, #0a7d7d, #4dc9c9); }
.ao-bar-fill.doc { background: linear-gradient(90deg, #1565a8, #6fb8e6); }
.ao-bar-fill.work { background: linear-gradient(90deg, #0d3a5c, #4d7ba0); }

/* ============================================================
   PrimeVue Aura overrides — brand theme
   ============================================================ */

/* Brand primary palette — drives all `primary` severity buttons,
   tags, focus rings, checkbox/select highlights, etc. */
:root {
    --p-primary-50: #fbf2f8;
    --p-primary-100: #f2dceb;
    --p-primary-200: #e2b5d2;
    --p-primary-300: #cf85b3;
    --p-primary-400: #b85593;
    --p-primary-500: #8a0b71;
    --p-primary-600: #7a0a64;
    --p-primary-700: #65094f;
    --p-primary-800: #51073f;
    --p-primary-900: #3d0833;
    --p-primary-950: #2a0524;

    --p-primary-color: #8a0b71;
    --p-primary-contrast-color: #ffffff;
    --p-primary-hover-color: #5e0a4e;
    --p-primary-active-color: #3d0833;

    --p-focus-ring-color: rgba(138, 11, 113, .35);
    --p-focus-ring-width: 3px;
    --p-focus-ring-offset: 1px;
    --p-content-border-radius: 12px;
}

/* ---------- Dialog ---------- */
.p-dialog {
    border-radius: 18px !important;
    box-shadow: var(--shadow-lg) !important;
    overflow: hidden;
    border: 1px solid var(--line) !important;
    font-family: var(--font);
    background: #fff !important;
}

.p-dialog-mask {
    background: rgba(45, 8, 38, .45) !important;
    backdrop-filter: blur(2px);
}

.p-dialog-header {
    padding: 18px 22px 14px !important;
    border-bottom: 1px solid var(--line-2) !important;
    background: linear-gradient(180deg, #fbf7fa 0%, #ffffff 100%) !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.p-dialog-title,
.p-dialog-header-title {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: var(--ink) !important;
    letter-spacing: -.005em;
}

.p-dialog-header-icons {
    display: flex;
    gap: 4px;
}

.p-dialog-close-button,
.p-dialog-header-close,
.p-dialog-header-icon {
    width: 34px !important;
    height: 34px !important;
    border-radius: 10px !important;
    color: var(--ink-3) !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    transition: .15s !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.p-dialog-close-button:hover,
.p-dialog-header-close:hover,
.p-dialog-header-icon:hover {
    background: var(--brand-tint) !important;
    color: var(--brand) !important;
    border-color: var(--brand-tint-2) !important;
}

.p-dialog-content {
    padding: 22px 24px 18px !important;
    color: var(--ink);
    background: #fff !important;
}

.p-dialog-footer {
    padding: 14px 22px 18px !important;
    border-top: 1px solid var(--line-2) !important;
    background: #fbf7fa !important;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* ---------- Button (base + sizes) ---------- */
.p-button {
    border-radius: 11px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    padding: 9px 16px !important;
    gap: 8px !important;
    transition: background .15s, border-color .15s, color .15s, transform .12s, box-shadow .2s !important;
    border-width: 1px !important;
    font-family: var(--font);
    letter-spacing: 0;
}

.p-button:not(:disabled):hover {
    transform: translateY(-1px);
}

.p-button:not(:disabled):active {
    transform: translateY(1px) scale(.992);
}

.p-button:focus-visible {
    box-shadow: 0 0 0 var(--p-focus-ring-width) var(--p-focus-ring-color) !important;
    outline: 0 !important;
}

.p-button-sm,
.p-button.p-button-sm {
    padding: 6px 12px !important;
    font-size: 12.5px !important;
    border-radius: 9px !important;
}

.p-button-lg,
.p-button.p-button-lg {
    padding: 12px 22px !important;
    font-size: 15px !important;
    border-radius: 13px !important;
}

.p-button-icon-only,
.p-button.p-button-icon-only {
    width: 38px;
    height: 38px;
    padding: 0 !important;
}

.p-button .p-button-icon {
    font-size: 14px;
}

/* ---------- Primary (brand magenta) ---------- */
.p-button,
.p-button.p-button-primary {
    background: var(--brand) !important;
    border-color: var(--brand) !important;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(138, 11, 113, .22);
}

.p-button:not(:disabled):hover,
.p-button.p-button-primary:not(:disabled):hover {
    background: var(--brand-deep) !important;
    border-color: var(--brand-deep) !important;
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(138, 11, 113, .30);
}

/* ---------- Info (blue/teal accent) ---------- */
.p-button-info,
.p-button.p-button-info {
    background: #1565a8 !important;
    border-color: #1565a8 !important;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(21, 101, 168, .18);
}

.p-button-info:not(:disabled):hover,
.p-button.p-button-info:not(:disabled):hover {
    background: #0f4d80 !important;
    border-color: #0f4d80 !important;
    color: #fff !important;
}

/* ---------- Success (green) ---------- */
.p-button-success,
.p-button.p-button-success {
    background: var(--ok) !important;
    border-color: var(--ok) !important;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(31, 157, 87, .18);
}

.p-button-success:not(:disabled):hover,
.p-button.p-button-success:not(:disabled):hover {
    background: #186f3f !important;
    border-color: #186f3f !important;
    color: #fff !important;
}

/* ---------- Warning (amber) ---------- */
.p-button-warning,
.p-button.p-button-warning {
    background: var(--warn) !important;
    border-color: var(--warn) !important;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(217, 138, 23, .18);
}

.p-button-warning:not(:disabled):hover,
.p-button.p-button-warning:not(:disabled):hover {
    background: #b87412 !important;
    border-color: #b87412 !important;
    color: #fff !important;
}

/* ---------- Danger / Error (red) ---------- */
.p-button-danger,
.p-button.p-button-danger,
.p-button-error,
.p-button.p-button-error {
    background: var(--danger) !important;
    border-color: var(--danger) !important;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(217, 58, 58, .18);
}

.p-button-danger:not(:disabled):hover,
.p-button.p-button-danger:not(:disabled):hover,
.p-button-error:not(:disabled):hover,
.p-button.p-button-error:not(:disabled):hover {
    background: #b22f2f !important;
    border-color: #b22f2f !important;
    color: #fff !important;
}

/* ---------- Secondary (neutral, white surface) ---------- */
.p-button-secondary,
.p-button.p-button-secondary {
    background: #fff !important;
    border-color: var(--line) !important;
    color: var(--ink-2) !important;
    box-shadow: var(--shadow-sm);
}

.p-button-secondary:not(:disabled):hover,
.p-button.p-button-secondary:not(:disabled):hover {
    background: var(--brand-tint) !important;
    border-color: var(--brand-2) !important;
    color: var(--brand) !important;
}

/* ---------- Outlined ---------- */
.p-button.p-button-outlined {
    background: #fff !important;
    color: var(--brand) !important;
    border-color: var(--brand) !important;
    box-shadow: none !important;
}

.p-button.p-button-outlined:not(:disabled):hover {
    background: var(--brand-tint) !important;
    color: var(--brand-deep) !important;
    border-color: var(--brand-deep) !important;
}

.p-button.p-button-outlined.p-button-info { color: #1565a8 !important; border-color: #1565a8 !important; }
.p-button.p-button-outlined.p-button-info:not(:disabled):hover { background: #e9f4fc !important; color: #0f4d80 !important; }
.p-button.p-button-outlined.p-button-success { color: var(--ok) !important; border-color: var(--ok) !important; }
.p-button.p-button-outlined.p-button-success:not(:disabled):hover { background: #e6f6ec !important; color: #186f3f !important; }
.p-button.p-button-outlined.p-button-warning { color: var(--warn) !important; border-color: var(--warn) !important; }
.p-button.p-button-outlined.p-button-warning:not(:disabled):hover { background: #fdf1dd !important; color: #b87412 !important; }
.p-button.p-button-outlined.p-button-danger { color: var(--danger) !important; border-color: var(--danger) !important; }
.p-button.p-button-outlined.p-button-danger:not(:disabled):hover { background: #fbe9e9 !important; color: #b22f2f !important; }

/* ---------- Text variant ---------- */
.p-button.p-button-text {
    background: transparent !important;
    color: var(--brand) !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.p-button.p-button-text:not(:disabled):hover {
    background: var(--brand-tint) !important;
    color: var(--brand-deep) !important;
}

/* ---------- Disabled ---------- */
.p-button:disabled,
.p-button.p-disabled {
    opacity: .55 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    transform: none !important;
}

/* ---------- Form inputs inside dialogs (use brand focus) ---------- */
.p-dialog-content .p-inputtext,
.p-dialog-content .p-password-input,
.p-dialog-content .p-select,
.p-dialog-content .p-multiselect,
.p-dialog-content .p-datepicker-input,
.p-dialog-content .p-textarea {
    border-radius: 10px !important;
    border-color: var(--line) !important;
    transition: border-color .15s, box-shadow .15s !important;
}

.p-dialog-content .p-inputtext:focus,
.p-dialog-content .p-inputtext:focus-visible,
.p-dialog-content .p-password-input:focus,
.p-dialog-content .p-select:focus-within,
.p-dialog-content .p-multiselect:focus-within,
.p-dialog-content .p-datepicker-input:focus,
.p-dialog-content .p-textarea:focus {
    border-color: var(--brand) !important;
    box-shadow: 0 0 0 4px rgba(138, 11, 113, .10) !important;
}

/* ---------- Tags inside dialogs/tables (still use severity colors but with softer styling) ---------- */
.p-tag {
    border-radius: 999px !important;
    font-weight: 700 !important;
    font-size: 11.5px !important;
    padding: 4px 11px !important;
    letter-spacing: 0;
}

.p-tag-success { background: #e6f6ec !important; color: #186f3f !important; }
.p-tag-info { background: #e9f4fc !important; color: #1565a8 !important; }
.p-tag-warning,
.p-tag-warn { background: #fdf1dd !important; color: #9a6610 !important; }
.p-tag-danger { background: #fbe9e9 !important; color: #a52a2a !important; }
.p-tag-secondary { background: var(--brand-tint) !important; color: var(--brand) !important; }

/* ============================================================
   Shared DataFilters / list page
   ============================================================ */
.ao-filters {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 16px 18px 14px;
    margin: 0 0 16px;
}

.ao-filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px 16px;
}

.ao-filter-cell {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.ao-filter-label {
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--ink-3);
    font-weight: 700;
}

.ao-filter-input {
    width: 100% !important;
}

.ao-filter-input.p-inputtext,
.ao-filter-input .p-inputtext,
.ao-filter-input .p-select-label,
.ao-filter-input .p-datepicker-input {
    border-radius: 10px !important;
    border-color: var(--line) !important;
    transition: border-color .15s, box-shadow .15s !important;
}

.ao-filter-input.p-inputtext:focus,
.ao-filter-input .p-inputtext:focus,
.ao-filter-input.p-select:focus-within,
.ao-filter-input.p-datepicker:focus-within {
    border-color: var(--brand) !important;
    box-shadow: 0 0 0 4px rgba(138, 11, 113, .10) !important;
}

.ao-filters-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    flex-wrap: wrap;
}

/* List page surface — wraps DataTable + Paginator */
.ao-list-page {
    padding: 22px 26px;
}

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

.ao-list-head h1 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.ao-list-head .sub {
    color: var(--ink-3);
    font-size: 13px;
    margin-top: 4px;
}

.ao-list-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

/*
 * Report tab pills. These started life scoped inside ZaReport.vue, and every screen that
 * copied the markup without the styles rendered them as bare buttons with no active state —
 * ReportBookingStates and ReportMilestones both did. Defining them here once fixes those and
 * keeps every report family looking the same. Screens that still carry their own scoped copy
 * override this by specificity with identical values, so nothing there moves.
 */
.zr-tabs {
    display: flex;
    gap: 8px;
    margin: 16px 0 12px;
    flex-wrap: wrap;
}

.zr-tab {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 16px;
    font-size: 13px;
    color: var(--ink-2);
    cursor: pointer;
    transition: background .12s, border-color .12s, color .12s;
}

.zr-tab:hover {
    border-color: var(--brand-2);
    color: var(--brand-ink);
}

.zr-tab.on {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    font-weight: 600;
}

.ao-table-wrap {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.ao-table-wrap .p-datatable {
    border: 0 !important;
}

.ao-table-wrap .p-datatable .p-datatable-thead > tr > th {
    background: #fbf8fb !important;
    color: var(--ink-3) !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom: 1px solid var(--line) !important;
    padding: 13px 16px !important;
}

.ao-table-wrap .p-datatable .p-datatable-tbody > tr {
    transition: background .12s;
}

.ao-table-wrap .p-datatable .p-datatable-tbody > tr:hover {
    background: var(--brand-tint) !important;
}

.ao-table-wrap .p-datatable .p-datatable-tbody > tr > td {
    border-bottom: 1px solid var(--line-2) !important;
    padding: 12px 16px !important;
}

.ao-table-wrap .p-paginator {
    background: #fbf8fb !important;
    border-top: 1px solid var(--line-2) !important;
    border-radius: 0 !important;
    padding: 10px 14px !important;
}

.ao-table-wrap .p-paginator .p-paginator-page.p-paginator-page-selected {
    background: var(--brand) !important;
    color: #fff !important;
    border-color: var(--brand) !important;
}

.ao-empty-state {
    padding: 36px;
    text-align: center;
    color: var(--ink-3);
    font-size: 13.5px;
}

/* ---------- Dialog entrance animation ---------- */
.p-dialog-enter-active,
.p-dialog-leave-active {
    transition: transform .25s cubic-bezier(.2, .8, .2, 1), opacity .2s ease !important;
}

.p-dialog-enter-from {
    transform: translateY(12px) scale(.97);
    opacity: 0;
}

.p-dialog-leave-to {
    transform: translateY(8px) scale(.98);
    opacity: 0;
}

/* ============================================================
   Segmented control (two/three-way switch)
   ============================================================ */
.ao-seg {
    display: flex;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 11px;
    padding: 3px;
    gap: 2px;
}

.ao-seg button {
    border: 0;
    background: none;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-2);
    cursor: pointer;
    font-family: inherit;
    transition: background .15s, color .15s, box-shadow .15s;
}

.ao-seg button.on {
    background: #fff;
    color: var(--brand);
    box-shadow: var(--shadow-sm);
}

/* ============================================================
   Status pills (booking lifecycle)
   ============================================================ */
.ao-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 11px;
    border-radius: 999px;
    white-space: nowrap;
}

.ao-pill .pd {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.ao-pill.confirmed { background: #e6f6ec; color: #1f7a48; }
.ao-pill.confirmed .pd { background: #1f7a48; }
.ao-pill.pending   { background: #fdf1dd; color: #9a6610; }
.ao-pill.pending .pd   { background: #9a6610; }
.ao-pill.deposit   { background: #eae6fb; color: #5b3fd0; }
.ao-pill.deposit .pd   { background: #5b3fd0; }
.ao-pill.cancelled { background: #fbe6e6; color: #a52a2a; }
.ao-pill.cancelled .pd { background: #a52a2a; }

.ao-chiptype {
    font-weight: 700;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 8px;
    color: #fff;
    white-space: nowrap;
}

.ao-chiptype.hall   { background: var(--ev-hall); }
.ao-chiptype.french { background: var(--ev-french); color: #063a3a; }
.ao-chiptype.doc    { background: var(--ev-doc); color: #0c3a55; }
.ao-chiptype.work   { background: var(--ev-work); }
.ao-chiptype.note   { background: var(--ev-note); }

/* ============================================================
   Drawer (slide-out detail panel)
   ============================================================ */
.ao-scrim {
    position: fixed;
    inset: 0;
    background: rgba(45, 8, 38, .42);
    backdrop-filter: blur(2px);
    z-index: 40;
    opacity: 0;
    transition: opacity .22s ease;
}

.ao-scrim.open {
    opacity: 1;
}

.ao-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 460px;
    max-width: 92vw;
    background: #fff;
    z-index: 50;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}

.ao-drawer.open {
    transform: translateX(0);
}

.ao-drawer-head {
    padding: 22px 24px;
    border-bottom: 1px solid var(--line-2);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.ao-drawer-body {
    padding: 22px 24px;
    overflow-y: auto;
    flex: 1;
}

.ao-drawer-foot {
    padding: 16px 24px;
    border-top: 1px solid var(--line-2);
    display: flex;
    gap: 10px;
}

.ao-field {
    margin-bottom: 18px;
}

.ao-field .fl {
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--ink-3);
    font-weight: 700;
    margin-bottom: 5px;
}

.ao-field .fv {
    font-size: 15px;
    font-weight: 600;
}

.ao-kv {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.ao-timeline {
    position: relative;
    padding-left: 24px;
    margin-top: 8px;
}

.ao-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: var(--line);
}

.ao-tl {
    position: relative;
    padding: 0 0 18px;
}

.ao-tl::before {
    content: '';
    position: absolute;
    left: -21px;
    top: 4px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--brand-2);
}

.ao-tl.done::before {
    background: var(--brand);
    border-color: var(--brand);
}

.ao-tl .tlt {
    font-weight: 600;
    font-size: 14px;
}

.ao-tl .tld {
    color: var(--ink-3);
    font-size: 12px;
    margin-top: 1px;
}

/* ============================================================
   Brand button helpers (consistent with design)
   ============================================================ */
.ao-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 11px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: background .15s, border-color .15s, color .15s, transform .12s, box-shadow .2s;
    white-space: nowrap;
    cursor: pointer;
    font-family: inherit;
}

.ao-btn:active {
    transform: translateY(1px) scale(.992);
}

.ao-btn-primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 8px 20px rgba(138, 11, 113, .25);
}

.ao-btn-primary:hover {
    background: var(--brand-deep);
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(138, 11, 113, .30);
    color: #fff;
}

.ao-btn-ghost {
    background: #fff;
    border-color: var(--line);
    color: var(--ink-2);
}

.ao-btn-ghost:hover {
    border-color: var(--brand-2);
    color: var(--brand);
}

.ao-btn-ghost.on {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

.ao-icon-btn-ghost {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .15s;
}

.ao-icon-btn-ghost:hover {
    border-color: var(--brand-2);
    color: var(--brand);
}

.ao-icon-btn-ghost:active {
    transform: scale(.93);
}

/* ============================================================
   Motion (entrances + idle pulses) — respects reduced-motion
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
    .cal-daynum.today .n {
        animation: aoTodayPulse 2.4s ease-in-out infinite;
    }
}

@keyframes aoTodayPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(138, 11, 113, .5); }
    70% { box-shadow: 0 0 0 9px rgba(138, 11, 113, 0); }
}

.ao-fade-in {
    animation: aoFadeRise .4s ease both;
}

@keyframes aoFadeRise {
    from { transform: translateY(10px); opacity: 0; }
    to { transform: none; opacity: 1; }
}

/* ============================================================
   PrimeVue Dialog → side drawer styling
   Apply `class="ao-dialog-drawer"` and `position="right"` to a
   Dialog to make it slide from the right as a full-height panel.
   ============================================================ */
.p-dialog.ao-dialog-drawer {
    border-radius: 0 !important;
    max-width: 92vw !important;
    height: 100vh !important;
    margin: 0 !important;
    box-shadow: -24px 0 60px rgba(45, 8, 38, .18) !important;
    border-right: 0 !important;
    border-top: 0 !important;
    border-bottom: 0 !important;
}

.p-dialog.ao-dialog-drawer .p-dialog-header {
    border-radius: 0 !important;
    padding: 22px 24px !important;
    background: linear-gradient(180deg, #fbf7fa 0%, #ffffff 100%) !important;
    border-bottom: 1px solid var(--line-2) !important;
}

.p-dialog.ao-dialog-drawer .p-dialog-content {
    padding: 22px 24px !important;
    background: #fff !important;
    flex: 1 1 auto;
    overflow-y: auto;
}

.p-dialog.ao-dialog-drawer .p-dialog-footer {
    border-radius: 0 !important;
    border-top: 1px solid var(--line-2) !important;
    background: #fbf7fa !important;
}

@media (prefers-reduced-motion: no-preference) {
    .p-dialog.ao-dialog-drawer.p-dialog-enter-active,
    .p-dialog.ao-dialog-drawer.p-dialog-leave-active {
        transition: transform .3s cubic-bezier(.2, .8, .2, 1) !important;
    }
    .p-dialog.ao-dialog-drawer.p-dialog-enter-from {
        transform: translateX(100%) !important;
        opacity: 1 !important;
    }
    .p-dialog.ao-dialog-drawer.p-dialog-leave-to {
        transform: translateX(100%) !important;
        opacity: 1 !important;
    }
}

/* ============================================================
   Custom cursor (ported from Anoath-Design/cursor.jsx)
   ============================================================ */
.cursor-layer {
    position: fixed;
    inset: 0;
    z-index: 9000;
    pointer-events: none;
    opacity: 0;
    transition: opacity .25s;
}
.cursor-layer.on { opacity: 1; }

.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand);
    will-change: transform;
    transition: width .18s, height .18s, background .18s, opacity .18s;
}
.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid var(--brand);
    opacity: .55;
    will-change: transform;
    transition: width .2s cubic-bezier(.2, .8, .2, 1),
                height .2s cubic-bezier(.2, .8, .2, 1),
                opacity .2s, border-color .2s, background .2s;
}

/* hovering an interactive element */
.cursor-layer.hot .cursor-ring {
    width: 52px;
    height: 52px;
    opacity: .9;
    background: rgba(138, 11, 113, .08);
    border-color: var(--brand);
}
.cursor-layer.hot .cursor-dot {
    width: 5px;
    height: 5px;
    opacity: .6;
}

/* hovering a text field */
.cursor-layer.text .cursor-ring {
    width: 3px;
    height: 26px;
    border-radius: 3px;
    opacity: .8;
}
.cursor-layer.text .cursor-dot { opacity: 0; }

/* pressing */
.cursor-layer.press .cursor-ring {
    width: 26px;
    height: 26px;
    opacity: 1;
}
.cursor-layer.hot.press .cursor-ring {
    width: 42px;
    height: 42px;
}
.cursor-layer.press .cursor-dot {
    width: 10px;
    height: 10px;
}

.cursor-ripple {
    position: fixed;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--brand);
    transform: translate(-50%, -50%);
    animation: cursorRipple .6s cubic-bezier(.2, .7, .3, 1) forwards;
}
.cursor-ripple.inv { border-color: #fff; }

@keyframes cursorRipple {
    0%   { width: 12px; height: 12px; opacity: .7; }
    100% { width: 64px; height: 64px; opacity: 0; }
}

/* invert over large brand-colored regions */
.cursor-layer.invert .cursor-dot { background: #fff; }
.cursor-layer.invert .cursor-ring { border-color: #fff; opacity: .85; }
.cursor-layer.invert.hot .cursor-ring {
    background: rgba(255, 255, 255, .16);
    border-color: #fff;
}
.cursor-layer.invert.text .cursor-ring { border-color: #fff; }

/* The native cursor stays visible and leads with zero latency; the ring + dot
   trail behind it as decoration. Keeping the OS cursor is what makes this feel
   smooth in Safari (same approach as the daydayhelp / plantoo_tech cursors). */

/* ── Z Account · shared list furniture ──────────────────────────────────────
   The seven accounting screens share a look: a note strip explaining what the
   table is, a row of figure tiles, and a plain grouped table where a DataTable
   would fight the grouping. Defined once here rather than in each SFC. */
.ao-note {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    background: #fffdf5;
    border: 1px solid #f0d18a;
    border-radius: 12px;
    padding: 11px 14px;
    margin-bottom: 14px;
    font-size: 12.5px;
    line-height: 1.5;
    color: #6b4a00;
}
.ao-note i { color: #b07d00; margin-top: 1px; }
.ao-note code, .ao-list-head code {
    background: #f2eef2;
    border-radius: 4px;
    padding: 1px 5px;
    font-size: 12.5px;
}

.za-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.za-stat {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 16px;
    min-width: 140px;
    text-align: left;
    transition: all .12s;
}
.za-stat .n { font-size: 18px; font-weight: 700; color: #3a333a; font-variant-numeric: tabular-nums; }
.za-stat .l { font-size: 11.5px; color: var(--ink-3); }
button.za-stat { cursor: pointer; }
button.za-stat:hover { border-color: var(--brand); }
.za-stat.on { background: var(--brand); border-color: var(--brand); }
.za-stat.on .n, .za-stat.on .l { color: #fff; }
.za-stat.good { border-color: #bfe4cd; background: #f2fbf5; }
.za-stat.good .n { color: #186f3f; }
.za-stat.bad { border-color: #f0c9c9; background: #fdf4f4; }
.za-stat.bad .n { color: #a52a2a; }

.za-panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 14px; overflow: hidden; }
.za-panel-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 11px 16px;
    border-bottom: 1px solid var(--line-2);
    background: #faf8fa;
}
.za-panel-name { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--brand); font-weight: 700; }
.za-panel-meta { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.za-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.za-table th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #8a818a;
    font-weight: 700;
    padding: 8px 16px;
    text-align: right;
    border-bottom: 1px solid var(--line-2);
}
.za-table th.l, .za-table td.l { text-align: left; }
.za-table td {
    padding: 7px 16px;
    text-align: right;
    font-variant-numeric: tabular-nums;
    border-bottom: 1px solid #f4f1f4;
    color: #3a333a;
}
.za-table tbody tr:last-child td { border-bottom: 0; }
.za-table td.b { font-weight: 700; }
.za-table .za-empty { color: var(--ink-3); font-size: 12.5px; text-align: center; padding: 14px; }

.za-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.za-fig { font-variant-numeric: tabular-nums; font-size: 13px; }
.za-name { font-weight: 600; }
.za-sub { color: var(--ink-3); font-size: 11.5px; }
.za-tag {
    display: inline-block;
    font-size: 10.5px;
    border-radius: 5px;
    padding: 1px 6px;
    margin-left: 6px;
    background: #f2eef2;
    color: #6b5f6b;
}
.za-tag.warn { background: #fdf3e0; color: #9a6610; }
.za-tag.ok { background: #e6f6ec; color: #186f3f; }
.za-tag.bad { background: #fbe9e9; color: #8b2b2b; }

/* --------------------------------------------------------------------------
   Accounting screens (phase C, C4) — shared by ZaBankRecon, ZaLedger and
   ZaPettyCash. Promoted out of ZaBankRecon's scoped block on 2026-08-20 when a
   second screen needed them; a scoped copy would have drifted.
   -------------------------------------------------------------------------- */
.bk-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px;
    padding: 10px 14px; background: var(--brand-tint); border: 1px solid var(--brand-tint-2); border-radius: 12px; }
.bk-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--brand); }
.bk-sep { color: var(--ink-3); font-size: 12px; }
.bk-summary { display: flex; gap: 18px; flex-wrap: wrap; padding: 8px 10px; margin-bottom: 12px;
    background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 6px; font-size: 13px; }
.bk-list td { padding: 5px 8px; border-bottom: 1px solid #f1f5f9; font-size: 13px; }
.bk-list th.r, .bk-list td.r { text-align: right; }
.bk-list tr.picked { background: #fdf4f8; }
.bk-mono { font-variant-numeric: tabular-nums; }
.bk-dim { color: #9ca3af; }
.bk-ok { color: #15803d; }
.bk-neg { color: #b5311f; }
.bk-clip { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-empty { color: #9ca3af; padding: 16px; text-align: center; }
.bk-catbar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; margin-bottom: 10px;
    border: 1px solid #bfdbfe; background: #eff6ff; border-radius: 6px; font-size: 13px; }
.bk-warn { display: inline-block; margin-left: 6px; width: 16px; height: 16px; line-height: 16px;
    text-align: center; border-radius: 50%; background: #fef3c7; color: #92400e; font-weight: 700;
    font-size: 11px; cursor: help; }
.bk-kind { display: inline-block; padding: 0 7px; border-radius: 999px; font-size: 10.5px; font-weight: 700; }
.bk-kind.deposit { background: #dcfce7; color: #166534; }
.bk-kind.withdrawal { background: #fee2e2; color: #991b1b; }
.bk-row-actions { display: flex; gap: 2px; align-items: center; }
.bk-hint { font-size: 11.5px; color: #6b7280; margin-bottom: 10px; }
.bk-depline { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
