/* ==========================================================================
   RME-MPLB Healthcare Design System v2 — SMK Telekomedika Bogor
   Clean, Modern, Professional Hospital Learning UI
   ========================================================================== */

/* ─── Design Tokens ─── */
:root {
    /* ─── Modern Typography: Poppins (Headings) + Inter (Body/UI) ─── */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* ─── Healthcare Emerald & Medical Teal Palette (GREEN / TEAL THEME) ─── */
    --primary: #0d9488;
    --primary-hover: #0f766e;
    --primary-light: #f0fdfa;

    --c-teal-50: #f0fdfa;
    --c-teal-100: #ccfbf1;
    --c-teal-200: #99f6e4;
    --c-teal-300: #5eead4;
    --c-teal-400: #2dd4bf;
    --c-teal-500: #14b8a6;
    --c-teal-600: #0d9488;
    --c-teal-700: #0f766e;
    --c-teal-800: #115e59;
    --c-teal-900: #134e4a;
    --c-teal-950: #042f2e;

    /* Keep indigo/purple for accent roles only */
    --c-indigo-50: #eef2ff;   --c-indigo-600: #4f46e5;   --c-indigo-700: #4338ca;

    /* ─── Modern Crisp Neutral Palette ─── */
    --c-slate-50: #f8fafc;   /* Crisp clean light page background */
    --c-slate-100: #f1f5f9;
    --c-slate-200: #e2e8f0;
    --c-slate-300: #cbd5e1;
    --c-slate-400: #94a3b8;
    --c-slate-500: #64748b;
    --c-slate-600: #475569;
    --c-slate-700: #334155;
    --c-slate-800: #1e293b;
    --c-slate-900: #0b1329;  /* Exact Midnight Navy sidebar background from screenshot */

    --c-emerald-50: #ecfdf5;  --c-emerald-600: #059669;  --c-emerald-700: #047857;
    --c-amber-50: #fffbeb;    --c-amber-500: #f59e0b;    --c-amber-700: #b45309;
    --c-rose-50: #fff1f2;     --c-rose-600: #e11d48;     --c-rose-700: #be123c;
    --c-sky-50: #f0f9ff;      --c-sky-600: #0284c7;      --c-sky-700: #0369a1;
    --c-purple-50: #faf5ff;   --c-purple-600: #9333ea;   --c-purple-700: #7e22ce;

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --radius-pill: 9999px;

    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.06), 0 4px 6px -4px rgba(15, 23, 42, 0.04);

    --sidebar-w: 280px;
}

/* ─── Base ─── */
*, *::before, *::after { box-sizing: border-box; }

html {
    font-size: 100%; /* Standard 16px root scale for clear, crisp legibility across all displays */
}

html, body.app-body {
    height: 100%;
    margin: 0;
}

body.app-body {
    overflow: hidden;
}

body {
    background: var(--c-slate-50);
    color: var(--c-slate-700);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    line-height: 1.6;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

body.app-body {
    min-height: 100%;
    height: 100%;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    color: var(--c-slate-900);
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.3;
    margin: 0;
}

h1 { font-size: 1.5rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.18rem; }
h4 { font-size: 1.08rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.92rem; }

.small, small {
    font-size: 0.85rem;
}

a { color: var(--c-teal-700); text-decoration: none; }
a:hover { color: var(--c-teal-600); }

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--c-slate-300); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--c-slate-400); }

/* ==========================================================================
   SIMULATION BANNER (Fixed Header Shell)
   ========================================================================== */
