* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f4f6f8;
    color: #1f2937;
}


/* =========================
   BARRA SUPERIOR
========================= */

.topbar {
    height: 64px;
    background: #17365d;
    color: white;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 30px;

    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}


.usuario {
    display: flex;
    align-items: center;
    gap: 14px;
}


.rol {
    background: #28558a;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
}


.logout {
    color: white;
    text-decoration: none;
}


.logout:hover {
    text-decoration: underline;
}


/* =========================
   CONTENIDO
========================= */

.contenido {
    padding: 30px;
}


.cabecera-modulo {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 25px;
}


.cabecera-modulo h1 {
    margin: 0;
}


.cabecera-modulo p {
    margin-top: 6px;
    color: #6b7280;
}


/* =========================
   LOGIN
========================= */

.login-container {
    min-height: calc(100vh - 124px);

    display: flex;
    align-items: center;
    justify-content: center;
}


.login-card {
    width: 390px;

    background: white;

    padding: 38px;

    border-radius: 10px;

    box-shadow:
        0 4px 18px
        rgba(0,0,0,0.10);
}


.login-card h1 {
    margin-top: 0;
    text-align: center;
}


.subtitulo {
    text-align: center;
    color: #6b7280;
    margin-bottom: 30px;
}


.campo {
    margin-bottom: 20px;
}


.campo label {
    display: block;

    font-weight: 600;

    margin-bottom: 7px;
}


.campo input {
    width: 100%;

    padding: 11px;

    border: 1px solid #d1d5db;

    border-radius: 5px;

    font-size: 15px;
}


button {
    width: 100%;

    background: #17365d;
    color: white;

    border: none;

    border-radius: 5px;

    padding: 12px;

    font-size: 15px;

    cursor: pointer;
}


button:hover {
    background: #244f7e;
}


/* =========================
   PANEL
========================= */

.panel {
    background: white;

    padding: 25px;

    border-radius: 8px;

    box-shadow:
        0 2px 8px
        rgba(0,0,0,0.07);
}


.panel h2 {
    margin-top: 0;
}


/* =========================
   TABLAS
========================= */

table {
    width: 100%;
    border-collapse: collapse;
}


th {
    background: #eef2f6;
    text-align: left;

    padding: 12px;

    font-size: 14px;
}


td {
    padding: 12px;

    border-bottom: 1px solid #e5e7eb;
}


.sin-datos {
    text-align: center;
    color: #6b7280;

    padding: 30px;
}


/* =========================
   ALERTAS
========================= */

.alerta {
    padding: 12px;

    margin-bottom: 20px;

    border-radius: 5px;
}


.alerta.danger {
    background: #fee2e2;
    color: #991b1b;
}


.alerta.warning {
    background: #fef3c7;
    color: #92400e;
}

/* =========================
   BOTÓN NUEVO INGRESO
========================= */

.btn-nuevo {
    width: auto;
    padding: 11px 18px;
}


.formulario-panel {
    margin-bottom: 25px;
}


.titulo-formulario {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.titulo-formulario h2 {
    margin: 0;
}


.btn-cerrar {
    width: auto;

    background: transparent;

    color: #6b7280;

    font-size: 28px;

    padding: 2px 8px;
}


.btn-cerrar:hover {
    background: #f3f4f6;
}


.seccion-titulo {
    margin-top: 28px;

    padding-bottom: 8px;

    border-bottom: 1px solid #e5e7eb;

    font-size: 16px;
}


.form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px;
}


.checkbox-linea {
    display: flex;

    align-items: center;

    gap: 8px;

    margin: 20px 0;
}


.checkbox-linea input {
    width: 17px;
    height: 17px;
}


textarea {
    width: 100%;

    padding: 11px;

    border: 1px solid #d1d5db;

    border-radius: 5px;

    font-family: inherit;

    font-size: 15px;

    resize: vertical;
}


.acciones-formulario {
    display: flex;

    justify-content: flex-end;

    gap: 12px;

    margin-top: 25px;
}


.acciones-formulario button {
    width: auto;

    padding-left: 25px;

    padding-right: 25px;
}


