/* PALETA DE COLORES  */
:root {
    /* Colores principales */
    --color-rojo: #cb4335;
    --color-rojo-hover: #a93529;
    --color-verde: #239b56;
    --color-verde-hover: #1d7e47;
    --color-amarillo: #fec400;
    --color-amarillo-hover: #e5b000;
    --color-azul-claro: #04c7e0;
    --color-azul-claro-hover: #03a5bc;

    /* Colores institucionales */
    --color-primario: #0d0d66;
    --color-primario-hover: #0a0a52;

    /* Colores neutros */
    --color-gris-claro: #f5f5f5;
    --color-gris-medio: #999;
    --color-gris-oscuro: #666;
    --color-gris-borde: #e0e0e0;

    /* Colores de texto */
    --color-texto-principal: #333;
    --color-texto-secundario: #666;

    /* Backgrounds */
    --color-bg-input: #fafafa;
    --color-bg-deshabilitado: #e9ecef;
}

/* Reset global para el layout SER */
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Layout principal */
.ser-wrapper {
    display: flex;
    min-height: 100vh;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
}

/* ===================================
   SIDEBAR
   =================================== */
.ser-sidebar {
    width: 200px;
    background-color: #808080;
    color: #ffffff;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    transition: all 0.3s ease;
    z-index: 1000;
}

.ser-sidebar-header {
    background-color: #808080;
    padding: 20px 15px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ser-sidebar-logo {
    max-width: 180px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Menú de navegación */
.ser-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ser-nav-section-title {
    padding: 20px 15px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.5px;
}

.ser-nav-item {
    position: relative;
}

.ser-nav-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
    border-left: 3px solid transparent;
}

.ser-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-left-color: #ffffff;
    color: #ffffff;
}

.ser-nav-link.active {
    background-color: #0d0d66;
    border-left-color: #ffffff;
}

.ser-nav-link i {
    margin-right: 12px !important;
    font-size: 18px !important;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    display: inline-block !important;
    visibility: visible !important;
}

.ser-nav-link i::before {
    font-family: 'Material Design Icons' !important;
    display: inline-block !important;
    visibility: visible !important;
}

/* Submenú expandible */
.ser-nav-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-in-out;
    background-color: rgba(0, 0, 0, 0.1);
    opacity: 0;
}

.ser-nav-submenu.show {
    max-height: 1000px;
    opacity: 1;
    transition: max-height 0.2s ease-in-out, opacity 0.2s ease-in-out;
}

.ser-nav-submenu .ser-nav-link {
    padding-left: 52px;
    font-size: 13px;
}

.ser-nav-submenu .ser-nav-link i {
    margin-right: 12px !important;
    font-size: 16px !important;
    min-width: 18px;
    display: inline-block !important;
    visibility: visible !important;
}

.ser-nav-submenu .ser-nav-link i::before {
    display: inline-block !important;
    font-family: 'Material Design Icons' !important;
    font-style: normal !important;
    font-weight: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    line-height: 1 !important;
    visibility: visible !important;
}

.ser-nav-link-with-submenu {
    position: relative;
}

.ser-nav-toggle {
    margin-left: auto;
    transition: transform 0.3s ease;
    font-size: 16px;
}

.ser-nav-item.expanded .ser-nav-toggle {
    transform: rotate(180deg);
}

/* ===================================
   CONTENIDO PRINCIPAL
   =================================== */
.ser-content {
    flex: 1;
    margin-left: 250px;
    display: flex;
    flex-direction: column;
}

/* Header */
.ser-header {
    background-color: #ffffff;
    padding: 15px 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 900;
}

.ser-hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.ser-user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    position: relative;
}

.ser-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.ser-user-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.ser-user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-width: 150px;
    display: none;
    z-index: 1001;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.ser-user-dropdown.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.ser-dropdown-item {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.ser-dropdown-item:hover {
    background-color: #f5f5f5;
}

/* Main Content */
.ser-main {
    flex: 1;
    padding: 40px 50px;
    background-color: #f5f5f5;
}

.ser-page-header {
    margin-bottom: 30px;
}

.ser-page-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
}

.ser-user-info {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
}

/* ===================================
   TARJETAS Y CONTENEDORES
   =================================== */
.ser-card {
    background-color: #ffffff;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 25px;
    margin-bottom: 20px;
}

.ser-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.ser-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

/* ===================================
   BOTONES
   =================================== */
.ser-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

/* Variante compacta de botones */
.ser-btn-compact {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
}

.ser-btn-primary {
    background-color: #0d0d66;
    color: #ffffff;
}

.ser-btn-primary:hover {
    background-color: #0a0a52;
}

.ser-btn-secondary {
    background-color: #ffffff;
    color: #333;
    border: 1px solid #999;
}

.ser-btn-secondary:hover {
    background-color: #f5f5f5;
}

.ser-btn-success {
    background-color: var(--color-verde);
    color: #ffffff;
}

.ser-btn-success:hover {
    background-color: var(--color-verde-hover);
}

.ser-btn-danger {
    background-color: var(--color-rojo);
    color: #ffffff;
}

.ser-btn-danger:hover {
    background-color: var(--color-rojo-hover);
}

/* Variantes outline (fondo blanco con borde de color) */
.ser-btn-outline-primary {
    background-color: #ffffff;
    color: #0d0d66;
    border: 1px solid #0d0d66;
}

