/*POR DEFECTO DE BLAZOR*/
.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;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #ccc;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #ffffff;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    color: white;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Cargando");
    }
/*FIN POR DEFECTO BLAZOR*/




@font-face {
    font-family: 'Inter Tight';
    src: url('../fonts/InterTight-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* LOGIN   - INICIO */
html, body {
    font-family: var(--fuente-base);
    background-color: var(--color-fondo-sidebar);
}

.imagenLogin {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    max-width: 100%;
}


/* LOGIN NUEVO */
.login-pagina {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(2rem, 6vh, 4.5rem);
    padding: 1.5rem;
    transform: translateY(-80px);
}

.login-logo {
    width: min(335px, 70vw);
    height: auto;
}

.login-card {
    width: min(474px, 100%);
    background: var(--color-login-card);
    border-radius: 18px;
    padding: 2rem 1.5rem 1.75rem;
    text-align: center;
    color: #3c3c3b;
}

.login-titulo {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: .02em;
    margin: 0;
}

.login-subtitulo {
    font-size: 1rem;
    font-weight: 400;
    margin: 0 0 1.25rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
}

.login-input {
    width: 100%;
    max-width: 320px;
    height: 2.5rem;
    padding: 0 1.1rem;
    border: 1px solid #e3e0da;
    border-radius: 999px;
    background: #fff;
    font: inherit;
    font-size: .9rem;
    color: #3c3c3b;
}

    .login-input::placeholder {
        color: #b5b2ab;
    }

    .login-input:focus {
        outline: 2px solid var(--color-fondo-sidebar);
        outline-offset: 2px;
    }

.login-btn {
    margin-top: .9rem;
    min-width: 160px;
    height: 2.5rem;
    padding: 0 2rem;
    border: 0;
    border-radius: 999px;
    background: var(--color-fondo-sidebar);
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

    .login-btn:hover {
        filter: brightness(1.1);
    }

    .login-btn:focus-visible {
        outline: 2px solid var(--color-fondo-sidebar);
        outline-offset: 3px;
    }

.login-enlace {
    font-size: .8rem;
    color: #66635c;
    text-decoration: none;
}

    .login-enlace:hover {
        text-decoration: underline;
    }

.login-error {
    color: #b3261e;
    font-size: .85rem;
    margin: .5rem 0 0;
}

.login-form .validation-message {
    font-size: .8rem;
}

.login-mensaje {
    font-size: .85rem;
    margin: .5rem 0 0;
}

    .login-mensaje.ok {
        color: #2e6b3a;
    }

    .login-mensaje.error,
    .login-form .validation-message {
        color: var(--color-fondo-sidebar);
    }

/* LOGIN   - FIN */






code {
    color: #c02d76;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* ===== Variables de Color ===== */
:root {
    --fuente-base: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --bs-body-font-family: var(--fuente-base);
    --color-fondo-sidebar: #8E3C68; /* burdeos PROACO */
    --color-fuente-iconos: #4c5b30;
    --color-titulos: #495057;
    --color-fondo-container: #e4f2c9;
    --color-hover-bg: #d5d5d5;
    --color-body-bg: #F8F6F5; /* crema del panel de contenido */
    --color-fondo-validacion: #fcfff7;
    --color-login-card: #F3F2EF; /* crema de la tarjeta de login */
    --color-texto: #4C4B4E;
}


/* Estilo para la barra de desplazamiento */
::-webkit-scrollbar {
    width: 5px; /* Ancho de la barra de desplazamiento */
    height: 5px; /* Altura de la barra de desplazamiento horizontal */
}

/* Estilo para el fondo de la barra de desplazamiento */
::-webkit-scrollbar-track {
    background: white; /* Color de fondo de la pista */
    border-radius: 10px;
}

/* Estilo para el "thumb" (la parte que puedes arrastrar) */
::-webkit-scrollbar-thumb {
    background: grey; /* Color del "thumb" */
    border-radius: 10px;
}

    /* Estilo para el "thumb" al pasar el mouse */
    ::-webkit-scrollbar-thumb:hover {
        background: #555; /* Color del "thumb" cuando pasas el ratón por encima */
    }


/* ===== Sidebar Navigation ===== */
.sidebar-nav ul {
    list-style: none;
    padding: 5px;
    margin: 0;
}

.sidebar-nav .title {
    color: var(--color-fondo-container);
    padding: 1rem 1rem 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    padding: 0.75rem 1rem;
    color: var(--color-titulos);
    text-decoration: none;
    transition: background 0.2s ease;
}

    .nav-link i {
        color: var(--color-titulos);
        width: 25px;
        text-align: center;
        font-size: 20px; /* tamaño de los iconos*/
    }

/*.sidebar .nav-link:hover {
    background: var(--color-hover-bg);
    border-radius: 7px;
    color: var(--color-fuente-iconos) !important;
}*/

a.nav-link:hover {
    color: var(--color-titulos) !important;
}

.nav-link.active {
    color: var(--color-titulos);
}

.icono-titulo {
    margin-right: 1rem; /* Separacion icono-nombre en los titulos */
}



/* ===== Variables del layout ===== */
:root {
    --color-texto-sobre-burdeos: #ffffff;
    --color-activo-bg: #ffffff;
    --color-activo-texto: var(--color-fondo-sidebar);
    --color-linea-sidebar: rgba(255, 255, 255, 0.35);
    --alto-cabecera: 80px;
    --ancho-sidebar: 250px;
    --ancho-sidebar-colapsado: 72px;
}

/* ===== Sidebar ===== */
.sidebar {
    width: var(--ancho-sidebar);
    background: var(--color-fondo-sidebar);
    color: var(--color-texto-sobre-burdeos);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, width 0.3s ease;
}

.sidebar-header {
    height: var(--alto-cabecera);
    padding: 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--color-linea-sidebar);
    flex-shrink: 0;

    min-width: 0;
}

.toggle-btn, .menu-toggle {
    background: none;
    border: none;
    color: var(--color-texto-sobre-burdeos);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.5rem;
}

.sidebar-logo {
    height: 30px;
    width: auto;

    max-width: calc(100% - 55px);
    min-width: 0;
    object-fit: contain;
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0.6rem;
}

.nav-items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.3rem 0.9rem 0.9rem;
    font-weight: 700;
    font-size: 0.95rem;
}

.avatar-conectado {
    position: relative;
    display: inline-flex;
}

    .avatar-conectado::after {
        content: "";
        position: absolute;
        right: -2px;
        bottom: -2px;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #3ddc84;
        border: 2px solid var(--color-fondo-sidebar);
    }

/* Icono recoloreable: toma el color del texto (currentColor) */
.nav-icono {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    background-color: currentColor;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

/* Elementos de menú (píldora) */
.sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    width: 100%;
    padding: 0.55rem 0.9rem;
    color: var(--color-texto-sobre-burdeos);
    font-size: 0.95rem;
    font-weight: 500;
    text-align: left;
    text-decoration: none;
    background: none;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

    .sidebar .nav-link:hover {
        background: rgba(255, 255, 255, 0.14);
        color: var(--color-texto-sobre-burdeos) !important;
    }

    .sidebar .nav-link.active,
    .sidebar .nav-link.active:hover {
        background: var(--color-activo-bg);
        color: var(--color-activo-texto) !important;
    }

    .sidebar .nav-link:focus-visible {
        outline: 2px solid #fff;
        outline-offset: 2px;
    }

/* Pie del sidebar */
.sidebar-footer {
    flex-shrink: 0;
    padding: 0.8rem 0.6rem 1rem;
    border-top: 1px solid var(--color-linea-sidebar);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.pie-dato {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
    opacity: 0.85;
}

.boton-cerrar {
    margin-top: 0.3rem;
    text-transform: uppercase;
    font-weight: 700 !important;
    letter-spacing: 0.02em;
}

/* ===== Contenido principal ===== */
.main-content {
    flex: 1;
    margin-left: var(--ancho-sidebar);
    transition: margin-left 0.2s ease;
}

.content {
    padding: 1.5rem;
    background: var(--color-body-bg);
    min-height: calc(100vh - var(--alto-cabecera));
}

/* ===== Móvil / tablet ===== */
@media (max-width: 768px) {
    body, html {
        overflow-x: hidden;
    }

    .main-content {
        margin-left: 0 !important;
        width: 100%;
    }

    .sidebar:not(.open) {
        transform: translateX(-100%);
    }

    .sidebar.open {
        z-index: 2000 !important;
    }

    .header-container {
        grid-template-columns: auto 1fr auto !important;
    }

    .header-portal {
        display: none;
    }
}

/* ===== Escritorio: sidebar expandido o colapsado (solo iconos) ===== */
@media (min-width: 769px) {
    .main-content {
        margin-left: var(--ancho-sidebar-colapsado);
    }

    .sidebar.open + .main-content {
        margin-left: var(--ancho-sidebar);
    }

    .top-bar .menu-toggle {
        display: none;
    }

    .top-bar {
        border-left: 1px solid var(--color-linea-sidebar);
    }

    .sidebar:not(.open) {
        width: var(--ancho-sidebar-colapsado);
        overflow: hidden;
    }

        .sidebar:not(.open) .sidebar-logo,
        .sidebar:not(.open) .nav-texto {
            display: none;
        }

        .sidebar:not(.open) .sidebar-header {
            justify-content: center;
            padding: 0;
        }

        .sidebar:not(.open) .sidebar-user,
        .sidebar:not(.open) .pie-dato,
        .sidebar:not(.open) .sidebar .nav-link {
            justify-content: center;
        }

        .sidebar:not(.open) .nav-link {
            justify-content: center;
            padding: 0.55rem 0;
        }
}

/* ===== Barra superior ===== */
.top-bar {
    background: var(--color-fondo-sidebar);
    color: var(--color-texto-sobre-burdeos);
    height: var(--alto-cabecera);
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 90;
    width: 100%;
}

.header {
    width: 100%;
}

/* ===== Componente Header ===== */
.header-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    width: 100%;
    height: var(--alto-cabecera);
}

.header-portal {
    justify-self: start;
    font-size: 0.95rem;
    color: var(--color-texto-sobre-burdeos);
}

.header-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

.header-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    color: var(--color-texto-sobre-burdeos);
}

    /* Los iconos del título y de los botones de cabecera se ven blancos */
    .header-info img,
    .header-derecha img {
        width: 28px !important;
        height: 28px !important;
        margin: 0 !important;
        filter: brightness(0) invert(1);
    }

.header-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--color-texto-sobre-burdeos);
}

