@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

app {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
}

.top-row {
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.main {
    flex: 1;
}

    .main .top-row {
        background-color: #f7f7f7;
        border-bottom: 1px solid #d6d5d5;
        justify-content: flex-end;
    }

        .main .top-row > a, .main .top-row .btn-link {
            white-space: nowrap;
            margin-left: 1.5rem;
        }

.main .top-row a:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar {
    /* background-image: linear-gradient(180deg,#00346A 0%, #3a0647 70%);*/
    background-color : #00346A;
}

    .sidebar .top-row {
        background-color: #00346A;
    }

    .sidebar .navbar-brand {
        font-size: 1.1rem;
    }

    .sidebar .oi {
        width: 2rem;
        font-size: 1.1rem;
        vertical-align: text-top;
        top: -2px;
    }

    .sidebar .nav-item {
        font-size: 0.9rem;
        padding-bottom: 0.5rem;
    }

        .sidebar .nav-item:first-of-type {
            padding-top: 1rem;
        }

        .sidebar .nav-item:last-of-type {
            padding-bottom: 1rem;
        }

        .sidebar .nav-item a {
            color: #d7d7d7;
            border-radius: 4px;
            height: 3rem;
            display: flex;
            align-items: center;
            line-height: 3rem;
        }

            .sidebar .nav-item a.active {
                background-color: rgba(255,255,255,0.25);
                color: white;
            }

            .sidebar .nav-item a:hover {
                background-color: rgba(255,255,255,0.1);
                color: white;
            }

.content {
    padding-top: 1.1rem;
}

.navbar-toggler {
    background-color: rgba(255, 255, 255, 0.1);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

@media (max-width: 767.98px) {
    .main .top-row:not(.auth) {
        display: none;
    }

    .main .top-row.auth {
        justify-content: space-between;
    }

    .main .top-row a, .main .top-row .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 768px) {
    app {
        flex-direction: row;
    }

    .sidebar {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .main .top-row {
        position: sticky;
        top: 0;
    }

    .main > div {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }

    .navbar-toggler {
        display: none;
    }

    .sidebar .collapse {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }

}
container {
    width: 442px;
    border: 1px solid black;
    display: inline-block;
}
.blocks .btn-primary {
    padding: 24px 12px;
    margin: 0 5px;
    border-radius: 0;
}
.popup {
    height: calc(100vh - 3.5rem);
}

    .popup > .modal-content {
        top: 50%;
        transform: translate(0%, -50%);
    }
.Gris1 {
    background-color: #F9FAF8;
}
.Gris2 {
    background-color: #A4A6A6;
}

.Verde {
    background-color: #00A587;
}

.Azul {
    background-color: #00346A;
}
.Naranja {
    background-color: #E8840F;
}


.btn-circle.btn-xl {
    width: 70px;
    height: 70px;
    padding: 10px 16px;
    border-radius: 35px;
    font-size: 24px;
    line-height: 1.33;
}

.btn-circle {
    width: 30px;
    height: 30px;
    padding: 6px 0px;
    border-radius: 15px;
    text-align: center;
    font-size: 12px;
    line-height: 1.42857;
}

li {
    list-style: none
}

.spinner {
    border: 16px solid silver;
    border-top: 16px solid #337AB7;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    animation: spin 700ms linear infinite;
    top: 40%;
    left: 55%;
    position: absolute;
}

@keyframes spin {
    0% {
        transform: rotate(0deg)
    }

    100% {
        transform: rotate(360deg)
    }
}

.wait-form {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.45); /* Fondo semitransparente — bloquea interacción */
    backdrop-filter: blur(1px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
@media print {
    .hide-on-print {
        display: none !important;
    }
}

ul[role=tablist] {
    flex-wrap: wrap;
}

/* ══ Orfeo — Ribbon Jornadas (mismo patrón visual que Conta) ══════════════ */

:root {
    --jor-green:      #1B3D2C;
    --jor-green-h:    #15301f;
    --jor-accent:     #3A7855;
    --jor-accent-h:   #2d5f43;
    --jor-accent-a08: rgba(58,120,85,.08);
    --jor-accent-a18: rgba(58,120,85,.18);
    --jor-topbar:     #f5f4f1;
    --jor-dark:       #1a1c24;
    --jor-mid:        #6b6d78;
    --jor-exit:       #c0614a;
    --jor-exit-h:     #a84f3a;
    --font-jor:       'Jost', 'Segoe UI', Helvetica, sans-serif;
}

/* Envuelve toda la cinta; compensa el padding del content px-4 */
.jor-ribbon {
    margin-left:  -1.5rem;
    margin-right: -1.5rem;
}

/* ── Fila 1: cabecera verde con el logotipo ──────────────────────────────── */
.jor-rb-header {
    background-color: var(--jor-green);
    display: flex;
    align-items: center;
    height: 40px;
    padding: 0 1rem;
    border-bottom: 1px solid var(--jor-green-h);
    flex-shrink: 0;
}

.jor-rb-brand {
    color: #fff;
    font-family: var(--font-jor);
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}
.jor-rb-brand:hover { color: rgba(255,255,255,.85); }
.jor-rb-brand-name { font-weight: 600; font-size: 0.95rem; letter-spacing: .02em; }
.jor-rb-brand-sep  { opacity: 0.4; }
.jor-rb-brand-sub  { font-weight: 300; font-size: 0.82rem; opacity: 0.65; }

/* ── Fila 2: toolbar de botones (idéntica a rb-toolbar de Conta) ──────────── */
.jor-rb-toolbar {
    --jor-btn-w: 90px;
    --jor-btn-h: 66px;
    background: var(--jor-topbar);
    border-bottom: 1px solid #d8d5d0;
    display: flex;
    align-items: flex-start;
    flex-shrink: 0;
    min-height: 92px;
    padding: 6px 8px 0;
    overflow-x: auto;
    gap: 0;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}

/* Grupo de botones (idéntico a rb-group de Conta) */
.jor-rb-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 5px 0;
    position: relative;
}

.jor-rb-group-buttons {
    display: flex;
    align-items: flex-start;
    gap: 3px;
    flex: 1;
}

.jor-rb-group-label {
    font-size: 0.60rem;
    color: var(--jor-mid);
    text-align: center;
    width: 100%;
    padding: 3px 0 4px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-top: 1px solid #dddad6;
    margin-top: 4px;
    font-family: var(--font-jor);
}

/* Separador vertical entre grupos */
.jor-rb-group-sep {
    width: 1px;
    background: #d0cdc8;
    margin: 4px 3px 18px;
    align-self: stretch;
}

/* Separador flexible (empuja Cerrar Sesión a la derecha) */
.jor-rb-spacer {
    flex: 1;
    min-width: 12px;
}

/* ── Botón tile del ribbon (idéntico a rb-btn de Conta) ───────────────────── */
.jor-rb-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5px 6px 4px;
    width: var(--jor-btn-w);
    min-width: var(--jor-btn-w);
    max-width: var(--jor-btn-w);
    height: var(--jor-btn-h);
    min-height: var(--jor-btn-h);
    border-radius: 5px;
    text-decoration: none;
    color: var(--jor-dark);
    cursor: pointer;
    transition: box-shadow .15s, border-color .15s, transform .12s, background .12s, color .12s;
    border: 1px solid #e2e0db;
    background: #fff;
    font-family: var(--font-jor);
    gap: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    box-sizing: border-box;
}

.jor-rb-btn:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,.11);
    border-color: var(--jor-accent);
    transform: translateY(-1px);
    color: var(--jor-accent);
    background: #f4faf7;
}

