/* =========================================================
   SolarCompute Dashboard CSS
   ========================================================= */

/* =========================================================
   1. Design Tokens / Root
   ========================================================= */

:root {
  --zm-bg: #0b1220;
  --zm-bg-soft: #111a2a;
  --zm-surface: #1f2933;
  --zm-surface-2: #243244;

  --zm-panel: rgba(255, 255, 255, 0.035);
  --zm-panel-strong: rgba(255, 255, 255, 0.05);
  --zm-panel-soft: rgba(255, 255, 255, 0.025);

  --zm-border: rgba(255, 255, 255, 0.08);
  --zm-border-strong: rgba(255, 255, 255, 0.14);

  --zm-text: #e5e7eb;
  --zm-muted: #9aa8b8;
  --zm-muted-2: #7f8da0;

  --zm-primary: #d89b2b;
  --zm-primary-strong: #f5b841;
  --zm-accent-blue: #3a8dff;

  --zm-info: #3a8dff;
  --zm-online: #3a8dff;
  --zm-live: #d89b2b;
  --zm-warning: #d89b2b;
  --zm-danger: #f87171;
  --zm-neutral: #94a3b8;
  --zm-financial-positive: #4ade80;
  --zm-financial-negative: #f87171;

  --zm-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  --zm-shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.45);

  --zm-radius-sm: 10px;
  --zm-radius-md: 14px;
  --zm-radius-lg: 18px;
  --zm-radius-xl: 24px;

  --zm-container: 1480px;
}

/* =========================================================
   2. Base / Reset
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at top left, rgba(58, 141, 255, 0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(216, 155, 43, 0.10), transparent 24%),
    linear-gradient(180deg, #071019 0%, #0b1220 100%);
  color: var(--zm-text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.hidden {
  display: none !important;
}

.muted {
  color: var(--zm-muted);
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.space-y > * + * {
  margin-top: 14px;
}

body.modal-open {
  overflow: hidden;
}

/* =========================================================
   3. Dashboard Shell
   ========================================================= */

.dashboard {
  min-height: 100vh;
}

.dashboard-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: rgba(8, 18, 32, 0.84);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--zm-border);
}

.dashboard-brand-wrap {
  display: flex;
  align-items: center;
  min-width: 300px;
  flex: 0 0 300px;
}

.dashboard-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--zm-text);
  text-decoration: none;
}

.dashboard-logo {
  height: 52px;
  width: auto;
}

.dashboard-brand-text {
  font-size: 0.92rem;
  color: var(--zm-muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.dashboard-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: wrap;
}

.dashboard-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border-radius: 10px;
  color: var(--zm-muted);
  font-size: 0.89rem;
  border: 1px solid transparent;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.dashboard-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.dashboard-nav a.active,
.dashboard-nav a[aria-current="page"] {
  color: #fff;
  background: rgba(216, 155, 43, 0.08);
  border-color: rgba(216, 155, 43, 0.20);
  box-shadow: inset 0 -1px 0 rgba(216, 155, 43, 0.35);
}

.nav-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
  opacity: 0.95;
  flex: 0 0 auto;
}

.nav-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.dashboard-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 1 auto;
  min-width: max-content;
  white-space: nowrap;
}

.dashboard-user-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--zm-border);
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.89rem;
  line-height: 1;
  white-space: nowrap;
  max-width: 280px;
  flex: 0 1 280px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-user-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #4ade80;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.45);
  flex: 0 0 auto;
}

#dashboardUserEmail {
  display: inline-block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-header .btn {
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.9rem;
  border-radius: 10px;
  white-space: nowrap;
}

.dashboard-container {
  max-width: var(--zm-container);
  margin: 0 auto;
  padding: 42px 22px 60px;
}

.page-hero {
  margin-bottom: 28px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--zm-primary);
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: 2.2rem;
  line-height: 1.08;
}

.page-lead {
  max-width: 760px;
  color: var(--zm-muted);
  font-size: 1rem;
  line-height: 1.6;
}


/* =========================================================
   4. Typography / Shared Text Styles
   ========================================================= */

