@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&display=swap');

/* ── Typography: IBM Plex Mono for all data/numeric/status content ── */
--sq-mono: 'IBM Plex Mono', 'IBM Plex Mono', 'JetBrains Mono', 'Menlo', 'Consolas', monospace;

/* Status pills — mono gives statuses an intentional, engineered feel */
.sqorus-status-pill {
  font-family: 'IBM Plex Mono', 'JetBrains Mono', 'Menlo', monospace !important;
  font-size: 11px !important;
  letter-spacing: 0.01em !important;
}

/* Table cells — apply mono to td content that looks like data */
.table > tbody > tr > td {
  font-family: 'IBM Plex Mono', 'JetBrains Mono', 'Menlo', monospace;
  font-size: 12.5px;
  letter-spacing: -0.01em;
}
/* Keep table headers in the UI sans-serif */
.table > thead > tr > th {
  font-family: inherit;
}

/* Big KPI numbers in overview / quota cards */
.sqorus-metric-val,
.sqorus-quota-card-val,
.sqov-kpi-val,
.sqorus-cluster-kpi-val {
  font-family: 'IBM Plex Mono', 'JetBrains Mono', 'Menlo', monospace !important;
  letter-spacing: -0.03em !important;
  font-variant-numeric: tabular-nums !important;
}

/* Modal titles and page headings — tighter tracking */
.modal-title,
h1, h2, h3,
.page-header h2,
.sqorus-page-title {
  letter-spacing: -0.02em;
}

/* Section labels (uppercase small caps) — loosen slightly for legibility */
.sqorus-section-label,
.sqorus-quota-card-label,
[class*="section-header"] {
  letter-spacing: 0.06em;
}

/* ── Navbar ── */
.navbar-inverse.material-header {
  background-color: #1a1f6e !important;
  border-bottom: 3px solid #13175a !important;
}
.navbar-inverse .navbar-nav > li > a,
.navbar-inverse .navbar-brand,
.navbar-inverse .navbar-text {
  color: rgba(255,255,255,0.85) !important;
}
.navbar-inverse .navbar-nav > li > a:hover {
  background-color: rgba(255,255,255,0.08) !important;
  color: #ffffff !important;
}
.navbar-inverse .navbar-nav > .open > a,
.navbar-inverse .navbar-nav > .open > a:hover {
  background-color: #13175a !important;
  color: #ffffff !important;
}

/* ── Sidebar wrapper ── */
.sidebar-wrapper {
  background-color: #1a1f6e !important;
  min-height: 100vh;
}

/* Dashboard top-level items */
.sidebar-wrapper .nav > li.openstack-dashboard > a {
  color: rgba(255,255,255,0.85) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  background: transparent !important;
  border-left: 3px solid transparent;
  padding: 10px 16px !important;
}
.sidebar-wrapper .nav > li.openstack-dashboard > a:hover {
  background-color: rgba(255,255,255,0.08) !important;
  color: #ffffff !important;
}

/* Panel group headers */
.sidebar-wrapper .nav-header a,
.sidebar-wrapper .nav-header .nav-header-title {
  color: rgba(255,255,255,0.4) !important;
  font-size: 10px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
}

/* Panel items */
.sidebar-wrapper .openstack-panel a {
  color: rgba(255,255,255,0.7) !important;
  font-size: 13px !important;
  padding: 8px 16px 8px 18px !important;
  border-left: 3px solid transparent;
}

/* Sidebar nav icons */
.sqorus-nav-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  opacity: 0.65;
  color: inherit;
  position: relative;
  top: -1px;
}
.sidebar-wrapper .openstack-panel a:hover .sqorus-nav-icon,
.sidebar-wrapper .openstack-panel a.active .sqorus-nav-icon {
  opacity: 1;
}
.sidebar-wrapper .openstack-panel a:hover {
  background-color: rgba(255,255,255,0.06) !important;
  color: #ffffff !important;
}
.sidebar-wrapper .openstack-panel a.active {
  background-color: rgba(255,255,255,0.12) !important;
  color: #ffffff !important;
  border-left-color: #ffffff !important;
}

/* Collapse panel background */
.sidebar-wrapper .panel-collapse {
  background-color: #13175a !important;
}

