/** Presensia Admin — page-specific styles */

/* dashboard */
/* Dashboard - Premium SaaS Card Styles */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}
@media (min-width: 640px) {
    .stats-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
}
@media (min-width: 1024px) {
    .stats-grid { gap: 1.5rem; }
}
.stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.25rem 1.25rem;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    border: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
@media (min-width: 640px) {
    .stat-card { padding: 1.5rem 1.5rem; gap: 1.25rem; }
}
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px -12px rgba(15, 23, 42, 0.18);
    border-color: rgba(59, 130, 246, 0.2);
}
.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.stat-icon svg { width: 24px; height: 24px; }
@media (min-width: 640px) {
    .stat-icon { width: 56px; height: 56px; }
    .stat-icon svg { width: 28px; height: 28px; }
}
.stat-icon.blue { background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%); }
.stat-icon.blue svg { fill: #3b82f6; }
.stat-icon.green { background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%); }
.stat-icon.green svg { fill: #10b981; }
.stat-icon.orange { background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%); }
.stat-icon.orange svg { fill: #f59e0b; }
.stat-icon.red { background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%); }
.stat-icon.red svg { fill: #ef4444; }
.stat-info .stat-value {
    font-size: 1.375rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
@media (min-width: 640px) {
    .stat-info .stat-value { font-size: 1.75rem; }
}
.stat-info .stat-label {
    font-size: 0.8125rem;
    color: #64748b;
    margin-top: 4px;
    font-weight: 500;
}
@media (min-width: 640px) {
    .stat-info .stat-label { font-size: 0.875rem; }
}
.info-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: box-shadow 0.25s ease;
}
.info-card:hover { box-shadow: 0 8px 30px -10px rgba(15, 23, 42, 0.12); }
.info-card h3 {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: #fff;
    font-size: 1.0625rem;
    font-weight: 700;
    padding: 16px 20px;
    margin: 0;
}
.info-card .info-item { padding-left: 20px; padding-right: 20px; }
@media (min-width: 640px) {
    .info-card .info-item { padding-left: 2rem; padding-right: 2rem; }
    .info-card h3 { padding: 18px 2rem; }
}
.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 0;
    border-bottom: 1px solid #f8fafc;
    font-size: 0.9375rem;
    gap: 1rem;
}
.info-item:last-child { border-bottom: none; }
.info-item .info-key { color: #64748b; font-weight: 500; }
.info-item .info-value { color: #1e293b; font-weight: 600; }
.badge-role { padding: 5px 12px; border-radius: 9999px; font-size: 0.8125rem; font-weight: 600; }
.badge-role.admin { background: #eef2ff; color: #4338ca; }
.badge-role.employee { background: #ecfdf5; color: #047857; }
.history-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    border: 1px solid rgba(226, 232, 240, 0.8);
    margin-bottom: 2rem;
    transition: box-shadow 0.25s ease;
}
.history-card:hover { box-shadow: 0 8px 30px -10px rgba(15, 23, 42, 0.12); }
.history-card h3 {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: #fff;
    font-size: 1.0625rem;
    font-weight: 700;
    padding: 16px 20px;
    margin: 0;
}
.history-card .period,
.history-card .filter-form { padding: 0 20px; }
.history-card .period { padding-top: 1rem; padding-bottom: 0.5rem; }
.history-card .filter-form { padding-bottom: 1rem; }
.history-card .table-wrap {
    margin: 0 -20px;
    padding: 0 20px 1.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
@media (min-width: 640px) {
    .history-card .period, .history-card .filter-form, .history-card .table-wrap { padding-left: 2rem; padding-right: 2rem; }
    .history-card h3 { padding: 18px 2rem; }
}
.history-card .period { font-size: 0.875rem; color: #64748b; margin-bottom: 1.25rem; }
.history-card .table-wrap { margin: 0 -0.5rem; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.history-card .table-history { width: 100%; min-width: 500px; border-collapse: collapse; font-size: 0.9375rem; }
.history-card .table-history th {
    text-align: left;
    padding: 12px 16px;
    background: #f8fafc;
    color: #64748b;
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid #e2e8f0;
}
.history-card .table-history td { padding: 14px 16px; border-bottom: 1px solid #f1f5f9; color: #334155; }
.history-card .table-history tbody tr { transition: background 0.2s ease; }
.history-card .table-history tbody tr:hover { background: #f8fafc; }
.history-card .status-on-time { color: #059669; font-weight: 600; }
.history-card .status-late { color: #d97706; font-weight: 600; }
.history-card .status-absent, .history-card .status-early-leave { color: #dc2626; font-weight: 600; }
.history-card .edit-input {
    width: 100%;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
}
.history-card .edit-input:focus { outline: none; border-color: #3b82f6; }
.history-card .edit-select { width: 100%; }
.history-card .row-editing .view-only { display: none; }
.history-card .edit-only { display: none; }
.history-card .row-editing .edit-only { display: block; }
.history-card .action-btn {
    padding: 8px 12px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 600;
    transition: opacity 0.2s ease;
}
.history-card .action-btn:hover { opacity: 0.9; }
.history-card .btn-save { background: #3b82f6; color: #fff; }
.history-card .btn-cancel { background: #f1f5f9; color: #475569; }
.history-card .btn-edit { background: #eef2ff; color: #4338ca; }
.history-card .btn-delete { background: #fef2f2; color: #dc2626; }
.empty-state { text-align: center; padding: 3rem 1.5rem; color: #64748b; font-size: 0.9375rem; }
.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
}
.filter-form .field { display: flex; flex-direction: column; gap: 6px; }
.filter-form label { font-size: 0.8125rem; font-weight: 600; color: #64748b; }
.filter-form input, .filter-form select {
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.875rem;
    min-height: 42px;
    box-shadow: none;
    transition: border-color 0.2s ease;
}
.filter-form input:focus, .filter-form select:focus {
    outline: none;
    border-color: #3b82f6;
}
/* Tom Select di filter-form - serasi persis dengan input date/time */
.filter-form .ts-wrapper { width: 100%; min-width: 0; }
.filter-form .ts-wrapper .ts-control {
    min-height: 42px !important;
    height: 42px !important;
    padding: 10px 14px !important;
    font-size: 0.875rem !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    outline: none !important;
    text-align: left !important;
    justify-content: flex-start !important;
}
.filter-form .ts-wrapper.focus .ts-control { outline: none !important; }
.filter-form .ts-wrapper .ts-control:hover,
.filter-form .ts-wrapper.focus .ts-control {
    border-color: #3b82f6 !important;
}
.filter-form .ts-wrapper .ts-control .item,
.filter-form .ts-wrapper .ts-control input {
    font-size: 0.875rem !important;
    text-align: left !important;
}
/* Lebar field seragam - Karyawan, Tanggal, Masuk, Keluar, Status */
.filter-form .field { min-width: 140px; }
.filter-form .field:first-of-type { min-width: 160px; }
.filter-form .btn {
    padding: 10px 18px;
    min-height: 42px;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}
.filter-form .btn:hover { background: #2563eb; }
.filter-form .btn-outline {
    background: transparent;
    color: #3b82f6;
    border: 2px solid #3b82f6;
}
.filter-form .btn-outline:hover { background: #eff6ff; }
.pagination-wrap { margin-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pagination-wrap a, .pagination-wrap span {
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.875rem;
    color: #334155;
    text-decoration: none;
    transition: all 0.2s ease;
}
.pagination-wrap span.current { background: #3b82f6; color: #fff; border-color: #3b82f6; }
.pagination-wrap .disabled { color: #94a3b8; pointer-events: none; }
/* dashboard (block 2) */
.photo-modal {
        position: fixed;
        inset: 0;
        display: none;
        align-items: center;
        justify-content: center;
        padding: 16px;
        z-index: 9999;
        background: rgba(0,0,0,0.65);
    }
    .photo-modal.open { display: flex; }
    .photo-modal-card {
        width: 100%;
        max-width: 720px;
        border-radius: 14px;
        background: #fff;
        overflow: hidden;
        box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    }
    .photo-modal-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 12px 14px;
        border-bottom: 1px solid #e5e7eb;
    }
    .photo-modal-title { font-weight: 800; color: #0f2744; }
    .photo-modal-close {
        border: 1px solid #e5e7eb;
        background: #f9fafb;
        border-radius: 10px;
        padding: 8px 10px;
        cursor: pointer;
        font-weight: 800;
    }
    .photo-modal-body { background: #111827; }
    .photo-modal-body img {
        width: 100%;
        height: auto;
        display: block;
        max-height: 78vh;
        object-fit: contain;
    }

/* laporan */
:root {
    --analytic-card: #fff;
    --analytic-border: #e2e8f0;
    --analytic-success: #059669;
    --analytic-warning: #d97706;
    --analytic-info: #2563eb;
    --analytic-bg: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f2744 100%);
}
.analytic-hero {
    background: var(--analytic-bg);
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 40px -10px rgba(15, 23, 42, 0.4);
}
.analytic-hero h1 { font-size: 1.5rem; font-weight: 800; margin-bottom: 4px; letter-spacing: -0.02em; }
.analytic-hero p { font-size: 0.875rem; color: rgba(255,255,255,0.75); margin-bottom: 1.25rem; }
.analytic-filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.analytic-filter input[type="month"] {
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 0.9375rem;
}
.analytic-filter .btn { background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.3); }
.analytic-filter .btn:hover { background: rgba(255,255,255,0.28); }
.analytic-filter .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.analytic-office-select {
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 0.875rem;
    min-width: 140px;
}
.la-office-compare {
    display: grid;
    gap: 10px;
    margin-bottom: 1.5rem;
}
.la-office-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    font-size: 0.875rem;
}
.la-office-row strong { color: #0f172a; }
.la-office-row--link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.la-office-row--link:hover {
    border-color: #93c5fd;
    background: #eff6ff;
}
.la-office-row--warn {
    border-color: #fcd34d;
    background: #fffbeb;
}
.la-insight-action {
    display: inline-flex;
    margin-top: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
}

.la-action-card { margin-bottom: 1.5rem; }
.la-action-intro {
    font-size: 0.8125rem;
    color: #64748b;
    margin: 0 0 12px;
    line-height: 1.5;
}
.la-action-table-wrap { overflow-x: auto; }
.la-action-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
.la-action-table th,
.la-action-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}
.la-action-table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    font-weight: 700;
}
.la-action-row--high .la-action-count { color: #dc2626; font-weight: 700; }
.la-action-row--medium .la-action-count { color: #d97706; font-weight: 700; }
.la-heatmap-hint {
    font-size: 0.8125rem;
    color: #64748b;
    margin: 0 0 10px;
}
.heatmap-cell--clickable {
    cursor: pointer;
    transition: transform 0.12s, box-shadow 0.12s;
}
.heatmap-cell--clickable:hover {
    transform: scale(1.06);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
    z-index: 1;
}

/* Persentase real-time */
.percent-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}
@media (min-width: 640px) { .percent-grid { grid-template-columns: repeat(3, 1fr); } }
.percent-card {
    background: var(--analytic-card);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid var(--analytic-border);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.percent-card:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.1); }
.percent-ring {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: conic-gradient(var(--analytic-success) calc(var(--p) * 1%), #e2e8f0 0);
    display: flex;
    align-items: center;
    justify-content: center;
}
.percent-ring-inner {
    width: 78px;
    height: 78px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f2744;
}
.percent-card .label { font-size: 0.8125rem; color: #64748b; font-weight: 600; margin-top: 4px; }
.percent-card .detail { font-size: 0.75rem; color: #94a3b8; margin-top: 2px; }

/* Chart cards */
.chart-card {
    background: var(--analytic-card);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid var(--analytic-border);
    margin-bottom: 1.5rem;
}
.chart-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f2744;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--analytic-border);
    display: flex;
    align-items: center;
    gap: 8px;
}
.chart-card h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, #0f2744, #3b82f6);
    border-radius: 2px;
}
.chart-wrap { position: relative; height: 260px; }

/* Heatmap */
.heatmap-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    max-width: 100%;
}
.heatmap-cell {
    aspect-ratio: 1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: #374151;
    min-height: 36px;
}
.heatmap-cell.empty { background: #f8fafc; color: #cbd5e1; }
.heatmap-cell.off { background: #e2e8f0; color: #94a3b8; }
.heatmap-cell.low { background: #fef3c7; color: #92400e; }
.heatmap-cell.mid { background: #fde68a; color: #78350f; }
.heatmap-cell.high { background: #fcd34d; color: #713f12; }
.heatmap-cell.full { background: #34d399; color: #064e3b; }
.heatmap-dow {
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 6px;
    grid-column: 1 / -1;
}
.heatmap-legend {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 12px;
    font-size: 0.75rem;
    color: #64748b;
}
.heatmap-legend span {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 4px;
}

/* Insights */
.insights-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid #bae6fd;
    margin-bottom: 1.5rem;
}
.insights-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #0c4a6e;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.insights-card h3 svg { width: 22px; height: 22px; }
.insight-item {
    padding: 12px 14px;
    background: #fff;
    border-radius: 10px;
    margin-bottom: 8px;
    font-size: 0.875rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-left: 4px solid #94a3b8;
}
.insight-item:last-child { margin-bottom: 0; }
.insight-item.success { border-left-color: var(--analytic-success); }
.insight-item.warning { border-left-color: var(--analytic-warning); }
.insight-item.info { border-left-color: var(--analytic-info); }
.insight-item.neutral { border-left-color: #94a3b8; }
.insight-icon { flex-shrink: 0; margin-top: 2px; }

/* Stats row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 1.5rem;
}
@media (min-width: 640px) { .stats-row { grid-template-columns: repeat(4, 1fr); } }
.stat-box {
    background: var(--analytic-card);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid var(--analytic-border);
    text-align: center;
}
.stat-box .value { font-size: 1.5rem; font-weight: 800; color: #0f2744; }
.stat-box .label { font-size: 0.75rem; color: #64748b; margin-top: 4px; }

/* cuti-admin */
.doc-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: none; align-items: center; justify-content: center; padding: 16px; z-index: 1000; }
        .doc-modal.open { display: flex; }
        .doc-modal-card { background: #fff; border-radius: 14px; width: min(960px, 100%); height: min(85vh, 720px); display: flex; flex-direction: column; }
        .doc-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid #eef2f7; }
        .doc-modal-title { font-weight: 700; color: #111827; font-size: 14px; }
        .doc-modal-close { background: #ef4444; color: #fff; border: none; border-radius: 8px; padding: 6px 10px; font-size: 12px; cursor: pointer; }
        .doc-modal-body { flex: 1; }
        .doc-modal-frame { width: 100%; height: 100%; border: none; }

/* trial-inquiries */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 24px; }
    .stat-card {
        background: #fff;
        border-radius: 12px;
        padding: 16px 20px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        text-align: center;
        cursor: pointer;
        text-decoration: none;
        transition: box-shadow 0.2s, transform 0.15s;
        border: 2px solid transparent;
    }
    .stat-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); transform: translateY(-2px); }
    .stat-card.active { border-color: #2563eb; }
    .stat-card .stat-num { font-size: 1.75rem; font-weight: 800; line-height: 1.2; }
    .stat-card .stat-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: #64748b; margin-top: 4px; }
    .stat-card.new .stat-num { color: #2563eb; }
    .stat-card.contacted .stat-num { color: #d97706; }
    .stat-card.provisioned .stat-num { color: #059669; }
    .stat-card.rejected .stat-num { color: #dc2626; }
    .stat-card.total .stat-num { color: #1e293b; }

    .status-badge {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 4px 12px;
        border-radius: 100px;
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.03em;
    }
    .status-badge.new { background: #dbeafe; color: #1e40af; }
    .status-badge.contacted { background: #fef3c7; color: #b45309; }
    .status-badge.provisioned { background: #dcfce7; color: #166534; }
    .status-badge.rejected { background: #fee2e2; color: #b91c1c; }

    .status-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; }
    .status-badge.new::before { background: #3b82f6; }
    .status-badge.contacted::before { background: #f59e0b; }
    .status-badge.provisioned::before { background: #22c55e; }
    .status-badge.rejected::before { background: #ef4444; }

    .inquiry-detail { font-size: 0.8125rem; color: #64748b; line-height: 1.6; }
    .inquiry-detail strong { color: #374151; }
    .inquiry-company { font-weight: 700; font-size: 0.9375rem; color: #1e293b; }
    .inquiry-contact { font-size: 0.8125rem; color: #475569; }
    .inquiry-meta { font-size: 0.75rem; color: #94a3b8; }

    .action-form { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; }
    .action-form select { min-height: 36px; padding: 6px 10px; border-radius: 8px; border: 2px solid #e2e8f0; font-size: 0.8125rem; }
    .action-form textarea { min-height: 36px; padding: 6px 10px; border-radius: 8px; border: 2px solid #e2e8f0; font-size: 0.8125rem; width: 100%; resize: vertical; }

    .wa-link { display: inline-flex; align-items: center; gap: 4px; color: #059669; text-decoration: none; font-weight: 600; font-size: 0.8125rem; }
    .wa-link:hover { text-decoration: underline; }

    .expand-row { cursor: pointer; }
    .detail-panel { display: none; }
    .detail-panel.open { display: table-row; }
    .detail-panel td { background: #f8fafc; padding: 20px 16px !important; }

    .detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
    .detail-section h4 { font-size: 0.8125rem; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; }
    .detail-item { margin-bottom: 6px; font-size: 0.875rem; }
    .detail-item span { color: #64748b; }
    .tenant-link-box {
        margin-top: 12px;
        padding: 12px 14px;
        background: #eff6ff;
        border: 1px solid #bfdbfe;
        border-radius: 10px;
        color: #1d4ed8;
        font-size: 0.8125rem;
        line-height: 1.5;
    }
    .tenant-chip {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        margin-top: 6px;
        padding: 4px 10px;
        border-radius: 999px;
        background: #e0f2fe;
        color: #075985;
        font-size: 0.75rem;
        font-weight: 700;
        text-decoration: none;
    }
    .tenant-chip:hover { text-decoration: none; background: #bae6fd; }
    .quick-provision-box {
        margin-top: 14px;
        padding: 14px;
        background: #f0fdf4;
        border: 1px solid #bbf7d0;
        border-radius: 10px;
    }
    .quick-provision-box h5 {
        font-size: 0.8125rem;
        font-weight: 700;
        color: #166534;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        margin-bottom: 10px;
    }
    .quick-provision-form {
        display: grid;
        gap: 8px;
    }
    .quick-provision-form textarea,
    .quick-provision-form select {
        min-height: 38px;
        padding: 8px 10px;
        border-radius: 8px;
        border: 2px solid #d1fae5;
        font-size: 0.8125rem;
        width: 100%;
        resize: vertical;
        background: #fff;
    }
    .linked-tenant-meta {
        margin-top: 8px;
        font-size: 0.75rem;
        color: #065f46;
    }
    .draft-tenant-box {
        margin-top: 14px;
        padding: 14px;
        background: #fff7ed;
        border: 1px solid #fdba74;
        border-radius: 10px;
    }
    .draft-tenant-box h5 {
        font-size: 0.8125rem;
        font-weight: 700;
        color: #9a3412;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        margin-bottom: 10px;
    }
    .draft-tenant-form {
        display: grid;
        gap: 8px;
    }
    .draft-tenant-form input {
        min-height: 38px;
        padding: 8px 10px;
        border-radius: 8px;
        border: 2px solid #fed7aa;
        font-size: 0.8125rem;
        width: 100%;
        background: #fff;
    }
    .draft-tenant-hint {
        margin-top: 8px;
        font-size: 0.75rem;
        color: #9a3412;
        line-height: 1.5;
    }
    .draft-command-preview {
        margin-top: 10px;
        padding: 10px 12px;
        border-radius: 8px;
        background: #fff;
        border: 1px solid #fed7aa;
        font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
        font-size: 0.75rem;
        color: #7c2d12;
        word-break: break-all;
    }
    .inline-actions {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        margin-top: 10px;
    }
    .inline-actions form { margin: 0; }

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

/* shift-scheduling */
.feature-checklist { display: flex; flex-wrap: wrap; gap: 12px 24px; list-style: none; margin: 0.5rem 0 0 0; padding: 0; font-size: 0.875rem; color: rgba(255,255,255,0.9); }
        .feature-checklist li { display: inline-flex; align-items: center; gap: 4px; }
        .scheduling-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 1.5rem; border-bottom: 2px solid #e2e8f0; }
        .scheduling-tabs .tab { padding: 12px 20px; text-decoration: none; color: #6b7280; font-weight: 500; border-radius: 8px 8px 0 0; }
        .scheduling-tabs .tab:hover { background: #f1f5f9; color: #1e3a5f; }
        .scheduling-tabs .tab.active { background: #1e3a5f; color: #fff; }
        .shift-color-badge {
            display: inline-block;
            width: 20px;
            height: 20px;
            border-radius: 4px;
            vertical-align: middle;
            background: var(--shift-color, #3b82f6);
        }
        .cal-cell.cal-shift-filled {
            background: color-mix(in srgb, var(--shift-color, #3b82f6) 20%, transparent) !important;
            border-left: 3px solid var(--shift-color, #3b82f6);
        }
        .day-badge { display: inline-block; padding: 2px 6px; background: #e8eef5; border-radius: 4px; font-size: 11px; margin: 1px; }
        .cal-legend { padding: 2px 8px; border-radius: 4px; font-size: 11px; margin-right: 4px; }
        .cal-pagi { background: #3b82f633; color: #1e40af; }
        .cal-siang { background: #22c55e33; color: #15803d; }
        .cal-malam { background: #a855f733; color: #6b21a8; }
        .calendar-table { font-size: 12px; border-collapse: collapse; min-width: 100%; }
        .calendar-table th, .calendar-table td { border: 1px solid #e5e7eb; padding: 6px 8px; text-align: center; }
        .calendar-table th { background: #f9fafb; font-weight: 600; color: #374151; }
        .cal-col-name { min-width: 120px; text-align: left !important; position: sticky; left: 0; background: #fff; z-index: 1; }
        .cal-col-day { min-width: 32px; }
        .cal-col-day.cal-holiday-header { background: #fef2f2; color: #b91c1c; }
        .cal-cell { color: #9ca3af; cursor: pointer; }
        .cal-cell.cal-clickable:hover { filter: brightness(0.95); }
        .cal-cell.cal-work { color: #0f2744; font-weight: 600; }
        .cal-cell.cal-holiday { color: #b91c1c; font-size: 10px; background: #fef2f2 !important; }
        .cal-cell.cal-leave { color: #0d9488; font-size: 10px; background: #ccfbf1 !important; }
        .cal-short { font-size: 10px; }
        .cal-holiday-label { color: #b91c1c; font-weight: 500; }
        .cal-leave-label { color: #0d9488; font-weight: 500; }
        .cal-sunday-label { color: #6366f1; font-weight: 500; }
        .cal-col-day.cal-sunday-header { background: #eef2ff; color: #6366f1; }
        .cal-cell.cal-sunday { color: #6366f1; font-size: 10px; background: #eef2ff !important; }
        .cal-cell.cal-gap { background: #fff7ed !important; box-shadow: inset 0 0 0 2px #fdba74; color: #c2410c; }
        .cal-cell.cal-conflict { background: #fef2f2 !important; box-shadow: inset 0 0 0 2px #f87171; color: #b91c1c; }
        .cal-col-day.cal-col-focus,
        .cal-cell.cal-col-focus {
            box-shadow: inset 0 0 0 2px #2563eb !important;
            background: #eff6ff !important;
        }
        .cal-legend.cal-gap { background: #fff7ed; color: #c2410c; border: 1px solid #fdba74; }
        .cal-legend.cal-conflict { background: #fef2f2; color: #b91c1c; border: 1px solid #f87171; }
        .ss-planner-row.ss-hidden { display: none; }
        .ss-drag-palette {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 8px;
            margin-bottom: 14px;
            padding: 12px 14px;
            background: #f8fafc;
            border: 1px dashed #cbd5e1;
            border-radius: 10px;
        }
        .ss-drag-palette__label {
            font-size: 0.8125rem;
            font-weight: 600;
            color: #475569;
            margin-right: 4px;
        }
        .ss-drag-chip {
            display: inline-flex;
            align-items: center;
            padding: 6px 12px;
            border-radius: 999px;
            font-size: 0.75rem;
            font-weight: 700;
            color: #0f172a;
            background: color-mix(in srgb, var(--shift-color, #3b82f6) 18%, #fff);
            border: 2px solid var(--shift-color, #3b82f6);
            cursor: grab;
            user-select: none;
        }
        .ss-drag-chip:active { cursor: grabbing; }
        .cal-cell.cal-droppable.cal-drop-target {
            outline: 2px dashed #2563eb;
            outline-offset: -2px;
            background: #eff6ff !important;
        }
        .cal-cell.cal-drag-source { opacity: 0.55; }
        .ss-row-flag {
            display: inline-flex; align-items: center; justify-content: center;
            width: 16px; height: 16px; margin-left: 4px; border-radius: 50%;
            background: #fef3c7; color: #b45309; font-size: 10px; font-weight: 800;
        }
        .modal { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 300; display: flex; align-items: center; justify-content: center; }
        .modal-content { background: #fff; padding: 24px; border-radius: 12px; max-width: 400px; width: 90%; }

/* kasbon-admin */
.doc-modal {
            position: fixed; inset: 0; background: rgba(0,0,0,0.5);
            display: none; align-items: center; justify-content: center; padding: 16px; z-index: 1000;
        }
        .doc-modal.open { display: flex; }
        .doc-modal-card { background: #fff; border-radius: 14px; width: min(960px, 100%); height: min(85vh, 720px); display: flex; flex-direction: column; }
        .doc-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid #eef2f7; }
        .doc-modal-title { font-weight: 700; color: #111827; font-size: 14px; }
        .doc-modal-close { background: #ef4444; color: #fff; border: none; border-radius: 8px; padding: 6px 10px; font-size: 12px; cursor: pointer; }
        .doc-modal-body { flex: 1; }
        .doc-modal-frame { width: 100%; height: 100%; border: none; }

/* tenants */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 24px; }
    .stat-card {
        background: #fff;
        border-radius: 12px;
        padding: 16px 20px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        text-align: center;
        text-decoration: none;
        transition: box-shadow 0.2s, transform 0.15s;
        border: 2px solid transparent;
    }
    .stat-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); transform: translateY(-2px); }
    .stat-card.active-filter { border-color: #2563eb; }
    .stat-card .stat-num { font-size: 1.75rem; font-weight: 800; line-height: 1.2; }
    .stat-card .stat-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: #64748b; margin-top: 4px; }
    .stat-card.total .stat-num { color: #1e293b; }
    .stat-card.active .stat-num { color: #059669; }
    .stat-card.active-without-ssl .stat-num { color: #d97706; }
    .stat-card.provisioning .stat-num { color: #d97706; }
    .stat-card.failed .stat-num { color: #dc2626; }
    .stat-card.removing .stat-num { color: #7c3aed; }
    .stat-card.expiring .stat-num { color: #ea580c; }

    .tenant-badge, .trial-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 4px 12px;
        border-radius: 999px;
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        white-space: nowrap;
    }
    .tenant-badge::before, .trial-badge::before {
        content: '';
        width: 7px;
        height: 7px;
        border-radius: 50%;
    }
    .tenant-badge.active { background: #dcfce7; color: #166534; }
    .tenant-badge.active::before { background: #22c55e; }
    .tenant-badge.active_without_ssl { background: #ffedd5; color: #c2410c; }
    .tenant-badge.active_without_ssl::before { background: #f97316; }
    .tenant-badge.provisioning { background: #fef3c7; color: #b45309; }
    .tenant-badge.provisioning::before { background: #f59e0b; }
    .tenant-badge.failed { background: #fee2e2; color: #b91c1c; }
    .tenant-badge.failed::before { background: #ef4444; }
    .tenant-badge.removing { background: #ede9fe; color: #6d28d9; }
    .tenant-badge.removing::before { background: #8b5cf6; }
    .tenant-badge.draft { background: #e0f2fe; color: #0369a1; }
    .tenant-badge.draft::before { background: #38bdf8; }
    .tenant-badge.unknown { background: #e2e8f0; color: #475569; }
    .tenant-badge.unknown::before { background: #94a3b8; }

    .provision-timeline { margin-top: 16px; }
    .provision-timeline h4 {
        font-size: 0.8125rem;
        font-weight: 700;
        color: #64748b;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        margin-bottom: 10px;
    }
    .provision-steps { display: grid; gap: 8px; }
    .provision-step {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        padding: 8px 10px;
        border-radius: 8px;
        background: #fff;
        border: 1px solid #e2e8f0;
        font-size: 0.8125rem;
    }
    .provision-step .step-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        margin-top: 4px;
        flex-shrink: 0;
    }
    .provision-step.completed .step-dot { background: #22c55e; }
    .provision-step.running .step-dot { background: #f59e0b; }
    .provision-step.failed .step-dot { background: #ef4444; }
    .provision-step.pending .step-dot { background: #cbd5e1; }
    .provision-step.skipped .step-dot { background: #94a3b8; }
    .provision-step .step-meta { font-size: 0.75rem; color: #94a3b8; margin-top: 2px; }
    .draft-panel {
        margin-bottom: 20px;
        padding: 16px;
        border-radius: 12px;
        border: 1px solid #bae6fd;
        background: #f0f9ff;
    }
    .draft-panel h3 { font-size: 1rem; margin-bottom: 8px; color: #0c4a6e; }
    .draft-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
    .draft-form input, .draft-form select {
        width: 100%;
        padding: 8px 10px;
        border-radius: 8px;
        border: 1px solid #7dd3fc;
        font-size: 0.8125rem;
    }
    .command-highlight {
        margin-top: 12px;
        padding: 10px 12px;
        background: #0f172a;
        color: #e2e8f0;
        border-radius: 8px;
        font-family: ui-monospace, monospace;
        font-size: 0.75rem;
        word-break: break-all;
    }
    .provision-result-panel {
        margin-bottom: 20px;
        padding: 16px 18px;
        border-radius: 12px;
        border: 1px solid #86efac;
        background: #ecfdf5;
    }
    .provision-result-panel h3 { margin: 0 0 8px; color: #065f46; font-size: 1rem; }
    .provision-credentials {
        display: grid;
        gap: 8px;
        margin: 12px 0;
        font-size: 0.875rem;
    }
    .provision-credentials div { display: grid; grid-template-columns: 130px 1fr; gap: 10px; }
    .provision-credentials dt { color: #047857; font-weight: 600; margin: 0; }
    .provision-credentials dd { margin: 0; color: #14532d; word-break: break-word; }
    .provision-password { font-size: 0.9375rem; font-weight: 700; }
    .provision-ui-panel {
        margin-top: 18px;
        padding-top: 16px;
        border-top: 1px solid #e2e8f0;
    }
    .provision-ui-panel--inline {
        width: 100%;
        margin-top: 0;
        padding: 14px;
        border: 1px solid #cbd5e1;
        border-radius: 10px;
        background: #fff;
    }
    .provision-ui-panel--inline h4 { margin: 0 0 10px; font-size: 0.875rem; color: #334155; }
    .provision-ui-form { display: flex; flex-direction: column; gap: 12px; }
    .provision-ui-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 10px;
    }
    .provision-ui-grid--opts { align-items: end; }
    .provision-ui-checks { display: flex; flex-wrap: wrap; gap: 12px; padding-bottom: 6px; }
    .provision-ui-confirm {
        display: flex;
        gap: 8px;
        align-items: flex-start;
        font-size: 0.8125rem;
        color: #475569;
    }
    .provision-ui-submit { align-self: flex-start; }
    .provision-ui-hint { margin: 0; font-size: 0.75rem; }

    .trial-badge.good { background: #dcfce7; color: #166534; }
    .trial-badge.good::before { background: #22c55e; }
    .trial-badge.warning { background: #ffedd5; color: #c2410c; }
    .trial-badge.warning::before { background: #f97316; }
    .trial-badge.expired { background: #fee2e2; color: #b91c1c; }
    .trial-badge.expired::before { background: #ef4444; }
    .trial-badge.unlimited { background: #dbeafe; color: #1d4ed8; }
    .trial-badge.unlimited::before { background: #3b82f6; }
    .trial-badge.na { background: #e2e8f0; color: #475569; }
    .trial-badge.na::before { background: #94a3b8; }

    .tenant-primary { font-weight: 700; font-size: 0.9375rem; color: #1e293b; }
    .tenant-meta { font-size: 0.75rem; color: #94a3b8; }
    .tenant-secondary { font-size: 0.8125rem; color: #475569; }
    .tenant-link { color: #2563eb; text-decoration: none; font-weight: 600; }
    .tenant-link:hover { text-decoration: underline; }
    .empty-state { text-align: center; padding: 3rem 1rem; color: #6b7280; }

    .expand-row { cursor: pointer; }
    .detail-panel { display: none; }
    .detail-panel.open { display: table-row; }
    .detail-panel td { background: #f8fafc; padding: 20px 16px !important; }
    .detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
    .detail-section h4 {
        font-size: 0.8125rem;
        font-weight: 700;
        color: #64748b;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        margin-bottom: 8px;
    }
    .detail-item { margin-bottom: 8px; font-size: 0.875rem; color: #1f2937; word-break: break-word; }
    .detail-item span { color: #64748b; }
    .error-box {
        padding: 12px 14px;
        background: #fff1f2;
        border: 1px solid #fecdd3;
        border-radius: 10px;
        color: #9f1239;
        font-size: 0.8125rem;
        line-height: 1.5;
    }
    .cleanup-list { margin: 8px 0 0 18px; color: #9f1239; }
    .operator-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
    .inline-actions { display: flex; flex-wrap: wrap; gap: 8px; }
    .operator-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 8px 12px;
        border-radius: 10px;
        border: 1px solid #cbd5e1;
        background: #fff;
        color: #334155;
        text-decoration: none;
        font-size: 0.8125rem;
        font-weight: 600;
        cursor: pointer;
    }
    .operator-btn:hover { background: #f8fafc; color: #0f172a; }
    .match-box {
        margin-top: 16px;
        padding: 12px 14px;
        background: #eff6ff;
        border: 1px solid #bfdbfe;
        border-radius: 10px;
        color: #1d4ed8;
        font-size: 0.8125rem;
        line-height: 1.5;
    }
    .link-inquiry-box {
        margin-top: 16px;
        padding: 14px;
        background: #f0fdf4;
        border: 1px solid #bbf7d0;
        border-radius: 10px;
    }
    .link-inquiry-box h4 {
        font-size: 0.8125rem;
        font-weight: 700;
        color: #166534;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        margin-bottom: 10px;
    }
    .link-inquiry-form {
        display: grid;
        gap: 8px;
    }
    .link-inquiry-form select,
    .link-inquiry-form textarea {
        min-height: 38px;
        padding: 8px 10px;
        border-radius: 8px;
        border: 2px solid #d1fae5;
        font-size: 0.8125rem;
        width: 100%;
        resize: vertical;
        background: #fff;
    }
    .link-inquiry-hint {
        margin-top: 8px;
        font-size: 0.75rem;
        color: #065f46;
        line-height: 1.5;
    }
    .form-check-inline {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 0.8125rem;
        color: #14532d;
    }
    .form-check-inline input { width: auto; min-height: auto; }
    .copy-feedback {
        margin-top: 10px;
        font-size: 0.75rem;
        color: #2563eb;
        display: none;
    }
    .copy-feedback.show { display: block; }
    @media (max-width: 768px) {
        .detail-grid { grid-template-columns: 1fr; }
    }

/* schedules */
.calendar-table { font-size: 12px; border-collapse: collapse; min-width: 100%; }
        .calendar-table th, .calendar-table td { border: 1px solid #e5e7eb; padding: 6px 8px; text-align: center; }
        .calendar-table th { background: #f9fafb; font-weight: 600; color: #374151; }
        .cal-col-name { min-width: 120px; text-align: left !important; position: sticky; left: 0; background: #fff; z-index: 1; }
        .cal-col-day { min-width: 28px; }
        .cal-col-day.cal-holiday-header { background: #fef2f2; color: #b91c1c; }
        .cal-cell { color: #9ca3af; }
        .cal-cell.cal-work { color: #0f2744; font-weight: 600; background: #e8eef5; }
        .cal-cell.cal-holiday { color: #b91c1c; font-size: 10px; background: #fef2f2; }
        .cal-cell.cal-leave { color: #0d9488; font-size: 10px; background: #ccfbf1; }
        .cal-holiday-label { color: #b91c1c; font-weight: 500; }
        .cal-leave-label { color: #0d9488; font-weight: 500; }
        .cal-sunday-label { color: #6366f1; font-weight: 500; }
        .cal-col-day.cal-sunday-header { background: #eef2ff; color: #6366f1; }
        .cal-cell.cal-sunday { color: #6366f1; font-size: 10px; background: #eef2ff; }

/* attendance-settings */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}
.toggle-switch input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.25s;
    border-radius: 28px;
}
.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.25s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle-switch input:checked + .toggle-slider {
    background-color: var(--navy);
}
.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}
.toggle-switch input:focus + .toggle-slider {
    box-shadow: 0 0 0 2px rgba(30,58,95,0.3);
}
code { background: var(--gray-bg); padding: 2px 6px; border-radius: 4px; font-size: 0.8125rem; }

/* ------------------------------------------------------------------ */
/* Admin design system utilities (shared admin surfaces)                */
/* ------------------------------------------------------------------ */
.ui-hero-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.ui-hero-toolbar--wide { gap: 10px; }
.btn--success { background: #059669; color: #fff; border-color: #059669; }
.btn--success:hover { background: #047857; border-color: #047857; color: #fff; }
.btn--danger-outline { border-color: #dc2626; color: #dc2626; }
.btn--danger-outline:hover { background: #fef2f2; color: #b91c1c; }
.ui-card-spacing { margin-bottom: 16px; }
.ui-card-spacing--lg { margin-bottom: 1.5rem; }
.ui-card-hint { font-size: 0.875rem; color: #6b7280; margin-bottom: 1rem; }
.ui-card-hint--sm { font-size: 13px; margin-bottom: 10px; }
.ui-card-empty { color: #6b7280; text-align: center; padding: 24px; }
.ui-card-empty--muted { color: #90a4ae; }
.ui-flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.ui-meta-label { font-size: 12px; color: #6b7280; }
.ui-meta-value { font-weight: 700; margin-top: 4px; color: #0f172a; }
.ui-meta-sub { font-size: 12px; color: #6b7280; margin-top: 4px; }
.ui-badge-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}
.ui-badge-pill--success { background: #dcfce7; color: #166534; }
.ui-badge-pill--warning { background: #fef3c7; color: #92400e; }
.ui-badge-pill--neutral { background: #e5e7eb; color: #374151; }
.ui-badge-pill--sm { padding: 4px 8px; }
.ui-form-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0;
}
.ui-input-unlock { min-width: 260px; }
.ui-section-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f2744;
    margin-bottom: 0.75rem;
}
.ui-section-title--sm { font-size: 1rem; margin-bottom: 1rem; }
.ui-section-title--spaced { margin-top: 24px; }
.la-charts-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.analytic-filter {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.la-heatmap-legend-swatch--off { background: #e2e8f0; }
.la-heatmap-legend-swatch--low { background: #fef3c7; }
.la-heatmap-legend-swatch--mid { background: #fcd34d; }
.la-heatmap-legend-swatch--high { background: #fde68a; }
.la-heatmap-legend-swatch--full { background: #34d399; }
.pg-period-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.di-hero-toolbar { display: inline-flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.di-hero-toolbar select { width: auto; }
.di-top-performer {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: var(--radius, 12px);
}
.di-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}
.di-avatar--placeholder {
    background: var(--navy, #1e3a5f);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}
.di-top-name { font-weight: 700; font-size: 1.125rem; color: var(--gray, #334155); }
.di-top-score { font-size: 2rem; font-weight: 800; color: var(--navy, #1e3a5f); }
.di-top-period { font-size: 0.875rem; color: var(--gray-light, #64748b); }
.di-chart { min-height: 200px; }
.di-trend-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.di-trend-name {
    width: 120px;
    font-size: 0.8125rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.di-trend-track {
    flex: 1;
    background: #e5e7eb;
    border-radius: 8px;
    height: 24px;
    overflow: hidden;
}
.di-trend-fill {
    height: 100%;
    width: var(--progress, 0%);
    background: linear-gradient(90deg, var(--navy, #1e3a5f) 0%, var(--navy-light, #334155) 100%);
    border-radius: 8px;
}
.di-trend-score { font-weight: 700; font-size: 0.875rem; min-width: 36px; }
.di-rank-medal { font-size: 1.25rem; }

.di-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
@media (max-width: 900px) { .di-kpi-grid { grid-template-columns: repeat(2, 1fr); } }
.di-kpi-card {
    background: #fff;
    border: 1px solid var(--ui-border, #e2e8f0);
    border-radius: 14px;
    padding: 16px;
    box-shadow: var(--ui-shadow-sm, 0 1px 3px rgba(15,23,42,0.08));
}
.di-kpi-card--warn { border-color: #fcd34d; background: #fffbeb; }
.di-kpi-card--ok { border-color: #86efac; background: #f0fdf4; }
.di-kpi-value { font-size: 1.75rem; font-weight: 800; color: #0f172a; line-height: 1.1; }
.di-kpi-label { font-size: 0.8125rem; color: #64748b; margin-top: 4px; }
.di-attention-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.di-attention-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}
.di-attention-name { font-weight: 700; color: #0f172a; }
.di-attention-reasons { font-size: 0.8125rem; color: #64748b; margin-top: 4px; }
.di-attention-actions { text-align: right; flex-shrink: 0; }
.di-attention-score { display: block; font-weight: 800; color: #b45309; margin-bottom: 4px; }
.di-row--warn { background: #fffbeb; }
.emp-form-section-title { margin-bottom: 12px; }
.emp-form-section-title--spaced { margin: 18px 0 12px; }
.emp-photo-preview { margin-top: 8px; }
.emp-photo-thumb {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 12px;
}
.form-hint { color: #6b7280; font-size: 12px; margin-top: 4px; line-height: 1.5; }
.pg-bank-export-note { margin-top: 12px; padding-top: 12px; border-top: 1px dashed #e5e7eb; }
.text-warning { color: #b45309; }
.ui-link-sm { font-size: 12px; font-weight: 600; color: #2563eb; text-decoration: none; }
.ui-link-sm:hover { text-decoration: underline; }
.ui-callout {
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.55;
    margin: 10px 0 16px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e3a5f;
}
.ui-callout--compact { margin-top: 8px; }
.ui-input-rp {
    display: flex;
    align-items: stretch;
    max-width: 320px;
}
.ui-input-rp__prefix {
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-right: none;
    border-radius: 8px 0 0 8px;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
}
.ui-input-rp__field {
    flex: 1;
    min-width: 0;
    border-radius: 0 8px 8px 0 !important;
}
.form-actions-spaced { margin-left: 10px; }
.ui-card-spaced { margin-bottom: 1.5rem; }
.ui-flex-gap-12 { gap: 12px; }
.ui-actions-mt { margin-top: 12px; gap: 10px; }
.ui-btn-spaced { margin-right: 6px; }
.crm-search-input { min-width: 260px; }
.crm-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
}
.crm-empty__icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 8px;
    opacity: 0.4;
}
.crm-col-narrow { width: 30px; }
.ss-inline-form { display: inline; margin: 0; }
.ss-table-mb { margin-bottom: 20px; }
.ss-copy-week {
    margin-bottom: 16px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
}
.ss-copy-week__form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 8px;
}
.ss-calendar-wrap { overflow-x: auto; }
.ss-modal-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.ss-modal-actions #btnRemoveAssign { margin-left: auto; }
.ss-import-hint {
    margin-top: 24px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 13px;
}
.ss-import-pre {
    margin: 8px 0 0;
    overflow-x: auto;
}
.ss-import-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ss-import-error { margin-bottom: 10px; }
.modal--hidden { display: none !important; }
.is-hidden { display: none !important; }

/* ------------------------------------------------------------------ */
/* Admin batch B — kasbon, gaji, tenant, office, onboarding            */
/* ------------------------------------------------------------------ */
.kb-view-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 1.25rem;
}
.ui-card--accent-warn {
    margin-bottom: 1.25rem;
    border-left: 4px solid #d97706;
}
.ui-status-text { font-weight: 600; }
.ui-status-text--success { color: #059669; }
.ui-status-text--danger { color: #dc2626; }
.ui-status-text--warning { color: #d97706; }
.ui-cell-limit { max-width: 200px; }
.ui-pager-mt { margin-top: 1rem; }
.ui-form-narrow { max-width: 480px; }
.ui-form-narrow--sm { max-width: 400px; }
.ui-hr { border: none; border-top: 1px solid #e5e7eb; margin: 16px 0; }
.ui-form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.ui-form-grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}
.ui-intro-text {
    margin-bottom: 14px;
    font-size: 13px;
    color: #6b7280;
}
.ui-intro-text strong { color: #334155; }
.ui-empty-box {
    padding: 12px;
    color: #6b7280;
}
.ui-th-narrow { width: 64px; }
.ui-th-index { width: 30px; }
.ui-map-wrap {
    height: 400px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 2px solid #e0e0e0;
}
.ui-map-hint {
    font-size: 13px;
    color: #78909c;
    margin-bottom: 12px;
}
.ui-location-row { margin-bottom: 16px; }
.ui-btn-geo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.ui-location-status {
    margin-left: 10px;
    font-size: 13px;
    color: #6b7280;
}
.ui-location-status--error { color: #dc2626; }
.ui-location-status--ok { color: #059669; }
.tenant-hint {
    font-size: 0.8125rem;
    color: #0369a1;
    margin-bottom: 8px;
}
.tenant-hint--spaced { margin-bottom: 12px; }
.stat-card.stat-card--draft .stat-num { color: #0369a1; }
.stat-card.active-filter.stat-card--draft { border-color: #2563eb; }
.tenant-error-title {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}
.tenant-error-block { margin-top: 16px; }
.tenant-pager { padding: 16px 20px; }
.tenant-help-grid { display: grid; gap: 10px; }
.draft-form-submit { grid-column: 1 / -1; justify-self: start; }
.operator-actions--compact { margin-top: 10px; }
.doc-modal-card--form {
    max-width: 400px;
    width: min(400px, 100%);
    height: auto;
}
.doc-modal-body--pad { padding: 1rem; }
.ui-btn-stack { margin: 2px; }

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

/* ------------------------------------------------------------------ */
/* Admin batch C — attendance, schedules, holidays, policies, shifts   */
/* ------------------------------------------------------------------ */
.ui-form-narrow--md { max-width: 560px; }
.ui-toolbar-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ui-toolbar-mb { margin-bottom: 16px; }
.ui-section-title {
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
}
.ui-section-title--spaced { margin-top: 24px; }
.ui-help-list {
    font-size: 0.875rem;
    color: var(--gray);
    padding-left: 1.25rem;
    line-height: 1.7;
}
.ui-page-hint {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 16px;
}
.ui-page-hint strong { color: #334155; }
.ui-page-hint--compact { margin-bottom: 12px; }
.ui-hint-accent {
    display: block;
    font-size: 13px;
    color: #0f766e;
    background: #ecfdf5;
    border: 1px solid #99f6e4;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 12px;
    line-height: 1.5;
}
.ui-table-mb { margin-bottom: 28px; }
.ui-table-flush { margin-bottom: 0; }
.ui-cal-scroll { overflow-x: auto; }
.ui-pager-16 { margin-top: 16px; }
.ui-alert-text { color: #dc2626; }
.ui-error-block { margin-bottom: 10px; }
.ui-error-block__title {
    font-weight: 600;
    margin-bottom: 6px;
}
.ui-error-list {
    margin: 0 0 0 18px;
    padding: 0;
}
.ui-empty-state--compact { padding: 16px 0; }
.ui-link-mt { margin-top: 12px; }
.ui-form-check {
    display: flex;
    gap: 10px;
    align-items: center;
    cursor: pointer;
}
.ui-form-check input { margin: 0; }
.ui-flex-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.ui-flex-row--start {
    align-items: flex-start;
}
.ui-form-grow {
    flex: 1;
    min-width: 220px;
}
.ui-select-multi {
    min-width: 250px;
    height: auto;
}
.ui-select-shift { min-width: 180px; }
.ui-select-week { min-width: 200px; }
.ui-color-input {
    height: 36px;
    padding: 2px;
    cursor: pointer;
}
.ui-form-actions-mt { margin-top: 16px; }
.ui-badge-pill--danger {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    font-weight: 700;
}
.ui-badge-pill--info {
    background: #dbeafe;
    color: #1d4ed8;
    font-weight: 500;
}
.ui-badge-pill--holiday {
    background: #dcfce7;
    color: #15803d;
    font-weight: 500;
}
.ui-badge-pill--doc-active {
    background: #dcfce7;
    color: #166534;
    font-weight: 700;
    border: 1px solid #bbf7d0;
}
.ui-badge-pill--doc-inactive {
    background: #fee2e2;
    color: #b91c1c;
    font-weight: 700;
    border: 1px solid #fecaca;
}
.ui-inline-form-reset { margin: 0; }
.sch-day-chip {
    display: inline-block;
    padding: 2px 6px;
    background: #e8eef5;
    border-radius: 4px;
    font-size: 11px;
    margin: 1px;
}
.sch-day-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-top: 8px;
}
.sch-day-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.sch-template-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.sch-template-day { min-width: 90px; }
.sch-template-week { min-width: 100px; }
.as-toggle-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}
.as-toggle-label {
    flex: 1;
    margin-bottom: 0;
    cursor: pointer;
}
.as-toggle-title {
    font-weight: 600;
    color: var(--gray);
    margin-bottom: 4px;
}
.as-toggle-desc {
    font-size: 0.8125rem;
    color: var(--gray-light);
}
.as-toggle-switch { flex-shrink: 0; }
.as-actions { gap: 12px; margin-top: 1.5rem; }
.ui-card-mt { margin-top: 1rem; }
.ui-card-mb { margin-bottom: 1rem; }
.ui-hint-accent--block { display: block; margin-top: 8px; }
.tenant-link--sm { font-size: 0.75rem; }
.detail-item--spaced { margin-top: 12px; }
.tenant-link-box--muted {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #475569;
}

/* Admin pagination partial */
.admin-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.admin-pagination__btn,
.admin-pagination__btn--disabled {
    padding: 6px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
}
.admin-pagination__btn {
    color: #0f2744;
    text-decoration: none;
}
.admin-pagination__btn--disabled {
    color: #b0bec5;
    cursor: default;
}
.admin-pagination__info {
    padding: 6px 12px;
    font-size: 14px;
    color: #546e7a;
}