.table-title-row {
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.table-subline {
  margin-top: 4px;
  color: var(--zm-muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.detail-label {
  display: block;
  margin-bottom: 6px;
  color: #8ea0b1;
  font-size: 0.8rem;
}

.field-help {
  display: block;
  margin-top: 4px;
  color: var(--zm-muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

/* =========================================================
   5. Layout / Grid System
   ========================================================= */

.dashboard-grid {
  display: grid;
  gap: 20px;
}

.dashboard-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-grid-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.section {
  margin-top: 40px;
}

.section-card {
  margin-top: 26px;
}

.section-card-grid {
  margin-top: 26px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.section-head h2 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.section-subtext {
  margin: 0;
  color: var(--zm-muted);
  font-size: 0.92rem;
}

.section-actions {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
}

.section-status,
.table-meta,
.pagination-meta {
  color: var(--zm-muted);
  font-size: 0.84rem;
}

/* =========================================================
   6. Cards
   ========================================================= */

.card {
  background: var(--zm-panel);
  border: 1px solid var(--zm-border);
  border-radius: 18px;
  padding: 20px;
  backdrop-filter: blur(10px);
  box-shadow: var(--zm-shadow);
}

.stat-card h3,
.card h3 {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: var(--zm-muted);
  font-weight: 500;
}

.card-value {
  font-size: 2rem;
  font-weight: 650;
  line-height: 1.1;
  color: #fff;
}

.card-value-small {
  font-size: 1.2rem;
  line-height: 1.3;
}

.card-unit {
  font-size: 0.95rem;
  color: var(--zm-muted);
  margin-left: 6px;
}

.card-note {
  margin-top: 8px;
  color: var(--zm-muted);
  font-size: 0.84rem;
}

.stat-card-highlight {
  border-color: rgba(58, 141, 255, 0.24);
}

.stat-card-emerald {
  border-color: rgba(216, 155, 43, 0.24);
}

.info-card {
  min-height: 180px;
}

.info-card-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 12px;
  background: rgba(216, 155, 43, 0.08);
  border: 1px solid rgba(216, 155, 43, 0.16);
  color: var(--zm-primary);
  font-size: 1rem;
}

.info-card h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.info-card p {
  margin: 0;
  color: var(--zm-muted);
  line-height: 1.6;
  font-size: 0.92rem;
}

.slash {
  color: #6b7785;
  margin: 0 6px;
}

/* =========================================================
   7. Buttons
   ========================================================= */

.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--zm-primary), var(--zm-primary-strong));
  color: #071019;
  border-color: rgba(216, 155, 43, 0.28);
  box-shadow: 0 10px 28px rgba(216, 155, 43, 0.22);
}

.btn-primary:hover {
  box-shadow: 0 14px 30px rgba(216, 155, 43, 0.28);
}

.btn-secondary {
  background: rgba(216, 155, 43, 0.08);
  color: var(--zm-text);
  border: 1px solid rgba(216, 155, 43, 0.24);
}

.btn-secondary:hover {
  background: rgba(216, 155, 43, 0.12);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.025);
  color: var(--zm-text);
  border-color: var(--zm-border);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(58, 141, 255, 0.20);
}

.btn-danger {
  background: rgba(248, 113, 113, 0.10);
  color: #fecaca;
  border: 1px solid rgba(248, 113, 113, 0.22);
}

.btn-small {
  padding: 8px 12px;
  min-height: auto;
  font-size: 0.86rem;
  border-radius: 12px;
}

/* =========================================================
   8. Forms / Filters / Inputs
   ========================================================= */

.date-range-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.filters-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, minmax(150px, 1fr));
  gap: 14px;
}

.filter-field,
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-field label,
.form-field label {
  font-size: 0.8rem;
  color: var(--zm-muted);
}

.filter-field input,
.filter-field select,
.filter-field textarea,
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-width: 140px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--zm-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--zm-text);
  outline: none;
}

.filter-field input:focus,
.filter-field select:focus,
.filter-field textarea:focus,
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: rgba(216, 155, 43, 0.34);
  box-shadow: 0 0 0 3px rgba(216, 155, 43, 0.08);
}

.filter-field select,
.form-field select {
  color: var(--zm-text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--zm-border);
}

.filter-field select option,
.form-field select option {
  color: #e7edf5;
  background: #101826;
}

.filter-field select option:checked,
.form-field select option:checked {
  color: #ffffff;
  background: #183247;
}

.filter-field-wide {
  grid-column: span 1;
}

