/* =========================================================
   Soporte - Personalización visual osTicket
   Portal de clientes
   ========================================================= */


/* ---------------------------------------------------------
   1. FONDO GENERAL
   --------------------------------------------------------- */

html,
body {
    background: #F4F6F8;
    color: #1F2937;
    font-family: Arial, Helvetica, sans-serif;
}


/* ---------------------------------------------------------
   2. CONTENEDOR PRINCIPAL
   --------------------------------------------------------- */

#container {
    width: 1100px;
    max-width: calc(100% - 40px);
    margin: 30px auto;
    background: #FFFFFF;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}


/* ---------------------------------------------------------
   3. CABECERA
   --------------------------------------------------------- */

#header {
    height: 90px;
    padding: 0 30px;
    background: #FFFFFF;
    border: 0;
}

#header #logo {
    padding-top: 12px;
}

#header #logo img {
    max-height: 62px;
    max-width: 390px;
    width: auto;
    height: auto;
}


/* Enlace iniciar sesión / usuario */

#header p {
    color: #6B7280;
}

#header a {
    color: #005CB9;
    text-decoration: none;
}

#header a:hover {
    color: #004494;
    text-decoration: underline;
}


/* ---------------------------------------------------------
   4. MENÚ SUPERIOR
   --------------------------------------------------------- */

#nav {
    margin: 0;
    padding: 0 25px;
    min-height: 50px;
    background: #FFFFFF;
    border-top: 1px solid #E5E7EB;
    border-bottom: 1px solid #E5E7EB;
    box-shadow: none;
}

#nav li {
    margin: 0;
}

#nav li a {
    min-height: 50px;
    line-height: 50px;
    padding: 0 18px;
    color: #1F2937;
    font-weight: 600;
    background: transparent;
    border: 0;
    text-shadow: none;
    border-radius: 0;
}

#nav li a:hover {
    color: #005CB9;
    background: #EEF6FF;
}

#nav li a.active {
    color: #005CB9;
    background: #EEF6FF;
    border-bottom: 3px solid #005CB9;
}


/* ---------------------------------------------------------
   5. ÁREA DE CONTENIDO
   --------------------------------------------------------- */

#content {
    padding: 35px;
    background: #FFFFFF;
    min-height: 500px;
}

#content h1,
#content h2,
#content h3 {
    color: #005CB9;
    font-weight: 600;
}

#content h1 {
    font-size: 30px;
    margin-bottom: 25px;
}

#content h2 {
    font-size: 23px;
}

#content h3 {
    font-size: 18px;
}


/* ---------------------------------------------------------
   6. TEXTO Y ENLACES
   --------------------------------------------------------- */

a {
    color: #005CB9;
}

a:hover {
    color: #004494;
}

p,
td,
th,
label,
div {
    line-height: 1.5;
}


/* ---------------------------------------------------------
   7. FORMULARIOS
   --------------------------------------------------------- */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
select,
textarea {
    border: 1px solid #D1D5DB;
    border-radius: 7px;
    padding: 9px 11px;
    background: #FFFFFF;
    color: #1F2937;
    box-shadow: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    border-color: #005CB9;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 92, 185, 0.12);
}


/* ---------------------------------------------------------
   8. BOTONES
   --------------------------------------------------------- */

button,
input[type="submit"],
input[type="button"],
.button,
.blue.button,
.green.button {
    background: #005CB9;
    color: #FFFFFF;
    border: 1px solid #005CB9;
    border-radius: 7px;
    box-shadow: none;
    text-shadow: none;
    padding: 9px 18px;
    font-weight: 600;
    cursor: pointer;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.button:hover,
.blue.button:hover,
.green.button:hover {
    background: #004494;
    border-color: #004494;
    color: #FFFFFF;
}


/* ---------------------------------------------------------
   9. TABLAS
   --------------------------------------------------------- */

table {
    border-collapse: collapse;
}

table.list {
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    overflow: hidden;
}

table.list thead th,
table.list th {
    background: #F3F6F9;
    color: #1F2937;
    border-bottom: 1px solid #DDE3EA;
}

table.list td {
    border-bottom: 1px solid #EEF1F4;
}

table.list tr:hover td {
    background: #F8FBFF;
}


/* ---------------------------------------------------------
   10. CAJAS / PANELES / TARJETAS
   --------------------------------------------------------- */

.dialog,
.message,
.warning,
.error,
.notice {
    border-radius: 8px;
}

#ticketThread table,
.thread-entry {
    border-radius: 8px;
}


/* ---------------------------------------------------------
   11. PORTAL - BLOQUES DESTACADOS
   --------------------------------------------------------- */

.front-page-button,
.action-button,
.ticket-options {
    border-radius: 10px;
}


/* ---------------------------------------------------------
   12. MENSAJES DE INFORMACIÓN
   --------------------------------------------------------- */

.info-banner {
    padding: 15px 18px;
    margin: 20px 0;
    background: #EEF6FF;
    border-left: 4px solid #005CB9;
    border-radius: 7px;
    color: #1F2937;
}


/* ---------------------------------------------------------
   13. LOGIN CLIENTE
   --------------------------------------------------------- */

#login {
    background: #FFFFFF;
    border-radius: 12px;
}

