:root {
    --color-green-1: #1d3328;
    --color-green-2: #283d32;
    --color-green-3: #436457;
    --color-green-4: #487363;
    --color-green-5: #5c8173;
    --color-grey-1: #686d6a;
    --color-grey-2: #787e7b;
    --color-grey-3: #8f9492;
    --color-grey-4: #a8b2ae;
    --color-grey-5: #c6d0cc;
}

/* --- Base typography --- */

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 0.9375rem;
    color: #1e293b;
    line-height: 1.5;
    margin: 0;
    background: #2b4a46;
}

/* --- Login page --- */
.login-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    max-width: 380px;
}

a.mobile-logo {
    display: flex;
}

.login-logo {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.login-logo img {
    width: 25%;
    height: auto;
    margin-right: 1rem
}

.login-logo-wrapper {
    display: flex;
    flex-direction: column;
}

.login-logo-title {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 2rem;
}

.login-logo-center {
    display: flex;
    align-items: center;
    align-content: center;
    
}

.login-logo-subtitle {
    margin: 0;
    padding: 0;
    font-size: 1rem;
    font-weight: 400;
    color: #f8fafc;
    letter-spacing: 0.05em;
}

.login-card {
    width: 100%;
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
}

.login-field {
    margin-bottom: 1.25rem;
}

.login-field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.35rem;
}

.login-input {
    width: 100%;
    padding: 0.55rem 0.75rem;
    font-size: 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #1e293b;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}

.login-input:focus {
    border-color: #3d6b5e;
    box-shadow: 0 0 0 3px rgba(43, 74, 70, 0.18);
    outline: none;
}

.login-btn {
    width: 100%;
    padding: 0.6rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(160deg, var(--color-green-2) 0%, var(--color-green-1) 100%);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
    margin-top: 0.5rem;
}

    .login-btn:hover {
        background: linear-gradient(160deg, #273c31 0%, #1e3330 100%);
    }

.login-remember {
    margin-bottom: 1rem;
}

.login-remember label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9375rem;
    color: #475569;
    cursor: pointer;
}

.login-remember input[type="checkbox"] {
    accent-color: #3d6b5e;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

/* --- Page header (inside layout bar) --- */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

    .page-header h1 {
        flex: 1;
        font-size: 1.4375rem;
        font-weight: 600;
        margin: 0;
        color: #0f172a;
    }

    .page-header h3 {
        font-size: 0.9375rem;
        font-weight: 400;
        margin: 0;
        padding: 0;
        color: #475569;
    }

.page-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    color: #3d6b5e;
    flex-shrink: 0;
    margin-right: 0.6rem;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: 1px solid #b8cac7;
    border-radius: 50%;
    color: #475569;
    cursor: pointer;
    flex-shrink: 0;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
    margin-right: 0.85rem;
}

    .btn-back:hover {
        background: #d4e2df;
        border-color: #7a9e98;
        color: #0f172a;
        box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
    }

    .btn-back svg {
        display: block;
    }

/* --- Inline add button (e.g. next to dropdowns) --- */
.btn-add-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: 1px solid #b8cac7;
    border-radius: 50%;
    color: #475569;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
    padding: 0;
}

    .btn-add-inline:hover {
        background: #d4e2df;
        border-color: #7a9e98;
        color: #0f172a;
        box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
    }

/* --- List page actions bar --- */
.list-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.75rem;
}

/* --- Data grid --- */
.data-grid {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    font-size: 0.9375rem;
}

    .data-grid thead th {
        background: #faf7f3;
        color: var(--color-green-1);
        font-weight: 600;
        font-size: 0.8125rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        padding: 0.625rem 1rem;
        border-bottom: 2px solid #e2e8f0;
        text-align: left;
        white-space: nowrap;
    }

