/* =========================================================
   LM Certificadora — tema visual
   Camada sobre o Materialize 1.0: tokens, shell (sidebar +
   topbar), cards, tabelas, modais, formulários e alertas.
   ========================================================= */

:root {
    --brand: #1593d4;
    --brand-600: #0f7bb5;
    --brand-50: #e8f4fb;
    --navy: #0d3b6e;
    --navy-900: #0a2745;

    --bg: #f3f6fa;
    --surface: #ffffff;
    --surface-2: #f7f9fc;
    --border: #e3e8ef;
    --text: #1b2a3a;
    --text-muted: #64748b;

    --success: #16a34a;
    --success-50: #dcfce7;
    --warning: #d97706;
    --warning-50: #fef3c7;
    --danger: #dc2626;
    --danger-50: #fee2e2;

    --radius: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
    --shadow: 0 1px 3px rgba(16, 24, 40, .08), 0 4px 12px rgba(16, 24, 40, .05);
    --shadow-lg: 0 12px 32px rgba(16, 24, 40, .18);

    --sidebar-w: 240px;
    --topbar-h: 64px;
    --font: 'Inter', 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ---------- Shell ---------- */
.app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-w);
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-900) 100%);
    color: #cfe0f1;
    display: flex;
    flex-direction: column;
    z-index: 900;
}

.app-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 20px 24px;
}

.app-brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    background: #fff;
    border-radius: 10px;
    padding: 4px;
}

.app-brand strong {
    display: block;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .2px;
}

.app-brand span {
    font-size: 12px;
    color: #8fb3d6;
}

.app-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 12px;
    flex: 1;
}

.app-nav .nav-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #6f95bb;
    padding: 14px 12px 6px;
}

.app-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: #cfe0f1;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s, color .15s;
    user-select: none;
}

.app-nav a i { font-size: 20px; opacity: .9; }

.app-nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }

.app-nav a.active {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 4px 12px rgba(21, 147, 212, .35);
}

.app-nav a[disabled] { opacity: .45; pointer-events: none; }

.app-sidebar-footer {
    padding: 12px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.app-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
}

.app-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 600;
    flex-shrink: 0;
}

.app-user .who { min-width: 0; flex: 1; }
.app-user .who strong {
    display: block;
    color: #fff;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.app-user .who span { font-size: 12px; color: #8fb3d6; }

.app-user .logout {
    color: #8fb3d6;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
}
.app-user .logout:hover { background: rgba(255, 255, 255, .08); color: #fff; }

.app-main {
    margin-left: var(--sidebar-w);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-topbar {
    height: var(--topbar-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 28px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 800;
}

.app-topbar h1 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: var(--text);
}

.app-topbar .subtitle {
    font-size: 13px;
    color: var(--text-muted);
}

.app-topbar .actions { display: flex; gap: 8px; align-items: center; }

.app-content {
    padding: 24px 28px 40px;
    max-width: 1500px;
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: 0;
    color: var(--text);
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
}

.app-backdrop { display: none; }

/* ---------- Cards / painéis ---------- */
.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 20px;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.panel-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-title i { color: var(--brand); font-size: 20px; }

.panel-sub { font-size: 12px; color: var(--text-muted); }

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

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

.stack { display: flex; flex-direction: column; gap: 20px; }

/* ---------- Agenda do dia ---------- */
.day-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px;
}

.day-nav .icon-btn { width: 32px; height: 32px; }

input.dataAtual,
input.dataAtual:focus {
    border: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    height: 32px !important;
    width: 120px !important;
    text-align: center;
    font-weight: 600;
    font-size: 14px !important;
    color: var(--text) !important;
    cursor: pointer;
    background: transparent;
}

.legend {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .dot { width: 10px; height: 10px; border-radius: 3px; }
.legend .dot.free { background: var(--surface-2); border: 1px dashed #b8c4d4; }
.legend .dot.booked { background: var(--brand-50); border: 1px solid var(--brand); }
.legend .dot.paid { background: var(--success-50); border: 1px solid var(--success); }

.schedule-wrap { overflow-x: auto; }

#table {
    background: transparent !important;
    border-collapse: separate;
    border-spacing: 6px;
    table-layout: fixed;
    min-width: 860px;
    margin: 0 -6px;
    width: calc(100% + 12px);
}

#table thead th {
    background: transparent;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 0;
    border: 0;
    text-align: center;
}

#table tbody td {
    height: 84px;
    border-radius: 10px;
    padding: 8px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
    background: var(--brand-50);
    color: var(--navy);
    border: 1px solid #bfe0f3;
    border-left: 4px solid var(--brand);
    box-shadow: none !important;
    transition: transform .12s, box-shadow .12s;
    word-break: break-word;
}

#table tbody td.green {
    background: var(--success-50) !important;
    color: #14532d;
    border-color: #bbf7d0;
    border-left-color: var(--success);
}