.ser-btn-outline-primary:hover {
    background-color: #0d0d66;
    color: #ffffff;
}

.ser-btn-outline-success {
    background-color: #ffffff;
    color: var(--color-verde);
    border: 1px solid var(--color-verde);
}

.ser-btn-outline-success:hover {
    background-color: var(--color-verde);
    color: #ffffff;
}

.ser-btn-outline-danger {
    background-color: #ffffff;
    color: var(--color-rojo);
    border: 1px solid var(--color-rojo);
}

.ser-btn-outline-danger:hover {
    background-color: var(--color-rojo);
    color: #ffffff;
}

.ser-btn i {
    font-size: 16px;
}

/* Botones de solo ícono - Estilo neutral */
.ser-btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 16px;
    background-color: #e9ecef;
    color: #495057;
}

.ser-btn-icon:hover {
    background-color: #dee2e6;
    transform: translateY(-1px);
}

.ser-btn-icon i {
    margin: 0;
    font-size: 18px;
    line-height: 1;
}

/* Variantes de color para botones de ícono (todas neutrales) */
.ser-btn-icon-primary {
    background-color: #e9ecef;
    color: #495057;
}

.ser-btn-icon-primary:hover {
    background-color: #dee2e6;
}

.ser-btn-icon-info {
    background-color: #e9ecef;
    color: #495057;
}

.ser-btn-icon-info:hover {
    background-color: #dee2e6;
}

.ser-btn-icon-danger {
    background-color: #e9ecef;
    color: #495057;
}

.ser-btn-icon-danger:hover {
    background-color: #dee2e6;
}

.ser-btn-info {
    background-color: var(--color-azul-claro);
    color: #ffffff;
}

.ser-btn-info:hover {
    background-color: var(--color-azul-claro-hover);
}

/* ===================================
   TABLAS
   =================================== */
.ser-table-container {
    overflow-x: auto;
}

.ser-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
}

.ser-table thead {
    background-color: #f8f9fa;
}

.ser-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #dee2e6;
    font-size: 13px;
    text-transform: uppercase;
}

.ser-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #dee2e6;
    color: #666;
    font-size: 14px;
}

.ser-table tbody tr:hover {
    background-color: #f8f9fa;
}

.ser-table-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-style: italic;
}

/* Controles de tabla */
.ser-table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.ser-table-search {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 250px;
}

