:root {
    --bg: #0B1D36;
    --bg-soft: #10233f;
    --card: rgba(255,255,255,.06);
    --card-strong: rgba(255,255,255,.085);
    --card-border: rgba(148,163,184,.20);
    --text: #f8fafc;
    --muted: #94A3B8;
    --slate: #475569;
    --brand-primary: #14B8A6;
    --brand-secondary: #2563EB;
    --brand-primary-soft: rgba(20,184,166,.16);
    --gold: var(--brand-primary);
    --gold-soft: var(--brand-primary-soft);
    --line: rgba(148,163,184,.16);
    --radius: 28px;
    --sidebar-width: 312px;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 10%, rgba(20,184,166,.18), transparent 28%),
        radial-gradient(circle at 82% 6%, rgba(37,99,235,.20), transparent 26%),
        linear-gradient(180deg, #0B1D36 0%, #10233f 42%, #071427 100%);
    z-index: -2;
}

.noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .045;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    z-index: -1;
}

a {
    color: #5EEAD4;
}

a:hover {
    color: #A7F3D0;
}

.text-muted,
.small.text-muted {
    color: var(--muted) !important;
}

.text-gold {
    color: var(--gold) !important;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0B1D36;
    border: 1px solid rgba(94,234,212,.25);
    box-shadow: 0 16px 36px rgba(37,99,235,.22);
    overflow: hidden;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    display: block;
}

.brand-lockup {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    line-height: 1;
}

.brand-word {
    font-size: 1.34rem;
    font-weight: 820;
    letter-spacing: .01em;
}

.brand-tagline {
    margin-top: .26rem;
    color: var(--muted);
    font-size: .57rem;
    font-weight: 700;
    letter-spacing: .19em;
    text-transform: uppercase;
}

.btn-gold,
.btn-primary,
.btn-success {
    background: linear-gradient(135deg, #5EEAD4, #14B8A6, #2563EB);
    color: #ffffff;
    border: 0;
    font-weight: 700;
    border-radius: 999px;
    box-shadow: 0 18px 48px rgba(20,184,166,.22);
}

.btn-gold,
.btn-primary {
    padding: .75rem 1.15rem;
}

.btn-gold:hover,
.btn-primary:hover,
.btn-success:hover {
    color: #111;
    color: #ffffff;
    filter: brightness(1.07);
}

.btn-ghost,
.btn-outline-secondary,
.btn-outline-primary,
.btn-outline-light {
    border: 1px solid rgba(255,255,255,.16);
    color: var(--text);
    border-radius: 999px;
    background: rgba(255,255,255,.04);
}

.btn-ghost:hover,
.btn-outline-secondary:hover,
.btn-outline-primary:hover,
.btn-outline-light:hover {
    color: var(--text);
    background: rgba(255,255,255,.08);
    border-color: rgba(20,184,166,.34);
}

.btn-danger,
.btn-outline-danger {
    border-radius: 999px;
}

.navbar,
.app-topbar,
.app-public-nav {
    backdrop-filter: blur(18px);
    background: rgba(5,7,11,.78);
    border-bottom: 1px solid var(--line);
}

.navbar-brand,
.nav-link {
    color: var(--text) !important;
}

.nav-link {
    color: var(--muted) !important;
    font-size: .95rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text) !important;
}

.navbar-toggler {
    border-color: rgba(255,255,255,.16);
}

.navbar-toggler-icon {
    filter: invert(1);
}

main {
    width: 100%;
}

.app-shell-body main > .container,
.app-shell-body main > .container-sm,
.app-shell-body main > .container-md,
.app-shell-body main > .container-lg,
.app-shell-body main > .container-xl,
.app-shell-body main > .container-xxl,
.app-shell-body main > .container-fluid {
    width: 100% !important;
    max-width: none !important;
}