#table tbody td:empty {
    background: var(--surface-2);
    border: 1px dashed #c9d3e0;
    border-left: 1px dashed #c9d3e0;
    position: relative;
}

#table tbody td:empty:hover {
    background: var(--brand-50);
    border-color: var(--brand);
}

#table tbody td:empty:hover::after {
    content: "add";
    font-family: 'Material Icons';
    font-size: 22px;
    color: var(--brand);
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
}

#table tbody td:not(:empty):hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow) !important;
}

#table tbody tr:hover { background: transparent !important; }

/* ---------- Gráficos / renovação ---------- */
#chartVendas, #chartCliTotal, #chartSchedule { min-height: 240px; }

#lista-renovacao {
    margin: 0;
    max-height: 250px;
    overflow-y: auto;
}

#lista-renovacao .dadosRenovacao {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px !important;
    border-radius: var(--radius-sm);
    cursor: pointer;
    float: none;
    width: 100%;
    margin: 0 !important;
    border-bottom: 1px solid var(--border);
}

#lista-renovacao .dadosRenovacao:last-child { border-bottom: 0; }
#lista-renovacao .dadosRenovacao:hover { background: var(--surface-2); }

#lista-renovacao .dadosRenovacao .col {
    float: none;
    padding: 0;
    width: auto;
    min-height: 0;
}

#lista-renovacao .dadosRenovacao .col.s8 { font-weight: 500; flex: 1; min-width: 0; }

#lista-renovacao .dadosRenovacao .col.s4 {
    font-size: 12px;
    font-weight: 600;
    color: var(--warning);
    background: var(--warning-50);
    padding: 2px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

#lista-renovacao:empty::before {
    content: "Nenhum certificado a vencer.";
    display: block;
    padding: 24px 0;
    text-align: center;
    color: var(--text-muted);
}

/* ---------- Botões ---------- */
.btn, .btn-small, .btn-large {
    border-radius: var(--radius-sm);
    text-transform: none;
    font-weight: 500;
    letter-spacing: 0;
    box-shadow: none;
    transition: background-color .15s, box-shadow .15s, transform .1s;
}

.btn:hover, .btn-small:hover, .btn-large:hover { box-shadow: var(--shadow); }
.btn:active, .btn-small:active { transform: translateY(1px); }

.btn-primary { background-color: var(--brand) !important; color: #fff !important; }
.btn-primary:hover { background-color: var(--brand-600) !important; }

.btn-ghost {
    background: var(--surface) !important;
    color: var(--text) !important;
    border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--surface-2) !important; }

.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--brand-50); color: var(--brand); }
.icon-btn i { font-size: 20px; line-height: 1; }

/* botões redondos "fechar" do Materialize */
.btn-floating.btn-tiny {
    width: 32px;
    height: 32px;
    box-shadow: none;
}
.btn-floating.btn-tiny i { line-height: 32px; font-size: 18px; }

.modal .btn-floating.modal-close.red {
    background: var(--surface-2) !important;
    border: 1px solid var(--border);
}
.modal .btn-floating.modal-close.red i { color: var(--text-muted); }
.modal .btn-floating.modal-close.red:hover { background: var(--danger-50) !important; }
.modal .btn-floating.modal-close.red:hover i { color: var(--danger); }

/* ações em linhas de tabela */
.btn-tiny {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
}
.btn-tiny:hover { background: var(--surface-2); }

/* cores de ação do Materialize, harmonizadas */
.btn.green, .btn-small.green, .btn.green.accent-4, .btn.green.lighten-2 { background-color: var(--success) !important; }
.btn.red, .btn.red.lighten-1, .btn.red.lighten-2 { background-color: var(--danger) !important; }
.btn.orange { background-color: var(--warning) !important; }
.btn.teal, .btn-small.teal, .btn.teal.lighten-2 { background-color: var(--brand) !important; }
.btn.indigo, .btn.light-blue { background-color: var(--navy) !important; }

/* ---------- Tabelas ---------- */
table.striped > tbody > tr:nth-child(odd) { background: var(--surface-2); }

.modal table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.modal table thead { background: transparent; }

.modal table th {
    background: var(--surface-2);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.modal table td {
    padding: 12px 14px;
    font-size: 13px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    text-align: left;
    background: transparent;
}

.modal table tbody tr:last-child td { border-bottom: 0; }
.modal table tbody tr { cursor: pointer; transition: background .12s; }
.modal table tbody tr:hover { background: var(--brand-50) !important; }

/* ---------- Modais ---------- */
.modal {
    width: 92%;
    max-width: 980px;
    max-height: 88vh;
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
}

.modal#modal-history { max-width: 720px; }
.modal#modal-cad-user { max-width: 640px; }
.modal#modal-ticket-postpone { max-width: 440px; min-height: 0; }
.modal#modal-new-client { max-width: 960px; }

.modal .modal-content { padding: 24px 28px; }

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: -4px 0 16px;
}