.header-derecha {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

    .header-derecha .nav-btn {
        width: 2.75rem;
        height: 2.75rem;
    }

.header-container .nav-btn {
    color: var(--color-texto-sobre-burdeos);
}

    .header-container .nav-btn:hover {
        background-color: rgba(255, 255, 255, 0.14);
    }

.header-container .date-control:hover {
    background-color: rgba(255, 255, 255, 0.14);
}



.nav-btn { /*Botones cambiar dia calendario*/
    background: none;
    border: none;
    color: var(--color-titulos);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

    .nav-btn:hover {
        background-color: var(--color-hover-bg);
    }

.date-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    user-select: none;
}

    .date-control:hover {
        background-color: #d0d0d0;
    }

.date-picker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
}

.date-picker {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 1rem;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

    .date-picker input {
        padding: 0.5rem;
        border: 1px solid #ddd;
        border-radius: 4px;
    }

    .date-picker button {
        padding: 0.5rem;
        background-color: var(--color-fondo-sidebar);
        color:white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
    }

.date-control.today {
    font-weight: bold;
    color: #2c3e50;
}






/* ===== Componente Resumen ===== */
.resumen-container {
    background-color: var(--color-fondo-container);
    padding: 0.75rem;
    border: solid;
    border-width: 1px;
    border-radius: 7px;
    border-color: var(--color-fondo-sidebar)
    /* box-shadow: 0 2px 10px rgba(0,0,0,0.1);*/
}

.resumen-item {
    display: grid;
    grid-template-columns: auto 1fr auto auto; /* icon | label | valor | botón/switch */
    align-items: center;
    gap: 0rem;
    padding: 0.1rem 0.25rem;
    color: var(--color-fuente-iconos);
    max-width: 100%;
}

    .resumen-item i {
        text-align: center;
        min-width: 1.5rem;
    }

.resumen-label {
    text-align: left;
}

.resumen-valor {
    text-align: center;
    min-width: 3rem;
    justify-content: flex-end;
    align-items: center;
}

.col-side-ficha-resumen {
    display: flex;
    justify-content: left;
    min-width: 2.5rem;
}

.btn-editar-resumen {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--color-fuente-iconos);
    width: 10%;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    padding: 0.5rem;
    border-radius: 50%;
    align-items: center;
}


