@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes toastSlideIn {
  0% {
    transform: translateX(120%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

/* ==================== Root & Global Flex Layout ==================== */

:root {
  --base-font: 15px;
  --scale: 1;
  --font-primary: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "Courier New", "Lucida Console", monospace;
  --bg-primary: #0a0a0a;
  --bg-secondary: #1a1a1a;
  --bg-dark: #0f0f1f;
  --chrome-light: #e0e0e0;
  --chrome-mid: #b0c4de;
  --glow-cyan: #00ffff;
  --glow-cyan-soft: rgba(0, 255, 255, 0.3);
  --glow-cyan-medium: rgba(0, 255, 255, 0.5);
  --glow-cyan-strong: rgba(0, 255, 255, 0.8);
  --shadow-neon: 0 4px 20px rgba(0, 255, 255, 0.3);
}

html, 
body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;           /* Prevent double scrollbars */
  background-color: var(--bg-primary);
  color: var(--chrome-light);
  font-family: var(--font-primary);
  /*font-family: "Jost", sans-serif; */
  /* font-family: "Courier New", "Lucida Console", monospace; */
  font-size: clamp(0.5rem, 1.32vw, 1.5rem);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  display: flex;
  flex-direction: column;
}

/* Main wrapper that contains navbar + content */
.main-content-wrapper {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

/* Main content area (where tabs live) */
.main-content,
.tab-content {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  padding-bottom: 0.5rem;
  display: flex;
  flex-direction: column;
}

/* Allow inner scrollable areas to shrink properly */
.ordo-table-container,
.table-responsive,
.docs-content,
#dashboard .content,
#settings .content {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  overflow-y: auto;
  overflow-x: auto;
}

/* ==================== Docs Tab Specific ==================== */

/*
#docs .tab-content {
  display: flex;
  padding: 0;
  overflow: hidden;
}

.docs-sidebar {
  flex: 0 0 260px;
  flex-shrink: 1;
  min-width: 200px;
  max-width: 320px;
  overflow-y: auto;
  padding: 1.5rem 1.25rem 2rem 1.5rem;
  border-right: 1px solid #333;
  margin-left: 1rem;
}

.docs-content {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  overflow-y: auto;
  padding: 1.5rem 2.5rem 3rem;
}

@media (max-width: 1200px) {
  .docs-sidebar { flex: 0 0 240px; min-width: 190px; }
}

@media (max-width: 1000px) {
  .docs-sidebar { flex: 0 0 220px; min-width: 180px; }
}

@media (max-width: 850px) {
  .docs-sidebar { flex: 0 0 200px; min-width: 170px; }
}

*/

.title-large,
h1 {
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
}
.title-medium,
h2 {
  font-size: clamp(1.375rem, 4vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
}
h3 {
  font-size: 1.45rem;
}
h4 {
  font-size: 1.25rem;
}
.help-text,
.text-grey,
small {
  font-weight: 400;
}
.btn,
.ordo-table tbody tr {
  cursor: pointer;
}
.input,
.textarea,
select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  background: #222;
  border: 1px solid #444;
  border-radius: 4px;
  color: #fff;
}
.input:focus,
.textarea:focus,
select:focus {
  outline: 0;
  border-color: var(--glow-cyan);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}
.btn {
  padding: clamp(0.35rem, 1vw, 0.6rem) clamp(0.75rem, 1.5vw, 1.25rem);
  font-size: clamp(0.875rem, 1.8vw, 1rem);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.btn-primary {
  background: var(--glow-cyan);
  color: #0a0a0a;
  border: 1px solid var(--glow-cyan);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.6);
}
.btn-primary:hover {
  background: #00f0f0;
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.9);
  transform: translateY(-1px);
}
.btn-ghost {
  background: 0 0;
  border: 1px solid #444;
  color: var(--chrome-light);
}
.btn-ghost:hover {
  background: rgba(0, 255, 255, 0.1);
  border-color: var(--glow-cyan);
}
.app-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem 4rem;
  z-index: 6000;
}
.app-modal.active {
  display: flex;
}
.app-modal .modal-dialog {
  width: 90%;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.app-modal .modal-header {
  flex-shrink: 0;
}
.app-modal .modal-body {
  flex: 1 1 auto;
  min-height: 0;
}
.app-modal .modal-footer {
  flex-shrink: 0;
  background: #222;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}
.ordo-table {
  width: 100%;
  color: #e0e0e0;
  font-size: 0.95rem;
}
.ordo-table thead {
  z-index: 10;
}
.ordo-table thead th {
  text-align: left;
  white-space: nowrap;
  top: 0;
  background: #0f0f1f;
  color: var(--glow-cyan);
  background: #0a0a0a;
  background: #111827;
  background: #0f172a;
  color: #67e8f9;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  padding: 1rem;
  font-weight: 600;
  border-bottom: 2px solid #22d3ee;
  z-index: 20;
}
.ordo-table tbody td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #333;
  vertical-align: middle;
}
.ordo-table tbody tr:hover {
  background: rgba(0, 255, 255, 0.08);
  background: rgba(0, 255, 255, 0.1) !important;
  background: rgba(0, 255, 255, 0.09) !important;
  background: rgba(103, 232, 249, 0.08) !important;
  transition: background 0.15s ease;
  background: rgba(103, 232, 249, 0.1) !important;
}
.ordo-table--tree td:first-child {
  position: relative;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: visible;
  padding-left: calc(var(--depth) * 1.75rem + 1.25rem) !important;
  font-weight: 500;
  color: #e2e8f0;
}
#graph-modal .modal-dialog.full {
  max-width: 98vw;
  max-height: 96vh;
}
#graph-modal #graph-container {
  flex: 1 1 auto;
  min-height: 30rem;
  border: 1px solid #334155;
  border-radius: 0.75rem;
  background: #0f172a;
}

/* ==================== COMPACT DEPENDENCY GRAPH LEGEND ==================== */
.graph-legend {
  position: absolute;
  bottom: 22px;
  right: 22px;
  background: rgba(12, 12, 18, 0.96);
  border: 1px solid #444;
  border-radius: 8px;
  padding: 10px 14px;
  box-shadow: 0 0 22px rgba(0, 255, 255, 0.25);
  z-index: 1000;
  min-width: 205px;
  font-size: 0.84rem;
  line-height: 1.35;
}

