/* ==========================================================================
   DASHBOARD HOME MODERNO - SIGA (iOS / Google Material 3 / Bento Style)
   ========================================================================== */

.siga-home-container {
    padding: 10px 0 40px 0;
    font-family: 'Figtree', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1e293b;
}

/* Header Hero */
.siga-hero-header {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px 28px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.03);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.siga-hero-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #26b300 0%, #3b82f6 50%, #f59e0b 100%);
}

.siga-hero-title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.siga-hero-subtitle {
    font-size: 13.5px;
    color: #64748b;
    margin: 0;
    font-weight: 400;
}

.siga-hero-badges {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.siga-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.siga-pill-live {
    background: #ecfdf5;
    color: #065f46;
    border-color: #a7f3d0;
}

.siga-pill-date {
    background: #f8fafc;
    color: #475569;
    border-color: #e2e8f0;
}

.siga-pill-legajos {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

/* Tarjetas Principales Bento */
.siga-bento-grid {
    margin-bottom: 28px;
}

.siga-card-kpi {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 165px;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none !important;
    position: relative;
    overflow: hidden;
}

.siga-card-kpi:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px -4px rgba(15, 23, 42, 0.09);
    border-color: #cbd5e1;
}

.siga-kpi-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.siga-kpi-icon-squircle {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: transform 0.2s ease;
}

.siga-card-kpi:hover .siga-kpi-icon-squircle {
    transform: scale(1.08);
}

/* Colores de Iconos Squircle */
.siga-icon-blue {
    background: #eff6ff;
    color: #2563eb;
}
.siga-icon-green {
    background: #ecfdf5;
    color: #059669;
}
.siga-icon-purple {
    background: #f5f3ff;
    color: #7c3aed;
}
.siga-icon-amber {
    background: #fffbeb;
    color: #d97706;
}

.siga-kpi-label {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.siga-kpi-value-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 6px;
}

.siga-kpi-number {
    font-size: 34px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    letter-spacing: -0.03em;
}

.siga-kpi-tag {
    font-size: 11.5px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 9999px;
}

.siga-tag-success {
    background: #ecfdf5;
    color: #059669;
}
.siga-tag-warning {
    background: #fffbeb;
    color: #d97706;
}
.siga-tag-info {
    background: #eff6ff;
    color: #2563eb;
}

.siga-kpi-subtitle {
    font-size: 12.5px;
    color: #64748b;
    margin: 0;
    font-weight: 500;
}

.siga-kpi-footer-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    transition: color 0.15s ease;
}

.siga-card-kpi:hover .siga-kpi-footer-link {
    color: #0f172a;
}

.siga-kpi-footer-link i {
    transition: transform 0.15s ease;
}

.siga-card-kpi:hover .siga-kpi-footer-link i {
    transform: translateX(4px);
    color: #26b300;
}

/* Barra de progreso mini para ratios */
.siga-mini-bar {
    width: 100%;
    height: 5px;
    background: #f1f5f9;
    border-radius: 9999px;
    overflow: hidden;
    margin-top: 8px;
}

.siga-mini-bar-fill {
    height: 100%;
    border-radius: 9999px;
}

/* ==========================================================================
   BANDEJA DE GESTIÓN OPERATIVA (ACCIÓN URGENTE)
   ========================================================================== */
.siga-section-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.03);
    margin-bottom: 28px;
}

.siga-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.siga-section-title {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.siga-section-subtitle {
    font-size: 13px;
    color: #64748b;
    margin: 4px 0 0 0;
}

.siga-badge-urgent {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    padding: 5px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Tarjetas de Acción Rápida (4 bloques) */
.siga-action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.siga-action-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.siga-action-card:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(15, 23, 42, 0.06);
}

.siga-action-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 10px;
}

.siga-action-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.siga-action-count {
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
}

.siga-action-card.has-urgent .siga-action-count {
    color: #dc2626;
}

.siga-action-card.has-warning .siga-action-count {
    color: #d97706;
}

.siga-action-card.has-info .siga-action-count {
    color: #2563eb;
}

.siga-action-card.has-success .siga-action-count {
    color: #059669;
}

.siga-action-card.is-zero .siga-action-count {
    color: #94a3b8;
}

.siga-action-title {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px 0;
}

.siga-action-desc {
    font-size: 12px;
    color: #64748b;
    margin: 0 0 14px 0;
    line-height: 1.35;
}

.siga-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    transition: all 0.15s ease;
}

.siga-action-card:hover .siga-action-btn {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

/* ==========================================================================
   TABLA / LISTA DE SOLICITUDES Y RESUMEN MANIFIESTOS
   ========================================================================== */
.siga-subgrid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 20px;
}

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

.siga-table-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
}

.siga-solicitudes-list {
    display: flex;
    flex-direction: column;
}

.siga-solicitud-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s ease;
    gap: 12px;
}

.siga-solicitud-item:last-child {
    border-bottom: none;
}

.siga-solicitud-item:hover {
    background: #f8fafc;
}

.siga-solicitud-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.siga-solicitud-empresa {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.siga-solicitud-meta {
    font-size: 11.5px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.siga-solicitud-cuit {
    font-family: monospace;
    font-weight: 600;
    background: #f1f5f9;
    padding: 1px 6px;
    border-radius: 4px;
    color: #334155;
}

.siga-btn-review {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    background: #26b300;
    color: #ffffff !important;
    border-radius: 8px;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all 0.15s ease;
    border: none;
}

.siga-btn-review:hover {
    background: #1f9100;
    box-shadow: 0 4px 12px rgba(38, 179, 0, 0.25);
    color: #ffffff !important;
}

/* Panel Desglose Manifiestos */
.siga-status-breakdown {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.siga-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
}

.siga-status-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #334155;
}

.siga-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.siga-status-count {
    font-weight: 700;
    color: #0f172a;
}

.siga-legajos-highlight {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 6px;
}

.siga-legajos-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #26b300;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.siga-legajos-title {
    font-size: 13px;
    font-weight: 700;
    color: #14532d;
    margin: 0;
}

.siga-legajos-desc {
    font-size: 12px;
    color: #166534;
    margin: 2px 0 0 0;
    line-height: 1.35;
}
