/* ============================================================
   Thermovisi dark dashboard theme
   ============================================================ */

:root {
    --bg: #0b0e13;
    --bg-soft: #0f131a;
    --sidebar: #090b10;
    --card: #151a21;
    --card-2: #1a2029;
    --card-3: #1e2530;
    --border: rgba(255, 255, 255, 0.06);
    --border-strong: rgba(255, 255, 255, 0.1);
    --text: #e9eef6;
    --muted: #7c8798;
    --muted-2: #586273;
    --mint: #8fe6d2;
    --mint-2: #5fc7b2;
    --orange: #f6a623;
    --pink: #e08ad0;
    --blue: #5aa9ff;
    --purple: #b08cff;
    --radius: 18px;
    --radius-sm: 12px;
    --sidebar-w: 236px;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    /* Efek infra merah pada latar belakang tema (intensitas 10%) */
    --infra-warm: rgba(250, 48, 8, 0.5);
    --infra-hot: rgba(206, 48, 124, 0.3);
    --infra-magenta: rgba(232, 12, 12, 0.2);
}

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

html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(1100px 700px at 8% -10%, var(--infra-warm), transparent 60%),
        radial-gradient(900px 620px at 96% 6%, var(--infra-hot), transparent 62%),
        radial-gradient(950px 680px at 62% 108%, var(--infra-magenta), transparent 64%),
        radial-gradient(1100px 620px at 72% -12%, rgba(143, 230, 210, 0.07), transparent 60%),
        radial-gradient(900px 520px at 105% 40%, rgba(90, 169, 255, 0.05), transparent 60%),
        var(--bg);
    color: var(--text);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

svg {
    display: block;
}

::selection {
    background: rgba(143, 230, 210, 0.25);
    color: #fff;
}

::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #262d38;
    border-radius: 999px;
    border: 2px solid var(--bg);
}

/* ============================================================
   Layout
   ============================================================ */

.app {
    min-height: 100vh;
}

.main {
    margin-left: var(--sidebar-w);
    padding: 26px 30px 34px;
    min-height: 100vh;
}

/* ============================================================
   Sidebar
   ============================================================ */

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-w);
    display: flex;
    flex-direction: column;
    padding: 22px 16px 18px;
    background: var(--sidebar);
    border-right: 1px solid var(--border);
    z-index: 40;
    transition: transform 0.28s ease;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 4px 8px 0;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(140deg, rgba(143, 230, 210, 0.22), rgba(143, 230, 210, 0.05));
    border: 1px solid rgba(143, 230, 210, 0.28);
    color: var(--mint);
    box-shadow: 0 8px 22px rgba(143, 230, 210, 0.12);
}

.brand-mark svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}

.brand-text {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.brand-text span {
    color: var(--mint);
}

.nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 30px;
    overflow-y: auto;
    padding-right: 2px;
}

.nav-label {
    margin: 0 0 8px 12px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--muted-2);
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 11px;
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-item .nav-icon {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.nav-item .nav-icon svg {
    width: 19px;
    height: 19px;
}

.nav-item:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

.nav-item.is-active {
    color: var(--mint);
    background: linear-gradient(90deg, rgba(143, 230, 210, 0.14), rgba(143, 230, 210, 0.015));
}

.nav-item.is-active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    border-radius: 0 4px 4px 0;
    background: var(--mint);
    box-shadow: 0 0 14px rgba(143, 230, 210, 0.6);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 18px;
}

.user-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 14px;
    background: var(--card);
    border: 1px solid var(--border);
}

.user-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    min-width: 0;
    flex: 1;
}

.user-meta strong {
    font-size: 12.5px;
    font-weight: 600;
}

.user-meta small {
    font-size: 11px;
    color: var(--muted);
}

.logout {
    color: var(--muted);
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    transition: background 0.2s ease, color 0.2s ease;
}

.logout:hover {
    color: var(--pink);
    background: rgba(224, 138, 208, 0.12);
}

.logout svg {
    width: 18px;
    height: 18px;
}

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 5, 8, 0.6);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 35;
}

/* ============================================================
   Topbar
   ============================================================ */

.topbar {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

.topbar-title h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.topbar-title p {
    margin: 3px 0 0;
    font-size: 12.5px;
    color: var(--muted);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.search {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 240px;
    padding: 9px 14px;
    border-radius: var(--radius-sm);
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--muted);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search:focus-within {
    border-color: rgba(143, 230, 210, 0.35);
    box-shadow: 0 0 0 3px rgba(143, 230, 210, 0.08);
}

.search svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
}

.search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
}

.search input::placeholder {
    color: var(--muted-2);
}

.icon-btn {
    position: relative;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--muted);
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.icon-btn:hover {
    color: var(--text);
    border-color: var(--border-strong);
    background: var(--card-2);
}

.icon-btn svg {
    width: 19px;
    height: 19px;
}

.notif-dot {
    position: absolute;
    top: 9px;
    right: 10px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 0 0 3px var(--card);
}

