/* Unified layout for site, platform, task, and wallet workflows. */
body[class*="holxn-route-site-"], body[class*="holxn-route-pt-"],
body[class*="holxn-route-job-"], .holxn-route-user-wallet {
  font-family: "Outfit", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body[class*="holxn-route-job-"] {
  --job-status-created: #7b8794;
  --job-status-active: #2d8ff0;
  --job-status-complete: #c47a00;
  --job-status-finished: #20a464;
  --job-status-closed: #d9534f;
  --job-status-unknown: #6c757d;
  --job-info: #1687ac;
  --job-info-soft: #66c5e2;
  --job-success: #0a9f5a;
  --job-warning: #c47a00;
  --job-activity: #42b5e8;
  --job-activity-soft: #e2f4fb;
}

body[class*="holxn-route-site-"] .fill,
body[class*="holxn-route-pt-"] .fill,
body[class*="holxn-route-job-"] .fill,
.holxn-route-user-wallet .fill { padding-top: 5.5rem !important; }

body[class*="holxn-route-site-"] .fill > :is(.d-flex, .card, .row, form, .ops-filter-panel),
body[class*="holxn-route-pt-"] .fill > :is(.d-flex, .card, .row, form, .ops-filter-panel),
body[class*="holxn-route-job-"] .fill > :is(.d-flex, .card, .row, form, .ops-filter-panel),
.ops-workspace, .wallet-workspace {
  width: min(100%, 1240px);
  margin-inline: auto;
}

body[class*="holxn-route-site-"] .fill > .d-flex:has(h1, h2),
body[class*="holxn-route-pt-"] .fill > .d-flex:has(h1, h2),
body[class*="holxn-route-job-"] .fill > .d-flex:has(h1, h2), .ops-pagehead {
  min-height: 3.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem !important;
}

body[class*="holxn-route-site-"] .fill h1,
body[class*="holxn-route-site-"] .fill h2,
body[class*="holxn-route-pt-"] .fill h1,
body[class*="holxn-route-pt-"] .fill h2,
body[class*="holxn-route-job-"] .fill h1,
body[class*="holxn-route-job-"] .fill h2, .ops-pagehead h1 {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 650;
  letter-spacing: -.035em;
}

body[class*="holxn-route-site-"] .fill > .card,
body[class*="holxn-route-pt-"] .fill > .card,
body[class*="holxn-route-job-"] .fill > .card { overflow: hidden; }

body[class*="holxn-route-site-"] .fill > .card.mb-4,
body[class*="holxn-route-pt-"] .fill > .card.mb-4,
body[class*="holxn-route-job-"] .fill > .card.mb-4 {
  background: radial-gradient(circle at 96% 0, rgba(84,165,137,.11), transparent 16rem), rgba(255,255,255,.94);
}

body[class*="holxn-route-site-"] .card-footer,
body[class*="holxn-route-pt-"] .card-footer,
body[class*="holxn-route-job-"] .card-footer {
  min-height: 3.7rem;
  padding: .65rem 1rem;
}

body[class*="holxn-route-site-"] .modal-dialog,
body[class*="holxn-route-pt-"] .modal-dialog,
body[class*="holxn-route-job-"] .modal-dialog { max-width: min(94vw, 680px); }

.ops-filter-panel {
  min-width: 0;
  box-sizing: border-box;
  padding: 1rem;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--holxn-admin-border);
  border-radius: var(--holxn-radius);
  box-shadow: 0 .5rem 1.4rem rgba(41,65,57,.045);
}

.ops-filter-panel > .input-group {
  width: 100%;
  min-width: 0;
}

.ops-filter-panel > .input-group > .form-control {
  min-width: 0;
}

.ops-filter-card {
  background:
    radial-gradient(circle at 96% 0, rgba(84,165,137,.11), transparent 16rem),
    rgba(255,255,255,.94) !important;
}

.ops-filter-card .card-body {
  padding: 1rem;
}

.ops-pagehead .btn {
  flex: 0 0 auto;
}

