/*=====================================
Estilos del dashboard de Inicio (vistas/modulos/inicio.php).
Extraidos del <style> inline para que el navegador los pueda cachear.
======================================*/

       /* ── Base sortable zones ─────────────────── */
       #inicioDashboardWidgets .dashboard-widget-col .card {
         margin-bottom: 0;
         min-height: 210px;
       }

       #inicioDashboardWidgets .widget-placeholder,
       #inicioDashboardMainBlocks .main-block-placeholder {
         border: 2px dashed rgba(255, 255, 255, 0.2);
         border-radius: 8px;
         min-height: 130px;
         background: rgba(255, 255, 255, 0.02);
       }

       #inicioDashboardMainBlocks .dashboard-main-item {
         margin-bottom: 1rem;
       }

       /* ── Welcome banner ──────────────────────── */
       .dash-welcome-banner {
         background: linear-gradient(135deg,
             rgba(74, 158, 255, 0.12) 0%,
             rgba(255, 255, 255, 0.025) 55%,
             rgba(157, 116, 255, 0.07) 100%);
         border: 1px solid rgba(74, 158, 255, 0.22);
         border-radius: 16px;
         padding: 1.5rem 1.85rem;
         position: relative;
         overflow: hidden;
       }

       .dash-welcome-banner::before {
         content: '';
         position: absolute;
         top: -40px;
         right: -40px;
         width: 160px;
         height: 160px;
         border-radius: 50%;
         background: radial-gradient(circle, rgba(74, 158, 255, 0.1) 0%, transparent 70%);
         pointer-events: none;
       }

       .dash-user-greeting {
         font-size: 1.6rem;
         font-weight: 800;
         color: #fff;
         letter-spacing: -0.5px;
         margin-bottom: 0.2rem;
         line-height: 1.15;
       }

       .dash-date-info {
         font-size: 0.87rem;
         color: rgba(255, 255, 255, 0.48);
       }

       .dash-alert-pills {
         display: flex;
         flex-wrap: wrap;
         gap: 0.45rem;
         align-items: center;
         justify-content: flex-end;
       }

       .dash-pill {
         display: inline-flex;
         align-items: center;
         padding: 0.3rem 0.85rem;
         border-radius: 20px;
         font-size: 0.79rem;
         font-weight: 600;
         letter-spacing: 0.1px;
       }

       .dash-pill-warning {
         background: rgba(255, 193, 7, 0.14);
         color: #ffc107;
         border: 1px solid rgba(255, 193, 7, 0.26);
       }

       .dash-pill-danger {
         background: rgba(255, 107, 122, 0.13);
         color: #ff6b7a;
         border: 1px solid rgba(255, 107, 122, 0.24);
       }

       .dash-pill-success {
         background: rgba(51, 192, 111, 0.14);
         color: #3ddd82;
         border: 1px solid rgba(51, 192, 111, 0.25);
       }

       /* ── Section labels ──────────────────────── */
       .dash-section-label {
         font-size: 0.7rem;
         font-weight: 700;
         text-transform: uppercase;
         letter-spacing: 2px;
         color: rgba(255, 255, 255, 0.3);
         margin-bottom: 0.8rem;
         padding-left: 2px;
         display: flex;
         align-items: center;
         gap: 0.65rem;
       }

       .dash-section-label::after {
         content: '';
         flex: 1;
         height: 1px;
         background: rgba(255, 255, 255, 0.06);
       }

       /* ── KPI stat cards ──────────────────────── */
       .ds-kpi-card {
         display: flex;
         align-items: center;
         gap: 1rem;
         background: rgba(255, 255, 255, 0.04);
         border: 1px solid rgba(255, 255, 255, 0.08);
         border-left: 3px solid transparent;
         border-radius: 13px;
         padding: 1.15rem 1.3rem;
         height: 100%;
         transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
       }

       .ds-kpi-card:hover {
         transform: translateY(-3px);
         box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
         background: rgba(255, 255, 255, 0.06);
       }

       .ds-kpi-primary {
         border-left-color: #4a9eff;
       }

       .ds-kpi-success {
         border-left-color: #33c06f;
       }

       .ds-kpi-warning {
         border-left-color: #ffc107;
       }

       .ds-kpi-danger {
         border-left-color: #ff6b7a;
       }

       .ds-kpi-info {
         border-left-color: #39bde7;
       }

       .ds-kpi-purple {
         border-left-color: #9d74ff;
       }

       .ds-kpi-icon-wrap {
         flex-shrink: 0;
         width: 48px;
         height: 48px;
         display: flex;
         align-items: center;
         justify-content: center;
         border-radius: 12px;
         font-size: 1.2rem;
       }

       .ds-kpi-primary .ds-kpi-icon-wrap {
         background: rgba(74, 158, 255, 0.14);
         color: #4a9eff;
       }

       .ds-kpi-success .ds-kpi-icon-wrap {
         background: rgba(51, 192, 111, 0.14);
         color: #33c06f;
       }

       .ds-kpi-warning .ds-kpi-icon-wrap {
         background: rgba(255, 193, 7, 0.14);
         color: #ffc107;
       }

       .ds-kpi-danger .ds-kpi-icon-wrap {
         background: rgba(255, 107, 122, 0.14);
         color: #ff6b7a;
       }

       .ds-kpi-info .ds-kpi-icon-wrap {
         background: rgba(57, 189, 231, 0.14);
         color: #39bde7;
       }

       .ds-kpi-purple .ds-kpi-icon-wrap {
         background: rgba(157, 116, 255, 0.14);
         color: #9d74ff;
       }

       .ds-kpi-body {
         min-width: 0;
         flex: 1;
       }

       .ds-kpi-value {
         font-size: 2.1rem;
         font-weight: 800;
         color: #fff;
         line-height: 1;
         letter-spacing: -1.5px;
       }

       .ds-kpi-label {
         font-size: 0.83rem;
         font-weight: 600;
         color: rgba(255, 255, 255, 0.65);
         margin-top: 0.25rem;
         line-height: 1.3;
         white-space: nowrap;
         overflow: hidden;
         text-overflow: ellipsis;
       }

       .ds-kpi-sub {
         font-size: 0.72rem;
         color: rgba(255, 255, 255, 0.3);
         margin-top: 0.07rem;
         white-space: nowrap;
         overflow: hidden;
         text-overflow: ellipsis;
       }

       /* ── Widget cards (vacaciones, buzón) ────── */
       #inicioDashboardWidgets .card {
         border-radius: 13px !important;
         transition: box-shadow 0.22s ease, transform 0.22s ease;
       }

       #inicioDashboardWidgets .card:hover {
         box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3) !important;
         transform: translateY(-2px);
       }

       #inicioDashboardWidgets .card-header {
         border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
       }

       #inicioDashboardWidgets .card-header h3 {
         font-size: 0.88rem;
         font-weight: 700;
         letter-spacing: 0.1px;
       }

       #inicioDashboardWidgets .table th {
         font-size: 0.73rem;
         font-weight: 700;
         text-transform: uppercase;
         letter-spacing: 0.6px;
         opacity: 0.6;
         border-top: 0;
         padding: 0.5rem 0.75rem;
       }

       #inicioDashboardWidgets .table td {
         font-size: 0.86rem;
         vertical-align: middle;
       }

       /* ── Main small-box items ─────────────────── */
       #inicioDashboardMainBlocks .small-box {
         border-radius: 14px;
         overflow: hidden;
         box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
         transition: transform 0.22s ease, box-shadow 0.22s ease;
       }

       #inicioDashboardMainBlocks .small-box:hover {
         transform: translateY(-4px);
         box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
       }

       #inicioDashboardMainBlocks .small-box .inner h3 {
         font-size: 2.4rem;
         font-weight: 800;
         letter-spacing: -1px;
       }

       #inicioDashboardMainBlocks .small-box .inner p {
         font-size: 0.9rem;
         font-weight: 500;
         opacity: 0.88;
       }

       #inicioDashboardMainBlocks .small-box-footer {
         font-size: 0.82rem;
         font-weight: 600;
         letter-spacing: 0.2px;
         padding: 0.5rem 1rem;
       }

       /* ── Content cards (aprobaciones, tablas) ─── */
       #inicioDashboardMainBlocks .card {
         border-radius: 13px !important;
         overflow: hidden;
       }

       #inicioDashboardMainBlocks .card-header h3.card-title {
         font-size: 0.9rem;
         font-weight: 700;
         letter-spacing: 0.1px;
       }

       #inicioDashboardMainBlocks .card-header {
         border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
       }

       #inicioDashboardMainBlocks .table thead th {
         font-size: 0.73rem;
         font-weight: 700;
         text-transform: uppercase;
         letter-spacing: 0.6px;
         border-top: 0;
         padding: 0.6rem 0.75rem;
       }

       #inicioDashboardMainBlocks .table td {
         font-size: 0.86rem;
         vertical-align: middle;
       }

       /* ── Charts ──────────────────────────────── */
       .dashboard-chart-wrap {
         position: relative;
         height: 240px;
         max-height: 240px;
         min-height: 240px;
         padding: 0.35rem;
       }

       .dashboard-chart-wrap canvas {
         width: 100% !important;
         height: 100% !important;
         display: block;
       }

       .dashboard-chart-card {
         border: 1px solid rgba(255, 255, 255, 0.09);
         border-radius: 13px;
         background: rgba(255, 255, 255, 0.025);
         box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
         transition: box-shadow 0.22s, transform 0.22s;
       }

       .dashboard-chart-card:hover {
         box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
         transform: translateY(-2px);
       }

       .dashboard-chart-card .card-header {
         border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
       }

       .dashboard-chart-card .card-title {
         font-size: 0.88rem;
         font-weight: 700;
         letter-spacing: 0.1px;
       }

       /* ── PWA button ──────────────────────────── */
       #btnInstalarPWAInicio {
         border-width: 1px;
       }

       /* ── Responsive ──────────────────────────── */
       @media (max-width: 991.98px) {
         #inicioDashboardWidgets .dashboard-widget-col .card {
           min-height: auto;
         }

         .dashboard-chart-wrap {
           height: 210px;
           max-height: 210px;
           min-height: 210px;
         }
       }

       @media (max-width: 767.98px) {
         .ds-kpi-card {
           padding: 0.9rem 1rem;
           gap: 0.75rem;
         }

         .ds-kpi-value {
           font-size: 1.75rem;
         }

         .ds-kpi-icon-wrap {
           width: 40px;
           height: 40px;
           font-size: 1rem;
         }
       }

       @media (max-width: 575.98px) {
         .dash-user-greeting {
           font-size: 1.25rem;
         }

         .dash-alert-pills {
           display: none;
         }

         #inicioDashboardWidgets .card-title,
         #inicioDashboardMainBlocks .card-title {
           font-size: 0.95rem;
         }

         #inicioDashboardWidgets .table td,
         #inicioDashboardWidgets .table th {
           white-space: nowrap;
         }

         #inicioDashboardMainBlocks .small-box p {
           font-size: 0.88rem;
         }

         .dashboard-chart-wrap {
           height: 190px;
           max-height: 190px;
           min-height: 190px;
         }

         #btnInstalarPWAInicio {
           width: 100%;
           margin-right: 0 !important;
         }
       }