.compact-field input {
  min-width: 150px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid-3 {
  grid-template-columns: 1.1fr 2fr;
}

.form-field-span-2 {
  grid-column: span 2;
}

.form-actions-inline {
  display: flex;
  gap: 8px;
  align-items: end;
  flex-wrap: wrap;
}

.form-actions-inline-wide {
  justify-content: flex-start;
}

.checkbox-field {
  justify-content: end;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: #dce4ec;
}

/* =========================================================
   9. Tables
   ========================================================= */

.table-wrap {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.table thead th {
  text-align: left;
  padding: 12px 12px;
  color: var(--zm-muted);
  font-size: 0.8rem;
  font-weight: 600;
  border-bottom: 1px solid var(--zm-border);
  white-space: nowrap;
}

.table tbody td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.jobs-table,
.orders-table {
  table-layout: fixed;
}

.jobs-table th,
.jobs-table td,
.orders-table th,
.orders-table td {
  font-size: 0.88rem;
}

.table-empty {
  text-align: center;
  color: var(--zm-muted);
  padding: 28px 12px !important;
}

.table-footer {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.pager-controls,
.pagination-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pager-controls select {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--zm-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--zm-text);
}

.page-label,
.pagination-page {
  min-width: 96px;
  text-align: center;
  color: var(--zm-text);
  font-size: 0.92rem;
}

.jobs-table th:nth-child(1),
.jobs-table td:nth-child(1) {
  width: 140px;
}

.jobs-table th:nth-child(2),
.jobs-table td:nth-child(2) {
  width: 120px;
}

.jobs-table th:nth-child(3),
.jobs-table td:nth-child(3) {
  width: 140px;
}

.jobs-table th:nth-child(4),
.jobs-table td:nth-child(4) {
  width: 80px;
}

.jobs-table th:nth-child(5),
.jobs-table td:nth-child(5) {
  width: 90px;
}

.jobs-table th:nth-child(6),
.jobs-table td:nth-child(6) {
  width: 110px;
}

.jobs-table th:nth-child(7),
.jobs-table td:nth-child(7) {
  width: 100px;
}

.jobs-table th:nth-child(8),
.jobs-table td:nth-child(8) {
  width: 170px;
}

.jobs-table th:nth-child(9),
.jobs-table td:nth-child(9) {
  width: 120px;
}

.jobs-table td:nth-child(3) {
  overflow: hidden;
}

/* =========================================================
   10. Status System
   ========================================================= */

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.status-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
}

.status-online {
  background: rgba(58, 141, 255, 0.12);
  color: #9bc6ff;
}


.status-online::before {
  background: #3a8dff;
}

/* Job Status Colours */

.status-queued {
  background: rgba(148,163,184,0.12);
  color: #cbd5e1;
}
.status-queued::before {
  background: #94a3b8;
}

.status-assigned,
.status-assigned::before,

.status-success {
  background: rgba(34,197,94,0.12);
  color: #86efac;
}
.status-success::before {
  background: #22c55e;
}




.status-pending,
.status-queued,
.status-validation {
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
}

.status-pending::before,
.status-queued::before,
.status-validation::before {
  background: #94a3b8;
}

.status-assigned,
.status-approved,
.status-running {
  background: rgba(59, 130, 246, 0.12);
  color: #93c5fd;
}

.status-assigned::before,
.status-approved::before,
.status-running::before {
  background: #3b82f6;
}

.status-success,
.status-active {
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
}

.status-success::before,
.status-active::before {
  background: #22c55e;
}

.status-failed,
.status-rejected,
.status-offline {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
}

.status-failed::before,
.status-rejected::before,
.status-offline::before {
  background: #ef4444;
}

.status-building,
.status-warning,
.status-cancel_requested {
  background: rgba(245, 158, 11, 0.12);
  color: #fcd34d;
}

.status-building::before,
.status-warning::before,
.status-cancel_requested::before {
  background: #f59e0b;
}

.status-cancelled {
  background: rgba(168, 85, 247, 0.15);
  color: #d8b4fe;
}

.status-cancelled::before {
  background: #a855f7;
}

/* =========================================================
   11. Financial States / Badges
   ========================================================= */

.badge {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--zm-text);
}

.badge-green {
  background: rgba(74, 222, 128, 0.18);
  color: #4ade80;
}

.badge-red {
  background: rgba(248, 113, 113, 0.16);
  color: #fecaca;
}

.badge-blue {
  background: rgba(58, 141, 255, 0.16);
  color: #9bc6ff;
}

.badge-amber {
  background: rgba(216, 155, 43, 0.16);
  color: #f7d27d;
}

.pos {
  color: var(--zm-financial-positive);
  font-weight: 600;
}

.neg {
  color: var(--zm-financial-negative);
  font-weight: 600;
}

.net-positive {
  color: var(--zm-financial-positive);
  font-weight: 600;
}

.net-negative {
  color: #fecaca;
  font-weight: 600;
}

/* =========================================================
   12. Shared Progress / Row UI
   ========================================================= */

.progress-cell {
  min-width: 180px;
}

.progress-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #d89b2b, #3a8dff);
  width: 0%;
  transition: width 0.3s ease;
}

.progress-meta {
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--zm-muted);
}

.job-title,
.order-title {
  font-weight: 600;
  color: var(--zm-text);
}

.job-subline,
.order-subline {
  margin-top: 3px;
  color: var(--zm-muted);
  font-size: 0.78rem;
  word-break: break-word;
}

.job-actions,
.order-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.job-actions .btn,
.order-actions .btn {
  padding: 6px 10px;
  font-size: 0.78rem;
}

.jobs-progress-cell {
  display: flex;
  align-items: center;
}

.jobs-progress {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  max-width: 120px;
  min-width: 0;
  min-height: 34px;
}

.jobs-progress-bar {
  width: 100%;
  max-width: 120px;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.jobs-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #d89b2b, #3a8dff);
  transition: width 0.35s ease;
}

.jobs-progress-text,
.jobs-progress-compact {
  font-size: 0.82rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =========================================================
   13. Shared Modal System
   ========================================================= */

.modal-shell.hidden {
  display: none;
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 1200;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 9, 18, 0.72);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}

