/* =============================================
   KDMP - Reusable Components
   ============================================= */

/* ---- Stat Card ---- */
.stat-card {
    background: var(--navy-900); border: 1px solid var(--navy-800);
    border-radius: var(--radius-md); padding: 20px;
    position: relative; transition: all 0.2s ease;
    display: flex; align-items: center; gap: 16px;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-icon {
    width: 48px; height: 48px; border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; flex-shrink: 0;
}
.stat-content { flex: 1; }
.stat-value { font-size: 32px; font-weight: 700; color: var(--white); line-height: 1; letter-spacing: -0.02em; }
.stat-label { font-size: 12px; font-weight: 500; color: var(--navy-500); text-transform: uppercase; letter-spacing: 0.03em; margin-top: 4px; display: block; }
.stat-trend {
    position: absolute; top: 16px; right: 16px;
    font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 4px;
}
.stat-trend.up { color: var(--emerald-500); }
.stat-trend.down { color: var(--red-500); }
.stat-trend.neutral { color: var(--navy-500); }

/* ---- Status Badge ---- */
.status-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 12px; border-radius: var(--radius-full);
    font-size: 11px; font-weight: 600; border: 1px solid transparent;
    white-space: nowrap;
}

/* ---- Progress Bar ---- */
.progress-wrapper { width: 100%; }
.progress-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.progress-label { font-size: 12px; font-weight: 500; color: var(--navy-400); }
.progress-percent { font-size: 12px; font-weight: 700; color: var(--white); }
.progress-track { width: 100%; height: 8px; background: var(--navy-800); border-radius: var(--radius-full); overflow: hidden; }
.progress-fill { height: 100%; border-radius: var(--radius-full); transition: width 1s cubic-bezier(0.33, 1, 0.68, 1); }

/* ---- Data Card (Table Container) ---- */
.data-card {
    background: var(--navy-900); border: 1px solid var(--navy-800);
    border-radius: var(--radius-md); overflow: hidden;
}
.data-card-header {
    padding: 16px 20px; border-bottom: 1px solid var(--navy-800);
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.data-card-title { font-size: 16px; font-weight: 600; color: var(--navy-300); }
.data-card-actions { display: flex; gap: 8px; align-items: center; }
.table-search {
    height: 36px; background: var(--navy-800); border: 1px solid var(--navy-700);
    border-radius: var(--radius-sm); padding: 0 12px; color: var(--navy-300);
    font-size: 13px; font-family: inherit; width: 200px;
}
.table-search::placeholder { color: var(--navy-600); }
.table-search:focus { outline: none; border-color: var(--gold-500); box-shadow: var(--shadow-gold); }

/* DataTables custom styling */
.data-table { width: 100% !important; border-collapse: collapse; }
.data-table thead th {
    background: var(--navy-800); color: var(--navy-400);
    font-size: 12px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.05em; padding: 12px 16px; text-align: left;
    border-bottom: 1px solid var(--navy-800); white-space: nowrap;
}
.data-table tbody td { padding: 14px 16px; color: var(--navy-300); font-size: 14px; border-bottom: 1px solid var(--navy-800); vertical-align: middle; }
.data-table tbody tr:hover { background: rgba(201,150,26,0.05); }
.data-table tbody tr:hover td { color: var(--navy-300); }

/* DataTables pagination */
.dt-paging { padding: 12px 20px; border-top: 1px solid var(--navy-800); display: flex; justify-content: space-between; align-items: center; }
.dt-paging-button {
    padding: 6px 12px; margin: 0 2px; border-radius: var(--radius-sm);
    background: var(--navy-800); border: none; color: var(--navy-400);
    font-size: 13px; cursor: pointer; font-family: inherit;
}
.dt-paging-button:hover { background: var(--navy-700); color: var(--navy-300); }
.dt-paging-button.current { background: var(--gold-500); color: var(--navy-950); font-weight: 600; }
.dt-paging-button.disabled { opacity: 0.4; cursor: not-allowed; }
.dt-info { font-size: 13px; color: var(--navy-500); }
.dt-length { padding: 12px 20px; font-size: 13px; color: var(--navy-500); }
.dt-length select { background: var(--navy-800); border: 1px solid var(--navy-700); color: var(--navy-300); border-radius: var(--radius-sm); padding: 4px 8px; font-family: inherit; }

/* ---- Form Card ---- */
.form-card {
    background: var(--navy-900); border: 1px solid var(--navy-800);
    border-radius: var(--radius-lg); max-width: 900px; margin: 0 auto;
}
.form-card-header { padding: 24px 24px 0; }
.form-card-title { font-size: 20px; font-weight: 700; color: var(--navy-300); }
.form-card-subtitle { font-size: 13px; color: var(--navy-500); margin-top: 4px; }
.form-card-body { padding: 24px; }
.form-card-footer {
    padding: 16px 24px 24px; border-top: 1px solid var(--navy-800);
    display: flex; justify-content: flex-end; gap: 12px;
}

/* ---- Form Fields ---- */
.form-group { margin-bottom: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 767px) { .form-grid { grid-template-columns: 1fr; } }

.form-label {
    display: block; font-size: 11px; font-weight: 600;
    color: var(--navy-400); text-transform: uppercase;
    letter-spacing: 0.05em; margin-bottom: 6px;
}
.form-label .required { color: var(--red-500); }

.form-input, .form-select, .form-textarea {
    width: 100%; background: var(--navy-800); border: 1px solid var(--navy-700);
    border-radius: var(--radius-sm); color: var(--navy-300); font-family: inherit;
    font-size: 14px; transition: all 0.15s ease;
}
.form-input, .form-select { height: 44px; padding: 0 14px; }
.form-textarea { min-height: 100px; padding: 12px 14px; resize: vertical; }
.form-input::placeholder, .form-textarea::placeholder { color: var(--navy-600); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none; border-color: var(--gold-500); box-shadow: var(--shadow-gold);
}
.form-input.error, .form-select.error, .form-textarea.error {
    border-color: var(--red-500); background: rgba(239,68,68,0.05);
}
.form-help { font-size: 12px; color: var(--navy-600); margin-top: 4px; display: block; }
.form-error { font-size: 12px; color: var(--red-500); margin-top: 4px; display: block; font-weight: 500; }

/* Mobile form optimizations */
@media (max-width: 767px) {
    .form-input, .form-select { height: 48px; font-size: 16px; }
    .form-group { margin-bottom: 20px; }
    .form-card-footer { flex-direction: column; }
    .form-card-footer .btn { width: 100%; justify-content: center; }
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border-radius: var(--radius-sm); font-family: inherit; font-weight: 600;
    cursor: pointer; border: none; transition: all 0.15s ease;
    text-decoration: none; white-space: nowrap;
}
.btn-sm { height: 32px; padding: 0 12px; font-size: 12px; }
.btn-md { height: 40px; padding: 0 20px; font-size: 14px; }
.btn-lg { height: 48px; padding: 0 28px; font-size: 15px; }

.btn-primary { background: var(--gold-500); color: var(--navy-950); }
.btn-primary:hover { background: var(--gold-600); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--navy-400); border: 1px solid var(--navy-700); }
.btn-secondary:hover { background: var(--navy-800); color: var(--navy-300); }
.btn-danger { background: var(--red-500); color: var(--white); }
.btn-danger:hover { background: var(--red-600); }
.btn-success { background: var(--emerald-500); color: var(--white); }
.btn-success:hover { background: var(--emerald-600); }
.btn-ghost { background: transparent; color: var(--navy-500); }
.btn-ghost:hover { color: var(--navy-300); }
.btn-icon {
    width: 36px; height: 36px; padding: 0;
    background: var(--navy-800); color: var(--navy-400);
    border-radius: var(--radius-sm); font-size: 14px;
}
.btn-icon:hover { background: var(--navy-700); color: var(--navy-300); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ---- Modal ---- */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px); z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    padding: 20px; opacity: 0; visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-dialog {
    background: var(--navy-900); border: 1px solid var(--navy-700);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-xl);
    max-width: 480px; width: 100%; max-height: 90vh; overflow-y: auto;
    transform: scale(0.95); opacity: 0;
    transition: transform 0.25s ease-out, opacity 0.25s ease-out;
}
.modal-overlay.active .modal-dialog { transform: scale(1); opacity: 1; }
.modal-dialog.modal-lg { max-width: 900px; }
.modal-header {
    padding: 20px 24px; border-bottom: 1px solid var(--navy-800);
    display: flex; justify-content: space-between; align-items: center;
}
.modal-title { font-size: 18px; font-weight: 600; color: var(--navy-300); }
.modal-close {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--navy-800); border: none; color: var(--navy-500);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: 14px; transition: all 0.15s ease;
}
.modal-close:hover { color: var(--navy-300); background: var(--navy-700); }
.modal-body { padding: 24px; }
.modal-footer {
    padding: 16px 24px 20px; border-top: 1px solid var(--navy-800);
    display: flex; justify-content: flex-end; gap: 10px;
}

