/* Mechanic dashboard + job-detail — Phase 4 re-skin.
   Scoped under .hcs-app. Tokens + shared chrome live in
   hcs-design-system.css. This file covers the mechanic-specific
   dashboard layout (page header, tabs, offer cards, job cards,
   progress strip, photo grid, payout tile, sidebar). */

/* FULL-BLEED — neutralise Kadence's container constraints so the mechanic
   dashboard and job-detail pages fill the viewport instead of being boxed by
   the theme. .hcs-mech-dash is emitted only by mechanic-dashboard.php and
   mechanic-job-detail.php, so body:has() scopes to those two pages only.
   Kills:
     .site-container{max-width:var(--global-content-width); margin:0 auto;
                     padding:0 var(--global-content-edge-padding)}
     .content-area  {margin:var(--global-xxl-spacing) 0}  (5rem bottom) */
body:has(.hcs-mech-dash) .content-area,
body:has(.hcs-mech-dash) .site-container,
body:has(.hcs-mech-dash) .content-container.site-container,
body:has(.hcs-mech-dash) .entry-content-wrap,
body:has(.hcs-mech-dash) .entry-content,
body:has(.hcs-mech-dash) .entry.single-entry,
body:has(.hcs-mech-dash) .entry{
  margin:0 !important;padding:0 !important;
  max-width:none !important;box-shadow:none !important;background:transparent !important;
}

/* --- PAGE HEADER --- */
.hcs-app .hcs-mech-page-hd { background: #fff; border-bottom: 1px solid var(--line); padding: 28px 0 24px; }
.hcs-app .hcs-mech-page-hd h1 { font-weight: 700; font-size: clamp(24px, 3vw, 30px); color: var(--blue-900); letter-spacing: -.02em; margin-bottom: 6px; }
.hcs-app .hcs-mech-page-hd > .container > p,
.hcs-app .hcs-mech-page-hd p { color: var(--ink-2); font-size: 14.5px; }

.hcs-app .hcs-mech-hd-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.hcs-app .hcs-mech-hd-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; flex-wrap: wrap; }
.hcs-app .hcs-detail-hd { padding: 22px 0; }
.hcs-app .hcs-back-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); transition: all .15s; margin-bottom: 14px; }
.hcs-app .hcs-back-btn:hover { background: var(--bg-2); color: var(--blue-700); }
.hcs-app .hcs-hd-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--ink-2); align-items: center; margin-top: 6px; }
.hcs-app .hcs-hd-meta .ref { font-family: var(--body); font-weight: 700; letter-spacing: .04em; }
.hcs-app .hcs-hd-meta .sep { color: var(--line); }

/* --- AVAILABILITY TOGGLE (shell-only) --- */
.hcs-app .hcs-avail-toggle { display: flex; align-items: center; gap: 8px; background: var(--green-50); border: 1px solid #B9E2CB; padding: 6px 6px 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--green); flex-shrink: 0; cursor: pointer; transition: all .15s; }
.hcs-app .hcs-avail-toggle[aria-disabled="true"] { opacity: .75; cursor: not-allowed; }
.hcs-app .hcs-avail-toggle .switch { width: 34px; height: 20px; border-radius: 999px; background: var(--green); position: relative; transition: background .2s; }
.hcs-app .hcs-avail-toggle .switch::after { content: ""; position: absolute; top: 2px; left: 16px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .2s; }
@media (max-width: 560px) { .hcs-app .hcs-avail-toggle .label { display: none; } }

/* --- USER MENU --- */
.hcs-app .hcs-user-menu { display: flex; align-items: center; gap: 10px; flex-shrink: 0; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid var(--line); }
.hcs-app .hcs-user-menu .name { font-size: 14px; font-weight: 600; color: var(--ink); }
.hcs-app .hcs-avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--blue-700), var(--blue-500)); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
@media (max-width: 680px) { .hcs-app .hcs-user-menu .name { display: none; } }

/* --- COMPLIANCE WARNING --- */
.hcs-app .hcs-compliance { margin-top: 14px; padding: 12px 14px; background: var(--amber-50); border: 1px solid #FCD9A8; border-radius: 10px; display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--amber); }
.hcs-app .hcs-compliance svg { flex-shrink: 0; margin-top: 2px; }
.hcs-app .hcs-compliance strong { display: block; font-weight: 700; margin-bottom: 1px; }

/* --- QUICK STATS --- */
.hcs-app .hcs-mech-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 20px; }
@media (max-width: 780px) { .hcs-app .hcs-mech-stats { grid-template-columns: repeat(2, 1fr); } }
.hcs-app .hcs-mech-stats .hcs-stat-tile { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; align-items: center; gap: 11px; }
.hcs-app .hcs-mech-stats .hcs-stat-tile .ic { width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; background: var(--blue-50); color: var(--blue-700); display: grid; place-items: center; }
.hcs-app .hcs-mech-stats .hcs-stat-tile.green .ic { background: var(--green-50); color: var(--green); }
.hcs-app .hcs-mech-stats .hcs-stat-tile.amber .ic { background: var(--amber-50); color: var(--amber); }
.hcs-app .hcs-mech-stats .hcs-stat-tile small { display: block; font-size: 11.5px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.hcs-app .hcs-mech-stats .hcs-stat-tile strong { font-size: 19px; font-weight: 700; color: var(--blue-900); line-height: 1.1; }

/* --- MAIN LAYOUT --- */
.hcs-app .hcs-mech-main { padding: 28px 0 80px; }
.hcs-app .hcs-mech-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
/* min-width:0 so a single-column grid child can shrink below its content's
   min-content — without it the layout floored at ~470px and overflowed. */
.hcs-app .hcs-mech-layout > * { min-width: 0; }
@media (max-width: 1000px) { .hcs-app .hcs-mech-layout { grid-template-columns: 1fr; } }

/* --- CARD --- */
.hcs-app .hcs-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; box-shadow: var(--shadow-sm); }
.hcs-app .hcs-card + .hcs-card { margin-top: 18px; }
.hcs-app .hcs-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 14px; flex-wrap: wrap; }
.hcs-app .hcs-card-head h2 { font-weight: 700; font-size: 17px; color: var(--blue-900); letter-spacing: -.01em; margin: 0; }
.hcs-app .hcs-card-head h2 .count { display: inline-block; margin-left: 6px; background: var(--blue-50); color: var(--blue-700); font-size: 11.5px; padding: 2px 8px; border-radius: 999px; font-weight: 700; vertical-align: 1px; }
.hcs-app .hcs-card-head .head-actions { display: flex; gap: 6px; }

/* --- DASH MSG --- */
.hcs-app .hcs-dash-msg { padding: 12px 14px; border-radius: 9px; font-size: 14px; line-height: 1.5; margin: 14px 20px; display: none; max-width: 1200px; margin-inline: auto; }
.hcs-app .hcs-dash-msg.is-error { display: block; background: var(--red-50); color: var(--red); border: 1px solid #FCC; }
.hcs-app .hcs-dash-msg.is-success { display: block; background: var(--green-50); color: var(--green); border: 1px solid #B9E2CB; }
.hcs-app .hcs-dash-meta { font-size: 12.5px; color: var(--ink-3); }

/* ============================================================
   PAYOUT ONBOARDING BANNER (Stripe Connect) — ".hcs-pob-*"
   High-priority "needs setup" card shown until the mechanic
   finishes Stripe Connect onboarding. Amber accent = action
   needed (green is reserved for paid states elsewhere). Ported
   from the mechanic-dashboard mockup; namespaced "pob" so it
   never collides with the sidebar .hcs-payout-card / -tile.
   ============================================================ */
.hcs-app .hcs-payout-banner { max-width: 1200px; margin: 18px auto 0; padding: 0 20px; }

.hcs-app .hcs-pob-card {
  position: relative; overflow: hidden;
  /* Layered atmosphere: warm paper base + soft amber corner glow + diagonal sheen */
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(180,83,9,.10) 0%, rgba(180,83,9,0) 42%),
    linear-gradient(112deg, rgba(255,255,255,0) 38%, rgba(254,243,224,.5) 100%),
    linear-gradient(135deg, #FFFBF3 0%, #fff 60%);
  border: 1px solid #FCD9A8; border-radius: 16px;
  box-shadow: 0 6px 22px -8px rgba(180,83,9,.18), inset 0 1px 0 rgba(255,255,255,.7);
  display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center;
  padding: 20px 24px;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s;
  animation: hcsPobIn .6s cubic-bezier(.2,.8,.2,1) both;
}
.hcs-app .hcs-pob-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -12px rgba(180,83,9,.26), inset 0 1px 0 rgba(255,255,255,.7);
}
/* Hairline amber accent rail down the left edge */
.hcs-app .hcs-pob-card::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--amber), #E08A3C); opacity: .85;
}
/* Pulsing "action needed" dot, top-right */
.hcs-app .hcs-pob-card::before {
  content: ""; position: absolute; top: 15px; right: 16px; z-index: 2;
  width: 8px; height: 8px; border-radius: 50%; background: var(--amber);
  box-shadow: 0 0 0 0 rgba(180,83,9,.4);
  animation: hcsPobPulse 2.2s ease-out infinite;
}
@keyframes hcsPobIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hcsPobPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(180,83,9,.5); } 50% { box-shadow: 0 0 0 9px rgba(180,83,9,0); } }

/* Stripe brand mark — purple gradient with glossy sheen + ⚡ badge */
.hcs-app .hcs-pob-mark {
  width: 56px; height: 56px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(150deg, #7A73FF 0%, #635BFF 55%, #4F46E5 100%);
  display: grid; place-items: center; color: #fff;
  font-weight: 800; font-size: 23px; letter-spacing: -.04em;
  box-shadow: 0 8px 20px -6px rgba(99,91,255,.5), inset 0 1px 0 rgba(255,255,255,.45);
  position: relative; overflow: hidden;
  animation: hcsPobChildIn .5s ease both .12s;
}
.hcs-app .hcs-pob-mark::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(255,255,255,.35) 0%, rgba(255,255,255,0) 45%);
}
.hcs-app .hcs-pob-mark::after {
  content: "\26A1"; position: absolute; bottom: -5px; right: -5px; z-index: 1;
  width: 23px; height: 23px; border-radius: 50%; background: #fff;
  display: grid; place-items: center; font-size: 11px;
  border: 2px solid var(--amber); color: var(--amber); font-weight: 800;
  box-shadow: var(--shadow-sm);
}

/* Text column */
.hcs-app .hcs-pob-text { flex: 1; min-width: 0; animation: hcsPobChildIn .5s ease both .18s; }
.hcs-app .hcs-pob-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px; font-weight: 800; color: var(--amber);
  background: var(--amber-50); padding: 3px 9px; border-radius: 6px;
  text-transform: uppercase; letter-spacing: .07em; margin-bottom: 8px;
  border: 1px solid #FCD9A8;
}
.hcs-app .hcs-pob-tag svg { color: var(--amber); }
.hcs-app .hcs-pob-text strong {
  display: block; font-size: 16.5px; font-weight: 800; color: var(--blue-900);
  letter-spacing: -.015em; line-height: 1.25; margin-bottom: 4px;
}
.hcs-app .hcs-pob-text small { display: block; font-size: 13px; color: var(--ink-2); line-height: 1.5; }

