/* ============================================================
   Halaman 2 — Riwayat Pengajuan Saya
   (app/Filament/Admin/Pages/LeaveHistory.php +
    resources/views/filament/pages/leave-history.blade.php)
   ============================================================ */

.akti-history-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.akti-history-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(200px, 1fr));
    gap: 0.75rem 1.5rem;
    margin-bottom: 0.75rem;
}

.akti-history-filter-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.akti-history-filter-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
}

.dark .akti-history-filter-label {
    color: #9ca3af;
}

.akti-history-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.akti-history-saldo {
    flex-shrink: 0;
}

.akti-history-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.akti-history-table-wrap {
    overflow-x: auto;
}

.akti-history-table {
    width: 100%;
    min-width: 64rem;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.akti-history-table th,
.akti-history-table td {
    padding: 0.5rem 0.75rem;
    text-align: left;
    border: 1px solid #e5e7eb;
    vertical-align: top;
}

.dark .akti-history-table th,
.dark .akti-history-table td {
    border-color: #374151;
}

.akti-history-table th {
    font-weight: 600;
    color: #374151;
    background: var(--akti-th-bg);
    text-align: center;
}

.dark .akti-history-table th {
    color: #9ca3af;
}

.akti-history-status {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    font-size: 0.8125rem;
    font-weight: 600;
}

.akti-history-status-gray {
    background: #e5e7eb;
    color: #374151;
}

.dark .akti-history-status-gray {
    background: #374151;
    color: #d1d5db;
}

.akti-history-status-warning {
    background: #fef08a;
    color: #854d0e;
}

.dark .akti-history-status-warning {
    background: #713f12;
    color: #fef08a;
}

.akti-history-status-info {
    background: #bfdbfe;
    color: #1d4ed8;
}

.dark .akti-history-status-info {
    background: #1e3a8a;
    color: #bfdbfe;
}

.akti-history-status-success {
    background: #bbf7d0;
    color: #15803d;
}

.dark .akti-history-status-success {
    background: #14532d;
    color: #bbf7d0;
}

.akti-history-status-danger {
    background: #fecaca;
    color: #b91c1c;
}

.dark .akti-history-status-danger {
    background: #7f1d1d;
    color: #fecaca;
}

.akti-history-aksi {
    display: flex;
    gap: 0.375rem;
    justify-content: center;
}

.akti-history-trail-cell {
    font-size: 0.75rem;
    white-space: nowrap;
}

.akti-history-trail-at {
    display: block;
    color: #9ca3af;
    font-size: 0.6875rem;
}
