* {
    box-sizing: border-box;
}

:root {
    --bg: #f5f7fb;
    --card: #ffffff;
    --text: #14213d;
    --muted: #6b7280;
    --line: #e8edf5;
    --primary: #2563eb;
    --primary-soft: #dbeafe;
    --success: #16a34a;
    --warning: #d97706;
    --danger: #dc2626;
    --shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    --radius: 18px;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: Inter, Arial, sans-serif;
    background: linear-gradient(180deg, #f8fafc 0%, #f3f6fb 100%);
    color: var(--text);
}

body {
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
}

.app-shell {
    min-height: 100vh;
    display: flex;
}

.sidebar {
    width: 280px;
    background: #0f172a;
    color: #fff;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-mark {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 20px;
    flex: 0 0 auto;
}

.brand h1 {
    font-size: 18px;
    margin: 0;
}

.brand p {
    font-size: 13px;
    color: #cbd5e1;
    margin: 4px 0 0;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-menu a {
    padding: 12px 14px;
    border-radius: 12px;
    color: #cbd5e1;
    transition: .2s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.logout-box {
    margin-top: auto;
}

.mobile-topbar,
.mobile-bottom-nav {
    display: none;
}

.content {
    flex: 1;
    padding: 28px;
}

.content.guest {
    display: grid;
    place-items: center;
    padding: 24px;
}

.auth-wrap {
    width: 100%;
    display: grid;
    place-items: center;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 28px;
    box-shadow: var(--shadow);
    padding: 32px;
}

.auth-card.compact {
    max-width: 420px;
}

.auth-head {
    margin-bottom: 18px;
}

.auth-head h2 {
    margin: 0 0 8px;
    font-size: 28px;
}

.auth-head p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.auth-separator {
    height: 1px;
    background: var(--line);
    margin: 18px 0;
}

.page-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}

.page-head h2 {
    margin: 0 0 6px;
}

.page-head p {
    margin: 0;
    color: var(--muted);
}

.server-time {
    background: var(--card);
    border-radius: 16px;
    padding: 14px 18px;
    box-shadow: var(--shadow);
    min-width: 220px;
}

.server-time span {
    color: var(--muted);
    font-size: 12px;
    display: block;
    margin-bottom: 6px;
}

.server-time strong {
    font-size: 18px;
}

.card,
.stat-card,
.alert {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.card {
    padding: 22px;
    border: 1px solid var(--line);
}

.card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.card-head h3 {
    margin: 0;
    font-size: 18px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.user-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card {
    padding: 20px;
    border: 1px solid var(--line);
}

.stat-card span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 8px;
}

.stat-card strong {
    font-size: 24px;
}

.card-grid {
    display: grid;
    gap: 20px;
}

.card-grid.two {
    grid-template-columns: 1.1fr .9fr;
}

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

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full {
    grid-column: 1 / -1;
}

label {
    font-size: 14px;
    font-weight: 600;
}

input, select, textarea, button {
    font: inherit;
}

input, select, textarea {
    width: 100%;
    border: 1px solid #d9e3f1;
    background: #fff;
    border-radius: 14px;
    padding: 13px 14px;
    outline: none;
    transition: .2s ease;
}

input:focus, select:focus, textarea:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .1);
}

.checkbox {
    flex-direction: row;
    align-items: center;
}

.checkbox input {
    width: 18px;
    height: 18px;
}

.btn {
    border: none;
    border-radius: 14px;
    padding: 12px 18px;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: .2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
}

.btn-light {
    background: #eef4ff;
    color: var(--text);
}

.btn-danger {
    background: #fee2e2;
    color: #991b1b;
}

.btn-xs {
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 12px;
}

.btn-block {
    width: 100%;
}

.filter-bar,
.button-row,
.action-inline {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.button-row-stretch > * {
    flex: 1 1 0;
}

.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-meta {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f8fbff;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.pagination-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px solid var(--line);
}

.pagination-info {
    color: var(--muted);
    font-size: 13px;
}

.pagination-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.pagination-link {
    min-width: 42px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    transition: .2s ease;
}

.pagination-link:hover {
    border-color: #bfdbfe;
    background: #f8fbff;
}

.pagination-link.is-active {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border-color: transparent;
    color: #fff;
}

.pagination-link.is-disabled {
    pointer-events: none;
    opacity: 0.45;
}

.pagination-link-nav {
    min-width: 82px;
}

.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    color: var(--muted);
    font-weight: 700;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

th, td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

th {
    text-align: left;
    color: var(--muted);
    font-size: 13px;
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    background: #eef2f7;
    color: #334155;
    margin-top: 6px;
}

.badge-success {
    background: #dcfce7;
    color: #166534;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-info {
    background: #dbeafe;
    color: #1d4ed8;
}

.badge-muted {
    background: #e5e7eb;
    color: #374151;
}

.badge-pending {
    background: #fef3c7;
    color: #9a3412;
}

.link {
    color: var(--primary);
    font-weight: 600;
}

.alert {
    padding: 16px 18px;
    margin-bottom: 18px;
    border: 1px solid var(--line);
}

.alert-success {
    background: #ecfdf5;
    color: #166534;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
}

.attendance-status {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.attendance-status > div {
    background: #f8fbff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px;
}

.attendance-status span,
.preview-item span {
    font-size: 13px;
    color: var(--muted);
    display: block;
    margin-bottom: 8px;
}

.attendance-status strong {
    font-size: 24px;
}

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

.preview-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--line);
}

.helper-box,
.location-box,
.empty-state {
    background: #f8fbff;
    border: 1px dashed #c7d7ef;
    border-radius: 16px;
    padding: 16px;
    color: var(--muted);
}

.helper-box-accent {
    background: linear-gradient(180deg, #f8fbff 0%, #edf5ff 100%);
}

.helper-box p,
.location-box p {
    margin: 0;
}

.location-box {
    line-height: 1.65;
}

.empty-state h3 {
    margin-top: 0;
}

.camera-wrap {
    border-radius: 18px;
    overflow: hidden;
    background: #0f172a;
    min-height: 280px;
    display: grid;
    place-items: center;
}

#cameraPreview,
#photoPreview {
    width: 100%;
    min-height: 280px;
    object-fit: cover;
    background: #0f172a;
}

.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.stack-form {
    display: grid;
    gap: 10px;
}

.shortcut-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.shortcut-item {
    display: grid;
    gap: 8px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}

.shortcut-item strong {
    font-size: 15px;
}

.shortcut-item span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.report-stats {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.report-day-card {
    margin-top: 20px;
}

.report-day-card summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    cursor: pointer;
}

.report-day-card summary::-webkit-details-marker {
    display: none;
}

.report-day-card summary p,
.report-position-head p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.report-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
}