.modal-head h5 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-head h5 i {
    color: var(--brand);
    background: var(--brand-50);
    border-radius: 10px;
    padding: 6px;
    font-size: 20px;
}

.modal-head .head-actions { display: flex; gap: 8px; align-items: center; }

.modal .modal-footer {
    position: sticky;
    bottom: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 28px !important;
    height: auto;
    min-height: 60px;
}

.modal .modal-footer .row { width: 100%; margin: 0; display: flex; align-items: center; }
.modal .modal-footer .col { float: none; }
.modal .modal-footer .btn { margin: 0; }

.modal-overlay { background: rgba(10, 39, 69, .55); }

/* texto branco legado (tema escuro antigo) => cor normal */
.modal .white-text,
.swal2-popup .white-text,
.swal2-popup input.white-text,
textarea.white-text { color: var(--text) !important; }

.section-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    margin: 8px 0 4px;
    padding: 0 .75rem;
}

.modal hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 8px 0 16px;
}

/* ---------- Formulários ---------- */
.input-field { margin-top: 1.2rem; margin-bottom: .8rem; }

.input-field > label {
    color: var(--text-muted);
    font-size: 13px;
    text-transform: none;
}

.input-field > label:not(.label-icon).active { transform: translateY(-16px) scale(.85); }

input:not([type]), input[type=text]:not(.browser-default), input[type=password]:not(.browser-default),
input[type=email]:not(.browser-default), input[type=tel]:not(.browser-default),
input[type=search]:not(.browser-default), input[type=number]:not(.browser-default),
textarea.materialize-textarea {
    border-bottom: 1px solid #cfd8e3;
    color: var(--text);
    font-size: 14px;
}

input:not([type]):focus:not([readonly]), input[type=text]:not(.browser-default):focus:not([readonly]),
input[type=password]:not(.browser-default):focus:not([readonly]),
input[type=email]:not(.browser-default):focus:not([readonly]),
input[type=tel]:not(.browser-default):focus:not([readonly]),
input[type=search]:not(.browser-default):focus:not([readonly]),
textarea.materialize-textarea:focus:not([readonly]) {
    border-bottom: 1px solid var(--brand);
    box-shadow: 0 1px 0 0 var(--brand);
}

input:not([type]):focus:not([readonly]) + label, input[type=text]:not(.browser-default):focus:not([readonly]) + label,
input[type=password]:not(.browser-default):focus:not([readonly]) + label,
input[type=email]:not(.browser-default):focus:not([readonly]) + label,
input[type=search]:not(.browser-default):focus:not([readonly]) + label,
textarea.materialize-textarea:focus:not([readonly]) + label { color: var(--brand); }

.input-field .prefix { color: var(--text-muted); }
.input-field .prefix.active { color: var(--brand); }

.dropdown-content li > a, .dropdown-content li > span { color: var(--text); }
.dropdown-content li.selected, .dropdown-content li:hover { background: var(--brand-50); }
.select-wrapper input.select-dropdown { color: var(--text); }

[type="checkbox"].filled-in:checked + span:not(.lever)::after,
[type="checkbox"]:checked + span:not(.lever)::before { border-right-color: var(--brand); border-bottom-color: var(--brand); }
[type="checkbox"].filled-in:checked + span:not(.lever)::after { background-color: var(--brand); border-color: var(--brand); }

