/* ============================================================================
 * KINARA TA 2026 - EXTERNAL MODERN CSS3 DESIGN SYSTEM
 * Politeknik Kesehatan Kemenkes Kendari (Smarty TPL + CSS3 + ES6)
 * Kompatibel penuh pada seluruh browser modern & hosting cPanel dasar/modern
 * ============================================================================ */
:root {
    --kemenkes-teal: #00796B;
    --kemenkes-dark: #004D40;
    --kemenkes-lime: #8BC34A;
    --bg-light: #F1F5F9;
    --card-bg: #FFFFFF;
    --text-main: #0F172A;
    --text-muted: #475569;
    --border-color: #CBD5E1;
    --status-green: #16A34A;
    --status-yellow: #D97706;
    --status-red: #DC2626;
    --status-blue: #2563EB;
    --radius-lg: 14px;
    --radius-md: 10px;
    --radius-sm: 6px;
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 10px 24px rgba(15, 23, 42, 0.09);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

@keyframes kinaraFadeSlide {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes kinaraPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.35); opacity: 0.65; }
}

@keyframes kinaraBarGrow {
    from { transform: scaleX(0); transform-origin: left center; }
    to   { transform: scaleX(1); transform-origin: left center; }
}

/* TOPBAR & BRANDING */
.topbar {
    background: linear-gradient(135deg, #00332C 0%, #00695C 60%, #0F172A 100%);
    color: #FFFFFF;
    padding: 0.9rem 1.75rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.16);
    position: sticky;
    top: 0;
    z-index: 60;
    backdrop-filter: blur(8px);
}
.topbar.topbar-minimal {
    background: rgba(255, 255, 255, 0.96);
    color: #0F172A;
    border-bottom: 1px solid #E2E8F0;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.03);
}
.brand-identity { display: flex; align-items: center; gap: 0.9rem; }
.brand-logo-img {
    display: block; height: 44px; width: auto; max-width: 100%; object-fit: contain;
    background: #FFFFFF; border-radius: 10px; padding: 3px 8px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}
.brand-title { font-size: 1.35rem; font-weight: 800; letter-spacing: 0.4px; display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap; }
.brand-acronym-pill { background: var(--kemenkes-lime); color: #0F172A; font-size: 0.72rem; font-weight: 800; padding: 0.16rem 0.6rem; border-radius: 999px; }
.brand-subtitle { font-size: 0.8rem; opacity: 0.92; }
.topbar-actions { display: flex; align-items: center; gap: 0.65rem; flex-wrap: wrap; }

/* BUTTONS & BADGES */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
    padding: 0.5rem 0.95rem; border-radius: 8px; border: none; font-size: 0.82rem;
    font-weight: 700; cursor: pointer; text-decoration: none; transition: all 0.16s ease;
}
.btn:hover { opacity: 0.93; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-lime { background: var(--kemenkes-lime); color: #0F172A; }
.btn-outline-light { background: rgba(255, 255, 255, 0.14); color: #FFFFFF; border: 1px solid rgba(255, 255, 255, 0.35); }
.btn-outline-slate { background: #F8FAFC; color: #0F172A; border: 1px solid #CBD5E1; }
.btn-primary { background: var(--kemenkes-teal); color: #FFFFFF; }
.btn-success { background: var(--status-green); color: #FFFFFF; }
.btn-danger { background: var(--status-red); color: #FFFFFF; }
.btn-slate { background: #0F172A; color: #FFFFFF; border: 1px solid #0F172A; }
.btn-slate:hover { background: #1E293B; }
.btn-ghost { background: #FFFFFF; color: #334155; border: 1px solid #CBD5E1; }
.btn-ghost:hover { background: #F8FAFC; color: #0F172A; }
.btn-sm { padding: 0.34rem 0.7rem; font-size: 0.75rem; border-radius: 6px; }

.badge {
    display: inline-block; padding: 0.2rem 0.6rem; border-radius: 999px;
    font-size: 0.72rem; font-weight: 800; letter-spacing: 0.2px;
}
.badge-green { background: #DCFCE7; color: #166534; border: 1px solid #86EFAC; }
.badge-yellow { background: #FEF3C7; color: #92400E; border: 1px solid #FDE68A; }
.badge-red { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }
.badge-blue { background: #DBEAFE; color: #1E40AF; border: 1px solid #BFDBFE; }
.badge-purple { background: #F3E8FF; color: #6B21A8; border: 1px solid #E9D5FF; }

.tag-neutral {
    display: inline-block; padding: 0.18rem 0.55rem; border-radius: 6px;
    font-size: 0.72rem; font-weight: 600; background: #F1F5F9; color: #334155; border: 1px solid #E2E8F0;
}
.tag-status-ok {
    display: inline-block; padding: 0.18rem 0.55rem; border-radius: 6px;
    font-size: 0.72rem; font-weight: 600; background: #F0FDF4; color: #166534; border: 1px solid #DCFCE7;
}
.tag-status-warn {
    display: inline-block; padding: 0.18rem 0.55rem; border-radius: 6px;
    font-size: 0.72rem; font-weight: 600; background: #FFFBEB; color: #92400E; border: 1px solid #FEF3C7;
}
.tag-status-gap {
    display: inline-block; padding: 0.18rem 0.55rem; border-radius: 6px;
    font-size: 0.72rem; font-weight: 600; background: #FEF2F2; color: #991B1B; border: 1px solid #FEE2E2;
}

/* CONTAINERS, CARDS & ALERTS */
.container { max-width: 1420px; width: 100%; margin: 1.35rem auto; padding: 0 1.25rem; flex: 1; }
.card {
    background: var(--card-bg); border: 1px solid #E2E8F0; border-radius: var(--radius-lg);
    padding: 1.35rem; margin-bottom: 1.25rem; box-shadow: var(--shadow-sm);
}
.card-header {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
    gap: 0.85rem; margin-bottom: 1.1rem; padding-bottom: 0.85rem; border-bottom: 1px solid #E2E8F0;
}
.card-title { font-size: 1.08rem; font-weight: 800; color: #0F172A; }

.alert-banner {
    background: #ECFDF5; border-left: 5px solid #10B981; color: #065F46;
    padding: 0.85rem 1.15rem; border-radius: 8px; margin-bottom: 1.15rem; font-size: 0.84rem;
    animation: kinaraFadeSlide 0.25s ease;
}
.alert-error {
    background: #FEF2F2; border-left: 5px solid #EF4444; color: #991B1B;
    padding: 0.85rem 1.15rem; border-radius: 8px; margin-bottom: 1.15rem; font-size: 0.84rem;
    animation: kinaraFadeSlide 0.25s ease;
}

/* HERO COMMAND CENTER (SMARTY PUBLIC HERO) */
.hero-command {
    background: linear-gradient(135deg, #002B24 0%, #005B4F 52%, #0F172A 100%);
    color: #FFFFFF; border-radius: 18px; padding: 1.6rem 1.85rem; margin-bottom: 1.35rem;
    display: grid; grid-template-columns: 1.45fr 1fr; gap: 1.5rem; align-items: center;
    box-shadow: 0 14px 30px rgba(0, 77, 64, 0.2);
    animation: kinaraFadeSlide 0.3s ease;
}
.hero-metrics-panel {
    background: rgba(15, 23, 42, 0.58); border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px; padding: 1.05rem; display: grid; grid-template-columns: 128px 1fr; gap: 1rem; align-items: center;
}
.telemetry-pill {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: rgba(255, 255, 255, 0.12); color: #ECFDF5;
    border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 999px;
    padding: 0.2rem 0.65rem; font-size: 0.72rem; font-weight: 700; cursor: pointer;
    transition: background 0.15s ease;
}
.telemetry-pill:hover { background: rgba(255, 255, 255, 0.22); }
.telemetry-dot {
    width: 7px; height: 7px; border-radius: 50%; background: #8BC34A;
    display: inline-block; animation: kinaraPulse 2s infinite;
}
.hero-dist-bar {
    display: flex; height: 8px; border-radius: 999px; overflow: hidden;
    background: rgba(255, 255, 255, 0.12); gap: 2px; margin-top: 2px;
}
.dist-seg { border: none; padding: 0; cursor: pointer; transition: opacity 0.15s ease, transform 0.15s ease; }
.dist-seg:hover { opacity: 0.85; transform: scaleY(1.25); }
.dist-green { background: #22C55E; }
.dist-yellow { background: #F59E0B; }
.dist-red { background: #EF4444; }
.dist-legend { cursor: pointer; transition: color 0.15s ease; }
.dist-legend:hover { color: #FFFFFF; text-decoration: underline; }

/* PUBLIC TOOLBAR, CARDS & PROGRESS */
.toolbar-interactive {
    background: #FFFFFF; border: 1px solid #E2E8F0; border-radius: 12px; padding: 0.85rem 1.1rem;
    margin-bottom: 1.25rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.8rem;
}
.pill-btn {
    padding: 0.38rem 0.78rem; border-radius: 999px; font-size: 0.76rem; font-weight: 700;
    border: 1px solid #CBD5E1; background: #F8FAFC; color: #334155; cursor: pointer;
    transition: all 0.15s ease;
}
.pill-btn:hover { background: #E2E8F0; }
.pill-btn.active { background: var(--kemenkes-dark); color: #FFFFFF; border-color: var(--kemenkes-dark); }
.public-select-sort {
    padding: 0.38rem 0.65rem; border-radius: 8px; border: 1px solid #CBD5E1;
    background: #F8FAFC; color: #0F172A; font-size: 0.76rem; font-weight: 600; cursor: pointer;
}
.public-cards-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(410px, 1fr)); gap: 1.15rem; margin-bottom: 1.5rem;
}
.iku-card-v10 {
    background: #FFFFFF; border: 1px solid #CBD5E1; border-top: 5px solid var(--kemenkes-teal);
    border-radius: 14px; padding: 1.2rem; display: flex; flex-direction: column; justify-content: space-between;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    animation: kinaraFadeSlide 0.25s ease;
}
.iku-card-v10:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1); }
.iku-card-v10.lamp-HIJAU { border-top-color: #16A34A; }
.iku-card-v10.lamp-KUNING { border-top-color: #D97706; }
.iku-card-v10.lamp-MERAH { border-top-color: #DC2626; }
.iku-progress-fill { animation: kinaraBarGrow 0.6s ease-out; }

.pilar-box { border-radius: 10px; padding: 0.7rem 0.85rem; margin-bottom: 0.65rem; font-size: 0.8rem; }
.pilar-1-capaian { background: #F8FAFC; border: 1px solid #E2E8F0; }
.pilar-2-progres { background: #F0FDF4; border: 1px solid #BBF7D0; }
.pilar-3-rtl { background: #FFFBEB; border: 1px solid #FDE68A; }
.pilar-rka-insight { background: #EFF6FF; border: 1px solid #BFDBFE; font-size: 0.75rem; color: #1E3A8A; }

/* GRAFIK & TABEL DASHBOARD PUBLIK (WADIR 1, 2, 3) */
.wadir-summary-grid {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem; margin-bottom: 1.15rem;
}
.wadir-stat-card {
    background: #FFFFFF; border: 1px solid #CBD5E1; border-top: 4px solid var(--kemenkes-teal);
    border-radius: 12px; padding: 0.95rem 1.1rem; cursor: pointer; text-align: left;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    box-shadow: var(--shadow-sm);
}
.wadir-stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.wadir-stat-card.active-wadir { border-color: #0F172A; background: #F8FAFC; box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.12); }
.wadir-stat-card.w-1 { border-top-color: #0284C7; }
.wadir-stat-card.w-2 { border-top-color: #0F766E; }
.wadir-stat-card.w-3 { border-top-color: #7C3AED; }
.wadir-badge {
    display: inline-block; padding: 0.14rem 0.52rem; border-radius: 6px;
    font-size: 0.68rem; font-weight: 800; letter-spacing: 0.2px;
}
.wadir-1 { background: #E0F2FE; color: #0369A1; border: 1px solid #BAE6FD; }
.wadir-2 { background: #CCFBF1; color: #0F766E; border: 1px solid #99F6E4; }
.wadir-3 { background: #F3E8FF; color: #6D28D9; border: 1px solid #DDD6FE; }
.pub-chart-grid {
    display: flex; flex-direction: column; gap: 0.55rem; max-height: 430px; overflow-y: auto; padding-right: 0.25rem;
}
.pub-chart-row {
    background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 10px;
    padding: 0.6rem 0.85rem; animation: kinaraFadeSlide 0.2s ease;
}
.pub-chart-row-head {
    display: flex; justify-content: space-between; align-items: baseline; gap: 0.6rem;
    flex-wrap: wrap; margin-bottom: 0.35rem;
}
.pub-chart-bars { display: flex; flex-direction: column; gap: 4px; }
.pub-bar-line { display: grid; grid-template-columns: 74px 1fr 78px; align-items: center; gap: 0.5rem; font-size: 0.71rem; }
.pub-bar-track { height: 9px; background: #E2E8F0; border-radius: 999px; overflow: hidden; }
.pub-bar-fill { height: 100%; border-radius: 999px; animation: kinaraBarGrow 0.55s ease-out; }
.pub-bar-tw3 { background: #94A3B8; }
@media screen and (max-width: 900px) {
    .wadir-summary-grid { grid-template-columns: 1fr; }
    .pub-bar-line { grid-template-columns: 64px 1fr 68px; }
}

/* TABEL & FORM SHARED */
.table-responsive { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
th, td { padding: 0.7rem 0.75rem; border-bottom: 1px solid #E2E8F0; text-align: left; vertical-align: top; }
th { background: #F8FAFC; font-weight: 800; color: #334155; font-size: 0.74rem; text-transform: uppercase; }
th.num, td.num { text-align: right; }
th.kinara-sortable { cursor: pointer; user-select: none; position: relative; transition: background 0.12s ease; }
th.kinara-sortable:hover { background: #E2E8F0; color: #0F172A; }
.sort-ind { font-size: 0.65rem; color: #64748B; margin-left: 4px; }

.kinara-table-toolbar {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.65rem;
    margin-bottom: 0.75rem; padding: 0.55rem 0.75rem; background: #F8FAFC;
    border: 1px solid #E2E8F0; border-radius: 8px;
}
.kinara-table-search {
    padding: 0.36rem 0.7rem; border: 1px solid #CBD5E1; border-radius: 6px;
    font-size: 0.78rem; min-width: 240px; background: #FFFFFF;
}
.kinara-table-count { font-size: 0.74rem; color: #475569; font-weight: 600; }

body.kinara-compact th, body.kinara-compact td { padding: 0.42rem 0.55rem; font-size: 0.76rem; }
body.kinara-compact .clean-card { padding: 0.95rem 1.05rem; }

.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.form-group { margin-bottom: 0.9rem; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 700; margin-bottom: 0.35rem; color: #1E293B; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 0.55rem 0.75rem; border: 1px solid #CBD5E1; border-radius: 7px; font-size: 0.84rem; font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: #0F172A; box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

/* MODERN MINIMALIST ADMIN SHELL & SIDEBAR */
.admin-shell {
    max-width: 1440px; width: 100%; margin: 1.25rem auto; padding: 0 1.25rem;
    display: grid; grid-template-columns: 300px 1fr; gap: 1.5rem; align-items: start; flex: 1;
}
.admin-mobile-bar { display: none; justify-content: space-between; align-items: center; margin-bottom: 0.85rem; }
.admin-drawer-backdrop { display: none; position: fixed; inset: 0; background: rgba(15, 23, 42, 0.45); z-index: 80; }
.admin-drawer-close { display: none; background: transparent; border: none; font-size: 1.35rem; color: #64748B; cursor: pointer; line-height: 1; padding: 0 4px; }
.admin-drawer-close:hover { color: #0F172A; }

.admin-sidebar {
    width: 300px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 1.15rem 0.95rem;
    position: sticky;
    top: 4.8rem;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

/* Header Profil Admin (Bagian Atas) */
.admin-sidebar-profile {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #E2E8F0;
}
.admin-profile-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.admin-avatar-wrap {
    position: relative;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
}
.admin-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0F172A 0%, #0D9488 100%);
    color: #FFFFFF;
    font-weight: 800;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.02em;
    user-select: none;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.18);
}
.admin-avatar-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 11px;
    height: 11px;
    background: #10B981;
    border: 2px solid #FFFFFF;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #E2E8F0;
}
.admin-profile-meta {
    flex: 1;
    min-width: 0;
}
.admin-profile-meta-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}
.role-pill-badge, .admin-sidebar-profile .role-tag {
    background: #0F172A;
    color: #F8FAFC;
    font-size: 10px;
    letter-spacing: 0.06em;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 999px;
    display: inline-block;
    line-height: 1.3;
}
.admin-profile-title, .admin-sidebar-profile .admin-name {
    font-size: 0.90rem;
    font-weight: 800;
    color: #0F172A;
    margin-top: 4px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.admin-profile-sub {
    font-size: 0.72rem;
    color: #64748B;
    margin-top: 1px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Header Grup Menu */
.admin-nav-group {
    margin-bottom: 0.35rem;
}
.admin-nav-group + .admin-nav-group {
    margin-top: 20px;
}
.admin-nav-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #64748B;
    padding: 0.35rem 0.85rem;
    margin-bottom: 6px;
}

/* Struktur Menu, Ikon & Interaksi */
.admin-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0.58rem 0.85rem;
    border-radius: 14px;
    font-size: 0.81rem;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 4px;
    position: relative;
    border-left: 4px solid transparent;
}
.admin-nav-link:hover {
    background: #EEF2F6;
    color: #0F172A;
    transform: translateX(2px);
}
.admin-nav-link.active {
    background: linear-gradient(90deg, #0F172A 0%, #0F4C5C 100%);
    color: #FFFFFF;
    font-weight: 700;
    border-left: 4px solid #14B8A6;
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
}
.admin-nav-link.active:hover {
    background: linear-gradient(90deg, #0F172A 0%, #0F4C5C 100%);
    color: #FFFFFF;
    transform: none;
}
.admin-nav-link .nav-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.2s ease, transform 0.2s ease;
}
.admin-nav-link.active .nav-icon {
    stroke: #FFFFFF;
}
.admin-nav-link .nav-label {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.admin-nav-link.active .nav-label {
    color: #FFFFFF;
}

/* Badges */
.nav-pill-mini {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 999px;
    background: #E2E8F0;
    color: #334155;
    line-height: 1.25;
}
.admin-nav-link.active .nav-pill-mini {
    background: #14B8A6;
    color: #042F2E;
    font-weight: 700;
}

.admin-sidebar-footer {
    padding: 0.75rem 0.45rem 0 0.45rem;
    border-top: 1px solid #E2E8F0;
    margin-top: 1.15rem;
}

.admin-main { min-width: 0; animation: kinaraFadeSlide 0.22s ease; }
.admin-page-header {
    background: #FFFFFF; border: 1px solid #E2E8F0; border-radius: 12px; padding: 1.15rem 1.35rem;
    margin-bottom: 1.15rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem;
}
.admin-breadcrumb { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: #64748B; margin-bottom: 0.2rem; }
.admin-page-title { font-size: 1.15rem; font-weight: 700; color: #0F172A; letter-spacing: -0.2px; }
.admin-page-desc { font-size: 0.8rem; color: #64748B; margin-top: 0.15rem; }

.clean-card {
    background: #FFFFFF; border: 1px solid #E2E8F0; border-radius: 12px;
    padding: 1.25rem 1.35rem; margin-bottom: 1.15rem; transition: box-shadow 0.18s ease;
}
.clean-card-header {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
    gap: 0.75rem; padding-bottom: 0.85rem; margin-bottom: 1rem; border-bottom: 1px solid #F1F5F9;
}
.clean-card-title { font-size: 0.96rem; font-weight: 700; color: #0F172A; }
.clean-card-subtitle { font-size: 0.78rem; color: #64748B; margin-top: 0.15rem; }

.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.85rem; margin-bottom: 1.15rem; }
.stat-box { background: #FFFFFF; border: 1px solid #E2E8F0; border-radius: 10px; padding: 0.9rem 1.1rem; }
.stat-box .s-label { font-size: 0.72rem; font-weight: 600; color: #64748B; text-transform: uppercase; letter-spacing: 0.3px; }
.stat-box .s-val { font-size: 1.2rem; font-weight: 700; color: #0F172A; margin-top: 0.2rem; }
.stat-box .s-meta { font-size: 0.74rem; color: #64748B; margin-top: 0.15rem; }

.clean-section { border: 1px solid #E2E8F0; background: #FAFAFA; border-radius: 10px; padding: 1rem 1.15rem; margin-bottom: 1rem; }
.clean-section-title { font-size: 0.82rem; font-weight: 700; color: #0F172A; margin-bottom: 0.65rem; display: flex; justify-content: space-between; align-items: center; }

.cascade-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; margin-bottom: 1rem; }
.cascade-step { background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 8px; padding: 0.8rem 0.95rem; }
.cascade-step .c-num { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; color: #64748B; margin-bottom: 0.2rem; }
.cascade-step .c-title { font-size: 0.84rem; font-weight: 700; color: #0F172A; }
.cascade-step .c-desc { font-size: 0.75rem; color: #475569; margin-top: 0.2rem; }

/* INTERACTIVE DETAIL MODAL & TOAST */
.kinara-modal-backdrop {
    position: fixed; inset: 0; background: rgba(15, 23, 42, 0.55); z-index: 120;
    display: flex; align-items: center; justify-content: center; padding: 1rem;
    backdrop-filter: blur(3px);
}
.kinara-modal {
    background: #FFFFFF; border-radius: 16px; width: 100%; max-width: 720px; max-height: 90vh;
    display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 24px 48px rgba(15, 23, 42, 0.28);
    animation: kinaraFadeSlide 0.2s ease;
}
.kinara-modal-header {
    padding: 1.15rem 1.35rem; border-bottom: 1px solid #E2E8F0;
    display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; background: #F8FAFC;
}
.kinara-modal-close {
    background: #E2E8F0; color: #0F172A; border: none; width: 32px; height: 32px;
    border-radius: 8px; font-size: 1.25rem; cursor: pointer; flex-shrink: 0; font-weight: 700;
}
.kinara-modal-close:hover { background: #CBD5E1; }
.kinara-modal-body { padding: 1.25rem 1.35rem; overflow-y: auto; }
.kinara-modal-footer {
    padding: 0.9rem 1.35rem; border-top: 1px solid #E2E8F0; background: #F8FAFC;
    display: flex; justify-content: flex-end; gap: 0.65rem; flex-wrap: wrap;
}
.modal-metrics-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 0.65rem; margin-bottom: 1rem; }
.modal-metric-box { background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 10px; padding: 0.65rem 0.85rem; }
.modal-metric-box .m-lbl { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; color: #64748B; }
.modal-metric-box .m-val { font-size: 0.98rem; font-weight: 800; color: #0F172A; margin-top: 0.15rem; }
.modal-section { border: 1px solid #E2E8F0; background: #F8FAFC; border-radius: 10px; padding: 0.8rem 0.95rem; margin-bottom: 0.75rem; }
.modal-section-lbl { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; color: #334155; margin-bottom: 0.3rem; }
.modal-progress-track { height: 14px; background: #E2E8F0; border-radius: 999px; position: relative; overflow: hidden; }
.modal-progress-tw3 { height: 100%; background: #94A3B8; position: absolute; left: 0; top: 0; transition: width 0.35s ease; }
.modal-progress-kini { height: 100%; background: #00796B; position: absolute; left: 0; top: 0; opacity: 0.85; transition: width 0.35s ease; }

.kinara-toast {
    position: fixed; bottom: 22px; right: 22px; z-index: 150;
    background: #0F172A; color: #FFFFFF; padding: 0.75rem 1.15rem; border-radius: 10px;
    font-size: 0.81rem; font-weight: 600; box-shadow: 0 12px 28px rgba(15, 23, 42, 0.25);
    opacity: 0; transform: translateY(10px); pointer-events: none; transition: all 0.22s ease;
    max-width: 380px;
}
.kinara-toast.show { opacity: 1; transform: translateY(0); }

/* FOOTER & MOBILE RESPONSIVE */
.kinara-footer {
    background: #0F172A; color: #CBD5E1; padding: 1.2rem 1.75rem; margin-top: 2rem;
    border-top: 3px solid var(--kemenkes-teal); font-size: 0.8rem;
}
.kinara-footer-inner { max-width: 1420px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem; }
.buildup-code { font-family: monospace; background: rgba(255, 255, 255, 0.08); color: var(--kemenkes-lime); padding: 0.25rem 0.65rem; border-radius: 5px; font-size: 0.75rem; }

@media screen and (max-width: 1024px) {
    .hero-command { grid-template-columns: 1fr; padding: 1.15rem; }
    .hero-metrics-panel, .col-desktop-only { display: none !important; }
    .public-cards-grid { grid-template-columns: 1fr; }
    .admin-shell { grid-template-columns: 1fr; }
    .admin-mobile-bar { display: flex; }
    .admin-drawer-close { display: inline-block; }
    .admin-sidebar {
        position: fixed; top: 0; left: 0; bottom: 0; width: 300px; z-index: 90;
        border-radius: 0 16px 16px 0; overflow-y: auto;
        transform: translateX(-105%); transition: transform 0.22s ease;
        box-shadow: 12px 0 30px rgba(15, 23, 42, 0.25);
        background: #F8FAFC;
        border-right: 1px solid #E2E8F0;
        border-top: none; border-bottom: none; border-left: none;
    }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-drawer-backdrop.open { display: block; }
    .cascade-flow { grid-template-columns: 1fr; }
}

.force-mobile-view .col-desktop-only { display: none !important; }
.force-mobile-view .public-cards-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