.report-position-block {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.report-position-head {
    margin-bottom: 12px;
}

.report-position-head h3 {
    margin: 0;
    font-size: 16px;
}

.report-stats-daily {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.report-stats-wide {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sheet-preview-wrap {
    display: grid;
    gap: 16px;
}

.sheet-preview-head h3 {
    margin: 0 0 6px;
}

.sheet-preview-head p {
    margin: 0;
    color: var(--muted);
}

.attendance-sheet-preview {
    min-width: 1120px;
    border-collapse: collapse;
    table-layout: fixed;
}

.attendance-sheet-preview .sheet-title-row th,
.attendance-sheet-preview .sheet-meta-row th,
.attendance-sheet-preview .sheet-head-row th {
    background: #6e8dc1;
    color: #fff;
    border: 1px solid #dbe5f5;
}

.attendance-sheet-preview .sheet-title-row th {
    text-align: center;
    font-size: 20px;
    letter-spacing: 0.02em;
    padding: 16px 12px;
}

.attendance-sheet-preview .sheet-meta-row th {
    text-align: left;
    font-size: 14px;
    padding: 12px;
}

.attendance-sheet-preview .sheet-head-row th {
    text-align: center;
    font-size: 13px;
    padding: 12px 10px;
}

.attendance-sheet-preview tbody td {
    background: #050505;
    color: #fff;
    border: 1px solid #d7dbe4;
    padding: 10px 8px;
}

.attendance-sheet-preview .col-no {
    width: 60px;
}

.attendance-sheet-preview .col-name {
    width: 290px;
}

.attendance-sheet-preview .col-position {
    width: 260px;
}

.attendance-sheet-preview .col-time {
    width: 110px;
}

.attendance-sheet-preview .col-sign {
    width: 120px;
}

.attendance-sheet-preview .col-note {
    width: 280px;
}

.sheet-status {
    font-weight: 700;
    letter-spacing: 0.03em;
}

.sheet-status-hadir {
    color: #86efac !important;
}

.sheet-status-terlambat,
.sheet-status-menunggu-kehadiran {
    color: #fde68a !important;
}

.sheet-status-tunggu-jadwal {
    color: #cbd5e1 !important;
}

.sheet-status-izin,
.sheet-status-sakit,
.sheet-status-cuti {
    color: #93c5fd !important;
}

.report-position-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.report-position-stat {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    background: #f8fbff;
}

.report-position-stat h4 {
    margin: 0 0 8px;
}

.report-position-stat p {
    margin: 0 0 12px;
    color: var(--muted);
}

.report-mini-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.report-mini-badges span {
    padding: 7px 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 12px;
}



.attendance-toolbar-card {
    margin-bottom: 22px;
}

.attendance-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.95fr);
    gap: 18px;
    align-items: stretch;
}

.attendance-filter-panel,
.attendance-guide-panel {
    height: 100%;
}

.attendance-filter-grid {
    display: grid;
    grid-template-columns: minmax(180px, 220px) minmax(0, 1fr) auto;
    gap: 14px;
    align-items: end;
}

.attendance-filter-field {
    margin: 0;
}

.attendance-filter-search {
    min-width: 0;
}

.attendance-filter-actions {
    display: flex;
    gap: 10px;
    align-items: stretch;
    flex-wrap: wrap;
}

.attendance-filter-actions .btn {
    min-width: 140px;
}

.attendance-helper-box {
    margin-top: 0;
}

.attendance-guide-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.attendance-guide-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--primary);
}

