/* ToDo App - Light Theme with Navy Accents */
:root {
    --bg: #f0f2f5;
    --bg-card: #ffffff;
    --bg-section: #f8f9fb;
    --bg-input: #f5f6f8;
    --text: #1a1a2e;
    --text-muted: #6b7280;
    --navy: #1a1a4e;
    --navy-light: #2d2d7a;
    --accent: #1a1a4e;
    --accent-hover: #2d2d7a;
    --border: #e2e5ea;
    --border-light: #eef0f3;
    --red: #dc2626;
    --yellow: #eab308;
    --green: #16a34a;
    --blue: #2563eb;
    --neutral: #9ca3af;
    --red-bg: rgba(220, 38, 38, 0.08);
    --yellow-bg: rgba(234, 179, 8, 0.1);
    --green-bg: rgba(22, 163, 74, 0.08);
    --blue-bg: rgba(37, 99, 235, 0.08);
    --today-border: #1a1a4e;
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --radius: 8px;
    --radius-sm: 4px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    height: 100%;
    overflow: hidden;
    position: fixed;
    width: 100%;
    -webkit-overflow-scrolling: auto;
    overscroll-behavior: none;
}

/* ===== LOGIN ===== */
.login-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 20px;
    background: linear-gradient(135deg, #1a1a4e 0%, #2d2d7a 100%);
}

.login-box {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    width: 100%;
    max-width: 360px;
    text-align: center;
}

.login-box h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: var(--navy);
}

.login-box p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.login-box input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    color: var(--text);
    font-size: 1rem;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s;
}

.login-box input:focus {
    border-color: var(--navy);
}

.login-box button {
    width: 100%;
    padding: 12px;
    background: var(--navy);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.login-box button:hover {
    background: var(--navy-light);
}

.login-error {
    color: var(--red);
    font-size: 0.85rem;
    margin-top: 8px;
    display: none;
}

/* ===== HEADER ===== */
.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--navy);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(26,26,78,0.2);
}

.nav-week {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-week button {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.nav-week button:hover {
    background: rgba(255,255,255,0.25);
}

.nav-week .week-label {
    font-weight: 600;
    font-size: 0.95rem;
    min-width: 200px;
    text-align: center;
    color: #fff;
    cursor: pointer;
    border-radius: var(--radius-sm);
    padding: 4px 8px;
    transition: background 0.2s;
}

.nav-week .week-label:hover {
    background: rgba(255,255,255,0.15);
}

.week-label-arrow {
    font-size: 0.55rem;
    opacity: 0.6;
    vertical-align: middle;
}

.btn-today {
    background: #fff !important;
    color: var(--navy) !important;
    padding: 0 14px !important;
    width: auto !important;
    font-size: 0.8rem !important;
    font-weight: 700;
}

.btn-today:hover {
    background: rgba(255,255,255,0.9) !important;
}

.header-actions {
    display: flex;
    align-items: center;
    position: relative;
}

/* Burger button */
.burger-btn {
    background: none !important;
    border: none !important;
    cursor: pointer;
    padding: 6px !important;
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 32px;
}

.burger-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
}

.burger-btn:hover span {
    background: rgba(255,255,255,0.7);
}

/* Burger dropdown menu */
.burger-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    min-width: 160px;
    z-index: 110;
    overflow: hidden;
}

.burger-menu.visible {
    display: block;
}

