/* =====================================================================
   Odyssey 360 — Premium Design System
   Custom-built for an international immigration consultancy platform.
   Not a Bootstrap-template look: muted palette, restrained radius/shadow,
   disciplined type scale, generous whitespace, color used only to signal
   status.
   ===================================================================== */

:root{
  /* --- Core palette ---
     Rebranded to Odyssey 360's actual logo palette: a muted slate-blue
     (#5a6492, sampled from the wordmark) and a pale periwinkle
     (#d5daf1, sampled from the world-map fill), on a white/near-white
     canvas -- the "60% white / 30% blue" balance the brand asks for,
     with --navy kept as a deliberately dark tone reserved for small,
     high-contrast accents only (role badges, the login hero panel) so
     it never dominates a screen the way the old near-black sidebar did. */
  --navy:          #0a1224;   /* reserved for small dark accents only (badges, login hero) — NOT the sidebar anymore */
  --navy-2:        #121b34;
  --navy-border:   #1e2843;

  --accent:        #4d5680;   /* primary action blue, from the logo wordmark */
  --accent-dark:   #383f60;
  --accent-tint:   #eef0fa;   /* pale periwinkle tint, from the logo's map fill */
  --violet:        #7c6fd6;   /* secondary categorical color, used sparingly */

  /* --- Sidebar / brand surface --- white-dominant, blue accents only on
     hover/active states -- replaces the old near-black sidebar. */
  --sidebar-bg:         #ffffff;
  --sidebar-bg-hover:   #eef0fa;
  --sidebar-border:     #e6e8f5;
  --sidebar-text:       #4b5468;
  --sidebar-text-strong:#1e2542;

  /* --- Status (subtle, text-forward, not filled-bright) --- */
  --success:       #0f8a54;  --success-bg: #ecfdf3;  --success-bd:#b7e8cd;
  --warning:       #b5720a;  --warning-bg: #fff8ea;  --warning-bd:#f3d99a;
  --danger:        #c4362b;  --danger-bg:  #fdf1f0;  --danger-bd: #f2c3bd;
  --info:          #4d5680;  --info-bg:    #eef0fa;  --info-bd:   #ccd2ea;
  --neutral:       #667085;  --neutral-bg: #f3f4f6;  --neutral-bd:#e2e4e9;

  /* --- Neutrals / surfaces --- */
  --canvas:        #f7f8fc;
  --surface:       #ffffff;
  --border:        #e6e8ec;
  --border-strong: #d7dae0;

  --text-primary:   #101828;
  --text-secondary: #4b5468;
  --text-tertiary:  #8a93a6;
  --text-on-navy:   #c7cede;
  --text-on-navy-strong: #ffffff;

  /* --- Structure --- */
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 10px;
  --sidebar-w: 236px;
  --shadow-1: 0 1px 2px rgba(16,24,40,.05);
  --shadow-2: 0 2px 8px rgba(16,24,40,.06);
}

*{box-sizing:border-box;}
html{-webkit-font-smoothing:antialiased;}
body{
  background:var(--canvas);
  font-family:var(--brand-font-family,"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif);
  color:var(--text-primary);
  font-size:var(--brand-font-size,.875rem);
  line-height:1.5;
}
a{text-decoration:none;color:var(--accent);}
a:hover{color:var(--accent-dark);}
::selection{background:var(--accent-tint);}

/* ---------- Typography scale ---------- */
.t-page-title{font-size:1.3125rem;font-weight:700;letter-spacing:-.01em;color:var(--text-primary);line-height:1.3;}
.t-section-title{font-size:.9375rem;font-weight:600;color:var(--text-primary);}
.t-card-title{font-size:.8125rem;font-weight:600;color:var(--text-primary);}
.t-eyebrow{font-size:.6875rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--text-tertiary);}
.text-muted-sm{font-size:.75rem;color:var(--text-tertiary);}
.text-secondary{color:var(--text-secondary) !important;}

