/* Dashboard Corporativo Deqsa Styles */
.dashboard-container {
    background-color: #f7f9fb;
    min-height: calc(100vh - 60px);
    padding: 12px 16px 30px 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.dashboard-header {
    background: linear-gradient(90deg, #b3001b 0%, #cc0623 100%);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 3px 10px rgba(179, 0, 27, 0.2);
}

.dashboard-header h1 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.dashboard-header .sub-brand {
    font-weight: 300;
    opacity: 0.9;
}

.dashboard-card {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: 16px;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dashboard-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
}

.dashboard-card-header {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f3f5;
    background-color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-card-header h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2b2f33;
    margin: 0;
}

.dashboard-card-body {
    padding: 14px 16px;
}

/* KPI Cards */
.kpi-card {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    padding: 14px 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    min-height: 120px;
}

.kpi-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #fde8e8;
    color: #cc0623;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.kpi-value {
    font-size: 1.55rem;
    font-weight: 700;
    color: #1a1d20;
    line-height: 1.2;
    margin-bottom: 4px;
}

.kpi-label {
    font-size: 0.78rem;
    color: #6c757d;
    font-weight: 500;
    margin: 0;
}

/* Filters Sidebar */
.filter-card {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    padding: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.filter-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #2b2f33;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group {
    margin-bottom: 12px;
}

.filter-group label {
    font-size: 0.76rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 4px;
    display: block;
}

.filter-control {
    width: 100%;
    font-size: 0.82rem;
    border-radius: 6px;
    border: 1px solid #ced4da;
    padding: 6px 10px;
    background-color: #ffffff;
}

.filter-control:focus {
    border-color: #cc0623;
    outline: none;
    box-shadow: 0 0 0 2px rgba(204, 6, 35, 0.15);
}

.btn-clean-filter {
    background: none;
    border: none;
    color: #cc0623;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-clean-filter:hover {
    text-decoration: underline;
}

.filter-footer-date {
    font-size: 0.72rem;
    color: #868e96;
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid #f1f3f5;
}

/* Funnel Widget */
.funnel-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 8px 0;
}

.funnel-step {
    display: flex;
    align-items: center;
    gap: 10px;
}

.funnel-step-label {
    width: 90px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #495057;
    text-align: right;
}

.funnel-bar-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.funnel-bar {
    height: 28px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.8rem;
    transition: width 0.3s ease;
}

.funnel-step-pct {
    width: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #6c757d;
    padding-left: 6px;
}

/* Red Table Header */
.table-red-header thead th {
    background-color: #990014 !important;
    color: #ffffff !important;
    font-size: 0.76rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    border: none !important;
    padding: 8px 10px !important;
}

.table-red-header tbody td {
    font-size: 0.8rem !important;
    vertical-align: middle !important;
    padding: 8px 10px !important;
}

/* Attention Card */
.attention-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    background-color: #fdfdfe;
    border: 1px solid #edf0f2;
}

.attention-badge-red {
    background-color: #fff5f5;
    border: 1px solid #ffe3e3;
    color: #e03131;
}

.attention-badge-orange {
    background-color: #fff9db;
    border: 1px solid #ffec99;
    color: #f59f00;
}

.attention-badge-blue {
    background-color: #e7f5ff;
    border: 1px solid #d0ebff;
    color: #1971c2;
}

.attention-value {
    font-size: 1.25rem;
    font-weight: 700;
    margin-right: 12px;
    min-width: 32px;
    text-align: center;
}

.attention-text {
    font-size: 0.82rem;
    color: #495057;
    font-weight: 500;
}
