/**
 * alm.css - Estilos del módulo de almacenes
 * @version 1.0.0
 * @author Equipo ERP
 * @date 2026-06-17
 */

:root {
    --alm-primary: #0f6cbd;
    --alm-primary-dark: #084b8a;
    --alm-info: #0ea5b7;
    --alm-success: #1f9d55;
    --alm-warning: #d48b00;
    --alm-danger: #c23b3b;
    --alm-surface: #ffffff;
    --alm-panel: #f6f9fc;
    --alm-line: #d9e3ef;
    --alm-text: #243447;
    --alm-muted: #6b7b8c;
}

.alm-module .content-header {
    padding-bottom: 6px;
}

.alm-kpis .card {
    border: 1px solid var(--alm-line);
    border-left: 5px solid var(--alm-primary);
    border-radius: 10px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.alm-kpis .alm-kpi-card .card-body {
    padding: 14px 16px;
}

.alm-kpi-label {
    display: block;
    color: var(--alm-muted);
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.alm-kpi-value {
    color: var(--alm-text);
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-top: 8px;
}

.alm-kpi-card.is-total {
    border-left-color: var(--alm-primary);
}

.alm-kpi-card.is-active {
    border-left-color: var(--alm-success);
}

.alm-kpi-card.is-primary {
    border-left-color: var(--alm-warning);
}

.alm-kpi-card.is-location {
    border-left-color: var(--alm-info);
}

.alm-kpi-card.is-stock {
    border-left-color: #7c4dff;
}

.alm-kpi-card.is-inactive {
    border-left-color: var(--alm-danger);
}

.alm-shell-card,
.alm-chart-card,
.alm-guidelines-card {
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.alm-shell-card .card-header,
.alm-chart-card .card-header,
.alm-guidelines-card .card-header {
    background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
    border-bottom: 1px solid var(--alm-line);
}

.alm-chart-surface {
    height: 300px;
    width: 100%;
}

.alm-chart-empty {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--alm-muted);
    font-weight: 600;
    text-align: center;
}

.alm-guideline {
    border: 1px solid var(--alm-line);
    border-left: 4px solid var(--alm-info);
    border-radius: 8px;
    padding: 12px 14px;
    background: var(--alm-panel);
    margin-bottom: 12px;
}

.alm-guideline:last-child {
    margin-bottom: 0;
}

.alm-guideline strong {
    display: block;
    color: var(--alm-text);
    margin-bottom: 4px;
}

.alm-guideline span {
    color: var(--alm-muted);
    font-size: 0.92rem;
}

#tblAlm thead th {
    border-top: 0;
    background: #f4f8fb;
    color: #223445;
    font-size: 0.77rem;
    font-weight: 800;
    text-transform: uppercase;
}

#tblAlm tbody td {
    vertical-align: middle;
}

.alm-modal-shell {
    border: 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
}

.alm-modal-shell .modal-header {
    background: linear-gradient(135deg, var(--alm-primary), var(--alm-info));
    color: #fff;
    border-bottom: 0;
}

.alm-modal-shell .modal-footer {
    border-top: 1px solid var(--alm-line);
    background: #f8fafc;
}

.alm-scope-alert {
    background: linear-gradient(135deg, #f7fbff 0%, #eef7ff 100%);
}

@media (max-width: 767.98px) {
    .alm-kpi-value {
        font-size: 1.45rem;
    }

    .alm-chart-surface {
        height: 240px;
    }
}