.burger-menu button {
    display: block;
    width: 100%;
    padding: 10px 16px;
    background: none;
    border: none;
    border-bottom: 1px solid var(--border-light);
    color: var(--text);
    font-size: 0.85rem;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.burger-menu button:last-child {
    border-bottom: none;
}

.burger-menu button:hover {
    background: var(--bg-section);
}

/* ===== VIEW TOGGLE (mobile) ===== */
.view-toggle {
    display: none;
    padding: 8px 12px;
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.day-tabs {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.day-tab {
    flex: 1;
    min-width: 0;
    padding: 8px 4px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    color: var(--text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    font-weight: 500;
    transition: all 0.2s;
}

.day-tab.active {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}

.day-tab.is-today {
    border-color: var(--navy);
}

/* ===== WEEK GRID ===== */
.week-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    padding: 8px;
    height: calc(100vh - 56px);
    height: calc(100dvh - 56px);
    overflow: hidden;
}

/* ===== DAY COLUMN ===== */
.day-column {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}

.day-column.is-today {
    border: 2px solid var(--navy);
    box-shadow: 0 0 0 1px var(--navy), var(--shadow-md);
}

.day-header {
    padding: 10px 12px;
    background: var(--bg-section);
    font-weight: 700;
    font-size: 0.85rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.day-column.is-today .day-header {
    background: var(--navy);
    color: #fff;
}

.day-header .day-name {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 2px;
    font-weight: 600;
}

.day-column.is-today .day-header .day-name {
    color: rgba(255,255,255,0.7);
}

.day-body {
    flex: 1;
    overflow-y: auto;
    padding: 4px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* ===== SECTION ===== */
.section {
    margin-bottom: 2px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 8px;
    background: var(--bg-section);
    border-radius: var(--radius-sm);
    cursor: pointer;
    user-select: none;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
    position: relative;
}

.section-header:hover {
    background: #eef0f6;
}

.section-title {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 4px;
    text-align: center;
}

.section-actions {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
}

.section-icon {
    display: inline-flex;
    align-items: center;
    color: var(--navy);
}

.section-icon svg {
    display: block;
}

.btn-add {
    width: 20px;
    height: 20px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: #fff;
    color: var(--navy);
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-weight: 700;
    transition: all 0.2s;
}

.btn-add:hover {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}

.section-tasks {
    padding: 1px 0;
}

/* ===== TASK ITEM ===== */
.task-item {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    margin: 1px 0;
    cursor: pointer;
    transition: background 0.15s;
    font-size: 0.78rem;
    line-height: 1.3;
}

.task-item:hover {
    background: #f0f1f4;
}

/* Status: Nou (neutral) */
.task-item.status-todo {
    border-left: 3px solid var(--neutral);
}

/* Status: In lucru (yellow) */
.task-item.status-in_progress {
    border-left: 3px solid var(--yellow);
    background: var(--yellow-bg);
}

/* Status: Done (green) */
.task-item.status-done {
    border-left: 3px solid var(--green);
    background: var(--green-bg);
}

/* Status: Nefinalizat/Urgent (red) */
.task-item.status-urgent {
    border-left: 3px solid var(--red);
    background: var(--red-bg);
}

/* Status: Teren (blue) */
.task-item.status-field {
    border-left: 3px solid var(--blue);
    background: var(--blue-bg);
}

.task-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 3px;
    cursor: pointer;
    border: none;
}

.status-todo .task-status-dot { background: var(--neutral); }
.status-in_progress .task-status-dot { background: var(--yellow); }
.status-done .task-status-dot { background: var(--green); }
.status-urgent .task-status-dot { background: var(--red); }
.status-field .task-status-dot { background: var(--blue); }

.task-content {
    flex: 1;
    min-width: 0;
}

.task-text {
    word-break: break-word;
    color: var(--text);
}

.task-hour {
    font-size: 0.7rem;
    color: var(--navy);
    font-weight: 700;
    margin-right: 4px;
}

.task-contact-link {
    color: var(--blue);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 500;
}

.task-contact-link:hover {
    text-decoration: underline;
}

.task-contact-name {
    font-weight: normal;
    color: var(--text);
    font-size: 0.78rem;
}

.task-contact-note {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 1px;
}

/* ===== CONTEXT MENU ===== */
.context-menu {
    position: fixed;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 200;
    min-width: 180px;
    padding: 4px 0;
    display: none;
}

.context-menu.visible {
    display: block;
}

.context-menu button {
    display: block;
    width: 100%;
    padding: 8px 16px;
    background: none;
    border: none;
    color: var(--text);
    font-size: 0.85rem;
    text-align: left;
    cursor: pointer;
    transition: background 0.1s;
}

.context-menu button:hover {
    background: #f0f1f4;
}

.context-menu .divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

.context-menu .danger {
    color: var(--red);
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 300;
    padding: 16px;
    display: none;
}

.modal-overlay.visible {
    display: flex;
}

.modal {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    width: 100%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
}

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

.modal-header h3 {
    font-size: 1rem;
    color: var(--navy);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
}

.modal-body {
    padding: 16px;
}

.modal-body label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    margin-top: 12px;
    font-weight: 600;
}

.modal-body label:first-child {
    margin-top: 0;
}

.modal-body input,
.modal-body textarea,
.modal-body select {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    color: var(--text);
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.modal-body input:focus,
.modal-body textarea:focus,
.modal-body select:focus {
    border-color: var(--navy);
}

.modal-body textarea {
    resize: vertical;
    min-height: 60px;
}

.modal-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.modal-footer button {
    padding: 8px 20px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    cursor: pointer;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    font-weight: 500;
    transition: all 0.2s;
}

.modal-footer .btn-primary {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}

.modal-footer .btn-primary:hover {
    background: var(--navy-light);
}

/* ===== MOVE TASK MODAL ===== */
.move-calendar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    margin-top: 8px;
}

.move-day-btn {
    padding: 10px 4px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    color: var(--text);
    cursor: pointer;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s;
}

.move-day-btn:hover {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}

.move-week-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.move-week-nav button {
    background: #fff;
    border: 2px solid var(--border);
    color: var(--text);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
}

.move-week-nav button:hover {
    border-color: var(--navy);
    color: var(--navy);
}

/* ===== CONTACTS PANEL ===== */
.contacts-panel {
    display: none;
}

.contacts-panel.visible {
    display: block;
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: 320px;
    background: #fff;
    border-left: 1px solid var(--border);
    z-index: 150;
    overflow-y: auto;
    box-shadow: -4px 0 20px rgba(0,0,0,0.08);
}

.contacts-header {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--navy);
    color: #fff;
}

.contacts-header h3 {
    color: #fff;
}

.contacts-header .btn-add {
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
    background: rgba(255,255,255,0.2);
    border-color: transparent;
    color: #fff;
}

.contacts-header .modal-close {
    font-size: 1.4rem;
    color: rgba(255,255,255,0.7);
}

.contacts-search {
    padding: 8px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-section);
}

.contacts-search input {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    color: var(--text);
    font-size: 0.9rem;
    outline: none;
}

.contacts-search input:focus {
    border-color: var(--navy);
}

.contact-item {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: background 0.15s;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.select-check {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.contacts-actions {
    display: none;
    padding: 10px 16px;
    background: var(--bg-section);
    border-top: 1px solid var(--border);
    gap: 6px;
    position: sticky;
    bottom: 0;
}

.contacts-actions.visible {
    display: flex;
}

.contacts-actions button {
    flex: 1;
    padding: 8px 4px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    color: var(--text);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.contacts-actions button:hover {
    background: var(--bg-section);
    border-color: var(--navy);
}

.contacts-actions .action-delete {
    color: var(--red);
    border-color: var(--red);
}

.contacts-actions .action-delete:hover {
    background: var(--red-bg);
}

.contacts-header .btn-add.active {
    background: #fff;
    color: var(--navy);
    border-color: #fff;
}

.contact-item:hover {
    background: var(--bg-section);
}

.contact-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
}

.contact-phone {
    color: var(--blue);
    font-size: 0.85rem;
    text-decoration: none;
}

.contact-phone:hover, .contact-email:hover {
    text-decoration: underline;
}

.contact-email {
    display: block;
    color: var(--navy);
    font-size: 0.8rem;
    text-decoration: none;
    margin-top: 1px;
}

.contact-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ===== AUTOCOMPLETE ===== */
.autocomplete-list {
    position: absolute;
    background: #fff;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    max-height: 150px;
    overflow-y: auto;
    z-index: 400;
    width: calc(100% - 32px);
    display: none;
    box-shadow: var(--shadow-md);
}

.autocomplete-list.visible {
    display: block;
}

.autocomplete-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.85rem;
}

.autocomplete-item:hover {
    background: var(--bg-section);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .week-grid {
        grid-template-columns: 1fr;
        padding: 0;
        height: calc(100dvh - 56px - 45px);
        overflow: hidden;
    }

    .day-column {
        display: none;
    }

    .day-column.active-mobile {
        display: flex;
        border-radius: 0;
        border: none;
        box-shadow: none;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .day-column.active-mobile.is-today {
        border: none;
        box-shadow: none;
    }

    .view-toggle {
        display: block;
    }

    .nav-week .week-label {
        font-size: 0.8rem;
        min-width: 140px;
    }

    .contacts-panel.visible {
        width: 100%;
    }

    .app-header {
        padding: 8px 12px;
    }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}

/* ===== ACCOMPLISHMENT PICKER ===== */
.accomplishment-pick-item {
    display: block;
    width: 100%;
    padding: 10px 16px;
    background: none;
    border: none;
    border-bottom: 1px solid var(--border-light);
    color: var(--text);
    font-size: 0.85rem;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
}

.accomplishment-pick-item:hover {
    background: var(--green-bg);
}

.accomplishment-pick-section {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-right: 6px;
}

/* ===== TIME INTERVAL PICKER ===== */
.time-interval {
    display: flex;
    align-items: center;
    gap: 8px;
}

.time-interval input {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    color: var(--text);
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    text-align: center;
}

.time-interval input:focus {
    border-color: var(--navy);
}

.time-sep {
    font-weight: 700;
    color: var(--text-muted);
    font-size: 1rem;
}

/* ===== CALENDAR PICKER ===== */
.cal-overlay {
    position: fixed;
    inset: 0;
    z-index: 150;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 60px;
    display: none;
}

.cal-overlay.visible {
    display: flex;
}

.cal-container {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 8px 30px rgba(0,0,0,0.18);
    width: 300px;
    padding: 14px;
}

.cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.cal-header span {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--navy);
}

.cal-header button {
    background: #fff;
    border: 2px solid var(--border);
    color: var(--text);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.cal-header button:hover {
    border-color: var(--navy);
    color: var(--navy);
}

.cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 4px;
    padding: 4px 0;
    border-bottom: 1px solid var(--border-light);
}

.cal-weekdays span:nth-child(6),
.cal-weekdays span:nth-child(7) {
    color: var(--border);
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.cal-day {
    padding: 8px 2px;
    text-align: center;
    border: none;
    border-radius: var(--radius-sm);
    background: none;
    color: var(--text);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
    display: block;
    width: 100%;
    min-width: 0;
    line-height: 1.2;
}

.cal-day:hover:not(.cal-weekend):not(.cal-empty) {
    background: var(--navy);
    color: #fff;
}

.cal-day.cal-empty {
    cursor: default;
}

.cal-day.cal-weekend {
    color: var(--border);
    cursor: default;
}

.cal-day.cal-today {
    background: var(--navy);
    color: #fff;
    font-weight: 700;
}

.cal-day.cal-current-week:not(.cal-today) {
    background: rgba(26, 26, 78, 0.1);
    font-weight: 600;
}

@media (max-width: 768px) {
    .cal-overlay {
        padding-top: 50px;
    }

    .cal-container {
        width: calc(100% - 24px);
        max-width: 300px;
    }
}

/* ===== RECURRING =====*/
#ctxRecurringRow:not(.hidden) {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#ctxRecurringRow input[type="checkbox"] {
    pointer-events: none;
    width: 14px;
    height: 14px;
    accent-color: var(--navy);
}

/* ===== UTILITIES ===== */
.hidden { display: none !important; }