.menu-toggle {
    display: none;
}

.avatar {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    color: #06251f;
    background: linear-gradient(140deg, #b9f5e8, #6fd6c1);
    box-shadow: 0 6px 18px rgba(143, 230, 210, 0.22);
    flex: 0 0 auto;
}

.avatar-sm {
    width: 34px;
    height: 34px;
    font-size: 12.5px;
}

/* ============================================================
   Grid & cards
   ============================================================ */

.grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 20px;
}

.span-4 {
    grid-column: span 4;
}

.span-8 {
    grid-column: span 8;
}

.grid > * {
    min-width: 0;
}

.card {
    position: relative;
    min-width: 0;
    padding: 20px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, #171d25 0%, #141920 100%);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    animation: rise 0.5s ease both;
}

.card:nth-child(1) { animation-delay: 0.02s; }
.card:nth-child(2) { animation-delay: 0.06s; }
.card:nth-child(3) { animation-delay: 0.1s; }
.card:nth-child(4) { animation-delay: 0.14s; }
.card:nth-child(5) { animation-delay: 0.18s; }
.card:nth-child(6) { animation-delay: 0.22s; }

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

.card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.card-head h2 {
    margin: 0;
    font-size: 15.5px;
    font-weight: 600;
    letter-spacing: -0.2px;
}

.card-head p {
    margin: 3px 0 0;
}

.muted {
    color: var(--muted);
    font-size: 12px;
}

.align-right {
    text-align: right;
}

.pill {
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--mint);
    background: rgba(143, 230, 210, 0.1);
    border: 1px solid rgba(143, 230, 210, 0.2);
    white-space: nowrap;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    white-space: nowrap;
}

.ghost-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    background: transparent;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.ghost-btn:hover {
    color: var(--text);
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.03);
}

.ghost-btn svg {
    width: 15px;
    height: 15px;
}

/* ============================================================
   Stat tiles
   ============================================================ */

.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.stat {
    padding: 16px;
    border-radius: 15px;
    background: var(--card-2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.stat:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.1);
    background: var(--card-3);
}

.stat-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
}

.stat-icon svg {
    width: 21px;
    height: 21px;
}

.stat-value {
    display: block;
    margin-top: 15px;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.stat-label {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: var(--muted);
}

.stat-delta {
    display: inline-block;
    margin-top: 9px;
    font-size: 11px;
    font-weight: 500;
    opacity: 0.95;
}

.tone-orange {
    color: var(--orange);
}

.tone-mint {
    color: var(--mint);
}

.tone-pink {
    color: var(--pink);
}

.tone-blue {
    color: var(--blue);
}

.tone-purple {
    color: var(--purple);
}

.stat-icon.tone-orange {
    background: rgba(246, 166, 35, 0.13);
    color: var(--orange);
}

.stat-icon.tone-mint {
    background: rgba(143, 230, 210, 0.12);
    color: var(--mint);
}

.stat-icon.tone-pink {
    background: rgba(224, 138, 208, 0.12);
    color: var(--pink);
}

.stat-icon.tone-blue {
    background: rgba(90, 169, 255, 0.12);
    color: var(--blue);
}

/* ============================================================
   Bar chart
   ============================================================ */

.bar-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    height: 176px;
    padding: 6px 4px 0;
}

.bar-group {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    flex: 1;
    height: 100%;
}

.bar {
    flex: 1;
    min-width: 6px;
    border-radius: 5px 5px 3px 3px;
    transform-origin: bottom;
    animation: grow 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.bar.volume {
    background: linear-gradient(180deg, #b6f2e6, #6fd6c1 70%, rgba(111, 214, 193, 0.35));
    box-shadow: 0 0 18px rgba(143, 230, 210, 0.18);
}

.bar.service {
    background: linear-gradient(180deg, #3a4351, #2a313c);
}

@keyframes grow {
    from {
        transform: scaleY(0);
        opacity: 0.2;
    }
    to {
        transform: scaleY(1);
        opacity: 1;
    }
}

.legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--muted);
}

.legend span,
.legend-row span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex: 0 0 auto;
}

.dot-mint { background: var(--mint); }
.dot-pink { background: var(--pink); }
.dot-orange { background: var(--orange); }
.dot-blue { background: var(--blue); }
.dot-dim { background: #3a4351; }

.legend-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    font-size: 11.5px;
    color: var(--muted);
}

/* ============================================================
   Table
   ============================================================ */

.table-wrap {
    overflow-x: auto;
    max-width: 100%;
}

.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 460px;
}

.table th {
    padding: 0 12px 12px;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--muted);
    text-align: left;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.table th:first-child,
.table td:first-child {
    padding-left: 4px;
    width: 46px;
}

.table td {
    padding: 15px 12px;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: middle;
}

.table tbody tr:last-child td {
    border-bottom: 0;
    padding-bottom: 4px;
}

.table tbody tr {
    transition: background 0.2s ease;
}

