:root{
    --bg:#f5f7fb;
    --card:#ffffff;
    --text:#111827;
    --muted:#6b7280;
    --border:#e5e7eb;
    --primary:#2563eb;
    --primary-2:#1d4ed8;
    --shadow: 0 8px 30px rgba(17,24,39,.08);
    --radius:16px;
}

body{
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Inter,Arial,sans-serif;
}

.container-app{
    padding-top: 0px; /* para el navbar fijo */
    padding-left: 12px;
    padding-right: 12px;
}

.card-ui{
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px;
    margin-bottom: 16px;
}

label{
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.form-control{
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: none;
    height: 42px;
}

textarea.form-control{
    height: 92px;
    resize: vertical;
}

.btn-primary{
    background: var(--primary);
    border-color: var(--primary);
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 600;
}
.btn-primary:hover{
    background: var(--primary-2);
    border-color: var(--primary-2);
}

.nav-tabs{
    border-bottom: 1px solid var(--border);
}
.nav-tabs>li>a{
    border: 0 !important;
    color: var(--muted);
    font-weight: 600;
}
.nav-tabs>li.active>a{
    color: var(--text) !important;
    background: transparent !important;
    border-bottom: 3px solid var(--primary) !important;
}

#calendario{
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 8px;
    margin-top: 0px;
}

/* Mobile */
@media (max-width: 992px){
    .container-app{ padding-top: 0px; }
    #calendario{ margin-top: 12px; }
}
#menu_top_modern{
    background:#fff;
    border:0;
    box-shadow: 0 8px 30px rgba(17,24,39,.08);
}

#menu_top_modern .navbar-brand{
    display:flex;
    align-items:center;
    gap:8px;
    font-weight:800;
    color:#111827 !important;
}

#menu_top_modern .brand-text{
    letter-spacing:.2px;
}

#menu_top_modern .navbar-nav>li>a{
    color:#374151 !important;
    font-weight:600;
}

#menu_top_modern .navbar-nav>li>a:hover{
    color:#111827 !important;
    background: transparent;
}

/* =========================================================
   LOGIN (login.html)
   Requiere envolver el form en #contenedor_login (ya existe)
   ========================================================= */

#contenedor_login{
    max-width: 520px;
    margin: 0 auto;
    padding: 0 12px;
}

/* Fondo tipo “app” y centrado vertical */
body{
    background: var(--bg);
}
body:before{
    content:"";
    position: fixed;
    inset: 0;
    background:
            radial-gradient(900px 500px at 15% 10%, rgba(37,99,235,.10), transparent 55%),
            radial-gradient(900px 500px at 85% 15%, rgba(29,78,216,.08), transparent 55%),
            radial-gradient(900px 600px at 50% 85%, rgba(17,24,39,.06), transparent 55%);
    pointer-events: none;
}

/* Convierto el container del login en “card” centrado */
#contenedor_login .container-fluid{
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px 20px;
    margin-top: 10vh;
}

/* Logo más limpio */
#logo_img{
    max-height: 70px;
    margin: 6px auto 10px;
}

/* En desktop tu grid (label col-md-4 + input col-md-4) se ve angosto,
   lo hacemos más “full” dentro del card sin tocar HTML */
#contenedor_login .form-horizontal .form-group{
    margin-left: 0;
    margin-right: 0;
}

#contenedor_login .control-label{
    text-align: left;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
    padding-top: 0;
}

/* Inputs: ya tienes estilos en .form-control, aquí solo afinamos para login */
#contenedor_login .form-control{
    height: 44px;
    font-size: 14px;
}

/* Botón grande y a lo ancho */
#contenedor_login .btn-primary{
    width: 100%;
    max-width: 340px;
    height: 44px;
    font-size: 15px;
}

/* Responsive: en móvil quitamos columnas Bootstrap 3 para que no se vea partido */
@media (max-width: 992px){
    #contenedor_login .col-md-4{
        width: 100%;
        float: none;
    }
    #contenedor_login .control-label{
        padding-left: 0;
        padding-right: 0;
    }
    #contenedor_login .container-fluid{
        margin-top: 7vh;
    }
}

/* =========================================================
   PACIENTES (DataTables) - look moderno sin romper Bootstrap 3
   ========================================================= */

.page-header-row{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    align-items:center;
    justify-content:space-between;
    margin-bottom: 14px;
}

.page-title{
    font-size: 18px;
    font-weight: 800;
    margin: 0;
}