/* ===== Componente VistaParte ===== */
.vistaparte-container {
    background-color: #f6ffeb;
    padding: 0.3rem;
    border: solid;
    border-width: 1px;
    border-color: var(--color-fondo-sidebar);
    border-radius: 7px;
    /* box-shadow: 0 2px 10px rgba(0,0,0,0.1);*/
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
}

.parte-propio {
    background-color: #f6ffeb;
    border-left: 4px solid var(--color-fuente-iconos);
}
.etiqueta-propio {
    font-size: 0.65rem;
    color: var(--color-fuente-iconos);
    text-align: center;
    margin-top: 4px;
    font-weight: 600;
    word-break: break-word;
}
.checkbox-vistobueno-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    overflow: hidden;
}

.col-side {
    width: 11%;
    color: var(--color-fuente-iconos);
    font-size: 1rem;
}

.col-side-right {
    width: 22%;
    color: var(--color-fuente-iconos);
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
}
 

.numero-en-circulo {
    width: 30px; 
    height: 30px; 
    border: 2px solid;
    border-radius: 50%;
    display: flex;
    justify-content: center; /* Centra el número horizontalmente */
    align-items: center; /* Centra el número verticalmente */
    font-size: 14px; /* Tamaño más pequeño del número */
    font-weight: bold; /* Opcional: Hacer el número en negrita */
}

.col-center-ficha {
    width: 67%;
    color: var(--color-fuente-iconos);
    padding: 0.3rem 0.5rem;
    line-height: 1.7; 
}



.fila-segunda {
    font-size: 1.1rem;
}

.fila-tercera {
    font-size: 0.95rem;
}

.fila-cuarta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    margin-top:0.3rem;
}
.vp-icono-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    justify-content: center;
}

.vp-icono {
    position: relative;
    font-size: 1.2rem;
}

.vp-badge {
    position: absolute;
    top: -6px;
    right: -9px;
    background-color: skyblue;
    color: white;
    font-size: 0.6rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    font-weight: bold;
    line-height: 16px; /* igual a la altura para centrar verticalmente */
    text-align: center;
}

    /*.fila-cuarta > div {
        width: 48%;*/ /* Cada columna en la cuarta fila ocupará 48% */
    /*}*/

.content {
    padding: 0.75rem;
}


