/* Fleet Health & Dashboard Styles — High-Fidelity Enterprise Console */

/* 1. Top 4 Modern KPI Cards */
.stat-cards-modern {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
@media (max-width: 1100px) { .stat-cards-modern { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .stat-cards-modern { grid-template-columns: 1fr; } }

.kpi-card-box {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-xs);
  position: relative;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.kpi-card-box:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.kpi-card-content {
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 2;
}

.kpi-icon-square {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.kpi-icon-square.teal {
  background: #ccfbf1;
  color: #0f766e;
}
.kpi-icon-square.blue {
  background: #e0f2fe;
  color: #0284c7;
}
.kpi-icon-square.amber {
  background: #fef3c7;
  color: #d97706;
}
.kpi-icon-square.rose {
  background: #ffe4e6;
  color: #e11d48;
}

.kpi-info {
  display: flex;
  flex-direction: column;
}
.kpi-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}
.kpi-metric-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.kpi-value {
  font-size: 1.75rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-primary);
  line-height: 1.15;
}

.kpi-trend {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
}
.kpi-trend.positive {
  background: #ecfdf5;
  color: #059669;
}
.kpi-trend.danger {
  background: #fff1f2;
  color: #e11d48;
}
.kpi-trend.warning {
  background: #fffbeb;
  color: #d97706;
}

.kpi-subtext {
  font-size: 0.74rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.kpi-sparkline {
  width: 90px;
  height: 32px;
  flex-shrink: 0;
  opacity: 0.85;
}
.kpi-sparkline.teal { color: #0d9488; }
.kpi-sparkline.blue { color: #0284c7; }
.kpi-sparkline.amber { color: #d97706; }
.kpi-sparkline.rose { color: #e11d48; }

/* 2. Middle 2-Column Dashboard Grid */
.dashboard-grid-modern {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
@media (max-width: 1000px) {
  .dashboard-grid-modern { grid-template-columns: 1fr; }
}

.card-modern {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-xs);
}

.card-modern-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.header-with-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-indicator-bar {
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: var(--primary);
}
.card-modern-header h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary);
}
.status-chip-live {
  background: #ecfdf5;
  color: #059669;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid #a7f3d0;
}
.header-meta-status {
  font-size: 0.78rem;
  font-weight: 600;
  color: #059669;
}
.btn-link-action {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  min-height: auto;
}
.btn-link-action:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Operation Metric Tiles & Equalizer Bars */
.operation-metric-tile {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.tile-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tile-icon-wrap.teal {
  background: #ccfbf1;
  color: #0f766e;
}
.tile-icon-wrap.amber {
  background: #fef3c7;
  color: #d97706;
}

.tile-info {
  flex: 1;
  min-width: 0;
}
.tile-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 2px;
}
.tile-number-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.tile-big-num {
  font-size: 1.45rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.tile-histogram-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 32px;
  width: 90px;
  flex-shrink: 0;
}
.tile-histogram-bars span {
  width: 4px;
  border-radius: 2px;
  display: block;
}
.tile-histogram-bars.teal span {
  background: #14b8a6;
}
.tile-histogram-bars.amber span {
  background: #f59e0b;
}

/* Quota Meter in Left Panel */
.quota-meter-container {
  display: flex;
  flex-direction: column;
}
.quota-meter-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.quota-gradient-track {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}
.quota-gradient-fill {
  height: 100%;
  background: var(--primary-gradient);
  border-radius: 999px;
  transition: width .4s ease;
}

/* Subscription Tier Cards Row */
.plan-cards-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
@media (max-width: 650px) {
  .plan-cards-row { grid-template-columns: repeat(2, 1fr); }
}

.tier-mini-card {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.tier-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tier-icon.purple { background: #f3e8ff; color: #9333ea; }
.tier-icon.blue   { background: #e0f2fe; color: #0284c7; }
.tier-icon.emerald{ background: #ecfdf5; color: #059669; }
.tier-icon.amber  { background: #fef3c7; color: #d97706; }

.tier-text {
  display: flex;
  flex-direction: column;
}
.tier-name {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}
.tier-number {
  font-size: 1.15rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-primary);
  line-height: 1.1;
}

/* Health Sub-Cards */
.health-sub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 700px) {
  .health-sub-grid { grid-template-columns: 1fr; }
}

.health-sub-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.sub-card-header {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
.sub-card-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}
.sub-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sub-icon.teal { background: #ccfbf1; color: #0f766e; }
.sub-icon.amber { background: #fef3c7; color: #d97706; }

.sub-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.sub-value {
  font-size: 1.4rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.sub-bar-wrap {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 4px;
}
.sub-bar-fill {
  height: 100%;
  background: var(--primary-gradient);
  border-radius: 999px;
}
.sub-bar-meta {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: right;
}

.btn-micro-link {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
}
.btn-micro-link:hover {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
}

.expiring-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.expiring-bullets li {
  font-size: 0.74rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.bullet-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.bullet-dot.red { background: var(--rose); }
.bullet-dot.amber { background: var(--amber); }
.bullet-dot.yellow { background: #eab308; }

/* 3. Filter Bar & Search Toolbar */
.fleet-filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
  align-items: center;
}
.filter-pill {
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all .15s ease;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  box-shadow: var(--shadow-xs);
}
.filter-pill:hover {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.filter-pill.active {
  background: var(--primary-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 3px 10px rgba(13, 148, 136, 0.3);
}
.filter-pill .count {
  display: inline-block;
  padding: 1px 7px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-mono);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
}
.filter-pill.active .count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.table-toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  align-items: center;
}
.search-wrap {
  position: relative;
  flex: 1;
}
.search-wrap input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  font-size: 0.88rem;
  outline: none;
  box-shadow: var(--shadow-xs);
  transition: all .15s ease;
}
.search-wrap input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.14);
}
.search-wrap .search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
}

/* 4. Tables Styling (Client Directory & Nodes Stream) */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  background: #ffffff;
}
th {
  text-align: left;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-subtle);
  background: #f8fafc;
}
td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}
tr.company-row {
  cursor: pointer;
  transition: background .12s ease;
}
tr.company-row:hover {
  background: #f0fdfa;
}

/* Badges & Status Pills */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.badge-success {
  background: var(--emerald-bg);
  border: 1px solid var(--emerald-border);
  color: var(--emerald-text);
}
.badge-success .badge-dot { background: var(--emerald); }

.badge-warning {
  background: var(--amber-bg);
  border: 1px solid var(--amber-border);
  color: var(--amber-text);
}
.badge-warning .badge-dot { background: var(--amber); }

.badge-danger {
  background: var(--rose-bg);
  border: 1px solid var(--rose-border);
  color: var(--rose-text);
}
.badge-danger .badge-dot { background: var(--rose); }

.badge-neutral, .badge-offline {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #64748b;
}
.badge-neutral .badge-dot, .badge-offline .badge-dot { background: #94a3b8; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.status-pill.online {
  background: #ecfdf5;
  color: #059669;
}
.status-pill.degraded, .status-pill.warning {
  background: #fef3c7;
  color: #d97706;
}
.status-pill.offline {
  background: #fff1f2;
  color: #e11d48;
}
.status-pill.unbound {
  background: #f1f5f9;
  color: #64748b;
}

.key-mono {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.plan-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #f0fdfa;
  border: 1px solid #b6f0e6;
  color: #0d9488;
}

.quota-bar-track {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}
.quota-bar-fill {
  height: 100%;
  background: #0d9488;
  border-radius: 999px;
  transition: width .3s ease;
}
.quota-bar-fill.warn { background: var(--amber); }
.quota-bar-fill.over { background: var(--rose); }

.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* 5. Live Node Activity Stream Table Utilities */
.live-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2);
  display: inline-block;
}

.table-quick-filters {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.table-search-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.8rem;
}
.table-search-pill input {
  border: none;
  background: transparent;
  padding: 0;
  font-size: 0.8rem;
  outline: none;
  width: 140px;
}
.filter-select {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  font-weight: 600;
  background: #f8fafc;
  color: var(--text-secondary);
  cursor: pointer;
  width: auto;
}
.btn-map-view {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  box-shadow: var(--shadow-xs);
}
.btn-map-view:hover {
  background: var(--bg-surface-elevated);
}

.nodes-table-modern {
  width: 100%;
  border-collapse: collapse;
}
.nodes-table-modern th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 700;
  padding: 12px 18px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
}
.nodes-table-modern td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
  font-size: 0.85rem;
}
.nodes-table-modern tr:hover {
  background: #f0fdfa;
  cursor: pointer;
}

