/* Sidebar state, Settings workspace, Send action and all-system Running Jobs. */
.marlaine-sidebar-group {
  border-color: transparent !important;
  color: #64748b !important;
  background: transparent !important;
}

.marlaine-sidebar-group:hover {
  border-color: #dbe3ec !important;
  background: #f1f5f9 !important;
  color: #334155 !important;
}

.marlaine-sidebar-group.is-open,
.marlaine-sidebar-group.is-open:hover {
  border-color: #0f172a !important;
  background: #1e293b !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .2);
}

.marlaine-sidebar-item {
  border-color: transparent !important;
  color: #64748b !important;
  background: transparent !important;
}

.marlaine-sidebar-item:not(.is-active):hover {
  border-color: #dbe3ec !important;
  background: #e8eef5 !important;
  color: #0f172a !important;
}

.marlaine-sidebar-item.is-active {
  border-color: #a7f3d0 !important;
  background: #ecfdf5 !important;
  color: #047857 !important;
  box-shadow: inset 3px 0 #10b981 !important;
}

.marlaine-sidebar-item.is-active > span:first-child {
  border-color: #a7f3d0 !important;
  background: rgba(16, 185, 129, .08) !important;
}

.marlaine-sidebar-item.is-active svg {
  color: #059669 !important;
}

