@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

header, footer {
    background-color: var(--navbar-background-color);
    border-bottom: 1px solid var(--navlink-active-background-color);
}

h3 {
    color: var(--h3-color);
}

h4 {
    color: var(--h4-color);
}

.icon-gray {
    fill: gray;
}

.icon-green {
    fill: green;
}

.icon-red {
    fill: red;
}

.icon-gray:hover {
    fill: black;
}

/* Top Bar */
.top-bar {
    background-color: var(--top-bar-background-color); /* Color de fondo m�s claro */
    color: var(--top-bar-text-color); /* Color del texto */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Sombra sutil para darle profundidad */
    transition: background-color 0.3s ease; /* Transici�n suave para cambios de color */
}

.top-bar a {
    color: var(--top-bar-text-color); /* Color del texto de los enlaces */
    text-decoration: none; /* Sin subrayado */
    margin: 0 10px; /* Espaciado entre enlaces */
    transition: color 0.3s ease; /* Transici�n suave para cambios de color */
}

    .top-bar a:hover {
        color: var( --topbar-color-a-hover); /* Color del texto al pasar el rat�n */
    }

.sidebar {
    background-color: var(--navbar-background-color);
    border-right: 1px solid var(--navlink-active-background-color);
    padding: 20px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    overflow-y: auto;
}

.help-button-above-footer {
    position: fixed;
    right: 16px;
    bottom: calc(var(--footer-height) + 16px);
    z-index: 1200;
}
    .sidebar a {
        color: var(--navbar-text-color);
        text-decoration: none;
        display: block;
        margin: 10px 0;
        transition: background-color 0.3s ease, color 0.3s ease;
    }

        .sidebar a:hover {
            background-color: var(--navlink-hover-background-color);
            color: var(--navlink-hover-text-color);
        }

        .sidebar a.active {
            background-color: var(--navlink-active-background-color);
            color: var(--navlink-active-text-color);
        }

.sidebar {
    background-image: linear-gradient(180deg, var(--general-color1) 0%, var(--palette-color-02) 70%);
}

.img-thumbnail {
    background-color: var(--palette-color-01);
}

input, select {
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #cccccc;
    border-radius: 4px;
    background-color: var(--palette-color-03);
    color: var(--palette-color-06);
    width: 100%;
}

.card {
    background-color: var(--palette-color-07);
    border: 1px solid var(--palette-color-08);
    border-radius: 4px;
    padding: 20px;
    margin: 20px 0;
}

.card-short {
    background-color: var(--palette-color-07);
    border: 1px solid var(--palette-color-08);
    border-radius: 4px;
}

/*nav {
    background-color: var(--navbar-background-color);
    padding: 10px;
}

    nav a {
        color: var(--navbar-text-color);
        text-decoration: none;
        margin: 0 10px;
        transition: background-color 0.3s ease, color 0.3s ease;
    }

        nav a:hover {
            background-color: var(--navlink-hover-background-color);
            color: var(--navlink-hover-text-color);
        }

        nav a.active {
            background-color: var(--navlink-active-background-color);
            color: var(--navlink-active-text-color);
        }

        nav a p {
            color: var(--navbar-text-color);*/ /* Asegura que el texto de los <p> en nav tenga el color adecuado */
/*display: inline;*/ /* Hace que los <p> se comporten como elementos en l�nea */
/*margin: 0;*/ /* Elimina el margen predeterminado de los <p> */
/*}*/

/*nav-menu {
    background-color: var(--navbar-background-color);
    color: var(--navbar-text-color);
    z-index: 1000;*/ /* Asegura que est� por encima del contenido */
/*}*/

.arrow-icon {
    margin-left: 10px;

/* Invert logo for dark theme when using a single image file */
.logo-inverted {
    filter: invert(1) brightness(2) saturate(0);
}
    max-width: 25px;
    max-height: 25px;
    transition: transform 0.3s ease;
}