.btn-secundario {
    background: #6b7280;
}


.btn-secundario:hover {
    background: #4b5563;
}


.btn-guardar {
    background: #17365d;
}


/* =========================
   PANEL
========================= */

.panel-header {
    display: flex;

    align-items: center;

    gap: 10px;
}


.contador {
    background: #17365d;

    color: white;

    border-radius: 20px;

    min-width: 27px;

    height: 27px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    font-size: 13px;
}


.hora {
    color: #6b7280;

    font-size: 13px;
}


/* =========================
   ESTADOS
========================= */

.estado {
    display: inline-block;

    padding: 5px 10px;

    border-radius: 20px;

    font-size: 12px;

    font-weight: 600;
}


.estado-porteria {
    background: #dbeafe;

    color: #1e40af;
}


/* =========================
   ALERTA ÉXITO
========================= */

.alerta.success {
    background: #dcfce7;

    color: #166534;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 750px) {

    .form-grid {
        grid-template-columns: 1fr;
    }

}

.campo select {
    width: 100%;

    padding: 11px;

    border: 1px solid #d1d5db;

    border-radius: 5px;

    background: white;

    font-family: inherit;

    font-size: 15px;

    color: #1f2937;
}

/* =========================
   DETALLE OPERACIÓN
========================= */

.detalle-cabecera {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 25px;
}


.detalle-cabecera h1 {
    margin-top: 10px;
    margin-bottom: 5px;
}


.detalle-cabecera p {
    margin: 0;
    color: #6b7280;
}


.volver {
    color: #17365d;
    text-decoration: none;
    font-weight: 600;
}


.volver:hover {
    text-decoration: underline;
}


.detalle-panel {
    margin-bottom: 20px;
}


.detalle-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 25px;

    margin-top: 20px;
}


.detalle-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}


.detalle-label {
    color: #6b7280;
    font-size: 13px;
}


.patente-detalle {
    font-size: 20px;
}


.observacion-detalle {
    margin-top: 25px;

    padding-top: 20px;

    border-top: 1px solid #e5e7eb;
}


.observacion-detalle p {
    margin-bottom: 0;
}


.btn-ver {
    display: inline-block;

    background: #17365d;
    color: white;

    padding: 7px 15px;

    border-radius: 5px;

    text-decoration: none;

    font-size: 14px;
}


.btn-ver:hover {
    background: #244f7e;
}


@media (max-width: 750px) {

    .detalle-grid {
        grid-template-columns: 1fr;
    }

}

/* =========================
   TRAZABILIDAD
========================= */

.timeline {
    margin-top: 25px;
}


.timeline-item {
    position: relative;

    padding-left: 32px;
    padding-bottom: 30px;

    border-left: 2px solid #dbe4ee;
}


.timeline-item:last-child {
    padding-bottom: 5px;
}


.timeline-marca {
    position: absolute;

    left: -7px;
    top: 3px;

    width: 12px;
    height: 12px;

    background: #17365d;

    border-radius: 50%;
}


.timeline-fecha {
    color: #6b7280;

    font-size: 13px;

    margin-bottom: 5px;
}


.timeline-titulo {
    font-size: 16px;

    font-weight: 700;

    color: #1f2937;

    margin-bottom: 5px;
}


.timeline-descripcion {
    color: #4b5563;

    margin-bottom: 5px;
}


.timeline-usuario {
    color: #6b7280;

    font-size: 13px;
}


.sin-eventos {
    color: #6b7280;
}

/* =====================================================
   ESTADOS TIPO SEMÁFORO
===================================================== */

.estado {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 7px 11px;

    border-radius: 20px;

    font-size: 13px;
    font-weight: 600;

    white-space: nowrap;
}


.estado-punto {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: currentColor;
}


/* EN PORTERÍA */

.estado-porteria {
    color: #a16207;
    background: #fef9c3;
    border: 1px solid #fde68a;
}


/* ESPERANDO ROMANA */

.estado-espera-romana {
    color: #c2410c;
    background: #ffedd5;
    border: 1px solid #fed7aa;
}


/* EN ROMANA */