.graph-legend-title {
  font-weight: 700;
  color: #00ffff;
  margin-bottom: 8px;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
}

.legend-svg {
  flex-shrink: 0;
}

/* Colors matching your Cytoscape graph */
.legend-needs     .legend-line { background: #ff3366; }   /* Red - needs */
.legend-needs-any .legend-line { background: #00ff9d; }   /* Green - needs_any */
.legend-on-fail   .legend-line { background: #ffaa00; }   /* Orange - on_fail */

.card-simple {
  background: #1a1a1a;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 1rem;
  flex: 1 1 auto;
/*
  flex: 1 1 260px;
  min-width: 180px;
*/
}
::-webkit-scrollbar-thumb:hover {
  background: #00c0c0;
}
.text-center {
  text-align: center;
}
.mt-medium {
  margin-top: 1rem;
}
.mt-large {
  margin-top: 2.5rem;
}
.docs-content p,
.mb-medium {
  margin-bottom: 1.25rem;
}
.mb-large {
  margin-bottom: 2rem;
}
.modal-body .script-textarea {
  background: #111 !important;
}
.script-textarea {
  width: 100%;
  box-shadow: 0 0 8px rgba(0, 255, 255, 0.08);
}
.script-textarea:focus {
  border-color: #0ff;
  outline: 0;
}
.clear-script-btn {
  display: none;
}

/* Template Row - Label + Dropdown on same line */
.template-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.template-label {
  font-size: 0.9rem;
  color: #888;
  white-space: nowrap;
  flex-shrink: 0;
}

.template-select {
  flex: 1;
  padding-top: 0.45rem;
  padding-bottom: 0.1rem;
  background: #1a1a1a;
  color: #e0e0e0;
  border-radius: 4px;
  font-size: 0.95rem;
}
.internal-tabs {
  display: flex;
  gap: 1rem;
  justify-content: center;
/*
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
*/
}
.internal-tab {
  padding: 0.75rem 1.25rem;
  background: 0 0;
  border: 0;
  color: var(--chrome-mid);
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.25s ease;
  position: relative;
}

/*
.internal-tab:hover {
  color: #fff;
  background: rgba(0, 255, 255, 0.1);
}
*/

.internal-tab.active {
  color: var(--glow-cyan);
}
.internal-tab.active::after,
.nav-tab.active::after {
  content: "";
  position: absolute;
  bottom: -0.1rem;
  left: 0;
  width: 100%;
  height: 0.3rem;
  background: var(--glow-cyan);
}
.info-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1rem 2rem;
  align-items: center;
  margin-bottom: 1.5rem;
}
.info-grid .label-bold {
  text-align: right;
  white-space: nowrap;
  font-weight: 600;
  color: var(--chrome-mid);
}
.token-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.token-row input {
  flex: 1;
  font-family: monospace;
  font-size: 0.95rem;
  background: #111;
  border: 1px solid #444;
}
#account-tier,
#save-account {
  font-weight: 700;
  border: 1px solid var(--glow-cyan);
}
#account-tier {
  font-size: 1.1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  background: rgba(0, 255, 255, 0.1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
}
#save-account {
  background: var(--glow-cyan);
  color: #0a0a0a;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}
#save-account:hover {
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.6);
  transform: translateY(-1px);
}
progress {
  background: #222;
  height: 1.25rem;
  border-radius: 999px;
  border: 1px solid #444;
  width: 100%;
}
progress::-webkit-progress-bar {
  background: #222;
  border-radius: 999px;
}
progress::-webkit-progress-value {
  border-radius: 999px;
  background: var(--glow-cyan);
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.5);
}
#team-table th {
  background: #0f0f1f;
  color: var(--glow-cyan);
}
#team-body tr,
#team-table th {
  text-align: left;
}
#job-modal .modal-title {
  color: #0ff;
}
#cluster-modal #cluster-on-fail .item,
#job-modal #job-on-fail .item,
#job-modal #job-server .item {
  background: #1e1e1e;
  border: 1px solid #555;
  color: #b0e0ff;
  border-radius: 6px;
  padding: 0.4rem 0.8rem;
  margin: 0.3rem;
  font-size: 0.95rem;
}
#cluster-modal #cluster-on-fail .remove,
#job-modal #job-on-fail .remove,
#job-modal #job-server .remove,
.ordo-table--tree tr.hidden {
  display: none;
}
.script-wrapper {
  position: relative;
  width: 100%;
}
.script-textarea {
  min-height: 10rem;
  resize: vertical;
  font-family: "Courier New", monospace;
  font-size: 0.95rem;
  line-height: 1.5;
  padding: 0.75rem 2.2rem 0.75rem 0.9rem;
  background: #1a1a1a;
  border: 1px solid #555;
  color: #e0e0e0;
  border-radius: 4px;
}
.script-textarea:focus {
  border-color: var(--glow-cyan);
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.25);
}

/* Path column – generous but finite */
#tree-body td:first-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 14rem; 
}

/*
#tree-body td:nth-child(6),
#tree-body td:nth-child(7),
#tree-body td:nth-child(8) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 10rem;
}
*/

