/* Omego — premium dashboard shell (tenant, platform, lodge) */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

.omego-dashboard-page,
.omego-dashboard-page .fi-page-content {
    font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
}

/* ── Hero banner ── */
.omego-dashboard-hero {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    padding: 1.75rem 2rem;
    margin-bottom: 1.25rem;
    color: #f8fafc;
    background:
        radial-gradient(ellipse 80% 60% at 100% 0%, rgba(56, 189, 248, 0.22), transparent 55%),
        radial-gradient(ellipse 60% 50% at 0% 100%, rgba(99, 102, 241, 0.18), transparent 50%),
        linear-gradient(135deg, #0f172a 0%, #1e293b 45%, #0f2744 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 20px 40px -24px rgba(15, 23, 42, 0.55);
}

.omego-dashboard-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.7;
    pointer-events: none;
}

.omego-dashboard-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem;
}

.omego-dashboard-hero__eyebrow {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.95);
    margin-bottom: 0.35rem;
}

.omego-dashboard-hero__title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #fff;
}

.omego-dashboard-hero__subtitle {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: rgba(203, 213, 225, 0.92);
    max-width: 36rem;
}

.omego-dashboard-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.omego-dashboard-hero__pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    color: #e2e8f0;
}

.omego-dashboard-hero--platform {
    background:
        radial-gradient(ellipse 70% 55% at 100% 0%, rgba(129, 140, 248, 0.28), transparent 55%),
        radial-gradient(ellipse 55% 45% at 0% 100%, rgba(167, 139, 250, 0.15), transparent 50%),
        linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e293b 100%);
}

/* Hide duplicate Filament page title when hero is present */
.omego-dashboard-page:has(.omego-dashboard-hero) > .fi-page-header-main-ctn > .fi-header {
    display: none;
}

/* ── KPI / stat cards ── */
.omego-dash-stat-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 640px) {
    .omego-dash-stat-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .omego-dash-stat-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .omego-dash-stat-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .omego-dash-stat-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .omego-dash-stat-grid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .lg\:omego-dash-stat-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:omego-dash-stat-grid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.omego-dash-stat-card {
    position: relative;
    display: block;
    text-decoration: none;
    border-radius: 1rem;
    padding: 1.25rem 1.35rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    overflow: hidden;
}

.omego-dash-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--omego-dash-accent, linear-gradient(90deg, #3b82f6, #6366f1));
    opacity: 0.85;
}

.omego-dash-stat-card:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    box-shadow: 0 12px 28px -16px rgba(15, 23, 42, 0.25);
}

.omego-dash-stat-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    margin-bottom: 0.85rem;
    background: var(--omego-dash-icon-bg, #eff6ff);
    color: var(--omego-dash-icon-color, #2563eb);
}

.omego-dash-stat-card__icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.omego-dash-stat-card__label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.01em;
}