html[data-theme="dark"] .marlaine-sidebar-group:hover {
  border-color: rgba(255,255,255,.1) !important;
  background: rgba(255,255,255,.055) !important;
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .marlaine-sidebar-group.is-open,
html[data-theme="dark"] .marlaine-sidebar-group.is-open:hover {
  border-color: #334155 !important;
  background: #020617 !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .38);
}

html[data-theme="dark"] .marlaine-sidebar-item:not(.is-active):hover {
  border-color: rgba(255,255,255,.12) !important;
  background: rgba(255,255,255,.08) !important;
  color: #f8fafc !important;
}

html[data-theme="dark"] .marlaine-sidebar-item.is-active {
  border-color: rgba(52, 211, 153, .28) !important;
  background: rgba(16, 185, 129, .14) !important;
  color: #6ee7b7 !important;
  box-shadow: inset 3px 0 #34d399 !important;
}

html[data-theme="dark"] .marlaine-sidebar-item.is-active > span:first-child {
  border-color: rgba(52, 211, 153, .3) !important;
  background: rgba(16, 185, 129, .1) !important;
}

html[data-theme="dark"] .marlaine-sidebar-item.is-active svg {
  color: #6ee7b7 !important;
}

.marlaine-settings-view {
  background:
    radial-gradient(circle at 8% 0%, rgba(6,182,212,.1), transparent 26rem),
    linear-gradient(180deg, #f4f7fa 0, #eef3f7 100%);
}

.marlaine-settings-hero,
.marlaine-settings-tabs,
.marlaine-settings-panel {
  max-width: 1120px !important;
}

.marlaine-settings-hero {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 24px 26px;
  border: 1px solid #dbe3ec;
  border-radius: 28px;
  background: linear-gradient(135deg, #fff 0%, #f8fbfd 60%, #ecfeff 100%);
  box-shadow: 0 18px 45px rgba(15,23,42,.08);
}

.marlaine-settings-hero__icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(145deg, #0f172a, #334155);
  box-shadow: 0 10px 22px rgba(15,23,42,.22);
}

.marlaine-settings-hero p {
  margin: 0 0 5px;
  color: #0891b2;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.marlaine-settings-hero h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 900;
  letter-spacing: -.035em;
}

.marlaine-settings-hero span {
  display: block;
  margin-top: 7px;
  max-width: 720px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.55;
}

.marlaine-settings-hero b {
  align-self: start;
  padding: 8px 11px;
  border: 1px solid rgba(8,145,178,.2);
  border-radius: 999px;
  background: #ecfeff;
  color: #0e7490;
  font-size: 10px;
  white-space: nowrap;
}

.marlaine-settings-tabs__grid {
  border-radius: 18px !important;
  background: rgba(226,232,240,.9) !important;
  box-shadow: 0 10px 30px rgba(15,23,42,.08) !important;
}

.marlaine-settings-panel {
  box-sizing: border-box;
  border-color: #dbe3ec !important;
  background: rgba(255,255,255,.96) !important;
  box-shadow: 0 20px 48px rgba(15,23,42,.08) !important;
}

html[data-theme="dark"] .marlaine-settings-view {
  background: radial-gradient(circle at 8% 0%, rgba(6,182,212,.08), transparent 28rem), #07090d;
}

html[data-theme="dark"] .marlaine-settings-hero {
  border-color: rgba(255,255,255,.1);
  background: linear-gradient(135deg, #111827, #0b1018);
  box-shadow: 0 18px 45px rgba(0,0,0,.35);
}

html[data-theme="dark"] .marlaine-settings-hero h1 { color: #f8fafc; }
html[data-theme="dark"] .marlaine-settings-hero span { color: #94a3b8; }
html[data-theme="dark"] .marlaine-settings-panel {
  border-color: rgba(255,255,255,.1) !important;
  background: rgba(17,17,20,.97) !important;
}

.production-send-actionbar {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  align-items: center;
  min-height: 78px;
}

.production-send-actionbar__center {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 12px;
  text-align: left;
}

.production-send-actionbar__icon {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 7px;
  min-height: 43px;
  padding: 0 13px;
  border-radius: 13px;
  background: #0f172a;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  box-shadow: 0 9px 20px rgba(15,23,42,.22);
}

.production-send-actionbar__title {
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
}

.production-send-actionbar__meta {
  margin-top: 3px;
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
}

.production-send-actionbar > :last-child {
  grid-column: 3;
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

html[data-theme="dark"] .production-send-actionbar__icon {
  background: #fff;
  color: #020617;
}
html[data-theme="dark"] .production-send-actionbar__title { color: #f8fafc; }

.marlaine-running-jobs [class*="max-h-80"] > div > div:hover {
  background: #f8fafc;
}

html[data-theme="dark"] .marlaine-running-jobs [class*="max-h-80"] > div > div:hover {
  background: rgba(255,255,255,.04);
}

@media (max-width: 780px) {
  .marlaine-settings-view { padding: 20px 14px 90px !important; }
  .marlaine-settings-hero {
    grid-template-columns: auto minmax(0,1fr);
    padding: 20px;
    border-radius: 22px;
  }
  .marlaine-settings-hero b { grid-column: 1 / -1; justify-self: start; }
  .marlaine-settings-panel { padding: 22px !important; border-radius: 22px !important; }
  .production-send-actionbar {
    grid-template-columns: 1fr;
    justify-items: stretch;
    padding: 14px !important;
  }
  .production-send-actionbar__center,
  .production-send-actionbar > :last-child {
    grid-column: 1;
    justify-self: center;
  }
  .production-send-actionbar > :last-child { width: 100%; }
  .production-send-actionbar > :last-child > * { flex: 1; }
}


/* Standalone Revenue Report shortcut beneath Dashboard. */
.marlaine-sidebar-item.marlaine-sidebar-revenue {
  border-color: #fde68a !important;
  background: linear-gradient(135deg, #fffbeb, #fef3c7) !important;
  color: #92400e !important;
  box-shadow: 0 8px 20px rgba(245, 158, 11, .14) !important;
}

.marlaine-sidebar-item.marlaine-sidebar-revenue:not(.is-active):hover {
  border-color: #f59e0b !important;
  background: linear-gradient(135deg, #fef3c7, #fde68a) !important;
  color: #78350f !important;
}

.marlaine-sidebar-item.marlaine-sidebar-revenue > span:first-child {
  border-color: rgba(245, 158, 11, .42) !important;
  background: rgba(245, 158, 11, .13) !important;
}

.marlaine-sidebar-item.marlaine-sidebar-revenue svg {
  color: #d97706 !important;
}

.marlaine-sidebar-item.marlaine-sidebar-revenue.is-active {
  border-color: #f59e0b !important;
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: #fff !important;
  box-shadow: inset 3px 0 #92400e, 0 10px 24px rgba(217, 119, 6, .25) !important;
}

.marlaine-sidebar-item.marlaine-sidebar-revenue.is-active > span:first-child {
  border-color: rgba(255, 255, 255, .34) !important;
  background: rgba(255, 255, 255, .16) !important;
}

.marlaine-sidebar-item.marlaine-sidebar-revenue.is-active svg {
  color: #fff !important;
}

html[data-theme="dark"] .marlaine-sidebar-item.marlaine-sidebar-revenue {
  border-color: rgba(245, 158, 11, .32) !important;
  background: linear-gradient(135deg, rgba(120, 53, 15, .48), rgba(146, 64, 14, .3)) !important;
  color: #fcd34d !important;
}

html[data-theme="dark"] .marlaine-sidebar-item.marlaine-sidebar-revenue:not(.is-active):hover {
  border-color: rgba(251, 191, 36, .58) !important;
  background: linear-gradient(135deg, rgba(146, 64, 14, .62), rgba(120, 53, 15, .52)) !important;
  color: #fde68a !important;
}

html[data-theme="dark"] .marlaine-sidebar-item.marlaine-sidebar-revenue.is-active {
  border-color: #f59e0b !important;
  background: linear-gradient(135deg, #f59e0b, #b45309) !important;
  color: #fff !important;
  box-shadow: inset 3px 0 #fcd34d, 0 10px 26px rgba(245, 158, 11, .24) !important;
}

html[data-theme="dark"] .marlaine-sidebar-item.marlaine-sidebar-revenue.is-active > span:first-child {
  border-color: rgba(255, 255, 255, .34) !important;
  background: rgba(255, 255, 255, .14) !important;
}

html[data-theme="dark"] .marlaine-sidebar-item.marlaine-sidebar-revenue.is-active svg {
  color: #fff !important;
}
