/* ══════════════════════════════════════════════════════════
      DESIGN TOKENS  —  Light Blue-Yellow palette
    ══════════════════════════════════════════════════════════ */
:root {
    /* page background */
    --bg: #f0f4fa;
    --bg-2: #e8eef8;

    /* card / surface */
    --surface: #ffffff;
    --surface-2: #f5f8fd;

    /* borders */
    --border: #dde5f2;
    --border-h: #b8ccec;

    /* text */
    --txt: #0f1f3d;
    --txt-mid: #4a6080;
    --txt-faint: #92a5be;

    /* brand blue  (logo primary) */
    --blue: #1a56b0;
    --blue-md: #2468c8;
    --blue-lt: #e8f0fb;
    --blue-glow: rgba(26, 86, 176, .18);

    /* brand yellow  (logo accent) */
    --gold: #d4a017;
    --gold-md: #f5bc2f;
    --gold-lt: #fef8e6;
    --gold-bright: #fbbf24;

    /* semantic */
    --green: #16803c;
    --green-lt: #dcfce7;
    --red: #c0152a;
    --red-lt: #ffe4e6;
    --orange: #c2570a;
    --orange-lt: #ffedd5;
    --purple: #6d28d9;
    --purple-lt: #ede9fe;
    --teal: #0e7490;
    --teal-lt: #cffafe;

    /* topbar */
    --tb-bg: #0f2858;
    /* deep navy — topbar */
    --tb-h: 62px;

    /* radius */
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 18px;
    --r-xl: 22px;

    /* shadow */
    --shadow-sm: 0 1px 3px rgba(15, 31, 61, .06), 0 1px 2px rgba(15, 31, 61, .04);
    --shadow-md: 0 4px 16px rgba(15, 31, 61, .09), 0 1px 4px rgba(15, 31, 61, .05);
    --shadow-lg: 0 8px 32px rgba(15, 31, 61, .12);

    --font: 'Plus Jakarta Sans', sans-serif;
    --mono: 'DM Mono', monospace;
}

/* ══════════════════════════════════════════════════════════
     BASE
  ══════════════════════════════════════════════════════════ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    background: var(--bg);
    color: var(--txt);
    font-family: var(--font);
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

body {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

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

button {
    font-family: var(--font);
    cursor: pointer;
    border: none;
    background: none;
}

/* ══════════════════════════════════════════════════════════
     TOPBAR  —  deep navy with gold accent stripe
  ══════════════════════════════════════════════════════════ */
.topbar {
    height: var(--tb-h);
    background: var(--tb-bg);
    /* subtle gold underline */
    border-bottom: 3px solid var(--gold-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 200;
    flex-shrink: 0;
    box-shadow: 0 2px 12px rgba(15, 31, 61, .25);
}

/* brand */
.tb-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.tb-logo {
    width: 38px;
    height: 38px;
    border-radius: var(--r-sm);
    background: rgba(255, 255, 255, .12);
    border: 1.5px solid rgba(255, 255, 255, .2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.tb-logo img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.tb-logo .ico {
    font-size: 18px;
    color: var(--gold-md);
}

.tb-text {
    min-width: 0;
}

.tb-name {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -.1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tb-sub {
    font-size: 10.5px;
    color: rgba(255, 255, 255, .55);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}

/* live */
.tb-live {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 99px;
    padding: 3px 10px 3px 7px;
    flex-shrink: 0;
}

.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, .5);
    }

    50% {
        box-shadow: 0 0 0 5px rgba(74, 222, 128, 0);
    }
}

.live-txt {
    font-size: 10px;
    font-weight: 700;
    color: #4ade80;
    font-family: var(--mono);
    letter-spacing: .5px;
}

/* separator */
.tb-sep {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, .15);
    flex-shrink: 0;
}

/* nav buttons */
.tb-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 13px;
    border-radius: var(--r-sm);
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font);
    border: 1.5px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .75);
    transition: all .17s ease;
    white-space: nowrap;
    cursor: pointer;
}

.nav-btn i {
    font-size: 13px;
    line-height: 1;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, .16);
    border-color: rgba(255, 255, 255, .32);
    color: #fff;
    transform: translateY(-1px);
}