.dropdown {
  position: relative;
  display: inline-block;
}
.dropdown-trigger button {
  background: 0 0;
  border: 0;
  cursor: pointer;
  transition: all 0.2s;
  color: #0ff;
  padding: 0.25rem 0.5rem;
}
.dropdown-trigger button:hover {
  text-shadow: 0 0 8px #0ff;
  color: #0ff;
  background: rgba(0, 255, 255, 0.1);
}
.dropdown-menu {
  display: none;
  position: fixed;
  background: #111827;
  border: 1px solid rgba(0, 255, 255, 0.4);
  border-radius: 6px;
  box-shadow: 0 8px 30px rgba(0, 255, 255, 0.4);
  overflow-y: auto;
  min-width: 11.2rem;
  max-width: 14.3rem;
  z-index: 5000;
}
.dropdown.active .dropdown-menu {
  display: block;
}
.dropdown-item {
  display: block;
  color: #e0e0e0;
  text-decoration: none;
  white-space: nowrap;
  padding: 0.2rem 0.8rem;
  transition: all 0.2s;
  line-height: 1.2;
}
.dropdown-item:hover {
  background: rgba(0, 255, 255, 0.15);
  color: #0ff;
}
.dropdown-divider {
  height: 1px;
  background: rgba(0, 255, 255, 0.2);
  margin: 0.2rem 0;
}
.dropdown-item.is-danger {
  color: #ef5350;
}
.dropdown-item.is-danger:hover {
  background: rgba(239, 83, 80, 0.2);
  color: #fff;
}
#calendar-modal .modal-title,
#cron-modal .modal-title,
#crons-modal .modal-title {
  color: var(--glow-cyan);
}
#attach-calendar-modal .modal-title {
  color: #0ff;
}
#calendars-table td:nth-child(8) {
  font-feature-settings: "tnum";
  letter-spacing: -0.02em;
  min-width: 6.5rem;
}
.empty-state {
  display: none;
  padding: 3rem 1rem;
  text-align: center;
  border: 2px dashed #444;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
}
#confirm-modal .modal-title {
  color: #f14668;
  font-weight: 700;
}
#confirm-modal #confirm-message {
  font-size: 1.1rem;
  color: #e0e0e0;
  margin: 1rem 0;
}
#confirm-modal .modal-footer {
  gap: 1rem;
}
#confirm-yes {
  background: #f14668;
  border-color: #f14668;
  color: #fff;
}
#confirm-yes:hover {
  background: #d6304f;
  border-color: #d6304f;
}
.zoom-controls {
  position: absolute;
  top: 50%;
  right: 4.5rem;
  transform: translateY(-50%);
  display: flex;
  gap: 0.25rem;
  z-index: 10;
}
.zoom-controls .btn {
  padding: 0.35rem 0.75rem;
  font-size: 1.1rem;
}
.app-modal .modal-dialog.large {
  max-width: 1100px;
}
.app-modal .modal-dialog.full {
  max-width: 98vw;
  max-height: 96vh;
}
.btn-success {
  background: #66bb6a;
  color: #fff;
}
.btn-danger {
  background: #f14668;
  color: #fff;
}
.btn-danger:hover {
  background: #f36;
  box-shadow: 0 0 15px rgba(255, 51, 102, 0.6);
}
.nav-logo-row {
  gap: 1rem;
}
/*
.brand-logo-img {
  height: 68px;
  display: block;
  transition: transform 0.3s ease;
}
.brand-logo-img:hover {
  transform: scale(1.05);
}
*/

/* ==================== Navbar Logo - "Ordo Regnat" ==================== */
.nav-logo-text {
  font-family: "Courier New", "Lucida Console", monospace;
  font-weight: 500;
  font-size: 1.8rem;
  letter-spacing: 0.2em;
  color: #e8e8e8;
  text-shadow:
    0 0 10px rgba(224, 224, 224, 0.95),
    0 0 25px rgba(103, 232, 249, 0.75),
    0 0 45px rgba(103, 232, 249, 0.35);
  padding-top: 0.3rem;
  padding-bottom: 0rem;
  white-space: nowrap;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
}