.data-grid tbody tr {
    transition: background-color 0.1s;
}

    .data-grid tbody tr:nth-child(odd) {
        background-color: #fcfbfa;
    }

    .data-grid tbody tr:nth-child(even) {
        background-color: #f6f5f3;
    }

    .data-grid tbody tr:hover {
        -webkit-filter: brightness(96%);
        -webkit-transition: all 0.3s ease;
        -moz-transition: all 0.3s ease;
        -o-transition: all 0.3s ease;
        -ms-transition: all 0.3s ease;
        transition: all 0.3s ease;
    }

.data-grid tbody tr.clickable {
    cursor: pointer;
}

.data-grid tbody td {
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
}

.data-grid tbody tr:last-child td {
    border-bottom: none;
}

/* --- Empty state --- */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #94a3b8;
    font-size: 1rem;
}

/* --- Loading state --- */
.loading-state {
    padding: 2rem 1rem;
    color: #94a3b8;
    font-size: 0.9375rem;
}

.w-100 {
    width: 100%
}

.me-3 {
    margin-right: 1rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 2rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 2rem;
}

/* --- Forms --- */

.form-columns {
    display: flex;
    justify-content: space-between;
}

.form-panel {

}

.form-section {
    padding: 1.25rem 1.25rem 1rem;
    margin-bottom: 1.5rem;
}

.form-group-inline {
    display: flex;
    gap: 1rem;
}

.form-group-inline .form-group {
    flex: 1;
    min-width: 0;
}

.form-group-inline .form-control {
    width: 100%;
}

.form-panel .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.form-panel .form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.35rem;
}

.form-panel .form-control,
.form-panel .form-select {
    width: 100%;
    box-sizing: border-box;
    font-size: 0.9375rem;
    padding: 0.45rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #1e293b;
    background-color: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-panel .form-control:focus,
.form-panel .form-select:focus {
    border-color: #3d6b5e;
    box-shadow: 0 0 0 3px rgba(43, 74, 70, 0.18);
    outline: none;
}

.form-panel .form-control.invalid,
.form-panel .form-select.invalid,
.form-panel textarea.invalid {
    border-color: #e50000;
    box-shadow: 0 0 0 3px rgba(229, 0, 0, 0.15);
}

    .form-panel .form-control.invalid:focus,
    .form-panel .form-select.invalid:focus,
    .form-panel textarea.invalid:focus {
        border-color: #e50000;
        box-shadow: 0 0 0 3px rgba(229, 0, 0, 0.2);
        outline: none;
    }

.form-panel .form-check {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9375rem;
    color: #334155;
}

.form-panel .form-check-label {
    font-size: 0.9375rem;
    font-weight: 400;
    color: #334155;
}

/* --- Dual list picker --- */
.dual-list-picker {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
}

.dual-list-column {
    min-width: 0;
}

.dual-list-select {
    min-height: 14rem;
    padding: 0.35rem;
}

    .dual-list-select option {
        padding: 0.35rem 0.45rem;
        border-radius: 4px;
    }

.dual-list-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dual-list-move-btn {
    min-width: 2.25rem;
    justify-content: center;
    font-weight: 700;
}

    .dual-list-move-btn span:not(.btn-icon) {
        padding: 0.45rem 0.55rem;
    }


/* --- Buttons --- */
.btn {
    font-size: 0.9375rem;
    font-weight: 500;
    min-height: 35px;
    border-radius: 0;
    border: 1px solid transparent;
    transition: all 0.15s;
    letter-spacing: 0.01em;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    padding: 0;
    gap: 0;
    overflow: hidden;
}

.btn .btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.6rem;
    align-self: stretch;
    flex-shrink: 0;
    transition: background 0.15s;
}

.btn span:not(.btn-icon) {
    padding: 0rem 1rem;
    flex: 1;
    text-align: center;
}

.btn-primary {
    font-family: Arial;
    background: var(--color-green-3);
    border: 0;
    color: #ffff;
    font-weight: 500;
}

    .btn-primary .btn-icon {
        background: var(--color-green-4);
    }

    .btn-primary:hover {
        background: var(--color-green-4);
        transition: all 0.5s ease;
    }

        .btn-primary:hover .btn-icon {
            background: var(--color-green-3);
            transition: all 0.5s ease;
        }

    .btn-primary:disabled,
    .btn-primary[disabled] {
        opacity: 0.55;
        cursor: not-allowed;
    }