.table tbody tr:hover {
    background: rgba(255, 255, 255, 0.025);
}

.product-name {
    font-weight: 500;
    white-space: nowrap;
}

.popularity {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 120px;
}

.track {
    display: block;
    width: 100%;
    max-width: 150px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    overflow: hidden;
}

.track .fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 12px currentColor;
    animation: fillbar 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes fillbar {
    from { width: 0; }
}

.badge {
    display: inline-block;
    min-width: 46px;
    padding: 4px 9px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 600;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid currentColor;
}

.badge.tone-orange { background: rgba(246, 166, 35, 0.08); }
.badge.tone-mint { background: rgba(143, 230, 210, 0.08); }
.badge.tone-blue { background: rgba(90, 169, 255, 0.08); }
.badge.tone-pink { background: rgba(224, 138, 208, 0.08); }

/* ============================================================
   Charts
   ============================================================ */

.chart-box {
    width: 100%;
    height: 190px;
}

.chart-box.tall {
    height: 250px;
}

.chart-box svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.chart-grid-line {
    stroke: rgba(255, 255, 255, 0.06);
    stroke-dasharray: 3 5;
}

.chart-axis-label {
    fill: var(--muted-2);
    font-size: 10px;
    font-family: inherit;
}

.chart-line {
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 4000;
    stroke-dashoffset: 4000;
    animation: draw 1.4s ease forwards;
}

@keyframes draw {
    to { stroke-dashoffset: 0; }
}

.chart-area {
    opacity: 0;
    animation: fadein 1s ease 0.35s forwards;
}

@keyframes fadein {
    to { opacity: 1; }
}

.chart-dot {
    stroke: #10151c;
    stroke-width: 2;
}

.chart-marker-line {
    stroke: rgba(255, 255, 255, 0.25);
    stroke-dasharray: 4 4;
}

/* Earnings */
.earn-value {
    display: block;
    margin-top: 2px;
    font-size: 29px;
    font-weight: 700;
    letter-spacing: -1px;
}

.earn-note {
    margin: 6px 0 0;
    max-width: 200px;
    line-height: 1.5;
}

.donut-box {
    display: grid;
    place-items: center;
    margin-top: 10px;
}

.donut-box svg {
    width: 170px;
    height: 170px;
}

.donut-value {
    fill: var(--text);
    font-size: 22px;
    font-weight: 700;
    font-family: inherit;
}

.donut-caption {
    fill: var(--muted);
    font-size: 9.5px;
    letter-spacing: 0.5px;
    font-family: inherit;
}

/* ============================================================
   Footer
   ============================================================ */

.page-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    font-size: 11.5px;
    color: var(--muted-2);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1180px) {
    .span-8,
    .span-4,
    .span-12 {
        grid-column: span 12;
    }

    .chart-box {
        height: 220px;
    }

    .donut-box svg {
        width: 190px;
        height: 190px;
    }
}

@media (max-width: 900px) {
    .sidebar {
        transform: translateX(-100%);
        box-shadow: 20px 0 50px rgba(0, 0, 0, 0.4);
    }

    body.nav-open .sidebar {
        transform: translateX(0);
    }

    body.nav-open .nav-overlay {
        opacity: 1;
        visibility: visible;
    }

    .main {
        margin-left: 0;
        padding: 20px 18px 28px;
    }

    .menu-toggle {
        display: grid;
    }

    .search {
        width: 180px;
    }
}

@media (max-width: 720px) {
    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .topbar-title p {
        display: none;
    }

    .search {
        display: none;
    }
}

@media (max-width: 520px) {
    .topbar {
        gap: 12px;
    }

    .topbar-title h1 {
        font-size: 19px;
    }

    .card {
        padding: 16px;
    }

    .card-head {
        flex-wrap: wrap;
    }

    .page-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

/* ============================================================
   Login
   ============================================================ */

.login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px;
}

.login-shell {
    width: min(1020px, 100%);
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    border-radius: 26px;
    overflow: hidden;
    background: linear-gradient(180deg, #121820 0%, #0d1117 100%);
    border: 1px solid var(--border);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    animation: rise 0.55s ease both;
}

.login-brand-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 38px;
    padding: 46px 44px;
    overflow: hidden;
    background:
        radial-gradient(520px 320px at 12% 8%, rgba(143, 230, 210, 0.16), transparent 62%),
        radial-gradient(420px 300px at 96% 88%, rgba(90, 169, 255, 0.1), transparent 60%),
        #0a0d12;
    border-right: 1px solid var(--border);
}

.login-brand-panel::before,
.login-brand-panel::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(143, 230, 210, 0.12);
    pointer-events: none;
}

.login-brand-panel::before {
    width: 340px;
    height: 340px;
    right: -150px;
    top: -120px;
}

.login-brand-panel::after {
    width: 220px;
    height: 220px;
    right: -60px;
    top: -40px;
    border-color: rgba(143, 230, 210, 0.07);
}

.login-brand-panel .brand {
    position: relative;
    z-index: 1;
    padding: 0;
}

