/* =====================================================
   vacaciones.css
   Complementa administracion.css — no lo sobreescribe.
   ===================================================== */

:root {
    --vac-purple: #8b5cf6;
    --vac-purple-light: #ede9fe;
    --green: #10b981;
    --red: #ef4444;
    --border: rgba(0,0,0,0.08);
    --radius: 10px;
    --shadow: 0 2px 10px rgba(0,0,0,0.07);
}

/* ─── LAYOUT ─── */
.vac-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 0;
    min-height: calc(100vh - 60px - 50px);
    background: linear-gradient(135deg, #f5f7fa 0%, #e5e9f2 100%);
}

/* ─── SIDEBAR ─── */
.vac-sidebar {
    background: #fff;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 2px 0 8px rgba(0,0,0,0.05);
}

.sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    background: #f8fafc;
}

.sidebar-header h3 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-header h3 i { color: var(--primary-blue); }

.sidebar-search {
    position: relative;
    display: flex;
    align-items: center;
}

.sidebar-search i {
    position: absolute;
    left: 0.65rem;
    color: #9ca3af;
    font-size: 0.8rem;
}

.sidebar-search input {
    width: 100%;
    padding: 0.5rem 0.75rem 0.5rem 2rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    font-size: 0.85rem;
    background: #fff;
    color: #1f2937;
    outline: none;
    transition: border-color 0.2s;
}

.sidebar-search input:focus { border-color: var(--primary-blue); }

.worker-list {
    list-style: none;
    overflow-y: auto;
    flex: 1;
}

.worker-list::-webkit-scrollbar { width: 4px; }
.worker-list::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 4px; }

.worker-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.worker-item:hover { background: #f8fafc; }

.worker-item.active {
    background: rgba(59,130,246,0.07);
    border-left-color: var(--primary-blue);
}

.worker-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #e2e8f0;
}

