/* Overlay */
#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 1000;
    -webkit-transform: translate3d(0,0,0);
}

#loading {
    border:1px solid #2a67ac;
    padding: 10px 10px 10px 60px;
    width: 300px;
    height: 100px;
    background: rgb( 255, 255, 255) url('../images/FhHRx-Spinner.gif') 10px 50% no-repeat;
    position: fixed;
    display: none;
    z-index: 3000;
}

#loading h4 { margin: 3px 0 0 0; padding: 0; color: #d80; }

.pull-right {
    float: right;
}

.non-local-image {
    display: inline-block;
    border: 3px dashed #eee;
    border-radius: 5px;
}

.non-local-image:after {
    background: url(../logo.php) center center no-repeat;
    background-size: cover;
    content: "";
    z-index: -1;
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0.3;
}

div.section-break {
    margin-top: 1em;
    margin-bottom: 0.5em;
    padding-top: 0.8em !important;
    border-top: 1px solid #ccc;
}

input.dp {
    width: 10em;
}

/* Custom css for datepicker */
.ui-datepicker-trigger {
    display:inline-block;
    border:0;
    padding:0;
    margin-left:2px;
    position:relative;
    top:-2px;
    width:16px;
    height:16px;
    background:inherit;
}

.draft-saved {
    background-color: black;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px 6px;
    border-radius: 3px;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
    line-height: 14px;
    position: absolute;
    top: 3em;
    right: 0.5em;
}

.delete-draft:hover {
    background-color: #fc9f41 !important;
}

.notice_bar { margin: 0; padding: 5px 10px 5px 36px; height: 16px; line-height: 16px; border: 1px solid #0a0; background: url('../assets/default/images/icons/ok.png') 10px 50% no-repeat #e0ffe0; }

.warning_bar { margin: 0; padding: 5px 10px 5px 36px; height: 16px; line-height: 16px; border: 1px solid #f26522; background: url('../assets/default/images/icons/alert.png') 10px 50% no-repeat #ffffdd; }

.error_bar { margin: 0; padding: 5px 10px 5px 36px; height: 16px; line-height: 16px; border: 1px solid #a00; background: url('../assets/default/images/icons/error.png') 10px 50% no-repeat #fff0f0; }



/* ============================================
   LOGIN PAGE - Modern Design
   ============================================ */
/* ============================================
   LOGIN PAGE - Modern Design
   ============================================ */

.login-container {
    display: flex;
    min-height: 600px;
    max-width: 1200px;
    margin: 40px auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    background: white;
}

/* Left Panel - Dark Background */
.login-left-panel {
    flex: 1;
    /* background: linear-gradient(135deg, rgba(44, 95, 126, 0.3) 0%, rgba(61, 109, 138, 0.3) 100%); */
    color: white;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.login-welcome {
    /* margin-top: auto; */
    margin-bottom: 0px;
}

.login-welcome h1 {
    font-size: 48px;
    font-weight: 300;
    margin: 0 0 20px 0;
    color: white;
}

.login-welcome p {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.9;
}

.login-chart {
    margin-bottom: 40px;
}

.chart-placeholder {
    width: 100%;
    height: 200px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 200"><rect x="30" y="120" width="35" height="70" fill="%23ffffff" opacity="0.25" rx="3"/><rect x="85" y="100" width="35" height="90" fill="%23ffffff" opacity="0.3" rx="3"/><rect x="140" y="60" width="35" height="130" fill="%2317a2b8" opacity="0.8" rx="3"/><rect x="195" y="80" width="35" height="110" fill="%23ffffff" opacity="0.3" rx="3"/><rect x="250" y="40" width="35" height="150" fill="%2317a2b8" opacity="0.9" rx="3"/><rect x="305" y="70" width="35" height="120" fill="%23ffffff" opacity="0.3" rx="3"/></svg>') center bottom no-repeat;
    background-size: contain;
}

/* Right Panel - White Background with Form */
.login-right-panel {
    flex: 1;
    padding: 60px 50px;
    background: white;
    display: flex;
    flex-direction: column;
}

.login-header {
    margin-bottom: 30px;
}

.login-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 0 0 5px 0;
}

.login-header .subtitle {
    font-size: 14px;
    color: #666;
    margin: 0 0 15px 0;
}

.login-header .instructions {
    font-size: 13px;
    color: #888;
    line-height: 1.5;
}

/* Form Styling - QUITAR CANDADO DEL FONDO */
#clientLogin {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    position: relative;
    display: block;
    margin: 0;
    width: 100%;
}

/* CORREGIR ICONOS - Sin superposición */
.form-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
    z-index: 1;
    pointer-events: none;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100% !important;
    padding: 14px 15px 14px 45px !important;
    border: 1px solid #ddd !important;
    border-radius: 5px !important;
    font-size: 14px !important;
    transition: all 0.3s ease;
    box-sizing: border-box !important;
    background: #fff !important;
    display: block !important;
}

.form-group input:focus {
    outline: none !important;
    border-color: #17a2b8 !important;
    box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.1) !important;
}

/* Placeholder styling */
.form-group input::placeholder {
    color: #999;
    opacity: 1;
}

.error-message {
    padding: 12px 15px;
    background: #fff0f0;
    border: 1px solid #ffcdd2;
    border-radius: 5px;
    color: #c62828;
    margin-bottom: 20px;
    font-size: 13px;
}

/* Button */
.btn-login {
    width: 100%;
    padding: 14px 20px;
    background: #17a2b8;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
}

.btn-login:hover {
    background: #138496;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
}

.form-actions {
    margin: 10px 0 20px 0;
}

/* Links */
.login-links {
    text-align: center;
    margin: 15px 0;
}

