:root {
    /* ═══ PALETA CONFIGURABLE — cambia aqui para todo el sistema ═══ */
    --color-primary: #22c55e;
    --color-primary-light: #dcfce7;
    --color-primary-dark: #15803d;

    /* ═══ OVERRIDE PRIMEVUE PRIMARY (verde) ═══ */
    --p-primary-color: #22c55e;
    --p-primary-50: #f0fdf4;
    --p-primary-100: #dcfce7;
    --p-primary-200: #bbf7d0;
    --p-primary-300: #86efac;
    --p-primary-400: #4ade80;
    --p-primary-500: #22c55e;
    --p-primary-600: #16a34a;
    --p-primary-700: #15803d;
    --p-primary-800: #166534;
    --p-primary-900: #14532d;
    --p-primary-950: #052e16;

    /* ═══ PALETA PRINCIPAL (brand) ═══ */
    --brand-primary: #15803d;
    --brand-primary-light: #22c55e;
    --brand-primary-lighter: #dcfce7;

    /* ═══ PALETA PROTOTIPO (nave-azul-teal) ═══ */
    --navy: #1F3864;
    --blue: #2E5BFF;
    --teal: #00C896;
    --amber: #B7791F;
    --red: #C62828;

    /* ═══ SUPERFICIES (prototipo) ═══ */
    --surface-0: #ffffff;
    --surface-50: #F7F8FA;
    --surface-100: #EEF1F6;
    --surface-200: #E2E7EF;
    --surface-300: #CBD3E1;
    --text: #1B2333;
    --text-2: #5A6478;
    --text-3: #8791A5;

    /* ═══ SIDEBAR ═══ */
    --sidebar-width: 236px;

    /* ═══ LAYOUT ═══ */
    --header-height: 56px;
    --radius: 8px;
    --shadow: 0 1px 2px rgba(27, 35, 51, .06), 0 2px 8px rgba(27, 35, 51, .06);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', 'Segoe UI', Calibri, system-ui, -apple-system, sans-serif;
    background: var(--surface-50);
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════════════════════
   TOPBAR — dark navy bar (prototipo style)
   ═══════════════════════════════════════════ */
.topbar {
    background: var(--color-primary-dark);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 18px;
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 40;
}

.brand {
    font-weight: 700;
    letter-spacing: .3px;
    font-size: 15px;
    white-space: nowrap;
}

.brand small {
    display: block;
    font-weight: 400;
    font-size: 10px;
    opacity: .7;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.ctx {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.ctx-chip {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ctx-chip b {
    font-weight: 600;
}

select.sess {
    background: rgba(255, 255, 255, .14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 12.5px;
    max-width: 280px;
    cursor: pointer;
}

select.sess option {
    color: #111;
}

.user-avatar-sm {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--color-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 10px;
    color: #fff;
}

.btn-logout {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    color: #fff;
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.15s;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, .22);
}

/* ═══════════════════════════════════════════
   SHELL — sidebar + main
   ═══════════════════════════════════════════ */
.app-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.shell {
    display: flex;
    min-height: calc(100vh - var(--header-height));
}

/* ═══════════════════════════════════════════
   SIDEBAR — white, grouped, sticky (prototipo)
   ═══════════════════════════════════════════ */
.app-sidebar {
    width: var(--sidebar-width);
    flex: 0 0 var(--sidebar-width);
    background: var(--surface-0);
    border-right: 1px solid var(--surface-200);
    padding: 14px 10px;
    position: sticky;
    top: var(--header-height);
    height: calc(100vh - var(--header-height));
    overflow: auto;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-group {
    margin-bottom: 8px;
}

.nav-section-title {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .7px;
    color: var(--text-3);
    margin: 14px 10px 6px;
    font-weight: 700;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-2);
    font-size: 13.5px;
    margin-bottom: 2px;
    text-decoration: none;
    transition: background 0.12s, color 0.12s;
    position: relative;
}

.nav-item:hover {
    background: var(--surface-100);
    color: var(--text);
}

.nav-item.active {
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    font-weight: 600;
}

.nav-ico {
    width: 16px;
    text-align: center;
    opacity: .85;
    font-size: 14px;
}

.nav-item .badge {
    margin-left: auto;
    background: var(--color-primary);
    color: #fff;
    border-radius: 999px;
    font-size: 10.5px;
    padding: 1px 6px;
    font-weight: 700;
}

/* ═══════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════ */
.app-main {
    flex: 1;
    padding: 22px 26px 60px;
    min-width: 0;
}

/* ═══════════════════════════════════════════
   PAGE HEADER — prototipo style
   ═══════════════════════════════════════════ */
.page-h {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.page-h h1 {
    margin: 0;
    font-size: 21px;
    font-weight: 700;
    color: var(--color-primary-dark);
    letter-spacing: -.2px;
}

.page-h p {
    margin: 4px 0 0;
    color: var(--text-2);
    font-size: 13px;
    max-width: 70ch;
}

.page-h .acts {
    margin-left: auto;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════════
   CARDS — prototipo style
   ═══════════════════════════════════════════ */
.card {
    background: var(--surface-0);
    border: 1px solid var(--surface-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}

.card-header,
.card-h {
    padding: 12px 16px;
    border-bottom: 1px solid var(--surface-200);
    font-weight: 600;
    font-size: 13.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-h .sub {
    font-weight: 400;
    color: var(--text-3);
    font-size: 12px;
}

.card-body,
.card-b {
    padding: 16px;
}

.card-b.tight {
    padding: 0;
}

/* ═══════════════════════════════════════════
   TABLES — prototipo style
   ═══════════════════════════════════════════ */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

thead th {
    text-align: left;
    background: var(--surface-100);
    color: var(--text-2);
    font-weight: 600;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .4px;
    padding: 9px 14px;
    border-bottom: 1px solid var(--surface-200);
    white-space: nowrap;
}

tbody td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--surface-100);
    vertical-align: middle;
}

tbody tr:nth-child(even) {
    background: var(--surface-50);
}

tbody tr:hover {
    background: #F2F6FF;
}

tbody tr.clickable {
    cursor: pointer;
}

td.num,
th.num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.mono {
    font-family: "Cascadia Mono", Consolas, monospace;
    font-size: 12px;
}

.empty {
    padding: 34px 16px;
    text-align: center;
    color: var(--text-3);
}

.empty b {
    display: block;
    color: var(--text-2);
    margin-bottom: 4px;
    font-size: 14px;
}

/* ═══════════════════════════════════════════
   TAGS — prototipo colors
   ═══════════════════════════════════════════ */
.tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .2px;
    white-space: nowrap;
}

.t-grey {
    background: var(--surface-200);
    color: var(--text-2);
}

.t-blue {
    background: #E4EBFF;
    color: #1B3FBF;
}

.t-teal {
    background: #DCF7EF;
    color: #046B51;
}

.t-amber {
    background: #FCF0DA;
    color: #8A5A08;
}

.t-red {
    background: #FBE3E3;
    color: #A31D1D;
}

.t-navy {
    background: #E2E7F3;
    color: var(--color-primary-dark);
}

/* ═══════════════════════════════════════════
   BUTTONS — prototipo style
   ═══════════════════════════════════════════ */
.btn {
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 7px 13px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--brand-primary);
    color: #fff;
    font-family: inherit;
    transition: filter 0.12s;
}

.btn:hover {
    filter: brightness(.94);
}

.btn.sec {
    background: var(--surface-0);
    color: var(--color-primary-dark);
    border-color: var(--surface-300);
}

.btn.sec:hover {
    background: var(--surface-100);
}

.btn.ok {
    background: var(--teal);
    color: #06382b;
}

.btn.warn {
    background: #fff;
    color: var(--amber);
    border-color: #E9D8B5;
}

.btn.dang {
    background: #fff;
    color: var(--red);
    border-color: #F0C4C4;
}

.btn.sm {
    padding: 4px 9px;
    font-size: 12px;
}

/* ═══════════════════════════════════════════
   KPI — prototipo style
   ═══════════════════════════════════════════ */
.kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.kpi {
    background: #fff;
    border: 1px solid var(--surface-200);
    border-radius: var(--radius);
    padding: 13px 15px;
    box-shadow: var(--shadow);
}

.kpi .k {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text-3);
    font-weight: 700;
}

.kpi .v {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-top: 3px;
    font-variant-numeric: tabular-nums;
}

.kpi .v.alert {
    color: var(--amber);
}

/* ═══════════════════════════════════════════
   MESSAGES — prototipo style
   ═══════════════════════════════════════════ */
.msg {
    padding: 11px 14px;
    border-radius: 6px;
    font-size: 13px;
    display: flex;
    gap: 9px;
    align-items: flex-start;
    margin-bottom: 14px;
    border-left: 4px solid;
}

.msg b {
    display: block;
    margin-bottom: 2px;
}

.m-info {
    background: #EAF0FF;
    border-color: var(--brand-primary);
    color: #173082;
}

.m-ok {
    background: #E4F8F1;
    border-color: var(--teal);
    color: #04563F;
}

.m-warn {
    background: #FDF4E3;
    border-color: var(--amber);
    color: #7A4E06;
}

.m-err {
    background: #FCE9E9;
    border-color: var(--red);
    color: #8E1717;
}

/* ═══════════════════════════════════════════
   FSM TIMELINE — prototipo style
   ═══════════════════════════════════════════ */
.fsm {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 6px 0 2px;
    flex-wrap: wrap;
}

.fsm .st {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: var(--text-3);
    font-weight: 600;
}

.fsm .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--surface-300);
}

.fsm .st.done {
    color: var(--text-2);
}

.fsm .st.done .dot {
    background: var(--teal);
}

.fsm .st.now {
    color: var(--brand-primary);
}

.fsm .st.now .dot {
    background: var(--brand-primary);
    box-shadow: 0 0 0 4px var(--brand-primary-lighter);
}

.fsm .st.bad.now {
    color: var(--red);
}

.fsm .st.bad.now .dot {
    background: var(--red);
    box-shadow: 0 0 0 4px #FADCDC;
}

.fsm .arr {
    width: 26px;
    height: 1px;
    background: var(--surface-300);
    margin: 0 8px;
}

/* ═══════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════ */
.field {
    margin-bottom: 13px;
}

.field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-2);
    margin-bottom: 4px;
}