/* ===== Page ResumenDiario ===== */
.separador-resumen {
    height: 2rem;
    background-color: var(--color-fondo-sidebar);
    margin: 10px -15px;
    border-radius: 2px;
    text-align: center;
    color: white;
    padding: 5px;
}

.separator p {
    margin: 0;
    text-align: center;
}



/* ===== Page ParteTrabajo ===== */

.green-container {
    background-color: var(--color-fondo-container);
    padding: 0.75rem;
    border: solid;
    border-width:1px;
    border-color:var(--color-fondo-sidebar);
    border-radius: 7px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    /*align-items: center;*/
}

.white-container {
    background-color: #fcfff7;
    padding: 0.2rem;
    border: solid;
    border-width: 1px;
    border-color: var(--color-fondo-sidebar);
    border-radius: 7px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 0.5rem;
    display: flex;
    justify-content: space-between;
    /*align-items: center;*/
}

.col-center2 {
    width: 75%;
    color: var(--color-fuente-iconos);
    align-items: center;
    padding: 0.3rem 0.5rem;
}

.col-side1 {
    width: 15%;
    color: var(--color-fuente-iconos);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    justify-content: center;
    padding: 0.1rem 0.1rem;
}

.col-side2 {
    width: 10%;
    color: var(--color-fuente-iconos);
    align-items: center;
}


.fila-unica {
    font-size: 1.2rem;
    align-items: center;
}

.fila-doble {
    font-size: 1.2rem;
    display: flex;
    justify-content: flex-start;
    gap:3rem;
}

    .fila-doble > div {
        width: 48%;
    }


.fila-triple {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 3rem;
    row-gap: 0.1rem;
}

.icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    justify-content: center;
}

.icon-label {
    font-size: 0.66rem;
    margin-bottom: 4px;
    text-align: center;
}

.icono {
    position: relative;
    font-size: 1.5rem;
}

.badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background-color: tomato;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: bold;
    line-height: 1;
}



.guardar-btn, .borrar-btn{
    padding: 0.75rem;
    border-radius: 7px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 1rem;
    background-color: white;
    color: var(--color-fuente-iconos);
    font-size: 1.2rem;
    transition: all 0.2s ease; 
    cursor: pointer;
    min-width: 150px;
}

    .guardar-btn:hover, .borrar-btn:hover {
        background-color: var(--color-fondo-container); 
        color: var(--color-fuente-iconos);
        transform: translateY(-1px); /* Efecto de levantar */
        box-shadow: 0 3px 8px rgba(0,0,0,0.15); /* Sombra más pronunciada */
    }

    /*.borrar-btn:hover {
        background-color: #ffebee;*/ /* Rojo muy claro */
        /*color: #c62828;*/ /* Rojo más oscuro */
        /*transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }*/

    /* Efecto al hacer clic (opcional) */
    .guardar-btn:active, .borrar-btn:active{
        transform: translateY(0);
        box-shadow: 0 1px 5px rgba(0,0,0,0.1);
    }

.btn-editar, .btn-borrar {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--color-texto);
    font-size: 1.5rem;
    transition: all 0.2s ease;
    border-radius: 50%;
    align-items: center;
}

    .btn-editar:hover {
        color: #3d4a26; /* Color más oscuro */

        transform: scale(1.2); /* Ligero aumento de tamaño */
    }

    .btn-editar:active {
        transform: scale(0.95);
    }


    .btn-borrar:hover {
        color: #c62828; /* Color más oscuro */

        transform: scale(1.2); /* Ligero aumento de tamaño */
    }

    .btn-borrar:active {
        transform: scale(0.95);
    }

.btn-deshacer {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--color-fuente-iconos);
    font-size: 15px;
    transition: all 0.2s ease;
   /* border-radius: 50%;*/
    align-items: center;
    margin-left: 50px;
    padding-top:0px;
  
}
/*.btn-deshacer:hover {
    color: #3d4a26;  Color más oscuro 

    transform: scale(1.2);  Ligero aumento de tamaño 
}

.btn-deshacer:active {
    transform: scale(0.95);
*/}
.botonera {
    display: flex;
    justify-content: center; /* Centra horizontalmente */
    align-items: center; /* Centra verticalmente (si el contenedor tiene altura definida) */
    gap: 1rem; /* Espacio entre botones */
    margin-top: 1rem;
}
.botonera-dividir {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    display: flex;
    z-index: 1000;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .botonera {
        width: 100%;
        flex-direction: column;
        gap: .75rem;
    }

        .botonera .btn-pildora {
            width: 100%;
            max-width: 320px;
        }
}

.botonera .btn-pildora {
    width: 220px;
}


.container-cuadro {
    color: var(--color-fuente-iconos);
    background-color: var(--color-fondo-container);
    border: solid;
    border-width: 1px;
    border-color: var(--color-fondo-sidebar);
    border-radius: 7px;
    /*box-shadow: 0 2px 10px rgba(0,0,0,0.1);*/
    margin-top: 1rem;
    min-height: 60vh;
    height: auto;
    overflow-y: auto;
    padding-bottom: 1rem;
    padding: 0.5rem;
}

