body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f5f5;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1200px;
  margin: 40px auto;
  background: #ffffff;
  padding: 20px 24px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border-radius: 6px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

header h1 {
  margin: 0;
}

header .meta span {
  margin-right: 12px;
}

header .meta a {
  text-decoration: none;
  color: #007acc;
}

.status-summary {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.chart-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.chart-block {
  width: 100%;
}

.chart-block canvas {
  width: 100%;
  display: block;
}

.status-card {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid #ddd;
  background: #fafafa;
  min-width: 120px;
}

.status-card .label {
  font-size: 12px;
  color: #555;
  margin-bottom: 4px;
}

.status-card .count {
  font-size: 18px;
  font-weight: 600;
}

.jobs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.jobs-table th,
.jobs-table td {
  border: 1px solid #ddd;
  padding: 6px 8px;
}

.jobs-table th {
  background: #fafafa;
  text-align: left;
}

.jobs-table tr:nth-child(even) {
  background: #fcfcfc;
}

.run-now-button {
  white-space: nowrap;
  padding: 4px 8px;
  border: 1px solid #9ca3af;
  border-radius: 4px;
  background: #ffffff;
  color: #111827;
  cursor: pointer;
}

.run-now-button:hover:not(:disabled) {
  background: #eef2ff;
  border-color: #6366f1;
}

.run-now-button:disabled {
  color: #6b7280;
  cursor: wait;
}

.run-now-status {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.2;
}

.run-now-ok {
  color: #166534;
}

.run-now-error {
  color: #991b1b;
}

.ivt-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #ffffff;
}

.ivt-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #374151;
  font-size: 13px;
}

.ivt-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.primary-action {
  padding: 6px 10px;
  border: 1px solid #2563eb;
  border-radius: 4px;
  background: #2563eb;
  color: #ffffff;
  cursor: pointer;
}

.primary-action:hover:not(:disabled) {
  background: #1d4ed8;
}

.primary-action:disabled {
  background: #9ca3af;
  border-color: #9ca3af;
  cursor: wait;
}

.secondary-action {
  padding: 6px 10px;
  border: 1px solid #9ca3af;
  border-radius: 4px;
  background: #ffffff;
  color: #111827;
  cursor: pointer;
}

.secondary-action:hover {
  background: #f1f5f9;
}

.notice-box,
.error-box {
  margin: 0 0 16px 0;
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 14px;
}

.notice-box {
  border: 1px solid #86efac;
  background: #f0fdf4;
  color: #166534;
}

.error-box {
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.tool-panel {
  margin: 18px 0 22px 0;
  padding: 14px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #ffffff;
}

.transcoder-form {
  display: grid;
  gap: 12px;
  max-width: 980px;
}

.transcoder-form label {
  display: grid;
  gap: 5px;
  color: #374151;
  font-size: 13px;
}

.transcoder-form input[type="text"],
.transcoder-form input[type="url"],
.transcoder-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 7px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #ffffff;
  color: #111827;
  font: inherit;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 12px;
}

.checkbox-row {
  display: inline-flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px !important;
}

.progress-bar {
  width: 160px;
  height: 10px;
  margin-bottom: 4px;
  border-radius: 4px;
  background: #e5e7eb;
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  background: #2563eb;
}