#login input[type="text"],
#login input[type="password"],
#login input[type="email"] {
    width: 100%;
    box-sizing: border-box;
}


/* ---------------------------------------------------------
   14. PIE DE PÁGINA
   --------------------------------------------------------- */

#footer {
    padding: 20px 30px;
    background: #004494;
    color: #FFFFFF;
    border: 0;
    text-align: center;
}

#footer a {
    color: #FFFFFF;
}

#footer a:hover {
    color: #DCEEFF;
}


/* ---------------------------------------------------------
   15. SEPARADORES
   --------------------------------------------------------- */

hr {
    border: 0;
    border-top: 1px solid #E5E7EB;
}


/* ---------------------------------------------------------
   16. ADAPTACIÓN A PANTALLAS PEQUEÑAS
   --------------------------------------------------------- */

@media screen and (max-width: 900px) {

    #container {
        width: auto;
        max-width: calc(100% - 20px);
        margin: 10px auto;
        border-radius: 8px;
    }

    #header {
        height: auto;
        min-height: 80px;
        padding: 10px 20px;
    }

    #header #logo img {
        max-width: 90%;
        max-height: 58px;
    }

    #nav {
        padding: 0 10px;
    }

    #nav li a {
        padding: 0 10px;
        font-size: 14px;
    }

    #content {
        padding: 22px;
    }

    #content h1 {
        font-size: 26px;
    }
}


/* ---------------------------------------------------------
   17. TELÉFONOS
   --------------------------------------------------------- */

@media screen and (max-width: 600px) {

    #container {
        max-width: 100%;
        margin: 0;
        border-radius: 0;
    }

    #header {
        text-align: center;
    }

    #nav {
        min-height: auto;
    }

    #nav li {
        display: block;
        width: 100%;
    }

    #nav li a {
        display: block;
        width: 100%;
        box-sizing: border-box;
        line-height: 42px;
        min-height: 42px;
    }

    #content {
        padding: 18px;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    select,
    textarea {
        max-width: 100%;
        box-sizing: border-box;
    }
}
/* =========================================================
   CORRECCIÓN MENÚ
   ========================================================= */

#nav li a.home,
#nav li a.new,
#nav li a.status,
#nav li a.tickets,
#nav li a.kb {
    background-image: none !important;
    background-repeat: no-repeat !important;
    background-position: initial !important;
    padding-left: 18px !important;
}

/* Evitar cualquier sprite/fondo antiguo en los enlaces */
#nav li a {
    background-image: none !important;
}
#footer {
    background: #004494;
    color: #FFFFFF;
    padding: 22px 30px;
    text-align: center;
    border: 0;
}

#footer .pp-footer {
    font-size: 14px;
    line-height: 1.7;
}

#footer .pp-footer strong {
    font-size: 17px;
}
form input.btn[type="submit"] {
    background: #005CB9 !important;
    background-image: none !important;
    color: #FFFFFF !important;
    border: 1px solid #005CB9 !important;
    border-radius: 7px !important;
    padding: 10px 22px !important;
    font-weight: 600 !important;
    text-shadow: none !important;
    box-shadow: none !important;
    cursor: pointer;
    min-width: 140px;
}

#login input.btn[type="submit"]:hover,
#login input[type="submit"]:hover,
form input.btn[type="submit"]:hover {
    background: #004494 !important;
    border-color: #004494 !important;
    color: #FFFFFF !important;
}