/* =========================================================
   MSP - PERSONALIZACION PORTAL CLIENTE osTicket
   Archivo independiente para facilitar futuras actualizaciones
   ========================================================= */


/* ---------------------------------------------------------
   VARIABLES
   --------------------------------------------------------- */

:root {
    --msp-primary: #0066b3;
    --msp-primary-dark: #004a82;
    --msp-secondary: #0097a7;
    --msp-background: #f4f7fa;
    --msp-card: #ffffff;
    --msp-text: #263238;
    --msp-muted: #64748b;
    --msp-border: #e2e8f0;
}


/* ---------------------------------------------------------
   FONDO GENERAL
   --------------------------------------------------------- */

body {
    background: var(--msp-background);
    color: var(--msp-text);
}

#container {
    max-width: 1180px;
    margin: 30px auto;
    background: var(--msp-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,.08);
}


/* ---------------------------------------------------------
   HEADER
   --------------------------------------------------------- */

#header {
    min-height: 92px;
    padding: 15px 25px;
    box-sizing: border-box;
    border-bottom: 1px solid var(--msp-border);
    background: #ffffff;
}

#logo {
    display: flex;
    align-items: center;
    min-height: 62px;
}

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

#header .pull-right {
    padding-top: 8px;
}

#header .pull-right p {
    margin: 4px 0;
}

#header .pull-right a {
    color: var(--msp-primary);
    font-weight: 600;
    text-decoration: none;
}

#header .pull-right a:hover {
    color: var(--msp-primary-dark);
    text-decoration: underline;
}


/* ---------------------------------------------------------
   MENU
   --------------------------------------------------------- */

#nav {
    background: var(--msp-primary);
    margin: 0;
    padding: 0 18px;
    border: 0;
}

#nav li {
    margin: 0;
}

#nav li a {
    color: #ffffff !important;
    padding: 15px 20px;
    font-weight: 600;
    text-decoration: none;
}

#nav li a:hover,
#nav li a.active {
    background: var(--msp-primary-dark);
    color: #ffffff !important;
}


/* ---------------------------------------------------------
   CONTENIDO
   --------------------------------------------------------- */

#content {
    padding: 35px;
}

h1,
h2,
h3 {
    color: var(--msp-primary-dark);
}

a {
    color: var(--msp-primary);
}

a:hover {
    color: var(--msp-primary-dark);
}


/* ---------------------------------------------------------
   PAGINA PRINCIPAL
   --------------------------------------------------------- */

#landing_page {
    display: flex;
    gap: 35px;
}

#landing_page .main-content {
    flex: 1;
}

#landing_page .thread-body {
    background: #ffffff;
    padding: 25px;
    border: 1px solid var(--msp-border);
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0,0,0,.04);
}


/* ---------------------------------------------------------
   BUSCADOR
   --------------------------------------------------------- */

.search-form {
    margin-bottom: 25px;
}

.search-form form {
    display: flex;
    gap: 10px;
}

.search-form input.search {
    flex: 1;
    padding: 13px 15px;
    border-radius: 8px;
    border: 1px solid var(--msp-border);
    font-size: 15px;
}

.search-form button {
    border-radius: 8px !important;
    padding: 12px 25px !important;
}


/* ---------------------------------------------------------
   BOTONES
   --------------------------------------------------------- */

.btn,
.button,
input[type="submit"],
button {
    border-radius: 7px !important;
    transition: all .2s ease;
}

.btn:hover,
.button:hover,
input[type="submit"]:hover,
button:hover {
    transform: translateY(-1px);
}


/* ---------------------------------------------------------
   LOGIN CLIENTE
   --------------------------------------------------------- */

#clientLogin {
    margin-top: 25px;
}

#clientLogin .login-box {
    background: #ffffff;
    border: 1px solid var(--msp-border);
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 5px 20px rgba(0,0,0,.06);
}

#clientLogin input[type="text"],
#clientLogin input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 15px;
    margin-bottom: 12px;
    border: 1px solid var(--msp-border);
    border-radius: 7px;
    font-size: 15px;
}

#clientLogin input[type="text"]:focus,
#clientLogin input[type="password"]:focus {
    border-color: var(--msp-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,102,179,.10);
}

#clientLogin input[type="submit"] {
    background: var(--msp-primary);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    font-weight: 600;
    cursor: pointer;
}


/* ---------------------------------------------------------
   SIDEBAR
   --------------------------------------------------------- */

.sidebar,
#landing_page .sidebar {
    background: #ffffff;
    border: 1px solid var(--msp-border);
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 3px 12px rgba(0,0,0,.04);
}


/* ---------------------------------------------------------
   FOOTER
   --------------------------------------------------------- */

#footer {
    max-width: 1180px;
    margin: 0 auto 30px;
    padding: 20px;
    text-align: center;
    color: var(--msp-muted);
    font-size: 13px;
}

#footer a {
    color: var(--msp-primary);
}


/* ---------------------------------------------------------
   MENSAJES
   --------------------------------------------------------- */

