﻿/* ====== Paleta y base ====== */
:root {
    --bg: #f5f7fb;
    --card: #ffffff;
    --border: #e6e8ee;
    --text: #0f172a;
    --letra: #192967;
    --muted: #6b7280;
    --accent: #2473de; /*#6d5efc; violeta Metis */
    --accent-weak: rgba(109,94,252,.12);
    --success: #10b981;
    --danger: #ef4444;
    --shadow: 0 1px 2px rgba(16,24,40,.05), 0 4px 12px rgba(16,24,40,.06);
    --teal: #2473de; /*#00b7d3;*/ /* puedes cambiar este */
    --teal-2: #2473de; /*#00e0c6;*/
    --white: #ffffff;
    --muted: #7b7f87;
    --card-radius: 18px;
    --shadow: 0 10px 30px rgba(2,6,23,0.4);
    --container-w: 920px;
    --subraya: #2974f4;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    padding-top: 25px;
    overflow-y: auto;
    font-family: 'Tahoma';
}
    html {
        font-size: 14px;
        position: relative;
        min-height: 100%;
    }

    body.app.app-light {
        background: var(--bg);
        color: var(--text);
    }

.app-layout {
    position: relative;
    min-height: 100dvh;
    overflow-x: hidden; /* evita scroll lateral cuando abre el menú */
}