/* Flow visualisation — Job → Stripe → Bank */
.hcs-app .hcs-pob-flow {
  display: flex; align-items: center; gap: 5px;
  margin-top: 11px; padding-top: 11px; border-top: 1px dashed #FCD9A8;
  font-size: 11.5px; font-weight: 600; color: var(--ink-2); flex-wrap: wrap;
}
.hcs-app .hcs-pob-step {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 9px; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; white-space: nowrap; box-shadow: var(--shadow-sm);
}
.hcs-app .hcs-pob-step svg { flex-shrink: 0; }
.hcs-app .hcs-pob-step.is-highlight {
  background: linear-gradient(150deg, #7A73FF, #635BFF); color: #fff; border-color: #635BFF;
  box-shadow: 0 4px 10px -3px rgba(99,91,255,.5);
}
.hcs-app .hcs-pob-arrow {
  color: var(--ink-3); flex-shrink: 0; font-weight: 700;
  animation: hcsPobArrow 1.8s ease-in-out infinite;
}
.hcs-app .hcs-pob-arrow:nth-of-type(2) { animation-delay: .25s; }
@keyframes hcsPobArrow { 0%,100% { transform: translateX(0); opacity: .55; } 50% { transform: translateX(2px); opacity: 1; } }

/* Actions column */
.hcs-app .hcs-pob-actions {
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0;
  animation: hcsPobChildIn .5s ease both .26s;
}
.hcs-app .hcs-pob-btn {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #C2620C 0%, var(--amber) 100%); color: #fff;
  border: 0; cursor: pointer; padding: 12px 22px; border-radius: 10px;
  font-weight: 700; font-size: 14px; font-family: var(--body);
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  transition: transform .15s, box-shadow .15s, filter .15s;
  box-shadow: 0 6px 16px -4px rgba(180,83,9,.4), inset 0 1px 0 rgba(255,255,255,.25);
  white-space: nowrap;
}
.hcs-app .hcs-pob-btn::before {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.45) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-18deg); transition: left .55s ease;
}
.hcs-app .hcs-pob-btn:hover { filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 9px 22px -6px rgba(180,83,9,.5), inset 0 1px 0 rgba(255,255,255,.25); }
.hcs-app .hcs-pob-btn:hover::before { left: 130%; }
.hcs-app .hcs-pob-btn:active { transform: translateY(0); }
.hcs-app .hcs-pob-btn-label { display: inline-flex; align-items: center; gap: 7px; }
.hcs-app .hcs-pob-btn-label svg { transition: transform .15s; }
.hcs-app .hcs-pob-btn:hover .hcs-pob-btn-label svg { transform: translateX(3px); }
.hcs-app .hcs-pob-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.hcs-app .hcs-pob-btn:disabled::before { display: none; }
.hcs-app .hcs-pob-btn-spinner {
  display: none; width: 13px; height: 13px;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%;
  animation: hcsPobSpin .8s linear infinite;
}
.hcs-app .hcs-pob-btn.is-loading .hcs-pob-btn-spinner { display: inline-block; }
.hcs-app .hcs-pob-btn.is-loading .hcs-pob-btn-label { display: none; }
@keyframes hcsPobSpin { to { transform: rotate(360deg); } }

.hcs-app .hcs-pob-est { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--ink-3); font-weight: 500; }
.hcs-app .hcs-pob-est svg { color: var(--ink-3); }
.hcs-app .hcs-pob-later {
  background: none; border: 0; cursor: pointer;
  font-size: 12px; color: var(--ink-3); font-weight: 600;
  padding: 4px 8px; border-radius: 5px; transition: color .15s; font-family: var(--body);
}
.hcs-app .hcs-pob-later:hover { color: var(--blue-700); text-decoration: underline; }

/* Status message slot (spans full width below the grid) */
.hcs-app .hcs-payout-msg { grid-column: 1 / -1; font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }
.hcs-app .hcs-payout-msg:empty { display: none; }
.hcs-app .hcs-payout-msg.is-error { color: var(--red); }
.hcs-app .hcs-payout-msg.is-success { color: var(--green); }