.field label .req {
    color: var(--red);
}

/* ═══════════════════════════════════════════
   DENIED — access denied page
   ═══════════════════════════════════════════ */
.denied {
    text-align: center;
    padding: 70px 20px;
}

.denied .lock {
    font-size: 44px;
}

.denied h2 {
    color: var(--color-primary-dark);
    margin: 10px 0 6px;
}

.denied p {
    color: var(--text-2);
    max-width: 52ch;
    margin: 0 auto 18px;
}

/* ═══════════════════════════════════════════
   STAT CARDS (legacy support)
   ═══════════════════════════════════════════ */
.stat-card {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 100%);
    border-radius: 12px;
    padding: 1.5rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.stat-card .stat-icon {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.9;
}

.stat-card .stat-label {
    font-size: 0.8rem;
    opacity: 0.8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0.25rem;
}

/* ═══════════════════════════════════════════
   LOGIN PAGE
   ═══════════════════════════════════════════ */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--brand-primary) 50%, var(--teal) 100%);
    position: relative;
}

.login-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 1rem;
}

.login-card-inner {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    padding: 2.5rem 2rem;
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo .logo-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.75rem;
    color: #fff;
}

.login-logo h1 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--brand-primary);
    margin: 0 0 0.25rem;
}

.login-logo p {
    color: #718096;
    font-size: 0.85rem;
    margin: 0;
}