/* ── Page background ── */
body { background-color: #f4f5f9 !important; }
/* Toolbar inside <caption> keeps wrapping so buttons don't overflow horizontally */
.table_wrapper .table_actions { flex-wrap: wrap !important; }

/* ── Buttons ── */
.btn-primary {
  background-color: #1a1f6e !important;
  border-color: #13175a !important;
  border-radius: 6px !important;
}
.btn-primary:hover { background-color: #2a3080 !important; }
.btn { border-radius: 6px !important; }

/* ── Panels/cards ── */
.panel {
  border-radius: 10px !important;
  box-shadow: none !important;
  border: 0.5px solid #e2e4ed !important;
}
.panel-default > .panel-heading {
  background-color: #f8f9fc !important;
  border-bottom: 0.5px solid #e2e4ed !important;
}
.panel-primary > .panel-heading {
  background-color: #1a1f6e !important;
  color: #ffffff !important;
}

/* ── Tables ── */
.table > thead > tr > th {
  background-color: #f8f9fc;
  color: #888;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 0.5px solid #e2e4ed !important;
}
.table > tbody > tr:hover > td {
  background-color: rgba(26,31,110,0.03) !important;
}

/* ── Dropdown ── */
.dropdown-menu {
  background-color: #fff !important;
  border-radius: 8px !important;
  border: 1px solid #e2e4ed !important;
  box-shadow: 0 6px 20px rgba(26,31,110,0.12) !important;
  padding: 6px 0 !important;
  min-width: 200px;
  z-index: 2147483647 !important;
}
/* When pinned by sqorus.js (.open) — make sure no transform/clip ancestor traps it */
.open > .dropdown-menu,
.dropdown.open > .dropdown-menu,
.btn-group.open > .dropdown-menu,
.uib-dropdown.open > .dropdown-menu,
[uib-dropdown].open > .dropdown-menu,
action-list.open > .dropdown-menu,
.action-list.open > .dropdown-menu {
  z-index: 2147483647 !important;
}
.dropdown-menu > li > a:hover,
.dropdown-menu > li > .btn:hover {
  background-color: rgba(26,31,110,0.06) !important;
  color: #1a1f6e !important;
}
/* Normalize ALL dropdown items — covers <a>, <button>, Angular action menu items.
   Uses descendant selector (not >) so it works whether the item is a direct
   child of <li> (Bootstrap/Horizon) or wrapped (Angular directives). */
.dropdown-menu a,
.dropdown-menu button,
.dropdown-menu .btn,
.dropdown-menu a:link,
.dropdown-menu a:visited,
.dropdown-menu a:focus,
.dropdown-menu a:active,
.dropdown-menu a:hover {
  display: block !important;
  font-weight: 400 !important;
  font-style: normal !important;
  background-color: transparent;
  border: 0 !important;
  text-align: left !important;
  text-decoration: none !important;
  padding: 6px 16px !important;
  line-height: 1.5 !important;
  white-space: nowrap;
  outline: none !important;
  box-shadow: none !important;
}
.dropdown-menu a,
.dropdown-menu button,
.dropdown-menu .btn {
  color: #333 !important;
}
.dropdown-menu a:hover,
.dropdown-menu button:hover,
.dropdown-menu .btn:hover {
  background-color: rgba(26,31,110,0.06) !important;
  color: #1a1f6e !important;
}
.dropdown-menu > li > form { margin: 0; }
.dropdown-menu > li > form > .btn { width: 100%; }
/* Disabled rows */
.dropdown-menu > li.disabled > a,
.dropdown-menu > li.disabled > button {
  color: #b0b3c1 !important;
  cursor: not-allowed !important;
}
.dropdown-menu > li.disabled > a:hover,
.dropdown-menu > li.disabled > button:hover {
  background-color: transparent !important;
  color: #b0b3c1 !important;
}
/* Danger actions (Resize/Rebuild/Hard Reboot/Delete) all share the same red */
.dropdown-menu > li > a.btn-danger,
.dropdown-menu > li > .btn-danger,
.dropdown-menu > li > form > .btn-danger {
  color: #c0392b !important;
  background-color: transparent !important;
}
.dropdown-menu > li > a.btn-danger:hover,
.dropdown-menu > li > .btn-danger:hover,
.dropdown-menu > li > form > .btn-danger:hover {
  background-color: rgba(192,57,43,0.08) !important;
  color: #c0392b !important;
}

/* Table action dropdown menus are pinned by JS (pinMenu in sqorus.js)
   to escape any overflow container. The CSS just handles look + scroll. */
.actions_column .dropdown-menu,
td.actions_column .btn-group .dropdown-menu {
  margin: 0;
}

/* When JS pins the menu to the viewport, take it to the front and
   give it its own scroll context so the mouse wheel scrolls the menu. */
.dropdown-menu.sqorus-pinned-menu {
  position: fixed !important;
  z-index: 2147483647 !important;
  background-color: #fff !important;
  border: 1px solid #e2e4ed !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 24px rgba(26,31,110,0.18) !important;
  padding: 6px 0 !important;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.dropdown-menu.sqorus-pinned-menu::-webkit-scrollbar { width: 8px; }
.dropdown-menu.sqorus-pinned-menu::-webkit-scrollbar-thumb {
  background: #d0d3e0; border-radius: 4px;
}
.dropdown-menu.sqorus-pinned-menu::-webkit-scrollbar-thumb:hover {
  background: #9099aa;
}

/* Pinned menus use position:fixed → they escape overflow containers.
   Only the actions cell itself stays overflow:visible so the un-pinned dropdown
   isn't clipped in the brief gap before JS fires. */
td.actions_column,
.actions_column {
  overflow: visible !important;
}

/* ── Task column progress bar (Resizing or Migrating, Spawning, etc.) ──
   Compact inline pill instead of a giant striped bar that breaks row height. */
.table td .progress-text {
  position: relative;
  display: inline-block;
  min-width: 140px;
  height: auto;
  margin: 0;
  padding: 0;
}
.table td .progress-text .progress {
  height: 4px !important;
  margin: 0 0 4px 0 !important;
  background-color: #e2e4ed !important;
  border-radius: 2px !important;
  box-shadow: none !important;
  overflow: hidden;
}
.table td .progress-text .progress-bar {
  background-color: #1a1f6e !important;
  background-image: linear-gradient(
    45deg,
    rgba(255,255,255,0.18) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255,255,255,0.18) 50%,
    rgba(255,255,255,0.18) 75%,
    transparent 75%,
    transparent
  ) !important;
  background-size: 12px 12px !important;
  box-shadow: none !important;
  border-radius: 2px !important;
}
.table td .progress-text .progress-bar-text {
  display: block;
  position: static !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  color: #1a1f6e !important;
  letter-spacing: 0.02em;
  text-align: left;
  padding: 0 !important;
  line-height: 1.3;
  text-shadow: none !important;
}

/* ── SQORUS Overview page ───────────────────────────────────────────────── */
.sqorus-overview { padding: 24px 28px; }

/* Page header */
.sqorus-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.sqorus-breadcrumb { font-size: 13px; color: #7c8497; }
.sqorus-breadcrumb-root { color: #7c8497; }
.sqorus-breadcrumb-sep  { margin: 0 6px; color: #c5c9d6; }
.sqorus-breadcrumb-current { color: #1a1f6e; font-weight: 600; }
.sqorus-page-header-right { display: flex; align-items: center; gap: 10px; }
.sqorus-region-badge {
  background: #e8eaf6; color: #1a1f6e;
  border-radius: 20px; padding: 3px 12px;
  font-size: 12px; font-weight: 600;
}
.sqorus-avatar-sm {
  width: 28px; height: 28px; border-radius: 50%;
  background: #1a1f6e; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.sqorus-username-sm { font-size: 13px; color: #444; }

/* Sections */
.sqorus-section { margin-bottom: 24px; }
.sqorus-section-title {
  font-size: 15px; font-weight: 600; color: #1a1f6e;
  margin: 0 0 14px;
}
.sqorus-divider { border: none; border-top: 1px solid #e2e4ed; margin: 4px 0 24px; }

/* Metric cards row */
.sqorus-cards-row {
  display: flex; gap: 16px; flex-wrap: wrap;
}
.sqorus-metric-card {
  flex: 1 1 160px; min-width: 140px; max-width: 240px;
  background: #fff; border: 1px solid #e2e4ed; border-radius: 10px;
  padding: 18px 20px;
}
.sqorus-metric-card--error { border-color: #f5c6cb; background: #fff5f5; }
.sqorus-metric-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: #9099aa; margin-bottom: 8px;
}
.sqorus-metric-value {
  font-size: 22px; font-weight: 700; color: #1a1f6e; line-height: 1.1;
}
.sqorus-metric-sep { font-weight: 300; color: #c5c9d6; margin: 0 3px; }

/* Generic card */
.sqorus-card {
  background: #fff; border: 1px solid #e2e4ed; border-radius: 10px;
  overflow: hidden;
}
.sqorus-card-header {
  padding: 12px 18px; border-bottom: 1px solid #e2e4ed;
  font-size: 13px; font-weight: 600; color: #1a1f6e;
  background: #f8f9fc;
}
.sqorus-card-body { padding: 14px 18px; }

/* Table inside card */
.sqorus-table { margin: 0; }
.sqorus-table th { font-size: 11px !important; }

/* Status badges */
.sqorus-status-badge {
  display: inline-block; border-radius: 4px; padding: 2px 8px;
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em;
}
.sqorus-status-active   { background: #e6f4ea; color: #1e7e34; }
.sqorus-status-shutoff  { background: #fef3cd; color: #856404; }
.sqorus-status-error    { background: #fde8e8; color: #a61c00; }
.sqorus-status-build    { background: #e3f0fb; color: #0d5ea6; }
.sqorus-status-paused,
.sqorus-status-suspended { background: #f3f4f6; color: #5f6a7b; }

/* Empty / error states */
.sqorus-empty-state {
  padding: 24px; text-align: center; color: #9099aa; font-size: 13px;
}
.sqorus-error-state { color: #a61c00; }

/* View all link */
.sqorus-view-all { padding: 10px 18px; border-top: 1px solid #e2e4ed; }
.sqorus-link { color: #1a1f6e; font-size: 13px; font-weight: 600; text-decoration: none; }
.sqorus-link:hover { text-decoration: underline; }

/* Two-column layout */
.sqorus-two-col {
  display: flex; gap: 20px; align-items: flex-start; margin-top: 24px;
}
.sqorus-usage-panel  { flex: 1 1 55%; }
.sqorus-health-panel { flex: 1 1 40%; }

/* Resource Usage bars */
.sqorus-usage-row { margin-bottom: 12px; }
.sqorus-usage-label-row {
  display: flex; justify-content: space-between;
  font-size: 12px; margin-bottom: 4px;
}
.sqorus-usage-name  { color: #444; font-weight: 500; }
.sqorus-usage-ratio { color: #9099aa; }
.sqorus-usage-track {
  background: #e8eaf6; border-radius: 4px; height: 8px; overflow: hidden;
}
.sqorus-usage-fill {
  background: #1a1f6e; height: 100%; border-radius: 4px;
  transition: width 0.3s ease;
}

/* Services Health indicators */
.sqorus-svc-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 0; border-bottom: 1px solid #f0f1f5;
}
.sqorus-svc-row:last-child { border-bottom: none; }
.sqorus-svc-name { font-size: 13px; color: #333; font-weight: 500; }
.sqorus-svc-indicator {
  font-size: 11px; font-weight: 600; border-radius: 20px;
  padding: 2px 10px; letter-spacing: 0.04em;
}
.sqorus-svc-up   { background: #e6f4ea; color: #1e7e34; }
.sqorus-svc-down { background: #f3f4f6; color: #5f6a7b; }

/* Responsive: stack two-col on narrow screens */
@media (max-width: 900px) {
  .sqorus-two-col { flex-direction: column; }
  .sqorus-usage-panel, .sqorus-health-panel { flex: 1 1 100%; }
}

/* ── Modern Limit Summary ───────────────────────────────────────────────── */
.sqorus-limit-summary { padding: 4px 0 8px; }
.sqorus-quota-section { margin-bottom: 28px; }
.sqorus-quota-section-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: #9099aa; margin-bottom: 12px;
}
.sqorus-quota-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.sqorus-quota-card {
  background: #fff; border: 1px solid #e2e4ed; border-radius: 10px;
  padding: 16px 18px; transition: box-shadow 0.15s;
}
.sqorus-quota-card:hover { box-shadow: 0 2px 12px rgba(26,31,110,0.08); }
.sqorus-quota-card-name {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.07em; color: #9099aa; margin-bottom: 8px;
}
.sqorus-quota-card-value {
  font-size: 22px; font-weight: 700; color: #1a1f6e; line-height: 1.1;
  margin-bottom: 10px;
}
.sqorus-quota-card-total { font-size: 13px; font-weight: 400; color: #b0b6c8; }
.sqorus-quota-track {
  background: #eceef6; border-radius: 99px; height: 6px;
  overflow: hidden; margin-bottom: 8px;
}
.sqorus-quota-fill {
  height: 100%; border-radius: 99px;
  background: #1a1f6e;
  transition: width 0.4s ease;
}
.sqorus-quota-card.sqorus-quota-warn  .sqorus-quota-fill { background: #e6a817; }
.sqorus-quota-card.sqorus-quota-danger .sqorus-quota-fill { background: #d9534f; }
.sqorus-quota-card.sqorus-quota-warn  { border-color: #fde8b4; }
.sqorus-quota-card.sqorus-quota-danger { border-color: #f5c6cb; }
.sqorus-quota-card-sub {
  font-size: 11px; color: #9099aa;
}

/* Hide the old quota summary container so it doesn't conflict */
.quota-dynamic.limit-summary:not(.sqorus-limit-summary) { display: none !important; }

/* ── New Overview (.sqov) ───────────────────────────────────────────────── */
.sqov { padding: 20px 24px; width: 100%; }

/* Header */
.sqov-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 20px;
}
.sqov-title {
  font-size: 22px; font-weight: 700; color: #1a1f6e;
  margin: 0 0 4px; display: flex; align-items: center; gap: 10px;
}
.sqov-subtitle { font-size: 12px; color: #7c8497; }
.sqov-subtitle strong { color: #333; }
.sqov-status-dot {
  width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex-shrink: 0;
}
.sqov-status-operational { background: #22c55e; }
.sqov-status-degraded    { background: #f59e0b; }
.sqov-status-critical    { background: #ef4444; }
.sqov-status-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 2px 8px; border-radius: 20px;
}
.sqov-status-label.sqov-status-operational { background: #dcfce7; color: #15803d; }
.sqov-status-label.sqov-status-degraded    { background: #fef3c7; color: #b45309; }
.sqov-status-label.sqov-status-critical    { background: #fee2e2; color: #b91c1c; }

/* Header buttons */
.sqov-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 6px; font-size: 13px; font-weight: 600;
  text-decoration: none; cursor: pointer; border: none;
}
.sqov-btn-primary {
  background: #1a1f6e; color: #fff;
}
.sqov-btn-primary:hover { background: #2a3080; color: #fff; text-decoration: none; }

/* Overview page load animations */
@keyframes sqovFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes sqovFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.sqov-alert-strip,
.sqov-kpi-row,
.sqov-actions-row,
.sqov-main-grid {
  animation: sqovFadeUp 0.35s ease both;
}
.sqov-alert-strip               { animation-delay: 0.04s; }
.sqov-kpi-row                   { animation-delay: 0.12s; }
.sqov-actions-row               { animation-delay: 0.18s; }
.sqov-main-grid                 { animation-delay: 0.24s; }
.sqov-kpi-card:nth-child(1)     { animation: sqovFadeUp 0.32s 0.14s ease both; }
.sqov-kpi-card:nth-child(2)     { animation: sqovFadeUp 0.32s 0.20s ease both; }
.sqov-kpi-card:nth-child(3)     { animation: sqovFadeUp 0.32s 0.26s ease both; }
.sqov-kpi-card:nth-child(4)     { animation: sqovFadeUp 0.32s 0.32s ease both; }
.sqov-kpi-card:nth-child(5)     { animation: sqovFadeUp 0.32s 0.38s ease both; }

/* Alert strip */
.sqov-alert-strip {
  display: flex;
  background: #fff; border: 1px solid #e2e4ed; border-radius: 3px;
  overflow: hidden; margin-bottom: 16px; height: 44px;
  box-shadow: 0 1px 4px rgba(26,31,110,0.06);
}
.sqov-alert-col {
  flex: 1; background: #fff; padding: 0 18px;
  display: flex; gap: 10px; align-items: center;
  border-right: 1px solid #f0f1f5;
  border-left: 3px solid transparent;
}
.sqov-alert-col:last-child { border-right: none; }
.sqov-alert-critical { border-left-color: #dc2626; }
.sqov-alert-warning  { border-left-color: #d97706; }
.sqov-alert-info     { border-left-color: #3b82f6; }
.sqov-alert-count {
  font-size: 14px; font-weight: 600; line-height: 1; flex-shrink: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em; min-width: 18px;
}
.sqov-alert-body { flex: 1; min-width: 0; }
.sqov-alert-level {
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 0;
}
.sqov-alert-msgs { font-size: 11px; color: #9099aa; line-height: 1; }
.sqov-alert-critical .sqov-alert-count,
.sqov-alert-critical .sqov-alert-level { color: #dc2626; }
.sqov-alert-warning  .sqov-alert-count,
.sqov-alert-warning  .sqov-alert-level { color: #d97706; }
.sqov-alert-info     .sqov-alert-count,
.sqov-alert-info     .sqov-alert-level { color: #3b82f6; }

/* KPI cards */
.sqov-kpi-row {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px;
  margin-bottom: 20px;
}
.sqov-kpi-card {
  background: #fff; border: 1px solid #e2e4ed; border-radius: 4px;
  padding: 14px 16px;
  box-shadow: 0 1px 4px rgba(26,31,110,0.06);
  transition: box-shadow 0.15s;
}
.sqov-kpi-card:hover {
  box-shadow: 0 4px 14px rgba(26,31,110,0.1);
}
.sqov-kpi-header {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 10px;
}
.sqov-kpi-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em; color: #9099aa;
  text-transform: uppercase;
}
.sqov-kpi-pct {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; font-weight: 500; color: #c0c5d5;
  font-variant-numeric: tabular-nums;
}
.sqov-kpi-healthy  .sqov-kpi-pct { color: #8890b8; }
.sqov-kpi-warning  .sqov-kpi-pct { color: #d97706; }
.sqov-kpi-critical .sqov-kpi-pct { color: #dc2626; }
.sqov-kpi-value {
  font-size: 18px; font-weight: 600; color: #1a1f6e; margin-bottom: 10px; line-height: 1;
  font-family: 'IBM Plex Mono', monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.sqov-kpi-limit { font-size: 12px; font-weight: 400; color: #b0b6c8; }
.sqov-kpi-bar { background: #eceef6; border-radius: 2px; height: 2px; overflow: hidden; }
.sqov-kpi-fill { height: 100%; border-radius: 2px; transition: width 0.6s cubic-bezier(0.4,0,0.2,1); }
.sqov-kpi-fill-healthy   { background: #1a1f6e; }
.sqov-kpi-fill-warning   { background: #f59e0b; }
.sqov-kpi-fill-critical  { background: #ef4444; }
.sqov-kpi-fill-unlimited { background: #d1d5db; }

/* Section label */
.sqov-section { margin-bottom: 20px; }
.sqov-section-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em; color: #9099aa;
  margin-bottom: 10px;
}

/* Quick actions — unified toolbar strip */
.sqov-actions-row {
  display: inline-flex; flex-wrap: nowrap; gap: 0; overflow: hidden;
  background: #fff; border: 1px solid #e2e4ed; border-radius: 3px;
  height: 36px; margin-bottom: 20px;
  box-shadow: 0 1px 4px rgba(26,31,110,0.06);
  width: fit-content;
}
.sqov-action-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0 14px; height: 100%; border-radius: 0; font-size: 11px; font-weight: 500;
  color: #3c4476; background: #fff; border: none; border-right: 1px solid #f0f1f5;
  text-decoration: none; transition: background 0.12s; white-space: nowrap;
}
.sqov-action-btn:last-child { border-right: none; }
.sqov-action-btn svg { color: #9099aa; transition: color 0.12s; flex-shrink: 0; }
.sqov-action-btn:hover {
  background: #f4f5f9;
  color: #1a1f6e; text-decoration: none;
}
.sqov-action-btn:hover svg { color: #1a1f6e; }

/* Main grid */
.sqov-main-grid {
  display: grid; grid-template-columns: 1fr 340px; gap: 16px; align-items: start;
}

/* Generic card */
.sqov-card {
  background: #fff; border: 1px solid #e2e4ed; border-radius: 4px; overflow: hidden;
  box-shadow: 0 1px 4px rgba(26,31,110,0.06);
}
.sqov-card-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 18px; border-bottom: 1px solid #edeef4;
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em; color: #9099aa;
  background: #fafbfd; text-transform: uppercase;
}
.sqov-card-head-sub { font-weight: 400; font-size: 11px; color: #b0b6c8; letter-spacing: 0; text-transform: none; }
.sqov-card-head-link { font-size: 11px; color: #1a1f6e; text-decoration: none; font-weight: 600; letter-spacing: 0; text-transform: none; }
.sqov-card-head-link:hover { text-decoration: underline; }
.sqov-card-body { padding: 12px 18px; }

/* Resource limits table */
.sqov-limits-table { width: 100%; border-collapse: collapse; }
.sqov-limits-table thead th {
  font-size: 9px; font-weight: 700; letter-spacing: 0.1em; color: #9099aa;
  text-transform: uppercase; padding: 8px 14px; text-align: left;
  border-bottom: 1px solid #e2e4ed; background: transparent;
}
.sqov-limits-table tbody td { padding: 7px 14px; font-size: 12px; border-bottom: 1px solid #f3f4f8; }
.sqov-limits-table tbody tr:last-child td { border-bottom: none; }
.sqov-limits-table tbody tr:not(.sqov-limits-group):nth-child(even) td { background: #fafbfd; }
.sqov-limits-table tbody tr:hover td { background: #f3f5ff; }
.sqov-limits-group td {
  font-size: 9px; font-weight: 600; letter-spacing: 0.14em; color: #9099aa;
  text-transform: uppercase; padding: 14px 14px 5px 14px;
  background: transparent !important; border-left: none !important;
  border-bottom: 1px solid #e2e4ed !important;
}
.sqov-limits-used { font-weight: 700; color: #1a1f6e; font-variant-numeric: tabular-nums; }
.sqov-limits-quota { color: #7c8497; font-variant-numeric: tabular-nums; }
.sqov-limits-avail { color: #15803d; font-weight: 600; font-variant-numeric: tabular-nums; }
.sqov-limits-bar-cell { display: flex; align-items: center; gap: 10px; min-width: 140px; }
.sqov-limits-track {
  flex: 1; background: #eceef6; border-radius: 2px; height: 3px; overflow: hidden;
}
.sqov-limits-fill { height: 100%; border-radius: 2px; transition: width 0.5s ease; }
.sqov-limits-fill-healthy   { background: #1a1f6e; }
.sqov-limits-fill-warning   { background: #f59e0b; }
.sqov-limits-fill-critical  { background: #ef4444; }
.sqov-limits-fill-unlimited { background: #dde0eb; width: 2% !important; }
.sqov-limits-pct { font-size: 11px; color: #9099aa; min-width: 32px; text-align: right; font-variant-numeric: tabular-nums; }

/* Status badges */
.sqov-badge {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 2px 8px; border-radius: 3px;
  font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
}
.sqov-badge-healthy {
  font-size: 0; padding: 0; background: transparent;
  width: 8px; height: 8px; border-radius: 50%; background: #22c55e;
  display: inline-block; vertical-align: middle;
}
.sqov-badge-warning   { background: #fff7e6; color: #b45309; border: 1px solid #fde68a; }
.sqov-badge-critical  { background: #fef0f0; color: #b91c1c; border: 1px solid #fecaca; }
.sqov-badge-unlimited { background: transparent; color: #9099aa; }

/* Right column */
.sqov-right-col { display: flex; flex-direction: column; gap: 14px; }

/* Services — compact 2-column grid */
.sqov-svc-panel .sqov-card-body {
  display: grid; grid-template-columns: 1fr 1fr;
  padding: 8px 14px; gap: 0;
}
.sqov-svc-row {
  display: flex; align-items: center; gap: 8px; padding: 7px 4px;
  border-bottom: 1px solid #f3f4f8;
}
.sqov-svc-row:nth-last-child(-n+2) { border-bottom: none; }
.sqov-svc-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.sqov-svc-up   { background: #22c55e; }
.sqov-svc-down { background: #ef4444; }
.sqov-svc-name { flex: 1; font-size: 12px; color: #444; }
.sqov-svc-state { font-size: 10px; font-weight: 700; letter-spacing: 0.04em; }
.sqov-svc-up-txt   { display: none; }
.sqov-svc-down-txt { color: #b91c1c; font-weight: 700; }

/* Instance list */
.sqov-inst-list { padding: 0 !important; }
.sqov-inst-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 18px; border-bottom: 1px solid #f5f6f9; font-size: 12px;
}
.sqov-inst-row:last-child { border-bottom: none; }
.sqov-inst-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.sqov-inst-name { flex: 1; font-weight: 500; color: #1a1f6e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px; }
.sqov-inst-ip { font-size: 11px; color: #9099aa; flex-shrink: 0; }
.sqov-empty { padding: 20px 18px; font-size: 13px; color: #9099aa; text-align: center; }

/* Heat Stacks panel */
.sqov-stacks-list { padding: 0; }
.sqov-stack-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 18px; border-bottom: 1px solid #f5f6f9; font-size: 12px;
}
.sqov-stack-row:last-child { border-bottom: none; }
.sqov-stack-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: #9099aa; }
.sqov-stack-dot-create_complete   { background: #22c55e; }
.sqov-stack-dot-update_complete   { background: #22c55e; }
.sqov-stack-dot-resume_complete   { background: #22c55e; }
.sqov-stack-dot-create_in_progress,
.sqov-stack-dot-update_in_progress { background: #3b82f6; }
.sqov-stack-dot-create_failed,
.sqov-stack-dot-update_failed,
.sqov-stack-dot-delete_failed     { background: #ef4444; }
.sqov-stack-dot-rollback_complete,
.sqov-stack-dot-rollback_in_progress { background: #f59e0b; }
.sqov-stack-info { flex: 1; min-width: 0; }
.sqov-stack-name {
  display: block; font-weight: 500; color: #1a1f6e;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sqov-stack-status {
  display: block; font-size: 10px; color: #9099aa;
  text-transform: uppercase; letter-spacing: 0.05em; margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sqov-stack-time { font-size: 10px; color: #b0b6c8; flex-shrink: 0; white-space: nowrap; }

/* Instance dot colours (reuse existing .sqorus-status-* classes logic) */
.sqov-inst-dot.sqorus-status-active    { background: #22c55e; }
.sqov-inst-dot.sqorus-status-shutoff   { background: #f59e0b; }
.sqov-inst-dot.sqorus-status-error     { background: #ef4444; }
.sqov-inst-dot.sqorus-status-build     { background: #3b82f6; }
.sqov-inst-dot.sqorus-status-paused,
.sqov-inst-dot.sqorus-status-suspended { background: #9ca3af; }

/* Responsive */
@media (max-width: 1100px) {
  .sqov-main-grid { grid-template-columns: 1fr; }
  .sqov-kpi-row   { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .sqov-alert-strip { grid-template-columns: 1fr; }
  .sqov-kpi-row     { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   SQORUS Table Polish — Images & Instances pages
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ── Status pill badges ────────────────────────────────────────────────────── */
/* Horizon adds td.status_up / td.status_down / td.warning to status cells     */
td.status_up > span,
td.status_up > a {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
  line-height: 1.5;
  vertical-align: middle;
  background: #e6f4ea;
  color: #1a7a33;
}

td.status_down > span,
td.status_down > a {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
  line-height: 1.5;
  vertical-align: middle;
  background: #fde8e8;
  color: #a61c00;
}

td.warning > span,
td.warning > a {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
  line-height: 1.5;
  vertical-align: middle;
  background: #fff8e8;
  color: #856404;
}

/* Row-level left border accent for error/warning states */
tr.status_down { border-left: 3px solid #f5c6cb !important; }
tr.warning      { border-left: 3px solid #ffeeba !important; }
tr.status_up    { border-left: 3px solid transparent !important; }

/* ── Table action toolbar ───────────────────────────────────────────────────── */
.table_actions,
.table-actions {
  display: flex !important;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 10px 14px !important;
  background: #fff !important;
  border-bottom: 1px solid #e2e4ed !important;
  border-radius: 8px 8px 0 0 !important;
}

.table_actions .btn-primary,
.table_actions a.btn-primary {
  background: #1a1f6e !important;
  border-color: #13175a !important;
  color: #fff !important;
  font-weight: 600 !important;
  padding: 5px 14px !important;
}
.table_actions .btn-primary:hover,
.table_actions a.btn-primary:hover {
  background: #252b8a !important;
}

.table_actions .btn-danger,
.table_actions a.btn-danger,
.table_actions button.btn-danger {
  background: #fff !important;
  color: #c0392b !important;
  border: 1px solid #e8b4b0 !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  height: 36px !important;
  padding: 0 18px !important;
  line-height: 1 !important;
  font-size: 13px !important;
  border-radius: 8px !important;
  white-space: nowrap !important;
  transition: background 0.15s ease, border-color 0.15s ease !important;
}
.table_actions .btn-danger:hover,
.table_actions a.btn-danger:hover,
.table_actions button.btn-danger:hover {
  background: #fdf0ef !important;
  border-color: #c0392b !important;
}
.table_actions .btn-danger.disabled,
.table_actions .btn-danger[disabled] {
  background: #fff !important;
  border-color: #f0c8c6 !important;
  color: #e8a09e !important;
  opacity: 1 !important;
}

/* ── Instances filter bar ────────────────────────────────────────────────────── */
.table_filter select,
form.table_search select {
  height: 32px;
  font-size: 13px;
  border: 1px solid #d0d3e0;
  border-radius: 6px 0 0 6px;
  padding: 0 10px;
  background: #fff;
  color: #333;
  box-shadow: none;
}

.table_filter input[type="text"],
form.table_search input[type="text"] {
  height: 32px;
  font-size: 13px;
  border: 1px solid #d0d3e0;
  border-left: none;
  border-radius: 0;
  padding: 0 10px;
  min-width: 160px;
  background: #fff;
  color: #333;
  box-shadow: none;
}
.table_filter input[type="text"]:focus,
form.table_search input[type="text"]:focus {
  border-color: #1a1f6e;
  box-shadow: 0 0 0 3px rgba(26, 31, 110, 0.08);
  outline: none;
  position: relative;
  z-index: 1;
}

.table_filter .btn,
form.table_search .btn {
  height: 32px;
  padding: 0 14px;
  font-size: 13px;
  border-radius: 0 6px 6px 0 !important;
  line-height: 30px;
}

/* ── Split-button action groups in table rows ────────────────────────────────── */
.btn-group > .btn { border-radius: 0 !important; }
.btn-group > .btn:first-child { border-radius: 6px 0 0 6px !important; }
.btn-group > .btn:last-child,
.btn-group > .dropdown-toggle:last-child { border-radius: 0 6px 6px 0 !important; }
.btn-group > .btn:only-child { border-radius: 6px !important; }

td .btn-group > .btn.btn-default,
td .btn-group > .btn-default.dropdown-toggle {
  background: #fff !important;
  border-color: #d0d3e0 !important;
  color: #1a1f6e !important;
  font-weight: 500;
  font-size: 12px;
}
td .btn-group > .btn.btn-default:hover,
td .btn-group > .btn-default.dropdown-toggle:hover {
  background: #f0f2fc !important;
  border-color: #a0a5d8 !important;
  color: #1a1f6e !important;
}

/* ── Table link cells ────────────────────────────────────────────────────────── */
.table td a {
  color: #1a1f6e;
  font-weight: 500;
}
.table td a:hover { color: #252b8a; }

/* Flavor chip */
td a[href*="flavor"] {
  font-family: 'IBM Plex Mono', 'Menlo', 'Monaco', 'Consolas', monospace;
  font-size: 11px;
  background: #f0f2fc;
  color: #1a1f6e;
  padding: 2px 8px;
  border-radius: 4px;
  text-decoration: none !important;
  display: inline-block;
}
td a[href*="flavor"]:hover { background: #e0e3f5 !important; }

/* IP address monospace */
.table td[data-type="ip"] {
  font-family: 'IBM Plex Mono', 'Menlo', 'Monaco', 'Consolas', monospace;
  font-size: 12px;
}

/* Table last row no-border */
.table > tbody > tr:last-child > td { border-bottom: none; }

/* table_wrapper is the scroll container; table-responsive is transparent to overflow */
.table-responsive { border: none !important; margin-bottom: 0; overflow: visible !important; }

/* ── Visibility / Protected column: subtle badge ─────────────────────────────── */

/* ═══════════════════════════════════════════════════════════════════════════════
   SQORUS Instance Detail Page — branded overview tab
   ═══════════════════════════════════════════════════════════════════════════════ */

.sqorus-instance-detail { padding: 4px 0; }

/* Header strip */
.sqorus-idet-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e4ed;
}
.sqorus-idet-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.sqorus-idet-name {
  font-size: 20px;
  font-weight: 700;
  color: #1a1f6e;
  letter-spacing: -0.01em;
}
.sqorus-idet-id {
  font-size: 12px;
  color: #9099aa;
}
.sqorus-idet-id code {
  font-size: 11px;
  color: #7c8497;
  background: #f0f2fc;
  padding: 1px 6px;
  border-radius: 4px;
}

/* Status badge on header */
.sqorus-idet-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.sqorus-idet-badge--green   { background: #e6f4ea; color: #1a7a33; }
.sqorus-idet-badge--amber   { background: #fff3cd; color: #856404; }
.sqorus-idet-badge--red     { background: #fde8e8; color: #a61c00; }
.sqorus-idet-badge--blue    { background: #e3f0fb; color: #0d5ea6; }
.sqorus-idet-badge--neutral { background: #f3f4f6; color: #5f6a7b; }

/* Two-column responsive grid */
.sqorus-idet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 860px) {
  .sqorus-idet-grid { grid-template-columns: 1fr; }
}
.sqorus-idet-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Info cards */
.sqorus-idet-card {
  background: #fff;
  border: 1px solid #e2e4ed;
  border-radius: 10px;
  overflow: hidden;
}
.sqorus-idet-card--error {
  border-color: #f5c6cb;
}
.sqorus-idet-card-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7c8497;
  background: #f8f9fc;
  padding: 9px 16px;
  border-bottom: 1px solid #e2e4ed;
}
.sqorus-idet-card--error .sqorus-idet-card-title {
  background: #fff5f5;
  border-bottom-color: #f5c6cb;
  color: #a61c00;
}

/* Definition list */
.sqorus-idet-dl {
  margin: 0;
  padding: 10px 16px 12px;
}
.sqorus-idet-dl dt {
  font-size: 11px;
  font-weight: 600;
  color: #9099aa;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  float: left;
  clear: left;
  width: 130px;
  padding: 4px 0;
  margin: 0;
}
.sqorus-idet-dl dd {
  margin-left: 138px;
  font-size: 13px;
  color: #333;
  padding: 4px 0;
  word-break: break-all;
}

/* Specs metric row (vCPU, RAM, Disk) */
.sqorus-idet-specs-grid {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #e2e4ed;
}
.sqorus-idet-spec {
  flex: 1;
  text-align: center;
  padding: 14px 8px;
  border-right: 1px solid #e2e4ed;
}
.sqorus-idet-spec:last-child { border-right: none; }
.sqorus-idet-spec-icon {
  color: #9099aa;
  margin-bottom: 4px;
  display: flex;
  justify-content: center;
}
.sqorus-idet-spec-val {
  font-size: 18px;
  font-weight: 700;
  color: #1a1f6e;
  line-height: 1.1;
}
.sqorus-idet-spec-lbl {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9099aa;
  margin-top: 2px;
}

/* Inline code / monospace values */
.sqorus-idet-code {
  font-family: 'IBM Plex Mono', 'Menlo', 'Monaco', 'Consolas', monospace;
  font-size: 11px;
  background: #f0f2fc;
  color: #1a1f6e;
  padding: 2px 7px;
  border-radius: 4px;
}
.sqorus-idet-ip {
  display: inline-block;
  margin: 1px 2px;
}

/* Security group rows */
.sqorus-idet-sg-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 16px;
  border-bottom: 1px solid #f5f6f9;
  font-size: 13px;
  color: #333;
}
.sqorus-idet-sg-row:last-child { border-bottom: none; }
.sqorus-idet-sg-name { font-weight: 500; }

/* Volume rows */
.sqorus-idet-vol-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 16px;
  border-bottom: 1px solid #f5f6f9;
  font-size: 13px;
}
.sqorus-idet-vol-row:last-child { border-bottom: none; }

/* Muted / empty text */
.sqorus-idet-muted {
  color: #9099aa;
  font-size: 12px;
  font-style: normal;
}
em.sqorus-idet-muted { font-style: italic; }

/* Fault pre block */
.sqorus-idet-pre {
  font-size: 11px;
  background: #fff5f5;
  border: 1px solid #f5c6cb;
  border-radius: 6px;
  padding: 8px 10px;
  white-space: pre-wrap;
  word-break: break-all;
  color: #721c24;
  margin: 0;
}

/* ── Status pill — server-side span wrapper (via _data_table_cell.html override) */
.sqorus-status-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
  line-height: 1.5;
  vertical-align: middle;
  /* default — overridden by parent td class below */
  background: #f3f4f6;
  color: #5f6a7b;
}

/* Colour comes from the td class Horizon already assigns */
td.status_up   .sqorus-status-pill { background: #e6f4ea; color: #1a7a33; }
td.status_down .sqorus-status-pill { background: #fde8e8; color: #a61c00; }
td.warning     .sqorus-status-pill { background: #fff3cd; color: #856404; }

/* ═══════════════════════════════════════════════════════════════════════════════
   SQORUS — Instances page full redesign
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ── Pill color variants ─────────────────────────────────────────────────────── */
.sqorus-status-pill                { background:#f3f4f6; color:#5f6a7b; }
.sqorus-pill-green   { background: transparent; color: #16a34a; border: 1px solid #86efac; font-weight: 500; }
.sqorus-pill-amber   { background: transparent; color: #9099aa; border: 1px solid #d1d5db; font-weight: 400; }
.sqorus-pill-red     { background: #fde8e8; color: #a61c00; border: 1px solid #fca5a5; }
.sqorus-pill-blue    { background: transparent; color: #2563eb; border: 1px solid #bfdbfe; font-weight: 400; }
.sqorus-pill-neutral { background: transparent; color: #9099aa; border: 1px solid #e2e4ed; font-weight: 400; }

/* Remove old td-class-based colouring (now handled by span classes above) */
td.status_up   .sqorus-status-pill,
td.status_down .sqorus-status-pill,
td.warning     .sqorus-status-pill { background: inherit; color: inherit; }

/* ── Table wrapper → card ────────────────────────────────────────────────────── */
.table_wrapper {
  background: #fff;
  border: 1px solid #e2e4ed;
  border-radius: 10px;
  overflow-x: auto;
  overflow-y: visible;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  margin-top: 8px;
}

/* ── Caption = action toolbar ────────────────────────────────────────────────── */
/* Horizon renders all action buttons inside <caption> via render_table_actions  */
caption,
table caption {
  caption-side: top;
  padding: 0;
  text-align: left;
  color: inherit;
}

.table_actions.clearfix {
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
  background: #f8f9fc;
  border-bottom: 1px solid #e2e4ed;
}

/* Filter area (select + text input + Filter button) */
.table_actions .table_search {
  display: flex;
  align-items: center;
  gap: 0;
  margin-right: auto;   /* push action buttons to the right */
}

.table_actions .table_search select {
  height: 34px;
  font-size: 13px;
  border: 1px solid #d0d3e0;
  border-right: none;
  border-radius: 6px 0 0 6px;
  padding: 0 10px;
  background: #fff;
  color: #333;
  min-width: 140px;
  box-shadow: none;
  appearance: auto;
}

.table_actions .table_search input[type="text"] {
  height: 34px;
  font-size: 13px;
  border: 1px solid #d0d3e0;
  border-radius: 0;
  padding: 0 12px;
  min-width: 200px;
  background: #fff;
  color: #333;
  box-shadow: none;
}
.table_actions .table_search input[type="text"]:focus {
  border-color: #1a1f6e;
  outline: none;
  box-shadow: inset 0 0 0 1px #1a1f6e;
  z-index: 1;
  position: relative;
}

.table_actions .table_search button[type="submit"] {
  height: 34px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 0 6px 6px 0;
  background: #1a1f6e;
  color: #fff;
  border: 1px solid #13175a;
  cursor: pointer;
  white-space: nowrap;
}
.table_actions .table_search button[type="submit"]:hover {
  background: #252b8a;
}

/* Launch Instance button */
.table_actions a.btn.btn-primary,
.table_actions button.btn.btn-primary {
  background: #1a1f6e !important;
  border-color: #13175a !important;
  color: #fff !important;
  font-weight: 600;
  height: 34px;
  padding: 0 16px;
  line-height: 32px;
  border-radius: 6px !important;
  font-size: 13px;
  white-space: nowrap;
}
.table_actions a.btn.btn-primary:hover,
.table_actions button.btn.btn-primary:hover {
  background: #252b8a !important;
}


/* More Actions dropdown button */
.table_actions .table_actions_menu > a.btn {
  height: 34px;
  padding: 0 14px;
  line-height: 32px;
  font-size: 13px;
  border-radius: 6px !important;
  white-space: nowrap;
  background: #fff;
  border-color: #d0d3e0;
  color: #333;
}

/* ── Natural content-based column widths (browser default table-layout: auto) ── */
#instances {
  width: 100% !important;
  max-width: 100% !important;
}

/* Kill the horizontal scrollbar on all table wrappers */
.table_wrapper {
  overflow-x: hidden !important;
  overflow-y: visible !important;
  max-width: 100% !important;
}
.table_wrapper .table-responsive {
  overflow-x: hidden !important;
  overflow-y: visible !important;
  max-width: 100% !important;
}

/* ── Checkbox column — minimal horizontal padding to save space ──────────────── */
#instances thead th:nth-child(1),
#instances tbody td:nth-child(1) {
  padding-left: 8px !important;
  padding-right: 4px !important;
  text-align: center;
}

/* ── Column headers ──────────────────────────────────────────────────────────── */
#instances thead tr.table_column_header {
  background: #f8f9fc;
}
#instances thead tr.table_column_header th {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9099aa;
  border-bottom: 1px solid #e2e4ed;
  border-top: none;
  padding: 10px 12px;
  white-space: nowrap;
  background: #f8f9fc;
}
/* Sorted column highlight */
#instances thead th.sortable.sorted {
  color: #1a1f6e;
}

/* ── Table rows ──────────────────────────────────────────────────────────────── */
#instances tbody tr {
  border-bottom: 1px solid #f0f1f5;
  transition: background 0.1s ease;
}
#instances tbody tr:last-child { border-bottom: none; }
#instances tbody tr:hover > td { background: rgba(26,31,110,0.025); }

#instances tbody td {
  padding: 10px 10px;
  font-size: 13px;
  vertical-align: middle;
  border-top: none;
  color: #333;
}

/* ── Instance Name column — make it stand out ─────────────────────────────────── */
#instances td.anchor a,
#instances td a.nolink,
#instances tbody td:nth-child(2) a {
  font-weight: 600;
  color: #1a1f6e;
  font-size: 13px;
}
#instances tbody td:nth-child(2) a:hover { color: #252b8a; text-decoration: underline; }

/* ── Image Name column — subtler ─────────────────────────────────────────────── */
#instances tbody td:nth-child(3) { color: #555; }

/* ── IP Address ─────────────────────────────────────────────────────────────── */
#instances tbody td[data-type="ip"],
#instances tbody td:nth-child(4) {
  font-family: 'IBM Plex Mono', 'Menlo', 'Monaco', 'Consolas', monospace;
  font-size: 12px;
  color: #444;
}

/* ── Flavor chip ─────────────────────────────────────────────────────────────── */
#instances tbody td a[href*="flavor"],
#instances tbody td a[href*="flavors"] {
  font-family: 'IBM Plex Mono', 'Menlo', 'Monaco', 'Consolas', monospace;
  font-size: 11px;
  background: #f0f2fc;
  color: #1a1f6e;
  padding: 3px 8px;
  border-radius: 4px;
  text-decoration: none !important;
  display: inline-block;
  font-weight: 600;
}
#instances tbody td a[href*="flavor"]:hover { background: #e0e3f5 !important; }

/* ── Power State: color-coded text (no pill, to avoid clutter) ────────────────── */
#instances tbody td:nth-child(11) {
  font-size: 12px;
  font-weight: 500;
}

/* ── Row action split-buttons ──────────────────────────────────────────────────── */
#instances tbody td.actions_column {
  white-space: nowrap;
  padding-right: 8px;
}
#instances td .btn-group { display: inline-flex; }

#instances td .btn-group > .btn {
  border-radius: 0 !important;
  height: 30px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 500;
  line-height: 28px;
}
#instances td .btn-group > .btn:first-child { border-radius: 6px 0 0 6px !important; }
#instances td .btn-group > .btn:last-child,
#instances td .btn-group > .dropdown-toggle { border-radius: 0 6px 6px 0 !important; }
#instances td .btn-group > .btn:only-child { border-radius: 6px !important; }

#instances td .btn-group > .btn.btn-default {
  background: #fff;
  border-color: #d0d3e0;
  color: #1a1f6e;
}
#instances td .btn-group > .btn.btn-default:hover {
  background: #f0f2fc;
  border-color: #a0a5d8;
}

/* ── Lock icon column ──────────────────────────────────────────────────────────── */
#instances tbody td .fa-lock,
#instances tbody td .fa-unlock-alt {
  color: #c0c4d0;
  font-size: 13px;
}

/* ── "Displaying N items" row count ──────────────────────────────────────────── */
.table_count { font-size: 12px; color: #9099aa; margin: 8px 0 4px; }

/* ── Empty state ─────────────────────────────────────────────────────────────── */
#instances tbody tr.empty td {
  text-align: center;
  color: #9099aa;
  padding: 40px;
  font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   SQORUS — Hypervisors page (Admin › Compute › All Hypervisors)
   ═══════════════════════════════════════════════════════════════════════════════ */

.sqhv-page { padding: 0; }

.sqhv-section { margin-bottom: 28px; }

.sqhv-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9099aa;
  margin: 0 0 14px;
}

.sqhv-chart-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Card */
.sqhv-chart-card {
  background: #fff;
  border: 1px solid #e2e4ed;
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 0 0 auto;
  min-width: 220px;
  transition: box-shadow 0.15s;
}
.sqhv-chart-card:hover {
  box-shadow: 0 2px 12px rgba(26,31,110,0.08);
}

/* Donut chart — CSS conic-gradient technique */
.sqhv-donut {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: conic-gradient(#1a1f6e var(--pct, 0%), #eceef6 var(--pct, 0%));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

/* White inner circle creates the donut hole */
.sqhv-donut-hole {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.sqhv-pct-num {
  font-size: 16px;
  font-weight: 700;
  color: #1a1f6e;
  line-height: 1;
}
.sqhv-pct-unit {
  font-size: 10px;
  font-weight: 600;
  color: #9099aa;
  line-height: 1;
  margin-top: 1px;
}

/* Labels next to the donut */
.sqhv-chart-meta { display: flex; flex-direction: column; gap: 2px; }

.sqhv-chart-name {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9099aa;
  margin-bottom: 4px;
}

.sqhv-chart-used {
  font-size: 20px;
  font-weight: 700;
  color: #1a1f6e;
  line-height: 1.1;
}

.sqhv-chart-total {
  font-size: 12px;
  color: #9099aa;
}

.sqhv-no-data {
  font-style: italic;
  color: #c5c9d6;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   SQORUS — Admin Overview page
   ═══════════════════════════════════════════════════════════════════════════════ */

.sqao-page { padding: 0; }

/* Header */
.sqao-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}
.sqao-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a1f6e;
  margin: 0 0 4px;
}
.sqao-subtitle {
  font-size: 12px;
  color: #7c8497;
  margin: 0;
}

/* Date picker strip */
.sqao-date-card {
  background: #fff;
  border: 1px solid #e2e4ed;
  border-radius: 10px;
  padding: 14px 20px;
  margin-bottom: 20px;
}
.sqao-date-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.sqao-date-icon {
  width: 18px;
  height: 18px;
  color: #9099aa;
  flex-shrink: 0;
}
.sqao-date-label {
  font-size: 12px;
  font-weight: 600;
  color: #555;
  white-space: nowrap;
}
.sqao-date-form input[type="text"],
.sqao-date-form input[type="date"] {
  height: 34px;
  font-size: 13px;
  border: 1px solid #d0d3e0;
  border-radius: 6px;
  padding: 0 10px;
  color: #333;
  background: #f8f9fc;
  box-shadow: none;
  width: 130px;
}
.sqao-date-form input[type="text"]:focus,
.sqao-date-form input[type="date"]:focus {
  border-color: #1a1f6e;
  outline: none;
  box-shadow: 0 0 0 3px rgba(26,31,110,0.08);
}
.sqao-date-sep {
  font-size: 12px;
  color: #9099aa;
}
.sqao-submit-btn {
  height: 34px;
  padding: 0 18px;
  background: #1a1f6e;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.sqao-submit-btn:hover { background: #252b8a; }

/* KPI grid */
.sqao-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
@media (max-width: 1100px) { .sqao-kpi-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .sqao-kpi-grid { grid-template-columns: 1fr 1fr; } }

.sqao-kpi-card {
  background: #fff;
  border: 1px solid #e2e4ed;
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: box-shadow 0.15s;
}
.sqao-kpi-card:hover { box-shadow: 0 2px 12px rgba(26,31,110,0.08); }

.sqao-kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sqao-kpi-icon svg { width: 22px; height: 22px; }

.sqao-icon-instances { background: #e8eaf6; color: #1a1f6e; }
.sqao-icon-ram       { background: #e3f0fb; color: #0d5ea6; }
.sqao-icon-cpu       { background: #e6f4ea; color: #1a7a33; }
.sqao-icon-disk      { background: #fff3cd; color: #92610a; }
.sqao-icon-ram2      { background: #fde8e8; color: #a61c00; }

.sqao-kpi-body { min-width: 0; }
.sqao-kpi-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9099aa;
  margin-bottom: 4px;
  white-space: nowrap;
}
.sqao-kpi-value {
  font-size: 24px;
  font-weight: 700;
  color: #1a1f6e;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Monitoring links */
.sqao-monitoring-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.sqao-monitoring-label {
  font-size: 12px;
  font-weight: 600;
  color: #555;
}
.sqao-monitoring-link {
  font-size: 12px;
  color: #1a1f6e;
  text-decoration: none;
  border: 1px solid #d0d3e0;
  padding: 3px 10px;
  border-radius: 20px;
}
.sqao-monitoring-link:hover { background: #f0f2fc; text-decoration: none; }

/* Table card */
.sqao-table-card {
  background: #fff;
  border: 1px solid #e2e4ed;
  border-radius: 12px;
  overflow: hidden;
}
/* Hide the old quota-dynamic heading inside table card context */
.sqao-page .quota-dynamic { display: none !important; }

/* Alarms panel */
.sqov-alarms-panel { margin-top: 14px; }
.sqov-alarms-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sqov-alarms-table thead th {
  font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: #9099aa; padding: 8px 14px; border-bottom: 1px solid #e2e4ed; text-align: left;
}
.sqov-alarms-table tbody tr { border-bottom: 1px solid #f0f1f5; }
.sqov-alarms-table tbody tr:last-child { border-bottom: none; }
.sqov-alarms-table tbody td { padding: 10px 14px; vertical-align: middle; }
.sqov-alarm-name { font-weight: 500; color: #1a1f6e; }
.sqov-alarm-type { color: #9099aa; font-size: 12px; }
.sqov-alarm-pill {
  display: inline-block; padding: 2px 10px; border-radius: 99px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
}
.sqov-alarm-ok                { background: #dcfce7; color: #15803d; }
.sqov-alarm-alarm             { background: #fee2e2; color: #b91c1c; }
.sqov-alarm-insufficient-data { background: #fef3c7; color: #b45309; }

/* Alarms panel page */
.sqorus-page-heading { color: #1a1f6e; font-size: 20px; font-weight: 700; margin-bottom: 18px; }
.sqorus-alarms-table th { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: #9099aa; }
.sqorus-label-ok   { background: #dcfce7 !important; color: #15803d !important; border-radius: 99px; padding: 3px 10px; font-size: 11px; font-weight: 700; }
.sqorus-label-alarm { background: #fee2e2 !important; color: #b91c1c !important; border-radius: 99px; padding: 3px 10px; font-size: 11px; font-weight: 700; }
.sqorus-label-insufficient { background: #fef3c7 !important; color: #b45309 !important; border-radius: 99px; padding: 3px 10px; font-size: 11px; font-weight: 700; }
.sqorus-alarm-sev { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; }
.sqorus-alarm-sev-critical { background: #fee2e2; color: #b91c1c; }
.sqorus-alarm-sev-high     { background: #ffedd5; color: #c2410c; }
.sqorus-alarm-sev-moderate { background: #fef3c7; color: #b45309; }
.sqorus-alarm-sev-low      { background: #f0f1f5; color: #9099aa; }
.sqorus-alarm-desc { color: #9099aa; font-size: 12px; max-width: 280px; }

/* ═══════════════════════════════════════════════════════════════════════════════
   SQORUS — Container Infra pages (Angular hz-resource-table)
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Remove the hr between stats and table */
hz-resource-panel > div > hr,
hz-resource-panel > hr { display: none; }

/* Stats section spacing */
[ng-controller*="clusterStats"] { margin-bottom: 20px; }

/* KPI row injected by sqorus.js — reuse .sqov-kpi-card styles */
.sqorus-cluster-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  width: 100%;
}
.sqorus-cluster-kpi-row .sqov-kpi-card {
  min-width: 0;
}

/* Angular resource table card wrapper — target the div.hz-magic-search-context */
hz-resource-panel .hz-magic-search-context {
  background: #fff;
  border: 1px solid #e2e4ed;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  margin-top: 8px;
}

/* Preamble: search bar + batch action buttons */
.hz-dynamic-table-preamble {
  display: flex !important;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 16px !important;
  background: #fff;
  border-bottom: 1px solid #e2e4ed;
  min-height: 56px;
}
.hz-dynamic-table-preamble hz-magic-search-bar,
.hz-dynamic-table-preamble .hz-magic-search-bar { flex: 1 1 auto; }
.hz-dynamic-table-preamble .hz-dynamic-table-actions { margin-left: auto; display: inline-flex; gap: 8px; align-items: center; }

/* Magic search input — clean borderless style */
hz-magic-search-bar,
.hz-magic-search-bar { display: flex; align-items: center; gap: 6px; }

hz-magic-search-bar .search-input,
hz-magic-search-bar input[type="text"],
.hz-magic-search-bar input {
  border: none !important;
  border-radius: 0 !important;
  padding: 0 4px !important;
  font-size: 13.5px !important;
  background: transparent !important;
  color: #333 !important;
  height: 36px !important;
  box-shadow: none !important;
  outline: none !important;
  width: 100% !important;
}
hz-magic-search-bar input[type="text"]::placeholder,
.hz-magic-search-bar input::placeholder { color: #aab0c0; }

/* Filters button */
hz-magic-search-bar .btn-search-menu,
hz-magic-search-bar .search-menu,
.hz-magic-search-bar .btn { display: none !important; }

/* Primary batch action button (+ New cluster) */
.hz-dynamic-table-actions .btn-primary {
  background: #1a1f6e !important;
  border-color: #1a1f6e !important;
  color: #fff !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  padding: 0 18px !important;
  height: 36px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  white-space: nowrap !important;
  transition: background 0.15s ease !important;
  letter-spacing: 0.01em !important;
}
.hz-dynamic-table-actions .btn-primary:hover { background: #252b8a !important; border-color: #252b8a !important; }

/* Danger batch action button (Delete) — outlined red */
.hz-dynamic-table-actions .btn-danger {
  background: #fff !important;
  color: #c0392b !important;
  border: 1px solid #e8b4b0 !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  padding: 0 18px !important;
  height: 36px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  white-space: nowrap !important;
  transition: background 0.15s ease, border-color 0.15s ease !important;
}
.hz-dynamic-table-actions .btn-danger:hover {
  background: #fdf0ef !important;
  border-color: #c0392b !important;
}

/* Column headers */
hz-resource-panel .table-detail thead th {
  font-size: 10.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: #9099aa !important;
  border-bottom: 1px solid #e2e4ed !important;
  border-top: none !important;
  padding: 10px 12px !important;
  background: #f8f9fc !important;
  white-space: nowrap !important;
}

/* "Displaying N items" count row in thead */
hz-resource-panel .table-detail thead tr:first-child > td {
  font-size: 12px;
  color: #9099aa;
  padding: 8px 12px;
  background: #f8f9fc;
  border-bottom: 1px solid #e2e4ed;
}

/* Remove Bootstrap zebra stripes — use hover instead */
hz-resource-panel .table-striped > tbody > tr:nth-of-type(odd) > td {
  background: transparent !important;
}

/* Table rows */
hz-resource-panel .table-detail tbody tr {
  border-bottom: 1px solid #f0f1f5;
  transition: background 0.1s ease;
}
hz-resource-panel .table-detail tbody tr:last-child { border-bottom: none; }
hz-resource-panel .table-detail tbody tr:hover > td { background: rgba(26,31,110,0.025) !important; }

hz-resource-panel .table-detail tbody td {
  padding: 12px !important;
  font-size: 13px !important;
  vertical-align: middle !important;
  border-top: none !important;
  color: #333 !important;
}

/* Name / link cells */
hz-resource-panel .table-detail tbody td a {
  font-weight: 600 !important;
  color: #1a1f6e !important;
}
hz-resource-panel .table-detail tbody td a:hover { color: #252b8a !important; text-decoration: underline; }

/* Row action buttons */
hz-resource-panel td.actions_column { white-space: nowrap; }
hz-resource-panel td.actions_column .split-button { display: inline-flex !important; }

hz-resource-panel td.actions_column .split-button > .btn,
hz-resource-panel td.actions_column .btn-group > .btn {
  height: 30px !important;
  line-height: 28px !important;
  padding: 0 12px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  background: #fff !important;
  border-color: #d0d3e0 !important;
  color: #1a1f6e !important;
  border-radius: 0 !important;
}
hz-resource-panel td.actions_column .split-button > .btn:first-child,
hz-resource-panel td.actions_column .btn-group > .btn:first-child { border-radius: 6px 0 0 6px !important; }
hz-resource-panel td.actions_column .split-button > .btn:last-child,
hz-resource-panel td.actions_column .btn-group > .btn:last-child  { border-radius: 0 6px 6px 0 !important; }
hz-resource-panel td.actions_column .btn:only-child { border-radius: 6px !important; }
hz-resource-panel td.actions_column .btn:hover {
  background: #f0f2fc !important;
  border-color: #a0a5d8 !important;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   SQORUS — Instances page (Django DataTable toolbar)
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Caption must NOT expand the anonymous table box beyond width:100% */
#instances caption {
  overflow: hidden;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}
/* Toolbar: flex row — wrap allowed so it never forces the table wider than its container */
#instances .table_actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  background: #fff !important;
  border-bottom: 1px solid #e2e4ed !important;
  padding: 10px 16px !important;
  border-radius: 10px 10px 0 0 !important;
  overflow: hidden !important;
}
#instances .table_actions .table_search { order: 1; flex-shrink: 1; min-width: 0; }
#instances .table_actions .sqorus-instance-filter-tabs { order: 2; flex: 1 1 auto; min-width: 0; }
#instances .table_actions .sqorus-table-btn-group {
  order: 3; margin-left: auto; display: flex; align-items: center; gap: 8px; flex-shrink: 0; flex-wrap: wrap;
}

/* Hide server-side filter dropdown and Filter submit button */
#instances .table_search select,
#instances .table_search .select2-container,
#instances .table_search .select2,
#instances .table_search .form-group:has(select),
#instances .table_search button[type="submit"],
#instances .table_search input[type="submit"] { display: none !important; }

/* Search input */
#instances .table_search .form-group { margin: 0; display: inline-flex; align-items: center; }
#instances .table_search .form-control {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  font-size: 13.5px !important;
  color: #333 !important;
  padding-left: 4px !important;
  width: 240px !important;
  height: 36px !important;
}
#instances .table_search .form-control::placeholder { color: #aab0c0; }
#instances .table_search .search-icon { color: #aab0c0; }

/* Filter tabs */
.sqorus-instance-filter-tabs { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.sqorus-inst-tab {
  background: transparent;
  border: 1px solid #e2e4ed;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12.5px;
  font-weight: 500;
  color: #5f6a7b;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: border-color 0.12s ease, color 0.12s ease, background 0.12s ease;
  line-height: 1;
}
.sqorus-inst-tab:hover { border-color: #b0b6d0; color: #1a1f6e; }
.sqorus-inst-tab.active {
  border-color: #1a1f6e;
  color: #1a1f6e;
  font-weight: 600;
  background: rgba(26,31,110,0.06);
}
.sqorus-inst-tab-dot { color: #c0c6d8; margin: 0 1px; }
.sqorus-inst-tab-count { color: inherit; }

/* Batch action buttons */
#instances__action_delete {
  background: #fff !important; color: #c0392b !important;
  border: 1px solid #e8b4b0 !important; font-weight: 600 !important;
  border-radius: 8px !important; font-size: 13px !important;
  padding: 0 16px !important; height: 36px !important;
  display: inline-flex !important; align-items: center !important;
  gap: 5px !important; white-space: nowrap !important;
  transition: background 0.12s ease, border-color 0.12s ease !important;
  text-shadow: none !important;
}
#instances__action_delete:hover {
  background: #fdf0ef !important; border-color: #c0392b !important; color: #c0392b !important;
}

#instances__action_launch-ng {
  background: #1a1f6e !important; border-color: #1a1f6e !important;
  color: #fff !important; font-weight: 600 !important;
  border-radius: 8px !important; font-size: 13px !important;
  padding: 0 16px !important; height: 36px !important;
  display: inline-flex !important; align-items: center !important;
  gap: 5px !important; white-space: nowrap !important;
  transition: background 0.12s ease !important; text-shadow: none !important;
}
#instances__action_launch-ng:hover {
  background: #252b8a !important; border-color: #252b8a !important; color: #fff !important;
}

/* More dropdown toggle */
#instances .table_actions_menu > .dropdown-toggle {
  background: #fff !important; border: 1px solid #d0d3e0 !important;
  color: #333 !important; border-radius: 8px !important;
  font-size: 13px !important; font-weight: 500 !important;
  padding: 0 14px !important; height: 36px !important;
  display: inline-flex !important; align-items: center !important; gap: 5px !important;
}
#instances .table_actions_menu > .dropdown-toggle:hover {
  background: #f4f5f9 !important; border-color: #b0b6d0 !important;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   SQORUS — Launch Instance slide-over wizard
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ── Immediate positioning via CSS :has() — eliminates flash ── */
.modal:has(.ng-wizard),
.sqorus-launch-panel {
  padding-right: 0 !important;
  overflow: hidden !important;
}
.modal:has(.ng-wizard) .modal-dialog,
.sqorus-launch-panel .modal-dialog {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: auto !important;
  width: 1100px !important;
  max-width: 95vw !important;
  height: 100vh !important;
  margin: 0 !important;
  transform: translateX(100%) !important;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.modal.in:has(.ng-wizard) .modal-dialog,
.sqorus-launch-panel.in .modal-dialog {
  transform: translateX(0) !important;
}
.modal:has(.ng-wizard) .modal-content,
.sqorus-launch-panel .modal-content {
  height: 100% !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: -8px 0 40px rgba(0,0,0,0.14) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}
/* ng-wizard itself must be a flex column so modal-body can scroll */
.modal:has(.ng-wizard) .ng-wizard,
.sqorus-launch-panel .ng-wizard {
  flex: 1 1 0% !important;
  height: 100% !important;
  max-height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

/* Header */
.modal:has(.ng-wizard) .ng-wizard .modal-header,
.sqorus-launch-panel .ng-wizard .modal-header {
  padding: 22px 28px 16px !important;
  border-bottom: 1px solid #e2e4ed !important;
  flex-shrink: 0 !important;
  position: relative !important;
}
.modal:has(.ng-wizard) .ng-wizard .modal-title,
.sqorus-launch-panel .ng-wizard .modal-title {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #1a1f6e !important;
  display: block !important;
  margin: 0 40px 0 0 !important;
}
.sqorus-wizard-subtitle {
  font-size: 12.5px;
  color: #9099aa;
  margin: 4px 0 0;
}
.modal:has(.ng-wizard) .ng-wizard .modal-header .close,
.sqorus-launch-panel .ng-wizard .modal-header .close {
  position: absolute !important;
  top: 20px !important;
  right: 22px !important;
  font-size: 16px !important;
  opacity: 0.45 !important;
  float: none !important;
}
.modal:has(.ng-wizard) .ng-wizard .modal-header .close:hover,
.sqorus-launch-panel .ng-wizard .modal-header .close:hover { opacity: 0.9 !important; }

/* Horizontal stepper */
.sqorus-wizard-stepper {
  display: flex;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid #e2e4ed;
  background: #fafbfc;
  flex-shrink: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  scroll-behavior: smooth;
}
.sqorus-wizard-stepper::-webkit-scrollbar { height: 4px; }
.sqorus-wizard-stepper::-webkit-scrollbar-thumb { background: #d0d3e0; border-radius: 4px; }
.sqorus-wizard-step {
  display: flex;
  align-items: center;
  padding: 14px 0;
  cursor: pointer;
  flex-shrink: 0;
  gap: 6px;
}
.sqorus-step-bubble {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e8e9f0;
  color: #9099aa;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}
.sqorus-wizard-step.active .sqorus-step-bubble { background: #1a1f6e; color: #fff; }
.sqorus-wizard-step.completed .sqorus-step-bubble { background: #16a34a; color: #fff; }
.sqorus-step-label {
  font-size: 11.5px;
  font-weight: 500;
  color: #9099aa;
  white-space: nowrap;
  transition: color 0.2s, max-width 0.25s;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90px;
}
.sqorus-wizard-step.active .sqorus-step-label { max-width: 200px; }
.sqorus-wizard-step.active .sqorus-step-label { color: #1a1f6e; font-weight: 600; }
.sqorus-wizard-step.completed .sqorus-step-label { color: #16a34a; }
.sqorus-step-connector {
  flex: 0 0 22px;
  height: 2px;
  background: #e8e9f0;
  margin: 0 4px;
  border-radius: 2px;
  transition: background 0.3s;
}
.sqorus-step-connector.done { background: #16a34a; }

/* Body: scrollable content area — stepper sits above as its own flex item */
.modal:has(.ng-wizard) .ng-wizard .modal-body,
.sqorus-launch-panel .ng-wizard .modal-body {
  flex: 1 1 0% !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  min-height: 0 !important;
  padding: 0 !important;
  overscroll-behavior: contain !important;
}
.modal:has(.ng-wizard) .ng-wizard .wizard-navigation,
.sqorus-launch-panel .ng-wizard .wizard-navigation { display: none !important; }
.modal:has(.ng-wizard) .ng-wizard .wizard-steps,
.sqorus-launch-panel .ng-wizard .wizard-steps {
  width: 100% !important;
  padding: 24px 28px !important;
}
.modal:has(.ng-wizard) .ng-wizard .wizard-help,
.sqorus-launch-panel .ng-wizard .wizard-help { display: none !important; }
/* Stepper sits between header and body — its flex-shrink keeps it pinned */
.sqorus-wizard-stepper { flex-shrink: 0 !important; }

/* Hide the donut chart (Launch Instance Details step only) and expand the form column */
.sqorus-launch-panel .ng-wizard .step pie-chart,
.sqorus-launch-panel .ng-wizard .step [class*="col-sm-4"]:has(pie-chart) { display: none !important; }
.sqorus-launch-panel .ng-wizard .step .row:has(pie-chart) [class*="col-sm-8"],
.sqorus-launch-panel .ng-wizard .step .row:has(pie-chart) [class*="col-xs-8"] {
  width: 100% !important;
  max-width: 100% !important;
}

/* Form fields */
.sqorus-launch-panel .ng-wizard .step .step-description { display: none !important; }
.sqorus-launch-panel .ng-wizard .step .form-group label.control-label {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #2d3748 !important;
  margin-bottom: 6px !important;
}
.sqorus-launch-panel .ng-wizard .step .form-control {
  height: 40px !important;
  border-radius: 8px !important;
  border: 1px solid #d0d3e0 !important;
  font-size: 13.5px !important;
  color: #333 !important;
  box-shadow: none !important;
}
.sqorus-launch-panel .ng-wizard .step textarea.form-control {
  height: auto !important;
  min-height: 80px !important;
}
.sqorus-launch-panel .ng-wizard .step .form-control:focus {
  border-color: #5b5fc7 !important;
  box-shadow: 0 0 0 3px rgba(91,95,199,0.12) !important;
}
.sqorus-launch-panel .ng-wizard .step .help-block {
  font-size: 11.5px !important;
  color: #9099aa !important;
  margin-top: 4px !important;
}
.sqorus-launch-panel .ng-wizard .step .hz-icon-required {
  color: #e53e3e !important;
  font-size: 6px !important;
  vertical-align: super !important;
  margin-left: 2px !important;
}

/* Footer */
.modal:has(.ng-wizard) .ng-wizard .modal-footer,
.sqorus-launch-panel .ng-wizard .modal-footer {
  border-top: 1px solid #e2e4ed !important;
  padding: 16px 28px !important;
  display: flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
  gap: 8px !important;
  background: #fff !important;
}
.sqorus-launch-panel .ng-wizard .modal-footer .btn.pull-left {
  float: none !important;
  margin-right: auto !important;
  background: #fff !important;
  border: 1px solid #d0d3e0 !important;
  color: #555 !important;
  border-radius: 8px !important;
  padding: 0 16px !important;
  height: 36px !important;
  font-size: 13px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
}
.sqorus-launch-panel .ng-wizard .modal-footer .btn.back,
.sqorus-launch-panel .ng-wizard .modal-footer .btn.next {
  background: #fff !important;
  border: 1px solid #d0d3e0 !important;
  color: #333 !important;
  border-radius: 8px !important;
  padding: 0 16px !important;
  height: 36px !important;
  font-size: 13px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
}
.sqorus-launch-panel .ng-wizard .modal-footer .btn.finish {
  background: #1a1f6e !important;
  border-color: #1a1f6e !important;
  color: #fff !important;
  border-radius: 8px !important;
  padding: 0 22px !important;
  height: 36px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  letter-spacing: 0.01em !important;
}
.sqorus-launch-panel .ng-wizard .modal-footer .btn.finish:hover {
  background: #252b8a !important;
  border-color: #252b8a !important;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   SQORUS — Anti-flash: hide JS-transformed elements until ready
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Instances toolbar: hidden until buildInstanceFilterTabs sets the attribute */
#instances .table_actions:not([data-sq-tabs-built]) {
  opacity: 0;
  pointer-events: none;
}
#instances .table_actions[data-sq-tabs-built] {
  opacity: 1;
  transition: opacity 0.12s ease;
  pointer-events: auto;
}

/* Clusters stats section: hidden until buildClustersStats renders the KPI row */
[ng-controller*="clusterStats"] .row:not(:has(.sqorus-cluster-kpi-row)) {
  opacity: 0;
}
[ng-controller*="clusterStats"] .row:has(.sqorus-cluster-kpi-row) {
  opacity: 1;
  transition: opacity 0.15s ease;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   SQORUS — Classic Horizon modals: slide-over panel
   Covers Django form modals (Create Volume, Edit Instance, …)
   and Django workflow modals (Create Network, Router, Subnet, …)
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Helpers to avoid repetition */
/* form-modal = .modal whose .modal-content has a <form> directly inside */
/* workflow-modal = .workflow.modal (Horizon workflow wizard loaded as a modal) */

/* 1. Position modal-dialog off-screen right immediately via :has() */
.modal:has(.modal-content > form):not(:has(.ng-wizard)) .modal-dialog,
.workflow.modal .modal-dialog {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: auto !important;
  width: 680px !important;
  max-width: 100vw !important;
  height: 100vh !important;
  margin: 0 !important;
  border-radius: 0 !important;
  transform: translateX(100%) !important;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
/* JS fallback: .sqorus-form-panel added after modal is shown — snap into place */
.sqorus-form-panel .modal-dialog {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: auto !important;
  width: 680px !important;
  max-width: 100vw !important;
  height: 100vh !important;
  margin: 0 !important;
  border-radius: 0 !important;
  transform: translateX(0) !important;
  transition: none !important;
}

/* 2. Slide in when Bootstrap adds .in */
.modal.in:has(.modal-content > form):not(:has(.ng-wizard)) .modal-dialog,
.workflow.modal.in .modal-dialog {
  transform: translateX(0) !important;
}

/* 3. modal-content: flex column, full height */
.modal:has(.modal-content > form):not(:has(.ng-wizard)) .modal-content,
.sqorus-form-panel .modal-content,
.workflow.modal .modal-content {
  height: 100% !important;
  border-radius: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  box-shadow: -4px 0 28px rgba(0,0,0,0.13) !important;
  /* Prevent jQuery UI draggable from moving content */
  position: static !important;
  top: auto !important;
  left: auto !important;
}
/* Also block dragging on ng-wizard panels */
.sqorus-launch-panel .modal-content {
  position: static !important;
  top: auto !important;
  left: auto !important;
}

/* 4. Header — pinned */
.modal:has(.modal-content > form):not(:has(.ng-wizard)) .modal-header,
.sqorus-form-panel .modal-header,
.workflow.modal .modal-header {
  flex-shrink: 0 !important;
  padding: 20px 28px 16px !important;
  border-bottom: 1px solid #e2e4ed !important;
  background: #fff !important;
}
.modal:has(.modal-content > form):not(:has(.ng-wizard)) .modal-title,
.sqorus-form-panel .modal-title,
.workflow.modal .modal-title {
  font-size: 17px !important;
  font-weight: 700 !important;
  color: #1a1f6e !important;
}
.modal:has(.modal-content > form):not(:has(.ng-wizard)) .modal-header .close,
.sqorus-form-panel .modal-header .close,
.workflow.modal .modal-header .close {
  color: #9099aa !important;
  opacity: 0.7 !important;
  font-size: 20px !important;
}

/* 5. For form-modals: <form> wraps .modal-body + .modal-footer → make it flex too */
.modal:has(.modal-content > form):not(:has(.ng-wizard)) .modal-content > form,
.sqorus-form-panel .modal-content > form {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

/* 6. Body — scrollable */
.modal:has(.modal-content > form):not(:has(.ng-wizard)) .modal-body,
.sqorus-form-panel .modal-body,
.workflow.modal .modal-body {
  flex: 1 !important;
  overflow-y: auto !important;
  min-height: 0 !important;
  padding: 24px 28px !important;
  overscroll-behavior: contain !important;
}

/* 7. Footer — pinned */
.modal:has(.modal-content > form):not(:has(.ng-wizard)) .modal-footer,
.sqorus-form-panel .modal-footer,
.workflow.modal .modal-footer {
  flex-shrink: 0 !important;
  border-top: 1px solid #e2e4ed !important;
  padding: 14px 28px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  background: #fff !important;
}
/* Footer buttons */
.modal:has(.modal-content > form):not(:has(.ng-wizard)) .modal-footer .btn,
.sqorus-form-panel .modal-footer .btn,
.workflow.modal .modal-footer .btn {
  border-radius: 8px !important;
  height: 36px !important;
  padding: 0 18px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
}
.modal:has(.modal-content > form):not(:has(.ng-wizard)) .modal-footer .btn-primary,
.sqorus-form-panel .modal-footer .btn-primary,
.workflow.modal .modal-footer .btn-primary {
  background: #1a1f6e !important;
  border-color: #1a1f6e !important;
  color: #fff !important;
}
.modal:has(.modal-content > form):not(:has(.ng-wizard)) .modal-footer .btn-default,
.sqorus-form-panel .modal-footer .btn-default,
.workflow.modal .modal-footer .btn-default {
  background: #fff !important;
  border: 1px solid #d0d3e0 !important;
  color: #555 !important;
}
/* Workflow wizard footer: un-nest the .row/.col wrapper */
.workflow.modal .modal-footer .row,
.workflow.modal .modal-footer .row > [class*="col-"] {
  display: contents !important;
}

/* 8. Two-column form layout → single column in slide-over */
.modal:has(.modal-content > form):not(:has(.ng-wizard)) .modal-body .row > [class*="col-sm"],
.sqorus-form-panel .modal-body .row > [class*="col-sm"],
.workflow.modal .modal-body .row > [class*="col-sm"] {
  width: 100% !important;
  float: none !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
/* Right help/quota column: muted divider above it */
.modal:has(.modal-content > form):not(:has(.ng-wizard)) .modal-body .row > [class*="col-sm"]:not(:first-child),
.sqorus-form-panel .modal-body .row > [class*="col-sm"]:not(:first-child),
.workflow.modal .modal-body .row > [class*="col-sm"]:not(:first-child) {
  border-top: 1px solid #e2e4ed !important;
  margin-top: 20px !important;
  padding-top: 16px !important;
}

/* 9. Form fields */
.modal:has(.modal-content > form):not(:has(.ng-wizard)) .modal-body label,
.workflow.modal .modal-body label {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #2d3748 !important;
}
.modal:has(.modal-content > form):not(:has(.ng-wizard)) .modal-body .form-control,
.workflow.modal .modal-body .form-control {
  border-radius: 8px !important;
  border: 1px solid #d0d3e0 !important;
  font-size: 13.5px !important;
  box-shadow: none !important;
  color: #333 !important;
}
.modal:has(.modal-content > form):not(:has(.ng-wizard)) .modal-body .form-control:focus,
.workflow.modal .modal-body .form-control:focus {
  border-color: #5b5fc7 !important;
  box-shadow: 0 0 0 3px rgba(91,95,199,0.12) !important;
}

/* 10. Workflow tab navigation → clean tab-bar */
.workflow.modal .modal-body > ul.nav.nav-pills {
  display: flex !important;
  flex-wrap: nowrap !important;
  border-bottom: 2px solid #e2e4ed !important;
  margin: -24px -28px 24px !important;
  padding: 0 12px !important;
  background: #f8f9fb !important;
  border-radius: 0 !important;
  overflow-x: auto !important;
}
.workflow.modal .modal-body > ul.nav.nav-pills > li {
  float: none !important;
  flex-shrink: 0 !important;
}
.workflow.modal .modal-body > ul.nav.nav-pills > li > a {
  border-radius: 0 !important;
  padding: 11px 16px !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  color: #9099aa !important;
  background: transparent !important;
  border-bottom: 2px solid transparent !important;
  margin-bottom: -2px !important;
}
.workflow.modal .modal-body > ul.nav.nav-pills > li.active > a,
.workflow.modal .modal-body > ul.nav.nav-pills > li.active > a:hover {
  color: #1a1f6e !important;
  border-bottom-color: #1a1f6e !important;
  background: transparent !important;
  font-weight: 700 !important;
}
.workflow.modal .modal-body > ul.nav.nav-pills > li > a:hover {
  color: #555 !important;
  background: rgba(0,0,0,0.03) !important;
}
/* Error/required indicators on tabs */
.workflow.modal .modal-body > ul.nav.nav-pills > li.error > a {
  color: #e53e3e !important;
}
.workflow.modal .modal-body > ul.nav.nav-pills > li.required > a::after {
  content: ' *';
  color: #e53e3e;
  font-size: 10px;
}

/* 11. Anti-flash: hide off-screen until JS/Bootstrap applies .in */
.modal:has(.modal-content > form):not(:has(.ng-wizard)):not(.in) .modal-dialog,
.workflow.modal:not(.in) .modal-dialog {
  visibility: hidden !important;
}
.modal.in:has(.modal-content > form):not(:has(.ng-wizard)) .modal-dialog,
.workflow.modal.in .modal-dialog {
  visibility: visible !important;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   SQORUS — Schema-Form modals (Create Cluster, Create Cluster Template, etc.)
   Identified by .modal-title.h4 which is unique to modal-form.html
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Anti-flash: hidden until .in is added */
.modal:has(.modal-title.h4):not(.modal-wait-spinner):not(.in) .modal-dialog {
  visibility: hidden !important;
}

/* 1. Slide-over positioning */
.modal:has(.modal-title.h4):not(.modal-wait-spinner) .modal-dialog {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  width: 720px !important;
  max-width: 100vw !important;
  height: 100vh !important;
  margin: 0 !important;
  border-radius: 0 !important;
  transform: translateX(100%) !important;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.modal.in:has(.modal-title.h4):not(.modal-wait-spinner) .modal-dialog {
  transform: translateX(0) !important;
  visibility: visible !important;
}

/* 2. Full-height flex column */
.modal:has(.modal-title.h4):not(.modal-wait-spinner) .modal-content {
  height: 100% !important;
  border-radius: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  box-shadow: -4px 0 28px rgba(0,0,0,0.13) !important;
}

/* 3. Header */
.modal:has(.modal-title.h4):not(.modal-wait-spinner) .modal-header {
  flex-shrink: 0 !important;
  padding: 20px 28px 16px !important;
  border-bottom: 1px solid #e2e4ed !important;
  background: #fff !important;
}
.modal:has(.modal-title.h4):not(.modal-wait-spinner) .modal-title {
  font-size: 17px !important;
  font-weight: 700 !important;
  color: #1a1f6e !important;
}
.modal:has(.modal-title.h4):not(.modal-wait-spinner) .modal-header .close {
  color: #9099aa !important;
  opacity: 0.7 !important;
  font-size: 20px !important;
}

/* 4. Body — scrollable */
.modal:has(.modal-title.h4):not(.modal-wait-spinner) .modal-body {
  flex: 1 !important;
  overflow-y: auto !important;
  min-height: 0 !important;
  padding: 24px 28px !important;
}

/* 5. Footer — pinned */
.modal:has(.modal-title.h4):not(.modal-wait-spinner) .modal-footer {
  flex-shrink: 0 !important;
  border-top: 1px solid #e2e4ed !important;
  padding: 14px 28px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  background: #fff !important;
}
.modal:has(.modal-title.h4):not(.modal-wait-spinner) .modal-footer .btn {
  border-radius: 8px !important;
  height: 36px !important;
  padding: 0 18px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
}
.modal:has(.modal-title.h4):not(.modal-wait-spinner) .modal-footer .btn-primary {
  background: #1a1f6e !important;
  border-color: #1a1f6e !important;
  color: #fff !important;
}
.modal:has(.modal-title.h4):not(.modal-wait-spinner) .modal-footer .btn-default {
  background: #fff !important;
  border: 1px solid #d0d3e0 !important;
  color: #555 !important;
}

/* 6. Schema-form tabs layout: hide left-nav col, expand content col */
.modal:has(.modal-title.h4):not(.modal-wait-spinner) .hz-tabs > [class*="col-sm-3"],
.modal:has(.modal-title.h4):not(.modal-wait-spinner) .hz-tabs > [class*="col-xs-3"] {
  display: none !important;
}
.modal:has(.modal-title.h4):not(.modal-wait-spinner) .hz-tabs > .tab-content {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  padding: 0 !important;
}
/* Hide the inline help panel (wizard-help) */
.modal:has(.modal-title.h4):not(.modal-wait-spinner) .wizard-help { display: none !important; }

/* 7. Form field styles */
.modal:has(.modal-title.h4):not(.modal-wait-spinner) .modal-body label {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #2d3748 !important;
}
.modal:has(.modal-title.h4):not(.modal-wait-spinner) .modal-body .form-control {
  border-radius: 8px !important;
  border: 1px solid #d0d3e0 !important;
  font-size: 13.5px !important;
  box-shadow: none !important;
  color: #333 !important;
}
.modal:has(.modal-title.h4):not(.modal-wait-spinner) .modal-body .form-control:focus {
  border-color: #5b5fc7 !important;
  box-shadow: 0 0 0 3px rgba(91,95,199,0.12) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   SQORUS — Loading spinner: replace with backdrop blur
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Hide the spinner card */
/* Spinner card: hidden on every page — JS also enforces this */
.modal-wait-spinner .modal-dialog {
  display: none !important;
  visibility: hidden !important;
}

/* Plain dark overlay replaces the spinner card */
body:has(.modal-wait-spinner.in) .modal-backdrop {
  opacity: 1 !important;
  background: rgba(10, 14, 50, 0.52) !important;
  transition: opacity 0.2s ease !important;
}

/* Once the real wizard/modal opens alongside the spinner closing,
   fade the backdrop smoothly to the new one */
body:has(.modal-wait-spinner.in):has(.sqorus-launch-panel.in) .modal-backdrop:first-of-type {
  opacity: 0 !important;
  transition: opacity 0.25s ease !important;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   SQORUS — Inline live-operation cards
   Persistent progress cards for long-running ops (volumes, instances, snapshots)
   ═══════════════════════════════════════════════════════════════════════════════ */

.sqorus-active-ops {
  margin: 0 0 14px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sqorus-active-ops-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
  margin-bottom: 4px;
}
.sqorus-active-ops-title {
  font-size: 11px;
  font-weight: 700;
  color: #9099aa;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.sqorus-active-ops-count {
  font-size: 12px;
  color: #5b5fc7;
  font-weight: 600;
}

/* ── Card base ────────────────────────────────────────────────────────────── */
.sqorus-live-op-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid #e2e4ed;
  border-radius: 6px;
  padding: 16px 20px;
  overflow: hidden;
  animation: sqorus-op-rise 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Left accent stripe — solid color, changes by state */
.sqorus-live-op-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #5b5fc7;
}
.sqorus-live-op-card.is-queued::before  { background: #d1d5db; }
.sqorus-live-op-card.is-success::before { background: #10b981; }
.sqorus-live-op-card.is-error::before   { background: #ef4444; }

/* ── Icon tile (44x44) — flat, state-tinted ──────────────────────────────── */
.sqorus-op-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  background: #eff0fd;
  color: #5b5fc7;
}
.sqorus-live-op-card.is-queued .sqorus-op-icon  { background: #f4f5f9; color: #9099aa; }
.sqorus-live-op-card.is-success .sqorus-op-icon { background: #ecfdf5; color: #059669; }
.sqorus-live-op-card.is-error .sqorus-op-icon   { background: #fef2f2; color: #dc2626; }

/* ── Info column ──────────────────────────────────────────────────────────── */
.sqorus-op-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sqorus-op-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #1a1f6e;
  flex-wrap: wrap;
}
.sqorus-op-resource {
  font-family: 'IBM Plex Mono', 'JetBrains Mono', 'Menlo', 'Consolas', monospace;
  font-size: 12px;
  font-weight: 500;
  background: rgba(91, 95, 199, 0.08);
  color: #5b5fc7;
  padding: 2px 8px;
  border-radius: 5px;
  letter-spacing: -0.01em;
}
.sqorus-op-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}
.sqorus-op-chip.is-running {
  background: rgba(91, 95, 199, 0.10);
  color: #5b5fc7;
}
.sqorus-op-chip.is-queued {
  background: rgba(144, 153, 170, 0.12);
  color: #6b7280;
}
.sqorus-op-chip.is-success {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}
.sqorus-op-chip.is-error {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}
/* State dot inside chip — static */
.sqorus-op-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.sqorus-op-chip.is-running .sqorus-op-dot { background: #5b5fc7; }
.sqorus-op-chip.is-queued .sqorus-op-dot  { background: #9099aa; }
.sqorus-op-chip.is-success .sqorus-op-dot { background: #10b981; }
.sqorus-op-chip.is-error .sqorus-op-dot   { background: #ef4444; }

.sqorus-op-substep {
  font-size: 12px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sqorus-op-substep strong {
  color: #2d3748;
  font-weight: 600;
}

/* ── Progress column (right-aligned, 200px) ──────────────────────────────── */
.sqorus-op-progress {
  width: 200px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}
.sqorus-op-progress-stats {
  font-family: 'IBM Plex Mono', 'JetBrains Mono', 'Menlo', 'Consolas', monospace;
  font-size: 11px;
  color: #5f6a7b;
  white-space: nowrap;
}
.sqorus-op-progress-stats strong {
  color: #1a1f6e;
  font-weight: 700;
}
.sqorus-op-progress-bar {
  position: relative;
  width: 200px;
  height: 6px;
  background: #eef0f6;
  border-radius: 999px;
  overflow: hidden;
}
.sqorus-op-progress-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0%;
  background: #5b5fc7;
  border-radius: 999px;
  transition: width 0.6s ease;
}
.sqorus-live-op-card.is-success .sqorus-op-progress-fill {
  background: #10b981;
  width: 100% !important;
}
.sqorus-live-op-card.is-error .sqorus-op-progress-fill {
  background: #ef4444;
}
.sqorus-live-op-card.is-queued .sqorus-op-progress-fill {
  background: rgba(144, 153, 170, 0.4);
  box-shadow: none;
  width: 12% !important;
  animation: sqorus-op-indeterminate 2s ease-in-out infinite;
}

/* ── Cancel/View/Retry buttons ───────────────────────────────────────────── */
.sqorus-op-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.sqorus-op-btn {
  background: #fff;
  border: 1px solid #e2e4ed;
  color: #6b7280;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.sqorus-op-btn:hover {
  background: #f8f9fb;
  color: #2d3748;
}
.sqorus-op-btn-cancel:hover {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}
.sqorus-op-btn-primary {
  background: #1a1f6e;
  border-color: #1a1f6e;
  color: #fff;
}
.sqorus-op-btn-primary:hover {
  background: #252b8a;
  border-color: #252b8a;
  color: #fff;
}

/* ── Card dismiss animation ──────────────────────────────────────────────── */
.sqorus-live-op-card.is-dismissing {
  animation: sqorus-op-dismiss 380ms cubic-bezier(0.4, 0, 0.6, 1) forwards;
}

/* ── Animations ──────────────────────────────────────────────────────────── */
@keyframes sqorus-op-rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes sqorus-op-dismiss {
  to { opacity: 0; transform: translateY(-6px) scale(0.98); height: 0; padding-top: 0; padding-bottom: 0; margin-top: 0; margin-bottom: 0; border-width: 0; }
}
@keyframes sqorus-op-indeterminate {
  0%   { width: 12% !important; transform: translateX(0); }
  50%  { width: 28% !important; }
  100% { width: 12% !important; transform: translateX(640%); }
}

/* Responsive — collapse progress column on narrow screens */
@media (max-width: 900px) {
  .sqorus-live-op-card { flex-wrap: wrap; }
  .sqorus-op-progress { width: 100%; align-items: stretch; }
  .sqorus-op-progress-bar { width: 100%; }
}

/* ── Launch Instance transfer-tables: ensure action column stays visible ── */
.sqorus-launch-panel .ng-wizard transfer-table table,
.sqorus-launch-panel .ng-wizard .transfer-table table {
  table-layout: auto !important;
  width: 100% !important;
}
.sqorus-launch-panel .ng-wizard transfer-table .actions_column,
.sqorus-launch-panel .ng-wizard transfer-table th:last-child,
.sqorus-launch-panel .ng-wizard transfer-table td:last-child,
.sqorus-launch-panel .ng-wizard .transfer-table th:last-child,
.sqorus-launch-panel .ng-wizard .transfer-table td:last-child {
  width: 56px !important;
  min-width: 56px !important;
  text-align: center !important;
  padding-left: 4px !important;
  padding-right: 4px !important;
  position: sticky !important;
  right: 0 !important;
  background: #fff !important;
  z-index: 2 !important;
  box-shadow: -4px 0 8px -4px rgba(0,0,0,0.06) !important;
}
.sqorus-launch-panel .ng-wizard transfer-table .action-col-btn,
.sqorus-launch-panel .ng-wizard transfer-table button.btn,
.sqorus-launch-panel .ng-wizard transfer-table action-list a,
.sqorus-launch-panel .ng-wizard transfer-table action-list button {
  background: #1a1f6e !important;
  border-color: #1a1f6e !important;
  color: #fff !important;
  border-radius: 6px !important;
  padding: 6px 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
/* Make sure the table wrapper allows horizontal scroll if rows are still wider */
.sqorus-launch-panel .ng-wizard .step .table-batch-action,
.sqorus-launch-panel .ng-wizard .step transfer-table,
.sqorus-launch-panel .ng-wizard .step .transfer-table {
  overflow-x: auto !important;
}

/* ── Alarms page ─────────────────────────────────────────────────────────── */
.sqorus-page-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.sqorus-page-toolbar .sqorus-page-heading { margin-bottom: 0; }

.sqorus-alarm-actions { width: 40px; text-align: center; }
.sqorus-alarm-del-btn {
  background: none;
  border: none;
  padding: 4px 6px;
  cursor: pointer;
  color: #9099aa;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}
.sqorus-alarm-del-btn:hover { color: #dc2626; background: #fef2f2; }

.sqorus-empty-state {
  text-align: center;
  padding: 48px 24px;
  color: #9099aa;
}
.sqorus-empty-state p { margin: 12px 0 20px; font-size: 14px; }

/* ── Create alarm form ───────────────────────────────────────────────────── */
.sqorus-create-alarm-page { max-width: 780px; }

.sqorus-alarm-form-wrap {
  background: #fff;
  border: 1px solid #e2e4ed;
  border-radius: 6px;
  overflow: hidden;
}

.sqorus-form-section {
  padding: 20px 24px;
  border-bottom: 1px solid #e2e4ed;
}
.sqorus-form-section:last-of-type { border-bottom: none; }

.sqorus-form-section-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #9099aa;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.sqorus-form-row { margin-bottom: 14px; }
.sqorus-form-row:last-child { margin-bottom: 0; }
.sqorus-form-row label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #3d4460;
  margin-bottom: 5px;
}
.sqorus-form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.sqorus-form-row-3col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

.sqorus-form-input,
.sqorus-form-select {
  width: 100%;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #e2e4ed;
  border-radius: 4px;
  font-size: 13px;
  color: #1a1f6e;
  background: #fafbfd;
  transition: border-color 0.15s;
  font-family: 'IBM Plex Mono', monospace;
}
.sqorus-form-input:focus,
.sqorus-form-select:focus {
  outline: none;
  border-color: #5b5fc7;
  background: #fff;
}

.sqorus-form-hint {
  font-size: 11px;
  color: #9099aa;
  margin-top: 4px;
  line-height: 1.5;
}

.sqorus-required { color: #dc2626; }
.sqorus-optional { color: #9099aa; font-weight: 400; }

/* Alarm type selector cards */
.sqorus-alarm-type-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.sqorus-type-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #e2e4ed;
  border-radius: 6px;
  cursor: pointer;
  background: #fafbfd;
  transition: border-color 0.15s, background 0.15s;
}
.sqorus-type-card:hover { border-color: #5b5fc7; background: #f8f8ff; }
.sqorus-type-card-active {
  border-color: #1a1f6e;
  background: #f0f1fb;
}
.sqorus-type-card-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: #e8e9f8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1f6e;
}
.sqorus-type-card-active .sqorus-type-card-icon { background: #1a1f6e; color: #fff; }
.sqorus-type-card-name { font-size: 13px; font-weight: 600; color: #1a1f6e; }
.sqorus-type-card-desc { font-size: 11px; color: #9099aa; margin-top: 2px; line-height: 1.4; }

/* Event quick-fill chips */
.sqorus-common-events { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sqorus-event-chip {
  background: #f4f5f9;
  border: 1px solid #e2e4ed;
  border-radius: 3px;
  padding: 2px 8px;
  font-size: 11px;
  font-family: 'IBM Plex Mono', monospace;
  color: #1a1f6e;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}
.sqorus-event-chip:hover { background: #e8e9f8; border-color: #5b5fc7; }

/* Form actions */
.sqorus-form-actions {
  padding: 16px 24px;
  background: #fafbfd;
  border-top: 1px solid #e2e4ed;
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Secondary btn variant */
.sqov-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  height: 32px;
  border: 1px solid #e2e4ed;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #3d4460;
  background: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.sqov-btn-secondary:hover { border-color: #9099aa; background: #f4f5f9; color: #1a1f6e; text-decoration: none; }

/* ── Inline button loading state ─────────────────────────────────────────── */
@keyframes sq-spin { to { transform: rotate(360deg); } }

.sq-btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: sq-spin 0.65s linear infinite;
  vertical-align: middle;
}

/* On light-background buttons (secondary, default) the border should be dark */
.btn-default .sq-btn-spinner,
.btn-link .sq-btn-spinner,
.sqov-btn-secondary .sq-btn-spinner,
.sqorus-alarm-del-btn .sq-btn-spinner {
  border-color: rgba(26, 31, 110, 0.2);
  border-top-color: #1a1f6e;
}

.sq-btn-loading {
  pointer-events: none;
  opacity: 0.85;
}

/* Suppress all Horizon "Loading..." modals — replaced by inline button spinners */
.modal-wait-spinner,
.modal.loading,
#loader-modal,
.loader-inline { display: none !important; }
/* Also kill the backdrop that gets paired with these loading modals */
body:has(> .modal.loading) > .modal-backdrop:last-of-type,
body:has(> #loader-modal) > .modal-backdrop:last-of-type { display: none !important; }

/* ── Add Members to Group modal ──────────────────────────────────────────── */
/* The table fills the scrollable body; the form is just a pinned footer.    */
#add_group_members_modal .modal-body.sqorus-add-members-body {
  flex: 1 1 0% !important;
  overflow-y: auto !important;
  padding: 0 !important;
}
#add_group_members_modal .sqorus-add-members-form {
  flex: 0 0 auto !important;
  overflow: visible !important;
}
/* Compact the inner table toolbar to match our style */
#add_group_members_modal .table_actions {
  padding: 12px 20px 8px !important;
  border-bottom: 1px solid #e2e4ed !important;
}
#add_group_members_modal table.table { margin-bottom: 0 !important; }

/* ═══════════════════════════════════════════════════════════════════════════
   NAVBAR REDESIGN — Project pill · Notification bell · User pill (2026-05)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Kill the "1ad" SCSS ::before ghost on both new pills */
.sqorus-right-nav .sqorus-project-dropdown > a.dropdown-toggle::before,
.sqorus-right-nav .sqorus-user-li > a.dropdown-toggle::before {
  content: none !important;
}

/* ── PROJECT pill ────────────────────────────────────────────────────────── */
.sqorus-project-dropdown > .sqorus-project-pill-toggle {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 0 !important;
  padding: 4px 14px 4px 11px !important;
  margin: 7px 4px !important;
  background: rgba(255,255,255,0.1) !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  border-radius: 20px !important;
  min-width: 130px;
  cursor: pointer;
  line-height: 1 !important;
  height: auto !important;
}
.sqorus-project-dropdown > .sqorus-project-pill-toggle:hover,
.sqorus-project-dropdown > .sqorus-project-pill-toggle:focus {
  background: rgba(255,255,255,0.18) !important;
  border-color: rgba(255,255,255,0.25) !important;
  color: #fff !important;
}
.sqorus-proj-eyebrow {
  font-size: 8px; font-weight: 700;
  font-family: 'IBM Plex Mono', monospace;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  line-height: 1; margin-bottom: 2px;
}
.sqorus-proj-row {
  display: flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,0.92);
  line-height: 1.2;
}
.sqorus-proj-folder {
  width: 13px; height: 11px;
  opacity: 0.65; flex-shrink: 0;
}
.sqorus-proj-dot  { color: rgba(255,255,255,0.3); font-weight: 400; }
.sqorus-proj-domain { color: rgba(255,255,255,0.58); font-weight: 500; font-size: 12px; }
.sqorus-proj-caret {
  width: 8px; height: 5px;
  color: rgba(255,255,255,0.42);
  stroke: rgba(255,255,255,0.42);
  margin-left: 5px; flex-shrink: 0;
}

/* ── Notification bell ───────────────────────────────────────────────────── */
li.sqorus-notif-li {
  display: flex !important;
  align-items: center;
  padding: 0 2px;
}
.sqorus-bell-btn {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  margin: 8px 2px;
  cursor: pointer; position: relative;
  transition: background 0.15s;
}
.sqorus-bell-btn:hover { background: rgba(255,255,255,0.18); }
.sqorus-bell-btn svg { width: 16px; height: 16px; stroke: rgba(255,255,255,0.8); }
.sqorus-notif-dot {
  position: absolute; top: 7px; right: 7px;
  width: 6px; height: 6px; border-radius: 50%;
  background: #ef4444;
  border: 1.5px solid #1a1f6e;
  pointer-events: none;
}

/* ── USER pill ───────────────────────────────────────────────────────────── */
.sqorus-user-li > .sqorus-user-pill-toggle {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 4px 12px 4px 5px !important;
  margin: 7px 0 7px 4px !important;
  background: rgba(255,255,255,0.1) !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  border-radius: 100px !important;
  height: auto !important;
}
.sqorus-user-li > .sqorus-user-pill-toggle:hover,
.sqorus-user-li > .sqorus-user-pill-toggle:focus {
  background: rgba(255,255,255,0.18) !important;
  border-color: rgba(255,255,255,0.25) !important;
  color: #fff !important;
}
.sqorus-user-avatar-pill {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, #5b5fc7 0%, #7c3aed 100%);
  color: #fff; font-size: 11px; font-weight: 700;
  font-family: 'IBM Plex Mono', monospace;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sqorus-user-pill-stack {
  display: flex; flex-direction: column; gap: 1px; line-height: 1;
}
.sqorus-user-pill-name {
  font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,0.92); white-space: nowrap;
}
.sqorus-user-pill-sub {
  font-size: 10px; color: rgba(255,255,255,0.45);
  font-family: 'IBM Plex Mono', monospace;
  white-space: nowrap; max-width: 130px;
  overflow: hidden; text-overflow: ellipsis;
}
.sqorus-user-caret {
  width: 8px; height: 5px;
  stroke: rgba(255,255,255,0.42); flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   USER MENU PANEL
   ═══════════════════════════════════════════════════════════════════════════ */
.sqorus-user-panel.dropdown-menu {
  width: 320px !important;
  min-width: 320px !important;
  border-radius: 12px !important;
  border: 1px solid #e4e6f0 !important;
  box-shadow: 0 8px 40px rgba(26,31,110,0.14), 0 2px 8px rgba(0,0,0,0.06) !important;
  padding: 0 !important;
  overflow: hidden;
  margin-top: 6px !important;
}

/* ── Identity block ──────────────────────────────────────────────────────── */
.sqorus-user-panel li.sqorus-panel-identity {
  display: flex !important;
  align-items: center; gap: 12px;
  padding: 15px 16px !important;
  background: #fff;
  border-bottom: 1px solid #f0f1f6;
  cursor: default;
}
.sqorus-panel-avatar {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, #5b5fc7 0%, #7c3aed 100%);
  color: #fff; font-size: 14px; font-weight: 700;
  font-family: 'IBM Plex Mono', monospace;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(91,95,199,0.28);
}
.sqorus-panel-id-text { flex: 1; min-width: 0; }
.sqorus-panel-name {
  font-size: 14px; font-weight: 600; color: #1a1e2e;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sqorus-panel-email {
  font-size: 11px; color: #9099aa;
  font-family: 'IBM Plex Mono', monospace;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 2px;
}
.sqorus-panel-role-chip {
  font-size: 10px; font-weight: 700;
  font-family: 'IBM Plex Mono', monospace;
  color: #4f52cc; background: #eef0ff;
  border-radius: 4px; padding: 3px 7px;
  white-space: nowrap; flex-shrink: 0;
  letter-spacing: 0.03em;
}

/* ── Project scope strip ─────────────────────────────────────────────────── */
.sqorus-user-panel li.sqorus-panel-project {
  display: flex !important;
  align-items: center; gap: 8px;
  padding: 9px 16px !important;
  background: #f8f9fc;
  border-bottom: 1px solid #f0f1f6;
  cursor: default;
}
.sqorus-pp-label {
  font-size: 9px; font-weight: 700;
  font-family: 'IBM Plex Mono', monospace;
  color: #9099aa; letter-spacing: 0.10em;
  text-transform: uppercase;
  white-space: nowrap; flex-shrink: 0;
}
.sqorus-pp-value {
  flex: 1; font-size: 12px; color: #1a1e2e;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sqorus-pp-sep { color: #9099aa; font-weight: 400; }
.sqorus-pp-switch {
  font-size: 12px; font-weight: 600;
  color: #4f52cc !important; text-decoration: none !important;
  white-space: nowrap; flex-shrink: 0;
  transition: color 0.12s;
}
.sqorus-pp-switch:hover { color: #1a1f6e !important; }

/* ── Section label ───────────────────────────────────────────────────────── */
.sqorus-user-panel li.sqorus-panel-section-hdr {
  font-size: 9px; font-weight: 700;
  font-family: 'IBM Plex Mono', monospace;
  color: #9099aa; letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 12px 16px 4px !important;
  cursor: default; line-height: 1;
}

/* ── Panel menu items ────────────────────────────────────────────────────── */
.sqorus-user-panel li.sqorus-panel-item > a {
  display: flex !important;
  align-items: center; gap: 10px;
  padding: 9px 16px !important;
  font-size: 13px; font-weight: 500;
  color: #1a1e2e !important;
  transition: background 0.1s;
  text-decoration: none !important;
  background: #fff;
}
.sqorus-user-panel li.sqorus-panel-item > a:hover {
  background: #f6f7fb !important;
  color: #1a1f6e !important;
}
.sqorus-pi-icon {
  width: 16px; height: 16px;
  stroke: #9099aa; flex-shrink: 0;
  transition: stroke 0.1s;
}
.sqorus-user-panel li.sqorus-panel-item > a:hover .sqorus-pi-icon { stroke: #4f52cc; }
/* Right-aligned elements */
.sqorus-pi-end { margin-left: auto; flex-shrink: 0; }
.sqorus-pi-shortcut {
  font-size: 10px; font-family: 'IBM Plex Mono', monospace;
  color: #9099aa; background: #f0f1f6;
  padding: 2px 5px; border-radius: 3px;
  white-space: nowrap;
}
.sqorus-pi-theme {
  font-size: 11px; font-family: 'IBM Plex Mono', monospace;
  color: #9099aa; white-space: nowrap;
}
.sqorus-pi-dl {
  width: 14px; height: 14px;
  stroke: #9099aa; flex-shrink: 0;
  transition: stroke 0.1s;
}
.sqorus-user-panel li.sqorus-panel-item > a:hover .sqorus-pi-dl { stroke: #4f52cc; }

/* ── CLI file chips ──────────────────────────────────────────────────────── */
.sqorus-fchip {
  font-size: 9px; font-weight: 700;
  font-family: 'IBM Plex Mono', monospace;
  color: #4f52cc; background: #eef0ff;
  border: 1px solid #d5d8f5;
  border-radius: 3px; padding: 2px 5px;
  white-space: nowrap; flex-shrink: 0;
  letter-spacing: 0.02em;
}
.sqorus-fchip-yaml {
  color: #059669; background: #ecfdf5;
  border-color: #a7f3d0;
}

/* ── Dividers ────────────────────────────────────────────────────────────── */
.sqorus-user-panel li.sqorus-panel-divider {
  height: 1px !important; padding: 0 !important; margin: 4px 0 !important;
  background: #f0f1f6; border: none; overflow: hidden;
}

/* ── Sign out row ────────────────────────────────────────────────────────── */
.sqorus-user-panel li.sqorus-panel-signout > a { color: #444 !important; }
.sqorus-user-panel li.sqorus-panel-signout > a:hover {
  background: #fff5f5 !important; color: #b91c1c !important;
}
.sqorus-user-panel li.sqorus-panel-signout > a:hover .sqorus-pi-icon { stroke: #b91c1c; }

/* ═══════════════════════════════════════════════════════════════════════════
   USER MENU — Animations & micro-interactions (2026-05)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Panel open animation — fires when Bootstrap adds .open to the <li> */
@keyframes sqPanelIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.975); }
  to   { opacity: 1; transform: translateY(0)   scale(1);     }
}
.sqorus-user-li.open .sqorus-user-panel {
  animation: sqPanelIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Same animation for project dropdown */
@keyframes sqContextIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)   scale(1);    }
}
.sqorus-project-dropdown.open .dropdown-menu {
  animation: sqContextIn 0.18s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Active state: pills brighten when dropdown is open */
.sqorus-user-li.open > .sqorus-user-pill-toggle {
  background: rgba(255,255,255,0.22) !important;
  border-color: rgba(255,255,255,0.32) !important;
}
.sqorus-project-dropdown.open > .sqorus-project-pill-toggle {
  background: rgba(255,255,255,0.22) !important;
  border-color: rgba(255,255,255,0.32) !important;
}

/* Caret rotates when open */
.sqorus-user-li.open .sqorus-user-caret,
.sqorus-project-dropdown.open .sqorus-proj-caret {
  transform: rotate(180deg);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.sqorus-user-caret, .sqorus-proj-caret {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Panel items: staggered reveal via animation-delay */
.sqorus-user-li.open .sqorus-user-panel li {
  animation: sqItemIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes sqItemIn {
  from { opacity: 0; transform: translateX(-4px); }
  to   { opacity: 1; transform: translateX(0); }
}
.sqorus-user-li.open .sqorus-user-panel li:nth-child(1)  { animation-delay: 0.04s; }
.sqorus-user-li.open .sqorus-user-panel li:nth-child(2)  { animation-delay: 0.07s; }
.sqorus-user-li.open .sqorus-user-panel li:nth-child(3)  { animation-delay: 0.09s; }
.sqorus-user-li.open .sqorus-user-panel li:nth-child(4)  { animation-delay: 0.11s; }
.sqorus-user-li.open .sqorus-user-panel li:nth-child(5)  { animation-delay: 0.13s; }
.sqorus-user-li.open .sqorus-user-panel li:nth-child(6)  { animation-delay: 0.14s; }
.sqorus-user-li.open .sqorus-user-panel li:nth-child(7)  { animation-delay: 0.15s; }
.sqorus-user-li.open .sqorus-user-panel li:nth-child(8)  { animation-delay: 0.16s; }
.sqorus-user-li.open .sqorus-user-panel li:nth-child(9)  { animation-delay: 0.17s; }
.sqorus-user-li.open .sqorus-user-panel li:nth-child(10) { animation-delay: 0.18s; }
.sqorus-user-li.open .sqorus-user-panel li:nth-child(11) { animation-delay: 0.19s; }
.sqorus-user-li.open .sqorus-user-panel li:nth-child(12) { animation-delay: 0.20s; }
.sqorus-user-li.open .sqorus-user-panel li:nth-child(13) { animation-delay: 0.21s; }
.sqorus-user-li.open .sqorus-user-panel li:nth-child(14) { animation-delay: 0.22s; }

/* Notification bell: subtle ring animation on hover */
@keyframes sqBellRing {
  0%,100% { transform: rotate(0deg); }
  20%      { transform: rotate(-12deg); }
  40%      { transform: rotate(10deg); }
  60%      { transform: rotate(-8deg); }
  80%      { transform: rotate(6deg); }
}
.sqorus-bell-btn:hover svg {
  animation: sqBellRing 0.5s ease both;
}

/* Panel: hairline top border glow on the avatar block */
.sqorus-panel-avatar {
  box-shadow: 0 4px 14px rgba(91,95,199,0.32), inset 0 1px 0 rgba(255,255,255,0.3) !important;
}

/* Smooth icon color transition on items */
.sqorus-user-panel li.sqorus-panel-item > a .sqorus-pi-icon,
.sqorus-user-panel li.sqorus-panel-item > a .sqorus-pi-dl { transition: stroke 0.15s ease; }

/* Sign out: smooth background transition */
.sqorus-user-panel li.sqorus-panel-signout > a { transition: background 0.15s ease, color 0.15s ease; }

/* ═══════════════════════════════════════════════════════════════════════════
   NAVBAR — Tweaks (2026-05-18)
   ═══════════════════════════════════════════════════════════════════════════ */

/* User pill: wider subtitle, more breathing room */
.sqorus-user-pill-sub {
  max-width: 220px !important;
}
.sqorus-user-li > .sqorus-user-pill-toggle {
  padding-right: 14px !important;
  min-width: 160px;
}

/* Hamburger button: refine — thinner bars, tighter gap, snappier transition */
.sqorus-hamburger-btn {
  width: 34px !important;
  height: 34px !important;
  margin: 8px 10px 8px 2px !important;
  gap: 4px !important;
  border-radius: 8px !important;
  background: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  transition: background 0.12s ease, border-color 0.12s ease !important;
}
.sqorus-hamburger-btn:hover,
.sqorus-hamburger-btn:focus {
  background: rgba(255,255,255,0.18) !important;
  border-color: rgba(255,255,255,0.25) !important;
}
.sqorus-hamburger-btn .sqorus-hamburger-bar {
  width: 15px !important;
  height: 1.5px !important;
  background: rgba(255,255,255,0.92) !important;
  border-radius: 1px !important;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

/* Active state: bars morph slightly when sidebar is collapsed */
html.sqorus-sidebar-collapsed .sqorus-hamburger-btn .sqorus-hamburger-bar:nth-child(1) {
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════════════════
   HAMBURGER X ANIMATION + PILL MARGIN + THEME SUBMENU (2026-05-18)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Pull user pill away from right edge ─────────────────────────────────── */
.navbar.sqorus-header .container-fluid { padding-right: 18px !important; }
.sqorus-user-li > .sqorus-user-pill-toggle { margin: 7px 8px 7px 4px !important; }

/* ── Hamburger: ☰ ↔ ✕ animation ──────────────────────────────────────────── */
.sqorus-hamburger-btn .sqorus-hamburger-bar {
  transition: transform 0.35s cubic-bezier(0.68, -0.25, 0.265, 1.35),
              opacity 0.2s ease,
              background 0.15s ease;
  transform-origin: center;
}
/* Default state: sidebar VISIBLE → bars form X (close indicator) */
.sqorus-hamburger-btn .sqorus-hamburger-bar:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}
.sqorus-hamburger-btn .sqorus-hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.sqorus-hamburger-btn .sqorus-hamburger-bar:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}
/* Collapsed state: sidebar HIDDEN → bars are horizontal (hamburger) */
html.sqorus-sidebar-collapsed .sqorus-hamburger-btn .sqorus-hamburger-bar:nth-child(1) {
  transform: translateY(0) rotate(0);
}
html.sqorus-sidebar-collapsed .sqorus-hamburger-btn .sqorus-hamburger-bar:nth-child(2) {
  opacity: 1;
  transform: scaleX(1);
}
html.sqorus-sidebar-collapsed .sqorus-hamburger-btn .sqorus-hamburger-bar:nth-child(3) {
  transform: translateY(0) rotate(0);
}
/* Click feedback: brief press */
.sqorus-hamburger-btn:active { transform: scale(0.94); transition: transform 0.08s ease; }

/* ═══════════════════════════════════════════════════════════════════════════
   APPEARANCE — Expandable theme submenu
   ═══════════════════════════════════════════════════════════════════════════ */
.sqorus-panel-appearance .sqorus-pi-chevron {
  width: 9px; height: 6px; stroke: #9099aa;
  margin-left: 6px; flex-shrink: 0;
  transition: transform 0.2s ease, stroke 0.15s ease;
}
.sqorus-panel-appearance.expanded .sqorus-pi-chevron {
  transform: rotate(180deg);
  stroke: #4f52cc;
}
.sqorus-panel-appearance.expanded > a {
  background: #f6f7fb !important;
  color: #1a1f6e !important;
}
.sqorus-panel-appearance.expanded > a .sqorus-pi-icon { stroke: #4f52cc; }
.sqorus-panel-appearance.expanded > a .sqorus-pi-theme { color: #4f52cc; }

/* Theme list — slides open beneath Appearance */
.sqorus-user-panel li.sqorus-panel-themes {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  background: #f8f9fc;
  border-top: 0 solid #f0f1f6;
  border-bottom: 0 solid #f0f1f6;
  transition: max-height 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.18s ease,
              border-width 0.2s ease;
  padding: 0 !important;
}
.sqorus-user-panel li.sqorus-panel-themes.expanded {
  max-height: 240px;
  opacity: 1;
  border-top-width: 1px;
  border-bottom-width: 1px;
}
.sqorus-theme-opt {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 42px !important;
  font-size: 12.5px;
  color: #1a1e2e !important;
  text-decoration: none !important;
  transition: background 0.1s ease;
  background: transparent;
}
.sqorus-theme-opt:hover {
  background: rgba(91,95,199,0.07) !important;
}
.sqorus-theme-opt.is-current {
  color: #4f52cc !important;
  font-weight: 600;
  cursor: default;
}
.sqorus-theme-opt.is-current:hover {
  background: rgba(91,95,199,0.06) !important;
}
.sqorus-theme-label { flex: 1; }
.sqorus-theme-swatch {
  width: 14px; height: 14px;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.08);
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
}
.sqorus-theme-swatch-default  { background: linear-gradient(135deg, #ffffff 0%, #e8e8e8 100%); }
.sqorus-theme-swatch-material { background: linear-gradient(135deg, #2962ff 0%, #1565c0 100%); }
.sqorus-theme-swatch-sqorus   { background: linear-gradient(135deg, #1a1f6e 0%, #5b5fc7 100%); }
.sqorus-theme-check {
  width: 12px; height: 10px;
  stroke: #4f52cc;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PILL TIGHTENING — project pill row layout, balanced user pill (2026-05-18)
   ═══════════════════════════════════════════════════════════════════════════ */

/* PROJECT pill: row layout, caret inline on the right */
.sqorus-project-dropdown > .sqorus-project-pill-toggle {
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 5px 12px 5px 13px !important;
  min-width: 0 !important;
  height: 36px;
}
.sqorus-proj-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1;
}
.sqorus-proj-eyebrow {
  margin-bottom: 0 !important;
  line-height: 1;
}
.sqorus-proj-row {
  font-size: 12.5px;
}
.sqorus-proj-caret {
  margin-left: 0 !important;
}

/* USER pill: tighter, content-sized */
.sqorus-user-li > .sqorus-user-pill-toggle {
  min-width: 0 !important;
  gap: 9px !important;
  padding: 4px 12px 4px 4px !important;
  height: 36px;
}
.sqorus-user-pill-stack {
  gap: 2px !important;
}
.sqorus-user-pill-name { line-height: 1; }
.sqorus-user-pill-sub  { line-height: 1; }

/* ══════════════════════════════════════════════════════════
   Support Modal  (sqsup-*)
   ══════════════════════════════════════════════════════════ */
.sqsup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 19000;
  background: rgba(10,14,50,0.52);
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(2px);
}
.sqsup-overlay.sqsup-open {
  display: flex;
  animation: sqsupBgIn 0.22s ease-out;
}
.sqsup-overlay.sqsup-closing { animation: sqsupBgOut 0.22s ease-in forwards; }
@keyframes sqsupBgIn  { from { opacity:0 } to { opacity:1 } }
@keyframes sqsupBgOut { from { opacity:1 } to { opacity:0 } }

.sqsup-panel {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(10,14,50,0.18), 0 4px 16px rgba(10,14,50,0.07);
  width: 100%;
  max-width: 680px;
  max-height: calc(100vh - 48px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.sqsup-in { animation: sqsupPanelIn 0.32s cubic-bezier(0.22,1,0.36,1); }
@keyframes sqsupPanelIn { from { opacity:0; transform:translateY(10px) scale(0.98) } to { opacity:1; transform:translateY(0) scale(1) } }

/* Panel header */
.sqsup-panel-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 22px 18px;
  border-bottom: 1px solid #e2e4ed;
  flex-shrink: 0;
}
.sqsup-panel-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.sqsup-panel-icon svg { width: 22px; height: 22px; }
.sqsup-icon-violet { background: linear-gradient(135deg,#4f46e5 0%,#7c3aed 100%); }
.sqsup-panel-head-text { flex: 1 1 0%; min-width: 0; }
.sqsup-panel-title { font-size: 16px; font-weight: 700; color: #0f1329; margin: 0 0 3px; letter-spacing: -0.3px; }
.sqsup-panel-sub   { font-size: 12.5px; color: #9099aa; margin: 0; }
.sqsup-x-btn {
  flex-shrink: 0; width: 30px; height: 30px;
  background: none; border: none; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #9099aa; padding: 0;
  transition: background 0.15s, color 0.15s;
}
.sqsup-x-btn:hover { background: #f4f5f9; color: #0f1329; }
.sqsup-x-btn svg { width: 13px; height: 13px; }

/* Category grid */
.sqsup-cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  padding: 18px 22px;
  flex-shrink: 0;
}
.sqsup-cat-card {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px;
  border: 1.5px solid #e2e4ed;
  border-radius: 10px;
  background: #fff;
  cursor: pointer; text-align: left;
  transition: border-color 0.16s, background 0.16s, box-shadow 0.16s;
}
.sqsup-cat-card:hover { box-shadow: 0 2px 8px rgba(10,14,50,0.07); }
.sqsup-cat-icon {
  flex-shrink: 0; width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.sqsup-cat-icon svg { width: 18px; height: 18px; }
.sqsup-cat-text { display: flex; flex-direction: column; min-width: 0; }
.sqsup-cat-label { font-size: 13px; font-weight: 600; color: #0f1329; line-height: 1.3; }
.sqsup-cat-sub   { font-size: 11.5px; color: #9099aa; line-height: 1.4; margin-top: 1px; }

/* System info strip */
.sqsup-sysinfo-strip {
  display: flex; align-items: flex-start; gap: 8px;
  margin: 0 22px 14px;
  padding: 9px 13px;
  background: rgba(79,70,229,0.05);
  border: 1px solid rgba(79,70,229,0.14);
  border-radius: 8px;
  font-size: 11.5px; color: #5b5fc7; line-height: 1.5;
  flex-shrink: 0;
}
.sqsup-sysinfo-strip > svg { flex-shrink:0; width:13px; height:13px; margin-top:1px; stroke:#5b5fc7; }
.sqsup-sysinfo-strip strong { color: #1a1f6e; }
.sqsup-sysinfo-sm { font-size: 11px; margin: 0; align-self: stretch; }

/* Footer */
.sqsup-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px;
  border-top: 1px solid #e2e4ed;
  flex-shrink: 0; gap: 8px;
}
.sqsup-footer-r { display: flex; gap: 8px; }
.sqsup-btn { border: none; cursor: pointer; border-radius: 6px; font-size: 13px; font-weight: 600; padding: 8px 18px; transition: background 0.15s, opacity 0.15s, border-color 0.15s; }
.sqsup-btn-ghost   { background: none; color: #9099aa; padding: 8px 4px; }
.sqsup-btn-ghost:hover { color: #0f1329; }
.sqsup-btn-primary { background: #1a1f6e; color: #fff; }
.sqsup-btn-primary:hover:not(:disabled) { background: #222a80; }
.sqsup-btn-primary:disabled { opacity: 0.36; cursor: not-allowed; }
.sqsup-btn-outline { background: #fff; color: #374151; border: 1.5px solid #d1d5db; }
.sqsup-btn-outline:hover { border-color: #9099aa; background: #f9fafb; }

/* ── Step 2: Form ── */
.sqsup-form-scroll {
  padding: 18px 22px;
  display: flex; flex-direction: column; gap: 14px;
  overflow-y: auto; flex: 1 1 0%;
}
.sqsup-field         { display: flex; flex-direction: column; gap: 5px; }
.sqsup-field-row     { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sqsup-label         { font-size: 12px; font-weight: 600; color: #374151; letter-spacing: 0.01em; }
.sqsup-req           { color: #ef4444; }
.sqsup-opt           { font-weight: 400; color: #9099aa; }
.sqsup-input, .sqsup-select {
  height: 37px; padding: 0 11px;
  border: 1.5px solid #d1d5db; border-radius: 7px;
  font-size: 13px; color: #0f1329; background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none; width: 100%; box-sizing: border-box;
}
.sqsup-input:focus, .sqsup-select:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79,70,229,0.11);
}
.sqsup-input.sqsup-err { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,0.10); }
.sqsup-textarea {
  padding: 9px 11px;
  border: 1.5px solid #d1d5db; border-radius: 7px;
  font-size: 13px; color: #0f1329; background: #fff;
  resize: vertical; min-height: 88px;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none; width: 100%; box-sizing: border-box;
}
.sqsup-textarea:focus { border-color: #4f46e5; box-shadow: 0 0 0 3px rgba(79,70,229,0.11); }
.sqsup-textarea.sqsup-err { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,0.10); }

/* Priority */
.sqsup-prio-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; }
.sqsup-prio-tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 10px 11px;
  border: 1.5px solid #e2e4ed; border-radius: 8px;
  background: #fff; cursor: pointer; text-align: left;
  transition: border-color 0.15s, background 0.15s;
}
.sqsup-prio-tile:hover { border-color: #9099aa; }
.sqsup-prio-dot  { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.sqsup-prio-name { font-size: 12.5px; font-weight: 600; color: #0f1329; line-height: 1.2; }
.sqsup-prio-sub  { font-size: 10.5px; color: #9099aa; line-height: 1.3; }

/* Attachments row */
.sqsup-attach-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sqsup-dropzone {
  border: 1.5px dashed #d1d5db; border-radius: 8px;
  padding: 14px; min-height: 90px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  cursor: pointer; text-align: center;
  transition: border-color 0.15s, background 0.15s;
}
.sqsup-dropzone:hover, .sqsup-dz-over { border-color: #4f46e5; background: rgba(79,70,229,0.03); }
.sqsup-drop-icon  { width: 22px; height: 22px; color: #9099aa; }
.sqsup-drop-label { font-size: 12.5px; font-weight: 600; color: #374151; }
.sqsup-drop-hint  { font-size: 11px; color: #9099aa; }
.sqsup-file-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.sqsup-fchip      { font-size: 11px; background: #f4f5f9; border: 1px solid #e2e4ed; border-radius: 4px; padding: 2px 6px; color: #374151; }

/* ── Step 3: Success ── */
.sqsup-panel-success { max-width: 440px; }
.sqsup-success-stripe { height: 5px; background: linear-gradient(90deg,#22c55e,#86efac); flex-shrink: 0; }
.sqsup-success-body {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 32px 32px 28px; gap: 12px;
}
.sqsup-success-ring {
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(34,197,94,0.10);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.sqsup-success-ring svg { width: 26px; height: 26px; }
.sqsup-success-title { font-size: 20px; font-weight: 700; color: #0f1329; margin: 0; letter-spacing: -0.4px; }
.sqsup-success-sub   { font-size: 13px; color: #6b7280; margin: 0; line-height: 1.55; }
.sqsup-ticket-chip {
  display: inline-flex; align-items: center;
  padding: 10px 22px;
  background: rgba(79,70,229,0.07);
  border: 1.5px solid rgba(79,70,229,0.18);
  border-radius: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 15px; font-weight: 700; color: #1a1f6e;
  cursor: pointer; user-select: all; letter-spacing: 0.05em;
  transition: background 0.15s;
}
.sqsup-ticket-chip:hover { background: rgba(79,70,229,0.12); }
.sqsup-chip-copied::after { content: " · Copied!"; font-size: 10.5px; font-weight: 400; color: #22c55e; font-family: inherit; letter-spacing: 0; }
.sqsup-success-btns { display: flex; gap: 8px; }
.sqsup-track        { font-size: 11.5px; color: #9099aa; margin: 4px 0 0; }
.sqsup-track-link   { color: #4f46e5; text-decoration: none; }

/* ═══════════════════════════════════════════════════════════════════════════
   PROJECT/DOMAIN SWITCHER PANEL — match the User Menu panel card (2026-06-22)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Outer card: same rounded/shadow treatment as .sqorus-user-panel */
.sqorus-project-dropdown .dropdown-menu.context-selection {
  width: 260px !important;
  min-width: 260px !important;
  border-radius: 12px !important;
  border: 1px solid #e4e6f0 !important;
  box-shadow: 0 8px 40px rgba(26,31,110,0.14), 0 2px 8px rgba(0,0,0,0.06) !important;
  padding: 6px 0 !important;
  overflow: hidden;
  margin-top: 6px !important;
  background: #fff !important;
}

/* Section labels ("Domains:" / "Projects:") -> match .sqorus-panel-section-hdr */
.sqorus-project-dropdown .context-selection .dropdown-header {
  font-size: 9px; font-weight: 700;
  font-family: 'IBM Plex Mono', monospace;
  color: #9099aa !important; letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 8px 16px 4px !important;
  cursor: default; line-height: 1;
  background: transparent !important;
}

/* Rows -> match .sqorus-panel-item > a */
.sqorus-project-dropdown .context-selection .dropdown-menu > li > a {
  display: flex !important;
  align-items: center; gap: 8px;
  padding: 8px 16px !important;
  font-size: 13px; font-weight: 500;
  color: #1a1e2e !important;
  background: #fff !important;
  transition: background 0.1s;
  text-decoration: none !important;
  white-space: nowrap; overflow: hidden;
}
.sqorus-project-dropdown .context-selection .dropdown-menu > li > a:hover {
  background: #f6f7fb !important;
  color: #1a1f6e !important;
}
.sqorus-project-dropdown .context-selection .dropdown-menu > li > a.disabled {
  color: #9099aa !important;
  cursor: not-allowed !important;
}
.sqorus-project-dropdown .context-selection .dropdown-menu > li > a.disabled:hover {
  background: #fff !important;
}
.sqorus-project-dropdown .context-selection .dropdown-title {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis;
}

/* Checkmark -> indigo, inline with the row instead of absolute-positioned */
.sqorus-project-dropdown .context-selection .dropdown-selected-icon.fa-check {
  position: static !important;
  left: auto !important;
  font-size: 11px;
  color: #4f52cc !important;
  order: -1;
  flex-shrink: 0;
}

/* Divider between the Domains and Projects sections */
.sqorus-project-dropdown .context-selection > li + li {
  border-top: 1px solid #f0f1f6;
  margin-top: 4px;
  padding-top: 4px;
}

/* Reuse the same open/close panel animation as the user menu */
.sqorus-project-dropdown.open .dropdown-menu.context-selection {
  animation: sqContextIn 0.18s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.sqsup-track-link:hover { text-decoration: underline; }

/* ===================================================================
   Themed toast notifications (Horizon .messages alerts)
   Bottom-centered pill toasts matching the SQORUS theme.
   =================================================================== */
.messages {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: auto;
  max-width: 90vw;
  margin: 0;
  padding: 0;
  z-index: 1080;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  pointer-events: none;          /* let clicks through the empty container */
}

.messages .alert {
  pointer-events: auto;          /* but the toast itself is interactive */
  position: relative;
  min-width: 320px;
  max-width: 560px;
  margin: 0;
  padding: 14px 46px 14px 22px;
  border-radius: 32px;
  border: 1px solid #cfe9d4;
  background: #eafaf0;
  color: #1a1f6e;                /* message text: dark navy */
  font-size: 14px;
  line-height: 1.45;
  box-shadow: 0 12px 30px rgba(26, 31, 110, 0.18),
              0 2px 6px rgba(26, 31, 110, 0.10);
  animation: sqToastIn 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.messages .alert p,
.messages .alert .word-wrap {
  margin: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
}

/* The "Success:" / "Error:" etc. label */
.messages .alert :where(p, .word-wrap) > strong:first-child {
  font-weight: 700;
}
.messages .alert :where(p, .word-wrap) > strong:first-child::before {
  font-family: "FontAwesome";
  margin-right: 7px;
  font-weight: 400;
}

/* Close button */
.messages .alert .close {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  opacity: 0.6;
  color: inherit;
  text-shadow: none;
  transition: opacity 0.15s ease;
}
.messages .alert .close:hover { opacity: 1; }
.messages .alert .close .fa { font-size: 13px; }

/* ---- per-type colour variants ---- */
/* Success — green */
.messages .alert-success {
  background: #eafaf0;
  border-color: #b9e6c6;
}
.messages .alert-success :where(p, .word-wrap) > strong:first-child { color: #1e9e57; }
.messages .alert-success :where(p, .word-wrap) > strong:first-child::before { content: "\f058"; } /* check-circle */

/* Error — red */
.messages .alert-danger {
  background: #fdecec;
  border-color: #f5c2c2;
}
.messages .alert-danger :where(p, .word-wrap) > strong:first-child { color: #cf3b3b; }
.messages .alert-danger :where(p, .word-wrap) > strong:first-child::before { content: "\f06a"; } /* exclamation-circle */

/* Warning — amber */
.messages .alert-warning {
  background: #fff6e6;
  border-color: #f5dca6;
}
.messages .alert-warning :where(p, .word-wrap) > strong:first-child { color: #c98a16; }
.messages .alert-warning :where(p, .word-wrap) > strong:first-child::before { content: "\f071"; } /* warning */

/* Info — indigo/navy */
.messages .alert-info {
  background: #eef0fb;
  border-color: #c9cdf0;
}
.messages .alert-info :where(p, .word-wrap) > strong:first-child { color: #5b5fc7; }
.messages .alert-info :where(p, .word-wrap) > strong:first-child::before { content: "\f05a"; } /* info-circle */

/* Details link inside error toasts */
.messages .alert-danger a[data-toggle="collapse"] {
  color: #cf3b3b;
  font-weight: 600;
  text-decoration: underline;
}
.messages .alert .collapse { width: 100%; margin-top: 6px; }

@keyframes sqToastIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