.attendance-guide-list {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    display: grid;
    gap: 8px;
}

.attendance-card-head {
    margin-bottom: 16px;
}

.attendance-admin-stats {
    grid-template-columns: 1.4fr repeat(5, minmax(0, 1fr));
}

.attendance-stat-card {
    min-height: 100%;
}

.attendance-stat-card strong {
    display: block;
    line-height: 1.2;
}

.attendance-stat-card small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
}

.attendance-data-card {
    overflow: hidden;
}

.attendance-table-wrap {
    overflow-x: auto;
    padding-bottom: 4px;
}

.admin-attendance-table {
    width: 100%;
    min-width: 1220px;
}

.admin-attendance-table th {
    white-space: nowrap;
}

.attendance-user-cell,
.attendance-time-cell,
.attendance-schedule-cell,
.attendance-status-cell {
    display: grid;
    gap: 6px;
}

.attendance-user-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.attendance-user-head .badge {
    flex-shrink: 0;
}

.attendance-user-cell strong,
.attendance-time-cell strong,
.attendance-schedule-cell strong {
    font-size: 14px;
}

.attendance-user-cell span,
.attendance-user-cell small,
.attendance-time-cell span,
.attendance-schedule-cell span,
.attendance-status-cell small {
    color: var(--muted);
}

.attendance-note-cell {
    min-width: 240px;
    line-height: 1.6;
    color: var(--muted);
}

.attendance-admin-form {
    min-width: 360px;
    background: #f8fbff;
    border: 1px solid #e4ecf8;
    border-radius: 16px;
    padding: 14px;
}

.attendance-admin-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 10px;
    align-items: end;
}

.attendance-admin-field {
    min-width: 0;
}

.attendance-admin-field label {
    font-size: 12px;
}

.attendance-admin-submit {
    grid-column: 1 / -1;
}

.attendance-admin-submit .btn {
    width: 100%;
}

.attendance-status-cell .badge {
    margin-top: 0;
}

.report-mini-badges span {
    line-height: 1.3;
}

.field-hint {
    font-size: 12px;
    color: var(--muted);
}

.map-canvas {
    width: 100%;
    min-height: 320px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #e5eefb;
}

.map-canvas-lg {
    min-height: 420px;
}

.map-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.map-meta-item {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px 16px;
    background: #f8fbff;
}

.map-meta-item span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 6px;
}

.map-meta-item strong {
    display: block;
    font-size: 15px;
    word-break: break-word;
}

.leaflet-container {
    font: inherit;
}


.map-pin {
    width: 28px !important;
    height: 28px !important;
    margin-left: -14px !important;
    margin-top: -14px !important;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
    border: 2px solid rgba(255, 255, 255, 0.95);
}