.login-error {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: #c53030;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-input {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #1a202c;
    background: #f7fafc;
    transition: all 0.15s ease;
    outline: none;
}

.form-input:focus {
    border-color: var(--brand-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.1);
}

.btn-primary {
    width: 100%;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-light));
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(21, 128, 61, 0.3);
}

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.login-footer small {
    color: #a0aec0;
    font-size: 0.75rem;
}

/* ═══════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════ */
.text-muted {
    color: var(--text-3);
}

.text-sm {
    font-size: 0.875rem;
}

.font-bold {
    font-weight: 700;
}

.font-medium {
    font-weight: 500;
}

/* ═══════════════════════════════════════════
   GRID (PrimeFlex-compatible)
   ═══════════════════════════════════════════ */
.grid {
    display: flex;
    flex-wrap: wrap;
    margin: -0.5rem;
}

.grid>.col {
    padding: 0.5rem;
    flex: 1;
}

.col-12 {
    width: 100%;
    padding: 0.5rem;
}

.col-6 {
    width: 50%;
    padding: 0.5rem;
}

@media (min-width: 768px) {
    .md\:col-3 {
        width: 25%;
        padding: 0.5rem;
    }

    .md\:col-4 {
        width: 33.333%;
        padding: 0.5rem;
    }

    .md\:col-6 {
        width: 50%;
        padding: 0.5rem;
    }
}