/* ---- Photo Upload ---- */
.photo-upload-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 767px) { .photo-upload-grid { grid-template-columns: 1fr; } }

.photo-upload-slot {
    position: relative; aspect-ratio: 4/3;
    background: var(--navy-800); border: 2px dashed var(--navy-700);
    border-radius: var(--radius-md); overflow: hidden;
    transition: all 0.2s ease;
}
.photo-upload-slot:hover { border-color: var(--gold-500); background: rgba(201,150,26,0.05); }
.photo-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 2; }
.photo-upload-label {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center; color: var(--navy-500);
    cursor: pointer; z-index: 1;
}
.photo-upload-label i { font-size: 28px; margin-bottom: 8px; }
.photo-upload-label span { font-size: 13px; font-weight: 600; }
.photo-upload-label small { font-size: 11px; font-weight: 400; color: var(--navy-600); margin-top: 4px; }

.photo-preview { position: absolute; inset: 0; z-index: 3; }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-md); }
.photo-remove {
    position: absolute; top: 8px; right: 8px; z-index: 4;
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--red-500); color: var(--white); border: none;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: 12px;
}
.photo-gps {
    position: absolute; bottom: 8px; left: 8px; z-index: 4;
    background: rgba(0,0,0,0.7); color: var(--emerald-400);
    font-size: 10px; font-weight: 500; padding: 2px 8px;
    border-radius: var(--radius-full);
}
.photo-caption-input {
    margin-top: 8px; font-size: 12px;
    padding: 6px 10px; height: 36px;
}

