/* ==========================================================================
   Ellora ERP design system
   Palette derived from the Ellora logo (cool slate #989DA3 with a white mark):
   a slate scale at the logo's hue, one steel-blue accent for actions, and
   soft status colours. Bootstrap 5.3 is themed through its CSS variables.
   ========================================================================== */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../../vendor/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
}

:root {
  /* Slate scale (logo hue ~213deg) */
  --el-ink-900: #1b2129;
  --el-ink-800: #242b34;
  --el-ink-700: #323a45;
  --el-slate-600: #4d5764;
  --el-slate-500: #6a737f;
  --el-slate-400: #989da3;   /* logo */
  --el-slate-300: #c3c7cc;
  --el-slate-200: #dfe2e6;
  --el-slate-100: #eef0f3;
  --el-slate-50:  #f6f7f9;

  /* Accent - steel blue, used for primary actions and links */
  --el-accent: #2f5d8a;
  --el-accent-hover: #264c71;
  --el-accent-soft: #e8eef5;
  --el-accent-rgb: 47, 93, 138;

  /* Status (text / soft background) */
  --el-success: #1d7a50;   --el-success-soft: #e3f3ea;
  --el-info: #2c5fb3;      --el-info-soft: #e5edfa;
  --el-warning: #a8620b;   --el-warning-soft: #fcf0de;
  --el-hold: #7a6510;      --el-hold-soft: #f7f1d6;
  --el-audit: #6b3fa0;     --el-audit-soft: #efe8f8;
  --el-danger: #b4332a;    --el-danger-soft: #fbe7e5;
  --el-neutral: #4d5764;   --el-neutral-soft: #eef0f3;

  --el-radius: 10px;
  --el-radius-sm: 6px;
  --el-shadow: 0 1px 2px rgba(27, 33, 41, .06), 0 1px 1px rgba(27, 33, 41, .04);
  --el-shadow-lg: 0 8px 24px rgba(27, 33, 41, .12);
  --el-sidebar-w: 252px;

  /* Bootstrap theme */
  --bs-font-sans-serif: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --bs-body-font-size: .875rem;
  --bs-body-font-weight: 500;   /* Plus Jakarta Sans reads thin at 400 */
  --bs-body-color: #1f2630;
  --bs-body-bg: var(--el-slate-50);
  --bs-secondary-color: var(--el-slate-500);
  --bs-border-color: var(--el-slate-200);
  --bs-border-radius: var(--el-radius-sm);
  --bs-border-radius-lg: var(--el-radius);
  --bs-primary: var(--el-accent);
  --bs-primary-rgb: var(--el-accent-rgb);
  --bs-link-color: var(--el-accent);
  --bs-link-color-rgb: var(--el-accent-rgb);
  --bs-link-hover-color: var(--el-accent-hover);
  --bs-focus-ring-color: rgba(var(--el-accent-rgb), .25);

  /* Legacy names still used by some templates */
  --ellora-navy: var(--el-ink-800);
  --ellora-navy-light: var(--el-ink-700);
  --ellora-gold: var(--el-slate-400);
  --ellora-bg: var(--el-slate-50);
  --status-completed: var(--el-success);
  --status-pending: var(--el-warning);
  --status-inprocess: var(--el-info);
  --status-hold: var(--el-hold);
  --status-overdue: var(--el-danger);
}

body { background: var(--el-slate-50); -webkit-font-smoothing: antialiased; }
/* Figures line up in columns (tables, KPIs, dates). */
.table, .stat-card .value, .kpi-value, .progress-inline span, .badge { font-variant-numeric: tabular-nums; }
h1, h2, h3, h4, h5, h6 { color: var(--el-ink-900); font-weight: 700; letter-spacing: -.01em; }
strong, b, .fw-semibold { font-weight: 700; }
.btn, .form-label, .nav-link, .dropdown-item { font-weight: 600; }
.form-control, .form-select { font-weight: 500; }
a { text-decoration: none; }
a:hover { text-decoration: underline; }
.text-muted { color: var(--el-slate-500) !important; }
code { color: var(--el-ink-700); background: var(--el-slate-100); padding: .1em .35em; border-radius: 4px; }

