/* ===== Base ===== */

body {
    height: 100%;
    width: 100%;
    background: #e9e9e9;
    font-family: 'Arimo', Arial, sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #010b26;
    padding-top: 50px;
}

html, body {
    height: 100%;
}

h1, h2, h3, h4, h5, p {
    font-weight: 400;
}

.body-content {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

    .body-content > footer {
        margin-top: auto;
    }

.footer-custom {
    background: #1f2d3d;
    height: 45px;
    line-height: 45px;
    text-align: center;
    clear: both;
    padding: 0;
    margin: 0;
}

    .footer-custom,
    .footer-custom strong,
    .footer-custom span {
        color: #ffffff !important;
    }

.cabecera {
    padding: 1em 1em 0.5em 1em;
}

    .cabecera h2 {
        margin: 0 0 10px 0;
    }

/* ===== Botonera estándar de los editores (mismo aire plano que el cuadro de mando) ===== */

.btn-guardar {
    background: #1f2d3d;
    border-color: #1f2d3d;
    color: #ffffff;
}

    .btn-guardar:hover,
    .btn-guardar:focus {
        background: #2c3e50;
        border-color: #2c3e50;
        color: #ffffff;
    }

.btn-eliminar {
    background: #ffffff;
    border-color: #d9534f;
    color: #d9534f;
}

    .btn-eliminar:hover,
    .btn-eliminar:focus {
        background: #d9534f;
        border-color: #d9534f;
        color: #ffffff;
    }

.btn-cancelar {
    background: #ffffff;
    border-color: #cccccc;
    color: #555555;
}

    .btn-cancelar:hover,
    .btn-cancelar:focus {
        background: #eeeeee;
        color: #333333;
    }

.form-actions {
    margin-top: 16px;
    margin-bottom: 4px;
}

/* ===== Formulario de los editores: tarjeta blanca como los tiles ===== */

.form-wrap {
    margin: 0 auto;
    max-width: 900px;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px 24px;
    margin-bottom: 20px;
}

@media (min-width: 1400px) {
    .form-wrap {
        max-width: 800px;
    }
}

/* Bloque de campos suelto (cabecera de la remesa) con el mismo aire de tarjeta */
.form-card {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 14px 16px 10px 16px;
    margin-bottom: 16px;
}

.form-wrap .form-group {
    margin-bottom: 4px;
}

/* Etiquetas como los títulos de los tiles */
.form-wrap .control-label,
.form-card .control-label {
    color: #777;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding-top: 8px;
}

.form-wrap .form-control {
    padding-top: 4px;
    padding-bottom: 4px;
    height: 30px;
}

.form-wrap textarea.form-control {
    height: auto;
}

/* ===== Tablas y listas ===== */

.table > tbody > tr > td {
    vertical-align: middle;
}

table.dataTable td {
    font-size: 0.85em;
}

#IdDataTable {
    width: 100% !important;
}

    #IdDataTable thead tr.dt-filters th input {
        width: 100%;
        box-sizing: border-box;
    }

div.dt-buttons {
    margin-bottom: 6px;
}

    div.dt-buttons .btn {
        margin-right: 4px;
    }

/* ===== Marca ===== */

.navbar-brand.marca {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.logo-acceso {
    width: 100%;
    max-width: 380px;
    margin: 10px auto 4px auto;
}

/* Sello grande presidiendo el cuadro de mando */
.portada {
    text-align: center;
    padding-bottom: 8px;
}

.sello-portada {
    height: 170px;
    margin: 6px auto 2px auto;
}

.portada h2 {
    margin-top: 4px;
}

/* ===== Cuadro de mando ===== */

.tile {
    display: block;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 14px 16px;
    margin-bottom: 16px;
    color: #010b26;
}

    .tile:hover,
    .tile:focus {
        text-decoration: none;
        border-color: #1f2d3d;
        color: #010b26;
    }

.tile-titulo {
    color: #777;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 0.04em;
}

.tile-valor {
    font-size: 2.2em;
    font-weight: 600;
    line-height: 1.2;
}

.tile-extra {
    color: #777;
    font-size: 0.9em;
}

.panel-lista {
    max-height: 260px;
    overflow-y: auto;
}

.lista-compacta li {
    padding: 3px 0;
    border-bottom: 1px solid #f0f0f0;
}

    .lista-compacta li:last-child {
        border-bottom: none;
    }

.fila-anio {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

.fila-anio-etiqueta {
    width: 46px;
    color: #777;
    flex: none;
}

.barra-anio {
    display: inline-block;
    height: 14px;
    background: #31708f;
    border-radius: 0 4px 4px 0;
    min-width: 2px;
}

.fila-anio-valor {
    margin-left: 8px;
    color: #010b26;
}

/* ===== Varios ===== */

.swal2-popup {
    font-size: 1.1em !important;
}

li.select2-results__option:empty {
    display: none;
}

.oculto {
    display: none;
}
