.ops-page { color:var(--ink,#172923); min-width:0; }
.ops-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:1.1rem; margin:0 0 1.7rem; }
.ops-heading h1 { font-size:clamp(2.1rem,4vw,3.1rem); letter-spacing:-.055em; margin:.3rem 0 .3rem; line-height:1.07; font-weight:550; }
.ops-heading p:not(.ops-kicker),.ops-panel-header p { color:var(--muted,#606f65); margin:.5rem 0 0; line-height:1.5; }
.ops-kicker,.ops-product-category { color:var(--green,#165944); text-transform:uppercase; letter-spacing:.14em; font-size:.74rem; font-weight:700; margin:0; }
.ops-icon { display:inline-flex; align-items:center; justify-content:center; flex:none; }
.ops-bag-btn,.ops-add { display:inline-flex; align-items:center; justify-content:center; gap:.45rem; white-space:nowrap; }
.ops-pill-count { min-width:1.38rem; min-height:1.38rem; line-height:1.38rem; text-align:center; border-radius:100px; background:#e8f1e9; color:var(--green,#165944); font-size:.78rem; }
.ops-filters { display:flex; gap:.75rem; align-items:center; justify-content:space-between; flex-wrap:wrap; margin:0 0 1.15rem; }
.ops-chip-row,.ops-tab-row { display:flex; flex-wrap:wrap; gap:.38rem; }
.ops-chip,.ops-tab,.ops-search input,.ops-admin-tools select,.ops-editor input,.ops-percent input,.ops-small-btn,.ops-text-btn,.ops-row-link,.ops-admin-stat,.ops-quantity button { font:inherit; }
.ops-chip { color:var(--muted,#606f65); background:transparent; border:1px solid var(--line,#dbe4db); border-radius:100px; padding:.49rem .82rem; font-size:.85rem; cursor:pointer; }
.ops-chip.selected { color:#fff; background:var(--green,#165944); border-color:var(--green,#165944); }
.ops-chip:not(.selected):hover,.ops-small-btn:hover { border-color:#8ca594; background:#f0f5ed; }
.ops-search { display:flex; align-items:center; gap:.4rem; color:var(--muted,#606f65); border:1px solid var(--line,#dbe4db); background:#fff; border-radius:.55rem; padding:.5rem .68rem; min-height:2.45rem; box-sizing:border-box; }
.ops-search input { padding:0; border:none; outline:none; background:transparent; color:var(--ink,#172923); font-size:.875rem; width:min(10.4rem,38vw); }
.ops-search:focus-within { outline:2px solid var(--green,#165944); outline-offset:1px; }
.ops-product-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; }
.ops-product { min-width:0; background:var(--surface,#fff); border:1px solid var(--line,#dbe4db); overflow:hidden; border-radius:1rem; display:flex; flex-direction:column; }
.ops-product-image { background:linear-gradient(145deg,#e8e8d8,#d7e2cb); position:relative; aspect-ratio:1.7; overflow:hidden; }
.ops-product:nth-child(3n + 2) .ops-product-image { background:linear-gradient(140deg,#e8ded0,#eceddc); }
.ops-product:nth-child(3n) .ops-product-image { background:linear-gradient(120deg,#d0dec7,#ebeddd); }
.ops-product-image img,.ops-thumb img { width:100%; height:100%; object-fit:cover; position:absolute; inset:0; display:block; }
.ops-fallback { position:absolute; inset:0; display:grid; place-items:center; color:#52705d; }
.ops-fallback svg { width:3rem; height:3rem; opacity:.45; }
.ops-pv { position:absolute; top:.75rem; right:.75rem; background:#fffffff2; color:#1d4532; font-weight:650; padding:.33rem .62rem; border-radius:100px; font-size:.77rem; }
.ops-product-body { padding:1.1rem 1.15rem; display:flex; flex-direction:column; flex:1; }
.ops-product-category { font-size:.69rem; }
.ops-product h2 { margin:.3rem 0 .35rem; font-size:1.22rem; font-weight:600; letter-spacing:-.035em; line-height:1.24; }
.ops-product p { color:var(--muted,#606f65); font-size:.9rem; line-height:1.5; margin:0 0 1.05rem; }
.ops-product-bottom { display:flex; justify-content:space-between; align-items:center; gap:.7rem; margin-top:auto; }
.ops-product-bottom strong { font-size:1.25rem; font-weight:650; letter-spacing:-.035em; }
.ops-product-bottom small,.ops-bag-info small,.ops-detail small,.ops-table small { color:var(--muted,#606f65); font-size:.8rem; margin-top:.2rem; display:block; }
.ops-add { min-height:2.45rem; }
.ops-page button:disabled,.ops-cart button:disabled { opacity:.45; cursor:default; }
.ops-cart,.ops-detail,.ops-editor { width:100%; }
.ops-empty,.ops-empty-cart { text-align:center; padding:2rem .9rem; }
.ops-empty strong { font-weight:600; font-size:1.08rem; }
.ops-empty p,.ops-modal-text { color:var(--muted,#606f65); line-height:1.55; margin:.25rem 0 1rem; font-size:.95rem; }
.ops-empty p { margin:.3rem 0 0; }
.ops-empty-cart { padding:1rem; color:var(--muted,#606f65); }
.ops-bag-lines { border-top:1px solid var(--line,#dbe4db); }
.ops-bag-line { padding:.95rem 0; display:grid; grid-template-columns:3.7rem minmax(0,1fr) auto; gap:.7rem; border-bottom:1px solid var(--line,#dbe4db); align-items:start; }
.ops-thumb { position:relative; width:3.7rem; height:3.7rem; background:#eff2e6; border-radius:.55rem; overflow:hidden; }
.ops-bag-info strong,.ops-bag-line-total strong { font-weight:620; font-size:.92rem; }
.ops-bag-line-total { text-align:right; }
.ops-text-btn,.ops-row-link { border:none; background:none; color:var(--green,#165944); cursor:pointer; padding:0; font-weight:600; }
.ops-text-btn { font-size:.79rem; display:block; margin:.55rem 0 0 auto; text-decoration:underline; text-underline-offset:2px; }
.ops-row-link { font-size:.9rem; }
.ops-row-link:hover { text-decoration:underline; }
.ops-quantity { margin-top:.53rem; display:inline-flex; border:1px solid var(--line,#dbe4db); border-radius:.4rem; align-items:center; overflow:hidden; }
.ops-quantity button { width:1.8rem; height:1.8rem; border:none; background:#f6f8f4; font-weight:600; cursor:pointer; }
.ops-quantity span { min-width:1.55rem; text-align:center; font-size:.85rem; }
.ops-receipt { margin:.9rem 0 1.05rem; }
.ops-receipt>div { display:flex; align-items:center; justify-content:space-between; gap:.75rem; padding:.5rem 0; font-size:.92rem; }
.ops-receipt-total { border-top:1px solid var(--line,#dbe4db); margin-top:.35rem; }
.ops-receipt .ops-receipt-total { font-size:1rem; padding:.8rem 0 .4rem; }
.ops-full { width:100%; justify-content:center; }
.ops-error-text { color:#9c3a25!important; }
.ops-admin-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.8rem; margin-bottom:1.55rem; }
.ops-admin-stat { background:var(--surface,#fff); border:1px solid var(--line,#dbe4db); border-radius:.9rem; text-align:left; padding:1rem 1.1rem; cursor:pointer; color:var(--ink,#172923); }
.ops-admin-stat:hover { border-color:#8ca594; }
.ops-admin-stat span { display:block; color:var(--muted,#606f65); font-size:.87rem; }
.ops-admin-stat strong { display:block; font-size:clamp(1.35rem,3vw,2.1rem); line-height:1.2; margin-top:.45rem; font-weight:550; letter-spacing:-.045em; }
.ops-tab-row { gap:.15rem; border-bottom:1px solid var(--line,#dbe4db); margin:0 0 1rem; }
.ops-tab { border:none; border-bottom:2px solid transparent; margin-bottom:-1px; padding:.7rem .95rem; color:var(--muted,#606f65); background:transparent; font-size:.89rem; cursor:pointer; white-space:nowrap; }
.ops-tab.current { color:var(--green,#165944); border-bottom-color:var(--green,#165944); font-weight:650; }
.ops-admin-panel { background:var(--surface,#fff); border:1px solid var(--line,#dbe4db); border-radius:1rem; min-width:0; overflow:hidden; }
.ops-panel-header { padding:1.2rem 1.2rem 1rem; display:flex; align-items:flex-start; justify-content:space-between; flex-wrap:wrap; gap:.7rem 1rem; }
.ops-panel-header h2 { font-size:1.23rem; font-weight:620; letter-spacing:-.04em; margin:0; }
.ops-panel-header p { font-size:.88rem; margin:.25rem 0 0; }
.ops-admin-tools { display:flex; gap:.45rem; flex-wrap:wrap; }
.ops-admin-tools select { color:var(--ink,#172923); background-color:#fff; border:1px solid var(--line,#dbe4db); border-radius:.55rem; padding:.48rem 1.65rem .48rem .63rem; font-size:.85rem; }
.ops-table-wrap { max-width:100%; overflow:auto; }
.ops-table { border-collapse:collapse; width:100%; font-size:.88rem; }
.ops-table th,.ops-table td { padding:.82rem .8rem; text-align:left; border-top:1px solid var(--line,#dbe4db); vertical-align:middle; }
.ops-table th:first-child,.ops-table td:first-child { padding-left:1.2rem; }
.ops-table th:last-child,.ops-table td:last-child { padding-right:1.2rem; }
.ops-table th { background:#f6f8f4; color:var(--muted,#606f65); font-size:.77rem; font-weight:600; white-space:nowrap; }
.ops-table td strong { font-weight:600; }
.ops-money { font-variant-numeric:tabular-nums; white-space:nowrap; font-weight:600; }
.ops-small-btn { border:1px solid var(--line,#dbe4db); background:var(--surface,#fff); color:var(--green,#165944); padding:.37rem .67rem; border-radius:.45rem; cursor:pointer; font-size:.85rem; font-weight:550; white-space:nowrap; }
.ops-state { display:inline-flex; font-size:.75rem; font-weight:650; padding:.29rem .58rem; border-radius:100px; color:#455348; background:#edf0eb; white-space:nowrap; }
.ops-state.pending { color:#7f571d; background:#f8efda; }
.ops-state.active,.ops-state.fulfilled,.ops-state.approved { color:#246244; background:#e7f1e8; }
.ops-state.declined,.ops-state.cancelled { color:#7b4c45; background:#f4e9e4; }
.ops-detail-meta,.ops-dialog-actions,.ops-plan-foot { display:flex; align-items:center; justify-content:space-between; gap:.65rem; }
.ops-detail-meta b { font-size:1.07rem; }
.ops-dialog-actions { margin:1rem 0 0; justify-content:flex-end; flex-wrap:wrap; }
.ops-confirm-text { line-height:1.5; }
.ops-editor { display:grid; gap:.85rem; }
.ops-editor label { display:grid; gap:.4rem; color:var(--ink,#172923); font-weight:600; font-size:.88rem; }
.ops-editor input,.ops-percent { padding:.62rem .72rem; border:1px solid var(--line,#dbe4db); border-radius:.55rem; background:#fff; color:var(--ink,#172923); }
.ops-editor input { width:100%; box-sizing:border-box; }
.ops-editor .ops-dialog-actions { margin-top:.3rem; }
.ops-plan { padding:0 1.2rem 1.2rem; }
.ops-plan-header,.ops-plan-row { display:grid; grid-template-columns:1fr repeat(2,minmax(0,1fr)); align-items:center; gap:.8rem; border-top:1px solid var(--line,#dbe4db); padding:.72rem 0; }
.ops-plan-header { font-size:.83rem; color:var(--muted,#606f65); }
.ops-plan-row strong { font-size:.9rem; font-weight:600; }
.ops-percent { display:flex; align-items:center; justify-content:space-between; max-width:11.5rem; }
.ops-percent span { color:var(--muted,#606f65); }
.ops-percent input { font-size:.9rem; min-width:0; width:100%; outline:none; border:0; }
.ops-percent:focus-within { outline:2px solid var(--green,#165944); }
.ops-plan-foot { border-top:1px solid var(--line,#dbe4db); padding-top:1rem; }
.ops-plan-foot p { font-size:.85rem; line-height:1.5; color:var(--muted,#606f65); margin:0; max-width:34rem; }
.ops-plan-foot button { white-space:nowrap; }
@media(max-width:1120px) {
  .ops-product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:650px) {
  .ops-heading { align-items:flex-start; flex-wrap:wrap; gap:.7rem; margin-bottom:1.15rem; }
  .ops-heading h1 { font-size:2.1rem; }
  .ops-filters { gap:.55rem; }
  .ops-chip { padding:.4rem .62rem; font-size:.8rem; }
  .ops-product-grid { gap:.7rem; }
  .ops-product-body { padding:.8rem; }
  .ops-product h2 { font-size:1.05rem; }
  .ops-product p { font-size:.83rem; }
  .ops-product-bottom { align-items:flex-start; flex-direction:column; }
  .ops-product-bottom .ops-add { width:100%; }
  .ops-admin-stats { gap:.4rem; margin-bottom:1rem; }
  .ops-admin-stat { padding:.65rem .55rem; border-radius:.6rem; }
  .ops-admin-stat span { font-size:.75rem; }
  .ops-admin-stat strong { font-size:1.15rem; }
  .ops-tab-row { flex-wrap:wrap; }
  .ops-tab { padding:.55rem .65rem; font-size:.82rem; }
  .ops-panel-header,.ops-plan { padding-left:.8rem; padding-right:.8rem; }
  .ops-plan-foot { flex-wrap:wrap; }
  .ops-pv { top:.4rem; right:.4rem; font-size:.68rem; padding:.22rem .45rem; }
  .ops-bag-line { grid-template-columns:2.7rem minmax(0,1fr) auto; gap:.5rem; }
  .ops-thumb { width:2.7rem; height:3.1rem; }
}
@media(max-width:380px) {
  .ops-product-grid { grid-template-columns:minmax(0,1fr); }
  .ops-product-bottom { flex-direction:row; align-items:center; }
  .ops-product-bottom .ops-add { width:auto; }
}
.ops-retail-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.8rem; margin-bottom:1.1rem; }
.ops-retail-stat { background:var(--surface,#fff); border:1px solid var(--line,#dbe4db); border-radius:.95rem; padding:1rem 1.1rem; }
.ops-retail-stat>span,.ops-retail-stat small { color:var(--muted,#606f65); display:block; }
.ops-retail-stat>span { font-size:.87rem; }
.ops-retail-stat strong { display:block; margin:.4rem 0; font-size:clamp(1.5rem,3vw,2.2rem); line-height:1.15; font-weight:570; letter-spacing:-.045em; }
.ops-retail-stat small { font-size:.77rem; }
.ops-retail-panel { margin:0 0 1rem; }
.ops-retail-input-pair { display:grid; grid-template-columns:1fr 1fr; gap:.7rem; }
.ops-editor select { font:inherit; padding:.6rem 1.8rem .6rem .72rem; max-width:100%; width:100%; color:var(--ink,#172923); border:1px solid var(--line,#dbe4db); border-radius:.55rem; background-color:#fff; }
.ops-retail-estimate { padding:.75rem; background:#f1f5ed; border:1px solid #e4ebdf; border-radius:.55rem; color:var(--green,#165944); font-size:.87rem; }
.ops-retail-estimate p { color:var(--muted,#606f65); font-size:.85rem; line-height:1.5; margin:0; }
.ops-retail-estimate div { margin-top:.45rem; display:flex; justify-content:space-between; gap:.7rem; }
@media(max-width:650px) { .ops-retail-stats { gap:.45rem; } .ops-retail-stat { padding:.72rem .55rem; border-radius:.65rem; } .ops-retail-stat strong { font-size:1.2rem; } .ops-retail-stat>span,.ops-retail-stat small { font-size:.73rem; } }


@media(max-width:620px) {
  .ops-chip,.ops-tab { min-height:2.5rem; }
  .ops-quantity button,.ops-quantity span { min-width:2.3rem; min-height:2.3rem; line-height:2.3rem; }
  .ops-admin-tools { width:100%; align-items:stretch; }
  .ops-admin-tools .ops-search { flex:1 1 8rem; min-width:0; }
  .ops-admin-tools .ops-search input { width:100%; min-width:0; }
  .ops-table,.ops-table tbody { width:100%; display:block; }
  .ops-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .ops-table tr { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.55rem 1rem; border-top:1px solid var(--line); padding:.8rem; }
  .ops-table td,.ops-table td:first-child,.ops-table td:last-child { display:block; min-width:0; border:0; padding:0; font-size:.9rem; white-space:normal; overflow-wrap:anywhere; }
  .ops-table td:first-child { grid-column:1/-1; }
  .ops-table td::before { content:attr(data-label); color:var(--muted); display:block; font-size:.75rem; font-weight:500; margin-bottom:.1rem; }
  .ops-table td:first-child::before,.ops-table td[data-label="Action"]::before { display:none; }
  .ops-table td[data-label="Action"] { align-self:end; text-align:right; }
  .ops-small-btn,.ops-row-link { min-height:2.4rem; }
  .ops-table td:first-child .ops-row-link { min-height:1.7rem; }
  .ops-table-wrap { overflow:visible; }
  .ops-admin-stat strong,.ops-retail-stat strong { overflow-wrap:anywhere; }
}

.ops-register-totals { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.5rem; margin:0 1.2rem 1rem; }
.ops-register-totals button { display:grid; gap:.25rem; text-align:left; min-width:0; padding:.7rem .8rem; color:var(--ink); background:#f7f9f4; border:1px solid var(--line); border-radius:.65rem; }
.ops-register-totals button[aria-pressed="true"] { border-color:var(--green); background:#eaf2e5; }
.ops-register-totals span,.ops-register-totals small { color:var(--muted); font-size:.8rem; }
.ops-register-totals strong { font-size:1.1rem; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.ops-month-tools { display:flex; gap:.65rem; flex-wrap:wrap; padding:0 1.2rem 1rem; }
.ops-month-tools label { display:grid; gap:.3rem; font-size:.8rem; color:var(--muted); }
.ops-month-tools select { padding:.46rem 1.65rem .46rem .6rem; font-size:.9rem; border:1px solid var(--line); border-radius:.55rem; color:var(--ink); background-color:#fff; }
.ops-state.maintained { color:#246244; background:#e7f1e8; }
.ops-state.due,.ops-state.starts_next_month { color:#785820; background:#f7efdc; }
.ops-state.overdue { color:#854332; background:#f7e8df; }
.ops-balance-preview { padding:.85rem 1rem; margin:.65rem 0 1rem; background:#f2f6ef; border:1px solid var(--line); border-radius:.7rem; }
.ops-balance-preview h3 { margin:0 0 .5rem; font-size:.98rem; }
.ops-balance-preview>div { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin:.35rem 0; font-size:.87rem; }
.ops-balance-preview strong { font-variant-numeric:tabular-nums; white-space:nowrap; }
@media(max-width:680px) { .ops-register-totals { grid-template-columns:repeat(2,minmax(0,1fr)); margin-inline:.8rem; } .ops-month-tools { padding-inline:.8rem; } }
.ops-order-dates { display:grid; gap:.42rem; margin:1rem 0 0; padding:.65rem 0; border-block:1px solid var(--line); }
.ops-order-dates div { display:flex; align-items:baseline; justify-content:space-between; gap:.6rem; }
.ops-order-dates dt,.ops-order-dates dd { font-size:.87rem; margin:0; }
.ops-order-dates dt { color:var(--muted); }
.ops-order-dates dd { text-align:right; font-weight:600; }
