:root {
    --bg: #f4f6f8;
    --surface: #ffffff;
    --line: #d9dee6;
    --text: #1f2933;
    --muted: #667085;
    --primary: #2364aa;
    --primary-dark: #174a7e;
    --success: #0f766e;
    --danger: #b42318;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

body:not(.sidebar-collapsed) {
    overflow: hidden;
}

.app-shell {
    display: grid;
    grid-template-columns: 240px 1fr;
    height: 100vh;
}

.sidebar-collapsed .app-shell {
    grid-template-columns: 0 1fr;
}

.sidebar {
    background: #26313d;
    color: #ffffff;
    padding: 18px 14px;
    overflow: hidden;
    transition: width 0.2s ease, padding 0.2s ease;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar-collapsed .sidebar {
    width: 0;
    padding: 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}

.company-logo {
    display: block;
    object-fit: contain;
    background: #ffffff;
    border: 1px solid rgba(217, 222, 230, 0.7);
}

.sidebar-logo {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    padding: 4px;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    background: #f4b942;
    color: #1f2933;
    font-weight: 700;
}

.brand small {
    display: block;
    color: #c8d1dc;
    margin-top: 2px;
}

.menu {
    display: grid;
    gap: 16px;
}

.menu-group {
    display: grid;
    gap: 4px;
}

.menu-heading {
    padding: 0 8px 4px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.menu a {
    color: #dce4ee;
    text-decoration: none;
    padding: 9px 10px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.25;
}

.menu a.active,
.menu a:hover {
    background: #344556;
    color: #ffffff;
}

.logout-form {
    display: grid;
    gap: 8px;
    margin-top: 24px;
    color: #dce4ee;
}

.logout-form button,
.sidebar-toggle {
    height: 30px;
}

.content {
    padding: 24px;
    min-width: 0;
    height: 100vh;
    overflow: auto;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: #eef2f6;
}

.auth-shell .content {
    width: min(420px, 100%);
    padding: 0;
}

.sidebar-toggle {
    display: inline-grid;
    place-items: center;
    width: 34px;
    padding: 0;
    margin-bottom: 12px;
    background: #eef2f6;
    color: var(--text);
    border: 1px solid var(--line);
    font-size: 16px;
    line-height: 1;
}

.content > .sidebar-toggle {
    position: sticky;
    top: 0;
    z-index: 60;
    margin-top: 0;
    margin-bottom: 8px;
    transform: translateY(-8px);
}

.dashboard-freeze {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 10px;
    margin: -24px -24px 16px;
    box-shadow: 0 8px 18px rgba(244, 246, 248, 1);
}

.page-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--line);
    padding: 0 0 8px;
}

.page-header h1,
.section-title h2,
.modal-header h2 {
    margin: 0;
}

.page-header h1 {
    font-size: 21px;
    line-height: 1.2;
}

.page-header p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.sync-form {
    display: flex;
    align-items: end;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px;
}

label {
    display: grid;
    gap: 3px;
    color: var(--muted);
    font-size: 11px;
}

input {
    height: 32px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0 10px;
    min-width: 130px;
}

select {
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0 10px;
    min-width: 130px;
    background: #ffffff;
}

button {
    height: 32px;
    border: 0;
    border-radius: 6px;
    background: var(--primary);
    color: #ffffff;
    padding: 0 12px;
    cursor: pointer;
    font-weight: 700;
}

button:hover {
    background: var(--primary-dark);
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.72;
}

.alert {
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 14px;
}

.alert-success {
    background: #e6f4f1;
    color: var(--success);
    border: 1px solid #abd9d1;
}

.alert-error {
    background: #fff0ee;
    color: var(--danger);
    border: 1px solid #f3b2ab;
}

.info-line {
    margin: -4px 0 16px;
    padding: 10px 12px;
    border: 1px solid #b8d7ef;
    border-radius: 6px;
    background: #edf7ff;
    color: #17537a;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 0;
}

.summary-grid article,
.table-section {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.summary-grid article {
    padding: 9px 12px;
}

.summary-grid span {
    display: block;
    color: var(--muted);
    margin-bottom: 4px;
    font-size: 12px;
}

.summary-grid strong {
    font-size: 16px;
    line-height: 1.2;
}

.table-section {
    overflow: hidden;
}

.daily-section {
    margin-bottom: 18px;
}

.event-code-section,
.sap-preview-section {
    margin-bottom: 18px;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
}

.section-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title span,
.muted {
    color: var(--muted);
}

.button-link {
    display: inline-flex;
    align-items: center;
    height: 34px;
    border-radius: 6px;
    background: var(--primary);
    color: #ffffff;
    padding: 0 12px;
    text-decoration: none;
    font-weight: 700;
}

.button-secondary {
    background: #e5eaf0;
    color: var(--text);
}

.button-secondary:hover {
    background: #d5dde8;
}

.table-wrap {
    overflow-x: auto;
    max-height: 62vh;
    overflow-y: auto;
}

.mini-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border-bottom: 1px solid var(--line);
}

.mini-summary div {
    background: #fafbfc;
    padding: 12px 16px;
}

.mini-summary span {
    display: block;
    color: var(--muted);
    margin-bottom: 6px;
}

.mini-summary strong {
    font-size: 18px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 920px;
}

.compact-table {
    min-width: 760px;
}

.sap-preview-table {
    min-width: 1010px;
}

.sap-list-table {
    min-width: 1720px;
}

.site-group-row td {
    background: #dfe8f2;
    color: #26313d;
    font-weight: 700;
    text-transform: uppercase;
}

.shift-cell {
    min-width: 108px;
    text-align: center;
}

.shift-cell strong {
    font-weight: 700;
}

.shift-cell.tidak_valid,
.shift-cell.tna_kosong_terdekat {
    background: #f59e0b;
    color: #111827;
}

.shift-cell.tidak_ada_scan {
    background: #46b3de;
    color: #001f3f;
}

.shift-cell.auto_pasangan {
    background: #f8c7d8;
    color: #7a1230;
}

.shift-cell.tna-complete,
.shift-cell.tna_kosong_lengkap {
    background: #e9d5ff;
    color: #581c87;
}

.template-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
    width: max-content;
    margin: 18px 16px 22px auto;
    color: #44546a;
}