/* ---------- Sidebar ---------- */
.odyssey-sidebar{
  position:fixed;top:0;left:0;bottom:0;width:var(--sidebar-w);
  background:var(--sidebar-bg);
  color:var(--sidebar-text);z-index:1030;display:flex;flex-direction:column;
  transition:transform .18s ease;border-right:1px solid var(--sidebar-border);
  box-shadow:1px 0 0 var(--sidebar-border);
}
.odyssey-sidebar .brand{
  display:flex;align-items:center;gap:.65rem;padding:1.15rem 1.15rem 1rem;
  border-bottom:1px solid var(--sidebar-border);margin-bottom:.5rem;
}
.odyssey-sidebar .brand .logo-mark{
  width:30px;height:30px;border-radius:6px;background:var(--accent);
  display:flex;align-items:center;justify-content:center;font-weight:700;color:#fff;font-size:.85rem;
  letter-spacing:0;
}
.odyssey-sidebar .brand .brand-text{color:var(--text-primary);font-weight:600;letter-spacing:.02em;font-size:.875rem;line-height:1.2;}
.odyssey-sidebar .brand .brand-sub{font-size:.950rem;color:white;text-transform:uppercase;letter-spacing:.07em;margin-top:1px;margin-left: 20px;}
.odyssey-nav{padding:0 .6rem;overflow-y:auto;flex:1;}
.odyssey-nav .nav-section-label{font-size:.625rem;text-transform:uppercase;letter-spacing:.07em;color:var(--text-tertiary);padding:1rem .7rem .35rem;font-weight:600;}
.odyssey-nav a.nav-link{
  display:flex;align-items:center;gap:.65rem;color:var(--sidebar-text);padding:.5rem .7rem;border-radius:6px;
  font-size:.8125rem;font-weight:500;margin-bottom:1px;position:relative;
}
.odyssey-nav a.nav-link i{width:16px;text-align:center;font-size:.85rem;opacity:.75;}
/* Deliberately --sidebar-text-strong here, NOT --accent: when a custom
   brand_color is set, --accent equals the SAME color the sidebar
   background is derived from, so accent-colored text on top of the
   (slightly darkened) accent-colored hover background loses almost all
   contrast -- effectively invisible. --sidebar-text-strong is computed
   specifically for readability against --sidebar-bg/--sidebar-bg-hover
   (see app/utils/color.py's readable_text_color()), so this stays
   legible no matter what color is picked. */
.odyssey-nav a.nav-link:hover{background:var(--sidebar-bg-hover);color:var(--sidebar-text-strong);}
.odyssey-nav a.nav-link.active{background:var(--sidebar-bg-hover);color:var(--sidebar-text-strong);font-weight:600;}
.odyssey-nav a.nav-link.active::before{
  content:"";position:absolute;left:-.6rem;top:.35rem;bottom:.35rem;width:3px;
  background:var(--sidebar-text-strong);border-radius:0 3px 3px 0;
}
.odyssey-nav a.nav-link.active i{opacity:1;color:var(--sidebar-text-strong);}
.odyssey-sidebar .side-foot{padding:.85rem 1.15rem;border-top:1px solid var(--sidebar-border);font-size:.6875rem;color:var(--text-tertiary);}

/* ---------- Topbar ---------- */
.odyssey-topbar{
  margin-left:var(--sidebar-w);height:60px;background:var(--surface);border-bottom:1px solid var(--border);
  display:flex;align-items:center;justify-content:space-between;padding:0 1.5rem;position:sticky;top:0;z-index:1020;
}
.odyssey-topbar .search-box{position:relative;width:300px;}
.odyssey-topbar .search-box input{
  border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--canvas);
  padding-left:2.1rem;font-size:.8125rem;height:36px;
}
.odyssey-topbar .search-box input:focus{background:var(--surface);border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-tint);}
.odyssey-topbar .search-box i{position:absolute;left:.75rem;top:50%;transform:translateY(-50%);color:var(--text-tertiary);font-size:.8rem;}

/* Global search results dropdown (Round 7) -- topbar search-box */
.o-search-results{position:absolute;top:calc(100% + 6px);left:0;right:0;background:var(--surface);
  border:1px solid var(--border);border-radius:var(--radius);box-shadow:0 12px 28px rgba(16,24,40,.14);
  max-height:360px;overflow-y:auto;z-index:1030;}
