/* mod-sales: quotation document, line editor on phone, client-facing Pre-Fill form */

/* quotation / printable document */
.doc { padding: 26px 28px; }
.doc-h { display: flex; gap: 16px; align-items: flex-start; padding-bottom: 16px; border-bottom: 2px solid var(--ink); margin-bottom: 16px; }
.doc-h img { height: 56px; width: auto; max-width: 160px; object-fit: contain; }
.doc-no { margin-left: auto; text-align: right; }
.doc-to { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin-bottom: 16px; }
.doc .tbl-wrap { box-shadow: none; }
.doc-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 40px; font-size: 13px; }
.doc-sign > div { border-top: 1px solid var(--ink); padding-top: 6px; text-align: center; }

@media screen and (max-width: 900px) {
  .doc { padding: 16px; }
  .doc-h { flex-wrap: wrap; }
  .doc-to { grid-template-columns: 1fr; }
  .lines td[data-label]::before { content: attr(data-label); display: block; font-size: 10.5px; font-weight: 700; color: var(--dim); margin-bottom: 2px; }
  .lines td .in { width: 100% !important; }
  .lines tr { grid-template-columns: 1fr 1fr 1fr; }
  .lines td:last-child { align-self: end; }
}
@media print {
  .doc { border: 0; box-shadow: none; padding: 0; }
  .grid.g-main { display: block; }
}

/* ---------- client-facing ordering form (multi-step) ---------- */
.pub-body { background: var(--bg); }
.pub { max-width: 600px; margin: 0 auto; padding: 14px 14px 40px; }
.pub-loader { position: fixed; inset: 0; z-index: 999; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: var(--surface); transition: opacity .5s ease, visibility .5s; }
.pub-loader img { height: 76px; width: auto; max-width: 220px; object-fit: contain; animation: breathe 1.6s ease-in-out infinite; }
.pub-loader-bar { width: 160px; height: 4px; border-radius: 99px; background: var(--line); overflow: hidden; }
.pub-loader-bar i { display: block; height: 100%; width: 40%; border-radius: 99px; background: var(--ink); animation: slide 1.1s ease-in-out infinite; }
.pub-loader span { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.pub-loader.gone { opacity: 0; visibility: hidden; }
@keyframes slide { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }
@keyframes breathe { 50% { transform: scale(1.06); opacity: .85; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

.pub-h { display: flex; align-items: center; gap: 12px; padding: 6px 4px 14px; animation: rise .5s ease both; }
.pub-h img { height: 46px; width: auto; max-width: 150px; object-fit: contain; }
.pub-h b { display: block; color: var(--ink); font-size: 16px; }
.pub-h span { font-size: 12.5px; color: var(--muted); }

.pub-order { display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; border-radius: 16px; padding: 12px 14px; animation: rise .5s .05s ease both; }
.pub-order > div { flex: 1; min-width: 0; }
.pub-order span { display: block; font-size: 12px; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pub-order b { font-size: 20px; letter-spacing: -.01em; }
.pub-order button { font: inherit; font-size: 12.5px; font-weight: 700; color: #fff; background: rgba(255,255,255,.12); border: 0; border-radius: 99px; padding: 6px 12px; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
.pub-items { background: var(--surface); border: 1px solid var(--line); border-radius: 0 0 14px 14px; margin: -8px 6px 0; padding: 14px 14px 6px; animation: rise .25s ease both; }
.pub-line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.pub-line:last-child { border-bottom: 0; }
.pub-line span { display: block; font-size: 12px; color: var(--muted); }
.pub-line s { color: var(--dim); }

.pub-steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); margin: 18px 0 14px; animation: rise .5s .1s ease both; }
.pub-steps .ps { display: flex; flex-direction: column; align-items: center; gap: 5px; position: relative; z-index: 1; }
.pub-steps .ps span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px;
  background: var(--surface); color: var(--dim); box-shadow: 0 0 0 1px var(--line); transition: all .35s ease; }
.pub-steps .ps em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--dim); transition: color .3s; }
.pub-steps .ps.on span { background: var(--ink); color: #fff; box-shadow: 0 0 0 5px color-mix(in srgb, var(--ink) 12%, transparent); transform: scale(1.08); }
.pub-steps .ps.on em { color: var(--ink); }
.pub-steps .ps.done span { background: var(--ok); color: #fff; box-shadow: none; }
.pub-steps .ps.done em { color: var(--ok); }
.ps-bar { position: absolute; left: 10%; right: 10%; top: 14px; height: 2px; background: var(--line); }
.ps-bar i { display: block; height: 100%; background: var(--ok); transition: width .5s cubic-bezier(.2,.8,.2,1); }

.pub-stage { transition: opacity .35s ease, transform .35s cubic-bezier(.2,.8,.2,1); opacity: 0; }
.pub-stage.from-right { transform: translateX(26px); }
.pub-stage.from-left { transform: translateX(-26px); }
.pub-stage.show { opacity: 1; transform: none; }
.pub-stage.show .pub-card { animation: rise .45s ease both; }
.pub-stage.show .pub-card + .pub-card { animation-delay: .08s; }

.pub-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 18px 18px 58px; margin-bottom: 12px; box-shadow: var(--shadow); }
.pub-card h2 { font-size: 17px; margin-bottom: 4px; }
.pub-card.in { padding-left: 18px; }
.pub-step { position: absolute; left: 16px; top: 17px; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--ink); }
.pub-step:empty { display: none; }
.pub-card:has(.pub-step:empty) { padding-left: 18px; }
.pub-search { display: flex; align-items: center; gap: 8px; margin: 12px 0 10px; }
.pub-search > span { color: var(--dim); }
.pub-map { isolation: isolate; z-index: 0; position: relative; height: 300px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #eef1f6; }
.pub-map .map-el { position: absolute; inset: 0; }
.map-loader { position: absolute; inset: 0; z-index: 800; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: var(--surface); transition: opacity .4s ease; }
.map-loader img { height: 54px; width: auto; max-width: 160px; object-fit: contain; animation: breathe 1.6s ease-in-out infinite; }
.map-loader span { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.map-loader .spin { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--ink); animation: spin .8s linear infinite; }
.map-loader.gone { opacity: 0; pointer-events: none; }
.pub-pin { width: 44px; height: 52px; display: grid; place-items: start center; filter: drop-shadow(0 4px 6px rgba(0,0,0,.3)); }
.pub-pin img { width: 44px; height: 44px; object-fit: contain; background: #fff; border-radius: 13px; padding: 5px; }
.pub-pin::after { content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); border: 7px solid transparent; border-top: 9px solid #fff; border-bottom: 0; }
.pub-pin.drop img { animation: pindrop .45s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes pindrop { from { transform: translateY(-30px); opacity: 0; } }
.pub-locate { position: absolute; z-index: 700; right: 10px; top: 10px; box-shadow: var(--shadow); }
.pub-hint { position: absolute; z-index: 700; left: 10px; bottom: 10px; font-size: 12px; font-weight: 700; background: rgba(11,21,51,.84); color: #fff; padding: 5px 11px; border-radius: 99px; }
.pub-yn { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

.pub-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; margin-top: 12px; }
.pub-day { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 10px 0 9px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface);
  cursor: pointer; font: inherit; color: var(--text); animation: rise .4s var(--d, 0ms) ease both; transition: transform .15s ease, background .2s, color .2s; }
.pub-day:hover { transform: translateY(-2px); }
.pub-day b { font-size: 22px; color: var(--ink); line-height: 1.1; }
.pub-day span, .pub-day em { font-size: 11px; color: var(--muted); font-weight: 650; font-style: normal; }
.pub-day i { font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--ok); margin-top: 3px; }
.pub-day.on { background: var(--ink); border-color: var(--ink); }
.pub-day.on b, .pub-day.on span, .pub-day.on em, .pub-day.on i { color: #fff; }
.pub-day.full { opacity: .4; cursor: not-allowed; }
.pub-day.full i { color: var(--bad); }
.pub-confirm { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--ok-bg); color: var(--ok); animation: rise .35s ease both; }
.pub-confirm > div { flex: 1; }
.pub-confirm b { display: block; color: var(--ink); }
.pub-confirm span { font-size: 12.5px; font-weight: 700; }
.pc-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: #fff; }

.pub-pay { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.pay { position: relative; display: flex; align-items: center; gap: 10px; text-align: left; padding: 13px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface);
  font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; animation: rise .4s var(--d, 0ms) ease both; transition: background .2s, color .2s; }
.pay span { font-size: 20px; }
.pay.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pay-ck { position: absolute; top: 7px; right: 8px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; animation: pindrop .3s ease both; }
.pay-ck svg.i { width: 12px; height: 12px; stroke-width: 3; }
.pub-note { margin-top: 10px; padding: 11px 13px; border-radius: 12px; background: var(--warn-bg); color: var(--warn); font-size: 13px; animation: rise .35s ease both; }
.pub-note b { color: var(--ink); }
.pub-note p { margin: 3px 0 0; }

.pub-review { margin-top: 12px; }
.rv { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.rv > div { flex: 1; min-width: 0; }
.rv em { display: block; font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--dim); text-transform: uppercase; letter-spacing: .04em; }
.rv b { color: var(--ink); font-size: 14px; word-break: break-word; }
.rv-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink); flex: none; }
.rv-ed { font: inherit; font-size: 12.5px; font-weight: 700; color: var(--muted); background: none; border: 0; cursor: pointer; text-decoration: underline; }
.pub-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 6px; font-size: 15px; color: var(--ink); }
.pub-total b { font-size: 24px; }
.pub-agree { display: flex; align-items: flex-start; gap: 10px; margin-top: 10px; padding: 11px 12px; border-radius: 12px; background: var(--surface-2); font-weight: 600; font-size: 13.5px; }
.pub-agree input { margin-top: 2px; flex: none; }
.pub-agree a { color: var(--ink); font-weight: 800; text-decoration: underline; }