.modal-backdrop.show {
  display: flex;
}

.modal-card {
  position: relative;
  width: min(940px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  margin: 24px auto;
  background: rgba(8, 18, 32, 0.96);
  border: 1px solid var(--zm-border);
  border-radius: 24px;
  box-shadow: var(--zm-shadow-lg);
}

.modal-card-wide {
  width: min(1120px, calc(100vw - 32px));
}

.modal-card-xl {
  width: min(1240px, calc(100vw - 32px));
}

.modal-header {
  padding: 20px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.2rem;
}

.modal-header p {
  margin: 6px 0 0;
  color: var(--zm-muted);
  font-size: 0.9rem;
}

.modal-header-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.modal-body {
  padding: 22px;
}

.modal-footer {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 20px;
}

.modal-close {
  border: 1px solid var(--zm-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--zm-text);
  width: 42px;
  height: 42px;
  border-radius: 14px;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* =========================================================
   14. Shared Utility Blocks
   ========================================================= */

.details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.detail-box {
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.code-box {
  margin: 0;
  padding: 14px;
  border-radius: 12px;
  background: #0b1117;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: auto;
  white-space: pre-wrap;
  color: #dce6ef;
}

.code-box-tall {
  min-height: 180px;
  max-height: 260px;
}

.detail-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--zm-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--zm-text);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.015);
}

.hero-chip span {
  color: var(--zm-muted);
  font-size: 0.9rem;
}

.hero-chip strong {
  color: #fff;
  font-weight: 700;
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}

/* =========================================================
   15. Dashboard Footer
   ========================================================= */

.dashboard-footer {
  margin-top: 40px;
  border-top: 1px solid var(--zm-border);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
}