.items-cuadro {
    padding-left: 0rem;
    padding-bottom: 2rem;
    padding-right: 0rem;
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    font-size: 1.1rem;
    gap: 10px;
}

.icono-cuadro {
    font-size: 35px;
    width: 75px;
    height: 75px;
    line-height: 75px;
    display: inline-block;
    color: var(--color-fuente-iconos);
    text-align: center;
    padding: 1rem;
}

.encabezado-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

.titulo-container {
    margin: 0;
    font-size: 1.2rem;
}



/* ===== CAMARA ===== */

/* Estilos para el componente Camera */
.camera-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

#videoElement {
    width: 100%;
    max-height: calc(60vh - 150px); /* Ajusta según la altura del contenedor padre */
    object-fit: contain;
    border-radius: 5px;
    background-color: #000;
}

.camera-controls {
    display: flex;
    justify-content: center;
    gap: 0.3rem;
    flex-wrap: wrap;
    padding: 0.5rem;
    width: 100%;
}

.photo-preview {
    width: 100%;
    display: flex;
    justify-content: center;
}

    .photo-preview img {
        max-height: 200px;
        border-radius: 5px;
        border: 1px solid var(--color-fuente-iconos);
    }

/*NUEVO CAMARA*/
/* Modal fondo */
.photo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}
    .photo-modal.hide {
        animation: fadeOut 0.3s forwards;
    }
    @keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes fadeOut {
  to { opacity: 0; }
}

/* Contenido modal */
.photo-modal-content {
    background-color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
    text-align: center;
}

    /* Imagen dentro del modal */
    .photo-modal-content img.modal-photo {
        max-width: 100%;
        max-height: 70vh;
        height: auto;
        object-fit: contain;
        border-radius: 5px;
        margin: 1rem 0;
    }

/* Botones modal */
.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    width: 100%;
}

@media (max-width: 576px) {
    .photo-modal-content {
        max-width: 95vw;
        max-height: 80vh;
        padding: 1rem;
    }

        .photo-modal-content img.modal-photo {
            max-height: 60vh;
        }
}



/* Estilos para los botones de la cámara (puedes ajustar colores) */
.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
}

/*.btn-primary {
    background-color: var(--color-fuente-iconos);
    color: white;
}*/

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-outline-success {
    background-color: transparent;
    color: var(--color-fuente-iconos);
    border: 1px solid var(--color-fuente-iconos);
}

.btn-success {
    background-color: #28a745;
    color: white;
}

/* Estilos para la botonera (si necesitas ajustarlos) */
.botonera {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.guardar-btn, .borrar-btn, .volver-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: white;
    color: var(--color-fuente-iconos);
    border: none;
}

/*Formulario Usuario*/
.container-form-usuario {
    color: var(--color-texto);
    background-color: var(--color-login-card);
    border: solid;
    border-width: 1px;
    border-color: var(--color-texto);
    border-radius: 7px;
    margin-top: 1rem;
    padding: 1rem;
}


.btn-add-maquinaria {
    background-color: var(--color-fuente-iconos);
    color: white;
}

/* Formulario Roles*/
.bgSeccion{
     background-color:#b5ca90 !important;
}


/*---------------------------------------*/
/*--------------- LABELS ----------------*/

.lblinfo
{
    font-size:12px;
}
.lblform {
    font-size: 0.85rem !important;
}




/*******************************************/


/*---------------------------------------*/
/*--------------- VALIDACIONES ----------------*/

.filtros-container {
    background-color: var(--color-fondo-validacion);
    padding: 0.75rem;
    border: solid;
    border-width: 1px;
    border-color: var(--color-fondo-sidebar);
  
    
 
    border-radius: 7px;
    
    /* box-shadow: 0 2px 10px rgba(0,0,0,0.1);*/
    margin-top: 1rem;
    /* display: flex;
    justify-content: space-between;*/
}

/*******************************************/



/*----------ServceWorker----------*/
.floating-update-button {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    padding: 1rem 1.5rem;
    animation: fadein 2s ease-out;
}

@keyframes fadein {
    from {
        right: -100%;
    }

    to {
        right: 2rem;
    }
}

/*------------------------------*/





/*--------------- FICHA VALIDACIONES ----------------*/


.validacion-container {
    display: flex;
    flex-direction: column;
    border-radius: 7px;
    padding: 0rem;
    gap: 0.1rem;
    margin: auto;
    width: 100%;
    max-width: none;
    color: var(--color-fuente-iconos);
    border: solid;
    border-width: 1px;
   
    border-color: var(--color-fondo-sidebar)
}

.validacion-top {
    background-color: var(--color-fondo-validacion);
    border-radius: 5px;
    width: 100%;
    padding: 0.4rem;
    display: grid;
    grid-template-columns: 0.05fr 0.8fr 0.3fr 0.6fr 0.3fr;
    flex-wrap: wrap;
    gap: 0.1rem;
}

.validacion-bloques {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 0.1rem;
}

.validacion-bloque {
    border-radius: 7px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 160px;
    padding: 0.1rem, 0.3rem, 0,0.3rem;
    width: 100%;
    box-sizing: border-box;
}