.login-copy {
    position: relative;
    z-index: 1;
    margin-top: auto;
}

.login-copy h2 {
    margin: 18px 0 12px;
    font-size: 31px;
    line-height: 1.18;
    letter-spacing: -1px;
    font-weight: 700;
    max-width: 13ch;
}

.login-copy p {
    margin: 0;
    max-width: 34ch;
    font-size: 13px;
    line-height: 1.65;
    color: var(--muted);
}

.login-points {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
    font-size: 12.5px;
    color: var(--muted);
}

.login-points li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-footnote {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 11px;
    color: var(--muted-2);
}

.login-card-wrap {
    display: grid;
    align-items: center;
    padding: 46px 44px;
    background: rgba(15, 19, 26, 0.72);
}

.login-card {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
}

.login-head {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 26px;
}

.login-head-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    border-radius: 14px;
    color: var(--mint);
    background: rgba(143, 230, 210, 0.1);
    border: 1px solid rgba(143, 230, 210, 0.22);
}

.login-head-icon svg {
    width: 23px;
    height: 23px;
}

.login-head h1 {
    margin: 0;
    font-size: 23px;
    font-weight: 700;
    letter-spacing: -0.6px;
}

.login-head p {
    margin: 3px 0 0;
    font-size: 12px;
    color: var(--muted);
}

.flash {
    padding: 11px 14px;
    margin-bottom: 16px;
    border-radius: 11px;
    font-size: 12px;
    line-height: 1.5;
    border: 1px solid transparent;
}

.flash-success {
    color: var(--mint);
    background: rgba(143, 230, 210, 0.08);
    border-color: rgba(143, 230, 210, 0.22);
}

.flash-error {
    color: #ffb3c0;
    background: rgba(255, 90, 120, 0.08);
    border-color: rgba(255, 90, 120, 0.24);
}

.login-errors {
    margin: 0 0 16px;
    padding: 11px 14px 11px 30px;
    border-radius: 11px;
    font-size: 12px;
    line-height: 1.6;
    color: #ffb3c0;
    background: rgba(255, 90, 120, 0.08);
    border: 1px solid rgba(255, 90, 120, 0.24);
}

.login-form {
    display: flex;
    flex-direction: column;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 16px;
}

.field > span:first-child {
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
}

.field input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border-strong);
    background: #0c1117;
    color: var(--text);
    font-family: inherit;
    font-size: 13.5px;
    outline: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field input::placeholder {
    color: var(--muted-2);
}

.field input:focus {
    border-color: rgba(143, 230, 210, 0.5);
    background: #0e141b;
    box-shadow: 0 0 0 3px rgba(143, 230, 210, 0.1);
}

.password-wrap {
    position: relative;
    display: block;
}

.password-wrap input {
    padding-right: 66px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 7px;
    transform: translateY(-50%);
    padding: 6px 9px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.password-toggle:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.login-btn {
    margin-top: 8px;
    padding: 12px 16px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #b9f5e8, #6fd6c1);
    color: #06251f;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.1px;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(143, 230, 210, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(143, 230, 210, 0.24);
    filter: brightness(1.03);
}

.login-btn:active {
    transform: translateY(0);
}

.login-hint {
    margin: 18px 0 0;
    text-align: center;
    font-size: 11px;
    color: var(--muted-2);
}

.login-hint strong {
    color: var(--muted);
    font-weight: 600;
}

@media (max-width: 860px) {
    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-brand-panel {
        display: none;
    }

    .login-card-wrap {
        padding: 36px 26px;
    }
}

@media (max-width: 520px) {
    .login-body {
        padding: 14px;
    }

    .login-shell {
        border-radius: 20px;
    }

    .login-card-wrap {
        padding: 30px 20px;
    }

    .login-head h1 {
        font-size: 20px;
    }
}

/* ============================================================
   Users CRUD
   ============================================================ */

.primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 15px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #b9f5e8, #6fd6c1);
    color: #06251f;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(143, 230, 210, 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(143, 230, 210, 0.24);
    filter: brightness(1.03);
}

.primary-btn svg {
    width: 16px;
    height: 16px;
}