.dashboard-footer-inner {
  max-width: var(--zm-container);
  margin: 0 auto;
  padding: 18px 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.dashboard-footer p {
  margin: 0;
  color: var(--zm-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.dashboard-footer-links,
.dashboard-footer-links-dashboard {
  display: flex;
  align-items: center;
  gap: 14px 18px;
  flex-wrap: wrap;
}

.dashboard-footer-links a,
.dashboard-footer-links-dashboard a {
  color: var(--zm-muted);
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.dashboard-footer-links a:hover,
.dashboard-footer-links-dashboard a:hover {
  color: var(--zm-text);
}

/* =========================================================
   16. Overview Page
   ========================================================= */

.overview-chart-wrap {
  position: relative;
  overflow: hidden;
}

.overview-chart-empty {
  padding: 24px;
  text-align: center;
  color: #7f8ea3;
  font-size: 0.9rem;
}

.overview-chart-gridline {
  stroke: rgba(255, 255, 255, 0.06);
}

.overview-chart-gridline-strong {
  stroke: rgba(255, 255, 255, 0.12);
}

.overview-chart-axis {
  fill: #7f8ea3;
  font-size: 0.75rem;
}

.overview-chart-tooltip {
  position: absolute;
  z-index: 20;
  min-width: 168px;
  max-width: 220px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(12, 18, 28, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  color: #fff;
  pointer-events: none;
  backdrop-filter: blur(10px);
}

.overview-chart-tooltip.hidden {
  display: none;
}

.overview-chart-bar {
  fill: rgba(216, 155, 43, 0.36);
  transition: all 0.2s ease;
  cursor: pointer;
}

.overview-chart-bar:hover {
  fill: rgba(216, 155, 43, 0.62);
}

.overview-chart-line-min {
  fill: none;
  stroke: rgba(255, 255, 255, 0.38);
  stroke-width: 2;
  stroke-dasharray: 5 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.overview-chart-line-actual {
  fill: none;
  stroke: #d89b2b;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.overview-chart-point-actual {
  fill: #d89b2b;
  cursor: pointer;
}

.overview-chart-line-max,
.overview-chart-line-projection {
  fill: none;
  stroke: #3b82f6;
  stroke-width: 2;
  opacity: 0.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.overview-chart-point-max {
  fill: #3b82f6;
  opacity: 0.6;
  cursor: pointer;
}

.overview-welcome-block {
  margin-top: 14px;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--zm-muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.overview-welcome-block strong {
  color: #fff;
  font-weight: 500;
}

/* =========================================================
   17. Jobs Page
   ========================================================= */

.modal-card-job-launcher {
  width: min(1180px, calc(100vw - 32px));
}

.modal-card-job-details {
  width: min(1240px, calc(100vw - 32px));
}

.job-launcher-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 22px;
  align-items: start;
}

.job-launcher-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.job-launcher-sidebar {
  position: sticky;
  top: 10px;
}

.job-launcher-section,
.job-details-section,
.job-summary-card {
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.job-launcher-section-head h3,
.job-summary-head h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.job-launcher-section-head p,
.job-summary-head p {
  margin: 0 0 14px;
  color: var(--zm-muted);
  font-size: 0.88rem;
}

.job-template-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.job-template-card {
  appearance: none;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--zm-text);
  border-radius: 14px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.job-template-card:hover {
  border-color: rgba(216, 155, 43, 0.20);
  background: rgba(255, 255, 255, 0.045);
}

.job-template-card.active {
  border-color: rgba(216, 155, 43, 0.24);
  background: rgba(216, 155, 43, 0.08);
  box-shadow: 0 0 0 1px rgba(216, 155, 43, 0.08);
}

.job-template-icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--zm-primary);
  font-weight: 700;
}

.job-template-title {
  display: block;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.job-template-copy {
  display: block;
  font-size: 0.84rem;
  color: var(--zm-muted);
  line-height: 1.45;
}

.job-advanced-toggle {
  width: 100%;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--zm-text);
  border-radius: 12px;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 600;
}

.job-advanced-toggle-icon {
  color: var(--zm-primary);
  font-size: 1rem;
}

.job-advanced-panel {
  margin-top: 14px;
}

.job-advanced-actions,
.job-modal-footer-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.job-summary-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.job-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.job-summary-row:last-child {
  border-bottom: 0;
}

.job-summary-row span {
  color: var(--zm-muted);
  font-size: 0.85rem;
}

.job-summary-row strong {
  color: #fff;
  font-size: 0.88rem;
  text-align: right;
  max-width: 58%;
  word-break: break-word;
}

.job-summary-note {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.job-summary-note p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--zm-muted);
  line-height: 1.5;
}

.modal-header-job-details {
  align-items: flex-start;
}

.job-details-header-copy h2 {
  margin: 4px 0 6px;
  font-size: 1.35rem;
}

.job-details-header-copy p {
  margin: 0;
}

.job-details-kicker {
  color: var(--zm-primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.job-details-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 22px;
  align-items: start;
}

.job-details-main,
.job-details-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.job-details-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.job-details-section-head h3 {
  margin: 0;
  font-size: 1rem;
}

.job-details-grid {
  display: grid;
  gap: 14px;
}

.job-details-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.job-details-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.code-box-command {
  min-height: 110px;
}

.artifact-empty {
  color: var(--zm-muted);
  font-size: 0.88rem;
}

.artifact-meta {
  color: var(--zm-muted);
  font-size: 0.8rem;
}

/* =========================================================
   18. Orders Page
   ========================================================= */

.orders-table {
  table-layout: fixed;
}

.orders-table th:nth-child(1),
.orders-table td:nth-child(1) {
  width: 120px;
}

.orders-table th:nth-child(2),
.orders-table td:nth-child(2) {
  width: 110px;
}

.orders-table th:nth-child(3),
.orders-table td:nth-child(3) {
  width: 180px;
}

.orders-table th:nth-child(4),
.orders-table td:nth-child(4) {
  width: 260px;
}

.orders-table th:nth-child(5),
.orders-table td:nth-child(5) {
  width: 150px;
}

.orders-table th:nth-child(6),
.orders-table td:nth-child(6) {
  width: 150px;
}

.orders-table th:nth-child(7),
.orders-table td:nth-child(7) {
  width: 170px;
}

.orders-table td:nth-child(4) {
  overflow: visible;
}

.orders-table td {
  vertical-align: middle;
}

.order-timeline {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
  width: 100%;
}

.order-timeline-segment {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1 1 0;
}

.order-timeline-step {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 52px;
  flex: 0 0 auto;
}

.order-timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  border: 2px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.02);
  transition: all 0.2s ease;
}

.order-timeline-label {
  display: block;
  font-size: 0.72rem;
  line-height: 1.2;
  color: var(--zm-muted);
  text-align: center;
  max-width: 68px;
  white-space: normal;
  word-break: break-word;
}

.order-timeline-step.complete .order-timeline-dot {
  background: rgba(216, 155, 43, 0.95);
  border-color: rgba(216, 155, 43, 1);
  box-shadow: 0 0 0 6px rgba(216, 155, 43, 0.10);
}

.order-timeline-step.complete .order-timeline-label {
  color: #f7d27d;
}

.order-timeline-step.active .order-timeline-dot {
  background: rgba(58, 141, 255, 0.95);
  border-color: rgba(58, 141, 255, 1);
  box-shadow: 0 0 0 6px rgba(58, 141, 255, 0.12);
}

.order-timeline-step.active .order-timeline-label {
  color: #d7e7ff;
  font-weight: 600;
}

.order-timeline-step.cancelled .order-timeline-dot {
  background: rgba(248, 113, 113, 0.95);
  border-color: rgba(248, 113, 113, 1);
  box-shadow: 0 0 0 6px rgba(248, 113, 113, 0.10);
}

.order-timeline-step.cancelled .order-timeline-label {
  color: #fecaca;
  font-weight: 600;
}

.order-timeline-cancelled {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* =========================================================
   19. Nodes Page
   ========================================================= */

.nodes-page .page-hero {
  margin-bottom: 22px;
}

.nodes-toolbar-actions {
  align-items: end;
}

.nodes-grid-wrap {
  margin-top: 18px;
}

.nodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.node-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.028));
  border: 1px solid var(--zm-border);
  border-radius: 20px;
  padding: 20px;
  backdrop-filter: blur(10px);
  box-shadow: var(--zm-shadow);
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.node-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.node-title-wrap {
  min-width: 0;
  flex: 1;
}

.node-name {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  word-break: break-word;
}

.node-subtext {
  margin-top: 6px;
  color: var(--zm-muted);
  font-size: 0.84rem;
  line-height: 1.4;
  word-break: break-word;
}

.node-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.node-highlight-chip {
  min-width: 0;
  padding: 12px 12px 11px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.node-highlight-chip strong {
  display: block;
  margin-top: 4px;
  font-size: 0.9rem;
  line-height: 1.35;
  color: #fff;
  word-break: break-word;
}

.node-highlight-label {
  color: var(--zm-muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.node-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

.node-meta-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.node-meta-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--zm-muted);
}

.node-meta-value {
  color: var(--zm-text);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
  word-break: break-word;
}

.node-footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--zm-border);
  display: grid;
  gap: 8px;
}

.node-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.node-footer-label {
  color: var(--zm-muted);
  font-size: 0.78rem;
}

.node-footer-value {
  color: var(--zm-text);
  font-size: 0.82rem;
  text-align: right;
}

.node-actions-row {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.node-highlights-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.node-financial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.node-financial-card {
  min-width: 0;
  padding: 12px 12px 11px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.node-financial-value {
  display: block;
  margin-top: 6px;
  color: #fff;
  font-size: 1rem;
  line-height: 1.25;
}

.node-highlight-chip.eff-good,
.node-highlight-chip.eff-warn {
  border-color: rgba(216, 155, 43, 0.24);
  background: rgba(216, 155, 43, 0.08);
}

.node-highlight-chip.eff-flat {
  border-color: rgba(255, 255, 255, 0.06);
}

.nodes-detail-grid .detail-box {
  min-height: 88px;
}

.node-info-card {
  min-height: 160px;
}

#nodeDetailModal .modal-card {
  width: min(1120px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
}

#nodeDetailModal .modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-right: 6px;
}

#nodeDetailModal .modal-head > div:first-child {
  min-width: 0;
  flex: 1;
  padding-right: 8px;
}

#nodeDetailModal .modal-head h2 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-weight: 700;
  max-width: 14ch;
  word-break: break-word;
}

#nodeDetailModal .modal-head .section-subtext {
  margin: 0;
  max-width: 64ch;
  line-height: 1.45;
  font-size: 0.9rem;
}

