/* ============================================================
   PT BIC · Laporan Truk — penyesuaian & komponen aplikasi
   (di atas tema Adminator style.css)
   ============================================================ */

.text-muted {
    color: var(--t-muted);
}

.btn.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.btn svg {
    fill: none;
    height: 15px;
    stroke-width: 2;
    width: 15px;
}

.input-with-action {
    align-items: flex-start;
    display: flex;
    gap: 8px;
    min-width: 0;
}
.input-with-action > .input,
.input-with-action > .select,
.input-with-action > .textarea {
    flex: 1;
    min-width: 0;
}

.nav-items {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* ---- KPI grid: varian 5 kartu (admin) ---- */
@media (min-width: 1100px) {
    .kpi-grid--5 {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}
@media (max-width: 1099px) {
    .kpi-grid--5 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 640px) {
    .kpi-grid--5 {
        grid-template-columns: 1fr;
    }
}

/* ---- Empty state (tidak tersedia di tema Adminator) ---- */
.empty-state {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 44px 24px;
    text-align: center;
}
.empty-state .empty-icon {
    background: var(--bg-muted);
    border-radius: 50%;
    color: var(--t-light);
    display: grid;
    height: 56px;
    margin-bottom: 6px;
    place-items: center;
    width: 56px;
}
.empty-state .empty-icon svg {
    height: 24px;
    stroke-width: 1.8;
    width: 24px;
}
.empty-state h3 {
    color: var(--t-base);
    font-family: Inter Tight, Inter, sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
}
.empty-state p {
    color: var(--t-muted);
    font-size: 13px;
    line-height: 1.55;
    margin: 0 0 10px;
    max-width: 40ch;
}

/* ---- Aksi baris di dalam tabel ---- */
.row-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.row-actions form {
    margin: 0;
}

/* ---- Info jumlah hasil / kaki tabel ---- */
.result-count {
    color: var(--t-muted);
    font-size: 12.5px;
    margin: 0 0 10px;
}
.result-count strong {
    color: var(--t-base);
}
.pager-foot {
    align-items: center;
    border-top: 1px solid var(--border-soft);
    color: var(--t-muted);
    display: flex;
    font-size: 12px;
    justify-content: space-between;
    margin-top: 18px;
    padding-top: 16px;
}
.pager-foot strong {
    color: var(--t-base);
}

/* ---- Toolbar data / filter ---- */
.data-toolbar .select {
    width: auto;
}
.data-toolbar .input-icon {
    max-width: 360px;
}

/* ---- Panel filter lanjutan ---- */
.adv-panel {
    border-top: 1px solid var(--border-soft);
    margin-top: 16px;
    padding-top: 18px;
}
.adv-panel-title {
    align-items: center;
    color: var(--t-base);
    display: flex;
    font-family: Inter Tight, Inter, sans-serif;
    font-size: 13px;
    font-weight: 700;
    gap: 8px;
    letter-spacing: -0.01em;
    margin-bottom: 14px;
}
.adv-panel-title .num {
    background: var(--bg-muted);
    border-radius: 999px;
    color: var(--t-light);
    font-family: JetBrains Mono, monospace;
    font-size: 10px;
    padding: 2px 8px;
}

/* ---- Grafik batang bulanan (CSS murni, dari data asli) ---- */
.bar-chart {
    align-items: flex-end;
    display: flex;
    gap: 10px;
    height: 220px;
    padding: 6px 2px 0;
}
.bar-col {
    align-items: center;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    height: 100%;
    justify-content: flex-end;
    min-width: 0;
}
.bar-track {
    align-items: flex-end;
    background: var(--bg-muted);
    border-radius: 6px 6px 0 0;
    display: flex;
    height: 100%;
    max-width: 46px;
    overflow: hidden;
    position: relative;
    width: 100%;
}
.bar-fill {
    background: linear-gradient(180deg, var(--primary), var(--purple));
    border-radius: 6px 6px 0 0;
    min-height: 2px;
    width: 100%;
}
.bar-col.is-highlight .bar-fill {
    background: var(--success);
}
.bar-value {
    color: var(--t-muted);
    font-family: JetBrains Mono, monospace;
    font-size: 10.5px;
    font-weight: 600;
}
.bar-label {
    color: var(--t-light);
    font-family: JetBrains Mono, monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.bar-col.is-highlight .bar-label,
.bar-col.is-highlight .bar-value {
    color: var(--success);
}

/* ---- Daftar ringkasan / top list ---- */
.insight-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.insight-item {
    align-items: flex-start;
    color: var(--t-base);
    display: flex;
    font-size: 13.5px;
    gap: 10px;
    line-height: 1.6;
    margin: 0;
}
.insight-item:before {
    background: var(--primary);
    border-radius: 50%;
    content: "";
    flex-shrink: 0;
    height: 7px;
    margin-top: 8px;
    width: 7px;
}
.insight-note {
    font-size: 12px;
    margin-top: 16px;
}

.list-group {
    display: flex;
    flex-direction: column;
}
.list-group-item {
    align-items: center;
    border-bottom: 1px solid var(--border-soft);
    display: flex;
    font-size: 13px;
    justify-content: space-between;
    padding: 11px 0;
}
.list-group-item:last-child {
    border-bottom: 0;
}
.list-group-item .badge {
    flex-shrink: 0;
    margin-left: 12px;
}

/* ---- Modal konfirmasi (overlay) ---- */
.modal-overlay {
    align-items: center;
    background: rgba(8, 11, 18, 0.55);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 24px;
    position: fixed;
    z-index: 500;
}
.modal-box {
    animation: rise-in 0.24s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    max-width: 480px;
    overflow: hidden;
    width: 100%;
}
.modal-close {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: var(--t-light);
    cursor: pointer;
    display: grid;
    height: 28px;
    place-items: center;
    transition: background 0.16s, color 0.16s;
    width: 28px;
}
.modal-close:hover {
    background: var(--bg-hover);
    color: var(--t-base);
}
.modal-close svg {
    fill: none;
    height: 14px;
    stroke-width: 2;
    width: 14px;
}

/* ---- Tabel ringkas (list ringkas) ---- */
.table-mini td {
    padding: 10px 0;
}
