/* Orders-only styles (shared list styles live in list.css) */
.otable th:nth-child(1) { width: 17%; }
.otable th:nth-child(2) { width: 23%; }
.otable th:nth-child(3) { width: 16.5%; }
.otable th:nth-child(4) { width: 10%; }
.otable th:nth-child(5) { width: 14%; }
.otable th:nth-child(7) { width: 64px; }

/* Make rows look clickable */
.otable tbody tr { cursor: pointer; }

.o-cust { display: flex; align-items: center; gap: 10px; }
.o-cust img, .o-cust .ph {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  background: #EDEFEE;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
  color: #4A4A4A;
}
.o-name { display: block; font-size: 15px; font-weight: 600; }
.o-items { font-size: 15px; color: var(--text); }
.otable td:nth-child(3) .o-items { font-weight: 600; }
.order-products-cell { display: flex; align-items: center; gap: 10px; min-width: 0; padding-right: 8px; }
.order-product-thumb { width: 42px; height: 42px; flex: 0 0 42px; display: block; border-radius: 7px; background: #F4F6F5; object-fit: cover; }
.order-product-thumb-empty { border: 1px solid var(--border); }
.order-products-cell > div { min-width: 0; }
.order-products-cell .o-sub { overflow: hidden; text-overflow: ellipsis; }
.o-total { font-size: 15px; font-weight: 700; }
.o-pay .pill { height: 22px; font-size: 12.5px; }

.order-dialog { width: min(680px, calc(100vw - 32px)); max-height: min(90vh, 900px); overflow: auto; padding: 0; border: 1px solid var(--border); border-radius: 14px; color: var(--text); background: var(--surface, #fff); box-shadow: 0 24px 80px rgba(20, 30, 25, .24); }
.order-dialog::backdrop { background: rgba(18, 26, 22, .48); backdrop-filter: blur(2px); }
.order-dialog form { padding: 24px; }
.order-dialog-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.order-dialog-head h2 { margin: 0; font-size: 20px; }
.order-dialog-head p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.order-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.order-form-grid label { display: grid; gap: 6px; color: var(--text-secondary); font-size: 13px; font-weight: 500; }
.order-form-grid input, .order-form-grid select { min-width: 0; width: 100%; height: 40px; padding: 0 10px; border: 1px solid var(--border); border-radius: 7px; background: var(--field, #fff); color: var(--text); font: inherit; }
.order-form-grid input:focus, .order-form-grid select:focus { outline: 2px solid var(--primary-soft); border-color: transparent; }
.order-form-wide { grid-column: 1 / -1; }
.order-dialog-error { color: #b42318; font-size: 13px; }
.order-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
@media (max-width: 560px) { .order-dialog form { padding: 18px; } .order-form-grid { grid-template-columns: 1fr; } .order-form-wide { grid-column: auto; } }