.nav-btn.primary {
    background: var(--blue-md);
    border-color: var(--blue-md);
    color: #fff;
}

.nav-btn.primary:hover {
    background: #5b50f5;
    border-color: #5b50f5;
    box-shadow: 0 4px 14px rgba(47, 123, 245, 0.4);
    transform: translateY(-1px);
}

.nav-btn.gold {
    background: var(--gold-md);
    border-color: var(--gold-md);
    color: var(--tb-bg);
    font-weight: 700;
}

.nav-btn.gold:hover {
    background: #f5cc50;
    border-color: #f5cc50;
    box-shadow: 0 4px 14px rgba(245, 188, 47, .4);
}

.nav-btn.green {
    background: rgba(22, 128, 60, .85);
    border-color: rgba(22, 128, 60, .7);
    color: #fff;
}

.nav-btn.green:hover {
    background: var(--green);
}

.nav-btn.silver {
    background: var(--surface);
    border-color: var(--border-h);
    color: var(--txt-mid);
}

.nav-btn.silver:hover {
    background: var(--red-lt);
    border-color: rgba(192, 21, 42, .3);
    color: var(--red);
    transform: translateY(-1px);
}

/* mobile topbar */
@media (max-width: 640px) {
    .topbar {
        padding: 0 14px;
        gap: 8px;
    }

    .tb-live {
        display: none;
    }

    .tb-sep {
        display: none;
    }

    .nav-btn .btn-label {
        display: none;
    }

    .nav-btn {
        padding: 7px 10px;
    }

    .tb-name {
        font-size: 13px;
    }

    .tb-sub {
        display: none;
    }
}

/* ══════════════════════════════════════════════════════════
     PAGE WRAPPER
  ══════════════════════════════════════════════════════════ */
.main {
    flex: 1;
    padding: 20px 24px 52px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

@media (max-width: 768px) {
    .main {
        padding: 14px 14px 48px;
        gap: 14px;
    }
}

@media (max-width: 480px) {
    .main {
        padding: 10px 10px 40px;
        gap: 10px;
    }
}

/* ══════════════════════════════════════════════════════════
     SECTION LABEL
  ══════════════════════════════════════════════════════════ */
.sec-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--txt-faint);
    margin-bottom: 8px;
    padding-left: 2px;
}

/* ══════════════════════════════════════════════════════════
     STAT ROW
  ══════════════════════════════════════════════════════════ */
.stat-row {
    display: grid;
    grid-template-columns: 220px repeat(6, 1fr);
    gap: 12px;
}

