:root {
    --erp-primary: #1e293b;
    --erp-primary-dark: #0f172a;
    --erp-primary-soft: #334155;
    --erp-accent: #2563eb;
    --erp-accent-hover: #1d4ed8;
    --erp-bg: #f4f6f9;
    --erp-card: #ffffff;
    --erp-border: #e2e8f0;
    --erp-text: #1f2937;
    --erp-muted: #64748b;
    --erp-success: #16a34a;
    --erp-warning: #f59e0b;
    --erp-danger: #dc2626;
    --erp-info: #0ea5e9;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--erp-bg);
    color: var(--erp-text);
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    font-size: 14px;
}

/* SIDEBAR */

.erp-sidebar {
    width: 270px;
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: linear-gradient(180deg, var(--erp-primary) 0%, var(--erp-primary-dark) 100%);
    color: #fff;
    box-shadow: 8px 0 24px rgba(15, 23, 42, 0.18);
    z-index: 1000;
}

.erp-logo {
    background: #ffffff;
    padding: 22px 18px;
    text-align: center;
    border-bottom: 1px solid var(--erp-border);
}

.erp-logo img {
    max-width: 210px;
    height: auto;
}

.erp-menu {
    padding: 18px 14px;
}

.erp-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #cbd5e1;
    text-decoration: none;
    padding: 13px 16px;
    margin-bottom: 6px;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.18s ease;
}

.erp-menu a i {
    width: 22px;
    font-size: 1.1rem;
    color: #93c5fd;
}

.erp-menu a:hover,
.erp-menu a.active {
    background: rgba(37, 99, 235, 0.22);
    color: #ffffff;
    transform: translateX(3px);
}

.erp-menu a:hover i,
.erp-menu a.active i {
    color: #ffffff;
}

/* CONTENT */

.erp-content {
    margin-left: 270px;
    padding: 26px;
    min-height: 100vh;
}

.erp-topbar {
    background: var(--erp-card);
    border: 1px solid var(--erp-border);
    border-radius: 16px;
    padding: 18px 24px;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.erp-topbar h4 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--erp-primary-dark);
}

.erp-topbar small {
    color: var(--erp-muted);
}

.erp-card {
    background: var(--erp-card);
    border: 1px solid var(--erp-border);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

/* TITLES */

h1, h2, h3, h4, h5 {
    color: var(--erp-primary-dark);
    font-weight: 700;
}

h1 {
    font-size: 1.8rem;
}

/* BUTTONS */

.btn {
    border-radius: 10px;
    font-weight: 500;
}

.btn-primary {
    background: var(--erp-accent);
    border-color: var(--erp-accent);
}

.btn-primary:hover {
    background: var(--erp-accent-hover);
    border-color: var(--erp-accent-hover);
}

.btn-warning {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #111827;
}

.btn-danger {
    background: var(--erp-danger);
    border-color: var(--erp-danger);
}

.btn-success {
    background: var(--erp-success);
    border-color: var(--erp-success);
}

.btn-light {
    background: #f8fafc;
    border-color: var(--erp-border);
}

/* TABLES */

.table {
    background: #ffffff;
    border-color: var(--erp-border);
    vertical-align: middle;
}

.table thead th {
    background: #f8fafc;
    color: var(--erp-primary);
    font-weight: 700;
    border-bottom: 1px solid var(--erp-border);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
}

.table-bordered > :not(caption) > * {
    border-color: var(--erp-border);
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: #f9fafb;
}

/* FORMS */

.form-control,
.form-select {
    border-radius: 10px;
    border-color: #cbd5e1;
    padding: 10px 12px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--erp-accent);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}

.form-label,
label {
    font-weight: 600;
    color: var(--erp-primary);
}

/* ALERTS */

.alert {
    border-radius: 14px;
    border: 0;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

/* BADGES */

.badge {
    border-radius: 999px;
    padding: 0.45em 0.7em;
    font-weight: 600;
}

/* KPI CARDS */

.kpi-card {
    background: #ffffff;
    border: 1px solid var(--erp-border);
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    position: relative;
    overflow: hidden;
}

.kpi-card::after {
    content: "";
    position: absolute;
    right: -35px;
    top: -35px;
    width: 110px;
    height: 110px;
    background: rgba(37, 99, 235, 0.08);
    border-radius: 50%;
}

.kpi-title {
    color: var(--erp-muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.kpi-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--erp-primary-dark);
}

.kpi-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dbeafe;
    color: var(--erp-accent);
    font-size: 1.4rem;
}