#nodeDetailModal .modal-close {
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
}

#nodeDetailModal .modal-body {
  padding: 20px;
}

#nodeDetailModal .section-card {
  margin-top: 20px;
}

#nodeDetailModal .dashboard-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

#nodeDetailModal .card {
  padding: 16px;
  min-width: 0;
}

#nodeDetailModal .card h3 {
  margin: 0 0 8px;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--zm-muted);
}

#nodeDetailModal .card-value,
#nodeDetailModal .card-value-small {
  font-size: 1rem;
  line-height: 1.45;
  font-weight: 600;
  color: #fff;
  word-break: break-word;
  overflow-wrap: anywhere;
}

#nodeDetailModal .section-subtext {
  max-width: 78ch;
}

#nodeDetailModal .table td,
#nodeDetailModal .table th {
  font-size: 0.84rem;
}

/* =========================================================
   20. Wallet Page
   ========================================================= */

.wallet-table tr.compute_spend td {
  opacity: 0.9;
}

.wallet-table tr.energy_earn td {
  opacity: 1;
}

.stat-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.topup-modal-card,
.withdraw-modal-card {
  padding: 24px;
}

.topup-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
  gap: 22px;
}

.topup-main,
.topup-summary-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--zm-border);
  border-radius: 18px;
  padding: 18px;
}

.topup-preset-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.topup-preset {
  border: 1px solid var(--zm-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--zm-text);
  border-radius: 14px;
  min-height: 48px;
  cursor: pointer;
  font-weight: 600;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.topup-preset:hover {
  border-color: rgba(216, 155, 43, 0.34);
  background: rgba(216, 155, 43, 0.08);
}

.topup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.topup-summary-card h3 {
  margin: 0 0 14px;
}

.topup-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--zm-border);
}

.topup-summary-row:last-of-type {
  border-bottom: 0;
}

