/* Dashboard Styles */
.dashboard {
    padding: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
legend {
    font-size: 1rem !important;
}
.stat-card h3 {
    margin-top: 0;
    color: #2c3e50;
}

#errorToast {
  z-index: 1100;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #3498db;
    margin: 0.5rem 0;
}

.campo-invalido,
.is-invalid {
    border: 2px solid red !important;
}

/* Toast de error */
.toast {
  position: fixed;
  top: 10vh;
  right: 10vw;
  z-index: 1100;
} 

.recent-activity {
    background: white;
    padding: 1.5rem;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.activity-list {
    list-style: none;
    padding: 0;
}

.activity-list li {
    padding: 0.75rem;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.activity-list li:last-child {
    border-bottom: none;
}

.activity-time {
    color: #7f8c8d;
    min-width: 120px;
}

.activity-user {
    font-weight: bold;
    min-width: 150px;
}

.activity-action {
    flex: 1;
}

/* Case Detail Styles */
.case-detail {
    background: white;
    padding: 1.5rem;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.case-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.case-info-section {
    margin-bottom: 2rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.info-grid div {
    margin-bottom: 0.5rem;
}

.info-grid label {
    font-weight: bold;
    color: #7f8c8d;
    display: block;
}

.case-status {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.case-status.nuevo {
    background-color: #3498db;
    color: white;
}

.case-status.modificable {
    background-color: #f39c12;
    color: white;
}

.case-status.cerrado {
    background-color: #2ecc71;
    color: white;
}

.case-status.aislado {
    background-color: #e74c3c;
    color: white;
}

.case-status.borrador {
    background-color: #95a5a6;
    color: white;
}

/* Tabs */
.case-tabs {
    margin-top: 2rem;
}

.tab-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    border-bottom: 1px solid #ddd;
}

.tab-nav li {
    margin-right: 1rem;
}

.tab-nav li a {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #7f8c8d;
    border-bottom: 3px solid transparent;
}

.tab-nav li.active a {
    color: #3498db;
    border-bottom-color: #3498db;
}

.nav-tabs .nav-link {
    color: #495057;
    border: 1px solid transparent;
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
}

.nav-tabs .nav-link.active {
    color: #495057;
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
}

.tab-pane {
    padding: 1rem;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 0.25rem 0.25rem;
}

/* Followups */
.followups-list {
    margin-top: 1rem;
}

.followup-item {
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: #f9f9f9;
    border-left: 4px solid #3498db;
    border-radius: 4px;
}

.followup-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.followup-date {
    font-weight: bold;
}

.followup-user {
    color: #3498db;
}

.followup-type {
    background-color: #e0e0e0;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.followup-content {
    padding-left: 0.5rem;
}

.followup-file a {
    display: inline-block;
    margin-top: 0.5rem;
    color: #3498db;
    text-decoration: none;
}
/* Ajustes para el offcanvas */
.offcanvas {
    width: 250px !important;
}

/* Estilo para los enlaces activos */
.nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    font-weight: bold;
}

/* Mejoras visuales para el contenido principal */
.main-content {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Ajustes para el header */
.navbar {
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Print Styles */
.print-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
}

.print-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #333;
}

.print-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.print-section {
    margin-bottom: 2rem;
    page-break-inside: avoid;
}

.print-section h2 {
    background-color: #f0f0f0;
    padding: 0.5rem;
    border-left: 4px solid #333;
}

.print-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.print-table th,
.print-table td {
    padding: 0.5rem;
    border: 1px solid #ddd;
    text-align: left;
}

.print-table th {
    background-color: #f5f5f5;
}

.print-followup {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.print-followup h3 {
    margin-bottom: 0.5rem;
}

.print-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 2px solid #333;
    text-align: center;
    font-size: 0.9rem;
}

@media print {
    .no-print, .case-actions, .add-followup {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        background: none;
        color: #000;
    }
    
    .print-container {
        padding: 0;
    }
    
    .print-section {
        margin-bottom: 1.5rem;
    }
    
    a {
        text-decoration: none;
        color: #000;
    }
}