/* CALENDARS */

.calendario-cuadrante td,
.calendario-vacaciones td {
    width: 14.28%;
    background: #ffffff;
}

.calendario-cuadrante td:hover,
.calendario-vacaciones td:hover {
    background: #f8fafc;
}

.calendar-day-number {
    font-weight: 800;
    color: var(--erp-primary-dark);
}

.estado-t {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.estado-d {
    background: #e5e7eb;
    color: #374151;
    border: 1px solid #d1d5db;
}

.estado-v {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.estado-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* LOGIN SHIELD / AUTH */

.auth-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #2563eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-card {
    width: 430px;
    background: #ffffff;
    border-radius: 22px;
    padding: 34px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
}

.auth-logo {
    text-align: center;
    margin-bottom: 26px;
}

.auth-logo img {
    max-width: 230px;
}

/* RESPONSIVE */

@media (max-width: 992px) {
    .erp-sidebar {
        position: relative;
        width: 100%;
        min-height: auto;
    }

    .erp-content {
        margin-left: 0;
        padding: 16px;
    }

    .erp-menu {
        display: flex;
        overflow-x: auto;
        gap: 8px;
    }

    .erp-menu a {
        white-space: nowrap;
    }

    .erp-topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* FOOTER */

.erp-footer {
    margin-top: 25px;
    padding: 18px 24px;
    background: #ffffff;
    border: 1px solid var(--erp-border);
    border-radius: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--erp-muted);
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.erp-footer a {
    color: var(--erp-accent);
    text-decoration: none;
    font-weight: 600;
}

.erp-footer a:hover {
    color: var(--erp-accent-hover);
}

@media (max-width: 768px) {
    .erp-footer {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

.dashboard-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #2563eb 100%);
    color: #ffffff;
    border-radius: 24px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
    position: relative;
    overflow: hidden;
}

.dashboard-hero::after {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    right: -80px;
    top: -80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.09);
}

.dashboard-hero h1 {
    color: #ffffff;
    font-weight: 800;
}

.dashboard-hero p {
    color: #cbd5e1;
}

.dashboard-eyebrow {
    display: inline-block;
    color: #bfdbfe;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .78rem;
    margin-bottom: 8px;
}

.dashboard-status {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 18px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 240px;
    position: relative;
    z-index: 2;
}

.dashboard-status i {
    font-size: 2rem;
}

.dashboard-status span {
    display: block;
    color: #dbeafe;
    font-size: .85rem;
}

.status-ok i {
    color: #86efac;
}

.status-alert i {
    color: #fcd34d;
}

.section-card {
    background: #ffffff;
    border: 1px solid var(--erp-border);
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.section-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 22px;
}

.section-header h3 {
    margin: 0;
    font-size: 1.15rem;
}

.section-header p {
    margin: 4px 0 0;
    color: var(--erp-muted);
}

.section-badge {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 700;
    white-space: nowrap;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.info-item {
    background: #f8fafc;
    border: 1px solid var(--erp-border);
    border-radius: 16px;
    padding: 16px;
}

.info-label {
    color: var(--erp-muted);
    font-weight: 700;
    text-transform: uppercase;
    font-size: .72rem;
    letter-spacing: .05em;
    margin-bottom: 6px;
}

.info-value {
    color: var(--erp-primary-dark);
    font-weight: 700;
}

.progress-block span {
    color: var(--erp-muted);
    font-weight: 700;
}

.progress {
    height: 10px;
    border-radius: 999px;
    background: #e5e7eb;
    margin-top: 8px;
}

.progress-bar {
    background: #2563eb;
    border-radius: 999px;
}

.progress-bar-alt {
    background: #7c3aed;
}

.legend-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid var(--erp-border);
    border-radius: 16px;
    padding: 14px;
}

.legend-item small {
    display: block;
    color: var(--erp-muted);
}

.legend-code {
    min-width: 46px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.estado-ok {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.rules-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rule-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #f8fafc;
    border: 1px solid var(--erp-border);
    border-radius: 16px;
    padding: 14px;
}

.rule-item span {
    min-width: 32px;
    height: 32px;
    background: #1e293b;
    color: #ffffff;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.rule-item p {
    margin: 0;
    font-weight: 600;
    color: var(--erp-primary-dark);
}

.kpi-ok .kpi-icon {
    background: #dcfce7;
    color: #16a34a;
}

.kpi-danger .kpi-icon {
    background: #fee2e2;
    color: #dc2626;
}

.kpi-subtitle {
    color: var(--erp-muted);
    font-weight: 600;
}

@media (max-width: 992px) {
    .dashboard-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-status {
        width: 100%;
    }

    .info-grid,
    .legend-grid {
        grid-template-columns: 1fr;
    }
}

/*EMPLEADOS*/
.module-hero {
    background: linear-gradient(135deg, #111827 0%, #1e293b 60%, #2563eb 100%);
    color: #ffffff;
    border-radius: 24px;
    padding: 28px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.20);
    position: relative;
    overflow: hidden;
}

.module-hero::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -70px;
    top: -80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.module-hero h1 {
    color: #ffffff;
    font-weight: 800;
}

.module-hero p {
    color: #cbd5e1;
}

.module-hero > * {
    position: relative;
    z-index: 2;
}

.erp-data-table {
    border-collapse: separate;
    border-spacing: 0 8px;
}

.erp-data-table thead th {
    border: 0;
    background: transparent;
    color: var(--erp-muted);
}

.erp-data-table tbody tr {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.erp-data-table tbody td {
    background: #ffffff;
    border-top: 1px solid var(--erp-border);
    border-bottom: 1px solid var(--erp-border);
    padding: 16px 14px;
}

.erp-data-table tbody td:first-child {
    border-left: 1px solid var(--erp-border);
    border-radius: 14px 0 0 14px;
}

.erp-data-table tbody td:last-child {
    border-right: 1px solid var(--erp-border);
    border-radius: 0 14px 14px 0;
}

.employee-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.employee-cell strong {
    display: block;
    color: var(--erp-primary-dark);
    font-size: 0.98rem;
}

.employee-cell small {
    color: var(--erp-muted);
}

.employee-avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.employee-type,
.status-pill,
.hours-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 11px;
    font-weight: 700;
    font-size: 0.82rem;
}

.badge-type-factory {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.badge-type-route {
    background: #f5f3ff;
    color: #6d28d9;
    border: 1px solid #ddd6fe;
}

.badge-type-default {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.hours-pill {
    background: #f8fafc;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.status-active {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.status-inactive {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.empty-state {
    color: var(--erp-muted);
}

.empty-state i {
    font-size: 3rem;
    color: #cbd5e1;
}

.empty-state h5 {
    margin-top: 12px;
    color: var(--erp-primary-dark);
}

@media (max-width: 768px) {
    .module-hero {
        flex-direction: column;
        align-items: flex-start;
    }
}
css
.employee-status-card{
    display:flex;
    gap:15px;
    align-items:center;
}

.employee-status-icon{
    width:70px;
    height:70px;
    border-radius:18px;
    background:#dbeafe;
    color:#2563eb;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:2rem;
}

.employee-status-card h5{
    margin-bottom:4px;
    font-weight:700;
}

.employee-status-card p{
    margin:0;
    color:var(--erp-muted);
}

.employee-info-box{
    background:#f8fafc;
    border:1px solid var(--erp-border);
    border-radius:16px;
    padding:16px;
}

.employee-info-box h6{
    margin-bottom:12px;
    font-weight:700;
}

.employee-info-box ul{
    margin:0;
    padding-left:18px;
}

.employee-info-box li{
    margin-bottom:8px;
    color:var(--erp-muted);
}

.form-switch .form-check-input{
    width:3rem;
    height:1.5rem;
}
/*VACACIONES*/
.calendar-legend{
    display:flex;
    gap:18px;
    flex-wrap:wrap;
    color:var(--erp-muted);
    font-weight:700;
}

.vacaciones-calendar{
    border-collapse:separate;
    border-spacing:8px;
    background:transparent;
}

.vacaciones-calendar thead th{
    text-align:center;
    background:#f8fafc;
    border:1px solid var(--erp-border);
    border-radius:12px;
    padding:12px;
    color:var(--erp-primary);
}

.vacaciones-calendar tbody td{
    width:14.28%;
    height:160px;
    vertical-align:top;
    background:#ffffff;
    border:1px solid var(--erp-border);
    border-radius:16px;
    padding:12px;
    box-shadow:0 4px 12px rgba(15,23,42,.04);
}

.vacaciones-calendar tbody td:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 20px rgba(15,23,42,.08);
    transition:.2s ease;
}

.calendar-empty{
    background:#f1f5f9 !important;
    box-shadow:none !important;
}

.calendar-today{
    border:2px solid #2563eb !important;
    background:#eff6ff !important;
}

.calendar-day-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:10px;
}

.calendar-day-number{
    font-size:1.05rem;
    font-weight:800;
    color:var(--erp-primary-dark);
}

.calendar-count{
    min-width:24px;
    height:24px;
    border-radius:999px;
    background:#f59e0b;
    color:#111827;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-weight:800;
    font-size:.75rem;
}

.vacation-items{
    display:flex;
    flex-direction:column;
    gap:7px;
}

.vacation-chip{
    display:flex;
    gap:8px;
    align-items:center;
    background:#fffbeb;
    border:1px solid #fde68a;
    border-radius:12px;
    padding:7px;
}

.vacation-avatar{
    width:30px;
    height:30px;
    border-radius:10px;
    background:#f59e0b;
    color:#111827;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:900;
    flex-shrink:0;
}

.vacation-info strong{
    display:block;
    font-size:.82rem;
    line-height:1.1;
    color:#78350f;
}

.vacation-info small{
    color:#92400e;
    font-weight:700;
}

.status-pending{
    background:#fef3c7;
    color:#92400e;
    border:1px solid #fde68a;
}

.status-rejected{
    background:#fee2e2;
    color:#991b1b;
    border:1px solid #fecaca;
}

@media(max-width:992px){
    .vacaciones-calendar{
        min-width:900px;
    }
}

css
.vacation-preview-card{
    display:flex;
    align-items:center;
    gap:15px;
    background:#eff6ff;
    border:1px solid #bfdbfe;
    border-radius:18px;
    padding:18px;
}

.vacation-preview-icon{
    width:65px;
    height:65px;
    border-radius:16px;
    background:#2563eb;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:1.8rem;
}

.vacation-preview-card h5{
    margin-bottom:5px;
    font-weight:700;
}

.vacation-preview-card p{
    margin:0;
    color:#475569;
}

.vacation-status-box{
    display:flex;
    gap:15px;
    align-items:center;
}

.vacation-status-icon{
    width:70px;
    height:70px;
    border-radius:18px;
    background:#dcfce7;
    color:#16a34a;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:2rem;
}

.vacation-status-box h5{
    margin-bottom:4px;
    font-weight:700;
}

.vacation-status-box p{
    margin:0;
    color:var(--erp-muted);
}
/*CUADRANTE*/
.cuadrante-calendar {
    border-collapse: separate;
    border-spacing: 8px;
    background: transparent;
}

.cuadrante-calendar thead th {
    text-align: center;
    background: #f8fafc;
    border: 1px solid var(--erp-border);
    border-radius: 12px;
    padding: 12px;
    color: var(--erp-primary);
}

.cuadrante-calendar tbody td {
    width: 14.28%;
    min-width: 210px;
    height: 165px;
    vertical-align: top;
    background: #ffffff;
    border: 1px solid var(--erp-border);
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(15,23,42,.04);
}

.cuadrante-calendar tbody td:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15,23,42,.08);
    transition: .2s ease;
}

.cuadrante-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cuadrante-chip {
    border-radius: 13px;
    padding: 9px;
    border: 1px solid;
}

.cuadrante-chip strong {
    display: block;
    margin-top: 5px;
    color: var(--erp-primary-dark);
}

.cuadrante-chip small {
    display: block;
    margin-top: 2px;
    font-weight: 600;
}

.cuadrante-chip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cuadrante-state {
    min-width: 28px;
    height: 24px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: .76rem;
}

.cuadrante-actions {
    display: flex;
    gap: 6px;
}

.cuadrante-actions a {
    color: #64748b;
    font-size: .85rem;
}

.cuadrante-actions a:hover {
    color: #2563eb;
}

.cuadrante-status-work {
    background: #dbeafe;
    color: #1e40af;
    border-color: #bfdbfe;
}

.cuadrante-status-rest {
    background: #f1f5f9;
    color: #475569;
    border-color: #cbd5e1;
}

.cuadrante-status-vacation {
    background: #fef3c7;
    color: #92400e;
    border-color: #fde68a;
}

.cuadrante-status-default {
    background: #f8fafc;
    color: #64748b;
    border-color: #e2e8f0;
}

.calendar-day-link {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: #2563eb;
    text-decoration: none;
}

.calendar-day-link:hover {
    background: #2563eb;
    color: #ffffff;
}

.legend-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

.dot-work {
    background: #2563eb;
}

.dot-rest {
    background: #64748b;
}

.dot-vacation {
    background: #f59e0b;
}

.search-box {
    position: relative;
}

.search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--erp-muted);
    z-index: 2;
}