/* ---- Progress Slider ---- */
.progress-slider-wrapper { display: flex; align-items: center; gap: 12px; }
.progress-slider { flex: 1; -webkit-appearance: none; appearance: none; height: 8px; background: var(--navy-800); border-radius: var(--radius-full); outline: none; }
.progress-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--gold-500); border: 3px solid var(--navy-900); cursor: pointer; box-shadow: var(--shadow-sm); }
.progress-slider::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--gold-500); border: 3px solid var(--navy-900); cursor: pointer; box-shadow: var(--shadow-sm); }
.progress-number { width: 80px; text-align: center; font-size: 18px; font-weight: 700; color: var(--white); background: var(--navy-800); border: 1px solid var(--navy-700); border-radius: var(--radius-sm); padding: 8px; }
.progress-unit { font-size: 14px; font-weight: 600; color: var(--navy-400); }

/* ---- Filter Bar ---- */
.filter-bar {
    background: var(--navy-900); border: 1px solid var(--navy-800);
    border-radius: var(--radius-md); padding: 12px 16px;
    display: flex; justify-content: space-between; align-items: center;
    gap: 12px; margin-bottom: 20px; flex-wrap: wrap;
}
.filter-group { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filter-select, .filter-date {
    height: 36px; background: var(--navy-800); border: 1px solid var(--navy-700);
    border-radius: var(--radius-sm); color: var(--navy-300); font-family: inherit;
    font-size: 13px; padding: 0 10px;
}
.filter-search { position: relative; }
.filter-search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--navy-600); font-size: 13px; }
.filter-search input { padding-left: 32px; width: 240px; }
@media (max-width: 767px) {
    .filter-bar { flex-direction: column; align-items: stretch; }
    .filter-group { width: 100%; }
    .filter-select, .filter-date, .filter-search input { width: 100%; }
}

/* ---- Alert Banners ---- */
.alert-banner {
    display: flex; align-items: center; gap: 16px;
    border-radius: var(--radius-md); padding: 16px 20px; margin-bottom: 24px;
}
.alert-danger { background: rgba(239,68,68,0.1); border: 1px solid var(--red-500); }
.alert-danger i { color: var(--red-500); font-size: 24px; }
.alert-danger strong { color: var(--red-400); font-size: 14px; }
.alert-danger span { color: var(--navy-400); font-size: 13px; display: block; margin-top: 2px; }
.alert-warning { background: rgba(245,158,11,0.1); border: 1px solid var(--amber-500); }
.alert-warning i { color: var(--amber-500); font-size: 24px; }
.alert-warning strong { color: var(--amber-400); font-size: 14px; }
.alert-warning span { color: var(--navy-400); font-size: 13px; display: block; margin-top: 2px; }

/* ---- View Toggle ---- */
.view-toggle { display: flex; background: var(--navy-800); border-radius: var(--radius-sm); padding: 2px; }
.view-btn { width: 36px; height: 36px; border-radius: var(--radius-sm); background: transparent; border: none; color: var(--navy-500); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 14px; transition: all 0.15s ease; }
.view-btn.active { background: var(--navy-700); color: var(--navy-300); }

/* ---- Card View Grid ---- */
.card-view-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 1023px) { .card-view-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .card-view-grid { grid-template-columns: 1fr; } }

.report-card {
    background: var(--navy-900); border: 1px solid var(--navy-800);
    border-radius: var(--radius-md); padding: 20px;
    transition: all 0.2s ease;
}
.report-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.report-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.report-type { font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--navy-500); }
.report-date { font-size: 14px; font-weight: 600; color: var(--navy-300); margin-bottom: 8px; }
.report-project { font-size: 13px; font-weight: 500; color: var(--navy-400); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.report-project i { font-size: 12px; color: var(--navy-500); }
.report-work { font-size: 13px; color: var(--navy-500); margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.report-progress { margin-bottom: 12px; }
.report-progress span { font-size: 12px; font-weight: 500; color: var(--navy-500); }
.report-card-footer { border-top: 1px solid var(--navy-800); padding-top: 12px; display: flex; justify-content: space-between; align-items: center; }
.report-subkontraktor { font-size: 12px; font-weight: 500; color: var(--navy-500); }
.report-actions { display: flex; gap: 6px; }

/* ---- Batch Actions Bar ---- */
.batch-actions {
    position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%) translateY(120%);
    background: var(--navy-900); border: 1px solid var(--gold-500);
    border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
    padding: 12px 20px; display: flex; align-items: center; gap: 12px;
    z-index: 500; transition: transform 0.2s ease-out;
    max-width: 90vw; flex-wrap: wrap;
}
.batch-actions.active { transform: translateX(-50%) translateY(0); }
.batch-count { font-size: 14px; font-weight: 600; color: var(--navy-300); white-space: nowrap; }

/* ---- Reminder Card ---- */
.reminder-card {
    background: var(--navy-900); border: 1px solid var(--navy-800);
    border-radius: var(--radius-md); padding: 20px;
    display: flex; align-items: center; gap: 16px; margin-top: 16px;
}
.reminder-card i { font-size: 24px; color: var(--gold-500); flex-shrink: 0; }
.reminder-content { flex: 1; }
.reminder-content h4 { font-size: 15px; font-weight: 600; color: var(--navy-300); }
.reminder-content p { font-size: 13px; color: var(--navy-500); margin-top: 4px; }

/* ---- Status Card (Today's Report) ---- */
.status-card {
    border-radius: var(--radius-lg); padding: 28px;
    display: flex; align-items: center; gap: 24px; margin-bottom: 24px;
}
.status-card.status-pending { background: rgba(245,158,11,0.08); border: 1px solid var(--amber-500); }
.status-card.status-completed { background: rgba(16,185,129,0.08); border: 1px solid var(--emerald-500); }
.status-icon { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; flex-shrink: 0; }
.status-pending .status-icon { background: rgba(245,158,11,0.15); color: var(--amber-500); }
.status-completed .status-icon { background: rgba(16,185,129,0.15); color: var(--emerald-500); }
.status-content { flex: 1; }
.status-content h3 { font-size: 18px; font-weight: 700; }
.status-pending h3 { color: var(--amber-400); }
.status-completed h3 { color: var(--emerald-400); }
.status-content p { font-size: 14px; color: var(--navy-400); margin-top: 4px; }
.status-meta { margin-top: 12px; display: flex; gap: 24px; font-size: 13px; font-weight: 500; color: var(--navy-500); }
.status-meta i { margin-right: 4px; }

/* ---- Project Item ---- */
.project-item {
    padding: 16px; border-bottom: 1px solid var(--navy-800);
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.project-item:last-child { border-bottom: none; }
.project-info { flex: 1; min-width: 200px; }
.project-name { font-size: 15px; font-weight: 600; color: var(--navy-300); }
.project-location { font-size: 12px; color: var(--navy-500); margin-top: 2px; }
.project-location i { font-size: 12px; color: var(--navy-600); margin-right: 4px; }
.project-progress-section { flex: 1; max-width: 200px; min-width: 150px; }
.project-actions { display: flex; gap: 8px; }

/* ---- FAB (Mobile Quick Action) ---- */
.fab-button {
    position: fixed; bottom: 24px; right: 24px; z-index: 400;
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--gold-500); color: var(--navy-950);
    border: none; cursor: pointer; font-size: 20px;
    box-shadow: var(--shadow-lg); display: none;
    align-items: center; justify-content: center;
    transition: all 0.2s ease;
}
.fab-button:hover { background: var(--gold-600); transform: scale(1.05); }
@media (max-width: 767px) { .fab-button { display: flex; } }

.fab-menu {
    position: fixed; bottom: 90px; right: 24px; z-index: 399;
    display: none; flex-direction: column; gap: 8px;
}
.fab-menu.active { display: flex; }
.fab-menu-item {
    display: flex; align-items: center; gap: 10px;
    background: var(--navy-900); color: var(--white);
    padding: 10px 16px; border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md); font-size: 13px; font-weight: 500;
    text-decoration: none; border: 1px solid var(--navy-700);
    white-space: nowrap; opacity: 0; transform: translateY(10px);
    animation: fadeInUp 0.2s ease forwards;
}
.fab-menu-item:nth-child(1) { animation-delay: 0ms; }
.fab-menu-item:nth-child(2) { animation-delay: 50ms; }
.fab-menu-item:nth-child(3) { animation-delay: 100ms; }

