* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    color: #222;
}
header {
    height: 90px;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #000000;
    border-bottom: 1px solid #dfe3e8;
}
.logo-header,
.logo-header2 {
    max-width: 170px;
    max-height: 60px;
    object-fit: contain;
}
.titulo-header {
    text-align: center;
}
.titulo-header h1 {
                    font-family: "Michroma", sans-serif;

    margin: 0;
    font-size: 23px;
    font-weight: 700;
    color: #ffffff;
}
.titulo-header span {
    font-size: 14px;
    color: #c8c9ca;
}

/* ENCABEZADO */

.encabezado-empresa {
    height: 90px;
    background: #000000;
    color: white;
    display: flex;
    align-items: center;
    padding: 10px 25px;
}

.logo-empresa img {
    width: 210px;
    max-height: 90px;
    object-fit: contain;
}

.datos-empresa {
    margin-left: 25px;
}

.datos-empresa h1 {
                font-family: "Michroma", sans-serif;

    margin: 0;
    font-size: 25px;
}

.datos-empresa p {
    margin: 5px 0 0;
    color: #ccc;
}


/* CONTENEDOR */

.contenedor {
    display: flex;
    gap: 20px;
    padding: 20px;
}


/* EXPLORADOR */

.panel-explorador {
    width: 32%;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.titulo-panel h2 {
    margin-top: 0;
}

.titulo-panel p {
    color: #666;
    font-size: 13px;
    word-break: break-all;
}

.explorador {
    margin-top: 20px;
}


/* ELEMENTOS DEL NAS */

.elemento {
    padding: 9px;
    border-bottom: 1px solid #eee;
}

.elemento a {
    color: #222;
    text-decoration: none;
}

.elemento a:hover {
    text-decoration: underline;
}

.icono {
    margin-right: 8px;
}

.volver {
    margin-bottom: 15px;
}

.volver a {
    color: #222;
    font-weight: bold;
}


/* =====================================================
   RESPALDOS
   ===================================================== */

.panel-respaldos {
    width: 68%;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.encabezado {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.encabezado h1 {
    margin: 0;
}

.encabezado p {
    margin: 5px 0 0;
    color: #666;
}


/* =====================================================
   BOTONES
   ===================================================== */

.botones-exportar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-exportar {
    padding: 9px 12px;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 13px;
}

.btn-pdf {
    background: #c62828;
}

.btn-excel {
    background: #287d3c;
}

.btn-historial {
    background: #444;
}


/* =====================================================
   TABLA
   ===================================================== */

.tabla-contenedor {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

th {
    background: #111;
    color: white;
    padding: 11px;
    font-size: 13px;
}

th small {
    display: block;
    margin-top: 5px;
    color: #ccc;
    font-weight: normal;
}

td {
    border-bottom: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

td:nth-child(1) {
    text-align: left;
}

.celda-nombre {
    min-width: 220px;
    text-align: left !important;
}

.nombre-contenido strong {
    display: block;
}

.nombre-contenido span {
    display: block;
    color: #777;
    font-size: 12px;
    margin-top: 4px;
}

.acciones-nombre {
    margin-top: 8px;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}


/* =====================================================
   EDITAR
   ===================================================== */

.form-editar-nombre {
    display: none;
}

.input-nombre {
    width: 100%;
    padding: 8px;
    border: 1px solid #aaa;
    border-radius: 4px;
}

.botones-editar {
    display: flex;
    gap: 5px;
    margin-top: 7px;
}

button {
    border: 0;
    cursor: pointer;
    border-radius: 4px;
    padding: 6px 9px;
}

.btn-editar {
    background: #333;
    color: white;
}

.btn-guardar {
    background: #287d3c;
    color: white;
}

.btn-cancelar {
    background: #777;
    color: white;
}


/* =====================================================
   ESTADOS
   ===================================================== */

.estado {
    font-size: 22px;
    font-weight: bold;
}

.realizado {
    color: #198754;
}

.pendiente {
    color: #c62828;
}

.no-aplica {
    color: #aaa;
}


/* =====================================================
   TOTAL
   ===================================================== */

.total-respaldos {
    font-size: 17px;
}

.total-respaldos small {
    color: #777;
}


/* =====================================================
   RESUMEN
   ===================================================== */

.fila-resumen {
    background: #eee;
}

.fila-resumen td {
    font-size: 14px;
}

.total-semana strong {
    font-size: 16px;
}

.total-semana small {
    color: #777;
}

.total-general {
    font-size: 18px;
}


/* =====================================================
   RESPONSIVO
   ===================================================== */

@media (max-width: 1000px) {

    .contenedor {
        flex-direction: column;
    }

    .panel-explorador,
    .panel-respaldos {
        width: 100%;
    }

    .encabezado {
        align-items: flex-start;
        flex-direction: column;
    }

}