.app-shell-body main :is(
    .admin-shell,
    .manager-dashboard-shell,
    .route-suggestion-shell,
    .routing-report-shell,
    .planning-quality-shell,
    .page-shell,
    .system-shell,
    .notifications-shell,
    .employee-targets-shell,
    .plans-shell,
    .plan-edit-shell,
    .feature-shell,
    .limit-shell,
    .billing-shell
) {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    height: 100vh;
    z-index: 1040;
    border-right: 1px solid var(--line);
    background:
        radial-gradient(circle at top left, rgba(20,184,166,.17), transparent 30%),
        radial-gradient(circle at bottom right, rgba(37,99,235,.14), transparent 28%),
        rgba(11,29,54,.90);
    backdrop-filter: blur(18px);
    color: var(--text);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: .7rem;
}

.sidebar .nav {
    gap: .35rem;
}

.workspace-offcanvas {
    width: min(92vw, 340px);
    background:
        radial-gradient(circle at top left, rgba(20,184,166,.13), transparent 30%),
        #070a10;
    color: var(--text);
}

.workspace-search-placeholder {
    display: flex;
    align-items: center;
    gap: .55rem;
    min-height: 42px;
    margin-bottom: .85rem;
    padding: 0 .85rem;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px;
    color: rgba(255,255,255,.52);
    background: rgba(255,255,255,.04);
    font-size: .9rem;
}

.workspace-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .45rem;
    margin-bottom: .85rem;
}

.workspace-quick-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    min-height: 38px;
    padding: .45rem .55rem;
    border: 1px solid rgba(20,184,166,.25);
    border-radius: 12px;
    background: rgba(20,184,166,.09);
    color: #ffe7a0;
    text-decoration: none;
    font-size: .82rem;
    font-weight: 700;
    text-align: center;
}

.workspace-quick-action:hover {
    background: rgba(20,184,166,.15);
    color: #fff2c6;
}

.workspace-nav {
    display: grid;
    gap: .35rem;
}

.workspace-nav-group {
    border: 1px solid transparent;
    border-radius: 14px;
}

.workspace-nav-group.is-active {
    border-color: rgba(20,184,166,.18);
    background: rgba(20,184,166,.045);
}

.workspace-nav-group-toggle {
    width: 100%;
    min-height: 40px;
    padding: .55rem .65rem;
    border: 0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    background: transparent;
    color: rgba(255,255,255,.72);
    text-align: left;
}

.workspace-nav-group-toggle:hover {
    background: rgba(255,255,255,.045);
    color: var(--text);
}