.estado-romana {
    color: #1d4ed8;
    background: #dbeafe;
    border: 1px solid #bfdbfe;
}


/* EN PLANTA */

.estado-planta {
    color: #15803d;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
}


/* FINALIZADO */

.btn-finalizar {
    width: auto;

    padding: 7px 10px;

    border: none;
    border-radius: 6px;

    color: white;
    background: #15803d;

    font-size: 12px;
    font-weight: 600;

    white-space: nowrap;

    cursor: pointer;
}

/* ESTADO NO DEFINIDO */

.estado-desconocido {
    color: #475569;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
}

.btn-enviar-guia {
    padding: 10px 18px;

    border: none;
    border-radius: 8px;

    color: white;
    background: #7c3aed;

    font-weight: 600;

    cursor: pointer;
}


.btn-enviar-guia:hover {
    background: #6d28d9;
}

.estado-porteria {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    padding: 7px 10px;

    border-radius: 18px;

    font-size: 12px;
    font-weight: 600;

    white-space: nowrap;
}


.estado-porteria .estado-punto {
    width: 8px;
    height: 8px;

    flex: 0 0 8px;

    border-radius: 50%;

    background: currentColor;
}


.estado-porteria {
    color: #b45309;
    background: #fef3c7;
}


.estado-pendiente {
    color: #c2410c;
    background: #ffedd5;
}


.estado-romana {
    color: #1d4ed8;
    background: #dbeafe;
}


.estado-listo {
    color: #15803d;
    background: #dcfce7;
}


.estado-guia {
    color: #7c3aed;
    background: #ede9fe;
}


.estado-finalizado {
    color: #475569;
    background: #e2e8f0;
}

/* =====================================================
   BOTÓN CÁMARA - TAMAÑO COMPACTO
===================================================== */

.campo-con-camara {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}


.campo-con-camara input {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
}


.campo-con-camara button.btn-camara {
    flex: 0 0 auto;

    width: auto !important;
    min-width: 105px;
    max-width: 120px;

    padding: 9px 12px;

    border: none;
    border-radius: 6px;

    background: #2563eb;
    color: white;

    font-size: 12px;
    font-weight: 600;

    line-height: 1.2;

    white-space: nowrap;

    cursor: pointer;
}


.campo-con-camara button.btn-camara:hover {
    background: #1d4ed8;
}


/* Fotografía opcional de patente */

.campo-con-camara button.btn-camara-opcional {
    background: #475569;
}


.campo-con-camara button.btn-camara-opcional:hover {
    background: #334155;
}


/* Cuando ya existe fotografía */

.campo-con-camara button.btn-camara.foto-lista {
    background: #15803d;
}


/* =====================================================
   MÓVIL / TABLET
===================================================== */

@media (max-width: 750px) {

    .campo-con-camara {
        display: grid;

        grid-template-columns:
            minmax(0, 1fr) auto;

        gap: 8px;

        align-items: center;
    }


    .campo-con-camara button.btn-camara {
        width: auto !important;

        min-width: 100px;
        max-width: 115px;

        padding: 9px 10px;
    }

}