.ser-table-show {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.ser-table-show select {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Encabezados de tabla ordenables */
.ser-table th.sortable {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.ser-table th.sortable:hover {
    background-color: #e9ecef;
}

.ser-table th.sortable i {
    margin-left: 6px;
    font-size: 12px;
    vertical-align: middle;
    transition: all 0.2s ease;
    opacity: 0.6;
    color: #666;
}

.ser-table th.sortable:hover i {
    opacity: 1;
    color: #333;
}

.ser-table th.sortable.sorted {
    background-color: #e9ecef;
    font-weight: 700;
}

.ser-table th.sortable.sorted i {
    opacity: 1;
    color: #0d0d66;
}

/* ===================================
   FORMULARIOS
   =================================== */
.ser-form-group {
    margin-bottom: 20px;
}

.ser-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.ser-form-label.required::after {
    content: "*";
    color: var(--color-rojo);
    margin-left: 4px;
}

.ser-form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    background-color: #fafafa;
    transition: all 0.3s ease;
}

.ser-form-control:focus {
    outline: none;
    border-color: #0d0d66;
    background-color: #ffffff;
}

.ser-form-control:disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
}

.ser-form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Sección de formulario colapsable */
.ser-form-section {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin-bottom: 15px;
    overflow: hidden;
}

.ser-form-section-header {
    background-color: #0d0d66;
    color: #ffffff;
    padding: 12px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
}

.ser-form-section-header i {
    transition: transform 0.3s ease;
}

.ser-form-section.collapsed .ser-form-section-header i {
    transform: rotate(180deg);
}

.ser-form-section-content {
    padding: 20px 15px;
    background-color: #ffffff;
}

.ser-form-section.collapsed .ser-form-section-content {
    display: none;
}

/* ===================================
   MODALES
   =================================== */
.ser-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.ser-modal-overlay.show {
    display: flex;
}

.ser-modal {
    background-color: #ffffff;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Modal más compacto para confirm y alert */
.ser-modal-confirm .ser-modal,
.ser-modal-alert .ser-modal {
    max-width: 420px;
    width: 95%;
}

/* Remover padding del body en modales confirm/alert */
.ser-modal-confirm .ser-modal-body,
.ser-modal-alert .ser-modal-body {
    padding: 0;
}

.ser-modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ser-modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.ser-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.ser-modal-body {
    padding: 25px;
}

.ser-modal-footer {
    padding: 15px 25px;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ===================================
   ALERTAS
   =================================== */
.ser-alert {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ser-alert-success {
    background-color: #d4f4dd;
    color: #155724;
    border: 1px solid var(--color-verde);
}

.ser-alert-danger {
    background-color: #fce4e4;
    color: #721c24;
    border: 1px solid var(--color-rojo);
}

/* ===================================
   BADGES Y ESTADOS
   =================================== */
.ser-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.ser-badge-success {
    background-color: var(--color-verde);
    color: #ffffff;
}

.ser-badge-danger {
    background-color: var(--color-rojo);
    color: #ffffff;
}

/* Overlay para modo responsive */
.ser-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.ser-sidebar-overlay.show {
    display: block;
}

/* ===================================
   TARJETAS MÓVILES
   =================================== */
.ser-cards-mobile {
    display: none;
}

.ser-card-mobile {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 15px;
    overflow: hidden;
}

.ser-card-mobile-header {
    background-color: #0d0d66;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
}

.ser-card-mobile-folio {
    font-weight: 700;
    font-size: 16px;
    color: #ffffff;
}

.ser-card-mobile-body {
    padding: 15px;
}

.ser-card-mobile-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.ser-card-mobile-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.ser-card-mobile-row strong {
    color: #666;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.ser-card-mobile-row span {
    color: #333;
    font-size: 14px;
}

.ser-card-mobile-footer {
    padding: 15px;
    background-color: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

.ser-btn-block {
    width: 100%;
    display: block;
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 1024px) {
    .ser-sidebar {
        margin-left: -250px;
        z-index: 2002; /* Por encima del modal en móvil */
    }

    .ser-sidebar.show {
        margin-left: 0;
    }

    .ser-content {
        margin-left: 0;
    }

    .ser-hamburger {
        display: block;
    }

    .ser-form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .ser-main {
        padding: 20px 15px;
    }

    .ser-page-title {
        font-size: 1.5rem;
    }

    .ser-user-info {
        font-size: 1rem;
    }

    .ser-card {
        padding: 15px;
    }

    .ser-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .ser-card-header .ser-btn {
        width: 100%;
        justify-content: center;
    }

    .ser-table-controls {
        flex-direction: column;
        align-items: flex-start;
    }

    .ser-table-search {
        width: 100%;
    }

    .ser-user-name {
        display: none;
    }

    /* Paginación responsive */
    .ser-flex-between {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .ser-flex-between > div:first-child {
        text-align: center;
    }
}

/* Tablas responsive - cambiar a tarjetas en pantallas pequeñas */
@media (max-width: 1024px) {
    /* Ocultar tabla y mostrar tarjetas en móvil */
    .ser-table-desktop {
        display: none !important;
    }

    .ser-cards-mobile {
        display: block !important;
    }
}

/* ===================================
   UTILIDADES
   =================================== */
.ser-text-center {
    text-align: center;
}

.ser-text-right {
    text-align: right;
}

.ser-mt-20 {
    margin-top: 20px;
}

.ser-mb-20 {
    margin-bottom: 20px;
}

.ser-flex {
    display: flex;
}

.ser-flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ser-gap-10 {
    gap: 10px;
}

.ser-hidden {
    display: none;
}

/* ===================================
   PANEL DE ESTATUS DEL ACTA ADMINISTRATIVA
   =================================== */
.ser-panel-header {
    background-color: #ffffff;
    padding: 20px 25px;
    margin-bottom: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.ser-panel-type,
.ser-panel-folio {
    font-size: 14px;
    color: #333;
}

.ser-panel-type strong,
.ser-panel-folio strong {
    font-weight: 700;
}

.ser-panel-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.ser-panel-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

/* Información general */
.ser-panel-info {
    min-width: 0;
}

.ser-info-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
}

.ser-info-card-header {
    background-color: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.ser-info-card-header h4 {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.ser-info-card-body {
    padding: 25px;
}

.ser-info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.ser-info-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ser-info-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ser-info-label {
    font-size: 13px;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.ser-info-value {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

/* Panel de progreso y firmas */
.ser-panel-status {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 97%;
}

.ser-status-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ser-status-card-header {
    background-color: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.ser-status-card-header h4 {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.ser-status-card-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

.ser-progress-item {
    margin-bottom: 15px;
}

.ser-progress-bar-container {
    width: 100%;
    height: 24px;
    background-color: #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 8px;
}

.ser-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-verde) 0%, var(--color-verde-hover) 100%);
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
}

.ser-progress-label {
    text-align: right;
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.ser-status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.ser-status-item:last-child {
    border-bottom: none;
}

.ser-status-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.ser-status-value {
    font-size: 16px;
    color: #333;
    font-weight: 700;
}

/* Firmantes */
.ser-signature-item {
    display: flex;
    justify-content: space-between;
    align-items: stretch; /* Cambiado de center a stretch para igualar alturas */
    padding: 15px 10px;
    border-bottom: 1px solid #e0e0e0;
}

.ser-signature-item:last-child {
    border-bottom: none;
}

.ser-signature-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 50px; /* Altura mínima para el contenido de texto */
}

.ser-signature-name {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.4;
}

.ser-signature-role {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.ser-signature-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 90px; /* Ancho mínimo para alineación consistente */
    min-height: 50px; /* Altura mínima igual a la del contenido de info */
}

.ser-signature-status.signed {
    color: var(--color-verde);
}

.ser-signature-status.signed i {
    font-size: 24px;
    color: var(--color-verde);
    line-height: 1;
}

.ser-signature-status.signed span {
    font-size: 11px;
    color: #666;
    text-align: center;
    line-height: 1.3;
    white-space: nowrap;
}

.ser-signature-status.unsigned {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ser-signature-status.unsigned button {
    padding: 8px 14px;
    font-size: 12px;
    white-space: nowrap;
}

.ser-btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* Responsive para panel de estatus */
@media (max-width: 1024px) {
    .ser-panel-grid {
        grid-template-columns: 1fr;
    }

    .ser-info-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ser-panel-actions {
        flex-direction: column;
    }

    .ser-panel-actions .ser-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .ser-panel-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .ser-signature-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .ser-signature-status {
        align-self: flex-end;
    }
}

/* ===================================
   GENERAR ACTA ADMINISTRATIVA
   =================================== */

/* Acciones superiores */
.ser-acta-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

/* Instrucciones previas */
.ser-acta-instrucciones {
    background-color: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 16px 20px;
    margin-bottom: 24px;
    border-radius: 4px;
}

.ser-instrucciones-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #1976d2;
    font-weight: 600;
}

.ser-instrucciones-header i {
    font-size: 20px;
}

.ser-instrucciones-body {
    color: #424242;
    font-size: 14px;
    line-height: 1.6;
}

/* Acordeón de secciones */
.ser-acta-accordion {
    border: 1px solid #dee2e6;
    border-radius: 0;
    overflow: visible;
}

.ser-accordion-item {
    border-bottom: 1px solid #dee2e6;
    background-color: #ffffff;
}

.ser-accordion-item:last-child {
    border-bottom: none;
}

.ser-accordion-header {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background-color: #ffffff;
    cursor: pointer;
    transition: background-color 0.2s;
    gap: 12px;
    position: relative;
}

.ser-accordion-header:hover {
    background-color: #f8f9fa;
}

.ser-accordion-header.active {
    background-color: #0d47a1;
    color: #ffffff;
}

.ser-accordion-header.active .ser-accordion-title {
    color: #ffffff;
}

.ser-accordion-header.active .ser-accordion-toggle i {
    transform: rotate(180deg);
    color: #ffffff;
}

.ser-accordion-number {
    background-color: transparent;
    color: #000000;
    width: auto;
    min-width: 40px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-weight: bold;
    font-size: 15px;
    flex-shrink: 0;
}

.ser-accordion-header.active .ser-accordion-number {
    color: #ffffff;
}

.ser-accordion-title {
    flex: 1;
    font-weight: 400;
    font-size: 14px;
    color: #212529;
}

.ser-accordion-status {
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: 8px;
}

.ser-status-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
}

.ser-status-indicator.loading {
    background-color: #cfd3d8;
}

.ser-status-indicator.incomplete {
    background-color: var(--color-rojo);
}

.ser-status-indicator.empty {
    background-color: var(--color-rojo);
}

.ser-status-indicator.partial {
    background-color: var(--color-amarillo);
}

.ser-status-indicator.complete {
    background-color: var(--color-verde);
}

.ser-accordion-toggle {
    display: flex;
    align-items: center;
}

.ser-accordion-toggle i {
    font-size: 24px;
    transition: transform 0.3s;
    color: #495057;
}

.ser-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #ffffff;
}

.ser-accordion-content.active {
    max-height: 5000px;
    transition: max-height 0.5s ease-in;
    border-top: 1px solid #dee2e6;
}

.ser-section-content {
    padding: 20px 24px;
    background-color: #ffffff;
}

.ser-section-content h4,
.ser-section-content h5,
.ser-section-content h6 {
    color: #1e3a8a;
    margin-top: 0;
    margin-bottom: 16px;
}

.ser-section-content h5 {
    font-size: 16px;
    font-weight: 600;
}

.ser-section-content h6 {
    font-size: 14px;
    font-weight: 600;
}

.ser-section-content p {
    color: #616161;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.ser-section-content ul {
    color: #616161;
    font-size: 14px;
    line-height: 1.6;
}

/* File upload */
.ser-file-upload {
    margin-top: 20px;
    padding: 16px;
    background-color: #ffffff;
    border: 1px dashed #bdbdbd;
    border-radius: 4px;
}

.ser-file-upload label {
    display: block;
    margin-bottom: 12px;
    font-weight: 500;
    color: #424242;
}

.ser-uploaded-files {
    margin-top: 12px;
}

.ser-uploaded-files table {
    margin-bottom: 0;
}

.ser-uploaded-files th {
    background-color: #f5f5f5;
    font-weight: 600;
    font-size: 13px;
    color: #424242;
    padding: 8px 12px;
}

.ser-uploaded-files td {
    font-size: 13px;
    color: #616161;
    padding: 8px 12px;
    vertical-align: middle;
}

.ser-uploaded-files td button:not(.ser-btn-icon) {
    color: var(--color-rojo);
}

.ser-uploaded-files td button:not(.ser-btn-icon):hover {
    color: var(--color-rojo-hover);
}


/* Colores de texto */
.ser-text-primario {
    color: var(--color-primario) !important;
}

.ser-text-gris-oscuro {
    color: var(--color-gris-oscuro) !important;
}

/* Backgrounds */
.ser-bg-deshabilitado {
    background-color: var(--color-bg-deshabilitado) !important;
}

/* Iconos de estado */
.ser-icono-exito {
    color: var(--color-verde);
    font-size: 24px;
}

.ser-icono-error {
    color: var(--color-rojo);
    font-size: 24px;
}

/* Iconos grandes (para estadísticas y modales) */
.ser-icono-exito-grande {
    color: var(--color-verde);
    font-size: 40px;
}

.ser-icono-error-grande {
    color: var(--color-rojo);
    font-size: 40px;
}

.ser-icono-info-grande {
    color: var(--color-azul-claro);
    font-size: 40px;
}

.ser-icono-estadistica {
    color: #495057;
    font-size: 40px;
}

/* Enlaces */
.ser-link-primario {
    color: #0066cc;
    text-decoration: underline;
    cursor: pointer;
}

.ser-link-primario:hover {
    color: var(--color-primario);
}

/* Botones de paginación */
.ser-btn-pag {
    padding: 6px 12px;
    margin: 0 2px;
    border: 1px solid var(--color-gris-borde);
    background-color: #ffffff;
    color: var(--color-texto-principal);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.ser-btn-pag:hover:not(:disabled) {
    background-color: var(--color-primario);
    color: #ffffff;
    border-color: var(--color-primario);
}

.ser-btn-pag.active {
    background-color: var(--color-primario);
    color: #ffffff;
    border-color: var(--color-primario);
}

.ser-btn-pag:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Tarjetas de móvil */
.ser-card-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--color-gris-borde);
}

.ser-card-row:last-child {
    border-bottom: none;
}

/* Utilidades de espaciado y alineación */
.ser-flex-align-center {
    align-items: center;
}

.ser-gap-20 {
    gap: 20px;
}

.ser-mt-10 {
    margin-top: 10px;
}

.ser-padding-40 {
    padding: 40px;
}

/* Utilidades de texto */
.ser-text-small {
    font-size: 13px;
}

/* Modal de éxito - Override para iconos de 64px en modales */
.ser-modal-body .ser-icono-exito-grande {
    font-size: 64px;
}

.ser-modal-success-title {
    margin: 20px 0 10px;
    font-size: 1.5rem;
}

.ser-modal-folio {
    margin: 10px 0;
    font-weight: 700;
}


/* NOTIFICACIONES TOAST */
.ser-notification-container {
    position: fixed;
    z-index: 10000;
    pointer-events: none;
    max-width: 400px;
}

.ser-notification-container.ser-notification-top-right {
    top: 20px;
    right: 20px;
}

.ser-notification-container.ser-notification-top-left {
    top: 20px;
    left: 20px;
}

.ser-notification-container.ser-notification-bottom-right {
    bottom: 20px;
    right: 20px;
}

.ser-notification-container.ser-notification-bottom-left {
    bottom: 20px;
    left: 20px;
}

.ser-notification-container.ser-notification-top-center {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.ser-notification {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    margin-bottom: 12px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    pointer-events: all;
    min-width: 300px;
    max-width: 400px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ser-notification.ser-notification-show {
    opacity: 1;
    transform: translateX(0);
}

.ser-notification.ser-notification-hide {
    opacity: 0;
    transform: translateX(100%);
}

.ser-notification-icon {
    flex-shrink: 0;
    font-size: 24px;
    line-height: 1;
}

.ser-notification-success {
    border-left: 4px solid var(--color-verde);
}

.ser-notification-success .ser-notification-icon {
    color: var(--color-verde);
}

.ser-notification-error {
    border-left: 4px solid var(--color-rojo);
}

.ser-notification-error .ser-notification-icon {
    color: var(--color-rojo);
}

.ser-notification-warning {
    border-left: 4px solid var(--color-amarillo);
}

.ser-notification-warning .ser-notification-icon {
    color: var(--color-amarillo);
}

.ser-notification-info {
    border-left: 4px solid var(--color-azul-claro);
}

.ser-notification-info .ser-notification-icon {
    color: var(--color-azul-claro);
}

.ser-notification-content {
    flex: 1;
    min-width: 0;
}

.ser-notification-title {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}

.ser-notification-message {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.ser-notification-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #999;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.ser-notification-close:hover {
    color: #333;
}

/* ===================================
   MODALES REUTILIZABLES
   =================================== */
.ser-modal-loading .ser-spinner {
    font-size: 48px;
    color: var(--color-primario);
    text-align: center;
    margin-bottom: 20px;
}

.ser-modal-loading .ser-modal-title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

.ser-modal-loading .ser-modal-message {
    margin: 0;
    color: #666;
    text-align: center;
}

.ser-modal-confirm,
.ser-modal-alert {
    padding: 35px 30px;
}

.ser-modal-confirm-icon {
    font-size: 48px;
    display: block;
    text-align: center;
    margin-bottom: 16px;
}

.ser-modal-confirm .ser-modal-title,
.ser-modal-alert .ser-modal-title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    color: #333;
}

.ser-modal-confirm .ser-modal-message,
.ser-modal-alert .ser-modal-message {
    margin: 0 0 24px;
    color: #666;
    line-height: 1.5;
    text-align: center;
    font-size: 14px;
}

.ser-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.ser-modal-actions .ser-btn {
    min-width: 110px;
    padding: 9px 20px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* MODAL DEL PROMPT (INPUT DE TEXTO) */
.ser-modal-prompt .ser-modal {
    max-width: 500px;
    width: 95%;
}

.ser-modal-prompt .ser-modal-body {
    padding: 0;
}

.ser-modal-prompt {
    padding: 30px;
}

.ser-modal-prompt .ser-modal-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    color: #333;
    text-align: left;
}

.ser-modal-prompt .ser-modal-message {
    margin: 0 0 20px;
    color: #666;
    font-size: 13px;
    line-height: 1.4;
    text-align: left;
}

.ser-modal-prompt .ser-form-group {
    margin-bottom: 24px;
}

.ser-modal-prompt .ser-form-control {
    width: 100%;
}

.ser-modal-prompt .ser-form-control:focus {
    border-color: #0d0d66;
    box-shadow: 0 0 0 3px rgba(13, 13, 102, 0.1);
}

.ser-modal-prompt .ser-form-control.is-invalid {
    border-color: var(--color-rojo);
    background-color: #fff5f5;
}

.ser-modal-prompt .ser-form-control.is-invalid:focus {
    border-color: var(--color-rojo);
    box-shadow: 0 0 0 3px rgba(203, 67, 53, 0.1);
}

.ser-icono-warning {
    color: var(--color-amarillo);
}

.ser-icono-warning-grande {
    color: var(--color-amarillo);
    font-size: 48px;
}

/* Animación de spinner */
@keyframes mdi-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.mdi-spin {
    animation: mdi-spin 1s linear infinite;
}

/* Responsive para GenerarActa */
@media (max-width: 768px) {
    .ser-acta-actions {
        flex-direction: column;
    }

    .ser-acta-actions .ser-btn {
        width: 100%;
        justify-content: center;
    }

    .ser-accordion-header {
        padding: 12px 16px;
    }

    .ser-accordion-number {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .ser-accordion-title {
        font-size: 13px;
    }

    .ser-section-content {
        padding: 16px;
    }
}

/* Estilos para el menú de opciones de archivos */
.ser-uploaded-files .dropdown-toggle {
    color: #6c757d;
    padding: 0.25rem 0.5rem;
}

.ser-uploaded-files .dropdown-toggle:hover {
    color: #495057;
}

.ser-uploaded-files .dropdown-toggle::after {
    display: none;
}

.ser-uploaded-files .dropdown-menu {
    min-width: 150px;
    font-size: 0.875rem;
}

.ser-uploaded-files .dropdown-item {
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ser-uploaded-files .dropdown-item i {
    font-size: 1rem;
}

.ser-uploaded-files .dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--color-rojo);
}

/* CUADROS DE ESTADÍSTICAS DE ACTAS */

.actas-stats-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (max-width: 1400px) {
    .actas-stats-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .actas-stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .actas-stats-container {
        grid-template-columns: 1fr;
    }
}

.acta-stat-card {
    position: relative;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.acta-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.acta-stat-card.active {
    border-color: var(--color-primario);
    box-shadow: 0 4px 12px rgba(13, 13, 102, 0.2);
}

.acta-stat-content {
    position: relative;
    z-index: 2;
}

.acta-stat-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #666;
    margin: 0 0 0.75rem 0;
    text-transform: none;
}

.acta-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0.5rem 0;
    display: block;
}

.acta-stat-counts {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.acta-stat-count {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.acta-stat-count .acta-stat-number {
    font-size: 2rem;
    line-height: 1;
}

.acta-stat-label {
    font-size: 0.75rem;
    color: #666;
    margin-top: 0.25rem;
}

.acta-stat-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2.5rem;
    opacity: 0.15;
    z-index: 1;
}

.acta-stat-icon i {
    display: block;
}

/* Estilos específicos por tipo de acta */
.acta-stat-total {
    border-left: 4px solid #0d0d66;
}

.acta-stat-total .acta-stat-title,
.acta-stat-total .acta-stat-label {
    color: #0d0d66;
}

.acta-stat-total .acta-stat-number {
    color: #0d0d66;
}

.acta-stat-total .acta-stat-icon {
    opacity: 0.2;
    color: #0d0d66;
}

.acta-stat-administrativa {
    border-left: 4px solid #0d0d66;
}

.acta-stat-administrativa .acta-stat-number {
    color: #0d0d66;
}

.acta-stat-administrativa .acta-stat-icon {
    color: #0d0d66;
}

.acta-stat-administrativa.active,
.acta-stat-administrativa:hover {
    border-left-width: 4px;
    border-left-color: #0d0d66;
}

.acta-stat-jurisdiccional {
    border-left: 4px solid #0d0d66;
}

.acta-stat-jurisdiccional .acta-stat-number {
    color: #0d0d66;
}

.acta-stat-jurisdiccional .acta-stat-icon {
    color: #0d0d66;
}

.acta-stat-jurisdiccional.active,
.acta-stat-jurisdiccional:hover {
    border-left-width: 4px;
    border-left-color: #0d0d66;
}

.acta-stat-circunstanciada {
    border-left: 4px solid #0d0d66;
}

.acta-stat-circunstanciada .acta-stat-number {
    color: #0d0d66;
}

.acta-stat-circunstanciada .acta-stat-icon {
    color: #0d0d66;
}

.acta-stat-circunstanciada.active,
.acta-stat-circunstanciada:hover {
    border-left-width: 4px;
    border-left-color: #0d0d66;
}

.acta-stat-cambio {
    border-left: 4px solid #0d0d66;
}

.acta-stat-cambio .acta-stat-number {
    color: #0d0d66;
}

.acta-stat-cambio .acta-stat-icon {
    color: #0d0d66;
}

.acta-stat-cambio.active,
.acta-stat-cambio:hover {
    border-left-width: 4px;
    border-left-color: #0d0d66;
}

/* ===================================
   CUADROS DE ESTADÍSTICAS DE SERVIDORES PÚBLICOS
   =================================== */

.servidores-stats-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (max-width: 1400px) {
    .servidores-stats-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .servidores-stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .servidores-stats-container {
        grid-template-columns: 1fr;
    }
}

.servidor-stat-card {
    position: relative;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.servidor-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.servidor-stat-card.active {
    border-color: var(--color-primario);
    box-shadow: 0 4px 12px rgba(13, 13, 102, 0.2);
}

.servidor-stat-content {
    position: relative;
    z-index: 2;
}

.servidor-stat-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #666;
    margin: 0 0 0.75rem 0;
    text-transform: none;
}

.servidor-stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    display: block;
    line-height: 1;
}

.servidor-stat-counts {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.servidor-stat-count {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.servidor-stat-label {
    font-size: 0.75rem;
    color: #666;
    margin-top: 0.25rem;
}

.servidor-stat-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2.5rem;
    opacity: 0.15;
    z-index: 1;
}

.servidor-stat-icon i {
    display: block;
}

/* Estilos específicos por tipo de servidor */

.servidor-stat-saliente {
    border-left: 4px solid #0d0d66;
}

.servidor-stat-saliente .servidor-stat-number {
    color: #0d0d66;
}

.servidor-stat-saliente .servidor-stat-icon {
    color: #0d0d66;
}

.servidor-stat-saliente.active,
.servidor-stat-saliente:hover {
    border-left-width: 4px;
    border-left-color: #0d0d66;
}

.servidor-stat-receptor {
    border-left: 4px solid #0d0d66;
}

.servidor-stat-receptor .servidor-stat-number {
    color: #0d0d66;
}

.servidor-stat-receptor .servidor-stat-icon {
    color: #0d0d66;
}

.servidor-stat-receptor.active,
.servidor-stat-receptor:hover {
    border-left-width: 4px;
    border-left-color: #0d0d66;
}

.servidor-stat-testigo {
    border-left: 4px solid #0d0d66;
}

.servidor-stat-testigo .servidor-stat-number {
    color: #0d0d66;
}

.servidor-stat-testigo .servidor-stat-icon {
    color: #0d0d66;
}

.servidor-stat-testigo.active,
.servidor-stat-testigo:hover {
    border-left-width: 4px;
    border-left-color: #0d0d66;
}

.servidor-stat-oic {
    border-left: 4px solid #0d0d66;
}

.servidor-stat-oic .servidor-stat-number {
    color: #0d0d66;
}

.servidor-stat-oic .servidor-stat-icon {
    color: #0d0d66;
}

.servidor-stat-oic.active,
.servidor-stat-oic:hover {
    border-left-width: 4px;
    border-left-color: #0d0d66;
}

.servidor-stat-superior {
    border-left: 4px solid #0d0d66;
}

.servidor-stat-superior .servidor-stat-number {
    color: #0d0d66;
}

.servidor-stat-superior .servidor-stat-icon {
    color: #0d0d66;
}

.servidor-stat-superior.active,
.servidor-stat-superior:hover {
    border-left-width: 4px;
    border-left-color: #0d0d66;
}

/* AUTOCOMPLETADO DE BÚSQUEDA - ACTA CIRCUNSTANCIADA */

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.search-result-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.search-result-item:hover {
    background-color: #f5f5f5;
}

.search-result-item-name {
    font-weight: 500;
    color: #333;
}

.search-result-item-details {
    font-size: 0.85rem;
    color: #666;
    margin-top: 4px;
}

.search-loading {
    padding: 10px 15px;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

.search-no-results {
    padding: 10px 15px;
    text-align: center;
    color: #999;
    font-size: 0.9rem;
}

/* ===================================
   BOTÓN DE OBSERVACIONES EN ACORDEÓN
   =================================== */

.ser-btn-observaciones {
    background: none;
    border: none;
    padding: 0;
    margin-left: 8px;
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    transition: transform 0.2s;
}

.ser-btn-observaciones:hover {
    transform: scale(1.1);
}

.ser-btn-observaciones i {
    font-size: 20px;
    color: #666;
    transition: color 0.2s;
}

.ser-accordion-header.active .ser-btn-observaciones i {
    color: #ffffff;
}

.ser-btn-observaciones:hover i {
    color: #0d47a1;
}

.ser-accordion-header.active .ser-btn-observaciones:hover i {
    color: #e3f2fd;
}

.ser-observaciones-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: var(--color-rojo);
    color: #ffffff;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    border: 2px solid #ffffff;
}

.ser-accordion-header.active .ser-observaciones-badge {
    border-color: #0d47a1;
}

/* Badge con diferentes colores según el estado */
.ser-observaciones-badge.badge-sin-atender {
    background-color: var(--color-rojo);
}

.ser-observaciones-badge.badge-por-revisar {
    background-color: var(--color-amarillo);
}

.ser-observaciones-badge.badge-devuelto {
    background-color: #ff6f00; /* Naranja */
}

.ser-observaciones-badge.badge-atendido {
    background-color: var(--color-verde);
}

/* Estilos para el modal de observaciones */
.ser-modal-lg {
    max-width: 900px;
    width: 95%;
}

.ser-modal-md {
    max-width: 600px;
    width: 95%;
}

/* Tabla de observaciones */
#observacionesTableContainer {
    max-height: 400px;
    overflow-y: auto;
}

/* Estados de observaciones con colores */
.observacion-estado {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.observacion-estado.sin-atender {
    background-color: #ffebee;
    color: var(--color-rojo);
}

.observacion-estado.por-revisar {
    background-color: #fff9e6;
    color: #c68400;
}

.observacion-estado.devuelto {
    background-color: #fff3e0;
    color: #ff6f00;
}

.observacion-estado.atendido {
    background-color: #e8f5e9;
    color: var(--color-verde);
}

/* Formulario de observación */
.ser-observacion-form {
    padding: 20px 0;
}

.ser-observacion-form .ser-form-group {
    margin-bottom: 20px;
}

.ser-observacion-detalle {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 16px;
}

.ser-observacion-detalle-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #dee2e6;
}

.ser-observacion-detalle-title {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.ser-observacion-detalle-body {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.ser-observacion-detalle-body p {
    margin-bottom: 8px;
}

.ser-observacion-detalle-body strong {
    color: #333;
}

/* Historial de rechazos */
.ser-rechazo-historial {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #dee2e6;
}

.ser-rechazo-item {
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 12px;
}

.ser-rechazo-item:last-child {
    margin-bottom: 0;
}

.ser-rechazo-fecha {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}

.ser-rechazo-motivo {
    font-size: 13px;
    color: #666;
}

/* Los modales de observaciones usan la clase .ser-modal-overlay definida en la línea 694 */
/* ===================================
   ESTILOS PARA BOTONES DE INFORMACIÓN
   =================================== */

.ser-btn-icon-info {
    background: none;
    border: none;
    color: navy;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    margin-left: 8px;
    vertical-align: middle;
    transition: color 0.3s ease;
    display: inline-block;
    line-height: 1;
}

.ser-btn-icon-info:hover {
    color: #035a7a;
    transform: scale(1.1);
}

.ser-btn-icon-info:active {
    color: #0d0d66;
}

/* ===================================
   ESTILOS PARA CONTENEDORES DE INFO
   =================================== */

.ser-info-container {
    padding: 15px 0;
}

.ser-receptor-info {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ser-info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.ser-info-row:last-child {
    border-bottom: none;
}

.ser-info-col {
    display: flex;
    flex-direction: column;
}

.ser-info-col strong {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    text-transform: none;
}

.ser-info-col p {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.ser-info-section {
    margin-bottom: 25px;
}

.ser-info-section:last-child {
    margin-bottom: 0;
}

.ser-info-title {
    font-size: 14px;
    font-weight: 700;
    color: #0d0d66;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #04c7e0;
    display: inline-block;
}

.ser-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 10px;
}

.ser-info-item {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

.ser-info-item strong {
    color: #333;
    font-weight: 600;
    display: block;
    margin-bottom: 3px;
}

@media (max-width: 768px) {
    .ser-info-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .ser-info-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   UTILIDADES DE TEXTO
   ============================================ */

/* Clase para dar estilo de link (azul) a texto sin que sea clickeable */
.text-link-style {
    color: #007bff;
    font-weight: 500;
}

/* ============================================
   CHECKBOX READONLY (VISUALMENTE HABILITADO)
   ============================================ */

/* Checkbox que se ve habilitado pero está deshabilitado */
.checkbox-readonly:disabled {
    opacity: 1 !important;
    cursor: not-allowed !important;
    filter: none !important;
}

/* Anular la apariencia opaca del checkbox deshabilitado */
.checkbox-readonly:disabled + label {
    opacity: 1 !important;
}

/* ============================================
   TOOLTIP DESGLOSE DE ANEXOS
   ============================================ */

span.anexos-tooltip-container {
    position: relative !important;
    display: inline-block !important;
}

span.anexos-tooltip-container span.anexos-tooltip {
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    bottom: 125% !important;
    left: 0 !important;
    background-color: #333 !important;
    color: #fff !important;
    padding: 12px 15px !important;
    border-radius: 6px !important;
    font-size: 0.85em !important;
    z-index: 9999 !important;
    transition: opacity 0.2s, visibility 0.2s !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important;
    min-width: 280px !important;
    max-width: 320px !important;
    max-height: 350px !important;
    overflow-y: auto !important;
    text-align: left !important;
    font-weight: normal !important;
    white-space: normal !important;
}

span.anexos-tooltip-container span.anexos-tooltip::after {
    content: "" !important;
    position: absolute !important;
    top: 100% !important;
    left: 15px !important;
    border-width: 6px !important;
    border-style: solid !important;
    border-color: #333 transparent transparent transparent !important;
}

span.anexos-tooltip-container:hover span.anexos-tooltip {
    visibility: visible !important;
    opacity: 1 !important;
}

span.anexos-tooltip .tooltip-section {
    display: flex !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding: 3px 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
}

span.anexos-tooltip .tooltip-section:last-of-type {
    border-bottom: none !important;
}

span.anexos-tooltip .tooltip-section span:first-child {
    flex: 1 !important;
}

span.anexos-tooltip .tooltip-section span:last-child {
    font-weight: bold !important;
    min-width: 20px !important;
    text-align: right !important;
}

span.anexos-tooltip .tooltip-total {
    display: flex !important;
    justify-content: space-between !important;
    margin-top: 10px !important;
    padding-top: 10px !important;
    border-top: 2px solid rgba(255,255,255,0.3) !important;
    font-weight: bold !important;
    color: #8f8 !important;
}

span.anexos-tooltip .tooltip-note {
    margin-top: 10px !important;
    padding-top: 8px !important;
    border-top: 1px solid rgba(255,255,255,0.2) !important;
    font-size: 0.85em !important;
    color: #adf !important;
    line-height: 1.3 !important;
}

span.anexos-tooltip .excluido {
    color: #f99 !important;
    text-decoration: line-through !important;
}