/* Paleta del logo: rojo #e31b24, azul #1a6eae, gris #6b7076, fondo blanco. */
:root {
    --ld-red: #c41622;
    --ld-red-dark: #8e1018;
    --ld-red-text: #9d1220;
    --ld-blue: #155f96;
    --ld-blue-dark: #0e3f68;
    --ld-blue-deep: #0b2c48;
    --ld-gray: #3e4a57;
    --ld-ink: #17202b;
    --ld-bg: #f4f6f8;
    --ld-card: #ffffff;
    --ld-line: #d8e0e8;
    --ld-soft-blue: #eef4f9;
    --ld-soft-red: #fdf2f3;
    --bg: var(--ld-bg);
    --white: var(--ld-card);
    --black: var(--ld-ink);
    --gray: var(--ld-gray);
    --line: var(--ld-line);
    --gold: var(--ld-red);
    --orange: var(--ld-red);
    --orange-dark: var(--ld-red-dark);
    --shadow: 0 12px 32px rgba(13, 60, 97, 0.1);
}

body.theme-cronos {
    background: var(--ld-bg);
    color: var(--ld-ink);
}

body.theme-cronos a {
    color: var(--ld-blue);
}

body.theme-cronos a:hover {
    color: var(--ld-red);
}

.topbar {
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--ld-line);
    box-shadow: 0 1px 0 rgba(196, 22, 34, 0.85), 0 10px 30px rgba(11, 44, 72, 0.05);
}

.brand img {
    width: 92px;
    border: 1px solid var(--ld-line);
    background: #fff;
    border-radius: 14px;
}

.brand-public img {
    width: min(220px, 48vw);
    border: none;
    background: transparent;
    border-radius: 0;
}

.brand h1 {
    color: var(--ld-blue);
    letter-spacing: 0.5px;
}

.brand p {
    color: var(--ld-gray);
    letter-spacing: 1.6px;
}

.sidebar {
    background: var(--ld-blue-deep);
    border-right: 1px solid #081f33;
}

