body.theme-velzon .metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

body.theme-velzon .metric {
  position: relative;
  min-height: 132px;
  padding: 20px;
  overflow: hidden;
  text-align: left;
}

body.theme-velzon .metric::after {
  content: "";
  position: absolute;
  top: 19px;
  right: 19px;
  bottom: auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary-soft);
  opacity: 1;
}

body.theme-velzon .metric::before {
  content: "◉";
  position: absolute;
  top: 30px;
  right: 31px;
  z-index: 2;
  color: var(--primary);
  font-size: 20px;
  line-height: 1;
}

body.theme-velzon .metric:nth-child(4n + 2)::before { content: "◫"; color: var(--success); }
body.theme-velzon .metric:nth-child(4n + 3)::before { content: "◷"; color: #c78a17; }
body.theme-velzon .metric:nth-child(4n + 4)::before { content: "◇"; color: var(--info); }

body.theme-velzon .metric:nth-child(4n + 2)::after { background: var(--success-soft); }
body.theme-velzon .metric:nth-child(4n + 3)::after { background: var(--warning-soft); }
body.theme-velzon .metric:nth-child(4n + 4)::after { background: var(--info-soft); }

body.theme-velzon .metric small {
  position: relative;
  z-index: 1;
  color: #878a99;
  font-size: 11px;
  font-weight: 600;
  max-width: calc(100% - 62px);
  letter-spacing: .02em;
}

body.theme-velzon .metric strong {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  color: #343a40;
  font-size: 27px;
  font-weight: 600;
  line-height: 1;
}

body.theme-velzon .metric span {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  color: #878a99;
  font-size: 11px;
}

body.theme-velzon .metric.dangerMetric strong {
  color: var(--danger);
}

body.theme-velzon .metricButton:hover:not(:disabled) {
  background: #fff;
  box-shadow: 0 6px 18px rgba(56, 65, 74, .1);
  transform: translateY(-2px);
}

body.theme-velzon .compactMetrics,
body.theme-velzon .issueSummaryGrid,
body.theme-velzon .reviewSummaryGrid,
body.theme-velzon .paymentSummaryGrid {
  gap: 14px;
}

body.theme-velzon .compactMetric,
body.theme-velzon .issueSummaryCard,
body.theme-velzon .reviewSummaryCard,
body.theme-velzon .paymentSummaryGrid > div {
  background: #fff;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

body.theme-velzon .grid {
  gap: 20px;
}

body.theme-velzon #dashboard .grid.two {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

body.theme-velzon #dashboard .grid.two > .panel:nth-child(1) { grid-column: span 8; }
body.theme-velzon #dashboard .grid.two > .panel:nth-child(2) { grid-column: span 4; }
body.theme-velzon #dashboard .grid.two > .panel:nth-child(3) { grid-column: span 5; }
body.theme-velzon #dashboard .grid.two > .panel:nth-child(4) { grid-column: span 7; }

body.theme-velzon .table {
  background: #fff;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

body.theme-velzon table {
  color: #495057;
}

body.theme-velzon th,
body.theme-velzon td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

body.theme-velzon th {
  color: #495057;
  background: #f3f6f9;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .035em;
  text-transform: uppercase;
  white-space: nowrap;
}

body.theme-velzon td {
  color: #495057;
  font-size: 13px;
}

body.theme-velzon tbody tr {
  transition: background .14s ease;
}

body.theme-velzon tbody tr:nth-child(even) {
  background: #fcfcfd;
}

body.theme-velzon tbody tr:hover {
  background: #f6f7fb;
}

body.theme-velzon .orderListPanel .table tbody tr:nth-child(even) {
  background: #fcfcfd;
}

body.theme-velzon .orderListPanel .table tbody tr:hover {
  background: #f3f5fa;
}

body.theme-velzon .orderTableDataScroll > table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

body.theme-velzon .orderTableSplit {
  grid-template-columns: minmax(0, 1fr) 112px;
}

body.theme-velzon .orderTableDataScroll {
  min-width: 0;
  overflow-x: auto;
  border-radius: var(--radius) 0 0 var(--radius);
}

body.theme-velzon .orderTableActions {
  min-width: 0;
  overflow: hidden;
  border-left: 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: -5px 0 9px -8px rgba(16, 24, 40, .45);
}

body.theme-velzon .orderTableActions > table {
  width: 100%;
  min-width: 0;
  border-collapse: separate;
  border-spacing: 0;
}

body.theme-velzon .orderTableActions td {
  padding: 4px 8px;
  text-align: center;
  vertical-align: middle;
}

body.theme-velzon .orderTableActions td button {
  width: 100%;
  min-height: 30px;
  padding: 6px 8px;
  justify-content: center;
  white-space: nowrap;
}

body.theme-velzon .orderTableActions tbody tr.linkedHover,
body.theme-velzon .orderTableDataScroll tbody tr.linkedHover {
  background: #f3f5fa;
}

body.theme-velzon .rowActions {
  gap: 6px;
}

body.theme-velzon .rowActions button {
  min-height: 30px;
  padding: 6px 9px;
}

body.theme-velzon .pager {
  min-height: 54px;
  padding: 10px 14px;
  color: #878a99;
  background: #fff;
  border-color: var(--line);
}

body.theme-velzon .pager strong {
  color: #495057;
}

body.theme-velzon .pager button {
  min-height: 31px;
  padding: 6px 10px;
}

body.theme-velzon .barRow {
  margin: 17px 0;
}

body.theme-velzon button.stageJump {
  width: 100%;
  padding: 3px 0;
  color: inherit;
  background: transparent;
  border: 0;
  box-shadow: none;
  text-align: left;
}

body.theme-velzon button.stageJump:hover:not(:disabled) {
  color: inherit;
  background: transparent;
  box-shadow: none;
  transform: none;
}

body.theme-velzon .barHead {
  margin-bottom: 8px;
  color: #495057;
  font-size: 12px;
  font-weight: 500;
}

body.theme-velzon .barTrack {
  height: 7px;
  background: #f0f1f4;
}

body.theme-velzon .barFill {
  background: #9a8de4;
  transition: width .25s ease, filter .15s ease;
}

body.theme-velzon #stageBars .stageJump:nth-child(6n + 2) .barFill { background: #82a9df; }
body.theme-velzon #stageBars .stageJump:nth-child(6n + 3) .barFill { background: #72bfae; }
body.theme-velzon #stageBars .stageJump:nth-child(6n + 4) .barFill { background: #dfb86d; }
body.theme-velzon #stageBars .stageJump:nth-child(6n + 5) .barFill { background: #d98c9a; }
body.theme-velzon #stageBars .stageJump:nth-child(6n) .barFill { background: #8492d5; }

body.theme-velzon .stageJump:hover .barFill {
  filter: saturate(1.08) brightness(.97);
}

body.theme-velzon .stageJump:hover .barTrack {
  background: #e3e6ed;
}

body.theme-velzon .priorityGrid {
  gap: 14px;
}

body.theme-velzon .priorityCard {
  position: relative;
  min-height: 94px;
  padding: 16px;
  overflow: hidden;
  background: #f8f9fa;
  border: 0;
  border-radius: var(--radius);
}

body.theme-velzon .priorityCard::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: #9a8de4;
}

body.theme-velzon .priorityCard:nth-child(4n + 2)::before { background: #82a9df; }
body.theme-velzon .priorityCard:nth-child(4n + 3)::before { background: #72bfae; }
body.theme-velzon .priorityCard:nth-child(4n + 4)::before { background: #dfb86d; }

body.theme-velzon .priorityCard small {
  color: #878a99;
  font-size: 11px;
}

body.theme-velzon .priorityCard strong {
  color: #343a40;
  font-size: 23px;
  font-weight: 600;
}

body.theme-velzon .cards {
  gap: 18px;
}

body.theme-velzon .card {
  padding: 18px;
  transition: box-shadow .18s ease, transform .18s ease;
}

body.theme-velzon .card:hover {
  box-shadow: 0 7px 18px rgba(56, 65, 74, .1);
  transform: translateY(-2px);
}

body.theme-velzon .card h3 {
  color: #343a40;
  font-size: 15px;
  font-weight: 600;
}

body.theme-velzon .card p {
  color: #878a99;
}

body.theme-velzon .projectCardsGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
}

body.theme-velzon .projectListCard {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border: 1px solid #e9ebec;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 2px 5px rgba(30, 32, 37, .08);
}

body.theme-velzon .projectCardHeader {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: #e3f2f9;
}

body.theme-velzon .projectCardTitle {
  min-width: 0;
}

body.theme-velzon .projectCardTitle h3 {
  overflow: hidden;
  margin: 0;
  color: #343a40;
  font-size: 15px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.theme-velzon .projectCardTitle > span {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: #74788d;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.theme-velzon .projectCardHeaderActions {
  flex: 0 0 auto;
  gap: 4px;
  margin: 0;
}

body.theme-velzon .projectCardHeaderActions button {
  display: grid;
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  place-items: center;
  padding: 5px;
  border-color: rgba(116, 120, 141, .12);
  background: rgba(255, 255, 255, .55);
}

body.theme-velzon .projectCardHeaderActions button span {
  display: none;
}

body.theme-velzon .projectCardTopline {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 14px;
  border-bottom: 1px solid #f0f1f4;
  color: #878a99;
  font-size: 12px;
}

body.theme-velzon .projectCardTags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 14px 10px;
}

body.theme-velzon .projectCardTags .tag {
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 500;
}

body.theme-velzon .projectCardNext {
  display: grid;
  min-height: 64px;
  align-content: start;
  gap: 4px;
  margin: 0;
  padding: 10px 14px;
  border-top: 1px solid #f0f1f4;
  border-bottom: 1px solid #f0f1f4;
  color: #495057 !important;
  font-size: 13px;
  line-height: 1.5;
}

body.theme-velzon .projectCardNext small,
body.theme-velzon .projectCardFacts small,
body.theme-velzon .projectCardRisk small {
  color: #878a99;
  font-size: 11px;
}

body.theme-velzon .projectCardNext > span,
body.theme-velzon .projectCardRisk > span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.theme-velzon .projectCardFacts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px 10px;
  padding: 13px 14px;
}

body.theme-velzon .projectCardFacts > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

body.theme-velzon .projectCardFacts > div > span {
  overflow: hidden;
  color: #343a40;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.theme-velzon .projectCardRisk {
  display: grid;
  gap: 3px;
  margin: 0 14px 12px;
  padding: 8px 10px;
  border-left: 2px solid #e7bd67;
  background: #fffaf0;
  color: #735d32 !important;
  font-size: 12px;
}

body.theme-velzon .issueCard,
body.theme-velzon .reviewCandidate,
body.theme-velzon .cstatementOrderGroup,
body.theme-velzon .importPreviewRow {
  background: #fff;
  border-color: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

body.theme-velzon .issueCard {
  border-left: 3px solid var(--info);
}

body.theme-velzon .issueBlocking {
  border-left-color: var(--danger);
}

body.theme-velzon .issueClosed {
  border-left-color: var(--success);
  background: #fbfefd;
}

body.theme-velzon .overdueCard {
  padding: 13px 15px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

body.theme-velzon .overdueCardTitle {
  margin-bottom: 5px;
}

body.theme-velzon button.linkButton {
  min-height: 0;
  padding: 0;
  color: var(--primary-dark);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-weight: 600;
  text-align: left;
}

body.theme-velzon button.linkButton:hover:not(:disabled) {
  color: var(--primary);
  background: transparent;
  box-shadow: none;
  text-decoration: underline;
  transform: none;
}

body.theme-velzon .overdueCard p {
  color: #878a99;
  font-size: 12px;
}

body.theme-velzon .timelineItem {
  border-color: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

body.theme-velzon .timelineItem::before {
  background: #dfe3ea;
}

body.theme-velzon .timelineDate::after {
  background: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

body.theme-velzon .report {
  padding: 24px;
}

body.theme-velzon .report h2,
body.theme-velzon .report h3 {
  color: #343a40;
}

body.theme-velzon .orderDetailPagePanel {
  box-shadow: none;
}

body.theme-velzon .orderDetailHeader {
  display: grid;
  gap: 18px;
  padding: 22px 24px;
  background: linear-gradient(120deg, #4b35bf, #715bdc);
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 8px 20px rgba(91, 67, 214, .2);
}

body.theme-velzon .orderDetailSection {
  padding: 20px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

body.theme-velzon .orderDetailSection h3 {
  color: #495057;
  font-size: 15px;
}

body.theme-velzon .orderDetailSection h3::before {
  width: 3px;
  background: var(--primary);
}

body.theme-velzon .orderProgressBar {
  background: #edf0f3;
}

body.theme-velzon .orderDetailFulfillment .orderProgressSummary > .orderProgressBar span {
  background: linear-gradient(90deg, #cbd5e1 0%, #86efac 52%, #15803d 100%);
}

body.theme-velzon .orderDetailFulfillment .orderPaymentProgressSummary .orderProgressBar span {
  background: linear-gradient(90deg, #cbd5e1 0%, #86efac 52%, #15803d 100%);
}

body.theme-velzon .orderDetailFulfillment .orderProgressHeadline small,
body.theme-velzon .orderDetailFulfillment .orderProgressHeadline > span { color: var(--muted); }
body.theme-velzon .orderDetailFulfillment .orderProgressHeadline strong,
body.theme-velzon .orderDetailFulfillment .orderMetricRow b { color: #343a40; }
body.theme-velzon .orderDetailFulfillment .orderProgressHeadline strong { color: #343a40; }
body.theme-velzon .orderDetailFulfillment .orderProgressBar { background: #edf0f3; }
body.theme-velzon .orderDetailFulfillment .orderMetricRow span {
  color: var(--muted);
  background: #f8f9fa;
  border: 1px solid var(--line);
}
body.theme-velzon .invoiceApplicationTable table tbody tr,
body.theme-velzon .paymentRecordTable tbody tr,
body.theme-velzon .paymentLinkedOrderTable tbody tr { background: #fff; }
body.theme-velzon .invoiceApplicationTable table tbody tr > td,
body.theme-velzon .paymentRecordTable tbody tr > td,
body.theme-velzon .paymentLinkedOrderTable tbody tr > td { background: #fff; }
body.theme-velzon .invoiceApplicationTable .invoiceApplicationRow.fullyPaid > td,
body.theme-velzon .invoiceApplicationTable .invoiceApplicationRow.paymentPending > td { background: #fff; }
body.theme-velzon .orderProgressBar.pending span { background: var(--danger); }
body.theme-velzon .orderProgressBar.partial span { background: var(--warning); }
body.theme-velzon .orderProgressBar.complete span { background: var(--success); }

body.theme-velzon .orderMetricRow span {
  background: #f8f9fa;
  border: 0;
  border-radius: 4px;
}

body.theme-velzon .orderMetricRow b,
body.theme-velzon .paymentSummaryGrid strong,
body.theme-velzon .orderProgressHeadline strong {
  color: #343a40;
}

body.theme-velzon .rawBlock {
  color: #495057;
  background: #f8f9fa;
  border-color: var(--line);
}

body.theme-velzon .filterNotice,
body.theme-velzon .loadingPanel {
  color: var(--primary-dark);
  background: #eef0f7;
  border-color: #d9deec;
}

body.theme-velzon .orderRiskTag,
body.theme-velzon .orderExceptionBox {
  color: #d94d32;
  background: var(--danger-soft);
  border-color: #f7c8be;
}