.job-person-picker { max-width: 34rem; }
.job-page-title-row {
  display: flex;
  align-items: center;
  gap: .55rem;
}
.job-page-title-row h1 { margin: 0; }
.ops-session-state {
  width: 1.45rem;
  height: 1.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--bs-secondary-color);
  background: var(--bs-tertiary-bg);
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}
.ops-session-state.is-online { color: #fff; background: #20a464; box-shadow: 0 0 0 .16rem rgba(32, 164, 100, .13); }
.ops-session-state.is-offline { color: #fff; background: #dc3545; box-shadow: 0 0 0 .16rem rgba(220, 53, 69, .12); }

.job-operations-card {
  margin-bottom: 1rem;
  padding: 1.35rem 1.5rem 1.5rem;
  background: #fff;
  border: 1px solid var(--holxn-admin-border);
  border-radius: 1rem;
  box-shadow: 0 .65rem 1.6rem rgba(35, 52, 47, .1);
}

.job-operations-head,
.job-operations-tools,
.job-operations-body,
.job-progress-stats {
  display: flex;
  align-items: center;
}

.job-operations-head { justify-content: space-between; gap: 1rem; }
.job-operations-head h2 {
  position: relative;
  margin: 0;
  padding-left: 1rem;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  font-weight: 750;
  letter-spacing: .01em;
}
.job-operations-head h2::before {
  content: '';
  position: absolute;
  top: .05em;
  bottom: .05em;
  left: 0;
  width: .3rem;
  background: var(--job-status-active);
  border-radius: 999px;
}

.job-operations-tools { justify-content: flex-end; gap: .65rem; min-width: 0; }
.job-site-total {
  appearance: none;
  display: inline-flex;
  align-items: baseline;
  gap: .35rem;
  padding: .55rem .75rem;
  color: var(--bs-secondary-color);
  background: #f7f8fa;
  border: 1px solid #e4e6e8;
  border-radius: .75rem;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}
.job-site-total:hover { color: var(--bs-primary); background: rgba(var(--bs-primary-rgb), .07); border-color: rgba(var(--bs-primary-rgb), .3); transform: translateY(-1px); }
.job-site-total:focus-visible { outline: 0; box-shadow: var(--holxn-focus); }
.job-site-total span { font-size: .8rem; }
.job-site-total strong { color: var(--bs-body-color); font-size: 1rem; }
.job-operations-tools .job-person-picker { width: min(17rem, 36vw); }
.job-person-select-wrap { position: relative; }
.job-person-list-icon {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: .8rem;
  width: 1.35rem;
  height: 1.35rem;
  color: var(--bs-body-color);
  transform: translateY(-50%);
  pointer-events: none;
}
.job-operations-tools .form-select {
  min-height: 2.75rem;
  padding-left: 2.75rem;
  border-radius: .75rem;
}
.job-person-select-wrap .holxn-select-trigger {
  min-height: 2.75rem;
  padding-left: 2.75rem;
  border-radius: .75rem;
}

.job-operations-body { margin-top: 1.5rem; align-items: stretch; }
.job-total-stat {
  width: 22%;
  min-width: 8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  border-right: 1px solid #e5e7e9;
}
.job-total-stat strong { font-size: clamp(2rem, 4vw, 3.15rem); font-weight: 700; line-height: 1; }
.job-total-stat span { font-size: clamp(1.05rem, 2vw, 1.45rem); font-weight: 700; }

.job-progress-stats { width: 78%; justify-content: space-around; gap: 1rem; }
.job-progress-stat {
  min-width: 7rem;
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  text-align: center;
}
.job-progress-ring {
  position: relative;
  width: clamp(6.5rem, 12vw, 9rem);
  aspect-ratio: 1;
}
.job-progress-ring canvas { width: 100%; height: 100%; display: block; }
.job-progress-ring strong {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--bs-body-color);
  font-size: clamp(1.35rem, 3vw, 2.15rem);
  font-weight: 500;
}
.job-progress-stat > strong { font-size: clamp(1.2rem, 2vw, 1.65rem); font-weight: 500; line-height: 1.1; }
.job-progress-stat > span { font-size: clamp(.95rem, 1.7vw, 1.25rem); color: var(--bs-body-color); }
.job-site-name { font-size: 1rem; }

.job-control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: dense;
  align-items: start;
  gap: .75rem;
  margin-bottom: 1rem;
}
.job-control-card { padding: 1rem; }
.job-control-card-wide { grid-column: 1 / -1; }
.job-control-card h5 { font-size: 1rem; }
.job-control-disclosure {
  padding: 0;
  overflow: hidden;
}
.job-control-summary {
  min-height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .8rem 1rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.job-control-summary::-webkit-details-marker { display: none; }
.job-control-summary:hover { background: rgba(var(--bs-primary-rgb), .045); }
.job-control-summary:focus-visible { outline: 0; box-shadow: inset 0 0 0 .2rem rgba(var(--bs-primary-rgb), .18); }
.job-control-chevron {
  width: .55rem;
  height: .55rem;
  flex: 0 0 auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-.15rem);
  transition: transform .18s ease;
}
.job-control-disclosure[open] .job-control-chevron { transform: rotate(225deg) translate(-.1rem, -.1rem); }
.job-control-content {
  padding: .85rem 1rem 1rem;
  border-top: 1px solid var(--bs-border-color);
}
.job-identity-field label {
  display: block;
  margin-bottom: .45rem;
  color: var(--bs-secondary-color);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.job-identity-field .form-select {
  min-height: 2.85rem;
  border-radius: .75rem;
  border-color: rgba(var(--bs-primary-rgb), .25);
  background-color: rgba(var(--bs-primary-rgb), .025);
  font-weight: 650;
  box-shadow: none;
}
.job-identity-field .form-select:focus {
  border-color: rgba(var(--bs-primary-rgb), .6);
  box-shadow: 0 0 0 .2rem rgba(var(--bs-primary-rgb), .12);
}
.job-identity-status {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: .8rem;
  padding: .75rem;
  color: var(--bs-body-color);
  background: var(--bs-tertiary-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: .8rem;
}
.job-identity-status-icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  color: #fff;
  background: #6c757d;
  border-radius: 50%;
  font-size: .78rem;
  font-weight: 800;
}
.job-identity-status div { min-width: 0; }
.job-identity-status strong,
.job-identity-status span:not(.job-identity-status-icon) { display: block; }
.job-identity-status strong { font-size: .92rem; line-height: 1.25; }
.job-identity-status div > span { margin-top: .15rem; color: var(--bs-secondary-color); font-size: .78rem; line-height: 1.4; }
.job-identity-status.is-success { border-color: rgba(25, 135, 84, .25); background: rgba(25, 135, 84, .06); }
.job-identity-status.is-success .job-identity-status-icon { background: #198754; }
.job-identity-status.is-loading .job-identity-status-icon { background: var(--bs-primary); }
.job-identity-status.is-error { border-color: rgba(220, 53, 69, .25); background: rgba(220, 53, 69, .06); }
.job-identity-status.is-error .job-identity-status-icon { background: #dc3545; }
.job-tasks-card {
  margin-bottom: 1rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--holxn-admin-border);
  border-radius: 1rem;
  box-shadow: 0 .65rem 1.6rem rgba(35, 52, 47, .08);
}
.job-tasks-head {
  min-height: 4.25rem;
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e8eaec;
}
.job-tasks-head h2 {
  position: relative;
  margin: 0;
  padding-left: 1rem;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 750;
  letter-spacing: .01em;
}
.job-tasks-head h2::before {
  content: '';
  position: absolute;
  inset: .05em auto .05em 0;
  width: .3rem;
  background: var(--job-status-active);
  border-radius: 999px;
}
.job-task-loading {
  min-height: 9rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 2rem 1rem;
  color: var(--bs-secondary-color);
  text-align: center;
}
.job-task-loading p { margin: 0; }
.job-task-list { padding: 0 1.5rem; }
.job-task-item {
  padding: 1.35rem 0 1rem;
  border-bottom: 1px solid #e8eaec;
}
.job-task-item:last-child { border-bottom: 0; }
.job-task-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .65rem;
}
.job-task-title-row h3 {
  min-width: 0;
  margin: 0;
  color: #303336;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 750;
  line-height: 1.35;
}
.job-task-title-row h3 span { white-space: nowrap; }
.job-task-status {
  flex: 0 0 auto;
  padding: .35rem .55rem;
  font-size: .85rem;
  font-weight: 500;
}
.job-workspace .badge.job-status-created { color: #fff !important; background: var(--job-status-created) !important; }
.job-workspace .badge.job-status-active { color: #fff !important; background: var(--job-status-active) !important; }
.job-workspace .badge.job-status-complete { color: #fff !important; background: var(--job-status-complete) !important; }
.job-workspace .badge.job-status-finished { color: #fff !important; background: var(--job-status-finished) !important; }
.job-workspace .badge.job-status-closed { color: #fff !important; background: var(--job-status-closed) !important; }
.job-workspace .badge.job-status-unknown { color: #fff !important; background: var(--job-status-unknown) !important; }
.job-task-status { border-radius: .35rem; box-shadow: none; }
.job-task-detail {
  display: flex;
  min-width: 0;
  gap: .35rem;
  margin: 0 0 .4rem;
  color: #93979c;
  font-size: 1rem;
  line-height: 1.5;
}
.job-task-detail strong { flex: 0 0 auto; font-weight: 600; }
.job-task-detail span { overflow-wrap: anywhere; }
.job-task-meta {
  display: grid;
  grid-template-columns: minmax(8rem, .8fr) minmax(8rem, .8fr) minmax(13rem, 1.4fr);
  align-items: center;
  gap: .7rem 1rem;
  margin-top: .8rem;
  color: #a8b2bf;
  font-size: .98rem;
}
.job-task-meta > span { min-width: 0; display: flex; align-items: center; gap: .55rem; }
.job-task-meta img {
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 auto;
  opacity: .74;
  filter: invert(73%) sepia(11%) saturate(522%) hue-rotate(174deg) brightness(91%);
}
.job-task-meta b { color: var(--job-status-active); font-weight: 500; }
.job-task-time { justify-content: flex-end; white-space: nowrap; }
.job-task-actions {
  display: flex;
  justify-content: flex-end;
  gap: .45rem;
  margin-top: .85rem;
}
.job-task-actions .btn { min-width: 3.4rem; border-radius: .5rem; }
.job-task-actions .btn-info {
  color: var(--job-info);
  background: transparent;
  border-color: var(--job-info-soft);
}
.job-task-actions .btn-secondary {
  color: var(--bs-secondary-color);
  background: transparent;
  border-color: var(--bs-border-color);
}
.job-task-actions .btn-info:hover { color: #fff; background: var(--job-info); border-color: var(--job-info); }
.job-task-actions .btn-secondary:hover { color: #fff; background: var(--job-status-unknown); border-color: var(--job-status-unknown); }
.job-task-empty { padding: 2.5rem 1rem; color: var(--bs-secondary-color); text-align: center; }

.job-detail-dialog { max-width: min(760px, calc(100vw - 1rem)); }
.job-detail-modal { overflow: hidden; border: 0; }
.job-detail-modal .modal-header { padding: .85rem 1.25rem; }
.job-detail-modal .modal-footer { padding: .75rem 1.25rem; }
.job-detail-body { padding: 0; background: #fff; }
.job-detail-overview {
  position: relative;
  overflow: hidden;
  padding: 1.4rem 1.5rem 1.25rem;
}
.job-detail-title {
  max-width: calc(100% - 4.5rem);
  margin: 0 0 1.35rem;
  color: #17191b;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-weight: 750;
  line-height: 1.35;
}
.job-detail-ribbon {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  width: 8.25rem;
  height: 6.5rem;
  overflow: hidden;
  pointer-events: none;
}
.job-detail-ribbon span {
  position: absolute;
  top: 1.15rem;
  right: -2.15rem;
  width: 8.5rem;
  padding: .38rem .2rem;
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transform: rotate(45deg);
}
.job-detail-ribbon.job-status-created span { background: var(--job-status-created); }
.job-detail-ribbon.job-status-active span { background: var(--job-status-active); }
.job-detail-ribbon.job-status-complete span { background: var(--job-status-complete); }
.job-detail-ribbon.job-status-finished span { background: var(--job-status-finished); }
.job-detail-ribbon.job-status-closed span { background: var(--job-status-closed); }
.job-detail-ribbon.job-status-unknown span { background: var(--job-status-unknown); }
.job-detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem 1.5rem;
  margin: 0;
}
.job-detail-meta > div {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  align-items: center;
  gap: .75rem;
  min-height: 2.25rem;
}
.job-detail-meta dt,
.job-detail-meta dd { margin: 0; }
.job-detail-meta dt { color: #3e4246; font-size: .95rem; }
.job-detail-meta dd {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #989da2;
  font-size: .95rem;
  text-align: right;
}
.job-detail-action-status {
  display: inline-flex;
  justify-content: center;
  min-width: 4.9rem;
  padding: .35rem .75rem;
  color: #fff !important;
  border-radius: 999px;
  font-size: .85rem;
  line-height: 1.1;
}
.job-detail-action-status-done { background: var(--job-success); }
.job-detail-action-status-pending { background: var(--job-status-active); }
.job-detail-section {
  padding: 1rem 1.5rem 1.2rem;
  border-top: .5rem solid #f5f7f9;
}
.job-detail-section > h4 {
  margin: 0 0 .8rem;
  color: #17191b;
  font-size: 1.15rem;
  font-weight: 750;
}
.job-detail-items { border-top: 1px solid #edf0f2; }
.job-detail-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5.1rem;
  padding: .8rem 0;
  border-bottom: 1px solid #edf0f2;
}
.job-detail-item-main,
.job-detail-item-side,
.job-detail-item-tags { display: flex; align-items: center; }
.job-detail-item-main { min-width: 0; gap: .8rem; }
.job-detail-item-copy { min-width: 0; }
.job-detail-item-copy h4 {
  margin: 0 0 .45rem;
  overflow-wrap: anywhere;
  color: #3d4145;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.35;
}
.job-detail-item-tags { flex-wrap: wrap; gap: .35rem; }
.job-detail-tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: .22rem .48rem;
  color: #fff;
  border-radius: .25rem;
  font-size: .8rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.job-detail-tag-primary { background: var(--job-success); }
.job-detail-tag-secondary { background: var(--job-status-active); }
.job-detail-tag.job-item-status-pending { background: var(--job-warning); }
.job-detail-tag.job-item-status-complete { background: var(--job-success); }
.job-detail-tag.job-item-status-closed { background: var(--job-status-closed); }
.job-detail-tag.job-item-status-unknown { background: var(--job-status-unknown); }
.job-detail-item-remark {
  flex-basis: 100%;
  color: #8f989f;
  font-size: .78rem;
  line-height: 1.35;
}
.job-detail-item-check {
  width: 1.55rem;
  height: 1.55rem;
  flex: 0 0 auto;
  margin: 0;
  opacity: 1;
  accent-color: var(--job-status-active);
}
.job-detail-item-side { flex: 0 0 auto; gap: .75rem; }
.job-detail-remaining {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--job-warning);
  font-size: .9rem;
  white-space: nowrap;
}
.job-detail-clock {
  width: 1.35rem;
  height: 1.35rem;
  display: inline-block;
  flex: 0 0 auto;
  filter: invert(78%) sepia(95%) saturate(1180%) hue-rotate(355deg) brightness(103%) contrast(103%);
}
.job-detail-chevron {
  width: .7rem;
  height: .7rem;
  flex: 0 0 auto;
  border-top: 2px solid #8e9499;
  border-right: 2px solid #8e9499;
  transform: rotate(45deg);
}
.job-detail-empty { padding: 1.2rem 0 .35rem; color: #9aa1a7; text-align: center; }
.job-detail-activity-list { position: relative; }
.job-detail-activity-list::before {
  content: '';
  position: absolute;
  top: .65rem;
  bottom: .65rem;
  left: 7.1rem;
  width: 2px;
  background: #dceaf3;
}
.job-detail-activity-item {
  position: relative;
  display: grid;
  grid-template-columns: 6.35rem 1.5rem minmax(0, 1fr);
  align-items: start;
  gap: .75rem;
  min-height: 3.5rem;
  padding: .35rem 0;
}
.job-detail-activity-time {
  padding-top: .1rem;
  color: #a6b9c9;
  font-size: .85rem;
  line-height: 1.35;
  text-align: right;
  overflow-wrap: anywhere;
}
.job-detail-activity-marker {
  position: relative;
  z-index: 1;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: .05rem;
  background: var(--job-activity);
  border: .25rem solid var(--job-activity-soft);
  border-radius: 50%;
}
.job-detail-activity-item p { margin: 0; color: #3e4246; line-height: 1.5; }
.job-detail-activity-item p strong { font-weight: 600; }
.job-detail-activity-item p small { display: block; color: #8f989f; font-size: .78rem; }
.job-detail-remark p { margin: 0; color: #697177; white-space: pre-wrap; overflow-wrap: anywhere; }

.wallet-workspace {
  --wallet-soft: #f7faf9;
  --wallet-green: #12b981;
  --wallet-blue: #3b82f6;
  --wallet-amber: #f59e0b;
}
.wallet-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: dense;
  margin-inline: 0;
}
.wallet-overview > [class*="col-"] { width: auto; }
.wallet-stat-card {
  position: relative;
  min-height: 7.5rem;
  overflow: hidden;
  background: rgba(255,255,255,.96);
  border-left: 4px solid var(--wallet-blue) !important;
  border-radius: 1rem;
  box-shadow: 0 .5rem 1.35rem rgba(39,54,74,.055) !important;
  transition: transform .28s ease, box-shadow .28s ease;
}
.wallet-stat-card::after {
  content: '';
  position: absolute;
  width: 8rem;
  height: 8rem;
  top: -5rem;
  right: -4rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--wallet-blue) 10%, transparent);
  pointer-events: none;
}
.wallet-stat-card:hover { transform: translateY(-3px); box-shadow: 0 .9rem 1.8rem rgba(39,54,74,.09) !important; }
.wallet-stat-balance { border-left-color: var(--wallet-green) !important; }
.wallet-stat-balance::after { background: color-mix(in srgb, var(--wallet-green) 12%, transparent); }
.wallet-stat-expire { border-left-color: var(--wallet-amber) !important; }
.wallet-stat-expire::after { background: color-mix(in srgb, var(--wallet-amber) 12%, transparent); }
.wallet-stat-card .card-body > .fw-bold { color: #27364a; }
.wallet-stat-balance .card-body > .fw-bold { color: #0aa978; }
.wallet-section { overflow: hidden; }
.wallet-section > .card-header { padding: 1rem 1.15rem; }
.wallet-section > .card-header h5 { font-size: 1rem; font-weight: 650; }
.wallet-recharge-section .card-header .small { display: none; }
.wallet-plan-section #planList {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: dense;
}
.wallet-plan-section #planList > [class*="col-"] { width: auto; }
.wallet-loading {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(92,111,103,.38);
  backdrop-filter: blur(4px);
}
.wallet-loading > div { box-shadow: 0 .9rem 2rem rgba(41,65,57,.14); }

html[data-bs-theme="dark"] .ops-filter-panel,
html[data-bs-theme="dark"] .ops-filter-card,
html[data-bs-theme="dark"] .job-operations-card,
html[data-bs-theme="dark"] .job-tasks-card,
html[data-bs-theme="dark"] .wallet-stat-card,
html[data-bs-theme="dark"] body[class*="holxn-route-site-"] .fill > .card.mb-4,
html[data-bs-theme="dark"] body[class*="holxn-route-pt-"] .fill > .card.mb-4,
html[data-bs-theme="dark"] body[class*="holxn-route-job-"] .fill > .card.mb-4 {
  color: #f1f6f3;
  background: #232927;
  border-color: rgba(255,255,255,.15);
  backdrop-filter: none;
}

html[data-bs-theme="dark"] .job-site-total { background: #1b201e; border-color: rgba(255,255,255,.15); }
html[data-bs-theme="dark"] .job-total-stat { border-color: rgba(255,255,255,.15); }
html[data-bs-theme="dark"] .job-person-list-icon { filter: invert(1); }
html[data-bs-theme="dark"] .job-tasks-head,
html[data-bs-theme="dark"] .job-task-item { border-color: rgba(255,255,255,.13); }
html[data-bs-theme="dark"] .job-task-title-row h3 { color: #f1f6f3; }
html[data-bs-theme="dark"] .job-task-meta img { filter: invert(1); opacity: .65; }
html[data-bs-theme="dark"] .job-detail-modal,
html[data-bs-theme="dark"] .job-detail-body { color: #f1f6f3; background: #232927; }
html[data-bs-theme="dark"] .job-detail-section { border-top-color: #1b201e; }
html[data-bs-theme="dark"] .job-detail-title,
html[data-bs-theme="dark"] .job-detail-section > h4,
html[data-bs-theme="dark"] .job-detail-item-copy h4,
html[data-bs-theme="dark"] .job-detail-activity-item p { color: #f1f6f3; }
html[data-bs-theme="dark"] .job-detail-meta dt { color: #d7e0dc; }
html[data-bs-theme="dark"] .job-detail-meta dd,
html[data-bs-theme="dark"] .job-detail-remark p,
html[data-bs-theme="dark"] .job-detail-item-remark,
html[data-bs-theme="dark"] .job-detail-activity-item p small { color: #aebbb5; }
html[data-bs-theme="dark"] .job-detail-items,
html[data-bs-theme="dark"] .job-detail-item { border-color: rgba(255,255,255,.13); }
html[data-bs-theme="dark"] .job-detail-activity-list::before { background: rgba(185,220,235,.28); }
html[data-bs-theme="dark"] .job-detail-empty { color: #aebbb5; }

@media (max-width: 991.98px) {
  .job-operations-card { padding-inline: 1.1rem; }
  .wallet-workspace > [class*="col-lg-"] { width: 100%; }
}

@media (max-width: 767.98px) {
  body[class*="holxn-route-site-"] .fill,
  body[class*="holxn-route-pt-"] .fill,
  body[class*="holxn-route-job-"] .fill,
  .holxn-route-user-wallet .fill { padding-top: 5rem !important; }

  body[class*="holxn-route-site-"] .fill > .d-flex:has(h1, h2),
  body[class*="holxn-route-pt-"] .fill > .d-flex:has(h1, h2),
  body[class*="holxn-route-job-"] .fill > .d-flex:has(h1, h2) {
    align-items: center !important;
    flex-wrap: nowrap !important;
  }
  .job-operations-head { align-items: flex-start; }
  .job-operations-tools { width: min(62%, 20rem); }
  .job-operations-tools .job-person-picker { width: 100%; }
  .job-operations-body { margin-top: 1.15rem; }
  .job-total-stat { width: 20%; min-width: 5.25rem; }
  .job-progress-stats { width: 80%; gap: .3rem; }
  .job-progress-stat { min-width: 0; }
  .wallet-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wallet-overview > :first-child { grid-column: 1 / -1; }
  .wallet-plan-section #planList { grid-template-columns: 1fr; }
  .wallet-section .card-header { align-items: flex-start !important; gap: .75rem; flex-direction: column; }

  .ops-pagehead {
    flex-wrap: nowrap !important;
  }

  .ops-pagehead h1,
  .ops-pagehead h2 {
    font-size: 1.15rem !important;
  }

  .ops-pagehead .btn {
    min-width: 2.5rem;
  }

  body[class*="holxn-route-site-"] .card-footer,
  body[class*="holxn-route-pt-"] .card-footer,
  body[class*="holxn-route-job-"] .card-footer {
    align-items: stretch !important;
    flex-direction: column;
    gap: .75rem;
  }

  .job-operations-card { padding: 1rem .85rem 1.15rem; border-radius: .9rem; }
  .wallet-stat-card { min-height: 6.25rem; }
  .wallet-stat-card .card-body { padding: 1rem; }
}

@media (max-width: 575.98px) {
  .wallet-overview { grid-template-columns: 1fr; }
  .wallet-overview > :first-child { grid-column: auto; }
}

@media (max-width: 575.98px) {
  .job-operations-card {
    padding: .8rem .65rem .85rem;
    border-radius: .85rem;
  }
  .job-operations-head { flex-wrap: nowrap; align-items: center; gap: .5rem; }
  .job-operations-head h2 {
    flex: 0 0 auto;
    padding-left: .7rem;
    font-size: 1.05rem;
    white-space: nowrap;
  }
  .job-operations-tools {
    width: auto;
    min-width: 0;
    flex: 1 1 auto;
    justify-content: flex-end;
    gap: .35rem;
  }
  .job-site-total {
    flex: 0 0 auto;
    padding: .45rem .55rem;
  }
  .job-operations-tools .job-person-picker {
    width: 9rem;
    min-width: 0;
    flex: 0 1 9rem;
  }
  .job-person-list-icon { left: .65rem; width: 1.1rem; height: 1.1rem; }
  .job-operations-tools .form-select,
  .job-person-select-wrap .holxn-select-trigger {
    padding-left: 2.1rem;
    padding-right: 1.8rem;
  }
  .job-operations-body { margin-top: .75rem; }
  .job-total-stat {
    width: 18%;
    min-width: 4.1rem;
    gap: .2rem;
  }
  .job-total-stat strong { font-size: 1.55rem; }
  .job-total-stat span { font-size: .95rem; }
  .job-progress-stats {
    width: 82%;
    justify-content: space-evenly;
    gap: .1rem;
  }
  .job-progress-stat { gap: .22rem; }
  .job-progress-ring { width: 4.75rem; }
  .job-progress-ring strong { font-size: 1.1rem; }
  .job-progress-stat > strong { font-size: 1.05rem; }
  .job-progress-stat > span { font-size: .86rem; white-space: nowrap; }
  .job-tasks-card { border-radius: .85rem; }
  .job-tasks-head { min-height: 3.55rem; padding: .8rem 1rem; }
  .job-tasks-head h2 { padding-left: .75rem; font-size: 1.05rem; }
  .job-task-list { padding: 0 1rem; }
  .job-task-item { padding: 1rem 0 .85rem; }
  .job-task-title-row { gap: .55rem; margin-bottom: .55rem; }
  .job-task-title-row h3 { font-size: 1rem; }
  .job-task-status { padding: .3rem .45rem; font-size: .75rem; }
  .job-task-detail { margin-bottom: .3rem; font-size: .88rem; }
  .job-task-meta {
    grid-template-columns: auto auto minmax(0, 1fr);
    gap: .35rem .7rem;
    margin-top: .65rem;
    font-size: .82rem;
  }
  .job-task-meta > span { gap: .35rem; }
  .job-task-meta img { width: 1.05rem; height: 1.05rem; }
  .job-task-time { overflow: hidden; justify-content: flex-end; text-overflow: ellipsis; }
  .job-task-actions { margin-top: .7rem; }
  .job-task-actions .btn { min-width: 3rem; padding: .25rem .55rem; font-size: .78rem; }

  .job-detail-dialog { max-width: calc(100vw - .75rem); margin: .375rem auto; }
  .job-detail-modal .modal-header { padding: .75rem 1rem; }
  .job-detail-modal .modal-footer { padding: .65rem 1rem; }
  .job-detail-overview { padding: 1.15rem 1rem 1rem; }
  .job-detail-title { max-width: calc(100% - 3.25rem); margin-bottom: 1rem; font-size: 1.15rem; }
  .job-detail-ribbon { width: 6.75rem; height: 5.6rem; }
  .job-detail-ribbon span { top: 1rem; right: -2.25rem; width: 7.5rem; font-size: .75rem; }
  .job-detail-meta { grid-template-columns: 1fr; gap: .35rem; }
  .job-detail-meta > div { grid-template-columns: 4.2rem minmax(0, 1fr); min-height: 2rem; }
  .job-detail-meta dd { text-align: right; }
  .job-detail-section { padding: .85rem 1rem 1rem; }
  .job-detail-section > h4 { font-size: 1.05rem; }
  .job-detail-item { gap: .55rem; min-height: 4.6rem; padding: .7rem 0; }
  .job-detail-item-main { gap: .6rem; }
  .job-detail-item-copy h4 { font-size: .95rem; }
  .job-detail-item-side { gap: .45rem; }
  .job-detail-remaining { font-size: .78rem; }
  .job-detail-clock { width: 1.1rem; height: 1.1rem; }
  .job-detail-chevron { width: .58rem; height: .58rem; }
  .job-detail-activity-list::before { left: 5.95rem; }
  .job-detail-activity-item { grid-template-columns: 5.2rem 1.35rem minmax(0, 1fr); gap: .55rem; }
  .job-detail-activity-time { font-size: .76rem; }
  .job-detail-activity-marker { width: 1.2rem; height: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .job-control-chevron { transition: none; }
  .wallet-stat-card { transition: none !important; }
}