/* ---- Collapsible Section ---- */
.collapsible-trigger {
    width: 100%; padding: 14px 16px; background: var(--navy-800);
    border: none; border-radius: var(--radius-sm);
    color: var(--navy-300); font-size: 14px; font-weight: 600;
    font-family: inherit; cursor: pointer; display: flex;
    align-items: center; justify-content: space-between;
    transition: background 0.15s ease;
}
.collapsible-trigger:hover { background: var(--navy-700); }
.collapsible-trigger i { transition: transform 0.25s ease; }
.collapsible-trigger.active i { transform: rotate(180deg); }
.collapsible-content {
    max-height: 0; overflow: hidden;
    transition: max-height 0.25s ease, opacity 0.2s ease;
    opacity: 0;
}
.collapsible-content.active { max-height: 2000px; opacity: 1; }
.collapsible-inner { padding: 16px; background: var(--navy-950); border-radius: 0 0 var(--radius-sm) var(--radius-sm); }

/* ---- Week Visual Selector ---- */
.week-visual { display: flex; gap: 8px; margin-top: 8px; }
.week-day { flex: 1; text-align: center; padding: 10px 4px; border-radius: var(--radius-sm); font-size: 11px; font-weight: 600; text-transform: uppercase; border: 1px solid transparent; }
.week-day.reported { background: rgba(16,185,129,0.15); color: var(--emerald-500); border-color: var(--emerald-500); }
.week-day.missing { background: rgba(239,68,68,0.15); color: var(--red-500); border-color: var(--red-500); }
.week-day.weekend { background: var(--navy-800); color: var(--navy-600); }
.week-day i, .week-day .weekend-label { display: block; margin-top: 4px; font-size: 12px; }

/* ---- Compact Table ---- */
.compact-table { width: 100%; border-collapse: collapse; }
.compact-table th { background: var(--navy-900); color: var(--navy-500); font-size: 12px; font-weight: 600; padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--navy-800); }
.compact-table td { padding: 8px 12px; font-size: 13px; color: var(--navy-300); border-bottom: 1px solid var(--navy-800); }

/* ---- Calculation Note ---- */
.calculation-note { background: rgba(59,130,246,0.1); border-left: 3px solid var(--blue-500); padding: 10px 14px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin-top: 8px; }
.calculation-note i { color: var(--blue-500); font-size: 14px; margin-right: 6px; }
.calculation-note span { font-size: 12px; color: var(--blue-400); }

/* ---- Variation Cards ---- */
.variance-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
@media (max-width: 767px) { .variance-cards { grid-template-columns: 1fr; } }
.variance-card { background: var(--navy-800); border-radius: var(--radius-md); padding: 20px; }
.variance-label { font-size: 12px; font-weight: 500; color: var(--navy-500); display: block; }
.variance-value { font-size: 28px; font-weight: 700; color: var(--white); display: block; margin-top: 4px; }
.variance-value.variance-negative { color: var(--red-500); }
.variance-value.variance-positive { color: var(--emerald-500); }
.variance-bar { height: 6px; background: var(--navy-700); border-radius: var(--radius-full); margin-top: 10px; overflow: hidden; }
.variance-bar > div { height: 100%; border-radius: var(--radius-full); }
.variance-status { font-size: 12px; font-weight: 500; margin-top: 6px; display: block; }