.map-pin-office {
    background: #2563eb;
}

.map-pin-current {
    background: #16a34a;
}

.map-pin-clockin {
    background: #d97706;
}

.map-pin-clockout {
    background: #0f172a;
}


@media (max-width: 1200px) {
    .attendance-toolbar {
        grid-template-columns: 1fr;
    }

    .attendance-admin-stats,
    .report-stats-wide {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 768px) {
    .attendance-filter-grid,
    .attendance-admin-grid {
        grid-template-columns: 1fr;
    }

    .attendance-filter-actions,
    .attendance-filter-actions .btn {
        width: 100%;
    }

    .attendance-admin-form {
        min-width: 100%;
    }

    .attendance-note-cell {
        min-width: 0;
    }

    .attendance-admin-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .report-position-grid,
    .report-stats-wide {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1100px) {
    .card-grid.two,
    .stats-grid,
    .user-stats,
    .report-position-grid,
    .shortcut-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 860px) {
    body.is-auth {
        padding-top: calc(env(safe-area-inset-top) + 78px);
        padding-bottom: calc(env(safe-area-inset-bottom) + 92px);
    }

    .app-shell {
        display: block;
    }

    .sidebar {
        display: none;
    }

    .mobile-topbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 50;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: calc(env(safe-area-inset-top) + 12px) 16px 12px;
        background: rgba(15, 23, 42, 0.96);
        backdrop-filter: blur(14px);
        color: #fff;
        box-shadow: 0 12px 30px rgba(15, 23, 42, 0.24);
    }

    .mobile-topbar .brand-mark {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        font-size: 18px;
    }

    .mobile-topbar__brand {
        display: flex;
        align-items: center;
        gap: 12px;
        min-width: 0;
    }

    .mobile-topbar__brand strong,
    .mobile-topbar__brand span {
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-topbar__brand strong {
        font-size: 15px;
    }

    .mobile-topbar__brand span {
        color: #cbd5e1;
        font-size: 12px;
        margin-top: 3px;
    }

    .mobile-logout {
        flex: 0 0 auto;
    }

    .mobile-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 60;
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding: 10px 12px calc(env(safe-area-inset-bottom) + 10px);
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(18px);
        border-top: 1px solid rgba(226, 232, 240, 0.95);
        box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.08);
        scrollbar-width: none;
    }

    .mobile-bottom-nav::-webkit-scrollbar {
        display: none;
    }

    .mobile-bottom-nav__item {
        min-width: 74px;
        display: grid;
        gap: 6px;
        justify-items: center;
        padding: 10px 12px;
        border-radius: 18px;
        color: var(--muted);
        flex: 1 0 auto;
    }

    .mobile-bottom-nav__item.active {
        color: var(--primary);
        background: #eff6ff;
    }

    .mobile-bottom-nav__icon {
        min-width: 38px;
        height: 32px;
        padding: 0 8px;
        border-radius: 999px;
        display: grid;
        place-items: center;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.08em;
        background: #f1f5f9;
    }

    .mobile-bottom-nav__item.active .mobile-bottom-nav__icon {
        background: #dbeafe;
    }

    .mobile-bottom-nav__label {
        font-size: 11px;
        font-weight: 600;
        white-space: nowrap;
    }

    .content {
        padding: 16px;
    }

    .page-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .server-time {
        width: 100%;
        min-width: 0;
    }

    .card {
        padding: 18px;
    }

    .card-grid.two,
    .stats-grid,
    .user-stats,
    .form-grid,
    .attendance-status,
    .preview-grid,
    .report-position-grid,
    .shortcut-grid,
    .map-meta-grid {
        grid-template-columns: 1fr;
    }

    .button-row,
    .filter-bar,
    .action-inline {
        align-items: stretch;
    }

    .button-row > *,
    .filter-bar > *,
    .action-inline > * {
        width: 100%;
    }

    .table-wrap table:not(.attendance-sheet-preview) thead {
        display: none;
    }

    .table-wrap table:not(.attendance-sheet-preview),
    .table-wrap table:not(.attendance-sheet-preview) tbody,
    .table-wrap table:not(.attendance-sheet-preview) tr,
    .table-wrap table:not(.attendance-sheet-preview) td {
        display: block;
        width: 100%;
    }

    .table-wrap table:not(.attendance-sheet-preview) tr {
        border: 1px solid var(--line);
        border-radius: 16px;
        margin-bottom: 14px;
        overflow: hidden;
        background: #fff;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    }

    .table-wrap table:not(.attendance-sheet-preview) td {
        border-bottom: 1px solid #eef2f7;
        padding: 12px 14px;
    }

    .table-wrap table:not(.attendance-sheet-preview) td:last-child {
        border-bottom: none;
    }

    .table-wrap table:not(.attendance-sheet-preview) td[data-label]::before {
        content: attr(data-label);
        display: block;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.03em;
        text-transform: uppercase;
        color: var(--muted);
        margin-bottom: 6px;
    }

    .attendance-table-wrap {
        overflow: visible;
    }

    .admin-attendance-table {
        min-width: 0;
        border-collapse: separate;
        border-spacing: 0;
    }

    .admin-attendance-table tbody {
        display: grid;
        gap: 14px;
    }

    .admin-attendance-table tbody tr {
        margin-bottom: 0 !important;
        border-radius: 18px !important;
    }

    .admin-attendance-table td {
        padding: 14px !important;
    }

    .attendance-user-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .attendance-status-cell {
        gap: 8px;
    }

    .attendance-admin-form {
        padding: 12px;
        border-radius: 14px;
    }

    .attendance-admin-submit {
        margin-top: 2px;
    }

    .attendance-sheet-preview {
        min-width: 720px;
    }

    .table-meta {
        width: 100%;
        justify-content: center;
    }

    .pagination-bar {
        align-items: stretch;
    }

    .pagination-info,
    .pagination-links {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .pagination-link {
        flex: 1 1 calc(20% - 8px);
    }

    .pagination-link-nav {
        flex-basis: calc(50% - 8px);
    }
}


.page-head-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.photo-toolbar-card {
    overflow: hidden;
}

.photo-helper-box {
    min-height: 100%;
}

.photo-filter-grid {
    align-items: end;
}

.photo-admin-stats {
    margin-bottom: 1.5rem;
}

.photo-stat-card-highlight {
    background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%);
    color: #fff;
}

.photo-stat-card-highlight span,
.photo-stat-card-highlight small {
    color: rgba(255, 255, 255, 0.8);
}

.photo-gallery-card {
    padding: 24px;
}

.photo-gallery-head {
    align-items: flex-start;
    gap: 16px;
}

.photo-gallery-grid {
    display: grid;
    gap: 18px;
}

.photo-gallery-grid-list {
    grid-template-columns: 1fr;
}

.photo-attendance-card {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 26px;
    padding: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,0.99) 0%, rgba(248,250,252,0.98) 100%);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    display: grid;
    gap: 16px;
}