.o-search-results .o-search-group-label{font-size:.68rem;font-weight:700;text-transform:uppercase;
  letter-spacing:.03em;color:var(--text-tertiary);padding:.5rem .85rem .2rem;}
.o-search-results a.o-search-result{display:block;padding:.5rem .85rem;text-decoration:none;color:var(--text-primary);}
.o-search-results a.o-search-result:hover,.o-search-results a.o-search-result.is-active{background:var(--canvas);}
.o-search-results .o-search-result-label{font-size:.8125rem;font-weight:600;}
.o-search-results .o-search-result-sublabel{font-size:.72rem;color:var(--text-tertiary);}
.o-search-results .o-search-empty{padding:.75rem .85rem;font-size:.8rem;color:var(--text-tertiary);}
.odyssey-topbar .icon-btn{
  width:34px;height:34px;border-radius:var(--radius-sm);display:flex;align-items:center;justify-content:center;
  background:transparent;color:var(--text-secondary);position:relative;border:1px solid transparent;
}
.odyssey-topbar .icon-btn:hover{background:var(--canvas);border-color:var(--border);}
.odyssey-topbar .icon-btn .dot{position:absolute;top:6px;right:7px;width:6px;height:6px;background:var(--danger);border-radius:50%;border:2px solid #fff;}
/* Base avatar circle -- previously only defined scoped to the topbar
   (32px); the larger avatars already used on Client 360 / Application
   Details headers (56px) relied on inline width/height alone with no
   circle/background from any class. Adding the un-scoped base rule here
   is a pure visual fix (round shape + navy background + centered text),
   not a functional change -- .odyssey-topbar .avatar below still wins on
   size/font-size for the topbar via normal CSS specificity. */
.avatar{
  border-radius:50%;background:var(--accent);color:#fff;
  display:flex;align-items:center;justify-content:center;font-weight:600;
}
.odyssey-topbar .avatar{
  width:32px;height:32px;border-radius:50%;background:var(--accent);color:#fff;
  display:flex;align-items:center;justify-content:center;font-weight:600;font-size:.72rem;
}

/* ---------- Content shell ---------- */
.odyssey-content{margin-left:var(--sidebar-w);padding:1.75rem 2rem 3rem;min-height:calc(100vh - 60px);}
.page-header{display:flex;flex-wrap:wrap;gap:.75rem;justify-content:space-between;align-items:flex-end;margin-bottom:1.5rem;}
.page-header h4{font-weight:700;margin:0;color:var(--text-primary);font-size:1.3125rem;letter-spacing:-.01em;}
.page-header .breadcrumb-sub{font-size:.75rem;color:var(--text-tertiary);margin-bottom:.2rem;font-weight:500;}

/* ---------- Cards ---------- */
.o-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-1);}
.o-card .o-card-header{
  padding:.9rem 1.15rem;border-bottom:1px solid var(--border);font-weight:600;font-size:.8125rem;
  color:var(--text-primary);display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.5rem;
}
.o-card .o-card-header .small{font-weight:500;}
.o-card .o-card-body{padding:1.15rem;}

/* Chart.js canvases: Chart.js's default responsive:true sizes the canvas
   to fill its immediate parent, but .o-card-body itself has no defined
   height (only padding) -- with nothing to fill, the canvas collapses to
   0px tall and nothing draws. Every chart canvas must be wrapped in
   .chart-wrap, which gives Chart.js a real box (position:relative +
   fixed height) to size against. See templates/master/dashboard.html. */
.chart-wrap{position:relative;height:260px;width:100%;}