.legend-orange,
.legend-blue,
.legend-pink,
.legend-purple {
    display: inline-block;
    width: 54px;
    height: 30px;
}

.legend-orange {
    background: #f59e0b;
}

.legend-blue {
    background: #46b3de;
}

.legend-pink {
    background: #f8c7d8;
}

.legend-purple {
    background: #e9d5ff;
}

th,
td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    white-space: nowrap;
}

th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #eef2f6;
    color: #344054;
    font-size: 12px;
    text-transform: uppercase;
}

.badge {
    display: inline-block;
    min-width: 48px;
    text-align: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: #e8f1fb;
    color: var(--primary-dark);
    font-weight: 700;
}

.status-badge {
    min-width: 96px;
    text-transform: capitalize;
}

.valid-code {
    min-width: 40px;
    background: #e6f4f1;
    color: var(--success);
}

.permission-table {
    min-width: 860px;
}

.permission-table th,
.permission-table td {
    text-align: center;
}

.permission-table th:nth-child(1),
.permission-table th:nth-child(2),
.permission-table td:nth-child(1),
.permission-table td:nth-child(2) {
    text-align: left;
}

.permission-code {
    min-width: 130px;
    text-align: left;
    border-radius: 6px;
}

.permission-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.permission-check input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--primary);
}

.permission-check input:checked + span {
    color: var(--success);
}

.permission-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 12px 16px 16px;
    color: var(--muted);
    font-size: 12px;
}

.direction-badge {
    min-width: 42px;
    background: #fef3c7;
    color: #92400e;
}

.tna-badge {
    min-width: 112px;
    background: #eef2f6;
    color: #344054;
}

.tna-missing {
    min-width: 70px;
    background: #fff0ee;
    color: var(--danger);
}

.valid_otomatis {
    min-width: 112px;
    background: #e6f4f1;
    color: var(--success);
}

.tidak_valid,
.tna_kosong_terdekat {
    min-width: 92px;
    background: #fef3c7;
    color: #92400e;
}

.tidak_ada_scan {
    min-width: 112px;
    background: #fff0ee;
    color: var(--danger);
}

.auto_pasangan {
    min-width: 112px;
    background: #fde2eb;
    color: #9f1239;
}

.tna_kosong_lengkap {
    min-width: 160px;
    background: #f3e8ff;
    color: #6b21a8;
}

.link-button {
    background: transparent;
    color: var(--primary);
    padding: 0;
    height: auto;
}

.access-form {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    padding: 16px;
}

.access-form button {
    align-self: end;
}

.inline-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.inline-form input {
    min-width: 150px;
}

.role-form select {
    min-width: 110px;
}

.role-form button {
    min-width: 70px;
}

.user-form-section {
    margin-bottom: 18px;
}

.login-panel {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 12px 32px rgba(31, 41, 51, 0.12);
}

.login-panel h1 {
    margin: 0;
    font-size: 20px;
}

.login-panel p {
    margin: 4px 0 0;
    color: var(--muted);
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.login-logo {
    width: 58px;
    height: 58px;
    border-radius: 10px;
    padding: 6px;
}

.login-form {
    display: grid;
    gap: 14px;
}

.login-credit {
    margin-top: 18px;
    text-align: center;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.empty {
    color: var(--muted);
    text-align: center;
    padding: 26px;
}

.modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    z-index: 120;
    background: rgba(15, 23, 42, 0.58);
    padding: 18px;
}

.modal[hidden] {
    display: none;
}

.sync-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.46);
}