.bloque-info {
    display: grid;
    grid-template-columns: 30px 1fr;
    flex: 1;
    padding: 0.5rem;
    background-color: var(--color-fondo-validacion);
    border-radius: 4px;
    margin-bottom: 1px;
}

.bloque-acciones {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.1rem;
    padding:0;
}


.columna-icono {
    display: flex;
    justify-content: flex-start;
    font-size: 1.3rem;
}

.columna-contenido {
    margin-top:0.4rem;
    display: flex;
    flex-direction: column;
}

.icono-alerta {
    display: flex;
    color: tomato;
    font-size: 1.2rem;
    justify-content: center;
    align-items: center;
}


/*------  ValidacionTop(espacio y actvidad ---------*/
.col-numero {
    display: flex;
    justify-content: center;
}
.col-info {
    margin-left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.fila-primera {
    display: flex;
    justify-content:flex-start ;
    align-items: center;
    font-size: 0.95rem;
    gap:2rem;
}

.fila-segunda {
    font-size: 1.2rem;
    padding: 0.2rem 0; /* Espaciado vertical */
}

.fila-tercera {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: 0.95rem;
    gap: 4.5rem; /* Espacio entre elementos */
}

    .fila-tercera span {
        display: flex;
        align-items: center;
        gap: 0.1rem; /* Espacio entre icono y texto */
    }

    
    .fila-tercera i {
        font-size: 0.9rem;
    }

.col-acciones {
    
    display: flex;
    gap: 3rem;
    padding:0.5rem;
}

.col-estado {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    align-items:center;
    justify-content:center;
}
.col-validacion {
    display: flex;
}

.btn-validar {
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-fuente-iconos);
    border: none; 
    outline: none;
    background: none; 
    cursor: pointer;
}

.btn-validar:hover {
    transform: translateY(-2px);
}

/*------  ValidacionTop PANTALLA PEQUENYA ---------*/


@media (max-width: 768px) {
    .validacion-top {
        display: grid;
        grid-template-areas:
            "numero estado estado"
            "parte parte parte"
            "espacio espacio espacio"
            "actividad actividad actividad"
            "acciones acciones validar";
        grid-template-columns: auto 1fr auto;
        gap: 0.4rem;
        padding: 0.6rem;
        align-items: center;
    }

    .col-numero {
        grid-area: numero;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 0;
    }

    .col-info {
        grid-area: parte;
        display: flex;
        flex-direction: column;
        gap: 0.2rem;
    }

    .fila-primera {
        font-size: 0.9rem;
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 0.5rem;
        justify-content:space-between;
        margin-right:1rem;
    }

    .fila-segunda {
        grid-area: espacio;
        font-size: 0.85rem;
        text-align: left;
    }

    .fila-tercera {
        font-size: 0.9rem;
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 0.5rem;
        justify-content: space-between;
        margin-right: 1rem;
    }

    .actividad-fila span {
        font-size: 0.95rem;
        white-space: normal;
    }

    .detalle-fila {
        display: flex;
        justify-content: flex-start;
        gap: 1rem;
        font-size: 0.85rem;
        align-items: center;
        flex-wrap: wrap;
    }

        .detalle-fila:has(span:first-child:last-child) {
            justify-content: flex-start; /* cuando solo hay 1 span */
            width: 100%;
        }


        .detalle-fila span {
            display: flex;
            align-items: center;
            gap: 0.3rem;
            justify-content: flex-start;
        }

    .col-estado {
        grid-area: estado;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        font-size: 0.8rem;
    }

    .col-acciones {
        grid-area: acciones;
        display: flex;
        justify-content: center;
        gap: 0.6rem;
    }

        .col-acciones button {
            font-size: 0.95rem;
            padding: 0.2rem 0.4rem;
        }

    .col-validacion {
        grid-area: validar;
        display: flex;
        justify-content: center;
    }

    .btn-validar {
        font-size: 0.85rem;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .numero-en-circulo {
        width: 26px;
        height: 26px;
        font-size: 0.8rem;
    }
}


/*-------FIN PATALLA PEQUENYA-----------*/


/*--------fichas-----------*/
.alerta-centro {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60px; /* Ajusta la altura mínima si es necesario */
    font-size: 1rem;
    color: #333; /* o el color que uses */
    text-align: center;
    gap: 0.5rem;
}

.contenido-trabajadores {
    overflow-y: hidden;
    max-height: calc(4 * 30px);
    transition: max-height 0.3s ease;
}

    .contenido-trabajadores.expandido {
        max-height: none;
        overflow-y: visible;
    }

.fila-trabajador, .fila-maquina, .fila-articulo {
    display: grid;
    gap: 0.1rem;
    align-items: center;
    padding: 5px 0;
    font-size: 0.8rem;
}
.fila-parcela {
    display: grid;
    gap: 0.1rem;
    align-items: center;
    padding: 2px 0;
    margin-left:5px;
    margin-bottom:0px;
    margin-top:0px;
    font-size: 0.8rem;
}
.fila-cultivo {
    display: grid;
    gap: 0.1rem;
    align-items: center;
    //padding: 3px 0;
    font-size: 0.7rem;
    margin:1px;
}
.fila-trabajador {
    grid-template-columns: 2fr 0.6fr 0.7fr 0.3fr 0.4fr;
}

.fila-maquina {
    grid-template-columns: 2.5fr 0.8fr 0.4fr;
}

.fila-articulo {
    grid-template-columns: 1.2fr 1.2fr 1fr 0.9fr 0.4fr;
}



.columna {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: center;
    color: var(--color-fuente-iconos);
}

.nombre {
    text-align: left;
  /*  font-weight: bold;*/
}

.horas, .horas-extra {
    text-align: center;
}

.columna.horas, .columna.dosis {
    text-align: center;
}

.columna.cantidad{
    text-align: start;
}

.columna.almacen {
    text-align: left;
}

.icono-horas-extra i,
.coche i {
    font-size: 1rem;
    color: #333;
}

.icono-alerta {
    color: tomato;
    font-size: 1rem;
}

/*----- Botones validacion ----*/
.btn-val {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0rem;
    color: gray;
    background-color: var(--color-fondo-validacion);
    border: solid;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.valida {
    border-color: green;
}
.revisa {
    border-color: tomato;
}
.no {
    border-color: grey;
}

    .btn-val:hover {
        transform: translateY(-2px);
    }

.btn-icon {
    width: 62px;
    height: 62px;
    object-fit: contain;
}



    .btn-val.active {
        box-shadow: 0 0 5px rgba(0,0,0,0.2);
        transform: scale(1.02);
    }

.btn-val.valida.active {
    border-color: #4CAF50;
    background-color: rgba(232, 245, 233, 0.7);
}

.btn-val.revisa.active {
    background-color: rgba(255, 210, 190, 0.7);
}

.btn-val.no.active {
    background-color: lightgray;
}


/****************************************************/


/*---------DASHBOARD------------*/
.chart-title-custom {
    color: var(--color-fuente-iconos) !important;
    font-size: 0.9rem !important;
    font-weight: bold;
}

/* Estilo para leyendas */
.chart-legend-custom {
    color: var(--color-fuente-iconos) !important;
    font-size: 0.8rem !important;
}

/* Estilo para tooltips */
.chart-tooltip-custom {
    color: var(--color-fuente-iconos) !important;
    background-color: #f8f9fa !important;
}


.dashboard-container {
    background-color: #fcfff7;
    padding: 0.3rem;
    border: solid;
    border-width: 1px;
    border-color: var(--color-fondo-sidebar);
    border-radius: 7px;
}

.chart-center-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  /*  width: 130px; 
    height: 130px;
    border-radius: 50%; */
    background-color: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--color-fuente-iconos);
    pointer-events: none;
    margin-top: 10px;
}

    .chart-center-label small {
        font-size: 0.8rem;
        color: var(--color-fuente-iconos);
    }