.btn-secondary {
    font-family: Arial;
    background: var(--color-grey-4);
    border: 0;
    color: black;
}

    .btn-secondary .btn-icon {
        background: var(--color-grey-5);
    }

    .btn-secondary:hover {
        background: var(--color-grey-5);
        color: #1e293b;
        transition: all 0.5s ease;
    }

        .btn-secondary:hover .btn-icon {
            background: var(--color-grey-4);
            transition: all 0.5s ease;
        }

    .btn-secondary:disabled,
    .btn-secondary[disabled] {
        background: #d1d5db;
        color: #6b7280;
        opacity: 0.65;
        cursor: not-allowed;
        pointer-events: none;
    }

        .btn-secondary:disabled .btn-icon,
        .btn-secondary[disabled] .btn-icon {
            background: #c4cad3;
        }

        .btn-secondary:disabled:hover,
        .btn-secondary[disabled]:hover {
            background: #d1d5db;
            color: #6b7280;
        }

            .btn-secondary:disabled:hover .btn-icon,
            .btn-secondary[disabled]:hover .btn-icon {
                background: #c4cad3;
            }

.btn-danger {
    font-family: Arial;
    background: #e4cccc;
    border: 0;
    color: #7d2020;
}

    .btn-danger .btn-icon {
        background: #efdada;
    }

    .btn-danger:hover {
        background: #efdada;
        transition: all 0.5s ease;
    }

        .btn-danger:hover .btn-icon {
            background: #e4cccc;
            transition: all 0.5s ease;
        }

.btn-sm .btn-icon {
    padding: 0.25rem 0.45rem;
}

.btn-sm span:not(.btn-icon) {
    padding: 0.25rem 0.65rem;
    font-size: 0.8125rem;
}

.main-panel {
    background-color: #fcfbfa;
    border: 1px solid;
    border-color: rgba(26, 46, 34, 0.12);
}

/* --- Form actions bar --- */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1rem;
    border-left: 1px solid;
    border-right: 1px solid;
    border-bottom: 1px solid;
    background-color: #f6f5f3;
    border-color: rgba(26, 46, 34, 0.12);
}

.form-actions-top {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1rem;
    border-left: 1px solid;
    border-right: 1px solid;
    border-top: 1px solid;
    background-color: #f6f5f3;
    border-color: rgba(26, 46, 34, 0.12);
}

/* --- Validation --- */
.validation-message {
    font-size: 0.875rem;
    margin-top: 0.2rem;
}

.validation-summary-errors {
    font-size: 0.9375rem;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 6px;
    color: #991b1b;
}

/* --- Schedule filter bar --- */
.schedule-filter-bar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    background-color: #f6f5f3;
    border-color: rgba(26, 46, 34, 0.12) !important;
    border: 1px solid;
    padding: 0.6rem 1rem;
    margin-bottom: 1.25rem;
}

.schedule-filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.schedule-filter-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
    margin: 0;
}

.schedule-filter-select {
    font-size: 0.9375rem;
    padding: 0.3rem 0.65rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #1e293b;
    background-color: #fff;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
}

.schedule-filter-select:focus {
    border-color: #3d6b5e;
    box-shadow: 0 0 0 3px rgba(43, 74, 70, 0.15);
}

/* Toggle switch */
.schedule-filter-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
}

.schedule-filter-toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.schedule-filter-toggle-track {
    position: relative;
    display: inline-flex;
    width: 36px;
    height: 20px;
    background: #cbd5e1;
    border-radius: 10px;
    transition: background 0.2s;
    flex-shrink: 0;
}

.schedule-filter-toggle input:checked ~ .schedule-filter-toggle-track {
    background: #3d6b5e;
}

.schedule-filter-toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.schedule-filter-toggle input:checked ~ .schedule-filter-toggle-track .schedule-filter-toggle-thumb {
    transform: translateX(16px);
}

/* --- Week schedule --- */
.week-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.week-label {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    text-align: center;
    flex: 1;
}

