/* op.css — FT-20261014-07. The operator app (phone shell). Only used under 720px. */
#op-root { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; background: #eef2f7; color: #0f172a; }
#op-root[hidden] { display: none; }
body.op-on { overflow: hidden; }
body.op-on #app, body.op-on .qr-fab { visibility: hidden; }
.op-top { display: flex; align-items: center; justify-content: space-between; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: var(--brand, #0f172a); color: #fff; }
.op-biz { font-weight: 800; font-size: 17px; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.op-bell { position: relative; background: none; border: 0; color: #fff; padding: 6px; cursor: pointer; }
.op-ic { width: 24px; height: 24px; display: block; }
.op-ic.big { width: 54px; height: 54px; }
.op-badge { position: absolute; top: 0; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #dc2626; color: #fff; font: 700 11px/18px system-ui, sans-serif; font-style: normal; text-align: center; }
.op-badge.in { position: static; display: inline-block; }
.op-main { flex: 1 1 auto; min-height: 0; background: #eef2f7; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 14px 14px 24px; }
.op-tabs { display: flex; flex-direction: row; flex: 0 0 auto; width: 100%; box-sizing: border-box; background: #fff; border-top: 1px solid var(--line, #e2e8f0); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); }
.op-tabs button { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; background: none; border: 0; padding: 6px 0; color: #64748b; font: 600 11px system-ui, sans-serif; cursor: pointer; }
.op-tabs button.on { color: var(--brand, #0f172a); }
.op-tabs button .op-badge { top: 2px; right: calc(50% - 22px); }
.op-tabs .op-cam .op-ic { width: 30px; height: 30px; background: var(--brand, #0f172a); color: #fff; border-radius: 50%; padding: 7px; box-sizing: content-box; margin-top: -16px; box-shadow: 0 4px 12px rgba(15,23,42,.3); }
.op-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.op-card { text-align: left; background: #fff; border: 1px solid var(--line, #e2e8f0); border-radius: 14px; padding: 12px 14px; cursor: pointer; font: inherit; color: inherit; }
.op-card span { display: block; font-size: 12px; color: #64748b; font-weight: 600; }
.op-card b { display: block; font-size: 21px; margin-top: 2px; }
.op-card small { color: #64748b; font-size: 12px; }
.op-card em { color: #dc2626; font-style: normal; font-weight: 700; }
.pos { color: #15803d; } .neg { color: #dc2626; }
.op-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.op-chip { border: 1px solid var(--line, #e2e8f0); background: #fff; border-radius: 18px; padding: 8px 12px; font: 600 13px system-ui, sans-serif; color: inherit; cursor: pointer; }
.op-chip.warn { border-color: #f59e0b; background: #fffbeb; color: #92400e; }
.op-sec { display: flex; align-items: baseline; justify-content: space-between; margin: 18px 2px 6px; }
.op-sec h3 { margin: 0; font-size: 16px; }
.op-lnk { background: none; border: 0; color: var(--brand, #1d4ed8); font: 600 13px system-ui, sans-serif; cursor: pointer; padding: 0; }
.op-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: #fff; border: 1px solid var(--line, #e2e8f0); border-radius: 12px; padding: 11px 12px; margin-bottom: 8px; font: inherit; color: inherit; cursor: pointer; box-sizing: border-box; }
.op-row.unread { border-left: 4px solid #dc2626; }
.op-grow { flex: 1; min-width: 0; }
.op-grow b { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.op-grow small { display: block; color: #64748b; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.op-map { display: block; font-size: 13px; color: var(--brand, #1d4ed8); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.op-time { width: 58px; font-weight: 700; font-size: 13px; color: #475569; }
.op-when { color: #94a3b8; font-size: 12px; white-space: nowrap; }
.op-av { width: 36px; height: 36px; border-radius: 50%; background: #e2e8f0; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #475569; flex: 0 0 auto; }
.op-right { text-align: right; }
.op-right b { display: block; }
.op-st { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 1px 7px; border-radius: 8px; background: #e2e8f0; color: #475569; }
.op-st.paid, .op-st.accepted { background: #dcfce7; color: #166534; }
.op-st.overdue, .op-st.declined { background: #fee2e2; color: #991b1b; }
.op-st.partial, .op-st.pending { background: #fef3c7; color: #92400e; }
.op-empty { text-align: center; color: #64748b; padding: 28px 10px; }
.op-empty.small { padding: 10px; font-size: 14px; }
.op-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.op-quick button, .op-btn { background: var(--brand, #0f172a); color: #fff; border: 0; border-radius: 12px; padding: 13px; font: 700 15px system-ui, sans-serif; cursor: pointer; }
.op-btn.wide { width: 100%; margin-bottom: 12px; }
.op-seg { display: flex; background: #e2e8f0; border-radius: 12px; padding: 3px; margin-bottom: 10px; }
.op-seg button { flex: 1; border: 0; background: none; padding: 9px 4px; border-radius: 9px; font: 700 14px system-ui, sans-serif; color: #475569; cursor: pointer; }
.op-seg button.on { background: #fff; color: var(--ink, #0f172a); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.op-seg.small button { padding: 6px 4px; font-size: 13px; }
.op-sub { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #64748b; margin: 16px 2px 6px; font-weight: 700; }
.op-cam-pane { display: flex; flex-direction: column; gap: 10px; }
.op-snap { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 46vh; border: 2px dashed #94a3b8; border-radius: 18px; background: #fff; color: var(--brand, #0f172a); font: 700 18px system-ui, sans-serif; cursor: pointer; }
.op-hint { color: #64748b; font-size: 13px; text-align: center; margin: 4px 8px; }
.op-preview { width: 100%; max-height: 40vh; object-fit: contain; border-radius: 12px; background: #0f172a; }
.op-vis { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #475569; }
.op-vis.big { font-size: 15px; margin: 4px 0 8px; }
.op-vis input { width: 18px; height: 18px; }
.op-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.op-actions .btn { flex: 1 1 40%; }
.op-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.op-ph { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; }
.op-ph img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: #e2e8f0; }
.op-ph small { font-size: 11px; color: #64748b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.op-items td, .op-items th { padding: 6px 4px; }
.op-back { position: fixed; left: 12px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 250; background: var(--brand, #0f172a); color: #fff; border: 0; border-radius: 22px; padding: 11px 16px; font: 700 14px system-ui, sans-serif; box-shadow: 0 6px 18px rgba(15,23,42,.3); }
/* In a browser on a big screen, the desktop site. Inside the store app (body.op-native), always the app. */
@media (min-width: 721px) { body:not(.op-native) #op-root, body:not(.op-native) .op-back { display: none !important; } body.op-on:not(.op-native) #app { visibility: visible; } }
@media (max-width: 720px) { .overlay { padding: 12px 8px; } .modal { border-radius: 12px; } }

/* FT-20261019-02: press and hold any amount to hide every amount (and again to show them). */
.op-amt{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.op-amt-m{display:none;letter-spacing:.08em}
body.op-hide-money .op-amt-v{display:none}
body.op-hide-money .op-amt-m{display:inline}