/* hero card */
.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 16px 18px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* hero — blue gradient */
.stat-card.hero {
    background: linear-gradient(135deg, var(--blue) 0%, #0e3a80 100%);
    border-color: transparent;
    box-shadow: 0 6px 24px var(--blue-glow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-stripe {
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 100%;
    background: var(--gold-md);
    border-radius: 0 var(--r-md) var(--r-md) 0;
}

.hero-tag {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .6);
    margin-bottom: 8px;
}

.hero-num {
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    font-family: var(--mono);
    letter-spacing: -2px;
    line-height: 1;
}

.hero-lbl {
    font-size: 10.5px;
    color: rgba(255, 255, 255, .5);
    margin-top: 6px;
}

.hero-ico {
    position: absolute;
    bottom: 14px;
    right: 22px;
    font-size: 40px;
    color: rgba(255, 255, 255, .08);
    pointer-events: none;
}

/* mini card */
.mini-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.mini-lbl {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: var(--txt-faint);
    margin-bottom: 6px;
}

.mini-num {
    font-size: 28px;
    font-weight: 800;
    font-family: var(--mono);
    letter-spacing: -1px;
    line-height: 1;
}

.mini-ico {
    width: 34px;
    height: 34px;
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

/* left accent stripe on mini cards */
.stat-card.mini::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16%;
    bottom: 16%;
    width: 3px;
    border-radius: 0 3px 3px 0;
}

.stat-card.mini.ac-gold::before {
    background: var(--gold-md);
}

.stat-card.mini.ac-blue::before {
    background: var(--blue-md);
}

.stat-card.mini.ac-teal::before {
    background: var(--teal);
}

.stat-card.mini.ac-green::before {
    background: var(--green);
}

.stat-card.mini.ac-slate::before {
    background: var(--txt-mid);
}

.stat-card.mini.ac-red::before {
    background: var(--red);
}

/* bar */
.bar-track {
    height: 3px;
    background: var(--border);
    border-radius: 99px;
    margin-top: 10px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 99px;
    width: 0;
    transition: width 1s cubic-bezier(.4, 0, .2, 1) .3s;
}

/* color palette */
.c-gold {
    color: var(--gold);
}

.bg-gold {
    background: var(--gold-lt);
}

.c-blue {
    color: var(--blue-md);
}

.bg-blue {
    background: var(--blue-lt);
}

.c-teal {
    color: var(--teal);
}

.bg-teal {
    background: var(--teal-lt);
}

.c-green {
    color: var(--green);
}

.bg-green {
    background: var(--green-lt);
}

.c-slate {
    color: var(--txt-mid);
}

.bg-slate {
    background: var(--bg-2);
}

.c-red {
    color: var(--red);
}

.bg-red {
    background: var(--red-lt);
}

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

.bg-orange {
    background: var(--orange-lt);
}

/* stat row responsive */
@media (max-width: 1280px) {
    .stat-row {
        grid-template-columns: repeat(4, 1fr);
    }

    .stat-card.hero {
        grid-column: span 2;
        flex-direction: row;
        align-items: center;
        gap: 16px;
    }

    .hero-num {
        font-size: 42px;
    }

    .hero-stripe {
        display: none;
    }
}

@media (max-width: 900px) {
    .stat-row {
        grid-template-columns: repeat(3, 1fr);
    }

    .stat-card.hero {
        grid-column: span 3;
    }

    .hero-num {
        font-size: 36px;
    }

    .mini-num {
        font-size: 24px;
    }
}

@media (max-width: 560px) {
    .stat-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-card.hero {
        grid-column: span 2;
    }

    .mini-num {
        font-size: 22px;
    }
}

/* ══════════════════════════════════════════════════════════
     PANEL  (shared card base)
  ══════════════════════════════════════════════════════════ */
.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.panel-hdr {
    padding: 14px 20px 12px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    background: var(--surface-2);
}

.panel-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--txt);
}

.panel-sub {
    font-size: 11px;
    color: var(--txt-mid);
    margin-top: 1px;
}

.panel-chip {
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 99px;
    background: var(--blue-lt);
    color: var(--blue);
    border: 1px solid rgba(26, 86, 176, .15);
    font-family: var(--mono);
    white-space: nowrap;
}

/* left accent on panel headers */
.panel-hdr-accent {
    border-left: 3px solid var(--gold-md);
    padding-left: 14px;
}

.panel-body {
    flex: 1;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
}

/* ══════════════════════════════════════════════════════════
     CONTENT ROW  (Donut + Table)
  ══════════════════════════════════════════════════════════ */
.content-row {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 16px;
}

.donut-panel {
    height: 470px;
}

.table-panel {
    height: 470px;
}

.chart-canvas-wrap {
    position: relative;
    flex: 1;
    min-height: 0;
}

.legend-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 12px;
    flex-shrink: 0;
}

.lpill {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--txt-mid);
    background: var(--surface-2);
    border: 1px solid var(--border);
    padding: 3px 10px 3px 7px;
    border-radius: 99px;
}

.lpill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* table scroll */
.tbl-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: auto;
    min-height: 0;
}

.tbl-scroll::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

.tbl-scroll::-webkit-scrollbar-track {
    background: var(--surface-2);
}

.tbl-scroll::-webkit-scrollbar-thumb {
    background: var(--border-h);
    border-radius: 99px;
}

.data-tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    min-width: 680px;
}

.data-tbl thead th {
    position: sticky;
    top: 0;
    background: var(--surface-2);
    padding: 9px 12px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--txt-faint);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
    z-index: 5;
}

.data-tbl tbody td {
    padding: 9px 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    white-space: nowrap;
    color: var(--txt);
}

.data-tbl tbody tr:hover td {
    background: var(--blue-lt);
}

.data-tbl tbody tr:last-child td {
    border-bottom: none;
}

.tc-no {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--txt-faint);
    width: 28px;
}