a {
    text-decoration: none;
    color: #fff;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* El main crece para ocupar el espacio restante */
main {
    flex: 1;
    padding: 10px; /* Ajusta según sea necesario */
}

header {
    font-family: Tahoma, sans-serif; /* Cambia Arial por la fuente que desees */
    font-size: 12px; /* Puedes ajustar el tamaño si es necesario */
    font-weight: normal; /* Ajusta el grosor de la fuente */
}

@media (min-width: 768px) {
    html {
        font-size: 12px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/*.btn.btn-primary {
    background-color: #343547;
    border-color: darkgoldenrod
}*/

/*.btn:hover {
    background-color: #343547;
}*/

/*.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;*/ /* Altura mínima 100% del viewport */
/*}*/

/* Estilos para submenús */
.dropdown-submenu {
    position: relative;
}

    .dropdown-submenu .dropdown-menu {
        top: 0;
        left: 100%;
        margin-top: 0;
        margin-left: 0;
        display: none;
        position: absolute;
    }

    .dropdown-submenu:hover .dropdown-menu {
        display: block;
    }

.navbar-nav {
    display: flex;
    align-items: center; /* Alineación vertical de los elementos del menú */
    color: #343547;
}

.navbar-bg {
    background-color: #343547;
}

.nav-item {
    margin-right: 5px; /* Espaciado entre los elementos del menú */
}

.content-wrapper {
    min-height: calc(100vh - 100px);
    margin-bottom: 100px;
    padding-bottom: 50px;
    box-sizing: border-box;
}

.content-parcial {
    padding: 15px;
}

/* Ajustar el tamaño de la imagen de perfil si es necesario */
.nav-item img {
    width: 30px;
    height: 30px;
}

/* Eliminar margen y padding si es necesario */
.nav-item .dropdown-toggle {
    padding: 5px;
    margin: 5px;
}

.card {
    border-radius: 15px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.card-header {
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.text-blue {
    color: #007bff; /* Color azul para el ícono y textos */
}

.card-title {
    font-weight: bold;
}

.icon-large {
    font-size: 2rem; /* Tamaño grande para los iconos */
}

.dx-row-focused {
    background-color: #FFD700 !important; /* Color dorado */
}

/*.footer {
    color: #FFF;
    font-size: 12px;
    width: 100%;
    height: 85px;
    text-align: center;
    background-color: #343547;
    padding: 2px;
}*/

/*.dx-logo {
    float: right;
    width: 200px;
    height: 50px;}*/

.footer {
    color: #FFF;
    width: 100%; /* Asegura que el footer ocupe todo el ancho */
    height: 120px; /* Define una altura fija o ajustable */
    display: flex; /* Usamos flex para centrar el contenido */
    justify-content: center; /* Centra horizontalmente */
    align-items: center; /* Centra verticalmente */
    background-color: #f8f9fa; /* Color de fondo opcional */
    text-align: center;
    font-size: 11px;
}

.dx-logo {
    width: 100%; /* Ocupa todo el ancho del footer */
    height: 40px; /* Ocupa toda la altura del footer */
    padding-bottom: 7px;
    object-fit: contain; /* Ajusta el logo manteniendo proporciones */
    max-width: none; /* Elimina restricciones de tamaño máximo */
    max-height: none;
}

.hero-section {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-image: url('../images/logo_grupo.png');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    position: absolute;
}

    .hero-section::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
    }

.hero-content {
    z-index: 1;
    position: relative;
}

    .hero-content h1 {
        font-size: 3rem;
        margin-bottom: 20px;
    }

    .hero-content p {
        font-size: 1.2rem;
        margin-bottom: 30px;
    }

/*.content-section {
    margin-top: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    color: #c8d1e6;
}*/

/*h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: #343547;
}*/

/*.service-cards {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}*/

/* Sección de contenido */
/*.content-section {
    padding: 20px 25px;
    background-color: #f4f4f4;
}

    .content-section h3 {
        font-weight: 700;
        font-size: 1.4rem;
        color: #ffffff;
        margin-bottom: 1.5rem;
    }

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.card-home {
    background-color: #121a2a;*/ /* tono ligeramente más claro que el fondo */
    /*color: #c8d1e6;
    border: 1px solid #233047;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: all 0.25s ease;
}

    .card-home:hover {
        transform: translateY(-4px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
        border-color: #2d67ff;
    }

    .card-home h3 {
        font-size: 1.15rem;
        margin-bottom: 0.75rem;
        color: #ffffff;
    }

    .card-home p {
        color: #b9c3da;
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 0.75rem;
    }*/

/*.card-home {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 250px;
}*/

    /*.card-home {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 30%;
}*/

    /*.card-home h3 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .card-home p {
        font-size: 1rem;
        color: #666;
    }

@media (max-width: 768px) {
    .content-section {
        padding: 0.5rem;
    }

    .card-home {
        padding: 1rem;
    }

        .card-home h3 {
            font-size: 1rem;
        }
}*/

/*@media (max-width: 768px) {
    .service-cards {
        flex-direction: column;
        align-items: center;
    }

    .card-home {
        width: 100%;
    }
}*/

/*.text-cafe {
    color: #d17b00;*/ /* tono cálido tipo “café” */
/*}*/

.text-truncate {
    display: inline-block; /* Asegura que el nombre del usuario esté en una nueva línea */
    max-width: 180px; /* Ajusta el ancho máximo según lo necesario */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ms-2.text-warning {
    text-align: left; /* Alinea el texto a la izquierda */
    font-size: 10px;
}

.alink {
    text-decoration: underline;
    color: #0d6efd;
}

.underline {
    text-decoration: underline;
    color: var(--subraya);
}

.subraya {
    text-decoration: underline;
    color: var(--subraya);
    /*border-bottom: 2px solid #2d67ff;
    padding-bottom: 3px;
    display: inline-block;*/
}

.negrita {
    font-weight: bold;
}

.icon-text {
    display: flex;
    align-items: center; /* Alinea verticalmente el icono y el texto */
    margin-bottom: 15px; /* Espacio entre cada ítem */
}

    .icon-text i {
        margin-right: 10px; /* Espacio entre el ícono y el texto */
    }

.fa-icon-text {
    margin-right: 10px;
}

.fa-icon-text-left {
    margin-left: 10px;
}

.full-height {
    height: 100vh; /* Ocupar toda la pantalla */
}

.form-label {
    font-weight: bold;
    color: #007bff;
}

.form-control {
    background-color: #fff;
}

.bg-header-color {
    background-color: var(--accent); /* si usas variables CSS */
    color: #fff;
}

.bg-header-secunday {
    background-color: #343547;
    color: #fff;
}


.table-white, #ticketsTable, #ticketsTable tbody tr {
    background-color: white !important;
}

    #ticketsTable thead th {
        background-color: #f8f9fa;
    }

    #ticketsTable th, #ticketsTable td {
        font-size: 0.75rem;
        color: blue;
        padding: 5px;
    }

        #ticketsTable th:first-child, #ticketsTable td:first-child {
            width: 8%;
        }

.button-reminder {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
}

    .button-reminder:hover {
        background-color: #0056b3;
    }

.id-ticket-column {
    width: 50%;
}

.dt-buttons .btn {
    background-color: #007bff; /*Cambia el color de fondo */
    color: white; /*Cambia el color del texto */
    border: none;
    border-radius: 5px;
    padding: 8px 16px;
    margin-right: 5px;
}

    .dt-buttons .btn:hover {
        background-color: #343547; /* Color al pasar el cursor */
    }

.estado-abierto {
    background-color: #f8d7da; /* Rojo claro */
    color: #721c24;
}

.estado-proceso {
    background-color: #fff3cd; /* Amarillo claro */
    color: #856404;
}

.estado-cerrado {
    background-color: #d4edda; /* Verde claro */
    color: #155724;
}

.text-right {
    text-align: right;
}


/* Estilos para crear Ticket */
.dashboard-container {
    padding: 20px;
    max-width: 1200px;
    margin: auto;
}

.header-container {
    text-align: center;
    margin-bottom: 20px;
}

.header-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #007bff;
}