.btn-action-dots {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 1px;
}
.btn-action-dots:hover {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
}

/* 6. Super Admin Settings Layout */
.settings-grid-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 900px) {
  .settings-grid-layout { grid-template-columns: 1fr; }
}

.settings-profile-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}
.settings-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.settings-avatar-big {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}
.settings-live-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--emerald);
  border: 2px solid #ffffff;
}

.settings-profile-info {
  display: flex;
  flex-direction: column;
}
.settings-role-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
  margin-bottom: 2px;
}
.settings-email-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.security-spec-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 0.84rem;
}
.spec-label {
  font-weight: 600;
  color: var(--text-secondary);
}
.spec-value {
  font-weight: 700;
  color: var(--text-primary);
}

/* 7. Issue License Studio Layout */
.issue-license-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 960px) {
  .issue-license-grid { grid-template-columns: 1fr; }
}

.issue-col {
  display: flex;
  flex-direction: column;
}

.feature-toggle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 600px) {
  .feature-toggle-grid { grid-template-columns: 1fr; }
}

.feature-toggle-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  cursor: pointer;
  transition: all .15s ease;
  user-select: none;
}
.feature-toggle-card:hover {
  background: #ffffff;
  border-color: var(--primary-border);
  transform: translateY(-1px);
  box-shadow: var(--shadow-xs);
}
.feature-toggle-card input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--primary);
  cursor: pointer;
  margin: 0;
  flex-shrink: 0;
}
.ft-content {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.ft-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}
.ft-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}
.ft-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Topbar CTA & Sidebar Action Badge */
.btn-topbar-cta {
  background: var(--primary-gradient);
  color: #ffffff;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(13, 148, 136, 0.28);
  min-height: 36px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .2s ease;
}
.btn-topbar-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(13, 148, 136, 0.4);
}