.primary-btn.danger {
    background: linear-gradient(135deg, #ff9aae, #ff6b84);
    color: #2a0710;
    box-shadow: 0 8px 22px rgba(255, 90, 120, 0.18);
}

.primary-btn.danger:hover {
    box-shadow: 0 12px 26px rgba(255, 90, 120, 0.26);
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 170px;
}

.user-cell > span:last-child {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    min-width: 0;
}

.user-cell strong {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-cell small {
    font-size: 11px;
    color: var(--muted);
}

.bay-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: var(--mint);
    background: rgba(143, 230, 210, 0.1);
    border: 1px solid rgba(143, 230, 210, 0.2);
}

.bay-icon svg {
    width: 18px;
    height: 18px;
}

.action-group {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
}

.action-group form {
    margin: 0;
}

.ghost-btn.danger {
    color: #ff9aae;
}

.ghost-btn.danger:hover {
    color: #ffb3c0;
    border-color: rgba(255, 90, 120, 0.3);
    background: rgba(255, 90, 120, 0.08);
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 34px 20px;
    text-align: center;
    color: var(--muted);
}

.empty-state strong {
    color: var(--text);
    font-size: 13.5px;
}

.empty-state span {
    font-size: 12px;
}

.form-card {
    max-width: 860px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 18px;
}

.user-form .field {
    margin-bottom: 15px;
}

.user-form .field.span-2 {
    grid-column: 1 / -1;
}

.user-form .field select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border-strong);
    background: #0c1117;
    color: var(--text);
    font-family: inherit;
    font-size: 13.5px;
    outline: 0;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.user-form .field select:focus {
    border-color: rgba(143, 230, 210, 0.5);
    background: #0e141b;
    box-shadow: 0 0 0 3px rgba(143, 230, 210, 0.1);
}

.user-form .field select option {
    background: #0f141b;
    color: var(--text);
}

.user-gi-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text);
    cursor: pointer;
}

.checkbox-row input {
    width: 16px;
    height: 16px;
    padding: 0;
    border-radius: 4px;
    accent-color: #8fe6d2;
    cursor: pointer;
}

.user-form .field.is-hidden {
    display: none;
}

.field textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border-strong);
    background: #0c1117;
    color: var(--text);
    font-family: inherit;
    font-size: 13.5px;
    outline: 0;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field textarea:focus {
    border-color: rgba(143, 230, 210, 0.5);
    background: #0e141b;
    box-shadow: 0 0 0 3px rgba(143, 230, 210, 0.1);
}

.approval-notice {
    position: relative;
}

.approval-count {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef5f8b;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 0 0 2px #0b0f14;
}

.approval-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 18px;
}

.approval-actions form {
    margin: 0;
}

.approval-reject {
    flex: 1;
    min-width: 260px;
}

@media (max-width: 720px) {
    .user-gi-options {
        grid-template-columns: 1fr;
    }
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.flash-list {
    margin: 0;
    padding-left: 16px;
}

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

    .user-form .field.span-2 {
        grid-column: auto;
    }

    .topbar-actions .primary-btn span {
        display: none;
    }
}

/* ============================================================
   Users CRUD - modal & responsive table
   ============================================================ */

body.modal-open {
    overflow: hidden;
}

.list-head {
    align-items: center;
}

.table-tools {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-sm {
    width: 230px;
    padding: 8px 12px;
}

.search-sm svg {
    width: 15px;
    height: 15px;
}

.data-table td {
    padding-top: 14px;
    padding-bottom: 14px;
}

.data-table .user-cell {
    min-width: 170px;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.modal.is-open {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 5, 8, 0.72);
    backdrop-filter: blur(6px);
}

.modal-panel {
    position: relative;
    width: min(660px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    border-radius: 20px;
    border: 1px solid var(--border-strong);
    background: linear-gradient(180deg, #171d25 0%, #121820 100%);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
    transform: translateY(14px) scale(0.985);
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal.is-open .modal-panel {
    transform: translateY(0) scale(1);
}

.modal-head {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px;
    border-bottom: 1px solid var(--border);
    background: rgba(21, 26, 33, 0.96);
    backdrop-filter: blur(8px);
}

.modal-head h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.4px;
}

.modal-head p {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--muted);
}

.modal-close {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
}

.modal-close svg {
    width: 17px;
    height: 17px;
}

.modal-body {
    padding: 22px 24px 24px;
}

.modal .form-grid {
    gap: 2px 16px;
}

.modal .field {
    margin-bottom: 14px;
}

.modal .form-actions {
    margin-top: 4px;
}

.modal .flash {
    margin-bottom: 18px;
}

.alert-modal {
    z-index: 100;
}

.alert-panel {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 18px;
    width: min(440px, 100%);
    padding: 26px;
    overflow: visible;
}

.alert-close {
    position: absolute;
    top: 14px;
    right: 14px;
}

.alert-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    border: 1px solid transparent;
}

.alert-icon svg {
    width: 24px;
    height: 24px;
}

.alert-copy {
    min-width: 0;
    padding-top: 2px;
    padding-right: 28px;
}

.alert-kicker {
    display: block;
    margin-bottom: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--muted);
}

.alert-copy h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.4px;
}

.alert-copy p {
    margin: 7px 0 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.alert-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 2px;
}

.alert-modal[data-type="success"] .alert-icon {
    color: var(--mint);
    background: rgba(143, 230, 210, 0.1);
    border-color: rgba(143, 230, 210, 0.24);
}

.alert-modal[data-type="error"] .alert-icon {
    color: #ff8fa3;
    background: rgba(255, 90, 120, 0.1);
    border-color: rgba(255, 90, 120, 0.26);
}

.alert-modal[data-type="warning"] .alert-icon {
    color: var(--orange);
    background: rgba(246, 166, 35, 0.1);
    border-color: rgba(246, 166, 35, 0.26);
}