/* ---- Insight Cards (CEO) ---- */
.insight-card {
    border-radius: var(--radius-md); padding: 24px 20px;
    display: flex; align-items: center; gap: 16px;
}
.insight-card.ontrack { background: rgba(16,185,129,0.08); border: 1px solid var(--emerald-500); }
.insight-card.delayed { background: rgba(245,158,11,0.08); border: 1px solid var(--amber-500); }
.insight-card.efficiency { background: rgba(59,130,246,0.08); border: 1px solid var(--blue-500); }
.insight-card.obstacles { background: rgba(239,68,68,0.08); border: 1px solid var(--red-500); }
.insight-icon { width: 44px; height: 44px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.insight-card.ontrack .insight-icon { background: rgba(16,185,129,0.15); color: var(--emerald-500); }
.insight-card.delayed .insight-icon { background: rgba(245,158,11,0.15); color: var(--amber-500); }
.insight-card.efficiency .insight-icon { background: rgba(59,130,246,0.15); color: var(--blue-500); }
.insight-card.obstacles .insight-icon { background: rgba(239,68,68,0.15); color: var(--red-500); }
.insight-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.insight-card.ontrack .insight-label { color: var(--emerald-400); }
.insight-card.delayed .insight-label { color: var(--amber-400); }
.insight-card.efficiency .insight-label { color: var(--blue-400); }
.insight-card.obstacles .insight-label { color: var(--red-400); }
.insight-value { font-size: 24px; font-weight: 700; color: var(--white); display: block; margin-top: 4px; }
.insight-sub { font-size: 12px; margin-top: 4px; display: block; }
.insight-card.ontrack .insight-sub { color: var(--emerald-400); }
.insight-card.delayed .insight-sub { color: var(--amber-400); }
.insight-card.efficiency .insight-sub { color: var(--blue-400); }
.insight-card.obstacles .insight-sub { color: var(--red-400); }

/* ---- Financial Bar (CEO) ---- */
.financial-bar { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--navy-900); border: 1px solid var(--navy-800); border-radius: var(--radius-md); overflow: hidden; margin-bottom: 24px; }
@media (max-width: 767px) { .financial-bar { grid-template-columns: repeat(2, 1fr); } }
.financial-item { padding: 24px 20px; border-right: 1px solid var(--navy-800); text-align: center; }
.financial-item:last-child { border-right: none; }
.financial-label { font-size: 11px; font-weight: 600; color: var(--navy-500); text-transform: uppercase; letter-spacing: 0.05em; }
.financial-value { font-size: 28px; font-weight: 700; display: block; margin-top: 8px; }
.financial-sub { font-size: 12px; color: var(--navy-500); margin-top: 4px; display: block; }

/* ---- Heatmap Tiles (CEO) ---- */
.project-heatmap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.heat-tile { border-radius: var(--radius-sm); padding: 12px; color: var(--white); position: relative; transition: all 0.2s ease; cursor: pointer; }
.heat-tile:hover { transform: scale(1.03); box-shadow: var(--shadow-md); z-index: 2; }
.heat-code { font-size: 11px; font-weight: 700; opacity: 0.8; display: block; }
.heat-name { font-size: 13px; font-weight: 600; display: block; margin-top: 2px; }
.heat-progress { height: 4px; background: rgba(255,255,255,0.3); border-radius: var(--radius-full); margin-top: 8px; overflow: hidden; }
.heat-progress > div { height: 100%; background: rgba(255,255,255,0.8); border-radius: var(--radius-full); transition: width 0.8s ease; }
.heat-value { font-size: 11px; font-weight: 500; opacity: 0.7; margin-top: 4px; display: block; }
.heat-tile.healthy { background: var(--emerald-500); }
.heat-tile.warning { background: var(--amber-500); }
.heat-tile.critical { background: var(--red-500); }

/* ---- Top Performer Card (CEO) ---- */
.performer-card { background: var(--navy-900); border: 1px solid var(--navy-800); border-radius: var(--radius-md); overflow: hidden; margin-bottom: 24px; }
.performer-header { padding: 16px 20px; background: rgba(201,150,26,0.1); border-bottom: 1px solid var(--navy-800); }
.performer-badge { font-size: 13px; font-weight: 600; color: var(--gold-500); }
.performer-badge i { margin-right: 6px; }
.performer-body { padding: 24px 20px; }
.performer-main { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.performer-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--gold-500); color: var(--navy-950); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; flex-shrink: 0; }
.performer-info { flex: 1; }
.performer-info h4 { font-size: 18px; font-weight: 700; color: var(--navy-300); }
.performer-info p { font-size: 13px; color: var(--navy-500); margin-top: 2px; }
.performer-score { text-align: center; margin-left: auto; }
.score-value { font-size: 36px; font-weight: 700; color: var(--gold-500); display: block; line-height: 1; }
.score-label { font-size: 11px; font-weight: 500; color: var(--navy-500); }
.performer-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--navy-800); }
@media (max-width: 767px) { .performer-stats { grid-template-columns: repeat(2, 1fr); } }
.performer-stat { text-align: center; }
.ps-value { font-size: 22px; font-weight: 700; color: var(--navy-300); display: block; }
.ps-label { font-size: 11px; font-weight: 500; color: var(--navy-500); }