.transcoder-state {
  border-left: 6px solid #94a3b8;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.transcoder-state.state-idle,
.status-pill.state-idle,
.status-pill.state-neutral {
  border-color: #94a3b8;
}

.transcoder-state.state-idle,
.transcoder-state.state-neutral {
  background: #f8fafc;
}

.transcoder-state.state-processing,
.transcoder-state.state-queued,
.transcoder-state.state-downloading,
.transcoder-state.state-probing,
.transcoder-state.state-transcoding,
.transcoder-state.state-uploading {
  border-left-color: #2563eb;
  background: #dbeafe;
  color: #1e3a8a;
}

.transcoder-state.state-error {
  border-left-color: #dc2626;
  background: #fee2e2;
  color: #7f1d1d;
}

.transcoder-state.state-done {
  border-left-color: #16a34a;
  background: #dcfce7;
  color: #14532d;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 3px 9px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.status-pill.state-accepted,
.status-pill.state-queued,
.status-pill.state-probing {
  border-color: #d97706;
  background: #f59e0b;
  color: #ffffff;
}

.status-pill.state-downloading,
.status-pill.state-transcoding,
.status-pill.state-uploading,
.status-pill.state-processing {
  border-color: #1d4ed8;
  background: #2563eb;
  color: #ffffff;
}

.status-pill.state-done {
  border-color: #15803d;
  background: #16a34a;
  color: #ffffff;
}

.status-pill.state-error {
  border-color: #b91c1c;
  background: #dc2626;
  color: #ffffff;
}

.transcoder-row {
  box-shadow: inset 5px 0 0 #cbd5e1;
}

.transcoder-row.state-done {
  background: #ecfdf5 !important;
  box-shadow: inset 5px 0 0 #16a34a;
}

.transcoder-row.state-error {
  background: #fef2f2 !important;
  box-shadow: inset 5px 0 0 #dc2626;
}

.transcoder-row.state-accepted,
.transcoder-row.state-queued,
.transcoder-row.state-probing {
  background: #fffbeb !important;
  box-shadow: inset 5px 0 0 #f59e0b;
}

.transcoder-row.state-downloading,
.transcoder-row.state-transcoding,
.transcoder-row.state-uploading,
.transcoder-row.state-processing {
  background: #eff6ff !important;
  box-shadow: inset 5px 0 0 #2563eb;
}

.transcoder-row.state-error .progress-bar span {
  background: #dc2626;
}

.transcoder-row.state-done .progress-bar span {
  background: #16a34a;
}

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

.transcoder-table a {
  display: inline-block;
  margin-right: 8px;
  color: #2563eb;
}

.transcoder-history-controls {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 12px 0;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #ffffff;
}

.transcoder-history-controls label {
  display: grid;
  gap: 4px;
  color: #374151;
  font-size: 12px;
}

.transcoder-history-controls input,
.transcoder-history-controls select {
  min-width: 130px;
  padding: 6px 7px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #ffffff;
  color: #111827;
  box-sizing: border-box;
}

.transcoder-history-controls input[type="search"] {
  min-width: 190px;
}

.history-count {
  color: #4b5563;
  font-size: 13px;
  white-space: nowrap;
}

.history-load-more {
  margin-top: 10px;
}

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

.ivt-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.ivt-filters input,
.ivt-threshold-input,
.ivt-advertiser-mode {
  padding: 5px 7px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #ffffff;
  box-sizing: border-box;
}

.ivt-filters input {
  width: 190px;
}

.ivt-threshold-input {
  width: 90px;
}

.ivt-percent-field {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ivt-percent-field span {
  color: #4b5563;
  font-size: 13px;
}

.ivt-config-table td {
  vertical-align: middle;
}

.ivt-advertiser-row {
  background: #eef2ff;
}

.ivt-channel-row {
  background: #eef2ff;
}

.ivt-campaign-row,
.ivt-source-row {
  display: none;
}

.ivt-campaign-name,
.ivt-source-name {
  padding-left: 38px !important;
}

.ivt-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.ivt-toggle {
  width: 24px;
  height: 24px;
  margin-right: 6px;
  border: 1px solid #9ca3af;
  border-radius: 4px;
  background: #ffffff;
  cursor: pointer;
}

.ivt-count {
  margin-left: 8px;
  color: #6b7280;
  font-size: 12px;
}

.status-success {
  background-color: #e6ffed;
}

.status-failed {
  background-color: #ffe6e6;
}

.status-missing {
  background-color: #fff9e6;
}

.status-unknown {
  background-color: #f0f0f0;
}

.login-form {
  max-width: 300px;
}

.login-form label {
  display: block;
  margin-top: 10px;
}

.login-form input {
  width: 100%;
  padding: 6px;
  margin-top: 4px;
  box-sizing: border-box;
}

.login-form button {
  margin-top: 16px;
  padding: 8px 12px;
}

.error {
  background: #ffe6e6;
  border: 1px solid #ffb3b3;
  color: #990000;
  padding: 8px;
  margin-bottom: 10px;
}

.success {
  background: #e6ffed;
  border: 1px solid #9ae6b4;
  color: #166534;
  padding: 8px;
  margin-bottom: 10px;
}

.super-admin-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(260px, 1.4fr);
  gap: 14px;
  align-items: start;
  padding: 14px;
  margin-bottom: 18px;
  border: 1px solid rgba(245, 158, 11, 0.38);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.13), rgba(45, 212, 191, 0.06));
}

