body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f6f9;
}

/* SIDEBAR */
.sidebar {
    width: 220px;
    height: 100vh;
    background: #1e293b;
    color: white;
    position: fixed;
    padding: 20px;
}

.sidebar h2 {
    margin-bottom: 20px;
}

.sidebar a {
    display: block;
    color: #cbd5e1;
    padding: 10px;
    text-decoration: none;
    border-radius: 6px;
}

.sidebar a:hover {
    background: #334155;
    color: white;
}

/* CONTENIDO */
.content {
    margin-left: 240px;
    padding: 20px;
}

/* CARDS */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.card h3 {
    font-size: 28px;
    margin: 0;
    color: #1e293b;
}

.card p {
    margin: 5px 0 0 0;
    color: #64748b;
}

.card small {
    display: block;
    margin-top: 6px;
    color: #94a3b8;
}
.btn-primary {
    background: #2563eb;
    color: white;
    border: 0;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
}

.btn-primary:hover {
    opacity: .9;
}

.table button {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
}
/* =========================
   TABLA CRUD
========================= */

.table-section {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(15,23,42,.08);
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1100px;
}

.table thead {
    background: #f8fafc;
}

.table th {
    padding: 14px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: .5px;
    border-bottom: 2px solid #e2e8f0;
}

.table td {
    padding: 14px 16px;
    font-size: 14px;
    color: #334155;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

.table tbody tr {
    transition: all .2s ease;
}

.table tbody tr:hover {
    background: #f8fafc;
}

/* Última fila sin borde */
.table tbody tr:last-child td {
    border-bottom: none;
}
.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}
.badge-primary{
    background:#dbeafe;
    color:#1d4ed8;
}

.badge-warning{
    background:#fef3c7;
    color:#92400e;
}

.badge-success{
    background:#dcfce7;
    color:#166534;
}

.badge-danger{
    background:#fee2e2;
    color:#991b1b;
}
.search-input{
    padding:10px 14px;
    border:1px solid #cbd5e1;
    border-radius:8px;
    width:250px;
    outline:none;
}

.search-input:focus{
    border-color:#2563eb;
}
/* contenedor base */
.chart-container {
    width: 800px;
    height: 350px;
    margin-top: 20px;
}
/* versión estrecha */
.small-chart {
    width: 450px;   /* 👈 aquí lo haces más estrecho */
}
/* permite scroll horizontal */
.scroll-table {
    overflow-x: auto;
}

/* tabla grande */
.big-table {
    min-width: 1600px;
}

/* mejor legibilidad */
.big-table th {
    font-size: 12px;
    white-space: nowrap;
}

.big-table td {
    font-size: 13px;
    white-space: nowrap;
}
/* CONTENEDOR PRO */
.table-wrapper{
    overflow-x: auto;
    border-radius: 14px;
}

/* TABLA BASE MEJORADA */
.seguimiento-table{
    width: 100%;
    min-width: 1800px; /* clave para tablas grandes */
    border-collapse: collapse;
    background: white;
}

/* HEADER FIJO */
.seguimiento-table thead th{
    position: sticky;
    top: 0;
    background: #0f172a;
    color: white;
    font-size: 12px;
    padding: 10px;
    text-align: center;
    z-index: 2;
}

/* CELDAS */
.seguimiento-table td{
    padding: 10px;
    font-size: 12px;
    border-bottom: 1px solid #e5e7eb;
    text-align: center;
    white-space: nowrap;
}

/* FILA HOVER */
.seguimiento-table tbody tr:hover{
    background: #f1f5f9;
}

/* COLUMNAS IMPORTANTES DESTACADAS */
.seguimiento-table td:nth-child(1),
.seguimiento-table td:nth-child(2){
    font-weight: bold;
    color: #1e293b;
}

/* BADGES */
.badge{
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

.badge-success{ background:#dcfce7; color:#166534; }
.badge-warning{ background:#fef3c7; color:#92400e; }
.badge-danger{ background:#fee2e2; color:#991b1b; }
/*
.modal-overlay{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(15,23,42,.6);
    display:none;
    align-items:center;
    justify-content:center;
    z-index:999;
}

.modal{
    background:white;
    width:600px;
    border-radius:12px;
    box-shadow:0 10px 30px rgba(0,0,0,.2);
    overflow:hidden;
}

.modal-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:15px 20px;
    background:#1e293b;
    color:white;
}

.modal-close{
    background:none;
    border:none;
    color:white;
    font-size:18px;
    cursor:pointer;
}

.modal-body{
    padding:20px;
}

.modal-footer{
    display:flex;
    justify-content:flex-end;
    gap:10px;
    padding:15px 20px;
    border-top:1px solid #e2e8f0;
}
    */
.form-section-title{
    margin:18px 0 10px;
    font-size:13px;
    font-weight:700;
    color:#1e293b;
    text-transform:uppercase;
    letter-spacing:.5px;
    border-left:4px solid #2563eb;
    padding-left:10px;
}

.form-grid-2{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:15px;
}

.form-grid-3{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:15px;
}

.field label{
    display:block;
    font-size:12px;
    font-weight:600;
    margin-bottom:5px;
    color:#475569;
}

.field input,
.field select,
.field textarea{
    width:100%;
    padding:10px 12px;
    border:1px solid #e2e8f0;
    border-radius:8px;
    outline:none;
    font-size:14px;
    transition:.2s;
    background:#fff;
}

.field input:focus,
.field select:focus,
.field textarea:focus{
    border-color:#2563eb;
    box-shadow:0 0 0 3px rgba(37,99,235,.1);
}