/* ============================================================
   ESCRITORIO ADMIN — PEUMAYEN (claro por defecto)
============================================================ */

body.peuma-app {
    background:
        radial-gradient(ellipse 60% 40% at 8% 0%, rgba(238, 28, 37, 0.08), transparent 55%),
        linear-gradient(180deg, #f6f6f6 0%, #ececec 100%);
    color: #1a1a1a;
    font-family: "Barlow", "Segoe UI", sans-serif;
    min-height: 100vh;
}

body.peuma-app .app-shell-main {
    max-width: 1120px;
    margin: 0 auto;
    padding: 24px 22px 36px;
}

body.peuma-app footer {
    color: rgba(17, 17, 17, 0.45) !important;
}

body.peuma-app .app-menu-button {
    background: #ffffff;
    border-color: #ddd;
    box-shadow: 0 10px 22px rgba(17, 17, 17, 0.1);
    color: #111;
}

body.peuma-app .app-menu-button:hover {
    background: #fff;
    border-color: #ee1c25;
    color: #111;
}

.admin-desk {
    display: grid;
    gap: 28px;
}

.admin-flash {
    align-items: center;
    border-radius: 4px;
    display: inline-flex;
    font-weight: 600;
    gap: 10px;
    padding: 12px 14px;
    width: fit-content;
}

.admin-flash-ok {
    background: rgba(34, 160, 92, 0.12);
    border: 1px solid rgba(34, 160, 92, 0.35);
    color: #1d6b3f;
}

.admin-desk-hero {
    align-items: end;
    display: flex;
    gap: 24px;
    justify-content: space-between;
}

.admin-desk-kicker {
    color: #ee1c25;
    font-family: "Oswald", Impact, sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.admin-desk-hero h1 {
    color: #111;
    font-family: "Oswald", Impact, sans-serif;
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 0.95;
    margin: 0 0 12px;
    text-transform: uppercase;
}

.admin-desk-lead {
    color: #555;
    font-size: 1.05rem;
    margin: 0;
}

.admin-desk-lead strong {
    color: #111;
    font-weight: 700;
}

.admin-desk-mark {
    background: #000;
    border-radius: 4px;
    display: block;
    height: auto;
    max-height: 110px;
    max-width: 150px;
    object-fit: contain;
    padding: 6px;
}

.admin-desk-alert-form {
    margin: 0;
}

.admin-desk-alert-wrap {
    position: relative;
}

.admin-desk-alert-wrap.is-dismissed {
    display: none;
}

.admin-desk-alert-dismiss {
    align-items: center;
    appearance: none;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(17, 17, 17, 0.12);
    border-radius: 999px;
    color: #666;
    cursor: pointer;
    display: inline-flex;
    font-size: 0.78rem;
    height: 28px;
    justify-content: center;
    position: absolute;
    right: 8px;
    top: 8px;
    width: 28px;
    z-index: 2;
}

.admin-desk-alert-dismiss:hover,
.admin-desk-alert-dismiss:focus-visible {
    background: #fff;
    border-color: rgba(17, 17, 17, 0.28);
    color: #111;
    outline: none;
}

.admin-desk-alert {
    align-items: center;
    appearance: none;
    background: rgba(238, 28, 37, 0.06);
    border: 1px solid rgba(238, 28, 37, 0.35);
    border-radius: 4px;
    color: inherit;
    cursor: pointer;
    display: grid;
    font: inherit;
    gap: 14px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 14px 40px 14px 16px;
    text-align: left;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
    width: 100%;
}

.admin-desk-alert:hover,
.admin-desk-alert:focus-visible {
    background: rgba(238, 28, 37, 0.1);
    border-color: rgba(238, 28, 37, 0.5);
    outline: none;
    transform: translateY(-1px);
}

.admin-desk-alert-icon {
    align-items: center;
    color: #ee1c25;
    display: inline-flex;
    font-size: 1.35rem;
    justify-content: center;
}

.admin-desk-alert-body {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.admin-desk-alert-body strong {
    color: #b31218;
    font-size: 0.95rem;
    font-weight: 700;
}

.admin-desk-alert-body span {
    color: #5c5c5c;
    font-size: 0.9rem;
    line-height: 1.35;
}

.admin-desk-alert-action {
    color: #ee1c25;
    font-family: "Oswald", Impact, sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

a.admin-desk-alert {
    text-decoration: none;
}

.admin-desk-alert-warn {
    background: rgba(196, 120, 12, 0.08);
    border-color: rgba(196, 120, 12, 0.4);
}

.admin-desk-alert-warn:hover,
.admin-desk-alert-warn:focus-visible {
    background: rgba(196, 120, 12, 0.14);
    border-color: rgba(196, 120, 12, 0.55);
}

.admin-desk-alert-warn .admin-desk-alert-icon,
.admin-desk-alert-warn .admin-desk-alert-body strong,
.admin-desk-alert-warn .admin-desk-alert-action {
    color: #8a5400;
}

.admin-desk-block-cta-form {
    display: inline-flex;
    margin: 0;
}

.admin-desk-block-cta {
    appearance: none;
    background: #ee1c25;
    border: 1px solid #ee1c25;
    border-radius: 3px;
    color: #fff;
    cursor: pointer;
    font-family: "Oswald", Impact, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 5px 10px;
    text-transform: uppercase;
}

.admin-desk-block-cta:hover {
    background: #ff2a33;
}

.admin-desk-block[id="admin-desk-asistencia-pendiente"] {
    scroll-margin-top: 88px;
}

/* ---------- Pasar asistencia ---------- */
.admin-asistencia {
    display: grid;
    gap: 16px;
}

.admin-asistencia-head {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    justify-content: space-between;
}

.admin-asistencia-head-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.admin-asistencia-bloque-hora {
    color: #111;
    font-family: "Oswald", Impact, sans-serif;
    font-size: clamp(1.85rem, 5vw, 2.35rem);
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1;
    margin: 0;
    text-transform: uppercase;
}

.admin-asistencia-bloque-meta {
    color: #777;
    font-size: 0.9rem;
    margin: 0;
}

.admin-asistencia-panel {
    gap: 14px;
}

.admin-asistencia-progress {
    display: grid;
    gap: 8px;
}

.admin-asistencia-progress p {
    color: #666;
    font-size: 0.88rem;
    margin: 0;
}

.admin-asistencia-progress-bar {
    background: #ececec;
    border-radius: 999px;
    height: 5px;
    overflow: hidden;
}

.admin-asistencia-progress-bar span {
    background: #ee1c25;
    display: block;
    height: 100%;
    transition: width 0.2s ease;
}

.admin-asistencia-list {
    display: grid;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.admin-asistencia-row {
    align-items: center;
    border-top: 1px solid #ececec;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 12px 2px;
}

.admin-asistencia-row:first-child {
    border-top: 0;
    padding-top: 2px;
}

.admin-asistencia-row.is-asistio {
    background: rgba(34, 160, 92, 0.06);
}

.admin-asistencia-row.is-no_asistio {
    background: rgba(238, 28, 37, 0.05);
}

.admin-asistencia-row.is-cancelada {
    background: rgba(100, 100, 100, 0.06);
    opacity: 0.85;
}

.admin-asistencia-row.is-rezagado {
    border-left: 3px solid #c4780c;
    padding-left: 8px;
}

.admin-asistencia-row.is-empty {
    opacity: 0.85;
}

.admin-asistencia-person {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.admin-asistencia-person strong {
    color: #111;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.25;
}

.admin-asistencia-person span {
    color: #777;
    font-size: 0.82rem;
}

.admin-asistencia-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
}

.admin-asistencia-btn {
    appearance: none;
    background: #fff;
    border: 1px solid #d5d5d5;
    border-radius: 3px;
    color: #444;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 700;
    min-height: 34px;
    padding: 5px 10px;
}

.admin-asistencia-btn.is-ok.is-active,
.admin-asistencia-btn.is-ok[aria-pressed="true"] {
    background: rgba(34, 160, 92, 0.14);
    border-color: rgba(34, 160, 92, 0.45);
    color: #1d6b3f;
}

.admin-asistencia-btn.is-no.is-active,
.admin-asistencia-btn.is-no[aria-pressed="true"] {
    background: rgba(238, 28, 37, 0.1);
    border-color: rgba(238, 28, 37, 0.4);
    color: #b31218;
}

.admin-asistencia-btn.is-cancel.is-active,
.admin-asistencia-btn.is-cancel[aria-pressed="true"] {
    background: rgba(100, 100, 100, 0.14);
    border-color: rgba(100, 100, 100, 0.4);
    color: #444;
}

.admin-asistencia-btn.is-remove {
    border-color: #ddd;
    color: #666;
}

.admin-asistencia-btn.is-move {
    background: #fff8ef;
    border-color: rgba(196, 120, 12, 0.45);
    color: #8a4b00;
}

.admin-asistencia-mover-form {
    align-items: center;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
}

.admin-asistencia-mover-select {
    font-size: 0.82rem;
    max-width: 11rem;
    min-height: 34px;
    padding: 4px 8px;
}

.admin-asistencia-extras {
    border-top: 1px dashed #e4e4e4;
    margin-top: 2px;
    padding-top: 8px;
}

.admin-asistencia-extras > summary {
    color: #888;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    list-style: none;
    user-select: none;
}

.admin-asistencia-extras > summary::-webkit-details-marker {
    display: none;
}

.admin-asistencia-extras > summary::before {
    color: #aaa;
    content: "+ ";
    font-weight: 700;
}

.admin-asistencia-extras[open] > summary {
    color: #555;
    margin-bottom: 8px;
}

.admin-asistencia-extras[open] > summary::before {
    content: "– ";
}

.admin-asistencia-extras-body {
    display: grid;
    gap: 10px;
}

.admin-asistencia-rezagado {
    display: grid;
    gap: 4px;
}

.admin-asistencia-rezagado-label {
    color: #777;
    font-size: 0.75rem;
    font-weight: 600;
    margin: 0;
}

.admin-asistencia-picker {
    position: relative;
}

.admin-asistencia-picker-field {
    position: relative;
}

.admin-asistencia-picker-input {
    background: #fafafa;
    border-color: #e6e6e6;
    font-size: 0.86rem;
    min-height: 40px;
    padding-right: 4.75rem;
    width: 100%;
}

.admin-asistencia-picker-add {
    appearance: none;
    background: transparent;
    border: 0;
    border-left: 1px solid #e4e4e4;
    color: #ee1c25;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    min-height: 38px;
    padding: 0 12px;
    position: absolute;
    right: 1px;
    text-transform: uppercase;
    top: 50%;
    transform: translateY(-50%);
}

.admin-asistencia-picker-add:hover:not(:disabled) {
    color: #c4121a;
}

.admin-asistencia-picker-add:disabled {
    color: #bbb;
    cursor: default;
}

.admin-asistencia-picker-results {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
    left: 0;
    list-style: none;
    margin: 4px 0 0;
    max-height: 200px;
    overflow: auto;
    padding: 4px;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 30;
}

.admin-asistencia-picker-option,
.admin-asistencia-picker-empty {
    border-radius: 3px;
    padding: 7px 9px;
}

.admin-asistencia-picker-option {
    cursor: pointer;
    display: grid;
    gap: 1px;
}

.admin-asistencia-picker-option strong {
    color: #222;
    font-size: 0.86rem;
    font-weight: 650;
}

.admin-asistencia-picker-option span {
    color: #777;
    font-size: 0.74rem;
}

.admin-asistencia-picker-option.is-repeticion span {
    color: #8a5400;
    font-weight: 600;
}

.admin-asistencia-picker-option:hover,
.admin-asistencia-picker-option.is-active {
    background: rgba(238, 28, 37, 0.07);
}

.admin-asistencia-picker-empty {
    color: #888;
    font-size: 0.8rem;
}

.admin-asistencia-rezagado .admin-field-hint {
    color: #999;
    font-size: 0.74rem;
    margin: 0;
}

.admin-asistencia-rezagado-tag {
    background: rgba(196, 120, 12, 0.14);
    border-radius: 3px;
    color: #8a5400;
    font-size: 0.7rem;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-left: 6px;
    padding: 2px 6px;
    text-transform: uppercase;
}

.admin-asistencia-footer {
    border-top: 1px solid #ececec;
    display: grid;
    gap: 8px;
    padding-top: 12px;
}

.admin-asistencia-footer .admin-btn-primary {
    width: 100%;
}

.admin-asistencia.is-preview .admin-asistencia-actions {
    opacity: 0.72;
}

@media (max-width: 640px) {
    .admin-asistencia-row {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .admin-asistencia-actions {
        width: 100%;
    }

    .admin-asistencia-btn {
        flex: 1 1 auto;
    }
}

.admin-desk-panel {
    background: #ffffff;
    border: 1px solid #e4e4e4;
    border-radius: 4px;
    box-shadow: 0 8px 18px rgba(17, 17, 17, 0.04);
    display: grid;
    gap: 16px;
    padding: 18px 18px 14px;
}

.admin-desk-panel-head {
    display: grid;
    gap: 0;
}

.admin-desk-day-nav {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    width: 100%;
}

.admin-desk-day-nav form {
    margin: 0;
}

.admin-desk-day-nav-hoy-form {
    display: inline-flex;
    justify-content: center;
    margin-top: 2px;
}

.admin-desk-day-nav-hoy-link {
    appearance: none;
    background: none;
    border: 0;
    color: #888;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.admin-desk-day-nav-hoy-link:hover,
.admin-desk-day-nav-hoy-link:focus-visible {
    color: #b31218;
    outline: none;
}

.admin-desk-day-nav-center {
    display: grid;
    gap: 2px;
    justify-items: center;
    min-width: 0;
    text-align: center;
}

.admin-desk-day-nav-center strong {
    color: #111;
    font-family: "Oswald", Impact, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.admin-desk-day-nav-center span {
    color: #666;
    font-size: 0.88rem;
}

.admin-desk-day-nav-btn {
    align-items: center;
    appearance: none;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    color: #111;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    justify-content: center;
    min-height: 34px;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    width: 34px;
}

.admin-desk-day-nav-btn:hover {
    border-color: #ee1c25;
    color: #b31218;
}

.admin-desk-day-nav-btn.is-disabled {
    cursor: default;
    opacity: 0.35;
    pointer-events: none;
}

.admin-desk-panel-head h2 {
    color: #111;
    font-family: "Oswald", Impact, sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin: 0 0 4px;
    text-transform: uppercase;
}

.admin-desk-panel-head p {
    color: #666;
    font-size: 0.92rem;
    margin: 0;
}

.admin-desk-empty {
    border: 1px dashed #d5d5d5;
    border-radius: 4px;
    color: #666;
    font-size: 0.95rem;
    margin: 0;
    padding: 18px 14px;
}

.admin-desk-blocks {
    border-collapse: separate;
    border-spacing: 0 4px;
    margin: 0;
    padding: 0;
    width: 100%;
}

.admin-desk-block-group + .admin-desk-block-group .admin-desk-block-group-head th {
    padding-top: 18px;
}

.admin-desk-block-group-head th {
    color: #b31218;
    font-family: "Oswald", Impact, sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 4px 8px 8px;
    text-align: left;
    text-transform: uppercase;
}

.admin-desk-block-group.is-pm .admin-desk-block-group-head th {
    border-top: 1px solid #e4e4e4;
    margin-top: 8px;
}

.admin-desk-block-body {
    align-items: center;
    border-radius: 4px;
    display: grid;
    gap: 10px 16px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 12px 10px;
    transition: background 0.15s ease;
    vertical-align: middle;
}

.admin-desk-block.is-en_curso .admin-desk-block-body {
    background: rgba(238, 28, 37, 0.05);
    box-shadow: inset 3px 0 0 #ee1c25;
}

.admin-desk-block.is-pendiente_asistencia .admin-desk-block-body,
.admin-desk-block.is-pendiente_desierto .admin-desk-block-body {
    background: rgba(196, 120, 12, 0.08);
    box-shadow: inset 3px 0 0 #c4780c;
}

.admin-desk-block.is-asistencia_ok .admin-desk-block-body,
.admin-desk-block.is-finalizado .admin-desk-block-body {
    background: rgba(34, 160, 92, 0.05);
    box-shadow: inset 3px 0 0 rgba(34, 160, 92, 0.55);
    opacity: 0.92;
}

.admin-desk-block.is-desierto .admin-desk-block-body {
    background: rgba(120, 120, 120, 0.06);
    box-shadow: inset 3px 0 0 rgba(120, 120, 120, 0.4);
    opacity: 0.88;
}

.admin-desk-block.is-proximo .admin-desk-block-body {
    box-shadow: inset 3px 0 0 rgba(17, 17, 17, 0.2);
}

.admin-desk-block-main {
    align-items: center;
    display: grid;
    gap: 6px 12px;
    grid-template-columns: auto minmax(0, 1fr);
    min-width: 0;
}

.admin-desk-block-time {
    background: #111;
    border-radius: 3px;
    color: #fff;
    display: inline-block;
    font-family: "Oswald", Impact, sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    padding: 6px 9px;
    white-space: nowrap;
}

.admin-desk-block-meta {
    align-items: center;
    color: #666;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.88rem;
    gap: 6px 10px;
    min-width: 0;
}

.admin-desk-block-jornada {
    background: rgba(238, 28, 37, 0.08);
    border: 1px solid rgba(238, 28, 37, 0.22);
    border-radius: 3px;
    color: #b31218;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 3px 7px;
}

.admin-desk-block-status {
    align-items: center;
    border: 0;
    border-radius: 3px;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 700;
    gap: 5px;
    letter-spacing: 0.02em;
    padding: 3px 8px;
}

.admin-desk-block-status .bi {
    font-size: 0.85em;
    line-height: 1;
}

button.admin-desk-block-status.is-consulta {
    cursor: pointer;
    font: inherit;
    transition: filter 0.15s ease, transform 0.15s ease;
}

button.admin-desk-block-status.is-consulta:hover {
    filter: brightness(0.96);
}

button.admin-desk-block-status.is-consulta:focus-visible {
    outline: 2px solid #ee1c25;
    outline-offset: 2px;
}

.admin-desk-consulta-lead {
    color: #777;
    font-size: 0.9rem;
    margin: 0 0 10px;
}

.admin-desk-consulta-empty {
    color: #666;
    margin: 0;
}

.admin-desk-consulta-list {
    color: #111;
    font-size: 0.95rem;
    margin: 0;
    max-height: min(50vh, 320px);
    overflow: auto;
    padding: 0 0 0 1.2em;
    text-align: left;
}

.admin-desk-consulta-list li {
    margin: 0 0 6px;
    padding: 0;
}

.admin-desk-consulta-list li:last-child {
    margin-bottom: 0;
}

/* Dentro del popup (tema claro u oscuro del swal) */
.swal-token-popup .admin-desk-consulta-lead,
.swal-token-popup .admin-desk-consulta-empty {
    color: #777;
}

.swal-token-popup .admin-desk-consulta-list {
    color: #111;
}

html[data-bs-theme="dark"] .swal-token-popup .admin-desk-consulta-lead,
html[data-bs-theme="dark"] .swal-token-popup .admin-desk-consulta-empty {
    color: rgba(255, 255, 255, 0.7);
}

html[data-bs-theme="dark"] .swal-token-popup .admin-desk-consulta-list {
    color: #f2f2f2;
}

.admin-desk-block-fact {
    color: #555;
}

.admin-desk-block-cta-form {
    display: inline-flex;
    justify-self: end;
    margin: 0;
}

.admin-desk-block.is-proximo .admin-desk-block-status {
    background: #f0f0f0;
    color: #555;
}

.admin-desk-block.is-en_curso .admin-desk-block-status {
    background: rgba(238, 28, 37, 0.12);
    color: #b31218;
}

.admin-desk-block.is-pendiente_asistencia .admin-desk-block-status,
.admin-desk-block.is-pendiente_desierto .admin-desk-block-status {
    background: rgba(196, 120, 12, 0.16);
    color: #8a5400;
}

.admin-desk-block.is-asistencia_ok .admin-desk-block-status,
.admin-desk-block.is-finalizado .admin-desk-block-status {
    background: rgba(34, 160, 92, 0.14);
    color: #1d6b3f;
}

.admin-desk-block.is-asistencia_ok .admin-desk-block-status.is-finalizado,
.admin-desk-block.is-desierto .admin-desk-block-status.is-finalizado,
.admin-desk-block.is-desierto .admin-desk-block-status.is-desierto {
    background: rgba(80, 80, 80, 0.1);
    color: #555;
}

.admin-desk-block.is-asistencia_ok .admin-desk-block-status.is-asiste {
    background: rgba(34, 160, 92, 0.14);
    color: #1d6b3f;
}

.admin-desk-block.is-asistencia_ok .admin-desk-block-status.is-no {
    background: rgba(238, 28, 37, 0.1);
    color: #b31218;
}

.admin-desk-block-status.is-reserva {
    background: rgba(17, 17, 17, 0.08);
    color: #333;
}

button.admin-desk-block-status.is-reserva.is-consulta:hover {
    background: rgba(238, 28, 37, 0.1);
    color: #b31218;
}

/* Offcanvas claro en app Peumayen */
body.peuma-app .app-offcanvas {
    background: #ffffff;
    border-right-color: #e5e5e5;
    color: #1a1a1a;
}

body.peuma-app .app-offcanvas-role {
    background: #f6f6f6;
    border-color: #e5e5e5;
}

body.peuma-app .app-offcanvas-role span,
body.peuma-app .app-offcanvas-role small,
body.peuma-app .app-offcanvas-section-label {
    color: #777;
}

body.peuma-app .app-offcanvas-role strong,
body.peuma-app .app-offcanvas-link,
body.peuma-app .app-offcanvas-logout,
body.peuma-app .app-offcanvas-group-summary,
body.peuma-app .app-theme-toggle {
    color: #1a1a1a;
}

body.peuma-app .app-offcanvas-link:hover,
body.peuma-app .app-offcanvas-logout:hover,
body.peuma-app .app-offcanvas-group-summary:hover {
    background: rgba(238, 28, 37, 0.08);
    color: #111;
}

body.peuma-app .app-offcanvas-link.is-alert {
    color: #b31218;
}

body.peuma-app .app-offcanvas-link.is-alert:hover {
    background: rgba(238, 28, 37, 0.1);
    color: #ee1c25;
}

body.peuma-app .app-offcanvas-link-count {
    background: rgba(238, 28, 37, 0.12);
    color: #b31218;
}

body.peuma-app .app-theme-toggle {
    background: #f6f6f6;
    border-color: #e5e5e5;
}

/* ---------- Dark mode (opcional) ---------- */
html[data-bs-theme="dark"] body.peuma-app {
    background:
        radial-gradient(ellipse 60% 40% at 10% 0%, rgba(238, 28, 37, 0.14), transparent 55%),
        #0a0a0a;
    color: #f2f2f2;
}

html[data-bs-theme="dark"] body.peuma-app footer {
    color: rgba(255, 255, 255, 0.4) !important;
}

html[data-bs-theme="dark"] body.peuma-app .app-menu-button {
    background: #111;
    border-color: #333;
    color: #fff;
}

html[data-bs-theme="dark"] .admin-flash-ok {
    background: rgba(34, 160, 92, 0.16);
    border-color: rgba(34, 160, 92, 0.45);
    color: #b6f0cb;
}

html[data-bs-theme="dark"] .admin-desk-hero h1,
html[data-bs-theme="dark"] .admin-desk-lead strong,
html[data-bs-theme="dark"] .admin-desk-panel-head h2 {
    color: #fff;
}

html[data-bs-theme="dark"] .admin-desk-day-nav-hoy-link {
    color: rgba(255, 255, 255, 0.55);
}

html[data-bs-theme="dark"] .admin-desk-day-nav-hoy-link:hover,
html[data-bs-theme="dark"] .admin-desk-day-nav-hoy-link:focus-visible {
    color: #ff7a80;
}

html[data-bs-theme="dark"] .admin-desk-day-nav-center strong {
    color: #f2f2f2;
}

html[data-bs-theme="dark"] .admin-desk-day-nav-btn {
    background: #1a1a1a;
    border-color: #333;
    color: #f2f2f2;
}

html[data-bs-theme="dark"] .admin-desk-day-nav-btn:hover {
    border-color: #ff7a80;
    color: #ff7a80;
}


html[data-bs-theme="dark"] .admin-desk-block-time {
    background: #f2f2f2;
    color: #111;
}

html[data-bs-theme="dark"] .admin-desk-lead,
html[data-bs-theme="dark"] .admin-desk-panel-head p,
html[data-bs-theme="dark"] .admin-desk-day-nav-center span,
html[data-bs-theme="dark"] .admin-desk-block-meta,
html[data-bs-theme="dark"] .admin-desk-empty,
html[data-bs-theme="dark"] .admin-desk-alert-body span {
    color: rgba(255, 255, 255, 0.62);
}

html[data-bs-theme="dark"] .admin-desk-panel {
    background: #121212;
    border-color: #2a2a2a;
}

html[data-bs-theme="dark"] .admin-desk-block-group-head th {
    color: #ff7a80;
}

html[data-bs-theme="dark"] .admin-desk-block-group.is-pm .admin-desk-block-group-head th {
    border-top-color: #2a2a2a;
}

html[data-bs-theme="dark"] .admin-desk-empty {
    border-color: #333;
}

html[data-bs-theme="dark"] .admin-desk-alert {
    background: rgba(255, 122, 128, 0.08);
    border-color: rgba(255, 122, 128, 0.35);
}

html[data-bs-theme="dark"] .admin-desk-alert-body strong,
html[data-bs-theme="dark"] .admin-desk-alert-action,
html[data-bs-theme="dark"] .admin-desk-alert-icon {
    color: #ff7a80;
}

html[data-bs-theme="dark"] .admin-desk-alert-warn {
    background: rgba(255, 176, 64, 0.1);
    border-color: rgba(255, 176, 64, 0.4);
}

html[data-bs-theme="dark"] .admin-desk-alert-warn .admin-desk-alert-body strong,
html[data-bs-theme="dark"] .admin-desk-alert-warn .admin-desk-alert-action,
html[data-bs-theme="dark"] .admin-desk-alert-warn .admin-desk-alert-icon {
    color: #ffc56d;
}

html[data-bs-theme="dark"] .admin-asistencia-bloque-hora,
html[data-bs-theme="dark"] .admin-asistencia-person strong {
    color: #fff;
}

html[data-bs-theme="dark"] .admin-asistencia-progress p,
html[data-bs-theme="dark"] .admin-asistencia-bloque-meta,
html[data-bs-theme="dark"] .admin-asistencia-person span {
    color: rgba(255, 255, 255, 0.62);
}

html[data-bs-theme="dark"] .admin-asistencia-btn {
    background: #161616;
    border-color: #333;
    color: #ddd;
}

html[data-bs-theme="dark"] .admin-desk-block.is-en_curso .admin-desk-block-body {
    background: rgba(238, 28, 37, 0.1);
}

html[data-bs-theme="dark"] .admin-desk-block.is-pendiente_asistencia .admin-desk-block-body,
html[data-bs-theme="dark"] .admin-desk-block.is-pendiente_desierto .admin-desk-block-body {
    background: rgba(255, 176, 64, 0.1);
}

html[data-bs-theme="dark"] .admin-desk-block.is-asistencia_ok .admin-desk-block-body,
html[data-bs-theme="dark"] .admin-desk-block.is-finalizado .admin-desk-block-body {
    background: rgba(34, 160, 92, 0.1);
}

html[data-bs-theme="dark"] .admin-desk-block.is-desierto .admin-desk-block-body {
    background: rgba(255, 255, 255, 0.04);
}

html[data-bs-theme="dark"] .admin-desk-block.is-proximo .admin-desk-block-status {
    background: #222;
    color: rgba(255, 255, 255, 0.7);
}

html[data-bs-theme="dark"] .admin-desk-block.is-pendiente_asistencia .admin-desk-block-status,
html[data-bs-theme="dark"] .admin-desk-block.is-pendiente_desierto .admin-desk-block-status {
    background: rgba(255, 176, 64, 0.18);
    color: #ffc56d;
}

html[data-bs-theme="dark"] .admin-desk-block.is-asistencia_ok .admin-desk-block-status,
html[data-bs-theme="dark"] .admin-desk-block.is-finalizado .admin-desk-block-status {
    background: rgba(34, 160, 92, 0.18);
    color: #b6f0cb;
}

html[data-bs-theme="dark"] .admin-desk-block.is-asistencia_ok .admin-desk-block-status.is-finalizado,
html[data-bs-theme="dark"] .admin-desk-block.is-desierto .admin-desk-block-status.is-finalizado,
html[data-bs-theme="dark"] .admin-desk-block.is-desierto .admin-desk-block-status.is-desierto {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.62);
}

html[data-bs-theme="dark"] .admin-desk-block.is-asistencia_ok .admin-desk-block-status.is-asiste {
    background: rgba(34, 160, 92, 0.18);
    color: #b6f0cb;
}

html[data-bs-theme="dark"] .admin-desk-block-status.is-reserva {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.82);
}

html[data-bs-theme="dark"] button.admin-desk-block-status.is-reserva.is-consulta:hover {
    background: rgba(238, 28, 37, 0.18);
    color: #ff7a80;
}

html[data-bs-theme="dark"] body.peuma-app .app-offcanvas {
    background: #0f0f0f;
    border-right-color: #222;
    color: #f2f2f2;
}

html[data-bs-theme="dark"] body.peuma-app .app-offcanvas-role,
html[data-bs-theme="dark"] body.peuma-app .app-theme-toggle {
    background: #161616;
    border-color: #2a2a2a;
}

html[data-bs-theme="dark"] body.peuma-app .app-offcanvas-role strong,
html[data-bs-theme="dark"] body.peuma-app .app-offcanvas-link,
html[data-bs-theme="dark"] body.peuma-app .app-offcanvas-group-summary,
html[data-bs-theme="dark"] body.peuma-app .app-offcanvas-logout,
html[data-bs-theme="dark"] body.peuma-app .app-theme-toggle {
    color: #f0f0f0;
}

html[data-bs-theme="dark"] body.peuma-app .app-offcanvas-logout {
    background: rgba(238, 28, 37, 0.16);
    color: #ff9aa0;
}

html[data-bs-theme="dark"] body.peuma-app .app-offcanvas-link:hover,
html[data-bs-theme="dark"] body.peuma-app .app-offcanvas-group-summary:hover,
html[data-bs-theme="dark"] body.peuma-app .app-offcanvas-logout:hover {
    background: rgba(238, 28, 37, 0.12);
    color: #fff;
}

html[data-bs-theme="dark"] body.peuma-app .app-offcanvas-logout:hover {
    background: rgba(238, 28, 37, 0.28);
    color: #ffc4c7;
}

html[data-bs-theme="dark"] body.peuma-app .app-offcanvas-link.is-alert {
    color: #ff7a80;
}

html[data-bs-theme="dark"] body.peuma-app .app-offcanvas-link-count {
    background: rgba(238, 28, 37, 0.2);
    color: #ff9aa0;
}

@media (max-width: 960px) {
    .admin-desk-alert {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .admin-desk-alert-action {
        grid-column: 2;
    }
}

@media (max-width: 640px) {
    .admin-desk-hero {
        align-items: center;
        flex-direction: row;
        gap: 12px;
        justify-content: flex-start;
    }

    .admin-desk-hero-copy {
        flex: 1 1 auto;
        min-width: 0;
    }

    .admin-desk-mark {
        flex-shrink: 0;
        max-height: 72px;
        max-width: 96px;
        order: -1;
    }

    .admin-desk-hero h1 {
        font-size: 1.7rem;
        margin-bottom: 6px;
    }

    .admin-desk-lead {
        font-size: 0.92rem;
    }

    .admin-desk-block-body {
        gap: 8px;
        grid-template-columns: 1fr;
    }

    .admin-desk-block-main {
        grid-template-columns: 1fr;
    }

    .admin-desk-block-cta-form,
    .admin-desk-block-cta {
        width: 100%;
    }

    body.peuma-app .app-shell-main {
        padding:
            max(20px, env(safe-area-inset-top))
            max(12px, env(safe-area-inset-right))
            24px
            max(12px, env(safe-area-inset-left));
    }
}