/* ═══════════════════════════════════════════
   DIALOG LINE ITEMS — prevent overlap
   ═══════════════════════════════════════════ */
.dlg-lineas {
    width: 100%;
    border-collapse: collapse;
}

.dlg-lineas th {
    text-align: left;
    background: var(--surface-100);
    color: var(--text-2);
    font-weight: 600;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .4px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--surface-200);
}

.dlg-lineas td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--surface-100);
    vertical-align: top;
}

.dlg-lineas td .w-full {
    width: 100%;
    min-width: 0;
}

.dlg-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--surface-200);
    font-weight: 600;
    font-size: 13.5px;
    color: var(--color-primary-dark);
    background: var(--surface-50);
    border-radius: var(--radius) var(--radius) 0 0;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 880px) {
    .app-sidebar {
        display: none;
    }

    .app-main {
        padding: 16px;
    }

    .topbar .ctx-chip.user-chip,
    .topbar .ctx-chip:nth-child(2) {
        display: none;
    }
}

.msg[data-v-37154e77] { padding: 0.75rem 1rem; border-radius: 6px; font-size: 0.875rem;
}
.msg-warn[data-v-37154e77] { background: var(--p-yellow-50); color: var(--p-yellow-700); border: 1px solid var(--p-yellow-200);
}
.text-red-500[data-v-37154e77] { color: var(--p-red-500);
}
[data-v-37154e77] .countInput .p-inputnumber-input {
    width: 8rem !important;
}
[data-v-37154e77] .costUnitInput .p-inputnumber-input {
    width: 8rem !important;
}


.msg[data-v-08dd1a14] { padding: 0.75rem 1rem; border-radius: 6px; font-size: 0.875rem;
}
.msg-warn[data-v-08dd1a14] { background: var(--p-yellow-50); color: var(--p-yellow-700); border: 1px solid var(--p-yellow-200);
}
.msg-info[data-v-08dd1a14] { background: var(--p-blue-50); color: var(--p-blue-700); border: 1px solid var(--p-blue-200);
}
.msg-success[data-v-08dd1a14] { background: var(--p-green-50); color: var(--p-green-700); border: 1px solid var(--p-green-200);
}
.msg-danger[data-v-08dd1a14] { background: var(--p-red-50); color: var(--p-red-700); border: 1px solid var(--p-red-200);
}
.text-red-500[data-v-08dd1a14] { color: var(--p-red-500);
}
.text-green-500[data-v-08dd1a14] { color: var(--p-green-500);
}
[data-v-08dd1a14] .countInput .p-inputnumber-input {
    width: 8rem !important;
}