/* ---- Prediction Cards (CEO) ---- */
.prediction-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 767px) { .prediction-row { grid-template-columns: 1fr; } }
.prediction-card { background: var(--navy-900); border: 1px solid var(--navy-800); border-radius: var(--radius-md); overflow: hidden; display: flex; }
.prediction-status { width: 4px; flex-shrink: 0; }
.prediction-status.ontrack { background: var(--emerald-500); }
.prediction-status.atrisk { background: var(--amber-500); }
.prediction-status.delayed { background: var(--red-500); }
.prediction-content { padding: 16px 20px; flex: 1; }
.prediction-project { font-size: 14px; font-weight: 600; color: var(--navy-300); }
.prediction-label { font-size: 11px; font-weight: 500; color: var(--navy-500); margin-top: 8px; display: block; }
.prediction-date { font-size: 20px; font-weight: 700; color: var(--navy-300); margin-top: 2px; display: block; }
.prediction-confidence { margin-top: 12px; }
.prediction-confidence span { font-size: 12px; font-weight: 500; color: var(--navy-500); }
.confidence-bar { height: 4px; background: var(--navy-800); border-radius: var(--radius-full); margin-top: 6px; overflow: hidden; }
.confidence-bar > div { height: 100%; background: var(--gold-500); border-radius: var(--radius-full); }

/* ---- Executive Alerts (CEO) ---- */
.exec-alert { display: flex; align-items: center; gap: 16px; border-radius: var(--radius-md); padding: 16px 20px; margin-bottom: 16px; }
.exec-alert i { font-size: 24px; flex-shrink: 0; }
.exec-alert-content { flex: 1; }
.exec-alert-content strong { font-size: 14px; display: block; }
.exec-alert-content span { font-size: 13px; display: block; margin-top: 2px; }
.exec-alert-critical { background: rgba(239,68,68,0.1); border: 1px solid var(--red-500); }
.exec-alert-critical i { color: var(--red-500); }
.exec-alert-critical strong { color: var(--red-400); }
.exec-alert-critical span { color: var(--navy-400); }
.exec-alert-warning { background: rgba(245,158,11,0.1); border: 1px solid var(--amber-500); }
.exec-alert-warning i { color: var(--amber-500); }
.exec-alert-warning strong { color: var(--amber-400); }
.exec-alert-warning span { color: var(--navy-400); }