/* index modales */
.modal {
    z-index: 1050;
}

.modal-backdrop {
    z-index: 1040;
}




/*---------REPARTO GASOIL------------*/

.container-gasoil {
    background-color: #fcfff7;
    padding: 0.5rem;
    border: solid;
    border-width: 1px;
    border-color: var(--color-fondo-sidebar);
    border-radius: 7px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 0.5rem;
    display: flex;
    flex-direction:column;
}

.vistaparte-gasoil {
    background-color: #fcfff7;
    padding: 0.3rem;
    border: solid;
    border-width: 1px;
    border-color: var(--color-fondo-sidebar);
    border-radius: 7px;
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
}


.col-side-gasoil {
    width:10%;
    color: var(--color-fuente-iconos);
    font-size: 1rem;
}


.col-center-gasoil {
    width: 80%;
    color: var(--color-fuente-iconos);
    padding: 0.3rem 0.5rem;
    line-height: 1.7;
}


.fila-uno {
    font-size: 0.95rem;
    display:flex;
    flex-direction:row;
    gap:2rem;
    justify-content:space-between;
}
.fila-dos {
    font-size: 1.1rem;
    padding: 0.2rem 0;
}

.fila-tres {
    font-size: 0.95rem;
    display: flex;
    flex-direction: row;
    gap: 0.4rem;
    justify-content: space-between;
}
.f3{
    display:flex;
    flex-direction:column;
    flex:1;

}
.f3-label{
    display:flex;
    flex-direction:row;
    justify-content:center;
    font-size:0.9rem;
    
}
.f3-body {
    display: flex;
    flex-direction: column;
    background-color: var(--color-fondo-sidebar);
    padding: 0rem 0rem 0rem 0rem;
    border-radius: 5px;
    gap: 0rem;
    box-shadow: 0 2px 1px rgba(0,0,0,0.1);
    flex: 1;
    color:white;
}

.f3b1 {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin: 0;
    padding: 0;
    gap: 0;
    font-size: 0.8rem;
    min-height: 1.05rem;
    flex: 1;
}
.f3b2 {
    display: flex;
    flex-direction: row;
    margin: 0;
    padding: 0;
    gap:0;
    font-weight: bold;
    justify-content: center;
    font-size: 1.1rem;
}
.f3b1 .stexto {
    margin: 0.2rem 0rem 0rem 0rem;  
    padding-top: 0;
    padding-bottom: 0;
    line-height: 1;
    display: inline-block;
}