.actions-left{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    align-items:center;
}

.checkbox-ui{
    display:flex;
    align-items:center;
    gap:10px;
    color: var(--text);
    font-weight: 600;
    margin: 0;
}

.checkbox-ui input[type="checkbox"]{
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

/* Card wrapper para tablas */
.table-card{
    padding: 14px;
}

/* DataTables */
.dataTables_wrapper{
    margin-top: 8px;
}

.dataTables_filter input,
.dataTables_length select{
    border: 1px solid var(--border);
    border-radius: 12px;
    height: 38px;
    padding: 6px 10px;
    outline: none;
    box-shadow: none;
}

.dataTables_filter input{
    width: 240px;
}

.dataTables_length select{
    min-width: 70px;
}

table.dataTable{
    border-collapse: separate !important;
    border-spacing: 0;
    width: 100% !important;
    margin-top: 12px !important;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}

table.dataTable thead th{
    background: #f9fafb;
    color: var(--text);
    font-weight: 800;
    border-bottom: 1px solid var(--border) !important;
    padding: 12px 10px !important;
}

table.dataTable tbody td{
    padding: 12px 10px !important;
    border-bottom: 1px solid var(--border);
    color: #111827;
}

table.dataTable tbody tr:hover{
    background: rgba(37,99,235,.04);
}

/* Paginação */
.dataTables_paginate .paginate_button{
    border-radius: 10px !important;
    border: 1px solid var(--border) !important;
    background: #fff !important;
    margin: 0 3px;
    padding: 6px 10px !important;
    color: #111827 !important;
}

.dataTables_paginate .paginate_button.current{
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}

.dataTables_info{
    color: var(--muted);
    margin-top: 10px;
}

.dataTables_processing{
    background: rgba(255,255,255,.85) !important;
    border: 1px solid var(--border) !important;
    border-radius: 14px !important;
    box-shadow: var(--shadow) !important;
    padding: 14px !important;
}

/* Responsive: en móvil hacemos el buscador full */
@media (max-width: 768px){
    .dataTables_filter input{ width: 100%; }
    .page-header-row{ gap: 10px; }
    .actions-left{ width: 100%; justify-content: space-between; }
}

/* =========================================================
   CITAS (citas.php)
   ========================================================= */

.toolbar-ui{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    align-items:flex-end;
    justify-content:space-between;
    margin-bottom: 14px;
}

.toolbar-ui .left{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    align-items:flex-end;
}

.toolbar-ui .right{
    display:flex;
    gap:10px;
    align-items:center;
}

.field-ui{
    display:flex;
    flex-direction:column;
    gap:6px;
    min-width: 240px;
}

.field-ui label{
    margin:0;
    font-weight:800;
    color: var(--text);
}

.field-ui input{
    border: 1px solid var(--border);
    border-radius: 12px;
    height: 42px;
    padding: 8px 10px;
    outline: none;
}

.badge-ui{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    color: var(--muted);
    font-weight: 700;
}

/* Tabla */
.table-ui{
    width:100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

.table-ui thead th{
    background: #f9fafb;
    color: var(--text);
    font-weight: 900;
    padding: 12px 10px;
    border-bottom: 1px solid var(--border);
}

.table-ui tbody td{
    padding: 12px 10px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.table-ui tbody tr:hover{
    background: rgba(37,99,235,.04);
}

.table-ui tfoot td{
    padding: 12px 10px;
    color: var(--muted);
    font-weight: 700;
}

/* Botón imprimir: que use el estilo del app */
.btn-print{
    border-radius: 12px;
    height: 42px;
    padding: 10px 14px;
    font-weight: 800;
    border: 1px solid var(--border);
    background: #fff;
}
.btn-print:hover{
    border-color: var(--primary);
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px){
    .field-ui{ min-width: 100%; }
    .toolbar-ui .right{ width:100%; justify-content:flex-start; }
    .badge-ui{ width:100%; justify-content:flex-start; }
}

/* =========================================================
   ADMINISTRADORES (administradores.php)
   ========================================================= */

.table-actions{
    display:flex;
    gap:10px;
    align-items:center;
}

.icon-btn{
    display:inline-flex;
    width: 34px;
    height: 34px;
    align-items:center;
    justify-content:center;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
}

.icon-btn:hover{
    border-color: var(--primary);
    transform: translateY(-1px);
}

.icon-btn img{
    width: 16px;
    height: 16px;
}

.page-header-row{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    align-items:center;
    justify-content:space-between;
    margin-bottom: 14px;
}

.page-title{
    font-size: 18px;
    font-weight: 800;
    margin: 0;
}

/* Reutiliza estilos DataTables modernos (si ya pegaste los de pacientes, esto es extra-safe) */
table.table-ui{
    width:100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

table.table-ui thead th{
    background: #f9fafb;
    color: var(--text);
    font-weight: 900;
    padding: 12px 10px;
    border-bottom: 1px solid var(--border);
}

table.table-ui tbody td{
    padding: 12px 10px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

table.table-ui tbody tr:hover{
    background: rgba(37,99,235,.04);
}

.dataTables_filter input,
.dataTables_length select{
    border: 1px solid var(--border);
    border-radius: 12px;
    height: 38px;
    padding: 6px 10px;
    outline: none;
    box-shadow: none;
}

.dataTables_paginate .paginate_button{
    border-radius: 10px !important;
    border: 1px solid var(--border) !important;
    background: #fff !important;
    margin: 0 3px;
    padding: 6px 10px !important;
    color: #111827 !important;
}

.dataTables_paginate .paginate_button.current{
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}

/* Responsive */
@media (max-width: 768px){
    .dataTables_filter input{ width: 100%; }
}

/* =========================================================
   PACIENTES EN ESPERA (pacientes_espera.php)
   ========================================================= */

.page-header-row{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    align-items:center;
    justify-content:space-between;
    margin-bottom: 14px;
}

.page-title{
    font-size: 18px;
    font-weight: 800;
    margin: 0;
}

/* Tabla UI */
table.table-ui{
    width:100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

table.table-ui thead th{
    background: #f9fafb;
    color: var(--text);
    font-weight: 900;
    padding: 12px 10px;
    border-bottom: 1px solid var(--border);
}

table.table-ui tbody td{
    padding: 12px 10px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

table.table-ui tbody tr:hover{
    background: rgba(37,99,235,.04);
}

/* Botones de acción */
.icon-btn{
    display:inline-flex;
    width: 32px;
    height: 32px;
    align-items:center;
    justify-content:center;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}

.icon-btn:hover{
    border-color: var(--primary);
    transform: translateY(-1px);
}

.icon-btn img{
    width: 15px;
    height: 15px;
}

/* DataTables */
.dataTables_filter input,
.dataTables_length select{
    border: 1px solid var(--border);
    border-radius: 12px;
    height: 38px;
    padding: 6px 10px;
}

.dataTables_paginate .paginate_button{
    border-radius: 10px !important;
    border: 1px solid var(--border) !important;
    background: #fff !important;
    margin: 0 3px;
    padding: 6px 10px !important;
}

.dataTables_paginate .paginate_button.current{
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}

/* Modal búsqueda */
.fixed_form{
    border-radius: 16px;
    box-shadow: var(--shadow);
}

/* Responsive */
@media (max-width: 768px){
    .dataTables_filter input{
        width:100%;
    }
}

/* =========================================================
   NUEVO PACIENTE (nuevo.php)
   ========================================================= */

.form-card{
    max-width: 720px;
    margin: 0 auto;
}

.form-title{
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 18px;
    text-align: center;
}

/* Form layout */
.form-ui{
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.form-group-ui{
    width: 100%;
}

.form-group-half{
    width: calc(50% - 7px);
}

.form-group-ui label{
    font-weight: 700;
    margin-bottom: 6px;
    display: block;
}

.form-control-ui{
    width: 100%;
    height: 42px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 14px;
}

.form-control-ui:focus{
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(37,99,235,.12);
}

.form-actions{
    width: 100%;
    text-align: center;
    margin-top: 16px;
}

.form-actions .btn{
    min-width: 160px;
}

/* jQuery UI datepicker tweak */
.ui-datepicker{
    border-radius: 14px;
    box-shadow: var(--shadow);
}

/* Responsive */
@media (max-width: 768px){
    .form-group-half{
        width: 100%;
    }
}

/* =========================
   PERFIL PACIENTE
========================= */

.profile-grid{
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 16px;
}

@media (max-width: 991px){
    .profile-grid{ grid-template-columns: 1fr; }
}

.profile-card{
    padding: 16px;
}

.profile-title{
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.profile-subtitle{
    font-size: 14px;
    opacity: .85;
    margin: 0 0 14px 0;
}

.profile-fields{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 480px){
    .profile-fields{ grid-template-columns: 1fr; }
}

.profile-field label{
    display:block;
    font-size: 12px;
    opacity: .85;
    margin-bottom: 6px;
}

.profile-field input{
    width: 100%;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,.12);
    padding: 8px 10px;
    background: #fff;
}

.profile-field--full{
    grid-column: 1 / -1;
}

.section-card{
    padding: 16px;
}

.section-head{
    display:flex;
    align-items:center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.section-head h2{
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

/* DataTables wrapper para que no se desborde feo */
.table-wrap{
    overflow: auto;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,.08);
}

/* Modal / formulario flotante de observación (reemplaza fixed_form antiguo) */
.modal-mask{
    display:none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 9998;
}

.modal-card{
    width: 520px;
    max-width: calc(100% - 24px);
    background: #fff;
    border-radius: 14px;
    padding: 14px;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    box-shadow: 0 16px 50px rgba(0,0,0,.2);
}

.modal-head{
    display:flex;
    align-items:center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.modal-head h3{
    margin:0;
    font-size: 16px;
    font-weight: 700;
}

.modal-close{
    border: 0;
    background: transparent;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.modal-card textarea{
    width: 100%;
    height: 120px;
    resize: vertical;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,.12);
    padding: 10px;
}

.modal-actions{
    display:flex;
    justify-content:flex-end;
    gap: 10px;
    margin-top: 10px;
}

/* =========================
   FullCalendar v3 - Modern UI Skin
   Pégalo en css/app.css
   ========================= */

/* Card wrapper */
#calendario {
    background: #fff;
    border: 1px solid #e6e9ef;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(17, 24, 39, .06);
    overflow: hidden;
}

/* Quitar bordes duros del theme default */
.fc-unthemed .fc-divider,
.fc-unthemed .fc-popover,
.fc-unthemed .fc-row,
.fc-unthemed tbody,
.fc-unthemed td,
.fc-unthemed th,
.fc-unthemed thead {
    border-color: #eef1f6;
}

/* Toolbar */
.fc-toolbar.fc-header-toolbar {
    margin: 0;
    padding: 14px 16px;
    border-bottom: 1px solid #eef1f6;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

/* Título (fecha grande) */
.fc-toolbar h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
}

/* Botones (Día / Semana / Mes / Hoy / Prev / Next) */
.fc .fc-button {
    background: #fff;
    border: 1px solid #dbe3ee;
    color: #0f172a;
    font-weight: 700;
    text-shadow: none;
    box-shadow: none;
    padding: 7px 12px;
    line-height: 1.1;
    border-radius: 10px;
    transition: all .12s ease;
    outline: none !important;
}

/* Hover */
.fc .fc-button:hover {
    background: #f6f8fc;
    border-color: #cfd9ea;
}

/* Active (Día/Semana/Mes seleccionado) */
.fc .fc-state-active,
.fc .fc-button:active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
    box-shadow: 0 8px 16px rgba(37, 99, 235, .18);
}

/* Focus */
.fc .fc-button:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

/* Disabled */
.fc .fc-state-disabled {
    opacity: .55;
    cursor: not-allowed;
}

/* Grupo de botones que se pegan (evitar esquinas raras) */
.fc .fc-button-group .fc-button {
    border-radius: 10px !important;
    margin: 0 4px;
}

/* Ajuste de íconos prev/next */
.fc .fc-icon {
    top: 0;
}

/* Header del día (miércoles) */
.fc-unthemed .fc-head-container,
.fc-unthemed .fc-head {
    background: #f8fafc;
}

.fc-unthemed th.fc-day-header {
    padding: 10px 8px;
    font-weight: 800;
    color: #334155;
    text-transform: capitalize;
    font-size: 14px;
}

/* Columna horas (axis) */
.fc-time-grid .fc-axis {
    background: #fff;
}

.fc-time-grid .fc-time span {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}

/* Grid de slots: líneas más suaves */
.fc-time-grid .fc-slats td {
    border-top: 1px dashed #eef1f6;
}
.fc-time-grid .fc-slats .fc-minor td {
    border-top-style: solid;
    opacity: .55;
}

/* Resaltar HOY */
.fc-unthemed td.fc-today {
    background: rgba(37, 99, 235, .06);
}

.fc-unthemed th.fc-today {
    background: rgba(37, 99, 235, .10);
    color: #1d4ed8;
}

/* Barra roja “ahora” más elegante (si la usas) */
.fc .fc-now-indicator-line {
    border-color: #ef4444;
}
.fc .fc-now-indicator-arrow {
    border-color: #ef4444;
}

/* Eventos (citas) - look moderno */
.fc-event,
.fc-event-dot {
    border-radius: 10px;
}

.fc-time-grid-event.fc-event {
    border: none !important;
    padding: 6px 8px;
    box-shadow: 0 10px 20px rgba(2, 6, 23, .10);
}

.fc-time-grid-event .fc-content {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
}

/* Hora dentro del evento */
.fc-time-grid-event .fc-time {
    font-weight: 800;
    opacity: .95;
}

/* Hacer el scroll más “limpio” (Chrome/Edge) */
.fc-scroller {
    scrollbar-width: thin;           /* Firefox */
    scrollbar-color: #cbd5e1 #f8fafc; /* Firefox */
}
.fc-scroller::-webkit-scrollbar {
    width: 10px;
}
.fc-scroller::-webkit-scrollbar-track {
    background: #f8fafc;
}
.fc-scroller::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 12px;
    border: 2px solid #f8fafc;
}

/* Responsive: que no se rompa toolbar */
@media (max-width: 768px) {
    .fc-toolbar.fc-header-toolbar {
        padding: 10px 12px;
    }
    .fc-toolbar h2 {
        font-size: 18px;
    }
    .fc .fc-button {
        padding: 6px 10px;
        font-size: 12px;
    }
    .fc-toolbar .fc-left,
    .fc-toolbar .fc-center,
    .fc-toolbar .fc-right {
        float: none !important;
        text-align: left;
        margin: 6px 0;
    }
}

/* =========================
   Tabla UI - #tabla_citas
   ========================= */

.table-ui {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border: 1px solid #e6e9ef;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(17, 24, 39, .06);
}

/* Header */
.table-ui thead th {
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    color: #0f172a;
    font-weight: 800;
    font-size: 13px;
    padding: 12px 14px;
    border-bottom: 1px solid #eef1f6;
    text-transform: capitalize;
    letter-spacing: .02em;
    white-space: nowrap;
}

/* Body cells */
.table-ui tbody td {
    padding: 12px 14px;
    font-size: 13px;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

/* Zebra */
.table-ui tbody tr:nth-child(even) td {
    background: #fcfdff;
}

/* Hover */
.table-ui tbody tr:hover td {
    background: #f6f8fc;
}

/* Primera columna (hora) */
.table-ui tbody td:first-child {
    font-weight: 800;
    color: #0f172a;
    width: 90px;
    white-space: nowrap;
}

/* Email */
.table-ui tbody td:nth-child(3) {
    color: #1d4ed8;
    font-weight: 700;
}

/* Tel */
.table-ui tbody td:nth-child(4) {
    font-weight: 700;
    color: #0f172a;
}

/* Footer */
.table-ui tfoot td {
    padding: 12px 14px;
    font-size: 12px;
    font-weight: 800;
    color: #475569;
    background: #f8fafc;
    border-top: 1px solid #eef1f6;
}

/* Bordes redondeados reales en esquinas */
.table-ui thead tr th:first-child { border-top-left-radius: 14px; }
.table-ui thead tr th:last-child  { border-top-right-radius: 14px; }
.table-ui tfoot tr td:first-child { border-bottom-left-radius: 14px; }
.table-ui tfoot tr td:last-child  { border-bottom-right-radius: 14px; }

/* =========================
   Responsive: ocultar columnas
   ========================= */
@media (max-width: 768px) {
    .ocultar_sm {
        display: none;
    }

    .table-ui thead th,
    .table-ui tbody td,
    .table-ui tfoot td {
        padding: 10px 10px;
        font-size: 12px;
    }

    .table-ui tbody td:first-child {
        width: 70px;
    }
}

@media (max-width: 960px) {
    #calendario .fc-toolbar {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    #calendario .fc-left,
    #calendario .fc-center,
    #calendario .fc-right {
        float: none !important;
        width: 100%;
        text-align: center;
    }

    #calendario .fc-button-group,
    #calendario .fc-right {
        display: inline-flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px;
    }

    #calendario .fc button {
        padding: 6px 10px;
        font-size: 12px;
        line-height: 1.2;
    }
}

#calendario td.fc-axis.fc-time.fc-widget-content > span,
#calendario th.fc-axis.fc-widget-header {
  color: #333 !important;
}