.tc-date {
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--txt-mid);
}

.tc-ticket {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--blue-md);
    font-weight: 600;
}

.tc-title {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.tc-cat {
    font-size: 11px;
    color: var(--txt-mid);
}

/* content-row responsive */
@media (max-width: 1100px) {
    .content-row {
        grid-template-columns: 1fr;
    }

    .donut-panel {
        height: auto;
        min-height: 360px;
    }

    .table-panel {
        height: 400px;
    }

    .chart-canvas-wrap {
        min-height: 240px;
    }
}

@media (max-width: 768px) {
    .donut-panel {
        min-height: 320px;
    }

    .table-panel {
        height: 360px;
    }
}

/* ══════════════════════════════════════════════════════════
     BOTTOM ROW  (Kategori | Departemen | Engineer)
  ══════════════════════════════════════════════════════════ */
.bottom-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.bottom-row .panel {
    min-height: 290px;
}

.chart-sm {
    position: relative;
    height: 200px;
    margin-top: 8px;
    flex-shrink: 0;
}

/* engineer list */
.eng-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
    overflow-y: auto;
    flex: 1;
}

.eng-list::-webkit-scrollbar {
    width: 3px;
}

.eng-list::-webkit-scrollbar-thumb {
    background: var(--border-h);
    border-radius: 99px;
}

.eng-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--r-sm);
    background: var(--surface-2);
    border: 1px solid var(--border);
    transition: all .15s ease;
}

.eng-row:hover {
    border-color: var(--border-h);
    background: var(--blue-lt);
    transform: translateX(2px);
}

.eng-rank {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 9.5px;
    font-weight: 700;
    font-family: var(--mono);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.r1 {
    background: var(--gold-lt);
    color: var(--gold);
    border: 1px solid rgba(212, 160, 23, .3);
}

.r2 {
    background: var(--bg-2);
    color: var(--txt-mid);
    border: 1px solid var(--border);
}

.r3 {
    background: var(--orange-lt);
    color: var(--orange);
    border: 1px solid rgba(194, 87, 10, .2);
}

.rn {
    background: var(--bg-2);
    color: var(--txt-faint);
    border: 1px solid var(--border);
}

.eng-name {
    font-size: 12px;
    font-weight: 600;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--txt);
}

.eng-count {
    font-size: 11px;
    font-weight: 700;
    font-family: var(--mono);
    background: var(--blue-lt);
    color: var(--blue);
    padding: 2px 8px;
    border-radius: 99px;
    flex-shrink: 0;
    border: 1px solid rgba(26, 86, 176, .12);
}

/* bottom-row responsive */
@media (max-width: 1100px) {
    .bottom-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .bottom-row .panel:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .bottom-row {
        grid-template-columns: 1fr;
    }

    .bottom-row .panel:last-child {
        grid-column: span 1;
    }
}

/* ══════════════════════════════════════════════════════════
     BADGES
  ══════════════════════════════════════════════════════════ */
.bdg {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .15px;
    white-space: nowrap;
    font-family: var(--font);
}

/* status */
.bdg-open {
    background: var(--gold-lt);
    color: var(--gold);
    border: 1px solid rgba(212, 160, 23, .25);
}

.bdg-assigned {
    background: var(--teal-lt);
    color: var(--teal);
    border: 1px solid rgba(14, 116, 144, .2);
}

.bdg-progress {
    background: var(--blue-lt);
    color: var(--blue-md);
    border: 1px solid rgba(36, 104, 200, .2);
}

.bdg-resolved {
    background: var(--green-lt);
    color: var(--green);
    border: 1px solid rgba(22, 128, 60, .2);
}

.bdg-closed {
    background: var(--bg-2);
    color: var(--txt-mid);
    border: 1px solid var(--border);
}

.bdg-escalated {
    background: var(--red-lt);
    color: var(--red);
    border: 1px solid rgba(192, 21, 42, .2);
}

.bdg-default {
    background: var(--bg-2);
    color: var(--txt-mid);
    border: 1px solid var(--border);
}

/* priority */
.bdg-low {
    background: var(--green-lt);
    color: var(--green);
    border: 1px solid rgba(22, 128, 60, .2);
}

