/* =========================================================================
   Vacation Tracker — design system
   ========================================================================= */
:root {
    --vt-bg: #f3f5fa;
    --vt-surface: #ffffff;
    --vt-text: #1e2433;
    --vt-muted: #6b7388;
    --vt-border: #e3e7f0;
    --vt-border-strong: #d0d7e6;

    --vt-primary: #2c3e7e;
    --vt-primary-600: #233264;
    --vt-primary-50: #eef1f9;
    --vt-accent: #5b6dbf;

    --vt-weekend: #d6dae3;
    --vt-holiday: #e35b5b;
    --vt-vacation: #ee9b3a;
    --vt-short: #f4cf3a;
    --vt-early: #ed8a3a;
    --vt-late: #f5d764;

    --vt-shadow-sm: 0 1px 2px rgba(20, 27, 49, .05), 0 1px 3px rgba(20, 27, 49, .08);
    --vt-shadow-md: 0 4px 12px rgba(20, 27, 49, .07), 0 2px 4px rgba(20, 27, 49, .05);
    --vt-shadow-lg: 0 12px 32px rgba(20, 27, 49, .12);
    --vt-radius: 10px;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
    background: var(--vt-bg);
    color: var(--vt-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.shadow-soft { box-shadow: var(--vt-shadow-md) !important; }

/* ----------------------------------------------------------------- Navbar */
.app-navbar {
    background: linear-gradient(135deg, var(--vt-primary) 0%, var(--vt-primary-600) 100%);
    box-shadow: 0 2px 4px rgba(20, 27, 49, .12);
    padding: .55rem 1rem;
}

.app-navbar .navbar-brand {
    color: #fff;
    font-weight: 600;
    letter-spacing: .2px;
    gap: .65rem;
}
.app-navbar .navbar-brand:hover { color: #fff; }

.brand-mark {
    width: 34px; height: 34px;
    background: rgba(255, 255, 255, .14);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: #fff;
}
.brand-text { font-size: 1rem; }

.app-navbar .nav-link {
    color: rgba(255, 255, 255, .82);
    font-weight: 500;
    padding: .45rem .85rem !important;
    border-radius: 8px;
    transition: background-color .15s ease, color .15s ease;
}
.app-navbar .nav-link:hover,
.app-navbar .nav-link:focus,
.app-navbar .nav-link.show {
    color: #fff;
    background: rgba(255, 255, 255, .12);
}
.app-navbar .navbar-toggler {
    border-color: rgba(255, 255, 255, .35);
    padding: .35rem .55rem;
}
.app-navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 .2rem rgba(255, 255, 255, .15);
}
.app-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba%28255,255,255,0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* right cluster (avatar + mobile toggler) sits on row 1 even after collapse wraps */
.navbar-right-cluster { flex-shrink: 0; }
@@media (max-width: 991.98px) {
    .navbar-right-cluster { margin-left: auto; }
}

/* user dropdown trigger */
.user-toggle .avatar {
    width: 32px; height: 32px;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .3px;
}
.user-toggle::after { margin-left: .5rem; }

.user-menu { min-width: 240px; }

/* dropdown polish */
.dropdown-menu {
    border: 1px solid var(--vt-border);
    border-radius: var(--vt-radius);
    padding: .35rem;
}
.dropdown-item {
    border-radius: 6px;
    padding: .5rem .75rem;
    font-size: .92rem;
}
.dropdown-item:active { background-color: var(--vt-primary); }
.dropdown-divider { margin: .35rem 0; border-color: var(--vt-border); }

/* ----------------------------------------------------------------- Layout */
.app-main { max-width: 1800px; margin: 0 auto; }

h1, h2, h3, h4 { color: var(--vt-text); font-weight: 600; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

/* ----------------------------------------------------------------- Cards */
.card {
    border: 1px solid var(--vt-border);
    border-radius: var(--vt-radius);
    box-shadow: var(--vt-shadow-sm);
    background: var(--vt-surface);
}
.card-body { padding: 1.5rem; }
.card-title { font-weight: 600; }

/* ----------------------------------------------------------------- Buttons */
.btn {
    font-weight: 500;
    border-radius: 8px;
    padding: .45rem .9rem;
    transition: transform .04s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .25rem .6rem; font-size: .82rem; }

.btn-primary {
    background: var(--vt-primary);
    border-color: var(--vt-primary);
}
.btn-primary:hover, .btn-primary:focus {
    background: var(--vt-primary-600);
    border-color: var(--vt-primary-600);
    box-shadow: 0 2px 6px rgba(44, 62, 126, .25);
}

.btn-outline-primary {
    color: var(--vt-primary);
    border-color: var(--vt-border-strong);
    background: var(--vt-surface);
}
.btn-outline-primary:hover, .btn-outline-primary.active {
    background: var(--vt-primary);
    border-color: var(--vt-primary);
    color: #fff;
}

.btn-outline-secondary {
    color: var(--vt-text);
    border-color: var(--vt-border-strong);
    background: var(--vt-surface);
}
.btn-outline-secondary:hover {
    background: var(--vt-primary-50);
    border-color: var(--vt-border-strong);
    color: var(--vt-primary-600);
}

.btn-outline-danger {
    border-color: var(--vt-border-strong);
    background: var(--vt-surface);
    color: #b53d3d;
}
.btn-outline-danger:hover { background: #b53d3d; border-color: #b53d3d; color: #fff; }

.btn-outline-warning {
    border-color: var(--vt-border-strong);
    background: var(--vt-surface);
    color: #b87a00;
}
.btn-outline-warning:hover { background: #c98d12; border-color: #c98d12; color: #fff; }

.btn-outline-success {
    border-color: var(--vt-border-strong);
    background: var(--vt-surface);
    color: #1e7a4d;
}
.btn-outline-success:hover { background: #1e7a4d; border-color: #1e7a4d; color: #fff; }

/* My time action buttons */
.time-card .btn {
    padding: .8rem 1.1rem;
    font-size: 1.02rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    color: #fff;
    box-shadow: var(--vt-shadow-sm);
    transition: transform .08s ease, box-shadow .15s ease, filter .15s ease;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    justify-content: center;
    white-space: nowrap;
    line-height: 1.2;
    min-height: 48px;
}
.time-card #btnEndDay {
    padding: .8rem 1.6rem;
    font-size: 1.05rem;
    min-width: 160px;
}
@media (max-width: 767.98px) {
    .time-card #btnStartDay,
    .time-card #btnStartBreak,
    .time-card #btnEndBreak {
        flex: 1 1 0;
        min-width: 0;
    }
    .time-card #btnEndDay {
        flex: 0 0 100%;
        margin-left: 0 !important;
        margin-top: .25rem;
    }
}
.time-card .btn i { font-size: 1.25rem; }
.time-card .btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--vt-shadow-md);
    filter: brightness(1.05);
}
.time-card .btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: var(--vt-shadow-sm);
}
.time-card .btn-success {
    background: linear-gradient(135deg, #2eaa6c 0%, #1e7a4d 100%);
}
.time-card .btn-warning {
    background: linear-gradient(135deg, #e6a13a 0%, #c98d12 100%);
}
.time-card .btn-primary {
    background: linear-gradient(135deg, var(--vt-primary) 0%, var(--vt-primary-600) 100%);
}
.time-card .btn-danger {
    background: linear-gradient(135deg, #e35b5b 0%, #b53d3d 100%);
}
.time-card .btn:disabled,
.time-card .btn.disabled {
    opacity: 1;
    background: #eef0f5 !important;
    color: #aab0bd !important;
    cursor: not-allowed;
    box-shadow: none !important;
    transform: none;
    filter: none;
}
.time-card .btn:disabled:hover,
.time-card .btn.disabled:hover {
    transform: none;
    box-shadow: none;
    filter: none;
}

/* ----------------------------------------------------------------- Forms */
.form-label { font-weight: 500; color: var(--vt-text); }
.form-control, .form-select {
    border-radius: 8px;
    border-color: var(--vt-border-strong);
    padding: .5rem .75rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--vt-accent);
    box-shadow: 0 0 0 3px rgba(91, 109, 191, .18);
}
.form-check-input:checked { background-color: var(--vt-primary); border-color: var(--vt-primary); }
.form-check-input:focus { box-shadow: 0 0 0 3px rgba(91, 109, 191, .18); }

textarea.form-control { min-height: 90px; }

/* ----------------------------------------------------------------- Alerts */
.alert {
    border-radius: var(--vt-radius);
    border: 1px solid transparent;
    padding: .7rem 1rem;
}
.alert-success { background: #e6f4ec; border-color: #c4e3d3; color: #1f6c46; }
.alert-danger  { background: #fbeaea; border-color: #f0c4c4; color: #94312f; }

/* ----------------------------------------------------------------- Tables */
.table {
    --bs-table-bg: var(--vt-surface);
    background: var(--vt-surface);
    border-radius: var(--vt-radius);
    overflow: hidden;
    margin-bottom: 0;
    border: 1px solid var(--vt-border);
}
.table > :not(caption) > * > * { padding: .7rem .9rem; }
.table > thead { background: #f7f9fc; }
.table > thead th {
    color: var(--vt-muted);
    font-weight: 600;
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom-color: var(--vt-border);
}
.table > tbody > tr { border-color: var(--vt-border); }
.table > tbody > tr.table-secondary { --bs-table-bg: #f3f5fa; color: var(--vt-muted); }

.table-responsive { border-radius: var(--vt-radius); }

/* ----------------------------------------------------------------- Toolbar */
.toolbar {
    display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
    margin-bottom: 1rem;
}
.toolbar h4 { margin: 0; font-weight: 600; color: var(--vt-text); }

/* ----------------------------------------------------------------- Calendar grid */
.grid-wrap {
    border: 1px solid var(--vt-border);
    background: #fff;
    overflow-x: auto;
    max-width: 100%;
    border-radius: var(--vt-radius);
    box-shadow: var(--vt-shadow-sm);
}

.grid-table {
    --cw: 38px;
    --ch: 30px;
    --hh: 82px;
    --df: 13px;
    --mf: 11px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 12px;
    table-layout: fixed;
    margin: 0;
}

.grid-table th, .grid-table td {
    border-right: 1px solid var(--vt-border);
    border-bottom: 1px solid var(--vt-border);
    text-align: center;
    vertical-align: middle;
    padding: 0;
}
.grid-table tbody tr:last-child td { border-bottom: none; }

/* day header */
.grid-table thead th {
    background: linear-gradient(180deg, var(--vt-primary) 0%, var(--vt-primary-600) 100%);
    color: #fff;
    font-weight: 600;
    line-height: 1.05;
    padding: 6px 2px;
    min-width: var(--cw);
    width: var(--cw);
    height: var(--hh);
    border-right-color: rgba(255, 255, 255, .12);
}
.grid-table thead th:last-child { border-right: none; }
.grid-table thead th.weekend  { background: #99a1b3; }
.grid-table thead th.holiday-col { background: var(--vt-holiday); }

.grid-table .g-day  { font-size: var(--df); font-weight: 700; }
.grid-table .g-mon  { font-size: var(--mf); opacity: .82; }
.grid-table .g-dow  { font-size: var(--mf); opacity: .82; margin-bottom: 3px; }
.grid-table .p-letter {
    font-size: var(--mf);
    background: rgba(255, 255, 255, .14);
    border-radius: 3px;
    margin: 5px 4px 2px;
    height: calc(var(--mf) + 7px);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.grid-table .p-short {
    font-size: var(--mf);
    direction: rtl;
    opacity: .9;
    margin-bottom: 2px;
}

/* sticky user column */
.grid-table th.user-col,
.grid-table td.user-col {
    background: linear-gradient(180deg, var(--vt-primary) 0%, var(--vt-primary-600) 100%);
    color: #fff;
    text-align: left;
    padding: 8px 14px;
    font-weight: 600;
    width: 150px;
    min-width: 150px;
    position: sticky;
    left: 0;
    z-index: 2;
    box-shadow: 1px 0 0 rgba(0, 0, 0, .1);
}
.grid-table thead th.user-col { z-index: 3; }

/* body cells */
.grid-table tbody td.day-cell {
    height: var(--ch);
    background: #fff;
    position: relative;
    transition: background-color .12s ease;
}
.grid-table tbody td.weekend     { background: var(--vt-weekend); }
.grid-table tbody td.holiday     { background: var(--vt-holiday); }
.grid-table tbody td.vacation    { background: var(--vt-vacation); }

/* Late arrival: absent in the morning (left), present in the afternoon (right). */
.grid-table tbody td.late-arrival{
    background: linear-gradient(to right, var(--vt-short) 0%, #ffffff 70%);
}
/* Early leave: present in the morning (left), absent in the afternoon (right). */
.grid-table tbody td.early-leave {
    background: linear-gradient(to right, #ffffff 30%, var(--vt-short) 100%);
}
/* Short day: late arrival + early leave — yellow at both edges, white center. */
.grid-table tbody td.short-day   {
    background: linear-gradient(to right,
        var(--vt-short) 0%,
        var(--vt-short) 15%,
        #ffffff 50%,
        var(--vt-short) 85%,
        var(--vt-short) 100%);
}

.cell-link {
    display: block;
    position: absolute;
    inset: 0;
    text-decoration: none;
}
.cell-link:hover {
    background: rgba(44, 62, 126, .12);
    box-shadow: inset 0 0 0 2px var(--vt-primary);
}

/* legend */
.legend { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; align-items: center; }

.zoom-controls {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--vt-border-strong);
    border-radius: 999px;
    background: #fff;
    overflow: hidden;
}
.zoom-controls button {
    background: transparent;
    border: none;
    color: var(--vt-text);
    padding: 2px 9px;
    font-size: .9rem;
    line-height: 1;
    cursor: pointer;
}
.zoom-controls button + button { border-left: 1px solid var(--vt-border); }
.zoom-controls button:hover:not(:disabled) {
    background: var(--vt-primary-50);
    color: var(--vt-primary-600);
}
.zoom-controls button:disabled { opacity: .35; cursor: default; }
.legend .lg {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    color: #fff;
    font-weight: 500;
    box-shadow: var(--vt-shadow-sm);
}
.legend .lg::before {
    content: ""; width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255, 255, 255, .55);
}
.legend .lg-weekend  { background: var(--vt-weekend); color: #444; }
.legend .lg-weekend::before  { background: rgba(0,0,0,.25); }
.legend .lg-holiday  { background: var(--vt-holiday); }
.legend .lg-vacation { background: var(--vt-vacation); }
.legend .lg-short    { background: var(--vt-short); color: #4a3a00; }
.legend .lg-short::before { background: rgba(0,0,0,.25); }

/* ----------------------------------------------------------------- Vacation history */
.history-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.history-filters .filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--vt-border);
    cursor: pointer;
    user-select: none;
    font-size: 13px;
    font-weight: 500;
    transition: background-color .12s ease, border-color .12s ease, opacity .12s ease;
}
.history-filters .filter-pill input { display: none; }
.history-filters .filter-pill .dot {
    width: 26px; height: 12px;
    border-radius: 3px;
    background: var(--vt-muted);
    border: 1px solid rgba(0, 0, 0, .08);
}
.history-filters .filter-pill.type-vacation .dot {
    background: var(--vt-vacation);
}
.history-filters .filter-pill.type-short    .dot {
    background: linear-gradient(to right,
        var(--vt-short) 0%,
        var(--vt-short) 15%,
        #ffffff 50%,
        var(--vt-short) 85%,
        var(--vt-short) 100%);
}
.history-filters .filter-pill.type-early    .dot {
    background: linear-gradient(to right, #ffffff 30%, var(--vt-short) 100%);
}
.history-filters .filter-pill.type-late     .dot {
    background: linear-gradient(to right, var(--vt-short) 0%, #ffffff 70%);
}
.history-filters .filter-pill:has(input:not(:checked)) {
    opacity: .45;
    background: #f3f5fa;
}
.history-filters .filter-pill:hover { border-color: var(--vt-border-strong); }

.history-entry.is-hidden { display: none; }

.history-card { font-size: 12px; }
.history-card-header {
    background: linear-gradient(180deg, var(--vt-primary) 0%, var(--vt-primary-600) 100%);
    color: #fff;
    font-weight: 600;
    text-align: center;
    letter-spacing: .3px;
    padding: .45rem .5rem;
    border-bottom: none;
}
.history-card-body { background: #fbfcfe; min-height: 64px; }
.history-card-footer {
    background: #f3f5fa;
    font-size: 12px;
    padding: .45rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.history-total {
    display: inline-block;
    min-width: 32px;
    padding: 2px 12px;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: var(--vt-primary);
    border-radius: 999px;
    box-shadow: var(--vt-shadow-sm);
}
.history-entry {
    display: block;
    padding: 4px 6px;
    margin-bottom: 4px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--vt-text);
    background: #fff;
    border: 1px solid var(--vt-border);
    transition: box-shadow .12s ease, transform .04s ease;
}
.history-entry:hover { box-shadow: var(--vt-shadow-sm); color: var(--vt-text); }
.history-entry-en   { font-weight: 500; }
.history-entry-fa   { color: var(--vt-muted); font-size: 11px; }
.history-entry-time { font-size: 11px; color: var(--vt-muted); margin-top: 2px; }
.history-entry.type-vacation { border-left: 4px solid var(--vt-vacation); }
.history-entry.type-short    { border-left: 4px solid var(--vt-short); }
.history-entry.type-early    { border-left: 4px solid var(--vt-short); }
.history-entry.type-late     { border-left: 4px solid var(--vt-short); }

/* ----------------------------------------------------------------- Login page */
.auth-shell {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}
.auth-card {
    width: 100%;
    max-width: 410px;
    border: 1px solid var(--vt-border);
    border-radius: 14px;
    background: var(--vt-surface);
    box-shadow: var(--vt-shadow-lg);
    padding: 2rem;
}
.auth-card .auth-logo {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, var(--vt-primary), var(--vt-accent));
    color: #fff;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.6rem;
    box-shadow: var(--vt-shadow-md);
}
.auth-card h4 { text-align: center; margin-bottom: .25rem; }
.auth-card .auth-sub { text-align: center; color: var(--vt-muted); font-size: .9rem; margin-bottom: 1.5rem; }

/* ----------------------------------------------------------------- Time tracking */
.time-shell { max-width: 720px; margin: 0 auto; }
.time-card { border-radius: 14px; }
.time-card .card-body { padding: 2rem; }

.status-pill {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 600;
    color: #fff;
    background: var(--vt-muted);
}
.status-pill.status-not     { background: #98a2b3; }
.status-pill.status-working { background: #2eaa6c; }
.status-pill.status-break   { background: #e6a13a; }
.status-pill.status-ended   { background: #3d4456; }

.time-tile {
    background: #f7f9fc;
    border: 1px solid var(--vt-border);
    border-radius: var(--vt-radius);
    padding: 1rem 1.25rem;
    text-align: center;
}
.time-tile-label { color: var(--vt-muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.time-tile-value {
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--vt-primary-600);
    font-feature-settings: "tnum";
    letter-spacing: 1px;
    margin-top: 6px;
}
.time-tile-break .time-tile-value { color: #c98d12; }

.today-table .t-work, .today-table .t-break {
    font-feature-settings: "tnum";
    font-weight: 600;
}
/* Status / Worked / Break / Started / Ended / Leave today centered;
   first (User) left-aligned, last (Actions) right-aligned. */
.today-table thead th:not(:first-child):not(:last-child),
.today-table tbody td:not(:first-child):not(:last-child) {
    text-align: center;
}

/* Mobile: hide Worked / Break / Started / Ended / Actions. Tap a row to see them. */
@media (max-width: 767.98px) {
    .today-table thead th:nth-child(3),
    .today-table thead th:nth-child(4),
    .today-table thead th:nth-child(5),
    .today-table thead th:nth-child(6),
    .today-table thead th:nth-child(8),
    .today-table tbody td:nth-child(3),
    .today-table tbody td:nth-child(4),
    .today-table tbody td:nth-child(5),
    .today-table tbody td:nth-child(6),
    .today-table tbody td:nth-child(8) {
        display: none;
    }
    .today-table tbody tr { cursor: pointer; }
    .today-table tbody tr:active { background: var(--vt-primary-50); }
}
.lv-pill {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 999px;
    font-size: .75rem;
    color: #4a3a00;
    background: var(--vt-muted);
    border: 1px solid rgba(0, 0, 0, .28);
    font-weight: 500;
}
.lv-pill.lv-full   { background: var(--vt-vacation); color: #fff; border-color: transparent; }
.lv-pill.lv-short  {
    background: linear-gradient(to right,
        var(--vt-short) 0%, var(--vt-short) 15%,
        #ffffff 50%,
        var(--vt-short) 85%, var(--vt-short) 100%);
}
.lv-pill.lv-early  { background: linear-gradient(to right, #ffffff 30%, var(--vt-short) 100%); }
.lv-pill.lv-late   { background: linear-gradient(to right, var(--vt-short) 0%, #ffffff 70%); }

.leave-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--vt-radius);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--vt-shadow-sm);
    border: 1px solid transparent;
}
.leave-banner i { font-size: 1.4rem; }
.leave-banner.leave-vacation { background: var(--vt-vacation); color: #fff; }
.leave-banner.leave-short    { background: var(--vt-short);    color: #4a3a00; border-color: #d9b800; }
.leave-banner.leave-early    { background: var(--vt-early);    color: #fff; }
.leave-banner.leave-late     { background: var(--vt-late);     color: #4a3a00; border-color: #d9b800; }

/* ----------------------------------------------------------------- Misc */
.text-muted { color: var(--vt-muted) !important; }
hr { border-color: var(--vt-border); opacity: 1; }

/* user list filter chips */
.user-filters { display: inline-flex; gap: 6px; }
.user-filter-chip {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--vt-border);
    color: var(--vt-text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: background-color .12s ease, border-color .12s ease, color .12s ease;
}
.user-filter-chip:hover { border-color: var(--vt-border-strong); color: var(--vt-primary-600); }
.user-filter-chip.active {
    background: var(--vt-primary);
    color: #fff;
    border-color: var(--vt-primary);
}

/* small utility for action button row in tables */
.action-cell { white-space: nowrap; }
.action-cell .btn + .btn,
.action-cell form { margin-left: .25rem; }
.action-cell form { display: inline; }

/* ----------------------------------------------------------------- Time picker */
.vt-time-input { font-feature-settings: "tnum"; letter-spacing: 1px; }

.vt-tp-pop {
    background: #fff;
    border: 1px solid var(--vt-border);
    border-radius: var(--vt-radius);
    box-shadow: var(--vt-shadow-lg);
    padding: 12px;
    z-index: 1080;
    width: 280px;
    font-family: 'Inter', 'Segoe UI', Tahoma, sans-serif;
}
.vt-tp-display {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--vt-primary-600);
    padding: 4px 0 8px;
    letter-spacing: 2px;
    font-feature-settings: "tnum";
}
.vt-tp-display .vt-tp-colon { color: var(--vt-muted); margin: 0 6px; }
.vt-tp-section + .vt-tp-section { margin-top: 8px; }
.vt-tp-label {
    font-size: .72rem;
    font-weight: 600;
    color: var(--vt-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin: 4px 2px;
}
.vt-tp-grid {
    display: grid;
    gap: 4px;
}
.vt-tp-grid.hours   { grid-template-columns: repeat(6, 1fr); }
.vt-tp-grid.minutes { grid-template-columns: repeat(6, 1fr); }
.vt-tp-cell {
    background: transparent;
    border: 1px solid transparent;
    color: var(--vt-text);
    border-radius: 6px;
    padding: 4px 0;
    font-size: .82rem;
    cursor: pointer;
    transition: background-color .1s ease, color .1s ease;
}
.vt-tp-cell:hover { background: var(--vt-primary-50); color: var(--vt-primary-600); }
.vt-tp-cell.is-selected {
    background: var(--vt-primary);
    color: #fff;
}
.vt-tp-foot {
    display: flex; gap: 6px; margin-top: 10px;
    padding-top: 8px; border-top: 1px solid var(--vt-border);
}
.vt-tp-foot button {
    flex: 1;
    background: transparent;
    border: 1px solid var(--vt-border-strong);
    color: var(--vt-text);
    border-radius: 6px;
    padding: 5px 8px;
    font-size: .82rem;
    cursor: pointer;
}
.vt-tp-foot .vt-tp-done {
    background: var(--vt-primary);
    border-color: var(--vt-primary);
    color: #fff;
}
.vt-tp-foot .vt-tp-done:hover { background: var(--vt-primary-600); border-color: var(--vt-primary-600); }
.vt-tp-foot .vt-tp-clear:hover { background: var(--vt-primary-50); color: var(--vt-primary-600); }

/* ----------------------------------------------------------------- Jalali datepicker */
.vt-jalali-input { font-feature-settings: "ss01"; letter-spacing: .5px; }

.vt-jalali-pop {
    background: #fff;
    border: 1px solid var(--vt-border);
    border-radius: var(--vt-radius);
    box-shadow: var(--vt-shadow-lg);
    padding: 10px;
    z-index: 1080;
    min-width: 270px;
    direction: rtl;
    font-family: 'Inter', 'Segoe UI', Tahoma, sans-serif;
}

.vt-jp-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 8px; gap: 4px;
}
.vt-jp-title { font-weight: 600; color: var(--vt-text); flex: 1; text-align: center; }
.vt-jp-nav {
    background: transparent;
    border: 1px solid transparent;
    color: var(--vt-muted);
    width: 28px; height: 28px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background-color .12s ease;
}
.vt-jp-nav:hover { background: var(--vt-primary-50); color: var(--vt-primary); }

.vt-jp-grid { width: 100%; border-collapse: collapse; }
.vt-jp-grid th {
    color: var(--vt-muted);
    font-size: .72rem;
    font-weight: 600;
    text-align: center;
    padding: 4px 0;
}
.vt-jp-cell {
    width: 36px; height: 32px;
    text-align: center;
    cursor: pointer;
    border-radius: 6px;
    font-size: .88rem;
    color: var(--vt-text);
    transition: background-color .1s ease;
    user-select: none;
}
.vt-jp-cell:hover:not(.vt-jp-empty) { background: var(--vt-primary-50); color: var(--vt-primary-600); }
.vt-jp-cell.is-weekend { color: #b04a4a; }
.vt-jp-cell.is-today {
    box-shadow: inset 0 0 0 1px var(--vt-accent);
    color: var(--vt-primary-600);
}
.vt-jp-cell.is-selected {
    background: var(--vt-primary);
    color: #fff;
}
.vt-jp-cell.vt-jp-empty { cursor: default; }

.vt-jp-foot {
    display: flex; gap: 6px; margin-top: 8px;
    padding-top: 8px; border-top: 1px solid var(--vt-border);
}
.vt-jp-foot button {
    flex: 1;
    background: transparent;
    border: 1px solid var(--vt-border-strong);
    color: var(--vt-text);
    border-radius: 6px;
    padding: 5px 8px;
    font-size: .82rem;
    cursor: pointer;
}
.vt-jp-foot button:hover { background: var(--vt-primary-50); color: var(--vt-primary-600); }
.brand-logo {
    width: 28px;
    height: 28px;
    display: block;
}
.auth-logo-img {
    width: 48px;
    height: 48px;
}