.alert-modal[data-type="info"] .alert-icon {
    color: var(--blue);
    background: rgba(90, 169, 255, 0.1);
    border-color: rgba(90, 169, 255, 0.26);
}

@media (max-width: 900px) {
    .list-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .table-tools,
    .search-sm {
        width: 100%;
    }
}

@media (max-width: 720px) {
    .data-table {
        min-width: 0;
    }

    .data-table thead {
        display: none;
    }

    .data-table,
    .data-table tbody,
    .data-table tr,
    .data-table td {
        display: block;
        width: 100%;
    }

    .data-table tbody {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .data-table tbody tr {
        padding: 14px;
        border: 1px solid var(--border);
        border-radius: 14px;
        background: var(--card-2);
    }

    .data-table tbody tr:hover {
        background: var(--card-2);
    }

    .data-table tbody tr[hidden] {
        display: none !important;
    }

    .data-table td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        padding: 7px 0;
        border: 0;
        text-align: right;
    }

    .data-table td::before {
        content: attr(data-label);
        flex: 0 0 auto;
        color: var(--muted);
        font-size: 10.5px;
        font-weight: 600;
        letter-spacing: 0.8px;
        text-transform: uppercase;
        text-align: left;
    }

    .data-table td[data-label="ID"] {
        display: none;
    }

    .data-table td.cell-primary {
        padding-top: 0;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--border);
    }

    .data-table td.cell-primary::before,
    .data-table td.cell-actions::before {
        display: none;
    }

    .data-table td.cell-primary .user-cell {
        width: 100%;
        min-width: 0;
    }

    .data-table td.cell-actions {
        justify-content: flex-end;
        margin-top: 4px;
        padding-top: 12px;
        border-top: 1px solid var(--border);
    }

    .data-table td.cell-actions .action-group {
        width: 100%;
        justify-content: flex-end;
    }

    .data-table tr.empty-row {
        padding: 0;
        border: 0;
        background: transparent;
    }

    .data-table tr.empty-row td {
        display: block;
        padding: 0;
    }

    .data-table tr.empty-row td::before {
        display: none;
    }

    .modal {
        padding: 12px;
    }

    .modal-panel {
        max-height: calc(100vh - 24px);
        border-radius: 16px;
    }

    .modal-head {
        padding: 18px 18px 16px;
    }

    .modal-body {
        padding: 18px;
    }

    .alert-panel {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 14px;
        padding: 20px;
    }

    .alert-icon {
        width: 44px;
        height: 44px;
        border-radius: 13px;
    }

    .alert-icon svg {
        width: 21px;
        height: 21px;
    }
}

@media (max-width: 520px) {
    .topbar-actions .primary-btn {
        padding: 9px 11px;
    }

    .modal-head h2 {
        font-size: 16px;
    }
}

/* ============================================================
   Thermovisi analysis
   ============================================================ */

.main > .card {
    margin-bottom: 18px;
}

.analysis-stats {
    margin-bottom: 18px;
}

.analysis-stats .stat-delta {
    display: block;
    margin-top: 6px;
    line-height: 1.35;
}

.filter-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr) auto;
    align-items: end;
}

.filter-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 15px;
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.meta-item {
    padding: 13px 14px;
    border-radius: 12px;
    background: var(--card-2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    min-width: 0;
}

.meta-item span {
    display: block;
    margin-bottom: 5px;
    font-size: 11px;
    color: var(--muted);
}

.meta-item strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.analysis-breakdown {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.breakdown-item {
    padding: 12px 13px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border);
}

.breakdown-label {
    display: block;
    margin-bottom: 4px;
    font-size: 10.5px;
    line-height: 1.35;
    color: var(--muted);
}

.breakdown-item strong {
    font-size: 15px;
    font-weight: 700;
}

.status-banner {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 15px 17px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--card-2);
}

.status-banner + .status-banner {
    margin-top: 10px;
}

.status-banner.tone-mint {
    background: rgba(143, 230, 210, 0.07);
    border-color: rgba(143, 230, 210, 0.24);
}

.status-banner.tone-orange {
    background: rgba(246, 166, 35, 0.07);
    border-color: rgba(246, 166, 35, 0.24);
}

.status-banner.tone-pink {
    background: rgba(224, 138, 208, 0.07);
    border-color: rgba(224, 138, 208, 0.24);
}

.status-banner-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: currentColor;
}

.status-banner-icon svg {
    width: 18px;
    height: 18px;
}

.status-banner strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
}

.status-banner p {
    margin: 3px 0 0;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
}

.upload-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 18px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(90, 169, 255, 0.07);
    border: 1px solid rgba(90, 169, 255, 0.2);
    color: var(--blue);
}

.upload-note svg {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin-top: 1px;
}

.upload-note p {
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
    color: var(--muted);
}

.upload-note strong {
    color: var(--text);
    font-weight: 600;
}