.nav-item.nav-item-cta {
  position: relative;
}
.nav-badge-pill {
  margin-left: auto;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  background: #ccfbf1;
  color: #0f766e;
  border-radius: 999px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  letter-spacing: 0.02em;
}
.nav-item.nav-item-cta.active .nav-badge-pill {
  background: var(--primary);
  color: #ffffff;
  border-color: transparent;
}

/* Overview Quick Onboarding Banner */
.overview-action-banner {
  background: linear-gradient(135deg, #f0fdfa 0%, #ffffff 55%, #f8fafc 100%);
  border: 1px solid rgba(13, 148, 136, 0.2);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 2px 10px rgba(13, 148, 136, 0.06);
  position: relative;
  overflow: hidden;
}
.overview-action-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary-gradient);
}
.action-banner-info {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.action-banner-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #ccfbf1;
  color: #0f766e;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(15, 118, 110, 0.15);
}
.action-banner-text h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px;
  line-height: 1.25;
}
.action-banner-text p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}
.action-banner-btns {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.btn-banner-cta {
  min-height: 38px;
  padding: 8px 18px;
  font-size: 0.84rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  white-space: nowrap;
}
.btn-banner-sub {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  white-space: nowrap;
}
@media (max-width: 900px) {
  .overview-action-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .action-banner-btns {
    width: 100%;
    margin-top: 10px;
  }
}




/* Issue licence form: numbered steps, plan cards, summary */
.issue-step { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 0.78rem; font-weight: 800; }
.field-hint { font-size: 0.74rem; color: var(--text-muted); margin-top: 4px; }
.field-optional { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--text-muted); }
.plan-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.plan-choice { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 16px; border: 2px solid var(--border-subtle); border-radius: 12px; background: var(--bg-surface); cursor: pointer; text-align: left; font: inherit; color: var(--text-primary); transition: border-color .15s, box-shadow .15s, background .15s; }
.plan-choice:hover { border-color: var(--border-strong); }
.plan-choice[aria-checked="true"] { border-color: var(--primary); background: var(--primary-subtle); box-shadow: var(--border-glow); }
.plan-choice .pc-name { font-size: 1.05rem; font-weight: 800; }
.plan-choice .pc-line { font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 4px; }
.plan-choice .pc-price { font-size: 0.86rem; font-weight: 700; }
.plan-choice .pc-price small { font-weight: 500; color: var(--text-muted); }
.issue-advanced { margin-top: 16px; border-top: 1px solid var(--border-subtle); padding-top: 12px; }
.issue-advanced summary { cursor: pointer; font-size: 0.84rem; font-weight: 600; color: var(--text-secondary); }
.issue-summary { border: 1px solid var(--border-subtle); border-radius: 10px; padding: 4px 14px; background: var(--bg-surface-elevated); }
.issue-summary-empty { padding: 12px 0; font-size: 0.85rem; color: var(--text-muted); }
.issue-summary .is-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 0.86rem; border-bottom: 1px dashed var(--border-subtle); }
.issue-summary .is-row:last-child { border-bottom: 0; }
.issue-summary .is-row span:first-child { color: var(--text-muted); }
.issue-summary .is-total b { color: var(--primary-hover); font-size: 1.05rem; }
@media (max-width: 600px) { .plan-choice-grid { grid-template-columns: 1fr; } }
#acEmployeePrefix::placeholder { text-transform: none; }

/* Extra-employee counter: - [n] +, quick adds, and the price it adds */
.emp-stepper-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.emp-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--bg-surface); font-size: 1.2rem; font-weight: 700; color: var(--text-primary); cursor: pointer; line-height: 1; }
.emp-btn:hover { border-color: var(--primary); color: var(--primary); }
.emp-stepper input[type="number"] { width: 76px; height: 38px; text-align: center; font-size: 1rem; font-weight: 700; -moz-appearance: textfield; }
.emp-stepper input[type="number"]::-webkit-outer-spin-button,
.emp-stepper input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.emp-quick { display: inline-flex; gap: 6px; margin-left: 4px; }
.emp-quick button { padding: 6px 10px; border-radius: 999px; border: 1px solid var(--border-subtle); background: var(--bg-surface-elevated); font-size: 0.78rem; font-weight: 600; color: var(--text-secondary); cursor: pointer; }
.emp-quick button:hover { border-color: var(--primary); color: var(--primary); }
.emp-summary { margin-top: 8px; font-size: 0.84rem; color: var(--text-secondary); }
.emp-summary b { color: var(--text-primary); }
.emp-summary .emp-price { color: var(--primary-hover); font-weight: 700; }
