/* Shopper console (/ops). Internal tool; plain and dense. */
.ops { padding-block: 20px 40px; }
.ops-gate { max-width: 380px; margin: 8vh auto; text-align: center; }
.ops-gate h1 { font-size: 1.4rem; margin: 0 0 6px; }
.ops-gate p { color: #6a6a6a; margin: 0 0 16px; }
.ops-gate form { display: flex; gap: 8px; }
.ops-gate input { flex: 1; border: 1px solid #ddd; border-radius: 10px; padding: 10px 12px; font: inherit; }
.ops-gate button, .ops-composer button { border: 0; background: #16a34a; color: #fff; border-radius: 10px; padding: 0 18px; font-weight: 600; cursor: pointer; }
.ops-err { color: #b42318; font-size: .85rem; }

.ops-app { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 760px) { .ops-app { grid-template-columns: 1fr; } }

.ops-queue { border: 1px solid #e7e7e7; border-radius: 14px; background: #fff; overflow: hidden; }
.ops-queue-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid #f0f0f0; }
.ops-filters { display: flex; gap: 4px; flex-wrap: wrap; }
.ops-filters button { border: 1px solid #e0e0e0; background: #fff; border-radius: 999px; padding: 3px 9px; font-size: .72rem; cursor: pointer; color: #555; }
.ops-filters button.active { background: #16a34a; color: #fff; border-color: #16a34a; }
.ops-queue ul { list-style: none; margin: 0; padding: 0; max-height: 70vh; overflow-y: auto; }
.ops-queue li { padding: 10px 14px; border-bottom: 1px solid #f4f4f4; cursor: pointer; font-size: .85rem; }
.ops-queue li:hover { background: #fafafa; }
.ops-queue li.active { background: #f0fdf4; }
.ops-queue li .row1 { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.ops-queue li .meta { color: #8a8a8a; font-size: .74rem; margin-top: 3px; }

.ops-badge { font-size: .68rem; text-transform: uppercase; letter-spacing: .03em; padding: 2px 8px; border-radius: 999px; background: #eee; color: #555; white-space: nowrap; }
.ops-badge.ready { background: #dcfce7; color: #166534; }
.ops-badge.list_confirmed, .ops-badge.address_set { background: #fef9c3; color: #854d0e; }
.ops-badge.draft { background: #f1f5f9; color: #475569; }

.ops-detail { border: 1px solid #e7e7e7; border-radius: 14px; background: #fff; min-height: 60vh; padding: 16px; }
.ops-empty { color: #9a9a9a; text-align: center; padding: 20vh 0; }
.ops-order-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ops-order-head h2 { font-size: .95rem; margin: 0; font-family: monospace; color: #444; }
.ops-cols { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 16px; }
@media (max-width: 760px) { .ops-cols { grid-template-columns: 1fr; } }

.ops-convo { display: flex; flex-direction: column; gap: 8px; max-height: 52vh; overflow-y: auto; padding-right: 6px; }
.ops-msg { max-width: 88%; padding: 8px 12px; border-radius: 12px; font-size: .88rem; line-height: 1.4; white-space: pre-wrap; }
.ops-msg .who { display: block; font-size: .64rem; text-transform: uppercase; letter-spacing: .03em; color: #9a9a9a; margin-bottom: 2px; }
.ops-msg.customer { align-self: flex-start; background: #eef2ff; }
.ops-msg.ai { align-self: flex-end; background: #f4f4f5; }
.ops-msg.human { align-self: flex-end; background: #dcfce7; }

.ops-side { display: flex; flex-direction: column; gap: 12px; }
.ops-card { border: 1px solid #eee; border-radius: 12px; padding: 12px; font-size: .84rem; }
.ops-card h3 { font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: #9a9a9a; margin: 0 0 8px; }
.ops-card ul { list-style: none; margin: 0; padding: 0; }
.ops-card li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px solid #f5f5f5; }
.ops-card li:last-child { border-bottom: 0; }
.ops-card .qty { color: #777; white-space: nowrap; }

.ops-composer { display: flex; gap: 8px; margin-top: 14px; }
.ops-composer textarea { flex: 1; resize: none; border: 1px solid #ddd; border-radius: 10px; padding: 8px 10px; font: inherit; }

/* Ops payment card */
.ops-pay-row { display: flex; justify-content: space-between; padding: 4px 0; }
.ops-pay-lab { display: block; font-size: .78rem; color: #555; margin: 6px 0 2px; }
.ops-pay-lab input { width: 100%; border: 1px solid #ddd; border-radius: 8px; padding: 6px 8px; font: inherit; margin-top: 2px; }
.ops-pay-fine { font-size: .7rem; color: #888; margin: 6px 0; line-height: 1.4; }
#ops-pay button { width: 100%; margin-top: 8px; border: 0; background: #16a34a; color: #fff; border-radius: 8px; padding: 9px; font-weight: 650; cursor: pointer; }
#ops-pay button:disabled { opacity: .6; }