.jor-rb-btn:hover .jor-rb-icon {
    color: var(--jor-accent);
    transform: scale(1.06);
}

.jor-rb-btn:active {
    transform: translateY(0);
    background: #eaf4ee;
    box-shadow: 0 0 0 2px var(--jor-accent-a18);
}

/* Icono 32px (mismo tamaño que rb-icon de Conta) */
.jor-rb-icon {
    font-size: 1.6rem;
    line-height: 1;
    color: var(--jor-mid);
    transition: color .15s, transform .12s;
}

/* Etiqueta bajo el icono */
.jor-rb-label {
    font-size: 0.62rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.25;
    white-space: nowrap;
    letter-spacing: .01em;
}

/* Botón Cerrar Sesión: hover rojo */
.jor-rb-btn-exit:hover {
    background: #fdecea !important;
    border-color: #c0392b !important;
    color: #c0392b !important;
}
.jor-rb-btn-exit:hover .jor-rb-icon { color: #c0392b !important; }
.jor-rb-btn-exit:active {
    background: #f8d7da !important;
    border-color: #a0291b !important;
}

/* Badge de notificación para botones del ribbon (ej: mensajes no leídos) */
.jor-badge {
    position: absolute;
    top: -5px;
    right: -7px;
    background: #c0392b;
    color: #fff;
    border-radius: 10px;
    font-size: .58rem;
    font-weight: 700;
    padding: 1px 4px;
    line-height: 1.5;
    min-width: 16px;
    text-align: center;
    pointer-events: none;
    box-shadow: 0 1px 3px rgba(0,0,0,.3);
}

/* ═══════════════════════════════════════════════════════════════════════════ */

/* ── Radzen Success/Primary buttons — mantener verde Orfeo en hover ───────
   Radzen aplica filter:brightness o background propio en :hover que pisa el
   color inline. Este bloque fuerza el verde Orfeo con alta especificidad.    */
button.rz-button.rz-success:not(:disabled):hover,
button.rz-button.rz-success:not(:disabled):focus,
button.rz-button.rz-success:not(:disabled):active,
.rz-button.rz-success:not(:disabled):hover,
.rz-button.rz-success:not(:disabled):focus,
.rz-button.rz-success:not(:disabled):active {
    background-color: #2d6044 !important;
    border-color:     #2d6044 !important;
    filter:           none    !important;
    box-shadow: 0 2px 8px rgba(42,96,68,.30) !important;
}

/* ── Planificación — toolbar y cabecera ───────────────────────────────────── */
.plani-wrap {
    font-family: var(--font-jor, 'Jost', 'Segoe UI', sans-serif);
}

.plani-header {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .55rem 0 .45rem;
    border-bottom: 2px solid #3A7855;
    margin-bottom: .75rem;
}

.plani-header-icon {
    background: #3A7855;
    color: #fff;
    width: 32px; height: 32px;
    border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.plani-header-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1B3D2C;
    letter-spacing: .01em;
}

.plani-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: .8rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ENTERPRISE SHELL  —  sidebar layout (Orfeo v2, Odoo-inspired)
   Topbar 52 px · Left sidebar 220 px · Main content area flexible
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Base ──────────────────────────────────────────────────────────────── */
html, body {
    font-family: 'Jost', 'Poppins', 'Segoe UI', -apple-system, sans-serif;
    font-size: 14px;
    background: #f3f5f4;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* ── App shell ─────────────────────────────────────────────────────────── */
.jor-app-shell {
    display: flex;
    flex-direction: column;
    width: 100%;          /* explícito — evita que flex-shrink corte la anchura */
    height: 100vh;
    overflow: hidden;
    background: #f3f5f4;
}

/* ── Topbar ────────────────────────────────────────────────────────────── */
.jor-topbar {
    height: 52px;
    min-height: 52px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.1rem;
    background: #1a2e22;
    z-index: 200;
    gap: .5rem;
}

.jor-topbar-brand {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-shrink: 0;
}

.jor-topbar-logo {
    height: 30px;
    max-width: 110px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 5px;
    background: rgba(255,255,255,0.92);
    padding: 2px 6px;
}

.jor-topbar-appname {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .3px;
}

.jor-topbar-sub {
    color: #5d9e7a;
    font-size: .68rem;
    padding-left: .5rem;
    border-left: 1px solid rgba(255,255,255,.13);
    white-space: nowrap;
}

@media (max-width: 580px) { .jor-topbar-sub { display: none; } }

.jor-topbar-right {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin-left: auto;
    flex-shrink: 0;
}

.jor-topbar-chip {
    background: rgba(74,222,128,.14);
    color: #4ade80;
    font-size: .62rem;
    font-weight: 700;
    padding: .18rem .6rem;
    border-radius: 20px;
    border: 1px solid rgba(74,222,128,.22);
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.jor-topbar-user {
    display: flex;
    align-items: center;
    gap: .35rem;
    color: #7daa92;
    font-size: .78rem;
    font-weight: 500;
    white-space: nowrap;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jor-topbar-user i {
    font-size: .9rem;
    color: #5d9e7a;
    flex-shrink: 0;
}

/* Hamburger toggle (visible on mobile) */
.jor-topbar-toggle {
    display: none;
    background: none;
    border: none;
    color: #7daa92;
    font-size: 1.05rem;
    cursor: pointer;
    padding: .28rem .42rem;
    border-radius: 5px;
    transition: background .1s;
    flex-shrink: 0;
}
.jor-topbar-toggle:hover { background: rgba(255,255,255,.1); color: #cde8da; }
@media (max-width: 768px) { .jor-topbar-toggle { display: flex; align-items: center; } }

/* ── Shell body ────────────────────────────────────────────────────────── */
.jor-shell-body {
    flex: 1;
    width: 100%;          /* ocupa todo el ancho del app-shell */
    display: flex;
    overflow: hidden;
    min-height: 0;
}

/* ══════════════════════════════════════════════════════════════
   SIDEBAR — estilo limpio (fondo blanco, acento verde solo activo)
   Inspirado en el patrón Merka.Net / Odoo sidebar moderno
═══════════════════════════════════════════════════════════════ */
.jor-sidebar {
    width: 220px;
    min-width: 220px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e5e7eb;
    overflow: hidden;
    flex-shrink: 0;
    z-index: 100;
}

@media (max-width: 768px) {
    .jor-sidebar {
        position: fixed;
        top: 52px;
        left: -224px;
        height: calc(100vh - 52px);
        z-index: 300;
        transition: left .22s cubic-bezier(.4,0,.2,1);
        box-shadow: none;
        background: #ffffff;
    }
    .jor-sidebar.sidebar-open {
        left: 0;
        box-shadow: 4px 0 24px rgba(0,0,0,.18);
    }
}

/* Mobile overlay */
.jor-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 52px 0 0 0;
    background: rgba(0,0,0,.35);
    z-index: 299;
    cursor: pointer;
}
.jor-sidebar-overlay.sidebar-open { display: block; }

/* Navigation list */
.jor-nav-list {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: .6rem .5rem 0;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
    display: flex;
    flex-direction: column;
}
.jor-nav-list::-webkit-scrollbar { width: 4px; }
.jor-nav-list::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }

/* Section group labels */
.jor-nav-group-label {
    font-size: .59rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #9ca3af;
    padding: 8px 10px 3px;
    white-space: nowrap;
}
/* Contextual label (ej. Acciones Planificación) */
.jor-nav-ctx-label { color: #3A7855 !important; }

/* Separator line */
.jor-nav-sep {
    height: 1px;
    background: #f1f3f5;
    margin: 5px 8px;
    flex-shrink: 0;
}

/* ── Nav button (estado normal) ─────────────────────────────── */
.jor-nav-item {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 7px 10px 7px 12px;
    border: none;
    background: transparent;
    color: #4b5563;             /* gris oscuro neutro */
    font-size: .84rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 7px;
    text-align: left;
    transition: background .12s, color .12s;
    position: relative;
    line-height: 1.35;
    margin-bottom: 1px;
    font-family: 'Jost', 'Segoe UI', sans-serif;
    white-space: nowrap;
    overflow: hidden;
}

/* Hover — tinte muy suave del color de marca */
.jor-nav-item:hover {
    background: #f0f9f4;
    color: #1a2e22;
}

/* Activo — acento verde, texto oscuro, borde izquierdo */
.jor-nav-item.active {
    background: #e8f5ee;
    color: #1a4d30;
    font-weight: 600;
}
.jor-nav-item.active::before {
    content: '';
    position: absolute;
    left: 0; top: 5px; bottom: 5px;
    width: 3px;
    background: #3A7855;
    border-radius: 0 3px 3px 0;
}

/* Iconos */
.jor-nav-item i {
    font-size: .87rem;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
    color: #9ca3af;             /* gris por defecto */
    transition: color .12s;
}
.jor-nav-item:hover i       { color: #3A7855; }
.jor-nav-item.active i      { color: #3A7855; }

.jor-nav-item > span {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Contextual items (Planificación) ───────────────────────── */
.jor-nav-ctx { color: #6b7280 !important; font-style: italic; }
.jor-nav-ctx:hover { color: #1a2e22 !important; background: #f0f9f4; }
.jor-nav-ctx i { color: #9ca3af !important; }
.jor-nav-ctx.toggled {
    background: #e8f5ee !important;
    color: #1a4d30 !important;
    font-style: normal;
}
.jor-nav-ctx.toggled i { color: #3A7855 !important; }

/* ── Badge de mensajes no leídos ────────────────────────────── */
.jor-nav-badge {
    background: #ef4444;
    color: #fff;
    font-size: .58rem;
    font-weight: 800;
    min-width: 17px;
    height: 17px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    flex-shrink: 0;
    line-height: 1;
}

/* ── Footer del sidebar ─────────────────────────────────────── */
.jor-nav-footer {
    padding: .45rem .5rem .55rem;
    border-top: 1px solid #f1f3f5;
    flex-shrink: 0;
}

/* ── Botón cerrar sesión ─────────────────────────────────────── */
.jor-nav-exit { color: #dc2626 !important; }
.jor-nav-exit i { color: #dc2626 !important; }
.jor-nav-exit:hover {
    background: #fef2f2 !important;
    color: #b91c1c !important;
}
.jor-nav-exit:hover i { color: #b91c1c !important; }

/* ── Main content area ─────────────────────────────────────────────────── */
.jor-main-content {
    flex: 1;
    width: 0;             /* truco flex: width:0 + flex:1 = rellena exactamente el espacio restante */
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #f3f5f4;
}

/* Scrollable page wrapper for normal pages */
.jor-page-wrapper {
    flex: 1;
    width: 100%;
    min-width: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1rem 1.25rem .75rem;
    box-sizing: border-box;
}

/* ── Planificación split layout ────────────────────────────────────────── */
.jor-plani-layout {
    flex: 1;
    display: flex;
    align-items: flex-start;
    overflow: hidden;
    min-height: 0;
}

.jor-plani-body {
    flex: 1;
    min-width: 0;
    overflow: auto;
    height: 100%;
    padding: .5rem .75rem 0;
}

/* ── Typography & card global polish ───────────────────────────────────── */
.card {
    border-radius: 10px !important;
}

.rz-card {
    border-radius: 10px !important;
}

h5 {
    font-family: 'Jost', 'Segoe UI', sans-serif;
    font-weight: 600;
}

/* Page section heading — optional helper */
.jor-page-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1B3D2C;
    font-family: 'Jost', sans-serif;
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: .45rem;
}

.jor-page-title i {
    color: #3A7855;
    font-size: .95rem;
}

/* ──────────────────────────────────────────────────────────────────────── */

.plani-action-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: #fff;
    border: 1px solid #c0d9ca;
    border-radius: 6px;
    padding: .32rem .75rem;
    font-size: .82rem;
    font-weight: 500;
    color: #3A7855;
    cursor: pointer;
    transition: background .12s, border-color .12s, color .12s, box-shadow .12s;
    line-height: 1.4;
}
.plani-action-btn i { font-size: .82rem; }
.plani-action-btn:hover {
    background: #3A7855;
    border-color: #3A7855;
    color: #fff;
    box-shadow: 0 2px 8px rgba(42,96,68,.25);
}
.plani-action-btn:active {
    background: #2d6044;
    border-color: #2d6044;
    color: #fff;
}
.plani-action-btn-active {
    background: #2d6044 !important;
    border-color: #2d6044 !important;
    color: #fff !important;
}

/* ── Ribbon: grupo contextual Planificacion ─────────────────────────────── */
.jor-rb-group-contextual {
    position: relative;
    background: rgba(58, 120, 85, .06);
    border-radius: 6px;
    padding: 0 4px;
    margin: 0 2px;
}
.jor-rb-group-contextual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 4px;
    right: 4px;
    height: 2px;
    background: #3A7855;
    border-radius: 0 0 3px 3px;
}
.jor-rb-label-contextual {
    color: #3A7855 !important;
    font-weight: 700 !important;
}
.jor-rb-sep-contextual {
    border-left-color: #c0d9ca !important;
}
/* Botón del ribbon en estado "activo/toggled" (ej: Festivos activados) */
.jor-rb-btn-toggled {
    background: #3A7855 !important;
    color: #fff !important;
    border-radius: 6px;
}
.jor-rb-btn-toggled .jor-rb-icon,
.jor-rb-btn-toggled .jor-rb-label { color: #fff !important; }

/* Botón del ribbon resaltado por ruta activa (sección actual) */
.jor-rb-btn-active {
    background: rgba(58, 120, 85, 0.12) !important;
    border-radius: 6px;
    box-shadow: inset 0 -2px 0 #3A7855;
}
.jor-rb-btn-active .jor-rb-icon,
.jor-rb-btn-active .jor-rb-label { color: #3A7855 !important; font-weight: 600 !important; }

/* ══════════════════════════════════════════════════════════════
   ErrorBoundary — pantalla de error amigable (App.razor)
═══════════════════════════════════════════════════════════════ */
.jor-errorboundary {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    padding: 2rem;
    text-align: center;
    gap: .75rem;
}
.jor-errorboundary-icon {
    font-size: 3rem;
    color: #f87171;
    margin-bottom: .25rem;
}
.jor-errorboundary h5 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}
.jor-errorboundary p {
    color: #6b7280;
    font-size: .9rem;
    margin: 0;
}
.jor-errorboundary-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem 1.1rem;
    border-radius: 6px;
    font-size: .875rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background .15s, border-color .15s;
}
.jor-errorboundary-btn.primary {
    background: #1a2e22;
    color: #4ade80;
    border-color: #1a2e22;
}
.jor-errorboundary-btn.primary:hover { background: #253d2e; }
.jor-errorboundary-btn.secondary {
    background: transparent;
    color: #374151;
    border-color: #d1d5db;
}
.jor-errorboundary-btn.secondary:hover { background: #f3f4f6; }

/* ══════════════════════════════════════════════════════════════
   Dashboard principal — Gestión
══════════════════════════════════════════════════════════════ */
.gestion-dashboard {
    display: grid;
    grid-template-columns: 165px 205px repeat(7, 1fr);
    gap: 12px;
    padding: 4px 0 16px;
    align-items: start;
}

/* Base card */
.gestion-card {
    border: 1px solid #dceade !important;
    box-shadow: 0 1px 5px rgba(26,46,34,.06) !important;
    border-radius: 12px !important;
    transition: box-shadow .17s, transform .14s;
    overflow: hidden;
    padding: .85rem !important;
}
.gestion-card:hover {
    box-shadow: 0 5px 18px rgba(26,46,34,.13) !important;
    transform: translateY(-1px);
}

/* Tarjeta empresa/logo */
.gestion-card--logo {
    border-top: 3px solid #3A7855 !important;
    min-height: 118px;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: 1rem .75rem !important;
    background: linear-gradient(160deg,#f7faf8 0%,#eef6f1 100%) !important;
}

/* Tarjeta slider rango días */
.gestion-card--slider {
    border-top: 3px solid #3A7855 !important;
    min-height: 118px;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    padding: .9rem 1rem !important;
}

/* Tarjetas de estadística */
.gestion-stat {
    border-top: 3px solid #3A7855 !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 90px;
    gap: 3px;
    padding: .9rem .5rem !important;
}

.gestion-stat-label {
    display: block;
    font-size: .63rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #9ca3af;
    font-weight: 700;
    line-height: 1.25;
    font-family: 'Jost','Segoe UI',sans-serif;
}
.gestion-stat-value {
    display: block;
    font-size: 2.3rem;
    font-weight: 800;
    line-height: 1;
    font-family: 'Jost','Segoe UI',sans-serif;
}

/* Tarjeta tabla Top Horas */
.gestion-card--table {
    grid-column: 1 / -1;
    padding: 1rem 1.1rem !important;
}
.gestion-card--table table { font-size: .82rem; }
.gestion-card--table thead th {
    font-size: .63rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #6b7280;
    font-weight: 700;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: .4rem;
}
.gestion-card--table tbody tr:hover td { background: #f7faf8; }

/* ══════════════════════════════════════════════════════════════
   Configuración — barra de pestañas
══════════════════════════════════════════════════════════════ */
.conf-tabs {
    display: flex; gap: 0;
    margin: .5rem 0 1.4rem;
    border-bottom: 2px solid #d4e5da;
    flex-wrap: wrap;
}
.conf-tab {
    background: none; border: none;
    padding: .48rem 1.1rem;
    color: #5a7a65; font-size: .87rem; cursor: pointer;
    border-bottom: 2px solid transparent; margin-bottom: -2px;
    border-radius: 4px 4px 0 0;
    transition: background .13s, color .13s;
    white-space: nowrap;
}
.conf-tab:hover { background: #f1f7f3; color: #3A7855; }
.conf-tab.active {
    color: #3A7855; font-weight: 700;
    border-bottom: 2px solid #3A7855; background: #f5f9f6;
}

/* ══════════════════════════════════════════════════════════════
   Mensajería — drawer de envío lateral
══════════════════════════════════════════════════════════════ */
.envio-overlay {
    position: fixed; top:0; left:0; right:0; bottom:0;
    background: rgba(0,0,0,0); z-index: 1040;
    pointer-events: none; transition: background .25s;
}
.envio-overlay--open { background: rgba(0,0,0,.38); pointer-events: all; }
.envio-panel {
    position: fixed; top:0; right:-560px; bottom:0; width:540px;
    background: #fff; z-index: 1041;
    box-shadow: -4px 0 28px rgba(0,0,0,.15);
    transition: right .3s cubic-bezier(.4,0,.2,1);
    display: flex; flex-direction: column; overflow: hidden;
}
.envio-panel--open { right: 0; }
.envio-hdr {
    display: flex; align-items: center; justify-content: space-between;
    padding: .75rem 1.2rem; background: #1a2e22; color: #fff;
    flex-shrink: 0; font-size: 1rem; font-weight: 600;
}
.envio-hdr-x {
    background: none; border: none; color: #fff;
    font-size: 1.6rem; line-height: 1; cursor: pointer;
    padding: 0 .35rem; border-radius: 4px; margin-left: .5rem;
}
.envio-hdr-x:hover { background: rgba(255,255,255,.15); }
.envio-etabs {
    display: flex; background: #f5f9f6;
    border-bottom: 2px solid #d4e5da; flex-shrink: 0;
}
.envio-etab {
    flex: 1; padding: .55rem .5rem; background: none; border: none;
    cursor: pointer; color: #5a7a65; font-size: .85rem;
    border-bottom: 2px solid transparent; margin-bottom: -2px;
    display: flex; align-items: center; justify-content: center; gap: .35rem;
    transition: all .13s;
}
.envio-etab.active { color: #3A7855; font-weight: 700; border-bottom: 2px solid #3A7855; }
.envio-etab:disabled { opacity: .4; cursor: default; }
.envio-sn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 18px; height: 18px; border-radius: 50%;
    background: #aaa; color: #fff; font-size: .7rem; font-weight: 700; flex-shrink: 0;
}
.envio-etab.active .envio-sn { background: #3A7855; }
.envio-ebadge {
    background: #e74c3c; color: #fff; border-radius: 10px;
    padding: 0 .38rem; font-size: .7rem; font-weight: 700;
}
.envio-body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }
.envio-filters {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: .5rem; padding: .75rem;
    background: #f8fafb; border-bottom: 1px solid #e8f0eb; flex-shrink: 0;
}
.envio-msgform { display: flex; flex-direction: column; gap: .7rem; padding: 1rem; flex: 1; }
.envio-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding: .7rem 1rem; background: #f5f9f6;
    border-top: 1px solid #d4e5da; flex-shrink: 0;
}
.envio-btn {
    background: #3A7855; color: #fff; border: none;
    border-radius: 8px; padding: .44rem 1.2rem; font-size: .87rem;
    cursor: pointer; display: inline-flex; align-items: center; gap: .3rem;
    transition: background .13s;
}
.envio-btn:not(:disabled):hover { background: #2d6044; }
.envio-btn:disabled { opacity: .4; cursor: default; }
.envio-btn-out {
    background: none !important; color: #3A7855 !important;
    border: 1.5px solid #3A7855 !important; border-radius: 8px;
    padding: .44rem 1rem; font-size: .87rem; cursor: pointer;
    display: inline-flex; align-items: center; gap: .3rem;
    transition: background .13s;
}
.envio-btn-out:hover { background: #f0f7f3 !important; }

/* ═══════════════════════════════════════════════════════
   Documentos legales — Aviso legal · Privacidad · Cookies
   ═══════════════════════════════════════════════════════ */
.legaldoc-page {
    min-height: 100vh;
    overflow-y: auto;
    background: #F0F7F2;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 32px 16px 48px;
    box-sizing: border-box;
    font-family: 'Jost', 'Segoe UI', Arial, sans-serif;
}

.legaldoc-card {
    background: #ffffff;
    width: 100%;
    max-width: 820px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,.08);
    padding: 30px 38px 26px;
    box-sizing: border-box;
}

.legaldoc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 14px;
    margin-bottom: 22px;
}
.legaldoc-head img { height: 42px !important; width: auto !important; }

.legaldoc-volver {
    font-size: .85rem;
    color: #3A7855;
    text-decoration: none;
    font-weight: 600;
}
.legaldoc-volver:hover { text-decoration: underline; }

.legaldoc-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a2e23;
    margin: 0 0 4px;
}
.legaldoc-fecha {
    font-size: .82rem;
    color: #6b7280;
    margin: 0 0 24px;
}

.legaldoc-body { color: #243b2e; font-size: .92rem; line-height: 1.65; }
.legaldoc-body h2 { font-size: 1.1rem; font-weight: 700; color: #1a2e23; margin: 26px 0 8px; }
.legaldoc-body h3 { font-size: .98rem; font-weight: 700; color: #1a2e23; margin: 18px 0 6px; }
.legaldoc-body p  { margin: 0 0 12px; }
.legaldoc-body ul { margin: 0 0 12px; padding-left: 22px; }
.legaldoc-body li { margin: 4px 0; }
.legaldoc-body a  { color: #3A7855; }
.legaldoc-body strong { color: #1a2e23; }
.legaldoc-body table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: .86rem; }
.legaldoc-body th {
    background: linear-gradient(180deg, #3A7855 0%, #2f6244 100%);
    color: #fff;
    text-align: left;
    padding: 7px 10px;
    font-weight: 700;
}
.legaldoc-body td { border: 1px solid #e5e7eb; padding: 6px 10px; vertical-align: top; }
.legaldoc-body tr:nth-child(2n) td { background: #f3f6f4; }

.legaldoc-nota {
    background: #f3f6f4;
    border-left: 3px solid #3A7855;
    border-radius: 6px;
    padding: 10px 14px;
    margin: 0 0 16px;
    font-size: .88rem;
    color: #4b5d52;
}

.legaldoc-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
    border-top: 1px solid #e5e7eb;
    margin-top: 28px;
    padding-top: 16px;
    font-size: .82rem;
}
.legaldoc-foot a { color: #6b7280; text-decoration: none; }
.legaldoc-foot a:hover { color: #3A7855; text-decoration: underline; }
.legaldoc-foot span { color: #cbd5cf; }

/* ═══════════════════════════════════════════════════════
   Banner de aceptación de cookies
   ═══════════════════════════════════════════════════════ */
.ck-banner {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 16px;
    z-index: 10000;
    width: min(880px, 94vw);
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 1px solid #d6e0da;
    border-radius: 12px;
    box-shadow: 0 10px 34px rgba(0,0,0,.18);
    padding: 12px 16px;
    font-family: 'Jost', 'Segoe UI', Arial, sans-serif;
}
.ck-banner > i { font-size: 1.5rem; color: #3A7855; flex-shrink: 0; }
.ck-txt { flex: 1 1 0%; font-size: .84rem; color: #243b2e; line-height: 1.45; }
.ck-txt a { color: #3A7855; }
.ck-btn {
    flex-shrink: 0;
    cursor: pointer;
    background: #3A7855;
    color: #fff;
    border: 1px solid #2f6244;
    border-radius: 7px;
    padding: 7px 18px;
    font-size: .85rem;
    font-weight: 600;
    font-family: 'Jost', 'Segoe UI', Arial, sans-serif;
}
.ck-btn:hover { filter: brightness(.93); }
@media (max-width: 560px) {
    .ck-banner { flex-direction: column; align-items: stretch; text-align: center; }
}