.week-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.week-day {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.1s, border-color 0.1s;
}

.week-day:nth-child(even) {
    background: #f8fafc;
}

.week-day:hover {
    background: #eaf2ef;
    border-color: #8fbdb6;
}

    .week-day.today {
        background: #e9efef;
    }

.day-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    color: #94a3b8;
}

.week-day.today .day-icon {
    color: #3d6b5e;
}

.day-header {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    flex: 1;
    min-width: 0;
}

.day-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f172a;
    text-transform: capitalize;
}

.day-date {
    font-size: 0.8125rem;
    color: #64748b;
}

.day-summary {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.1rem;
    margin-left: auto;
    flex-shrink: 0;
}

.day-hours {
    font-size: 1rem;
    font-weight: 600;
    color: #3d6b5e;
}

.day-count {
    font-size: 0.8125rem;
    color: #94a3b8;
}

.day-empty {
    font-size: 0.875rem;
    color: #cbd5e1;
}

.week-total {
    margin-top: 0.75rem;
    text-align: right;
    font-size: 1rem;
    color: #334155;
}

/* --- Monthly view --- */
.month-header-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    margin-bottom: 1px; 
}

.month-header-cell {
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    padding: 0.5rem 0;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px 4px 0 0;
}

.month-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    border: 1px solid #e2e8f0;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    background: #e2e8f0;
}

.month-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.25rem;
    padding: 0.5rem;
    min-height: 70px;
    background: #fff;
    cursor: pointer;
    transition: background-color 0.1s;
}

.month-day:hover {
    background: #eaf2ef;
}

.month-day.empty {
    background: #f8fafc;
    cursor: default;
}

.month-day.today {
    border-top: 3px solid #3d6b5e;
}

.month-day.selected {
    background: #eaf2ef;
    box-shadow: inset 0 0 0 2px #3d6b5e;
}

.month-day-number {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f172a;
}

.month-day .day-hours {
    font-size: 0.875rem;
}

.nav-group-icon {
    display: flex;
}

/* --- Day time entries --- */
.entries-heading {
    font-size: 1.125rem;
    font-weight: 600;
    color: #0f172a;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
}

.day-total {
    margin-top: 0.75rem;
    text-align: right;
    font-size: 1rem;
    color: #334155;
}

.btn-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #c5cdd2;
    border-radius: 0;
    color: #a04040;
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    transition: all 0.15s;
    line-height: 1;
}

.btn-remove:hover {
    background: #fae0e0;
    border-color: #a8b4bb;
    color: #7d2020;
}

/* --- Report --- */
.report-user-section {
    margin-bottom: 1.5rem;
}

.report-user-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px 8px 0 0;
    border-bottom: none;
}

.report-user-header.clickable {
    cursor: pointer;
    transition: background-color 0.1s;
}

.report-user-header.clickable:hover {
    background: #e2e8f0;
}

.report-user-name {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
}

.report-user-total {
    font-size: 1rem;
    font-weight: 600;
    color: #3d6b5e;
}

.report-grid {
    border-radius: 0 0 8px 8px;
}

.report-total-row td {
    background: #f8fafc;
    border-top: 2px solid #e2e8f0;
    padding: 0.5rem 1rem;
}

.report-detail-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.report-detail-user {
    font-size: 1.125rem;
    font-weight: 600;
    color: #0f172a;
}

/* --- Report pivot grid --- */
.report-pivot-wrapper {
    overflow-x: auto;
}

.report-pivot-user {
    font-weight: 600;
    white-space: nowrap;
}

.report-pivot-total {
    font-weight: 600;
    color: #3d6b5e;
}

/* --- Print styles --- */
@media print {
    .sidebar,
    .page-header .btn,
    .page-header .btn-back,
    .week-nav .btn,
    .report-detail-header .btn,
    .schedule-view-toggle {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
        max-width: 100% !important;
    }

    .data-grid,
    .report-user-section {
        break-inside: avoid;
    }
}