.workspace-nav-group-title {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    min-width: 0;
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.workspace-nav-group-title span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.workspace-nav-chevron {
    font-size: .78rem;
    transition: transform .18s ease;
}

.workspace-nav-group-toggle[aria-expanded="true"] .workspace-nav-chevron {
    transform: rotate(180deg);
}

.workspace-nav-items {
    padding: .2rem .35rem .5rem;
}

.workspace-nav-link {
    display: flex;
    align-items: center;
    gap: .62rem;
    min-height: 38px;
    margin: .12rem 0;
    padding: .55rem .65rem;
    border-radius: 11px;
    color: var(--muted);
    text-decoration: none;
    font-size: .92rem;
    line-height: 1.2;
}

.workspace-nav-link i {
    width: 1.15rem;
    color: rgba(255,255,255,.58);
    text-align: center;
}

.workspace-nav-link:hover {
    color: var(--text);
    background: rgba(255,255,255,.055);
}

.workspace-nav-link.active {
    color: var(--text);
    background:
        linear-gradient(90deg, rgba(20,184,166,.18), rgba(255,255,255,.065));
    box-shadow: inset 3px 0 0 var(--gold);
}

.workspace-nav-link.active i {
    color: var(--gold);
}

.workspace-sidebar-footer {
    position: relative;
    z-index: 1041;
    overflow: visible;
    background: rgba(5,7,11,.58);
}

.workspace-sidebar-footer .dropdown + .dropdown {
    margin-top: .5rem;
}

.app-menu-button {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.sidebar .nav-link,
.app-topbar .nav-link {
    border-radius: 999px;
    padding: .72rem .9rem;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active,
.app-topbar .nav-link:hover,
.app-topbar .nav-link.active {
    background: rgba(255,255,255,.07);
    color: var(--text) !important;
}

.sidebar hr {
    border-color: var(--line);
}

.dropdown-menu {
    background: #0d111a;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    box-shadow: 0 22px 70px rgba(0,0,0,.35);
}

.dropdown-item {
    color: var(--text);
}

.dropdown-item:hover,
.dropdown-item:focus {
    color: var(--text);
    background: rgba(255,255,255,.08);
}

.card,
.modal-content,
.list-group-item {
    border: 1px solid var(--card-border);
    background: rgba(13, 17, 26, .78);
    color: var(--text);
    border-radius: var(--radius);
    box-shadow: 0 22px 70px rgba(0,0,0,.24);
}

.card-header {
    color: var(--text);
    background: rgba(255,255,255,.045);
    border-bottom: 1px solid var(--line);
    border-top-left-radius: var(--radius) !important;
    border-top-right-radius: var(--radius) !important;
}

.card-body {
    color: var(--text);
}

.table {
    --bs-table-color: var(--text);
    --bs-table-bg: transparent;
    --bs-table-border-color: rgba(255,255,255,.1);
    --bs-table-striped-color: var(--text);
    --bs-table-striped-bg: rgba(255,255,255,.055);
    --bs-table-active-color: var(--text);
    --bs-table-active-bg: rgba(20,184,166,.18);
    --bs-table-hover-color: var(--text);
    --bs-table-hover-bg: rgba(20,184,166,.12);
    color: var(--text);
}

.table > :not(caption) > * > * {
    color: var(--bs-table-color-state, var(--bs-table-color-type, var(--bs-table-color)));
    background-color: var(--bs-table-bg);
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-color-type: var(--bs-table-striped-color);
}

.table-hover > tbody > tr:hover > * {
    --bs-table-color-state: var(--bs-table-hover-color);
}

.table-light {
    --bs-table-color: var(--text);
    --bs-table-bg: rgba(255,255,255,.11);
    --bs-table-border-color: rgba(255,255,255,.16);
    --bs-table-striped-color: var(--text);
    --bs-table-striped-bg: rgba(255,255,255,.13);
    --bs-table-hover-color: var(--text);
    --bs-table-hover-bg: rgba(255,255,255,.16);
}

.table-secondary {
    --bs-table-color: var(--text);
    --bs-table-bg: rgba(148,163,184,.14);
    --bs-table-border-color: rgba(148,163,184,.22);
}

.table-warning,
.table-danger {
    --bs-table-bg: rgba(20,184,166,.16);
    --bs-table-color: var(--text);
    --bs-table-striped-color: var(--text);
    --bs-table-hover-color: var(--text);
    --bs-table-border-color: rgba(20,184,166,.22);
}

.form-control,
.form-select,
.form-control-file {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.13);
    color: var(--text);
    border-radius: 16px;
    padding: .85rem 1rem;
}

.input-group-text {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.13);
    color: var(--text);
}

.form-control:focus,
.form-select:focus {
    background: rgba(255,255,255,.08);
    border-color: rgba(20,184,166,.55);
    color: var(--text);
    box-shadow: 0 0 0 .25rem rgba(20,184,166,.12);
}

.form-control::placeholder {
    color: rgba(255,255,255,.38);
}

.form-select option {
    color: #111827;
}

label,
.form-label {
    color: #dbe3f2;
}

.alert {
    border-radius: 18px;
    border-width: 1px;
}

.badge {
    border-radius: 999px;
}

.pagination .page-link {
    background: rgba(255,255,255,.05);
    border-color: rgba(255,255,255,.12);
    color: var(--text);
}

.pagination .page-item.active .page-link {
    background: var(--gold);
    border-color: var(--gold);
    color: #111;
}

.dataTables_wrapper,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_processing,
.dataTables_wrapper .dataTables_paginate {
    color: var(--muted) !important;
}

.dataTables_wrapper input,
.dataTables_wrapper select {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.13);
    color: var(--text);
    border-radius: 12px;
    padding: .4rem .7rem;
}