.pub-nav { position: sticky; bottom: 0; z-index: 20; display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; padding: 12px 0 6px; background: linear-gradient(transparent, var(--bg) 30%); }
.pub-nav .btn { height: 50px; font-size: 15px; border-radius: 14px; }
.pub-nav .btn.primary { background: var(--ink); border-color: var(--ink); }
.pub-nav .btn:disabled, .pub-nav .btn.is-off { opacity: .45; cursor: pointer; }

.pub-received { text-align: center; padding: 24px 6px 10px; }
.pub-received h2 { font-size: 24px; margin-top: 8px; }
.rc-mark { width: 76px; height: 76px; margin: 0 auto; }
.rc-mark svg { width: 100%; height: 100%; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.rc-mark circle { stroke: var(--ok); stroke-width: 3; stroke-dasharray: 151; stroke-dashoffset: 0; }
.rc-mark path { stroke: var(--ok); stroke-width: 4; stroke-dasharray: 40; stroke-dashoffset: 0; }
.pub-received.fresh .rc-mark circle { stroke-dashoffset: 151; animation: draw .7s ease forwards; }
.pub-received.fresh .rc-mark path { stroke-dashoffset: 40; animation: draw .4s .6s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.pub-received.fresh h2, .pub-received.fresh p, .pub-received.fresh .rc-slip { animation: rise .5s .5s ease both; }
.rc-slip { text-align: left; margin: 18px 0 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow); }
.rc-row { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.rc-row span { color: var(--muted); }
.rc-row b { color: var(--ink); text-align: right; }
.rc-row.sm { font-size: 12.5px; }
.rc-total { display: flex; justify-content: space-between; padding-top: 10px; font-size: 16px; color: var(--ink); }
.rc-total b { font-size: 22px; }
.leaflet-container { font: inherit; }
@media (prefers-reduced-motion: reduce) { .pub *, .pub-loader * { animation: none !important; transition: none !important; } .pub-stage { opacity: 1; transform: none; } }
@media screen and (max-width: 420px) { .pub-steps .ps em { font-size: 10px; } .pub-card { padding-left: 16px; padding-top: 54px; } .pub-card.in, .pub-card:has(.pub-step:empty) { padding-top: 18px; } }

/* ---------- staff Pre-Fill (CoolXpert style) ---------- */
.pf-svc { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 12px; }
.pf-svc button { display: flex; align-items: center; gap: 10px; text-align: left; padding: 12px; min-height: 58px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface);
  font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; transition: transform .15s ease, background .2s, color .2s; }
.pf-svc button:hover { transform: translateY(-2px); }
.pf-svc button .ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); font-weight: 800; flex: none; }
.pf-svc button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pf-svc button.on .ico { background: rgba(255,255,255,.15); color: #fff; }
.pf-items { animation: rise .4s ease both; }
.pf-sum { position: sticky; top: 112px; }
.pf-sum .row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 13.5px; }
.pf-sum .row span { color: var(--muted); }
.pf-sum .row b { color: var(--ink); text-align: right; }
.pf-sum .grand { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; font-size: 18px; }
.pf-link { display: flex; gap: 6px; margin-top: 10px; }
@media screen and (max-width: 900px) { .pf-sum { position: static; } .pf-svc { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pay-split { display: grid; grid-template-columns: 1.1fr .9fr 1.2fr auto; gap: 6px; margin-bottom: 6px; }
.pay-left { margin: 10px 0 12px; font-size: 13.5px; color: var(--muted); }
@media screen and (max-width: 900px) { .pay-split { grid-template-columns: 1fr 1fr auto; } .pay-split [data-p=r] { grid-column: 1 / 3; grid-row: 2; } }

/* ---------- client view v3: hero, icon headers, sticky steps ---------- */
.pub-body { background-color: #f3f5f9; background-image: radial-gradient(rgba(11, 21, 51, .06) 1px, transparent 1px); background-size: 18px 18px; }
.pub { padding-top: 12px; }
.pub-hero { position: relative; overflow: hidden; color: #fff; border-radius: 24px; padding: 18px 18px 16px; background: #0b1533; animation: rise .55s ease both;
  box-shadow: 0 18px 40px rgba(11, 21, 51, .25); }
.pub-hero::before { content: ""; position: absolute; width: 320px; height: 320px; right: -110px; top: -150px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 184, 240, .45), transparent 65%); animation: glow 7s ease-in-out infinite alternate; }
.pub-hero::after { content: ""; position: absolute; width: 260px; height: 260px; left: -120px; bottom: -150px; border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 91, 255, .45), transparent 65%); animation: glow 9s ease-in-out infinite alternate-reverse; }
@keyframes glow { to { transform: translate(-30px, 24px) scale(1.12); } }
.pub-hero > * { position: relative; z-index: 1; }
.ph-top { display: flex; align-items: center; gap: 12px; }
.ph-logo { background: #fff; border-radius: 14px; padding: 6px 9px; display: grid; place-items: center; }
.ph-logo img { height: 34px; width: auto; max-width: 120px; object-fit: contain; display: block; }
.ph-top b { display: block; font-size: 15px; }
.ph-top span { font-size: 12px; opacity: .7; }
.pub-hero h1 { color: #fff; font-size: 27px; line-height: 1.12; letter-spacing: -.02em; margin: 20px 0 6px; }
.pub-hero h1 span { display: block; color: #9fdcff; font-weight: 650; font-size: 21px; }
.pub-hero p { font-size: 13.5px; opacity: .8; margin: 0 0 12px; }
.ph-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ph-chips span { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, .12); backdrop-filter: blur(4px); }
.ph-total { display: flex; align-items: flex-end; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .14); }
.ph-total > div { flex: 1; }
.ph-total em { display: block; font-style: normal; font-size: 11.5px; opacity: .7; letter-spacing: .03em; }
.ph-total b { font-size: 28px; letter-spacing: -.02em; }
.ph-total i { display: inline-block; margin-left: 8px; font-style: normal; font-size: 11.5px; font-weight: 800; color: #0b1533; background: #9ff0c8; border-radius: 99px; padding: 2px 8px; vertical-align: 5px; }
.ph-total button { font: inherit; font-size: 12.5px; font-weight: 700; color: #fff; background: rgba(255, 255, 255, .14); border: 0; border-radius: 99px; padding: 7px 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.pub-items { margin: -14px 10px 0; padding: 22px 14px 6px; border-radius: 0 0 18px 18px; }
.pub-line { align-items: center; }
.pub-line > div { flex: 1; min-width: 0; }
.pub-line .pl-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink); flex: none; }
.pub-steps { position: sticky; top: 0; z-index: 30; margin: 14px -14px 12px; padding: 12px 14px 10px; background: rgba(243, 245, 249, .88); backdrop-filter: blur(10px); }
.ps-bar { top: 26px; }
.pub-card { padding: 18px; border-radius: 20px; border-color: transparent; box-shadow: 0 1px 2px rgba(11, 21, 51, .05), 0 10px 30px rgba(11, 21, 51, .07); }
.pc-h { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.pc-ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: #eef2f8; color: var(--ink); flex: none; }
.pc-ic svg.i { width: 21px; height: 21px; }
.pc-h em { display: block; font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.pc-h h2 { font-size: 18px; margin: 0; }
.pc-sub { font-size: 13px; color: var(--muted); margin: 2px 0 4px; }
.pub-card .in { height: 46px; border-radius: 12px; background: #f8f9fc; border-color: #e6e9f0; }
.pub-card .in:focus { background: #fff; }
.pub-card .field > label { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--dim); }
.pub-lost { min-height: 86vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; padding: 30px 18px; animation: rise .5s ease both; }
.pub-lost img { height: 56px; width: auto; max-width: 180px; object-fit: contain; margin-bottom: 10px; }
.pub-lost .pl-ic { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.pub-lost h2 { font-size: 21px; max-width: 320px; }
.pub-lost p { color: var(--muted); max-width: 340px; margin: 0 0 6px; }
.pub-lost .btn { height: 48px; border-radius: 14px; padding: 0 22px; background: var(--ink); border-color: var(--ink); }
.pay-split { grid-template-columns: 1.1fr .9fr 1.2fr auto auto; }
.pic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.pic-tile { position: relative; display: flex; flex-direction: column; gap: 2px; font-size: 12px; }
.pic-tile > button:first-child { padding: 0; border: 0; background: none; cursor: zoom-in; }
.pic-tile img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; display: block; }
.pic-tile b { color: var(--ink); margin-top: 4px; }
.pic-tile em { font-style: normal; color: var(--dim); font-size: 11px; }
.pic-tile.tech > span { aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--dim); border: 1px dashed var(--line); }
.pic-x { position: absolute; top: 5px; right: 5px; width: 26px; height: 26px; border-radius: 8px; border: 0; background: rgba(11,21,51,.75); color: #fff; display: grid; place-items: center; cursor: pointer; }
.proof-thumb { padding: 0; border: 0; background: none; cursor: zoom-in; }
.proof-thumb img { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; display: block; }
@media screen and (max-width: 900px) { .pay-split { grid-template-columns: 1fr 1fr auto auto; } }

/* ---------- client view v4: in-place updates, verify, disclaimer, terms gallery, received ---------- */
.pub-stage.still { transition: none; }
.pub-stage.still .pub-card { animation: none; }
.ph-chips .ph-safe { display: inline-flex; align-items: center; gap: 5px; background: rgba(159, 240, 200, .18); color: #9ff0c8; }
.vf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.vf-tile { position: relative; aspect-ratio: 4 / 5; border-radius: 16px; border: 1.5px dashed #cdd3df; background: #f8f9fc; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px; padding: 12px; text-align: center; cursor: pointer; font: inherit; color: var(--ink); overflow: hidden; transition: transform .15s ease; }
.vf-tile:hover { transform: translateY(-2px); }
.vf-tile b { font-size: 14px; }
.vf-tile em { font-style: normal; font-size: 11.5px; color: var(--dim); }
.vf-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: #fff; box-shadow: var(--shadow); }
.vf-tile.has { border: 0; padding: 0; }
.vf-tile.has img { width: 100%; height: 100%; object-fit: cover; animation: rise .35s ease both; }
.vf-ok { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; }
.vf-note { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--muted); margin: 12px 0 0; }
.pub-disc { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 4px; padding: 11px 12px; border-radius: 12px; background: var(--warn-bg); color: var(--warn); font-size: 12.5px; }
.pub-disc b { color: var(--ink); }
.tc-sec + .tc-sec { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.tc-sec h3 { margin-bottom: 6px; }
.tc-sec p { font-size: 14px; line-height: 1.6; color: var(--text); }
.tc-imgs { display: grid; gap: 10px; margin-top: 10px; }
.tc-imgs img { width: 100%; border-radius: 12px; border: 1px solid var(--line); display: block; }
.pub-dm-bg { position: fixed; inset: 0; z-index: 500; background: rgba(7, 12, 28, .55); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 18px; animation: fade .25s ease; transition: opacity .3s; }
.pub-dm-bg.gone { opacity: 0; }
.pub-dm { width: min(400px, 100%); background: #fff; border-radius: 24px; padding: 26px 22px 18px; text-align: center; box-shadow: var(--shadow-lg); animation: pop .3s cubic-bezier(.2,1.4,.4,1) both; }
.pub-dm-ic { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 20px; display: grid; place-items: center; background: var(--warn-bg); color: var(--warn); }
.pub-dm h2 { font-size: 20px; }
.pub-dm p { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 8px 0 18px; }
.pub-dm .btn { height: 50px; border-radius: 14px; background: var(--ink); border-color: var(--ink); font-size: 15px; }
.pub-dm > span { display: block; margin-top: 10px; font-size: 11.5px; color: var(--dim); }

.pub-rcv { padding-bottom: 20px; }
.rcv-hero { position: relative; overflow: hidden; text-align: center; color: #fff; background: #0b1533; border-radius: 26px; padding: 22px 18px 20px; box-shadow: 0 18px 40px rgba(11, 21, 51, .25); }
.rcv-hero::before { content: ""; position: absolute; width: 360px; height: 360px; left: 50%; top: -220px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(63, 207, 152, .45), transparent 65%); }
.rcv-hero > * { position: relative; }
.rcv-hero .ph-logo { display: inline-grid; margin-bottom: 14px; }
.rcv-hero .rc-mark { width: 78px; height: 78px; background: rgba(255,255,255,.08); border-radius: 50%; padding: 8px; }
.rcv-hero .rc-mark circle, .rcv-hero .rc-mark path { stroke: #3fcf98; }
.rcv-hero h1 { color: #fff; font-size: 28px; margin: 12px 0 6px; letter-spacing: -.02em; }
.rcv-hero p { opacity: .8; font-size: 14px; margin: 0 auto 14px; max-width: 320px; }
.rcv-ref { display: inline-flex; flex-direction: column; background: rgba(255,255,255,.1); border-radius: 14px; padding: 8px 18px; }
.rcv-ref em { font-style: normal; font-size: 11px; opacity: .7; letter-spacing: .06em; text-transform: uppercase; }
.rcv-ref b { font-size: 18px; color: #fff; }
.rcv-card { background: #fff; border-radius: 20px; padding: 16px 18px; margin-top: 12px; box-shadow: 0 1px 2px rgba(11,21,51,.05), 0 10px 30px rgba(11,21,51,.07); text-align: left; }
.rcv-card h3 { font-size: 15px; margin-bottom: 10px; }
.rcv-steps { list-style: none; margin: 0; padding: 0; position: relative; }
.rcv-steps li { display: flex; gap: 12px; padding: 0 0 14px; position: relative; }
.rcv-steps li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 32px; bottom: 2px; width: 2px; background: var(--line); }
.rcv-steps li > span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--dim); flex: none; }
.rcv-steps li.on > span { background: var(--ok); color: #fff; }
.rcv-steps b { display: block; color: var(--ink); font-size: 14px; }
.rcv-steps em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.rc-slip { margin: 12px 0 0; border: 0; }
.rcv-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 10px; }
.rcv-acts .btn { height: 48px; border-radius: 14px; }
.pub-rcv.fresh .rcv-hero { animation: rise .5s ease both; }
.pub-rcv.fresh .rcv-card:nth-of-type(2) { animation: rise .5s .25s ease both; }
.pub-rcv.fresh .rcv-card:nth-of-type(3) { animation: rise .5s .4s ease both; }
.pub-rcv.fresh .rcv-steps li { animation: rise .4s ease both; }
.pub-rcv.fresh .rcv-steps li:nth-child(2) { animation-delay: .45s; } .pub-rcv.fresh .rcv-steps li:nth-child(3) { animation-delay: .55s; } .pub-rcv.fresh .rcv-steps li:nth-child(4) { animation-delay: .65s; }
.pub-rcv.fresh .rc-mark circle { stroke-dashoffset: 151; animation: draw .7s .2s ease forwards; }
.pub-rcv.fresh .rc-mark path { stroke-dashoffset: 40; animation: draw .4s .8s ease forwards; }
@media print { .pub-body { background: #fff; } .rcv-acts, .pub-loader { display: none !important; } .rcv-hero { box-shadow: none; } }
.vf-staff { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vf-staff button { padding: 0; border: 0; background: none; cursor: zoom-in; text-align: left; font: inherit; }
.vf-staff img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; display: block; border: 1px solid var(--line); }
.vf-staff span { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-top: 4px; }

/* ---------- staff Pre-Fill v2 ---------- */
.pf-card { border-color: transparent; box-shadow: 0 1px 2px rgba(11,21,51,.05), 0 10px 30px rgba(11,21,51,.06); border-radius: 18px; }
.pf-h { display: flex; gap: 12px; align-items: flex-start; }
.pf-h h3 { font-size: 16px; }
.pf-h p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.pf-n { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 800; font-size: 13px; flex: none; }
.pf-card #f-cname { height: 48px; font-size: 16px; border-radius: 12px; }
.pf-svc button .ico svg.i { width: 17px; height: 17px; }
.pf-sum { position: sticky; top: 112px; color: #fff; background: #0b1533; border-radius: 22px; padding: 20px; overflow: hidden; box-shadow: 0 18px 40px rgba(11,21,51,.22); }
.pf-sum::before { content: ""; position: absolute; width: 280px; height: 280px; right: -120px; top: -140px; border-radius: 50%; background: radial-gradient(circle, rgba(0,184,240,.35), transparent 65%); }
.pf-sum > * { position: relative; }
.pf-sum h3 { color: #fff; }
.pf-sum .row span { color: rgba(255,255,255,.6); }
.pf-sum .row b { color: #fff; }
.pf-sum .grand { border-top-color: rgba(255,255,255,.15); }
.pf-sum .grand b { font-size: 26px; letter-spacing: -.02em; }
.pf-sum .bad-t { color: #ff9b9b; }
.pf-sum .btn { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff; }
.pf-sum .btn.primary { background: #fff; color: var(--ink); border-color: #fff; height: 46px; }
.pf-sum .btn.ghost { background: transparent; border-color: transparent; color: rgba(255,255,255,.75); }

/* ---------- price terms in the line editor: Cash / credit card 6 · 12 · 24 months ---------- */
.le-termbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.le-termbar > span { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.le-terms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; margin-top: 8px; min-width: 0; }
#le td.item { min-width: 220px; }
.le-termbar .seg button { white-space: nowrap; }
.le-terms button { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-width: 0; padding: 5px 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface, #fff); color: var(--ink); cursor: pointer; text-align: left; font: inherit; transition: background .15s, border-color .15s, color .15s; }
.le-terms button em { white-space: nowrap; font-style: normal; font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.le-terms button b { font-size: 12px; font-weight: 750; white-space: nowrap; }
.le-terms button small { font-size: 10.5px; color: var(--muted); }
.le-terms button:hover { border-color: var(--ink); }
.le-terms button.on { background: #0b1533; border-color: #0b1533; color: #fff; }
.le-terms button.on em, .le-terms button.on small { color: rgba(255,255,255,.7); }
.pub-line .pl-term, .rc-row .pl-term { display: inline-flex; align-items: center; gap: 4px; margin-top: 3px; font-size: 11.5px; font-style: normal; font-weight: 650; color: #0f7a55; }
@media screen and (max-width: 900px) {
  .le-terms { grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; }
  #le td.item { min-width: 0; }
}

/* ---------- Pre-Fill schedule type (Car / Motorcycle slot pool) ---------- */
.pf-veh { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.pf-veh-l { flex: 1; min-width: 180px; }
.pf-veh-l b { display: block; color: var(--ink); font-size: 13.5px; }
.pf-veh-l em { font-style: normal; font-size: 12px; color: var(--muted); }
.pf-veh-b { display: flex; gap: 8px; }
.pf-veh-b button { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; text-align: left; transition: background .15s, border-color .15s; }
.pf-veh-b button svg.i { width: 22px; height: 22px; }
.pf-veh-b button b { display: block; font-size: 13px; }
.pf-veh-b button small { font-size: 11px; color: var(--muted); }
.pf-veh-b button:hover { border-color: var(--ink); }
.pf-veh-b button.on { background: #0b1533; border-color: #0b1533; color: #fff; }
.pf-veh-b button.on small { color: rgba(255,255,255,.7); }
@media screen and (max-width: 900px) { .pf-veh-b { width: 100%; } .pf-veh-b button { flex: 1; } }

/* ---------- client form: month calendar (dates from Daily Slots) ---------- */
.cal-soon { margin-top: 12px; }
.cal-soon em { display: block; font-style: normal; font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.cal-soon > div { display: flex; gap: 6px; flex-wrap: wrap; }
.pub-cal { margin-top: 14px; padding: 12px; border: 1px solid #e6e9f0; border-radius: 16px; background: #fbfcfe; }
.cal-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-h b { font-size: 16px; color: var(--ink); }
.cal-nav { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.cal-nav:disabled { opacity: .3; cursor: default; }
.cal-w, .cal-g { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-w span { text-align: center; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--dim); padding-bottom: 4px; }
.cal-d { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 50px; padding: 4px 0; border-radius: 12px; border: 1px solid transparent; background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; transition: transform .12s, background .12s; }
.cal-d b { font-size: 15px; line-height: 1.1; }
.cal-d i { font-style: normal; font-size: 9.5px; font-weight: 750; color: var(--ok); white-space: nowrap; }
.cal-d:not(.off):hover { transform: translateY(-1px); border-color: var(--ink); }
.cal-d.low i { color: #c27400; }
.cal-d.off { background: transparent; color: #b8bfcc; cursor: default; }
.cal-d.off i { color: #c3c9d4; }
.cal-d.full i { color: var(--bad); opacity: .7; }
.cal-d.today b { text-decoration: underline; text-underline-offset: 3px; }
.cal-d.on { background: var(--ink); border-color: var(--ink); color: #fff; animation: pop .2s ease; }
.cal-d.on i { color: rgba(255,255,255,.8); }
.cal-key { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; font-size: 11.5px; font-weight: 650; color: var(--muted); }
.cal-key span { display: inline-flex; align-items: center; gap: 5px; }
.cal-key i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.cal-key .k-ok { background: var(--ok); } .cal-key .k-low { background: #c27400; } .cal-key .k-off { background: #c3c9d4; }

/* ---------- client form: required notes ---------- */
.req { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 99px; background: #eef1f6; color: var(--muted); font-size: 9.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; vertical-align: 1px; }
.req.miss { background: var(--bad-bg, #fdecec); color: var(--bad); }
.req-note { font-size: 12.5px; color: var(--muted); }
.req-note .req { margin: 0 2px; }
.pub-card .field.miss .in { border-color: var(--bad); background: #fff7f7; }

/* Save copy (PNG): the clone is captured with every animation finished */
.pub-rcv.snap, .pub-rcv.snap * { animation: none !important; transition: none !important; }
.pub-rcv.snap .rc-mark circle, .pub-rcv.snap .rc-mark path { stroke-dashoffset: 0 !important; }

/* ---------- line editor v2: price choice on its own row under each item ---------- */
#le .lines tr.le-main.has-sub td { padding-bottom: 2px; }
#le .lines tr.le-sub td { padding: 4px 6px 12px; border-bottom: 1px solid var(--line-2); }
.le-subin { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.le-sublbl { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
#le .le-terms { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
#le .le-terms button { flex-direction: row; align-items: baseline; gap: 6px; padding: 6px 12px; border-radius: 99px; }
#le .le-terms button em { font-size: 10px; }
#le .le-terms button b { font-size: 12.5px; }
#le .le-terms button small { font-size: 11px; }
#le td.item { min-width: 190px; }
#le td.item .in { width: 100%; }

@media screen and (max-width: 900px) {
  /* one item = one tidy card: item + delete / qty · discount · price / regular · amount / price choice */
  #le .lines tr.le-main {
    grid-template-columns: .8fr 1fr 1.1fr auto;
    grid-template-areas: "item item item del" "qty disc price price" "reg reg amt amt";
    gap: 8px; align-items: end; padding: 14px 0 8px;
  }
  #le .lines tr.le-main.has-sub { border-bottom: 0; padding-bottom: 6px; }
  #le .lines tr.le-main > td:nth-child(1) { grid-area: item; min-width: 0; }
  #le .lines tr.le-main > td:nth-child(2) { grid-area: qty; }
  #le .lines tr.le-main > td:nth-child(3) { grid-area: reg; }
  #le .lines tr.le-main > td:nth-child(4) { grid-area: disc; }
  #le .lines tr.le-main > td:nth-child(5) { grid-area: price; }
  #le .lines tr.le-main > td:nth-child(6) { grid-area: amt; }
  #le .lines tr.le-main > td:nth-child(7) { grid-area: del; align-self: end; }
  #le .lines tr.le-main > td:nth-child(3), #le .lines tr.le-main > td:nth-child(6) { display: flex; align-items: baseline; gap: 6px; font-size: 13px; }
  #le .lines tr.le-main > td:nth-child(3)::before, #le .lines tr.le-main > td:nth-child(6)::before { margin: 0; }
  #le .lines tr.le-main > td:nth-child(3) { color: var(--muted); }
  #le .lines tr.le-main > td:nth-child(6) { justify-content: flex-end; font-size: 15px; }
  #le .lines tr.le-main .in { height: 42px; }
  #le .lines tr.le-main .x { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; }
  #le .lines tr.le-sub { display: block; padding: 0 0 14px; border-bottom: 1px solid var(--line-2); }
  #le .lines tr.le-sub td { display: block; padding: 0; border: 0; }
  #le .lines tr.le-sub td::before { display: none; }
  .le-subin { display: block; }
  .le-sublbl { display: block; margin-bottom: 6px; }
  #le .le-terms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
  #le .le-terms button { flex-direction: column; align-items: flex-start; gap: 0; padding: 7px 7px; border-radius: 11px; }
  #le .le-terms button em { font-size: 9px; }
  #le .le-terms button b { font-size: 11.5px; letter-spacing: -.01em; }
  #le .le-terms button small { font-size: 9.5px; }
  .le-termbar .seg { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); }
  .le-termbar .seg button { padding: 8px 2px; font-size: 12px; }
  #le td.item { min-width: 0; }
}

/* ---------- Orders / J.O.: date filter + one group per schedule date ---------- */
.ord-dates { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.ord-range { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; }
.ord-range span { font-size: 12px; font-weight: 700; color: var(--muted); }
.ord-range .in { width: 150px; }
.ord-sum { margin-left: auto; font-size: 13px; font-weight: 800; color: var(--ink); }
.ord-day { margin-bottom: 16px; }
.ord-day-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 4px; position: sticky; top: calc(38px + var(--top-h)); z-index: 5; background: var(--bg); }
.ord-day-h b { font-size: 15px; color: var(--ink); }
.ord-rel { font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: var(--neutral-bg); padding: 2px 8px; border-radius: 99px; }
.ord-day-n { font-size: 12.5px; font-weight: 650; color: var(--muted); }
.ord-day-h .btn { margin-left: auto; }
@media screen and (max-width: 900px) {
  .ord-dates { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -14px 10px; padding: 2px 14px; }
  .ord-dates::-webkit-scrollbar { display: none; }
  .ord-dates > * { flex: none; }
  .ord-range .in { width: 138px; }
  .ord-sum { margin-left: 4px; }
  .ord-day-h { top: 58px; margin: 0 -14px; padding: 8px 14px; }
}

/* ---------- Daily Slots: limit for one date (kept here: mod-ops.css is being edited elsewhere) ---------- */
.sl-pd { margin-bottom: 14px; }
.sl-pd-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.sl-pd-f { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.sl-pd-f .field { width: 170px; }
.sl-pd-f .btn { height: 40px; }
.sl-pd-list { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.sl-pd-row { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 12px; border: 1px solid var(--line); border-radius: 12px; }
.sl-pd-date { display: flex; flex-direction: column; align-items: flex-start; border: 0; background: transparent; padding: 0; font: inherit; cursor: pointer; text-align: left; min-width: 120px; }
.sl-pd-date b { color: var(--ink); font-size: 13.5px; }
.sl-pd-date em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--muted); }
.sl-pd-v { flex: 1; font-size: 13px; font-weight: 700; color: var(--ink); }
.sl-pd-v i { font-style: normal; color: var(--muted); font-weight: 600; }
.sl-pd-row .x { border: 0; background: transparent; cursor: pointer; color: var(--muted); width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; }
.sl-pd-row .x:hover { background: var(--neutral-bg); color: var(--ink); }
@media screen and (max-width: 900px) {
  .sl-pd-f { display: grid; grid-template-columns: 1fr 1fr; }
  .sl-pd-f .field { width: auto; }
  .sl-pd-f .field:first-child, .sl-pd-f .btn { grid-column: 1 / -1; }
  .sl-pd-row { flex-wrap: wrap; }
}

/* ---------- J.O. profile: payments card, history, AR / DR documents ---------- */
.jo-pay .card-h { flex-wrap: wrap; }
.jo-pay-bar { height: 8px; border-radius: 99px; background: var(--neutral-bg); overflow: hidden; }
.jo-pay-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0f9d6b, #3fcf98); }
.jo-pay-sum { display: flex; justify-content: space-between; gap: 10px; margin: 8px 0 4px; font-size: 13.5px; }
.jo-quick { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 10px 0 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.jo-quick > span { font-size: 12px; font-weight: 700; color: var(--muted); margin-right: 4px; }
.jo-hist li { position: relative; padding-left: 34px; }
.jo-hist li::before { display: none; }
.jo-hist li::after { left: 11px; top: 24px; }
.jo-hist .h-ic { position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.jo-hist .h-ic svg.i { width: 12px; height: 12px; }
.jo-hist li.mv .h-ic { background: #fff4e0; border-color: #f0c98a; color: #9a5b00; }
.jo-hist li.mv > div:first-of-type b { color: #9a5b00; }
.jo-hist li.more summary { cursor: pointer; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.linklike { border: 0; background: none; padding: 0; font: inherit; color: var(--brand-ink, var(--ink)); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.doc-paper { background: #fff; color: #111; border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; }
.doc-paper .wl-doc { min-width: 560px; }
.wl-doc .doc-to > div { padding: 10px 12px; border: 1px solid #e3e6ee; border-radius: 10px; }
.wl-doc .doc-to b { display: block; margin: 2px 0; }
.ar-words { margin: 4px 0 14px; padding: 12px 14px; border-radius: 10px; background: #f6f7fb; font-size: 14px; line-height: 1.5; }
.doc-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.doc-tbl th { text-align: left; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: #fff; background: #0b1533; padding: 8px 10px; }
.doc-tbl td { padding: 8px 10px; border-bottom: 1px solid #e6e8ef; vertical-align: top; }
.doc-tbl .num { text-align: right; }
.doc-tbl tfoot td { border-bottom: 0; padding: 4px 10px; }
#wl-print { display: none; }
@media print {
  body.wl-printing > *:not(#wl-print) { display: none !important; }
  body.wl-printing #wl-print { display: block !important; }
  body.wl-printing { background: #fff !important; }
  #wl-print .wl-doc { padding: 0; min-width: 0; }
}
/* Daily Schedule: the whole job card opens the J.O.; move history line */
.ops-job[data-open] { cursor: pointer; }
.ops-job[data-open]:hover { border-color: var(--ink); }
.ops-job-moved { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; padding: 3px 9px; border: 0; border-radius: 99px; background: #fff4e0; color: #9a5b00; font: inherit; font-size: 11.5px; font-weight: 700; cursor: pointer; }
.ops-job-moved svg.i { width: 13px; height: 13px; }

/* ---------- Pre-Fill: PROJECT checkbox ---------- */
.pf-proj { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.pf-proj-ck { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.pf-proj-ck input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ink); }
.pf-proj-ck b { display: block; color: var(--ink); font-size: 13.5px; letter-spacing: .04em; }
.pf-proj-ck em { font-style: normal; font-size: 12px; color: var(--muted); }
.pf-proj-f { margin-top: 10px; }
.doc-paper { max-width: 100%; min-width: 0; }
@media screen and (max-width: 900px) {
  .doc-paper .wl-doc { min-width: 0; padding: 14px; }
  .wl-doc .doc-h { flex-wrap: wrap; }
  .wl-doc .doc-h img { height: 40px; }
  .wl-doc .doc-no { margin-left: 0; text-align: left; width: 100%; }
  .wl-doc .doc-sign { grid-template-columns: 1fr; gap: 28px; }
  .doc-tbl { font-size: 12px; }
  .doc-tbl th, .doc-tbl td { padding: 6px; }
}

/* ---------- J.O. log: one order, many J.O. visits ---------- */
.jo-log .card-h { flex-wrap: wrap; }
.jo-visit { position: relative; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; background: var(--surface); }
.jo-visit:last-child { margin-bottom: 0; }
.jo-visit.cur { border-color: var(--ink); box-shadow: inset 3px 0 0 var(--ink); }
.jv-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.jv-n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 12px; font-weight: 800; flex: none; }
.jv-when { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.jv-top .badge { margin-left: auto; }
.jv-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 12.5px; color: var(--text); }
.jv-meta span { display: inline-flex; align-items: center; gap: 5px; }
.jv-meta svg.i { width: 14px; height: 14px; color: var(--muted); }
.jv-note { margin-top: 6px; padding: 7px 10px; border-radius: 9px; background: var(--surface-2); font-size: 12.5px; }
.jv-pics { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.jv-pics button { padding: 0; border: 0; background: none; cursor: zoom-in; }
.jv-pics img { width: 54px; height: 54px; object-fit: cover; border-radius: 9px; display: block; }
.jv-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.jo-visit-ban { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; background: #f3f0ff; border-color: #d9cffb; }
.jo-visit-ban > svg.i { width: 22px; height: 22px; color: #6a3fd1; flex: none; }
.jo-visit-ban > div { flex: 1; }
.jo-visit-ban b { display: block; color: var(--ink); }
.jo-visit-ban span { font-size: 12.5px; color: var(--muted); }
@media screen and (max-width: 900px) {
  .jo-visit-ban { flex-wrap: wrap; }
  .jv-acts .btn { flex: 1 1 auto; }
}
/* items per J.O. inside the J.O. log */
.jv-items { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); font-size: 12.5px; }
.jv-items > div { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; }
.jv-items .t { border-top: 1px dashed var(--line); margin-top: 4px; padding-top: 5px; font-weight: 700; color: var(--ink); }
.doc-tbl tr.doc-grp td { background: #f3f4f8; font-size: 12px; padding: 6px 10px; }
/* Job Order document */
.jo-doc .jo-crew td { width: 25%; font-size: 12.5px; border: 1px solid #e6e8ef; }
.jo-doc .jo-2 { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; margin-top: 12px; }
.jo-doc .jo-2 > div { border: 1px solid #e3e6ee; border-radius: 10px; padding: 10px 12px; }
.jo-box { display: inline-block; width: 11px; height: 11px; border: 1.5px solid #333; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.jo-doc hr { border: 0; border-top: 1px dashed #ddd; margin: 3px 0; }
@media screen and (max-width: 900px) { .jo-doc .jo-2 { grid-template-columns: 1fr; } }

/* ---------- Quotation → Approve → Order: one card per J.O. date ---------- */
#qo-rows { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.qo-row { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; background: var(--surface); }
.qo-row:first-child { border-color: var(--ink); box-shadow: inset 3px 0 0 var(--ink); }
.qo-h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.qo-h b { font-size: 14px; color: var(--ink); }
.qo-h .btn { margin-left: auto; }
.qo-row .form-grid { margin: 0; }
.qo-items { display: flex; flex-direction: column; margin-top: 12px; border-radius: 12px; background: var(--surface-2); overflow: hidden; }
.qo-items::before { content: "Items on this J.O."; display: block; padding: 8px 12px 4px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.qo-it { display: flex; align-items: center; gap: 10px; padding: 8px 12px; font-size: 13px; cursor: pointer; border-top: 1px solid var(--line-2); }
.qo-it:first-child { border-top: 0; }
.qo-it input { width: 18px; height: 18px; flex: none; accent-color: var(--ink); }
.qo-it span { flex: 1; min-width: 0; }
.qo-it b { white-space: nowrap; }
.qo-it:has(input:not(:checked)) { color: var(--muted); }
.qo-it:has(input:not(:checked)) b { font-weight: 600; }
#qo-add { margin-top: 12px; }
#qo-sum { margin-top: 12px; }
@media screen and (max-width: 900px) {
  .qo-row { padding: 12px; }
  .qo-row .form-grid.g3 { grid-template-columns: 1fr 1fr; }
  .qo-row .form-grid.g3 .field:first-child { grid-column: 1 / -1; }
}