/* Laurel Wreaths */
.laurel {
  height: 2.6rem;
  width: auto;
  vertical-align: middle;
  margin: 0 0.3rem;
  filter: drop-shadow(0 0 8px #fbbf24);
  opacity: 0.98;
}

/* Brand Link Container */
.brand-link {
  text-decoration: none;
  display: flex;
  align-items: center;
  margin-right: 1.25rem;
}

/* Hover Effects */
.brand-link:hover .nav-logo-text {
  color: #ffffff;
  text-shadow:
    0 0 12px rgba(224, 224, 224, 1),
    0 0 32px rgba(103, 232, 249, 0.9);
  transform: translateY(-1px);
}

.tab-content.active {
  display: block;
  opacity: 1;
}
.tab-content {
  display: none;
  transition: opacity 0.3s ease;
  opacity: 0;
}
.topnav {
  background: var(--bg-primary);
  border-bottom: 1px solid #333;
}

.nav-logo-row,
.nav-tabs-row {
  justify-content: center;
  flex-shrink: 0;
}

.nav-tabs-row {
  align-items: center;
  justify-content: center;
  padding: 0.4rem 1.5rem 0.85rem ;
  flex-shrink: 1 ; 
  display: flex ;
  min-height: 6rem;
}

.nav-logo-row {
/*
  padding: 1.1rem 1.5rem 0.8rem;
*/
  padding-top: 1.1rem;
  padding-bottom: 0.1rem;
  display: flex;
  align-items: center;
}
.nav-tab {
  position: relative;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /*font-family: "Jost", sans-serif; */
  font-size: 1.3rem;
  text-transform: lowercase;
  letter-spacing: 1.6px;
  color: #b0c4de;
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 0.7rem 1.5rem ;
  color: #b0c4de ;
  text-decoration: none ;
  font-weight: 500 ;
  white-space: nowrap;
  overflow: hidden;
  border-radius: 0.5rem 0.5rem 0 0;
}

/*
.tab-content.active {
  padding: clamp(0.6rem, 0.8vw, 1rem);
}
*/

.menu-label {
  font-size: 1.3rem;
  color: #0ff;
  margin-bottom: 1.2rem;
  font-weight: 700;
}
.menu-link {
  display: block;
  padding: 0.6rem 1rem;
  color: #e0e0e0;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s;
  white-space: nowrap;
}
.menu-link:hover {
  background: rgba(0, 255, 255, 0.1);
  color: #0ff;
}
.menu-link.active {
  background: rgba(0, 255, 255, 0.25);
  color: #0ff;
  font-weight: 700;
  border-left: 4px solid #0ff;
  padding-left: 0.75rem;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}
.main-content {
  overflow-y: hidden;
}
.content-center:has(.docs-content) {
  overflow-y: hidden;
}
.docs-content {
  min-width: 0;
  background: #1a1a1a;
  border: 1px solid #444;
}
.docs-content {
  border-radius: 8px;
  margin: 0;
  line-height: 1.75;
  color: #e0e0e0;
}
#docs-content {
  outline: 0;
  scroll-behavior: smooth;
  padding-left: 2em;
  padding-right: 2rem;
  padding-top: 0.2rem;
  padding-bottom: 2rem;
}
*,
.docs-content {
  box-sizing: border-box;
}
.docs-content pre {
  background: #0f0f1f;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  box-shadow: 0 2px 12px rgba(0, 255, 255, 0.1);
}
.docs-content code {
  background: #1a1a2e;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-family: "Courier New", monospace;
  color: #0fc;
}
.docs-content h3 {
  font-size: 1.45rem;
  color: #0cf;
  margin: 1.8rem 0 0.9rem;
}
.docs-content ol,
.docs-content ul {
  margin: 1.1rem 0 1.1rem 1.5rem;
}
.docs-content li {
  margin-bottom: 0.65rem;
}
.docs-content h1 {
  font-size: 2.4rem;
  color: #0ff;
  margin: 2.5rem 0 1.5rem;
  text-shadow: 0 0 12px rgba(0, 255, 255, 0.4);
}
.docs-content h2 {
  font-size: 1.85rem;
  color: #0ff;
  margin: 2.2rem 0 1.1rem;
  border-bottom: 1px solid #334155;
  padding-bottom: 0.5rem;
}
.docs-content a {
  color: #0ff;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.docs-content a:hover {
  color: #6ff;
  text-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
}
.app-wrapper {
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
}
.topnav {
  position: sticky;
  top: 0;
  z-index: 1000;
  flex-shrink: 1;
}
.main-content,
.tab-content.active {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

.content-center {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  height: auto;
}

.docs-grid {
  flex: 1 1 auto;
  min-height: 0;
}

.docs-sidebar {
  flex: 0 0 16.25rem;        /* ~260px */
  min-width: 13.75rem;       /* ~220px */
  max-width: 21.25rem;       /* ~340px */
  align-self: stretch;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1.5rem 1.25rem;
  border-right: 1px solid #444;
  border-radius: 0.5rem;
  margin-left: 0.1rem;
  scrollbar-gutter: stable;
  background: #1a1a1a;
  height: fit-content;
  max-height: 100%;
}

.docs-content pre {
  border-radius: 0.5rem;
  padding: 1.25rem;
}

/* Remove bullets from sidebar navigation */
.docs-sidebar ul,
.docs-sidebar li {
  list-style: none;
  padding: 0;
  margin: 0;
}

.docs-sidebar a,
.docs-sidebar .nav-link {
  display: block;
  padding: 0.45rem 0.75rem;
  color: #b0b0b0;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.docs-sidebar a:hover,
.docs-sidebar a.active,
.docs-sidebar .nav-link:hover,
.docs-sidebar .nav-link.active {
  background: rgba(103, 232, 249, 0.15);
  color: #67e8f9;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #1a1a1a;
}
::-webkit-scrollbar-thumb {
  background: #00a8a8;
  border-radius: 4px;
}
.btn-ghost.neon-ghost,
.btn-ghost.neon-red-ghost {
  background: 0 0;
  padding: 0.8rem 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
}
.btn-ghost.neon-ghost {
  border: 2px solid var(--glow-cyan);
  color: var(--glow-cyan);
  text-shadow: 0 0 12px var(--glow-cyan-medium);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}
.btn-ghost.neon-ghost:hover {
  background: rgba(0, 255, 255, 0.15);
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.5);
  transform: translateY(-3px);
  color: #fff;
}
.btn-ghost.neon-red-ghost {
  border: 2px solid #f36;
  color: #f36;
  text-shadow: 0 0 12px #f36;
  box-shadow: 0 0 15px rgba(255, 51, 102, 0.25);
}
.btn-ghost.neon-red-ghost:hover {
  background: rgba(255, 51, 102, 0.15);
  box-shadow: 0 0 25px rgba(255, 51, 102, 0.6);
  transform: translateY(-3px);
  color: #fff;
}
.dashboard-cards {
  display: flex;
/*
  display: grid;
  grid-template-columns: auto 1fr 1fr 1fr; /* first column fits its item */
*/
  flex-wrap: nowrap;
  gap: 1rem;
  overflow-x: auto;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.count-big {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1;
}
.icon-big {
  font-size: 3.2rem;
  opacity: 0.15;
  flex-shrink: 0;
}
.card-content {
  flex: 1;
  overflow: auto;
  font-size: 0.95rem;
  line-height: 1.5;
  padding: 0.5rem;
}
.mini-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 0.45rem;
  padding-right: 0.45rem;
  padding-bottom: 0.2rem;
  gap: 0.2rem;
  min-height: 1.2rem;
}
.mini-item-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.mini-path {
  color: #888;
  font-size: 0.82rem;
  margin-right: 0.35rem;
}
.mini-job {
  color: #ddd;
  font-weight: 500;
}
.mini-item-time {
  white-space: nowrap;
  font-feature-settings: "tnum";
  font-weight: 500;
  min-width: 0;
  text-align: right;
  flex-shrink: 0;
  text-overflow: ellipsis;
}
.runtime {
  color: #4ade80;
}
.failed-time {
  color: #f87171;
}
.countdown {
  color: #60a5fa;
}
.overdue-time {
  color: #fb923c;
}
.actions-right {
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 1rem;
  justify-content: center;
}
/*
#calendars .actions-right,
#servers .actions-right,
.actions-right,
.close-btn {
  justify-content: center;
}
*/
.close-btn {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  width: 1.8rem;
  height: 1.8rem;
  background: 0 0;
  border: 0;
  color: #e0e0e0;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
}
.close-btn:hover {
  color: #f36;
  transform: scale(1.15);
}
.close-btn::after,
.close-btn::before {
  content: "";
  position: absolute;
  width: 1.8rem;
  height: 3px;
  background-color: currentColor;
  border-radius: 2px;
}
.modal-header .close-btn::after,
.modal-header .close-btn::before {
  content: "";
  position: absolute;
  width: 1.8rem;
  height: 3px;
  background-color: currentColor;
  border-radius: 2px;
}

.close-btn::before {
  transform: rotate(45deg);
}
.close-btn::after {
  transform: rotate(-45deg);
}
.kpi-bar {
  display: grid;
  grid-template-columns: auto 1fr 1fr 1fr; /* first column fits its item */
  gap: 1.25rem;
  background: #1a1a1a;
  border: 1px solid #444;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}
.kpi-item {
  text-align: center;
}
.kpi-value {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
}
.kpi-label {
  font-size: 0.85rem;
  color: #888;
  margin-top: 0.4rem;
}
.btn {
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.2s ease;
}
.btn-secondary {
  background: #222;
  color: #b0e0ff;
  border: 1px solid #444;
}
.btn-secondary:hover {
  background: #333;
  border-color: var(--glow-cyan);
  color: var(--glow-cyan);
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.3);
}
.app-modal .close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 10;
}
.modal-header {
  position: relative;
}
#log-modal .modal-title {
  color: var(--glow-cyan);
  font-size: 1.35rem;
}
#log-modal .modal-subtitle {
  color: #aaa;
  font-size: 1rem;
  margin-top: 0.25rem;
}
#docs .docs-grid {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  height: 100%;
  overflow: hidden;
  flex: 1 1 auto;
  min-height: 0;
}
.ts-control,
.ts-dropdown {
  background: #1a1a1a !important;
  color: #e0e0e0 !important;
  max-height: 10rem;
  overflow-y: auto;
}
.ts-control {
  border: 1px solid #555 !important;
  border-radius: 4px !important;
  box-shadow: 0 0 8px rgba(0, 255, 255, 0.1) !important;
  padding: 0.4rem 0.6rem !important;
}
.ts-control .item {
  background: rgba(0, 255, 255, 0.15) !important;
  border: 1px solid #0ff !important;
  color: #0ff !important;
  border-radius: 3px !important;
  padding: 0.15rem 0.5rem !important;
}
.ts-control .item .remove {
  color: #f36 !important;
  opacity: 0.8;
}
.ts-control .item .remove:hover {
  color: #f55 !important;
  background: rgba(255, 51, 102, 0.2) !important;
}
.ts-dropdown {
  border: 1px solid #0ff !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7) !important;
  z-index: 99999 !important;
}
.ts-dropdown .option {
  padding: 0.3rem 0.3rem !important;
  color: #e0e0e0 !important;
}
.ts-dropdown .option.active,
.ts-dropdown .option.selected,
.ts-dropdown .option:hover {
  background: rgba(0, 255, 255, 0.25) !important;
  color: #0ff !important;
}
.ts-control .ts-placeholder {
  color: #777 !important;
}
.ts-control .clear-button {
  color: #f36 !important;
}
.app-modal .modal-dialog {
  background: #1a1a1a;
  border: 1px solid #444;
  box-shadow: 0 1.5625rem 4.375rem rgba(0, 0, 0, 0.85);
  max-width: 90vw;
}
.app-modal .modal-header {
  text-align: center;
  padding: 1.5rem 2rem 1rem;
  border-bottom: 1px solid #444;
  position: relative;
}
.app-modal .modal-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
  color: #fff;
}
.app-modal .modal-subtitle {
  color: #aaa;
  font-size: 1rem;
  margin-top: 0.25rem;
}
.app-modal .modal-body {
  padding: 1.75rem 2rem;
  overflow-y: auto;
}
.app-modal .modal-footer {
  padding: 1.25rem 2rem;
  background: #161616;
  border-top: 1px solid #444;
}
.app-modal .form-group {
  margin-bottom: 1.25rem;
}
.app-modal .label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: #b0c4de;
}
.app-modal input:focus,
.app-modal select:focus,
.app-modal textarea:focus {
  border-color: var(--glow-cyan);
  box-shadow: 0 0 0 0.1875rem rgba(0, 255, 255, 0.2);
  outline: 0;
}
#servers-table thead th {
  background: #0f0f1f;
  color: var(--glow-cyan);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.03125rem;
}
#servers-table tbody tr:hover {
  background: rgba(0, 255, 255, 0.12) !important;
}
#add-server-btn {
  background: 0 0;
  border: 0.125rem solid var(--glow-cyan);
  color: var(--glow-cyan);
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 0 0.9375rem rgba(0, 255, 255, 0.2);
}
#add-server-btn:hover {
  background: rgba(0, 255, 255, 0.1);
  box-shadow: 0 0 1.5625rem rgba(0, 255, 255, 0.5);
  transform: translateY(-0.125rem);
}
#server-modal .modal-dialog {
  max-width: 32.5rem;
}
#server-modal .help-text {
  font-size: 0.85rem;
  color: #888;
  margin-top: 0.35rem;
}
#toast-container {
  position: fixed;
  top: 2rem;
  left: 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 999999;
  pointer-events: none;
}
.state-badge,
.toast {
  align-items: center;
  border-radius: 0.375rem;
}
.toast {
  display: flex;
  gap: 0.75rem;
  min-width: 17.5rem;
  max-width: 26.25rem;
  padding: 0.75rem 3rem 0.75rem 1rem;
  box-shadow: 0 0.625rem 2.5rem rgba(0, 0, 0, 0.7);
  animation: toastSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: all;
  position: relative;
  white-space: normal;
  word-break: break-word;
}
.toast.success {
  background: #66bb6a;
  color: #000;
}
.toast.info {
  background: #42a5f5;
  color: #000;
}
.toast.warning {
  background: #ffb74d;
  color: #000;
}
.toast.danger {
  background: #ef5350;
  color: #fff;
}
.toast i {
  font-size: 1.4rem;
  min-width: 1.5rem;
  flex-shrink: 0;
}
.toast .close-btn {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  background: 0 0;
  border: 0;
  color: inherit;
  font-size: 1.4rem;
  cursor: pointer;
  opacity: 0.7;
  padding: 0;
  width: 1.5rem;
  height: 1.5rem;
  line-height: 1;
  z-index: 1;
}

