/* ============================================================
   ClinicMaster — Home dashboard styles
   Glass / gradient-mesh aesthetic. Served by both hosts at
   _content/ClinicMaster.UI/css/dashboard.css.
   Mirrors dashboard-mockups/03-modern-glass.html — keep in sync
   if visual tweaks are made.
   ============================================================ */

.cm-dash {
    --cm-primary: #1976D2;
    --cm-accent: #7C3AED;
    --cm-pink: #EC4899;
    --cm-teal: #14B8A6;
    --cm-amber: #F59E0B;
    --cm-rose: #F43F5E;
    --cm-emerald: #10B981;
    --cm-text: #0B1220;
    --cm-text-secondary: #475569;
    --cm-text-tertiary: #94A3B8;
    color: var(--cm-text);
    font-family: 'Inter', -apple-system, sans-serif;
    /*
       Why NOT `margin: -16px; min-height: calc(100vh - 64px)`:
       In Blazor WebAssembly the <body> happily scrolls itself, but in MAUI
       BlazorWebView the scroll container is MudMainContent (overflow-y:auto)
       under a fixed-height MudLayout. A negative margin combined with a
       viewport-relative min-height pushed our content slightly outside
       MudMainContent's box, which the WebView reads as "no overflow here"
       and stops responding to wheel/touch — the page appears frozen.
       Sitting naturally inside the parent's padding fixes it on both hosts.
    */
    background:
        radial-gradient(1200px 600px at -10% -20%, rgba(124,58,237,.18), transparent 60%),
        radial-gradient(900px 600px at 110% 0%, rgba(20,184,166,.18), transparent 60%),
        radial-gradient(900px 600px at 50% 120%, rgba(25,118,210,.18), transparent 60%),
        #F4F6FB;
    padding: 16px;
    border-radius: 20px;
    /* Fill the viewport even when the dashboard content is short — same
       fix the list shell got. No negative margin, just min-height. */
    min-height: calc(100vh - 96px);
}

.cm-dash .glass {
    background: rgba(255,255,255,.65);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255,255,255,.7);
    box-shadow:
        0 1px 0 rgba(255,255,255,.6) inset,
        0 10px 30px rgba(15,23,42,.06),
        0 2px 6px rgba(15,23,42,.04);
    border-radius: 20px;
}

/* ─── HERO ─────────────────────────────────────────────────── */
.cm-dash .hero {
    padding: 28px 32px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    gap: 16px;
}

.cm-dash .hero-text h1 {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -.8px;
    line-height: 1.1;
    margin: 0 0 6px;
    background: linear-gradient(135deg, #0B1220 0%, #475569 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cm-dash .hero-text p {
    font-size: 14px;
    color: var(--cm-text-secondary);
    margin: 0;
}

.cm-dash .hero-text .accent {
    color: var(--cm-rose);
    font-weight: 600;
}

.cm-dash .hero-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.cm-dash .chip {
    background: rgba(255,255,255,.75);
    border: 1px solid rgba(255,255,255,.9);
    padding: 8px 14px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--cm-text);
    box-shadow: 0 1px 3px rgba(15,23,42,.05);
    cursor: pointer;
    transition: transform .15s;
    border: 0;
    font-family: inherit;
}

.cm-dash .chip:hover { transform: translateY(-1px); }

.cm-dash .chip-primary {
    background: linear-gradient(135deg, #1976D2 0%, #7C3AED 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(25,118,210,.3);
}

.cm-dash .chip .mi { font-size: 16px; color: var(--cm-text-secondary); }
.cm-dash .chip-primary .mi { color: white; }

/* ─── KPI ──────────────────────────────────────────────────── */
.cm-dash .kpi-grid {
    display: grid;
    /* Column count is driven by --kpi-cols (set inline per dashboard) so a
       view with fewer KPIs still fills the row instead of leaving an empty
       track. Media queries below override the whole property, so mobile
       collapsing keeps working. */
    grid-template-columns: repeat(var(--kpi-cols, 4), 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.cm-dash .kpi {
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: transform .2s cubic-bezier(.4,0,.2,1);
}

.cm-dash .kpi:hover { transform: translateY(-3px); }

.cm-dash .kpi::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--accent-color, var(--cm-primary));
    opacity: .12;
    filter: blur(20px);
}

.cm-dash .kpi-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-color, var(--cm-primary)), var(--accent-color-2, var(--cm-primary)));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    box-shadow: 0 6px 16px var(--accent-shadow, rgba(25,118,210,.3));
}

.cm-dash .kpi-icon-wrap .mi { color: white; font-size: 22px; }

.cm-dash .kpi-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--cm-text-secondary);
    letter-spacing: .3px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.cm-dash .kpi-value {
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1.5px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--accent-color, var(--cm-primary)), var(--accent-color-2, var(--cm-primary)));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cm-dash .kpi-unit {
    font-size: 18px;
    color: var(--cm-text-secondary);
    font-weight: 600;
}

.cm-dash .kpi-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.cm-dash .kpi-sub {
    font-size: 12px;
    color: var(--cm-text-secondary);
}

