

/* ---------- Menus ---------- */

html body .dropdown-menu {
  padding: 0.3rem;
  border: 1px solid var(--ui-border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 18px 40px -22px rgba(15, 23, 42, 0.3);
}

html body .dropdown-item {
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  color: var(--ui-text);
  font-size: 0.82rem;
}

html body .dropdown-item:hover,
html body .dropdown-item:focus {
  background: #f4f6fb;
  color: var(--ui-ink);
}

html body .dropdown-item.is-active,
html body .dropdown-item:disabled {
  background: var(--ui-accent-soft);
  color: var(--ui-accent-deep);
}

html body .dropdown-divider {
  margin: 0.3rem 0;
  border-color: var(--ui-border);
}

html body .col-toggle__btn {
  height: 30px;
  min-width: 30px;
  border: 1px solid var(--ui-border);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ui-muted);
  font-size: 0.74rem;
  font-weight: 600;
}

html body .col-toggle__btn:hover {
  border-color: var(--ui-border-strong);
  background: #f8fafc;
  color: var(--ui-ink);
}

html body .col-toggle__menu {
  border-radius: 12px;
  border-color: var(--ui-border);
  padding: 0.3rem;
  box-shadow: 0 18px 40px -22px rgba(15, 23, 42, 0.3);
}

html body .col-toggle__item {
  border-radius: 7px;
  font-size: 0.8rem;
}

html[data-theme="dark"] body .dropdown-menu,
html[data-theme="dark"] body .col-toggle__menu {
  border-color: var(--ui-border);
  background: #101a2b;
  box-shadow: 0 22px 44px -24px rgba(0, 0, 0, 0.9);
}

html[data-theme="dark"] body .dropdown-item {
  color: #c7d2e3;
}

html[data-theme="dark"] body .dropdown-item:hover,
html[data-theme="dark"] body .dropdown-item:focus {
  background: rgba(148, 163, 184, 0.12);
  color: #ffffff;
}

html[data-theme="dark"] body .dropdown-item.is-active,
html[data-theme="dark"] body .dropdown-item:disabled {
  background: rgba(96, 165, 250, 0.14);
  color: #bfdbfe;
}

html[data-theme="dark"] body .col-toggle__btn {
  border-color: rgba(148, 163, 184, 0.22);
  background: #111a2b;
  color: #9fb0c7;
}

html[data-theme="dark"] body .col-toggle__btn:hover {
  border-color: rgba(148, 163, 184, 0.36);
  background: #16223a;
  color: #ffffff;
}

/* ---------- Modal ---------- */

