/* ================================
   MODAL FULLSCREEN STYLES
   ================================ */
#reportModal.report-modal-fullscreen {
    width: 95% !important;
    max-width: 1600px !important;
    height: 90% !important;
    max-height: 90vh !important;
    top: 5% !important;
    border-radius: 8px;
}

#reportModal .modal-content.report-modal-content {
    padding: 0;
    height: calc(100% - 56px);
    display: flex;
    flex-direction: column;
}

/* Header con título y búsqueda */
#reportModal .report-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 24px;
    border-bottom: 1px solid #e0e0e0;
    background: #fafafa;
    flex-shrink: 0;
}

#reportModal .report-modal-header h4 {
    margin: 0;
    font-size: 1.5rem;
}

/* Barra de búsqueda */
#reportModal .report-search-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

#reportModal .report-search-field {
    margin: 0 !important;
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 0 12px;
    min-width: 280px;
}

#reportModal .report-search-field .prefix {
    position: static;
    margin-right: 8px;
    color: #757575;
    font-size: 20px;
}

#reportModal .report-search-field input {
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    height: 36px !important;
    padding: 0 !important;
    font-size: 14px;
}

#reportModal .report-search-field input:focus {
    border: none !important;
    box-shadow: none !important;
}

#reportModal .report-search-results {
    font-size: 12px;
    color: #757575;
    white-space: nowrap;
    margin-left: 8px;
}

#reportModal .report-search-nav {
    display: flex;
    align-items: center;
}

#reportModal .report-search-nav .btn-flat {
    padding: 0 8px;
    min-width: 32px;
    height: 32px;
    line-height: 32px;
}

#reportModal .report-search-nav .btn-flat i {
    font-size: 20px;
}

/* Contenedor principal */
#reportModal .report-modal-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Índice lateral */
#reportModal .report-index-sidebar {
    width: 280px;
    min-width: 280px;
    background: #f5f5f5;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#reportModal .report-index-header {
    padding: 12px 16px;
    background: #eeeeee;
    border-bottom: 1px solid #e0e0e0;
}

#reportModal .report-index-header h6 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #424242;
    display: flex;
    align-items: center;
    gap: 6px;
}

#reportModal .report-index-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

#reportModal .report-index-item {
    padding: 10px 16px;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

#reportModal .report-index-item:hover {
    background: #e8e8e8;
}

#reportModal .report-index-item.active {
    background: #e3f2fd;
    border-left-color: #1976d2;
}

#reportModal .report-index-item .index-ticket-id {
    font-size: 11px;
    font-weight: 600;
    color: #1976d2;
    background: #e3f2fd;
    padding: 2px 6px;
    border-radius: 3px;
    flex-shrink: 0;
}

#reportModal .report-index-item .index-title {
    font-size: 13px;
    color: #424242;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Área de contenido */
#reportModal .report-content-area {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    background: white;
}

/* Highlight de búsqueda */
#reportModal .search-highlight {
    background: #fff59d;
    padding: 1px 2px;
    border-radius: 2px;
}

#reportModal .search-highlight.current {
    background: #ff9800;
    color: white;
}

/* Estilos existentes del reporte */
#reportModal .report-section-title {
  margin-top: 25px;
  font-weight: bold;
  color: #004d40;
  border-bottom: 2px solid #26a69a;
  padding-bottom: 5px;
}

#reportModal .report-data-table {
  margin-top: 10px;
  border: 1px solid #ddd;
  border-collapse: collapse;
  width: 100%;
}

#reportModal .report-data-table td {
  padding: 6px 10px;
  border: 1px solid #ddd;
}

#reportModal .report-data-table td:first-child {
  font-weight: bold;
  background: #f1f1f1;
  width: 30%;
}

#reportModal .report-card {
  margin-top: 20px;
  padding: 10px;
  border: 1px solid #26a69a;
  border-radius: 6px;
  background: #fafafa;
  scroll-margin-top: 20px;
}

#reportModal .report-card h6 {
  font-weight: bold;
  color: #00796b;
  margin-bottom: 10px;
}

#reportModal .custom-report-table td {
    padding: 6px;
    vertical-align: top;
}

#reportModal .section-title {
    background: #f2f2f2;
    font-weight: bold;
    padding: 6px;
}

#reportModal .label-cell b.required-field::before {
    content: " *";
    color: red;
}

.export-progress {
    width: 70%;
    max-width: 600px;
    margin: 20px auto;
    height: 16px;
    border-radius: 8px;
}

.export-progress .determinate {
    height: 100%;
    background-color: #26a69a;
    border-radius: 8px;
    transition: width 0.25s ease;
}

/* Responsive para pantallas pequeñas */
@media only screen and (max-width: 992px) {
    #reportModal.report-modal-fullscreen {
        width: 98% !important;
        height: 95% !important;
        top: 2.5% !important;
    }
    
    #reportModal .report-index-sidebar {
        width: 220px;
        min-width: 220px;
    }
    
    #reportModal .report-modal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    #reportModal .report-search-container {
        width: 100%;
    }
    
    #reportModal .report-search-field {
        flex: 1;
        min-width: auto;
    }
}

@media only screen and (max-width: 768px) {
    #reportModal .report-index-sidebar {
        display: none;
    }
    
    #reportModal .report-modal-body {
        flex-direction: column;
    }
}