/* ---- Analysis Card ---- */
.analysis-card { background: var(--navy-900); border: 1px solid var(--navy-800); border-radius: var(--radius-md); margin-bottom: 24px; }
.analysis-header { padding: 20px; border-bottom: 1px solid var(--navy-800); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.analysis-header h3 { font-size: 16px; font-weight: 600; color: var(--navy-300); display: flex; align-items: center; gap: 8px; }
.analysis-header h3 i { color: var(--gold-500); font-size: 18px; }
.analysis-tabs { display: flex; gap: 4px; background: var(--navy-800); border-radius: var(--radius-sm); padding: 2px; }
.tab-btn { padding: 8px 16px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 500; color: var(--navy-500); background: transparent; border: none; cursor: pointer; font-family: inherit; transition: all 0.15s ease; }
.tab-btn.active { background: var(--navy-700); color: var(--navy-300); }
.analysis-body { padding: 20px; }

/* ---- Delayed List ---- */
.delayed-list h4 { font-size: 15px; font-weight: 600; color: var(--navy-300); margin-bottom: 12px; }
.delayed-item { padding: 14px 0; border-bottom: 1px solid var(--navy-800); }
.delayed-item:last-child { border-bottom: none; }
.delayed-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.delayed-name { font-size: 14px; font-weight: 600; color: var(--navy-300); }
.delayed-reason { font-size: 12px; font-weight: 500; }
.delayed-reason i { margin-right: 4px; }
.delayed-metric { display: flex; align-items: center; gap: 12px; }
.delayed-days { font-size: 14px; font-weight: 700; color: var(--red-500); white-space: nowrap; }

/* ---- Rank Badge ---- */
.rank-badge { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.rank-1 { background: linear-gradient(135deg, #FFD700, #FFA500); color: var(--navy-950); }
.rank-2 { background: linear-gradient(135deg, #C0C0C0, #A0A0A0); color: var(--navy-950); }
.rank-3 { background: linear-gradient(135deg, #CD7F32, #B87333); color: var(--white); }
.rank-other { background: var(--navy-800); color: var(--navy-400); }

/* ---- Role Badge ---- */
.role-badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: var(--radius-full); font-size: 11px; font-weight: 600; }
.role-admin { background: rgba(201,150,26,0.15); color: var(--gold-500); }
.role-subkontraktor { background: rgba(16,185,129,0.15); color: var(--emerald-500); }
.role-direktur { background: rgba(139,92,246,0.15); color: #8B5CF6; }

/* ---- Toggle Switch ---- */
.toggle-switch { position: relative; width: 44px; height: 24px; cursor: pointer; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: var(--navy-700); border-radius: var(--radius-full); transition: background 0.15s ease; }
.toggle-slider::before { content: ''; position: absolute; width: 20px; height: 20px; left: 2px; bottom: 2px; background: var(--white); border-radius: 50%; transition: transform 0.15s ease; box-shadow: var(--shadow-sm); }
.toggle-switch input:checked + .toggle-slider { background: var(--emerald-500); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }

/* ---- Password Strength ---- */
.pw-strength { display: flex; gap: 4px; margin-top: 8px; }
.pw-segment { flex: 1; height: 4px; background: var(--navy-700); border-radius: var(--radius-full); transition: background 0.2s ease; }
.pw-segment.weak { background: var(--red-500); }
.pw-segment.fair { background: var(--amber-500); }
.pw-segment.good { background: var(--blue-500); }
.pw-segment.strong { background: var(--emerald-500); }

/* ---- Recent Exports ---- */
.recent-exports { background: var(--navy-900); border: 1px solid var(--navy-800); border-radius: var(--radius-md); padding: 20px; margin-top: 24px; }
.recent-exports h3 { font-size: 16px; font-weight: 600; color: var(--navy-300); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.recent-exports h3 i { color: var(--navy-500); }
.export-item { padding: 12px 0; border-bottom: 1px solid var(--navy-800); display: flex; align-items: center; gap: 12px; }
.export-item:last-child { border-bottom: none; }
.export-icon { width: 40px; height: 40px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.export-icon.pdf { background: rgba(239,68,68,0.15); color: var(--red-500); }
.export-icon.excel { background: rgba(16,185,129,0.15); color: var(--emerald-500); }
.export-info { flex: 1; min-width: 0; }
.export-name { font-size: 14px; font-weight: 500; color: var(--navy-300); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.export-meta { font-size: 12px; color: var(--navy-500); }

/* ---- PDF Preview ---- */
.pdf-preview { background: var(--white); color: var(--navy-950); padding: 24px; border-radius: var(--radius-sm); margin-bottom: 20px; }
.pdf-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.pdf-logo { height: 48px; }
.pdf-header-text h4 { font-size: 14px; font-weight: 700; color: var(--navy-950); }
.pdf-header-text p { font-size: 12px; color: var(--navy-500); }
.pdf-title h2 { font-size: 18px; font-weight: 700; }
.pdf-title p { font-size: 13px; color: var(--navy-500); margin-top: 4px; }
.pdf-note { font-size: 12px; color: var(--navy-500); margin-top: 16px; }

/* ---- Export Filter Panel ---- */
.filter-panel { background: var(--navy-900); border: 1px solid var(--navy-800); border-radius: var(--radius-md); position: sticky; top: 80px; }
.filter-panel-header { padding: 20px; border-bottom: 1px solid var(--navy-800); }
.filter-panel-header h3 { font-size: 16px; font-weight: 600; color: var(--navy-300); display: flex; align-items: center; gap: 8px; }
.filter-panel-body { padding: 20px; display: flex; flex-direction: column; gap: 20px; }
.filter-group-title { font-size: 12px; font-weight: 600; color: var(--navy-500); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px; }

.report-type-options { display: flex; flex-direction: column; gap: 6px; }
.report-type-option {
    padding: 12px; border: 1px solid var(--navy-800); border-radius: var(--radius-sm);
    display: flex; align-items: center; gap: 10px; cursor: pointer;
    font-size: 14px; font-weight: 500; color: var(--navy-400);
    transition: all 0.15s ease; background: transparent;
    font-family: inherit;
}
.report-type-option:hover { border-color: var(--navy-700); }
.report-type-option.selected { border-color: var(--gold-500); background: rgba(201,150,26,0.1); color: var(--gold-500); }
.report-type-option i { font-size: 16px; width: 20px; text-align: center; }

.quick-select-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.qs-btn { padding: 6px 12px; background: var(--navy-800); border-radius: var(--radius-full); font-size: 12px; font-weight: 500; color: var(--navy-400); border: none; cursor: pointer; font-family: inherit; transition: all 0.15s ease; }
.qs-btn:hover { background: var(--navy-700); color: var(--navy-300); }
.qs-btn.active { background: var(--gold-500); color: var(--navy-950); }

.format-options { display: flex; gap: 8px; }
.format-option { flex: 1; padding: 16px; border: 2px solid var(--navy-800); border-radius: var(--radius-md); text-align: center; cursor: pointer; transition: all 0.15s ease; background: transparent; font-family: inherit; }
.format-option:hover { border-color: var(--navy-700); }
.format-option.selected.pdf { border-color: var(--red-500); background: rgba(239,68,68,0.1); }
.format-option.selected.excel { border-color: var(--emerald-500); background: rgba(16,185,129,0.1); }
.format-option i { font-size: 24px; display: block; margin-bottom: 8px; }
.format-option.pdf i { color: var(--red-500); }
.format-option.excel i { color: var(--emerald-500); }
.format-option span { font-size: 14px; font-weight: 600; display: block; }

/* ---- Project Stats ---- */
.project-stats, .user-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.user-stats { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 767px) { .project-stats { grid-template-columns: 1fr; } .user-stats { grid-template-columns: repeat(2, 1fr); } }

/* ---- Stats Grid ---- */
.stat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-bottom: 24px; }
@media (max-width: 1439px) { .stat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---- Charts Row ---- */
.charts-row { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-bottom: 24px; }
@media (max-width: 1023px) { .charts-row { grid-template-columns: 1fr; } }

/* ---- Insight Grid ---- */
.insight-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
@media (max-width: 1023px) { .insight-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---- CEO Charts Row ---- */
.ceo-charts-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
@media (max-width: 1023px) { .ceo-charts-row { grid-template-columns: 1fr; } }

/* ---- Analysis Body 2-col ---- */
.analysis-body-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 767px) { .analysis-body-2col { grid-template-columns: 1fr; } }

/* ---- Export Layout ---- */
.export-layout { display: grid; grid-template-columns: 320px 1fr; gap: 24px; }
@media (max-width: 1023px) { .export-layout { grid-template-columns: 1fr; } }

/* ---- Preview Area ---- */
.preview-area { background: var(--navy-900); border: 1px solid var(--navy-800); border-radius: var(--radius-md); }
.preview-header { padding: 20px; border-bottom: 1px solid var(--navy-800); display: flex; justify-content: space-between; align-items: center; }
.preview-header h3 { font-size: 16px; font-weight: 600; color: var(--navy-300); display: flex; align-items: center; gap: 8px; }
.preview-meta { font-size: 13px; font-weight: 500; color: var(--navy-500); }
.preview-content { padding: 20px; min-height: 400px; }
.preview-summary { background: var(--navy-800); border-radius: var(--radius-sm); padding: 12px 20px; display: flex; gap: 24px; flex-wrap: wrap; }
.summary-item { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--navy-400); }
.summary-item i { font-size: 14px; color: var(--navy-500); }

/* ---- Variation Analysis 2-col ---- */
.variation-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 767px) { .variation-2col { grid-template-columns: 1fr; } }

/* ---- Login Page ---- */
.login-page { display: flex; min-height: 100vh; background: var(--navy-950); }
.login-brand-panel {
    flex: 1; display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    padding: 48px;
    background: linear-gradient(160deg, var(--navy-950) 0%, #0d1a30 50%, var(--navy-950) 100%);
    position: relative;
}
.login-brand-panel .brand-logo-main { max-height: 120px; margin-bottom: 32px; }
.login-brand-panel .company-name { font-size: 18px; font-weight: 700; color: var(--gold-500); letter-spacing: 0.1em; text-align: center; }
.login-brand-panel .system-name { font-size: 28px; font-weight: 800; color: var(--white); margin-top: 12px; text-align: center; }
.login-brand-panel .tagline { font-size: 15px; color: var(--navy-400); margin-top: 8px; text-align: center; }
.login-brand-panel .gold-line { width: 60px; height: 2px; background: var(--gold-500); margin: 24px auto 0; }
.feature-list { margin-top: 40px; display: flex; flex-direction: column; gap: 20px; }
.feature-item { display: flex; align-items: center; gap: 12px; color: var(--navy-300); font-size: 14px; font-weight: 500; }
.feature-item i { color: var(--gold-500); font-size: 20px; width: 24px; text-align: center; }

.login-form-panel { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 48px; max-width: 520px; }
.login-card { background: var(--navy-900); border: 1px solid var(--navy-800); border-radius: var(--radius-lg); padding: 40px; width: 100%; max-width: 420px; box-shadow: var(--shadow-lg); }
.login-card .mobile-logo { display: none; text-align: center; margin-bottom: 20px; }
.login-card .mobile-logo img { height: 64px; }
.login-card .mobile-logo .system-name { font-size: 20px; font-weight: 700; color: var(--white); margin-top: 8px; }
.login-form-title { font-size: 24px; font-weight: 700; color: var(--white); text-align: center; }
.login-form-subtitle { font-size: 14px; color: var(--navy-500); text-align: center; margin-top: 6px; }
.login-form-body { margin-top: 32px; display: flex; flex-direction: column; gap: 20px; }
.input-with-icon { position: relative; }
.input-with-icon .form-input { padding-left: 40px; }
.input-with-icon i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--navy-600); font-size: 14px; }
.input-with-icon .toggle-password { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--navy-600); cursor: pointer; font-size: 14px; background: none; border: none; }
.input-with-icon .toggle-password:hover { color: var(--navy-400); }
.remember-row { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.remember-checkbox { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--navy-400); cursor: pointer; }
.remember-checkbox input { width: 18px; height: 18px; accent-color: var(--gold-500); }
.forgot-link { font-size: 13px; font-weight: 500; color: var(--gold-500); }
.forgot-link:hover { text-decoration: underline; }
.login-btn { width: 100%; height: 52px; font-size: 16px; font-weight: 700; margin-top: 8px; }
.login-footer { margin-top: 28px; text-align: center; }
.login-footer-text { font-size: 13px; color: var(--navy-500); }
.login-divider { height: 1px; background: var(--navy-800); margin: 20px 0; }
.login-help { font-size: 12px; color: var(--navy-600); }
.login-whatsapp { font-size: 12px; font-weight: 500; color: var(--gold-500); }

@media (max-width: 767px) {
    .login-page { flex-direction: column; }
    .login-brand-panel { padding: 32px 24px; min-height: 180px; }
    .login-brand-panel .brand-logo-main { max-height: 64px; }
    .login-brand-panel .feature-list { display: none; }
    .login-brand-panel .gold-line { display: none; }
    .login-form-panel { padding: 24px; max-width: 100%; }
    .login-card { border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: 32px 24px; }
    .login-card .mobile-logo { display: block; }
}
@media (min-width: 768px) and (max-width: 1023px) {
    .login-brand-panel { flex: 0 0 45%; }
    .login-form-panel { flex: 0 0 55%; padding: 32px; }
}

/* ---- Table Responsive ---- */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-responsive table { min-width: 700px; }

/* ---- Photo Gallery (Modal) ---- */
.photo-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 767px) { .photo-gallery { grid-template-columns: 1fr; } }
.photo-gallery-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-sm); }
.photo-gallery-caption { font-size: 11px; color: var(--navy-500); margin-top: 4px; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--navy-900); }
::-webkit-scrollbar-thumb { background: var(--navy-700); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--navy-600); }
