.op-view {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  color: var(--ink);
}

.op-view h2,
.op-view h3,
.op-view h4 {
  font-family: var(--font-display);
  letter-spacing: -.035em;
}

.op-view button { font-family: var(--font-ui); }
.op-kicker { display: block; margin-bottom: 7px; color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .105em; text-transform: uppercase; }
.op-link-button { padding: 4px 0; display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--violet); font-size: .72rem; font-weight: 800; cursor: pointer; }
.op-link-button svg { width: 14px; height: 14px; transition: transform .18s var(--ease); }
.op-link-button:hover svg { transform: translateX(3px); }
.op-wide-button { width: 100%; }

/* Today */
.op-hero {
  min-height: 166px;
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, #11241e 0%, #19352b 68%, #1d4134 100%);
  color: white;
  box-shadow: 0 22px 50px rgba(18, 33, 29, .12);
}

.op-hero::before,
.op-hero::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(125, 215, 184, .12);
  border-radius: 50%;
  pointer-events: none;
}

.op-hero::before { width: 310px; height: 310px; right: 12%; top: -240px; }
.op-hero::after { width: 185px; height: 185px; right: -58px; bottom: -115px; }
.op-hero > * { z-index: 1; }
.op-hero .op-kicker { color: var(--mint); }
.op-hero h2 { max-width: 680px; margin: 0; font-size: clamp(1.55rem, 2.5vw, 2.25rem); font-weight: 600; }
.op-hero p { max-width: 620px; margin: 10px 0 0; color: rgba(255, 255, 255, .62); font-size: .84rem; line-height: 1.55; }
.op-hero-actions { display: flex; gap: 10px; flex-shrink: 0; }
.op-hero .button.secondary { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .17); color: white; }
.op-hero .button.secondary:hover { background: rgba(255, 255, 255, .13); }