.search-box input {
    padding-left: 42px;
}

@media(max-width:992px){
    .cuadrante-calendar {
        min-width: 1200px;
    }
}

.funcion-badge{
    display:inline-flex;
    align-items:center;
    gap:6px;
    border-radius:999px;
    padding:6px 12px;
    font-weight:700;
    font-size:.80rem;
    border:1px solid;
}

.funcion-freidor{
    background:#fee2e2;
    color:#991b1b;
    border-color:#fecaca;
}

.funcion-cortador{
    background:#dbeafe;
    color:#1d4ed8;
    border-color:#bfdbfe;
}

.funcion-masas{
    background:#fef3c7;
    color:#92400e;
    border-color:#fde68a;
}

.funcion-reposteria{
    background:#f3e8ff;
    color:#7e22ce;
    border-color:#e9d5ff;
}

.funcion-bolsas{
    background:#dcfce7;
    color:#166534;
    border-color:#bbf7d0;
}

.funcion-cajas{
    background:#e0f2fe;
    color:#0369a1;
    border-color:#bae6fd;
}

.funcion-repartidor{
    background:#ede9fe;
    color:#5b21b6;
    border-color:#ddd6fe;
}

.funcion-cobrador{
    background:#fef2f2;
    color:#b91c1c;
    border-color:#fecaca;
}