.super-admin-panel h2 {
  margin: 0 0 6px;
}

.super-admin-panel p {
  margin: 0;
  color: #4b5563;
}

.super-admin-list {
  display: grid;
  gap: 8px;
}

.super-admin-card {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(245, 158, 11, 0.32);
  border-radius: 8px;
  background: #ffffff;
}

.super-admin-card > span {
  color: #64748b;
  font-size: 13px;
}

.user-form {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.user-form label,
.inline-user-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: #374151;
}

.user-form input,
.user-form select,
.inline-user-form input,
.inline-user-form select {
  padding: 5px 7px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #ffffff;
  box-sizing: border-box;
}

.checkbox-label {
  align-items: center !important;
  flex-direction: row !important;
  gap: 6px !important;
  white-space: nowrap;
}

.inline-user-form,
.inline-delete-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 2px 0;
}

.page-permissions {
  flex-basis: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #f8fafc;
}

.page-permissions-title {
  grid-column: 1 / -1;
  font-weight: 600;
  color: #111827;
}

.inline-page-permissions {
  margin-top: 8px;
}

.danger-button {
  border: 1px solid #991b1b;
  background: #ffffff;
  color: #991b1b;
  border-radius: 4px;
  padding: 4px 8px;
  cursor: pointer;
}

.danger-button:hover {
  background: #fee2e2;
}

.pill {
  display: inline-block;
  padding: 2px 6px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  line-height: 1.2;
  margin: 1px 2px;
  white-space: nowrap;
}

.super-admin-pill {
  border-color: rgba(245, 158, 11, 0.55);
  background: rgba(245, 158, 11, 0.15);
  color: #92400e;
  font-weight: 700;
}

.layout {
  display: flex;
}

.sidebar {
  width: 180px;
  background: #1f2933;
  color: #ffffff;
  padding: 16px 12px;
  border-radius: 6px 0 0 6px;
}

.sidebar h2 {
  font-size: 16px;
  margin: 0 0 12px 0;
}

.sidebar a {
  display: block;
  color: #ffffff;
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 4px;
  margin-bottom: 4px;
  font-size: 14px;
}

.sidebar a:hover {
  background: #000000;
}

.sidebar .sidebar-section {
  margin-top: 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ca3af;
}

.main-content {
  flex: 1;
  margin-left: 16px;
}


body {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 200px;
  background: #000000;
  color: #ffffff;
  padding: 20px 12px;
  box-shadow: 2px 0 4px rgba(0,0,0,0.1);
}

.page-wrapper {
  flex: 1;
  padding: 24px;
}

.sidebar h2 {
  font-size: 16px;
  margin: 0 0 16px 8px;
}

.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav > li {
  margin-bottom: 4px;
}

.sidebar-link {
  display: block;
  color: #ffffff;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 14px;
}

.sidebar-link.active {
  border-left: 3px solid #ffffff;
  font-weight: 600;
  background: #333333;
  color: #ffffff;
}

.sidebar-link:hover {
  border-left: 3px solid rgba(255,255,255,0.4);
  background: #444444;
}

.sidebar-subnav {
  list-style: none;
  padding-left: 16px;
  margin: 4px 0 6px 0;
}

.sidebar-subnav li {
  margin-bottom: 2px;
}

.sidebar-subnav .sidebar-link {
  font-size: 13px;
  padding: 5px 10px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}


body {
  display: flex;
  min-height: 100vh;
  margin: 0;
}

.sidebar {
  width: 220px;
  background: #000000;
  color: #ffffff;
  padding: 20px 12px;
  box-shadow: 2px 0 4px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}

.page-wrapper {
  flex: 1;
  padding: 24px;
}

.sidebar-toggle {
  position: fixed;
  top: 12px;
  left: 230px;
  z-index: 1000;
  background: #000000;
  color: #ffffff;
  border: 1px solid #444444;
  border-radius: 3px;
  padding: 2px 6px;
  cursor: pointer;
}