.toast .close-btn,
.toast i {
  font-size: clamp(18px, 2.5vw, 24px) ;
}

.toast .close-btn:hover {
  opacity: 1;
}
.toast span {
  flex: 1 1 auto;
  min-width: 0;
}
.state-badge {
  display: inline-flex;
  gap: 0.375rem;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  font-size: 0.85rem;
  padding: 0.2rem 0.5rem;
  min-width: 5.5rem;
  text-align: center;
}
.state-badge::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-right: 0.125rem;
}
.state-badge.complete::before,
.state-badge.success::before {
  content: "";
}
.state-badge.complete,
.state-badge.success {
  color: #66bb6a;
}
.state-badge.running::before {
  content: "";
  animation: spin 1.5s linear infinite;
}
.state-badge.running {
  color: #42a5f5;
}
.state-badge.starting::before {
  content: "";
  animation: spin 1.2s linear infinite;
}
.state-badge.starting {
  color: #64b5f6;
}
.state-badge.ready::before {
  content: "";
}
.state-badge.ready {
  color: #ffd54f;
}
.state-badge.waiting::before {
  content: "";
}
.state-badge.waiting {
  color: #80deea;
}
.state-badge.hold::before {
  content: "";
}
.state-badge.hold {
  color: #ffb74d;
}
.state-badge.ice::before {
  content: "";
}
.state-badge.ice {
  color: #ff8a65;
}
.state-badge.immutable::before {
  content: "";
}
.state-badge.failed::before,
.state-badge.killed::before,
.state-badge.zombie::before {
  content: "";
}
.state-badge.failed,
.state-badge.killed,
.state-badge.zombie {
  color: #ef5350;
}
.state-badge.sleeping::before {
  content: "";
}
.state-badge.sleeping {
  color: #4dd0e1;
}
.state-badge.retrying::before {
  content: "";
  animation: spin 1.5s linear infinite;
}
.state-badge.retrying {
  color: #039be5;
}
.state-badge.looping::before {
  content: "";
  animation: spin 1.5s linear infinite;
}
.state-badge.looping {
  color: #29b6f6;
}
.state-badge.stopping::before {
  content: "";
}
.state-badge.stopping {
  color: #4fc3f7;
}
.state-badge.watching::before {
  content: "";
}
.state-badge.watching {
  color: #26c6da;
}
.state-badge.unknown::before {
  content: "";
}
.state-badge.unknown {
  color: #b0bec5;
}
#monitor .table-container {
  background: #111;
  border-radius: 8px;
  overflow-x: auto;
  overflow-y: auto;
  max-height: 100%;
  min-width: 0;
  position: relative;
}

