/*
 * Crowe Helpdesk - Visual Theme
 * Solo presentación. No modifica funcionalidad de osTicket.
 */

:root {
    --crowe-indigo: #011E41;
    --crowe-indigo-light: #063466;
    --crowe-amber: #F5A800;
    --crowe-amber-hover: #FFB719;
    --crowe-bg: #F5F6F8;
    --crowe-border: #E3E6EA;
    --crowe-text: #243447;
    --crowe-muted: #667085;
    --crowe-white: #FFFFFF;
}

/* BASE */

html {
    background: var(--crowe-bg);
}

body {
    margin: 0;
    padding: 0;
    background: var(--crowe-bg);
    color: var(--crowe-text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.55;
}

body,
input,
select,
textarea,
button {
    font-family: Arial, Helvetica, sans-serif;
}

a,
.link {
    color: var(--crowe-indigo);
}

a:hover,
.link:hover {
    color: var(--crowe-indigo-light);
    border-bottom: none;
}

/* CONTENEDOR PRINCIPAL */

#container {
    width: min(1180px, calc(100% - 48px));
    min-height: 600px;
    margin: 34px auto 0;
    padding: 0;
    background: var(--crowe-white);
    border: 1px solid var(--crowe-border);
    border-radius: 8px;
    box-shadow: 0 12px 35px rgba(1, 30, 65, .08);
    overflow: hidden;
}

/* HEADER */

#header {
    height: 94px;
    padding: 0 32px;
    margin: 0;
    background: var(--crowe-white);
    border: 0;
    position: relative;
}

#logo {
    height: 94px;
    width: auto;
    display: flex !important;
    align-items: center;
    float: left;
}

#logo:hover {
    border: 0;
}

#logo .valign-helper {
    display: none;
}

#logo img {
    display: block;
    width: auto;
    height: 52px;
    max-width: 260px;
    object-fit: contain;
}

#header .pull-right {
    padding-top: 25px;
    color: var(--crowe-muted);
    font-size: 13px;
}

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

#header .pull-right a {
    font-weight: 600;
    color: var(--crowe-indigo);
}

/* NAVEGACION */

#nav {
    box-sizing: border-box;
    width: 100%;
    min-height: 52px;
    margin: 0 !important;
    padding: 0 24px !important;
    background: var(--crowe-indigo);
    border: 0;
    display: flex;
    align-items: stretch;
    list-style: none;
}

#nav li {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}

#nav li a {
    box-sizing: border-box;
    min-height: 52px;
    padding: 15px 18px 13px 18px !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: rgba(255,255,255,.86) !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 22px;
    text-shadow: none !important;
    border-radius: 0 !important;
    display: block;
}

#nav li a:hover {
    color: white !important;
    background: rgba(255,255,255,.08) !important;
}

#nav li a.active {
    color: var(--crowe-indigo) !important;
    background: var(--crowe-amber) !important;
}

/* CONTENIDO */

#content {
    box-sizing: border-box;
    min-height: 440px;
    padding: 48px 42px 55px;
    background: white;
    border: 0;
}

#content h1 {
    margin: 0 0 14px;
    color: var(--crowe-indigo);
    font-size: 30px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -.5px;
}

#content h2,
#content h3 {
    color: var(--crowe-indigo);
}

#content p {
    line-height: 1.7;
}

/* PORTADA / SIDEBAR */

#content .sidebar {
    margin-left: 35px;
}

#content .sidebar a {
    border-bottom: 0;
}

/* BOTONES OSTICKET */

.button,
.button:visited,
input[type="submit"],
input[type="button"],
button {
    box-sizing: border-box;
    min-height: 42px;
    padding: 10px 20px;
    background: var(--crowe-amber);
    border: 1px solid var(--crowe-amber);
    border-radius: 4px;
    box-shadow: none;
    color: var(--crowe-indigo);
    font-size: 14px;
    font-weight: 700;
    text-shadow: none;
    transition: background .15s ease, transform .15s ease;
}

.button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
button:hover {
    background: var(--crowe-amber-hover);
    border-color: var(--crowe-amber-hover);
    color: var(--crowe-indigo);
    transform: translateY(-1px);
}

/* CAMPOS */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
select,
textarea {
    box-sizing: border-box;
    border: 1px solid #C9CED6;
    border-radius: 4px;
    background: white;
    padding: 9px 10px;
    color: var(--crowe-text);
    outline: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    border-color: var(--crowe-amber);
    box-shadow: 0 0 0 3px rgba(245,168,0,.14);
}

/* TABLAS */

table {
    max-width: 100%;
}

th {
    color: var(--crowe-indigo);
    font-weight: 700;
}

/* MENSAJES */

#msg_notice,
.notice_bar {
    box-sizing: border-box;
    height: auto;
    min-height: 42px;
    padding: 11px 15px 11px 42px;
    line-height: 20px;
    border: 1px solid #B7DFC2;
    border-radius: 4px;
}

#msg_warning,
.warning_bar,
.warning-banner {
    box-sizing: border-box;
    height: auto;
    min-height: 42px;
    padding: 11px 15px 11px 42px;
    line-height: 20px;
    border-radius: 4px;
}

#msg_error,
.error_bar {
    box-sizing: border-box;
    height: auto;
    min-height: 42px;
    padding: 11px 15px 11px 42px;
    line-height: 20px;
    border-radius: 4px;
}

/* FOOTER */

#footer {
    width: min(1180px, calc(100% - 48px));
    margin: 20px auto 45px;
    padding: 20px 0;
    color: var(--crowe-muted);
    text-align: center;
    font-size: 12px;
    border: 0;
}

#footer p {
    margin: 0 0 5px;
}

#poweredBy {
    opacity: .5;
}

/* LOADING */

#loading {
    border: 0;
    border-top: 4px solid var(--crowe-amber);
    border-radius: 6px;
    box-shadow: 0 15px 40px rgba(0,0,0,.2);
}

/* RESPONSIVE */

@media (max-width: 850px) {

    #container {
        width: calc(100% - 24px);
        margin-top: 12px;
        border-radius: 5px;
    }

    #header {
        height: auto;
        min-height: 90px;
        padding: 15px 20px;
    }

    #logo {
        height: 60px;
    }

    #logo img {
        height: 42px;
        max-width: 210px;
    }

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

    #nav {
        padding: 0 !important;
        flex-wrap: wrap;
    }

    #nav li {
        flex: 1 1 auto;
    }

    #nav li a {
        width: 100%;
        text-align: center;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    #content {
        padding: 30px 22px 40px;
    }

    #content .sidebar {
        margin-left: 0;
    }

    #footer {
        width: calc(100% - 30px);
    }
}

@media (max-width: 520px) {

    #header .pull-right {
        float: none;
        clear: both;
        padding: 0 0 12px;
    }

    #nav {
        display: block;
    }

    #nav li {
        display: block;
    }

    #nav li a {
        min-height: 44px;
        padding: 11px 16px !important;
        text-align: left;
    }

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