.sidebar-brand {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.sidebar .brand h1,
.sidebar .brand p,
body.theme-cronos .sidebar-nav a,
body.theme-cronos .sidebar-nav a:hover,
body.theme-cronos .sidebar-nav a:visited,
body.theme-cronos .sidebar-nav a.is-active {
    color: #fff;
}

.sidebar-nav a {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.sidebar-nav a:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
}

body.theme-cronos .public-nav-login,
body.theme-cronos .public-nav-login:hover {
    border: 1px solid var(--ld-red);
    color: #fff;
    background: var(--ld-red);
    font-weight: 700;
}

body.theme-cronos .public-nav-login:hover {
    background: var(--ld-red-dark);
    border-color: var(--ld-red-dark);
}

.menu-toggle {
    background: var(--ld-blue);
    color: #fff;
    border-color: var(--ld-blue);
}

.card,
.price-card,
.modal-card,
.modal-card.modal-booking,
body.theme-cronos .modal-card.modal-calendar-edit {
    background: #fff;
    color: var(--ld-ink);
    border: 1px solid var(--ld-line);
    box-shadow: var(--shadow);
}

.card h2,
.card h3,
.card h4,
.section-title,
.calendar-card h3,
body.theme-cronos .modal-card.modal-calendar-edit h3,
.modal-card.modal-booking h3 {
    color: var(--ld-blue-dark);
}

.section-title span,
.price-card-tier,
.modal-booking .booking-service-category h4,
.modal-booking .booking-service-text strong,
.boleta-block-title,
.boleta-fieldset legend,
.boleta-legal h4,
.historial-search-label,
.appointment-row-services,
body.theme-cronos .calendar-edit-client,
body.theme-cronos .calendar-edit-summary strong,
body.theme-cronos .calendar-edit-amount label,
body.theme-cronos .calendar-edit-notes label,
body.theme-cronos .day h4,
.loyalty-box-num,
.stat-num,
.timeline-amount,
.modal-booking .booking-total-line strong {
    color: var(--ld-red-text);
}

.section-lead,
.cronos-micro,
.cronos-bullet-list,
label,
.muted,
.modal-booking-lead,
.modal-card.modal-booking .muted,
.price-card-label,
.appointment-row-meta,
.stat-lbl,
.stat-val,
.loyalty-box-lbl,
.timeline-body p,
.timeline-head time,
.plate-vehicle {
    color: var(--ld-gray);
}

.price-card-amount,
.appointment-row-amount,
.historial-client-name,
.historial-section-title,
.timeline-head strong,
.loyalty-box-val {
    color: var(--ld-blue-dark);
}

input,
select,
textarea,
.modal-booking input,
.modal-booking select,
.modal-booking textarea,
.boleta-svc-price,
body.theme-cronos .calendar-edit-amount input {
    background: #fff;
    color: var(--ld-ink);
    border: 1px solid #c5d4e4;
}

input:focus,
select:focus,
textarea:focus,
.modal-booking input:focus,
.modal-booking select:focus,
.modal-booking textarea:focus {
    border-color: var(--ld-blue);
    box-shadow: 0 0 0 3px rgba(26, 110, 174, 0.16);
}

body.theme-cronos button:not(.btn-link):not(.btn-whatsapp-share):not(.qty-btn):not(.modal-close):not(.boleta-close):not(.slot-btn):not(.plate-chip-remove):not(.btn-danger):not(.btn-secondary):not(.btn-secondary-historial):not(.boleta-photo-remove):not(.btn-excel),
body.theme-cronos .btn-accent:not(.btn-whatsapp-share),
body.staff-attendance-page button:not(.btn-link):not(.btn-whatsapp-share):not(.btn-excel),
.boleta-print-wrap .boleta-print-toolbar .btn-accent:not(.btn-whatsapp-share) {
    background: var(--ld-red);
    border: 1px solid var(--ld-red);
    color: #fff;
    box-shadow: none;
}

body.theme-cronos button:not(.btn-link):not(.btn-whatsapp-share):not(.qty-btn):not(.modal-close):not(.boleta-close):not(.slot-btn):not(.plate-chip-remove):not(.btn-danger):not(.boleta-photo-remove):not(.btn-excel):hover,
body.theme-cronos .btn-accent:not(.btn-whatsapp-share):hover {
    filter: none;
    background: var(--ld-red-dark);
    border-color: var(--ld-red-dark);
    color: #fff;
}

body.theme-cronos .btn-whatsapp-share,
body.theme-cronos a.btn-whatsapp-share {
    background: linear-gradient(135deg, #25d366 0%, #1da851 100%);
    border: none;
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.32);
}

body.theme-cronos .btn-secondary,
body.theme-cronos .btn-secondary-historial,
body.theme-cronos .calendar-nav-btn,
body.theme-cronos .qty-btn,
body.theme-cronos .modal-close,
body.theme-cronos .modal-close-dark,
body.theme-cronos .slot-btn,
body.theme-cronos .boleta-close,
body.theme-cronos .plate-chip-remove,
.modal-booking .qty-btn,
.modal-booking .slot-btn {
    background: #fff;
    color: var(--ld-blue);
    border: 1px solid var(--ld-blue);
    box-shadow: none;
}

body.theme-cronos .btn-secondary:hover,
body.theme-cronos .btn-secondary-historial:hover,
body.theme-cronos .calendar-nav-btn:hover,
.modal-booking .qty-btn:hover,
.modal-booking .slot-btn:hover,
body.theme-cronos .modal-card.modal-calendar-edit .slot-btn:hover,
.boleta-close:hover {
    background: var(--ld-soft-blue);
    color: var(--ld-blue-dark);
    border-color: var(--ld-blue);
}

.modal-booking .slot-btn.selected,
body.theme-cronos .modal-card.modal-calendar-edit .slot-btn.selected,
.modal-booking .booking-service-item.is-selected,
.boleta-svc-card:has(input:checked) {
    background: var(--ld-soft-red);
    border-color: var(--ld-red);
    color: var(--ld-ink);
    box-shadow: none;
}

body.theme-cronos .btn-danger,
body.theme-cronos .calendar-quick-actions .btn-danger,
body.theme-cronos button.btn-link,
body.theme-cronos a.btn-link,
body.staff-attendance-page .btn-link {
    background: transparent;
    box-shadow: none;
}

body.theme-cronos .btn-danger,
body.theme-cronos .calendar-quick-actions .btn-danger,
body.staff-attendance-page .staff-link-danger {
    color: var(--ld-red);
    border-color: var(--ld-red);
}

body.theme-cronos button.btn-link,
body.theme-cronos a.btn-link,
body.staff-attendance-page .btn-link,
.boleta-print-wrap .boleta-print-toolbar .btn-link {
    color: var(--ld-blue);
    border: none;
}

.hero.cronos-hero {
    border: none;
    background:
        linear-gradient(115deg, #081f33 0%, var(--ld-blue-deep) 58%, #123e62 100%);
    color: #fff;
}

.hero-overlay {
    background: linear-gradient(90deg, rgba(13, 60, 97, 0.18), transparent 72%);
}

.hero h2,
.hero p,
.hero-content,
.hero a,
.hero a:hover {
    color: #fff;
}

.hero-kicker {
    color: #fff;
}

.btn-ghost {
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.btn-ghost:hover {
    background: var(--ld-red);
    border-color: var(--ld-red);
    color: #fff;
}

.cronos-auth-visual {
    background: linear-gradient(165deg, #081f33 0%, var(--ld-blue-deep) 70%, #123e62 100%);
}

.auth-branding {
    background: rgba(255, 255, 255, 0.96);
    color: var(--ld-ink);
    border: none;
}

.auth-branding h2 {
    color: var(--ld-blue);
}

.auth-branding p {
    color: var(--ld-gray);
}

.auth-logo {
    width: 180px;
    border: none;
    background: transparent;
}

.price-card {
    background: #fff;
    border: 1px solid var(--ld-line);
}

.price-card-hot {
    border-color: var(--ld-red);
    box-shadow: 0 10px 24px rgba(227, 27, 36, 0.12);
}

.price-card-accent {
    border-color: var(--ld-blue);
}

.cronos-glow-banner,
.cronos-cta-strip {
    border: 1px solid rgba(227, 27, 36, 0.28);
    background: linear-gradient(180deg, #fff 0%, var(--ld-soft-red) 100%);
    color: var(--ld-ink);
}

.historial-hero {
    border: none;
    background: linear-gradient(120deg, #081f33, var(--ld-blue-deep) 72%, #123e62);
}

.historial-hero h2,
.historial-hero .historial-lead,
.historial-hero a,
.historial-hero a:hover {
    color: #fff;
}

.plate-tag {
    color: #fff;
    background: var(--ld-blue);
    border: 3px solid var(--ld-red);
}

.stat-box,
.loyalty-box,
.boleta-mini-item,
.boleta-steps li,
.boleta-fieldset,
.boleta-legal,
.boleta-aroma-type-row,
.boleta-svc-card,
.calendar-plates-block,
body.theme-cronos .day,
body.theme-cronos .permission-item,
.modal-booking .booking-services-panel,
.modal-booking .booking-service-item,
.modal-booking .booking-total-box {
    background: #fff;
    color: var(--ld-ink);
    border-color: var(--ld-line);
}

.boleta-readonly {
    background: var(--ld-soft-blue) !important;
    color: var(--ld-blue-deep) !important;
    border-color: var(--ld-blue) !important;
}

.boleta-steps li span,
.boleta-progress-track {
    background: var(--ld-soft-blue);
    border-color: var(--ld-line);
    color: var(--ld-blue-dark);
}

.boleta-steps li {
    color: var(--ld-gray);
}

.boleta-steps li.active {
    color: #fff;
    background: var(--ld-red);
    border-color: var(--ld-red);
}

.boleta-steps li.done {
    color: var(--ld-blue);
    border-color: var(--ld-blue);
    background: var(--ld-soft-blue);
}

.boleta-progress-bar {
    background: var(--ld-blue);
    color: #fff;
}

.notes-kind-nota {
    background: var(--ld-soft-red);
    color: var(--ld-red-dark);
    border-color: var(--ld-red);
}

body.theme-cronos code {
    background: var(--ld-soft-red);
    color: var(--ld-red-dark);
}

.boleta-svc-label,
.boleta-saving-text {
    color: var(--ld-ink);
}

.timeline-dot,
.timeline-item.timeline-boleta .timeline-dot {
    background: var(--ld-red);
    border-color: #fff;
    box-shadow: 0 0 0 3px rgba(227, 27, 36, 0.2);
}

.historial-timeline {
    border-left-color: #d5e0ea;
}

.plate-chip {
    background: var(--ld-soft-blue);
    border-color: var(--ld-blue);
}

.plate-chip a,
.plate-chip a:hover,
.client-back-link:hover {
    color: var(--ld-blue-dark);
}

body.theme-cronos table {
    background: #fff;
}

body.theme-cronos th {
    background: var(--ld-soft-blue);
    color: var(--ld-blue-deep);
    border-color: var(--ld-line);
}

body.theme-cronos td {
    background: #fff;
    color: var(--ld-ink);
    border-color: #e6eef5;
}

body.theme-cronos tbody tr:hover td {
    background: #f7fbfe;
}

body.theme-cronos .table-wrap {
    border-color: var(--ld-line);
    background: #fff;
}

body.theme-cronos .alert.success {
    background: #ecfdf3;
    border-color: #86efac;
    color: #166534;
}

body.theme-cronos .alert.error {
    background: var(--ld-soft-red);
    border-color: #fca5a5;
    color: #9f1239;
}

body.theme-cronos .day {
    background: #fff;
}

body.theme-cronos .appt--pendiente {
    background: #fff7e6;
    color: #8a5a00;
    border-color: #f5d48a;
}

body.theme-cronos .appt--confirmada {
    background: #ecfdf3;
    color: #166534;
    border-color: #86efac;
}

body.theme-cronos .appt--completada {
    background: var(--ld-soft-blue);
    color: var(--ld-blue-deep);
    border-color: #b9d7ee;
}

body.theme-cronos .appt--cancelada {
    background: var(--ld-soft-red);
    color: #9f1239;
    border-color: #fecdd3;
}

body.theme-cronos .calendar-edit-summary,
body.theme-cronos .calendar-edit-amount,
body.theme-cronos .calendar-edit-notes {
    background: var(--ld-soft-blue);
    border-color: #c5d9ea;
    color: var(--ld-ink);
}

.staff-tab {
    background: #fff;
    color: var(--ld-blue);
    border: 1px solid var(--ld-line);
}

.staff-tab:hover {
    border-color: var(--ld-blue);
    color: var(--ld-blue-dark);
    background: var(--ld-soft-blue);
}

.staff-tab.is-active {
    background: var(--ld-blue);
    border-color: var(--ld-blue);
    color: #fff;
}

.boleta-print-header {
    border-bottom-color: var(--ld-red);
}

.boleta-brand-logo {
    width: 150px;
    height: auto;
    display: block;
    margin-bottom: 8px;
}

.boleta-print-header .boleta-kicker,
.boleta-print-block h2,
.boleta-attachment-kind,
.boleta-attachment-open:hover {
    color: var(--ld-red);
}

.boleta-spinner {
    border-color: rgba(26, 110, 174, 0.2);
    border-top-color: var(--ld-blue);
}

.clients-check-inline {
    color: var(--ld-ink);
}

.status-pill.status-pendiente {
    background: #fff7e6;
    color: #8a5a00;
    border-color: #f5d48a;
}

.status-pill.status-confirmada {
    background: #ecfdf3;
    color: #166534;
    border-color: #86efac;
}

.status-pill.status-completada {
    background: var(--ld-soft-blue);
    color: var(--ld-blue-deep);
    border-color: #b9d7ee;
}

.status-pill.status-cancelada {
    background: var(--ld-soft-red);
    color: #9f1239;
    border-color: #fecdd3;
}

@media (max-width: 980px) {
    body.theme-cronos .services-table tbody tr,
    body.theme-cronos .users-table tbody tr,
    body.theme-cronos .appointments-table tbody tr {
        background: #fff;
        border-color: var(--ld-line);
    }

    body.theme-cronos .services-table td::before,
    body.theme-cronos .users-table td::before,
    body.theme-cronos .appointments-table td::before {
        color: var(--ld-red-text);
    }
}

/* Acabado más sobrio: menos brillo, más aire y contraste firme. */
body.theme-cronos {
    background: var(--ld-bg);
    color: var(--ld-ink);
}

body.theme-cronos h1,
body.theme-cronos h2,
body.theme-cronos h3,
.section-title,
.hero h2 {
    letter-spacing: -0.02em;
    font-weight: 700;
}

.brand h1 {
    letter-spacing: 0.04em;
    font-weight: 700;
}

.brand p {
    color: var(--ld-gray);
}

.card,
.price-card,
.modal-card,
.auth-card {
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(11, 44, 72, 0.04), 0 16px 40px rgba(11, 44, 72, 0.06);
}

.historial-week-card h3 {
    margin: 0 0 4px;
    color: #111;
}

.historial-week-head {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.historial-week-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

body.theme-cronos .historial-week-nav a.btn-secondary-historial,
body.theme-cronos .historial-week-nav a.btn-secondary-historial:hover {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 14px;
    background: #fff;
    color: #0e3f68;
    border: 1px solid #b7c6d4;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
}

.historial-week-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.historial-week-hint {
    margin: 0 0 10px;
    color: #111;
}

.historial-week-day {
    background: #f4f7f8;
    border: 1px solid #e1e7ec;
    border-radius: 14px;
    padding: 10px 6px;
    text-align: center;
    color: #111;
    cursor: pointer;
}

.historial-week-day.is-open:not(.is-today) {
    border-color: #0e3f68;
    box-shadow: inset 0 0 0 2px #0e3f68;
}

.historial-week-day span {
    display: block;
    font-size: 13px;
    font-weight: 600;
}

.historial-week-day strong {
    display: block;
    margin-top: 4px;
    font-size: 26px;
    line-height: 1.1;
    color: #0e3f68;
}

.historial-week-day.is-today {
    background: #0e3f68;
    border-color: #0e3f68;
    color: #fff;
}

.historial-week-day.is-today strong {
    color: #fff;
}

.historial-week-total {
    margin: 14px 0 0;
    padding: 12px 14px;
    border-radius: 14px;
    background: #eef4f9;
    color: #111;
    font-size: 16px;
}

.historial-week-total strong {
    color: #0e3f68;
    font-size: 22px;
}

.historial-week-empty {
    margin: 12px 0 0;
    color: #111;
}

.historial-week-vehicles {
    margin-top: 16px;
}

.historial-week-day-list.historial-hidden + .historial-week-vehicles,
.historial-week-vehicles:not(:has(.historial-week-day-list:not(.historial-hidden))) {
    margin-top: 0;
}

.historial-week-vehicles h4 {
    margin: 0 0 8px;
    color: #111;
    font-size: 15px;
}

.historial-week-vehicles ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.historial-week-vehicles li {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    gap: 4px 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid #e1e7ec;
    border-radius: 14px;
    background: #fff;
    color: #111;
}

.historial-week-vehicles li div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.historial-week-vehicles li .muted {
    color: #3e4a57;
}

body.theme-cronos .historial-week-vehicles a.historial-week-edit {
    color: var(--ld-blue);
    font-weight: 600;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.historial-week-time {
    font-weight: 700;
    color: #0e3f68;
}

@media (max-width: 720px) {
    .historial-week-vehicles li strong {
        font-size: 17px;
    }
}

@media (max-width: 720px) {
    .historial-week-days {
        grid-template-columns: 1fr;
    }

    .historial-week-day {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 52px;
        padding: 12px 14px;
        text-align: left;
    }

    .historial-week-day strong {
        margin-top: 0;
        font-size: 24px;
    }

    .historial-week-nav .btn-secondary-historial {
        width: 100%;
        justify-content: center;
    }
}

.hero.cronos-hero,
.historial-hero {
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(8, 31, 51, 0.16);
}

.hero-content {
    padding: 56px 40px;
}

.hero h2 {
    font-size: 40px;
    max-width: 16ch;
}

.hero p,
.historial-hero .historial-lead {
    color: rgba(255, 255, 255, 0.92);
}

.hero-kicker {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    letter-spacing: 0.12em;
    font-size: 11px;
}

body.theme-cronos button:not(.btn-link):not(.btn-whatsapp-share):not(.qty-btn):not(.modal-close):not(.boleta-close):not(.slot-btn):not(.plate-chip-remove):not(.btn-danger):not(.btn-secondary):not(.btn-secondary-historial):not(.boleta-photo-remove):not(.btn-excel),
body.theme-cronos .btn-accent:not(.btn-whatsapp-share),
body.theme-cronos a.btn-accent:not(.btn-whatsapp-share),
body.theme-cronos .public-nav-login {
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.01em;
    border-radius: 12px;
    opacity: 1;
}

body.theme-cronos button:hover,
body.theme-cronos .btn-accent:hover,
body.theme-cronos .public-nav-login:hover {
    opacity: 1;
}

body.theme-cronos .btn-secondary,
body.theme-cronos .btn-secondary-historial,
body.theme-cronos .calendar-nav-btn {
    background: #fff;
    color: var(--ld-blue-deep);
    border: 1px solid #b7c6d4;
    font-weight: 600;
}

body.theme-cronos .btn-secondary:hover,
body.theme-cronos .btn-secondary-historial:hover,
body.theme-cronos .calendar-nav-btn:hover {
    background: var(--ld-soft-blue);
    color: var(--ld-blue-deep);
    border-color: var(--ld-blue);
}

body.theme-cronos .btn-danger,
body.theme-cronos .calendar-quick-actions .btn-danger,
body.theme-cronos button.btn-danger {
    background: #fff;
    color: #9f1239;
    border: 1px solid #9f1239;
    box-shadow: none;
}

body.theme-cronos .btn-danger:hover,
body.theme-cronos .calendar-quick-actions .btn-danger:hover,
body.theme-cronos button.btn-danger:hover {
    background: #9f1239;
    color: #fff;
    border-color: #9f1239;
    filter: none;
}

.price-card {
    border-top: 3px solid var(--ld-blue);
}

.price-card-hot {
    border-top-color: var(--ld-red);
    border-color: #e7c4c8;
    box-shadow: 0 10px 28px rgba(11, 44, 72, 0.06);
}

.price-card-tier {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 12px;
}

.price-card-amount {
    color: var(--ld-blue-deep);
}

.cronos-glow-banner,
.cronos-cta-strip {
    background: #fff;
    border: 1px solid var(--ld-line);
    box-shadow: 0 1px 2px rgba(11, 44, 72, 0.04);
}

.cronos-cta-strip h3,
.cronos-glow-banner h3 {
    color: var(--ld-blue-deep);
}

body.theme-cronos .sidebar-nav a {
    font-weight: 600;
    color: #fff;
}

body.theme-cronos .sidebar-nav a.is-active,
body.theme-cronos .sidebar-nav a.is-active:hover {
    background: var(--ld-red);
    border-color: var(--ld-red);
    color: #fff;
    box-shadow: inset 4px 0 0 #fff;
}

.sidebar .brand img,
.app-topbar .brand img {
    background: #fff;
    border: 0;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.auth-branding {
    box-shadow: 0 16px 40px rgba(8, 31, 51, 0.18);
}

input,
select,
textarea {
    border-color: #c5d0db;
}

label {
    color: var(--ld-blue-deep);
}

.muted,
.section-lead,
.price-card-label {
    color: var(--ld-gray);
}

.boleta-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.appointment-delete-form {
    margin-top: 12px;
}

.boleta-print-toolbar .staff-inline-form {
    display: inline-flex;
    margin: 0;
}

.staff-boleta-money {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.staff-boleta-money li {
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #e1e7ec;
    border-radius: 12px;
    background: #f7f9fb;
    color: #111;
}

.staff-boleta-money span {
    display: block;
    font-size: 13px;
    color: #3e4a57;
}

.staff-boleta-money strong {
    display: block;
    margin-top: 4px;
    font-size: 20px;
    color: #0e3f68;
}

.staff-boleta-money li.is-total strong {
    color: #107c41;
}

@media (max-width: 720px) {
    .staff-boleta-money {
        grid-template-columns: 1fr;
    }
}

.staff-report-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.staff-report-actions .btn-accent,
.staff-report-actions .btn-secondary {
    min-height: 48px;
    padding: 12px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
}

body.theme-cronos .staff-report-actions button.btn-excel,
body.theme-cronos.staff-attendance-page .staff-report-actions button.btn-excel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 16px 0 10px;
    background: #fff;
    border: 1px solid #c5d9cc;
    border-radius: 12px;
    color: #185C37;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0;
    box-shadow: none;
    filter: none;
}

body.theme-cronos .staff-report-actions button.btn-excel:hover,
body.theme-cronos.staff-attendance-page .staff-report-actions button.btn-excel:hover {
    background: #f3faf6;
    border-color: #217346;
    color: #185C37;
    filter: none;
}

.excel-logo {
    width: 26px;
    height: 26px;
    display: block;
    flex-shrink: 0;
}

.staff-tab.is-active,
body.theme-cronos a.staff-tab.is-active {
    background: var(--ld-blue-deep);
    border-color: var(--ld-blue-deep);
    color: #fff;
}

.boleta-steps li.active,
.boleta-steps li.active span {
    color: #fff;
    background: var(--ld-red);
}

.modal-booking .slot-btn.selected,
body.theme-cronos .modal-card.modal-calendar-edit .slot-btn.selected {
    background: var(--ld-blue-deep);
    border-color: var(--ld-blue-deep);
    color: #fff;
}

/* Boleta: opciones y textos del wizard en negro, fáciles de tocar. */
body.theme-cronos .boleta-wizard-inline,
body.theme-cronos .boleta-modal-card,
body.theme-cronos .boleta-form .boleta-radio,
body.theme-cronos .boleta-form .boleta-check,
body.theme-cronos .boleta-form .boleta-fieldset,
body.theme-cronos .boleta-form .boleta-fieldset legend,
body.theme-cronos .boleta-form .boleta-legal,
body.theme-cronos .boleta-form .boleta-legal h4,
body.theme-cronos .boleta-form .boleta-legal-list,
body.theme-cronos .boleta-form .boleta-svc-label,
body.theme-cronos .boleta-form .muted,
body.theme-cronos .boleta-aroma-type-row,
body.theme-cronos .boleta-aroma-type-row label {
    color: #111;
}

body.theme-cronos .boleta-form .boleta-check-row,
body.theme-cronos .boleta-form .boleta-aroma-options,
body.theme-cronos .boleta-form .boleta-review-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

body.theme-cronos .boleta-form .boleta-radio,
body.theme-cronos .boleta-form .boleta-check {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 52px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #c5ced8;
    border-radius: 14px;
    background: #fff;
    color: #111;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

body.theme-cronos .boleta-form .boleta-radio input,
body.theme-cronos .boleta-form .boleta-check input {
    width: 22px;
    height: 22px;
    margin: 0;
    flex-shrink: 0;
    accent-color: #0e3f68;
}

body.theme-cronos .boleta-form .boleta-radio:has(input:checked),
body.theme-cronos .boleta-form .boleta-check:has(input:checked) {
    border-color: #0e3f68;
    background: #eef4f9;
    color: #111;
}

body.theme-cronos .boleta-form .boleta-fieldset {
    background: #fff;
    border-color: #d8e0e8;
    padding: 14px;
}

body.theme-cronos .boleta-form .boleta-fieldset legend,
body.theme-cronos .boleta-form .boleta-legal h4,
body.theme-cronos .boleta-form .boleta-block-title {
    color: #111;
    font-size: 16px;
}

body.theme-cronos .boleta-form .boleta-legal,
body.theme-cronos .boleta-form .boleta-legal-list {
    background: #fff;
    color: #111;
    font-size: 15px;
    line-height: 1.5;
}

body.theme-cronos .boleta-form .boleta-svc-tile,
body.theme-cronos .boleta-form .boleta-svc-card {
    background: #fff;
    border-color: #c5ced8;
    color: #111;
}

body.theme-cronos .boleta-form input,
body.theme-cronos .boleta-form select,
body.theme-cronos .boleta-form textarea {
    font-size: 16px;
    min-height: 48px;
    color: #111;
    background: #fff;
    border: 1px solid #c5ced8;
}

body.theme-cronos .boleta-notes-field {
    min-height: 140px;
    color: #111;
    background: #fff;
    border: 1px solid #c5ced8;
}

@media (max-width: 640px) {
    body.theme-cronos .boleta-steps {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 6px;
    }

    body.theme-cronos .boleta-steps li {
        min-height: 58px;
        padding: 8px 2px;
        font-size: 11px;
        line-height: 1.15;
        color: #111;
    }

    body.theme-cronos .boleta-steps li.active,
    body.theme-cronos .boleta-steps li.active span {
        color: #fff;
    }

    body.theme-cronos .boleta-wizard-footer {
        position: sticky;
        bottom: 0;
        z-index: 4;
        margin: 0 -4px;
        padding: 10px 4px 6px;
        background: #fff;
        box-shadow: 0 -8px 20px rgba(17, 17, 17, 0.06);
    }

    body.theme-cronos .boleta-wizard-footer .btn-accent,
    body.theme-cronos .boleta-wizard-footer .btn-secondary-historial {
        min-height: 52px;
        font-size: 17px;
    }

    body.theme-cronos .boleta-upload-actions .btn-secondary-historial {
        min-height: 52px;
        font-size: 17px;
    }
}

body.theme-cronos .boleta-upload-zone {
    background: #fff;
    border: 2px dashed #c5ced8;
    color: #111;
    text-align: center;
}

body.theme-cronos .boleta-upload-heading,
body.theme-cronos .boleta-upload-zone .muted,
body.theme-cronos .boleta-upload-name {
    color: #111;
}

body.theme-cronos .boleta-upload-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

body.theme-cronos .boleta-upload-actions .btn-secondary-historial {
    width: 100%;
    min-height: 48px;
}

body.theme-cronos .boleta-upload-input-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

body.theme-cronos .boleta-photo-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
    gap: 10px;
    margin-top: 14px;
}

body.theme-cronos .boleta-photo-thumb {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

body.theme-cronos .boleta-photo-file {
    min-height: 108px;
    margin: 0;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid #c5ced8;
    background: #f4f6f8;
    color: #111;
    font-size: 13px;
    word-break: break-word;
}

body.theme-cronos .boleta-photo-thumb img {
    width: 100%;
    height: 108px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #c5ced8;
    background: #f4f6f8;
}

body.theme-cronos .boleta-photo-remove {
    min-height: 40px;
    border-radius: 10px;
    border: 1px solid #c5ced8;
    background: #fff;
    color: #111;
    font-weight: 600;
    cursor: pointer;
}

body.theme-cronos .boleta-edit-card {
    margin: 0 0 18px;
}

body.theme-cronos .boleta-edit-card h2,
body.theme-cronos .boleta-edit-card h3,
body.theme-cronos .boleta-edit-card label,
body.theme-cronos .boleta-edit-card .boleta-check,
body.theme-cronos .boleta-edit-card .boleta-radio {
    color: #111;
}

body.theme-cronos .boleta-edit-services {
    display: grid;
    gap: 8px;
    max-height: 420px;
    overflow: auto;
    margin: 0 0 16px;
    padding: 8px;
    border: 1px solid #c5ced8;
    border-radius: 12px;
    background: #fff;
}

body.theme-cronos .boleta-edit-service {
    display: grid;
    grid-template-columns: auto 1fr 120px;
    gap: 10px;
    align-items: center;
    min-height: 48px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #f7f9fb;
    color: #111;
}

body.theme-cronos .boleta-edit-service input[type="number"] {
    width: 100%;
    min-height: 44px;
    color: #111;
    background: #fff;
}

body.theme-cronos .boleta-edit-flags,
body.theme-cronos .boleta-edit-aroma,
body.theme-cronos .boleta-edit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    align-items: center;
    margin: 8px 0 16px;
}

body.theme-cronos .boleta-edit-actions a.btn-secondary-historial {
    color: var(--ld-blue-deep);
}

@media (max-width: 640px) {
    body.theme-cronos .boleta-edit-service {
        grid-template-columns: auto 1fr;
    }

    body.theme-cronos .boleta-edit-service input[type="number"] {
        grid-column: 2;
    }
}