.photo-attendance-card-list {
    position: relative;
    overflow: hidden;
}

.photo-attendance-card-list::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: linear-gradient(180deg, #2563eb 0%, #60a5fa 100%);
}

.photo-attendance-card__top {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

.photo-attendance-user {
    display: flex;
    gap: 14px;
    align-items: center;
    min-width: 0;
}

.photo-avatar {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    flex: 0 0 56px;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1d4ed8;
    font-weight: 800;
    font-size: 18px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.65);
}

.photo-attendance-user h4 {
    margin: 0 0 4px;
    font-size: 1.02rem;
    color: var(--text);
    word-break: break-word;
}

.photo-attendance-user p {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
    word-break: break-word;
}

.photo-attendance-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.photo-card-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.photo-card-meta-row-compact {
    margin-top: -4px;
}

.photo-meta-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #eff6ff;
    color: #1e3a8a;
    padding: 8px 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.photo-action-panel {
    border: 1px solid #dbeafe;
    border-radius: 22px;
    background: linear-gradient(180deg, #f8fbff 0%, #eff6ff 100%);
    padding: 16px;
    display: grid;
    gap: 14px;
}

.photo-action-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.photo-action-panel__header strong {
    display: block;
    font-size: 0.98rem;
    color: #0f172a;
    margin-bottom: 4px;
}

.photo-action-panel__header p {
    margin: 0;
    color: #475569;
    font-size: 0.88rem;
}

.photo-action-tip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    padding: 8px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.photo-action-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.photo-switch-btn {
    border: 1px solid rgba(37, 99, 235, 0.18);
    background: #fff;
    border-radius: 20px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
}

.photo-switch-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.12);
}