.topup-note {
  margin: 14px 0 0;
  color: var(--zm-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* =========================================================
   21. Payouts Page
   ========================================================= */

.payouts-table td .badge {
  white-space: nowrap;
}

.payouts-table .pos {
  color: var(--zm-financial-positive);
  font-weight: 600;
}

.payouts-table .neg {
  color: var(--zm-financial-negative);
  font-weight: 600;
}

/* =========================================================
   22. Responsive
   ========================================================= */

@media (max-width: 1180px) {
  .dashboard-grid-5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .dashboard-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .job-details-layout {
    grid-template-columns: 1fr;
  }

  .job-details-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .orders-table td:nth-child(4),
  .orders-table th:nth-child(4) {
    width: 220px;
  }

  .order-timeline-label {
    max-width: 58px;
    font-size: 0.7rem;
  }

  #nodeDetailModal .dashboard-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-actions {
    justify-content: flex-start;
    min-width: 0;
  }

  .dashboard-grid-3 {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: flex-start;
  }

  .job-launcher-layout {
    grid-template-columns: 1fr;
  }

  .job-launcher-sidebar {
    position: relative;
    top: 0;
  }
}

@media (max-width: 920px) {
  .topup-grid {
    grid-template-columns: 1fr;
  }

  .node-highlights,
  .node-highlights-4,
  .node-financial-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .filters-grid,
  .form-grid-2,
  .form-grid-3,
  .details-grid {
    grid-template-columns: 1fr;
  }

  .form-field-span-2 {
    grid-column: span 1;
  }

  .dashboard-nav {
    flex-wrap: wrap;
  }
}

@media (max-width: 720px) {
  .dashboard-grid-5,
  .dashboard-grid-4 {
    grid-template-columns: 1fr;
  }

  .dashboard-container {
    padding: 30px 16px 50px;
  }

  .page-hero h1 {
    font-size: 1.7rem;
  }

  .dashboard-logo {
    height: 28px;
  }

  .dashboard-nav {
    gap: 6px;
  }

  .dashboard-nav a {
    padding: 9px 10px;
    font-size: 0.88rem;
  }

  .dashboard-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .pagination-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .order-timeline {
    min-width: 220px;
  }

  .nodes-grid {
    grid-template-columns: 1fr;
  }

  .node-specs,
  .details-grid {
    grid-template-columns: 1fr;
  }

  .node-footer-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .node-footer-value {
    text-align: left;
  }
}

@media (max-width: 700px) {
  .job-template-grid,
  .job-details-grid-4,
  .job-details-grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .dashboard-user-badge {
    display: none;
  }

  .topup-preset-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .modal-card,
  #nodeDetailModal .modal-card {
    width: min(100vw - 16px, 1120px);
    margin: 10px auto;
    max-height: calc(100vh - 20px);
  }

  .topup-modal-card,
  .withdraw-modal-card {
    padding: 16px;
  }

  #nodeDetailModal .dashboard-grid-4 {
    grid-template-columns: 1fr;
  }

  #nodeDetailModal .modal-body {
    padding: 16px;
  }

  #nodeDetailModal .modal-head {
    gap: 12px;
    padding-right: 0;
  }

  #nodeDetailModal .modal-head > div:first-child {
    padding-right: 0;
  }

  #nodeDetailModal .modal-head h2 {
    font-size: 1rem;
    max-width: none;
  }

  #nodeDetailModal .modal-head .section-subtext {
    font-size: 0.85rem;
    max-width: none;
  }
}

.mini-spinner {
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 2px solid rgba(148, 163, 184, 0.35);
  border-top-color: #f2b32b;
  border-radius: 50%;
  animation: sc-spin 0.8s linear infinite;
  vertical-align: -1px;
  margin-right: 6px;
}

@keyframes sc-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Jobs table column tuning */
.jobs-table th:nth-child(1),
.jobs-table td:nth-child(1) { width: 12%; }

.jobs-table th:nth-child(2),
.jobs-table td:nth-child(2) { width: 13%; }

.jobs-table th:nth-child(3),
.jobs-table td:nth-child(3) { width: 14%; }

.jobs-table th:nth-child(4),
.jobs-table td:nth-child(4) { width: 9%; }

.jobs-table th:nth-child(5),
.jobs-table td:nth-child(5) { width: 10%; }

.jobs-table th:nth-child(6),
.jobs-table td:nth-child(6) { width: 12%; }

.jobs-table th:nth-child(7),
.jobs-table td:nth-child(7) { width: 10%; }

.jobs-table th:nth-child(8),
.jobs-table td:nth-child(8) { width: 12%; }

.jobs-table th:nth-child(9),
.jobs-table td:nth-child(9) { width: 8%; }

.jobs-table {
  table-layout: fixed;
}

.jobs-table td {
  vertical-align: top;
}

/* Jobs table column tuning - balanced workload layout */
.jobs-table th:nth-child(1),
.jobs-table td:nth-child(1) { width: 11%; }

.jobs-table th:nth-child(2),
.jobs-table td:nth-child(2) { width: 12%; }

