/* ============================================
   ROOT VARIABLES (GAYA KERAJAAN)
   ============================================ */
:root {
    --primary: #0b1a33;
    --primary-dark: #060f1e;
    --secondary: #b22234;
    --secondary-dark: #8b1a1a;
    --success: #1e7e34;
    --danger: #b22234;
    --warning: #b8860b;
    --info: #0d6efd;
    --gray-50: #f8f9fa;
    --gray-100: #f0f2f5;
    --gray-200: #e2e6ea;
    --gray-300: #ced4da;
    --gray-400: #adb5bd;
    --gray-500: #8a929e;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --font-family: Arial, Helvetica, sans-serif;
    --sidebar-width: 260px;
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: var(--font-family);
    background: var(--gray-100);
    color: var(--gray-900);
    line-height: 1.6;
    font-size: 14px;
    overflow-x: hidden;
}

/* ============================================
   APP WRAPPER
   ============================================ */
.app-wrapper {
    display: flex;
    min-height: 100vh;
    flex-direction: row;
    max-width: 100%;
    overflow-x: hidden;
}

.app-wrapper.full-width {
    flex-direction: column;
}

/* ============================================
   MAIN WRAPPER – UNTUK FOOTER DI BAWAH
   ============================================ */
.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 100%;
    overflow-x: hidden;
}

.main-wrapper.full-width {
    width: 100%;
    max-width: 100%;
}

/* ============================================
   TOP NAVBAR
   ============================================ */
.top-navbar {
    background: var(--primary);
    color: #fff;
    padding: 12px 32px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--secondary);
    width: 100%;
    flex-shrink: 0;
}

.top-navbar-brand a {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: 1px;
}

.top-navbar-brand span {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.6);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-left: 8px;
}

.top-navbar-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 20px;
}

.top-navbar-nav a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.top-navbar-nav a:hover {
    color: #fff;
    border-bottom-color: var(--secondary);
}

.top-navbar-nav .btn-register {
    background: var(--secondary);
    color: #fff;
    padding: 6px 20px;
    border: none;
    font-weight: 600;
}

.top-navbar-nav .btn-register:hover {
    background: var(--secondary-dark);
    color: #fff;
    border-bottom-color: transparent;
}

/* ============================================
   SIDEBAR (KIRI)
   ============================================ */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100%;
    background: var(--primary);
    color: #fff;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    border-right: 2px solid var(--secondary);
    overflow-y: auto;
    overflow-x: hidden;
    flex-shrink: 0;
}

.sidebar-brand {
    padding: 24px 20px 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    text-align: center;
    flex-shrink: 0;
}

.sidebar-brand a {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: 1px;
    display: block;
}

.sidebar-brand .sidebar-sub {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.6);
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-top: 2px;
}

.sidebar-nav {
    flex: 1;
    padding: 12px 0 20px 0;
    overflow-y: auto;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav ul li {
    margin: 0;
    padding: 0;
}

.sidebar-nav ul li a {
    display: block;
    padding: 10px 24px;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 0.9rem;
    border-left: 3px solid transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    font-weight: 400;
}

.sidebar-nav ul li a:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
    border-left-color: var(--secondary);
}

.sidebar-nav ul li a.nav-logout {
    color: #f8a5a5;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 8px;
    padding-top: 14px;
}

.sidebar-nav ul li a.nav-logout:hover {
    background: rgba(178, 34, 52, 0.25);
    color: #fff;
    border-left-color: var(--secondary);
}

.nav-divider {
    display: block;
    padding: 14px 24px 6px 24px;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.3);
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    margin-bottom: 4px;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.8rem;
    text-align: center;
    color: rgba(255,255,255,0.5);
    flex-shrink: 0;
}

.sidebar-footer span {
    display: block;
    color: #fff;
    font-weight: 600;
}

.sidebar-footer small {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    flex: 1;
    padding: 28px 32px 20px 32px;
    background: var(--gray-100);
    max-width: 100%;
    overflow-x: hidden;
    margin-left: var(--sidebar-width);
}