.funcion-default{
    background:#f8fafc;
    color:#475569;
    border-color:#e2e8f0;
}

.date-filter-info {
    width: 100%;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    border-radius: 14px;
    padding: 11px 14px;
    font-weight: 700;
}

.date-filter-info i {
    margin-right: 6px;
}
/* CUADRANTE COMPACTO */

.cuadrante-calendar tbody td {
    min-width: 165px;
    height: 165px;
    padding: 8px;
}

.calendar-day-header {
    margin-bottom: 6px;
}

.calendar-day-number {
    font-size: 0.9rem;
}

.calendar-day-link {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    font-size: 0.75rem;
}

.cuadrante-items {
    gap: 5px;
}

.cuadrante-chip {
    padding: 6px;
    border-radius: 10px;
    font-size: 0.72rem;
}

.cuadrante-chip strong {
    margin-top: 3px;
    font-size: 0.76rem;
    line-height: 1.1;
}

.cuadrante-chip small {
    font-size: 0.68rem;
    line-height: 1.1;
}

.cuadrante-state {
    min-width: 22px;
    height: 20px;
    font-size: 0.65rem;
}

.cuadrante-actions a {
    font-size: 0.7rem;
}

.funcion-badge {
    padding: 3px 7px;
    font-size: 0.68rem;
    gap: 4px;
}