.photo-switch-btn.is-active {
    border-color: #2563eb;
    background: linear-gradient(180deg, #ffffff 0%, #dbeafe 100%);
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.16);
}

.photo-switch-btn-disabled,
.photo-switch-btn:disabled {
    cursor: not-allowed;
    opacity: 0.72;
    box-shadow: none;
    background: #f8fafc;
    border-style: dashed;
}

.photo-switch-btn__icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    background: linear-gradient(135deg, #2563eb 0%, #60a5fa 100%);
    color: #fff;
    font-weight: 800;
    font-size: 0.96rem;
}

.photo-switch-btn-disabled .photo-switch-btn__icon,
.photo-switch-btn:disabled .photo-switch-btn__icon {
    background: linear-gradient(135deg, #cbd5e1 0%, #e2e8f0 100%);
    color: #64748b;
}

.photo-switch-btn__text {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.photo-switch-btn__text strong {
    color: #0f172a;
    font-size: 0.93rem;
    line-height: 1.35;
    word-break: break-word;
}

.photo-switch-btn__text small {
    color: #64748b;
    font-size: 0.78rem;
}

.photo-preview-shell {
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    background: #fff;
    overflow: hidden;
}

.photo-preview-empty {
    min-height: 170px;
    padding: 24px;
    display: grid;
    place-items: center;
    text-align: center;
    gap: 8px;
    background: radial-gradient(circle at top, rgba(219, 234, 254, 0.55), rgba(255,255,255,0.95) 58%);
}

.photo-preview-empty__icon {
    font-size: 1.8rem;
}

.photo-preview-empty strong {
    color: #0f172a;
}

.photo-preview-empty p {
    margin: 0;
    color: #64748b;
    max-width: 520px;
}

.photo-preview-viewer {
    display: grid;
    gap: 16px;
    padding: 18px;
    background: linear-gradient(180deg, rgba(248,250,252,0.9) 0%, rgba(255,255,255,1) 100%);
}

.photo-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
}

.photo-preview-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.photo-preview-header h4 {
    margin: 0 0 4px;
    color: #0f172a;
    font-size: 1rem;
}

.photo-preview-header p {
    margin: 0;
    color: #64748b;
    font-size: 0.84rem;
}

.photo-preview-body {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
    gap: 16px;
    align-items: start;
}

.photo-preview-media {
    background: #e2e8f0;
    border-radius: 22px;
    overflow: hidden;
    min-height: 260px;
}

.photo-preview-media img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    display: block;
}

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

.photo-preview-info-card {
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 14px;
    display: grid;
    gap: 6px;
}

.photo-preview-info-card span {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
}

.photo-preview-info-card strong {
    color: #0f172a;
    font-size: 0.92rem;
    word-break: break-word;
}

.photo-preview-info-card-wide {
    grid-column: 1 / -1;
}

.photo-preview-open {
    white-space: nowrap;
}

@media (max-width: 900px) {
    .photo-attendance-card__top,
    .photo-action-panel__header,
    .photo-preview-header,
    .photo-preview-body {
        flex-direction: column;
        grid-template-columns: 1fr;
    }

    .photo-attendance-badges {
        justify-content: flex-start;
    }

    .photo-preview-open {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .page-head-actions {
        width: 100%;
    }

    .page-head-actions > * {
        width: 100%;
    }

    .photo-gallery-card {
        padding: 18px;
    }

    .photo-attendance-card {
        padding: 16px;
        border-radius: 22px;
    }

    .photo-attendance-card-list::before {
        width: 100%;
        height: 5px;
        inset: 0 0 auto 0;
    }

    .photo-attendance-user {
        align-items: flex-start;
    }

    .photo-avatar {
        width: 48px;
        height: 48px;
        border-radius: 16px;
        flex-basis: 48px;
    }

    .photo-meta-pill,
    .photo-action-tip {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .photo-action-panel,
    .photo-preview-viewer {
        padding: 14px;
        border-radius: 18px;
    }

    .photo-action-buttons,
    .photo-preview-info {
        grid-template-columns: 1fr;
    }

    .photo-switch-btn {
        padding: 12px;
        border-radius: 18px;
    }

    .photo-preview-empty {
        min-height: 150px;
        padding: 18px;
    }

    .photo-preview-media,
    .photo-preview-media img {
        min-height: 220px;
    }
}

/* Keterangan posisi waktu untuk jam absensi */
.time-with-period {
    display: inline-grid;
    gap: 8px;
    align-items: center;
    justify-items: center;
    line-height: 1.35;
    padding: 2px 0;
}

.time-with-period strong {
    display: block;
    font-size: 14px;
    color: var(--text);
    letter-spacing: .01em;
}

.time-period-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    padding: 6px 11px;
    border-radius: 999px;
    background: #eef6ff;
    color: #2563eb;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.3;
    white-space: nowrap;
}

.time-period-empty {
    background: #f1f5f9;
    color: var(--muted);
}

.attendance-time-cell .time-with-period,
.attendance-status .time-with-period,
.photo-preview-info-card .time-with-period {
    justify-items: flex-start;
}

.attendance-sheet-preview .time-with-period {
    justify-items: center;
}

.photo-meta-time {
    display: inline-grid;
    gap: 6px;
    line-height: 1.35;
}

.photo-meta-time small,
.photo-preview-info-card small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.35;
}