.cm-dash .trend-pill {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 9px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.cm-dash .trend-up { background: rgba(16,185,129,.15); color: #047857; }
.cm-dash .trend-down { background: rgba(244,63,94,.15); color: #BE123C; }
.cm-dash .trend-flat { background: rgba(148,163,184,.18); color: var(--cm-text-secondary); }

.cm-dash .kpi-blue   { --accent-color: #1976D2; --accent-color-2: #42A5F5; --accent-shadow: rgba(25,118,210,.3); }
.cm-dash .kpi-rose   { --accent-color: #F43F5E; --accent-color-2: #EC4899; --accent-shadow: rgba(244,63,94,.3); }
.cm-dash .kpi-teal   { --accent-color: #14B8A6; --accent-color-2: #10B981; --accent-shadow: rgba(20,184,166,.3); }
.cm-dash .kpi-amber  { --accent-color: #F59E0B; --accent-color-2: #F97316; --accent-shadow: rgba(245,158,11,.3); }

/* ─── ROW LAYOUT ───────────────────────────────────────────── */
.cm-dash .row {
    display: grid;
    /* Default is schedule (2fr) + side panel (1fr). A dashboard with no side
       panel sets --row-cols:1fr so the single card spans the full width.
       Media queries below force 1fr on small screens regardless. */
    grid-template-columns: var(--row-cols, 2fr 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.cm-dash .card-pad { padding: 24px 28px; }

.cm-dash .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 12px;
}

.cm-dash .card-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -.3px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cm-dash .card-title .ti {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, #1976D2, #7C3AED);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cm-dash .card-title .ti.lab { background: linear-gradient(135deg, #F43F5E, #EC4899); }
.cm-dash .card-title .ti.docs { background: linear-gradient(135deg, #14B8A6, #10B981); }
.cm-dash .card-title .ti .mi { color: white; font-size: 16px; }

.cm-dash .card-action {
    font-size: 12px;
    font-weight: 600;
    color: var(--cm-primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 100px;
    background: rgba(25,118,210,.08);
    transition: background .15s;
    border: 0;
    font-family: inherit;
}

.cm-dash .card-action:hover { background: rgba(25,118,210,.15); }

/* ─── CHART ─────────────────────────────────────────────── */
.cm-dash .chart-svg { width: 100%; height: 220px; }

.cm-dash .chart-stats {
    display: flex;
    gap: 28px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.cm-dash .cs-num {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.5px;
}

.cm-dash .cs-lbl {
    font-size: 11px;
    color: var(--cm-text-secondary);
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* Class names are prefixed `cs-` to avoid MudBlazor's bare `.red`/`.green`/`.amber`
   utility helpers, which set background-color and otherwise paint the number cell. */
.cm-dash .cs-num.cs-green { color: var(--cm-emerald); }
.cm-dash .cs-num.cs-red { color: var(--cm-rose); }
.cm-dash .cs-num.cs-amber { color: var(--cm-amber); }

/* ─── QUICK ACTIONS ──────────────────────────────────────── */
.cm-dash .qa-grid {
    display: grid;
    /* Tile count is driven by --qa-cols (set inline). Using a variable — not
       an inline grid-template-columns — lets the mobile media query below
       still collapse the tiles to a single column. */
    grid-template-columns: repeat(var(--qa-cols, 2), 1fr);
    gap: 12px;
}

.cm-dash .qa-tile {
    /* <button> defaults to inline-block with center-aligned inline children,
       which collapsed our icon + title + sub into one row. Explicit column
       flex restores the intended vertical stack. */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(255,255,255,.6);
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 14px;
    padding: 18px;
    cursor: pointer;
    transition: all .2s;
    text-align: left;
    position: relative;
    overflow: hidden;
    font-family: inherit;
    color: var(--cm-text);
    width: 100%;
}

.cm-dash .qa-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15,23,42,.08);
}

.cm-dash .qa-tile-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cm-dash .qa-tile-icon .mi { color: white; font-size: 18px; }
.cm-dash .qa-tile-title { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.cm-dash .qa-tile-sub { font-size: 11px; color: var(--cm-text-secondary); }

.cm-dash .qa-blue  .qa-tile-icon { background: linear-gradient(135deg, #1976D2, #42A5F5); }
.cm-dash .qa-rose  .qa-tile-icon { background: linear-gradient(135deg, #F43F5E, #EC4899); }
.cm-dash .qa-teal  .qa-tile-icon { background: linear-gradient(135deg, #14B8A6, #10B981); }
.cm-dash .qa-amber .qa-tile-icon { background: linear-gradient(135deg, #F59E0B, #F97316); }

/* ─── SCHEDULE TIMELINE ──────────────────────────────────── */
.cm-dash .schedule {
    display: flex;
    flex-direction: column;
    max-height: 480px;
    overflow-y: auto;
    padding: 0 4px;
}

.cm-dash .sched-item {
    display: flex;
    gap: 16px;
    position: relative;
    padding: 6px 0;
}

.cm-dash .sched-time-col {
    width: 60px;
    flex-shrink: 0;
    text-align: right;
    padding-top: 14px;
}

.cm-dash .sched-time-col .h {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -.3px;
    font-variant-numeric: tabular-nums;
}

.cm-dash .sched-time-col .m {
    font-size: 10px;
    color: var(--cm-text-tertiary);
    font-weight: 500;
    margin-top: 2px;
}

.cm-dash .sched-rail {
    width: 18px;
    flex-shrink: 0;
    position: relative;
    display: flex;
    justify-content: center;
}

.cm-dash .sched-rail::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(180deg, rgba(25,118,210,.25), rgba(124,58,237,.25));
    transform: translateX(-50%);
}

.cm-dash .sched-item:first-child .sched-rail::before { top: 22px; }
.cm-dash .sched-item:last-child .sched-rail::before { bottom: calc(100% - 22px); }

.cm-dash .sched-dot {
    position: relative;
    z-index: 1;
    margin-top: 18px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1976D2, #7C3AED);
    box-shadow: 0 0 0 4px rgba(25,118,210,.15), 0 2px 6px rgba(25,118,210,.4);
}

.cm-dash .sched-dot.completed {
    background: linear-gradient(135deg, #10B981, #14B8A6);
    box-shadow: 0 0 0 4px rgba(16,185,129,.15), 0 2px 6px rgba(16,185,129,.4);
}

.cm-dash .sched-dot.urgent {
    background: linear-gradient(135deg, #F43F5E, #EC4899);
    box-shadow: 0 0 0 4px rgba(244,63,94,.15), 0 2px 6px rgba(244,63,94,.4);
    animation: pulse-dot 2s infinite;
}

.cm-dash .sched-dot.walkin {
    background: linear-gradient(135deg, #94A3B8, #64748B);
    box-shadow: 0 0 0 4px rgba(148,163,184,.15);
}

.cm-dash .sched-dot.cancelled {
    background: #CBD5E1;
    box-shadow: 0 0 0 4px rgba(203,213,225,.3);
}

@keyframes pulse-dot {
    0%,100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.cm-dash .sched-card {
    flex: 1;
    min-width: 0;
    margin: 6px 0;
    background: rgba(255,255,255,.6);
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all .15s;
    cursor: pointer;
}

.cm-dash .sched-card:hover {
    background: rgba(255,255,255,.85);
    transform: translateX(2px);
}

.cm-dash .sched-item.walkin .sched-card {
    background: rgba(255,255,255,.35);
    border-style: dashed;
    border-color: rgba(148,163,184,.4);
}

.cm-dash .sched-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1976D2, #7C3AED);
    color: white;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cm-dash .sched-avatar.av-rose { background: linear-gradient(135deg, #F43F5E, #EC4899); }
.cm-dash .sched-avatar.av-teal { background: linear-gradient(135deg, #14B8A6, #10B981); }
.cm-dash .sched-avatar.av-amber { background: linear-gradient(135deg, #F59E0B, #F97316); }
.cm-dash .sched-avatar.av-purple { background: linear-gradient(135deg, #7C3AED, #A78BFA); }
.cm-dash .sched-avatar.av-grey { background: linear-gradient(135deg, #94A3B8, #64748B); }

.cm-dash .sched-info { flex: 1; min-width: 0; }
.cm-dash .sched-name { font-size: 14px; font-weight: 600; }
.cm-dash .sched-name.italic { font-style: italic; color: var(--cm-text-secondary); }
.cm-dash .sched-meta { font-size: 12px; color: var(--cm-text-secondary); margin-top: 2px; }

.cm-dash .sched-status {
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.cm-dash .ss-scheduled { background: rgba(25,118,210,.12); color: var(--cm-primary); }
.cm-dash .ss-checkedin { background: rgba(124,58,237,.12); color: var(--cm-accent); }
.cm-dash .ss-inexam    { background: rgba(20,184,166,.12); color: #0F766E; }
.cm-dash .ss-completed { background: rgba(16,185,129,.12); color: #047857; }
.cm-dash .ss-urgent    { background: rgba(244,63,94,.12); color: #BE123C; }
.cm-dash .ss-noshow    { background: rgba(245,158,11,.15); color: #B45309; }
.cm-dash .ss-cancelled { background: rgba(148,163,184,.2); color: var(--cm-text-secondary); }
.cm-dash .ss-walkin    { background: rgba(148,163,184,.18); color: var(--cm-text-secondary); font-style: italic; }

/* ─── LAB PANEL ─────────────────────────────────────────── */
.cm-dash .lab-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cm-dash .lab-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 14px;
    background: rgba(255,255,255,.6);
    border: 1px solid rgba(255,255,255,.9);
    cursor: pointer;
    transition: all .15s;
    position: relative;
    overflow: hidden;
}

.cm-dash .lab-row.urgent {
    background: linear-gradient(135deg, rgba(244,63,94,.08), rgba(236,72,153,.04));
    border-color: rgba(244,63,94,.2);
}

.cm-dash .lab-row.urgent::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #F43F5E, #EC4899);
}

.cm-dash .lab-row:hover { transform: translateX(2px); }

.cm-dash .lab-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #F59E0B, #F97316);
    color: white;
}

.cm-dash .lab-icon .mi { color: white; }
.cm-dash .lab-row.urgent .lab-icon { background: linear-gradient(135deg, #F43F5E, #EC4899); }

.cm-dash .lab-text { flex: 1; min-width: 0; }
.cm-dash .lab-name { font-size: 14px; font-weight: 700; }
.cm-dash .lab-test { font-size: 12px; color: var(--cm-text-secondary); margin-top: 2px; }

.cm-dash .lab-time {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 100px;
    background: rgba(15,23,42,.06);
    color: var(--cm-text-secondary);
    flex-shrink: 0;
}

.cm-dash .lab-row.urgent .lab-time { background: rgba(244,63,94,.15); color: #BE123C; }

.cm-dash .empty-state {
    padding: 32px 16px;
    text-align: center;
    color: var(--cm-text-secondary);
}

.cm-dash .empty-state .ico {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, rgba(16,185,129,.15), rgba(20,184,166,.15));
    color: #047857;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cm-dash .empty-state .ico .mi { font-size: 28px; }
.cm-dash .empty-state .title { font-size: 14px; font-weight: 600; color: var(--cm-text); margin-bottom: 4px; }
.cm-dash .empty-state .sub { font-size: 12px; color: var(--cm-text-secondary); }

/* ─── DOCTORS ───────────────────────────────────────────── */
.cm-dash .doctors-strip {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.cm-dash .doc-tile {
    background: rgba(255,255,255,.6);
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    transition: all .2s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.cm-dash .doc-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(15,23,42,.08);
}

.cm-dash .doc-av {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    margin: 0 auto 10px;
    background: linear-gradient(135deg, var(--c1, #1976D2), var(--c2, #7C3AED));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 18px;
    box-shadow: 0 6px 16px rgba(25,118,210,.25);
    position: relative;
}

.cm-dash .doc-av .status-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #10B981;
    border: 3px solid white;
}

.cm-dash .doc-tile.off .doc-av {
    background: linear-gradient(135deg, #94A3B8, #64748B);
    box-shadow: 0 4px 12px rgba(148,163,184,.25);
}

.cm-dash .doc-tile.off .doc-av .status-dot { background: #94A3B8; }

.cm-dash .doc-tile-name {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cm-dash .ring {
    position: relative;
    width: 56px;
    height: 56px;
    margin: 0 auto 6px;
}

.cm-dash .doc-pct-text {
    font-size: 13px;
    font-weight: 700;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}

.cm-dash .doc-stat {
    font-size: 11px;
    color: var(--cm-text-secondary);
    font-weight: 500;
}

.cm-dash .c-blue   { --c1: #1976D2; --c2: #42A5F5; }
.cm-dash .c-purple { --c1: #7C3AED; --c2: #A78BFA; }
.cm-dash .c-rose   { --c1: #F43F5E; --c2: #EC4899; }
.cm-dash .c-teal   { --c1: #14B8A6; --c2: #10B981; }
.cm-dash .c-amber  { --c1: #F59E0B; --c2: #F97316; }

/* ─── SKELETON (loading state) ──────────────────────────── */
.cm-dash .skel {
    background: linear-gradient(90deg, rgba(15,23,42,.04) 0%, rgba(15,23,42,.09) 50%, rgba(15,23,42,.04) 100%);
    background-size: 200% 100%;
    animation: skel-shimmer 1.6s ease-in-out infinite;
    border-radius: 8px;
}

@keyframes skel-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.cm-dash .error-bar {
    background: rgba(244,63,94,.1);
    border: 1px solid rgba(244,63,94,.3);
    color: #BE123C;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============================================================
   WAITING ROOM — used by:
     • Doctor dashboard "Waiting for you" panel (queue + Call-next)
     • Reception dashboard "In waiting room" panel (clinic-wide)
     • /waiting-room kiosk page (full-screen view)
   ============================================================ */

.cm-dash .waiting-panel { margin-bottom: 24px; }

.cm-dash .in-exam-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 14px;
    background: linear-gradient(135deg, rgba(124,58,237,.08), rgba(20,184,166,.06));
    border: 1px solid rgba(124,58,237,.18);
    border-radius: 12px;
}

.cm-dash .in-exam-pulse {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7C3AED, #14B8A6);
    box-shadow: 0 0 0 4px rgba(124,58,237,.15);
    animation: pulse-dot 2s infinite;
    flex-shrink: 0;
}

.cm-dash .in-exam-text { flex: 1; font-size: 13px; color: var(--cm-text); }

.cm-dash .waiting-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cm-dash .waiting-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    background: rgba(255,255,255,.6);
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 12px;
    cursor: pointer;
    transition: all .15s;
    position: relative;
}

.cm-dash .waiting-row:hover {
    background: rgba(255,255,255,.85);
    transform: translateX(2px);
}

.cm-dash .waiting-row.is-next {
    background: linear-gradient(90deg, rgba(25,118,210,.1), rgba(124,58,237,.05));
    border-color: rgba(25,118,210,.25);
    box-shadow: 0 4px 12px rgba(25,118,210,.08);
}

.cm-dash .waiting-position {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(15,23,42,.08);
    color: var(--cm-text-secondary);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cm-dash .waiting-row.is-next .waiting-position {
    background: linear-gradient(135deg, #1976D2, #7C3AED);
    color: white;
}

.cm-dash .waiting-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #14B8A6, #10B981);
    color: white;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cm-dash .waiting-info { flex: 1; min-width: 0; }
.cm-dash .waiting-name { font-size: 14px; font-weight: 600; color: var(--cm-text); }
.cm-dash .waiting-meta { font-size: 12px; color: var(--cm-text-secondary); margin-top: 2px; }

.cm-dash .waiting-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 100px;
    background: rgba(15,23,42,.06);
    color: var(--cm-text-secondary);
    font-size: 12px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.cm-dash .waiting-time.long {
    background: rgba(245,158,11,.15);
    color: #B45309;
}

.cm-dash .waiting-next-pill {
    position: absolute;
    top: -8px;
    right: 16px;
    background: linear-gradient(135deg, #1976D2, #7C3AED);
    color: white;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 3px 10px;
    border-radius: 100px;
    box-shadow: 0 4px 8px rgba(25,118,210,.3);
}

/* ── Waiting-room kiosk page specifics ── */

.cm-dash .waiting-now-panel { margin-bottom: 24px; }

.cm-dash .waiting-now-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.cm-dash .waiting-now-card {
    background: linear-gradient(135deg, rgba(16,185,129,.12), rgba(20,184,166,.08));
    border: 1px solid rgba(16,185,129,.25);
    border-radius: 16px;
    padding: 20px 22px;
    cursor: pointer;
    transition: transform .15s;
    position: relative;
    overflow: hidden;
}

.cm-dash .waiting-now-card:hover { transform: translateY(-2px); }

.cm-dash .waiting-now-pulse {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10B981, #14B8A6);
    box-shadow: 0 0 0 5px rgba(16,185,129,.2);
    animation: pulse-dot 1.8s infinite;
}

.cm-dash .waiting-now-ticket {
    display: inline-block;
    padding: 2px 12px;
    margin-bottom: 8px;
    border-radius: 100px;
    background: linear-gradient(135deg, #1976D2, #1565C0);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .3px;
}

.cm-dash .waiting-now-patient {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.5px;
    color: var(--cm-text);
    margin-bottom: 4px;
}

.cm-dash .waiting-now-doctor { font-size: 13px; color: var(--cm-text-secondary); margin-bottom: 12px; }

.cm-dash .waiting-now-room {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 100px;
    background: linear-gradient(135deg, #10B981, #14B8A6);
    color: white;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.cm-dash .queues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.cm-dash .queue-card .queue-specialty {
    font-size: 12px;
    color: var(--cm-text-tertiary);
    margin: -12px 0 14px 38px; /* aligns under the title text, past the ti icon */
}

.cm-dash .cm-dash-footer {
    text-align: center;
    color: var(--cm-text-tertiary);
    font-size: 11px;
    padding: 12px 0 4px;
}

/* Mobile tweaks for the kiosk page (not the typical kiosk size but
   reception might pull it up on a tablet) */
@media (max-width: 640px) {
    .cm-dash .waiting-now-grid { grid-template-columns: 1fr; }
    .cm-dash .queues-grid { grid-template-columns: 1fr; }
    .cm-dash .waiting-now-patient { font-size: 18px; }
}

/* ============================================================
   DOCTOR DASHBOARD — additions on top of the base glass aesthetic.
   Reuses .glass, .hero, .kpi-*, .row, .card-pad, .schedule, .lab-grid,
   .doctor-* from above. Only the "next patient" highlight card and a
   handful of doctor-specific accents live here.
   ============================================================ */

.cm-dash .next-patient {
    padding: 24px 28px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(25,118,210,.08), rgba(124,58,237,.05)),
        rgba(255,255,255,.65);
}

.cm-dash .next-patient::after {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(25,118,210,.18), rgba(124,58,237,.18));
    filter: blur(30px);
    pointer-events: none;
}

.cm-dash .np-row {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.cm-dash .np-time {
    flex-shrink: 0;
    text-align: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, #1976D2, #7C3AED);
    border-radius: 16px;
    color: white;
    box-shadow: 0 6px 16px rgba(25,118,210,.3);
    min-width: 96px;
}

.cm-dash .np-time .h {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.5px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.cm-dash .np-time .countdown {
    font-size: 11px;
    font-weight: 500;
    margin-top: 6px;
    opacity: .9;
}

.cm-dash .np-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F43F5E, #EC4899);
    color: white;
    font-weight: 800;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(244,63,94,.25);
}

.cm-dash .np-info {
    flex: 1;
    min-width: 0;
}

.cm-dash .np-eyebrow {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--cm-primary);
    margin-bottom: 4px;
}

.cm-dash .np-name {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.4px;
    margin-bottom: 4px;
}

.cm-dash .np-meta {
    font-size: 13px;
    color: var(--cm-text-secondary);
}

.cm-dash .np-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.cm-dash .np-btn {
    padding: 10px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    transition: transform .15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cm-dash .np-btn:hover { transform: translateY(-1px); }

.cm-dash .np-btn-primary {
    background: linear-gradient(135deg, #1976D2, #7C3AED);
    color: white;
    box-shadow: 0 4px 12px rgba(25,118,210,.3);
}

.cm-dash .np-btn-secondary {
    background: rgba(255,255,255,.8);
    color: var(--cm-text);
    border: 1px solid rgba(15,23,42,.08);
}

.cm-dash .np-empty {
    padding: 24px;
    text-align: center;
    color: var(--cm-text-secondary);
}

.cm-dash .np-empty .big {
    font-size: 18px;
    font-weight: 600;
    color: var(--cm-text);
    margin-bottom: 4px;
}

/* Priority chip for lab orders in the "Moji nalazi" panel */
.cm-dash .priority-chip {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.cm-dash .pri-stat { background: rgba(244,63,94,.15); color: #BE123C; }
.cm-dash .pri-urgent { background: rgba(245,158,11,.15); color: #B45309; }
.cm-dash .pri-normal { background: rgba(148,163,184,.18); color: var(--cm-text-secondary); }

/* ─── RESPONSIVE — tablet (≤1100px) ────────────────────── */
@media (max-width: 1100px) {
    .cm-dash { padding: 20px; }
    .cm-dash .kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .cm-dash .row { grid-template-columns: 1fr; }
    .cm-dash .doctors-strip { grid-template-columns: repeat(3, 1fr); }
    .cm-dash .hero-text h1 { font-size: 26px; }
}

/* ─── RESPONSIVE — mobile (≤640px) ─────────────────────── */
@media (max-width: 640px) {
    .cm-dash {
        padding: 16px;
        background:
            radial-gradient(600px 400px at 0% 0%, rgba(124,58,237,.15), transparent 60%),
            radial-gradient(500px 400px at 100% 100%, rgba(20,184,166,.15), transparent 60%),
            #F4F6FB;
    }

    .cm-dash .hero {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 20px;
        border-radius: 16px;
    }
    .cm-dash .hero-text h1 { font-size: 22px; }
    .cm-dash .hero-text p { font-size: 13px; }
    .cm-dash .hero-meta { flex-wrap: wrap; gap: 8px; }
    .cm-dash .chip { font-size: 12px; padding: 7px 12px; }

    .cm-dash .kpi-grid { grid-template-columns: 1fr; gap: 12px; margin-bottom: 16px; }
    .cm-dash .kpi { padding: 18px; border-radius: 16px; }
    .cm-dash .kpi-value { font-size: 36px; }
    .cm-dash .kpi-icon-wrap { width: 38px; height: 38px; margin-bottom: 10px; }
    .cm-dash .kpi-icon-wrap .mi { font-size: 20px; }

    .cm-dash .row { gap: 12px; margin-bottom: 12px; }
    .cm-dash .card-pad { padding: 18px 20px; border-radius: 16px; }
    .cm-dash .card-header { margin-bottom: 16px; }
    .cm-dash .card-title { font-size: 14px; }
    .cm-dash .card-title .ti { width: 24px; height: 24px; }
    .cm-dash .card-title .ti .mi { font-size: 14px; }

    .cm-dash .chart-svg { height: 160px; }
    .cm-dash .chart-stats { gap: 16px; }
    .cm-dash .cs-num { font-size: 20px; }

    .cm-dash .qa-grid { gap: 10px; }
    .cm-dash .qa-tile { padding: 14px; }
    .cm-dash .qa-tile-icon { width: 32px; height: 32px; margin-bottom: 8px; }

    .cm-dash .schedule { padding: 0 2px; }
    .cm-dash .sched-item { gap: 10px; }
    .cm-dash .sched-time-col { width: 48px; padding-top: 16px; }
    .cm-dash .sched-time-col .h { font-size: 13px; }
    .cm-dash .sched-time-col .m { font-size: 10px; }
    .cm-dash .sched-rail { width: 14px; }
    .cm-dash .sched-dot { width: 12px; height: 12px; }
    .cm-dash .sched-card { padding: 10px 12px; gap: 10px; flex-wrap: wrap; }
    .cm-dash .sched-avatar { width: 32px; height: 32px; font-size: 12px; }
    .cm-dash .sched-name { font-size: 13px; }
    .cm-dash .sched-meta { font-size: 11px; }
    .cm-dash .sched-status {
        font-size: 10px;
        padding: 3px 8px;
        width: 100%;
        justify-content: flex-start;
        margin-top: 4px;
    }

    .cm-dash .lab-row { padding: 12px; gap: 10px; }
    .cm-dash .lab-icon { width: 36px; height: 36px; border-radius: 10px; }
    .cm-dash .lab-name { font-size: 13px; }
    .cm-dash .lab-test { font-size: 11px; }

    /* Next-patient card — stack vertically */
    .cm-dash .next-patient { padding: 18px 20px; margin-bottom: 16px; }
    .cm-dash .np-row { flex-direction: column; align-items: stretch; gap: 14px; }
    .cm-dash .np-time { min-width: auto; padding: 10px; }
    .cm-dash .np-time .h { font-size: 20px; }
    .cm-dash .np-avatar { width: 44px; height: 44px; font-size: 15px; }
    .cm-dash .np-name { font-size: 18px; }
    .cm-dash .np-actions { flex-direction: column; }
    .cm-dash .np-btn { width: 100%; justify-content: center; }

    .cm-dash .doctors-strip { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .cm-dash .doc-tile { padding: 14px 10px; border-radius: 14px; }
    .cm-dash .doc-av { width: 48px; height: 48px; font-size: 16px; border-radius: 14px; }
    .cm-dash .doc-tile-name { font-size: 12px; }
    .cm-dash .ring { width: 48px; height: 48px; }
    .cm-dash .ring svg { width: 48px; height: 48px; }
    .cm-dash .doc-pct-text { font-size: 11px; }
    .cm-dash .doc-stat { font-size: 10px; }
}

/* ─── RESPONSIVE — tiny phones (≤380px) ────────────────── */
@media (max-width: 380px) {
    .cm-dash { padding: 12px; }
    .cm-dash .hero-text h1 { font-size: 20px; }
    .cm-dash .kpi-value { font-size: 32px; }
    .cm-dash .qa-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Appointments week calendar  (/calendar)
   8-column CSS grid: 1 narrow time-rail + 7 day columns.
   Class prefix `cm-cal-` to avoid collisions with MudBlazor
   single-word utility classes (.red, .amber, .italic etc).
   Mirrors the MudBlazor light-mode palette so it sits naturally
   next to MudPaper / MudButton in the surrounding chrome.
   ============================================================ */

.cm-cal-grid {
    display: grid;
    grid-template-columns: 64px repeat(7, minmax(140px, 1fr));
    /* Height of one 30-min slot row. Single source of truth: the inline
       grid-template-rows (set by the component, since the row COUNT is
       dynamic) reads this var, and it must match ViewModel.SlotRowHeightPx
       so the drag-drop OffsetY→slot math stays correct. */
    --cm-slot-h: 40px;
    /* grid-template-rows is set inline by the component so the
       row count tracks ViewModel.TotalSlots — keeps the C# the
       single source of truth for slot granularity. */
    min-width: 1000px;
    background: #fff;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 13px;
    color: #0B1220;
}

/* Top-left empty cell above the time rail */
.cm-cal-corner {
    grid-row: 1;
    grid-column: 1;
    background: #F8FAFC;
    border-right: 1px solid #E2E8F0;
    border-bottom: 1px solid #E2E8F0;
}

/* Day-of-week header row */
.cm-cal-day-header {
    grid-row: 1;
    padding: 8px 10px;
    background: #F8FAFC;
    border-bottom: 1px solid #E2E8F0;
    border-right: 1px solid #E2E8F0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    line-height: 1.2;
}

    .cm-cal-day-header .cm-cal-day-name {
        font-size: 11px;
        font-weight: 600;
        color: #64748B;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .cm-cal-day-header .cm-cal-day-num {
        font-size: 20px;
        font-weight: 600;
        color: #0B1220;
    }

    .cm-cal-day-header.is-today {
        background: rgba(25, 118, 210, 0.06);
    }

        .cm-cal-day-header.is-today .cm-cal-day-num {
            color: #1976D2;
        }

/* Left time rail */
.cm-cal-time-label {
    grid-column: 1;
    padding: 2px 8px 0 0;
    font-size: 11px;
    color: #94A3B8;
    text-align: right;
    border-right: 1px solid #E2E8F0;
    line-height: 1;
    transform: translateY(-6px); /* nudge the label to sit on the line */
}

    .cm-cal-time-label.is-full-hour {
        color: #475569;
        font-weight: 500;
    }

/* Day column — a sub-grid of half-hour slots */
.cm-cal-day-col {
    display: grid;
    position: relative;
    border-right: 1px solid #E2E8F0;
    background: #fff;
}

    .cm-cal-day-col.is-today {
        background: rgba(25, 118, 210, 0.03);
    }

/* Slot row inside a day column — the half-transparent hour-line backdrop */
.cm-cal-slot {
    grid-column: 1;
    border-bottom: 1px dashed transparent;
}

    .cm-cal-slot.is-hour-line {
        border-bottom: 1px solid #F1F5F9;
    }

    /* Outside the shaded doctor's working hours — a faint diagonal hatch so the
       bookable window stands out without hiding the click-to-create surface. */
    .cm-cal-slot.is-offhours {
        background-color: rgba(148, 163, 184, 0.12);
        background-image: repeating-linear-gradient(
            45deg,
            rgba(148, 163, 184, 0.10) 0,
            rgba(148, 163, 184, 0.10) 4px,
            transparent 4px,
            transparent 8px);
    }

    /* Already elapsed (past) — a solid muted fill so finished time reads as
       "done, not bookable". Declared after .is-offhours so on a past off-hours
       slot the solid fill wins for the background COLOR while the off-hours
       hatch (background-image) still shows through — giving four distinct looks:
       future-working (plain), future-off-hours (light hatch), past-working
       (solid grey), past-off-hours (solid grey + hatch). */
    .cm-cal-slot.is-past {
        background-color: rgba(100, 116, 139, 0.10);
    }

/* Legend swatch matching the off-hours hatch */
.cm-cal-offhours-swatch {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 3px;
    background-color: rgba(148, 163, 184, 0.18);
    background-image: repeating-linear-gradient(
        45deg,
        rgba(148, 163, 184, 0.25) 0,
        rgba(148, 163, 184, 0.25) 3px,
        transparent 3px,
        transparent 6px);
}

/* Legend swatch for past (elapsed) time */
.cm-cal-past-swatch {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 3px;
    background-color: rgba(100, 116, 139, 0.16);
}

/* ── Date-picker popover must always show the full month ──────────────────
   The list-page "Od/Do" filter fields are deliberately narrow (max-width),
   and the picker's inline calendar popover otherwise inherits that width and
   clips the day columns. Force the popover PAPER (and the calendar grid) to
   the natural calendar width — min-width + !important beats the inline/relative
   width MudBlazor puts on the paper, fixing every Od/Do filter at once.
   Scoped to picker-only classes so MudSelect / autocomplete dropdowns are
   untouched. */
.mud-picker-paper,
.mud-picker-container,
.mud-picker-calendar-container,
.mud-picker-calendar-transition {
    min-width: 312px !important;
}

/* Event chip — absolutely positioned inside the day column via grid-row span */
.cm-cal-event {
    grid-column: 1;
    margin: 1px 4px;
    padding: 4px 6px;
    border-radius: 6px;
    background: #E0E7FF;
    border-left: 3px solid #1976D2;
    cursor: grab;
    overflow: hidden;
    line-height: 1.3;
    transition: transform 0.05s ease, box-shadow 0.1s ease, opacity 0.1s ease;
    z-index: 1;
    user-select: none;
}

    .cm-cal-event:active { cursor: grabbing; }

    /* Source chip during an active drag — dimmed so the user can see the
       destination slots through it. Reset to full opacity on dragend. */
    .cm-cal-event.is-dragging {
        opacity: 0.35;
        transform: scale(0.98);
    }

    /* Inner labels don't capture pointer events, so a drop on a chip always
       targets the chip itself — keeps OnChipDropAsync's OffsetY measured from
       the chip's top edge, not from whichever label sits under the cursor. */
    .cm-cal-event > * {
        pointer-events: none;
    }

    .cm-cal-event:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
        z-index: 2;
    }

/* Empty slots get a soft cursor + hover affordance so the click-to-
   create surface is discoverable. */
.cm-cal-slot { cursor: cell; }

/* Unavailable slots (off-hours / past) aren't bookable — the click handler
   ignores them, so signal that with a not-allowed cursor and suppress the
   hover highlight below. */
.cm-cal-slot.is-offhours,
.cm-cal-slot.is-past {
    cursor: not-allowed;
}

.cm-cal-day-col:hover .cm-cal-slot:not(.is-offhours):not(.is-past):hover {
    background-color: rgba(25, 118, 210, 0.05);
}

    .cm-cal-event .cm-cal-event-time {
        font-size: 11px;
        font-weight: 600;
        color: #1E293B;
    }

    .cm-cal-event .cm-cal-event-patient {
        font-size: 12px;
        font-weight: 500;
        color: #0B1220;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .cm-cal-event .cm-cal-event-doctor {
        font-size: 11px;
        color: #64748B;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-top: 1px;
    }

/* Status palette — mirrors AppointmentStatusChip.ColorFor()
   but uses light backgrounds + saturated left-borders to read
   well at small chip sizes. */
.cm-cal-event-scheduled  { background: #DBEAFE; border-left-color: #2563EB; }
.cm-cal-event-checkedin  { background: #E0E7FF; border-left-color: #1976D2; }
.cm-cal-event-inexam     { background: #EDE9FE; border-left-color: #7C3AED; }
.cm-cal-event-completed  { background: #D1FAE5; border-left-color: #059669; }
.cm-cal-event-noshow     { background: #FEF3C7; border-left-color: #D97706; }
.cm-cal-event-noresponse { background: #FEF3C7; border-left-color: #D97706; }
.cm-cal-event-cancelled  {
    background: #F1F5F9;
    border-left-color: #94A3B8;
    text-decoration: line-through;
    opacity: 0.7;
}

/* ─── Calendar responsive — phones get smaller min-col-width ── */
@media (max-width: 768px) {
    .cm-cal-grid {
        grid-template-columns: 48px repeat(7, minmax(96px, 1fr));
        font-size: 12px;
    }
    .cm-cal-day-header .cm-cal-day-num { font-size: 16px; }
    .cm-cal-event { padding: 2px 4px; margin: 1px 2px; }
    .cm-cal-event .cm-cal-event-patient { font-size: 11px; }
    .cm-cal-event .cm-cal-event-doctor { font-size: 10px; }
}

/* ─── Calendar glass shell ────────────────────────────────────
   Wraps the week grid in the same gradient-mesh + glass-card aesthetic
   the dashboards / waiting room run, so the calendar surface feels
   like part of the same product. Self-contained inside the cm-cal-
   namespace so this PR doesn't depend on the list-glass sweep landing
   first (and vice versa).
   ──────────────────────────────────────────────────────────────── */

.cm-cal-shell {
    --cm-primary: #1976D2;
    --cm-accent: #7C3AED;
    --cm-text: #0B1220;
    --cm-text-secondary: #475569;
    color: var(--cm-text);
    font-family: 'Inter', -apple-system, sans-serif;
    background:
        radial-gradient(1200px 600px at -10% -20%, rgba(124,58,237,.18), transparent 60%),
        radial-gradient(900px 600px at 110% 0%, rgba(20,184,166,.18), transparent 60%),
        radial-gradient(900px 600px at 50% 120%, rgba(25,118,210,.18), transparent 60%),
        #F4F6FB;
    padding: 16px;
    border-radius: 20px;
}

.cm-cal-shell .cm-cal-glass {
    background: rgba(255,255,255,.65);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255,255,255,.7);
    box-shadow:
        0 1px 0 rgba(255,255,255,.6) inset,
        0 10px 30px rgba(15,23,42,.06),
        0 2px 6px rgba(15,23,42,.04);
    border-radius: 20px;
}

.cm-cal-shell .cm-cal-page-header {
    padding: 22px 28px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.cm-cal-shell .cm-cal-title-row {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.cm-cal-shell .cm-cal-page-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--cm-primary), var(--cm-accent));
    color: white;
    box-shadow: 0 6px 16px rgba(25,118,210,.28);
    flex-shrink: 0;
}

    .cm-cal-shell .cm-cal-page-icon .mud-icon-root {
        color: white;
        font-size: 24px;
    }

.cm-cal-shell .cm-cal-page-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -.5px;
    line-height: 1.1;
    margin: 0;
    background: linear-gradient(135deg, #0B1220 0%, #475569 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cm-cal-shell .cm-cal-page-subtitle {
    font-size: 13px;
    color: var(--cm-text-secondary);
    margin: 2px 0 0;
}

.cm-cal-shell .cm-cal-page-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.cm-cal-shell .cm-cal-nav-bar {
    padding: 14px 18px;
    margin-bottom: 14px;
}

.cm-cal-shell .cm-cal-grid-card {
    padding: 0;
    overflow: hidden;
}

    .cm-cal-shell .cm-cal-grid-card .cm-cal-grid {
        background: transparent;
        border-radius: 18px;
        overflow: hidden;
    }

/* ── Mobile day / agenda view — hidden on desktop, revealed ≤600px ── */
.cm-cal-shell .cm-cal-day-view { display: none; }

.cm-cal-shell .cm-cal-day-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 8px;
    border-bottom: 1px solid #EEF2F6;
}
.cm-cal-shell .cm-cal-day-nav-label { flex: 1; text-align: center; min-width: 0; }
.cm-cal-shell .cm-cal-day-nav-date {
    font-weight: 600;
    font-size: 15px;
    text-transform: capitalize;
    color: var(--cm-text);
}
.cm-cal-shell .cm-cal-today-link {
    background: none;
    border: none;
    color: var(--cm-primary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 2px 0 0;
}

.cm-cal-shell .cm-cal-agenda-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-top: 1px solid #F1F5F9;
    cursor: pointer;
    transition: background .12s ease;
}
    .cm-cal-shell .cm-cal-agenda-row:first-child { border-top: none; }
    .cm-cal-shell .cm-cal-agenda-row:hover { background: rgba(25,118,210,.04); }

.cm-cal-shell .cm-cal-agenda-time {
    font-weight: 700;
    font-size: 14px;
    min-width: 46px;
    color: var(--cm-primary);
}
.cm-cal-shell .cm-cal-agenda-body { flex: 1; min-width: 0; }
.cm-cal-shell .cm-cal-agenda-patient {
    font-size: 14px;
    font-weight: 600;
    color: var(--cm-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cm-cal-shell .cm-cal-agenda-doctor {
    font-size: 12px;
    color: var(--cm-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Free (bookable) slot rows — a quieter, "available" teal tint that reads
   distinctly from the booked appointment rows. */
.cm-cal-shell .cm-cal-agenda-free { background: rgba(20,184,166,.05); }
.cm-cal-shell .cm-cal-agenda-free:hover { background: rgba(20,184,166,.12); }
.cm-cal-shell .cm-cal-agenda-free .cm-cal-agenda-time { color: var(--cm-text-secondary); }
.cm-cal-shell .cm-cal-agenda-free-label { font-size: 13px; font-weight: 600; color: #0F766E; }

@media (max-width: 768px) {
    .cm-cal-shell .cm-cal-page-header { padding: 16px 18px; }
    .cm-cal-shell .cm-cal-page-title { font-size: 20px; }
    .cm-cal-shell .cm-cal-page-icon { width: 36px; height: 36px; }
}

@media (max-width: 600px) {
    .cm-cal-shell { padding: 12px; }

    /* Swap the 7-column week grid for the single-day agenda on phones. The
       off-hours/past legend is meaningless without the shaded grid, so hide it
       (!important beats MudBlazor's .d-flex display utility). */
    .cm-cal-shell .cm-cal-week-view { display: none; }
    .cm-cal-shell .cm-cal-day-view { display: block; }
    .cm-cal-shell .cm-cal-legend { display: none !important; }

    /* Header stacks on phones: title/date on top, "Novi termin" full width
       below (raised from 380px — 400px phones were left in the cramped row). */
    .cm-cal-shell .cm-cal-page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .cm-cal-shell .cm-cal-page-actions { width: 100%; }
    .cm-cal-shell .cm-cal-page-actions .mud-button-root { flex: 1 1 100%; }

    /* Day view navigates by day, so on phones the week buttons + status filter
       are hidden — only the doctor picker stays (full width). If there's no
       picker (a doctor on their own calendar) the whole bar is hidden. */
    .cm-cal-shell .cm-cal-nav-bar > .d-flex:first-child > * { flex: 1 1 100%; }
    .cm-cal-shell .cm-cal-nav-bar .mud-spacer { display: none !important; }
    /* The week button group is the first child of the filter row — hide it both
       by its own class and positionally (belt-and-suspenders, since MudBlazor's
       group markup didn't respond to a class-only rule). */
    .cm-cal-shell .cm-cal-weeknav,
    .cm-cal-shell .cm-cal-nav-bar > .d-flex:first-child > *:first-child { display: none !important; }
    .cm-cal-shell .cm-cal-status-filter { display: none !important; }
    .cm-cal-shell .cm-cal-nav-hide-mobile { display: none !important; }
}

/* ============================================================
   Glass list shell — for the vertical list surfaces
   (/patients, /doctors, /appointments, /lab-orders, /lab-tests).
   Mirrors the .cm-dash gradient-mesh background + glass card
   aesthetic so the lists feel like part of the same product
   as the dashboards and waiting room rather than raw MudBlazor.
   Prefix `cm-list-` to avoid MudBlazor utility-class collisions
   and to keep them grep-able as a family.
   ============================================================ */

.cm-list-shell {
    /* Match the dashboard's CSS-variable surface so reusable bits
       (chips, helper text, etc.) pick up the same palette. */
    --cm-primary: #1976D2;
    --cm-accent: #7C3AED;
    --cm-teal: #14B8A6;
    --cm-amber: #F59E0B;
    --cm-rose: #F43F5E;
    --cm-text: #0B1220;
    --cm-text-secondary: #475569;
    --cm-text-tertiary: #94A3B8;
    color: var(--cm-text);
    font-family: 'Inter', -apple-system, sans-serif;
    background:
        radial-gradient(1200px 600px at -10% -20%, rgba(124,58,237,.18), transparent 60%),
        radial-gradient(900px 600px at 110% 0%, rgba(20,184,166,.18), transparent 60%),
        radial-gradient(900px 600px at 50% 120%, rgba(25,118,210,.18), transparent 60%),
        #F4F6FB;
    padding: 16px;
    border-radius: 20px;
    /* Fill the viewport even when the content (a short list, a single
       form, a near-empty detail) doesn't reach the bottom. 64px is the
       MudAppBar height; 32px accounts for MudMainContent's vertical
       padding so the gradient ends flush with the bottom edge of the
       scrollport rather than leaving a white stripe. */
    min-height: calc(100vh - 96px);
}

/* Reusable glass surface — the lists' filter bar + data card use this. */
.cm-list-shell .cm-list-glass {
    background: rgba(255,255,255,.65);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255,255,255,.7);
    box-shadow:
        0 1px 0 rgba(255,255,255,.6) inset,
        0 10px 30px rgba(15,23,42,.06),
        0 2px 6px rgba(15,23,42,.04);
    border-radius: 20px;
}

/* Header block: gradient-text title + subtitle on the left, optional
   action slot on the right. Mirrors the dashboard `.hero` rhythm
   but at list-page scale (smaller h1, tighter padding). */
.cm-list-shell .cm-list-header {
    padding: 22px 28px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.cm-list-shell .cm-list-title-row {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0; /* allow flex children to ellipsize */
}

.cm-list-shell .cm-list-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--cm-primary), var(--cm-accent));
    color: white;
    box-shadow: 0 6px 16px rgba(25,118,210,.28);
    flex-shrink: 0;
}

    .cm-list-shell .cm-list-icon .mud-icon-root {
        color: white;
        font-size: 24px;
    }

.cm-list-shell .cm-list-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -.5px;
    line-height: 1.1;
    margin: 0;
    background: linear-gradient(135deg, #0B1220 0%, #475569 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cm-list-shell .cm-list-subtitle {
    font-size: 13px;
    color: var(--cm-text-secondary);
    margin: 2px 0 0;
}

.cm-list-shell .cm-list-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    flex-shrink: 0;
}

/* Filter strip — same glass tone as the data card, smaller padding,
   the filter MudSelects / MudDatePickers sit on top with their own
   white backgrounds and look natural. */
.cm-list-shell .cm-list-filters {
    padding: 14px 18px;
    margin-bottom: 14px;
}

/* Date filters cap their width on desktop so they don't sprawl; the phone
   media block below lifts the cap and stacks every filter full width. */
.cm-list-shell .cm-list-filters .cm-filter-date {
    max-width: 180px;
}

/* Data card — the main wrapper around MudDataGrid. The grid's own
   white inner background covers most of the glass surface; the soft
   shadow + rounded edges read at the outer rim. */
.cm-list-shell .cm-list-card {
    padding: 4px; /* MudDataGrid manages its own internal padding */
    overflow: hidden;
}

    /* MudDataGrid's default white square corners look out of place
       inside the rounded glass card — kill its top border-radius
       overhang so it tucks neatly inside. */
    .cm-list-shell .cm-list-card .mud-table-container {
        border-radius: 18px;
        background: transparent;
    }

    .cm-list-shell .cm-list-card .mud-table-root {
        background: transparent;
    }

/* Quiet alert variant for the inline error row above the card.
   Inherits MudAlert's structure but matches the glass palette. */
.cm-list-shell .mud-alert {
    border-radius: 14px;
}

/* ─── Glass list — responsive ─────────────────────────────── */
@media (max-width: 768px) {
    .cm-list-shell .cm-list-header { padding: 16px 18px; }
    .cm-list-shell .cm-list-title { font-size: 20px; }
    .cm-list-shell .cm-list-icon { width: 36px; height: 36px; }
}

/* Phones (≤ sm): stack the header so the title and the action buttons never
   collide. Raised from 380px — modern phones are ~400–430px wide (iPhone 16
   Pro is 402px), so a 380px cutoff left them in the side-by-side row where a
   long action button ("Pronađi pacijenta van liste") overlapped the title. */
@media (max-width: 600px) {
    .cm-list-shell { padding: 12px; }
    .cm-list-shell .cm-list-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .cm-list-shell .cm-list-actions { width: 100%; }

    /* Header action buttons: full width, stacked one per row on phones —
       flex-basis 100% + wrap puts each on its own line, so long labels
       ("Zakaži termin") don't wrap mid-button. */
    .cm-list-shell .cm-list-actions .mud-button-root {
        flex: 1 1 100%;
    }

    /* Filter strip: every control full width, one per row (range buttons,
       Od/Do date pickers, doctor + status selects). */
    .cm-list-shell .cm-list-filters .d-flex > * {
        flex: 1 1 100%;
    }
    .cm-list-shell .cm-list-filters .cm-filter-date {
        max-width: none;
    }
}

/* ============================================================
   Glass form + detail page extensions
   Reuses cm-list-shell + cm-list-header for the page chrome and
   adds cm-form-card / cm-detail-section / cm-detail-grid for the
   content layouts that forms and detail screens need.
   ============================================================ */

/* Form card — glass-wrapped form content with comfortable padding.
   Used by Create/Edit screens that house a MudForm. */
.cm-list-shell .cm-form-card {
    padding: 28px 32px;
}

/* Section heading inside detail or form cards.
   Slightly muted, uppercase, drives visual rhythm between groups. */
.cm-list-shell .cm-section-heading {
    font-size: 11px;
    font-weight: 700;
    color: var(--cm-text-secondary);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cm-list-shell .cm-section-heading::before {
    content: '';
    width: 3px;
    height: 14px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--cm-primary), var(--cm-accent));
}

/* Two-column detail layout: main content + sidebar. Falls back to
   stacked single column on tablet. Use cm-detail-grid as a wrapper;
   children are direct .cm-list-glass cards. */
.cm-list-shell .cm-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.cm-list-shell .cm-detail-section {
    padding: 24px 28px;
    margin-bottom: 16px;
}

    .cm-list-shell .cm-detail-section:last-child {
        margin-bottom: 0;
    }

/* Light "field" pattern for detail rows: label above value, stacked. */
.cm-list-shell .cm-field {
    margin-bottom: 12px;
}

    .cm-list-shell .cm-field:last-child { margin-bottom: 0; }

    .cm-list-shell .cm-field-label {
        font-size: 11px;
        font-weight: 600;
        color: var(--cm-text-secondary);
        text-transform: uppercase;
        letter-spacing: .3px;
        margin-bottom: 2px;
    }

    .cm-list-shell .cm-field-value {
        font-size: 14px;
        color: var(--cm-text);
        font-weight: 500;
    }

        .cm-list-shell .cm-field-value.is-muted {
            color: var(--cm-text-tertiary);
            font-style: italic;
            font-weight: 400;
        }

/* Action bar at the bottom of detail / form screens — sticky-feel,
   no glass background (sits next to the cards). */
.cm-list-shell .cm-action-bar {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 18px 24px;
    margin-top: 8px;
}

@media (max-width: 1000px) {
    .cm-list-shell .cm-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .cm-list-shell .cm-form-card { padding: 20px; }
    .cm-list-shell .cm-detail-section { padding: 18px 20px; }
}

/* ─── Dialog glass (subtle) ──────────────────────────────────
   MudDialog wraps content in .mud-dialog-container; we tag the
   inner MudDialog with cm-dialog and lightly style its surface
   so it sits naturally next to the glass list pages without
   competing for attention. */
.cm-dialog .mud-dialog {
    border-radius: 18px;
    box-shadow:
        0 1px 0 rgba(255,255,255,.6) inset,
        0 20px 50px rgba(15,23,42,.18),
        0 4px 12px rgba(15,23,42,.06);
    border: 1px solid rgba(255,255,255,.7);
    background: rgba(255,255,255,.98);
}

.cm-dialog .mud-dialog-title {
    font-family: 'Inter', -apple-system, sans-serif;
    font-weight: 700;
    letter-spacing: -.3px;
    color: #0B1220;
    border-bottom: 1px solid #F1F5F9;
    padding-bottom: 14px;
}

/* ============================================================
   NavMenu (left drawer) glass treatment
   Brings the sidebar into the same gradient-mesh + subtle glass
   surface the rest of the product runs. Class `cm-nav-glass` is
   attached to MudDrawer; we restyle its children rather than
   adding new wrappers, because MudDrawer/MudNavMenu manage their
   own layout (we don't want to break it).
   ============================================================ */

.cm-nav-glass.mud-drawer {
    background:
        radial-gradient(600px 400px at -20% -10%, rgba(124,58,237,.12), transparent 60%),
        radial-gradient(500px 500px at 0% 110%, rgba(25,118,210,.10), transparent 60%),
        rgba(248, 250, 252, 0.98);
    border-right: 1px solid rgba(226, 232, 240, 0.6);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
}

/* Section heading inside the drawer (e.g. "Workspace", "My account") */
.cm-nav-glass .mud-nav-link-text,
.cm-nav-glass .mud-typography {
    font-family: 'Inter', -apple-system, sans-serif;
}

/* Top section title — subtle gradient text accent matching the dashboards */
.cm-nav-glass .mud-typography-subtitle2 {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #475569 !important;
    text-transform: uppercase;
    letter-spacing: .8px;
    background: linear-gradient(135deg, #1976D2, #7C3AED);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Nav links: cleaner spacing, rounded hover/active treatment.
   MudBlazor's default hover/active fills the full row with a flat
   primary-tinted background; replace with a softer rounded pill
   so it reads alongside the glass cards on the right. */
.cm-nav-glass .mud-nav-link {
    border-radius: 10px;
    margin: 2px 8px;
    padding: 8px 14px;
    font-weight: 500;
    color: #334155;
    transition: background-color .15s ease, color .15s ease;
}

    .cm-nav-glass .mud-nav-link:hover {
        background-color: rgba(25, 118, 210, 0.08);
        color: #1976D2;
    }

    .cm-nav-glass .mud-nav-link.active,
    .cm-nav-glass .mud-nav-link.mud-nav-link-active {
        background: linear-gradient(135deg, rgba(25, 118, 210, 0.14), rgba(124, 58, 237, 0.10));
        color: #1976D2;
        font-weight: 600;
        box-shadow: 0 1px 0 rgba(255,255,255,.6) inset;
    }

        .cm-nav-glass .mud-nav-link.active .mud-icon-root,
        .cm-nav-glass .mud-nav-link.mud-nav-link-active .mud-icon-root {
            color: #1976D2;
        }

/* Divider between menu sections */
.cm-nav-glass .mud-divider {
    margin: 10px 16px;
    border-color: rgba(226, 232, 240, 0.6);
}

/* ── Compact history rows (patient detail timelines) ───────────────────
   Dense replacement for the old bordered timeline cards so long
   appointment / encounter / lab histories stay scannable. */
.cm-hrow {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 6px;
    cursor: pointer;
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
    border-radius: 6px;
    transition: background-color 0.12s ease;
}

.cm-hrow:hover {
    background-color: rgba(25, 118, 210, 0.05);
}

.cm-hrow:last-child {
    border-bottom: none;
}

.cm-hrow-main {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    min-width: 0;
}

.cm-hrow-date {
    font-weight: 600;
    font-size: 0.85rem;
    flex: 0 0 auto;
}

.cm-hrow-time {
    font-size: 0.72rem;
    color: #6B7785;
    flex: 0 0 auto;
}

.cm-hrow-primary {
    font-size: 0.8rem;
    color: #6B7785;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cm-hrow-secondary {
    font-size: 0.74rem;
    color: #6B7785;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-left: 2px;
}

/* Right-aligned secondary actions on a combined visit row (e.g. "Open appointment").
   margin-left:auto pushes them to the far right of the main line. */
.cm-hrow-actions {
    margin-left: auto;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ─────────────────────────────────────────────────────────────────────────
   aptx-* — the "rich card" detail-page style (2026-07 redesign).
   Shared by the Appointment, Patient chart, and Encounter detail pages.
   Was previously duplicated as inline <style> blocks in each component;
   consolidated here so all three stay visually in sync.
   ───────────────────────────────────────────────────────────────────────── */
.aptx-card { background:#fff; border:0.5px solid #E6EAF1; border-radius:16px; padding:20px 24px; margin-bottom:20px; }
.aptx-ico { width:38px;height:38px;border-radius:10px;background:#EEF3FB;display:inline-flex;align-items:center;justify-content:center;color:#1976D2;flex-shrink:0; }
.aptx-ico .mud-icon-root { font-size:20px; }
.aptx-lbl { font-size:12px;color:#8A97A8; }
.aptx-val { font-size:14px;color:#1A2433;font-weight:500; }
.aptx-info { display:flex;align-items:center;gap:10px; }
.aptx-sec-h { display:flex;align-items:center;gap:12px;margin-bottom:18px; }
.aptx-sec-t { font-size:19px;font-weight:600;color:#16324a; }
.aptx-grid { display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:18px 20px; }
.aptx-avatar { width:56px;height:56px;border-radius:50%;background:linear-gradient(135deg,#7C6FE0,#5B8DEF);color:#fff;display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:600;flex-shrink:0; }
.aptx-chip { display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600;padding:6px 14px;border-radius:20px;white-space:nowrap; }
.aptx-chip-green { background:#E7F6EC;color:#2E7D32; }
.aptx-chip-amber { background:#FDF0DD;color:#B26A00; }
.aptx-2col { display:grid;grid-template-columns:1fr 340px;gap:20px;align-items:start; }
.aptx-tl-item { display:flex;gap:12px;padding-bottom:20px;position:relative; }
.aptx-tl-item:last-child { padding-bottom:0; }
.aptx-tl-item:not(:last-child):before { content:'';position:absolute;left:11px;top:26px;bottom:0;width:2px;background:#D9F0E0; }
.aptx-tl-dot { width:24px;height:24px;border-radius:50%;background:#2E9E5B;color:#fff;display:flex;align-items:center;justify-content:center;flex-shrink:0;z-index:1; }
.aptx-tl-dot .mud-icon-root { font-size:15px;color:#fff; }
@media (max-width: 960px) { .aptx-2col { grid-template-columns:1fr; } }