css
.estado-preview{
    display:flex;
    gap:15px;
    align-items:center;
    padding:18px;
    border-radius:18px;
    border:1px solid;
}

.estado-preview-icon{
    width:65px;
    height:65px;
    border-radius:16px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:1.8rem;
    color:#fff;
}

.estado-preview h5{
    margin-bottom:4px;
    font-weight:700;
}

.estado-preview p{
    margin:0;
    font-size:.9rem;
}

.estado-trabaja{
    background:#eff6ff;
    border-color:#bfdbfe;
}

.estado-trabaja .estado-preview-icon{
    background:#2563eb;
}

.estado-descanso{
    background:#f8fafc;
    border-color:#cbd5e1;
}

.estado-descanso .estado-preview-icon{
    background:#64748b;
}

.estado-vacaciones{
    background:#fffbeb;
    border-color:#fde68a;
}

.estado-vacaciones .estado-preview-icon{
    background:#f59e0b;
}
/* PROPUESTAS */
css
.status-approved{
    background:#dcfce7;
    color:#166534;
    border:1px solid #bbf7d0;
}

.error-chip{
    display:flex;
    align-items:center;
    gap:6px;
    margin-bottom:4px;
    padding:5px 8px;
    border-radius:10px;
    background:#fee2e2;
    color:#991b1b;
    font-size:.75rem;
    font-weight:600;
}