@media (max-width: 640px) {
    .time-with-period {
        justify-items: flex-start;
        gap: 7px;
    }

    .time-period-badge {
        font-size: 10.5px;
        padding: 5px 10px;
    }
}

/* Keterangan periode waktu untuk Jam Masuk/Jam Pulang di dashboard user */
.schedule-time-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.35;
}

.schedule-time-card span {
    margin-bottom: 0;
    line-height: 1.35;
}

.schedule-time-card strong {
    display: block;
    line-height: 1.2;
    margin-top: 2px;
}

.schedule-period-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    padding: 7px 12px;
    border-radius: 999px;
    background: #eef6ff;
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .schedule-time-card {
        gap: 9px;
    }

    .schedule-period-badge {
        font-size: 11px;
        padding: 6px 11px;
    }
}

/* Keterangan periode waktu di halaman Posisi Pegawai admin */
.position-time-group {
    gap: 12px;
}

.position-time-group label {
    margin-bottom: 2px;
}

.position-time-group input[type="time"] {
    margin-bottom: 2px;
}

.position-period-preview {
    margin-top: 2px;
}

.card .table-wrap td .time-with-period {
    justify-items: flex-start;
}

@media (max-width: 640px) {
    .position-time-group .position-period-preview {
        width: fit-content;
    }
}

/* Fitur Bantu Absen */
.assist-entry-btn {
    margin-bottom: 10px;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
}

.auth-secondary-btn {
    margin-top: 10px;
}

.assist-auth-card {
    position: relative;
    overflow: hidden;
}

.assist-auth-card::before {
    content: '';
    position: absolute;
    inset: -80px -80px auto auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(37, 99, 235, .12);
}

.assist-auth-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 900;
    letter-spacing: .04em;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    box-shadow: 0 18px 34px rgba(37, 99, 235, .24);
}

.assist-warning-box,
.assist-login-form {
    margin-top: 16px;
}

.assist-shell {
    width: min(1180px, 100%);
    align-self: flex-start;
}