.sync-overlay[hidden] {
    display: none;
}

.sync-dialog {
    width: min(440px, 100%);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.26);
}

.sync-dialog h2 {
    margin: 14px 0 8px;
}

.sync-dialog p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.sync-spinner {
    width: 42px;
    height: 42px;
    margin: 0 auto;
    border: 4px solid #d8e3f2;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.modal-panel {
    width: min(520px, 100%);
    background: var(--surface);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    z-index: 121;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.34);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
}

.icon-button {
    width: 34px;
    padding: 0;
    background: #eef2f6;
    color: var(--text);
    font-size: 22px;
}

.image-stage {
    display: grid;
    place-items: center;
    min-height: 260px;
    padding: 16px;
}

.image-stage img {
    max-width: 100%;
    max-height: 420px;
    border-radius: 6px;
}

.live-page {
    display: grid;
    gap: 16px;
}

.live-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.live-header h1 {
    margin: 0;
    font-size: 24px;
}

.live-header p {
    margin: 4px 0 0;
    color: var(--muted);
}

.live-controls {
    display: flex;
    align-items: end;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.live-minutes-input,
.live-duration-input {
    min-width: 96px;
}

.live-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 16px;
    min-height: calc(100vh - 150px);
}

.live-card,
.live-queue {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    overflow: hidden;
}

.live-card {
    display: grid;
    grid-template-columns: minmax(320px, 44%) minmax(0, 1fr);
}

.live-photo {
    display: grid;
    place-items: center;
    min-height: 520px;
    background: #111827;
    color: #cbd5e1;
}

.live-photo img {
    width: 100%;
    height: 100%;
    max-height: 680px;
    object-fit: contain;
    background: #111827;
}

.live-info {
    display: grid;
    align-content: center;
    gap: 18px;
    padding: 28px;
}

.live-status-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
}

.live-status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 999px;
    padding: 0 12px;
    font-weight: 700;
    background: #eef2f6;
    color: #344054;
}

.live-status.ok {
    background: #e6f4f1;
    color: var(--success);
}

.live-status.warning {
    background: #fff7ed;
    color: #b45309;
}

.live-status.idle {
    background: #eef2f6;
    color: #344054;
}

.live-info strong {
    font-size: clamp(30px, 4vw, 54px);
    line-height: 1.08;
}

.live-nrp {
    color: var(--muted);
    font-size: 18px;
}

.live-info dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.live-info dl div {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    background: #fafbfc;
}

.live-info dt {
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 6px;
}