.simulation-banner {
    background: linear-gradient(90deg, #9a3412 0%, #c2410c 50%, #9a3412 100%);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    padding: 6px 16px;
    text-align: center;
    position: relative;
    z-index: 1050;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    flex-shrink: 0;
}
.simulation-banner .badge-sim {
    background: rgba(0,0,0,0.3);
    color: #fef08a;
    font-size: 0.76rem;
    padding: 2px 9px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(254,240,138,0.3);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ==========================================================================
   APP LAYOUT WRAPPER & SIDEBAR
   ========================================================================== */
.app-layout-wrapper {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.app-sidebar {
    width: var(--sidebar-w);
    min-width: var(--sidebar-w);
    max-width: var(--sidebar-w);
    background: linear-gradient(180deg, #0b1329 0%, #0f172a 60%, #080d1a 100%) !important;
    color: #f8fafc;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1000;
    flex-shrink: 0;
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.25);
}

.sidebar-header {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.sidebar-brand-logo-card {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.sidebar-brand-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.school-brand-title {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
    display: block;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.badge-ta {
    background: rgba(13, 148, 136, 0.22);
    color: #5eead4;
    border: 1px solid rgba(94, 234, 212, 0.35);
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    display: inline-block;
}

.badge-app {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.72rem;
    font-weight: 600;
}

.sidebar-user-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius);
    padding: 10px 12px;
    margin: 10px 10px 6px;
    flex-shrink: 0;
}

.sidebar-avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--c-slate-800);
    border: 2px solid var(--c-teal-600);
    color: var(--c-teal-200);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.85rem;
    flex-shrink: 0;
}

.sidebar-nav-scroll {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 6px 8px 16px;
}

/* Nav items */
.sidebar-menu,
.app-sidebar .nav,
.app-sidebar .nav-pills {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
}

.sidebar-heading,
.app-sidebar .sidebar-heading {
    padding: 0.7rem 1rem 0.25rem !important;
    font-family: var(--font-heading) !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    color: #94a3b8 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.sidebar-heading::before,
.app-sidebar .sidebar-heading::before {
    content: '' !important;
    display: inline-block !important;
    width: 5px !important;
    height: 5px !important;
    border-radius: 50% !important;
    background: #10b981 !important;
    box-shadow: 0 0 5px rgba(16, 185, 129, 0.7) !important;
}

.sidebar-item,
.app-sidebar .nav-item {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    flex-shrink: 0 !important;
}

/* Sidebar Nav Links matching reference screenshot */
.sidebar-link,
.app-sidebar .nav-link {
    display: flex !important;
    align-items: center !important;
    gap: 0.7rem !important;
    padding: 0.38rem 0.65rem !important;
    margin: 1.5px 6px !important;
    color: #cbd5e1 !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    position: relative !important;
    font-family: var(--font-heading) !important;
    font-weight: 600 !important;
    font-size: 0.825rem !important;
    border: 1px solid transparent !important;
    width: auto !important;
}

.sidebar-link:hover,
.app-sidebar .nav-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.07) !important;
}

/* Rounded Icon Box Tile for every nav item */
.sidebar-link i,
.app-sidebar .nav-link i {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    border-radius: 7px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.88rem !important;
    flex-shrink: 0 !important;
    color: #cbd5e1 !important;
    transition: all 0.2s ease !important;
}

.sidebar-link:hover i,
.app-sidebar .nav-link:hover i {
    background: rgba(13, 148, 136, 0.3) !important;
    color: #5eead4 !important;
    transform: scale(1.05);
}

/* Active State Capsule (Teal/Emerald Accent) */
.sidebar-link.active,
.app-sidebar .nav-link.active {
    color: #ffffff !important;
    background: rgba(13, 148, 136, 0.22) !important;
    border: 1px solid rgba(45, 212, 191, 0.4) !important;
    font-family: var(--font-heading) !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
}

.sidebar-link.active i,
.app-sidebar .nav-link.active i {
    background: rgba(45, 212, 191, 0.28) !important;
    color: #2dd4bf !important;
    box-shadow: 0 0 10px rgba(45, 212, 191, 0.3) !important;
    transform: scale(1.05);
}

.sidebar-link .station-tag {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    margin-left: auto;
    flex-shrink: 0;
    white-space: nowrap;
}

.sidebar-link .badge {
    font-size: 0.7rem !important;
    padding: 2px 6px !important;
}

.sidebar-footer {
    padding: 10px 14px;
    border-top: 1px solid rgba(255,255,255,0.06);
    background: #0b1120;
    flex-shrink: 0;
    margin-top: auto;
}

/* ==========================================================================
   MAIN CONTENT AREA
   ========================================================================== */
.main-navbar {
    background: #fff;
    border-bottom: 1px solid var(--c-slate-200);
    min-height: 54px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    position: sticky;
    top: 0;
    z-index: 1020;
    flex-shrink: 0;
}

.navbar-module-badge {
    display: inline-flex;
    align-items: center;
    background: var(--c-teal-50);
    color: var(--c-teal-800);
    border: 1px solid var(--c-teal-100);
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.main-content {
    background: var(--c-slate-50);
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    scroll-behavior: smooth;
}

.app-content-body {
    width: 100%;
    max-width: 100%;
    padding: 1.5rem 1.75rem 3rem;
    flex: 1 0 auto;
}

.app-content-body > .container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* ==========================================================================
   HERO BANNER (Vibrant Healthcare Emerald & Teal Gradient - GREEN THEME)
   ========================================================================== */
.hero-banner {
    background: linear-gradient(135deg, #065f46 0%, #0d9488 50%, #10b981 100%) !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 25px -5px rgba(13, 148, 136, 0.35) !important;
    position: relative;
    overflow: hidden;
    color: #ffffff;
}

.hero-banner::before {
    content: '';
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 1.75rem;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.hero-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.hero-avatar {
    width: 54px; height: 54px;
    border-radius: 14px;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255,255,255,0.4);
    color: #fff;
    font-weight: 800;
    font-size: 1.45rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.hero-info { min-width: 0; }

.hero-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.hero-pill {
    background: rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.95);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: var(--radius-pill);
    padding: 3px 11px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(4px);
}

.hero-pill--active {
    background: #fff;
    color: #0d9488;
    border-color: #fff;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.hero-title {
    color: #ffffff !important;
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.015em;
    margin-bottom: 4px;
    line-height: 1.3;
}

.hero-subtitle {
    color: rgba(255,255,255,0.95) !important;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 400;
}

/* ─── Quick Actions (Pill/Chips matching reference UI) ─── */
.quick-actions-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1.25rem;
}

.action-pill {
    padding: 0.55rem 1.2rem;
    border-radius: 10px !important;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.action-pill i {
    font-size: 1rem;
    transition: transform 0.25s ease;
}

.action-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.action-pill:hover i {
    transform: scale(1.15);
}

.action-pill.primary {
    background: #ecfdf5 !important;
    color: #065f46 !important;
    border: 1.5px solid #a7f3d0 !important;
}
.action-pill.primary:hover {
    background: #059669 !important;
    color: #ffffff !important;
    border-color: #059669 !important;
}

.action-pill.warning {
    background: #fffbeb !important;
    color: #d97706 !important;
    border: 1.5px solid #fde68a !important;
}
.action-pill.warning:hover {
    background: #d97706 !important;
    color: #ffffff !important;
    border-color: #d97706 !important;
}

.action-pill.info {
    background: #f0fdfa !important;
    color: #0f766e !important;
    border: 1.5px solid #99f6e4 !important;
}
.action-pill.info:hover {
    background: #0d9488 !important;
    color: #ffffff !important;
    border-color: #0d9488 !important;
}

.action-pill.secondary {
    background: #f0f9ff !important;
    color: #0284c7 !important;
    border: 1.5px solid #bae6fd !important;
}
.action-pill.secondary:hover {
    background: #0284c7 !important;
    color: #ffffff !important;
    border-color: #0284c7 !important;
}

.hero-right { flex-shrink: 0; }

.hero-progress-card {
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 14px;
    padding: 12px 18px;
    min-width: 200px;
}

.hero-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.hero-progress-label {
    color: rgba(255,255,255,0.9);
    font-size: 0.82rem;
    font-weight: 600;
}

.hero-progress-pct {
    background: var(--c-amber-500);
    color: var(--c-slate-900);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: var(--radius-pill);
}

.hero-progress-value {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 800;
    margin: 4px 0 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.hero-progress-value i { color: var(--c-amber-500); font-size: 1rem; }
.hero-progress-value span { font-size: 0.82rem; font-weight: 400; color: rgba(255,255,255,0.65); }

.hero-progress-track {
    height: 6px;
    background: rgba(255,255,255,0.15);
    border-radius: var(--radius-pill);
    overflow: hidden;
}
.hero-progress-fill {
    height: 100%;
    background: var(--c-amber-500);
    border-radius: var(--radius-pill);
    transition: width 0.6s ease;
}

/* Legacy aliases for guru/admin dashboards */
.badge-hero-pill {
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.9);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-pill);
    padding: 3px 11px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(4px);
}
.badge-hero-pill.active,
.badge-hero-pill.highlight {
    background: #fff;
    color: var(--c-teal-700);
    border-color: #fff;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* ==========================================================================
   SECTION BLOCKS (Reusable Card Containers)
   ========================================================================== */
.section-block {
    background: #fff;
    border: 1.5px solid var(--c-slate-200);
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: all 0.2s ease;
}

.section-block:has(.section-tag--teal) {
    border: 1.5px solid #ccfbf1;
    border-top: 3.5px solid #0d9488;
    background: #ffffff;
}
.section-block:has(.section-tag--teal) .section-block-header {
    background: linear-gradient(90deg, #f0fdfa 0%, #f7fdfc 100%);
    border-bottom: 1.5px solid #ccfbf1;
}

.section-block:has(.counter-badge--warning) {
    border: 1.5px solid #fef3c7;
    border-top: 3.5px solid #f59e0b;
    background: linear-gradient(180deg, #fffdf8 0%, #ffffff 140px);
}
.section-block:has(.counter-badge--warning) .section-block-header {
    background: linear-gradient(90deg, #fffbeb 0%, #fffdf5 100%);
    border-bottom: 1.5px solid #fef3c7;
}

.section-block:has(.section-tag--success) {
    border: 1.5px solid #d1fae5;
    border-top: 3.5px solid #10b981;
    background: #ffffff;
}
.section-block:has(.section-tag--success) .section-block-header {
    background: linear-gradient(90deg, #ecfdf5 0%, #f7fdfa 100%);
    border-bottom: 1.5px solid #d1fae5;
}
.section-block:has(.section-tag--success) table thead th {
    background: #f0fdf4 !important;
    color: #065f46 !important;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1.5px solid #bbf7d0;
    padding: 11px 16px;
}
.section-block:has(.section-tag--success) tbody tr:hover {
    background-color: #f0fdf4 !important;
}
.section-block:has(.section-tag--success) .empty-state--compact {
    background: linear-gradient(180deg, #f0fdf4 0%, #f9fdfa 100%);
    border: 1.5px dashed #86efac;
    border-radius: 12px;
    margin: 1.25rem 1rem;
    padding: 1.75rem 1rem;
    color: #065f46;
}
.section-block:has(.section-tag--success) .empty-state--compact i {
    color: #10b981;
}

.section-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid var(--c-slate-100);
    gap: 12px;
    flex-wrap: wrap;
}

.section-block-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-block-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--c-slate-900);
    margin: 0;
}

.section-block-phases {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.section-block-body {
    padding: 16px 18px;
}

/* Section Tags */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    white-space: nowrap;
}

.section-tag--teal {
    background: var(--c-teal-50);
    color: var(--c-teal-700);
    border: 1px solid var(--c-teal-100);
}
.section-tag--success {
    background: var(--c-emerald-50);
    color: var(--c-emerald-700);
    border: 1px solid #bbf7d0;
}

/* Phase Chips */
.phase-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
}
.phase-chip--1 { background: var(--c-teal-50); color: var(--c-teal-700); border: 1px solid var(--c-teal-100); }
.phase-chip--2 { background: var(--c-sky-50); color: var(--c-sky-700); border: 1px solid #bae6fd; }
.phase-chip--3 { background: var(--c-purple-50); color: var(--c-purple-700); border: 1px solid #f3e8ff; }

/* Counter Badge */
.counter-badge {
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 700;
}
.counter-badge--warning {
    background: var(--c-amber-50);
    color: var(--c-amber-700);
    border: 1px solid #fef3c7;
}

/* ==========================================================================
   10 WORKSTATION MINI CARDS (Compact 5×2 Grid)
   ========================================================================== */
.station-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    padding: 14px 16px;
    background: linear-gradient(180deg, #f4fbf9 0%, #fafdfc 100%);
    border-radius: 0 0 var(--radius) var(--radius);
}

.station-mini {
    background: #fff;
    border: 1px solid var(--c-slate-200);
    border-radius: var(--radius);
    padding: 14px;
    text-decoration: none;
    color: var(--c-slate-700);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.station-mini:hover {
    border-color: var(--c-teal-500);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -6px rgba(15,118,110,0.12);
    color: var(--c-slate-900);
}

.station-mini--highlight {
    background: var(--c-teal-50);
    border-color: var(--c-teal-100);
}

/* Subtle pastel background color tints for workstation cards */
.station-mini--teal,
.station-mini:has(.station-mini-num--teal) {
    background: linear-gradient(180deg, #f0fdfa 0%, #f7fdfc 60%, #ffffff 100%);
    border: 1.5px solid #ccfbf1;
    border-top: 3.5px solid #0d9488;
}
.station-mini--teal:hover,
.station-mini:has(.station-mini-num--teal):hover {
    background: #e6fffa;
    border-color: #99f6e4;
    border-top-color: #0f766e;
    box-shadow: 0 8px 20px -6px rgba(13, 148, 136, 0.2);
}

.station-mini--amber,
.station-mini:has(.station-mini-num--amber) {
    background: linear-gradient(180deg, #fffbeb 0%, #fefcf2 60%, #ffffff 100%);
    border: 1.5px solid #fef3c7;
    border-top: 3.5px solid #f59e0b;
}
.station-mini--amber:hover,
.station-mini:has(.station-mini-num--amber):hover {
    background: #fef9db;
    border-color: #fde68a;
    border-top-color: #d97706;
    box-shadow: 0 8px 20px -6px rgba(245, 158, 11, 0.2);
}

.station-mini--sky,
.station-mini:has(.station-mini-num--sky) {
    background: linear-gradient(180deg, #f0f9ff 0%, #f6fbff 60%, #ffffff 100%);
    border: 1.5px solid #e0f2fe;
    border-top: 3.5px solid #0284c7;
}
.station-mini--sky:hover,
.station-mini:has(.station-mini-num--sky):hover {
    background: #e3f4fd;
    border-color: #bae6fd;
    border-top-color: #0369a1;
    box-shadow: 0 8px 20px -6px rgba(2, 132, 199, 0.2);
}

.station-mini--emerald,
.station-mini:has(.station-mini-num--emerald) {
    background: linear-gradient(180deg, #ecfdf5 0%, #f4fbf7 60%, #ffffff 100%);
    border: 1.5px solid #d1fae5;
    border-top: 3.5px solid #10b981;
}
.station-mini--emerald:hover,
.station-mini:has(.station-mini-num--emerald):hover {
    background: #e0fbf0;
    border-color: #a7f3d0;
    border-top-color: #059669;
    box-shadow: 0 8px 20px -6px rgba(16, 185, 129, 0.2);
}

.station-mini--rose,
.station-mini:has(.station-mini-num--rose) {
    background: linear-gradient(180deg, #fff1f2 0%, #fdf5f6 60%, #ffffff 100%);
    border: 1.5px solid #ffe4e6;
    border-top: 3.5px solid #f43f5e;
}
.station-mini--rose:hover,
.station-mini:has(.station-mini-num--rose):hover {
    background: #ffe4e7;
    border-color: #fecdd3;
    border-top-color: #e11d48;
    box-shadow: 0 8px 20px -6px rgba(244, 63, 94, 0.2);
}

.station-mini--indigo,
.station-mini:has(.station-mini-num--indigo) {
    background: linear-gradient(180deg, #eef2ff 0%, #f6f8ff 60%, #ffffff 100%);
    border: 1.5px solid #e0e7ff;
    border-top: 3.5px solid #6366f1;
}
.station-mini--indigo:hover,
.station-mini:has(.station-mini-num--indigo):hover {
    background: #e5e7ff;
    border-color: #c7d2fe;
    border-top-color: #4f46e5;
    box-shadow: 0 8px 20px -6px rgba(99, 102, 241, 0.2);
}

.station-mini--slate,
.station-mini:has(.station-mini-num--slate) {
    background: linear-gradient(180deg, #f8fafc 0%, #fbfcfd 60%, #ffffff 100%);
    border: 1.5px solid #e2e8f0;
    border-top: 3.5px solid #64748b;
}
.station-mini--slate:hover,
.station-mini:has(.station-mini-num--slate):hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    border-top-color: #475569;
    box-shadow: 0 8px 20px -6px rgba(100, 116, 139, 0.2);
}

.station-mini--purple,
.station-mini:has(.station-mini-num--purple) {
    background: linear-gradient(180deg, #faf5ff 0%, #fcf8ff 60%, #ffffff 100%);
    border: 1.5px solid #f3e8ff;
    border-top: 3.5px solid #a855f7;
}
.station-mini--purple:hover,
.station-mini:has(.station-mini-num--purple):hover {
    background: #f5e8ff;
    border-color: #e9d5ff;
    border-top-color: #9333ea;
    box-shadow: 0 8px 20px -6px rgba(168, 85, 247, 0.2);
}

.station-mini--teal-highlight,
.station-mini:has(.station-mini-num--teal-highlight) {
    background: linear-gradient(180deg, #e6fffa 0%, #f0fdfa 100%);
    border: 1.5px solid #a7f3d0;
    border-top: 3.5px solid #059669;
}
.station-mini--teal-highlight:hover,
.station-mini:has(.station-mini-num--teal-highlight):hover {
    background: #d1fae5;
    border-color: #6ee7b7;
    border-top-color: #047857;
    box-shadow: 0 8px 20px -6px rgba(5, 150, 105, 0.25);
}

.station-mini-num {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 3px 9px;
    border-radius: var(--radius-pill);
    margin-bottom: 8px;
}

.station-mini-num--teal { background: var(--c-teal-50); color: var(--c-teal-700); }
.station-mini-num--amber { background: var(--c-amber-50); color: var(--c-amber-700); }
.station-mini-num--sky { background: var(--c-sky-50); color: var(--c-sky-700); }
.station-mini-num--emerald { background: var(--c-emerald-50); color: var(--c-emerald-700); }
.station-mini-num--rose { background: var(--c-rose-50); color: var(--c-rose-700); }
.station-mini-num--indigo { background: var(--c-indigo-50); color: var(--c-indigo-700); }
.station-mini-num--slate { background: var(--c-slate-100); color: var(--c-slate-600); }
.station-mini-num--purple { background: var(--c-purple-50); color: var(--c-purple-700); }
.station-mini-num--teal-highlight { background: var(--c-teal-700); color: #fff; }

.station-mini-icon {
    width: 42px; height: 42px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 10px;
    transition: transform 0.2s ease;
}

.station-mini:hover .station-mini-icon { transform: scale(1.1); }

.station-mini-icon--teal { background: var(--c-teal-50); color: var(--c-teal-700); }
.station-mini-icon--amber { background: var(--c-amber-50); color: var(--c-amber-700); }
.station-mini-icon--sky { background: var(--c-sky-50); color: var(--c-sky-700); }
.station-mini-icon--emerald { background: var(--c-emerald-50); color: var(--c-emerald-700); }
.station-mini-icon--rose { background: var(--c-rose-50); color: var(--c-rose-700); }
.station-mini-icon--indigo { background: var(--c-indigo-50); color: var(--c-indigo-700); }
.station-mini-icon--slate { background: var(--c-slate-100); color: var(--c-slate-600); }
.station-mini-icon--purple { background: var(--c-purple-50); color: var(--c-purple-700); }
.station-mini-icon--teal-highlight { background: var(--c-teal-100); color: var(--c-teal-700); }

.station-mini-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--c-slate-900);
    line-height: 1.35;
    margin-bottom: 4px;
}

.station-mini-desc {
    font-size: 0.8rem;
    color: var(--c-slate-600);
    line-height: 1.45;
}

/* Responsive station grid */
@media (max-width: 1200px) {
    .station-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 992px) {
    .station-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 576px) {
    .station-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   DASHBOARD 2-COLUMN GRID
   ========================================================================== */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1.25rem;
    align-items: start;
}

.dashboard-main { min-width: 0; }
.dashboard-sidebar { min-width: 0; }

@media (max-width: 1100px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   TASK / ASSIGNMENT LIST
   ========================================================================== */
.task-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--c-slate-200);
    border-radius: var(--radius);
    transition: all 0.15s ease;
}

.task-item:hover {
    border-color: var(--c-teal-300);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.task-item:has(.task-item-indicator--emerald) {
    background: linear-gradient(135deg, #ecfdf5 0%, #f4fbf7 45%, #ffffff 100%);
    border: 1.5px solid #d1fae5;
}
.task-item:has(.task-item-indicator--emerald):hover {
    background: linear-gradient(135deg, #dcfce7 0%, #edfbf3 50%, #ffffff 100%);
    border-color: #a7f3d0;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.12);
}

.task-item:has(.task-item-indicator--amber) {
    background: linear-gradient(135deg, #fffbeb 0%, #fefcf2 45%, #ffffff 100%);
    border: 1.5px solid #fef3c7;
}
.task-item:has(.task-item-indicator--amber):hover {
    background: linear-gradient(135deg, #fef3c7 0%, #fef8dd 50%, #ffffff 100%);
    border-color: #fde68a;
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.12);
}

.task-item:has(.task-item-indicator--rose) {
    background: linear-gradient(135deg, #fff1f2 0%, #fdf5f6 45%, #ffffff 100%);
    border: 1.5px solid #ffe4e6;
}
.task-item:has(.task-item-indicator--rose):hover {
    background: linear-gradient(135deg, #ffe4e6 0%, #fee8eb 50%, #ffffff 100%);
    border-color: #fecdd3;
    box-shadow: 0 6px 18px rgba(244, 63, 94, 0.12);
}

.task-item-indicator {
    width: 4.5px;
    height: 100%;
    min-height: 48px;
    border-radius: 4px;
    flex-shrink: 0;
    align-self: stretch;
}
.task-item-indicator--emerald { background: var(--c-emerald-600); }
.task-item-indicator--amber { background: var(--c-amber-500); }
.task-item-indicator--rose { background: var(--c-rose-600); }

.task-item-body {
    flex: 1;
    min-width: 0;
}

.task-item-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.task-item-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--c-slate-900);
    margin-bottom: 4px;
    line-height: 1.35;
}

.task-item-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: var(--c-slate-600);
}

.task-item-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.task-item-meta i {
    font-size: 0.8rem;
}

.task-item-action {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* ==========================================================================
   SIDEBAR WIDGETS
   ========================================================================== */
.sidebar-widget {
    background: #fff;
    border: 1.5px solid var(--c-slate-200);
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    margin-bottom: 1.25rem;
    transition: all 0.2s ease;
}

/* Sidebar Widget 1: Logbook (Teal) */
.sidebar-widget:has(.widget-icon--teal) {
    background: linear-gradient(180deg, #f0fdfa 0%, #fbfefe 50%, #ffffff 100%);
    border: 1.5px solid #ccfbf1;
    border-top: 3.5px solid #0d9488;
}
.sidebar-widget:has(.widget-icon--teal) .sidebar-widget-header {
    background: linear-gradient(90deg, #e6fffa 0%, #f0fdfa 100%);
    border-bottom: 1.5px solid #ccfbf1;
}
.sidebar-widget:has(.widget-icon--teal) .progress-info {
    background: #ffffff;
    border: 1.5px solid #99f6e4;
    border-radius: 10px;
    padding: 8px 12px;
    margin-bottom: 8px;
    box-shadow: 0 1px 3px rgba(13, 148, 136, 0.06);
}
.sidebar-widget:has(.widget-icon--teal) .progress-track {
    background: #ccfbf1;
    height: 8px;
    border-radius: 99px;
    margin-bottom: 14px;
}
.sidebar-widget:has(.widget-icon--teal) .progress-track-fill {
    background: linear-gradient(90deg, #0d9488, #10b981);
}
.sidebar-widget:has(.widget-icon--teal) .logbook-entry {
    background: #ffffff;
    border: 1px solid #ccfbf1;
    border-left: 3.5px solid #0d9488;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 6px;
    transition: all 0.15s ease;
}
.sidebar-widget:has(.widget-icon--teal) .logbook-entry:hover {
    background: #e6fffa;
    border-color: #99f6e4;
    border-left-color: #0f766e;
    transform: translateX(2px);
}
.sidebar-widget:has(.widget-icon--teal) .empty-state--compact {
    background: #ffffff;
    border: 1.5px dashed #99f6e4;
    border-radius: 12px;
    padding: 1.25rem 1rem;
}
.sidebar-widget:has(.widget-icon--teal) .empty-state--compact i {
    color: #0d9488;
}
.sidebar-widget:has(.widget-icon--teal) .empty-state--compact .btn-subtle {
    background: #0d9488;
    color: #ffffff;
    border: none;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(13, 148, 136, 0.25);
    transition: all 0.2s ease;
}
.sidebar-widget:has(.widget-icon--teal) .empty-state--compact .btn-subtle:hover {
    background: #0f766e;
    color: #ffffff;
    transform: translateY(-1px);
}

/* Sidebar Widget 2: Kamus Istilah RM (Indigo/Blue) */
.sidebar-widget:has(.widget-icon--indigo) {
    background: linear-gradient(180deg, #eef2ff 0%, #f8faff 50%, #ffffff 100%);
    border: 1.5px solid #e0e7ff;
    border-top: 3.5px solid #6366f1;
}
.sidebar-widget:has(.widget-icon--indigo) .sidebar-widget-header {
    background: linear-gradient(90deg, #e0e7ff 0%, #eef2ff 100%);
    border-bottom: 1.5px solid #e0e7ff;
}

/* Sidebar Widget 3: Akses Cepat (Purple) */
.sidebar-widget:has(.widget-icon--purple) {
    background: linear-gradient(180deg, #faf5ff 0%, #fdfaff 50%, #ffffff 100%);
    border: 1.5px solid #f3e8ff;
    border-top: 3.5px solid #8b5cf6;
}
.sidebar-widget:has(.widget-icon--purple) .sidebar-widget-header {
    background: linear-gradient(90deg, #f3e8ff 0%, #faf5ff 100%);
    border-bottom: 1.5px solid #f3e8ff;
}

.sidebar-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--c-slate-100);
}

.sidebar-widget-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--c-slate-900);
    margin: 0;
}

.sidebar-widget-body {
    padding: 14px 16px;
}

.widget-icon {
    width: 28px; height: 28px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.widget-icon--teal { background: var(--c-teal-50); color: var(--c-teal-700); }
.widget-icon--indigo { background: var(--c-indigo-50); color: var(--c-indigo-700); }
.widget-icon--purple { background: var(--c-purple-50); color: var(--c-purple-700); }

.widget-link {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--c-teal-700);
}

/* Progress track */
.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: var(--c-slate-600);
    margin-bottom: 6px;
}
.progress-info strong { color: var(--c-slate-800); }

.progress-track {
    height: 6px;
    background: var(--c-slate-100);
    border-radius: var(--radius-pill);
    overflow: hidden;
    margin-bottom: 14px;
}
.progress-track-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--c-teal-600), var(--c-teal-500));
    border-radius: var(--radius-pill);
    transition: width 0.6s ease;
}

/* Logbook entries */
.logbook-entries {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.logbook-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--c-slate-100);
}
.logbook-entry:last-child { border-bottom: none; }

.logbook-entry-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--c-slate-800);
    display: block;
}
.logbook-entry-date {
    font-size: 0.78rem;
    color: var(--c-slate-500);
    display: block;
    margin-top: 2px;
}

/* Glossary chips */
.glossary-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.glossary-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f0f9ff;
    color: #0369a1;
    border: 1px solid #bae6fd;
    border-radius: var(--radius-pill);
    padding: 4px 11px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
}
.glossary-chip i { font-size: 0.75rem; color: #0284c7; }

.glossary-chip:hover {
    background: #0284c7;
    color: #fff;
    border-color: #0284c7;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(2, 132, 199, 0.25);
}
.glossary-chip:hover i { color: #bae6fd; }

.glossary-search-trigger {
    padding-top: 12px;
    border-top: 1px solid var(--c-slate-100);
}
.glossary-search-trigger .btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}
.glossary-search-trigger .btn:hover {
    background: #f0fdfa;
    border-color: #ccfbf1;
}
.glossary-search-trigger kbd {
    background: #fff;
    border: 1px solid var(--c-slate-200);
    color: var(--c-slate-500);
    font-size: 0.75rem;
    padding: 2px 7px;
    border-radius: 4px;
}

/* Quick Links */
.quick-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
    font-weight: 600;
    color: #475569;
    background: #ffffff;
    border: 1.2px solid #f3e8ff;
    border-left: 4px solid #8b5cf6;
    box-shadow: 0 1px 3px rgba(139, 92, 246, 0.05);
    transition: all 0.18s ease;
}
.quick-link:hover {
    background: #f5e8ff;
    color: #6b21a8;
    border-color: #e9d5ff;
    border-left-color: #7c3aed;
    transform: translateX(3px);
    box-shadow: 0 3px 8px rgba(139, 92, 246, 0.12);
}
.quick-link i {
    font-size: 0.95rem;
    color: #8b5cf6;
    width: 18px;
    text-align: center;
}
.quick-link:hover i { color: #7c3aed; }

/* ==========================================================================
   EMPTY STATE
   ========================================================================== */
.empty-state {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--c-slate-500);
}
.empty-state i {
    font-size: 2.2rem;
    display: block;
    margin-bottom: 8px;
    color: var(--c-slate-400);
}
.empty-state h6 {
    font-weight: 700;
    color: var(--c-slate-800);
    margin-bottom: 4px;
}
.empty-state p {
    font-size: 0.875rem;
    margin-bottom: 12px;
    color: var(--c-slate-500);
}

.empty-state--compact {
    padding: 1.5rem 1rem;
}
.empty-state--compact i { font-size: 1.6rem; }

/* ==========================================================================
   GENERIC CARD (Bootstrap override)
   ========================================================================== */
.card {
    background: #fff;
    border: 1px solid var(--c-slate-200);
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: 1rem;
    transition: box-shadow 0.2s, transform 0.2s;
}

.card-header {
    background: #fff;
    border-bottom: 1px solid var(--c-slate-100);
    font-weight: 600;
    padding: 12px 18px;
    border-top-left-radius: var(--radius) !important;
    border-top-right-radius: var(--radius) !important;
}

/* Contextual Card Accents */
.card:has(.badge-soft-danger) {
    border: 1.5px solid #ffe4e6 !important;
    border-top: 3.5px solid #f43f5e !important;
}
.card:has(.badge-soft-danger) > .card-header {
    background: linear-gradient(90deg, #fff1f2 0%, #ffffff 100%) !important;
    border-bottom: 1.5px solid #ffe4e6 !important;
}

.card:has(.badge-soft-warning) {
    border: 1.5px solid #fef3c7 !important;
    border-top: 3.5px solid #f59e0b !important;
}
.card:has(.badge-soft-warning) > .card-header {
    background: linear-gradient(90deg, #fffbeb 0%, #ffffff 100%) !important;
    border-bottom: 1.5px solid #fef3c7 !important;
}

.card:has(.badge-soft-primary) {
    border: 1.5px solid #dbeafe !important;
    border-top: 3.5px solid #3b82f6 !important;
}
.card:has(.badge-soft-primary) > .card-header {
    background: linear-gradient(90deg, #eff6ff 0%, #ffffff 100%) !important;
    border-bottom: 1.5px solid #dbeafe !important;
}

.card:has(.badge-soft-teal) {
    border: 1.5px solid #ccfbf1 !important;
    border-top: 3.5px solid #0d9488 !important;
}
.card:has(.badge-soft-teal) > .card-header {
    background: linear-gradient(90deg, #f0fdfa 0%, #ffffff 100%) !important;
    border-bottom: 1.5px solid #ccfbf1 !important;
}

/* ==========================================================================
   BADGES / PILLS
   ========================================================================== */
.badge {
    font-weight: 600;
    border-radius: var(--radius-pill);
    padding: 4px 10px;
    font-size: 0.8rem;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-soft-teal { background: var(--c-teal-50); color: var(--c-teal-700); border: 1px solid var(--c-teal-100); }
.badge-soft-primary { background: #eff6ff; color: #1d4ed8; border: 1px solid #dbeafe; }
.badge-soft-success { background: var(--c-emerald-50); color: var(--c-emerald-700); border: 1px solid #bbf7d0; }
.badge-soft-warning { background: var(--c-amber-50); color: var(--c-amber-700); border: 1px solid #fef3c7; }
.badge-soft-danger { background: var(--c-rose-50); color: var(--c-rose-700); border: 1px solid #fecdd3; }
.badge-soft-info { background: var(--c-sky-50); color: var(--c-sky-700); border: 1px solid #bae6fd; }
.badge-soft-purple { background: var(--c-purple-50); color: var(--c-purple-700); border: 1px solid #f3e8ff; }
.badge-soft-indigo { background: var(--c-indigo-50); color: var(--c-indigo-700); border: 1px solid #e0e7ff; }
.badge-soft-slate,
.badge-soft-secondary { background: var(--c-slate-50); color: var(--c-slate-600); border: 1px solid var(--c-slate-200); }

/* ==========================================================================
   STAT CARDS
   ========================================================================== */
.stat-card {
    background: #fff;
    border: 1px solid var(--c-slate-200);
    border-radius: var(--radius);
    padding: 16px 18px;
    box-shadow: var(--shadow-xs);
    transition: all 0.2s ease;
}
.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-card.teal,
.stat-card:has(.icon-chip.teal) {
    background: linear-gradient(145deg, #f0fdfa 0%, #ffffff 100%);
    border: 1.5px solid #ccfbf1;
    border-left: 4.5px solid #0d9488;
}
.stat-card.emerald,
.stat-card:has(.icon-chip.emerald) {
    background: linear-gradient(145deg, #ecfdf5 0%, #ffffff 100%);
    border: 1.5px solid #d1fae5;
    border-left: 4.5px solid #10b981;
}
.stat-card.amber,
.stat-card:has(.icon-chip.amber) {
    background: linear-gradient(145deg, #fffbeb 0%, #ffffff 100%);
    border: 1.5px solid #fef3c7;
    border-left: 4.5px solid #f59e0b;
}
.stat-card.rose,
.stat-card:has(.icon-chip.rose) {
    background: linear-gradient(145deg, #fff1f2 0%, #ffffff 100%);
    border: 1.5px solid #ffe4e6;
    border-left: 4.5px solid #f43f5e;
}
.stat-card.sky,
.stat-card:has(.icon-chip.sky) {
    background: linear-gradient(145deg, #f0f9ff 0%, #ffffff 100%);
    border: 1.5px solid #e0f2fe;
    border-left: 4.5px solid #0284c7;
}
.stat-card.indigo,
.stat-card:has(.icon-chip.indigo) {
    background: linear-gradient(145deg, #eef2ff 0%, #ffffff 100%);
    border: 1.5px solid #e0e7ff;
    border-left: 4.5px solid #6366f1;
}

.stat-card .icon-chip {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}
.stat-card .icon-chip.teal { background: #0d9488; color: #fff; box-shadow: 0 2px 6px rgba(13, 148, 136, 0.25); }
.stat-card .icon-chip.emerald { background: #10b981; color: #fff; box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25); }
.stat-card .icon-chip.amber { background: #f59e0b; color: #fff; box-shadow: 0 2px 6px rgba(245, 158, 11, 0.25); }
.stat-card .icon-chip.rose { background: #f43f5e; color: #fff; box-shadow: 0 2px 6px rgba(244, 63, 94, 0.25); }
.stat-card .icon-chip.sky { background: #0284c7; color: #fff; box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25); }
.stat-card .icon-chip.indigo { background: #6366f1; color: #fff; box-shadow: 0 2px 6px rgba(99, 102, 241, 0.25); }
.stat-card .stat-value {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--c-slate-900);
    letter-spacing: -0.025em;
    line-height: 1.2;
}
.stat-card .stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #64748b;
    font-weight: 700;
}

/* ==========================================================================
   TABLES & DATA GRIDS
   ========================================================================== */
.table { 
    margin-bottom: 0; 
    font-size: 0.895rem; 
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th,
.report-table-card .table thead th {
    background: #e9eef4 !important;
    color: #0f172a !important;
    font-family: var(--font-heading);
    font-size: 0.86rem;
    text-transform: none;
    letter-spacing: 0.01em;
    font-weight: 700;
    border-top: none;
    border-bottom: 2.5px solid #cbd5e1 !important;
    padding: 13px 14px;
    vertical-align: middle;
    white-space: nowrap;
}

/* Background Selang-Seling (Zebra Striping) - Kontras Jelas & Rapi */
.table-striped tbody tr:nth-of-type(odd) td,
.table-striped tbody tr:nth-of-type(odd) th,
.report-table-card table tbody tr:nth-of-type(odd) td {
    background-color: #ffffff !important;
}

.table-striped tbody tr:nth-of-type(even) td,
.table-striped tbody tr:nth-of-type(even) th,
.report-table-card table tbody tr:nth-of-type(even) td {
    background-color: #f1f5f9 !important; /* Kontras selang-seling terlihat jelas */
}

.table tbody td {
    padding: 13px 14px;
    vertical-align: middle;
    border-bottom: 1px solid #e2e8f0;
    color: #1e293b;
    font-size: 0.895rem;
}

/* Hover highlight effect on rows */
.table-hover tbody tr:hover td,
.report-table-card table tbody tr:hover td {
    background-color: #ccfbf1 !important; /* Soft healthcare mint highlight */
    transition: background-color 0.15s ease-in-out;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 7px 15px;
    transition: all 0.15s ease;
    border: 1px solid transparent;
}

.btn-sm {
    font-size: 0.82rem;
    padding: 5px 12px;
}

.btn-teal {
    background: var(--c-teal-700);
    border-color: var(--c-teal-700);
    color: #fff;
}
.btn-teal:hover {
    background: var(--c-teal-600);
    border-color: var(--c-teal-600);
    color: #fff;
    box-shadow: 0 4px 10px rgba(15,118,110,0.2);
}

.btn-outline-teal {
    color: var(--c-teal-700);
    border-color: var(--c-teal-700);
    background: transparent;
}
.btn-outline-teal:hover {
    color: #fff;
    background: var(--c-teal-700);
    box-shadow: 0 4px 10px rgba(15,118,110,0.2);
}

.btn-subtle {
    background: var(--c-slate-100);
    color: var(--c-slate-600);
    border-color: var(--c-slate-200);
}
.btn-subtle:hover {
    background: var(--c-slate-200);
    color: var(--c-slate-800);
}

.btn-primary {
    background: var(--c-teal-700);
    border-color: var(--c-teal-700);
    color: #fff;
    box-shadow: 0 2px 4px rgba(15,118,110,0.15);
}
.btn-primary:hover {
    background: var(--c-teal-800);
    border-color: var(--c-teal-800);
    color: #fff;
}

.btn-outline-primary {
    color: var(--c-teal-700);
    border-color: var(--c-teal-700);
}
.btn-outline-primary:hover {
    background: var(--c-teal-700);
    color: #fff;
}

/* ==========================================================================
   COLOR UTILITIES
   ========================================================================== */
.bg-teal { background-color: var(--c-teal-700) !important; color: #fff !important; }
.bg-teal-subtle { background-color: var(--c-teal-50) !important; color: var(--c-teal-800) !important; }
.text-teal { color: var(--c-teal-700) !important; }
.border-teal { border-color: var(--c-teal-700) !important; }

/* ==========================================================================
   NAVBAR SEARCH
   ========================================================================== */
.navbar-search-btn {
    background: var(--c-slate-100);
    border: 1px solid var(--c-slate-200);
    border-radius: 18px;
    padding: 6px 15px;
    font-size: 0.85rem;
    color: var(--c-slate-600);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.navbar-search-btn:hover {
    background: #fff;
    border-color: var(--c-teal-700);
    color: var(--c-teal-700);
    box-shadow: 0 2px 6px rgba(15,118,110,0.1);
}
.navbar-search-btn kbd {
    background: #fff;
    border: 1px solid var(--c-slate-300);
    color: var(--c-slate-500);
    font-size: 0.78rem;
    padding: 2px 6px;
    border-radius: 4px;
}

/* ==========================================================================
   GLOSSARY TERM CARDS & FILTER PILLS (for /glossary and /learning/cases)
   ========================================================================== */
.nav-filter-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    list-style: none;
}
.nav-filter-pills .nav-link {
    border-radius: var(--radius-pill) !important;
    padding: 6px 15px !important;
    font-size: 0.84rem !important;
    font-weight: 600 !important;
    color: var(--c-slate-600) !important;
    background: #fff !important;
    border: 1px solid var(--c-slate-200) !important;
    transition: all 0.18s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
}
.nav-filter-pills .nav-link:hover {
    color: var(--c-teal-700) !important;
    border-color: var(--c-teal-700) !important;
    background: var(--c-teal-50) !important;
}
.nav-filter-pills .nav-link.active {
    color: #fff !important;
    background: var(--c-teal-700) !important;
    border-color: var(--c-teal-700) !important;
    box-shadow: 0 3px 8px rgba(15,118,110,0.2) !important;
}

/* Workstation card (larger cards, used in cases-index etc.) */
.workstation-card {
    background: #fff;
    border: 1px solid var(--c-slate-200);
    border-radius: var(--radius);
    padding: 18px 20px;
    text-decoration: none;
    color: var(--c-slate-700);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    box-shadow: var(--shadow-xs);
    transition: all 0.2s ease;
}
.workstation-card:hover {
    border-color: var(--c-teal-500);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--c-slate-900);
}

.station-badge {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.station-badge-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    display: inline-block;
    background-color: currentColor;
}

.station-badge-teal { background: var(--c-teal-50); color: var(--c-teal-700); border: 1px solid var(--c-teal-100); }
.station-badge-amber { background: var(--c-amber-50); color: var(--c-amber-700); border: 1px solid #fef3c7; }
.station-badge-sky { background: var(--c-sky-50); color: var(--c-sky-700); border: 1px solid #bae6fd; }
.station-badge-emerald { background: var(--c-emerald-50); color: var(--c-emerald-700); border: 1px solid #bbf7d0; }
.station-badge-rose { background: var(--c-rose-50); color: var(--c-rose-700); border: 1px solid #fecdd3; }
.station-badge-purple { background: var(--c-purple-50); color: var(--c-purple-700); border: 1px solid #f3e8ff; }
.station-badge-indigo { background: var(--c-indigo-50); color: var(--c-indigo-700); border: 1px solid #e0e7ff; }
.station-badge-slate { background: var(--c-slate-100); color: var(--c-slate-600); border: 1px solid var(--c-slate-200); }

.station-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.station-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--c-slate-900);
    margin-top: 12px;
    margin-bottom: 4px;
}

.station-desc {
    font-size: 0.84rem;
    color: var(--c-slate-600);
    line-height: 1.5;
    margin-bottom: 14px;
}

.station-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--c-teal-50);
    color: var(--c-teal-700);
    border: 1px solid var(--c-teal-100);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-top: auto;
    transition: all 0.2s ease;
}
.workstation-card:hover .station-btn {
    background: var(--c-teal-700);
    color: #fff;
    border-color: var(--c-teal-700);
}

/* Assignment card (bigger) */
.assignment-card {
    background: #fff;
    border: 1px solid var(--c-slate-200);
    border-radius: var(--radius);
    padding: 14px 18px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    transition: all 0.15s ease;
}
.assignment-card:hover {
    border-color: var(--c-teal-200);
    box-shadow: var(--shadow-sm);
}
.assignment-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--c-slate-900);
    margin-bottom: 4px;
}
.assignment-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: var(--c-slate-600);
}

/* Term card (glossary) */
.term-card {
    background: #fff;
    border: 1px solid var(--c-slate-200);
    border-radius: var(--radius);
    padding: 16px 18px;
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.term-card:hover {
    border-color: var(--c-teal-500);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.term-card .term-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--c-slate-900);
}
.term-card:hover .term-title { color: var(--c-teal-700); }

/* Line clamp utilities */
.line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Glossary clickable inline terms */
.glossary-clickable {
    color: var(--c-teal-800);
    border-bottom: 1.5px dashed var(--c-teal-700);
    cursor: pointer;
    font-weight: 600;
    padding: 0 2px;
    border-radius: 2px;
    transition: all 0.15s ease;
}
.glossary-clickable:hover {
    color: #fff;
    background: var(--c-teal-700);
    border-bottom-style: solid;
}

/* ==========================================================================
   ALERT OVERRIDES
   ========================================================================== */
.alert {
    border-radius: var(--radius);
    font-size: 0.84rem;
    border: none;
}

/* ==========================================================================
   PAGE HEADER CARD SYSTEM (Emerald & Medical Teal Gradient - Compact & Clean)
   ========================================================================== */
.page-header-card {
    background: linear-gradient(135deg, #064e3b 0%, #0d9488 55%, #10b981 100%);
    border-radius: 12px !important;
    padding: 1.15rem 1.5rem;
    color: #ffffff;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px -4px rgba(13, 148, 136, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-header-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -30px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.page-header-card::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: 25%;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.page-header-card .page-header-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
    backdrop-filter: blur(4px);
}

.page-header-card h2,
.page-header-card h3,
.page-header-card h4,
.page-header-card .page-header-title {
    font-family: var(--font-heading, 'Poppins', sans-serif);
    font-size: 1.28rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: #ffffff !important;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
}

.page-header-card p,
.page-header-card .page-header-subtitle {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 0.88rem;
    opacity: 0.95;
    margin: 0;
    color: rgba(255, 255, 255, 0.95) !important;
    max-width: 880px;
    line-height: 1.5;
}

.header-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.btn-header-action {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff !important;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    padding: 0.38rem 0.85rem;
    border-radius: 8px;
    font-family: var(--font-heading, 'Poppins', sans-serif);
    font-weight: 600;
    font-size: 0.84rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
}

.btn-header-action:hover {
    background: rgba(255, 255, 255, 0.32);
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.65);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-header-action.primary,
.btn-header-action.btn-header-primary {
    background: #ffffff;
    color: #065f46 !important;
    border-color: #ffffff;
    font-weight: 700;
}

.btn-header-action.primary:hover,
.btn-header-action.btn-header-primary:hover {
    background: #ecfdf5;
    color: #047857 !important;
    border-color: #ecfdf5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

@media (max-width: 992px) {
    .page-header-card {
        padding: 1rem 1.15rem;
        border-radius: 10px !important;
        margin-bottom: 0.85rem;
    }
    .page-header-card h2,
    .page-header-card h3,
    .page-header-card h4,
    .page-header-card .page-header-title {
        font-size: 1.15rem;
    }
    .header-actions {
        width: 100%;
        margin-top: 0.4rem;
    }
    .btn-header-action {
        flex: 1 1 auto;
        justify-content: center;
        font-size: 0.8rem;
        padding: 0.32rem 0.65rem;
    }
}

/* ==========================================================================
   ENHANCED MENU INNER COMPONENTS (SUMMARY BAR, SOP GUIDE, REPORT TABLES)
   ========================================================================== */
.summary-bar {
    display: flex;
    gap: 0.65rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.summary-pill {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    flex: 1;
    min-width: 155px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.summary-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

/* Distinct Card Background Color Variants */
.summary-pill.primary,
.summary-pill:has(.pill-icon.primary) {
    background: linear-gradient(145deg, #f0fdfa 0%, #ffffff 100%) !important;
    border: 1.5px solid #ccfbf1 !important;
    border-left: 4.5px solid #0d9488 !important;
}
.summary-pill.primary:hover,
.summary-pill:has(.pill-icon.primary):hover {
    background: #e6fffa !important;
    border-color: #99f6e4 !important;
    border-left-color: #0f766e !important;
    box-shadow: 0 6px 18px rgba(13, 148, 136, 0.15) !important;
}
.summary-pill.primary .pill-icon,
.summary-pill:has(.pill-icon.primary) .pill-icon {
    background: #0d9488 !important;
    color: #ffffff !important;
    box-shadow: 0 3px 8px rgba(13, 148, 136, 0.3) !important;
}
.summary-pill.primary .pill-label,
.summary-pill:has(.pill-icon.primary) .pill-label {
    color: #0f766e !important;
}
.summary-pill.primary .pill-value,
.summary-pill:has(.pill-icon.primary) .pill-value {
    color: #115e59 !important;
}

.summary-pill.success,
.summary-pill:has(.pill-icon.success) {
    background: linear-gradient(145deg, #ecfdf5 0%, #ffffff 100%) !important;
    border: 1.5px solid #d1fae5 !important;
    border-left: 4.5px solid #10b981 !important;
}
.summary-pill.success:hover,
.summary-pill:has(.pill-icon.success):hover {
    background: #e0fbf0 !important;
    border-color: #a7f3d0 !important;
    border-left-color: #059669 !important;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.15) !important;
}
.summary-pill.success .pill-icon,
.summary-pill:has(.pill-icon.success) .pill-icon {
    background: #10b981 !important;
    color: #ffffff !important;
    box-shadow: 0 3px 8px rgba(16, 185, 129, 0.3) !important;
}
.summary-pill.success .pill-label,
.summary-pill:has(.pill-icon.success) .pill-label {
    color: #047857 !important;
}
.summary-pill.success .pill-value,
.summary-pill:has(.pill-icon.success) .pill-value {
    color: #064e3b !important;
}

.summary-pill.warning,
.summary-pill:has(.pill-icon.warning) {
    background: linear-gradient(145deg, #fffbeb 0%, #ffffff 100%) !important;
    border: 1.5px solid #fef3c7 !important;
    border-left: 4.5px solid #f59e0b !important;
}
.summary-pill.warning:hover,
.summary-pill:has(.pill-icon.warning):hover {
    background: #fef9db !important;
    border-color: #fde68a !important;
    border-left-color: #d97706 !important;
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.15) !important;
}
.summary-pill.warning .pill-icon,
.summary-pill:has(.pill-icon.warning) .pill-icon {
    background: #f59e0b !important;
    color: #ffffff !important;
    box-shadow: 0 3px 8px rgba(245, 158, 11, 0.3) !important;
}
.summary-pill.warning .pill-label,
.summary-pill:has(.pill-icon.warning) .pill-label {
    color: #b45309 !important;
}
.summary-pill.warning .pill-value,
.summary-pill:has(.pill-icon.warning) .pill-value {
    color: #78350f !important;
}

.summary-pill.info,
.summary-pill:has(.pill-icon.info) {
    background: linear-gradient(145deg, #f0f9ff 0%, #ffffff 100%) !important;
    border: 1.5px solid #e0f2fe !important;
    border-left: 4.5px solid #0284c7 !important;
}
.summary-pill.info:hover,
.summary-pill:has(.pill-icon.info):hover {
    background: #e3f4fd !important;
    border-color: #bae6fd !important;
    border-left-color: #0369a1 !important;
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.15) !important;
}
.summary-pill.info .pill-icon,
.summary-pill:has(.pill-icon.info) .pill-icon {
    background: #0284c7 !important;
    color: #ffffff !important;
    box-shadow: 0 3px 8px rgba(2, 132, 199, 0.3) !important;
}
.summary-pill.info .pill-label,
.summary-pill:has(.pill-icon.info) .pill-label {
    color: #0369a1 !important;
}
.summary-pill.info .pill-value,
.summary-pill:has(.pill-icon.info) .pill-value {
    color: #0c4a6e !important;
}

.summary-pill.danger,
.summary-pill:has(.pill-icon.danger) {
    background: linear-gradient(145deg, #fff1f2 0%, #ffffff 100%) !important;
    border: 1.5px solid #ffe4e6 !important;
    border-left: 4.5px solid #ef4444 !important;
}
.summary-pill.danger:hover,
.summary-pill:has(.pill-icon.danger):hover {
    background: #ffe4e7 !important;
    border-color: #fecdd3 !important;
    border-left-color: #dc2626 !important;
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.15) !important;
}
.summary-pill.danger .pill-icon,
.summary-pill:has(.pill-icon.danger) .pill-icon {
    background: #ef4444 !important;
    color: #ffffff !important;
    box-shadow: 0 3px 8px rgba(239, 68, 68, 0.3) !important;
}
.summary-pill.danger .pill-label,
.summary-pill:has(.pill-icon.danger) .pill-label {
    color: #be123c !important;
}
.summary-pill.danger .pill-value,
.summary-pill:has(.pill-icon.danger) .pill-value {
    color: #881337 !important;
}

.summary-pill.purple,
.summary-pill:has(.pill-icon.purple) {
    background: linear-gradient(145deg, #faf5ff 0%, #ffffff 100%) !important;
    border: 1.5px solid #f3e8ff !important;
    border-left: 4.5px solid #8b5cf6 !important;
}
.summary-pill.purple:hover,
.summary-pill:has(.pill-icon.purple):hover {
    background: #f5e8ff !important;
    border-color: #e9d5ff !important;
    border-left-color: #7c3aed !important;
    box-shadow: 0 6px 18px rgba(139, 92, 246, 0.15) !important;
}
.summary-pill.purple .pill-icon,
.summary-pill:has(.pill-icon.purple) .pill-icon {
    background: #8b5cf6 !important;
    color: #ffffff !important;
    box-shadow: 0 3px 8px rgba(139, 92, 246, 0.3) !important;
}
.summary-pill.purple .pill-label,
.summary-pill:has(.pill-icon.purple) .pill-label {
    color: #6d28d9 !important;
}
.summary-pill.purple .pill-value,
.summary-pill:has(.pill-icon.purple) .pill-value {
    color: #4c1d95 !important;
}

.pill-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.summary-pill:hover .pill-icon {
    transform: scale(1.08);
}

.pill-text {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pill-text .pill-label {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.45px;
    color: #475569;
    font-weight: 700;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pill-text .pill-value {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.pill-text .pill-sub {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 2px;
    font-weight: 500;
}

/* SOP Workflow Guide Card - Refined Healthcare Stepper */
.sop-guide-card {
    background: #ffffff;
    border: 1.5px solid #ccfbf1;
    border-left: 5px solid #0d9488;
    border-radius: 12px;
    padding: 0.95rem 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 10px rgba(13, 148, 136, 0.05);
}

.sop-guide-card .sop-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 0.85rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0fdfa;
}

.sop-guide-card .sop-title {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f766e;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    letter-spacing: 0.2px;
}

.sop-guide-card .sop-badge {
    background: #ccfbf1;
    color: #0f766e;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.22rem 0.75rem;
    border-radius: 20px;
    white-space: nowrap;
}

/* 4-Step Stepper Grid Layout */
.sop-stepper-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

@media (max-width: 991px) {
    .sop-stepper-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 575px) {
    .sop-stepper-grid {
        grid-template-columns: 1fr;
    }
}

.sop-step-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.75rem 0.85rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    transition: all 0.2s ease;
}

.sop-step-card:hover {
    background: #f0fdfa;
    border-color: #99f6e4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.08);
}

.sop-step-card .step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(13, 148, 136, 0.25);
}

.sop-step-card .step-content {
    flex: 1;
    min-width: 0;
}

.sop-step-card .step-title {
    font-family: var(--font-heading);
    font-size: 0.84rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2px;
    line-height: 1.3;
}

.sop-step-card .step-desc {
    font-size: 0.77rem;
    color: #64748b;
    line-height: 1.35;
    margin: 0;
}

/* Fallback / Classic Horizontal Step Pills */
.sop-steps-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 0.35rem;
}

.sop-step-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.3rem 0.75rem;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
    transition: background 0.15s ease;
}

.sop-step-pill:hover {
    background: #f1f5f9;
}

.sop-step-pill .step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0d9488;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
}

.sop-arrow {
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
}

/* Filter Card */
.filter-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-left: 4.5px solid #0d9488;
    border-radius: 12px;
    padding: 0.95rem 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.filter-card .form-label {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f766e;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 0.35rem;
}

.filter-card .form-control,
.filter-card .form-select {
    font-size: 0.88rem;
    border-radius: 8px;
    border: 1.5px solid #cbd5e1;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.filter-card .form-control:focus,
.filter-card .form-select:focus {
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

/* Report & Data Table Card */
.report-table-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-top: 4px solid #0d9488;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    margin-bottom: 1.5rem;
}

.report-table-card:has(.text-success) {
    border-top-color: #10b981;
}
.report-table-card:has(.text-success) .card-header-custom {
    background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
    border-bottom: 1.5px solid #dcfce7;
}

.report-table-card:has(.text-primary) {
    border-top-color: #0d9488;
}
.report-table-card:has(.text-primary) .card-header-custom {
    background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 100%);
    border-bottom: 1.5px solid #ccfbf1;
}

.card-header-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1.25rem;
    background: #f8fafc;
    border-bottom: 1.5px solid #e2e8f0;
}

.card-header-custom h5,
.card-header-custom h6 {
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge-count {
    background: rgba(13, 148, 136, 0.12);
    color: #0f766e;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

/* Empty State Polish */
.empty-state-card {
    text-align: center;
    padding: 2.75rem 1.5rem;
    background: #ffffff;
    border-radius: 12px;
}

.empty-state-card i {
    font-size: 2.2rem;
    color: #94a3b8;
    margin-bottom: 0.75rem;
}

.empty-state-card h6 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 0.35rem;
}

.empty-state-card p {
    font-size: 0.88rem;
    color: #475569;
    max-width: 440px;
    margin: 0 auto;
}

/* ==========================================================================
   HEALTHCARE MODERN PAGINATION (SMK TELEKOMEDIKA)
   ========================================================================== */
.pagination {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin-bottom: 0 !important;
    flex-wrap: wrap !important;
    padding-left: 0 !important;
    list-style: none !important;
}

.pagination .page-item {
    margin: 0 !important;
}

.pagination .page-item .page-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 32px !important;
    height: 32px !important;
    padding: 0 8px !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    color: #475569 !important;
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
    text-decoration: none !important;
    line-height: 1 !important;
}

.pagination .page-item .page-link:hover {
    color: #0d9488 !important;
    background-color: #f0fdfa !important;
    border-color: #ccfbf1 !important;
    transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
    color: #ffffff !important;
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%) !important;
    border-color: #0d9488 !important;
    box-shadow: 0 2px 6px rgba(13, 148, 136, 0.25) !important;
}

.pagination .page-item.disabled .page-link {
    color: #cbd5e1 !important;
    background-color: #f8fafc !important;
    border-color: #e2e8f0 !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Ensure pagination container cards are clean and never overflow */
.report-table-card .card-footer,
.card-footer.bg-white,
.pagination-wrapper {
    background-color: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
    padding: 0.85rem 1.25rem !important;
}

/* ==========================================================================
   RESPONSIVE & MOBILE DESIGN SYSTEM (Tablet, Mobile & Small Devices)
   ========================================================================== */

/* ─── Backdrop for Mobile Sidebar Drawer ─── */
.sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(11, 19, 41, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1055;
    opacity: 0;
    transition: opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-backdrop.show {
    display: block;
    opacity: 1;
}

/* ─── Tablet & Below (<= 991.98px) ─── */
@media (max-width: 991.98px) {
    /* Prevent body locking on desktop while allowing natural scroll on mobile */
    html, body.app-body {
        height: auto !important;
        min-height: 100% !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    body.sidebar-open {
        overflow: hidden !important;
    }

    .app-layout-wrapper {
        display: block !important;
        height: auto !important;
        min-height: 100vh !important;
        overflow: visible !important;
    }

    /* Transform Sidebar into an Off-Canvas Mobile Drawer */
    .app-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        width: 290px !important;
        min-width: 290px !important;
        max-width: 85vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        z-index: 1060 !important;
        transform: translateX(-100%) !important;
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: none !important;
    }

    .app-sidebar.show {
        transform: translateX(0) !important;
        box-shadow: 12px 0 40px rgba(0, 0, 0, 0.5) !important;
    }

    /* Main Content stretches full width */
    .main-content {
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        overflow: visible !important;
        display: block !important;
    }

    /* Main Navbar */
    .main-navbar {
        position: sticky !important;
        top: 0 !important;
        z-index: 1040 !important;
        padding: 0.55rem 0.85rem !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(10px) !important;
    }

    .navbar-search-btn {
        padding: 0.4rem 0.75rem !important;
        font-size: 0.82rem !important;
    }

    /* Content Body Padding */
    .app-content-body {
        padding: 1.15rem 1rem 3rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Hero Banner Mobile Stacking */
    .hero-inner {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 1.25rem !important;
        padding: 1.25rem 1.15rem !important;
    }

    .hero-left {
        width: 100% !important;
    }

    .hero-right {
        width: 100% !important;
    }

    .hero-progress-card {
        width: 100% !important;
        min-width: 0 !important;
    }

    /* Quick Action Pills */
    .quick-actions-container {
        gap: 8px !important;
        margin-bottom: 1rem !important;
    }

    .action-pill {
        padding: 0.45rem 0.95rem !important;
        font-size: 0.82rem !important;
    }

    /* Floating Toast Placement on Tablet/Mobile */
    #appToastContainer {
        top: 12px !important;
        right: 12px !important;
        left: auto !important;
        max-width: 380px !important;
    }
}

/* ─── Mobile Devices (<= 767.98px) ─── */
@media (max-width: 767.98px) {
    /* Simulation Banner Compact */
    .simulation-banner {
        padding: 4px 8px !important;
        font-size: 0.72rem !important;
        line-height: 1.35 !important;
        gap: 5px !important;
    }

    .simulation-banner span:not(.badge-sim) {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .badge-sim {
        font-size: 0.65rem !important;
        padding: 1px 6px !important;
        white-space: nowrap !important;
    }

    /* Responsive Typography */
    h1, .h1 { font-size: 1.25rem !important; }
    h2, .h2 { font-size: 1.15rem !important; }
    h3, .h3 { font-size: 1.05rem !important; }
    h4, .h4 { font-size: 0.96rem !important; }
    h5, .h5 { font-size: 0.9rem !important; }

    .hero-title {
        font-size: 1.25rem !important;
    }

    .hero-subtitle {
        font-size: 0.84rem !important;
    }

    .hero-avatar {
        width: 44px !important;
        height: 44px !important;
        font-size: 1.15rem !important;
    }

    /* Content Body Padding on Mobile */
    .app-content-body {
        padding: 0.85rem 0.75rem 2.5rem !important;
    }

    /* Responsive Tables */
    .table-responsive {
        -webkit-overflow-scrolling: touch !important;
        border-radius: var(--radius) !important;
        border: 1px solid var(--c-slate-200) !important;
        background: #fff !important;
        margin-bottom: 0.75rem !important;
    }

    .table {
        margin-bottom: 0 !important;
        white-space: nowrap !important;
    }

    .table th, .table td {
        padding: 0.55rem 0.7rem !important;
        font-size: 0.82rem !important;
    }

    /* Table action buttons */
    .table td .btn-xs,
    .table td .btn-sm {
        padding: 0.25rem 0.45rem !important;
        font-size: 0.75rem !important;
    }

    /* Cards & Containers */
    .card, .section-block, .report-table-card {
        border-radius: 12px !important;
        margin-bottom: 0.85rem !important;
    }

    .card-header, .card-footer {
        padding: 0.65rem 0.85rem !important;
    }

    .card-body {
        padding: 0.85rem !important;
    }

    /* KPI / Stats Grid on Mobile */
    .kpi-row,
    .row.g-3 {
        --bs-gutter-x: 0.6rem !important;
        --bs-gutter-y: 0.6rem !important;
    }

    .stat-card,
    .dashboard-kpi-card {
        padding: 0.85rem !important;
    }

    /* Forms and Filter Controls */
    .filter-bar,
    .search-filter-card {
        padding: 0.75rem !important;
    }

    .filter-bar .row,
    .search-filter-card .row {
        --bs-gutter-x: 0.5rem !important;
        --bs-gutter-y: 0.5rem !important;
    }

    /* Modals on Mobile */
    .modal-dialog {
        margin: 0.5rem auto !important;
        max-width: calc(100% - 1rem) !important;
    }

    .modal-content {
        border-radius: 14px !important;
    }

    .modal-header {
        padding: 0.85rem 1rem !important;
    }

    .modal-body {
        padding: 1rem !important;
    }

    .modal-footer {
        padding: 0.75rem 1rem !important;
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
    }

    .modal-footer > * {
        margin: 0 !important;
    }

    /* Full-width Toast on Mobile Screen */
    #appToastContainer {
        top: 8px !important;
        left: 8px !important;
        right: 8px !important;
        width: auto !important;
        max-width: none !important;
        padding: 0 !important;
    }

    #appToastContainer .toast {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 0.85rem !important;
    }
}

/* ─── Extra Small Phones (<= 480px) ─── */
@media (max-width: 480px) {
    .app-content-body {
        padding: 0.75rem 0.5rem 2rem !important;
    }

    .hero-inner {
        padding: 1rem 0.85rem !important;
    }

    .hero-pills {
        gap: 4px !important;
    }

    .hero-pill {
        font-size: 0.72rem !important;
        padding: 2px 8px !important;
    }

    .action-pill {
        flex: 1 1 calc(50% - 6px);
        justify-content: center;
        text-align: center;
        font-size: 0.78rem !important;
        padding: 0.45rem 0.6rem !important;
    }

    /* Pagination on small mobile */
    .pagination {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 3px !important;
    }

    .pagination .page-item .page-link {
        min-width: 28px !important;
        height: 28px !important;
        font-size: 0.75rem !important;
        padding: 0 4px !important;
    }

    /* Top navbar spacing */
    .main-navbar {
        padding: 0.5rem 0.65rem !important;
    }

    .navbar-search-btn {
        padding: 0.35rem 0.5rem !important;
    }
}

/* ==========================================================================
   COMPACT TABLE ACTION BUTTONS & NOWRAP UTILITIES
   ========================================================================== */
.btn-xs {
    padding: 0.24rem 0.55rem !important;
    font-size: 0.78rem !important;
    line-height: 1.35 !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
    vertical-align: middle !important;
}

.table td.text-nowrap,
.table th.text-nowrap {
    white-space: nowrap !important;
}

/* ==========================================================================
   GLOSSARY ROW / TABLE STYLES
   ========================================================================== */
.custom-glossary-table {
    border-collapse: separate;
    border-spacing: 0;
}
.custom-glossary-table thead th {
    background-color: #f8fafc;
    color: var(--c-slate-600);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-top: none;
    border-bottom: 2px solid var(--c-slate-200);
    padding: 12px 16px;
}
.glossary-table-row {
    transition: background-color 0.15s ease, transform 0.15s ease;
    cursor: pointer;
}
.glossary-table-row:hover {
    background-color: rgba(13, 148, 136, 0.05) !important;
}
.glossary-table-row:hover .glossary-term-name {
    color: var(--c-teal-700) !important;
}
.glossary-table-row td {
    padding: 14px 16px;
    vertical-align: middle;
    border-bottom: 1px solid var(--c-slate-200);
}

/* Category Badges for Glossary */
.cat-badge {
    display: inline-block;
    padding: 0.28rem 0.6rem;
    font-size: 0.74rem;
    font-weight: 700;
    font-family: var(--font-mono, monospace);
    border-radius: 6px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
}
.cat-badge-tpprj { background-color: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.cat-badge-filing { background-color: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.cat-badge-assembling { background-color: #e0e7ff; color: #4338ca; border: 1px solid #c7d2fe; }
.cat-badge-koding { background-color: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.cat-badge-klaim { background-color: #ffe4e6; color: #be123c; border: 1px solid #fecdd3; }
.cat-badge-statistik { background-color: #f3e8ff; color: #7e22ce; border: 1px solid #e9d5ff; }
.cat-badge-analisis { background-color: #ccfbf1; color: #0f766e; border: 1px solid #99f6e4; }
.cat-badge-korespondensi { background-color: #ffedd5; color: #c2410c; border: 1px solid #fed7aa; }
.cat-badge-keuangan { background-color: #fef9c3; color: #a16207; border: 1px solid #fef08a; }
.cat-badge-logistik { background-color: #ede9fe; color: #6d28d9; border: 1px solid #ddd6fe; }
.cat-badge-hukum { background-color: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; }
.cat-badge-teknologi { background-color: #f1f5f9; color: #334155; border: 1px solid #cbd5e1; }
.cat-badge-default { background-color: #f8fafc; color: #475569; border: 1px solid #e2e8f0; }

/* ==========================================================================
   PRINT
   ========================================================================== */
@media print {
    html, body.app-body, .main-content {
        height: auto !important;
        overflow: visible !important;
    }

    .simulation-banner,
    .app-sidebar,
    .main-navbar,
    .no-print,
    .btn,
    .pagination,
    .alert { display: none !important; }

    body { background: #fff !important; color: #000 !important; font-size: 11pt; }
    .main-content { margin: 0 !important; padding: 0 !important; width: 100% !important; }
    .card, .section-block, .sidebar-widget { border: none !important; box-shadow: none !important; }
}
