/* annonERP prototype — sales module styles. Use tokens from tokens.css only. */

/* period filter above sales, orders and statement lists */
.period-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-3); margin-bottom: var(--space-4); }
.period-bar .field { margin: 0; min-width: 160px; }
.period-bar .period-range { padding-bottom: var(--space-2); }
.card-body .period-bar { margin-bottom: 0; }

/* chosen customer in the customer picker */
.cust-chosen { display: flex; align-items: center; gap: var(--space-3); min-height: 44px; padding: var(--space-2) var(--space-3); border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.cust-chosen-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cust-chosen-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.combo-side { display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-1); }
.cust-facts { max-width: 560px; }

/* payment mode radio chips */
.seg { display: flex; flex-wrap: wrap; gap: var(--space-2); border: 0; padding: 0; margin: 0; }
.seg legend { width: 100%; margin-bottom: var(--space-2); }
.seg .chip { cursor: pointer; min-height: 36px; display: inline-flex; align-items: center; gap: var(--space-2); }
.seg .chip:has(input:checked) { background: var(--accent-tint); border-color: var(--accent-600); color: var(--accent-700); }

/* prices table on the invoice form */
.price-table .field { margin: 0; }
.price-table .input-group { max-width: 150px; margin-left: auto; }
.price-table td[data-amt] { white-space: nowrap; }
.qty-in { width: 80px; margin-left: auto; text-align: right; }

/* order fulfilment stepper */
.order-steps { list-style: none; display: flex; gap: var(--space-2); margin: 0; padding: 0; }
.order-steps li { flex: 1; display: flex; align-items: center; gap: var(--space-2); color: var(--text-secondary); font-size: var(--fs-label); position: relative; }
.order-steps li:not(:last-child)::after { content: ""; flex: 1; height: 2px; background: var(--border); margin: 0 var(--space-2); }
.order-steps li.done::after { background: var(--success); }
.order-steps li.current { color: var(--text-primary); font-weight: 600; }
.order-steps .badge { min-width: 24px; height: 24px; justify-content: center; border-radius: var(--radius-full); }
.order-steps .badge svg { width: 14px; height: 14px; }

.plain-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.done-mark { width: 56px; height: 56px; margin: 0 auto var(--space-3); border-radius: var(--radius-full); background: var(--success-bg); color: var(--success); display: flex; align-items: center; justify-content: center; }
.done-mark svg { width: 28px; height: 28px; }

@media (max-width: 720px) {
  .order-steps { flex-direction: column; align-items: stretch; }
  .order-steps li::after { display: none; }
  .period-bar .field { flex: 1 1 140px; min-width: 0; }
  .cust-chosen .btn { padding-inline: var(--space-2); }
}