.error-chip i{
    color:#dc2626;
}
css
.validation-box{
    display:flex;
    gap:15px;
    align-items:center;
}

.validation-icon{
    width:70px;
    height:70px;
    border-radius:18px;
    background:#dbeafe;
    color:#2563eb;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:2rem;
}

.validation-box h5{
    margin-bottom:4px;
    font-weight:700;
}

.validation-box p{
    margin:0;
    color:var(--erp-muted);
}

.change-card{
    display:flex;
    gap:20px;
    align-items:flex-start;
    padding:20px;
    border:1px solid var(--erp-border);
    border-radius:18px;
    background:#fafbfc;
    margin-bottom:15px;
}

.change-number{
    min-width:50px;
    width:50px;
    height:50px;
    border-radius:14px;
    background:#2563eb;
    color:#fff;
    font-size:1.1rem;
    font-weight:800;
    display:flex;
    align-items:center;
    justify-content:center;
}

.change-card:hover{
    border-color:#2563eb;
    background:#f8fbff;
}
/*USUARIOS*/
.user-avatar{
    width:42px;
    height:42px;
    border-radius:14px;
    background:linear-gradient(135deg,#0f172a,#2563eb);
    color:#fff;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-weight:800;
}

.role-pill{
    display:inline-flex;
    align-items:center;
    border-radius:999px;
    padding:7px 11px;
    font-weight:700;
    font-size:.82rem;
    border:1px solid;
}

.role-admin{
    background:#fee2e2;
    color:#991b1b;
    border-color:#fecaca;
}

.role-rrhh{
    background:#dbeafe;
    color:#1d4ed8;
    border-color:#bfdbfe;
}

.role-consulta{
    background:#dcfce7;
    color:#166534;
    border-color:#bbf7d0;
}

.role-none{
    background:#f8fafc;
    color:#64748b;
    border-color:#e2e8f0;
}

.role-preview{
    display:flex;
    align-items:center;
    gap:15px;
    padding:18px;
    border-radius:18px;
    border:1px solid;
}

.role-preview-icon{
    width:65px;
    height:65px;
    border-radius:16px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    font-size:1.8rem;
}

.role-preview h5{
    margin-bottom:4px;
    font-weight:700;
}

.role-preview p{
    margin:0;
    color:var(--erp-muted);
}

.role-admin-preview{
    background:#fee2e2;
    border-color:#fecaca;
}

.role-admin-preview .role-preview-icon{
    background:#dc2626;
}

.role-rrhh-preview{
    background:#dbeafe;
    border-color:#bfdbfe;
}

.role-rrhh-preview .role-preview-icon{
    background:#2563eb;
}

.role-consulta-preview{
    background:#dcfce7;
    border-color:#bbf7d0;
}

.role-consulta-preview .role-preview-icon{
    background:#16a34a;
}

.security-tips {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.security-tip {
    background: #f8fafc;
    border: 1px solid var(--erp-border);
    border-radius: 14px;
    padding: 12px 14px;
    font-weight: 600;
    color: var(--erp-primary-dark);
}

.security-tip i {
    color: #16a34a;
    margin-right: 8px;
}


.sidebar-user-card{
    display:flex;
    align-items:center;
    gap:12px;
    padding:15px;
    margin:15px;
    border-radius:16px;
    background:rgba(255,255,255,.08);
}

.sidebar-avatar{
    font-size:2.3rem;
    color:#fff;
}

.sidebar-user-info{
    flex:1;
}

.sidebar-user-name{
    color:#fff;
    font-weight:700;
    font-size:.95rem;
}

.sidebar-user-role{
    color:rgba(255,255,255,.7);
    font-size:.8rem;
}

.sidebar-footer{
    position:absolute;
    bottom:20px;
    left:15px;
    right:15px;
}

.sidebar-menu li a{
    display:flex;
    align-items:center;
    gap:12px;
}

.sidebar-menu li a i{
    width:20px;
    text-align:center;
}


.function-card-pro {
    position: relative;
    min-height: 96px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--erp-border);
    border-radius: 18px;
    background: #ffffff;
    cursor: pointer;
    transition: all .18s ease;
    box-shadow: 0 6px 16px rgba(15, 23, 42, .04);
}

.function-card-pro input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.function-card-pro:hover {
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

.function-card-pro.selected {
    background: #eff6ff;
    border-color: #2563eb;
}

.function-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    background: #f1f5f9;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    flex-shrink: 0;
}

.function-card-pro.selected .function-card-icon {
    background: #2563eb;
    color: #ffffff;
}

.function-card-text strong {
    display: block;
    color: var(--erp-primary-dark);
    font-weight: 800;
}

.function-card-text small {
    color: var(--erp-muted);
    font-size: .78rem;
}

.function-card-check {
    position: absolute;
    top: 10px;
    right: 12px;
    color: #2563eb;
    opacity: 0;
}

.function-card-pro.selected .function-card-check {
    opacity: 1;
}
.function-card-main {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
}

.function-principal {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--erp-border);
}