.error_bar,
.warning_bar,
.notice_bar,
#msg_error,
#msg_warning,
#msg_notice {
    border-radius: 8px;
}


/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

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

    #container {
        margin: 0;
        border-radius: 0;
    }

    #header {
        padding: 15px;
    }

    #header .pull-right,
    #logo {
        float: none !important;
        text-align: center;
    }

    #logo {
        justify-content: center;
        margin-bottom: 12px;
    }

    #nav {
        padding: 0;
    }

    #nav li {
        float: none;
        display: block;
    }

    #nav li a {
        display: block;
    }

    #content {
        padding: 20px 15px;
    }

    #landing_page {
        display: block;
    }

    .search-form form {
        display: block;
    }

    .search-form input.search {
        width: 100%;
        margin-bottom: 10px;
        box-sizing: border-box;
    }

    .search-form button {
        width: 100%;
    }

    #clientLogin > div {
        display: block !important;
    }

    #clientLogin .login-box {
        margin-bottom: 20px;
    }
}


/* =========================================================
   MSP CUSTOM - AJUSTES VERSION 2
   Correccion de navegacion y pagina principal
   ========================================================= */


/* ---------------------------------------------------------
   CORRECCION MENU SUPERIOR
   --------------------------------------------------------- */

#nav {
    display: flex !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}

#nav li {
    display: block !important;
    float: none !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

#nav li a {
    display: block !important;
    float: none !important;
    width: auto !important;
    height: auto !important;
    min-height: 58px !important;
    box-sizing: border-box !important;

    padding: 18px 20px !important;
    margin: 0 !important;

    background-image: none !important;

    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;

    text-align: center !important;
    line-height: 22px !important;
}


/* Eliminar posibles elementos graficos heredados */

#nav li a:before,
#nav li a:after {
    background-image: none !important;
}


/* ---------------------------------------------------------
   MEJORAR PAGINA PRINCIPAL
   --------------------------------------------------------- */

#landing_page {
    display: flex !important;
    align-items: flex-start !important;
    gap: 30px !important;
}


/* SIDEBAR */

#landing_page > div:first-child {
    width: 230px !important;
    min-width: 230px !important;
    box-sizing: border-box !important;

    background: #ffffff !important;
    border: 1px solid var(--msp-border) !important;
    border-radius: 14px !important;

    padding: 20px !important;

    box-shadow: 0 5px 20px rgba(0,0,0,.05) !important;
}


/* ---------------------------------------------------------
   BOTONES DEL PORTAL
   --------------------------------------------------------- */

#landing_page > div:first-child a {
    display: block !important;

    width: 100% !important;
    box-sizing: border-box !important;

    margin: 0 0 16px 0 !important;
    padding: 18px 12px !important;

    border-radius: 10px !important;

    font-size: 17px !important;
    line-height: 24px !important;

    text-align: center !important;
    text-decoration: none !important;

    transition: transform .2s ease,
                box-shadow .2s ease !important;
}


/* Primer boton */

#landing_page > div:first-child a:first-child {
    background: var(--msp-primary) !important;
    color: #ffffff !important;
}


/* Segundo boton */

#landing_page > div:first-child a:nth-child(2) {
    background: #7ca800 !important;
    color: #ffffff !important;
}


/* Hover */

#landing_page > div:first-child a:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 7px 16px rgba(0,0,0,.15) !important;
}


/* ---------------------------------------------------------
   CONTENIDO PRINCIPAL
   --------------------------------------------------------- */

#landing_page .main-content {
    width: auto !important;
    flex: 1 !important;
    min-width: 0 !important;
}


/* ---------------------------------------------------------
   TITULO DE BIENVENIDA
   --------------------------------------------------------- */

#landing_page .thread-body h1 {
    font-size: 32px !important;
    line-height: 1.25 !important;
    margin-top: 0 !important;
    margin-bottom: 18px !important;
    color: var(--msp-primary-dark) !important;
}

#landing_page .thread-body {
    line-height: 1.7 !important;
    font-size: 16px !important;
}


/* ---------------------------------------------------------
   FOOTER
   --------------------------------------------------------- */

#footer {
    border-top: 1px solid var(--msp-border) !important;
    padding-top: 25px !important;
}


/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

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

    #nav {
        display: block !important;
    }

    #nav li {
        width: 100% !important;
    }

    #nav li a {
        white-space: normal !important;
        text-align: left !important;
        min-height: auto !important;
    }

    #landing_page {
        display: block !important;
    }

    #landing_page > div:first-child {
        width: 100% !important;
        min-width: 0 !important;

        margin-bottom: 25px !important;

        display: flex !important;
        gap: 15px !important;
    }

    #landing_page > div:first-child a {
        flex: 1 !important;
        margin-bottom: 0 !important;
    }
}


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

    #landing_page > div:first-child {
        display: block !important;
    }

    #landing_page > div:first-child a {
        margin-bottom: 12px !important;
    }

    #landing_page .thread-body h1 {
        font-size: 26px !important;
    }
}