.live-info dd {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.live-queue {
    display: grid;
    grid-template-rows: auto 1fr;
}

.live-queue-list {
    overflow: auto;
    max-height: calc(100vh - 225px);
}

.live-queue-item {
    display: grid;
    gap: 4px;
    width: 100%;
    padding: 11px 14px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: #ffffff;
    color: var(--text);
    text-align: left;
    cursor: pointer;
    height: auto;
    font-weight: 400;
}

.live-queue-item.active,
.live-queue-item:hover {
    background: #edf7ff;
}

.live-queue-item strong {
    font-size: 13px;
}

.live-queue-item span {
    color: var(--muted);
    font-size: 12px;
}

@media (max-width: 820px) {
    body:not(.sidebar-collapsed) {
        overflow: hidden;
    }

    .app-shell {
        grid-template-columns: 1fr;
        min-height: 100vh;
        height: auto;
    }

    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 90;
        width: min(82vw, 300px);
        height: 100vh;
        padding: 18px 14px;
        transform: translateX(-100%);
        transition: transform 0.2s ease;
        box-shadow: 18px 0 32px rgba(15, 23, 42, 0.22);
    }

    body:not(.sidebar-collapsed) .sidebar {
        transform: translateX(0);
    }

    .sidebar-collapsed .sidebar {
        width: min(82vw, 300px);
        padding: 18px 14px;
        transform: translateX(-100%);
    }

    .brand {
        margin-bottom: 20px;
    }

    .menu {
        gap: 12px;
    }

    .menu a {
        padding: 10px 11px;
        font-size: 14px;
    }

    .logout-form {
        margin-top: 18px;
    }

    .content {
        width: 100%;
        height: auto;
        overflow: visible;
        padding: 14px;
    }

    .content > .sidebar-toggle {
        position: sticky;
        top: 8px;
        z-index: 100;
        margin-bottom: 10px;
        transform: none;
    }

    .page-header,
    .sync-form,
    .section-title,
    .section-actions,
    .access-form,
    .live-header,
    .live-controls {
        flex-direction: column;
    }

    .page-header,
    .live-header {
        align-items: stretch;
        gap: 10px;
    }

    .page-header h1,
    .live-header h1 {
        font-size: 20px;
    }

    .page-header p,
    .live-header p {
        font-size: 12px;
        line-height: 1.35;
    }

    .dashboard-freeze {
        padding: 10px 14px;
        margin: -14px -14px 12px;
    }

    .sync-form,
    .live-controls {
        align-items: stretch;
        width: 100%;
        padding: 8px;
    }

    .sync-form label,
    .live-controls label {
        width: 100%;
    }

    .sync-form input,
    .live-controls input,
    .sync-form button,
    .live-controls button {
        width: 100%;
        min-width: 0;
    }

    .access-form {
        grid-template-columns: 1fr;
    }

    .summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .summary-grid article {
        padding: 9px 10px;
    }

    .summary-grid span {
        font-size: 11px;
    }

    .summary-grid strong {
        font-size: 15px;
    }

    .mini-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section-title {
        align-items: stretch;
        padding: 12px;
    }

    .section-actions {
        flex-wrap: wrap;
    }

    .table-wrap {
        max-height: 58vh;
    }

    th,
    td {
        padding: 9px 10px;
        font-size: 12px;
    }

    .template-legend {
        width: auto;
        margin: 12px;
    }

    .legend-orange,
    .legend-blue,
    .legend-pink,
    .legend-purple {
        width: 44px;
        height: 24px;
    }

    .live-stage,
    .live-card {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .live-photo {
        min-height: 300px;
        height: 44vh;
    }

    .live-info {
        gap: 12px;
        padding: 16px;
    }

    .live-status-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .live-info strong {
        font-size: 28px;
    }

    .live-nrp {
        font-size: 15px;
    }

    .live-info dl {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .live-info dd {
        font-size: 17px;
    }

    .live-queue-list {
        max-height: 45vh;
    }

    .modal {
        padding: 12px;
    }

    .modal-panel {
        max-height: calc(100vh - 24px);
    }

    .image-stage {
        min-height: 220px;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 13px;
    }

    .content {
        padding: 12px;
    }

    .dashboard-freeze {
        margin: -12px -12px 12px;
        padding: 10px 12px;
    }

    .summary-grid,
    .mini-summary {
        grid-template-columns: 1fr;
    }

    .table-section {
        border-radius: 6px;
    }

    .live-header h1,
    .page-header h1 {
        font-size: 19px;
    }

    .live-photo {
        height: 38vh;
        min-height: 240px;
    }

    .live-info strong {
        font-size: 23px;
    }

    .permission-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .permission-actions button {
        width: 100%;
    }
}

.master-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.master-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
}

.compact-form,
.employee-form,
.filter-bar {
    display: grid;
    gap: 10px;
}

.compact-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
    margin-bottom: 12px;
}

.employee-form {
    grid-template-columns: repeat(5, minmax(140px, 1fr));
    align-items: end;
}

.filter-bar {
    grid-template-columns: 1.5fr 1fr 1fr auto auto;
    align-items: end;
    margin-bottom: 12px;
}

.inline-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    color: var(--text);
}

.inline-check input {
    min-width: auto;
    width: 16px;
    height: 16px;
}

.mini-table-wrap {
    max-height: 220px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.button-link {
    display: inline-grid;
    place-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 6px;
    background: #eef2f6;
    color: var(--text);
    text-decoration: none;
    border: 1px solid var(--line);
}

@media (max-width: 1000px) {
    .master-grid,
    .compact-form,
    .employee-form,
    .filter-bar {
        grid-template-columns: 1fr;
    }
}
.attendance-list-table td small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
}

.time-cell {
    text-align: center;
    font-weight: 700;
    color: var(--muted);
    white-space: nowrap;
}

.time-cell.filled {
    color: var(--success);
    background: #ecfdf3;
}

.attendance-status.present,
.attendance-status.leave_with_scan {
    background: #dcfce7;
    color: #166534;
}

.attendance-status.leave {
    background: #dbeafe;
    color: #1d4ed8;
}

.attendance-status.incomplete {
    background: #fef3c7;
    color: #92400e;
}

.attendance-status.missing_scan,
.attendance-status.master_incomplete {
    background: #fee2e2;
    color: #991b1b;
}

.attendance-summary {
    grid-template-columns: repeat(5, minmax(120px, 1fr));
}
.master-single-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr)) auto;
    gap: 10px;
    align-items: end;
}

@media (max-width: 1000px) {
    .master-single-form {
        grid-template-columns: 1fr;
    }
}
.import-form {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: 10px;
    align-items: end;
}

.import-form input[type="file"] {
    padding: 5px 10px;
}

@media (max-width: 800px) {
    .import-form {
        grid-template-columns: 1fr;
    }
}