.user-info {
    font-size: 1rem;
    color: #007bff;
    margin-top: 10px;
}

.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: #f8f9fa;
    margin-bottom: 15px;
}

.card-blue {
    border-left: 4px solid #007bff;
}

.card-green {
    border-left: 4px solid #28a745;
}

.card-yellow {
    border-left: 4px solid #ffc107;
}

.card-red {
    border-left: 4px solid #dc3545;
}

.card-body {
    padding: 15px;
}

.card-icon {
    font-size: 1.5rem;
    color: #007bff;
}

.card-title {
    font-size: 1rem;
    font-weight: bold;
    color: #007bff;
}

.card-text {
    font-size: 1.25rem;
}

.right-column {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.d-grid {
    display: flex;
    justify-content: flex-end;
}

.btn-create-ticket {
    width: auto;
}

.welcome-message {
    font-size: 1.1rem;
    color: #007bff;
    margin-top: 20px;
}

.tab-content {
    background-color: white;
    padding: 20px;
}

.toast-header {
    background-color: #d1e7dd;
    color: #0f5132;
    border: #badbcc;
}

.toast-header-error {
    background-color: #f8d7da;
    color: #721c24;
}

/* Estilos para todos los elementos readonly */
[readonly] {
    background-color: #e9ecef; /* Fondo gris claro */
    color: #495057; /* Color del texto más oscuro */
    opacity: 1; /* Asegura que no esté translúcido */
    border-color: #ced4da; /* Opcional: ajusta el borde para que combine */
}

/* Encabezados de la tabla */
.table-custom thead th {
    background-color: #004085; /* Fondo azul oscuro */
    color: #ffffff; /* Texto blanco */
    text-align: center;
    font-weight: bold;
    font-size: 9px;
    padding: 10px;
}

/* Filas impares del cuerpo */
.table-custom tbody tr:nth-child(odd) {
    background-color: #f8f9fa; /* Gris claro */
}

/* Filas pares del cuerpo */
.table-custom tbody tr:nth-child(even) {
    background-color: #ffffff; /* Blanco */
}

/* Celdas del cuerpo */
.table-custom tbody td {
    color: #004085; /* Texto negro */
    padding: 10px;
    font-size: 10px;
}

/* Hover para las filas */
.table-custom tbody tr:hover {
    background-color: #d1ecf1; /* Azul claro */
    cursor: pointer;
}

/* Personalización de los enlaces */
.table-custom a {
    color: #007bff; /* Azul */
    text-decoration: none;
}

    .table-custom a:hover {
        color: #0056b3; /* Azul más oscuro */
        text-decoration: underline;
    }

.chart-container {
    position: relative;
    width: 100%;
    height: 400px; /* Ajusta la altura según sea necesario */
}

@media (max-width: 768px) {
    .chart-container {
        height: 300px; /* Reduce la altura en dispositivos más pequeños */
    }
}

.custom-hr {
    border: 0; /* Elimina el borde predeterminado */
    height: 2px; /* Grosor de la línea */
    background-color: #007bff; /* Color de la línea */
}

.shadow-hr {
    border: 0;
    height: 3px;
    background-color: #333; /* Color de la línea */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3); /* Sombra */
}

.gradient-hr {
    border: 0;
    height: 5px;
    background: linear-gradient(to right, #ff7e5f, #feb47b); /* Gradiente */
}

.ql-font-arial {
    font-family: Arial, sans-serif;
}

.ql-font-comic-sans {
    font-family: 'Comic Sans MS', cursive, sans-serif;
}

.ql-font-courier {
    font-family: 'Courier New', Courier, monospace;
}

.ql-font-georgia {
    font-family: Georgia, serif;
}

.ql-font-helvetica {
    font-family: Helvetica, sans-serif;
}

.ql-font-impact {
    font-family: Impact, sans-serif;
}

.ql-font-times-new-roman {
    font-family: 'Times New Roman', Times, serif;
}

.wrap-text {
    white-space: normal !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

#gridTickets {
    margin-top: 0px !important;
    padding-top: 0px !important;
}

/* Card container */
.auth-card {
    width: min(var(--container-w), 96%);
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    border-radius: calc(var(--card-radius) + 6px);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    min-height: 350px;
}

/* Left teal panel */
/*.auth-left {
    position: relative;
    width: 50%;
    min-width: 320px;
    background: linear-gradient(135deg, var(--teal), var(--teal-2));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    clip-path: polygon(0 0, 100% 0, 78% 100%, 0% 100%);*/ /* creates the curved-ish cut */
/*}*/

/* Panel izquierdo con bordes redondeados */
.auth-left {
    position: relative;
    width: 50%;
    min-width: 20px;
    background: linear-gradient(135deg, var(--teal), var(--teal-2));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    /* redondeo en los bordes externos (izquierda) */
    border-top-left-radius: 22px;
    border-bottom-left-radius: 22px;
}

    /* “Mordida” curva en el lado derecho del panel */
    /*.auth-left::after {
        content: "";
        position: absolute;
        right: -30px;*/ /* cuánto se mete en el panel */
        /*top: 0px;*/ /* deja margen arriba */
        /*bottom: 0px;*/ /* y abajo */
        /*width: 200px;*/ /* controla lo “gordito” de la curva */
        /*background: #fff;*/ /* color del fondo de la tarjeta */
        /*border-radius: 100px;*/ /* hace la pastilla redonda */
        /*pointer-events: none;
        box-shadow: -8px 0 24px rgba(0,0,0,.08);*/ /* separa visualmente */
    /*}*/

/* Right form panel */
.auth-right {
    width: 70%;
    min-width: 250px;
    background: #ffffff;
    color: #222;
    padding: 25px 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-box {
    width: 100%;
    max-width: 360px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

    .brand h3 {
        margin: 0;
        font-size: 20px
    }

    .brand small {
        color: var(--muted);
        font-size: 12px
    }

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
}

.line {
    height: 1px;
    background: #e9e9ee;
    flex: 1
}

.socials {
    display: flex;
    gap: 8px;
    justify-content: center
}

.forgot {
    text-align: right;
    margin-bottom: 12px;
}

    .forgot a {
        font-size: 13px;
        color: var(--teal);
        text-decoration: none
    }

.clickable-link {
    cursor: pointer;
    text-decoration: underline;
}