.omego-dash-stat-card__value {
    margin-top: 0.35rem;
    font-size: 1.875rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.omego-dash-stat-card--indigo { --omego-dash-accent: linear-gradient(90deg, #6366f1, #8b5cf6); --omego-dash-icon-bg: #eef2ff; --omego-dash-icon-color: #4f46e5; }
.omego-dash-stat-card--blue { --omego-dash-accent: linear-gradient(90deg, #3b82f6, #0ea5e9); --omego-dash-icon-bg: #eff6ff; --omego-dash-icon-color: #2563eb; }
.omego-dash-stat-card--emerald { --omego-dash-accent: linear-gradient(90deg, #10b981, #14b8a6); --omego-dash-icon-bg: #ecfdf5; --omego-dash-icon-color: #059669; }
.omego-dash-stat-card--amber { --omego-dash-accent: linear-gradient(90deg, #f59e0b, #f97316); --omego-dash-icon-bg: #fffbeb; --omego-dash-icon-color: #d97706; }
.omego-dash-stat-card--rose { --omego-dash-accent: linear-gradient(90deg, #f43f5e, #ec4899); --omego-dash-icon-bg: #fff1f2; --omego-dash-icon-color: #e11d48; }
.omego-dash-stat-card--violet { --omego-dash-accent: linear-gradient(90deg, #8b5cf6, #a855f7); --omego-dash-icon-bg: #f5f3ff; --omego-dash-icon-color: #7c3aed; }

/* Lodge KPI tiles */
.omego-dash-kpi {
    border-radius: 1rem;
    padding: 1.1rem 1.25rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.omego-dash-kpi__label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}

.omego-dash-kpi__value {
    margin-top: 0.4rem;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.omego-dash-room-card {
    border-radius: 1rem;
    padding: 1.15rem 1.25rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.omego-dash-room-card--clickable {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    text-align: left;
}

.omego-dash-room-card--button {
    appearance: none;
    font: inherit;
}

.omego-dash-room-card--clickable:hover,
.omego-dash-room-card--clickable:focus-visible {
    border-color: #93c5fd;
    box-shadow: 0 10px 28px -14px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
    outline: none;
}

.omego-dash-room-card__action {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #2563eb;
}

.omego-dash-room-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 24px -12px rgba(15, 23, 42, 0.18);
}

/* Filament widget polish on dashboards */
.omego-dashboard-page .fi-wi {
    border-radius: 1rem !important;
}

.omego-dashboard-page .fi-wi-stats-overview-stat {
    border: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.omego-dashboard-page .fi-wi-stats-overview-stat:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -16px rgba(15, 23, 42, 0.2);
}

.omego-dashboard-page .fi-wi-stats-overview-stat-value {
    font-weight: 800 !important;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.omego-dashboard-page .fi-wi-stats-overview-stat-label {
    font-weight: 600 !important;
    color: #64748b !important;
}

.omego-dashboard-page .fi-section {
    border-radius: 1rem !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.omego-dashboard-page .fi-section-header-heading {
    font-weight: 700 !important;
    letter-spacing: -0.01em;
}

.omego-dashboard-page .fi-ta-table {
    border-radius: 0.75rem;
    overflow: hidden;
}

.omego-dashboard-page .fi-wi-widget {
    gap: 0.25rem;
}

/* POS custom widgets */
.omego-dash-pos-metric {
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.omego-dash-pos-metric__label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
}

.omego-dash-pos-metric__value {
    margin-top: 0.25rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
}

/* Dark mode */
.dark .omego-dash-stat-card,
.dark .omego-dash-kpi,
.dark .omego-dash-room-card {
    background: #111827;
    border-color: #374151;
}

.dark .omego-dash-stat-card__value,
.dark .omego-dash-kpi__value {
    color: #f9fafb;
}

.dark .omego-dash-stat-card__label,
.dark .omego-dash-kpi__label {
    color: #9ca3af;
}

.dark .omego-dashboard-page .fi-wi-stats-overview-stat {
    background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
    border-color: #374151;
}

.dark .omego-dashboard-page .fi-wi-stats-overview-stat-value {
    color: #f9fafb !important;
}

.dark .omego-dashboard-page .fi-section {
    border-color: #374151 !important;
    background: #111827;
}

.dark .omego-dash-pos-metric {
    background: #1f2937;
    border-color: #374151;
}

.dark .omego-dash-pos-metric__value {
    color: #f9fafb;
}

/* ── Business Overview / Executive Owner Dashboard ── */
.business-overview-page .omego-dashboard-hero__meta {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: rgba(203, 213, 225, 0.92);
}

.business-overview-page .omego-dashboard-hero__pill {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.12);
    padding: 0.15rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #e2e8f0;
}

.business-overview-dashboard-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-radius: 1rem;
    border: 1px solid #dbeafe;
    background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
    padding: 1rem 1.25rem;
}

.business-overview-dashboard-strip__title {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #1d4ed8;
}

.business-overview-dashboard-strip__text {
    margin-top: 0.25rem;
    max-width: 42rem;
    font-size: 0.875rem;
    color: #475569;
}

.business-overview-dashboard-strip__cta {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    background: #1d4ed8;
    padding: 0.55rem 1rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    transition: background 0.15s ease;
}

.business-overview-dashboard-strip__cta:hover {
    background: #1e40af;
    color: #fff;
}

.dark .business-overview-dashboard-strip {
    border-color: #1e3a8a;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.35) 0%, rgba(15, 23, 42, 0.9) 100%);
}

.dark .business-overview-dashboard-strip__title {
    color: #93c5fd;
}

.dark .business-overview-dashboard-strip__text {
    color: #cbd5e1;
}

.dark .business-overview-dashboard-strip__cta {
    background: #2563eb;
}

.dark .business-overview-dashboard-strip__cta:hover {
    background: #1d4ed8;
}

.business-overview-kpis__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.business-overview-kpis__grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 0.875rem;
}

@media (min-width: 640px) {
    .business-overview-kpis__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .business-overview-kpis__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .business-overview-kpis__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.business-overview-kpi-card {
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    background: #fff;
    padding: 1rem 1.1rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.business-overview-kpi-card--link {
    display: block;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.business-overview-kpi-card--link:hover {
    border-color: #93c5fd;
    box-shadow: 0 8px 24px -18px rgba(37, 99, 235, 0.55);
    transform: translateY(-1px);
}

.business-overview-kpi-card__label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}

.business-overview-kpi-card__value {
    margin-top: 0.35rem;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.business-overview-kpi-card__description {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #64748b;
}

.business-unit-shortcut {
    border-radius: 9999px;
    border: 1px solid #dbeafe;
    background: #eff6ff;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #1d4ed8;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.business-unit-shortcut:hover {
    background: #dbeafe;
    border-color: #93c5fd;
}

.dark .business-overview-kpi-card {
    border-color: #374151;
    background: #111827;
}

.dark .business-overview-kpi-card__value {
    color: #f8fafc;
}

.dark .business-unit-shortcut {
    border-color: #1e3a8a;
    background: rgba(30, 58, 138, 0.35);
    color: #bfdbfe;
}

.dark .business-unit-shortcut:hover {
    background: rgba(37, 99, 235, 0.35);
}

/* ── Owner Dashboard premium layout (od-*) ── */
.omego-owner-dashboard .fi-page-header-main-ctn > .fi-header { display: none; }

.od-shell {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    color: #0f172a;
}

.od-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.5rem 1.75rem;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, #0b1f3a 0%, #123056 55%, #0f2744 100%);
    color: #f8fafc;
    box-shadow: 0 18px 40px -28px rgba(15, 23, 42, 0.65);
}

.od-header__greeting {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #94a3b8;
}

.od-header__title {
    margin: 0.35rem 0 0;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.od-header__subtitle {
    margin: 0.45rem 0 0;
    color: #cbd5e1;
    font-size: 0.9rem;
}

.od-header__controls {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem;
}

.od-control { display: grid; gap: 0.35rem; min-width: 10rem; }
.od-control__label { font-size: 0.7rem; font-weight: 600; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.06em; }
.od-control__input {
    min-height: 44px;
    border-radius: 0.75rem;
    border: 1px solid #dbe3ef;
    background: #fff;
    color: #0f172a;
    padding: 0.55rem 0.75rem;
}

.od-header .od-control__input { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.1); color: #fff; }
.od-header .od-control__input option { color: #0f172a; }

.od-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    font-size: 0.8rem;
}
.od-pill--date { flex-direction: column; align-items: flex-start; gap: 0.1rem; border-radius: 0.9rem; }
.od-pill--date span { color: #94a3b8; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; }

.od-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.65rem 1rem;
    border-radius: 0.85rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
}
.od-btn--primary { background: #2563eb; color: #fff; }
.od-btn--primary:hover { background: #1d4ed8; }
.od-btn--secondary { background: #fff; color: #1e3a5f; border-color: #dbe3ef; }

.od-kpi-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}
@media (min-width: 640px) { .od-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .od-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1400px) { .od-kpi-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.od-kpi {
    display: block;
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid #e7edf5;
    box-shadow: 0 10px 24px -22px rgba(15, 23, 42, 0.45);
    text-decoration: none;
    color: inherit;
    min-height: 7.5rem;
}
.od-kpi__label { margin: 0; font-size: 0.78rem; color: #64748b; font-weight: 600; }
.od-kpi__value { margin: 0.45rem 0 0; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; }
.od-kpi__delta { margin: 0.4rem 0 0; font-size: 0.75rem; color: #64748b; }
.od-kpi.is-up .od-kpi__delta span { color: #15803d; font-weight: 700; }
.od-kpi.is-down .od-kpi__delta span { color: #b91c1c; font-weight: 700; }

.od-card {
    background: #fff;
    border: 1px solid #e7edf5;
    border-radius: 1.1rem;
    padding: 1.15rem 1.25rem;
    box-shadow: 0 12px 28px -24px rgba(15, 23, 42, 0.5);
}
.od-card__head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}
.od-card__head h2 { margin: 0; font-size: 1.05rem; font-weight: 800; }
.od-card__hint { margin: 0.25rem 0 0; color: #64748b; font-size: 0.8rem; }
.od-link { color: #1d4ed8; font-size: 0.82rem; font-weight: 700; text-decoration: none; }

.od-grid { display: grid; gap: 1rem; }
.od-grid--main { grid-template-columns: 1fr; }
.od-grid--split, .od-grid--three { grid-template-columns: 1fr; }
@media (min-width: 960px) {
    .od-grid--main { grid-template-columns: 2fr 1fr; }
    .od-grid--split { grid-template-columns: 1fr 1fr; }
    .od-grid--three { grid-template-columns: 2fr 1fr; }
}
.od-span-2 { grid-column: 1 / -1; }
@media (min-width: 960px) { .od-span-2 { grid-column: span 2; } .od-grid--main .od-span-2 { grid-column: span 1; } .od-grid--main > .od-span-2:first-child { grid-column: 1 / 2; } }

.od-filters { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.od-filters--range { margin-bottom: 0.75rem; }
.od-chip {
    min-height: 36px;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    border: 1px solid #dbe3ef;
    background: #f8fafc;
    font-size: 0.75rem;
    font-weight: 700;
    color: #334155;
}
.od-chip.is-active { background: #1e3a5f; color: #fff; border-color: #1e3a5f; }

.od-chart__bars {
    display: flex;
    align-items: flex-end;
    gap: 0.35rem;
    min-height: 180px;
    padding-top: 0.5rem;
}
.od-chart__col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    background: transparent;
    border: 0;
    min-width: 0;
    cursor: pointer;
}
.od-chart__bar {
    width: 100%;
    max-width: 28px;
    border-radius: 0.45rem 0.45rem 0.2rem 0.2rem;
    background: linear-gradient(180deg, #3b82f6, #1e3a8a);
}
.od-chart__tick { font-size: 0.65rem; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.od-chart__tooltip {
    margin-top: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 0.85rem;
    background: #0f172a;
    color: #e2e8f0;
    font-size: 0.8rem;
    display: grid;
    gap: 0.25rem;
}

.od-donut-wrap { display: grid; gap: 1rem; justify-items: center; }
.od-donut {
    width: 180px;
    height: 180px;
    border-radius: 999px;
    display: grid;
    place-items: center;
}
.od-donut__hole {
    width: 110px;
    height: 110px;
    border-radius: 999px;
    background: #fff;
    display: grid;
    place-content: center;
    text-align: center;
    box-shadow: inset 0 0 0 1px #e7edf5;
}
.od-donut__hole span { font-size: 0.7rem; color: #64748b; }
.od-donut__hole strong { font-size: 0.95rem; }

.od-legend { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; gap: 0.45rem; }
.od-legend li { display: grid; grid-template-columns: 0.7rem 1fr auto auto; gap: 0.5rem; align-items: center; font-size: 0.8rem; }
.od-legend__swatch { width: 0.7rem; height: 0.7rem; border-radius: 999px; }
.od-legend em { color: #64748b; font-style: normal; }

.od-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; }
@media (min-width: 640px) { .od-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.od-action {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    border-radius: 0.9rem;
    border: 1px solid #dbe3ef;
    background: #f8fafc;
    color: #0f172a;
    font-weight: 700;
    font-size: 0.82rem;
    text-decoration: none;
    text-align: center;
}
.od-action:hover { border-color: #93c5fd; background: #eff6ff; color: #1d4ed8; }

.od-alerts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.od-alert a, .od-alert > div {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    min-height: 44px;
    padding: 0.7rem 0.85rem;
    border-radius: 0.85rem;
    border: 1px solid #e7edf5;
    text-decoration: none;
    color: inherit;
}
.od-alert strong {
    min-width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
}
.od-alert--danger strong { background: #fef2f2; color: #b91c1c; }
.od-alert--warning strong { background: #fffbeb; color: #b45309; }

.od-empty {
    padding: 1.5rem 0.5rem;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

.od-table-wrap { overflow-x: auto; }
.od-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.od-table th, .od-table td { padding: 0.7rem 0.45rem; border-bottom: 1px solid #eef2f7; text-align: left; }
.od-table th { color: #64748b; font-weight: 700; font-size: 0.75rem; }

.od-stat-list, .od-mini-grid { display: grid; gap: 0.65rem; }
.od-stat-list > div, .od-mini-grid > div {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid #eef2f7;
    font-size: 0.85rem;
}
.od-stat-list span, .od-mini-grid span { color: #64748b; }
.od-stat-list__total { font-weight: 800; border-bottom: 0; }
.od-mini-grid--snapshot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .od-mini-grid--snapshot { grid-template-columns: repeat(4, minmax(0, 1fr)); } .od-mini-grid--snapshot > div { flex-direction: column; align-items: flex-start; } }

.od-counters { display: grid; gap: 0.75rem; }
.od-counter {
    padding: 0.85rem 0.95rem;
    border-radius: 0.9rem;
    border: 1px solid #e7edf5;
    background: #f8fafc;
}
.od-counter.is-historical { border-color: #fbbf24; background: #fffbeb; }
.od-counter header { display: flex; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.35rem; }
.od-counter h3 { margin: 0; font-size: 0.95rem; }
.od-counter p { margin: 0.2rem 0; font-size: 0.8rem; color: #475569; }
.od-counter__warn { color: #b45309 !important; font-weight: 600; }
.od-badge { font-size: 0.7rem; font-weight: 700; padding: 0.25rem 0.55rem; border-radius: 999px; }
.od-badge--success { background: #dcfce7; color: #166534; }
.od-badge--muted { background: #e2e8f0; color: #475569; }

.od-historical {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    background: linear-gradient(135deg, #fff7ed, #ffffff);
    border-color: #fdba74;
}
.od-historical h2 { margin: 0 0 0.35rem; }
.od-historical p { margin: 0; color: #9a3412; font-size: 0.85rem; }
.od-progress { margin: 0.75rem 0; height: 0.55rem; border-radius: 999px; background: #fed7aa; overflow: hidden; max-width: 28rem; }
.od-progress__bar { height: 100%; background: #ea580c; }
.od-banner { padding: 0.75rem 1rem; border-radius: 0.75rem; }
.od-banner--danger { background: #fef2f2; color: #b91c1c; }

@media (max-width: 640px) {
    .od-header { padding: 1.15rem; }
    .od-actions { grid-template-columns: 1fr 1fr; }
}

/* ── Owner Dashboard v2 (reference-inspired) ── */
.omego-owner-dashboard .fi-main,
.omego-owner-dashboard .fi-page-content {
    background: #f5f7fb;
}

.od-topbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    align-items: flex-start;
    padding: 0.25rem 0.15rem 0.35rem;
}

.od-topbar__greeting {
    margin: 0;
    font-size: clamp(1.45rem, 2.2vw, 1.9rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.od-topbar__subtitle {
    margin: 0.35rem 0 0;
    color: #64748b;
    font-size: 0.92rem;
}

.od-topbar__business {
    margin: 0.25rem 0 0;
    font-size: 0.78rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.od-topbar__controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
}

.od-control--light .od-control__label { color: #64748b; }
.od-control--light .od-control__input {
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    min-width: 11rem;
}

.od-soft-pill {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.55rem 0.9rem;
    border-radius: 0.85rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    font-size: 0.85rem;
    font-weight: 600;
}

.od-soft-pill--stack {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
}

.od-soft-pill--stack span {
    font-size: 0.68rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.od-soft-pill--stack em {
    font-style: normal;
    font-size: 0.72rem;
    color: #b45309;
    font-weight: 600;
}

.od-kpi-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}
@media (min-width: 640px) { .od-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .od-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1400px) { .od-kpi-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.od-kpi {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-height: 8.25rem;
    padding: 1rem 1.05rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid #e8eef6;
    box-shadow: 0 12px 28px -24px rgba(15, 23, 42, 0.45);
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.od-kpi:hover { transform: translateY(-1px); box-shadow: 0 16px 30px -22px rgba(15, 23, 42, 0.55); }
.od-kpi.is-static { cursor: default; }
.od-kpi.is-static:hover { transform: none; }

.od-kpi__top {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.od-kpi__icon {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 999px;
    background: #eff6ff;
    flex: 0 0 auto;
    position: relative;
}
.od-kpi__icon::before {
    content: "";
    position: absolute;
    inset: 0.7rem;
    border-radius: 0.2rem;
    background: currentColor;
    opacity: 0.9;
}

.od-kpi--revenue .od-kpi__icon { background: #ecfdf5; color: #059669; }
.od-kpi--expenses .od-kpi__icon { background: #fff7ed; color: #ea580c; }
.od-kpi--profit .od-kpi__icon { background: #f5f3ff; color: #7c3aed; }
.od-kpi--margin .od-kpi__icon { background: #ecfeff; color: #0891b2; }
.od-kpi--sessions .od-kpi__icon { background: #eff6ff; color: #2563eb; }
.od-kpi--kots .od-kpi__icon { background: #fef2f2; color: #dc2626; }

.od-kpi__label { margin: 0; font-size: 0.78rem; color: #64748b; font-weight: 600; }
.od-kpi__value { margin: 0.15rem 0 0; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; color: #0f172a; }
.od-kpi__delta { margin: 0; font-size: 0.74rem; color: #64748b; }
.od-kpi.is-up .od-kpi__delta span { color: #15803d; font-weight: 700; }
.od-kpi.is-down .od-kpi__delta span { color: #b91c1c; font-weight: 700; }

.od-grid--hero {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}
@media (min-width: 1100px) {
    .od-grid--hero {
        grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.9fr) minmax(16rem, 0.75fr);
    }
}

.od-grid--lower {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}
@media (min-width: 1100px) {
    .od-grid--lower {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 0.8fr);
    }
}

.od-grid--footer {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}
@media (min-width: 1100px) {
    .od-grid--footer {
        grid-template-columns: minmax(0, 1.7fr) minmax(18rem, 0.8fr);
    }
}

.od-linechart {
    position: relative;
    min-height: 220px;
}
.od-linechart__svg {
    width: 100%;
    height: 180px;
    display: block;
}
.od-linechart__hits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 0.15rem;
    margin-top: 0.35rem;
}
.od-linechart__hit {
    min-height: 32px;
    border: 0;
    background: transparent;
    color: #94a3b8;
    font-size: 0.68rem;
    cursor: pointer;
    padding: 0.2rem;
}
.od-linechart__hit:hover { color: #2563eb; }

.od-actions--grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}
.od-action {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-height: 72px;
    padding: 0.8rem;
    border-radius: 0.9rem;
    border: 1px solid #e8eef6;
    background: #f8fafc;
    text-decoration: none;
    color: #0f172a;
    font-size: 0.82rem;
    font-weight: 700;
}
.od-action:hover { background: #eff6ff; border-color: #bfdbfe; }
.od-action__glyph {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 0.45rem;
    background: #2563eb;
    opacity: 0.9;
}

.od-item-cell { display: flex; align-items: center; gap: 0.55rem; }
.od-item-cell__dot {
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 0.55rem;
    background: linear-gradient(135deg, #dbeafe, #93c5fd);
    flex: 0 0 auto;
}

.od-counters--scroll {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(12.5rem, 15rem);
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.od-badge--warn {
    background: #fff7ed;
    color: #c2410c;
}

.od-historical--radial .od-historical__body {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin: 0.75rem 0 1rem;
}
.od-radial {
    --od-progress: 0;
    width: 7.5rem;
    height: 7.5rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at center, #fff 58%, transparent 59%),
        conic-gradient(#2563eb calc(var(--od-progress) * 1%), #e2e8f0 0);
}
.od-radial strong {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
}
.od-historical__copy p {
    margin: 0.25rem 0;
    font-size: 0.84rem;
    color: #475569;
}
.od-btn--block { width: 100%; }

@media (max-width: 767px) {
    .od-topbar__controls { width: 100%; }
    .od-control--light, .od-soft-pill, .od-btn { width: 100%; }
    .od-actions--grid { grid-template-columns: 1fr 1fr; }
}

/* Premium dark navy sidebar */
.fi-body .fi-sidebar {
    --od-nav: #0b1f3a;
}
.fi-sidebar {
    background: linear-gradient(180deg, #0b1f3a 0%, #0f2744 100%) !important;
}
.fi-sidebar .fi-logo,
.fi-sidebar .fi-sidebar-header,
.fi-sidebar .fi-sidebar-item-label,
.fi-sidebar .fi-sidebar-group-label {
    color: #e2e8f0 !important;
}
.fi-sidebar .fi-sidebar-group-label {
    font-size: 0.68rem !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8 !important;
}
.fi-sidebar .fi-sidebar-item-btn {
    border-radius: 0.65rem;
    color: #cbd5e1;
}
.fi-sidebar .fi-sidebar-item-btn:hover {
    background: rgba(255,255,255,0.06) !important;
}
.fi-sidebar .fi-sidebar-item-btn.fi-active,
.fi-sidebar .fi-active > .fi-sidebar-item-btn {
    background: #2563eb !important;
    color: #fff !important;
}
.fi-sidebar .fi-icon {
    color: inherit !important;
}

.od-alert em {
    display: block;
    margin-top: 0.15rem;
    font-style: normal;
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 500;
}

.omego-owner-dashboard .fi-main,
.omego-owner-dashboard .fi-page-content,
.omego-owner-dashboard .fi-page-content-main {
    background: #f5f7fb !important;
}

.omego-owner-dashboard .od-shell {
    display: grid;
    gap: 1rem;
    padding-bottom: 1.5rem;
}

.fi-topbar .fi-global-search-field {
    min-width: min(18rem, 42vw);
}

.fi-sidebar-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.omego-sidebar-help {
    padding: 0.75rem 0.85rem 1rem;
    position: relative;
    z-index: 20;
    pointer-events: auto;
}

.omego-sidebar-help__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
    width: 100%;
    padding: 0.65rem 0.9rem;
    border-radius: 0.75rem;
    background: #2563eb;
    color: #fff !important;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 10px 20px -14px rgba(37, 99, 235, 0.9);
}

.omego-sidebar-help__btn:hover {
    background: #1d4ed8;
    color: #fff !important;
}

.omego-sidebar-help__icon {
    width: 1.15rem;
    height: 1.15rem;
    flex: 0 0 auto;
}

.omego-sidebar-help__links {
    display: flex;
    justify-content: center;
    gap: 0.85rem;
    margin-top: 0.45rem;
}

.omego-sidebar-help__links a {
    color: #93c5fd !important;
    font-size: 0.72rem;
    font-weight: 600;
    text-decoration: none;
    pointer-events: auto;
}

.omego-sidebar-help__links a:hover {
    color: #fff !important;
    text-decoration: underline;
}

.fi-sidebar-collapsed .omego-sidebar-help__btn span,
.fi-sidebar-collapsed .omego-sidebar-help__links {
    display: none;
}


/*
 * Sidebar menu search: pin search above the list.
 * Only .fi-sidebar-nav-groups scrolls — items never pass under the search.
 */
.fi-main-sidebar .fi-sidebar-nav {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    gap: 0.75rem;
    overflow: hidden !important;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

.fi-main-sidebar .fi-sidebar-nav-groups {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    padding-bottom: 0.35rem;
}

.omego-sidebar-search {
    display: block;
    flex: 0 0 auto;
    position: relative;
    z-index: 30;
    width: 100%;
    max-width: 100%;
    align-self: stretch;
    box-sizing: border-box;
    margin: 0 -0.5rem;
    padding: 0.15rem 0.5rem 0.55rem;
    background: #0b1f3a;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 8px 12px -10px rgba(0, 0, 0, 0.55);
}

.omego-sidebar-search__field {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 40px;
    padding: 0.35rem 0.65rem;
    border-radius: 0.7rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.omego-sidebar-search__icon {
    width: 1rem;
    height: 1rem;
    color: #94a3b8;
    flex: 0 0 auto;
}

.omego-sidebar-search__input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: #f8fafc !important;
    font-size: 0.8125rem;
    font-weight: 500;
}

.omego-sidebar-search__input::placeholder {
    color: #94a3b8;
}

.omego-sidebar-search__clear {
    border: 0;
    background: transparent;
    color: #cbd5e1;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.15rem 0.25rem;
}

.omego-sidebar-search__clear:hover {
    color: #fff;
}

.omego-sidebar-search__empty {
    margin: 0.45rem 0.15rem 0;
    font-size: 0.72rem;
    color: #94a3b8;
}

.fi-sidebar-item.omego-sidebar-search-match > .fi-sidebar-item-btn {
    background: rgba(37, 99, 235, 0.22) !important;
}

/* Keep search hidden when the icon rail is collapsed */
.fi-sidebar:not(.fi-sidebar-open) .omego-sidebar-search {
    display: none !important;
}