.op-metrics { margin-top: 15px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.op-metric-card { min-height: 147px; padding: 19px 20px 17px; overflow: hidden; position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.op-metric-card::after { content: ""; position: absolute; width: 90px; height: 90px; right: -50px; bottom: -52px; border-radius: 50%; background: var(--metric-soft); opacity: .75; }
.op-metric-card.revenue { --metric: var(--success); --metric-soft: var(--mint-soft); }
.op-metric-card.occupancy { --metric: var(--violet); --metric-soft: var(--violet-soft); }
.op-metric-card.bookings { --metric: #b55c44; --metric-soft: var(--coral-soft); }
.op-metric-card.payments { --metric: #b17b1f; --metric-soft: var(--amber-soft); }
.op-metric-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: .69rem; font-weight: 800; letter-spacing: .065em; text-transform: uppercase; }
.op-metric-top i { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; background: var(--metric-soft); color: var(--metric); font-style: normal; }
.op-metric-top svg { width: 15px; height: 15px; }
.op-metric-card > strong { display: block; margin-top: 8px; font: 600 clamp(1.55rem, 2.3vw, 2rem)/1 var(--font-display); letter-spacing: -.06em; }
.op-metric-card > p { margin: 9px 0 0; color: var(--muted); font-size: .7rem; }
.op-progress { height: 5px; overflow: hidden; border-radius: 999px; background: var(--paper-2); }
.op-progress span { height: 100%; display: block; border-radius: inherit; background: var(--violet); }
.op-metric-card .op-progress { margin-top: 12px; }

.op-disruption { margin-top: 15px; padding: 20px; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 17px; border: 1px solid #ead39f; border-radius: var(--radius-md); background: #fffaf0; box-shadow: var(--shadow-sm); }
.op-disruption.resolved { border-color: #b9decf; background: #f2fbf7; }
.op-disruption-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--amber-soft); color: #966411; }
.op-disruption.resolved .op-disruption-icon { background: var(--mint-soft); color: var(--success); }
.op-disruption .op-kicker { margin-bottom: 4px; color: #8a641d; }
.op-disruption.resolved .op-kicker { color: var(--success); }
.op-disruption h3 { margin: 0; font-size: 1rem; }
.op-disruption p { margin: 5px 0 0; color: var(--muted); font-size: .75rem; line-height: 1.45; }
.op-disruption-actions { display: grid; gap: 5px; min-width: 164px; }
.op-disruption-actions .button.ghost { min-height: 34px; font-size: .68rem; }
.op-move-preview { max-width: 720px; margin-top: 13px; padding: 10px 12px; display: grid; grid-template-columns: minmax(145px, 1fr) auto minmax(145px, 1fr) auto; align-items: center; gap: 12px; border: 1px solid #ead9b7; border-radius: 11px; background: rgba(255, 255, 255, .7); }
.op-move-preview span small, .op-move-preview span strong { display: block; }
.op-move-preview span small { color: var(--muted); font-size: .6rem; text-transform: uppercase; letter-spacing: .07em; }
.op-move-preview span strong { margin-top: 3px; font-size: .72rem; }
.op-move-preview b { color: #a47723; }
.op-move-preview b svg { width: 16px; height: 16px; }
.op-move-preview em { padding: 5px 8px; border-radius: 999px; background: var(--mint-soft); color: var(--success); font-size: .61rem; font-style: normal; font-weight: 800; white-space: nowrap; }

.op-dashboard-grid { margin-top: 15px; display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(300px, .68fr); gap: 15px; }
.op-courts-panel, .op-arrivals-panel, .op-attention-panel { padding: 22px; }
.op-court-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.op-court-card { min-height: 115px; padding: 13px; display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 13px; background: #fff; transition: border-color .18s var(--ease), transform .18s var(--ease); }
.op-court-card:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.op-court-visual { width: 58px; height: 75px; display: grid; place-items: center; position: relative; overflow: hidden; border-radius: 10px; background: #d8ebe4; color: #204e40; }
.op-court-card.warning .op-court-visual { background: var(--amber-soft); color: #8a6319; }
.op-court-card.info .op-court-visual { background: var(--blue-soft); color: #315fc0; }
.op-court-card.danger .op-court-visual { background: var(--coral-soft); color: var(--danger); }
.op-court-visual::before { content: ""; position: absolute; inset: 9px 7px; border: 1px solid currentColor; border-radius: 2px; opacity: .28; }
.op-court-visual i { width: 44px; height: 1px; position: absolute; left: 7px; top: 50%; background: currentColor; opacity: .25; }
.op-court-visual i:last-child { width: 1px; height: 57px; left: 50%; top: 9px; }
.op-court-visual span { z-index: 1; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.78); font: 700 .68rem var(--font-display); }
.op-court-copy > span { color: var(--muted); font-size: .61rem; }
.op-court-copy h3 { margin: 3px 0 4px; font-size: .86rem; }
.op-court-copy p { margin: 0; color: var(--muted); font-size: .66rem; line-height: 1.35; }
.op-court-state { height: 100%; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.op-court-state small { color: var(--muted); font-size: .59rem; }
.op-court-state .status-pill { min-height: 24px; padding-inline: 8px; font-size: .62rem; }

.op-arrival-list { min-height: 300px; }
.op-arrival { min-height: 71px; display: grid; grid-template-columns: 75px minmax(0, 1fr) auto; align-items: center; gap: 9px; }
.op-time-rail { height: 100%; position: relative; display: flex; align-items: center; }
.op-time-rail strong { margin-left: 18px; font-size: .65rem; }
.op-time-rail i { width: 9px; height: 9px; position: absolute; left: 1px; top: 31px; z-index: 1; border: 2px solid var(--paper); border-radius: 50%; background: var(--line-strong); }
.op-time-rail i.info { background: var(--blue); }
.op-time-rail i.success { background: var(--success); }
.op-time-rail i.warning { background: var(--amber); }
.op-time-rail > span { width: 1px; position: absolute; left: 5px; top: 36px; bottom: -35px; background: var(--line); }
.op-arrival > div:nth-child(2) strong { display: block; font-size: .74rem; }
.op-arrival > div:nth-child(2) p { margin: 3px 0 0; color: var(--muted); font-size: .64rem; }
.op-arrival .status-pill { min-height: 24px; padding-inline: 8px; font-size: .61rem; }
.op-live-mark { display: inline-flex; align-items: center; gap: 6px; color: var(--success); font-size: .65rem; font-weight: 800; }
.op-live-mark i { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(22,132,91,.11); }

.op-lower-grid { margin-top: 15px; display: grid; grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr); gap: 15px; }
.op-attention-row { width: 100%; min-height: 65px; padding: 10px 0; display: grid; grid-template-columns: 38px minmax(0, 1fr) 18px; align-items: center; gap: 11px; border: 0; border-top: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.op-attention-row > i { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; font-style: normal; }
.op-attention-row > i.warning { background: var(--amber-soft); color: #996515; }
.op-attention-row > i.info { background: var(--blue-soft); color: #315fc0; }
.op-attention-row > i svg { width: 16px; height: 16px; }
.op-attention-row span strong, .op-attention-row span small { display: block; }
.op-attention-row span strong { font-size: .73rem; }
.op-attention-row span small { margin-top: 4px; color: var(--muted); font-size: .63rem; }
.op-attention-row > svg { width: 15px; color: var(--muted); }
.op-quick-card { padding: 25px; display: grid; grid-template-columns: minmax(170px, .65fr) minmax(0, 1.35fr); gap: 24px; align-items: center; border-radius: var(--radius-md); background: var(--ink); color: white; box-shadow: var(--shadow-sm); }
.op-quick-card .op-kicker { color: var(--mint); }
.op-quick-card h2 { margin: 0; font-size: 1.15rem; }
.op-quick-card > div > p { margin: 8px 0 0; color: rgba(255,255,255,.55); font-size: .7rem; line-height: 1.5; }
.op-quick-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.op-quick-actions button { min-height: 83px; padding: 12px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: rgba(255,255,255,.05); color: white; text-align: left; cursor: pointer; transition: .18s var(--ease); }
.op-quick-actions button:hover { background: rgba(255,255,255,.1); transform: translateY(-1px); }
.op-quick-actions button > svg { width: 18px; color: var(--mint); }
.op-quick-actions strong, .op-quick-actions small { display: block; }
.op-quick-actions strong { font-size: .68rem; }
.op-quick-actions small { margin-top: 3px; color: rgba(255,255,255,.48); font-size: .58rem; }

/* Schedule */
.op-toolbar { min-height: 58px; margin-bottom: 17px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.op-date-control, .op-toolbar-actions { display: flex; align-items: center; gap: 9px; }
.op-date-control > .icon-button:first-child svg { transform: rotate(180deg); }
.op-date-label { min-width: 170px; border: 0; background: transparent; text-align: left; cursor: pointer; }
.op-date-label span, .op-date-label strong { display: block; }
.op-date-label span { color: var(--violet); font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.op-date-label strong { margin-top: 3px; font: 600 .88rem var(--font-display); }
.op-segmented { padding: 3px; display: flex; border: 1px solid var(--line); border-radius: 11px; background: var(--paper-2); }
.op-segmented button { min-height: 34px; padding: 0 13px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: .68rem; font-weight: 700; cursor: pointer; }
.op-segmented button.active { background: var(--paper); color: var(--ink); box-shadow: 0 1px 4px rgba(18,33,29,.08); }
.op-schedule-view .op-disruption { margin: 0 0 17px; }
.op-schedule-board { padding: 0; overflow: hidden; }
.op-board-meta { min-height: 65px; padding: 0 19px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.op-board-meta > div:first-child { display: flex; align-items: center; gap: 12px; }
.op-board-meta > div:first-child strong { font-size: .74rem; }
.op-schedule-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 13px; color: var(--muted); font-size: .62rem; }
.op-schedule-legend span { display: flex; align-items: center; gap: 5px; }
.op-schedule-legend i { width: 8px; height: 8px; border-radius: 3px; }
.op-schedule-legend i.playing { background: var(--success); }
.op-schedule-legend i.reserved { background: var(--violet); }
.op-schedule-legend i.program { background: var(--coral); }
.op-schedule-legend i.review { background: var(--amber); }
.op-board-scroll { width: 100%; overflow-x: auto; background: #fff; scrollbar-color: var(--line-strong) transparent; }
.op-time-header, .op-schedule-row { min-width: 1020px; display: grid; grid-template-columns: 112px repeat(28, minmax(31px, 1fr)); position: relative; }
.op-time-header { min-height: 44px; align-items: center; border-bottom: 1px solid var(--line); background: #fbfaf6; }
.op-time-header::after, .op-schedule-row::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 112px; pointer-events: none; background: repeating-linear-gradient(to right, transparent 0, transparent calc((100% / 28) - 1px), rgba(222,223,217,.58) calc((100% / 28) - 1px), rgba(222,223,217,.58) calc(100% / 28)); }
.op-time-header > span { padding-left: 18px; color: var(--muted); font-size: .57rem; font-weight: 800; letter-spacing: .09em; }
.op-time-header time { grid-column: var(--time-col) / span 2; z-index: 1; padding-left: 8px; color: var(--muted); font-size: .58rem; }
.op-schedule-row { min-height: 82px; align-items: center; border-bottom: 1px solid var(--line); }
.op-schedule-row:last-child { border-bottom: 0; }
.op-row-court { height: 100%; padding: 0 12px; z-index: 2; display: flex; align-items: center; gap: 9px; border-right: 1px solid var(--line); background: #fbfaf6; }
.op-row-court > span { width: 29px; height: 35px; display: grid; place-items: center; border-radius: 8px; background: var(--ink); color: white; font: 700 .66rem var(--font-display); }
.op-row-court strong, .op-row-court small { display: block; }
.op-row-court strong { font-size: .69rem; }
.op-row-court small { margin-top: 3px; color: var(--muted); font-size: .55rem; }
.op-booking-block { grid-column: var(--slot) / span var(--span); z-index: 3; min-width: 0; height: 57px; margin: 0 3px; padding: 8px 9px; overflow: hidden; border: 1px solid transparent; border-radius: 9px; text-align: left; cursor: pointer; }
.op-booking-block strong, .op-booking-block span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.op-booking-block strong { font-size: .65rem; }
.op-booking-block span { margin-top: 5px; opacity: .7; font-size: .56rem; }
.op-booking-block.playing { border-color: #add9c9; background: var(--mint-soft); color: #126948; }
.op-booking-block.reserved { border-color: #d1cdf7; background: var(--violet-soft); color: #4d42bd; }
.op-booking-block.program { border-color: #facfc5; background: var(--coral-soft); color: #a54734; }
.op-booking-block.review { border-color: #ead59b; background: var(--amber-soft); color: #8d6515; }
.op-booking-block:hover { filter: brightness(.985); border-color: currentColor; }
.op-maintenance-band { grid-column: 2 / -1; z-index: 2; height: 57px; margin: 0 4px; padding-left: 14px; display: flex; align-items: center; gap: 9px; border: 1px dashed #dc8e82; border-radius: 9px; background: rgba(255, 240, 236, .87); color: var(--danger); }
.op-maintenance-band strong { font-size: .68rem; }
.op-maintenance-band span { font-size: .6rem; opacity: .7; }
.op-schedule-row.maintenance .op-booking-block { box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--danger); }
.op-board-footer { min-height: 47px; padding: 0 19px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); background: #fbfaf6; }
.op-board-footer span { display: flex; align-items: center; gap: 7px; color: var(--ink-3); font-size: .63rem; font-weight: 700; }
.op-board-footer span i { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
.op-board-footer p { margin: 0; color: var(--muted); font-size: .61rem; }
.op-schedule-summary { margin-top: 13px; display: grid; grid-template-columns: repeat(3, 1fr) 1.18fr; gap: 10px; }
.op-schedule-summary > * { min-height: 104px; padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); }
.op-schedule-summary article span, .op-schedule-summary article strong, .op-schedule-summary article small { display: block; }
.op-schedule-summary article span { color: var(--muted); font-size: .64rem; }
.op-schedule-summary article strong { margin-top: 7px; font: 600 1.16rem var(--font-display); letter-spacing: -.045em; }
.op-schedule-summary article small { margin-top: 5px; color: var(--muted); font-size: .61rem; }
.op-schedule-summary > button { display: grid; grid-template-columns: 36px 1fr; align-content: center; column-gap: 10px; border: 0; background: var(--ink); color: white; text-align: left; cursor: pointer; }
.op-schedule-summary > button > span { width: 36px; height: 36px; grid-row: span 2; display: grid; place-items: center; border-radius: 10px; background: rgba(125,215,184,.13); color: var(--mint); }
.op-schedule-summary > button strong { font-size: .7rem; }
.op-schedule-summary > button small { margin-top: 3px; color: rgba(255,255,255,.5); font-size: .58rem; }

/* Customers */
.op-customer-toolbar { margin-bottom: 13px; }
.op-view-search { width: min(450px, 48vw); height: 46px; padding: 0 13px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--muted); }
.op-view-search svg { width: 17px; }
.op-view-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: .75rem; }
.op-customer-stats { margin-bottom: 13px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.op-customer-stats article { min-height: 102px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.op-customer-stats span, .op-customer-stats strong, .op-customer-stats small { display: block; }
.op-customer-stats span { color: var(--muted); font-size: .66rem; }
.op-customer-stats strong { margin-top: 7px; font: 600 1.35rem var(--font-display); letter-spacing: -.05em; }
.op-customer-stats small { margin-top: 5px; color: var(--muted); font-size: .61rem; }
.op-customer-stats small b { color: var(--success); }
.op-customers-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 13px; }
.op-customer-list { min-width: 0; overflow: hidden; }
.op-list-heading { min-height: 68px; padding: 0 19px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.op-list-heading strong, .op-list-heading span { display: block; }
.op-list-heading strong { font: 600 .88rem var(--font-display); }
.op-list-heading span { margin-top: 4px; color: var(--muted); font-size: .62rem; }
.op-table-wrap { width: 100%; overflow-x: auto; }
.op-view table { width: 100%; border-collapse: collapse; }
.op-view th { height: 40px; padding: 0 14px; background: #fbfaf6; color: var(--muted); font-size: .58rem; font-weight: 800; letter-spacing: .065em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.op-view td { height: 68px; padding: 8px 14px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .69rem; white-space: nowrap; }
.op-view tbody tr:first-child td { border-top: 0; }
.op-customer-list table { min-width: 700px; }
.op-customer-list tr { transition: background .15s; }
.op-customer-list tr:hover, .op-customer-list tr.selected { background: #fbfaf7; }
.op-customer-list td:last-child svg { width: 14px; color: var(--muted); }
.op-customer-name { padding: 0; display: flex; align-items: center; gap: 10px; border: 0; background: none; text-align: left; cursor: pointer; }
.op-customer-name strong, .op-customer-name small { display: block; }
.op-customer-name strong { font-size: .71rem; }
.op-customer-name small { margin-top: 3px; color: var(--muted); font-size: .59rem; }
.op-avatar { width: 35px; height: 35px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; background: var(--violet-soft); color: var(--violet-dark); font-size: .63rem; font-weight: 800; }
.op-avatar.tone-1 { background: var(--mint-soft); color: var(--success); }
.op-avatar.tone-2 { background: var(--amber-soft); color: #936318; }
.op-avatar.tone-3 { background: var(--blue-soft); color: #315fc0; }
.op-avatar.large { width: 56px; height: 56px; border-radius: 15px; font-size: .85rem; }
.op-empty-search { padding: 34px 20px; color: var(--muted); font-size: .75rem; text-align: center; }
.op-customer-profile { padding: 20px; align-self: start; }
.op-profile-top { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 12px; }
.op-profile-top .op-kicker { margin: 0 0 3px; font-size: .57rem; }
.op-profile-top h2 { margin: 0; font-size: 1rem; }
.op-profile-top p { margin: 3px 0 0; color: var(--muted); font-size: .62rem; }
.op-contact-row { margin-top: 20px; padding: 14px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.op-contact-row small, .op-contact-row strong { display: block; }
.op-contact-row small { color: var(--muted); font-size: .57rem; }
.op-contact-row strong { margin-top: 4px; font-size: .65rem; }
.op-profile-value { margin-top: 12px; padding: 15px; display: grid; grid-template-columns: 1fr 1fr; border-radius: 12px; background: var(--ink); color: white; }
.op-profile-value span + span { padding-left: 15px; border-left: 1px solid rgba(255,255,255,.12); }
.op-profile-value small, .op-profile-value strong { display: block; }
.op-profile-value small { color: rgba(255,255,255,.48); font-size: .57rem; }
.op-profile-value strong { margin-top: 5px; font: 600 1rem var(--font-display); }
.op-profile-notes { margin: 17px 0; }
.op-profile-notes > span { color: var(--muted); font-size: .59rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.op-profile-notes p { margin: 7px 0 0; color: var(--ink-3); font-size: .67rem; line-height: 1.5; }
.op-customer-profile .button + .button { margin-top: 8px; }

/* Money */
.op-money-hero { min-height: 145px; padding: 27px 28px; display: grid; grid-template-columns: minmax(190px, .75fr) minmax(300px, 1.15fr) auto; align-items: center; gap: 35px; border-radius: var(--radius-lg); background: var(--ink); color: white; }
.op-money-hero .op-kicker { color: var(--mint); }
.op-money-hero h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.65rem); }
.op-money-hero p { margin: 6px 0 0; color: rgba(255,255,255,.52); font-size: .68rem; }
.op-money-hero .button.secondary { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.15); color: white; }
.op-settlement-progress > div:first-child { display: flex; align-items: center; justify-content: space-between; font-size: .68rem; }
.op-settlement-progress .op-progress { height: 7px; margin-top: 10px; background: rgba(255,255,255,.11); }
.op-settlement-progress .op-progress span { background: var(--mint); }
.op-settlement-progress small { display: block; margin-top: 8px; color: rgba(255,255,255,.5); font-size: .61rem; }
.op-money-stats { margin: 13px 0 27px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.op-money-stats article { min-height: 86px; padding: 16px; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.op-money-stats article > i { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--mint-soft); color: var(--success); }
.op-money-stats article:nth-child(2) > i { background: var(--amber-soft); color: #956418; }
.op-money-stats article:nth-child(3) > i { background: var(--blue-soft); color: #315fc0; }
.op-money-stats article > i svg { width: 17px; }
.op-money-stats small, .op-money-stats strong { display: block; }
.op-money-stats small { color: var(--muted); font-size: .59rem; }
.op-money-stats strong { margin-top: 4px; font: 600 .95rem var(--font-display); }
.op-money-stats em { padding: 4px 7px; border-radius: 999px; background: var(--paper-2); color: var(--muted); font-size: .58rem; font-style: normal; font-weight: 700; }
.op-count-badge { min-width: 78px; height: 29px; padding: 0 10px; display: grid; place-items: center; border-radius: 999px; background: var(--amber-soft); color: #906317; font-size: .64rem; font-weight: 800; }
.op-review-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.op-review-card { padding: 20px; transition: box-shadow .2s; }
.op-review-card.expanded { box-shadow: 0 14px 35px rgba(18,33,29,.09); }
.op-review-head { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 11px; }
.op-proof-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(145deg, #426cc9, #2851aa); color: white; font-weight: 800; }
.op-review-head span, .op-review-head h3, .op-review-head p { display: block; }
.op-review-head span { color: var(--muted); font-size: .59rem; }
.op-review-head h3 { margin: 3px 0 0; font-size: .83rem; }
.op-review-head p { margin: 3px 0 0; color: var(--muted); font-size: .57rem; }
.op-review-head > strong { font: 600 1.05rem var(--font-display); }
.op-evidence { margin: 17px 0; padding: 14px; border-radius: 12px; background: #f9f8f3; }
.op-confidence > span { display: block; margin-bottom: 7px; color: var(--muted); font-size: .61rem; }
.op-confidence > span strong { color: var(--success); }
.op-confidence > div { height: 4px; border-radius: 999px; background: var(--paper-2); }
.op-confidence > div i { display: block; height: 100%; border-radius: inherit; background: var(--success); }
.op-evidence ul { margin: 13px 0 0; padding: 0; display: grid; gap: 8px; list-style: none; }
.op-evidence li { display: flex; align-items: center; gap: 7px; color: var(--ink-3); font-size: .62rem; }
.op-evidence li svg { width: 14px; height: 14px; padding: 2px; border-radius: 50%; }
.op-evidence li.pass svg { background: var(--mint-soft); color: var(--success); }
.op-evidence li.review svg { background: var(--amber-soft); color: #966614; }
.op-review-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.op-review-actions .button { min-height: 39px; font-size: .68rem; }
.op-proof-preview { margin-top: 17px; padding: 18px; border: 1px solid #d9e0ec; border-radius: 13px; background: #f8faff; box-shadow: inset 0 0 0 5px white; }
.op-proof-preview > div { display: flex; align-items: center; justify-content: space-between; color: #315fc0; }
.op-proof-preview > div span { font-size: .55rem; font-weight: 800; letter-spacing: .1em; }
.op-proof-preview > div strong { font-size: .75rem; }
.op-proof-preview > p { margin: 18px 0 3px; color: var(--muted); font-size: .59rem; }
.op-proof-preview h4 { margin: 0; font-size: 1.35rem; }
.op-proof-preview dl { margin: 17px 0; padding: 11px 0; border-top: 1px dashed #cbd4e3; border-bottom: 1px dashed #cbd4e3; }
.op-proof-preview dl div { display: flex; justify-content: space-between; padding: 4px 0; font-size: .61rem; }
.op-proof-preview dt { color: var(--muted); }
.op-proof-preview dd { margin: 0; font-weight: 700; }
.op-proof-preview > small { color: var(--muted); font-size: .55rem; }
.op-review-empty { padding: 48px 20px; text-align: center; }
.op-review-empty > i { width: 48px; height: 48px; margin: 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--mint-soft); color: var(--success); }
.op-review-empty h3 { margin: 15px 0 5px; font-size: .95rem; }
.op-review-empty p { margin: 0; color: var(--muted); font-size: .7rem; }
.op-transactions { margin-top: 28px; padding: 21px; overflow: hidden; }
.op-transactions table { min-width: 720px; }
.op-transactions td strong, .op-transactions td small { display: block; }
.op-transactions td small { margin-top: 3px; color: var(--muted); font-size: .57rem; }

/* Venue */
.op-venue-banner { min-height: 125px; padding: 24px 27px; display: grid; grid-template-columns: 62px 1fr auto; align-items: center; gap: 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(115deg, var(--paper), #f2f0ff); }
.op-venue-mark { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 17px; background: var(--violet); color: white; font: 700 1rem var(--font-display); box-shadow: 0 10px 25px rgba(101,88,232,.2); }
.op-venue-banner .op-kicker { margin-bottom: 4px; }
.op-venue-banner h2 { margin: 0; font-size: 1.35rem; }
.op-venue-banner p { margin: 6px 0 0; color: var(--muted); font-size: .7rem; }
.op-settings-layout { margin-top: 14px; display: grid; grid-template-columns: 190px minmax(0, 1fr) 245px; align-items: start; gap: 13px; }
.op-settings-nav { padding: 7px; display: grid; gap: 3px; }
.op-settings-nav button { min-height: 42px; padding: 0 11px; display: flex; align-items: center; gap: 9px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-3); font-size: .67rem; font-weight: 700; text-align: left; cursor: pointer; }
.op-settings-nav button svg { width: 15px; }
.op-settings-nav button.active { background: var(--ink); color: white; }
.op-settings-main { display: grid; gap: 13px; }
.op-settings-card { padding: 21px; }
.op-venue-courts { display: grid; }
.op-venue-courts > div { min-height: 65px; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto 36px; align-items: center; gap: 10px; border-top: 1px solid var(--line); }
.op-venue-courts > div:first-child { border-top: 0; }
.op-court-number { width: 32px; height: 38px; display: grid; place-items: center; border-radius: 8px; background: var(--ink); color: white; font: 700 .65rem var(--font-display); }
.op-venue-courts strong, .op-venue-courts small { display: block; }
.op-venue-courts strong { font-size: .7rem; }
.op-venue-courts small { margin-top: 4px; color: var(--muted); font-size: .59rem; }
.op-venue-courts .icon-button { width: 34px; height: 34px; }
.op-hours-list { margin-bottom: 15px; }
.op-hours-list > div { min-height: 49px; display: grid; grid-template-columns: 1fr 100px 23px 100px; align-items: center; gap: 8px; border-top: 1px solid var(--line); }
.op-hours-list > div:first-child { border-top: 0; }
.op-hours-list strong { font-size: .68rem; }
.op-hours-list span { padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink-3); font-size: .62rem; text-align: center; }
.op-hours-list i { color: var(--muted); font-size: .59rem; font-style: normal; text-align: center; }
.op-toggle-list { display: grid; }
.op-toggle-list label { min-height: 62px; display: grid; grid-template-columns: 1fr 40px; align-items: center; border-top: 1px solid var(--line); cursor: pointer; }
.op-toggle-list label:first-child { border-top: 0; }
.op-toggle-list strong, .op-toggle-list small { display: block; }
.op-toggle-list strong { font-size: .69rem; }
.op-toggle-list small { margin-top: 4px; color: var(--muted); font-size: .59rem; }
.op-toggle-list input { position: absolute; opacity: 0; pointer-events: none; }
.op-toggle-list label > i { width: 38px; height: 22px; padding: 3px; border-radius: 999px; background: var(--line-strong); transition: .2s; }
.op-toggle-list label > i::after { content: ""; width: 16px; height: 16px; display: block; border-radius: 50%; background: white; box-shadow: 0 1px 3px rgba(18,33,29,.2); transition: transform .2s; }
.op-toggle-list input:checked + i { background: var(--violet); }
.op-toggle-list input:checked + i::after { transform: translateX(16px); }
.op-toggle-list input:focus-visible + i { outline: 3px solid rgba(101,88,232,.28); outline-offset: 3px; }
.op-venue-health { padding: 21px; }
.op-venue-health > strong { display: block; margin: 8px 0 10px; font: 600 2rem var(--font-display); letter-spacing: -.06em; }
.op-venue-health > p { margin: 14px 0; color: var(--muted); font-size: .65rem; line-height: 1.5; }
.op-venue-health ul { margin: 0 0 19px; padding: 0; display: grid; gap: 10px; list-style: none; }
.op-venue-health li { display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: .63rem; }
.op-venue-health li svg { width: 16px; height: 16px; padding: 2px; border-radius: 50%; background: var(--mint-soft); color: var(--success); }
.op-venue-health li.open { color: var(--muted); }
.op-venue-health li.open svg { background: var(--paper-2); color: var(--muted); }

/* Modals */
.op-modal { position: fixed; inset: 0; z-index: 110; padding: 20px; display: grid; place-items: center; overflow-y: auto; background: rgba(18,33,29,.5); backdrop-filter: blur(5px); animation: op-fade-in .2s var(--ease); }
.op-modal-card { width: min(560px, 100%); max-height: calc(100vh - 40px); padding: 24px; overflow-y: auto; border: 1px solid rgba(255,255,255,.25); border-radius: 21px; background: var(--paper); box-shadow: var(--shadow-md); animation: op-modal-in .24s var(--ease); }
.op-modal-card .dialog-header h2 { font-size: 1.25rem; }
.op-form-grid { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.op-form-grid .field { margin: 8px 0; }
.op-form-grid .field.full { grid-column: 1 / -1; }
.op-form-grid .field > span small { color: var(--muted); font-weight: 500; }
.op-form-grid input, .op-form-grid select { width: 100%; height: 45px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); outline: 0; }
.op-form-grid input:focus, .op-form-grid select:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(101,88,232,.1); }
.op-form-assurance { margin-top: 13px; padding: 11px 12px; display: flex; align-items: center; gap: 8px; border-radius: 10px; background: var(--mint-soft); color: #20634c; font-size: .65rem; }
.op-form-assurance svg { width: 15px; }
.op-booking-detail { width: min(500px, 100%); }
.op-detail-hero { margin-top: 20px; padding: 15px; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 11px; border-radius: 13px; background: var(--porcelain); }
.op-detail-hero strong { display: block; font-size: .74rem; }
.op-detail-hero p { margin: 4px 0 0; color: var(--muted); font-size: .63rem; }
.op-detail-list { margin: 18px 0; }
.op-detail-list div { min-height: 45px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); font-size: .67rem; }
.op-detail-list dt { color: var(--muted); }
.op-detail-list dd { margin: 0; font-weight: 700; }
@keyframes op-fade-in { from { opacity: 0; } }
@keyframes op-modal-in { from { opacity: 0; transform: translateY(8px) scale(.985); } }

@media (max-width: 1240px) {
  .op-metrics { grid-template-columns: repeat(2, 1fr); }
  .op-dashboard-grid { grid-template-columns: 1fr; }
  .op-arrival-list { min-height: auto; }
  .op-lower-grid { grid-template-columns: 1fr; }
  .op-settings-layout { grid-template-columns: 170px minmax(0, 1fr); }
  .op-venue-health { grid-column: 2; }
}

@media (max-width: 1040px) {
  .op-court-card { grid-template-columns: 50px minmax(0, 1fr) auto; }
  .op-court-visual { width: 50px; }
  .op-schedule-summary { grid-template-columns: repeat(2, 1fr); }
  .op-customers-layout { grid-template-columns: 1fr; }
  .op-customer-profile { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .op-profile-top { grid-column: 1 / -1; }
  .op-contact-row, .op-profile-value { margin-top: 16px; }
  .op-customer-profile .button { align-self: end; }
  .op-review-grid { grid-template-columns: 1fr; }
  .op-money-hero { grid-template-columns: 1fr 1fr; }
  .op-money-hero > .button { grid-column: 2; justify-self: end; margin-top: -35px; }
}

@media (max-width: 820px) {
  .op-hero { align-items: flex-start; flex-direction: column; }
  .op-hero-actions { width: 100%; }
  .op-hero-actions .button { flex: 1; }
  .op-court-grid { grid-template-columns: 1fr; }
  .op-toolbar { align-items: flex-start; flex-direction: column; }
  .op-toolbar-actions { width: 100%; flex-wrap: wrap; }
  .op-toolbar-actions .button.primary { margin-left: auto; }
  .op-board-meta { padding-block: 13px; align-items: flex-start; flex-direction: column; gap: 10px; }
  .op-money-stats { grid-template-columns: 1fr; }
  .op-settings-layout { grid-template-columns: 1fr; }
  .op-settings-nav { grid-template-columns: repeat(5, minmax(110px, 1fr)); overflow-x: auto; }
  .op-settings-nav button { white-space: nowrap; }
  .op-venue-health { grid-column: auto; }
}

@media (max-width: 620px) {
  .op-hero { min-height: 205px; padding: 22px; border-radius: 18px; }
  .op-hero h2 { font-size: 1.5rem; }
  .op-hero-actions { flex-direction: column-reverse; }
  .op-metrics { grid-template-columns: 1fr 1fr; gap: 8px; }
  .op-metric-card { min-height: 128px; padding: 15px; }
  .op-metric-top { font-size: .58rem; }
  .op-metric-card > strong { font-size: 1.4rem; }
  .op-metric-card > p { font-size: .61rem; }
  .op-disruption { grid-template-columns: 38px 1fr; align-items: start; }
  .op-disruption-actions, .op-disruption > .button { grid-column: 1 / -1; }
  .op-disruption-actions { grid-template-columns: 1fr; }
  .op-move-preview { grid-template-columns: 1fr auto 1fr; }
  .op-move-preview em { grid-column: 1 / -1; justify-self: start; }
  .op-courts-panel, .op-arrivals-panel, .op-attention-panel { padding: 17px; }
  .op-court-card { grid-template-columns: 48px minmax(0, 1fr); }
  .op-court-state { grid-column: 2; flex-direction: row; align-items: center; }
  .op-quick-card { grid-template-columns: 1fr; }
  .op-quick-actions { grid-template-columns: 1fr 1fr 1fr; }
  .op-quick-actions button { min-height: 87px; }
  .op-arrival { grid-template-columns: 70px minmax(0, 1fr); }
  .op-arrival > .status-pill { grid-column: 2; justify-self: start; margin-top: -15px; }
  .op-date-control { width: 100%; }
  .op-date-label { flex: 1; }
  .op-segmented { order: 3; width: 100%; }
  .op-segmented button { flex: 1; }
  .op-toolbar-actions .button { flex: 1; }
  .op-schedule-summary { grid-template-columns: 1fr 1fr; }
  .op-schedule-summary > * { min-height: 94px; }
  .op-view-search { width: 100%; }
  .op-customer-toolbar .op-toolbar-actions { width: 100%; }
  .op-customer-toolbar .op-toolbar-actions .button { flex: 1; }
  .op-customer-stats { grid-template-columns: 1fr; }
  .op-customer-stats article { min-height: 85px; }
  .op-customer-profile { display: block; }
  .op-money-hero { padding: 22px; grid-template-columns: 1fr; gap: 22px; }
  .op-money-hero > .button { grid-column: auto; justify-self: stretch; margin-top: 0; }
  .op-review-card { padding: 16px; }
  .op-review-head { grid-template-columns: 38px 1fr; }
  .op-review-head > strong { grid-column: 2; }
  .op-review-actions { align-items: stretch; flex-direction: column-reverse; }
  .op-venue-banner { padding: 20px; grid-template-columns: 52px 1fr; }
  .op-venue-mark { width: 52px; height: 52px; }
  .op-venue-banner > .button { grid-column: 1 / -1; }
  .op-settings-card { padding: 17px; }
  .op-hours-list > div { padding: 12px 0; grid-template-columns: 1fr 1fr; }
  .op-hours-list > div strong { grid-column: 1 / -1; }
  .op-hours-list > div i { display: none; }
  .op-venue-courts > div { grid-template-columns: 36px 1fr 34px; padding-block: 8px; }
  .op-venue-courts .status-pill { grid-column: 2; justify-self: start; }
  .op-form-grid { grid-template-columns: 1fr; }
  .op-form-grid .field.full { grid-column: auto; }
  .op-modal { padding: 10px; }
  .op-modal-card { max-height: calc(100vh - 20px); padding: 19px; }
}

@media (max-width: 410px) {
  .op-metrics { grid-template-columns: 1fr; }
  .op-metric-card { min-height: 119px; }
  .op-quick-actions { grid-template-columns: 1fr; }
  .op-quick-actions button { min-height: 66px; }
  .op-schedule-summary { grid-template-columns: 1fr; }
  .op-schedule-summary > * { min-height: 84px; }
  .op-section-heading { align-items: flex-start; flex-direction: column; }
}