.worker-avatar-all {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(59,130,246,0.12);
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.worker-info { min-width: 0; }

.worker-name {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.worker-sub {
    display: block;
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 1px;
}

/* ─── ÁREA CENTRAL ─── */
.vac-main {
    padding: 1.25rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    overflow-y: auto;
    padding-bottom: 70px;
}

/* ─── TOPBAR ─── */
.vac-topbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    flex-wrap: wrap;
}

.vac-year-ctrl {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.year-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    color: #4b5563;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: all 0.2s;
}

.year-btn:hover { background: var(--primary-blue); color: #fff; border-color: var(--primary-blue); }

.year-label {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1f2937;
    min-width: 52px;
    text-align: center;
}

.vac-tabs {
    display: flex;
    gap: 0.25rem;
    flex: 1;
    flex-wrap: wrap;
}

.vtab {
    padding: 0.45rem 0.9rem;
    border-radius: 6px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    color: #4b5563;
    font-size: 0.83rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.vtab:hover { border-color: var(--primary-blue); color: var(--primary-blue); }

.vtab.active {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #fff;
    box-shadow: 0 2px 8px rgba(59,130,246,0.3);
}

.vac-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.btn-add-vac {
    padding: 0.45rem 1rem;
    border-radius: 6px;
    border: none;
    font-size: 0.83rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s;
}

.btn-add-vac {
    background: var(--vac-purple);
    color: #fff;
    box-shadow: 0 2px 8px rgba(139,92,246,0.3);
}

.btn-add-vac:hover { background: #7c3aed; transform: translateY(-1px); }

.btn-add-grd {
    padding: 0.45rem 1rem;
    border-radius: 6px;
    border: none;
    font-size: 0.83rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s;
    background: #0ea5e9;
    color: #fff;
    box-shadow: 0 2px 8px rgba(14,165,233,0.3);
}
.btn-add-grd:hover { background: #0284c7; transform: translateY(-1px); }


/* ─── KPI ROW ─── */
.kpi-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.kpi-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    border-top: 3px solid var(--kpi-color, var(--primary-blue));
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.kpi-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.1); }

.kpi-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--kpi-color, var(--primary-blue)) 12%, transparent);
    color: var(--kpi-color, var(--primary-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.kpi-num {
    display: block;
    font-size: 1.7rem;
    font-weight: 800;
    color: #1f2937;
    line-height: 1;
}

.kpi-lbl {
    display: block;
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* ─── TAB PANELS ─── */
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ─── CALENDARIO ─── */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.cal-month {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform 0.2s;
}

.cal-month:hover { transform: translateY(-2px); }

.cal-month-header {
    background: linear-gradient(135deg, var(--primary-blue), #2563eb);
    color: #fff;
    text-align: center;
    padding: 0.6rem;
    font-weight: 700;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
}

.cal-wd {
    text-align: center;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 2px;
    color: #9ca3af;
    text-transform: uppercase;
}

.cal-wd.weekend { color: #fca5a5; }

.cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #f1f5f9;
    padding: 1px;
}

.cal-day {
    background: #fff;
    text-align: center;
    font-size: 0.72rem;
    padding: 4px 2px;
    min-height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    position: relative;
    cursor: default;
    font-weight: 500;
    color: #374151;
    transition: background 0.15s;
}

.cal-day.empty { background: transparent; }

.cal-day.weekend { color: #d1d5db; }

.cal-day.today {
    background: #dbeafe;
    color: var(--primary-blue);
    font-weight: 800;
    border-radius: 50%;
}

/* Días con vacaciones */
.cal-day.has-vac {
    background: var(--vac-purple-light);
    color: var(--vac-purple);
    font-weight: 700;
}

.cal-day.has-vac.vac-start { border-radius: 50% 3px 3px 50%; }
.cal-day.has-vac.vac-end   { border-radius: 3px 50% 50% 3px; }
.cal-day.has-vac.vac-mid   { border-radius: 0; }
.cal-day.has-vac.vac-single{ border-radius: 50%; }


/* Leyenda */
.cal-legend {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: #4b5563;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-dot.vac  { background: var(--vac-purple); }
.legend-dot.today{ background: var(--primary-blue); }

/* ─── TABLAS ─── */
.table-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
}

.table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: #f8fafc;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.table-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.table-title i { color: var(--primary-blue); }

.table-sub { font-size: 0.82rem; color: #9ca3af; }

.table-filters { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.filter-select {
    padding: 0.4rem 0.75rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.82rem;
    color: #374151;
    background: #fff;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}

.filter-select:focus { border-color: var(--primary-blue); }

.table-wrap { overflow-x: auto; }

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.data-table thead th {
    background: #f1f5f9;
    color: #6b7280;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.65rem 1rem;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
    text-align: left;
}

.data-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s;
}

.data-table tbody tr:hover { background: #f8fafc; }

.data-table tbody td {
    padding: 0.65rem 1rem;
    color: #374151;
    vertical-align: middle;
}

.table-empty {
    text-align: center;
    padding: 3rem !important;
    color: #9ca3af;
    font-size: 0.9rem;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.badge-aprobada    { background: #d1fae5; color: #065f46; }
.badge-pendiente   { background: #fef3c7; color: #92400e; }
.badge-semana      { background: #e0f2fe; color: #0369a1; font-weight: 700; }
.badge-rechazada   { background: #fee2e2; color: #991b1b; }
.badge-tipo        { background: #ede9fe; color: #5b21b6; }

/* Pill trabajador */
.worker-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.worker-pill img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #e2e8f0;
}

.worker-pill-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.85rem;
}

/* Botón acción en tabla */
.btn-row-action {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.btn-row-action:hover { background: #fee2e2; border-color: #fecaca; color: #ef4444; }

/* ─── RESUMEN: barra de progreso ─── */
.progress-mini {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 99px;
    overflow: hidden;
    min-width: 80px;
}

.progress-mini-fill {
    height: 100%;
    border-radius: 99px;
    background: var(--vac-purple);
    transition: width 0.4s ease;
}

.resumen-table .dias-usados { color: var(--vac-purple); font-weight: 700; }
.resumen-table .dias-rest   { color: var(--green); font-weight: 700; }

/* ─── MODALES ─── */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.55);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-box {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 520px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.25s ease;
    max-height: 90vh;
    overflow: hidden;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1f2937;
}

.modal-head i { color: var(--vac-purple); margin-right: 0.4rem; }

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.modal-close:hover { background: #fee2e2; color: #ef4444; }

.modal-body {
    padding: 1.25rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-foot {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

/* Formulario dentro del modal */
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.form-group { display: flex; flex-direction: column; gap: 0.3rem; }

.form-group label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.req { color: #ef4444; }

.form-ctrl {
    padding: 0.6rem 0.85rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 7px;
    font-size: 0.88rem;
    color: #1f2937;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
    width: 100%;
}

.form-ctrl:focus { border-color: var(--primary-blue); }

textarea.form-ctrl { resize: vertical; min-height: 60px; }

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: #374151;
    cursor: pointer;
    font-weight: 500;
}

.checkbox-label input { width: 16px; height: 16px; accent-color: var(--vac-purple); }

/* Resumen días laborables */
.dias-resumen {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--vac-purple-light);
    border-radius: 8px;
    color: var(--vac-purple);
    font-size: 0.9rem;
}

.dias-resumen i { font-size: 1.1rem; }

/* Área de acciones rápidas dentro del modal detalle */
.modal-actions {
    display: flex;
    gap: 0.6rem;
    padding: 0 1.25rem 0.75rem;
    flex-wrap: wrap;
}

.modal-actions:empty { display: none; }

.btn-action {
    flex: 1;
    min-width: 130px;
    padding: 0.6rem 0.9rem;
    border-radius: 7px;
    border: none;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: all 0.2s;
}

.btn-action:disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; }

/* Aprobar vacaciones */
.btn-action.aprobar {
    background: #d1fae5;
    color: #065f46;
    border: 1.5px solid #6ee7b7;
}
.btn-action.aprobar:hover:not(:disabled) { background: #10b981; color: #fff; border-color: #10b981; transform: translateY(-1px); }

/* Rechazar vacaciones */
.btn-action.rechazar {
    background: #fee2e2;
    color: #991b1b;
    border: 1.5px solid #fca5a5;
}
.btn-action.rechazar:hover:not(:disabled) { background: #ef4444; color: #fff; border-color: #ef4444; transform: translateY(-1px); }

/* Pendiente (deshacer aprobación) */
.btn-action.pendiente {
    background: #fef3c7;
    color: #92400e;
    border: 1.5px solid #fcd34d;
}
.btn-action.pendiente:hover:not(:disabled) { background: #f59e0b; color: #fff; border-color: #f59e0b; transform: translateY(-1px); }

/* Marcar como pagada / compensada */
.btn-action.compensar {
    background: #d1fae5;
    color: #065f46;
    border: 1.5px solid #6ee7b7;
}
.btn-action.compensar:hover:not(:disabled) { background: #10b981; color: #fff; border-color: #10b981; transform: translateY(-1px); }

/* Marcar como pendiente de pago */
.btn-action.descompensar {
    background: #fef3c7;
    color: #92400e;
    border: 1.5px solid #fcd34d;
}
.btn-action.descompensar:hover:not(:disabled) { background: #f59e0b; color: #fff; border-color: #f59e0b; transform: translateY(-1px); }

/* Separador entre acciones rápidas y pie del modal */
.modal-actions + .modal-foot {
    border-top: 1px solid #e2e8f0;
}
    flex: 1;
    padding: 0.65rem;
    border-radius: 7px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    color: #4b5563;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel:hover { background: #f1f5f9; }

.btn-save {
    flex: 2;
    padding: 0.65rem;
    border-radius: 7px;
    border: none;
    background: var(--vac-purple);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(139,92,246,0.35);
}

.btn-save:hover { background: #7c3aed; transform: translateY(-1px); }
.btn-save:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.grd-save { background: #0ea5e9; box-shadow: 0 2px 8px rgba(14,165,233,0.35); }
.grd-save:hover { background: #0284c7; }

.grd-semana-info {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1rem;
    background: #e0f2fe;
    border-radius: 8px;
    color: #0369a1;
    font-size: 0.88rem;
    font-weight: 600;
    margin-top: 0.25rem;
}
.grd-semana-info i { font-size: 1rem; }


.btn-del {
    padding: 0.65rem 1.25rem;
    border-radius: 7px;
    border: 1.5px solid #fecaca;
    background: #fff;
    color: #ef4444;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s;
}

.btn-del:hover { background: #fee2e2; }

/* Detalle modal */
.detalle-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.detalle-item {
    background: #f8fafc;
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
}

.detalle-key {
    font-size: 0.72rem;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    display: block;
    margin-bottom: 0.2rem;
}

.detalle-val {
    font-size: 0.9rem;
    color: #1f2937;
    font-weight: 600;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1200px) {
    .calendar-grid { grid-template-columns: repeat(3, 1fr); }
    .kpi-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .vac-layout { grid-template-columns: 1fr; }

    .vac-sidebar {
        max-height: 220px;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .worker-list {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        max-height: none;
    }

    .worker-item {
        flex-shrink: 0;
        flex-direction: column;
        align-items: center;
        padding: 0.75rem;
        border-left: none;
        border-bottom: 3px solid transparent;
        text-align: center;
        gap: 0.3rem;
        min-width: 80px;
    }

    .worker-item.active {
        border-bottom-color: var(--primary-blue);
        background: rgba(59,130,246,0.05);
    }

    .worker-sub { display: none; }

    .calendar-grid { grid-template-columns: repeat(2, 1fr); }

    .vac-topbar { flex-wrap: wrap; }

    .vac-actions { width: 100%; justify-content: flex-end; }
}

@media (max-width: 600px) {
    .vac-main { padding: 0.75rem; }
    .kpi-row { grid-template-columns: repeat(2, 1fr); gap: 0.65rem; }
    .calendar-grid { grid-template-columns: 1fr 1fr; gap: 0.65rem; }
    .form-row-2 { grid-template-columns: 1fr; }
    .vac-tabs { gap: 0.15rem; }
    .vtab { font-size: 0.75rem; padding: 0.4rem 0.65rem; }
}

/* ── Edición de días de convenio ─────────────────── */
.convenio-badge {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
    margin-right: 6px;
}

.btn-edit-convenio {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 0.75rem;
    transition: color 0.2s, background 0.2s;
}

.btn-edit-convenio:hover {
    color: #818cf8;
    background: rgba(99, 102, 241, 0.12);
}