html body .modal-content {
  border: 1px solid var(--ui-border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 40px 90px -40px rgba(2, 6, 23, 0.45);
}

html body .modal-content::before {
  height: 2px;
  background: linear-gradient(90deg, var(--ui-accent), #22d3ee 55%, transparent 85%);
}

html body .modal-header {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid #eef1f6;
  background: #ffffff;
}

html body .modal-title {
  color: var(--ui-ink);
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

html body .modal-body {
  padding: 0.9rem 1rem;
  color: var(--ui-text);
  font-size: 0.84rem;
}

html body .modal-footer {
  padding: 0.65rem 0.9rem;
  border-top: 1px solid #eef1f6;
  background: #fbfcfe;
}

html[data-theme="dark"] body .modal-content {
  border-color: var(--ui-border);
  background: #0e1626;
}

html[data-theme="dark"] body .modal-header,
html[data-theme="dark"] body .modal-footer {
  border-color: rgba(148, 163, 184, 0.12);
  background: #101a2b;
}

html[data-theme="dark"] body .modal-body {
  color: #c7d2e3;
}

/* ---------- Badges & inline status ---------- */

html body .badge {
  padding: 0.26rem 0.52rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

html body .badge.text-bg-success {
  border-color: #d1fae5 !important;
  background: #ecfdf5 !important;
  color: #047857 !important;
}

html body .badge.text-bg-danger {
  border-color: #ffe4e6 !important;
  background: #fff1f2 !important;
  color: #be123c !important;
}

html body .badge.text-bg-warning {
  border-color: #fef3c7 !important;
  background: #fffbeb !important;
  color: #b45309 !important;
}

html body .badge.text-bg-primary {
  border-color: #dbeafe !important;
  background: #eff6ff !important;
  color: #1d4ed8 !important;
}

html body .badge.text-bg-info {
  border-color: #cffafe !important;
  background: #ecfeff !important;
  color: #0e7490 !important;
}

html body .badge.text-bg-secondary {
  border-color: #e2e8f0 !important;
  background: #f1f5f9 !important;
  color: #475569 !important;
}

html body .badge-soft {
  background: var(--ui-accent-soft);
  color: var(--ui-accent-deep);
}

html body .badge.text-bg-light {
  border-color: var(--ui-border) !important;
  background: #f8fafc !important;
  color: #475569 !important;
  font-weight: 500;
}

html body .tag {
  padding: 0.22rem 0.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

html body .tag--neutral {
  border-color: #e2e8f0;
  background: #f1f5f9;
  color: #475569;
}

html body .tag--info {
  border-color: #dbeafe;
  background: #eff6ff;
  color: #1d4ed8;
}

html body .tag--success {
  border-color: #d1fae5;
  background: #ecfdf5;
  color: #047857;
}

html body .tag--warn {
  border-color: #fef3c7;
  background: #fffbeb;
  color: #b45309;
}

html body .tag--danger {
  border-color: #ffe4e6;
  background: #fff1f2;
  color: #be123c;
}

html body .status-inline {
  color: var(--ui-muted);
  font-size: 0.76rem;
  font-weight: 500;
}

html[data-theme="dark"] body .badge.text-bg-success {
  border-color: rgba(52, 211, 153, 0.24) !important;
  background: rgba(16, 185, 129, 0.14) !important;
  color: #6ee7b7 !important;
}

html[data-theme="dark"] body .badge.text-bg-danger {
  border-color: rgba(251, 113, 133, 0.24) !important;
  background: rgba(244, 63, 94, 0.14) !important;
  color: #fda4af !important;
}

html[data-theme="dark"] body .badge.text-bg-warning {
  border-color: rgba(251, 191, 36, 0.24) !important;
  background: rgba(245, 158, 11, 0.14) !important;
  color: #fcd34d !important;
}

html[data-theme="dark"] body .badge.text-bg-primary {
  border-color: rgba(96, 165, 250, 0.24) !important;
  background: rgba(59, 130, 246, 0.16) !important;
  color: #bfdbfe !important;
}

html[data-theme="dark"] body .badge.text-bg-info {
  border-color: rgba(34, 211, 238, 0.24) !important;
  background: rgba(6, 182, 212, 0.14) !important;
  color: #a5f3fc !important;
}

html[data-theme="dark"] body .badge.text-bg-secondary {
  border-color: rgba(148, 163, 184, 0.22) !important;
  background: rgba(148, 163, 184, 0.12) !important;
  color: #cbd5e1 !important;
}

html[data-theme="dark"] body .badge.text-bg-light {
  border-color: rgba(148, 163, 184, 0.18) !important;
  background: rgba(148, 163, 184, 0.08) !important;
  color: #cbd5e1 !important;
}

html[data-theme="dark"] body .tag--neutral {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
}

html[data-theme="dark"] body .tag--info {
  border-color: rgba(96, 165, 250, 0.24);
  background: rgba(59, 130, 246, 0.16);
  color: #bfdbfe;
}

html[data-theme="dark"] body .tag--success {
  border-color: rgba(52, 211, 153, 0.24);
  background: rgba(16, 185, 129, 0.14);
  color: #6ee7b7;
}

html[data-theme="dark"] body .tag--warn {
  border-color: rgba(251, 191, 36, 0.24);
  background: rgba(245, 158, 11, 0.14);
  color: #fcd34d;
}

html[data-theme="dark"] body .tag--danger {
  border-color: rgba(251, 113, 133, 0.24);
  background: rgba(244, 63, 94, 0.14);
  color: #fda4af;
}

/* ---------- Alerts ---------- */

html body .alert {
  padding: 0.7rem 0.9rem;
  border: 1px solid transparent;
  border-left-width: 3px;
  border-radius: 12px;
  font-size: 0.82rem;
  line-height: 1.5;
}

html body .alert-success {
  border-color: #d1fae5;
  border-left-color: #10b981;
  background: #f0fdf9;
  color: #047857;
}

html body .alert-warning {
  border-color: #fef3c7;
  border-left-color: #f59e0b;
  background: #fffbeb;
  color: #92400e;
}

html body .alert-danger {
  border-color: #ffe4e6;
  border-left-color: #f43f5e;
  background: #fff1f2;
  color: #9f1239;
}

html body .alert-info {
  border-color: #e0f2fe;
  border-left-color: #0ea5e9;
  background: #f0f9ff;
  color: #075985;
}

html[data-theme="dark"] body .alert-success {
  border-color: rgba(52, 211, 153, 0.2);
  border-left-color: #34d399;
  background: rgba(16, 185, 129, 0.10);
  color: #a7f3d0;
}

html[data-theme="dark"] body .alert-warning {
  border-color: rgba(251, 191, 36, 0.2);
  border-left-color: #fbbf24;
  background: rgba(245, 158, 11, 0.10);
  color: #fde68a;
}

html[data-theme="dark"] body .alert-danger {
  border-color: rgba(251, 113, 133, 0.2);
  border-left-color: #fb7185;
  background: rgba(244, 63, 94, 0.10);
  color: #fecdd3;
}

html[data-theme="dark"] body .alert-info {
  border-color: rgba(56, 189, 248, 0.2);
  border-left-color: #38bdf8;
  background: rgba(14, 165, 233, 0.10);
  color: #bae6fd;
}

/* ---------- Empty states ---------- */

html body .empty-state-block__icon {
  border-radius: 12px;
  background: var(--ui-accent-soft);
  color: var(--ui-accent);
}

html body .empty-state-block__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

html body .empty-state-block__title {
  color: var(--ui-ink);
  font-weight: 600;
}

html body .empty-state-block__hint {
  color: var(--ui-muted);
}

/* ---------- Links & utility ---------- */

html body a {
  color: var(--ui-accent-deep);
}

html body .dashboard-action-link {
  padding: 0.3rem 0.55rem;
  border-radius: 8px;
  color: var(--ui-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

html body .dashboard-action-link:hover,
html body .dashboard-action-link:focus-visible {
  background: var(--ui-accent-soft);
  color: var(--ui-accent-deep);
}

html[data-theme="dark"] body .dashboard-action-link {
  color: #9fb0c7;
}

html[data-theme="dark"] body .dashboard-action-link:hover {
  background: rgba(96, 165, 250, 0.12);
  color: #bfdbfe;
}