/* ==========================================================
   TECSU ADMIN
   Personalización Django Admin
   ========================================================== */


/* ==========================================================
   CABECERA PRINCIPAL
   ========================================================== */

   #header {
    background: #0d3b66;
    color: #ffffff;
    min-height: 76px;
    padding: 0 36px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    box-sizing: border-box;
}


/* ==========================================================
   MARCA TECSU
   ========================================================== */

#branding {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.tecsu-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tecsu-logo {
    height: 52px;
    width: auto;
    max-width: 90px;
    display: block;
    object-fit: contain;
}

.tecsu-brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tecsu-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: 0.2px;
}

.tecsu-subtitle {
    font-size: 11px;
    font-weight: 400;
    color: #dce8f2;
    margin-top: 5px;
    line-height: 1.2;
}


/* ==========================================================
   USUARIO / ENLACES SUPERIORES
   ========================================================== */

#user-tools {
    font-size: 11px;
    font-weight: 500;
    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    margin: 0;
}

#user-tools a:link,
#user-tools a:visited {
    color: #ffffff;
    text-decoration: none;
}

#user-tools a:hover {
    color: #ffd447;
    text-decoration: none;
}


/* ==========================================================
   CONTENIDO PRINCIPAL
   ========================================================== */

#content {
    padding-top: 20px;
}

#content h1 {
    color: #0d3b66;
    font-weight: 600;
    font-size: 22px;
}


/* ==========================================================
   CABECERA DE LOS MÓDULOS
   ========================================================== */

.module caption,
.inline-group h2 {
    background: #39789a;
    color: #ffffff;
    font-weight: 600;
}

.module caption {
    padding: 9px 10px;
}

.module caption a:link,
.module caption a:visited {
    color: #ffffff;
}

.module caption a:hover {
    color: #ffd447;
}


/* ==========================================================
   TABLAS DE MÓDULOS
   ========================================================== */

.module table {
    width: 100%;
}

.module td,
.module th {
    vertical-align: middle;
}


/* ==========================================================
   BOTONES
   ========================================================== */

.button,
input[type=submit],
input[type=button],
.submit-row input,
a.button {
    background: #39789a;
    color: #ffffff;

    border: none;
    border-radius: 5px;

    transition:
        background-color 0.15s ease-in-out,
        box-shadow 0.15s ease-in-out;
}

.button:hover,
input[type=submit]:hover,
input[type=button]:hover,
.submit-row input:hover,
a.button:hover {
    background: #0d3b66;
    color: #ffffff;
}


/* ----------------------------------------------------------
   BOTÓN PRINCIPAL
   ---------------------------------------------------------- */

.button.default,
input[type=submit].default,
.submit-row input.default {
    background: #0d3b66;
    color: #ffffff;
}

.button.default:hover,
input[type=submit].default:hover,
.submit-row input.default:hover {
    background: #082a49;
}


/* ----------------------------------------------------------
   BOTÓN ELIMINAR
   ---------------------------------------------------------- */

.deletelink {
    border-radius: 5px;
}


/* ==========================================================
   LINKS GENERALES
   ========================================================== */

a:link,
a:visited {
    color: #246b91;
}

a:hover {
    color: #0d3b66;
}


/* ==========================================================
   MIGAS DE PAN
   ========================================================== */

div.breadcrumbs {
    background: #39789a;
    color: #ffffff;

    padding: 10px 36px;
}

div.breadcrumbs a:link,
div.breadcrumbs a:visited {
    color: #ffffff;
}

div.breadcrumbs a:hover {
    color: #ffd447;
}


/* ==========================================================
   FORMULARIOS
   ========================================================== */

input[type=text],
input[type=password],
input[type=email],
input[type=url],
input[type=number],
input[type=tel],
input[type=date],
input[type=time],
textarea,
select {
    border-radius: 5px;
    border: 1px solid #c9d2d9;

    transition:
        border-color 0.15s ease-in-out,
        box-shadow 0.15s ease-in-out;
}


/* ----------------------------------------------------------
   FOCO DE CAMPOS
   ---------------------------------------------------------- */

input[type=text]:focus,
input[type=password]:focus,
input[type=email]:focus,
input[type=url]:focus,
input[type=number]:focus,
input[type=tel]:focus,
input[type=date]:focus,
input[type=time]:focus,
textarea:focus,
select:focus {
    border-color: #39789a;
    outline: none;
    box-shadow: 0 0 0 2px rgba(57, 120, 154, 0.15);
}


/* ==========================================================
   TABLAS DE RESULTADOS
   ========================================================== */

#result_list {
    border-radius: 4px;
    overflow: hidden;
}

#result_list thead th {
    background: #edf4f8;
    color: #0d3b66;
    font-weight: 600;
}

#result_list thead th a:link,
#result_list thead th a:visited {
    color: #0d3b66;
}

#result_list tbody tr {
    transition: background-color 0.12s ease-in-out;
}

#result_list tbody tr:hover {
    background: #f3f8fb;
}