/* 2. Keep the table itself from shrinking below its content */
.ordo-table--tree {
  width: max-content;        /* or min-width: 100% */
  min-width: 100%;
  table-layout: auto;        /* default, but be explicit */
}

.ordo-table--tree td:first-child::after,
.ordo-table--tree td:first-child::before {
  content: "";
  position: absolute;
  left: calc(var(--depth) * 1.8rem - 0.9rem);
  background: #444;
}
.ordo-table--tree td:first-child::before {
  top: 0;
  bottom: 0;
  width: 2px;
}
.ordo-table--tree td:first-child::after {
  top: 50%;
  width: 1.8rem;
  height: 2px;
  transform: translateY(-50%);
}
.ordo-table--tree td:first-child::after,
.ordo-table--tree td:first-child::before {
  background: #4448;
  box-shadow: 0 0 4px #00ffff22;
}
.ordo-table--tree tr:hover td:first-child::after,
.ordo-table--tree tr:hover td:first-child::before {
  background: #00ffff44;
  box-shadow: 0 0 6px #00ffff44;
}
#job-modal .script-wrapper {
  position: relative;
}
#job-modal .script-textarea {
  min-height: 12rem;
  padding-right: 2.5rem;
  background: #111;
  border: 1px solid #555;
  font-size: 0.95rem;
}
#job-modal .script-textarea:focus {
  border-color: #0ff;
  box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.15);
}
.clear-script-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: 0 0;
  border: 0;
  color: #f36;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.75;
  z-index: 10;
  padding: 0.2rem;
}
.clear-script-btn:hover {
  opacity: 1;
  color: #f55;
  transform: scale(1.1);
}
#job-modal .modal-footer .btn {
  min-width: 100px;
}
#job-modal .btn-primary {
  background: #0ff;
  color: #000;
}
.fa-folder {
  filter: drop-shadow(0 0 3px rgba(240, 208, 112, 0.4));
}
.fa-cog {
  filter: drop-shadow(0 0 2px rgba(168, 184, 200, 0.5));
}
#row-cluster-1 i.fas.fa-folder {
  color: #e0c050;
}
#calendars-table tr:hover .fa-folder,
tr:hover .fa-folder {
  color: #ffe080;
}
tr:hover .fa-cog {
  color: #c8d8e8;
}
.fa-folder {
  color: #fcd34d;
}
.fa-cog {
  color: #94a3b8;
}
.state-badge.immutable {
  color: #c084fc;
  background: rgba(192, 132, 252, 0.15);
}
#cluster-modal .modal-title {
  color: #c084fc;
}
#cluster-modal .label {
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 0.35rem;
}
.stats-badge {
  display: inline-block;
  padding: 0.25rem 0.25rem;
/*  padding: 0.25rem 0.625rem; */
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  min-width: 2.4rem; 
  text-align: center;
  box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.4);
  pointer-events: none;
  position: relative;
  z-index: 1;
}
.stats-badge:hover {
  transform: scale(1.08);
  box-shadow: 0 0 0.75rem rgba(0, 255, 255, 0.3);
}
.stats-badge.cpu-low {
  background: #66bb6a;
  color: #000;
}
.stats-badge.cpu-medium {
  background: #ffb74d;
  color: #000;
}
.stats-badge.cpu-high {
  background: #ef5350;
  color: #fff;
}
/*
.stats-td.has-tooltip {
  position: relative;
}
*/
.stats-td {
  font-weight: 700;
  vertical-align: middle;
  text-align: center;
}