.main-content.full-width {
    margin-left: 0;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 28px 32px 20px 32px;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: #fff;
    border: 1px solid var(--gray-200);
    padding: 20px 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    max-width: 100%;
    overflow-x: hidden;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn,
button,
input[type="submit"],
input[type="button"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--primary);
    color: #fff;
    padding: 8px 22px;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease;
    line-height: 1.4;
    min-height: 38px;
    border-radius: 0 !important;
    font-family: inherit;
}

.btn:hover,
button:hover,
input[type="submit"]:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--gray-600);
    color: #fff;
}
.btn-secondary:hover {
    background: var(--gray-700);
}

.btn-success {
    background: var(--success);
    color: #fff;
}
.btn-success:hover {
    background: #146c2c;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}
.btn-danger:hover {
    background: #8b1a1a;
}

.btn-warning {
    background: var(--warning);
    color: #fff;
}
.btn-warning:hover {
    background: #9a7209;
}

.btn-info {
    background: var(--info);
    color: #fff;
}
.btn-info:hover {
    background: #0b5ed7;
}

.btn-sm {
    padding: 4px 14px;
    font-size: 0.75rem;
    min-height: 30px;
}

/* ============================================
   TABLES – RESPONSIVE
   ============================================ */

/* Container untuk scroll horizontal */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 16px 0;
    border: 1px solid var(--gray-200);
    background: #fff;
    max-width: 100%;
    border-radius: 0;
}

/* Jadual asas – gunakan auto layout untuk flexibiliti */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    background: #fff;
    table-layout: auto;
}

table thead {
    background: var(--primary);
    color: #fff;
}

table thead th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.8px;
    padding: 12px 16px;
    border-bottom: 2px solid var(--secondary);
    text-align: center;
    vertical-align: middle;
}

table tbody td {
    padding: 8px 12px !important;
    vertical-align: middle !important;
    text-align: center;
    border-bottom: 1px solid var(--gray-200);
    background: #fff;
    min-height: 44px;
    box-sizing: border-box;
}

table tbody tr:hover td {
    background: var(--gray-50);
}

table tbody tr:last-child td {
    border-bottom: none;
}

/* Jadual butiran (detail) */
.detail-table {
    width: 100%;
    border-collapse: collapse;
}

.detail-table th {
    width: 30%;
    background: var(--gray-100);
    padding: 10px 16px;
    text-align: center;
    font-weight: 600;
    color: var(--gray-800);
    border: 1px solid var(--gray-200);
    vertical-align: middle;
}

.detail-table td {
    padding: 10px 16px;
    border: 1px solid var(--gray-200);
    background: #fff;
    text-align: center;
    vertical-align: middle;
}

/* ============================================
   JADUAL KHUSUS – LEBAR MINIMUM UNTUK SCROLL
   ============================================ */

/* INDEX.PHP – Peluang Kerja */
.table-jobs {
    min-width: 700px;
}

/* REQUESTS/VIEW.PHP – Senarai Pemohon */
.table-view-applicants {
    min-width: 700px;
}

/* ADMIN/SELECTED.PHP – Calon Dihantar */
.table-selected {
    min-width: 700px;
}

/* ADMIN/REPORT.PHP – Laporan Jam */
.table-report {
    min-width: 800px;
}

/* CLOCK.PHP – Log Kehadiran */
.table-clock {
    min-width: 600px;
}

/* REQUESTS/LIST.PHP – Senarai Permohonan */
.table-requests {
    min-width: 900px;
}

/* ADMIN/MONITOR_FLOW.PHP – Pemantauan Projek */
.monitor-table {
    min-width: 1100px;
}

/* ============================================
   ACTION LINKS – PASTIKAN SEJAJAR
   ============================================ */

/* Pastikan semua td yang mengandungi .action-links menggunakan flex */
table tbody td .action-links {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 0;
    padding: 0 !important;
    height: 100%;
    width: 100%;
    min-height: 32px;
}

.action-links form {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    height: auto;
}