html, body {
    height: 100%;
    overflow: hidden; /* Evita que el scroll se aplique al layout general */
    background: var(--index-background-color);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Variables de layout globales — deben coincidir con los valores usados en TopBar y FooterBar */
:root {
    --top-bar-height: 62px;
    --footer-height: 48px;
}

/* MudBlazor MudLayout es un flex container; MudMainContent necesita min-height: 0
   para que overflow-y: auto funcione correctamente dentro de un flex item */
.mud-layout {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mud-main-content {
    min-height: 0;
    flex: 1 1 0;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.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;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.container {
    background: var(--navmenu-container-background);
}

.oi {
    color: var(--oi-color);
}

.oi {
    color: var(--icon-io-color-navmenu);
}

.menu-icon {
    color: var(--icon-io-color-navmenu);
}

.menu-name {
    color: var(--icon-io-color-navmenu);
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

/* Global: rounded MudDialog (aplica a diálogos montados en body) */
.mud-dialog {
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(2,6,23,0.12);
}
.mud-dialog .mud-paper {
    border-radius: 12px !important;
}

    .mud-dialog .mud-dialog-paper .par-root {
        padding-left: 24px;
        padding-right: 24px;
    }

    .par-dialog-padding {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }


.drop_menu-button {
    display: flex;
    align-items: center; /* Centra verticalmente el contenido */
    justify-content: space-between; /* Distribuye el espacio entre el texto y el �cono */
    /* Estilos personalizados para tu bot�n aqu� */
    text-align: left;
    background: linear-gradient(to right, var(--palette-color-02) 0%, var(--palette-color-01) 90%);
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 20px;
    width: 100%;
    position: relative;
    /* Por ejemplo: */
    background-color: #e8f5e9;
    color: var(--palette-color-03);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.arrow-icon {
    margin-left: 10px;
    max-width: 25px;
    max-height: 25px;
    transition: transform 0.3s ease;
}

/* Estilos para los labels */
label {
    font-weight: bold;
    margin-bottom: 5px; /* Espacio entre el label y el campo de entrada */
}

/* Green input variant: apply green background to control and label */
.vimax-input--green .mud-input-root,
.vimax-input--green .mud-input-control {
    background-color: #d4edda;
    --mud-palette-text-primary: #155724;
}

.vimax-input--green .mud-input-label {
    background-color: #d4edda;
    color: #155724;
    padding: 0 6px;
    border-radius: 4px;
    display: inline-block;
}

.Upload_Image {
    width: 90%; /* Ancho completo del campo de entrada */
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    margin-bottom: 10px; /* Espacio entre los campos de entrada */
}

/* Estilos para el men� desplegable (select) */
select {
    width: 90%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    margin-bottom: 10px;
    align-content: center;
}

.search-bar {
    width: 200px;
    height: 50px;
    justify-content: end;
    align-content: center;
    margin-right: 10px;
    margin-top: 0px;
}

.boton {
    width: 100px;
    height: 50px;
    justify-content: end;
    margin-top: 0px;
}

button {
    background-color: var(--button-background-color);
    color: var(--button-text-color);
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
}

    button:hover {
        background-color: var(--button-hover-background-color);
    }

.table-container {
    margin-top: 20px;
    max-width: 100%; /* Asegura que la tabla no se salga del contenedor */
}

table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    padding: 8px;
    color: var(--table-text-color);
}

tr {
    background-color: var(--table-row-background-color);
}

th, td {
    padding: 10px; /* Ajusta el tama�o de las celdas */
    font-size: 16px; /* Aumenta el tama�o del texto en la tabla */
}

th {
    background-color: var(--table-header-background-color);
}

tr:hover {
    background-color: var(--table-hover-background-color); /* Color de fondo al pasar el mouse */
}

/*.mud-fab.table-edit-icon {
    background-color: var(--table-edit-icon);
    color: #ffffff;*/ /* Color del dibujo del icono de editar */
/*}

    .mud-fab.table-edit-icon:hover {
        background-color: var(--table-edit-icon-hover);
        color: #ffffff;*/ /* Color del dibujo del icono de editar */
    /*}

.mud-fab.table-delete-icon {
    background-color: #dc3545 !important;*/ /* Color de fondo del icono de eliminar */
    /*color: #ffffff !important;*/ /* Color del dibujo del icono de eliminar */
/*}*/

.confirm-delete-modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid #000;
    padding: 15px;
    background-color: #fff;
    z-index: 1000; /* Asegura que el modal est� por encima de otros elementos */
}

    .confirm-delete-modal.show {
        display: block; /* Mostrar el modal */
    }

.Carousel {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 5rem;
}

.background-container {
    background-image: none !important; /* Eliminar imagen de fondo global */
    background-color: var(--index-background-color) !important; /* Usar color fijo del tema */
    min-height: 100vh; /* Asegura que el contenedor tenga al menos la altura de la ventana */
}

/* ____________________________________________________ Estilo general similares a MudBlazor ______________________________________*/
.custom-paper {
    padding: 16px; /* Padding equivalente a pa-4 en MudBlazor */
    margin: 16px; /* Margin que puedes ajustar seg�n sea necesario */
    background-color: var(--custom-paper-background-color); /* Fondo blanco */
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.99); /* Sombra ligera */
    border-radius: 8px; /* Bordes redondeados */
    color: var(--custom-paper-text-color);
}

    /* Estilo para formularios dentro de custom-paper */
    .custom-paper .form-group {
        margin-bottom: 16px; /* Espaciado entre los grupos de formulario */
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    /* Estilo para los campos de formulario */
    .custom-paper .form-control {
        background-color: var(--custom-paper-input-background-color);
        padding: 8px;
        color: var(--custom-paper-input-text-color);
        border: 1px solid var(--palette-color-06); /* Borde visible */
        border-radius: 4px; /* Bordes redondeados */
    }

        .custom-paper .form-control:hover {
            background-color: var(--custom-paper-input-color-hover);
            color: var(--palett-color-11); /* Cambia el color al rojo */
            opacity: 0.7; /* Opcional: Cambia la opacidad del placeholder */
        }

.form-control select {
    color: var(--palett-color-11); /* Cambia el color al rojo */
}

.custom-paper .form-control::placeholder {
    color: var(--palett-color-11); /* Cambia el color al rojo */
    font-style: italic; /* Opcional: Cambiar el estilo de fuente a cursiva */
    opacity: 0.8;
}

/* Estilo para las etiquetas */
.custom-paper label {
    font-weight: bold;
    margin-bottom: 4px;
}

/* Estilo para botones dentro de custom-paper */
.custom-paper button {
    padding: 10px 20px;
    background-color: var(button-background-color); /* Color primario similar a MudBlazor */
    color: var(--palette-color-03);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

    /* Hover y focus en botones */
    .custom-paper button:hover,
    .custom-paper button:focus {
        opacity: 0.7 /* Un tono m�s oscuro para el hover/focus */
    }

/* Anidaci�n: Estilo para contenedores anidados */
.custom-paper .custom-paper {
    padding: 12px; /* Reducci�n del padding para contenedores anidados */
    box-shadow: none; /* Elimina la sombra para evitar superposici�n */
    border: 1px solid #e0e0e0; /* Borde ligero para diferenciaci�n */
}

/* Estilo para subt�tulos u otros textos */
.custom-paper h2,
.custom-paper .subtitle {
    font-size: 1.25rem;
    margin-bottom: 8px;
    font-weight: 500;
}

/* ============================================================
   Mis Tickets — filtros, tab-bar y empty state
   ============================================================ */

/* ── Zona de filtros ─────────────────────────────────────── */
.filters {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.filters .selects .selects-items {
    display: grid;
    align-items: flex-end;
    gap: 12px;
}

/* ── Tab-bar de estados ──────────────────────────────────── */
.tickets-btn-section {
    display: flex;
    align-items: center;
    border-bottom: 2px solid #e5e7eb;
    gap: 0;
    margin-top: 4px;
}

.btn-ticket-section {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 0.92rem;
    font-weight: 500;
    color: #6b7280;
    text-decoration: none !important;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.18s ease, border-color 0.18s ease;
}

.btn-ticket-section:hover {
    color: #1d4ed8;
}

.btn-ticket-section.active {
    color: #1d4ed8;
    border-bottom-color: #1d4ed8;
    font-weight: 600;
}

/* ── Empty state ─────────────────────────────────────────── */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 56px 20px;
    gap: 6px;
}
.empty-state img  { width: 180px; opacity: 0.82; margin-bottom: 6px; }
.empty-state h4   { font-size: 1.1rem; font-weight: 700; color: #111827; margin: 0; }
.empty-state p    { font-size: 0.875rem; color: #6b7280; margin: 0; }

.btn-limpiar {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 7px 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid #0d6efd;
    border-radius: 8px;
    color: #0d6efd;
    background: #fff;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-limpiar:hover { background: #eff6ff; }

/* ── Tab-bar de estados ──────────────────────────────────── */
.tickets-btn-section {
    display: flex;
    align-items: center;
    border-bottom: 2px solid #e5e7eb;
    gap: 0;
}

.btn-ticket-section {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    text-decoration: none !important;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.15s, border-color 0.15s;
}
.btn-ticket-section:hover { color: #0d6efd; }
.btn-ticket-section.active { color: #0d6efd; border-bottom-color: #0d6efd; font-weight: 600; }

/* ── Ticket table ────────────────────────────────────────── */
.ticket-table-wrapper { width: 100%; overflow-x: auto; }

.ticket-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    color: #374151;
}

.ticket-table thead tr { background: #f8fafc; border-bottom: 2px solid #e5e7eb; }
.ticket-table thead th {
    padding: 10px 14px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
    white-space: nowrap;
    background: #f8fafc;
}

.ticket-table tbody tr { border-bottom: 1px solid #f1f5f9; transition: background 0.12s; }
.ticket-table tbody tr:last-child { border-bottom: none; }
.ticket-table tbody tr:hover { background: #f0f9ff; }
.ticket-table tbody td { padding: 11px 14px; vertical-align: middle; }

.ticket-code {
    font-family: monospace;
    font-size: 0.78rem;
    background: #f1f5f9;
    color: #1d4ed8;
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 600;
    white-space: nowrap;
}

.ticket-title {
    max-width: 210px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
    color: #111827;
}

.ticket-date { white-space: nowrap; color: #6b7280; font-size: 0.82rem; }

/* ── Badges ──────────────────────────────────────────────── */
.ticket-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.74rem;
    font-weight: 600;
    white-space: nowrap;
}
.badge-info    { background: #dbeafe; color: #1d4ed8; }
.badge-warning { background: #fef3c7; color: #b45309; }
.badge-danger  { background: #fee2e2; color: #b91c1c; }
.badge-neutral { background: #f1f5f9; color: #475569; }

/* ============================================================
   Shared form styles  (AgregarPersona / MyTickets / etc.)
   ============================================================ */

.form-section-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    margin-bottom: 1rem;
    border: 1px solid #f1f5f9;
}

.form-section-card .section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 1.25rem;
    margin-top: 0;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.section-header i  { color: #0d6efd; font-size: 1rem; }
.section-header span { color: #0d6efd; font-weight: 600; font-size: 0.93rem; }

.form-group-custom { margin-bottom: 1rem; }
.form-group-custom label {
    font-size: 0.82rem;
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.35rem;
    display: block;
}
.form-group-custom label .required { color: #dc3545; }

.form-control-custom {
    border: 1px solid #dee2e6;
    border-radius: 0 6px 6px 0;
    padding: 0.55rem 0.75rem;
    font-size: 0.875rem;
    width: 100%;
    display: block;
    box-sizing: border-box;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    background: #fff;
    color: #212529;
    height: calc(2.25rem + 2px);
    line-height: 1.5;
}

.form-control-custom:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.18rem rgba(13,110,253,0.15);
    outline: none;
}

.form-control-custom:disabled,
.form-control-custom[disabled] {
    background-color: #e9ecef;
    opacity: 1;
}

.form-control-custom.is-invalid { border-color: #dc3545; }

/* input-group-text alineado con .form-control-custom */
.input-group .input-group-text {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-right: 0;
    border-radius: 6px 0 0 6px;
    color: #6c757d;
    padding: 0 0.75rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
}

.input-group .form-control-custom { border-radius: 0 6px 6px 0; }

/* password toggle */
.password-toggle-btn {
    border: 1px solid #dee2e6;
    border-left: 0;
    background: #f8f9fa;
    color: #6c757d;
    padding: 0 0.75rem;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.15s;
}
.password-toggle-btn:hover { background: #e9ecef; color: #495057; }

/* invalid feedback */
.invalid-feedback-custom {
    color: #dc3545;
    font-size: 0.75rem;
    margin-top: 0.2rem;
}

/* action buttons */
.btn-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e9ecef;
}

.btn-guardar {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.4rem;
    font-size: 0.875rem;
    font-weight: 500;
    background: #0d6efd;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-guardar:hover { background: #0b5ed7; }

.btn-cancelar {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.4rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #6c757d;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-cancelar:hover { background: #f8f9fa; color: #495057; }

/* ── Empty state ─────────────────────────────────────────── */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 56px 20px;
    gap: 6px;
}
.empty-state img  { width: 180px; opacity: 0.82; margin-bottom: 6px; }
.empty-state h4   { font-size: 1.1rem; font-weight: 700; color: #111827; margin: 0; }
.empty-state p    { font-size: 0.875rem; color: #6b7280; margin: 0; }

.btn-limpiar {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 7px 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid #0d6efd;
    border-radius: 8px;
    color: #0d6efd;
    background: #fff;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-limpiar:hover { background: #eff6ff; }

/* ── Tab-bar de estados ──────────────────────────────────── */
.tickets-btn-section {
    display: flex;
    align-items: center;
    border-bottom: 2px solid #e5e7eb;
    gap: 0;
}

.btn-ticket-section {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    text-decoration: none !important;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.15s, border-color 0.15s;
}
.btn-ticket-section:hover { color: #0d6efd; }
.btn-ticket-section.active { color: #0d6efd; border-bottom-color: #0d6efd; font-weight: 600; }

/* ── Ticket table ────────────────────────────────────────── */
.ticket-table-wrapper { width: 100%; overflow-x: auto; }

.ticket-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    color: #374151;
}

.ticket-table thead tr { background: #f8fafc; border-bottom: 2px solid #e5e7eb; }
.ticket-table thead th {
    padding: 10px 14px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
    white-space: nowrap;
    background: #f8fafc;
}

.ticket-table tbody tr { border-bottom: 1px solid #f1f5f9; transition: background 0.12s; }
.ticket-table tbody tr:last-child { border-bottom: none; }
.ticket-table tbody tr:hover { background: #f0f9ff; }
.ticket-table tbody td { padding: 11px 14px; vertical-align: middle; }

.ticket-code {
    font-family: monospace;
    font-size: 0.78rem;
    background: #f1f5f9;
    color: #1d4ed8;
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 600;
    white-space: nowrap;
}

.ticket-title {
    max-width: 210px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
    color: #111827;
}

.ticket-date { white-space: nowrap; color: #6b7280; font-size: 0.82rem; }

/* ── Badges ──────────────────────────────────────────────── */
.ticket-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.74rem;
    font-weight: 600;
    white-space: nowrap;
}
.badge-info    { background: #dbeafe; color: #1d4ed8; }
.badge-warning { background: #fef3c7; color: #b45309; }
.badge-danger  { background: #fee2e2; color: #b91c1c; }
.badge-neutral { background: #f1f5f9; color: #475569; }

/*Modales de Capacitaciones*/
.modal-backdrop {
    display: none !important;
}

.modal {
    background-color: rgba(0,0,0,0.5) !important;
}

.cur-action-btn {
    border: 1px solid #e5e7eb;
    background: #fff;
    font-size: 0.88rem;
    padding: 5px 9px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

    .cur-action-btn:hover {
        background: #eff6ff;
        border-color: #bfdbfe;
    }

/* Estilos de la modal de edición de cursos */
.modal-edit-curso .modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-edit-curso .modal-header {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 16px 16px 0 0;
    padding: 1rem 1.5rem;
    border: none;
    flex-shrink: 0;
}

.modal-edit-curso .modal-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .modal-edit-curso .modal-title i {
        font-size: 1.25rem;
    }

.modal-edit-curso .modal-subtitle {
    color: rgba(255,255,255,0.95);
    font-size: 0.8rem;
    font-weight: 400;
    margin-top: 0.15rem;
    margin-bottom: 0;
}

.modal-edit-curso .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

    .modal-edit-curso .btn-close:hover {
        opacity: 1;
    }

.modal-edit-curso .modal-body {
    padding: 1.25rem 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.modal-edit-curso .form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@@media (max-width: 992px) {
    .modal-edit-curso .form-grid {
        grid-template-columns: 1fr;
    }
}

.modal-edit-curso .form-field-full {
    grid-column: 1 / -1;
}

.modal-edit-curso .info-banner {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: start;
    gap: 0.5rem;
}

    .modal-edit-curso .info-banner i {
        color: #d97706;
        font-size: 1rem;
        margin-top: 0.05rem;
    }

    .modal-edit-curso .info-banner p {
        margin: 0;
        color: #78350f;
        font-size: 0.8rem;
        line-height: 1.4;
    }

.modal-edit-curso .form-field {
    display: flex;
    gap: 0.75rem;
    align-items: start;
    margin-bottom: 1rem;
}

.modal-edit-curso .form-fields {
    display: flex;
    gap: 0.75rem;
    align-items: start;
    margin-bottom: 1rem;
    flex-direction: column;
}

.modal-edit-curso .form-icon {
    width: 38px;
    height: 38px;
    background: #f3f4f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1.5rem;
}

    .modal-edit-curso .form-icon i {
        color: #6b7280;
        font-size: 1rem;
    }

.modal-edit-curso .form-field-content {
    flex: 1;
}

.modal-edit-curso .form-field-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    display: block;
}

.modal-edit-curso .form-control,
.modal-edit-curso .form-select {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    transition: all 0.2s;
}

    .modal-edit-curso .form-control:focus,
    .modal-edit-curso .form-select:focus {
        border-color: #f59e0b;
        box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
    }

    .modal-edit-curso .form-control.is-invalid {
        border-color: #ef4444;
    }

.modal-edit-curso .invalid-feedback {
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.modal-edit-curso .modal-footer {
    border: none;
    border-top: 1px solid #f3f4f6;
    padding: 1rem 1.5rem;
    gap: 0.5rem;
    flex-shrink: 0;
}

.modal-edit-curso .btn-edit {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

    .modal-edit-curso .btn-edit:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    }

.modal-edit-curso .btn-cancel {
    background: #f3f4f6;
    border: none;
    color: #6b7280;
    font-weight: 600;
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s;
    width: 100%;
}

    .modal-edit-curso .btn-cancel:hover {
        background: #e5e7eb;
        color: #374151;
    }