/*
 * silk.css — SILK MPKU Kapuas
 * Warm Professional + Responsive
 */

/* ── SCROLLBAR ───────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

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

::-webkit-scrollbar-thumb {
    background: #b2cfc4;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1a7a4a;
}

/* ── STATUS CHIPS ────────────────────────────────────────────── */
.silk-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.silk-chip--triage {
    background: #fef9e7;
    color: #92670a;
}

.silk-chip--consult {
    background: #eafaf1;
    color: #1a7a4a;
}

.silk-chip--pharmacy {
    background: #eaf3fb;
    color: #1a5276;
}

.silk-chip--completed {
    background: #f0faf5;
    color: #1a7a4a;
}

/* ── STAT CARD TOP BAR ───────────────────────────────────────── */
.silk-stat-top::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    border-radius: 16px 16px 0 0;
}

.silk-stat-top--green::before {
    background: linear-gradient(90deg, #1a7a4a, #2d9d62);
}

.silk-stat-top--accent::before {
    background: linear-gradient(90deg, #00c97a, #00e88a);
}

.silk-stat-top--amber::before {
    background: linear-gradient(90deg, #d68910, #f0a500);
}

.silk-stat-top--blue::before {
    background: linear-gradient(90deg, #2471a3, #2980b9);
}

.silk-stat-top--red::before {
    background: linear-gradient(90deg, #c0392b, #e74c3c);
}

/* ── SILK TABLE ──────────────────────────────────────────────── */
.silk-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.silk-table thead tr {
    background: #f4f8f6;
    border-bottom: 1px solid #e2ede8;
}

.silk-table th {
    text-align: left;
    padding: 9px 16px;
    font-size: 11px;
    font-weight: 600;
    color: #5a7a69;
    white-space: nowrap;
    letter-spacing: 0.2px;
}

.silk-table td {
    padding: 11px 16px;
    border-bottom: 1px solid #f0f7f3;
    color: #1f2937;
    vertical-align: middle;
}

.silk-table tbody tr:last-child td {
    border-bottom: none;
}

.silk-table tbody tr:hover td {
    background: #f9fdfb;
}

.silk-table .col-mono {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    color: #6b7280;
}

.silk-table .col-wait-long {
    color: #dc2626;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    font-weight: 600;
}

/* ── TABLE RESPONSIVE WRAPPER ────────────────────────────────── */
/* Bungkus tabel dengan ini agar bisa scroll horizontal di mobile */
.silk-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ── PULSE DOT ───────────────────────────────────────────────── */
.silk-pulse {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #00c97a;
    animation: silk-pulse 2s ease-in-out infinite;
    vertical-align: middle;
    flex-shrink: 0;
}

@keyframes silk-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.85);
    }
}

/* ── SIDEBAR OVERLAY (mobile) ────────────────────────────────── */
.silk-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 39;
    backdrop-filter: blur(2px);
}

/* ── FOCUS & DISABLED ────────────────────────────────────────── */
[x-cloak] {
    display: none !important;
}

.silk-input {
    border: 1px solid #daeae2;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 14px;
    background: #f9fafb;
    transition: all 0.15s;
    outline: none;
}

.silk-input:focus {
    background: #fff;
    border-color: #1a7a4a;
    box-shadow: 0 0 0 3px rgba(0, 201, 122, 0.12);
}