body.sidebar-collapsed .sidebar {
  width: 0;
  padding: 0;
  overflow: hidden;
}

body.sidebar-collapsed .sidebar-toggle {
  left: 10px;
}

/* Refined dashboard side navigation */
.sidebar {
  width: 236px;
  box-sizing: border-box;
  min-height: 100vh;
  padding: 18px 12px;
  background:
    linear-gradient(180deg, rgba(20, 184, 166, 0.10), rgba(245, 158, 11, 0.05) 48%, rgba(17, 24, 39, 0) 100%),
    #101418;
  color: #f8fafc;
  border-right: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 6px 0 18px rgba(15, 23, 42, 0.14);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar h2 {
  margin: 0 8px 8px;
  padding: 0 0 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.20);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-nav > li {
  margin: 0;
}

.sidebar-nav > li:has(.sidebar-subnav) {
  padding: 5px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.sidebar-link,
.sidebar a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 34px;
  box-sizing: border-box;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #dbeafe;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.2;
  overflow-wrap: anywhere;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.sidebar-nav > li:has(.sidebar-subnav) > .sidebar-link::after {
  content: "v";
  margin-left: auto;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 700;
}

.sidebar-link:hover,
.sidebar a:hover {
  border-color: rgba(45, 212, 191, 0.34);
  background: rgba(45, 212, 191, 0.10);
  color: #ffffff;
}

.sidebar-link.active,
.sidebar a.active {
  border-color: rgba(45, 212, 191, 0.56);
  background: #0f766e;
  color: #ffffff;
  font-weight: 700;
  box-shadow: inset 3px 0 0 #f59e0b;
}

.sidebar-subnav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 6px 0 0;
  padding: 7px 0 0 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  border-left: 1px solid rgba(45, 212, 191, 0.28);
  list-style: none;
}

.sidebar-subnav li {
  margin: 0;
}

.sidebar-subnav .sidebar-link {
  min-height: 28px;
  padding: 6px 9px;
  border-radius: 6px;
  color: #cbd5e1;
  font-size: 13px;
}

.sidebar-subnav .sidebar-link::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-right: 8px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.55);
  flex: 0 0 auto;
}

.sidebar-subnav .sidebar-link.active {
  background: rgba(20, 184, 166, 0.20);
  color: #ffffff;
  box-shadow: none;
}

.sidebar-subnav .sidebar-link.active::before {
  background: #f59e0b;
}

.sidebar .sidebar-section {
  margin: 14px 8px 5px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sidebar-toggle {
  left: 244px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(45, 212, 191, 0.42);
  border-radius: 6px;
  background: #111827;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.20);
}

.sidebar-toggle:hover {
  background: #0f766e;
}

.sidebar-nav > li.sidebar-group {
  padding: 5px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  transition: background-color 120ms ease, border-color 120ms ease;
}

.sidebar-nav > li.sidebar-group:hover,
.sidebar-nav > li.sidebar-group.sidebar-group-active,
.sidebar-nav > li.sidebar-group:not(.sidebar-group-collapsed) {
  border-color: rgba(45, 212, 191, 0.42);
  background: rgba(45, 212, 191, 0.08);
}

.sidebar-nav > li.sidebar-group > .sidebar-link {
  cursor: pointer;
}

.sidebar-nav > li.sidebar-group > .sidebar-link:hover,
.sidebar-nav > li.sidebar-group.sidebar-group-active > .sidebar-link,
.sidebar-nav > li.sidebar-group:not(.sidebar-group-collapsed) > .sidebar-link {
  border-color: rgba(45, 212, 191, 0.44);
  background: rgba(15, 118, 110, 0.36);
  color: #ffffff;
}

.sidebar-nav > li.sidebar-group > .sidebar-link::after {
  content: "v";
  margin-left: auto;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 700;
}

.sidebar-nav > li.sidebar-group:not(.sidebar-group-collapsed) > .sidebar-link::after {
  content: "^";
  color: #5eead4;
}

.sidebar-nav > li.sidebar-group.sidebar-group-collapsed .sidebar-subnav {
  display: none;
}

.sidebar .sidebar-playgrounds-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(245, 158, 11, 0.28);
  color: #fbbf24;
}