.botonera-reparto {
    display: flex;
    flex-direction:row;
    justify-content: center;
    gap: 0.2rem;
    margin-top: 1rem;
}
.reparto-btn {
    padding: 0.5rem;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 1rem;
    background-color: var(--color-fondo-sidebar);
    color:white;
    font-size: 0.9rem;
    transition: all 0.3s ease; /* Transición suave */
    cursor: pointer;
    min-width: 110px;
    padding: 0.5rem 1.5rem;
    font-weight: bold;
    border: none;
}

.reparto-btn:hover {
    background-color: var(--color-fondo-container);
    color: grey;
    transform: translateY(-1px); /* Efecto de levantar */
    box-shadow: 0 3px 8px rgba(0,0,0,0.15); /* Sombra más pronunciada */
}

.reparto-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
}

    .reparto-btn.activo {
        background-color: cornflowerblue;
        color: white;
    }




.resumen-reparto {
    max-height: 60vh;
    overflow-y: auto;
}

.total-litros {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.tipo-reparto {
    margin-bottom: 1rem;
}

.detalle-reparto {
    margin: 1rem 0;
}

    .detalle-reparto h5 {
        margin-bottom: 0.5rem;
    }

.confirmacion-text {
    margin-top: 1rem;
    font-weight: bold;
}

.table {
    width: 100%;
    margin-bottom: 1rem;
}

    .table th, .table td {
        padding: 0.3rem;
        text-align: left;
        border-bottom: 1px solid #dee2e6;
    }

    .table th {
        background-color: #f8f9fa;
    }






/*---------DIVISION--------------*/
.col-center-ficha-division {
    width: 88%;
    color: var(--color-fuente-iconos);
    padding: 0.3rem 0.5rem;
    line-height: 1.7;
}

.col-side-right-division {
    width: 1%;
    color: var(--color-fuente-iconos);
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
}

.fila-segunda-division {
    font-size: 1.3rem;
}




.hide-expand-button .dxbl-grid-expand-button {
    display: none !important;
}

/*.no-detail-row .dxbl-grid-expand-button {
    display: none !important;
}*/

@media (max-width: 576px) {
    .grid-small {
        font-size: 0.8rem; /* más pequeño */
    }

        .grid-small .dxbl-grid-header {
            font-size: 0.75rem; /* cabeceras un poco más chicas */
        }

        .grid-small .dxbl-grid-data-row td {
            padding: 2px 4px; /* menos espacio entre celdas */
        }
}

.no-detail-row  {
    display: none !important;
}

button, input, select, textarea {
    font-family: inherit;
}

[class*="dxbl-"] {
    font-family: inherit;
}

/* Botón píldora (reutilizable) */
.btn-pildora {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.4rem;
    padding: 0 1.75rem;
    border: 0;
    border-radius: 999px;
    background: var(--color-fondo-sidebar);
    color: #fff;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.2s ease;
    gap:0.3rem;
}

    .btn-pildora:hover {
        filter: brightness(1.12);
    }

    .btn-pildora:focus-visible {
        outline: 2px solid var(--color-fondo-sidebar);
        outline-offset: 3px;
    }

.btn-importar img {
    filter: brightness(0) invert(1);
}
.banner-seccion {
    margin: 0 0 1.8rem;
    padding: 0.55rem 1.5rem;
    background: var(--color-fondo-sidebar);
    color: #fff;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 500;
}

.saludo {
    font-size: 1.15rem;
    color: var(--color-texto);
    margin: 0 0 0.6rem;
}

.gris-proaco {
    color: var(--color-texto);
}
.bg-gris-proaco {
    background-color: var(--color-texto);
}

.burdeo-proaco {
    color: var(--color-fondo-sidebar);
}
.etiqueta-proaco {
    color: var(--color-texto);
    opacity: 0.75; /* opcional: las distingue de los valores */
}

/* ===== DevExpress Grid ===== */

.dxbl-grid .dxbl-grid-table th,
.dxbl-grid .dxbl-grid-table td {
    color: var(--color-texto);
}

.dxbl-grid .dxbl-grid-header,
.dxbl-grid .dxbl-grid-header-content,
.dxbl-grid .dxbl-grid-header-content span {
    color: var(--color-texto);
}

.dxbl-text-edit > .dxbl-text-edit-input {
    color: var(--color-texto);
}

/* Botonera inferior */
.botonera {
    margin-top: 1.5rem;
    display: flex;
    justify-content: flex-start;
}

.volver-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    height: 2.4rem;
    padding: 0 1.5rem;
    border: 0;
    border-radius: 999px;
    background: var(--color-texto);
    color: #fff;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.2s ease;
}

    .volver-btn:hover {
        filter: brightness(1.12);
    }

    .volver-btn:focus-visible {
        outline: 2px solid var(--color-fondo-sidebar);
        outline-offset: 3px;
    }