.pas-stack { display: grid; gap: 15px; }
.pas-form { max-width: 860px; }
.pas-span { grid-column: 1 / -1; }
.pas-table { overflow-x: auto; }
.pas-nowrap { white-space: nowrap; }
.pas-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pas-top { margin-top: 14px; }
.pas-muted { color: var(--muted); }
.pas-inline { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }

.pas-nav-badge {
    margin-left: auto;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
#submenus a { display: flex; align-items: center; gap: 8px; }

.pas-rows { margin: 14px 0 0; border: 1px solid var(--line); border-radius: 9px; min-width: 0; padding: 12px; }
.pas-rows legend { padding-inline: 6px; font-weight: 700; }
.pas-sale-row { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 10px; margin-bottom: 10px; }
.pas-sale-row:last-child { margin-bottom: 0; }
.pas-sale-row select { width: 100%; text-overflow: ellipsis; }

.pas-state {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 650;
    white-space: nowrap;
    background: #e0f2fe;
    color: #0369a1;
}
.pas-state.masa { background: #fef3c7; color: #92400e; }
.pas-state.relleno { background: #ede9fe; color: #5b21b6; }
.pas-state.activo, .pas-state.pagada, .pas-state.entregado, .pas-state.entregada, .pas-state.lista { background: #dcfce7; color: #166534; }
.pas-state.pendiente, .pas-state.por_vencer { background: #fef3c7; color: #92400e; }
.pas-state.baja, .pas-state.vencido { background: #fee2e2; color: #991b1b; }
.pas-state.agotado { background: #e2e8f0; color: #475569; }
.pas-state.encargo { background: #dbeafe; color: #1d4ed8; }

.pas-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
}

.pas-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.pas-card { border: 1px solid var(--line); border-radius: 10px; padding: 14px; background: #fff; display: grid; gap: 8px; }
.pas-ing-list { list-style: none; padding: 0; margin: 0; font-size: 13px; display: grid; gap: 3px; }
.pas-ing-list li { display: flex; justify-content: space-between; border-bottom: 1px dashed #e2e8f0; padding: 3px 0; }
.pas-ing-list li:last-child { border-bottom: 0; }

.pas-mini-form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pas-mini-form input, .pas-mini-form select { width: auto; padding: 5px 8px; margin: 0; font-size: 13px; }
.pas-total { text-align: right; font-size: 18px; font-weight: 700; }

.pas-print main { max-width: 820px; margin: auto; padding: 20px; }
.pas-print-nav { margin-bottom: 16px; }

@media (max-width: 720px) {
    .pas-sale-row { grid-template-columns: minmax(0, 1fr); }
}
@media print {
    body.pas-print { background: white; color: #000; }
    .pas-print .panel { border: 0; box-shadow: none; padding: 0; }
    .pas-print-nav { display: none; }
}