.sidebar-nav > li.sidebar-playgrounds {
  border-color: rgba(245, 158, 11, 0.36);
  background:
    linear-gradient(180deg, rgba(245, 158, 11, 0.16), rgba(45, 212, 191, 0.05)),
    rgba(255, 255, 255, 0.035);
}

.sidebar-nav > li.sidebar-playgrounds:hover,
.sidebar-nav > li.sidebar-playgrounds.sidebar-group-active,
.sidebar-nav > li.sidebar-playgrounds:not(.sidebar-group-collapsed) {
  border-color: rgba(245, 158, 11, 0.62);
  background:
    linear-gradient(180deg, rgba(245, 158, 11, 0.22), rgba(45, 212, 191, 0.08)),
    rgba(255, 255, 255, 0.045);
}

.sidebar-nav > li.sidebar-playgrounds > .sidebar-link:hover,
.sidebar-nav > li.sidebar-playgrounds.sidebar-group-active > .sidebar-link,
.sidebar-nav > li.sidebar-playgrounds:not(.sidebar-group-collapsed) > .sidebar-link {
  border-color: rgba(245, 158, 11, 0.52);
  background: rgba(146, 64, 14, 0.42);
}

.sidebar-nav > li.sidebar-playgrounds .sidebar-subnav {
  border-left-color: rgba(245, 158, 11, 0.42);
}

.sidebar-nav > li.sidebar-account-start {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.20);
}

.publisher-ivt-form {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}

.publisher-ivt-form label {
  display: grid;
  gap: 4px;
  color: #374151;
  font-size: 13px;
}

.publisher-ivt-form input[type="date"],
.publisher-ivt-form input[type="number"],
.publisher-ivt-filters input[type="search"] {
  box-sizing: border-box;
  padding: 6px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #ffffff;
}

.publisher-ivt-summary .status-card {
  min-width: 145px;
}

.publisher-ivt-table .numeric {
  text-align: right;
  white-space: nowrap;
}

.publisher-ivt-table .compact-cell {
  max-width: 260px;
  font-size: 12px;
  color: #374151;
  overflow-wrap: anywhere;
}

.blocked-bundles-toolbar,
.blocked-bundles-note,
.blocked-bundles-filters {
  margin-bottom: 14px;
}

.blocked-bundles-summary {
  flex-wrap: wrap;
}

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

.blocked-bundles-table {
  min-width: 1180px;
}

.blocked-bundles-table code {
  font-size: 12px;
}

.publisher-ivt-detail {
  margin: 18px 0;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #ffffff;
}

.publisher-ivt-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.publisher-ivt-detail h2 {
  margin: 0 0 4px 0;
  font-size: 18px;
}

.compact-form {
  flex-shrink: 0;
}

.compact-form select {
  padding: 6px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #ffffff;
}

.table-action {
  display: inline-block;
  white-space: nowrap;
  text-decoration: none;
}

.toggle-demand {
  width: 24px;
  height: 24px;
  border: 1px solid #9ca3af;
  border-radius: 4px;
  background: #ffffff;
  cursor: pointer;
}

.nested-demand-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  background: #f8fafc;
}

.nested-demand-table th,
.nested-demand-table td {
  border: 1px solid #e5e7eb;
  padding: 5px 6px;
}

.nested-demand-table th {
  background: #eef2f7;
  text-align: left;
}

.muted {
  color: #6b7280;
}

.yarden-lab {
  display: grid;
  gap: 14px;
  max-width: 920px;
}

.yarden-lab-card,
.yarden-lab-tile {
  box-sizing: border-box;
  border: 1px solid #dbe3ec;
  border-radius: 8px;
  background: #ffffff;
}

.yarden-lab-card {
  padding: 18px;
}

.yarden-lab-card h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.yarden-lab-card p {
  margin: 0;
  color: #4b5563;
}

.yarden-lab-card p + p {
  margin-top: 8px;
}

.yarden-lab-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 10px;
}

.yarden-lab-tile {
  min-height: 78px;
  padding: 12px;
}

.yarden-lab-tile .label {
  margin-bottom: 6px;
  color: #64748b;
  font-size: 12px;
}

.yarden-lab-tile .value {
  color: #111827;
  font-size: 22px;
  font-weight: 700;
}
