.vo-stack { display: grid; gap: 15px; }
.vo-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 15px; }
.vo-form { max-width: 880px; }
.vo-span { grid-column: 1 / -1; }
.vo-table { overflow-x: auto; }
.vo-nowrap { white-space: nowrap; }
.vo-inline { display: inline; }
.vo-muted { color: var(--muted); }
.vo-ok { color: #15803d; font-weight: 700; }
.vo-warn { color: #b45309; }
.vo-pill { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; background: #e8eeff; color: #1d4ed8; font-size: 12px; font-weight: 700; white-space: nowrap; }
.vo-pill.warn { background: #fef3c7; color: #b45309; }
.vo-nav-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #2563eb; color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.vo-nav-badge.warn { background: #d97706; }
#submenus a { display: flex; align-items: center; gap: 8px; }
.button.small { padding: 6px 10px; font-size: 12.5px; }
.vo-print main { max-width: 820px; margin: auto; padding: 20px; }

/* Modales estilo Al Paso / Comercio */
dialog.product-modal {
    width: min(720px, 95vw);
    max-width: 720px;
    max-height: 90vh;
    padding: 0;
    border: 1px solid #dbe4f0;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .24);
    overflow: hidden;
    background: #ffffff;
}
dialog.product-modal.modal-narrow {
    width: min(560px, 95vw);
    max-width: 560px;
}
dialog.product-modal::backdrop {
    background: rgba(15, 23, 42, .48);
    backdrop-filter: blur(3px);
}
.pm-shell { display: flex; flex-direction: column; max-height: 90vh; }
.pm-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px 12px;
    border-bottom: 1px solid #eef2f8;
    background: #ffffff;
}
.pm-header h2 { margin: 0; font-size: 19px; letter-spacing: -.025em; color: #0f172a; }
.pm-header small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.pm-form { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.pm-body { padding: 18px 22px; overflow-y: auto; flex: 1; max-height: calc(90vh - 150px); }
.pm-panel { display: grid; gap: 13px; }
.pm-panel label { display: block; font-size: 13px; font-weight: 600; color: #334155; }
.pm-panel input:not([type=checkbox]):not([type=file]),
.pm-panel select,
.pm-panel textarea {
    display: block;
    width: 100%;
    margin-top: 4px;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    background: #ffffff;
    color: #0f172a;
    font-size: 14px;
}
.pm-panel input:focus,
.pm-panel select:focus,
.pm-panel textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px #dbeafe;
}
.pm-hint { display: block; margin-top: 3px; font-size: 11.5px; font-weight: 450; color: #64748b; }
.pm-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pm-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pm-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 22px;
    border-top: 1px solid #eef2f8;
    background: #ffffff;
}
@media (max-width: 720px) {
    .pm-grid-2, .pm-grid-3 { grid-template-columns: 1fr; }
}
@media print { .vo-print-nav { display: none; } body.vo-print { background: white; } }