.assist-page-head {
    padding: 22px;
    border-radius: 26px;
    background: linear-gradient(135deg, #ffffff, #eef6ff);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.assist-eyebrow {
    display: inline-flex;
    margin-bottom: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 800;
}

.assist-logout-form {
    flex: 0 0 auto;
}

.assist-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.assist-filter-card,
.assist-camera-card,
.assist-list-card {
    margin-bottom: 20px;
}

.assist-filter-grid {
    grid-template-columns: minmax(180px, .9fr) minmax(180px, .9fr) minmax(260px, 1.4fr) auto;
    align-items: end;
}

.assist-filter-action .btn {
    min-width: 150px;
}

.assist-filter-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.assist-search-field input[type="search"] {
    min-width: 100%;
}

.assist-search-note {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.assist-search-note strong {
    color: var(--text);
}

.assist-card-subtitle {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.assist-camera-wrap {
    min-height: 340px;
    border: 4px solid #eaf2ff;
}

.assist-employee-list {
    display: grid;
    gap: 14px;
}

.assist-employee-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
    transition: .2s ease;
}

.assist-employee-card.is-selected {
    border-color: #93c5fd;
    box-shadow: 0 18px 34px rgba(37, 99, 235, .12);
}

.assist-avatar {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 22px;
    font-weight: 900;
}

.assist-employee-main {
    min-width: 0;
    display: grid;
    gap: 14px;
}

.assist-employee-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.assist-employee-top h4 {
    margin: 0 0 5px;
    font-size: 17px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.assist-employee-top p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.assist-time-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.assist-time-grid > div {
    padding: 12px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #fff;
}

.assist-time-grid span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.assist-time-grid strong {
    display: block;
    font-size: 14px;
    line-height: 1.4;
}

.assist-card-action-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.assist-state-text {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.assist-setting-panel {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid #bfdbfe;
    border-radius: 20px;
    background: linear-gradient(180deg, #f8fbff 0%, #eff6ff 100%);
}

.assist-setting-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

.assist-setting-head p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.assist-setting-check {
    padding: 12px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--line);
}

@media (max-width: 920px) {
    .assist-filter-grid,
    .assist-time-grid {
        grid-template-columns: 1fr;
    }

    .assist-stats {
        grid-template-columns: 1fr;
    }

    .assist-page-head {
        align-items: stretch;
    }

    .assist-logout-form,
    .assist-logout-form .btn,
    .assist-filter-action .btn,
    .assist-filter-buttons {
        width: 100%;
    }

    .assist-filter-buttons {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 640px) {
    .assist-shell {
        width: 100%;
    }

    .assist-page-head,
    .assist-filter-card,
    .assist-camera-card,
    .assist-list-card {
        border-radius: 22px;
        padding: 18px;
    }

    .assist-employee-card {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .assist-avatar {
        width: 52px;
        height: 52px;
        border-radius: 18px;
    }

    .assist-employee-top,
    .assist-card-action-row,
    .assist-setting-head {
        flex-direction: column;
        align-items: stretch;
    }

    .assist-card-action-row .btn {
        width: 100%;
    }

    .assist-camera-wrap,
    .assist-camera-wrap #cameraPreview,
    .assist-camera-wrap #photoPreview {
        min-height: 300px;
    }
}

.workday-setting-panel {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid #bbf7d0;
    border-radius: 20px;
    background: linear-gradient(180deg, #f7fff9 0%, #ecfdf5 100%);
}

.workday-check-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.workday-check-item {
    padding: 12px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--line);
}

.sheet-status-libur {
    color: #cbd5e1 !important;
}

.assist-date-note {
    margin-bottom: 16px;
}

@media (max-width: 920px) {
    .workday-check-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .workday-check-grid {
        grid-template-columns: 1fr;
    }
}

.shift-position-check {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #f8fafc;
    cursor: pointer;
}

.shift-position-check input {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.shift-position-check span {
    display: grid;
    gap: 5px;
    line-height: 1.45;
}

.shift-position-check small {
    color: var(--muted);
    line-height: 1.5;
}

.status-pill-accent {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #0369a1;
    font-weight: 700;
    font-size: .82rem;
}

.muted-text {
    color: var(--muted);
    font-size: .9rem;
}

@media (max-width: 640px) {
    .shift-position-check {
        padding: 12px;
    }
}

.field-inline-note {
    display: inline-block;
    margin-left: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}

.position-time-group {
    gap: 14px;
}

.position-time-group label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 0;
    line-height: 1.55;
}

.position-time-group input[type="time"] {
    margin-bottom: 0;
}

.position-period-preview {
    margin-top: 4px;
}

.attendance-shift-note {
    margin-bottom: 16px;
}

.attendance-shift-note p + p {
    margin-top: 8px;
}

@media (max-width: 640px) {
    .field-inline-note {
        margin-left: 0;
    }
}


.day-check-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.day-check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f8fafc;
    font-weight: 600;
    line-height: 1.5;
}

.day-check-item input {
    margin: 0;
}

.field-help-text {
    display: block;
    margin-top: 12px;
    color: var(--muted);
    line-height: 1.7;
}

.shift-day-list {
    display: grid;
    gap: 8px;
}

.shift-day-list small {
    color: var(--muted);
    line-height: 1.6;
}

@media (max-width: 900px) {
    .day-check-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .day-check-grid {
        grid-template-columns: 1fr;
    }

    .day-check-item {
        padding: 11px 12px;
    }
}