.switch label { color: var(--text-muted); font-size: 13px; }
.switch label input[type=checkbox]:checked + .lever { background-color: #a9d8f2; }
.switch label input[type=checkbox]:checked + .lever::after { background-color: var(--brand); }

.hidden { display: none; }

/* busca nos modais */
.modal input[type=search] {
    border: 1px solid var(--border) !important;
    border-radius: 999px;
    padding: 0 16px 0 44px !important;
    height: 40px !important;
    box-sizing: border-box !important;
    background: var(--surface-2);
    box-shadow: none !important;
}
.modal input[type=search]:focus { border-color: var(--brand) !important; background: #fff; }
.modal .input-field input[type=search] + label { display: none; }
.modal .input-field input[type=search] ~ .prefix,
.modal .input-field input[type=search] ~ .material-icons.prefix {
    position: absolute;
    left: 14px;
    top: 20px;
    transform: translateY(-50%);
    font-size: 20px;
    width: auto;
    margin: 0;
    color: var(--text-muted);
}
.modal .input-field input[type=search] ~ .material-icons.prefix ~ label,
.modal .input-field .prefix ~ input[type=search] { margin-left: 0; width: 100%; }
.modal .input-field.search-field { margin: 0; }

/* intl-tel-input */
.iti { width: 100%; }
.iti__country-container, .iti__search-input { color: var(--text) !important; }
.iti__selected-dial-code { color: var(--text); }

/* ---------- Paginação ---------- */
.pagination { margin: 0; display: flex; gap: 4px; flex-wrap: wrap; }

.pagination a {
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 13px;
    margin: 0;
    text-decoration: none;
    background: var(--surface);
}

.pagination a:hover { background: var(--surface-2); }
.pagination a.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- Datepicker / tooltip ---------- */
.datepicker-date-display { background-color: var(--navy); }
.datepicker-table td.is-selected { background-color: var(--brand); }
.datepicker-table td.is-today { color: var(--brand); }
.datepicker-cancel, .datepicker-clear, .datepicker-today, .datepicker-done { color: var(--brand); }
.material-tooltip { border-radius: 6px; font-size: 12px; background: var(--navy-900); }

/* ---------- SweetAlert ---------- */
.swal2-popup {
    border-radius: 16px !important;
    font-family: var(--font) !important;
    color: var(--text) !important;
}
.swal2-html-container { color: var(--text) !important; font-size: 14px !important; }
.swal2-html-container p { margin: 6px 0; text-align: left; }
.swal2-styled.swal2-confirm { background-color: var(--brand) !important; border-radius: 8px !important; }
.swal2-styled.swal2-deny { background-color: var(--navy) !important; border-radius: 8px !important; }
.swal2-styled.swal2-cancel { background-color: #94a3b8 !important; border-radius: 8px !important; }
.swal2-close { color: var(--text-muted) !important; font-size: 1.8em !important; }
.swal2-close:hover { color: var(--danger) !important; }
.swal2-icon { font-size: 10px !important; }
.swal2-popup .input-field { text-align: left; }

/* ---------- Login ---------- */
.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    background: var(--surface);
}

.auth-hero {
    background:
        radial-gradient(circle at 20% 20%, rgba(21, 147, 212, .45), transparent 55%),
        linear-gradient(160deg, var(--navy) 0%, var(--navy-900) 100%);
    color: #fff;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.auth-hero h2 { font-size: 34px; font-weight: 600; line-height: 1.2; margin: 0 0 12px; }
.auth-hero p { color: #b9d2ea; font-size: 15px; max-width: 420px; }
.auth-hero .brand { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.auth-hero .brand img { width: 44px; height: 44px; background: #fff; border-radius: 10px; padding: 4px; }
.auth-hero .features { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.auth-hero .features li { display: flex; align-items: center; gap: 10px; color: #dbe9f6; }
.auth-hero .features i { color: #6cc6f5; }
.auth-hero small { color: #7fa3c7; }

.auth-form-wrap { display: grid; place-items: center; padding: 32px 20px; }
.auth-card { width: 100%; max-width: 380px; }
.auth-card .logo { width: 88px; margin-bottom: 20px; }
.auth-card h1 { font-size: 24px; font-weight: 600; margin: 0 0 4px; }
.auth-card .lead { color: var(--text-muted); margin: 0 0 24px; }
.auth-card .btn { width: 100%; height: 44px; line-height: 44px; font-size: 15px; margin-top: 8px; }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
    .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .app-sidebar { transform: translateX(-100%); transition: transform .2s ease; }
    body.nav-open .app-sidebar { transform: none; box-shadow: var(--shadow-lg); }
    body.nav-open .app-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(10, 39, 69, .45);
        z-index: 850;
    }
    .app-main { margin-left: 0; }
    .menu-toggle { display: inline-grid; place-items: center; }
    .app-topbar { padding: 0 16px; }
    .app-content { padding: 16px; }
    .app-topbar .actions .btn span { display: none; }
    .auth-page { grid-template-columns: 1fr; }
    .auth-hero { display: none; }
    .modal .modal-content { padding: 18px 16px; }
    .modal .modal-footer { padding: 10px 16px !important; }
}

/* conteúdo dos horários agendados */
#table tbody td .slot-name {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#table tbody td .slot-time {
    display: block;
    font-size: 11px;
    font-weight: 500;
    opacity: .7;
    margin-top: 2px;
}
.checkbox-margin { margin-top: 20px; }

/* itens de grid podem encolher (gráficos no mobile) */
.grid > * { min-width: 0; }
.panel-header { flex-wrap: wrap; }

/* campo de telefone (intl-tel-input) dentro do grid do Materialize */
.input-field .iti { width: 100%; }
.iti input[type=tel] { box-sizing: border-box !important; width: 100% !important; padding-right: 0 !important; }

@media (max-width: 600px) {
    .app-topbar h1 { font-size: 18px; }
    .legend { gap: 10px; }
    .day-nav { width: 100%; justify-content: space-between; }
}
