.user-dashboard-card {
    background-color: #fff;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    overflow: hidden;
    border-left: 0.3rem solid #4e73df;
    box-shadow: 0 0.15rem 0.75rem rgba(58, 59, 69, 0.1);
    transition: box-shadow 0.15s ease-in-out;
}

.user-dashboard-card:hover {
    box-shadow: 0 0.5rem 1.5rem rgba(58, 59, 69, 0.18);
}

.user-dashboard-header {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    cursor: pointer;
    user-select: none;
}

.user-dashboard-header:hover {
    background-color: #f8f9fc;
}

.user-dashboard-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
    background-color: #4e73df;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    transition: transform 0.15s ease-in-out;
}

.user-dashboard-header[aria-expanded="true"] .user-dashboard-icon {
    transform: rotate(90deg);
}

.user-dashboard-title-group {
    display: flex;
    flex-direction: column;
}

.user-dashboard-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: #3a3b45;
}

.user-dashboard-badge {
    display: inline-block;
    width: fit-content;
    margin-top: 0.25rem;
    padding: 0.15rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 1rem;
}

.user-dashboard-actions {
    color: #b7b9c8;
}

.user-dashboard-actions i {
    margin-left: 1rem;
    cursor: pointer;
    transition: color 0.1s ease-in-out;
}

.user-dashboard-actions i:hover {
    color: #5a5c69;
}

.user-dashboard-actions .fa-trash:hover {
    color: #e74a3b;
}

.user-dashboard-body {
    padding: 0 1.25rem 1.25rem 1.25rem;
}

.dashboard-widget-card {
    height: 100%;
    border: none;
    box-shadow: 0 0.3rem 1rem rgba(58, 59, 69, 0.12) !important;
}

/* El gap entre widgets vive aqui, no como margin del .card -- el .card tiene height:100% del
   .col, asi que un padding-bottom en el .col deja el hueco visible ANTES del borde del .col
   (dentro de su propio content box), garantizando el mismo espacio entre filas sin importar
   en que linea de flex-wrap caiga cada widget. */
.dashboard-widget-col {
    padding-bottom: 1.5rem;
}

.dashboard-widget-kpi {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 0;
    cursor: pointer;
}

.dashboard-widget-kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #4e73df;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.dashboard-widget-kpi-value {
    font-size: 2rem;
    font-weight: 700;
    color: #3a3b45;
}

.dashboard-widget-chart {
    position: relative;
    height: 18rem;
    width: 100%;
}

.dashboard-widget-scroll-body {
    max-height: 18rem;
    overflow-y: auto;
}

.dashboard-widget-drilldown-scroll {
    max-height: 60vh;
    overflow-y: auto;
}

.dashboard-widget-alert-ok .card-header {
    background-color: #d1f5e0;
}

.dashboard-widget-alert-warning .card-header {
    background-color: #fdf0d5;
}

.dashboard-widget-alert-danger .card-header {
    background-color: #fbdede;
}

/* Velocimetro (chartType "gauge") -- ver dashboardWidgetGauge.js */
.dashboard-widget-gauge {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dashboard-widget-gauge-chart {
    position: relative;
    height: 10rem;
    width: 100%;
    cursor: pointer;
}

.dashboard-widget-gauge-scale {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 20rem;
    font-size: 0.75rem;
    color: #858796;
}

.dashboard-widget-gauge-percent {
    font-size: 2rem;
    font-weight: 700;
    color: #3a3b45;
    line-height: 1.2;
}

.dashboard-widget-gauge-detail {
    font-size: 0.85rem;
    color: #858796;
    text-align: center;
}

.dashboard-widget-gauge-link {
    cursor: pointer;
    text-decoration: underline dotted;
}