.dataTable tbody tr,
.dataTable tbody td {
    color: var(--text) !important;
}

.dataTable tbody tr:hover,
.dataTable tbody tr:hover > * {
    background-color: rgba(20,184,166,.12) !important;
    color: var(--text) !important;
}

.dataTable tbody tr.selected,
.dataTable tbody tr.selected > * {
    background-color: rgba(20,184,166,.2) !important;
    color: var(--text) !important;
}

.auth-page {
    min-height: 100vh;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem;
}

.auth-shell-split {
    grid-template-columns: minmax(300px, 560px) minmax(320px, 460px);
    align-content: center;
    justify-content: center;
    gap: 26px;
}

.auth-card {
    width: min(100%, 460px);
    padding: 34px;
}

.auth-trial-panel {
    width: min(100%, 560px);
    padding: 38px;
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(20,184,166,.12), rgba(255,255,255,.055));
    box-shadow: 0 32px 100px rgba(0,0,0,.34);
}

.auth-trial-panel h2 {
    max-width: 480px;
    margin: 0 0 1rem;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1;
    letter-spacing: -.045em;
    font-weight: 850;
}

.eyebrow-lite {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .42rem .75rem;
    margin-bottom: 1.1rem;
    border: 1px solid rgba(20,184,166,.28);
    border-radius: 999px;
    background: var(--gold-soft);
    color: #ffe8a3;
    font-size: .86rem;
}

.auth-trial-flow {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.auth-trial-flow div,
.auth-inline-trial {
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.055);
    border-radius: 18px;
}

.auth-trial-flow div {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 72px;
    padding: 14px;
}

.auth-trial-flow i {
    color: var(--gold);
    font-size: 1.25rem;
}

.auth-inline-trial {
    display: grid;
    gap: 4px;
    padding: 16px;
    color: var(--muted);
    font-size: .94rem;
}

.auth-inline-trial strong {
    color: var(--text);
}

.auth-title {
    font-size: 2rem;
    line-height: 1.1;
    font-weight: 850;
    margin-bottom: .65rem;
}

.auth-link {
    color: #5EEAD4;
    font-size: .92rem;
    text-decoration: none;
}

.auth-link:hover {
    color: #A7F3D0;
}

.language-switcher .dropdown-menu {
    min-width: 10rem;
}

.language-switcher .dropdown-item {
    text-align: inherit;
}

[dir="rtl"] .dropdown-menu {
    text-align: right;
}

[dir="rtl"] .me-1,
[dir="rtl"] .me-2,
[dir="rtl"] .me-3 {
    margin-right: 0 !important;
}

[dir="rtl"] .me-1 {
    margin-left: .25rem !important;
}

[dir="rtl"] .me-2 {
    margin-left: .5rem !important;
}

[dir="rtl"] .me-3 {
    margin-left: 1rem !important;
}

[dir="rtl"] .ms-1,
[dir="rtl"] .ms-2,
[dir="rtl"] .ms-3 {
    margin-left: 0 !important;
}

[dir="rtl"] .ms-1 {
    margin-right: .25rem !important;
}

[dir="rtl"] .ms-2 {
    margin-right: .5rem !important;
}

[dir="rtl"] .ms-3 {
    margin-right: 1rem !important;
}

.section-text {
    color: var(--muted);
    line-height: 1.75;
}