/* ---------- Buttons ---------------------------------------------------- */
.btn { font-weight: 500; border-radius: var(--el-radius-sm); }
.btn-primary {
  --bs-btn-bg: var(--el-accent); --bs-btn-border-color: var(--el-accent);
  --bs-btn-hover-bg: var(--el-accent-hover); --bs-btn-hover-border-color: var(--el-accent-hover);
  --bs-btn-active-bg: var(--el-accent-hover); --bs-btn-active-border-color: var(--el-accent-hover);
  --bs-btn-disabled-bg: var(--el-accent); --bs-btn-disabled-border-color: var(--el-accent);
}
.btn-outline-primary {
  --bs-btn-color: var(--el-accent); --bs-btn-border-color: var(--el-slate-300);
  --bs-btn-hover-bg: var(--el-accent-soft); --bs-btn-hover-color: var(--el-accent-hover); --bs-btn-hover-border-color: var(--el-accent);
  --bs-btn-active-bg: var(--el-accent-soft); --bs-btn-active-color: var(--el-accent-hover);
}
.btn-outline-secondary, .btn-light {
  --bs-btn-color: var(--el-ink-700); --bs-btn-bg: #fff; --bs-btn-border-color: var(--el-slate-200);
  --bs-btn-hover-bg: var(--el-slate-100); --bs-btn-hover-color: var(--el-ink-900); --bs-btn-hover-border-color: var(--el-slate-300);
  --bs-btn-active-bg: var(--el-slate-200); --bs-btn-active-color: var(--el-ink-900);
}
.btn-outline-danger { --bs-btn-border-color: #f0c9c5; --bs-btn-color: var(--el-danger); --bs-btn-hover-bg: var(--el-danger); --bs-btn-hover-border-color: var(--el-danger); }
.btn-outline-success { --bs-btn-border-color: #bfe2cf; --bs-btn-color: var(--el-success); --bs-btn-hover-bg: var(--el-success); --bs-btn-hover-border-color: var(--el-success); }
.btn-outline-warning { --bs-btn-border-color: #f0d5ac; --bs-btn-color: var(--el-warning); --bs-btn-hover-bg: var(--el-warning); --bs-btn-hover-border-color: var(--el-warning); --bs-btn-hover-color: #fff; }
.btn-outline-info { --bs-btn-border-color: #c9d8f1; --bs-btn-color: var(--el-info); --bs-btn-hover-bg: var(--el-info); --bs-btn-hover-border-color: var(--el-info); --bs-btn-hover-color: #fff; }
.btn-icon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; }
.btn-sm.btn-icon { width: 28px; height: 28px; }

/* ---------- Forms ------------------------------------------------------- */
.form-control, .form-select { border-color: var(--el-slate-200); font-size: .875rem; }
.form-control:focus, .form-select:focus { border-color: var(--el-accent); box-shadow: 0 0 0 .2rem rgba(var(--el-accent-rgb), .15); }
.form-label { font-weight: 500; color: var(--el-ink-700); font-size: .8125rem; margin-bottom: .3rem; }
.form-text { color: var(--el-slate-500); }
.form-check-input:checked { background-color: var(--el-accent); border-color: var(--el-accent); }
.field-error, .errorlist { color: var(--el-danger); font-size: .8rem; list-style: none; padding: 0; margin: .25rem 0 0; }
.input-icon { position: relative; }
.input-icon > .bi { position: absolute; left: .7rem; top: 50%; transform: translateY(-50%); color: var(--el-slate-400); pointer-events: none; }
.input-icon > .form-control { padding-left: 2.1rem; }

/* ---------- App shell --------------------------------------------------- */
.app-sidebar {
  width: var(--el-sidebar-w); background: var(--el-ink-900); color: #c9ced5;
  position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; z-index: 1030;
}
.app-sidebar .brand { display: flex; align-items: center; gap: .75rem; padding: 1.1rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,.06); }
.app-sidebar .brand img { height: 34px; width: auto; }
.app-sidebar .brand-text { line-height: 1.15; }
.app-sidebar .brand-text strong { color: #fff; font-size: .95rem; letter-spacing: .04em; white-space: nowrap; }
.app-sidebar .brand-text small { display: block; color: var(--el-slate-400); font-size: .7rem; }
.app-sidebar .version-tag { margin-left: auto; align-self: flex-start; font-size: .62rem; font-weight: 700; letter-spacing: .03em; line-height: 1; color: #cfdcef; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: .28em .55em; white-space: nowrap; }
/* Scrollbar: always visible, thin, on a transparent track. */
.app-sidebar .nav-scroll {
  overflow-y: auto; flex: 1; padding: .75rem .75rem 1rem;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.22) transparent; /* Firefox */
}
.app-sidebar .nav-scroll::-webkit-scrollbar { width: 6px; }
.app-sidebar .nav-scroll::-webkit-scrollbar-track { background: transparent; }
.app-sidebar .nav-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,.22); border-radius: 6px; }
.app-sidebar .nav-scroll::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.38); }
.app-sidebar .nav-section { text-transform: uppercase; font-size: .66rem; font-weight: 600; letter-spacing: .08em; color: #7d8590; padding: .85rem .75rem .3rem; }
.app-sidebar .nav-link {
  display: flex; align-items: center; gap: .7rem; color: #c9ced5; padding: .45rem .75rem;
  border-radius: var(--el-radius-sm); font-size: .855rem; font-weight: 500; margin-bottom: 1px;
}
.app-sidebar .nav-link .bi { font-size: 1.05rem; color: #8e96a1; }
.app-sidebar .nav-link:hover { background: rgba(255,255,255,.05); color: #fff; text-decoration: none; }
.app-sidebar .nav-link.active { background: rgba(var(--el-accent-rgb), .35); color: #fff; box-shadow: inset 3px 0 0 #8fb3d9; }
.app-sidebar .nav-link.active .bi { color: #fff; }
.app-sidebar .sidebar-footer { padding: .75rem; border-top: 1px solid rgba(255,255,255,.06); }

.app-main { margin-left: var(--el-sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.app-topbar {
  position: sticky; top: 0; z-index: 1020; background: rgba(255,255,255,.92); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--el-slate-200); padding: .6rem 1.5rem; display: flex; align-items: center; gap: 1rem;
}
.app-topbar .search { flex: 1; max-width: 520px; }
.app-content { padding: 1.5rem; flex: 1; }
.app-content > .container-narrow { max-width: 880px; margin: 0 auto; }

.user-chip { display: flex; align-items: center; gap: .6rem; background: none; border: 0; padding: .25rem .4rem; border-radius: var(--el-radius-sm); }
.user-chip:hover { background: var(--el-slate-100); }
.user-chip .meta { text-align: left; line-height: 1.15; }
.user-chip .meta strong { display: block; font-size: .83rem; color: var(--el-ink-900); }
.user-chip .meta small { color: var(--el-slate-500); font-size: .72rem; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--el-accent-soft); color: var(--el-accent); font-weight: 600; font-size: .78rem; flex-shrink: 0;
}
.avatar-sm { width: 26px; height: 26px; font-size: .68rem; }

@media (max-width: 991.98px) {
  .app-sidebar { transform: translateX(-100%); transition: transform .2s ease; }
  .app-sidebar.show { transform: none; box-shadow: var(--el-shadow-lg); }
  .app-main { margin-left: 0; }
  .app-content { padding: 1rem; }
  .app-topbar { padding: .5rem 1rem; }
  .sidebar-backdrop { position: fixed; inset: 0; background: rgba(27,33,41,.4); z-index: 1025; display: none; }
  .sidebar-backdrop.show { display: block; }
}

/* ---------- Page header -------------------------------------------------- */
.page-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .75rem; margin-bottom: 1.25rem; }
.page-header h1 { font-size: 1.35rem; margin: 0; }
.page-header .subtitle { color: var(--el-slate-500); margin: .2rem 0 0; font-size: .85rem; }
.page-header .actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.breadcrumb { font-size: .78rem; margin-bottom: .35rem; --bs-breadcrumb-divider-color: var(--el-slate-400); }
.breadcrumb a { color: var(--el-slate-500); }

/* ---------- Cards ------------------------------------------------------- */
.card {
  /* Keep Bootstrap's inner radius in sync so headers/footers don't poke square corners past the rounded border. */
  --bs-card-border-radius: var(--el-radius); --bs-card-inner-border-radius: calc(var(--el-radius) - 1px);
  --bs-card-bg: #fff; --bs-card-cap-bg: #fff;
  border: 1px solid var(--el-slate-200); border-radius: var(--el-radius); box-shadow: var(--el-shadow); background: #fff;
}
.card > :first-child { border-top-left-radius: var(--bs-card-inner-border-radius); border-top-right-radius: var(--bs-card-inner-border-radius); }
.card > :last-child { border-bottom-left-radius: var(--bs-card-inner-border-radius); border-bottom-right-radius: var(--bs-card-inner-border-radius); }
/* Tables directly inside a card: round the corner cells to match the card. */
.card > .table-wrap:first-child thead tr:first-child th:first-child { border-top-left-radius: var(--bs-card-inner-border-radius); }
.card > .table-wrap:first-child thead tr:first-child th:last-child { border-top-right-radius: var(--bs-card-inner-border-radius); }
.card > .table-wrap:last-child tbody tr:last-child > :first-child { border-bottom-left-radius: var(--bs-card-inner-border-radius); }
.card > .table-wrap:last-child tbody tr:last-child > :last-child { border-bottom-right-radius: var(--bs-card-inner-border-radius); }
.card-header { background: #fff; border-bottom: 1px solid var(--el-slate-200); padding: .85rem 1.1rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.card-header h2, .card-title { font-size: .95rem; margin: 0; font-weight: 600; color: var(--el-ink-900); }
.card-body { padding: 1.1rem; }
.section-title { font-weight: 600; color: var(--el-ink-900); font-size: .95rem; }

/* KPI / stat cards */
.stat-card { padding: 1rem 1.1rem; display: flex; flex-direction: row; align-items: flex-start; justify-content: space-between; gap: .75rem; height: 100%; }
.stat-card .label { font-size: .75rem; color: var(--el-slate-500); font-weight: 600; }
.stat-card .value { font-size: 1.6rem; font-weight: 700; color: var(--el-ink-900); line-height: 1.2; margin-top: .2rem; }
.stat-card .hint { font-size: .74rem; color: var(--el-slate-500); margin-top: .15rem; }
.stat-card .icon { width: 38px; height: 38px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; background: var(--el-slate-100); color: var(--el-slate-600); flex-shrink: 0; }
.stat-card.tone-success .icon { background: var(--el-success-soft); color: var(--el-success); }
.stat-card.tone-info .icon    { background: var(--el-info-soft); color: var(--el-info); }
.stat-card.tone-warning .icon { background: var(--el-warning-soft); color: var(--el-warning); }
.stat-card.tone-hold .icon    { background: var(--el-hold-soft); color: var(--el-hold); }
.stat-card.tone-audit .icon   { background: var(--el-audit-soft); color: var(--el-audit); }
.month-picker .form-select { width: auto; }
.stat-card.tone-danger .icon  { background: var(--el-danger-soft); color: var(--el-danger); }
.stat-card.tone-accent .icon  { background: var(--el-accent-soft); color: var(--el-accent); }
a.stat-link { color: inherit; display: block; height: 100%; }
a.stat-link:hover { text-decoration: none; }
a.stat-link:hover .card { border-color: var(--el-slate-300); box-shadow: var(--el-shadow-lg); }

/* legacy KPI markup */
.kpi-card { border-left: 0; }
.kpi-value { font-size: 1.6rem; font-weight: 650; color: var(--el-ink-900); }
.kpi-label { font-size: .74rem; color: var(--el-slate-500); font-weight: 500; }

/* ---------- Filter bar --------------------------------------------------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding: .75rem 1rem; border-bottom: 1px solid var(--el-slate-200); }
.filter-bar .form-control, .filter-bar .form-select { width: auto; min-width: 150px; }
.filter-bar .grow { flex: 1 1 240px; min-width: 200px; }
.filter-bar .grow .form-control { width: 100%; }
.filter-chips { display: flex; flex-wrap: wrap; gap: .35rem; }

/* ---------- Tables -------------------------------------------------------- */
.table { --bs-table-color: var(--bs-body-color); --bs-table-bg: transparent; --bs-table-border-color: var(--el-slate-200); margin-bottom: 0; font-size: .845rem; }
.data-table tbody tr:last-child > * { border-bottom: 0; }
.table > :not(caption) > * > * { padding: .65rem .85rem; }
.table thead th {
  background: var(--el-slate-50); color: var(--el-slate-500); font-weight: 600; font-size: .72rem;
  text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; border-bottom-width: 1px;
}
.table tbody tr:hover > * { background: #fafbfc; }
.table td, .table th { vertical-align: middle; }
.table-wrap { overflow-x: auto; }
.table-wrap.sticky-head thead th { position: sticky; top: 0; z-index: 1; }
/* Fixed-height scrolling card body - keeps side-by-side cards the same height. */
.card-scroll { height: 384px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--el-slate-300) transparent; }
.card-scroll::-webkit-scrollbar { width: 6px; }
.card-scroll::-webkit-scrollbar-thumb { background: var(--el-slate-300); border-radius: 6px; }
.card-scroll thead th { position: sticky; top: 0; z-index: 1; }
@media (max-width: 767.98px) { .card-scroll { height: auto; max-height: 520px; } }
.data-table td.num, .data-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table td.actions { text-align: right; white-space: nowrap; width: 1%; }
.data-table .cell-main { font-weight: 650; color: var(--el-ink-900); }
.data-table .cell-sub { color: var(--el-slate-500); font-size: .78rem; }
.data-table .truncate { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* A column that takes the leftover width and truncates its content instead of pushing others off-screen. */
.data-table td.fill { width: 100%; max-width: 0; }
.data-table.dense > :not(caption) > * > * { padding: .5rem .55rem; font-size: .8rem; }
.data-table.dense thead th { font-size: .68rem; }
.data-table td.fill .truncate { max-width: 100%; }
@media (max-width: 767.98px) {
  .data-table td.fill { max-width: none; min-width: 200px; }
  .data-table td.fill .truncate { white-space: normal; }
}
.data-table .nowrap { white-space: nowrap; }
th a.sort { color: inherit; display: inline-flex; align-items: center; gap: .25rem; }
th a.sort:hover { color: var(--el-ink-900); text-decoration: none; }
th a.sort .bi { font-size: .7rem; opacity: .5; }
th a.sort.active { color: var(--el-ink-900); }
th a.sort.active .bi { opacity: 1; }
/* legacy */
.compact-table td, .compact-table th { padding: .55rem .75rem; font-size: .84rem; }
.label-col { width: 260px; white-space: nowrap; color: var(--el-slate-500); font-weight: 500; }

/* ---------- Badges / status --------------------------------------------- */
.badge { font-weight: 600; font-size: .72rem; padding: .32em .6em; border-radius: 999px; letter-spacing: .01em; }
.badge-soft { background: var(--el-neutral-soft); color: var(--el-neutral); }
.badge-completed, .badge-soft.success { background: var(--el-success-soft); color: var(--el-success); }
.badge-inprocess, .badge-soft.info    { background: var(--el-info-soft); color: var(--el-info); }
.badge-pending, .badge-soft.warning   { background: var(--el-warning-soft); color: var(--el-warning); }
.badge-hold, .badge-soft.hold         { background: var(--el-hold-soft); color: var(--el-hold); }
.badge-audit, .badge-soft.audit       { background: var(--el-audit-soft); color: var(--el-audit); }
.badge-overdue, .badge-soft.danger    { background: var(--el-danger-soft); color: var(--el-danger); }
.badge-soft.accent                    { background: var(--el-accent-soft); color: var(--el-accent); }
.badge .dot, .status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: .35em; vertical-align: middle; }
.status-symbol { display: none; } /* replaced by the dot inside the badge */
.text-bg-light.border { background: var(--el-slate-100) !important; color: var(--el-ink-700) !important; border-color: transparent !important; }
.role-badge-super     { background: #efe7f7; color: #6b2fa0; }
.role-badge-director  { background: var(--el-accent-soft); color: var(--el-accent); }
.role-badge-adminexec { background: var(--el-info-soft); color: var(--el-info); }
.role-badge-depthead  { background: #e0f1f1; color: #1f6e6e; }
.role-badge-employee  { background: var(--el-neutral-soft); color: var(--el-neutral); }

/* Progress */
.progress { height: 6px; background: var(--el-slate-100); border-radius: 999px; }
.progress-bar { background: var(--el-accent); border-radius: 999px; }
.progress-inline { display: flex; align-items: center; gap: .5rem; min-width: 120px; }
.progress-inline .progress { flex: 1; }
.progress-inline span { font-size: .75rem; color: var(--el-slate-500); font-variant-numeric: tabular-nums; width: 3em; text-align: right; }

/* ---------- Tabs --------------------------------------------------------- */
.nav-tabs { border-bottom: 1px solid var(--el-slate-200); gap: .25rem; }
.nav-tabs .nav-link { border: 0; border-bottom: 2px solid transparent; color: var(--el-slate-500); font-weight: 500; padding: .6rem .9rem; margin-bottom: -1px; }
.nav-tabs .nav-link:hover { color: var(--el-ink-900); text-decoration: none; border-bottom-color: var(--el-slate-300); }
.nav-tabs .nav-link.active { color: var(--el-accent); border-bottom-color: var(--el-accent); background: transparent; }

/* ---------- Detail lists ------------------------------------------------- */
.detail-list { display: grid; grid-template-columns: minmax(160px, 30%) 1fr; margin: 0; }
.detail-list dt, .detail-list dd { padding: .6rem 0; border-bottom: 1px solid var(--el-slate-100); margin: 0; }
.detail-list dt { color: var(--el-slate-500); font-weight: 500; }
.detail-list dd { color: var(--el-ink-900); word-break: break-word; }

/* ---------- Empty states / alerts --------------------------------------- */
.empty-state { text-align: center; padding: 2.5rem 1rem; color: var(--el-slate-500); }
.empty-state .bi { font-size: 2rem; color: var(--el-slate-300); display: block; margin-bottom: .5rem; }
.alert { border-radius: var(--el-radius); border: 1px solid transparent; font-size: .85rem; }
.alert-success { background: var(--el-success-soft); color: #145c3c; border-color: #c7e8d6; }
.alert-danger  { background: var(--el-danger-soft); color: #8c2620; border-color: #f2cdc9; }
.alert-warning { background: var(--el-warning-soft); color: #7d4806; border-color: #f2dcb6; }
.alert-audit   { background: var(--el-audit-soft); color: #4f2d78; border-color: #ddd0ef; }
.alert-info    { background: var(--el-info-soft); color: #1f4785; border-color: #cddcf3; }
.readonly-banner { background: var(--el-warning-soft); border: 1px solid #f2dcb6; color: #7d4806; padding: .55rem .9rem; border-radius: var(--el-radius-sm); font-size: .83rem; }

/* Toasts (Django messages) */
.toast-stack { position: fixed; top: 1rem; right: 1rem; z-index: 1090; display: flex; flex-direction: column; gap: .5rem; max-width: 380px; }
.toast-stack .alert { box-shadow: var(--el-shadow-lg); margin: 0; display: flex; gap: .6rem; align-items: flex-start; }

/* ---------- Pagination --------------------------------------------------- */
.pagination { --bs-pagination-color: var(--el-ink-700); --bs-pagination-hover-color: var(--el-ink-900); --bs-pagination-border-color: var(--el-slate-200); --bs-pagination-hover-bg: var(--el-slate-100); --bs-pagination-disabled-color: var(--el-slate-500); --bs-pagination-disabled-bg: #fff; }

/* ---------- Tom Select ---------------------------------------------------- */
.ts-wrapper .ts-control { border-color: var(--el-slate-200); border-radius: var(--el-radius-sm); min-height: calc(1.5em + .75rem + 2px); font-size: .875rem; }
.ts-wrapper.focus .ts-control { border-color: var(--el-accent); box-shadow: 0 0 0 .2rem rgba(var(--el-accent-rgb), .15); }
.ts-wrapper.form-select-sm .ts-control, .ts-wrapper.form-control-sm .ts-control { min-height: calc(1.5em + .5rem + 2px); padding-top: .2rem; padding-bottom: .2rem; font-size: .8125rem; }
.ts-dropdown { border-color: var(--el-slate-200); border-radius: var(--el-radius-sm); box-shadow: var(--el-shadow-lg); font-size: .85rem; }
.ts-dropdown .active { background: var(--el-accent-soft); color: var(--el-ink-900); }

/* ---------- Login --------------------------------------------------------- */
/* Split screen: photo + headline on the left, form on a faint grid on the right.
   Phones: the photo becomes a short banner above the form. */
.login-body { background: #fff; }
.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.login-hero {
  position: relative; background-size: cover; background-position: center 35%; color: #fff; overflow: hidden;
}
.login-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14, 20, 32, .55) 0%, rgba(14, 20, 32, .35) 35%, rgba(14, 20, 32, .78) 72%, rgba(14, 20, 32, .94) 100%);
}
.login-hero-inner { position: relative; z-index: 1; height: 100%; min-height: 100vh; display: flex; flex-direction: column; padding: 3rem; }
.login-logo { width: 132px; height: auto; }
.login-hero-copy { margin-top: auto; max-width: 520px; }
.login-hero-copy h1 { color: #fff; font-size: clamp(2rem, 3.4vw, 2.9rem); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; margin: .6rem 0 1rem; }
.login-hero-copy p { color: rgba(255,255,255,.82); font-size: 1rem; line-height: 1.6; margin: 0; max-width: 460px; }
.login-eyebrow { font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #8fb3e8; }
.login-eyebrow-dark { color: var(--el-slate-500); }
.login-hero-foot { margin-top: 3rem; }
.login-hero-note { border-left: 3px solid #5b8fd6; padding-left: 1rem; }
.login-hero-note strong { display: block; color: #fff; font-size: 1.35rem; font-weight: 800; line-height: 1.25; margin-top: .35rem; }

.login-panel {
  display: flex; align-items: center; justify-content: center; padding: 3rem 2rem;
  background-color: #fff;
  background-image: linear-gradient(rgba(27,33,41,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(27,33,41,.045) 1px, transparent 1px);
  background-size: 28px 28px;
}
.login-form-wrap { width: 100%; max-width: 440px; }
.login-title { font-size: clamp(1.8rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -.02em; color: var(--el-ink-900); margin: .6rem 0 .6rem; }
.login-help { color: var(--el-slate-600); line-height: 1.6; margin-bottom: 2rem; }
.login-label { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--el-ink-700); margin: 0 0 .45rem; }
.login-input {
  display: block; width: 100%; height: 52px; padding: 0 1rem; margin-bottom: 1.25rem;
  border: 1px solid var(--el-slate-300); border-radius: 2px; background: #fff; color: var(--el-ink-900);
  font: inherit; font-weight: 500; transition: border-color .15s, box-shadow .15s;
}
.login-input::placeholder { color: var(--el-slate-400); }
.login-input:focus { outline: none; border-color: var(--el-ink-900); box-shadow: 0 0 0 3px rgba(var(--el-accent-rgb), .15); }
.login-password { position: relative; }
.login-password .login-input { padding-right: 3rem; }
.login-eye { position: absolute; top: 0; right: 0; width: 48px; height: 52px; border: 0; background: none; color: var(--el-slate-500); font-size: 1.05rem; }
.login-eye:hover { color: var(--el-ink-900); }
.login-submit {
  display: flex; align-items: center; justify-content: space-between; width: 100%; height: 56px; margin-top: .25rem;
  padding: 0 1.4rem; border: 0; border-radius: 2px; background: var(--el-accent); color: #fff;
  font: inherit; font-size: 1rem; font-weight: 700; transition: background .15s;
}
.login-submit:hover { background: var(--el-accent-hover); }
.login-submit i { font-size: 1.15rem; transition: transform .15s; }
.login-submit:hover i { transform: translateX(3px); }
.login-error { display: flex; gap: .6rem; align-items: flex-start; padding: .75rem .9rem; margin-bottom: 1.5rem;
  background: var(--el-danger-soft); color: #8c2620; border: 1px solid #f2cdc9; border-radius: 2px; font-size: .875rem; }
.login-fineprint { color: var(--el-slate-500); font-size: .78rem; line-height: 1.6; margin: 2rem 0 .4rem; }
.login-version { color: var(--el-slate-400); font-size: .72rem; margin: 0; }
.login-panel { position: relative; }
.login-build { position: absolute; right: 1.25rem; bottom: 1rem; color: var(--el-slate-400); font-size: .7rem; letter-spacing: .02em; }

@media (max-width: 991.98px) {
  .login-page { grid-template-columns: 1fr; }
  .login-hero { background-position: center 40%; }
  .login-hero-inner { min-height: 0; padding: 1.5rem 1.25rem 1.75rem; }
  .login-logo { width: 96px; }
  .login-hero-copy { margin-top: 2.25rem; }
  .login-hero-copy h1 { font-size: 1.6rem; margin-bottom: .5rem; }
  .login-hero-copy p { font-size: .9rem; }
  .login-hero-foot { display: none; }
  .login-panel { align-items: flex-start; padding: 2rem 1.25rem 2.5rem; }
  .login-help { margin-bottom: 1.5rem; }
}
@media (max-width: 575.98px) {
  .login-hero-copy p { display: none; }
  .login-title { font-size: 1.75rem; }
}

/* ---------- Utilities ----------------------------------------------------- */
.email-chip { font-family: inherit; font-size: inherit; color: var(--el-slate-500); }
.gap-row { row-gap: 1rem; }
.min-w-0 { min-width: 0; }
.fw-550 { font-weight: 650; }
.small-caps { text-transform: uppercase; letter-spacing: .05em; font-size: .7rem; font-weight: 600; color: var(--el-slate-500); }
@media print { .app-sidebar, .app-topbar, .no-print { display: none !important; } .app-main { margin: 0; } }

.list-group-item { background: #fff; }


/* ---------- Mobile / small screens -------------------------------------- */
/* Tabs scroll sideways instead of wrapping onto several lines. */
.nav-tabs { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.nav-tabs::-webkit-scrollbar { display: none; }
.nav-tabs .nav-link { white-space: nowrap; }
/* Wide tables scroll inside their card with momentum on touch devices. */
.table-wrap { -webkit-overflow-scrolling: touch; }

@media (max-width: 991.98px) {
  .app-topbar .search { max-width: none; }
  .page-header { align-items: flex-start; }
}
@media (max-width: 767.98px) {
  html { -webkit-text-size-adjust: 100%; }
  .page-header h1 { font-size: 1.2rem; }
  .page-header .actions { width: 100%; }
  .page-header .actions > .btn, .page-header .actions > a.btn { flex: 1 1 auto; }
  .card-header { flex-wrap: wrap; }
  .card-body { padding: .9rem; }
  .stat-card { padding: .85rem .9rem; }
  .stat-card .value { font-size: 1.35rem; }
  .stat-card .icon { width: 32px; height: 32px; font-size: .95rem; }
  .filter-bar { padding: .65rem .75rem; }
  .filter-bar > *, .filter-bar .form-control, .filter-bar .form-select, .filter-bar .ts-wrapper { flex: 1 1 100%; min-width: 0; width: 100%; }
  .filter-bar > .btn, .filter-bar > a.btn { flex: 1 1 auto; width: auto; }
  .detail-list { grid-template-columns: 1fr; }
  .detail-list dt { border-bottom: 0; padding-bottom: 0; font-size: .78rem; }
  .detail-list dd { padding-top: .15rem; }
  .table > :not(caption) > * > * { padding: .55rem .65rem; }
  .toast-stack { left: .75rem; right: .75rem; max-width: none; }
  .pagination { flex-wrap: wrap; }
  nav[aria-label="Pagination"] { justify-content: center !important; text-align: center; }
  .dropdown-menu { max-width: calc(100vw - 2rem); }
}
@media (max-width: 575.98px) {
  .app-content { padding: .75rem; }
  .app-topbar { gap: .5rem; }
  .user-chip .bi-chevron-down { display: none; }
}

/* ---------- Tables as cards on phones ------------------------------------ */
/* Each row becomes a card: first cell is the title, the rest are
   "LABEL  value" lines (labels come from data-label, set by app.js), and the
   row's action menu sits in the top-right corner. Opt out with .no-stack. */
@media (max-width: 767.98px) {
  .data-table:not(.no-stack) thead { display: none; }
  .data-table:not(.no-stack) tbody tr { display: block; position: relative; padding: .75rem .9rem; border-bottom: 1px solid var(--el-slate-200); }
  .data-table:not(.no-stack) tbody tr:hover > * { background: transparent; }
  /* Label in the left column; everything in the cell stacks in the right column. */
  .data-table:not(.no-stack) tbody td {
    display: grid; grid-template-columns: minmax(84px, 38%) minmax(0, 1fr); column-gap: .75rem; align-items: start;
    padding: .2rem 0 !important; border: 0; text-align: right; width: auto; max-width: none !important; min-width: 0 !important;
    white-space: normal !important;
  }
  .data-table:not(.no-stack) tbody td > * { grid-column: 2; justify-self: end; max-width: 100%; }
  .data-table:not(.no-stack) tbody td .nowrap { white-space: normal; }
  .data-table:not(.no-stack) tbody td::before {
    content: attr(data-label); grid-column: 1; grid-row: 1 / span 6; text-align: left;
    color: var(--el-slate-500); font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding-top: .15rem;
  }
  .data-table:not(.no-stack) tbody td[data-label=""] { grid-template-columns: minmax(0, 1fr); }
  .data-table:not(.no-stack) tbody td[data-label=""] > * { grid-column: 1; }
  .data-table:not(.no-stack) tbody td[data-label=""]::before { display: none; }
  .data-table:not(.no-stack) tbody td:first-child { display: block; text-align: left; padding: 0 2.5rem .35rem 0 !important; }
  .data-table:not(.no-stack) tbody td:first-child::before { display: none; }
  .data-table:not(.no-stack) tbody td[colspan] { display: block; padding: 0 !important; }
  .data-table:not(.no-stack) tbody td[colspan]::before { display: none; }
  /* A single menu/icon button sits in the card's corner; several buttons go in a row at the bottom. */
  .data-table:not(.no-stack) tbody td.actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .4rem; padding-top: .5rem !important; }
  .data-table:not(.no-stack) tbody td.actions::before { display: none; }
  .data-table:not(.no-stack) tbody td.actions:has(> .dropdown:only-child),
  .data-table:not(.no-stack) tbody td.actions:has(> .btn-icon:only-child) { position: absolute; top: .6rem; right: .6rem; padding: 0 !important; }
  .data-table:not(.no-stack) tbody tr:not(:has(td.actions > .dropdown:only-child, td.actions > .btn-icon:only-child)) td:first-child { padding-right: 0 !important; }
  .data-table:not(.no-stack) .truncate { white-space: normal; max-width: none !important; }
  .data-table:not(.no-stack) .progress-inline { min-width: 140px; }
  .data-table:not(.no-stack) tbody td:first-child > * { justify-self: start; }
}

/* ---- Task flow (hand-over chain and sub-tasks) ---------------------------- */
.flow-note { display: flex; gap: .5rem; align-items: flex-start; padding: .5rem .65rem; margin-bottom: .5rem;
  background: var(--el-accent-soft); border-radius: var(--el-radius-sm); font-size: .8125rem; }
.flow-note > .bi { color: var(--el-accent); margin-top: .1rem; }
.step-no { display: inline-flex; align-items: center; justify-content: center; flex: none; min-width: 1.4rem; height: 1.4rem;
  padding: 0 .3rem; border-radius: 999px; background: var(--el-neutral-soft); color: var(--el-neutral); font-size: .72rem; font-weight: 700; }
.flow-form { padding: .75rem; border: 1px solid var(--bs-border-color); border-radius: var(--el-radius-sm); background: #fff; }
.flow-tree { list-style: none; margin: 0; padding-left: 0; }
.flow-tree .flow-tree { padding-left: 1.25rem; margin-left: .55rem; border-left: 2px solid var(--bs-border-color); }
.flow-tree.sub { border-left-style: dashed; }
.flow-node { position: relative; padding: .35rem 0; }
.flow-card { padding: .7rem .85rem; border: 1px solid var(--bs-border-color); border-radius: var(--el-radius-sm); background: #fff; }
.flow-node.is-current > .flow-card { border-color: var(--el-accent); box-shadow: 0 0 0 2px rgba(var(--el-accent-rgb), .15); }
.flow-node.is-waiting > .flow-card { background: var(--el-slate-50); border-style: dashed; }
.flow-branch-label { margin: .35rem 0 0 .55rem; padding-left: 1.25rem; font-size: .72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em; color: var(--bs-secondary-color); }
.task-flow-tag { display: inline-flex; align-items: center; gap: .2rem; font-size: .72rem; color: var(--el-accent); }

/* ---- Conference rooms & calendar ------------------------------------------ */
.room-dot { display: inline-block; width: .65rem; height: .65rem; border-radius: 50%; margin-right: .4rem; vertical-align: .05rem; }
.room-photo { width: 100%; height: 180px; object-fit: cover; border-radius: var(--el-radius) var(--el-radius) 0 0; }
.room-legend { flex-wrap: wrap; gap: .35rem .9rem; align-items: center; margin-left: auto; font-size: .75rem; color: var(--bs-secondary-color); }
.room-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.room-legend i { width: .6rem; height: .6rem; border-radius: 50%; display: inline-block; }
#room-calendar { --fc-border-color: var(--el-slate-200); --fc-today-bg-color: var(--el-accent-soft);
  --fc-now-indicator-color: var(--el-danger); --fc-button-bg-color: #fff; --fc-button-text-color: #1f2630;
  --fc-button-border-color: var(--el-slate-200); --fc-button-hover-bg-color: var(--el-slate-50);
  --fc-button-hover-border-color: var(--el-slate-300); --fc-button-active-bg-color: var(--el-accent);
  --fc-button-active-border-color: var(--el-accent); --fc-event-border-color: transparent; font-size: .8125rem; }
#room-calendar .fc-button { font-size: .8125rem; font-weight: 600; box-shadow: none !important; }
#room-calendar .fc-button-active { color: #fff; }
#room-calendar .fc-toolbar-title { font-size: 1.05rem; font-weight: 700; }
#room-calendar .fc-timegrid-slot { height: 2.1rem; }
#room-calendar .fc-timegrid-slot-minor { border-top-style: dotted; }
#room-calendar .fc-event { border-radius: 5px; cursor: pointer; }
#room-calendar .fc-booking { padding: 1px 3px; line-height: 1.2; overflow: hidden; }
#room-calendar .fc-booking .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#room-calendar .fc-booking .s { font-size: .7rem; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#room-calendar .fc-blocked { background: repeating-linear-gradient(45deg, #eef0f3, #eef0f3 6px, #e2e5ea 6px, #e2e5ea 12px);
  border: 1px dashed #b7bec8 !important; }
#room-calendar .fc-blocked .fc-event-main, #room-calendar .fc-blocked .fc-event-title { color: #4d5764; }
#room-calendar .fc-highlight { background: rgba(var(--el-accent-rgb), .15); }
@media (max-width: 767.98px) {
  #room-calendar .fc-toolbar-title { font-size: .95rem; }
  #room-calendar .fc-header-toolbar { gap: .5rem; }
}

/* ---- Calendar: pop-up, RSVP, response styles, dashboard card ------------- */
.calendar-filters { flex-wrap: wrap; }
.scope-toggle .btn { font-size: .8125rem; font-weight: 600; }
.cal-legend { display: flex; flex-wrap: wrap; gap: .35rem 1rem; padding: .5rem 1rem 0; font-size: .75rem; color: var(--bs-secondary-color); }
.cal-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.cal-legend i { width: .6rem; height: .6rem; border-radius: 50%; display: inline-block; }
.legend-style { padding: 0 .4rem; border-radius: 4px; border: 1px solid var(--el-accent); color: var(--el-accent) !important; }
.legend-style.is-maybe { border-style: dashed; }
.legend-style.is-declined { border-color: var(--el-slate-300); color: var(--el-slate-500) !important; text-decoration: line-through; }
/* My response, as on Google Calendar: awaiting = outlined, maybe = dashed, declined = faded + struck through */
#room-calendar .fc-event.is-awaiting { background: #fff !important; border: 1.5px solid var(--fc-event-bg-color, var(--el-accent)) !important; }
#room-calendar .fc-event.is-awaiting .fc-event-main, #room-calendar .fc-event.is-awaiting .fc-booking { color: #1f2630; }
#room-calendar .fc-event.is-maybe { background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.22) 0 6px, transparent 6px 12px); border: 1.5px dashed rgba(255,255,255,.9) !important; }
#room-calendar .fc-event.is-declined { opacity: .45; }
#room-calendar .fc-event.is-declined .fc-booking .t, #room-calendar .fc-event.is-declined .fc-event-title { text-decoration: line-through; }
#room-calendar .fc-daygrid-event.is-awaiting .fc-daygrid-event-dot { border-color: var(--el-accent); }

#meeting-modal .modal-content { border: 0; border-radius: var(--el-radius); }
#meeting-modal .modal-header, .meeting-head { align-items: flex-start; gap: .75rem; }
#meeting-modal .modal-footer { gap: .5rem; }
@media (max-width: 575.98px) {
  #meeting-modal .modal-content { border-radius: 0; }
  #meeting-modal .modal-footer { flex-wrap: wrap; }
  #meeting-modal .modal-footer .btn { flex: 1 1 auto; }
  #meeting-modal .modal-footer .me-auto { flex-basis: 100%; margin-right: 0 !important; order: 3; }
}
.meeting-facts { display: grid; grid-template-columns: 1.5rem 1fr; gap: .55rem .5rem; margin: 0; }
.meeting-facts dt { color: var(--bs-secondary-color); font-weight: 400; }
.meeting-facts dd { margin: 0; overflow-wrap: anywhere; }
.rsvp-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; padding: .6rem .75rem; margin-bottom: 1rem;
  background: var(--el-slate-50); border: 1px solid var(--bs-border-color); border-radius: var(--el-radius-sm); }
.rsvp-bar .btn-group form .btn { border-radius: 0; }
.rsvp-bar .btn-group form:first-child .btn { border-radius: var(--el-radius-sm) 0 0 var(--el-radius-sm); }
.rsvp-bar .btn-group form:last-child .btn { border-radius: 0 var(--el-radius-sm) var(--el-radius-sm) 0; }
.rsvp-bar .btn-group form + form .btn { margin-left: -1px; }
.rsvp-btn { border: 1px solid var(--el-slate-300); background: #fff; color: #1f2630; font-weight: 600; min-width: 4.2rem; }
.rsvp-btn:hover { background: var(--el-slate-50); }
.rsvp-btn.rsvp-yes.active { background: var(--el-success); border-color: var(--el-success); color: #fff; }
.rsvp-btn.rsvp-maybe.active { background: var(--el-hold); border-color: var(--el-hold); color: #fff; }
.rsvp-btn.rsvp-no.active { background: var(--el-danger); border-color: var(--el-danger); color: #fff; }
.btn-group-sm > form .rsvp-btn { min-width: 0; padding: .15rem .5rem; font-size: .75rem; border-radius: 0; margin-left: -1px; }
.btn-group-sm > form:first-child .rsvp-btn { border-radius: var(--el-radius-sm) 0 0 var(--el-radius-sm); margin-left: 0; }
.btn-group-sm > form:last-child .rsvp-btn { border-radius: 0 var(--el-radius-sm) var(--el-radius-sm) 0; }
.rsvp-badge { display: inline-flex; align-items: center; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.rsvp-badge.rsvp-yes { color: var(--el-success); }
.rsvp-badge.rsvp-maybe { color: var(--el-hold); }
.rsvp-badge.rsvp-no { color: var(--el-danger); }
.rsvp-badge.rsvp-awaiting { color: var(--bs-secondary-color); }
.guest-list { list-style: none; padding: 0; margin: 0; }
.guest-list li { display: flex; align-items: center; gap: .6rem; padding: .45rem 0; border-bottom: 1px solid var(--el-slate-100); }
.guest-list li > .min-w-0 { flex: 1; }
.guest-list li.is-declined .text-truncate { text-decoration: line-through; color: var(--bs-secondary-color); }
tr.row-declined .cell-main { text-decoration: line-through; color: var(--bs-secondary-color); }
.flex-none { flex: none; }

.upcoming-meetings .meeting-item { display: flex; align-items: center; gap: .75rem; }
.meeting-date { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; width: 3.1rem;
  padding: .3rem 0; border-radius: var(--el-radius-sm); background: var(--el-slate-50); border: 1px solid var(--bs-border-color); line-height: 1.1; }
.meeting-date span { font-size: .65rem; text-transform: uppercase; color: var(--bs-secondary-color); font-weight: 600; }
.meeting-date strong { font-size: 1.05rem; }
.meeting-date.is-today { background: var(--el-accent); border-color: var(--el-accent); }
.meeting-date.is-today span, .meeting-date.is-today strong { color: #fff; }
@media (max-width: 767.98px) {
  .calendar-filters .scope-toggle { width: 100%; }
  .calendar-filters .scope-toggle .btn { flex: 1; }
}
/* The meeting form wraps header/body/footer, so it must be the flex column that
   .modal-dialog-scrollable expects - header and Save bar stay put, the body scrolls. */
#meeting-modal .modal-content > form { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; max-height: 100%; overflow: hidden; }
#meeting-modal .modal-content > form > .modal-body { overflow-y: auto; min-height: 0; }

/* ---- Notifications bell ---------------------------------------------------- */
.inbox { margin-right: .35rem; }
.inbox-bell { position: relative; }
.inbox-count { position: absolute; top: 2px; right: 0; min-width: 1.05rem; height: 1.05rem; padding: 0 .25rem;
  border-radius: 999px; background: var(--el-danger); color: #fff; font-size: .65rem; font-weight: 700; line-height: 1.05rem; text-align: center; }
.inbox-menu { width: 360px; max-width: calc(100vw - 24px); padding: 0; overflow: hidden; }
.inbox-head { display: flex; justify-content: space-between; align-items: center; padding: .65rem .9rem; border-bottom: 1px solid var(--bs-border-color); }
.inbox-list { max-height: 60vh; overflow-y: auto; }
.inbox-item { display: flex; gap: .65rem; padding: .65rem .9rem; color: inherit; text-decoration: none; border-bottom: 1px solid var(--el-slate-100); font-size: .8125rem; }
.inbox-item:hover { background: var(--el-slate-50); }
.inbox-item > .bi { color: var(--el-accent); margin-top: .1rem; }
.inbox-item .title { font-weight: 500; }
.inbox-item.unread { background: var(--el-accent-soft); }
.inbox-item.unread .title { font-weight: 700; }
.inbox-item .body { color: var(--bs-secondary-color); }
.inbox-item .when { color: var(--bs-secondary-color); font-size: .72rem; margin-top: .15rem; }
.inbox-foot { padding: .6rem .9rem; border-top: 1px solid var(--bs-border-color); }
@media (max-width: 575.98px) {
  /* Full-width panel under the top bar (overrides the dropdown's own positioning). */
  .inbox-menu.show { position: fixed !important; inset: 58px 8px auto 8px !important; transform: none !important; width: auto; max-width: none; }
}

/* ---- Help page ------------------------------------------------------------- */
.help-toc { position: sticky; top: 1rem; }
.help-toc a { display: block; padding: .3rem 0; font-size: .8125rem; }
.help-body h2 { font-size: 1.05rem; font-weight: 700; margin-bottom: .75rem; }
.help-body h3 { font-size: .9rem; font-weight: 700; margin: 1rem 0 .4rem; }
.help-body p, .help-body li { line-height: 1.55; }
.help-body ol, .help-body ul { padding-left: 1.2rem; }
.help-tip { display: flex; gap: .5rem; padding: .6rem .75rem; background: var(--el-accent-soft); border-radius: var(--el-radius-sm); font-size: .8125rem; }
.help-tip .bi { color: var(--el-accent); }
.help-swatch { display: inline-block; width: 1.6rem; height: .9rem; border-radius: 3px; vertical-align: -1px; margin-right: .3rem; background: var(--el-accent); }
.help-swatch.is-awaiting { background: #fff; border: 1.5px solid var(--el-accent); }
.help-swatch.is-maybe { background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.35) 0 4px, transparent 4px 8px); border: 1.5px dashed var(--el-accent); }
.help-swatch.is-declined { opacity: .4; }

/* Confirming an answer picked in the invitation email */
.rsvp-confirm { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .85rem 1rem; margin-bottom: 1rem; border-radius: var(--el-radius-sm); border: 1px solid var(--bs-border-color); border-left-width: 4px; }
.rsvp-confirm.rsvp-yes { border-left-color: var(--el-success); background: var(--el-success-soft); }
.rsvp-confirm.rsvp-maybe { border-left-color: var(--el-hold); background: var(--el-hold-soft); }
.rsvp-confirm.rsvp-no { border-left-color: var(--el-danger); background: var(--el-danger-soft); }
@media (max-width: 575.98px) { .rsvp-confirm .btn { width: 100%; } }

/* ---- Project review tab ---------------------------------------------------- */
.review-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.review-sections { border-top: 1px solid var(--bs-border-color); }
.review-sections section { padding: 1rem 1.25rem; border-bottom: 1px solid var(--el-slate-100); }
.review-sections section:last-child { border-bottom: 0; }
.review-sections h3 { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--bs-secondary-color); margin-bottom: .5rem; }
.review-text { font-size: .875rem; line-height: 1.55; overflow-wrap: anywhere; }
