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

.cmp-usd-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    margin-right: 8px;
}
.cmp-usd-pill:hover { background: #dbeafe; }

.cmp-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;
}
#submenus a { display: flex; align-items: center; gap: 8px; }

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

.cmp-checklist-grid { display: flex; flex-wrap: wrap; gap: 10px 18px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: #f8fafc; }
.cmp-checklist-grid label.check { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 600; cursor: pointer; }
.cmp-checklist-grid input[type="checkbox"] { width: auto; margin: 0; }

.cmp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cmp-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #f1f5f9; color: #334155; }
.cmp-chip.ok { background: #dcfce7; color: #166534; }
.cmp-chip.no { background: #fee2e2; color: #991b1b; }

.cmp-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; }
.cmp-state.ingresado, .cmp-state.diagnostico { background: #f1f5f9; color: #334155; }
.cmp-state.presupuestado { background: #fef3c7; color: #92400e; }
.cmp-state.aprobado { background: #dcfce7; color: #166534; }
.cmp-state.reparacion { background: #e0e7ff; color: #3730a3; }
.cmp-state.listo { background: #dbeafe; color: #1d4ed8; }
.cmp-state.entregado { background: #e2e8f0; color: #475569; }
.cmp-state.vigente { background: #dcfce7; color: #166534; }
.cmp-state.vencida { background: #fee2e2; color: #991b1b; }
.cmp-state.bajo { background: #fef3c7; color: #92400e; }
.cmp-state.usd { background: #eff6ff; color: #1d4ed8; }
.cmp-state.ars { background: #f1f5f9; color: #334155; }

.cmp-facts dt, .cmp-balance dt { color: var(--muted); font-size: 13px; }
.cmp-facts dd, .cmp-balance dd { margin: 3px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.cmp-balance { display: flex; flex-wrap: wrap; gap: 12px 24px; border-top: 1px solid var(--line); padding: 12px 0 0; margin-bottom: 0; }
.cmp-total { text-align: right; font-size: 18px; font-weight: 700; }
.cmp-form textarea { display: block; width: 100%; margin-top: 4px; padding: 8px 10px; resize: vertical; font: inherit; color: var(--ink); background: white; border: 1px solid #cbd5e1; border-radius: 7px; }

.cmp-rma-banner { background: #eff6ff; border: 1px solid #93c5fd; border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; color: #1e3a8a; }
.cmp-rma-banner strong { display: block; margin-bottom: 2px; }

.cmp-approve-box {
    border: 2px solid #2563eb;
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 18px;
}
.cmp-approved-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-weight: 700;
    font-size: 13px;
}

.cmp-track-body { background: #eff6ff; }
.cmp-track-wrap { max-width: 660px; margin: 0 auto; padding: 18px 14px 44px; display: grid; gap: 14px; }
.cmp-track-head { display: flex; align-items: center; gap: 10px; }
.cmp-track-head .brand-icon { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg,#2563eb,#1d4ed8); display: grid; place-items: center; color: #fff; }
.cmp-track-head .brand-icon svg { width: 20px; height: 20px; color: #fff; }
.cmp-track-head small { display: block; color: var(--muted); font-size: 12px; }
.cmp-track-head a { margin-left: auto; }

.cmp-stepper { list-style: none; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; padding: 0; margin: 16px 0 0; }
.cmp-stepper li { text-align: center; display: grid; justify-items: center; gap: 4px; color: var(--muted); }
.cmp-stepper li span { width: 26px; height: 26px; border-radius: 50%; background: #e2e8f0; color: #475569; font-weight: 700; font-size: 12px; display: grid; place-items: center; }
.cmp-stepper li small { font-size: 11px; line-height: 1.2; }
.cmp-stepper li.done span { background: #2563eb; color: #fff; }
.cmp-stepper li.current small { color: #1d4ed8; font-weight: 700; }

.cmp-warranty-card { border: 2px solid #bfdbfe; padding: 26px; }
.cmp-print main { max-width: 840px; margin: auto; padding: 20px; }
.cmp-print-nav { margin-bottom: 16px; }

@media (max-width: 680px) {
    .cmp-sale-row { grid-template-columns: 1fr; }
    .cmp-stepper { grid-template-columns: repeat(4, 1fr); row-gap: 10px; }
    .panel-title, .page-head { flex-wrap: wrap; }
}
@media print {
    body.cmp-print { background: white; color: #000; }
    .cmp-print .panel { border: 0; box-shadow: none; padding: 0; }
    .cmp-print-nav { display: none; }
}