/* ---------- Calendar (Round 6) ---------- */
.o-calendar-weekday-row{display:grid;grid-template-columns:repeat(7,1fr);border-bottom:1px solid var(--border);}
.o-calendar-weekday{padding:.6rem;text-align:center;font-size:.75rem;font-weight:600;color:var(--text-tertiary);text-transform:uppercase;}
.o-calendar-week{display:grid;grid-template-columns:repeat(7,1fr);}
.o-calendar-day{min-height:110px;border-right:1px solid var(--border);border-bottom:1px solid var(--border);padding:.4rem;overflow:hidden;}
.o-calendar-day:nth-child(7n){border-right:none;}
.o-calendar-day.is-outside{background:var(--canvas);opacity:.55;}
.o-calendar-day.is-today{background:var(--purple-bg,#f3eeff);}
.o-calendar-day-num{font-size:.8rem;font-weight:600;color:var(--text-secondary);margin-bottom:.25rem;}
.o-calendar-appt{display:block;font-size:.68rem;padding:.15rem .35rem;margin-bottom:.2rem;border-radius:4px;text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
@media (max-width: 768px){
  .o-calendar-day{min-height:70px;font-size:.7rem;}
  .o-calendar-appt{font-size:.6rem;}
}

.stat-card{
  background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);
  padding:1rem 1.1rem;box-shadow:var(--shadow-1);
}
.stat-card .stat-label{font-size:.6875rem;color:var(--text-tertiary);text-transform:uppercase;letter-spacing:.05em;font-weight:600;}
.stat-card .stat-value{font-size:1.375rem;font-weight:700;color:var(--text-primary);margin-top:.3rem;letter-spacing:-.01em;}
.stat-card .stat-trend{font-size:.6875rem;margin-top:.35rem;font-weight:500;color:var(--text-tertiary);}
.stat-card .stat-trend.text-up{color:var(--success);}
.stat-card .stat-trend.text-warn{color:var(--warning);}
.stat-card-highlight{background:var(--accent-tint);border-color:var(--info-bd);}
.stat-card-highlight .stat-value{color:var(--accent-dark);}

.legend-list .col-6{display:flex;align-items:center;gap:.4rem;margin-bottom:.4rem;color:var(--text-secondary);}
.legend-dot{width:8px;height:8px;border-radius:50%;display:inline-block;flex:none;}

.report-tile{
  border:1px solid var(--border);border-radius:var(--radius);padding:1.1rem .75rem;text-align:center;
  background:var(--surface);
}
.report-tile i{font-size:1.15rem;color:var(--accent);}

/* ---------- Action Required (client dashboard) ---------- */
.action-required{border:1px solid var(--warning-bd);background:var(--warning-bg);border-radius:var(--radius);overflow:hidden;}
.action-required-header{
  padding:.75rem 1.1rem;font-weight:600;font-size:.8125rem;color:#8a5a06;
  display:flex;align-items:center;gap:.5rem;border-bottom:1px solid var(--warning-bd);
}
.action-item{
  display:flex;align-items:center;justify-content:space-between;gap:1rem;
  padding:.85rem 1.1rem;border-bottom:1px solid var(--warning-bd);background:var(--surface);
}
.action-item:last-child{border-bottom:0;}
.action-item-title{font-weight:600;font-size:.8125rem;color:var(--text-primary);}

/* ---------- Buttons ---------- */
.btn{font-size:.8125rem;font-weight:500;border-radius:var(--radius-sm);padding:.45rem .9rem;}
.btn-odyssey{background:var(--accent);border-color:var(--accent);color:#fff;font-weight:600;}
.btn-odyssey:hover{background:var(--accent-dark);border-color:var(--accent-dark);color:#fff;}
.btn-outline-odyssey{border:1px solid var(--border-strong);color:var(--text-primary);font-weight:600;background:var(--surface);}
.btn-outline-odyssey:hover{background:var(--canvas);}
.btn-sm{font-size:.75rem;padding:.35rem .65rem;}
.btn.is-loading{position:relative;color:transparent !important;pointer-events:none;}
.btn.is-loading::after{
  content:"";position:absolute;left:50%;top:50%;width:14px;height:14px;margin:-7px 0 0 -7px;
  border-radius:50%;border:2px solid rgba(255,255,255,.5);border-top-color:#fff;animation:o-spin .6s linear infinite;
}
.btn-outline-odyssey.is-loading::after{border-color:var(--border-strong);border-top-color:var(--text-secondary);}
@keyframes o-spin{to{transform:rotate(360deg);}}

/* Bootstrap's default .btn-success/.btn-danger are used app-wide for
   confirming Approve/Reject/Cancel decisions (Review Document, Verify
   Payment, Cancel Referral, etc.) -- a solid, attention-grabbing button is
   the right call for those (unlike badges/status text, a primary decision
   button SHOULD stand out), but Bootstrap's stock green/red read brighter
   and more "generic template" than the rest of this app's restrained
   palette. Retint them to the same --success/--danger tokens already
   used everywhere else (badges, toasts, stat-card trends) so the whole
   app reads as one consistent, premium color language rather than two. */
.btn-success{background:var(--success);border-color:var(--success);}
.btn-success:hover,.btn-success:focus{background:#0c6b41;border-color:#0c6b41;}
.btn-danger{background:var(--danger);border-color:var(--danger);}
.btn-danger:hover,.btn-danger:focus{background:#a32c22;border-color:#a32c22;}

/* ---------- Badges (status communicated via subtle bg + icon, not saturated fills) ---------- */
.badge-status{
  font-weight:600;font-size:.6875rem;padding:.28em .6em;border-radius:5px;display:inline-flex;
  align-items:center;gap:.3em;border:1px solid transparent;letter-spacing:.01em;
}
.badge-approved,.badge-paid,.badge-active,.badge-verified{background:var(--success-bg);color:var(--success);border-color:var(--success-bd);}
.badge-review,.badge-pending,.badge-partial{background:var(--warning-bg);color:var(--warning);border-color:var(--warning-bd);}
.badge-rejected,.badge-overdue,.badge-inactive{background:var(--danger-bg);color:var(--danger);border-color:var(--danger-bd);}
.badge-progress,.badge-documents,.badge-processing{background:var(--info-bg);color:var(--info);border-color:var(--info-bd);}
.badge-neutral,.badge-notstarted{background:var(--neutral-bg);color:var(--neutral);border-color:var(--neutral-bd);}

.badge-approved::before,.badge-paid::before,.badge-verified::before,.badge-active::before{content:"\2713";font-weight:700;}
.badge-review::before,.badge-pending::before,.badge-partial::before{content:"\21BB";font-weight:700;}
.badge-rejected::before,.badge-overdue::before,.badge-inactive::before{content:"\2715";font-weight:700;}
.badge-neutral::before,.badge-notstarted::before{content:"!";font-weight:700;}
.badge-progress::before,.badge-documents::before,.badge-processing::before{content:"\25CF";font-size:.6em;}

/* ---------- Tables ---------- */
.table-odyssey{margin-bottom:0;}
.table-odyssey thead th{
  font-size:.6875rem;text-transform:uppercase;letter-spacing:.05em;color:var(--text-tertiary);font-weight:600;
  border-bottom:1px solid var(--border);background:transparent;padding:.7rem .9rem;white-space:nowrap;
}
.table-odyssey td{vertical-align:middle;font-size:.8125rem;border-bottom:1px solid var(--border);padding:.75rem .9rem;color:var(--text-secondary);}
.table-odyssey td .fw-semibold{color:var(--text-primary);}
.table-odyssey tbody tr:last-child td{border-bottom:0;}
.table-odyssey tbody tr:hover{background:var(--canvas);}
.table-responsive{border-radius:0 0 var(--radius) var(--radius);}

/* ---------- Stepper (application progress) ---------- */
.o-stepper{display:flex;align-items:flex-start;overflow-x:auto;padding:.5rem 0;}
.o-stepper .step{flex:1;min-width:104px;text-align:center;position:relative;}
.o-stepper .step .circle{
  width:28px;height:28px;border-radius:50%;background:var(--neutral-bg);color:var(--text-tertiary);
  display:flex;align-items:center;justify-content:center;margin:0 auto .4rem;font-size:.75rem;font-weight:700;
  position:relative;z-index:2;border:1px solid var(--border);
}
.o-stepper .step.done .circle{background:var(--success);color:#fff;border-color:var(--success);}
.o-stepper .step.current .circle{background:var(--accent);color:#fff;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-tint);}
.o-stepper .step:not(:last-child)::after{content:"";position:absolute;top:14px;left:55%;width:100%;height:1px;background:var(--border);z-index:1;}
.o-stepper .step.done:not(:last-child)::after{background:var(--success-bd);}
.o-stepper .step .label{font-size:.6875rem;font-weight:600;color:var(--text-secondary);}
.o-stepper .step.current .label{color:var(--text-primary);}
.o-stepper .step .date{font-size:.625rem;color:var(--text-tertiary);}

/* ---------- Vertical timeline ---------- */
.o-timeline{position:relative;padding-left:1.9rem;}
.o-timeline::before{content:"";position:absolute;left:.62rem;top:.3rem;bottom:.3rem;width:1px;background:var(--border);}
.o-timeline .t-item{position:relative;padding-bottom:1.3rem;}
.o-timeline .t-dot{
  position:absolute;left:-1.9rem;top:0;width:20px;height:20px;border-radius:50%;background:var(--neutral-bg);
  color:var(--text-tertiary);display:flex;align-items:center;justify-content:center;font-size:.625rem;
  border:1px solid var(--border);
}
.o-timeline .t-item.done .t-dot{background:var(--success);color:#fff;border-color:var(--success);}
.o-timeline .t-item.current .t-dot{background:var(--accent);color:#fff;border-color:var(--accent);}
.o-timeline .t-title{font-weight:600;font-size:.8125rem;color:var(--text-primary);}
.o-timeline .t-meta{font-size:.6875rem;color:var(--text-tertiary);margin-top:1px;}

/* ---------- Progress ring ---------- */
.o-ring{width:96px;height:96px;border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 auto;background:conic-gradient(var(--success) var(--ring-pct,60%), var(--neutral-bg) 0);}
.o-ring .o-ring-inner{width:74px;height:74px;border-radius:50%;background:var(--surface);display:flex;flex-direction:column;align-items:center;justify-content:center;}
.o-ring .o-ring-inner .pct{font-weight:700;font-size:1.05rem;color:var(--text-primary);}
.o-ring .o-ring-inner .lbl{font-size:.6rem;color:var(--text-tertiary);}

/* ---------- Chat / messages ---------- */
.chat-window{height:400px;overflow-y:auto;padding:1rem;background:var(--canvas);border-radius:var(--radius);}
.chat-bubble{max-width:68%;padding:.55rem .85rem;border-radius:10px;font-size:.8125rem;margin-bottom:.85rem;}
.chat-bubble.in{background:var(--surface);border:1px solid var(--border);border-bottom-left-radius:2px;color:var(--text-secondary);}
.chat-bubble.out{background:var(--accent);color:#fff;margin-left:auto;border-bottom-right-radius:2px;}
.chat-meta{font-size:.625rem;color:var(--text-tertiary);margin-top:.2rem;}
.chat-bubble.out .chat-meta{color:rgba(255,255,255,.7);}

/* ---------- Empty / loading states ---------- */
.o-empty{text-align:center;padding:2.5rem 1rem;color:var(--text-tertiary);}
.o-empty i{font-size:1.75rem;margin-bottom:.6rem;display:block;opacity:.6;}
.skeleton{background:linear-gradient(90deg,var(--border) 25%,#f0f1f4 37%,var(--border) 63%);background-size:400% 100%;animation:o-shimmer 1.4s ease infinite;border-radius:4px;}
@keyframes o-shimmer{0%{background-position:100% 50%;}100%{background-position:0 50%;}}

/* ---------- Auth split screen ----------
   The visual panel is CSS-only (a deep navy gradient + a faint dot-grid
   texture + an oversized monogram watermark) -- no external image. This
   app is deployed on local/office networks that may have no internet
   access (see base.html's comment on why Bootstrap/jQuery/fonts are all
   vendored locally too), so a stock photo pulled from an external CDN at
   render time would silently show as a broken/blank panel offline. It
   also reads as more "premium enterprise CRM" than a generic stock photo. */
.auth-wrap{min-height:100vh;display:flex;}
.auth-visual{
  flex:1;position:relative;overflow:hidden;
  background:
    radial-gradient(circle at 15% 15%, rgba(41,82,204,.35), transparent 45%),
    linear-gradient(160deg, #0d1730 0%, #0a1224 55%, #070c19 100%);
  display:flex;align-items:flex-end;padding:3rem;color:#fff;
}
.auth-visual::before{
  content:"";position:absolute;inset:0;opacity:.5;pointer-events:none;
  background-image:radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px);
  background-size:26px 26px;
}
.auth-visual-monogram{
  position:absolute;right:-2.5rem;top:-3.5rem;font-size:24rem;font-weight:800;line-height:1;
  color:rgba(255,255,255,.035);letter-spacing:-.04em;pointer-events:none;user-select:none;
}
.auth-visual-copy{position:relative;z-index:1;}
.auth-form-side{width:440px;display:flex;align-items:center;justify-content:center;background:var(--surface);}
.auth-card{width:100%;max-width:328px;}

/* ---------- Misc ---------- */
.role-chip{font-size:.625rem;font-weight:600;padding:.22em .55em;border-radius:5px;letter-spacing:.02em;}
.role-master{background:var(--navy);color:#fff;}
.role-admin{background:var(--info-bg);color:var(--info);}
.role-client{background:var(--success-bg);color:var(--success);}
.section-nav{border-bottom:1px solid var(--border);}
.section-nav .nav-link{font-size:.8125rem;font-weight:600;color:var(--text-tertiary);border-bottom:2px solid transparent;padding:.65rem .2rem;margin-right:1.4rem;border-radius:0;}
.section-nav .nav-link.active{color:var(--accent);border-color:var(--accent);background:none;}
.progress{background:var(--neutral-bg);border-radius:4px;}
.progress-bar{background:var(--accent);}
.progress-bar.bg-success{background:var(--success) !important;}
.form-control,.form-select{
  font-size:.8125rem;border-color:var(--border-strong);border-radius:var(--radius-sm);color:var(--text-primary);
}
.form-control:focus,.form-select:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-tint);}
.form-label{font-size:.75rem;font-weight:600;color:var(--text-secondary);}
.modal-content{border-radius:var(--radius-lg);border:1px solid var(--border);box-shadow:0 10px 30px rgba(16,24,40,.12);}
.modal-header{border-bottom:1px solid var(--border);padding:.9rem 1.15rem;}
.modal-footer{border-top:1px solid var(--border);padding:.85rem 1.15rem;}
.modal-body{padding:1.15rem;}
.dropdown-menu{border-radius:var(--radius);border:1px solid var(--border);box-shadow:var(--shadow-2);}
.pagination .page-link{font-size:.75rem;color:var(--text-secondary);border-color:var(--border);}
.pagination .page-item.active .page-link{background:var(--accent);border-color:var(--accent);}
.toast{border-radius:var(--radius);border:1px solid var(--border);}

/* Bootstrap's default .alert-success/-danger/-warning/-info are only used
   pre-login (flash messages on the auth screens, which render before the
   app's own .o-toast system is available) and for a couple of static
   informational notes elsewhere. Retint them to the same subtle
   tint-bg + colored-text + soft-border language as badges/toasts instead
   of Bootstrap's default solid-ish fills, so a user sees one consistent
   "how this app communicates status" visual language everywhere,
   including the very first screen they land on. */
.alert{border-radius:var(--radius);font-size:.8125rem;border-width:1px;}
.alert-success{background:var(--success-bg);color:var(--success);border-color:var(--success-bd);}
.alert-danger{background:var(--danger-bg);color:var(--danger);border-color:var(--danger-bd);}
.alert-warning{background:var(--warning-bg);color:var(--warning);border-color:var(--warning-bd);}
.alert-info{background:var(--info-bg);color:var(--info);border-color:var(--info-bd);}

/* --- Professional toast/alert popups (Round 6) ---
   Replaces Bootstrap's default solid-fill text-bg-* toast look (a flat
   colored block) with a white card, left accent border, and a status
   icon -- matching the same "subtle, text-forward" status language
   already used everywhere else in this app (badge-status, stat-card,
   alert-*). Still uses real Bootstrap .toast markup/JS underneath (same
   data-bs-dismiss + bootstrap.Toast() show/hide/auto-hide behavior) --
   only the visual layer changes, so no JS behavior had to be reimplemented. */
.toast-container{z-index:1080;}
.o-toast{display:flex;align-items:flex-start;gap:.7rem;background:var(--surface);
  border:1px solid var(--border);border-left:4px solid var(--info);border-radius:var(--radius-lg);
  box-shadow:0 12px 28px rgba(16,24,40,.14);padding:.8rem .95rem;min-width:320px;max-width:380px;
  animation:oToastIn .22s ease-out;}
.o-toast.o-toast-success{border-left-color:var(--success);}
.o-toast.o-toast-danger{border-left-color:var(--danger);}
.o-toast.o-toast-warning{border-left-color:var(--warning);}
.o-toast-icon{flex:0 0 30px;width:30px;height:30px;border-radius:50%;display:flex;align-items:center;
  justify-content:center;font-size:.95rem;background:var(--info-bg);color:var(--info);}
.o-toast.o-toast-success .o-toast-icon{background:var(--success-bg);color:var(--success);}
.o-toast.o-toast-danger .o-toast-icon{background:var(--danger-bg);color:var(--danger);}
.o-toast.o-toast-warning .o-toast-icon{background:var(--warning-bg);color:var(--warning);}
.o-toast-body{flex:1 1 auto;min-width:0;padding-top:1px;}
.o-toast-title{font-weight:700;font-size:.82rem;color:var(--text-primary);margin-bottom:1px;}
.o-toast-message{font-size:.8rem;color:var(--text-secondary);line-height:1.42;word-wrap:break-word;}
.o-toast-close{flex:0 0 auto;border:none;background:transparent;color:var(--text-tertiary);
  font-size:.9rem;line-height:1;padding:2px;margin:-2px -2px 0 0;cursor:pointer;border-radius:4px;}
.o-toast-close:hover{color:var(--text-primary);background:var(--canvas);}
@keyframes oToastIn{from{opacity:0;transform:translateY(10px);}to{opacity:1;transform:translateY(0);}}

@media (max-width:991px){
  .odyssey-sidebar{transform:translateX(-100%);box-shadow:0 0 0 100vmax rgba(0,0,0,0);}
  .odyssey-sidebar.show{transform:translateX(0);box-shadow:0 0 40px rgba(0,0,0,.25);}
  .odyssey-topbar,.odyssey-content{margin-left:0;}
  .odyssey-content{padding:1.25rem 1rem 2.5rem;}
  .auth-visual{display:none;}
  .auth-form-side{width:100%;}
}

/* Round 6 mobile responsiveness pass -- the sidebar/topbar collapse above
   already existed and works; these close the remaining gaps found on a
   code-level audit (no real device/browser available to screenshot in
   this sandbox, so verified structurally + against Bootstrap's own
   documented breakpoint behavior instead):
   - Modal forms throughout the app pair two fields per row with bare
     `.col-6` (no responsive prefix), which stays 50%-width at every
     screen size including small phones -- fine on a tablet, cramped
     below ~480px. Stack those to full width there.
   - The Dashboard's Revenue vs Expenses date-range filter (Round 6) is a
     single-line flex row (two date inputs + Apply button) that doesn't
     naturally wrap; let it wrap and go full-width below ~576px. */
@media (max-width:480px){
  .modal .row.g-3 > .col-6,
  .modal .row.g-2 > .col-6{flex:0 0 100%;max-width:100%;}
}
@media (max-width:576px){
  .o-card-header form.d-flex{flex-wrap:wrap;width:100%;}
  .o-card-header form.d-flex input[type="date"]{width:auto !important;flex:1 1 120px;}
}