.ordo-table,
table {
  border-collapse: collapse;
  border-spacing: 0;
}
.deps-td {
  font-weight: 700;
  color: #67e8f9;
  vertical-align: middle;
  text-align: center;
}
.deps-td:not(:empty):not([data-tooltip=""]):not([data-tooltip="0"]) {
  text-align: center;
  background: rgba(103, 232, 249, 0.15);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  border: 1px solid rgba(103, 232, 249, 0.4);
  font-size: 0.87rem;
  transition: all 0.2s ease;
}
.deps-td:hover {
  background: rgba(103, 232, 249, 0.25);
  border-color: #67e8f9;
  color: #a5f3fc;
  transform: scale(1.05);
}
#calendars-table thead th {
  background: #0f172a;
  color: #67e8f9;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  padding: 1rem;
  font-weight: 600;
  border-bottom: 2px solid #22d3ee;
}
#calendars-table tbody tr:hover {
  background: rgba(103, 232, 249, 0.08) !important;
}
#calendars-table .fa-folder {
  color: #f0d070;
  filter: drop-shadow(0 0 3px rgba(240, 208, 112, 0.4));
}
#create-calendar-btn {
  background: 0 0;
  border: 2px solid var(--glow-cyan);
  color: var(--glow-cyan);
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}
#create-calendar-btn:hover {
  background: rgba(0, 255, 255, 0.1);
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.5);
  transform: translateY(-2px);
}
.ordo-toggle {
  cursor: pointer;
  display: inline-block;
  width: 1.1rem;
  height: 1.1rem;
  margin-right: 0.4rem;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="%23666" d="M4 6l4 4 4-4z"/></svg>')
    no-repeat center/contain;
  transition: transform 0.2s ease;
  vertical-align: middle;
}
.collapsed .ordo-toggle,
.ordo-calendar-row.collapsed .ordo-toggle {
  transform: rotate(-90deg);
}
tr:hover .ordo-toggle {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="%23a1a1aa" d="M4 6l4 4 4-4z"/></svg>');
}
.crons-row.hidden,
.ordo-cron-row.hidden,
tr.hidden {
  display: none !important;
}
.crons-row:not(.hidden),
.ordo-cron-row:not(.hidden) {
  display: table-row !important;
}
.crons-row td:first-child,
.ordo-cron-row td:first-child {
  padding-left: 2.8rem !important;
  font-style: italic;
  color: #94a3b8;
}
.ordo-cron-row .fa-clock {
  color: #67e8f9;
}
/*
.ordo-table .has-tooltip {
  position: relative;
  z-index: 9999;
}
*/

/*
#monitor .deps-td.has-tooltip:hover::after,
.ordo-table .deps-td.has-tooltip:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #1e2937;
  color: #e0f2fe;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  white-space: nowrap;
  max-width: 380px;
  z-index: 99999;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.9);
  border: 2px solid #67e8f9;
  margin-bottom: 10px;
  line-height: 1.5;
  pointer-events: none;
}
*/

.private-tabs,
.public-tabs {
  display: none;
}
body:not(.is-logged-in) .public-tabs {
  display: flex !important;
}
body.is-logged-in .private-tabs {
  display: flex !important;
}
.nav-tab.active {
/*
  background-color: #1f2937;
  border-bottom: 3px solid #67e8f9;
*/
  color: var(--glow-cyan);
  font-weight: 600;
}

.nav-tab {
  padding: 0.75rem 1.25rem;
  white-space: nowrap;
}
#tab-billing .card-simple {
  background: #1a1a1a;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 1.75rem 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

#tab-billing .actions-right {
  margin-bottom: 1.75rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

#tab-billing #manage-subscription {
  background: #67e8f9;
  color: #000;
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  border: 0;
}
#tab-billing #view-plans-btn {
  background: 0 0;
  border: 2px solid #67e8f9;
  color: #67e8f9;
  font-weight: 700;
  padding: 0.75rem 1.75rem;
}
#tab-billing .info-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1rem 2rem;
  align-items: center;
  margin-top: 1.5rem;
}
#tab-billing .label-bold {
  font-weight: 600;
  color: #b0c4de;
}
#tab-billing .progress {
  height: 12px;
  border-radius: 9999px;
  background: #334155;
  margin: 0.5rem 0;
}
#tab-billing .progress::-webkit-progress-value {
  background: linear-gradient(to right, #67e8f9, #22d3ee);
  box-shadow: 0 0 12px #67e8f9;
}
#tab-billing .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(103, 232, 249, 0.5);
}
/*
#servers .tag {
  background: 0 0;
  border: 1px solid currentColor;
  padding: 0.25rem 0.5rem;
  font-size: 0.85rem;
}
*/

/* Servers Table - Prevent status tag wrapping */
#servers-table .tag {
  white-space: nowrap;
  background: 0 0;
  border: 1px solid currentColor;
  display: inline-flex;
  padding: 0.25rem 0.5rem;
  align-items: center;
  justify-content: center;
  min-width: 6.5rem;      
  font-size: 0.85rem;
  line-height: 1.1;
}

#servers-table .tag.is-danger,
#servers-table .tag.is-warning,
#servers-table .tag.is-success {
  white-space: nowrap;
}

#servers-table .tag.is-success {
  color: #66bb6a;
  border-color: #66bb6a;
}
#servers-table .tag.is-warning {
  color: #ffb74d;
  border-color: #ffb74d;
}
#servers-table .tag.is-danger,
#servers-table .tag.zombie {
  color: #ef5350;
  border-color: #ef5350;
}
#servers-table .tag.zombie {
  font-weight: 600;
}

/* DOCS */

.docs-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  border-radius: 8px;
  overflow: hidden;
}
.docs-content td,
.docs-content th {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid #333;
}
.docs-content th {
  background: #0f0f1f;
  color: #67e8f9;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}
.docs-content tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}
.docs-content tr:hover {
  background: rgba(103, 232, 249, 0.08);
}
.docs-content td {
  color: #e0e0e0;
}
.docs-content table td:first-child,
.docs-content table th:first-child {
  font-weight: 600;
}

/* ==================== Global Responsive Flex Layout ==================== */

.main-content,
.tab-content {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;           
  overflow: hidden;
}

