:root {
    --dn-ink: #182432;
    --dn-muted: #607182;
    --dn-line: rgba(24, 36, 50, 0.09);
    --dn-cream: #f6efe3;
    --dn-sand: #edd8ab;
    --dn-gold: #be8933;
    --dn-teal: #0f6b6f;
    --dn-emerald: #0f766e;
    --dn-rose: #be3455;
    --dn-panel: rgba(255, 255, 255, 0.82);
    --dn-shadow: 0 24px 80px rgba(15, 23, 42, 0.08);
    --dn-radius-xl: 28px;
    --dn-radius-lg: 22px;
}

.dn-report-pdf-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.5rem;
    border: 1px solid #92400e;
    border-radius: 0.5rem;
    background: #b45309;
    color: #ffffff !important;
    padding: 0.625rem 0.95rem;
    font-size: 0.875rem;
    font-weight: 800;
    line-height: 1.2;
    box-shadow: 0 8px 18px rgba(146, 64, 14, 0.22);
    text-decoration: none !important;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.dn-report-pdf-button:hover {
    border-color: #78350f;
    background: #92400e;
    color: #ffffff !important;
    box-shadow: 0 10px 22px rgba(120, 53, 15, 0.28);
    transform: translateY(-1px);
}

.dn-report-pdf-button:focus-visible {
    outline: 3px solid rgba(245, 158, 11, 0.45);
    outline-offset: 3px;
}

.dark .dn-report-pdf-button {
    border-color: #fbbf24;
    background: #f59e0b;
    color: #111827 !important;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.2);
}

.dark .dn-report-pdf-button:hover {
    border-color: #fde68a;
    background: #fbbf24;
    color: #111827 !important;
}

body {
    background:
        radial-gradient(circle at top left, rgba(190, 137, 51, 0.14), transparent 28%),
        radial-gradient(circle at top right, rgba(15, 107, 111, 0.14), transparent 24%),
        linear-gradient(180deg, #fcfaf6 0%, #f6f3ee 100%);
}

.fi-main,
.fi-simple-main {
    color: var(--dn-ink);
}

.fi-topbar {
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.78);
    border-bottom: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.04);
}