/* ==========================================================
   SELECTORES / FILTROS
   ========================================================== */

#changelist-filter h2 {
    background: #39789a;
    color: #ffffff;
}

#changelist-filter h3 {
    color: #0d3b66;
}


/* ==========================================================
   ACCIONES RECIENTES
   ========================================================== */

#content-related {
    border-radius: 5px;
}

#content-related .module h2 {
    color: #0d3b66;
}


/* ==========================================================
   PAGINACIÓN
   ========================================================== */

.paginator a:link,
.paginator a:visited {
    color: #246b91;
}

.paginator a:hover {
    color: #0d3b66;
}


/* ==========================================================
   MENSAJES DJANGO
   ========================================================== */

ul.messagelist {
    margin-top: 10px;
}

ul.messagelist li {
    border-radius: 4px;
}


/* ==========================================================
   LOGIN TECSU
   ========================================================== */

.login {
    background: #f4f6f8;
}

.login #container {
    max-width: 430px;
    width: 100%;
}


/* ----------------------------------------------------------
   CABECERA DEL LOGIN
   ---------------------------------------------------------- */

.login #header {
    min-height: 105px;

    padding: 15px 25px;

    justify-content: center;

    border-radius: 6px 6px 0 0;
}

.login #branding {
    width: 100%;
    justify-content: center;
}

.login .tecsu-brand {
    justify-content: center;
}

.login .tecsu-logo {
    height: 58px;
    max-width: 100px;
}

.login .tecsu-title {
    font-size: 21px;
}

.login .tecsu-subtitle {
    font-size: 11px;
}


/* ----------------------------------------------------------
   CUERPO DEL LOGIN
   ---------------------------------------------------------- */

.login #content {
    padding: 30px 32px;
}

.login #content-main {
    width: 100%;
}


/* ----------------------------------------------------------
   CAMPOS LOGIN
   ---------------------------------------------------------- */

.login .form-row {
    padding: 8px 0;
}

.login .form-row label {
    font-weight: 500;
    color: #333333;
}

.login .form-row input {
    width: 100%;
    box-sizing: border-box;
}


/* ----------------------------------------------------------
   BOTÓN LOGIN
   ---------------------------------------------------------- */

.login .submit-row {
    padding: 18px 0 0;
    text-align: center;
}

.login .submit-row input {
    background: #39789a;
    padding: 10px 22px;
    font-weight: 500;
}

.login .submit-row input:hover {
    background: #0d3b66;
}


/* ==========================================================
   CHECKBOX
   ========================================================== */

input[type=checkbox] {
    accent-color: #39789a;
}


/* ==========================================================
   SCROLL / ESPACIADO
   ========================================================== */

.object-tools {
    margin-top: 0;
}

.submit-row {
    border-radius: 5px;
}


/* ==========================================================
   RESPONSIVE - TABLET
   ========================================================== */

@media (max-width: 1024px) {

    #header {
        padding-left: 20px;
        padding-right: 20px;
    }

    div.breadcrumbs {
        padding-left: 20px;
        padding-right: 20px;
    }

    .tecsu-logo {
        height: 46px;
    }

    .tecsu-title {
        font-size: 18px;
    }

    .tecsu-subtitle {
        font-size: 10px;
    }
}


/* ==========================================================
   RESPONSIVE - CELULAR
   ========================================================== */

@media (max-width: 767px) {

    #header {
        min-height: auto;

        padding: 12px 15px;

        flex-direction: column;
        align-items: flex-start;

        gap: 10px;
    }

    #branding {
        width: 100%;
    }

    .tecsu-brand {
        gap: 11px;
    }

    .tecsu-logo {
        height: 42px;
        max-width: 75px;
    }

    .tecsu-title {
        font-size: 17px;
    }

    .tecsu-subtitle {
        font-size: 9px;
        margin-top: 3px;
    }


    /* Usuario */

    #user-tools {
        width: 100%;

        justify-content: flex-start;

        font-size: 10px;

        flex-wrap: wrap;
    }


    /* Breadcrumbs */

    div.breadcrumbs {
        padding: 9px 15px;
    }


    /* Título */

    #content h1 {
        font-size: 19px;
    }


    /* Login */

    .login #header {
        min-height: 95px;

        align-items: center;
        justify-content: center;
    }

    .login #branding {
        justify-content: center;
    }

    .login .tecsu-brand {
        justify-content: center;
    }

    .login .tecsu-logo {
        height: 50px;
    }

    .login .tecsu-title {
        font-size: 18px;
    }

    .login .tecsu-subtitle {
        font-size: 9px;
    }

    .login #content {
        padding: 25px 20px;
    }
}


/* ==========================================================
   PANTALLAS MUY PEQUEÑAS
   ========================================================== */

@media (max-width: 480px) {

    .tecsu-logo {
        height: 38px;
    }

    .tecsu-title {
        font-size: 16px;
    }

    .tecsu-subtitle {
        display: none;
    }

    .login .tecsu-subtitle {
        display: block;
    }
}