.bdg-medium {
    background: var(--blue-lt);
    color: var(--blue-md);
    border: 1px solid rgba(36, 104, 200, .2);
}

.bdg-high {
    background: var(--gold-lt);
    color: var(--gold);
    border: 1px solid rgba(212, 160, 23, .25);
}

.bdg-critical {
    background: var(--red-lt);
    color: var(--red);
    border: 1px solid rgba(192, 21, 42, .2);
}

/* ══════════════════════════════════════════════════════════
     ACTION ICON BUTTONS
  ══════════════════════════════════════════════════════════ */
.act-wrap {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.ico-btn {
    width: 27px;
    height: 27px;
    border-radius: 7px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--txt-mid);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    cursor: pointer;
    text-decoration: none;
    transition: all .14s ease;
}

.ico-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.ico-btn.e:hover {
    background: var(--gold-lt);
    border-color: rgba(212, 160, 23, .4);
    color: var(--gold);
}

.ico-btn.d:hover {
    background: var(--red-lt);
    border-color: rgba(192, 21, 42, .3);
    color: var(--red);
}

.ico-btn.v:hover {
    background: var(--blue-lt);
    border-color: rgba(26, 86, 176, .3);
    color: var(--blue);
}

.ico-btn.p:hover {
    background: var(--green-lt);
    border-color: rgba(22, 128, 60, .3);
    color: var(--green);
}

/* ══════════════════════════════════════════════════════════
     EMPTY / SKELETON
  ══════════════════════════════════════════════════════════ */
.empty-cell {
    text-align: center;
    color: var(--txt-faint);
    font-size: 12px;
    padding: 32px !important;
}

.skel {
    display: inline-block;
    background: linear-gradient(90deg, var(--border) 25%, var(--bg-2) 50%, var(--border) 75%);
    background-size: 200% 100%;
    animation: skel-anim 1.4s infinite;
    border-radius: 4px;
    height: 11px;
}

@keyframes skel-anim {
    from {
        background-position: 200% 0;
    }

    to {
        background-position: -200% 0;
    }
}

/* ══════════════════════════════════════════════════════════
     ANIMATIONS
  ══════════════════════════════════════════════════════════ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.a1 {
    animation: fadeUp .42s ease both;
}

.a2 {
    animation: fadeUp .42s .08s ease both;
}

.a3 {
    animation: fadeUp .42s .16s ease both;
}

/* ══════════════════════════════════════════════════════════
     MISC panel padding adjustments on mobile
  ══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
    .panel-hdr {
        padding: 11px 14px 10px;
    }

    .panel-body {
        padding: 12px 14px;
    }
}

/* =====================================================
      SLA WIDGET
    ===================================================== */

.sla-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
}

.sla-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left-width: 5px;
    border-radius: var(--r-md);
    padding: 14px;
    min-height: 90px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    box-shadow: var(--shadow-sm);
    transition: all .2s ease;
}

.sla-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.sla-card h3 {
    font-size: 11px;
    font-weight: 700;
    color: var(--txt-faint);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 8px;
    line-height: 1.3;
}

.sla-card div {
    font-size: 20px;
    font-weight: 800;
    font-family: var(--mono);
    color: var(--txt);
    line-height: 1;
}

/* status color */

.sla-card.success {
    border-left-color: var(--green);
}

.sla-card.warning {
    border-left-color: var(--gold);
}

.sla-card.danger {
    border-left-color: var(--red);
}

.sla-card.primary {
    border-left-color: var(--blue);
}

/* tablet */

@media (max-width: 992px) {

    .sla-grid {
        grid-template-columns: repeat(3, 1fr);
    }

}

/* mobile */

@media (max-width: 768px) {

    .sla-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .sla-card {
        min-height: 82px;
        padding: 12px;
    }

    .sla-card h3 {
        font-size: 10px;
    }

    .sla-card div {
        font-size: 24px;
    }

}

/* mobile kecil */

@media (max-width: 480px) {

    .sla-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .sla-card {
        padding: 10px;
        min-height: 76px;
    }

    .sla-card h3 {
        font-size: 9px;
        margin-bottom: 6px;
    }

    .sla-card div {
        font-size: 20px;
    }

}