/* --- Statistics page --- */
.stats-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stats-chart-card {
    overflow: hidden;
}

.stats-chart-title {
    margin: 0 0 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
}

.stats-chart-wrap {
    overflow-x: auto;
}

.stats-svg {
    display: block;
    width: 100%;
    max-width: 600px;
    height: auto;
}

.stats-tooltip {
    display: none;
    position: fixed;
    z-index: 9999;
    background: #1e293b;
    color: #f8fafc;
    font-size: 0.8125rem;
    padding: 0.3rem 0.65rem;
    border-radius: 5px;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

/* --- Dashboard --- */
.dashboard-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.25rem 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #3d6b5e;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.875rem;
    color: #64748b;
    text-transform: uppercase;
    margin-top: 0.25rem;
}

.dashboard-actions {
    display: flex;
    gap: 1rem;
}

.dashboard-action-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    color: #1e293b;
    transition: all 0.15s;
    cursor: pointer;
    font: inherit;
}

.dashboard-action-card:hover {
    border-color: #3d6b5e;
    background: #eaf2ef;
    box-shadow: 0 2px 8px rgba(43, 74, 70, 0.10);
}

.dashboard-action-icon {
    width: 32px;
    height: 32px;
    color: #3d6b5e;
}

.dashboard-action-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #0f172a;
}

.dashboard-action-desc {
    font-size: 0.875rem;
    color: #94a3b8;
    text-align: center;
}

/* ==========================================================================
   Responsive — Mobile (<768px)
   ========================================================================== */
@media (max-width: 767.98px) {

    body {
        margin: 0;
        font-size: 1rem;
    }

    /* Prevent iOS Safari auto-zoom on focus — all inputs must be >= 16px */
    input[type="text"],
    input[type="password"],
    input[type="email"],
    input[type="number"],
    input[type="search"],
    input[type="tel"],
    input[type="url"],
    select,
    textarea {
        font-size: 16px !important;
    }

    /* Page header */
    .page-header {
        align-items: flex-start;
    }

    .page-header h1 {
        font-size: 1.25rem;
    }

    .page-header h3 {
        font-size: 1rem;
        font-weight: 400;
        padding: 0;
        margin: 0;
    }

    /* Forms */
    .form-panel {
        max-width: 100%;
    }

    .form-panel .form-control,
    .form-panel .form-select {
        width: 100%;
        box-sizing: border-box;
        padding: 0.55rem 0.75rem;
        font-size: 16px !important;
    }

    .form-panel .form-label {
        font-size: 0.9375rem;
    }

    .form-actions {
        flex-wrap: wrap;
    }

    .dual-list-picker {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .dual-list-actions {
        flex-direction: row;
        justify-content: center;
    }

    .dual-list-move-btn {
        min-width: 2.6rem;
    }

    /* Buttons */
    .btn {
        font-size: 16px;
    }

    .btn .btn-icon {
        padding: 0.45rem 0.6rem;
    }

    .btn span:not(.btn-icon) {
        padding: 0.45rem 1rem;
    }

    /* Data grid */
    .data-grid {
        font-size: 0.9375rem;
    }

    .data-grid thead th {
        padding: 0.5rem 0.5rem;
        font-size: 0.8125rem;
    }

    .data-grid tbody td {
        padding: 0.45rem 0.5rem;
    }

    /* Report pivot */
    .report-pivot-wrapper {
        margin: 0 -1rem;
        padding: 0 1rem;
    }

    /* Week grid */
    .week-grid {
        gap: 0.35rem;
    }

    .week-day {
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
    }

    .day-icon {
        width: 24px;
        height: 24px;
    }

    .day-name {
        font-size: 0.9375rem;
    }

    .day-date {
        font-size: 0.875rem;
    }

    .day-hours {
        font-size: 0.9375rem;
    }

    .day-count {
        display: none;
    }

    /* Week nav */
    .week-nav {
        gap: 0.25rem;
    }

    .week-nav .btn {
        font-size: 0.9375rem;
        padding: 0.4rem 0.5rem;
    }

    .week-label {
        font-size: 0.9375rem;
    }

    /* Month grid */
    .month-day {
        min-height: 55px;
        padding: 0.35rem;
    }

    .month-day-number {
        font-size: 0.8125rem;
    }

    .month-day .day-hours {
        font-size: 0.8125rem;
    }

    .month-header-cell {
        font-size: 0.75rem;
        padding: 0.35rem 0;
    }

    /* Dashboard */
    .dashboard-stats {
        flex-direction: row;
        gap: 0.5rem;
    }

    .stat-card {
        padding: 0.6rem 0.5rem;
    }

    .stat-value {
        font-size: 1rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .dashboard-actions {
        flex-direction: column;
    }

    .dashboard-action-card {
        padding: 0.75rem 0.5rem;
    }

    .dashboard-action-icon {
        width: 24px;
        height: 24px;
    }

    .dashboard-action-title {
        font-size: 1rem;
    }

    .dashboard-action-desc {
        font-size: 0.8125rem;
    }

    /* Login page */
    .login-input {
        font-size: 16px !important;
        padding: 0.6rem 0.75rem;
    }

    .login-btn {
        font-size: 1rem;
        padding: 0.65rem 1rem;
    }

    .login-field label {
        font-size: 0.9375rem;
    }

    /* Schedule view toggle */
    .schedule-view-toggle {
        font-size: 1rem;
    }

    /* Entries heading */
    .entries-heading {
        font-size: 1.125rem;
    }
}


/* --- Wizard step indicator --- */
.wizard-steps {
    display: flex;
    align-items: center;
    padding: 1.25rem 1.25rem 1rem;
}

.wizard-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-grey-5);
    font-size: 0.875rem;
    font-weight: 500;
}