.forgot-password {
    color: #17a2b8;
    text-decoration: none;
    font-size: 13px;
}

.forgot-password:hover {
    text-decoration: underline;
}

.register-link,
.agent-link {
    text-align: center;
    margin: 15px 0;
    font-size: 13px;
    color: #666;
}

.register-link a,
.agent-link a {
    color: #17a2b8;
    text-decoration: none;
}

.register-link a:hover,
.agent-link a:hover {
    text-decoration: underline;
}

/* Sidebar Items */
.login-sidebar {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e0e0e0;
}

.sidebar-item {
    margin: 12px 0;
    padding-left: 30px;
    position: relative;
}

.sidebar-item i {
    position: absolute;
    left: 0;
    top: 2px;
    color: #17a2b8;
}

.sidebar-item a {
    color: #555;
    text-decoration: none;
    font-size: 14px;
}

.sidebar-item a:hover {
    color: #17a2b8;
}

/* Footer */
.login-footer {
    text-align: center;
    margin: 20px auto;
    max-width: 1200px;
    color: #666;
    font-size: 13px;
}

.login-footer a {
    color: #17a2b8;
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 968px) {
    .login-container {
        flex-direction: column;
    }
    
    .login-left-panel {
        min-height: 300px;
    }
    
    .login-right-panel {
        padding: 40px 30px;
    }
}

@media (max-width: 576px) {
    .login-right-panel {
        padding: 30px 20px;
    }
    
    .login-header h2 {
        font-size: 24px;
    }
    
    .login-welcome h1 {
        font-size: 36px;
    }
}


/* ============================================
   OCULTAR HEADER Y NAV EN LOGIN
   ============================================ */

/* Ocultar header en página de login */
body:has(.login-container) #header,
body:has(.login-container) #nav,
body:has(.login-container) hr {
    display: none !important;
}

/* Ajustar contenedor para pantalla completa */
body:has(.login-container) #container {
    width: 100%;
    max-width: none;
    padding: 0;
}

body:has(.login-container) #content {
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
}

/* Posicionar login en centro de pantalla */
body:has(.login-container) {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

body:has(.login-container) #container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

body:has(.login-container) #content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Ajustar márgenes del login container */
body:has(.login-container) .login-container {
    margin: 20px auto;
}

/* Logo en Login */
.login-logo {
    margin-bottom: 15px;
    text-align: center;
}

.login-logo img {
    max-height: 100px;
    max-width: 400px;
    height: auto;
    width: auto;
    display: block;
    margin: 0 auto;
}

/* Ajustar subtitle debajo del logo */
.login-header .subtitle {
    font-size: 13px;
    color: #999;
    margin: 10px 0 20px 0;
    font-weight: normal;
}

/**************/

/* Ajustar footer debajo del login container */
body:has(.login-container) #content {
    display: block !important;
    width: 100%;
}




/* Centrar el login container */
.login-container {
    margin: 40px auto !important;
}

/* Footer debajo del login */
.login-footer {
    text-align: center;
    margin: 30px auto 40px auto;
    max-width: 1200px;
    color: #666;
    font-size: 13px;
    padding: 0 20px;
    clear: both;
}

.login-footer p {
    margin: 0;
    line-height: 1.6;
}

.login-footer a {
    color: #17a2b8;
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* Imagen de fondo en login left panel */
.login-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* opacity: 0.15; */
    z-index: 0;
}

.login-background-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Asegurar que el contenido esté sobre la imagen */
.login-left-panel {
    position: relative;
    overflow: hidden;
}

.login-welcome,
.login-chart {
    position: relative;
    z-index: 1;
}

/* Language Selector en Login */
.login-language-selector {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 10 !important;
}

.login-language-selector .flag {
    width: 40px !important;
    height: 30px !important;
    background: #f5f5f5 !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    color: #333 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    margin: 0 3px !important;
    vertical-align: top !important;
}

.login-language-selector .flag:hover {
    background: #17a2b8 !important;
    color: white !important;
    border-color: #17a2b8 !important;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(23, 162, 184, 0.3);
}

/* Mostrar texto ES para español */
.login-language-selector .flag-es:before,
.login-language-selector .flag-mx:before {
    content: "ES";
}

/* Mostrar texto EN para inglés */
.login-language-selector .flag-us:before,
.login-language-selector .flag-gb:before {
    content: "EN";
}

/* Ocultar el &nbsp; del HTML */
.login-language-selector .flag {
    font-size: 0 !important;
}

.login-language-selector .flag:before {
    font-size: 12px !important;
}

/* Asegurar que login-right-panel tenga position relative */
.login-right-panel {
    position: relative !important;
}

/* Estilo para idioma activo */
.login-language-selector .flag.active {
    background: #17a2b8 !important;
    color: white !important;
    border-color: #17a2b8 !important;
    box-shadow: 0 2px 8px rgba(23, 162, 184, 0.3);
}

/* Mantener el estilo activo incluso en hover */
.login-language-selector .flag.active:hover {
    background: #138496 !important;
    border-color: #138496 !important;
}

.language-selector {
    display: inline-block;
    padding: 4px 8px;
    margin: 0 0px;
    background: #e0e0e0;
    color: #333;
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid #ccc;
}

.language-selector:hover {
    background: #bdbdbd;
    color: #000;
    border-color: #999;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Idioma activo/seleccionado */
.language-selector.active {
    background: #d5d5d5;
    color: #000;
    border-color: #757575;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.language-selector.active:hover {
    background: #9393ac;
    border-color: #666;
}

/* ============================================
   NAV ELEMENTS - Remove padding from links
   ============================================ */

#nav.flush-left li a,
#nav.nav-elements-ticket li a {
    /* padding: 0px 10px !important; */
    
}