.app-floating-actions {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 2400;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.app-floating-action {
    position: relative;
}

[dir="rtl"] .app-floating-actions {
    right: auto;
    left: 24px;
    align-items: flex-start;
}

.app-floating-notification .notification-bell-button {
    width: 52px;
    height: 52px;
    border-color: rgba(20, 184, 166, .32);
    background: rgba(8, 12, 20, .86);
    box-shadow: 0 12px 32px rgba(0,0,0,.25);
}

.app-floating-notification .notification-bell-button:hover {
    background: rgba(17, 24, 39, .94);
}

.app-floating-notification .notification-dropdown {
    margin-bottom: 8px;
}

.support-floating-button {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5EEAD4, #14B8A6, #2563EB);
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 32px rgba(0,0,0,.25);
    text-decoration: none;
    font-size: 1.5rem;
}

.support-floating-button:hover {
    color: #111;
    filter: brightness(1.05);
}

.support-timeline {
    display: grid;
    gap: 1rem;
}

.support-message {
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 1rem;
    background: rgba(13, 17, 26, .78);
}

.support-message.staff {
    border-color: rgba(20,184,166,.28);
    background: rgba(20,184,166,.08);
}

.support-message.internal {
    border-color: rgba(245,158,11,.42);
    background: rgba(245,158,11,.12);
}

.support-message-text {
    white-space: pre-wrap;
    color: var(--text);
}

@media (min-width: 992px) {
    body:not(.auth-page) {
        display: flex;
    }

    body:not(.auth-page) main {
        flex-grow: 1;
        min-width: 0;
        padding: 2rem;
    }
}

@media (max-width: 991.98px) {
    body:not(.auth-page) main {
        padding: 1rem;
    }

    .app-topbar {
        position: sticky;
        top: 0;
        z-index: 1030;
    }

    .auth-shell {
        padding: 1rem;
    }

    .auth-shell-split {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 26px;
    }

    .auth-trial-panel {
        padding: 26px;
    }
}

@media (max-width: 575px) {
    .auth-trial-flow {
        grid-template-columns: 1fr;
    }
}

/* Shared notification bell/dropdown styles. Page-level notification styles live in ordinavo-mobile.css. */
.notification-bell {
    position: relative;
    z-index: 2600;
}

.notification-bell-button {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .08);
    color: #f8fafc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.notification-bell-button:hover {
    border-color: rgba(20, 184, 166, .55);
    color: #ffd75e;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: .72rem;
    font-weight: 850;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border: 2px solid #111827;
}

.notification-dropdown {
    width: min(420px, calc(100vw - 28px));
    border: 1px solid rgba(15, 23, 42, .10);
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .20);
    overflow: hidden;
    padding: 0;
    z-index: 2700;
}

.notification-bell .dropdown-menu.show {
    z-index: 2700;
}

.notification-dropdown-header {
    padding: 16px 18px;
    border-bottom: 1px solid rgba(15, 23, 42, .08);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    background: #fff;
}

.notification-dropdown-header strong {
    display: block;
    color: #0f172a;
    font-weight: 850;
}

.notification-dropdown-header span {
    color: #64748b;
    font-size: .85rem;
}

.notification-dropdown-header a {
    color: #9a7614;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.notification-list {
    max-height: 430px;
    overflow: auto;
    background: #fff;
}

.notification-item {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 18px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid rgba(15, 23, 42, .06);
}

.notification-item:hover {
    background: #f8fafc;
}

.notification-icon {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.notification-icon.info {
    background: rgba(37, 99, 235, .12);
    color: #1d4ed8;
}

.notification-icon.success {
    background: rgba(22, 163, 74, .12);
    color: #15803d;
}

.notification-icon.warning {
    background: rgba(20, 184, 166, .16);
    color: #967117;
}

.notification-icon.critical {
    background: rgba(220, 38, 38, .12);
    color: #b91c1c;
}

.notification-title {
    display: block;
    font-weight: 850;
    color: #0f172a;
    margin-bottom: 2px;
}

.notification-message {
    display: block;
    color: #64748b;
    font-size: .88rem;
    line-height: 1.45;
}

.notification-meta {
    display: block;
    margin-top: 6px;
    color: #94a3b8;
    font-size: .76rem;
    font-weight: 750;
}

.notification-dropdown-footer {
    padding: 12px 18px;
    background: #f8fafc;
}

.notification-empty {
    padding: 28px 20px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.notification-empty i {
    color: #14B8A6;
    font-size: 2rem;
}

.notification-empty strong {
    color: #0f172a;
}

.notification-empty span {
    color: #64748b;
}