/* =====================================================
   RESPONSIVE PORTERÍA
===================================================== */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 900px) {

    .contenido {
        padding: 18px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .panel {
        padding: 18px;
    }

}


/* =====================================================
   SMARTPHONE
===================================================== */

@media (max-width: 600px) {

    /* ---------------------------------------------
       CONTENEDOR GENERAL
    --------------------------------------------- */

    .contenido {
        padding: 12px;
    }


    .panel {
        width: 100%;
        max-width: 100%;

        padding: 16px;

        border-radius: 8px;
    }


    /* ---------------------------------------------
       CABECERA
    --------------------------------------------- */

    .cabecera-modulo {
        align-items: flex-start;
        flex-direction: column;

        gap: 12px;

        margin-bottom: 18px;
    }


    .cabecera-modulo h1 {
        font-size: 28px;
    }


    .cabecera-modulo p {
        margin-bottom: 0;
    }


    .btn-nuevo {
        width: auto;

        padding: 9px 13px;

        font-size: 13px;
    }


    /* ---------------------------------------------
       FORMULARIO
    --------------------------------------------- */

    .form-grid {
        display: grid;

        grid-template-columns: 1fr;

        gap: 10px;
    }


    .campo {
        width: 100%;
        min-width: 0;

        margin-bottom: 14px;
    }


    .campo input,
    .campo select,
    .campo textarea {
        width: 100%;
        max-width: 100%;

        font-size: 16px;
    }


    /* 16px evita zoom automático en varios móviles */


    /* ---------------------------------------------
       RUT/PATENTE + CÁMARA
    --------------------------------------------- */

    .campo-con-camara {
        display: grid;

        grid-template-columns:
            minmax(0, 1fr)
            auto;

        align-items: center;

        gap: 7px;

        width: 100%;
    }


    .campo-con-camara input {
        width: 100%;
        min-width: 0;
    }


    .campo-con-camara button.btn-camara {
        width: auto !important;

        min-width: 44px;
        max-width: 105px;

        padding: 9px 10px;

        font-size: 12px;

        white-space: nowrap;
    }


    /* ---------------------------------------------
       BOTONES FORMULARIO
    --------------------------------------------- */

    .acciones-formulario {
        display: flex;

        flex-direction: column-reverse;

        gap: 8px;
    }


    .acciones-formulario button {
        width: 100%;

        margin: 0;
    }


    /* ---------------------------------------------
       ROMANA
    --------------------------------------------- */

    .ruta-romana {
        align-items: flex-start;

        padding: 14px;

        gap: 10px;
    }


    .opciones-romana {
        display: grid;

        grid-template-columns: 1fr 1fr;

        width: 100%;

        gap: 8px;
    }


    .opcion-romana {
        justify-content: center;

        padding: 9px;
    }


    /* ---------------------------------------------
       CÁMARA
    --------------------------------------------- */

    .modal-camara-fondo {
        padding: 0;
    }


    .modal-camara {
        width: 100%;
        max-width: 100%;

        min-height: 100vh;

        margin: 0;

        padding: 14px;

        border-radius: 0;
    }


    .modal-camara-cabecera {
        margin-bottom: 12px;
    }


    .modal-camara-cabecera h2 {
        font-size: 20px;
    }


    .visor-camara {
        width: 100%;

        max-height: 65vh;

        aspect-ratio: 3 / 4;

        border-radius: 10px;
    }


    .visor-camara video,
    .visor-camara img {
        width: 100%;
        height: 100%;

        object-fit: contain;
    }


    .acciones-camara {
        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 8px;
    }


    .acciones-camara button {
        width: 100%;

        padding: 11px 8px;

        font-size: 13px;
    }


    /* ---------------------------------------------
       MODAL FINALIZAR
    --------------------------------------------- */

    .modal-fondo-porteria {
        padding: 10px;
    }


    .modal-finalizar {
        width: 100%;

        margin: 15px auto;

        padding: 16px;
    }


    .resumen-finalizacion {
        grid-template-columns: 1fr;
    }


    .acciones-finalizacion {
        flex-direction: column-reverse;
    }


    .acciones-finalizacion button {
        width: 100%;
    }


    /* ---------------------------------------------
       TABLA
    --------------------------------------------- */

    .tabla-container {
        width: 100%;

        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }


    table {
        min-width: 850px;
    }


    th,
    td {
        padding: 9px;

        font-size: 12px;
    }


    /* ---------------------------------------------
       ACCIONES TABLA
    --------------------------------------------- */

    .acciones-tabla {
        display: flex;

        align-items: center;

        flex-direction: row;

        gap: 5px;
    }


    .acciones-tabla .btn-ver,
    .acciones-tabla .btn-finalizar {
        width: auto !important;

        padding: 6px 8px;

        font-size: 11px;

        white-space: nowrap;
    }

}

/* =====================================================
   PORTERÍA - DISEÑO RESPONSIVE
===================================================== */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 900px) {

    .contenido {
        padding: 18px;
    }

    .panel {
        width: 100%;
        max-width: 100%;

        padding: 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;

        gap: 14px;
    }

}


/* =====================================================
   SMARTPHONE
===================================================== */