.action-links .btn-action,
.action-links a.btn-action,
.action-links button.btn-action {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 10px !important;
    font-size: 0.7rem !important;
    font-weight: 500 !important;
    border: none !important;
    cursor: pointer !important;
    text-decoration: none !important;
    background: var(--gray-200) !important;
    color: var(--gray-800) !important;
    transition: background 0.15s ease, color 0.15s ease !important;
    line-height: 1 !important;
    min-height: 26px !important;
    height: 26px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    white-space: nowrap;
    flex-shrink: 0;
}

.action-links .btn-action:hover {
    background: var(--primary) !important;
    color: #fff !important;
}

.action-links .btn-view {
    background: var(--info) !important;
    color: #fff !important;
}
.action-links .btn-view:hover {
    background: #0b5ed7 !important;
}

.action-links .btn-approve {
    background: var(--success) !important;
    color: #fff !important;
}
.action-links .btn-approve:hover {
    background: #146c2c !important;
}

.action-links .btn-reject {
    background: var(--danger) !important;
    color: #fff !important;
}
.action-links .btn-reject:hover {
    background: #8b1a1a !important;
}

.action-links .btn-select {
    background: #00695c !important;
    color: #fff !important;
}
.action-links .btn-select:hover {
    background: #004d40 !important;
}

.action-links .btn-shortlist {
    background: var(--warning) !important;
    color: #fff !important;
}
.action-links .btn-shortlist:hover {
    background: #9a7209 !important;
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    display: inline-block;
    padding: 3px 14px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 0 !important;
}

