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

.bici-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; }

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

.bici-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;
}
.bici-state.recibida { background: #fef3c7; color: #92400e; }
.bici-state.diagnostico { background: #ffedd5; color: #9a3412; }
.bici-state.taller { background: #e0f2fe; color: #0369a1; }
.bici-state.lista { background: #dcfce7; color: #166534; }
.bici-state.entregada { background: #dbeafe; color: #1d4ed8; }
.bici-state.bajo { background: #fee2e2; color: #991b1b; }
.bici-state.repuesto { background: #ede9fe; color: #5b21b6; }
.bici-state.mano_obra { background: #e0f2fe; color: #0369a1; }

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

.bici-facts dt, .bici-balance dt { color: var(--muted); font-size: 13px; }
.bici-facts dd, .bici-balance dd { margin: 3px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.bici-balance {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    border-top: 1px solid var(--line);
    padding: 12px 0 0;
    margin-bottom: 0;
}
.bici-total { text-align: right; font-size: 18px; font-weight: 700; }

.bici-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;
}

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

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

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

@media (max-width: 720px) {
    .bici-sale-row { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
    .panel-title, .page-head { flex-wrap: wrap; }
    .bici-orders table, .bici-orders tbody { display: block; }
    .bici-orders thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .bici-orders tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
    .bici-orders tbody tr:last-child { border-bottom: 0; }
    .bici-orders td { display: block; padding: 0; border: 0; white-space: normal; overflow-wrap: anywhere; }
    .bici-orders td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; color: var(--muted); }
    .bici-order-name { grid-column: 1 / -1; grid-row: 1; font-weight: 700; }
    .bici-order-action { text-align: right; align-self: center; }
}

@media print {
    body.bici-print { background: white; color: #000; }
    .bici-print .panel { border: 0; box-shadow: none; padding: 0; }
    .bici-print-nav { display: none; }
}