@media (max-width: 600px) {

    /* ---------------------------------------------
       ESTRUCTURA GENERAL
    --------------------------------------------- */

    body {
        font-size: 14px;
    }


    .contenido {
        width: 100%;

        padding: 10px;
    }


    .panel {
        width: 100%;
        max-width: 100%;

        padding: 14px;

        border-radius: 8px;
    }


    /* ---------------------------------------------
       BARRA SUPERIOR
    --------------------------------------------- */

    .topbar {
        height: auto;

        min-height: 58px;

        padding: 10px 14px;

        gap: 10px;
    }


    .usuario {
        gap: 7px;

        font-size: 12px;
    }


    .rol {
        padding: 4px 7px;

        font-size: 10px;
    }


    /* ---------------------------------------------
       CABECERA PORTERÍA
    --------------------------------------------- */

    .cabecera-modulo {
        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 10px;

        margin-bottom: 15px;
    }


    .cabecera-modulo h1 {
        margin: 0;

        font-size: 25px;
    }


    .cabecera-modulo p {
        margin: 4px 0 0;

        font-size: 13px;
    }


    .cabecera-modulo .btn-nuevo {
        align-self: flex-start;

        width: auto !important;

        padding: 8px 12px;

        font-size: 13px;
    }


    /* ---------------------------------------------
       FORMULARIO
    --------------------------------------------- */

    .titulo-formulario h2 {
        font-size: 20px;
    }


    .seccion-titulo {
        margin-top: 20px;

        font-size: 15px;
    }


    .form-grid {
        display: grid;

        grid-template-columns: 1fr;

        gap: 8px;
    }


    .campo {
        width: 100%;
        min-width: 0;

        margin-bottom: 12px;
    }


    .campo label {
        margin-bottom: 5px;

        font-size: 13px;
    }


    .campo input,
    .campo select,
    .campo textarea {
        width: 100%;
        max-width: 100%;

        padding: 10px;

        /*
        Importante en smartphone:
        16px evita que varios navegadores hagan
        zoom al seleccionar el campo.
        */
        font-size: 16px;
    }


    /* ---------------------------------------------
       CHECKBOX
    --------------------------------------------- */

    .checkbox-linea {
        margin: 14px 0;
    }


    /* ---------------------------------------------
       CAMPO + CÁMARA
    --------------------------------------------- */

    .campo-con-camara {
        display: grid;

        grid-template-columns:
            minmax(0, 1fr)
            auto;

        align-items: center;

        gap: 6px;

        width: 100%;
    }


    .campo-con-camara input {
        width: 100%;
        min-width: 0;
    }


    .campo-con-camara button.btn-camara {
        width: auto !important;

        min-width: 42px;
        max-width: 100px;

        padding: 9px 8px;

        font-size: 11px;

        white-space: nowrap;
    }


    .estado-fotografia {
        margin-top: 4px;

        font-size: 11px;
    }


    /* ---------------------------------------------
       PASO POR ROMANA
    --------------------------------------------- */

    .ruta-romana {
        align-items: flex-start;

        gap: 9px;

        margin: 12px 0 18px;

        padding: 12px;
    }


    .ruta-romana-icono {
        width: 36px;
        height: 36px;

        flex: 0 0 36px;

        font-size: 18px;
    }


    .ruta-romana strong {
        font-size: 13px;
    }


    .ruta-romana p {
        font-size: 12px;
    }


    .opciones-romana {
        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 7px;

        width: 100%;
    }


    .opcion-romana {
        justify-content: center;

        padding: 8px;
    }


    /* ---------------------------------------------
       BOTONES FORMULARIO
    --------------------------------------------- */

    .acciones-formulario {
        display: flex;

        flex-direction: column-reverse;

        gap: 7px;

        margin-top: 18px;
    }


    .acciones-formulario button {
        width: 100%;

        padding: 10px;
    }


    /* ---------------------------------------------
       PANEL VEHÍCULOS
    --------------------------------------------- */

    .panel-header {
        justify-content: space-between;
    }


    .panel-header h2 {
        margin: 0;

        font-size: 17px;
    }


    /* ---------------------------------------------
       TABLA
    --------------------------------------------- */

    .tabla-container {
        width: 100%;
        max-width: 100%;

        overflow-x: auto;

        -webkit-overflow-scrolling: touch;

        scrollbar-width: thin;
    }


    .tabla-container table {
        width: 100%;

        /*
        Preferimos permitir scroll solo aquí en vez
        de deformar toda la página.
        */
        min-width: 760px;
    }


    .tabla-container th,
    .tabla-container td {
        padding: 8px;

        font-size: 11px;

        white-space: nowrap;
    }


    /* ---------------------------------------------
       ESTADOS
    --------------------------------------------- */

    .estado-porteria {
        padding: 5px 7px;

        font-size: 10px;
    }


    .estado-porteria .estado-punto {
        width: 6px;
        height: 6px;

        flex-basis: 6px;
    }


    /* ---------------------------------------------
       BOTONES TABLA
    --------------------------------------------- */

    .acciones-tabla {
        display: flex;

        flex-direction: row;

        align-items: center;

        gap: 4px;
    }


    .acciones-tabla .btn-ver,
    .acciones-tabla .btn-finalizar {
        width: auto !important;

        padding: 5px 7px;

        font-size: 10px;

        white-space: nowrap;
    }


    /* ---------------------------------------------
       MODAL CÁMARA
    --------------------------------------------- */

    .modal-camara-fondo {
        padding: 0;
    }


    .modal-camara {
        width: 100%;
        max-width: 100%;

        min-height: 100dvh;

        margin: 0;

        padding: 12px;

        border-radius: 0;
    }


    .modal-camara-cabecera {
        margin-bottom: 10px;
    }


    .modal-camara-cabecera h2 {
        font-size: 19px;
    }


    .modal-camara-cabecera p {
        font-size: 12px;
    }


    .visor-camara {
        width: 100%;

        max-height: 65dvh;

        aspect-ratio: 3 / 4;

        border-radius: 8px;
    }


    .visor-camara video,
    .visor-camara img {
        width: 100%;
        height: 100%;

        object-fit: contain;
    }


    .acciones-camara {
        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 7px;
    }


    .acciones-camara button {
        width: 100%;

        padding: 10px 6px;

        font-size: 12px;
    }


    /* ---------------------------------------------
       MODAL FINALIZAR
    --------------------------------------------- */

    .modal-fondo-porteria {
        padding: 8px;
    }


    .modal-finalizar {
        width: 100%;
        max-width: 100%;

        margin: 10px auto;

        padding: 14px;
    }


    .modal-finalizar-cabecera h2 {
        font-size: 19px;
    }


    .modal-finalizar-cabecera p {
        font-size: 12px;
    }


    .resumen-finalizacion {
        grid-template-columns: 1fr;

        gap: 7px;
    }


    .acciones-finalizacion {
        display: flex;

        flex-direction: column-reverse;

        gap: 7px;
    }


    .acciones-finalizacion button {
        width: 100%;
    }

}

/* =====================================================
   PROGRAMA RYD - VISTA MINIMA PORTERIA
===================================================== */

/*
El panel original sigue existiendo para no alterar
la lógica JavaScript de selección de programación.
Solo se oculta visualmente.
*/

#panelProgramacionRYD {
    display: none !important;
}


.indicador-programacion-porteria {
    box-sizing: border-box;

    width: fit-content;
    min-width: 190px;

    margin: 0 0 18px 0;
    padding: 9px 14px;

    align-items: center;
    gap: 8px;

    border: 1px solid #86efac;
    border-left: 4px solid #16a34a;
    border-radius: 8px;

    color: #166534;
    background: #f0fdf4;

    font-size: 13px;
}


.indicador-programacion-porteria.agendado {
    display: flex !important;
}


.indicador-programacion-porteria.no-agendado {
    display: flex !important;

    border-color: #fdba74;
    border-left-color: #ea580c;

    color: #9a3412;
    background: #fff7ed;
}


.indicador-programacion-punto {
    width: 8px;
    height: 8px;

    flex: 0 0 8px;

    border-radius: 50%;

    background: currentColor;
}