.badge-pending    { background: #fff3e0; color: #b85c00; }
.badge-approved   { background: #e8f5e9; color: #1b5e20; }
.badge-rejected   { background: #fce4ec; color: #b71c1c; }
.badge-shortlisted{ background: #e3f2fd; color: #0d47a1; }
.badge-selected   { background: #e0f7fa; color: #00695c; }
.badge-submitted  { background: #f3e5f5; color: #4a148c; }
.badge-appointed  { background: #1b5e20; color: #fff; }
.badge-saved      { background: #fff3e0; color: #b85c00; }
.badge-accepted   { background: #0b1a33; color: #fff; }
.badge-notinterested { background: #fce4ec; color: #b71c1c; }
.badge-cancelled  { background: #e0e0e0; color: #555; }
.badge-default    { background: var(--gray-200); color: var(--gray-700); }

/* ============================================
   FORMS
   ============================================ */
form {
    max-width: 820px;
    margin: 0 auto;
    width: 100%;
}

fieldset {
    border: 1px solid var(--gray-200);
    padding: 20px 24px;
    margin-bottom: 24px;
    background: #fff;
    max-width: 100%;
}

legend {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    padding: 0 12px;
}

form label {
    display: block;
    font-weight: 500;
    margin: 12px 0 4px;
    color: var(--gray-800);
    font-size: 0.9rem;
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="number"],
form input[type="date"],
form input[type="file"],
form select,
form textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--gray-300);
    font-size: 0.95rem;
    background: #fff;
    font-family: inherit;
    border-radius: 0 !important;
    max-width: 100%;
}

form input:focus,
form select:focus,
form textarea:focus {
    border-color: var(--primary);
    outline: 2px solid rgba(11, 26, 51, 0.15);
    outline-offset: 0;
}

form textarea {
    min-height: 100px;
    resize: vertical;
}

form button[type="submit"] {
    padding: 8px 24px;
    font-size: 1rem;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    border-radius: 0 !important;
}
form button[type="submit"]:hover {
    background: var(--primary-dark);
}

/* ============================================
   MESSAGES
   ============================================ */
.error,
.success,
.info,
.warning {
    padding: 12px 18px;
    margin: 16px 0;
    border-left: 4px solid;
    font-size: 0.95rem;
    border-radius: 0 !important;
    max-width: 100%;
}

.error   { background: #fce4ec; color: #b71c1c; border-color: var(--danger); }
.success { background: #e8f5e9; color: #1b5e20; border-color: var(--success); }
.info    { background: #e3f2fd; color: #0d47a1; border-color: var(--info); }
.warning { background: #fff3e0; color: #b85c00; border-color: var(--warning); }

/* ============================================
   STATISTICS CARDS
   ============================================ */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
    width: 100%;
}

.stat-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    padding: 16px 12px;
    text-align: center;
}

.stat-card .number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.stat-card .label {
    font-size: 0.8rem;
    color: var(--gray-600);
    margin-top: 4px;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    margin-top: 24px;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 18px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background 0.15s ease;
    border-radius: 0 !important;
    min-height: 34px;
}

.pagination a:hover {
    background: var(--primary-dark);
}

.Halaman {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    color: var(--gray-700);
    font-size: 0.85rem;
    min-height: 34px;
}

/* ============================================
   MODAL
   ============================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 24px 28px;
    max-width: 700px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    position: relative;
    border-radius: 0 !important;
}

.modal-close {
    position: absolute;
    right: 18px;
    top: 12px;
    font-size: 28px;
    font-weight: 300;
    color: var(--gray-500);
    cursor: pointer;
    transition: color 0.15s ease;
    line-height: 1;
}
.modal-close:hover {
    color: var(--gray-900);
}

.modal-content h3 {
    margin-top: 0;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
    margin-bottom: 16px;
    color: var(--primary);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: #fff;
    border-top: 2px solid var(--primary);
    padding: 16px 24px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--gray-600);
    flex-shrink: 0;
    width: 100%;
    margin-top: auto;
}

.site-footer .footer-small {
    font-size: 0.7rem;
    color: var(--gray-500);
    margin-top: 2px;
}

/* ============================================
   POSTER SECTION
   ============================================ */
.poster-section {
    margin-top: 16px;
    padding: 16px 20px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    max-width: 100%;
}

.poster-section img {
    max-width: 200px;
    max-height: 200px;
    border: 1px solid var(--gray-200);
}

/* ============================================
   UTILITY
   ============================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.p-10 { padding: 10px; }
.p-20 { padding: 20px; }
.clearfix::after { content: ""; display: table; clear: both; }

/* ============================================
   RESPONSIVE – TABLET & KE BAWAH
   ============================================ */

@media (max-width: 992px) {
    .sidebar {
        width: 220px;
    }
    .main-content {
        margin-left: 220px;
        padding: 20px 24px;
    }
}

/* ============================================
   RESPONSIVE – TELEFON & KE BAWAH
   ============================================ */

@media (max-width: 768px) {
    .app-wrapper {
        flex-direction: column;
    }

    /* Sidebar menjadi horizontal scroll */
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 2px solid var(--secondary);
        overflow-y: visible;
        padding-bottom: 4px;
    }

    .sidebar-brand {
        padding: 12px 16px;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    .sidebar-brand a {
        font-size: 1.1rem;
    }

    .sidebar-nav {
        padding: 6px 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .sidebar-nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 2px 6px;
        padding: 4px 0;
    }

    .sidebar-nav ul li {
        display: inline-block;
        margin: 0;
    }

    .sidebar-nav ul li a {
        padding: 4px 12px;
        font-size: 0.7rem;
        border-left: none;
        border-bottom: 2px solid transparent;
        white-space: nowrap;
    }

    .sidebar-nav ul li a:hover {
        border-left-color: transparent;
        border-bottom-color: var(--secondary);
        background: rgba(255,255,255,0.05);
    }

    .sidebar-nav ul li a.nav-logout {
        border-top: none;
        margin-top: 0;
        padding-top: 4px;
        border-bottom: 2px solid transparent;
        background: rgba(178, 34, 52, 0.2);
    }

    .sidebar-nav ul li a.nav-logout:hover {
        background: rgba(178, 34, 52, 0.4);
        border-bottom-color: var(--secondary);
    }

    .nav-divider {
        display: none !important;
    }
    .sidebar-footer {
        display: none !important;
    }

    .main-content {
        margin-left: 0;
        padding: 16px;
    }
    .main-content.full-width {
        padding: 16px;
    }

    .top-navbar {
        padding: 10px 16px;
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
        text-align: center;
    }
    .top-navbar-nav {
        justify-content: center;
        gap: 4px 16px;
    }
    .top-navbar-nav a {
        font-size: 0.8rem;
    }

    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .stat-card .number {
        font-size: 1.6rem;
    }

    /* Sembunyikan lajur yang kurang penting pada telefon */
    .table-requests th:nth-child(4),
    .table-requests td:nth-child(4), /* Fakulti */
    .table-requests th:nth-child(5),
    .table-requests td:nth-child(5), /* Bilangan */
    .table-requests th:nth-child(7),
    .table-requests td:nth-child(7), /* Tarikh Lantik */
    .table-jobs th:nth-child(3),
    .table-jobs td:nth-child(3), /* Kekosongan */
    .table-jobs th:nth-child(4),
    .table-jobs td:nth-child(4), /* Tarikh */
    .table-selected th:nth-child(3),
    .table-selected td:nth-child(3), /* Status */
    .table-view-applicants .hide-mobile,
    .table-report .hide-mobile,
    .table-selected .hide-mobile {
        display: none !important;
    }

    /* Butang action lebih kecil */
    .action-links .btn-action,
    .action-links a.btn-action,
    .action-links button.btn-action {
        font-size: 0.6rem !important;
        padding: 0 6px !important;
        min-height: 22px !important;
        height: 22px !important;
    }

    .badge {
        font-size: 0.6rem !important;
        padding: 2px 8px !important;
    }

    .btn,
    button,
    input[type="submit"],
    input[type="button"] {
        padding: 6px 16px;
        font-size: 0.8rem;
        min-height: 34px;
    }

    fieldset {
        padding: 14px 16px;
    }
    form {
        padding: 0 4px;
    }

    .pagination a {
        padding: 4px 12px;
        font-size: 0.75rem;
        min-height: 30px;
    }

    .modal-content {
        padding: 16px 18px;
        margin: 10% auto;
        width: 95%;
    }

    .detail-table th {
        width: 35%;
        padding: 6px 10px !important;
        font-size: 0.8rem;
    }
    .detail-table td {
        padding: 6px 10px !important;
        font-size: 0.8rem;
    }
}

/* ============================================
   RESPONSIVE – TELEFON SANGAT KECIL
   ============================================ */

@media (max-width: 480px) {
    .sidebar-nav ul li a {
        padding: 3px 8px;
        font-size: 0.6rem;
    }
    .sidebar-nav {
        padding: 4px 4px;
    }

    .top-navbar-brand a {
        font-size: 1rem;
    }
    .top-navbar-nav a {
        font-size: 0.7rem;
    }

    .main-content {
        padding: 10px;
    }

    .dashboard-stats {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .stat-card {
        padding: 10px 6px;
    }
    .stat-card .number {
        font-size: 1.3rem;
    }
    .stat-card .label {
        font-size: 0.65rem;
    }

    /* Sembunyikan lebih banyak lajur */
    .table-requests th:nth-child(1),
    .table-requests td:nth-child(1) { /* ID */
        display: none !important;
    }
    .table-requests th:nth-child(6),
    .table-requests td:nth-child(6) { /* Pemohon */
        display: none !important;
    }
    .table-jobs th:nth-child(5),
    .table-jobs td:nth-child(5) { /* Tempat */
        display: none !important;
    }
    .table-report .hide-phone,
    .table-selected .hide-phone,
    .table-clock .hide-phone {
        display: none !important;
    }

    .action-links .btn-action,
    .action-links a.btn-action,
    .action-links button.btn-action {
        font-size: 0.55rem !important;
        padding: 0 4px !important;
        min-height: 20px !important;
        height: 20px !important;
    }

    .badge {
        font-size: 0.55rem !important;
        padding: 1px 6px !important;
    }

    .btn,
    button,
    input[type="submit"],
    input[type="button"] {
        padding: 4px 12px;
        font-size: 0.75rem;
        min-height: 30px;
    }

    fieldset {
        padding: 10px 12px;
    }
    form input,
    form select,
    form textarea {
        padding: 4px 8px;
        font-size: 0.85rem;
    }

    .detail-table th {
        width: 40%;
        padding: 4px 6px !important;
        font-size: 0.7rem;
    }
    .detail-table td {
        padding: 4px 6px !important;
        font-size: 0.7rem;
    }
}