.jobs-table th:nth-child(3),
.jobs-table td:nth-child(3) { width: 12%; }

.jobs-table th:nth-child(4),
.jobs-table td:nth-child(4) { width: 11%; }

.jobs-table th:nth-child(5),
.jobs-table td:nth-child(5) { width: 10%; }

.jobs-table th:nth-child(6),
.jobs-table td:nth-child(6) { width: 14%; }

.jobs-table th:nth-child(7),
.jobs-table td:nth-child(7) { width: 9%; }

.jobs-table th:nth-child(8),
.jobs-table td:nth-child(8) { width: 13%; }

.jobs-table th:nth-child(9),
.jobs-table td:nth-child(9) { width: 8%; }

/* Final Jobs table balance + alignment */
.jobs-table {
  table-layout: fixed;
}

.jobs-table th,
.jobs-table td {
  text-align: left;
  vertical-align: top;
}

.jobs-table th:nth-child(1),
.jobs-table td:nth-child(1) { width: 14%; }   /* Job */

.jobs-table th:nth-child(2),
.jobs-table td:nth-child(2) { width: 10%; }   /* Status */

.jobs-table th:nth-child(3),
.jobs-table td:nth-child(3) { width: 10%; }   /* Compute */

.jobs-table th:nth-child(4),
.jobs-table td:nth-child(4) { width: 14%; }   /* Progress */

.jobs-table th:nth-child(5),
.jobs-table td:nth-child(5) { width: 11%; }   /* Runtime */

.jobs-table th:nth-child(6),
.jobs-table td:nth-child(6) { width: 16%; }   /* Cost */

.jobs-table th:nth-child(7),
.jobs-table td:nth-child(7) { width: 7%; }    /* Created */

.jobs-table th:nth-child(8),
.jobs-table td:nth-child(8) { width: 12%; }   /* Command */

.jobs-table th:nth-child(9),
.jobs-table td:nth-child(9) { width: 6%; }    /* Actions */

.jobs-table .status-pill {
  justify-content: flex-start;
}

.jobs-table .progress-cell,
.jobs-table .form-actions-inline {
  justify-content: flex-start;
}

.jobs-table td:last-child,
.jobs-table th:last-child {
  text-align: center;
}

.jobs-table td:last-child .form-actions-inline {
  justify-content: center;
}

.table-subline {
  margin-top: 4px;
  line-height: 1.35;
}


/* Dashboard Jobs Table - left-align compute status */
#jobsBody td:nth-child(3),
.job-summary-compute {
    text-align: left;
}

/* Force Jobs table Compute column content left */
.jobs-table td:nth-child(3),
.jobs-table td:nth-child(3) *,
#jobsBody td:nth-child(3),
#jobsBody td:nth-child(3) * {
  text-align: left !important;
  justify-content: flex-start !important;
  align-items: flex-start !important;
  margin-left: 0 !important;
}

.jobs-table td:nth-child(3) .progress-cell,
#jobsBody td:nth-child(3) .progress-cell {
  width: 100%;
}

/* Jobs table alignment polish - com.au public network */
.jobs-table th,
.jobs-table td {
  text-align: left !important;
  vertical-align: top;
}

.jobs-table th:last-child,
.jobs-table td:last-child {
  text-align: right !important;
}

.jobs-table .form-actions-inline {
  justify-content: flex-end;
}

.jobs-table td:nth-child(7),
.jobs-table th:nth-child(7) {
  text-align: left !important;
  white-space: nowrap;
}

.jobs-table td:nth-child(6),
.jobs-table th:nth-child(6) {
  white-space: nowrap;
}

.jobs-table td:nth-child(8),
.jobs-table th:nth-child(8) {
  white-space: nowrap;
}

.jobs-table .table-subline {
  text-align: inherit;
}

/* Final Jobs table column balance - com.au */
.jobs-table {
  table-layout: fixed;
  width: 100%;
}

.jobs-table th:nth-child(1),
.jobs-table td:nth-child(1) { width: 14%; }

.jobs-table th:nth-child(2),
.jobs-table td:nth-child(2) { width: 11%; }

.jobs-table th:nth-child(3),
.jobs-table td:nth-child(3) { width: 10%; }

.jobs-table th:nth-child(4),
.jobs-table td:nth-child(4) { width: 15%; }

.jobs-table th:nth-child(5),
.jobs-table td:nth-child(5) { width: 11%; }

.jobs-table th:nth-child(6),
.jobs-table td:nth-child(6) { width: 10%; }

.jobs-table th:nth-child(7),
.jobs-table td:nth-child(7) {
  width: 11%;
  text-align: left !important;
}

.jobs-table th:nth-child(8),
.jobs-table td:nth-child(8) { width: 12%; }

.jobs-table th:nth-child(9),
.jobs-table td:nth-child(9) {
  width: 6%;
  text-align: right !important;
}