.ordo-table-container,
.table-responsive {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  overflow-y: auto;
  overflow-x: auto;
}

#docs .tab-content {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  padding: 0;
}

/* ==================== Pricing Modal - Final Tight Version ==================== */
#pricing-modal .modal-dialog {
  max-width: 860px;
}

#pricing-modal .modal-body {
  padding: 1.75rem 2rem 2.25rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  margin-bottom: 2.25rem;
}

.plan-card {
  background: #1a1a1a;
  border: 1px solid #444;
  border-radius: 12px;
  padding: 2rem 1.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.plan-card.recommended {
  border-color: #67e8f9;
  box-shadow: 0 0 30px rgba(103, 232, 249, 0.35);
  transform: scale(1.04);
}

.price-box {
  margin: 1.25rem 0 1.25rem;
  font-size: 2.75rem;
  line-height: 1;
  font-weight: 700;
}

/* Very tight feature list */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0.9rem 0 0.5rem;        /* Significantly reduced */
  text-align: left;
  flex-grow: 0;
}

.feature-list li {
  padding: 0.35rem 0;
  color: #e0e0e0;
  position: relative;
  padding-left: 1.6rem;
}

.feature-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #67e8f9;
}

.plan-card .btn {
  margin-top: 0.4rem;               /* Very tight to button */
  width: 100%;
  padding: 0.85rem;
  font-weight: 700;
}

/* Bottom CTA */
.strong-cta {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid #444;
}

.strong-cta p {
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}

/* ==================== Toast Close Button Sizing ==================== */

/* Make close button smaller on toasts */
.toast .close-btn {
  width: 1.25rem;
  height: 1.25rem;
  font-size: 1.1rem;
  padding: 0;
  line-height: 1;
  min-width: auto;
}

/* Optional: even tighter if you want */
.toast .close-btn::before,
.toast .close-btn::after {
  width: 10px;
  height: 2px;
}

/* Ensure it still works well on modals */
.app-modal .close-btn {
  width: 1.75rem;
  height: 1.75rem;
  font-size: 1.4rem;
}

/* ==================== Docs Content - Responsive Images ==================== */
.docs-content img,
.docs-main-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.2rem;
  border: 1px solid #444;
  margin: 1.5rem 0 1.25rem;
  box-shadow: 0 0.6rem 2rem rgba(0, 255, 255, 0.12);
  display: block;
}


/* Apply it globally */
body,
html,
.tab-content,
.docs-content {
  font-family: var(--font-primary);
}

/* ==================== Footer ==================== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid #333;
  padding: 1.2rem 3rem;
  margin-top: auto;
  font-size: 0.9rem;
  color: #888;
  flex-shrink: 0;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-left {
  color: #666;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--chrome-mid);
  text-decoration: none;
  transition: all 0.25s ease;
}

.footer-links a:hover {
  color: var(--glow-cyan);
  text-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}

.legal-checkbox {
  font-size: 0.9rem;
  line-height: 1.4;
}

.legal-checkbox input[type="checkbox"] {
  accent-color: var(--glow-cyan);
  transform: scale(1.1);
}

.legal-checkbox a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-checkbox a:hover {
  color: var(--glow-cyan);
}

.danger-zone {
  border: 2px solid #b91c1c;
  background: rgba(185, 28, 28, 0.08);
  border-radius: 8px;
  padding: 1.75rem 1.5rem;
  margin: 2.25rem 0 1.5rem 0;
}

.danger-zone h4 {
  color: #ef4444;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.danger-zone p {
  color: #f87171;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

#delete-my-account {
  background-color: #b91c1c;
  border: none;
  color: white;
  font-weight: 600;
  padding: 0.85rem 1.5rem;
  transition: all 0.2s;
}

#delete-my-account:hover {
  background-color: #991b1b;
  transform: translateY(-1px);
}

#script-template {
  width: 100% !important;
  min-width: 22rem !important;     /* ~ 352px - should fit longest text */
}

#script-template .ts-control {
  min-width: 22rem !important;
}

/* ==================== STICKY HEADERS FOR ALL TABLES + SETTINGS ==================== */

/* Monitor tab - main table */
#monitor .content-center {
  overflow-y: hidden !important;
}

/* Servers & Calendars tables */
#servers .table-container,
#calendars .table-container,
.table-container {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  overflow-y: auto !important;
  overflow-x: auto;
  position: relative;
  width: 100%;
}

/* Sticky headers for ALL ordo tables */
.ordo-table thead,
#servers-table thead,
#calendars-table thead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #0f172a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
}

.ordo-table th,
#servers-table th,
#calendars-table th {
  position: sticky;
  top: 0;
  z-index: 101;
  background: #0f172a;
}

/* ==================== SETTINGS - STICKY TABS & SCROLL ==================== */

#settings .settings-wrapper {
  height: auto !important;
  flex: 1 1 auto !important;
  overflow-y: auto !important;
}

#settings .internal-tabs {
  position: sticky !important;
  top: 0 !important;
  z-index: 999 !important;
  background: #0a0a0a !important;
  padding: 0.5rem 0 0.85rem !important;
}

/* Hide all internal tab contents by default */
.internal-tab-content {
  display: none !important;
}

.internal-tab-content.active {
  display: block !important;
}

/* 1. Boost the parent cell/row when hovered */
/*
.ordo-table tr:hover,
.stats-td.has-tooltip,
.deps-td.has-tooltip {
  position: relative;
  z-index: 9000 !important;
}
*/

/* 2. Tooltip styling */
/*
.deps-td.has-tooltip:hover::after,
.stats-td.has-tooltip:hover::after {
*/

.ordo-table .has-tooltip {
  position: relative;
  z-index: 5000;
  white-space: pre;
}

.ordo-table .has-tooltip:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #1e2937;
  color: #e0f2fe;
  padding: 0.65rem 0.95rem;
  border-radius: 6px;
  font-size: 0.85rem;
  white-space: pre;
  min-width: auto;
  max-width: auto;
  border: 1px solid #67e8f9;
  margin-bottom: -0.7rem;
  line-height: 1.5;
  pointer-events: none;
}