.wizard-step.active {
    color: var(--color-grey-2);
}

.wizard-step.done {
    color: var(--color-green-3);
}

.wizard-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    background: var(--color-grey-5);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
}

.wizard-step.active .wizard-step-number {
    background: var(--color-grey-2);
    color: #fff;
}

.wizard-step.done .wizard-step-number {
    background: var(--color-green-3);
    color: #fff;
}

.wizard-step-connector {
    flex: 1;
    height: 2px;
    background: #e2e8f0;
    margin: 0 0.75rem;
}

/* --- Day progress bar --- */
.day-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.day-progress-bar-wrap {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.day-progress-bar {
    height: 100%;
    background: #2b4a46;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.day-progress-bar.overflow {
    background: #ef4444;
}

/* --- Inline button link --- */
.btn-link {
    background: none;
    border: none;
    padding: 0;
    color: #64748b;
    cursor: pointer;
    font-size: 0.8125rem;
    text-decoration: underline;
}

.btn-link:hover {
    color: #2b4a46;
}

/* --- Status colours --- */
.text-success {
    color: #16a34a;
}

/* --- News banner (home page) --- */
.news-title-wrapper {
    display: flex;
    justify-content: space-between;
}

.news-banner {
    background: #e9efef;
    border: 1px solid #e2e8f0;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}

.news-banner-header {
}

.news-banner-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    background: #2b4a46;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}

.news-banner-date {
    font-size: 0.8125rem;
    color: #64748b;
}

.news-banner-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.25rem;
}

.news-banner-content {
    font-size: 0.9375rem;
    color: #334155;
    line-height: 1.6;
}

.news-banner-content p { margin: 0 0 0.5rem; }
.news-banner-content p:last-child { margin-bottom: 0; }
.news-banner-content ul, .news-banner-content ol { margin: 0 0 0.5rem 1.25rem; }
.news-banner-content strong { font-weight: 600; }

/* --- Quill editor overrides --- */
.ql-container {
    font-family: inherit;
    font-size: 0.9375rem;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    border-color: #cbd5e1;
}

.ql-toolbar {
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    border-color: #cbd5e1;
    background: #f8fafc;
}

/* In MainLayout.razor.css or site.css */
.nav-menu a,
.nav-menu a:visited,
.nav-menu a:hover,
.nav-menu a.active {
    color: #fff;
}