.msg[data-v-f6c8ae68] { padding: 0.75rem 1rem; border-radius: 6px; font-size: 0.875rem;
}
.msg-warn[data-v-f6c8ae68] { background: var(--p-yellow-50); color: var(--p-yellow-700); border: 1px solid var(--p-yellow-200);
}


.kpi-grid[data-v-becbdc4c] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.kpi-card[data-v-becbdc4c] {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    transition: transform 0.15s, box-shadow 0.15s;
}
.kpi-card[data-v-becbdc4c]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.kpi-icon[data-v-becbdc4c] {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #fff;
    flex-shrink: 0;
}
.kpi-productos .kpi-icon[data-v-becbdc4c] { background: linear-gradient(135deg, #3182ce, #2b6cb0);
}
.kpi-bodegas .kpi-icon[data-v-becbdc4c] { background: linear-gradient(135deg, #38a169, #276749);
}
.kpi-movimientos .kpi-icon[data-v-becbdc4c] { background: linear-gradient(135deg, #805ad5, #6b46c1);
}
.kpi-alertas .kpi-icon[data-v-becbdc4c] { background: linear-gradient(135deg, #e53e3e, #c53030);
}
.kpi-value[data-v-becbdc4c] {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a202c;
    line-height: 1;
}
.kpi-label[data-v-becbdc4c] {
    font-size: 0.8rem;
    color: #718096;
    margin-top: 0.25rem;
    font-weight: 500;
}
.charts-grid[data-v-becbdc4c] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.chart-card[data-v-becbdc4c] {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
}
.chart-card h3[data-v-becbdc4c] {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a202c;
}
.bar-chart[data-v-becbdc4c] {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.bar-row[data-v-becbdc4c] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.bar-label[data-v-becbdc4c] {
    width: 120px;
    font-size: 0.8rem;
    color: #4a5568;
    text-align: right;
    flex-shrink: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bar-track[data-v-becbdc4c] {
    flex: 1;
    height: 24px;
    background: #f7fafc;
    border-radius: 6px;
    overflow: hidden;
}
.bar-fill[data-v-becbdc4c] {
    height: 100%;
    border-radius: 6px;
    transition: width 0.5s ease;
    min-width: 2px;
}
.bar-fill-blue[data-v-becbdc4c] {
    background: linear-gradient(90deg, #3182ce, #63b3ed);
}
.bar-value[data-v-becbdc4c] {
    width: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #2d3748;
    text-align: right;
    flex-shrink: 0;
}
.empty-chart[data-v-becbdc4c] {
    text-align: center;
    padding: 2rem;
    color: #a0aec0;
    font-size: 0.85rem;
}
.tables-grid[data-v-becbdc4c] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1rem;
}
.table-card[data-v-becbdc4c] {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
}
.table-card h3[data-v-becbdc4c] {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a202c;
}
.stock-danger[data-v-becbdc4c] {
    color: #e53e3e;
    font-weight: 700;
}
.stock-warn[data-v-becbdc4c] {
    color: #d69e2e;
    font-weight: 600;
}
.stock-ok[data-v-becbdc4c] {
    color: #38a169;
    font-weight: 600;
}


.permisos-grid[data-v-04e36d4e] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}
.rol-card[data-v-04e36d4e] {
    background: #fff;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.rol-card-header[data-v-04e36d4e] {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}
.rol-codigo[data-v-04e36d4e] {
    font-family: monospace;
    font-size: 0.75rem;
    color: #888;
}
.rol-nombre[data-v-04e36d4e] {
    font-weight: 700;
    font-size: 1.05rem;
}
.permisos-tags[data-v-04e36d4e] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