.formula-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.formula-item {
    padding: 13px 14px;
    border-radius: 12px;
    background: var(--card-2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.formula-item strong {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    font-weight: 600;
}

.formula-item code {
    display: block;
    margin-bottom: 6px;
    padding: 7px 9px;
    border-radius: 8px;
    background: #0c1117;
    color: var(--mint);
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 11px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.formula-item span {
    font-size: 11px;
    line-height: 1.5;
    color: var(--muted);
}

.analysis-table td {
    padding-top: 12px;
    padding-bottom: 12px;
}

.analysis-table .group-cell {
    background: rgba(255, 255, 255, 0.018);
    vertical-align: top;
    font-weight: 600;
}

.report-detail-table {
    min-width: 1080px;
}

.field input[type="file"] {
    padding: 10px 12px;
    cursor: pointer;
}

.field input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 7px 11px;
    border: 0;
    border-radius: 8px;
    background: rgba(143, 230, 210, 0.13);
    color: var(--mint);
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
}

.field small {
    font-size: 11px;
    line-height: 1.5;
}

@media (max-width: 1180px) {
    .analysis-breakdown {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .meta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-actions {
        grid-column: 1 / -1;
        padding-bottom: 0;
    }
}

@media (max-width: 720px) {
    .analysis-breakdown {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-grid,
    .meta-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   Dashboard thermovisi
   ============================================================ */

.span-12 {
    grid-column: span 12;
}

.stat-icon.tone-purple {
    background: rgba(176, 140, 255, 0.13);
    color: var(--purple);
}

.bar.alert {
    background: linear-gradient(180deg, #f3b6e6, #e08ad0 70%, rgba(224, 138, 208, 0.35));
    box-shadow: 0 0 18px rgba(224, 138, 208, 0.16);
}

.chart-labels {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 8px 4px 0;
    font-size: 11px;
    color: var(--muted);
}

.chart-labels span {
    flex: 1;
    text-align: center;
}

/* Label langsung pada line chart tren status */
.chart-series-label {
    font-size: 9.5px;
    font-weight: 600;
    font-family: inherit;
    paint-order: stroke;
    stroke: #10151c;
    stroke-width: 3px;
    stroke-linejoin: round;
}

/* Chart batang antar bay */
.bay-bar-chart {
    display: grid;
    gap: 11px;
    margin-top: 6px;
}

.bay-bar-row {
    display: grid;
    grid-template-columns: minmax(150px, 1.3fr) minmax(0, 3fr) 72px 88px;
    align-items: center;
    gap: 12px;
}

.bay-bar-name {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.bay-bar-name strong {
    font-size: 12.5px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.bay-bar-name small {
    font-size: 10.5px;
    color: var(--muted-2);
}

.bay-bar-track {
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.bay-bar-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    animation: fillbar 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.bay-bar-fill.tone-mint {
    background: linear-gradient(90deg, #5fc7b2, #8fe6d2);
    box-shadow: 0 0 12px rgba(143, 230, 210, 0.22);
}

.bay-bar-fill.tone-orange {
    background: linear-gradient(90deg, #d88912, #f6a623);
    box-shadow: 0 0 12px rgba(246, 166, 35, 0.22);
}

.bay-bar-fill.tone-pink {
    background: linear-gradient(90deg, #c96bb9, #e08ad0);
    box-shadow: 0 0 12px rgba(224, 138, 208, 0.22);
}

.bay-bar-value {
    font-size: 12px;
    font-weight: 600;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.bay-bar-row .badge {
    justify-self: end;
}

.bay-bar-axis {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    font-size: 10.5px;
    color: var(--muted-2);
}

@media (max-width: 720px) {
    .bay-bar-row {
        grid-template-columns: minmax(110px, 1.4fr) minmax(0, 2fr) 60px;
    }

    .bay-bar-row .badge {
        grid-column: 3;
        grid-row: 1;
    }

    .bay-bar-value {
        grid-column: 3;
        grid-row: 2;
    }
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.status-grid .meta-item {
    padding: 11px 12px;
}

.condition-list {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.condition-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.condition-row-head strong {
    font-size: 13px;
}

.condition-row-head .muted {
    font-size: 11.5px;
}

.condition-row .track {
    max-width: none;
}

.status-breakdown {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 16px;
}

.recent-list {
    display: grid;
    gap: 4px;
    margin-top: 6px;
}

.recent-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 4px;
    border-bottom: 1px solid var(--border);
}

.recent-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.recent-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.recent-main strong {
    font-size: 13px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.recent-main small {
    font-size: 11.5px;
    color: var(--muted);
}

.recent-item .badge {
    flex: 0 0 auto;
}

@media (max-width: 720px) {
    .status-breakdown {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ============================================================
   DataTables dark theme
   ============================================================ */

table.dataTable {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    border-spacing: 0;
}

table.dataTable > thead > tr > th,
table.dataTable > thead > tr > td {
    padding: 0 12px 12px;
    border-bottom: 1px solid var(--border);
    background: transparent;
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

table.dataTable > tbody > tr > td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    font-size: 13px;
}

table.dataTable > tbody > tr:last-child > td {
    border-bottom: 0;
}

table.dataTable.no-footer {
    border-bottom: 0;
}

table.dataTable tbody tr.odd,
table.dataTable tbody tr.even {
    background: transparent !important;
}

table.dataTable tbody tr:hover {
    background: rgba(255, 255, 255, 0.025) !important;
}

table.dataTable thead .sorting:before,
table.dataTable thead .sorting:after,
table.dataTable thead .sorting_asc:before,
table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc:before,
table.dataTable thead .sorting_desc:after,
table.dataTable thead .sorting_asc_disabled:before,
table.dataTable thead .sorting_asc_disabled:after,
table.dataTable thead .sorting_desc_disabled:before,
table.dataTable thead .sorting_desc_disabled:after {
    color: var(--muted);
    opacity: 0.35;
}

table.dataTable thead .sorting_asc:before,
table.dataTable thead .sorting_desc:after {
    color: var(--mint);
    opacity: 0.9;
}

.dataTables_wrapper {
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
}

.dataTables_wrapper .dt-top,
.dataTables_wrapper .dt-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.dataTables_wrapper .dt-top {
    margin-bottom: 12px;
}

.dataTables_wrapper .dt-bottom {
    margin-top: 12px;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    float: none !important;
    padding: 0;
    color: var(--muted);
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    padding: 7px 10px;
    border: 1px solid var(--border);
    border-radius: 9px;
    outline: none;
    background: var(--card-2);
    color: var(--text);
}

.dataTables_wrapper .dataTables_filter input {
    margin-left: 8px;
}

.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus {
    border-color: rgba(143, 230, 210, 0.4);
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    display: inline-block;
    min-width: 0;
    margin-left: 4px;
    padding: 6px 10px !important;
    border: 1px solid transparent !important;
    border-radius: 8px !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--muted) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    border-color: rgba(143, 230, 210, 0.28) !important;
    background: rgba(143, 230, 210, 0.12) !important;
    color: var(--mint) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    border-color: var(--border) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    color: var(--text) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    border-color: transparent !important;
    background: transparent !important;
    color: var(--muted) !important;
    opacity: 0.35;
}

.dataTables_wrapper .dataTables_info {
    line-height: 1.6;
}

.report-detail-table.dataTable > thead > tr > th,
.report-detail-table.dataTable > tbody > tr > td {
    padding-left: 6px;
    padding-right: 6px;
}

.report-detail-table.dataTable > thead > tr > th {
    font-size: 10.5px;
}

.report-detail-table.dataTable > tbody > tr > td {
    font-size: 12px;
}

/* ============================================================
   Monitoring intensif
   ============================================================ */

.monitoring-bad-list { display: grid; gap: 12px; }
.monitoring-bad-item { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--card-2); border: 1px solid rgba(255, 255, 255, 0.05); }
.monitoring-bad-item strong { display: block; margin: 6px 0 3px; }
.monitoring-bad-values { display: flex; flex-wrap: wrap; gap: 10px 16px; font-size: 12px; color: var(--muted); }
.monitoring-bad-values b { color: var(--text); }
@media (max-width: 720px) { .monitoring-bad-item { grid-template-columns: 1fr; } }

.chart-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 8px; font-size: 11px; color: var(--muted); }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.chart-legend i.is-dashed { width: 18px; height: 0; border-top: 1px dashed rgba(255, 255, 255, 0.4); border-radius: 0; }

/* ============================================================
   Formulir C
   ============================================================ */

.formulir-c-parameter { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.formulir-c-parameter > summary { cursor: pointer; color: var(--mint); font-size: 13px; font-weight: 600; }
.formulir-c-parameter[open] > summary { margin-bottom: 14px; }

.formulir-c-point-table td,
.formulir-c-point-table th { vertical-align: middle; }

.formulir-c-chart { display: block; width: 100%; height: auto; }
.chart-empty { display: grid; place-items: center; min-height: 150px; border: 1px dashed var(--border); border-radius: 12px; color: var(--muted); font-size: 12px; }

.formulir-c-point-block { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--card-2); margin-bottom: 14px; }
.formulir-c-point-head { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; }
.formulir-c-point-head strong { font-size: 14px; }
.formulir-c-reading-form { margin: 4px 0 8px; padding: 12px; border: 1px dashed var(--border); border-radius: 12px; }

.formulir-c-attachments { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-top: 12px; }
.formulir-c-photo { overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--card-2); }
.formulir-c-photo img { display: block; width: 100%; height: 120px; object-fit: cover; background: #111827; }
.formulir-c-photo-body { display: grid; gap: 6px; padding: 8px 10px; font-size: 11px; color: var(--muted); }
.formulir-c-photo-body strong { color: var(--text); font-size: 12px; }

@media (max-width: 720px) {
    .formulir-c-point-head { align-items: flex-start; flex-direction: column; }
}