.fi-sidebar {
    background:
        radial-gradient(circle at top, rgba(190, 137, 51, 0.16), transparent 28%),
        linear-gradient(180deg, #183242 0%, #102734 100%);
    color: #edf5fb;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.fi-sidebar,
.fi-sidebar *,
.fi-sidebar-header,
.fi-sidebar-header *,
.fi-sidebar-nav,
.fi-sidebar-nav *,
.fi-sidebar-footer,
.fi-sidebar-footer *,
.fi-page-sub-navigation-sidebar,
.fi-page-sub-navigation-sidebar * {
    color: #edf5fb !important;
}

.fi-sidebar svg,
.fi-sidebar svg *,
.fi-page-sub-navigation-sidebar svg,
.fi-page-sub-navigation-sidebar svg * {
    color: #edf5fb !important;
    stroke: currentColor !important;
}

.fi-sidebar [class*="text-gray-"],
.fi-sidebar [class*="text-slate-"],
.fi-sidebar [class*="text-zinc-"],
.fi-sidebar [class*="text-custom-"],
.fi-page-sub-navigation-sidebar [class*="text-gray-"],
.fi-page-sub-navigation-sidebar [class*="text-slate-"],
.fi-page-sub-navigation-sidebar [class*="text-zinc-"],
.fi-page-sub-navigation-sidebar [class*="text-custom-"] {
    color: #edf5fb !important;
}

.fi-sidebar [class*="opacity-"],
.fi-page-sub-navigation-sidebar [class*="opacity-"] {
    opacity: 1 !important;
}

.fi-sidebar-group-label,
.fi-page-sub-navigation-sidebar-item-label,
.fi-sidebar-item-label {
    opacity: 0.96;
}

.fi-sidebar-header {
    background: transparent;
}

.fi-sidebar .fi-logo {
    border-radius: 18px;
    padding: 0.35rem 0.55rem;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.fi-sidebar .fi-logo img,
.dn-sidebar-footer__brand img,
.dn-command-deck__brand-panel img {
    filter:
        drop-shadow(0 0 1px rgba(255, 255, 255, 0.95))
        drop-shadow(0 0 10px rgba(255, 255, 255, 0.12));
}

.fi-sidebar-nav,
.fi-ta,
.fi-section,
.fi-wi-widget,
.fi-dashboard-widget,
.fi-in-page-widget,
.fi-modal-window,
.fi-dropdown-panel,
.fi-input-wrp,
.fi-fo-field-wrp {
    border-radius: var(--dn-radius-lg);
}

.fi-section,
.fi-wi-widget,
.fi-ta,
.fi-modal-window,
.fi-dropdown-panel {
    background: var(--dn-panel);
    border: 1px solid var(--dn-line);
    box-shadow: var(--dn-shadow);
}

.fi-section-header-heading,
.fi-wi-widget-header-heading,
.fi-ta-header-heading,
.fi-header-heading,
.fi-page-sub-navigation-sidebar-item-label,
.fi-sidebar-item-label {
    letter-spacing: -0.02em;
}

.fi-header-heading {
    color: var(--dn-ink) !important;
}

.fi-wi-stats-overview-stat,
.fi-ta-table tbody tr,
.fi-section-content,
.fi-input-wrp {
    border-color: var(--dn-line);
}

.fi-btn {
    border-radius: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.fi-btn-color-primary {
    box-shadow: 0 10px 22px rgba(190, 137, 51, 0.22);
}

.fi-input-wrp,
.fi-select-input,
.fi-input,
.fi-fo-text-input {
    background: rgba(255, 255, 255, 0.78);
}

.fi-select-input {
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    background-size: 1.5rem !important;
    padding-right: 3rem !important;
}

.fi-sidebar-item-button,
.fi-page-sub-navigation-sidebar-item-button {
    border-radius: 18px;
}

.fi-sidebar-item.fi-active .fi-sidebar-item-button,
.fi-page-sub-navigation-sidebar-item.fi-active .fi-page-sub-navigation-sidebar-item-button {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.fi-sidebar-item-button:hover,
.fi-page-sub-navigation-sidebar-item-button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff !important;
}

html,
body,
.fi-layout,
.fi-main,
.fi-main-ctn,
.fi-page,
.fi-page > *,
.fi-section,
.fi-ta,
.fi-ta-ctn,
.fi-ta-content,
.fi-modal-window {
    max-width: 100%;
}

body,
.fi-layout,
.fi-main,
.fi-page {
    overflow-x: hidden;
}

.fi-page,
.fi-main,
.fi-section,
.fi-ta,
.fi-ta-content,
.fi-ta-table-ctn,
.fi-ta-record,
.fi-ta-col-wrp,
.fi-ta-text,
.fi-ta-text-item,
.fi-ta-text-item-label {
    min-width: 0;
}

.fi-ta-content,
.fi-ta-table-ctn,
.fi-page .overflow-x-auto {
    max-width: 100%;
    overflow-x: hidden !important;
}

.fi-ta-table,
.fi-page .overflow-x-auto > table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed;
}

.fi-ta-table th,
.fi-ta-table td,
.fi-page .overflow-x-auto > table th,
.fi-page .overflow-x-auto > table td {
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: normal;
}

.fi-ta-header-toolbar,
.fi-ta-toolbar,
.fi-ta-actions,
.fi-ac,
.fi-btn-group,
.fi-page .flex {
    max-width: 100%;
}

.fi-ta-header-toolbar,
.fi-ta-toolbar,
.fi-ta-actions,
.fi-ac,
.fi-btn-group {
    flex-wrap: wrap;
}

.dn-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    gap: 0.75rem;
}

.dn-detail-item {
    min-width: 0;
}

.dn-detail-label {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

.dn-detail-value {
    margin-top: 0.18rem;
    min-width: 0;
    color: #0f172a;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.dn-report-list {
    display: grid;
    gap: 0.75rem;
}

.dn-report-row {
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 14px;
    background: #fff;
}

.dn-report-row > summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.9rem;
    align-items: start;
    padding: 0.9rem 1rem;
    cursor: pointer;
    list-style: none;
}

.dn-report-row > summary::-webkit-details-marker {
    display: none;
}

.dn-report-row[open] > summary {
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.dn-report-row__title {
    min-width: 0;
    color: #0f172a;
    font-weight: 900;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.dn-report-row__meta {
    margin-top: 0.28rem;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1.35;
}

.dn-report-row__amount {
    color: #0f172a;
    font-weight: 900;
    text-align: right;
    white-space: nowrap;
}

.dn-report-row__body {
    padding: 0.9rem 1rem 1rem;
}

.dn-responsive-cards tbody td[data-label]::before,
.fi-ta-table tbody td[data-label]::before,
.fi-page .overflow-x-auto > table tbody td[data-label]::before {
    display: none;
}

.dn-occ-room-list {
    display: grid;
    gap: 0.85rem;
}

.dn-occ-room {
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 14px;
    background: #fff;
}

.dn-occ-room > summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    cursor: pointer;
    list-style: none;
}

.dn-occ-room > summary::-webkit-details-marker {
    display: none;
}

.dn-occ-room[open] > summary {
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.dn-occ-room__title {
    min-width: 0;
    color: #0f172a;
    font-weight: 900;
}

.dn-occ-room__meta {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
}

.dn-occ-days {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(6.8rem, 1fr));
    gap: 0.5rem;
    padding: 0.85rem 1rem 1rem;
}

.dn-occ-day {
    min-height: 4.25rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 12px;
    background: #f8fafc;
    padding: 0.55rem;
    text-align: left;
}

.dn-occ-day:hover {
    border-color: rgba(190, 137, 51, 0.55);
    background: #fff7ed;
}

.dn-occ-day__date {
    color: #334155;
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1.2;
}

.dn-occ-day__state {
    margin-top: 0.45rem;
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 750;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.dn-occ-day--available {
    background: #f8fafc;
}

.dn-occ-day--confirmed {
    border-color: rgba(59, 130, 246, 0.4);
    background: #eff6ff;
}

.dn-occ-day--checked-in {
    border-color: rgba(13, 148, 136, 0.42);
    background: #ecfdf5;
}

.dn-occ-day--pending-payment {
    border-color: rgba(234, 179, 8, 0.48);
    background: #fefce8;
}

.dn-occ-day--maintenance {
    border-color: rgba(148, 163, 184, 0.6);
    background: #f1f5f9;
}

.fi-simple-layout {
    background:
        radial-gradient(circle at 18% 12%, rgba(15, 107, 111, 0.35), transparent 42%),
        radial-gradient(circle at 88% 88%, rgba(190, 137, 51, 0.28), transparent 44%),
        linear-gradient(155deg, #0f3035 0%, #123c41 48%, #0c2529 100%);
}

.fi-simple-main-ctn {
    max-width: 27rem;
}

.fi-simple-main {
    position: relative;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 26px;
    box-shadow: 0 40px 110px rgba(4, 20, 22, 0.5), 0 8px 24px rgba(4, 20, 22, 0.28);
    overflow: hidden;
    padding-top: 2.4rem;
}

/* gold → teal accent bar at the top of the login card */
.fi-simple-main::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #be8933, #0f6b6f);
}

/* logo — centered + framed */
.fi-simple-header .fi-logo,
.fi-simple-main .fi-logo {
    margin-left: auto;
    margin-right: auto;
    height: 3.4rem !important;
    filter: drop-shadow(0 6px 14px rgba(15, 107, 111, 0.18));
}

.fi-simple-header-heading {
    color: #0f6b6f;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.fi-simple-header-subheading {
    color: #6b7280;
}

/* compact login card on phones (was too tall) */
@media (max-width: 640px) {
    .fi-simple-main {
        padding-top: 1.7rem !important;
        padding-bottom: 1.7rem !important;
        padding-left: 1.4rem !important;
        padding-right: 1.4rem !important;
        border-radius: 20px;
        margin-top: 2rem !important;
        margin-bottom: 2rem !important;
    }
    .fi-simple-header .fi-logo,
    .fi-simple-main .fi-logo {
        height: 2.8rem !important;
    }
    .fi-simple-header-heading {
        font-size: 1.3rem;
    }
    .fi-simple-header-subheading {
        font-size: 0.8rem;
        margin-top: 0.35rem;
    }
}

.dn-topbar-ribbon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 0;
    color: var(--dn-ink);
}

.dn-sidebar-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.3rem;
    padding: 0.54rem 0.8rem;
    border: 1px solid rgba(24, 36, 50, 0.12);
    border-radius: 999px;
    background: #173140;
    color: #fff;
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 850;
    line-height: 1;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
    transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.dn-sidebar-toggle:hover,
.dn-sidebar-toggle:focus-visible {
    background: var(--dn-teal);
    border-color: rgba(15, 107, 111, 0.34);
    box-shadow: 0 12px 24px rgba(15, 107, 111, 0.18);
    transform: translateY(-1px);
}

.dn-sidebar-toggle:focus-visible {
    outline: 3px solid rgba(190, 137, 51, 0.42);
    outline-offset: 3px;
}

.dn-sidebar-toggle__icon {
    width: 1rem;
    height: 1rem;
}

.dn-topbar-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.3rem;
    padding: 0.56rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(190, 137, 51, 0.18);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.14em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.dn-topbar-pill--brand {
    background: linear-gradient(135deg, #fff8eb, #ffffff);
    color: var(--dn-gold);
}

.dn-topbar-pill--panel {
    border-color: rgba(15, 107, 111, 0.16);
    color: var(--dn-muted);
}

.dn-topbar-pill--training {
    border-color: rgba(190, 52, 85, 0.28);
    background: #fff1f4;
    color: var(--dn-rose);
}

.dn-topbar-pos-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    padding: 0.25rem;
    border: 1px solid rgba(24, 36, 50, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
}

.dn-topbar-pos-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.48rem 0.72rem;
    border-radius: 999px;
    color: var(--dn-ink);
    font-size: 0.7rem;
    font-weight: 850;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.dn-topbar-pos-link:hover,
.dn-topbar-pos-link:focus-visible {
    background: #173140;
    color: #fff;
    transform: translateY(-1px);
}

.dn-topbar-ribbon__copy {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.dn-topbar-ribbon__eyebrow,
.dn-topbar-ribbon__label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.dn-topbar-ribbon__eyebrow {
    color: var(--dn-gold);
}

.dn-topbar-ribbon__label {
    color: var(--dn-muted);
}

.dn-topbar-ribbon__divider {
    width: 1px;
    height: 1rem;
    background: rgba(24, 36, 50, 0.12);
}

.dn-topbar-logout-form {
    margin: 0;
}

.dn-topbar-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.3rem;
    padding: 0.56rem 0.95rem;
    border: 0;
    border-radius: 999px;
    background: #be3455;
    color: #fff;
    cursor: pointer;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 10px 22px rgba(190, 52, 85, 0.18);
    transition: background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.dn-topbar-logout:hover,
.dn-topbar-logout:focus-visible {
    background: #173140;
    box-shadow: 0 12px 24px rgba(23, 49, 64, 0.2);
    transform: translateY(-1px);
}

.dn-sidebar-footer {
    margin: 1rem;
    padding: 1rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.dn-sidebar-footer__brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.dn-sidebar-footer__brand img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0;
    padding: 0;
}

.dn-sidebar-footer__title {
    font-size: 0.9rem;
    font-weight: 800;
    color: #fff;
}

.dn-sidebar-footer__text,
.dn-sidebar-footer__meta-label {
    font-size: 0.72rem;
    line-height: 1.45;
    color: rgba(237, 245, 251, 0.72);
}

.dn-sidebar-footer__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dn-sidebar-footer__meta strong {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: #fff;
}

.dn-command-deck {
    display: grid;
    gap: 1.25rem;
}

.dn-command-deck__hero {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
    padding: 1.75rem;
    border-radius: 32px;
    border: 1px solid rgba(190, 137, 51, 0.16);
    background:
        radial-gradient(circle at top right, rgba(190, 137, 51, 0.2), transparent 32%),
        radial-gradient(circle at bottom left, rgba(15, 107, 111, 0.12), transparent 28%),
        linear-gradient(135deg, #fff8eb 0%, #ffffff 56%, #f6efe3 100%);
    box-shadow: var(--dn-shadow);
}

.dn-command-deck__eyebrow {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--dn-gold);
}

.dn-command-deck__hero h1 {
    margin: 0.55rem 0 0;
    font-size: clamp(1.9rem, 3vw, 2.8rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
    color: var(--dn-ink);
    font-weight: 900;
    max-width: 12ch;
}

.dn-command-deck__hero p {
    margin: 1rem 0 0;
    max-width: 46ch;
    color: var(--dn-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

.dn-command-deck__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.2rem;
}

.dn-command-deck__chips span {
    padding: 0.7rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(24, 36, 50, 0.08);
    color: var(--dn-ink);
    font-size: 0.8rem;
    font-weight: 700;
}

.dn-command-deck__brand-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 28px;
    background: linear-gradient(180deg, #173140 0%, #0f2330 100%);
    color: #edf5fb;
    min-height: 100%;
}

.dn-command-deck__brand-panel img {
    width: 112px;
    height: auto;
    object-fit: contain;
    border-radius: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.dn-command-deck__brand-title {
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #d3b177;
    font-weight: 800;
}

.dn-command-deck__brand-text {
    margin-top: 0.65rem;
    font-size: 0.88rem;
    line-height: 1.55;
    color: rgba(237, 245, 251, 0.78);
}

.dn-command-deck__stats,
.dn-command-deck__actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.dn-command-stat,
.dn-command-action {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--dn-line);
    border-radius: 24px;
    box-shadow: var(--dn-shadow);
}

.dn-command-stat {
    padding: 1.2rem;
}

.dn-command-stat__label {
    font-size: 0.74rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 800;
}

.dn-command-stat__value {
    margin-top: 0.7rem;
    font-size: 2rem;
    line-height: 1;
    font-weight: 900;
    color: var(--dn-ink);
}

.dn-command-stat__hint {
    margin-top: 0.55rem;
    line-height: 1.6;
    color: var(--dn-muted);
    font-size: 0.86rem;
}

.dn-command-stat--amber .dn-command-stat__label { color: #b26b00; }
.dn-command-stat--sky .dn-command-stat__label { color: #0c6fa7; }
.dn-command-stat--emerald .dn-command-stat__label { color: #0f766e; }
.dn-command-stat--rose .dn-command-stat__label { color: #be3455; }

.dn-command-action {
    display: block;
    padding: 1.15rem 1.2rem;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.dn-command-action:hover {
    transform: translateY(-1px);
    border-color: rgba(190, 137, 51, 0.22);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.09);
}

.dn-command-action__title {
    display: block;
    color: var(--dn-ink);
    font-weight: 800;
    font-size: 1rem;
}

.dn-command-action__text {
    display: block;
    margin-top: 0.45rem;
    color: var(--dn-muted);
    line-height: 1.65;
    font-size: 0.88rem;
}

.dn-assistant {
    position: fixed;
    right: 1.1rem;
    bottom: 1.1rem;
    z-index: 70;
    font-family: inherit;
}

.dn-assistant__launcher {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.35rem;
    height: 3.35rem;
    border: 0;
    border-radius: 999px;
    background: #0f6b6f;
    color: #fff;
    box-shadow: 0 18px 42px rgba(15, 107, 111, 0.28);
    cursor: pointer;
    transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.dn-assistant__launcher:hover,
.dn-assistant__launcher:focus-visible {
    background: #be8933;
    transform: translateY(-1px);
    box-shadow: 0 20px 44px rgba(190, 137, 51, 0.28);
}

.dn-assistant svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.dn-assistant__panel {
    position: absolute;
    right: 0;
    bottom: 4.15rem;
    display: grid;
    grid-template-rows: auto minmax(7rem, 1fr) auto auto;
    width: min(24rem, calc(100vw - 2rem));
    height: min(26rem, calc(100vh - 7rem));
    overflow: hidden;
    border: 1px solid rgba(24, 36, 50, 0.12);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.2);
    color: var(--dn-ink);
}

.dn-assistant__panel[hidden] {
    display: none;
}

.dn-assistant__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--dn-line);
    background: linear-gradient(135deg, #173140 0%, #0f6b6f 100%);
    color: #fff;
}

.dn-assistant__header strong,
.dn-assistant__header span {
    display: block;
}

.dn-assistant__header strong {
    font-size: 0.95rem;
    font-weight: 850;
}

.dn-assistant__header span {
    margin-top: 0.18rem;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.72);
}

.dn-assistant__close,
.dn-assistant__form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
}

.dn-assistant__close {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.dn-assistant__messages {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-height: 0;
    padding: 0.75rem;
    overflow-y: auto;
    background: #f8fafc;
}

.dn-assistant__message {
    max-width: 88%;
    padding: 0.62rem 0.72rem;
    border-radius: 14px;
    font-size: 0.86rem;
    line-height: 1.45;
    white-space: pre-line;
    text-align: left;
}

.dn-assistant__message--assistant {
    align-self: flex-start;
    background: #fff;
    border: 1px solid rgba(24, 36, 50, 0.08);
    color: var(--dn-ink);
}

.dn-assistant__message--user {
    align-self: flex-end;
    background: #0f6b6f;
    color: #fff;
}

.dn-assistant__message--error {
    border-color: rgba(190, 52, 85, 0.18);
    background: #fff4f6;
    color: #9f1239;
}

.dn-assistant__form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 2.6rem;
    gap: 0.6rem;
    padding: 0.8rem;
    border-top: 1px solid var(--dn-line);
    background: #fff;
}

.dn-assistant__form textarea {
    width: 100%;
    min-height: 2.6rem;
    max-height: 7rem;
    resize: vertical;
    border: 1px solid rgba(24, 36, 50, 0.12);
    border-radius: 16px;
    padding: 0.72rem 0.8rem;
    color: var(--dn-ink);
    font: inherit;
    font-size: 0.86rem;
    line-height: 1.35;
    outline: none;
}

.dn-assistant__form textarea:focus {
    border-color: rgba(15, 107, 111, 0.45);
    box-shadow: 0 0 0 3px rgba(15, 107, 111, 0.12);
}

.dn-assistant__form button {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 16px;
    background: #be8933;
    color: #fff;
}

.dn-assistant__form button:disabled {
    cursor: wait;
    opacity: 0.62;
}

.dn-assistant__usage {
    min-height: 1.8rem;
    padding: 0 0.9rem 0.7rem;
    background: #fff;
    color: var(--dn-muted);
    font-size: 0.72rem;
    line-height: 1.35;
}

@media (max-width: 1100px) {
    .dn-command-deck__hero,
    .dn-command-deck__stats,
    .dn-command-deck__actions {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1024px) {
    .dn-sidebar-toggle {
        display: inline-flex;
    }

    .fi-topbar-open-sidebar-btn {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .fi-main {
        overflow-x: hidden;
    }

    .fi-page {
        min-width: 0;
    }

    .fi-topbar {
        background: rgba(18, 18, 22, 0.94);
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }

    .dn-topbar-ribbon {
        flex-wrap: nowrap;
        max-width: calc(100vw - 8.5rem);
        overflow: hidden;
    }

    .dn-topbar-pill {
        display: none;
    }

    .dn-topbar-pill--training {
        display: inline-flex;
        min-height: 2.15rem;
        padding: 0.5rem 0.72rem;
        font-size: 0.62rem;
    }

    .dn-topbar-logout {
        min-height: 2.15rem;
        padding: 0.52rem 0.82rem;
        border-radius: 999px;
        font-size: 0.78rem;
        letter-spacing: 0;
        line-height: 1.05;
        text-transform: none;
        box-shadow: 0 8px 18px rgba(190, 52, 85, 0.22);
    }

    .dn-topbar-ribbon__label,
    .dn-topbar-ribbon__divider {
        display: none;
    }

    .fi-sidebar {
        width: min(82vw, 21rem) !important;
        max-width: min(82vw, 21rem) !important;
    }

    .fi-sidebar-nav {
        padding-bottom: 0.75rem !important;
        border-radius: 0;
    }

    .fi-sidebar-item-button,
    .fi-page-sub-navigation-sidebar-item-button {
        min-height: 2.75rem;
        border-radius: 16px;
    }

    .dn-sidebar-footer {
        margin: 0.75rem;
        padding: 0.75rem;
        border-radius: 18px;
    }

    .dn-sidebar-footer__brand {
        gap: 0.65rem;
    }

    .dn-sidebar-footer__brand img {
        width: 42px;
        height: 42px;
    }

    .dn-sidebar-footer__title {
        font-size: 0.84rem;
    }

    .dn-sidebar-footer__text,
    .dn-sidebar-footer__meta {
        display: none;
    }

    .fi-header-heading {
        color: var(--dn-ink) !important;
        font-size: 1.85rem !important;
        line-height: 1.08 !important;
    }

    .fi-header {
        gap: 0.85rem !important;
    }

    .fi-ta {
        max-width: 100%;
        overflow: hidden;
        border-radius: 18px;
    }

    .fi-ta-header,
    .fi-ta-toolbar,
    .fi-ta-header-toolbar {
        align-items: stretch !important;
        gap: 0.75rem !important;
        min-width: 0;
    }

    .fi-ta-header {
        padding: 0.85rem !important;
    }

    .fi-ta-header-toolbar,
    .fi-ta-actions,
    .fi-ta-search-field,
    .fi-ta-search-field .fi-input-wrp {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    .fi-ta-search-field .fi-input,
    .fi-ta-search-field input {
        width: 100% !important;
        min-width: 0 !important;
    }

    .fi-ta-content,
    .fi-ta-table-ctn {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .fi-ta-table {
        min-width: 42rem;
    }

    .fi-ta-table th,
    .fi-ta-table td {
        white-space: nowrap;
    }

    .dn-command-deck__hero {
        padding: 1.1rem;
    }

    .dn-command-deck__hero h1 {
        max-width: none;
        font-size: 1.8rem;
    }

    .dn-assistant {
        right: 0.85rem;
        bottom: 0.85rem;
    }

    .dn-assistant__launcher {
        width: 3rem;
        height: 3rem;
    }

    .dn-assistant__panel {
        bottom: 3.75rem;
        height: min(32rem, calc(100vh - 5rem));
        border-radius: 20px;
    }
}

@media (max-width: 900px) {
    .fi-ta-content,
    .fi-ta-table-ctn,
    .fi-page .overflow-x-auto {
        overflow-x: hidden !important;
    }

    .fi-ta-table,
    .fi-ta-table thead,
    .fi-ta-table tbody,
    .fi-ta-table tfoot,
    .fi-ta-table tr,
    .fi-ta-table th,
    .fi-ta-table td,
    .fi-page .overflow-x-auto > table,
    .fi-page .overflow-x-auto > table thead,
    .fi-page .overflow-x-auto > table tbody,
    .fi-page .overflow-x-auto > table tfoot,
    .fi-page .overflow-x-auto > table tr,
    .fi-page .overflow-x-auto > table th,
    .fi-page .overflow-x-auto > table td {
        display: block;
        width: 100%;
        min-width: 0 !important;
        white-space: normal !important;
    }

    .fi-ta-table thead,
    .fi-page .overflow-x-auto > table thead {
        height: 1px;
        width: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        position: absolute;
        white-space: nowrap;
    }

    .fi-ta-table tbody,
    .fi-page .overflow-x-auto > table tbody {
        display: grid;
        gap: 0.75rem;
    }

    .fi-ta-table tbody tr,
    .fi-page .overflow-x-auto > table tbody tr {
        display: grid;
        gap: 0.45rem;
        border: 1px solid rgba(226, 232, 240, 0.95);
        border-radius: 14px;
        background: #fff;
        padding: 0.75rem;
    }

    .fi-ta-table tbody td,
    .fi-page .overflow-x-auto > table tbody td {
        min-width: 0;
        border: 0 !important;
        padding: 0.25rem 0 !important;
    }

    .fi-ta-table tbody td[data-label],
    .fi-page .overflow-x-auto > table tbody td[data-label] {
        display: grid;
        grid-template-columns: minmax(6.5rem, 34%) minmax(0, 1fr);
        gap: 0.65rem;
        align-items: start;
    }

    .fi-ta-table tbody td[data-label]::before,
    .fi-page .overflow-x-auto > table tbody td[data-label]::before {
        display: block;
        content: attr(data-label);
        color: #64748b;
        font-size: 0.7rem;
        font-weight: 800;
        line-height: 1.25;
        text-transform: uppercase;
    }

    .fi-ta-table tfoot tr,
    .fi-page .overflow-x-auto > table tfoot tr {
        display: grid;
        gap: 0.4rem;
        margin-top: 0.75rem;
        border: 1px solid rgba(226, 232, 240, 0.95);
        border-radius: 14px;
        background: #f8fafc;
        padding: 0.75rem;
    }

    .dn-report-row > summary {
        grid-template-columns: 1fr;
    }

    .dn-report-row__amount {
        text-align: left;
        white-space: normal;
    }
}

/* ── Front Desk Hub ─────────────────────────────────────────────────────── */
.dn-fd {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dn-command-stat[href] {
    text-decoration: none;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.dn-command-stat[href]:hover {
    transform: translateY(-2px);
    box-shadow: var(--dn-shadow);
}

.dn-fd-section {
    background: var(--dn-panel);
    border: 1px solid var(--dn-line);
    border-radius: var(--dn-radius-lg);
    padding: 1.1rem 1.25rem;
    box-shadow: var(--dn-shadow);
}

.dn-fd-section__title {
    margin: 0 0 0.85rem;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--dn-ink);
    letter-spacing: -0.01em;
}

.dn-fd-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--dn-line);
    border-radius: 16px;
    background: #ffffff;
    margin-bottom: 0.6rem;
}

.dn-fd-card:last-child {
    margin-bottom: 0;
}

.dn-fd-card__main {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
    flex: 1 1 340px;
}

.dn-fd-card__who {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.dn-fd-card__name {
    font-weight: 700;
    color: var(--dn-ink);
    font-size: 0.98rem;
}

.dn-fd-card__meta {
    font-size: 0.78rem;
    color: var(--dn-muted);
}

.dn-fd-card__facts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.9rem;
    font-size: 0.82rem;
    color: var(--dn-ink);
}

.dn-fd-card__balance--due {
    color: var(--dn-rose);
    font-weight: 700;
}

.dn-fd-card__balance--paid {
    color: var(--dn-emerald);
    font-weight: 600;
}

.dn-fd-badge {
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(24, 36, 50, 0.06);
    color: var(--dn-muted);
}

.dn-fd-badge--confirmed { background: rgba(15, 118, 110, 0.12); color: var(--dn-emerald); }
.dn-fd-badge--pending_payment { background: rgba(190, 52, 85, 0.12); color: var(--dn-rose); }
.dn-fd-badge--checked_in { background: rgba(15, 107, 111, 0.14); color: var(--dn-teal); }

.dn-fd-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

.dn-fd-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.85rem;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    transition: filter 0.12s ease;
}

.dn-fd-btn:hover {
    filter: brightness(0.96);
}

.dn-fd-btn--checkin {
    background: var(--dn-teal);
    color: #ffffff;
}

.dn-fd-btn--deposit {
    background: var(--dn-gold);
    color: #ffffff;
}

.dn-fd-btn--ghost {
    background: #ffffff;
    color: var(--dn-ink);
    border-color: var(--dn-line);
}

.dn-fd-empty {
    padding: 0.9rem 0.5rem;
    color: var(--dn-muted);
    font-size: 0.85rem;
}