@media (max-width: 780px) {
  .hcs-app .hcs-payout-banner { padding: 0 14px; margin-top: 14px; }
  .hcs-app .hcs-pob-card { grid-template-columns: 1fr; gap: 14px; padding: 18px; }
  .hcs-app .hcs-pob-actions { align-items: stretch; }
  .hcs-app .hcs-pob-mark { width: 48px; height: 48px; font-size: 20px; border-radius: 12px; }
  .hcs-app .hcs-pob-text strong { font-size: 15px; }
  .hcs-app .hcs-pob-flow { font-size: 10.5px; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .hcs-app .hcs-pob-card, .hcs-app .hcs-pob-mark, .hcs-app .hcs-pob-text,
  .hcs-app .hcs-pob-actions, .hcs-app .hcs-pob-card::before, .hcs-app .hcs-pob-arrow { animation: none; }
}
@keyframes hcsPobChildIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* --- TABS --- */
.hcs-app .hcs-mech-tabs { display: flex; gap: 4px; background: var(--bg-2); padding: 4px; border-radius: 10px; }
.hcs-app .hcs-mech-tab { flex: 1; padding: 8px 14px; border-radius: 7px; font-weight: 600; font-size: 13.5px; color: var(--ink-2); transition: all .15s; display: flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; font-family: var(--body); }
.hcs-app .hcs-mech-tab.is-active { background: #fff; color: var(--blue-900); box-shadow: var(--shadow-sm); }
.hcs-app .hcs-mech-tab:hover:not(.is-active) { color: var(--blue-700); }
.hcs-app .hcs-mech-pill { background: var(--blue-700); color: #fff; font-size: 11px; padding: 1px 7px; border-radius: 999px; font-weight: 700; }

.hcs-app .hcs-mech-panel { display: none; animation: hcsMechFade .2s ease; }
.hcs-app .hcs-mech-panel.is-active { display: block; }
@keyframes hcsMechFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* --- OFFER CARDS (Available tab) --- */
.hcs-app .hcs-offer-list { display: flex; flex-direction: column; gap: 14px; }
.hcs-app .hcs-offer-card { background: #fff; border: 1.5px solid var(--blue-100); border-radius: 12px; overflow: hidden; transition: all .2s; position: relative; }
.hcs-app .hcs-offer-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--blue-700), var(--blue-500)); }
.hcs-app .hcs-offer-card:hover { box-shadow: var(--shadow-md); border-color: var(--blue-700); }
.hcs-app .hcs-offer-card.is-removing { opacity: .35; transform: scale(.98); }

.hcs-app .hcs-offer-head { padding: 14px 18px 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hcs-app .hcs-offer-head .ref { font-weight: 700; font-size: 13px; color: var(--ink-2); letter-spacing: .04em; }
.hcs-app .hcs-offer-head .price-tag { margin-left: auto; font-size: 20px; font-weight: 800; color: var(--blue-900); letter-spacing: -.01em; }
.hcs-app .hcs-offer-head .price-tag small { font-size: 11px; font-weight: 500; color: var(--ink-3); display: block; margin-top: -2px; }

.hcs-app .hcs-urgency-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.hcs-app .hcs-urgency-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: hcsPulse 1.5s ease-in-out infinite; }
.hcs-app .hcs-urgency-pill.new { background: var(--blue-50); color: var(--blue-700); }
.hcs-app .hcs-urgency-pill.urgent { background: var(--amber-50); color: var(--amber); }
.hcs-app .hcs-urgency-pill.preferred { background: #FEF3E0; color: #8A4006; }
@keyframes hcsPulse { 0%, 100% { opacity: .4; } 50% { opacity: 1; } }

/* "Chosen for you" offers — customer picked THIS mechanic in the booking
   flow, so we highlight the card with an amber gradient stripe + banner
   so it stands out from the regular New offers above the fold. */
.hcs-app .hcs-offer-card--preferred { border-color: #FCD9A8; box-shadow: 0 0 0 3px rgba(180, 83, 9, .08); }
.hcs-app .hcs-offer-card--preferred::before { background: linear-gradient(90deg, #B45309, #F59E0B); height: 4px; }
.hcs-app .hcs-offer-card--preferred:hover { border-color: #B45309; box-shadow: 0 0 0 3px rgba(180, 83, 9, .14), var(--shadow-md); }
.hcs-app .hcs-offer-preferred-banner {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  background: linear-gradient(90deg, #FEF3E0, #FFF8EC);
  border-bottom: 1px solid #FCD9A8;
  font-size: 12.5px; color: #8A4006; line-height: 1.4;
}
.hcs-app .hcs-offer-preferred-banner svg { color: #B45309; flex-shrink: 0; fill: #F59E0B; }
.hcs-app .hcs-offer-preferred-banner strong { color: #8A4006; font-weight: 700; }

.hcs-app .hcs-offer-body { padding: 14px 18px; display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; }
@media (max-width: 680px) { .hcs-app .hcs-offer-body { grid-template-columns: 1fr; } }
.hcs-app .hcs-offer-vehicle { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.hcs-app .hcs-offer-vehicle .ic { width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0; background: var(--blue-50); color: var(--blue-700); display: grid; place-items: center; }
.hcs-app .hcs-offer-vehicle strong { display: block; font-size: 14.5px; font-weight: 700; color: var(--blue-900); line-height: 1.3; }
.hcs-app .hcs-offer-vehicle small { font-size: 12.5px; color: var(--ink-3); }

.hcs-app .hcs-offer-jobs { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.hcs-app .hcs-offer-job { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.hcs-app .hcs-offer-job .dot-sm { width: 5px; height: 5px; border-radius: 50%; background: var(--blue-700); flex-shrink: 0; margin-top: 8px; }
.hcs-app .hcs-offer-job .label { flex: 1; line-height: 1.4; }
.hcs-app .hcs-offer-job .min { font-size: 12px; color: var(--ink-3); font-weight: 500; flex-shrink: 0; margin-left: 8px; }

.hcs-app .hcs-offer-meta { padding: 12px; background: var(--bg-2); border-radius: 9px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.hcs-app .hcs-offer-meta .row { display: flex; justify-content: space-between; gap: 8px; }
.hcs-app .hcs-offer-meta .row span:first-child { color: var(--ink-3); }
.hcs-app .hcs-offer-meta .row strong { font-weight: 600; color: var(--ink); text-align: right; }

.hcs-app .hcs-offer-actions { padding: 12px 18px; border-top: 1px solid var(--line); background: var(--bg-2); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hcs-app .hcs-offer-actions .countdown { flex: 1; font-size: 12px; color: var(--ink-3); }

/* --- JOB CARDS (Current + Past tabs) --- */
.hcs-app .hcs-job-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: all .2s; }
.hcs-app .hcs-job-card + .hcs-job-card { margin-top: 14px; }
.hcs-app .hcs-job-card:hover { border-color: var(--blue-100); box-shadow: var(--shadow-md); }
.hcs-app .hcs-job-card.is-removing { opacity: .35; transform: scale(.98); }

.hcs-app .hcs-job-head { padding: 14px 18px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.hcs-app .hcs-job-head .ref { font-weight: 700; font-size: 13px; color: var(--ink-2); letter-spacing: .04em; }
.hcs-app .hcs-job-head .slot { margin-left: auto; font-size: 13px; color: var(--ink-3); font-weight: 500; }

/* --- STATUS PILLS --- */
.hcs-app .hcs-status-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.hcs-app .hcs-status-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.hcs-app .hcs-status-pill.status-scheduled { background: var(--blue-50); color: var(--blue-700); }
.hcs-app .hcs-status-pill.status-onway { background: var(--amber-50); color: var(--amber); }
.hcs-app .hcs-status-pill.status-onway .dot { animation: hcsPulse 1.5s ease-in-out infinite; }
.hcs-app .hcs-status-pill.status-working { background: var(--green-50); color: var(--green); }
.hcs-app .hcs-status-pill.status-working .dot { animation: hcsPulse 1.5s ease-in-out infinite; }
.hcs-app .hcs-status-pill.status-completed { background: var(--green-50); color: var(--green); }
.hcs-app .hcs-status-pill.status-cancelled { background: var(--red-50); color: var(--red); }

.hcs-app .hcs-job-body { padding: 18px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: flex-start; }
@media (max-width: 680px) { .hcs-app .hcs-job-body { grid-template-columns: 1fr; } }

/* --- CUSTOMER BLOCK --- */
.hcs-app .hcs-customer-block { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: 10px; margin-bottom: 14px; }
.hcs-app .hcs-customer-block .av { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--blue-700), var(--blue-500)); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.hcs-app .hcs-customer-block .text { flex: 1; min-width: 0; }
.hcs-app .hcs-customer-block strong { display: block; font-size: 14px; font-weight: 700; color: var(--blue-900); line-height: 1.3; }
.hcs-app .hcs-customer-block small { font-size: 12.5px; color: var(--ink-3); }
.hcs-app .hcs-customer-block .actions { display: flex; gap: 6px; flex-shrink: 0; }
.hcs-app .hcs-customer-block .ic-btn { width: 34px; height: 34px; border-radius: 8px; background: #fff; border: 1px solid var(--line); color: var(--blue-700); display: grid; place-items: center; transition: all .15s; }
.hcs-app .hcs-customer-block .ic-btn:hover { background: var(--blue-700); color: #fff; border-color: var(--blue-700); }

/* --- JOB INFO GRID --- */
.hcs-app .hcs-job-info { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
@media (max-width: 480px) { .hcs-app .hcs-job-info { grid-template-columns: 1fr; } }
.hcs-app .hcs-job-info .info-block { padding: 10px 12px; background: var(--bg-2); border-radius: 8px; }
.hcs-app .hcs-job-info .info-block .lbl { font-size: 11px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 3px; }
.hcs-app .hcs-job-info .info-block strong { display: block; font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.3; }

/* --- PAYOUT TILE --- */
.hcs-app .hcs-payout-tile { padding: 14px; background: linear-gradient(135deg, var(--green-50) 0%, #fff 100%); border: 1px solid #B9E2CB; border-radius: 10px; text-align: center; }
.hcs-app .hcs-payout-tile small { font-size: 11px; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: .08em; display: block; margin-bottom: 4px; }
.hcs-app .hcs-payout-tile strong { font-size: 24px; font-weight: 800; color: var(--green); letter-spacing: -.02em; display: block; line-height: 1.1; }
.hcs-app .hcs-payout-tile .breakdown { font-size: 11.5px; color: var(--ink-3); margin-top: 4px; }

/* --- PROGRESS ACTION BUTTONS (lifecycle) --- */
.hcs-app .hcs-prog-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px 18px; background: var(--blue-50); border-top: 1px solid var(--blue-100); }
@media (max-width: 680px) { .hcs-app .hcs-prog-actions { grid-template-columns: 1fr; } }
.hcs-app .hcs-prog-btn { background: #fff; border: 1.5px solid var(--blue-100); border-radius: 10px; padding: 12px; display: flex; align-items: center; gap: 10px; text-align: left; transition: all .15s; cursor: pointer; font-family: var(--body); }
.hcs-app .hcs-prog-btn:hover { border-color: var(--blue-700); background: var(--blue-50); transform: translateY(-1px); }
.hcs-app .hcs-prog-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.hcs-app .hcs-prog-btn .ic { width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0; background: var(--blue-50); color: var(--blue-700); display: grid; place-items: center; }
.hcs-app .hcs-prog-btn:hover .ic { background: var(--blue-700); color: #fff; }
.hcs-app .hcs-prog-btn strong { display: block; font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.hcs-app .hcs-prog-btn small { font-size: 11px; color: var(--ink-3); }
.hcs-app .hcs-prog-btn.is-active { border-color: var(--green); background: var(--green-50); }
.hcs-app .hcs-prog-btn.is-active .ic { background: var(--green); color: #fff; }
.hcs-app .hcs-prog-btn.is-active strong { color: var(--green); }

/* --- JOB ACTIONS (secondary) --- */
.hcs-app .hcs-job-actions { padding: 14px 18px; border-top: 1px solid var(--line); display: flex; gap: 8px; flex-wrap: wrap; }

/* --- BUTTONS --- */
.hcs-app .hcs-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 16px; border-radius: 8px; font-weight: 600; font-size: 13.5px; transition: all .15s; cursor: pointer; white-space: nowrap; font-family: var(--body); }
.hcs-app .hcs-btn-sm { padding: 8px 12px; font-size: 12.5px; }
.hcs-app .hcs-btn-block { width: 100%; }
.hcs-app .hcs-btn-primary { background: var(--blue-700); color: #fff; }
.hcs-app .hcs-btn-primary:hover { background: var(--blue-800); }
.hcs-app .hcs-btn-success { background: var(--green); color: #fff; }
.hcs-app .hcs-btn-success:hover { background: #0C7A45; }
.hcs-app .hcs-btn-warning { background: var(--amber); color: #fff; }
.hcs-app .hcs-btn-warning:hover { background: #923D07; }
.hcs-app .hcs-btn-outline { background: #fff; color: var(--blue-700); border: 1.5px solid var(--blue-700); }
.hcs-app .hcs-btn-outline:hover { background: var(--blue-700); color: #fff; }
.hcs-app .hcs-btn-ghost { color: var(--ink-2); background: var(--bg-2); }
.hcs-app .hcs-btn-ghost:hover { background: var(--bg-3); color: var(--ink); }
.hcs-app .hcs-btn-danger { color: var(--red); background: var(--red-50); }
.hcs-app .hcs-btn-danger:hover { background: var(--red); color: #fff; }
.hcs-app .hcs-btn:disabled { opacity: .5; cursor: not-allowed; }

/* --- EMPTY STATE --- */
.hcs-app .hcs-empty-state { padding: 48px 20px; text-align: center; }
.hcs-app .hcs-empty-state .ic,
.hcs-app .hcs-empty-state .hcs-empty-ic { width: 72px; height: 72px; border-radius: 50%; background: var(--blue-50); color: var(--blue-700); display: grid; place-items: center; margin: 0 auto 14px; }
.hcs-app .hcs-empty-state strong { display: block; font-size: 16px; font-weight: 700; color: var(--blue-900); margin-bottom: 6px; }
.hcs-app .hcs-empty-state p { color: var(--ink-3); font-size: 14px; margin-bottom: 18px; max-width: 340px; margin-inline: auto; }

/* --- SIDEBAR --- */
.hcs-app .hcs-side-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); }
.hcs-app .hcs-side-card + .hcs-side-card { margin-top: 18px; }
.hcs-app .hcs-side-head { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.hcs-app .hcs-side-head h3 { font-weight: 700; font-size: 14.5px; color: var(--blue-900); margin: 0; }
.hcs-app .hcs-side-head small { font-size: 12px; color: var(--ink-3); }
.hcs-app .hcs-side-row { display: flex; justify-content: space-between; align-items: center; padding: 11px 18px; font-size: 13px; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.hcs-app .hcs-side-row:last-child { border-bottom: 0; }
.hcs-app .hcs-side-row strong { font-weight: 700; color: var(--blue-900); }

.hcs-app .hcs-action-link { display: flex; align-items: center; gap: 11px; padding: 11px 18px; font-weight: 600; font-size: 13.5px; color: var(--ink); transition: all .15s; cursor: pointer; text-align: left; width: 100%; border-bottom: 1px solid var(--line); }
.hcs-app .hcs-action-link:last-child { border-bottom: 0; }
.hcs-app .hcs-action-link:hover { background: var(--blue-50); color: var(--blue-700); }
.hcs-app .hcs-action-link .ic-sm { width: 28px; height: 28px; border-radius: 7px; flex-shrink: 0; background: var(--blue-50); color: var(--blue-700); display: grid; place-items: center; }
.hcs-app .hcs-action-link:hover .ic-sm { background: var(--blue-700); color: #fff; }
.hcs-app .hcs-action-link .text { flex: 1; }
.hcs-app .hcs-action-link small { font-size: 11.5px; color: var(--ink-3); font-weight: 400; display: block; margin-top: 1px; }
.hcs-app .hcs-action-link .arrow { color: var(--ink-3); }

/* --- RATING BLOCK (sidebar, ported from mockup) --- */
.hcs-app .hcs-rating-block { padding: 18px; text-align: center; border-bottom: 1px solid var(--line); }
.hcs-app .hcs-side-card > .hcs-rating-block:last-child { border-bottom: 0; }
.hcs-app .hcs-rating-stars { display: inline-flex; gap: 3px; color: var(--amber); margin-bottom: 6px; }
.hcs-app .hcs-rating-stars svg { display: block; }
.hcs-app .hcs-rating-block .score { font-size: 32px; font-weight: 800; color: var(--blue-900); letter-spacing: -.02em; line-height: 1; }
.hcs-app .hcs-rating-block .out { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.hcs-app .hcs-rating-block .total { font-size: 12px; color: var(--ink-3); margin-top: 6px; }

/* --- PAYOUT SIDE-ROW (live "this week" earnings) --- */
.hcs-app .hcs-side-row.payout strong { font-size: 18px; color: var(--green); }
.hcs-app .hcs-side-row .sub-val { font-size: 12px; color: var(--ink-3); margin-top: 1px; display: block; text-align: right; }

/* --- PHOTOS PANEL --- */
.hcs-app .hcs-photos { margin-top: 14px; padding: 14px 18px; border-top: 1px solid var(--line); background: var(--bg-2); }
.hcs-app .hcs-photos-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.hcs-app .hcs-photos-head strong { font-size: 13px; font-weight: 700; color: var(--blue-900); }
.hcs-app .hcs-photos-count { background: var(--blue-50); color: var(--blue-700); font-size: 11px; padding: 2px 8px; border-radius: 999px; font-weight: 700; }
.hcs-app .hcs-photos-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
@media (max-width: 560px) { .hcs-app .hcs-photos-grid { grid-template-columns: repeat(3, 1fr); } }
.hcs-app .hcs-photo { aspect-ratio: 1; border-radius: 6px; background: var(--bg-3); position: relative; overflow: hidden; margin: 0; }
.hcs-app .hcs-photo a { display: block; width: 100%; height: 100%; }
.hcs-app .hcs-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hcs-app .hcs-photo video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.hcs-app .hcs-photo.is-video::after { content: "▶"; position: absolute; left: 6px; bottom: 4px; font-size: 11px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.7); pointer-events: none; }
.hcs-app .hcs-photo.is-uploading::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent); animation: hcsShimmer 1.2s linear infinite; }
@keyframes hcsShimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.hcs-app .hcs-photo-del { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; cursor: pointer; font-size: 14px; font-weight: 700; line-height: 1; }
.hcs-app .hcs-photo-upload { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-3); cursor: pointer; }
.hcs-app .hcs-photo-input { display: none; }
.hcs-app .hcs-photo-upload-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 8px; background: #fff; color: var(--blue-700); border: 1.5px solid var(--blue-700); font-weight: 600; font-size: 12.5px; }
.hcs-app .hcs-photo-upload-btn:hover { background: var(--blue-700); color: #fff; }

/* --- JOB DETAIL: progress strip --- */
.hcs-app .hcs-prog-strip { display: flex; align-items: center; gap: 0; margin-top: 18px; padding: 14px; background: linear-gradient(135deg, var(--blue-50) 0%, #fff 100%); border: 1px solid var(--blue-100); border-radius: 12px; }
.hcs-app .hcs-prog-step { flex: 1; display: flex; align-items: center; gap: 10px; position: relative; }
.hcs-app .hcs-prog-step .dot-num { width: 28px; height: 28px; border-radius: 50%; background: var(--bg-2); color: var(--ink-3); display: grid; place-items: center; font-weight: 700; font-size: 12px; flex-shrink: 0; transition: all .25s; }
.hcs-app .hcs-prog-step.done .dot-num { background: var(--green); color: #fff; }
.hcs-app .hcs-prog-step.current .dot-num { background: var(--blue-700); color: #fff; box-shadow: 0 0 0 4px rgba(30,90,168,.18); }
.hcs-app .hcs-prog-step .text strong { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); line-height: 1.2; }
.hcs-app .hcs-prog-step.done .text strong { color: var(--green); }
.hcs-app .hcs-prog-step.current .text strong { color: var(--blue-900); }
.hcs-app .hcs-prog-step .text small { font-size: 11.5px; color: var(--ink-3); }
.hcs-app .hcs-prog-step:not(:last-child)::after { content: ""; position: absolute; left: 38px; right: -10px; top: 13px; height: 2px; background: var(--line); z-index: 0; }
.hcs-app .hcs-prog-step.done::after { background: var(--green); }
@media (max-width: 680px) {
  .hcs-app .hcs-prog-strip { flex-direction: column; align-items: stretch; gap: 10px; }
  .hcs-app .hcs-prog-step { flex: initial; }
  .hcs-app .hcs-prog-step:not(:last-child)::after { display: none; }
}

.hcs-app .hcs-cancelled-banner { margin-top: 18px; padding: 14px; background: var(--red-50); border: 1px solid #FCC; border-radius: 12px; color: var(--red); font-size: 14px; }
.hcs-app .hcs-cancelled-banner strong { display: block; font-weight: 700; }
.hcs-app .hcs-cancelled-banner small { font-size: 12.5px; opacity: .85; }

/* --- JOB DETAIL: customer card / info grid / scope list --- */
.hcs-app .hcs-customer-card { background: linear-gradient(135deg, var(--blue-50) 0%, #fff 100%); border: 1px solid var(--blue-100); }
.hcs-app .hcs-customer-row { display: flex; align-items: center; gap: 14px; }
.hcs-app .hcs-customer-row .av { width: 54px; height: 54px; border-radius: 50%; background: linear-gradient(135deg, var(--blue-700), var(--blue-500)); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 18px; flex-shrink: 0; }
.hcs-app .hcs-customer-row .text { flex: 1; min-width: 0; }
.hcs-app .hcs-customer-row .text strong { display: block; font-size: 17px; font-weight: 700; color: var(--blue-900); line-height: 1.3; letter-spacing: -.01em; }
.hcs-app .hcs-customer-row .text small { font-size: 12.5px; color: var(--ink-3); display: block; margin-top: 1px; }
.hcs-app .hcs-customer-row .actions { display: flex; gap: 6px; flex-shrink: 0; flex-wrap: wrap; }
.hcs-app .hcs-customer-row .ic-btn { width: 38px; height: 38px; border-radius: 9px; background: #fff; border: 1px solid var(--line); color: var(--blue-700); display: grid; place-items: center; transition: all .15s; }
.hcs-app .hcs-customer-row .ic-btn:hover { background: var(--blue-700); color: #fff; border-color: var(--blue-700); }
.hcs-app .hcs-customer-row .ic-btn.call { background: var(--blue-700); color: #fff; border-color: var(--blue-700); }
.hcs-app .hcs-customer-row .ic-btn.call:hover { background: var(--blue-800); }

.hcs-app .hcs-info-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
@media (max-width: 680px) { .hcs-app .hcs-info-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .hcs-app .hcs-info-grid { grid-template-columns: 1fr; } }
.hcs-app .hcs-info-tile { padding: 12px 14px; background: var(--bg-2); border-radius: 10px; }
.hcs-app .hcs-info-tile .lbl { font-size: 11px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 5px; display: flex; align-items: center; gap: 5px; }
.hcs-app .hcs-info-tile .lbl svg { color: var(--ink-3); }
.hcs-app .hcs-info-tile strong { display: block; font-size: 14.5px; font-weight: 700; color: var(--blue-900); line-height: 1.25; }
.hcs-app .hcs-info-tile small { font-size: 12px; color: var(--ink-3); display: block; margin-top: 2px; }

.hcs-app .hcs-scope-list { display: flex; flex-direction: column; gap: 0; }
.hcs-app .hcs-scope-item { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.hcs-app .hcs-scope-item:first-child { border-top: 0; padding-top: 0; }
.hcs-app .hcs-scope-item .ic { width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0; background: var(--blue-50); color: var(--blue-700); display: grid; place-items: center; }
.hcs-app .hcs-scope-item .text { flex: 1; min-width: 0; }
.hcs-app .hcs-scope-item strong { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.35; }

/* --- CHECKLIST (shell-only) --- */
.hcs-app .hcs-checklist { display: flex; flex-direction: column; gap: 6px; }
.hcs-app .hcs-check-item { display: flex; align-items: flex-start; gap: 12px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 9px; background: #fff; cursor: pointer; transition: all .15s; }
.hcs-app .hcs-check-item:hover { border-color: var(--blue-100); background: var(--blue-50); }
.hcs-app .hcs-check-item.is-checked { background: var(--green-50); border-color: #B9E2CB; }
.hcs-app .hcs-check-item .cb { width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--line); display: grid; place-items: center; flex-shrink: 0; margin-top: 1px; transition: all .15s; }
.hcs-app .hcs-check-item.is-checked .cb { background: var(--green); border-color: var(--green); }
.hcs-app .hcs-check-item .cb svg { opacity: 0; color: #fff; }
.hcs-app .hcs-check-item.is-checked .cb svg { opacity: 1; }
.hcs-app .hcs-check-item .text { flex: 1; }
.hcs-app .hcs-check-item .text strong { display: block; font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.hcs-app .hcs-check-item.is-checked .text strong { text-decoration: line-through; color: var(--ink-3); text-decoration-color: var(--green); }
.hcs-app .hcs-check-item .text small { font-size: 12px; color: var(--ink-3); }
.hcs-app .hcs-check-item .req { font-size: 10.5px; font-weight: 700; color: var(--blue-700); background: var(--blue-50); padding: 2px 7px; border-radius: 4px; text-transform: uppercase; letter-spacing: .04em; flex-shrink: 0; }
.hcs-app .hcs-checklist-meta { margin-top: 12px; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); }
.hcs-app .hcs-progress-bar { flex: 1; height: 6px; background: var(--bg-3); border-radius: 999px; overflow: hidden; }
.hcs-app .hcs-progress-fill { height: 100%; background: linear-gradient(90deg, var(--blue-700), var(--blue-500)); border-radius: 999px; transition: width .3s; }

.hcs-app .hcs-shell-note { padding: 12px 14px; background: var(--bg-2); border-radius: 9px; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.hcs-app .hcs-shell-note a { color: var(--blue-700); font-weight: 500; text-decoration: underline; }

/* --- PAYOUT CARD (job detail sidebar) --- */
.hcs-app .hcs-payout-card { background: linear-gradient(135deg, var(--green-50) 0%, #fff 100%); border: 1px solid #B9E2CB; }
.hcs-app .hcs-payout-body { padding: 18px; text-align: center; }
.hcs-app .hcs-payout-body small { font-size: 11px; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: .08em; display: block; margin-bottom: 4px; }
.hcs-app .hcs-payout-body strong { font-size: 32px; font-weight: 800; color: var(--green); letter-spacing: -.02em; display: block; line-height: 1.1; }
.hcs-app .hcs-payout-body .breakdown { font-size: 12px; color: var(--ink-3); margin-top: 8px; line-height: 1.5; }
.hcs-app .hcs-payout-body .breakdown .row { display: flex; justify-content: space-between; padding: 2px 0; }
.hcs-app .hcs-action-row { padding: 14px 18px; border-top: 1px solid var(--line); background: var(--bg-2); display: flex; flex-direction: column; gap: 8px; }

/* --- SHELL-only ribbon (subtle) --- */
.hcs-app [data-shell-only="true"] { position: relative; }
.hcs-app .hcs-shell-pill { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--amber-50); color: var(--amber); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }

/* --- ADD EXTRA WORK MODAL --- */
.hcs-aw-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(10, 37, 64, .55);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}
.hcs-aw-modal-overlay.is-open { display: flex; animation: hcsAwFade .2s ease; }
@keyframes hcsAwFade { from { opacity: 0; } to { opacity: 1; } }

.hcs-aw-modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  animation: hcsAwRise .25s ease;
}
@keyframes hcsAwRise { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }

.hcs-aw-modal-head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}
.hcs-aw-modal-head h3 { font-weight: 700; font-size: 17px; color: var(--blue-900); letter-spacing: -.01em; margin: 0 0 2px; }
.hcs-aw-modal-head p  { font-size: 13px; color: var(--ink-3); margin: 0; }

.hcs-aw-modal-close {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink-3);
  background: none;
  border: 0;
  cursor: pointer;
  transition: all .15s;
}
.hcs-aw-modal-close:hover { background: var(--bg-2); color: var(--ink); }

.hcs-aw-modal-body { padding: 18px 22px; flex: 1; overflow-y: auto; }
.hcs-aw-modal-foot {
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  background: #fff;
}

/* The modal renders at BODY level (outside .hcs-app), so the .hcs-app-scoped
   .hcs-btn rules never reach its Cancel / Submit buttons — they'd render
   unstyled. Restyle them here to match the reference design
   (Mechanic/mechanic-job-detail.html: .btn / .btn-primary / .btn-ghost). */
.hcs-aw-modal .hcs-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 11px 16px; border-radius: 8px;
  font-weight: 600; font-size: 14px; font-family: var(--body);
  border: 0; cursor: pointer; white-space: nowrap; transition: all .15s;
}
.hcs-aw-modal .hcs-btn-primary { background: var(--blue-700); color: #fff; }
.hcs-aw-modal .hcs-btn-primary:hover { background: var(--blue-800); }
.hcs-aw-modal .hcs-btn-ghost {
  background: #fff; color: var(--ink-2); border: 1.5px solid var(--line);
}
.hcs-aw-modal .hcs-btn-ghost:hover { border-color: var(--ink-2); color: var(--ink); }
.hcs-aw-modal .hcs-btn:disabled { opacity: .5; cursor: not-allowed; }

.hcs-aw-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .hcs-aw-field-row { grid-template-columns: 1fr; } }

.hcs-aw-modal .hcs-field { margin-bottom: 14px; }
.hcs-aw-modal .hcs-field:last-child { margin-bottom: 0; }
.hcs-aw-modal .hcs-field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.hcs-aw-modal .hcs-field label span[aria-hidden] { color: var(--red); margin-left: 2px; }

.hcs-aw-modal .hcs-text-input,
.hcs-aw-modal .hcs-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--body);
  background: #fff;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.hcs-aw-modal .hcs-text-input:focus,
.hcs-aw-modal .hcs-textarea:focus {
  outline: 0;
  border-color: var(--blue-700);
  box-shadow: 0 0 0 3px rgba(30, 90, 168, .15);
}
.hcs-aw-modal .hcs-textarea { resize: vertical; min-height: 80px; }

.hcs-aw-msg {
  font-size: 13px;
  border-radius: 8px;
  padding: 0;
  min-height: 0;
  margin-top: 2px;
  transition: all .15s;
}
.hcs-aw-msg.is-error { color: var(--red); padding: 8px 12px; background: var(--red-50); border: 1px solid #FCC; }
.hcs-aw-msg.is-success { color: var(--green); padding: 8px 12px; background: var(--green-50); border: 1px solid #B9E2CB; }

/* ==========================================================================
   Job-detail port additions (2026-05-23):
   - Scope-item meta line (Haynes ID + labour minutes + parts count + price)
   - Parts List card (port of mockup mechanic-job-detail.html "Parts list")
   ========================================================================== */
.hcs-app .hcs-haynes-id{
  display:inline-block;margin-top:4px;
  font-family:'SFMono-Regular','Menlo','Monaco','Consolas',monospace;
  font-size:11px;letter-spacing:.04em;
  background:var(--bg-2);color:var(--ink-3);
  padding:2px 7px;border-radius:6px;
}
.hcs-app .hcs-scope-meta{
  display:flex;flex-wrap:wrap;gap:14px;margin-top:8px;
  font-size:12.5px;color:var(--ink-3);
}
.hcs-app .hcs-scope-meta span{display:inline-flex;align-items:center;gap:4px}
.hcs-app .hcs-scope-meta svg{flex-shrink:0}
.hcs-app .hcs-price-col{
  text-align:right;flex-shrink:0;margin-left:14px;
}
.hcs-app .hcs-price-col strong{display:block;font-size:18px;font-weight:700;color:var(--blue-900);line-height:1.1}
.hcs-app .hcs-price-col small{display:block;font-size:11px;color:var(--ink-3);margin-top:2px}

.hcs-app .hcs-head-actions{display:flex;gap:8px;flex-wrap:wrap}

.hcs-app .hcs-parts-list{display:flex;flex-direction:column}
.hcs-app .hcs-part-row{
  display:flex;align-items:center;gap:12px;
  padding:12px 0;border-bottom:1px solid var(--line);
}
.hcs-app .hcs-part-row:last-child{border-bottom:0}
.hcs-app .hcs-part-pic{
  width:38px;height:38px;border-radius:9px;flex-shrink:0;
  background:var(--bg-2);color:var(--ink-2);
  display:grid;place-items:center;
}
.hcs-app .hcs-part-row .text{flex:1;min-width:0}
.hcs-app .hcs-part-row .text strong{
  display:block;font-size:14px;font-weight:600;color:var(--ink);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.hcs-app .hcs-part-row .text small{
  font-size:11.5px;color:var(--ink-3);display:flex;flex-wrap:wrap;gap:6px;align-items:center;
}
.hcs-app .hcs-pn{
  font-family:'SFMono-Regular','Menlo','Monaco','Consolas',monospace;
  background:var(--bg-2);padding:1px 6px;border-radius:5px;
  color:var(--ink-2);letter-spacing:.03em;
}
.hcs-app .hcs-qty-pill{
  flex-shrink:0;
  font-size:12px;font-weight:700;color:var(--blue-700);
  background:var(--blue-50);padding:3px 10px;border-radius:999px;
}
.hcs-app .hcs-part-price{
  flex-shrink:0;font-size:14px;font-weight:700;color:var(--ink);
  min-width:64px;text-align:right;
}
.hcs-app .hcs-gsf-link{
  flex-shrink:0;width:32px;height:32px;border-radius:8px;
  background:var(--bg-2);color:var(--ink-2);
  display:grid;place-items:center;transition:all .15s;
  margin-left:4px;
}
.hcs-app .hcs-gsf-link:hover{background:var(--blue-700);color:#fff}

.hcs-app .hcs-parts-totals{
  margin-top:14px;padding:14px 16px;
  background:var(--bg-2);border-radius:10px;
}
.hcs-app .hcs-parts-totals .row{
  display:flex;justify-content:space-between;align-items:baseline;
  font-size:14px;color:var(--ink-2);
}
.hcs-app .hcs-parts-totals .row strong{color:var(--blue-900);font-weight:700;font-size:16px}

@media (max-width:560px){
  .hcs-app .hcs-part-row .text strong{white-space:normal}
  .hcs-app .hcs-part-row{flex-wrap:wrap}
  .hcs-app .hcs-part-row .text{flex:1 1 100%;order:2;min-width:0}
  .hcs-app .hcs-part-pic{order:1}
  .hcs-app .hcs-qty-pill{order:3}
  .hcs-app .hcs-part-price{order:4;margin-left:auto}
  .hcs-app .hcs-gsf-link{order:5}
}

/* ==========================================================================
   Added-work in "Work to do" — approval-status badge + muted price column
   for items the customer hasn't approved yet (so it's visible but doesn't
   count toward the customer-paid headline or the payout split).
   ========================================================================== */
.hcs-app .hcs-scope-item--added { background:var(--bg-2); border-left:3px solid var(--amber, #B45309); padding-left:11px; }
.hcs-app .hcs-scope-item--approved { border-left-color:var(--green, #0F8B4F); background:#F1FAF3; }
.hcs-app .hcs-scope-item--declined { border-left-color:var(--red, #C53030); background:#FFF7F7; opacity:.85; }

.hcs-app .hcs-scope-item .hcs-aw-status {
  display:inline-block; margin-top:6px;
  font-size:11px; font-weight:700; letter-spacing:.04em;
  padding:3px 9px; border-radius:5px; text-transform:uppercase;
}
.hcs-app .hcs-aw-status--pending  { background:#FEF3E0; color:#B45309; }
.hcs-app .hcs-aw-status--approved { background:#E6F4EE; color:#0F8B4F; }
.hcs-app .hcs-aw-status--unpaid   { background:#FEF3E0; color:#B45309; }
.hcs-app .hcs-aw-status--declined { background:#FEE;    color:#C53030; }

.hcs-app .hcs-complete-block {
  margin-top:8px; padding:10px 12px;
  background:#FEF3E0; border:1px solid #F6D9A8; border-radius:8px;
  font-size:12.5px; line-height:1.45; color:#92400E; text-align:left;
}

.hcs-app .hcs-mileage-field { display:flex; flex-direction:column; gap:6px; text-align:left; margin-bottom:4px; }
.hcs-app .hcs-mileage-field label { font-size:12.5px; font-weight:700; color:var(--ink); }
.hcs-app .hcs-mileage-field label span[aria-hidden] { color:#C53030; margin-left:2px; }
.hcs-app .hcs-mileage-field .hcs-text-input {
  width:100%; padding:10px 12px;
  border:1.5px solid var(--line); border-radius:8px;
  font-size:14px; font-family:var(--body); background:#fff; color:var(--ink);
}
.hcs-app .hcs-mileage-field .hcs-text-input:focus {
  outline:0; border-color:var(--blue-700); box-shadow:0 0 0 3px rgba(30,90,168,.15);
}
.hcs-app .hcs-mileage-field .hcs-text-input.is-invalid {
  border-color:#C53030; box-shadow:0 0 0 3px rgba(197,48,48,.12);
}
.hcs-app .hcs-mileage-field small { font-size:11.5px; color:var(--ink-3); line-height:1.4; }

.hcs-app .hcs-aw-reason-mini {
  margin-top:8px; padding:8px 10px;
  background:#FFFCEF; border-left:3px solid #B45309;
  font-size:12.5px; font-style:italic; color:var(--ink-2, #475569);
  border-radius:0 6px 6px 0; line-height:1.45;
}

/* Edit button on a pending added-work row. Small, ghost-styled, sits
   below the reason snippet on its own line so the row stays scannable. */
.hcs-app .hcs-aw-row-actions { margin-top:10px; }
.hcs-app .hcs-btn-xs {
  display:inline-flex; align-items:center; gap:6px;
  font-size:12px; font-weight:600;
  padding:5px 10px; border-radius:6px;
  line-height:1.2;
}
.hcs-app .hcs-aw-edit-btn svg { display:block; }

.hcs-app .hcs-price-col--muted strong {
  color:var(--ink-3, #748094); text-decoration:line-through;
  text-decoration-thickness:1.5px; text-decoration-color:rgba(116,128,148,.5);
}
.hcs-app .hcs-price-col--muted small { color:var(--ink-3, #748094); font-weight:600; }

/* ------------------------------------------------------------------ */
/* Phase D — Payouts tab                                               */
/* ------------------------------------------------------------------ */
.hcs-app .hcs-payout-head{display:flex;justify-content:flex-end;margin-bottom:16px;}
.hcs-app .hcs-payout-range{display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.hcs-app .hcs-payout-range label{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:600;color:var(--ink-2,#475569);}
.hcs-app .hcs-payout-range input[type=date]{padding:8px 10px;border:1.5px solid var(--line,#E3E8EF);border-radius:7px;font:inherit;color:var(--ink,#0A2540);background:#fff;}
.hcs-app .hcs-payout-range input[type=date]:focus{outline:0;border-color:var(--blue-700,#1E5AA8);box-shadow:0 0 0 3px rgba(30,90,168,.15);}

.hcs-app .hcs-payout-totals{background:linear-gradient(135deg,#fff 0%,var(--blue-50,#EEF4FB) 100%);border:1px solid var(--blue-100,#DCE8F5);border-radius:11px;padding:18px 22px;margin-bottom:18px;}
.hcs-app .hcs-payout-totals .row{display:flex;justify-content:space-between;padding:6px 0;font-size:14px;color:var(--ink-2,#475569);}
.hcs-app .hcs-payout-totals .row strong{font-variant-numeric:tabular-nums;color:var(--ink,#0A2540);}
.hcs-app .hcs-payout-totals .row.grand{margin-top:10px;padding-top:12px;border-top:1.5px solid var(--blue-100,#DCE8F5);font-size:17px;font-weight:700;color:var(--blue-900,#0A2540);}
.hcs-app .hcs-payout-totals .row.grand strong{color:var(--blue-900,#0A2540);}

.hcs-app .hcs-payout-table{width:100%;border-collapse:collapse;border:1px solid var(--line,#E3E8EF);border-radius:11px;overflow:hidden;background:#fff;}
.hcs-app .hcs-payout-table thead th{text-align:left;font-size:11.5px;text-transform:uppercase;letter-spacing:.06em;color:var(--ink-3,#748094);padding:12px 14px;border-bottom:1.5px solid var(--line,#E3E8EF);font-weight:700;background:var(--bg-2,#F7F9FC);}
.hcs-app .hcs-payout-table thead th.r{text-align:right;}
.hcs-app .hcs-payout-table tbody td{padding:14px;border-bottom:1px solid var(--line,#E3E8EF);font-size:13.5px;color:var(--ink,#0A2540);vertical-align:top;}
.hcs-app .hcs-payout-table tbody td.r{text-align:right;font-variant-numeric:tabular-nums;}
.hcs-app .hcs-payout-table tbody tr:last-child td{border-bottom:0;}
.hcs-app .hcs-payout-table small{display:block;color:var(--ink-3,#748094);font-size:11.5px;margin-top:3px;}
.hcs-app .hcs-status-pill.status-none{background:var(--bg-2,#F7F9FC);color:var(--ink-3,#748094);}
.hcs-app .hcs-status-pill.status-pending{background:var(--amber-50,#FEF3E0);color:var(--amber,#B45309);}
.hcs-app .hcs-status-pill.status-complete{background:var(--green-50,#E6F4EE);color:var(--green,#0F8B4F);}
.hcs-app .hcs-status-pill.status-failed{background:#FEE;color:var(--red,#C53030);}

/* Extras card on mechanic job detail (added 2026-05-27): multi-day slots
   + Recovery / Jump-start / Sunday surcharge surfacing). */
/* ===== JOB EXTRAS — reskin ported 1:1 from the mechanic-job-detail mockup
   (HonCar Templetes/Mechanic/mechanic-job-detail.html, 2026-05-29). One card,
   two columns split by a divider: a slot PICKER (selectable tiles, blue
   accent) + an add-ons LEDGER (emoji-chip rows, amber surcharge variant).
   Class names are the hcs- prefixed equivalents of the mockup's. The selected
   slot is driven by the .selected class (set in PHP on the checked option) with
   a :has(input:checked) fallback so it stays correct without JS. ===== */
.hcs-app .hcs-extras-card{padding:0;overflow:hidden;background:#fff;border:1px solid var(--line,#E3E8EF);border-radius:14px;box-shadow:var(--shadow-sm,0 1px 2px rgba(10,37,64,.06))}
.hcs-app .hcs-extras-grid{display:grid;grid-template-columns:1fr 1fr}
.hcs-app .hcs-extras-grid:has(.hcs-extras-col:only-child){grid-template-columns:1fr}
@media (max-width:780px){ .hcs-app .hcs-extras-grid{grid-template-columns:1fr} }

.hcs-app .hcs-extras-col{padding:22px}
.hcs-app .hcs-extras-col + .hcs-extras-col{border-left:1px solid var(--line,#E3E8EF)}
@media (max-width:780px){
  .hcs-app .hcs-extras-col + .hcs-extras-col{border-left:0;border-top:1px solid var(--line,#E3E8EF)}
}

.hcs-app .hcs-extras-col h3{
  font-size:11.5px;font-weight:700;color:var(--ink-3,#748094);
  text-transform:uppercase;letter-spacing:.08em;margin-bottom:14px;
  display:flex;align-items:center;gap:7px;
}
.hcs-app .hcs-h-ic{
  width:24px;height:24px;border-radius:6px;flex-shrink:0;display:grid;place-items:center;
  background:var(--blue-50,#EEF4FB);color:var(--blue-700,#1E5AA8);
}

/* SLOT PICKER */
.hcs-app .hcs-slot-pick{display:flex;flex-direction:column;gap:8px;margin-bottom:14px}
.hcs-app .hcs-slot-opt{
  position:relative;display:flex;align-items:center;gap:12px;cursor:pointer;
  padding:12px 14px;border:1.5px solid var(--line,#E3E8EF);border-radius:10px;background:#fff;
  transition:all .15s;
}
.hcs-app .hcs-slot-opt:hover{border-color:var(--blue-500,#3B7BE0);background:var(--bg-2,#F7F9FC)}
.hcs-app .hcs-slot-opt input{position:absolute;opacity:0;width:0;height:0}
.hcs-app .hcs-slot-dot{
  width:18px;height:18px;border-radius:50%;flex-shrink:0;display:grid;place-items:center;
  border:2px solid var(--line,#E3E8EF);background:#fff;transition:all .15s;
}
.hcs-app .hcs-slot-dot::after{
  content:"";width:8px;height:8px;border-radius:50%;background:var(--blue-700,#1E5AA8);
  transform:scale(0);transition:transform .15s;
}
.hcs-app .hcs-slot-text{flex:1;min-width:0}
.hcs-app .hcs-slot-date{display:block;font-size:13.5px;font-weight:700;color:var(--blue-900,#0A2540);line-height:1.25}
.hcs-app .hcs-slot-time{display:block;font-size:12.5px;color:var(--ink-2,#475569);margin-top:1px;line-height:1.4}
.hcs-app .hcs-slot-tag{
  font-size:10.5px;font-weight:700;padding:3px 8px;border-radius:5px;flex-shrink:0;
  text-transform:uppercase;letter-spacing:.04em;
  background:var(--blue-50,#EEF4FB);color:var(--blue-700,#1E5AA8);
}
.hcs-app .hcs-slot-opt.selected,
.hcs-app .hcs-slot-opt:has(input:checked){border-color:var(--blue-700,#1E5AA8);background:var(--blue-50,#EEF4FB);box-shadow:0 0 0 3px rgba(30,90,168,.12)}
.hcs-app .hcs-slot-opt.selected .hcs-slot-dot,
.hcs-app .hcs-slot-opt:has(input:checked) .hcs-slot-dot{border-color:var(--blue-700,#1E5AA8)}
.hcs-app .hcs-slot-opt.selected .hcs-slot-dot::after,
.hcs-app .hcs-slot-opt:has(input:checked) .hcs-slot-dot::after{transform:scale(1)}
.hcs-app .hcs-slot-opt.selected .hcs-slot-tag,
.hcs-app .hcs-slot-opt:has(input:checked) .hcs-slot-tag{background:var(--blue-700,#1E5AA8);color:#fff}
.hcs-app .hcs-slot-opt:has(input:focus-visible){box-shadow:0 0 0 3px rgba(30,90,168,.28)}
.hcs-app .hcs-slot-opt:has(input:disabled){opacity:.55;cursor:not-allowed}

.hcs-app .hcs-confirm-slot-btn{
  width:100%;padding:11px;border-radius:9px;border:0;font-family:inherit;
  background:var(--blue-700,#1E5AA8);color:#fff;font-weight:700;font-size:13.5px;cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;gap:7px;transition:all .15s;
}
.hcs-app .hcs-confirm-slot-btn .label{display:inline-flex;align-items:center;gap:7px}
.hcs-app .hcs-confirm-slot-btn:hover{background:var(--blue-800,#0F3A6B);transform:translateY(-1px)}
.hcs-app .hcs-confirm-slot-btn:disabled{opacity:.5;cursor:not-allowed;transform:none}
.hcs-app .hcs-confirm-slot-btn .spinner{display:none;width:13px;height:13px;border:2px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;animation:spin .8s linear infinite}
.hcs-app .hcs-confirm-slot-btn.loading .spinner{display:inline-block}
.hcs-app .hcs-confirm-slot-btn.loading .label{display:none}

.hcs-app .hcs-slot-foot{
  margin-top:10px;font-size:11.5px;color:var(--ink-3,#748094);line-height:1.5;
  display:flex;gap:6px;align-items:flex-start;
}
.hcs-app .hcs-slot-foot svg{flex-shrink:0;color:var(--ink-3,#748094);margin-top:1px}

/* Orange "Extra Priority Fee" badge — flags bookings where the customer
   paid the priority-slot add-on. Shown next to the slot/date in the dashboard
   offer rows + the job-detail slot tile/picker. Amber to match the priority
   add-on accent (the ⚡ add-on row). */
.hcs-app .hcs-priority-badge{
  display:inline-flex;align-items:center;gap:4px;vertical-align:middle;
  font-size:9.5px;font-weight:800;letter-spacing:.03em;text-transform:uppercase;
  padding:3px 7px;border-radius:5px;white-space:nowrap;
  background:var(--amber-50,#FEF3E2);color:var(--amber,#B45309);border:1px solid #FCD9A8;
}
.hcs-app .hcs-priority-badge svg{flex-shrink:0}

/* Premium-slot pill on the slot-pickers (job-detail + accept popup) — matches
   the booking page's "Choose a date & time" priority badge: a solid-amber
   "+X%" pill (booking.css .hcs-bk-badge-priority). Inline (the slot rows are
   flex rows, not the absolutely-positioned calendar cells). */
.hcs-app .hcs-slot-premium-badge{
  flex-shrink:0;white-space:nowrap;
  background:var(--amber,#B45309);color:#fff;
  font-size:9px;font-weight:700;padding:2px 5px;border-radius:10px;
  text-transform:uppercase;letter-spacing:.04em;border:2px solid #fff;
}

/* ============================================================
   ACCEPT-FLOW: fulfilment (service-location) picker + step heads
   Used by the dashboard accept modal (3-up icon grid) and the
   job-detail offer panel (stacked rows). Ported from the mechanic
   mockups (HonCar Templetes/Mechanic/*.html).
   ============================================================ */
.hcs-app .hcs-acc-section{margin-bottom:16px;padding:0 15px}
.hcs-app .hcs-acc-section:last-child{margin-bottom:0}
.hcs-app .hcs-acc-head{
  display:flex;align-items:center;gap:6px;margin-bottom:10px;
  font-size:11.5px;font-weight:700;color:var(--ink-3,#748094);
  text-transform:uppercase;letter-spacing:.08em;
}
.hcs-app .hcs-acc-head .num{
  width:18px;height:18px;border-radius:50%;background:var(--blue-700,#1E5AA8);color:#fff;
  display:inline-grid;place-items:center;font-size:10.5px;font-weight:800;
}
.hcs-app .hcs-acc-section.has-pick .hcs-acc-head .num{background:var(--green,#0F8B4F)}
.hcs-app .hcs-acc-head .picked{display:none;margin-left:auto;align-items:center;gap:3px;font-size:10.5px;color:var(--green,#0F8B4F);font-weight:700}
.hcs-app .hcs-acc-head .picked svg{flex-shrink:0}
.hcs-app .hcs-acc-section.has-pick .hcs-acc-head .picked{display:inline-flex}

/* Validation note (Accept disabled until both picked) */
.hcs-app .hcs-acc-validate{font-size:11.5px;color:var(--ink-3,#748094);text-align:center;margin-top:6px}
.hcs-app .hcs-acc-validate.ok{color:var(--green,#0F8B4F);font-weight:600}
.hcs-app .hcs-acc-validate svg{vertical-align:-2px;margin-right:3px}

/* Shared fulfilment-option visuals */
.hcs-app .hcs-fulfil-ic{
  width:36px;height:36px;border-radius:9px;flex-shrink:0;display:grid;place-items:center;
  background:var(--blue-50,#EEF4FB);color:var(--blue-700,#1E5AA8);transition:all .15s;
}
.hcs-app .hcs-fulfil-opt input,
.hcs-app .hcs-fulfil-row input{position:absolute;opacity:0;width:0;height:0}
.hcs-app .hcs-fulfil-preferred{
  font-size:9.5px;font-weight:800;background:var(--green,#0F8B4F);color:#fff;
  padding:2px 7px;border-radius:4px;letter-spacing:.04em;text-transform:uppercase;flex-shrink:0;white-space:nowrap;
}
.hcs-app .hcs-fulfil-na{font-size:10px;font-weight:700;color:var(--ink-3,#748094);text-transform:uppercase;letter-spacing:.04em;flex-shrink:0}

/* DASHBOARD MODAL — 3-up icon cards */
.hcs-app .hcs-fulfil-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px}
@media (max-width:520px){.hcs-app .hcs-fulfil-grid{grid-template-columns:1fr}}
.hcs-app .hcs-fulfil-opt{
  position:relative;display:flex;flex-direction:column;align-items:center;gap:7px;
  padding:14px 10px;text-align:center;cursor:pointer;transition:all .15s;
  border:1.5px solid var(--line,#E3E8EF);border-radius:10px;background:#fff;
}
.hcs-app .hcs-fulfil-opt:hover:not(.unavailable){border-color:var(--blue-500,#3B7BE0);background:var(--bg-2,#F7F9FC)}
.hcs-app .hcs-fulfil-opt.selected,
.hcs-app .hcs-fulfil-opt:has(input:checked){border-color:var(--blue-700,#1E5AA8);background:var(--blue-50,#EEF4FB);box-shadow:0 0 0 3px rgba(30,90,168,.12)}
.hcs-app .hcs-fulfil-opt.selected .hcs-fulfil-ic,
.hcs-app .hcs-fulfil-opt:has(input:checked) .hcs-fulfil-ic{background:var(--blue-700,#1E5AA8);color:#fff}
.hcs-app .hcs-fulfil-opt.unavailable{opacity:.4;cursor:not-allowed;background:var(--bg-2,#F7F9FC)}
.hcs-app .hcs-fulfil-opt strong{font-size:12.5px;font-weight:700;color:var(--blue-900,#0A2540);line-height:1.2}
.hcs-app .hcs-fulfil-opt small{font-size:11px;color:var(--ink-3,#748094);line-height:1.35;display:block;margin-top:1px}
.hcs-app .hcs-fulfil-opt .hcs-fulfil-preferred{position:absolute;top:-7px;right:-7px;box-shadow:0 2px 6px rgba(15,139,79,.25)}

/* JOB-DETAIL — stacked horizontal rows */
.hcs-app .hcs-fulfil-stack{display:flex;flex-direction:column;gap:8px;margin-bottom:14px}
.hcs-app .hcs-fulfil-row{
  position:relative;display:flex;align-items:center;gap:11px;
  padding:11px 13px;cursor:pointer;transition:all .15s;
  border:1.5px solid var(--line,#E3E8EF);border-radius:10px;background:#fff;
}
.hcs-app .hcs-fulfil-row:hover:not(.unavailable){border-color:var(--blue-500,#3B7BE0);background:var(--bg-2,#F7F9FC)}
.hcs-app .hcs-fulfil-row.selected,
.hcs-app .hcs-fulfil-row:has(input:checked){border-color:var(--blue-700,#1E5AA8);background:var(--blue-50,#EEF4FB);box-shadow:0 0 0 3px rgba(30,90,168,.12)}
.hcs-app .hcs-fulfil-row.selected .hcs-fulfil-ic,
.hcs-app .hcs-fulfil-row:has(input:checked) .hcs-fulfil-ic{background:var(--blue-700,#1E5AA8);color:#fff}
.hcs-app .hcs-fulfil-row.unavailable{opacity:.45;cursor:not-allowed;background:var(--bg-2,#F7F9FC)}
.hcs-app .hcs-fulfil-row .hcs-fulfil-ic{width:34px;height:34px;border-radius:8px}
.hcs-app .hcs-fulfil-row .hcs-fulfil-text{flex:1;min-width:0}
.hcs-app .hcs-fulfil-row .hcs-fulfil-text strong{display:block;font-size:13px;font-weight:700;color:var(--blue-900,#0A2540);line-height:1.25}
.hcs-app .hcs-fulfil-row .hcs-fulfil-text small{display:block;font-size:11.5px;color:var(--ink-3,#748094);margin-top:1px;line-height:1.4}
.hcs-app .hcs-fulfil-row.unavailable .hcs-fulfil-preferred{display:none}

/* ADD-ONS */
.hcs-app .hcs-addon-list{display:flex;flex-direction:column;gap:6px;margin-bottom:14px;list-style:none;padding:0}
.hcs-app .hcs-addon-row{
  display:flex;align-items:center;gap:10px;
  padding:10px 13px;background:var(--bg-2,#F7F9FC);border-radius:9px;
  font-size:13.5px;border:1px solid transparent;transition:background .15s;
}
.hcs-app .hcs-addon-row:hover{background:var(--bg-3,#F0F4F9)}
.hcs-app .hcs-addon-row.is-surcharge{background:#FEF3E0;border-color:#FCD9A8}
.hcs-app .hcs-addon-row .emo{
  width:28px;height:28px;border-radius:7px;flex-shrink:0;
  background:#fff;display:grid;place-items:center;font-size:14px;
}
.hcs-app .hcs-addon-row.is-surcharge .emo{background:#fff;border:1px solid #FCD9A8}
.hcs-app .hcs-addon-row .lbl{flex:1;min-width:0;color:var(--ink,#0A2540);font-weight:600}
.hcs-app .hcs-addon-row.is-surcharge .lbl{color:#B45309}
.hcs-app .hcs-addon-row .amt{
  font-weight:700;font-size:14px;color:var(--blue-900,#0A2540);
  font-variant-numeric:tabular-nums;letter-spacing:.02em;flex-shrink:0;
}
.hcs-app .hcs-addon-row.is-surcharge .amt{color:#B45309}

.hcs-app .hcs-addon-foot{
  font-size:11.5px;color:var(--ink-3,#748094);line-height:1.5;
  display:flex;gap:6px;align-items:flex-start;
  padding-top:10px;border-top:1px dashed var(--line,#E3E8EF);
}
.hcs-app .hcs-addon-foot svg{flex-shrink:0;color:var(--ink-3,#748094);margin-top:1px}

/* ==========================================================================
   MOBILE RESPONSIVE — ported from the updated HonCar mechanic-dashboard
   mockup (2026-05-29). The desktop rules above already match the mockup;
   this section adds the mockup's polished phone breakpoints (≤640px main,
   ≤420px very-small) that the original port was missing. Selectors mirror
   the base-rule specificity (and sit at end-of-file for source order) so
   the overrides actually win. Modal rules stay unscoped to match the
   body-level .hcs-aw-modal-* rules above. Focus: mobile usability.
   ========================================================================== */

/* --- Main phone breakpoint (≤640px) --- */
@media (max-width: 640px) {
  .hcs-app .container { padding-inline: 14px; }

  /* Page-header chrome: availability toggle + user menu */
  .hcs-app .hcs-avail-toggle { padding: 5px 5px 5px 10px; font-size: 12px; gap: 6px; }
  .hcs-app .hcs-avail-toggle .switch { width: 30px; height: 18px; }
  .hcs-app .hcs-avail-toggle .switch::after { width: 14px; height: 14px; left: 14px; }
  .hcs-app .hcs-user-menu { padding: 3px 4px 3px 3px; gap: 6px; }
  .hcs-app .hcs-user-menu svg { display: none; }
  .hcs-app .hcs-avatar { width: 30px; height: 30px; font-size: 12px; }

  /* Page header */
  .hcs-app .hcs-mech-page-hd { padding: 20px 0 18px; }
  .hcs-app .hcs-mech-page-hd h1 { font-size: 21px; line-height: 1.25; }
  .hcs-app .hcs-mech-page-hd > .container > p,
  .hcs-app .hcs-mech-page-hd p { font-size: 13.5px; line-height: 1.5; }
  .hcs-app .hcs-compliance { padding: 11px 12px; font-size: 12.5px; gap: 9px; }
  .hcs-app .hcs-compliance strong { font-size: 12.5px; }

  /* Stats — shrink icons + type, tighter gaps (stays 2-col from 780px rule) */
  .hcs-app .hcs-mech-stats { gap: 8px; margin-top: 16px; }
  .hcs-app .hcs-mech-stats .hcs-stat-tile { padding: 11px 12px; gap: 9px; border-radius: 10px; }
  .hcs-app .hcs-mech-stats .hcs-stat-tile .ic { width: 32px; height: 32px; }
  .hcs-app .hcs-mech-stats .hcs-stat-tile .ic svg { width: 15px; height: 15px; }
  .hcs-app .hcs-mech-stats .hcs-stat-tile small { font-size: 10.5px; letter-spacing: .04em; }
  .hcs-app .hcs-mech-stats .hcs-stat-tile strong { font-size: 17px; }

  /* Main + layout */
  .hcs-app .hcs-mech-main { padding: 18px 0 60px; }
  .hcs-app .hcs-mech-layout { gap: 14px; }

  /* Card */
  .hcs-app .hcs-card { padding: 16px; border-radius: 12px; }
  .hcs-app .hcs-card + .hcs-card { margin-top: 14px; }
  .hcs-app .hcs-card-head { margin-bottom: 14px; gap: 10px; }
  .hcs-app .hcs-card-head h2 { font-size: 15.5px; }
  .hcs-app .hcs-card-head h2 .count { font-size: 11px; padding: 1px 7px; }

  /* Tabs — horizontal scroll if they overflow, smaller labels */
  .hcs-app .hcs-mech-tabs { padding: 3px; gap: 3px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; -ms-overflow-style: none; width: 100%; }
  .hcs-app .hcs-mech-tabs::-webkit-scrollbar { display: none; }
  .hcs-app .hcs-mech-tab { padding: 7px 11px; font-size: 12.5px; flex: 0 1 auto; min-width: fit-content; }
  .hcs-app .hcs-mech-pill { font-size: 10px; padding: 0 6px; }

  /* Offer cards */
  .hcs-app .hcs-offer-card { border-radius: 10px; }
  .hcs-app .hcs-offer-head { padding: 12px 14px 0; gap: 8px; }
  .hcs-app .hcs-offer-head .ref { font-size: 11.5px; }
  .hcs-app .hcs-offer-head .price-tag { font-size: 18px; margin-left: auto; }
  .hcs-app .hcs-offer-head .price-tag small { font-size: 10px; }
  .hcs-app .hcs-urgency-pill { font-size: 10.5px; padding: 2px 8px; }
  .hcs-app .hcs-offer-body { padding: 12px 14px; gap: 14px; }
  .hcs-app .hcs-offer-vehicle .ic { width: 32px; height: 32px; }
  .hcs-app .hcs-offer-vehicle .ic svg { width: 15px; height: 15px; }
  .hcs-app .hcs-offer-vehicle strong { font-size: 13.5px; }
  .hcs-app .hcs-offer-vehicle small { font-size: 11.5px; }
  .hcs-app .hcs-offer-jobs { gap: 5px; }
  .hcs-app .hcs-offer-job { font-size: 12.5px; }
  .hcs-app .hcs-offer-job .dot-sm { margin-top: 7px; }
  .hcs-app .hcs-offer-job .min { font-size: 11px; margin-left: 6px; }
  .hcs-app .hcs-offer-meta { padding: 10px; font-size: 12px; gap: 6px; }
  .hcs-app .hcs-offer-actions { padding: 11px 14px; gap: 7px; }
  .hcs-app .hcs-offer-actions .countdown { font-size: 11px; width: 100%; order: -1; margin-bottom: 2px; }

  /* Job cards */
  .hcs-app .hcs-job-head { padding: 12px 14px; gap: 8px; }
  .hcs-app .hcs-job-head .ref { font-size: 11.5px; }
  .hcs-app .hcs-job-head .slot { font-size: 12px; margin-left: auto; width: auto; }
  .hcs-app .hcs-status-pill { font-size: 11px; padding: 3px 9px; }
  .hcs-app .hcs-job-body { padding: 14px; gap: 14px; }
  .hcs-app .hcs-customer-block { padding: 10px; gap: 10px; border-radius: 9px; margin-bottom: 12px; }
  .hcs-app .hcs-customer-block .av { width: 36px; height: 36px; font-size: 13px; }
  .hcs-app .hcs-customer-block strong { font-size: 13.5px; }
  .hcs-app .hcs-customer-block small { font-size: 11.5px; }
  .hcs-app .hcs-customer-block .ic-btn { width: 30px; height: 30px; }
  .hcs-app .hcs-job-info .info-block { padding: 9px 11px; }
  .hcs-app .hcs-job-info .info-block .lbl { font-size: 10px; }
  .hcs-app .hcs-job-info .info-block strong { font-size: 12.5px; }
  .hcs-app .hcs-payout-tile { padding: 12px; }
  .hcs-app .hcs-payout-tile strong { font-size: 21px; }
  .hcs-app .hcs-job-actions { padding: 12px 14px; gap: 7px; }

  /* Progress action buttons */
  .hcs-app .hcs-prog-actions { padding: 10px 14px; gap: 7px; }
  .hcs-app .hcs-prog-btn { padding: 10px; gap: 9px; border-radius: 9px; }
  .hcs-app .hcs-prog-btn .ic { width: 30px; height: 30px; }
  .hcs-app .hcs-prog-btn .ic svg { width: 15px; height: 15px; }
  .hcs-app .hcs-prog-btn strong { font-size: 12.5px; }
  .hcs-app .hcs-prog-btn small { font-size: 10.5px; }

  /* Buttons */
  .hcs-app .hcs-btn { padding: 9px 13px; font-size: 12.5px; gap: 6px; }
  .hcs-app .hcs-btn-sm { padding: 7px 10px; font-size: 11.5px; }

  /* Empty state */
  .hcs-app .hcs-empty-state { padding: 36px 16px; }
  .hcs-app .hcs-empty-state .ic,
  .hcs-app .hcs-empty-state .hcs-empty-ic { width: 60px; height: 60px; margin-bottom: 12px; }
  .hcs-app .hcs-empty-state strong { font-size: 15px; }
  .hcs-app .hcs-empty-state p { font-size: 13px; margin-bottom: 14px; }

  /* Sidebar */
  .hcs-app .hcs-side-card { border-radius: 12px; }
  .hcs-app .hcs-side-card + .hcs-side-card { margin-top: 14px; }
  .hcs-app .hcs-side-head { padding: 12px 14px; }
  .hcs-app .hcs-side-head h3 { font-size: 13.5px; }
  .hcs-app .hcs-side-row { padding: 10px 14px; font-size: 12.5px; }
  .hcs-app .hcs-side-row.payout strong { font-size: 16px; }
  .hcs-app .hcs-rating-block { padding: 14px; }
  .hcs-app .hcs-rating-block .score { font-size: 28px; }
  .hcs-app .hcs-action-link { padding: 10px 14px; font-size: 13px; gap: 10px; }
  .hcs-app .hcs-action-link .ic-sm { width: 26px; height: 26px; }

  /* Photo grid — 3 columns */
  .hcs-app .hcs-photos-grid { grid-template-columns: repeat(3, 1fr); }

  /* Payouts tab — let the table scroll horizontally instead of squashing */
  .hcs-app .hcs-payout-totals { padding: 14px 16px; }
  .hcs-app .hcs-payout-range { gap: 8px; }
  .hcs-app .hcs-payout-table { display: block; overflow-x: auto; white-space: nowrap; }

  /* Modal → bottom sheet (unscoped, matches body-level .hcs-aw-modal-* rules) */
  .hcs-aw-modal-overlay { padding: 0; align-items: flex-end; }
  .hcs-aw-modal { max-width: 100%; width: 100%; border-radius: 16px 16px 0 0; max-height: 92vh; animation: hcsAwSlideUp .3s ease; }
  .hcs-aw-modal-head { padding: 16px 18px; }
  .hcs-aw-modal-head h3 { font-size: 15.5px; }
  .hcs-aw-modal-body { padding: 16px 18px; }
  .hcs-aw-modal-foot { padding: 12px 18px; flex-wrap: wrap; }
  .hcs-aw-modal-foot .hcs-btn { flex: 1; min-width: 0; }
}
@keyframes hcsAwSlideUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }

/* --- Very small phones (≤420px) --- */
@media (max-width: 420px) {
  .hcs-app .container { padding-inline: 12px; }

  .hcs-app .hcs-avail-toggle { padding: 4px; }
  .hcs-app .hcs-avail-toggle .label { display: none; }
  .hcs-app .hcs-user-menu .name { display: none; }

  /* Stats stay 2-col, tighten further */
  .hcs-app .hcs-mech-stats { grid-template-columns: repeat(2, 1fr); gap: 7px; }
  .hcs-app .hcs-mech-stats .hcs-stat-tile { padding: 10px; gap: 8px; }
  .hcs-app .hcs-mech-stats .hcs-stat-tile strong { font-size: 16px; }

  .hcs-app .hcs-mech-page-hd h1 { font-size: 19px; }

  /* Side-row — allow value to wrap below label when cramped */
  .hcs-app .hcs-side-row { flex-wrap: wrap; gap: 4px; }
  .hcs-app .hcs-side-row strong { font-size: 13px; }

  /* Let job/offer headers breathe; slot drops to its own full-width line */
  .hcs-app .hcs-job-head,
  .hcs-app .hcs-offer-head { gap: 6px; }
  .hcs-app .hcs-job-head .slot { width: 100%; text-align: left; margin-left: 0; order: 99; }
  .hcs-app .hcs-offer-head .price-tag { font-size: 17px; }

  /* Photo grid — 2 columns */
  .hcs-app .hcs-photos-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .hcs-app *, .hcs-app *::before, .hcs-app *::after { animation: none !important; transition: none !important; }
}

/* ===== ACCEPT JOB MODAL notes (modal frame styles live in customer-dashboard.css) ===== */
.hcs-app .hcs-accept-note{
  display:flex;gap:10px;align-items:flex-start;
  padding:14px;border-radius:9px;font-size:13px;line-height:1.5;
}
.hcs-app .hcs-accept-note + .hcs-accept-note{margin-top:12px}
.hcs-app .hcs-accept-note svg{flex-shrink:0;margin-top:1px}
.hcs-app .hcs-accept-note strong{font-weight:700}
.hcs-app .hcs-accept-note--earn{
  background:var(--blue-50,#EEF4FB);border:1px solid var(--blue-100,#DCE8F5);color:var(--blue-900,#0A2540);
}
.hcs-app .hcs-accept-note--earn svg{color:var(--blue-700,#1E5AA8)}
.hcs-app .hcs-accept-note--warn{
  background:#FEF3E0;border:1px solid #FCD9A8;color:#B45309;
}
.hcs-app .hcs-accept-note--warn svg{color:#B45309}

/* Neutralise Kadence's global button:hover/focus/active background bleed.
   Kadence core ships (cannot be edited):
     button:hover,button:focus,button:active,.button:hover,…,
     input[type="submit"]:hover,… { background: var(--global-palette-btn-bg-hover); }
   That palette fill paints onto our dashboard buttons on hover/focus/active —
   most visibly the bare/icon and outline/ghost buttons that declare no hover
   background of their own. We can't comment the theme rule out, so we blank the
   CSS variable it reads, scoped to the mechanic dashboard + job-detail pages
   (body:has(.hcs-mech-dash)). Our own buttons set their hover background from
   --blue-800 / explicit colours, a different variable, so they're unaffected. */
body:has(.hcs-mech-dash){ --global-palette-btn-bg-hover: transparent; }

/* ===== Order 4 — Mechanic Payments area ===== */
.hcs-app .hcs-pay-area { display: flex; flex-direction: column; gap: 16px; }
.hcs-app .hcs-pay-subnav {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 4px; border-radius: 10px; background: var(--blue-50,#EEF4FB);
  border: 1px solid var(--line);
}
.hcs-app .hcs-pay-subnav-btn {
  border: 0; background: transparent; padding: 8px 14px; border-radius: 8px;
  font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer;
}
.hcs-app .hcs-pay-subnav-btn.is-active {
  background: #fff; color: var(--blue-900); box-shadow: 0 1px 3px rgba(10,37,64,.08);
}
.hcs-app .hcs-pay-stripe-banner {
  padding: 12px 14px; border-radius: 9px; font-size: 13px; line-height: 1.5;
  background: var(--blue-50); border: 1px solid var(--blue-100); color: var(--blue-900);
}
.hcs-app .hcs-pay-open-stripe {
  display: inline-block; margin-left: 6px; padding: 6px 12px; border-radius: 8px;
  border: 0; background: #635BFF; color: #fff; font-weight: 700; font-size: 12.5px;
  cursor: pointer; font-family: inherit;
}
.hcs-app .hcs-pay-open-stripe:hover { background: #5046E5; }
.hcs-app .hcs-pay-open-stripe:disabled { opacity: .7; cursor: wait; }
.hcs-app .hcs-pay-filters {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.hcs-app .hcs-pay-filter-input {
  min-width: 120px; padding: 8px 10px; border: 1px solid var(--line);
  border-radius: 8px; font-size: 13px; background: #fff;
}
.hcs-app .hcs-pay-table-wrap { overflow-x: auto; }
.hcs-app .hcs-pay-table th.r, .hcs-app .hcs-pay-table td.r { text-align: right; }
.hcs-app .hcs-pay-msg { font-size: 13px; color: var(--ink-2); padding: 8px 0; }
.hcs-app .hcs-pay-msg.is-error { color: #B45309; }
.hcs-app .hcs-pay-warn {
  padding: 10px 12px; border-radius: 8px; font-size: 13px;
  background: #FEF3E0; border: 1px solid #FCD9A8; color: #B45309;
}
.hcs-app .hcs-pay-detail-card {
  margin-top: 16px; padding: 16px 18px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff;
}
.hcs-app .hcs-pay-detail-card h3 { margin: 0 0 10px; font-size: 16px; }
.hcs-app .hcs-pay-detail-card h4 { margin: 14px 0 8px; font-size: 14px; }
.hcs-app .hcs-pay-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hcs-app .hcs-pay-formula { font-size: 12px; color: var(--ink-3); }
.hcs-app .hcs-pay-pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.hcs-app .hcs-pay-pager .is-active { background: var(--blue-50); color: var(--blue-900); }
.hcs-app .hcs-list-pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; align-items: center; }
.hcs-app .hcs-list-pager .is-active { background: var(--blue-50); color: var(--blue-900); }
.hcs-app .hcs-list-pager-meta { margin: 10px 0 0; font-size: 12.5px; color: var(--ink-3); }
.hcs-app .hcs-list-pager-gap { padding: 8px 4px; color: var(--ink-3); font-weight: 700; }

@media (max-width: 768px) {
  .hcs-app .hcs-pay-subnav-btn { flex: 1 1 calc(50% - 4px); text-align: center; font-size: 12px; padding: 8px 6px; }
  .hcs-app .hcs-pay-filter-input { flex: 1 1 calc(50% - 4px); min-width: 0; }
  .hcs-app .hcs-pay-table { display: block; overflow-x: auto; white-space: nowrap; }
}