.function-principal label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--erp-muted);
    cursor: pointer;
}

.function-principal input {
    accent-color: #f59e0b;
}

.function-principal i {
    color: #f59e0b;
}

.function-card-pro.selected .function-principal label {
    color: var(--erp-primary-dark);
}

.employee-function-card {
    min-height: 128px;
    border: 1px solid var(--erp-border);
    border-radius: 18px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .05);
    transition: all .18s ease;
}

.employee-function-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .09);
}

.employee-function-card.is-selected {
    border-color: #2563eb;
    background: #f8fbff;
}

.employee-function-card.is-principal {
    border-color: #f59e0b;
    box-shadow: 0 10px 26px rgba(245, 158, 11, .18);
}

.employee-function-main {
    min-height: 86px;
    display: grid;
    grid-template-columns: 48px 1fr 22px;
    align-items: center;
    gap: 14px;
    padding: 16px;
    cursor: pointer;
}

.employee-function-main input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.employee-function-icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    background: #f1f5f9;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
}

.employee-function-card.is-selected .employee-function-icon {
    background: #2563eb;
    color: #ffffff;
}

.employee-function-info {
    min-width: 0;
}

.employee-function-info strong {
    display: block;
    color: var(--erp-primary-dark);
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.employee-function-info small {
    display: block;
    color: var(--erp-muted);
    font-size: .78rem;
    margin-top: 2px;
}

.employee-function-state {
    color: #2563eb;
    opacity: 0;
    font-size: 1.1rem;
}

.employee-function-card.is-selected .employee-function-state {
    opacity: 1;
}

.employee-function-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin: 0;
    border-top: 1px solid var(--erp-border);
    background: #f8fafc;
    cursor: pointer;
}

.employee-function-primary input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.primary-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: calc(100% - 20px);
    min-height: 30px;
    border-radius: 999px;
    color: #64748b;
    font-weight: 800;
    font-size: .78rem;
}

.primary-pill i {
    color: #cbd5e1;
}

.employee-function-card.is-selected .primary-pill {
    background: #eef2ff;
    color: #1d4ed8;
}

.employee-function-card.is-selected .primary-pill i {
    color: #2563eb;
}

.employee-function-card.is-principal .employee-function-primary {
    background: #fffbeb;
}

.employee-function-card.is-principal .primary-pill {
    background: #f59e0b;
    color: #111827;
}

.employee-function-card.is-principal .primary-pill i {
    color: #111827;
}

.employee-function-primary:has(input:disabled) {
    cursor: not-allowed;
    opacity: .55;
}