﻿:root {
  color-scheme: dark;
  --bg: #090c10;
  --panel: #111821;
  --panel-2: #151e29;
  --line: #263241;
  --text: #edf4fb;
  --muted: #91a2b5;
  --accent: #f97316;
  --accent-2: #ffb15c;
  --accent-soft: rgba(249, 115, 22, 0.14);
  --danger: #ff5d6c;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Segoe UI, Arial, sans-serif;
  overflow-x: hidden;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 260px;
  padding: 14px 14px 10px;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(7, 11, 16, 0.96), rgba(5, 10, 17, 0.98)),
    radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.14), transparent 32%);
  border-right: 1px solid var(--line);
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(249, 115, 22, .62) rgba(13, 18, 24, .4);
}
.sidebar::-webkit-scrollbar { width: 7px; }
.sidebar::-webkit-scrollbar-track { background: rgba(13, 18, 24, .4); }
.sidebar::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(249, 115, 22, .8), rgba(255, 177, 92, .45));
  border-radius: 999px;
}

.brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.15;
  word-break: break-word;
}
.brand-with-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 55px;
  color: transparent;
  overflow: hidden;
}
.brand-logo {
  display: block;
  width: 180px;
  height: 55px;
  object-fit: contain;
  object-position: center;
  margin-inline: auto;
}

.sidebar-toggle {
  width: calc(100% - 8px);
  min-height: 34px;
  margin: 14px auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(249, 115, 22, 0.52);
  border-radius: 999px;
  background: linear-gradient(180deg, #121a25, #080d14);
  color: var(--accent-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  cursor: pointer;
}
.sidebar-toggle:hover {
  color: #fff;
  border-color: rgba(249, 115, 22, 0.82);
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.22), #080d14);
}
.sidebar-toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .18s ease;
}
.sidebar-toggle span {
  color: inherit;
  font-size: 11px;
  line-height: 1;
  text-transform: uppercase;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  background: #0b1118;
  color: var(--text);
  border-radius: 8px;
  padding: 10px 12px;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}

.platform-admin-check {
  margin-top: 12px;
}

.platform-admin-hint {
  margin: 4px 0 12px;
  color: var(--accent-2);
}

nav { display: grid; gap: 5px; margin-top: 10px; }
nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 5.5px 10px;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.12;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
nav a:hover {
  background: rgba(30, 41, 59, 0.46);
  color: var(--text);
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid transparent;
  position: relative;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
.nav-link.is-active {
  color: var(--text);
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.72), rgba(15, 23, 42, 0.62));
  border-color: rgba(148, 163, 184, 0.14);
}
.nav-link.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 999px;
  background: var(--accent);
  opacity: .9;
}
.nav-icon {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 20px;
}
.nav-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-icon-dashboard,
.nav-icon-asset_management,
.nav-icon-ciso_dashboard { color: #38bdf8; }
.nav-icon-it_incidents { color: #22d3ee; }
.nav-icon-security_incidents,
.nav-icon-vulnerability_management { color: #7ddf64; }
.nav-icon-problem_management,
.nav-icon-health_check { color: #f59e0b; }
.nav-icon-incidents,
.nav-icon-access_reviews { color: #d86cff; }
.nav-icon-tasks { color: #f472b6; }
.nav-icon-change_management { color: #eab308; }
.nav-icon-dark_web,
.nav-icon-threat_intelligence { color: #2dd4bf; }
.nav-icon-training_simulation { color: #60a5fa; }
.nav-icon-grc { color: #f97316; }
.nav-icon-support_team_status { color: #c084fc; }
.nav-icon-reports { color: #60a5fa; }
.nav-icon-administration { color: var(--accent); }
.nav-label {
  margin: 18px 12px 4px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}
.nav-separator {
  height: 1px;
  margin: 10px 4px 6px;
  background: linear-gradient(90deg, transparent, rgba(249, 115, 22, .48), transparent);
}

.sidebar-footer {
  margin-top: 8px;
  padding: 0 2px;
  color: var(--accent);
  font-size: 10.5px;
  line-height: 1.2;
  white-space: nowrap;
  text-align: center;
}

.sidebar-footer span,
.sidebar-footer strong {
  display: inline;
  font-weight: 400;
}

.sidebar-footer span::after {
  content: " | ";
  color: rgba(249, 115, 22, 0.72);
}

.sidebar-footer strong {
  color: var(--accent-2);
  font-size: inherit;
  text-transform: none;
}
.sidebar-help-link {
  display: block;
  width: fit-content;
  margin: 6px auto 0;
  color: var(--muted);
  font-size: 10px;
  text-decoration: none;
}
.sidebar-help-link:hover,
.sidebar-help-link.is-active {
  color: var(--accent-2);
}

@media (max-height: 740px) {
  .sidebar { overflow-y: auto; }
  nav { gap: 4px; }
  nav a { padding-block: 5px; font-size: 14.5px; }
}

.main { margin-left: 260px; min-height: 100vh; padding: 28px; min-width: 0; }

body.sidebar-collapsed .sidebar {
  width: 76px;
  padding-inline: 10px;
}
body.sidebar-collapsed .sidebar-toggle {
  width: 42px;
  min-height: 34px;
}
body.sidebar-collapsed .main {
  margin-left: 76px;
}
body.sidebar-collapsed .brand {
  min-height: 44px;
  margin-bottom: 4px;
  font-size: 0;
}
body.sidebar-collapsed .brand-logo {
  width: 48px;
  height: 42px;
}
body.sidebar-collapsed .sidebar-toggle svg {
  transform: rotate(180deg);
}
body.sidebar-collapsed .sidebar-toggle span {
  display: none;
}
body.sidebar-collapsed .nav-link {
  justify-content: center;
  padding-inline: 8px;
}
body.sidebar-collapsed .nav-link span:not(.nav-icon),
body.sidebar-collapsed .sidebar-footer span,
body.sidebar-collapsed .sidebar-footer strong,
body.sidebar-collapsed .sidebar-help-link {
  display: none;
}
body.sidebar-collapsed .sidebar-footer {
  margin-top: 8px;
}

body.presentation-mode .sidebar,
body.presentation-mode .sidebar-toggle,
body.presentation-mode .topbar,
body.presentation-mode .flash-wrap {
  display: none !important;
}
body.presentation-mode .main {
  margin-left: 0;
  padding: 16px;
}
body.presentation-mode {
  overflow: hidden;
}
.topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
}
.topbar h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.25;
}
.topbar form { display: flex; align-items: center; gap: 12px; }
.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.time-range-switcher {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}
.time-menu-button {
  width: 120px;
  min-height: 38px;
  border: 1px solid rgba(249, 115, 22, 0.38);
  border-color: rgba(249, 115, 22, 0.38);
  background: rgba(249, 115, 22, 0.09);
  color: var(--text);
  border-radius: 8px;
  padding: 9px 12px;
  text-align: left;
  cursor: pointer;
  font-weight: 700;
}
.time-menu-button:hover {
  border-color: rgba(249, 115, 22, 0.7);
}
.time-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 22;
  width: 120px;
  padding: 8px;
  background: #0d1218;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
}
.time-menu-option {
  display: flex;
  width: 100%;
  align-items: center;
  padding: 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-align: left;
}
.time-menu-option:hover,
.time-menu-option.is-selected {
  background: var(--panel-2);
  color: var(--accent);
}
.time-custom-fields {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.time-custom-fields input {
  width: 146px;
  min-height: 38px;
  padding: 8px 10px;
}
.tenant-switcher {
  position: relative;
  width: 280px;
  flex: 0 0 280px;
}
.tenant-menu-button {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(249, 115, 22, 0.38);
  background: rgba(249, 115, 22, 0.09);
  color: var(--text);
  border-radius: 8px;
  padding: 9px 12px;
  text-align: left;
  cursor: pointer;
  font-weight: 700;
}
.tenant-menu-button:hover {
  border-color: rgba(249, 115, 22, 0.7);
}
.tenant-static-chip {
  width: 280px;
  flex: 0 0 280px;
  cursor: default;
  border-color: rgba(249, 115, 22, 0.28);
  background: rgba(249, 115, 22, 0.07);
  font-weight: 400;
}
.tenant-static-chip:hover {
  border-color: rgba(249, 115, 22, 0.28);
}
.tenant-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  width: 100%;
  min-width: 100%;
  max-height: 320px;
  overflow-y: auto;
  padding: 8px;
  background: #0d1218;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
}
.tenant-menu-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
}
.tenant-menu-option:hover {
  background: var(--panel-2);
}
.tenant-menu-option input {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}
.tenant-menu-empty {
  color: var(--muted);
  padding: 12px;
  text-align: center;
}
.eyebrow {
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}
.user-chip {
  display: grid;
  gap: 2px;
  min-width: 170px;
}
.user-chip strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.2;
}
.user-chip span {
  color: var(--accent-2);
  font-size: 12px;
  line-height: 1.2;
}

.panel,
.stat,
.login-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.panel { padding: 18px; margin-bottom: 18px; overflow-x: auto; }
.panel h2 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 400;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.stat { padding: 18px; }
.stat span { color: var(--muted); display: block; }
.stat strong { font-size: 34px; display: block; margin-top: 8px; }

.split {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 18px;
  align-items: start;
}
.tenant-admin-split {
  grid-template-columns: minmax(270px, 320px) minmax(0, 1fr);
  gap: 14px;
}
.active-tenant-panel {
  overflow-x: hidden;
}

.tenant-control-page {
  max-width: 1180px;
}

.tenant-control-head h2 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 400;
}

.tenant-control-head p {
  margin: 0;
}

.tenant-section-divider {
  height: 1px;
  background: var(--line);
  margin: 18px 0;
}

.tenant-logo-upload {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) 220px auto;
  align-items: stretch;
  gap: 18px;
}

.tenant-logo-upload label {
  height: 100%;
}

.tenant-logo-upload input[type="file"] {
  min-height: 65px;
}

.tenant-control-logo {
  width: 220px;
  height: 100%;
  min-height: 98px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tenant-control-section {
  margin-top: 0;
}

.tenant-auto-close-view {
  padding-top: 0;
}

.tenant-auto-close-view p {
  margin: 0 0 4px;
}

.tenant-delegated-settings {
  display: grid;
  gap: 0;
}

.tenant-control-actions {
  margin-top: 16px;
}

.form { display: grid; gap: 14px; }
.form form { display: grid; gap: 14px; }
.form-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 14px;
}
.form-section-title {
  color: var(--accent-2);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  margin-top: 8px;
}

.provider-hints {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px;
}

.provider-hints > div {
  border: 1px solid rgba(249, 115, 22, 0.28);
  background: rgba(249, 115, 22, 0.08);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 5px;
}

.provider-hints strong {
  color: var(--text);
  font-size: 14px;
}

.provider-hints span {
  color: var(--muted);
  font-size: 13px;
}
label { color: var(--muted); display: grid; gap: 8px; font-size: 14px; }
.rich-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}
.field-label {
  color: var(--muted);
}

.button {
  border: 0;
  color: var(--text);
  border-radius: 8px;
  padding: 10px 14px;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 38px;
}
.primary { background: var(--accent); color: #03120e; font-weight: 700; }
.primary:hover { background: #fb8c2f; }
.subtle { background: var(--panel-2); }
.danger { background: rgba(255, 93, 108, 0.15); color: var(--danger); }

table { width: 100%; border-collapse: collapse; min-width: 680px; }
th, td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
  vertical-align: middle;
}
th { color: var(--muted); font-size: 13px; font-weight: 600; }
.table-wrap {
  overflow-x: auto;
}
.log-table {
  min-width: 980px;
}
.log-response {
  max-width: 420px;
  white-space: normal;
  overflow-wrap: anywhere;
  color: var(--muted);
}
.service-list-head {
  gap: 16px;
  margin-bottom: 14px;
}
.service-list-head h2 {
  margin-bottom: 0;
}
.service-table-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.service-filter-check {
  grid-auto-flow: column;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}
.service-filter-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}
.service-search {
  width: 260px;
  min-height: 38px;
}
.service-request-table {
  table-layout: fixed;
  min-width: 1120px;
}
.service-id-col { width: 145px; }
.service-tenant-col { width: 140px; }
.service-title-col { width: 220px; }
.service-category-col { width: 145px; }
.service-requester-col { width: 210px; }
.service-severity-col { width: 95px; }
.service-status-col { width: 130px; }
.service-sla-col { width: 145px; }
.service-created-col { width: 140px; }
.nowrap {
  white-space: nowrap;
}
.cell-truncate {
  display: inline-block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}
.muted-text {
  color: var(--muted);
  font-size: 13px;
}
.date-line,
.time-line {
  display: block;
  white-space: nowrap;
}
.date-line {
  color: var(--text);
}
.time-line {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}
.sla-result {
  display: block;
  font-size: 12px;
  line-height: 1.5;
}
.sla-result.is-breached {
  color: var(--danger);
}
.sla-result.is-achieved {
  color: #22c55e;
}
.sla-result.is-pending {
  color: #facc15;
}
.copy-field {
  min-width: 300px;
  font-size: 12px;
}
.active-tenant-table {
  table-layout: fixed;
  min-width: 0;
}
.active-tenant-table th:nth-child(1),
.active-tenant-table td:nth-child(1) {
  width: 19%;
}
.active-tenant-table th:nth-child(2),
.active-tenant-table td:nth-child(2) {
  width: 7%;
}
.active-tenant-table th:nth-child(3),
.active-tenant-table td:nth-child(3) {
  width: 17%;
}
.active-tenant-table th:nth-child(4),
.active-tenant-table td:nth-child(4),
.active-tenant-table th:nth-child(5),
.active-tenant-table td:nth-child(5) {
  width: 11%;
}
.active-tenant-table th:nth-child(6),
.active-tenant-table td:nth-child(6) {
  width: 16%;
}
.active-tenant-table th:nth-child(7),
.active-tenant-table td:nth-child(7) {
  width: 9%;
}
.active-tenant-table th:nth-child(8),
.active-tenant-table td:nth-child(8) {
  width: 10%;
}
.active-tenant-table th,
.active-tenant-table td {
  padding: 11px 8px;
}
.active-tenant-table .copy-field {
  min-width: 0;
  width: 100%;
  height: 34px;
  padding: 7px 8px;
}
.active-tenant-table td {
  overflow-wrap: anywhere;
}
.active-tenant-table td:last-child {
  white-space: normal;
  overflow-wrap: normal;
}
.active-tenant-table td:last-child form {
  display: flex;
  margin: 6px 0 0;
}
.active-tenant-table td:last-child .button {
  width: 100%;
  min-height: 32px;
  padding: 7px 9px;
}
.tenant-delete-otp-row td {
  background: rgba(249, 115, 22, 0.06);
}
.tenant-delete-otp {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(249, 115, 22, 0.34);
  border-radius: 8px;
  background: rgba(8, 13, 20, 0.82);
}
.tenant-delete-otp strong {
  display: block;
  color: var(--text);
  font-weight: 600;
}
.tenant-delete-otp span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}
.tenant-delete-otp form {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tenant-delete-otp .compact-otp-boxes {
  width: 210px;
  gap: 5px;
}
.tenant-delete-otp .otp-box {
  height: 36px;
  font-size: 17px;
}
.field-tip {
  color: var(--accent-2);
  font-size: 12px;
}

.category-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
  row-gap: 8px;
  margin: 10px 0 18px;
  padding: 10px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.category-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 28px;
  color: var(--text);
}

.category-list-item input[type="checkbox"] {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.category-list-item span {
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
}

@media (max-width: 760px) {
  .category-list {
    grid-template-columns: 1fr;
  }
}

.attachment-list {
  display: grid;
  gap: 8px;
}

.attachment-link {
  display: grid;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  color: var(--text);
  background: rgba(15, 23, 42, 0.62);
  min-width: 0;
}

.attachment-link small {
  color: var(--muted);
  font-size: 12px;
}

.attachment-link span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.public-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 10%, rgba(249, 115, 22, 0.14), transparent 32%),
    var(--bg);
}
.public-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}
.public-panel {
  width: min(720px, 100%);
}
.service-request-panel {
  width: min(1080px, 100%);
  padding: 34px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}
.service-request-panel.request-change {
  max-height: calc(100vh - 56px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(249, 115, 22, 0.76) rgba(15, 23, 42, 0.78);
}
.service-request-panel.request-change::-webkit-scrollbar {
  width: 7px;
}
.service-request-panel.request-change::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.78);
  border-radius: 999px;
}
.service-request-panel.request-change::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(255, 183, 77, 0.95), rgba(249, 115, 22, 0.88));
  border-radius: 999px;
}
.public-ticket-panel {
  width: min(1180px, calc(100vw - 56px));
}
.service-request-panel h1 {
  font-size: 28px;
  letter-spacing: 0;
}
.service-request-panel > p {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.rich-editor {
  border: 1px solid var(--line);
  background: rgba(5, 10, 18, 0.62);
  border-radius: 8px;
  overflow: hidden;
}
.rich-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  padding: 7px;
  border-bottom: 1px solid var(--line);
  background: #edf2f5;
}
.rich-toolbar button:not(.rich-icon),
.rich-toolbar input[type="color"]:not([data-enhanced-color]) {
  display: none;
}
.rich-toolbar button,
.rich-toolbar select,
.rich-toolbar input[type="color"] {
  border: 0;
  background: transparent;
  color: #111827;
  border-radius: 6px;
  min-height: 32px;
  padding: 5px 8px;
  cursor: pointer;
  font-size: 13px;
}
.rich-toolbar select {
  min-width: 126px;
}
.rich-toolbar button:hover,
.rich-toolbar select:hover {
  background: rgba(15, 23, 42, 0.08);
}
.rich-icon {
  min-width: 31px;
}
.rich-toolbar input[type="color"] {
  width: 34px;
  padding: 3px;
}

.rich-toolbar [data-format-select],
.rich-toolbar [data-color-picker],
.rich-toolbar [data-command="italic"],
.rich-toolbar [data-command="underline"],
.rich-toolbar [data-command="removeFormat"],
.rich-toolbar [data-quote-button] {
  display: none !important;
}
.simple-rich-toolbar {
  justify-content: flex-start;
  flex-wrap: nowrap;
  overflow: visible;
  gap: 5px;
  background: #101821;
  border-bottom: 1px solid rgba(249, 115, 22, 0.26);
}
.simple-rich-toolbar button,
.simple-rich-toolbar select,
.simple-rich-toolbar input[type="color"] {
  color: var(--text);
  background: #151f2a;
  border: 1px solid #263241;
  flex: 0 0 auto;
}
.simple-rich-toolbar button:hover,
.simple-rich-toolbar select:hover {
  background: rgba(249, 115, 22, 0.16);
  border-color: rgba(249, 115, 22, 0.48);
}
.simple-rich-toolbar button.is-active,
.simple-rich-toolbar button[aria-pressed="true"] {
  color: #ecfdf5;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.92), rgba(34, 197, 94, 0.72));
  border-color: rgba(74, 222, 128, 0.9);
  box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.2), 0 0 14px rgba(34, 197, 94, 0.26);
}
.rich-surface {
  min-height: 150px;
  padding: 13px;
  color: var(--text);
  outline: none;
  line-height: 1.55;
}
.rich-surface:focus {
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.45);
}
.rich-content {
  color: var(--text);
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.rich-content table,
.rich-surface table {
  min-width: 0;
  width: 100%;
  margin-top: 10px;
  border-collapse: collapse;
}
.rich-content td,
.rich-content th,
.rich-surface td,
.rich-surface th {
  border: 1px solid var(--line);
  padding: 8px;
}
.rich-content blockquote,
.rich-surface blockquote {
  margin: 10px 0;
  border-left: 3px solid var(--accent);
  padding: 8px 12px;
  background: rgba(249, 115, 22, 0.08);
}
.rich-content hr,
.rich-surface hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 12px 0;
}
.public-ticket-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 30%);
  gap: 18px;
  align-items: start;
  text-align: left;
}
.public-ticket-main {
  display: grid;
  gap: 16px;
}
.public-ticket-side {
  position: sticky;
  top: 18px;
}
.service-detail-panel,
.public-ticket-note,
.ticket-description {
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.58);
  border-radius: 8px;
  padding: 14px;
}
.service-detail-panel h3 {
  margin: 0 0 14px;
  font-size: 16px;
}
.service-detail-list {
  display: grid;
  gap: 10px;
  margin: 0;
}
.service-detail-list > div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border-bottom: 1px solid rgba(38, 50, 65, 0.55);
  padding-bottom: 10px;
}
.service-detail-list > div:last-child {
  border-bottom: 0;
}
.service-detail-list dt {
  color: var(--muted);
  font-size: 12px;
}
.service-detail-list dd {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.severity-text {
  font-weight: 400;
}
.severity-text.severity-critical {
  color: var(--danger);
}
.severity-text.severity-high {
  color: #fb8c2f;
}
.severity-text.severity-medium {
  color: #facc15;
}
.severity-text.severity-low {
  color: #60a5fa;
}
.public-attachments {
  border-top: 1px solid rgba(38, 50, 65, 0.55);
  margin-top: 12px;
  padding-top: 12px;
}
.public-attachments h4 {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  margin: 0 0 8px;
}
.attachment-row {
  display: grid;
  gap: 3px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(38, 50, 65, 0.42);
}
.attachment-row:last-child {
  border-bottom: 0;
}
.attachment-row span {
  color: var(--muted);
  font-size: 12px;
}
.public-attachments a {
  display: block;
  color: var(--accent-2);
  overflow-wrap: anywhere;
}
.public-reply-form {
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.42);
  border-radius: 8px;
  padding: 14px;
}
.public-ticket-panel .form + .form {
  margin-top: 18px;
}
.public-ticket-panel .otp-boxes,
.service-request-panel .otp-boxes {
  margin: 14px 0;
}
.success-panel {
  text-align: center;
}
.ticket-success {
  display: inline-flex;
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-2);
  border: 1px solid rgba(249, 115, 22, 0.35);
  font-size: 28px;
  font-weight: 900;
}
.empty { color: var(--muted); text-align: center; padding: 24px; }
.pill {
  display: inline-flex;
  border: 1px solid rgba(249, 115, 22, 0.38);
  color: var(--accent);
  border-radius: 999px;
  padding: 4px 9px;
}
.danger-pill {
  border-color: rgba(255, 93, 108, 0.38);
  color: var(--danger);
}
.status-text {
  font-weight: 400;
}
.status-open {
  color: #ff5d6c;
}
.status-in-progress {
  color: #60a5fa;
}
.status-waiting-for-requester {
  color: #fb8c2f;
}
.status-resolved {
  color: #86efac;
}
.status-closed {
  color: #22c55e;
}
.status-new {
  color: #ffb15c;
}
.status-under-investigation {
  color: #60a5fa;
}
.status-known-error {
  color: #facc15;
}
.status-workaround-available {
  color: #38bdf8;
}
.status-permanent-fix-planned {
  color: #a78bfa;
}
.severity-critical {
  border-color: rgba(255, 93, 108, 0.72);
  color: #ff5d6c;
}
.severity-high {
  border-color: rgba(249, 115, 22, 0.72);
  color: #fb8c2f;
}
.severity-medium {
  border-color: rgba(250, 204, 21, 0.72);
  color: #facc15;
}
.severity-low {
  border-color: rgba(96, 165, 250, 0.72);
  color: #60a5fa;
}
.inline-check {
  display: inline-flex;
  width: fit-content;
}
.account-controls {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 10px;
  border: 1px solid var(--line);
  background: #0c1219;
  border-radius: 8px;
  padding: 14px;
}
.account-controls h2 {
  grid-column: 1 / -1;
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 400;
}

.command-center-panel {
  overflow: visible;
}

.command-center-head {
  gap: 16px;
  margin-bottom: 16px;
}

.command-center-head p,
.mini-head span {
  color: var(--muted);
  margin: 4px 0 0;
  font-size: 13px;
}

.command-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.command-actions form {
  margin: 0;
}

.service-command-grid {
  display: grid;
  grid-template-columns: minmax(560px, 1.22fr) minmax(480px, 1fr);
  gap: 16px;
}

.overview-card,
.analytics-card {
  display: grid;
  align-items: stretch;
  border: 1px solid var(--line);
  background: rgba(12, 18, 25, 0.72);
  border-radius: 8px;
  padding: 14px;
  min-width: 0;
}

.mini-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 12px;
}

.mini-head h3 {
  margin: 0;
  font-size: 15px;
}

.overview-table-wrap {
  overflow-x: auto;
}

.overview-table {
  width: 100%;
  min-width: 620px;
  table-layout: fixed;
}

.overview-table th {
  text-transform: uppercase;
  font-size: 10px;
  line-height: 1.25;
}

.sla-scope-label {
  display: block;
  margin-bottom: 4px;
  color: var(--accent-2);
  font-size: 10px;
  font-weight: 800;
  text-transform: none;
}

.overview-table td {
  padding: 8px 7px;
  font-size: 13px;
}

.overview-table th:first-child,
.overview-table td:first-child {
  width: 30%;
}

.overview-table th:not(:first-child),
.overview-table td:not(:first-child) {
  text-align: center;
}

.tenant-marker {
  display: inline-flex;
  width: 3px;
  height: 18px;
  background: var(--accent);
  border-radius: 99px;
  margin-right: 8px;
  vertical-align: middle;
}

.sla-percent,
.overview-summary strong {
  font-weight: 700;
}

.is-good {
  color: #22c55e;
}

.is-warn {
  color: #fb8c2f;
}

.is-bad {
  color: var(--danger);
}

.overview-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid rgba(38, 50, 65, 0.72);
  margin-top: 10px;
  padding-top: 10px;
  color: var(--muted);
  font-size: 12px;
}
.problem-stats-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}
.problem-stat {
  min-height: 78px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(12, 18, 25, 0.74);
}
.problem-stat span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}
.problem-stat strong {
  color: var(--text);
  font-size: 24px;
  font-weight: 400;
}
.change-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.change-stat {
  min-height: 118px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(249, 115, 22, 0.13), transparent 42%),
    rgba(12, 18, 25, 0.76);
}
.change-stat span {
  color: var(--muted);
  font-size: 13px;
}
.change-stat strong {
  color: var(--text);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.05;
  overflow-wrap: anywhere;
}
.change-stat small {
  color: var(--muted);
}
.change-stat.is-alert {
  border-color: rgba(248, 113, 113, 0.72);
}
.change-request-table th,
.change-request-table td {
  vertical-align: top;
}
.change-date-cell span {
  display: block;
  white-space: nowrap;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.wide-modal {
  width: min(1120px, calc(100vw - 44px));
}
.change-status-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.change-detail-head {
  align-items: center;
  margin-bottom: 12px;
}
.change-summary-table {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}
.change-summary-table th,
.change-summary-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(38, 50, 65, 0.72);
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  vertical-align: top;
}
.change-summary-table tr:last-child th,
.change-summary-table tr:last-child td {
  border-bottom: 0;
}
.change-summary-table th {
  width: 250px;
  background: rgba(12, 18, 25, 0.76);
  text-align: left;
  color: var(--muted);
}
.change-summary-table td {
  background: rgba(8, 13, 20, 0.48);
}
.change-summary-table .rich-content {
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
}
.change-action-accordions {
  display: grid;
  gap: 10px;
}
.change-action-accordion {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 13, 20, 0.52);
}
.change-action-head {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  list-style: none;
}
.change-action-head::-webkit-details-marker {
  display: none;
}
.change-action-head::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 6px solid var(--accent);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  color: var(--accent);
  transform: rotate(90deg);
  transition: transform 0.15s ease;
  justify-self: center;
}
.change-action-accordion:not([open]) .change-action-head::before {
  transform: rotate(0deg);
}
.change-action-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 400;
  flex: 1;
}
.change-action-head span {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.change-action-list {
  display: grid;
  gap: 10px;
  padding: 8px 0 6px 14px;
}
.change-action-item {
  margin: 0;
  justify-self: start;
  width: 100%;
}
.change-action-item label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.4;
  width: max-content;
  max-width: min(760px, 100%);
}
.change-action-item input[type="checkbox"] {
  margin: 3px 0 0;
  accent-color: var(--accent);
  justify-self: start;
}
.change-action-item strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  font-weight: 400;
}
.change-action-item small {
  display: block;
  color: var(--accent-2);
  font-size: 11px;
  padding-top: 2px;
}
.change-add-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.change-add-action input {
  min-width: 0;
}
.compact-empty {
  padding: 8px;
  font-size: 12px;
}
.status-submitted,
.status-department-review,
.status-cab-review,
.status-approved,
.status-scheduled,
.status-validation {
  color: #93c5fd;
}
.status-completed {
  color: #86efac;
}
.status-triage,
.status-active {
  color: #ff5d6c;
}
.status-contained {
  color: #facc15;
}
.status-eradication,
.status-recovery,
.status-monitoring {
  color: #93c5fd;
}
.status-rejected,
.status-cancelled,
.status-rolled-back {
  color: #fca5a5;
}
.incident-command-panel {
  border-color: rgba(248, 113, 113, 0.32);
}
.incident-hero-panel {
  border-color: rgba(248, 113, 113, 0.34);
  background:
    linear-gradient(135deg, rgba(248, 113, 113, 0.1), transparent 46%),
    rgba(12, 18, 25, 0.76);
}
.incident-hero-panel .panel-head p {
  margin: 4px 0 0;
  color: var(--muted);
}
.incident-war-room .ticket-main {
  max-height: calc(100vh - 112px);
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(249, 115, 22, 0.72) rgba(15, 23, 42, 0.72);
}
.incident-war-room .ticket-main::-webkit-scrollbar {
  width: 7px;
}
.incident-war-room .ticket-main::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.72);
  border-radius: 999px;
}
.incident-war-room .ticket-main::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(255, 183, 77, 0.95), rgba(249, 115, 22, 0.88));
  border-radius: 999px;
}
.incident-response-workspace {
  display: grid;
  gap: 8px;
}
.incident-response-accordions {
  gap: 0;
}
.incident-response-accordions .change-action-accordion {
  border-width: 0 0 1px;
  border-radius: 0;
  background: transparent;
  padding: 13px 0;
}
.incident-response-accordions .change-action-accordion:first-child {
  border-top: 1px solid var(--line);
}
.incident-stage-accordion.is-current-stage .change-action-head h3 {
  color: var(--accent);
}
.stage-preparation { border-color: rgba(148, 163, 184, 0.45) !important; }
.stage-identification { border-color: rgba(96, 165, 250, 0.48) !important; }
.stage-containment { border-color: rgba(250, 204, 21, 0.48) !important; }
.stage-eradication { border-color: rgba(248, 113, 113, 0.48) !important; }
.stage-recovery { border-color: rgba(34, 197, 94, 0.48) !important; }
.stage-lessons_learned { border-color: rgba(167, 139, 250, 0.48) !important; }
.contact-matrix-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.contact-matrix-table th,
.contact-matrix-table td {
  padding: 10px;
  border-bottom: 1px solid rgba(38, 50, 65, 0.72);
  vertical-align: middle;
}
.contact-matrix-table tr:last-child td {
  border-bottom: 0;
}
.contact-matrix-table th {
  color: var(--muted);
  text-align: left;
  font-size: 12px;
  font-weight: 400;
  background: rgba(12, 18, 25, 0.76);
}
.contact-matrix-table td:first-child {
  color: var(--text);
  width: 230px;
}
.contact-matrix-table input {
  width: 100%;
}
.incident-stage-accordion {
  border-color: rgba(96, 165, 250, 0.24);
}
.incident-task-item {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(280px, 0.9fr) auto;
  align-items: start;
  gap: 12px;
  width: 100%;
}
.incident-task-item label {
  width: 100%;
  max-width: none;
}
.incident-task-checkline {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.incident-task-checkline input[type="checkbox"] {
  margin-top: 4px;
}
.incident-task-evidence {
  display: grid;
  gap: 5px;
}
.incident-task-notes {
  min-height: 42px;
  align-self: center;
}
.incident-task-notes[readonly] {
  opacity: 0.88;
  cursor: default;
}
.incident-task-notes.is-invalid {
  border-color: rgba(248, 113, 113, 0.9);
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.24);
}
.incident-task-error {
  color: #fca5a5;
  font-size: 12px;
}
.incident-task-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.incident-task-save {
  align-self: center;
  min-height: 42px;
}
.incident-task-save.is-saved {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.76);
  color: #86efac;
}
.incident-artifact-list {
  display: grid;
  gap: 8px;
}
.incident-artifact-link {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  align-items: center;
}
.incident-artifact-upload {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.incident-artifact-upload input[type="file"] {
  width: 100%;
}
.problem-table th,
.problem-table td {
  white-space: nowrap;
}

.chart-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  align-items: stretch;
}

.donut-card {
  position: relative;
  min-width: 0;
  display: grid;
  justify-items: center;
  align-content: start;
  padding: 0 16px;
}

.donut-card .mini-head {
  width: 100%;
  justify-content: center;
  text-align: center;
  margin-bottom: 12px;
}

.donut-card + .donut-card {
  border-left: 1px solid rgba(237, 244, 251, 0.55);
}

.analytics-donut {
  width: 136px;
  height: 136px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle, #0c1219 0 42%, transparent 43%),
    conic-gradient(
      var(--color-1) 0,
      var(--color-1b, var(--color-1)) var(--seg-1),
      var(--color-2) var(--seg-2-start),
      var(--color-2b, var(--color-2)) var(--seg-2-end),
      var(--color-3) var(--seg-3-start),
      var(--color-3b, var(--color-3)) var(--seg-3-end),
      var(--color-4) var(--seg-4-start),
      var(--color-4b, var(--color-4)) var(--seg-4-end, 360deg),
      var(--color-5, var(--color-4)) var(--seg-5-start, 360deg),
      var(--color-5b, var(--color-5, var(--color-4))) 360deg
    );
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.08),
    inset 0 9px 16px rgba(255,255,255,0.05),
    0 14px 30px rgba(0,0,0,0.34);
}

.analytics-donut div {
  display: grid;
  place-items: center;
}

.analytics-donut span {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.analytics-donut strong {
  color: var(--text);
  font-size: 22px;
}

.chart-legend {
  width: min(230px, 100%);
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.chart-legend div {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  min-width: 0;
}

.chart-legend span:not(.dot) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chart-legend strong {
  color: var(--text);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot.critical { background: #ff5d6c; }
.dot.high { background: #fb8c2f; }
.dot.medium { background: #7c3aed; }
.dot.low { background: #22c55e; }
.dot.category-dot-1 { background: #ff5d6c; }
.dot.category-dot-2 { background: #fb8c2f; }
.dot.category-dot-3 { background: #7c3aed; }
.dot.category-dot-4 { background: #22c55e; }
.dot.category-dot-5 { background: #38bdf8; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(8px);
}

.modal-panel {
  width: min(980px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  border: 1px solid var(--line);
  background: #101821;
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.45);
}

.modal-form {
  display: grid;
  gap: 14px;
}

.admin-console {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.admin-console-head {
  display: flex;
  align-items: center;
  gap: 16px;
}
.admin-title-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #c7d2fe;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.85), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}
.admin-title-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.admin-console h2 {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 700;
}
.admin-console p {
  margin: 0;
  color: var(--muted);
}
.admin-search {
  width: min(360px, 100%);
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(11, 17, 24, 0.78);
  padding: 0 12px;
}
.admin-search span { color: var(--muted); font-size: 21px; }
.admin-search input {
  border: 0;
  background: transparent;
  padding-inline: 2px;
}
.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 16px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(249, 115, 22, 0.08), rgba(15, 23, 42, 0.36) 18%, rgba(3, 7, 18, 0.24)),
    rgba(15, 23, 42, 0.18);
}
.admin-card {
  display: grid;
  grid-template-columns: 82px 1fr;
  align-items: center;
  gap: 18px;
  min-height: 152px;
  padding: 20px;
  color: var(--text);
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(30, 41, 59, 0.86), rgba(12, 18, 27, 0.95)),
    rgba(15, 23, 42, 0.84);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 16px 34px rgba(0,0,0,0.18);
  position: relative;
  overflow: hidden;
}
.admin-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 12% 8%, var(--card-glow, rgba(249, 115, 22, 0.16)), transparent 36%);
  opacity: 0.62;
}
.admin-card > * { position: relative; z-index: 1; }
.admin-card:hover {
  transform: translateY(-1px);
  border-color: var(--card-border, rgba(249, 115, 22, 0.48));
  background: linear-gradient(135deg, rgba(36, 48, 64, 0.96), rgba(12, 18, 27, 0.98));
}
.admin-card-wide {
  grid-column: 1 / -1;
  grid-template-columns: 82px 1fr minmax(240px, 360px) auto;
  align-items: end;
}
.brand-settings-card {
  grid-template-columns: 82px 1fr;
  align-items: start;
}
.brand-settings {
  display: grid;
  gap: 10px;
}
.brand-settings-content {
  display: grid;
  gap: 12px;
}
.brand-settings-compact {
  display: grid;
  gap: 10px;
}
.compact-logo-preview {
  width: 100%;
  max-width: 220px;
}
.brand-settings-card .button {
  width: fit-content;
}
.radio-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: var(--text);
  font-weight: 700;
}
.radio-line input {
  width: 16px;
  height: 16px;
}
.logo-preview {
  width: 190px;
  height: 65px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b1118;
}
.logo-preview img {
  width: 180px;
  height: 55px;
  object-fit: contain;
}

.logo-preview.tenant-control-logo {
  width: 220px;
  min-height: 98px;
  height: 100%;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.checkbox-line input {
  width: 16px;
  height: 16px;
}
.tenant-branding-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.tenant-brand-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 23, 36, 0.78);
}
.tenant-brand-card h3 {
  margin: 0 0 4px;
  font-size: 16px;
  color: var(--text);
}
.tenant-brand-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.tenant-logo-preview span {
  color: var(--muted);
  font-size: 12px;
}
.admin-card h2 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 400;
}
.admin-card p {
  color: var(--muted);
  margin: 0 0 14px;
}
.admin-card strong {
  color: var(--accent-2);
  font-size: 14px;
}
.help-panel {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 23, 36, 0.82);
  min-height: calc(100vh - 150px);
  overflow: hidden;
}
.help-index,
.help-reader {
  padding: 18px;
}
.help-index {
  height: 100%;
  border-right: 1px solid rgba(148, 163, 184, 0.18);
}
.help-index > span {
  color: var(--accent-2);
  font-size: 12px;
}
.help-index h2 {
  margin: 6px 0;
  font-size: 22px;
  font-weight: 400;
}
.help-index p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.5;
}
.help-index nav {
  display: grid;
  gap: 7px;
}
.help-index button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #c7d5e5;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 8px;
  padding: 9px 10px;
  background: rgba(11, 17, 24, 0.64);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.help-index button span {
  color: var(--accent-2);
  font-size: 11px;
}
.help-index button:hover,
.help-index button.is-active {
  border-color: rgba(249, 115, 22, 0.48);
  color: var(--accent-2);
  background: rgba(249, 115, 22, 0.1);
}
.help-reader {
  min-width: 0;
}
.help-chapter-view {
  display: grid;
  gap: 18px;
}
.help-reader-head {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}
.help-reader-head > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(249, 115, 22, 0.42);
  border-radius: 8px;
  color: var(--accent-2);
  background: rgba(249, 115, 22, 0.1);
  font-size: 14px;
}
.help-reader-head h2 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 400;
}
.help-reader-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
.help-topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.help-topic {
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 8px;
  background: rgba(11, 17, 24, 0.48);
}
.help-topic p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
.help-topic h3 {
  color: var(--text);
  font-size: 15px;
  font-weight: 400;
  margin: 0 0 6px;
}
.help-points {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}
.help-points div {
  border-left: 2px solid rgba(249, 115, 22, 0.58);
  padding: 8px 10px;
  background: rgba(11, 17, 24, 0.55);
  color: #c7d5e5;
  line-height: 1.45;
  border-radius: 0 8px 8px 0;
}
.report-command-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.report-stat {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 23, 36, 0.82);
}
.report-stat span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}
.report-stat strong {
  color: var(--accent-2);
  font-size: 28px;
  font-weight: 400;
}
.access-command-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.access-actions-panel,
.access-matrix-panel {
  margin-bottom: 16px;
}
.access-table-scroll {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(249, 115, 22, 0.45) rgba(15, 23, 42, 0.34);
}
.access-table-scroll::-webkit-scrollbar {
  height: 7px;
}
.access-table-scroll::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.34);
  border-radius: 999px;
}
.access-table-scroll::-webkit-scrollbar-thumb {
  background: rgba(249, 115, 22, 0.48);
  border-radius: 999px;
}
.access-matrix-table {
  min-width: 1120px;
  table-layout: auto;
}
.access-matrix-table th,
.access-matrix-table td {
  vertical-align: top;
}
.access-matrix-table th {
  white-space: nowrap;
}
.access-matrix-table th small {
  display: block;
  color: var(--accent-2);
  font-size: 10px;
  font-weight: 400;
}
.access-justification {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.access-level,
.access-status,
.due-state {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  padding: 3px 9px;
  color: var(--muted);
  white-space: nowrap;
  font-size: 12px;
}
.access-level-owner,
.access-level-admin,
.access-level-full-control {
  color: #ffb15c;
  border-color: rgba(249, 115, 22, 0.42);
  background: rgba(249, 115, 22, 0.08);
}
.access-level-user,
.access-level-modify {
  color: #7dd3fc;
  border-color: rgba(14, 165, 233, 0.35);
  background: rgba(14, 165, 233, 0.07);
}
.access-level-read {
  color: #a7f3d0;
  border-color: rgba(34, 197, 94, 0.32);
  background: rgba(34, 197, 94, 0.06);
}
.access-level-no-access {
  color: #9ca3af;
  border-color: rgba(148, 163, 184, 0.18);
}
.due-overdue {
  color: var(--danger);
  border-color: rgba(255, 93, 108, 0.45);
}
.due-upcoming {
  color: #ffb15c;
  border-color: rgba(249, 115, 22, 0.4);
}
.due-scheduled,
.due-closed {
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.32);
}
.access-definition-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.definition-table th {
  width: 150px;
  color: var(--accent-2);
  font-weight: 400;
}
.definition-table td {
  color: var(--muted);
  line-height: 1.45;
}
.access-permission-editor {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0c1219;
  padding: 12px;
  display: grid;
  gap: 8px;
}
.access-permission-editor h3 {
  margin: 8px 0 2px;
  font-size: 13px;
  font-weight: 400;
  color: var(--accent-2);
}
.access-permission-editor label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  padding-bottom: 8px;
}
.access-permission-editor label span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.task-command-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.task-command-panel {
  margin-bottom: 16px;
}
.task-overview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 16px;
  align-items: stretch;
}
.task-priority-card {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
}
.task-table {
  min-width: 1100px;
}
.task-table-wrap.has-vertical-scroll {
  max-height: 660px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(249, 115, 22, 0.5) rgba(15, 23, 42, 0.32);
}
.task-table-wrap.has-vertical-scroll::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
.task-table-wrap.has-vertical-scroll::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.32);
  border-radius: 999px;
}
.task-table-wrap.has-vertical-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(249, 115, 22, .78), rgba(255, 177, 92, .42));
  border-radius: 999px;
}
.task-table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #111821;
}
.task-pagination-bar {
  align-items: center;
}
.page-size-form {
  display: inline-flex;
  align-items: center;
  margin: 0;
}
.page-size-form label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}
.page-size-form select {
  width: auto;
  min-width: 78px;
  padding: 7px 10px;
}
.task-modal-action-row {
  display: grid;
  grid-template-columns: minmax(190px, .55fr) minmax(0, 1.45fr);
  gap: 14px;
  align-items: start;
}
.task-modal-action-row > label {
  align-self: stretch;
}
.task-modal-action-row select {
  min-height: 58px;
}
.task-modal-action-row .people-picker {
  min-height: 58px;
  align-content: center;
}
.truncate-cell {
  max-width: 270px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.status-text.status-on-hold {
  color: #fb8c2f;
}
.status-text.status-completed {
  color: #22c55e;
}
.status-action.status-on-hold {
  border-color: rgba(249, 115, 22, 0.58);
  color: #fb8c2f;
}
.status-action.status-completed {
  border-color: rgba(34, 197, 94, 0.65);
  color: #22c55e;
}
.due-due-today {
  color: #facc15;
  border-color: rgba(250, 204, 21, 0.55);
}
.due-due-soon {
  color: #ffb15c;
  border-color: rgba(249, 115, 22, 0.44);
}
.due-completed {
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.32);
}
.asset-command-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.asset-command-panel {
  margin-bottom: 16px;
}
.asset-unified-panel {
  border-color: rgba(255, 122, 24, 0.24);
  background:
    linear-gradient(145deg, rgba(255, 122, 24, 0.08), rgba(22, 143, 237, 0.04)),
    rgba(13, 20, 31, 0.92);
}
.asset-unified-head {
  align-items: center;
  gap: 18px;
}
.asset-unified-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.asset-filter-bar,
.asset-import-row {
  display: grid;
  grid-template-columns: 190px 190px minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: end;
}
.asset-unified-filter {
  grid-template-columns: 410px 1px 300px 1px minmax(360px, 1fr) 82px;
  padding: 12px 0 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  column-gap: 13px;
  row-gap: 10px;
  align-items: center;
}
.asset-unified-filter::before,
.asset-unified-filter::after {
  content: "";
  width: 1px;
  height: 34px;
  align-self: end;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  opacity: 0.72;
}
.asset-unified-filter::before {
  grid-column: 2;
  grid-row: 1;
}
.asset-unified-filter::after {
  grid-column: 4;
  grid-row: 1;
}
.asset-unified-filter label {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  color: var(--text);
  font-size: 14px;
  white-space: nowrap;
}
.asset-unified-filter select,
.asset-unified-filter input {
  width: 100%;
}
.asset-unified-filter label:nth-of-type(1) {
  grid-column: 3;
}
.asset-unified-filter label:nth-of-type(2) {
  grid-column: 5;
}
.asset-unified-filter .button {
  grid-column: 6;
}
.asset-category-tabs {
  grid-column: 1;
  min-height: 36px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  align-self: end;
}
.asset-category-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 7px;
  color: #b8d7ff;
  background: rgba(8, 15, 24, 0.7);
  text-decoration: none;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.asset-category-tab:hover,
.asset-category-tab.active {
  color: #fff;
}
.asset-category-hardware {
  border-color: rgba(73, 167, 255, 0.5);
  box-shadow: inset 0 0 0 1px rgba(73, 167, 255, 0.06), 0 0 12px rgba(73, 167, 255, 0.08);
}
.asset-category-common {
  border-color: rgba(255, 122, 24, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255, 122, 24, 0.06), 0 0 12px rgba(255, 122, 24, 0.08);
}
.asset-category-software {
  border-color: rgba(126, 231, 135, 0.48);
  box-shadow: inset 0 0 0 1px rgba(126, 231, 135, 0.06), 0 0 12px rgba(126, 231, 135, 0.08);
}
.asset-category-hardware:hover,
.asset-category-hardware.active {
  background: linear-gradient(145deg, rgba(73, 167, 255, 0.24), rgba(73, 167, 255, 0.06));
  border-color: rgba(73, 167, 255, 0.86);
  box-shadow: 0 0 18px rgba(73, 167, 255, 0.18);
}
.asset-category-common:hover,
.asset-category-common.active {
  background: linear-gradient(145deg, rgba(255, 122, 24, 0.24), rgba(255, 122, 24, 0.06));
  border-color: rgba(255, 122, 24, 0.86);
  box-shadow: 0 0 18px rgba(255, 122, 24, 0.18);
}
.asset-category-software:hover,
.asset-category-software.active {
  background: linear-gradient(145deg, rgba(126, 231, 135, 0.22), rgba(126, 231, 135, 0.05));
  border-color: rgba(126, 231, 135, 0.82);
  box-shadow: 0 0 18px rgba(126, 231, 135, 0.16);
}
.asset-active-table-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0 8px;
}
.asset-active-table-head h3 {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 17px;
  font-weight: 400;
}
.asset-active-table-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.asset-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 12px;
  margin-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  color: var(--muted);
  font-size: 13px;
}
.asset-pagination-bar .pagination-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.asset-pagination-bar .inline-pagination-form {
  display: flex;
  align-items: center;
}
.asset-pagination-bar label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  white-space: nowrap;
}
.asset-pagination-bar select {
  min-width: 78px;
  min-height: 34px;
}
.asset-pagination-bar .button {
  min-height: 32px;
  padding: 6px 11px;
}
.asset-import-result-panel {
  margin: 14px 0 0;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 10px;
  background: rgba(7, 13, 20, 0.42);
}
.asset-import-row {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  grid-template-columns: 220px minmax(280px, 1fr) auto;
}
.asset-list-panel {
  margin-top: 16px;
}
.asset-table {
  min-width: 980px;
}
.asset-table-wrap {
  max-height: 520px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(249, 115, 22, 0.55) rgba(15, 23, 42, 0.32);
}
.asset-table-wrap::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
.asset-table-wrap::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.32);
  border-radius: 999px;
}
.asset-table-wrap::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(249, 115, 22, .78), rgba(255, 177, 92, .42));
  border-radius: 999px;
}
.asset-table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #111821;
}
.asset-status,
.asset-cia,
.asset-expiry {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, .24);
  font-size: 12px;
  font-weight: 400;
}
.asset-status-active-in-use { color: #86efac; border-color: rgba(34, 197, 94, .42); }
.asset-status-spare-stock { color: #93c5fd; border-color: rgba(96, 165, 250, .42); }
.asset-status-under-repair { color: #facc15; border-color: rgba(250, 204, 21, .45); }
.asset-status-deactivated,
.asset-status-disposed { color: #cbd5e1; border-color: rgba(148, 163, 184, .32); }
.asset-cia-critical { color: #ff5d6c; border-color: rgba(255, 93, 108, .65); }
.asset-cia-high { color: #fb8c2f; border-color: rgba(249, 115, 22, .58); }
.asset-cia-medium { color: #facc15; border-color: rgba(250, 204, 21, .48); }
.asset-cia-low { color: #60a5fa; border-color: rgba(96, 165, 250, .48); }
.asset-expiry-warning { color: #facc15; }
.asset-expiry-expired { color: var(--danger); }
.mini-button {
  min-height: 28px;
  padding: 5px 10px;
}
.asset-modal details {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  background: rgba(7, 13, 20, 0.36);
  padding: 10px;
}
.asset-modal summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  color: var(--accent-2);
  margin-bottom: 10px;
  list-style: none;
}
.asset-modal summary::-webkit-details-marker,
.asset-inventory-panel > summary::-webkit-details-marker,
.asset-topology-panel > summary::-webkit-details-marker {
  display: none;
}
.asset-modal summary::after,
.asset-inventory-panel > summary::after,
.asset-topology-panel > summary::after {
  content: "\25BE";
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  margin-left: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 122, 24, 0.42);
  border-radius: 9px;
  background: linear-gradient(145deg, rgba(255, 122, 24, 0.18), rgba(22, 143, 237, 0.12));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 18px rgba(0, 0, 0, 0.2);
  color: #ff8a2a;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.asset-modal details[open] > summary::after,
.asset-inventory-panel[open] > summary::after,
.asset-topology-panel[open] > summary::after {
  content: "\25B4";
  color: #49a7ff;
  border-color: rgba(73, 167, 255, 0.52);
  background: linear-gradient(145deg, rgba(22, 143, 237, 0.18), rgba(255, 122, 24, 0.1));
  transform: translateY(-1px);
}
.asset-detail-workspace {
  grid-template-columns: minmax(0, 1fr) 360px;
}
.asset-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.asset-detail-head span {
  color: var(--muted);
  font-size: 13px;
}
.asset-detail-head h2 {
  margin: 5px 0;
  font-size: 22px;
  font-weight: 400;
}
.asset-detail-head p {
  margin: 0;
  color: var(--text);
}
.asset-detail-block {
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  padding-top: 14px;
  margin-top: 14px;
}
.asset-detail-block h3 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 400;
  color: var(--accent-2);
}
.asset-detail-table {
  width: 100%;
  border-collapse: collapse;
}
.asset-detail-table th,
.asset-detail-table td {
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
  font-size: 13px;
  font-weight: 400;
}
.asset-detail-table th {
  width: 230px;
  color: var(--muted);
}
.asset-detail-table td {
  color: var(--text);
  overflow-wrap: anywhere;
}
.asset-single-panel {
  max-height: calc(100vh - 112px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.asset-detail-head.compact {
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}
.asset-detail-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.asset-detail-scroll {
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(249, 115, 22, 0.55) rgba(15, 23, 42, 0.32);
}
.asset-detail-scroll::-webkit-scrollbar {
  width: 7px;
}
.asset-detail-scroll::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.32);
  border-radius: 999px;
}
.asset-detail-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(249, 115, 22, .78), rgba(255, 177, 92, .42));
  border-radius: 999px;
}
.asset-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.asset-detail-card {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 8px;
  background: rgba(7, 13, 20, 0.32);
  padding: 12px;
}
.asset-detail-card h3 {
  margin: 0 0 10px;
  color: var(--accent-2);
  font-size: 14px;
  font-weight: 400;
}
.asset-single-panel .asset-detail-table {
  width: 100%;
}
.asset-single-panel .asset-detail-table th,
.asset-single-panel .asset-detail-table td {
  padding: 7px 8px;
  vertical-align: middle;
}
.asset-single-panel .asset-detail-table th {
  width: 42%;
  color: var(--muted);
  font-weight: 400;
}
.asset-single-panel .asset-detail-table input,
.asset-single-panel .asset-detail-table select,
.asset-single-panel .asset-detail-table textarea {
  width: 100%;
  min-height: 34px;
}
.asset-change-log {
  align-content: start;
}
.asset-change-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}
.asset-change-row span {
  color: var(--muted);
}
.asset-change-row strong {
  font-weight: 400;
  color: var(--text);
}
.asset-change-log p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.asset-overview-panel {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.96), rgba(8, 13, 20, 0.98)),
    radial-gradient(circle at 86% 14%, rgba(249, 115, 22, 0.12), transparent 30%);
  padding: 10px 14px;
  margin-bottom: 12px;
}
.asset-overview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.asset-overview-head h2,
.asset-overview-zone h3 {
  margin: 0;
  font-weight: 400;
}
.asset-overview-head p {
  margin: 4px 0 0;
  color: var(--muted);
}
.asset-overview-strip {
  display: grid;
  grid-template-columns: 1.05fr 1.75fr 1.45fr 1.15fr;
  align-items: stretch;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  padding-top: 8px;
}
.asset-overview-zone {
  min-width: 0;
  padding: 0 12px;
  border-left: 1px solid rgba(148, 163, 184, 0.2);
}
.asset-overview-zone:first-child {
  border-left: 0;
  padding-left: 0;
}
.asset-overview-zone:last-child {
  padding-right: 0;
}
.asset-overview-zone h3 {
  color: var(--accent-2);
  font-size: 14px;
  margin-bottom: 7px;
}
.asset-overview-inline {
  display: grid;
  grid-template-columns: repeat(3, minmax(86px, 1fr));
  gap: 8px 10px;
}
.asset-overview-zone:nth-child(3) .asset-overview-inline {
  grid-template-columns: repeat(2, minmax(92px, 1fr));
}
.asset-overview-zone:nth-child(4) .asset-overview-inline {
  grid-template-columns: repeat(2, minmax(92px, 1fr));
}
.asset-overview-metric {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0;
  min-width: 0;
  text-align: center;
}
.asset-overview-metric div,
.asset-location-chip div {
  min-width: 0;
  display: grid;
  gap: 0;
}
.asset-overview-metric span,
.asset-location-chip span {
  color: #bfdbfe;
  font-size: 12px;
  line-height: 1.05;
}
.asset-overview-metric span {
  white-space: normal;
  overflow: hidden;
  text-overflow: clip;
  min-height: 0;
  display: block;
}
.asset-location-chip span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.asset-overview-metric strong,
.asset-location-chip strong {
  color: #ffb15c;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}
.asset-overview-metric small {
  color: var(--muted);
  font-size: 11px;
}
.asset-location-stack {
  display: grid;
  gap: 5px;
  min-height: 132px;
  align-content: center;
}
.asset-location-stack.location-count-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: center;
  gap: 8px 8px;
}
.asset-location-stack.location-count-1 {
  place-items: center;
}
.asset-location-stack.location-count-2,
.asset-location-stack.location-count-3,
.asset-location-stack.location-count-0 {
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
}
.asset-location-chip {
  display: grid;
  justify-items: center;
  gap: 0;
  min-width: 0;
  text-align: center;
}
.asset-location-chip .asset-viz-icon {
  width: 76px;
  height: 76px;
}
.asset-location-chip .asset-viz-icon img {
  width: 72px;
  height: 72px;
}
.asset-location-chip span {
  max-width: 120px;
  text-align: center;
}
.asset-location-chip strong {
  font-size: 13px;
}
.asset-location-chip.muted {
  color: rgba(145, 162, 181, 0.65);
}
.asset-viz-icon {
  width: 64px;
  height: 64px;
  border-radius: 0;
  display: inline-grid;
  place-items: center;
  flex: 0 0 64px;
  background: transparent;
  border: 0;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.34));
}
.asset-viz-icon img {
  display: block;
  width: 60px;
  height: 60px;
  object-fit: contain;
  image-rendering: auto;
}
.asset-viz-firewall img,
.asset-viz-switch img,
.asset-viz-wireless img,
.asset-viz-mac img,
.asset-viz-edr img {
  width: 60px;
  height: 60px;
}
.asset-viz-email img {
  width: 58px;
  height: 58px;
}
.asset-viz-aws img {
  width: 64px;
  height: 64px;
}
.asset-viz-byod img,
.asset-viz-mobile img,
.asset-viz-windows img,
.asset-viz-linux img {
  width: 60px;
  height: 60px;
}
.asset-topology-panel {
  margin-bottom: 16px;
  overflow: hidden;
}
.asset-topology-panel > summary,
.asset-inventory-panel > summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
  color: var(--text);
}
.asset-topology-panel > summary::-webkit-details-marker,
.asset-inventory-panel > summary::-webkit-details-marker {
  display: none;
}
.asset-topology-panel summary span,
.asset-inventory-panel summary span {
  font-size: 16px;
}
.asset-topology-panel summary small,
.asset-inventory-panel summary small {
  color: var(--muted);
}
.asset-topology-canvas {
  position: relative;
  display: grid;
  grid-template-columns: 220px 56px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 270px;
  margin-top: 16px;
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(8, 13, 20, 0.86), rgba(15, 23, 42, 0.5)),
    radial-gradient(circle at 50% 50%, rgba(96, 165, 250, 0.08), transparent 34%);
  border: 1px solid rgba(148, 163, 184, 0.12);
  padding: 16px;
}
.topology-node {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 5px;
  min-height: 126px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 10px;
  background: rgba(8, 13, 20, 0.84);
  padding: 12px;
}
.topology-node strong {
  font-weight: 400;
}
.topology-node span {
  color: var(--accent-2);
  font-size: 12px;
}
.topology-node small {
  max-width: 150px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topology-zone-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.topology-spine {
  position: relative;
  min-height: 220px;
}
.topology-dot-line {
  position: absolute;
  left: 26px;
  width: 3px;
  height: 220px;
  background-image: linear-gradient(to bottom, rgba(249, 115, 22, 0.78) 45%, transparent 45%);
  background-size: 3px 15px;
  animation: topologyDash 1.1s linear infinite;
  border-radius: 999px;
}
.topology-dot-line.line-two {
  left: 17px;
  height: 170px;
  top: 25px;
  opacity: .45;
  animation-duration: 1.5s;
}
.topology-dot-line.line-three {
  left: 35px;
  height: 145px;
  top: 40px;
  opacity: .35;
  animation-duration: 1.9s;
}
@keyframes topologyDash {
  from { background-position-y: 0; }
  to { background-position-y: 30px; }
}
.asset-inventory-panel {
  margin-bottom: 14px;
}
.asset-inventory-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.asset-import-row.compact {
  grid-template-columns: 220px minmax(280px, 1fr) auto;
}
.asset-filter-bar {
  grid-template-columns: 190px 190px minmax(260px, 1fr) auto;
}
.asset-unified-filter {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 14px;
  padding: 12px 0 14px;
}
.asset-unified-filter::before,
.asset-unified-filter::after {
  display: none;
  content: none;
}
.asset-filter-separator {
  flex: 0 0 1px;
  width: 1px;
  height: 32px;
  background: rgba(203, 213, 225, 0.42);
}
.asset-unified-filter .asset-category-tabs {
  flex: 0 0 564px;
  display: flex;
  grid-template-columns: none;
  gap: 12px;
  min-width: 564px;
}
.asset-unified-filter .asset-category-tab {
  flex: 0 0 180px;
  width: 180px;
  min-height: 40px;
  padding: 8px 14px;
  overflow: visible;
  text-overflow: clip;
}
.asset-unified-filter label:nth-of-type(1) {
  flex: 0 0 218px;
  display: grid;
  grid-template-columns: auto 118px;
  align-items: center;
  gap: 8px;
}
.asset-unified-filter label:nth-of-type(2) {
  flex: 1 1 auto;
  min-width: 520px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}
.asset-unified-filter select,
.asset-unified-filter input {
  width: 100%;
}
.asset-unified-filter .button {
  flex: 0 0 auto;
  min-width: 78px;
}
.asset-overview-head h2 {
  font-size: 17px;
  font-weight: 500;
}
.asset-overview-zone h3 {
  font-size: 13px;
  font-weight: 400;
}
.asset-category-hardware,
.asset-category-common,
.asset-category-software {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}
.asset-category-hardware:hover,
.asset-category-hardware.active {
  background: rgba(73, 167, 255, 0.11);
  border-color: rgba(73, 167, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(73, 167, 255, 0.08);
}
.asset-category-common:hover,
.asset-category-common.active {
  background: rgba(255, 122, 24, 0.11);
  border-color: rgba(255, 122, 24, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 122, 24, 0.08);
}
.asset-category-software:hover,
.asset-category-software.active {
  background: rgba(126, 231, 135, 0.1);
  border-color: rgba(126, 231, 135, 0.68);
  box-shadow: inset 0 0 0 1px rgba(126, 231, 135, 0.08);
}
.asset-checkbox-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 22px;
  margin: 10px 0;
  border: 0;
  background: transparent;
}
.asset-checkbox-grid::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(148, 163, 184, 0.18);
}
.asset-checkbox-grid label {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: center;
  justify-content: start;
  gap: 8px;
  min-height: 34px;
  padding: 0;
  color: var(--text);
  background: transparent;
  line-height: 1.15;
  white-space: nowrap;
}
.asset-checkbox-grid label input[type="checkbox"] {
  margin: 0;
  justify-self: center;
}
.section-divider {
  height: 1px;
  margin: 14px 0;
  background: rgba(148, 163, 184, 0.2);
}
.asset-accessory-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 22px;
  border: 0;
  background: transparent;
}
.asset-accessory-grid::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(148, 163, 184, 0.18);
}
.asset-accessory-row {
  display: grid;
  grid-template-columns: 134px minmax(0, 1fr) 32px;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  padding: 0;
}
.asset-accessory-row label {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-height: 32px;
  margin: 0;
  color: var(--muted);
  line-height: 1.15;
  white-space: nowrap;
}
.asset-accessory-row label input[type="checkbox"] {
  margin: 0;
  justify-self: center;
}
.asset-accessory-row input:not([type="checkbox"]) {
  height: 32px;
  min-height: 32px;
  width: 100%;
}
.asset-accessory-row.is-enabled label {
  color: var(--text);
}
.icon-save-button {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.72);
  color: rgba(148, 163, 184, 0.9);
  cursor: pointer;
}
.asset-accessory-row.is-saved .icon-save-button {
  border-color: rgba(34, 197, 94, 0.5);
  background: rgba(34, 197, 94, 0.14);
  color: #22c55e;
}
.asset-import-result-panel {
  border-color: rgba(255, 122, 24, 0.28);
}
.asset-import-confirm-row,
.asset-import-modal-form,
.asset-import-modal-grid {
  display: grid;
  gap: 12px;
  align-items: end;
}
.asset-import-confirm-row {
  grid-template-columns: auto auto 1fr;
  margin: 12px 0;
}
.asset-import-modal {
  max-width: 760px;
}
.asset-import-modal-grid,
.asset-import-modal-form {
  grid-template-columns: minmax(220px, 1fr) minmax(260px, 1.4fr) auto;
}
.asset-import-toolbox {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.asset-import-modal .form-tip {
  margin: 12px 0;
  color: var(--muted);
}
.readonly-field {
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 13, 20, 0.45);
}
.readonly-field span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}
.readonly-field strong {
  font-weight: 400;
  color: var(--text);
}
.asset-import-result-summary {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--text);
  margin-bottom: 10px;
}
.asset-import-result-summary span {
  color: var(--muted);
  font-size: 0.88rem;
}
.asset-import-error-list {
  max-height: 180px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 10, 18, 0.45);
}
.asset-import-valid-list {
  max-height: 150px;
  overflow: auto;
  border: 1px solid rgba(34, 197, 94, 0.22);
  border-radius: 8px;
  background: rgba(5, 10, 18, 0.35);
  margin: 10px 0;
}
.asset-import-valid-list div {
  padding: 8px 10px;
  color: #bbf7d0;
  border-bottom: 1px solid rgba(34, 197, 94, 0.12);
  font-size: 0.84rem;
}
.asset-import-valid-list div:last-child {
  border-bottom: 0;
}
.asset-import-valid-list span {
  color: #22c55e;
  margin-right: 6px;
}
.asset-import-valid-list small {
  color: var(--muted);
  margin-left: 8px;
}
.asset-import-error-list div {
  padding: 8px 10px;
  color: #ffb4a8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.84rem;
}
.asset-import-error-list div:last-child {
  border-bottom: 0;
}
@media (max-width: 1280px) {
  .asset-overview-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 0;
  }
  .asset-overview-zone:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
  .topology-zone-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.watcher-form {
  display: grid;
  gap: 10px;
}
.people-picker {
  position: relative;
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b1118;
  padding: 8px;
}
.people-picker-hint {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}
.people-picker input[type="search"] {
  border: 0;
  background: transparent;
  padding: 2px 2px 3px;
}
.people-picker input[type="search"]:focus {
  outline: none;
  box-shadow: none;
}
.people-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.people-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-height: 28px;
  border: 1px solid rgba(249, 115, 22, 0.42);
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.1);
  color: var(--text);
  padding: 4px 6px 4px 10px;
  font-size: 12px;
}
.people-chip small {
  color: var(--muted);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.people-chip button {
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
}
.people-chip button:hover {
  background: rgba(255, 93, 108, 0.2);
  color: var(--danger);
}
.people-results {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  display: grid;
  gap: 4px;
  max-height: 190px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d1218;
  padding: 6px;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.35);
}
.people-results[hidden] {
  display: none !important;
}
.people-results button {
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  display: grid;
  gap: 2px;
  padding: 8px;
  text-align: left;
}
.people-results button:hover {
  background: var(--panel-2);
}
.people-results span {
  color: var(--muted);
  font-size: 12px;
}
.report-builder {
  display: grid;
  gap: 16px;
}
.report-form-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 16px;
}
.report-check-list,
.report-column-grid {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 8px;
  background: rgba(11, 17, 24, 0.48);
}
.report-check-list label,
.report-column-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
}
.report-check-list input,
.report-column-grid input {
  width: 15px;
  height: 15px;
}
.report-column-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.compact-form-row {
  grid-template-columns: 1fr 1fr;
}
.report-list-controls {
  display: flex;
  justify-content: flex-end;
  margin: -4px 0 12px;
}
.report-list-controls label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}
.report-list-controls select {
  width: 78px;
  min-height: 32px;
  padding: 6px 28px 6px 10px;
}
.report-schedule-mode {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.report-schedule-mode label {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(11, 17, 24, 0.62);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--text);
}
.report-schedule-mode input {
  width: 16px;
  height: 16px;
}
.report-automated-fields {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(249, 115, 22, 0.18);
  background: rgba(249, 115, 22, 0.05);
  border-radius: 8px;
  padding: 12px;
}
.report-days-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.report-days-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(11, 17, 24, 0.62);
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--text);
  font-size: 12px;
}
.report-days-grid input {
  width: 15px;
  height: 15px;
}
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  color: var(--muted);
  font-size: 12px;
}
.pagination-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.toggle-form {
  margin: 0;
}
.report-toggle {
  width: 56px;
  height: 27px;
  border: 1px solid rgba(248, 113, 113, 0.34);
  border-radius: 999px;
  background: rgba(127, 29, 29, 0.78);
  color: #fecaca;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  padding: 3px 7px 3px 3px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.report-toggle i {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #f8fafc;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
  order: -1;
}
.report-toggle.is-on {
  justify-content: flex-start;
  padding: 3px 3px 3px 8px;
  background: rgba(21, 128, 61, 0.78);
  border-color: rgba(74, 222, 128, 0.36);
  color: #dcfce7;
}
.report-toggle.is-on i {
  order: 2;
}
.report-toggle.readonly {
  cursor: default;
  opacity: 0.72;
}
.report-actions-stack {
  display: inline-grid;
  gap: 6px;
  justify-items: center;
}
.mini-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 26px;
  padding: 0 8px;
  border-radius: 7px;
  font-size: 12px;
  color: var(--text);
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: transparent;
  text-decoration: none;
}
.mini-download.excel {
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.32);
}
.mini-download.pdf {
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.32);
}
.mini-download:hover {
  transform: translateY(-1px);
  background: rgba(15, 23, 36, 0.96);
}
.report-icon-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}
.report-icon-actions form {
  margin: 0;
}
.round-icon-button {
  width: 27px;
  height: 27px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(96, 165, 250, 0.28);
  color: #93c5fd;
  background: rgba(15, 23, 42, 0.72);
  cursor: pointer;
}
.round-icon-button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.round-icon-button.danger {
  color: #fca5a5;
  border-color: rgba(248, 113, 113, 0.3);
}
.round-icon-button:hover {
  background: rgba(30, 41, 59, 0.95);
  transform: translateY(-1px);
}
.card-icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: var(--card-color, var(--accent-2));
  background: var(--card-icon-bg, linear-gradient(135deg, rgba(249, 115, 22, 0.18), rgba(249, 115, 22, 0.08)));
  border: 1px solid var(--card-border, rgba(249, 115, 22, 0.34));
}
.card-icon svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.admin-tone-orange { --card-color: #fb923c; --card-glow: rgba(249, 115, 22, 0.25); --card-border: rgba(249, 115, 22, 0.45); --card-icon-bg: linear-gradient(145deg, rgba(249, 115, 22, 0.24), rgba(124, 45, 18, 0.22)); }
.admin-tone-purple { --card-color: #c084fc; --card-glow: rgba(168, 85, 247, 0.24); --card-border: rgba(168, 85, 247, 0.42); --card-icon-bg: linear-gradient(145deg, rgba(168, 85, 247, 0.24), rgba(88, 28, 135, 0.22)); }
.admin-tone-blue { --card-color: #60a5fa; --card-glow: rgba(59, 130, 246, 0.24); --card-border: rgba(59, 130, 246, 0.42); --card-icon-bg: linear-gradient(145deg, rgba(59, 130, 246, 0.24), rgba(30, 64, 175, 0.22)); }
.admin-tone-green { --card-color: #4ade80; --card-glow: rgba(34, 197, 94, 0.22); --card-border: rgba(34, 197, 94, 0.42); --card-icon-bg: linear-gradient(145deg, rgba(34, 197, 94, 0.22), rgba(20, 83, 45, 0.22)); }
.admin-tone-yellow { --card-color: #fbbf24; --card-glow: rgba(234, 179, 8, 0.22); --card-border: rgba(234, 179, 8, 0.42); --card-icon-bg: linear-gradient(145deg, rgba(234, 179, 8, 0.24), rgba(113, 63, 18, 0.22)); }
.admin-tone-cyan { --card-color: #22d3ee; --card-glow: rgba(34, 211, 238, 0.22); --card-border: rgba(34, 211, 238, 0.42); --card-icon-bg: linear-gradient(145deg, rgba(34, 211, 238, 0.22), rgba(21, 94, 117, 0.22)); }

.matrix { display: grid; gap: 14px; }
.matrix-tenant {
  border: 1px solid var(--line);
  background: #0c1219;
  border-radius: 8px;
  padding: 14px;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.check input,
td input[type="checkbox"] { width: 18px; height: 18px; }
.tenant-check strong { color: var(--text); }

.rbac-panel { overflow: visible; }
.rbac-count {
  color: var(--accent);
  border: 1px solid rgba(249, 115, 22, 0.35);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 13px;
  white-space: nowrap;
}
.rbac-builder {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}
.tenant-picker,
.permission-stage {
  border: 1px solid var(--line);
  background: #0c1219;
  border-radius: 8px;
  min-width: 0;
}
.tenant-picker { padding: 14px; }
.rbac-step {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}
.tenant-list {
  display: grid;
  gap: 9px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
}
.tenant-chip {
  display: flex;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  padding: 11px;
  cursor: pointer;
}
.tenant-chip.is-selected {
  border-color: rgba(249, 115, 22, 0.65);
  background: var(--accent-soft);
}
.tenant-chip input {
  width: 18px;
  height: 18px;
}
.tenant-chip strong {
  color: var(--text);
  display: block;
}
.tenant-chip small {
  color: var(--muted);
  display: block;
  margin-top: 2px;
}
.permission-stage {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 280px;
}
.permission-stage-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 0;
}
.permission-stage-head p {
  color: var(--muted);
  margin: 0 0 12px;
}
.permission-empty {
  color: var(--muted);
  display: grid;
  place-items: center;
  min-height: 190px;
  text-align: center;
  padding: 24px;
}
.permission-scroll {
  overflow: visible;
  padding: 0 14px 14px;
}
.permission-card-stack {
  display: grid;
  gap: 14px;
}
.permission-tenant-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(38, 50, 65, 0.78);
  background: rgba(15, 23, 36, 0.62);
  border-radius: 8px;
  padding: 14px;
}
.permission-tenant-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(38, 50, 65, 0.72);
  padding-bottom: 12px;
}
.permission-tenant-head strong,
.permission-tenant-head span {
  display: block;
}
.permission-tenant-head span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}
.module-permission-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.module-permission-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b1118;
  padding: 11px;
}
.module-permission-name {
  min-height: 34px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.25;
}
.perm-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.perm-pair label,
.switch-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  padding: 7px 6px;
  min-width: 62px;
  white-space: nowrap;
}
.perm-pair input,
.switch-check input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}
.switch-check { min-width: 90px; }
.tenant-admin-switch {
  min-width: 132px;
}
.rbac-matrix {
  border: 1px solid var(--line);
  background: #0c1219;
  border-radius: 8px;
  padding: 12px;
  overflow: hidden;
}
.rbac-matrix-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.rbac-matrix-head p {
  color: var(--muted);
  margin: 0;
  font-size: 12px;
}
.rbac-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 11px;
}
.rbac-table th,
.rbac-table td {
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  border-right: 1px solid rgba(148, 163, 184, 0.08);
  padding: 5px 4px;
  text-align: center;
  vertical-align: middle;
}
.rbac-table th:last-child,
.rbac-table td:last-child {
  border-right: 0;
}
.rbac-table th {
  color: var(--muted);
  font-weight: 400;
  line-height: 1.15;
  word-break: normal;
}
.rbac-table tbody tr {
  opacity: 0.56;
}
.rbac-table tbody tr.is-selected {
  opacity: 1;
  background: rgba(249, 115, 22, 0.045);
}
.rbac-tenant-col {
  width: 132px;
  text-align: left !important;
}
.rbac-admin-col {
  width: 66px;
}
.rbac-tenant-cell {
  text-align: left !important;
}
.rbac-tenant-select {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--text);
}
.rbac-tenant-select span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rbac-tenant-select input,
.rbac-admin-check input,
.rbac-perm-pair input {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
}
.rbac-admin-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.rbac-perm-pair {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
}
.rbac-perm-pair label {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1;
}
.rbac-table input:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.page-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}
.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.flash-wrap { margin-bottom: 18px; }
.flash {
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
}
.flash.success { background: rgba(249, 115, 22, 0.12); color: var(--accent); }
.flash.error { background: rgba(255, 93, 108, 0.12); color: var(--danger); }

.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(circle at top left, rgba(249,115,22,.18), transparent 32%), var(--bg);
}
.login-panel {
  width: min(460px, 100%);
  padding: 32px;
}
.login-panel h1 {
  margin: 0 0 10px;
  font-size: 18px;
  text-align: center;
  white-space: nowrap;
  font-weight: 400;
}
.auth-app-title {
  text-transform: uppercase;
  letter-spacing: 0;
  font-weight: 400;
}
.login-brand { font-size: 26px; text-align: center; margin-bottom: 14px; }
.login-logo {
  display: block;
  width: min(220px, 100%);
  max-height: 70px;
  object-fit: contain;
  margin: 0 auto;
}
.tenant-request-logo {
  display: block;
  width: 180px;
  height: 55px;
  object-fit: contain;
  margin: 0 auto 12px;
}
.public-request-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 18px;
}
.request-type-card {
  display: grid;
  gap: 7px;
  min-height: 112px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(12, 18, 25, 0.78);
  color: var(--muted);
  text-decoration: none;
  text-align: left;
}
.request-type-card:hover,
.request-type-card.is-active {
  border-color: rgba(249, 115, 22, 0.62);
  background: rgba(249, 115, 22, 0.11);
  color: var(--text);
}
.request-type-card strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
}
.request-type-card span {
  font-size: 12px;
  line-height: 1.35;
}
.login-panel p {
  text-align: center;
}
.login-panel p,
.login-hint { color: var(--muted); }
.mfa-panel {
  width: min(420px, 100%);
  padding: 26px;
}
.compact-auth-panel {
  width: min(420px, 100%);
  padding: 26px;
}
.qr-wrap {
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  margin: 18px 0;
}
.qr-wrap img {
  width: 190px;
  height: 190px;
}
.manual-key {
  color: var(--accent-2);
  background: #0b1118;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  word-break: break-all;
  margin-bottom: 14px;
  font-family: Consolas, monospace;
}
.otp-boxes {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.otp-box {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  border-color: rgba(249, 115, 22, 0.42);
}
.otp-box:focus {
  border-color: rgba(249, 115, 22, 0.9);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.14);
}
.forgot-link {
  display: inline-flex;
  color: var(--accent-2);
  text-decoration: none;
  margin-top: 12px;
  font-size: 14px;
}
.forgot-link:hover { color: var(--accent); }
.password-rule {
  color: var(--accent-2);
  font-size: 13px;
  margin-top: -4px;
}
.field-hint {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  margin-top: 6px;
}
.template-variable-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0c1219;
  padding: 12px;
  margin-bottom: 14px;
}
.template-variable-box p {
  color: var(--muted);
  margin: 8px 0 0;
  line-height: 1.6;
}
.template-grid {
  display: grid;
  gap: 12px;
}
.template-editor {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0c1219;
  padding: 12px;
}
.template-editor summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  color: var(--text);
}
.template-editor form {
  margin-top: 14px;
}
.compact-table {
  min-width: 780px;
}
.compact-table input[type="time"],
.compact-table input[type="number"] {
  min-width: 110px;
}
.table-check {
  width: 18px;
  height: 18px;
}
.ticket-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
}
.ticket-detail-grid > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0c1219;
  padding: 12px;
}
.ticket-detail-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}
.ticket-description {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0c1219;
  padding: 14px;
  margin-top: 14px;
}
.ticket-description h3 {
  margin: 0 0 8px;
}
.ticket-description p {
  color: var(--muted);
  white-space: pre-wrap;
}
.conversation-list {
  display: grid;
  gap: 12px;
}

.ticket-workspace .conversation-list {
  max-height: 360px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(249, 115, 22, 0.45) rgba(15, 23, 42, 0.32);
}
.ticket-workspace .conversation-list::-webkit-scrollbar {
  width: 6px;
}
.ticket-workspace .conversation-list::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.32);
  border-radius: 999px;
}
.ticket-workspace .conversation-list::-webkit-scrollbar-thumb {
  background: rgba(249, 115, 22, 0.48);
  border-radius: 999px;
}
.ticket-workspace .conversation-list::-webkit-scrollbar-thumb:hover {
  background: rgba(249, 115, 22, 0.72);
}
.conversation-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(12, 18, 25, 0.82);
  padding: 14px;
}
.conversation-item span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin-top: 3px;
}
.conversation-item p {
  white-space: pre-wrap;
  color: var(--text);
}
.ticket-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}
.ticket-main {
  display: grid;
  gap: 18px;
  min-width: 0;
}
.request-summary {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.request-summary h2 {
  margin-bottom: 0;
}
.request-summary p {
  margin: 0;
  color: var(--text);
}
.request-summary p span,
.request-detail-text > span {
  color: var(--muted);
  font-weight: 400;
}
.ticket-back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 14px;
  border: 1px solid rgba(96, 165, 250, 0.48);
  border-radius: 8px;
  background: rgba(96, 165, 250, 0.11);
  color: #93c5fd;
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
}
.ticket-back-button:hover {
  border-color: rgba(96, 165, 250, 0.78);
  background: rgba(96, 165, 250, 0.18);
}
.request-detail-text {
  display: grid;
  gap: 6px;
}
.ticket-side {
  position: sticky;
  top: 18px;
}
.ticket-side-panel {
  padding: 18px;
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  padding-right: 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(249, 115, 22, .62) rgba(13, 18, 24, .35);
}
.ticket-side-panel::-webkit-scrollbar {
  width: 7px;
}
.ticket-side-panel::-webkit-scrollbar-track {
  background: rgba(13, 18, 24, .35);
  border-radius: 999px;
}
.ticket-side-panel::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(249, 115, 22, .82), rgba(255, 177, 92, .45));
  border-radius: 999px;
}
.side-section-head {
  margin-top: 0;
}
.side-section-head h2 {
  font-size: 16px;
}
.ticket-meta-list {
  display: grid;
  gap: 10px;
}
.ticket-meta-list > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0c1219;
  padding: 10px;
}
.ticket-meta-list span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 5px;
}
.ticket-meta-list strong {
  overflow-wrap: anywhere;
}
.ticket-side-panel.form form {
  display: grid;
  gap: 12px;
}
.ticket-meta-compact {
  display: grid;
  gap: 9px;
}
.ticket-meta-compact > div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  border-bottom: 1px solid rgba(38, 50, 65, 0.72);
  padding-bottom: 9px;
}
.ticket-meta-compact > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.ticket-meta-compact span,
.sla-status-lines span,
.ticket-action-group > span {
  color: var(--text);
  font-size: 13px;
  font-weight: 400;
}
.ticket-meta-compact strong {
  color: var(--text);
  font-size: 13px;
  overflow-wrap: anywhere;
  font-weight: 400;
}
.sla-status-lines {
  display: grid;
  gap: 10px;
}
.sla-status-lines > div {
  display: grid;
  gap: 4px;
}
.sla-outcome {
  color: var(--muted);
  font-size: 15px;
}
.sla-outcome.is-achieved {
  color: #22c55e;
}
.sla-outcome.is-breached {
  color: var(--danger);
}
.sla-outcome.is-pending {
  color: #facc15;
}
.ticket-action-group {
  display: grid;
  gap: 8px;
}
.action-separator {
  height: 1px;
  background: rgba(38, 50, 65, 0.72);
  margin: 18px 0;
}
.action-subseparator {
  height: 1px;
  background: rgba(38, 50, 65, 0.45);
  margin: 16px 0 14px;
}
.action-button-grid {
  display: grid;
  gap: 8px;
}
.action-button-grid form {
  margin: 0;
}
.status-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.priority-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 4px;
}
.problem-status-grid {
  grid-template-columns: 1fr;
}
.ticket-action-button {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0c1219;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 400;
  padding: 8px 10px;
}
.full-width-button {
  width: 100%;
  justify-content: center;
}
.ticket-action-button:hover,
.ticket-action-button.is-active {
  background: rgba(249, 115, 22, 0.12);
  border-color: rgba(249, 115, 22, 0.58);
  color: var(--text);
}
.status-action.status-open {
  border-color: rgba(255, 93, 108, 0.58);
  color: #ff5d6c;
}
.status-action.status-in-progress {
  border-color: rgba(96, 165, 250, 0.58);
  color: #60a5fa;
}
.status-action.status-waiting-for-requester {
  border-color: rgba(249, 115, 22, 0.58);
  color: #fb8c2f;
}
.status-action.status-resolved {
  border-color: rgba(134, 239, 172, 0.58);
  color: #86efac;
}
.status-action.status-closed {
  border-color: rgba(34, 197, 94, 0.65);
  color: #22c55e;
}
.status-action.status-new {
  border-color: rgba(255, 177, 92, 0.58);
  color: #ffb15c;
}
.status-action.status-under-investigation {
  border-color: rgba(96, 165, 250, 0.58);
  color: #60a5fa;
}
.status-action.status-known-error {
  border-color: rgba(250, 204, 21, 0.62);
  color: #facc15;
}
.status-action.status-workaround-available {
  border-color: rgba(56, 189, 248, 0.62);
  color: #38bdf8;
}
.status-action.status-permanent-fix-planned {
  border-color: rgba(167, 139, 250, 0.62);
  color: #a78bfa;
}
.status-action.is-active {
  background: rgba(96, 165, 250, 0.11);
}
.severity-action.severity-critical {
  border-color: rgba(255, 93, 108, 0.72);
  color: #ff5d6c;
}
.severity-action.severity-high {
  border-color: rgba(249, 115, 22, 0.72);
  color: #fb8c2f;
}
.severity-action.severity-medium {
  border-color: rgba(250, 204, 21, 0.72);
  color: #facc15;
}
.severity-action.severity-low {
  border-color: rgba(96, 165, 250, 0.72);
  color: #60a5fa;
}
.severity-action.is-active {
  background: rgba(249, 115, 22, 0.12);
}
.assignee-form {
  position: relative;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: grid;
  gap: 12px;
}
.assignee-results {
  display: grid;
  gap: 4px;
  max-height: 190px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d1218;
  padding: 6px;
}
.assignee-results button {
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  display: grid;
  gap: 2px;
  padding: 8px;
  text-align: left;
}
.assignee-results button:hover {
  background: var(--panel-2);
}
.assignee-results span {
  color: var(--muted);
  font-size: 12px;
}
.sla-status {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0c1219;
  color: var(--muted);
  padding: 14px;
  font-weight: 800;
  text-align: center;
}
.sla-status.is-achieved {
  border-color: rgba(34, 197, 94, 0.58);
  color: #22c55e;
}
.sla-status.is-breached {
  border-color: rgba(255, 93, 108, 0.65);
  color: var(--danger);
}
.sla-status.is-pending {
  border-color: rgba(250, 204, 21, 0.6);
  color: #facc15;
}

@media (max-width: 1280px) {
  .admin-grid {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }
  .module-permission-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .sidebar { position: static; width: auto; min-height: auto; }
  .main { margin-left: 0; padding: 18px; }
  .stats-grid,
  .split,
  .admin-grid,
  .admin-card-wide,
  .service-command-grid,
  .chart-pair,
  .change-action-sections,
  .ticket-detail-grid,
  .ticket-workspace,
  .public-ticket-layout,
  .help-panel,
  .help-topic-grid,
  .report-command-grid,
  .report-form-grid,
  .account-controls,
  .form-row,
  .tenant-logo-upload,
  .rbac-builder { grid-template-columns: 1fr; }
  .module-permission-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .permission-tenant-head { align-items: flex-start; flex-direction: column; }
  .topbar { align-items: flex-start; flex-direction: column; }
  .ticket-side { position: static; }
  .command-center-head { align-items: flex-start; flex-direction: column; }
  .command-actions { width: 100%; }
  .command-actions .button,
  .command-actions form { width: 100%; }
  .donut-card + .donut-card {
    border-left: 0;
    border-top: 1px solid rgba(237, 244, 251, 0.35);
    padding-top: 16px;
  }
  .topbar-actions { justify-content: flex-start; width: 100%; }
  .time-range-switcher,
  .time-menu-button { width: 100%; }
  .time-menu-panel {
    width: 100%;
    min-width: 100%;
  }
  .time-custom-fields {
    width: 100%;
    flex-wrap: wrap;
  }
  .time-custom-fields input {
    flex: 1 1 140px;
  }
  .topbar-actions .tenant-switcher,
  .topbar-actions .tenant-menu-button { width: 100%; max-width: none; flex-basis: auto; }
  .tenant-menu-panel { left: 0; right: auto; width: min(320px, 100%); }
  .tenant-list { max-height: 220px; }
  .service-request-panel { padding: 22px; }
  .public-ticket-side { position: static; }
}

@media (max-width: 560px) {
  .module-permission-grid { grid-template-columns: 1fr; }
  .help-panel { grid-template-columns: 1fr; }
  .help-index { border-right: 0; border-bottom: 1px solid rgba(148, 163, 184, 0.18); }
  .help-reader-head { grid-template-columns: 1fr; }
  .report-column-grid,
  .compact-form-row { grid-template-columns: 1fr; }
  .public-request-tabs { grid-template-columns: 1fr; }
}

body.public-page {
  overflow-x: hidden;
}

.public-page .public-shell {
  align-items: start;
  padding: 18px;
}

.public-page .service-request-panel,
.public-page .public-ticket-panel {
  width: min(1220px, calc(100vw - 36px));
  padding: 22px;
}

.public-page .service-request-panel {
  max-width: 1220px;
}

.public-page .public-ticket-panel {
  max-width: 1280px;
}

.public-page .service-request-panel form[data-public-request-form] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.public-page .service-request-panel form[data-public-request-form] label {
  min-height: 72px;
  align-content: start;
  grid-template-rows: 18px 42px;
  gap: 7px;
}

.public-page .service-request-panel form[data-public-request-form] input,
.public-page .service-request-panel form[data-public-request-form] select {
  height: 42px;
}

.public-page .service-request-panel form[data-public-request-form] label:has(.rich-editor),
.public-page .service-request-panel form[data-public-request-form] label:has(textarea),
.public-page .service-request-panel form[data-public-request-form] .full-field,
.public-page .service-request-panel form[data-public-request-form] .field-tip,
.public-page .service-request-panel form[data-public-request-form] .otp-boxes,
.public-page .service-request-panel form[data-public-request-form] button {
  grid-column: 1 / -1;
}

.public-page .service-request-panel form[data-public-request-form] label:has(.rich-editor),
.public-page .service-request-panel form[data-public-request-form] label.full-field {
  min-height: auto;
}

.public-page .service-request-panel form[data-public-request-form] label:has(.rich-editor) {
  grid-template-rows: 18px auto;
}

.public-page .service-request-panel form[data-public-request-form] label:has(.rich-editor) .rich-editor {
  min-height: 176px;
}

.public-page .service-request-panel form[data-public-request-form] label:has(.rich-editor) .rich-surface {
  min-height: 126px;
  max-height: 190px;
  display: block;
}

.public-page .login-brand {
  font-size: 24px;
  margin-bottom: 8px;
}

.public-page .service-request-panel h1 {
  font-size: 20px;
  margin-bottom: 6px;
}

.public-page .service-request-panel > p {
  margin-top: 0;
  margin-bottom: 16px;
}

.public-page .public-ticket-layout {
  grid-template-columns: minmax(0, 70%) minmax(280px, 30%);
  gap: 14px;
}

.public-page .public-ticket-main {
  gap: 12px;
}

.public-page .public-ticket-main > .ticket-description {
  margin-top: 0;
}

.public-page .ticket-description,
.public-page .public-reply-form,
.public-page .conversation-item,
.public-page .service-detail-panel {
  padding: 12px;
}

.public-page .rich-toolbar select {
  min-width: 126px;
}

.public-page .rich-surface {
  min-height: 118px;
  max-height: 210px;
  overflow-y: auto;
}

.public-page .public-reply-form .rich-surface {
  min-height: 92px;
  max-height: 150px;
}

.public-page .public-conversation-scroll {
  max-height: 260px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(249, 115, 22, 0.45) rgba(15, 23, 42, 0.32);
}

.public-page .public-conversation-scroll::-webkit-scrollbar {
  width: 6px;
}

.public-page .public-conversation-scroll::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.32);
  border-radius: 999px;
}

.public-page .public-conversation-scroll::-webkit-scrollbar-thumb {
  background: rgba(249, 115, 22, 0.48);
  border-radius: 999px;
}

.public-page .public-conversation-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(249, 115, 22, 0.72);
}

.public-page .otp-boxes {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 16px 0;
}

.public-page .otp-box {
  width: 54px;
  flex: 0 0 54px;
}

.public-page .public-ticket-panel .form + .form {
  margin-top: 16px;
}

.resolution-panel {
  border: 1px solid rgba(249, 115, 22, 0.34);
  border-radius: 8px;
  background: rgba(249, 115, 22, 0.08);
  padding: 14px;
  display: grid;
  gap: 14px;
}
.resolution-panel h3,
.resolution-panel p {
  margin: 0;
}
.resolution-form {
  display: grid;
  gap: 12px;
}
.satisfaction-stars {
  display: grid;
  grid-template-columns: repeat(5, minmax(86px, 1fr));
  gap: 8px;
}
.satisfaction-option {
  position: relative;
  min-height: 88px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0c1219;
  padding: 10px 7px;
  display: grid;
  place-items: center;
  gap: 5px;
  text-align: center;
  cursor: pointer;
  color: var(--text);
}
.satisfaction-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.satisfaction-option .star {
  font-size: 25px;
  line-height: 1;
}
.satisfaction-option span:last-child {
  font-size: 11px;
  line-height: 1.2;
}
.satisfaction-option.rating-1 .star { color: #ef4444; }
.satisfaction-option.rating-2 .star { color: #fb8c2f; }
.satisfaction-option.rating-3 .star { color: #facc15; }
.satisfaction-option.rating-4 .star { color: #86efac; }
.satisfaction-option.rating-5 .star { color: #22c55e; }
.satisfaction-option:has(input:checked) {
  border-color: currentColor;
  background: rgba(249, 115, 22, 0.14);
  box-shadow: inset 0 0 0 1px currentColor;
}
.reopen-form {
  border-top: 1px solid rgba(38, 50, 65, 0.72);
  padding-top: 12px;
}

@media (max-width: 920px) {
  .public-page .service-request-panel form[data-public-request-form],
  .public-page .public-ticket-layout {
    grid-template-columns: 1fr;
  }
  .satisfaction-stars {
    grid-template-columns: 1fr;
  }
}

/* Command Center dashboard */
.display-body {
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(circle at 30% 0%, rgba(14, 165, 233, 0.12), transparent 34%), #050a12;
  color: var(--text);
}
.display-shell { min-height: 100vh; padding: 18px; }
.command-dashboard { display: flex; flex-direction: column; gap: 14px; }
.command-dashboard.is-display { min-height: calc(100vh - 36px); }
.command-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 48px;
}
.command-title { text-transform: uppercase; }
.command-title span {
  display: block;
  color: #f8fbff;
  font-size: clamp(20px, 1.7vw, 28px);
  font-weight: 600;
  letter-spacing: 0;
}
.command-title small { display: block; margin-top: 4px; color: #9db6d8; font-size: 12px; text-transform: none; }
.command-live { display: flex; justify-content: flex-end; align-items: center; gap: 12px; color: #d7e8ff; }
.command-clock { font-size: 22px; font-weight: 700; }
.command-refresh { color: #7ee787; font-size: 12px; text-transform: uppercase; }
.command-refresh::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border: 2px solid #56d364;
  border-top-color: transparent;
  border-radius: 50%;
  animation: commandSpin 1.2s linear infinite;
}
@keyframes commandSpin { to { transform: rotate(360deg); } }
.command-kpi-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; }
.command-kpi,
.command-panel {
  border: 1px solid rgba(74, 103, 145, 0.34);
  background: linear-gradient(180deg, rgba(18, 31, 50, 0.94), rgba(9, 16, 30, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 10px 24px rgba(0, 0, 0, 0.2);
}
.command-kpi {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 100px;
  padding: 12px;
}
.command-kpi div {
  min-width: 0;
  align-self: center;
  text-align: center;
}
.command-kpi span {
  display: block;
  color: #b8d6ff;
  font-size: 10.8px;
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.command-kpi strong {
  display: block;
  margin-top: 6px;
  color: #6ea8ff;
  font-size: clamp(31px, 2.25vw, 42px);
  line-height: .96;
  text-align: center;
  background: linear-gradient(90deg, #6ea8ff, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.command-kpi.tone-orange strong,
.command-kpi.tone-orange span,
.command-kpi.tone-green strong,
.command-kpi.tone-green span,
.command-kpi.tone-purple strong,
.command-kpi.tone-purple span { color: inherit; }
.dash-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.16);
  box-shadow: 0 0 22px rgba(37, 99, 235, 0.22);
  align-self: center;
  justify-self: center;
}
.dash-icon svg { display: block; width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tone-orange .dash-icon { color: #ff941f; background: rgba(255, 138, 34, 0.14); box-shadow: 0 0 22px rgba(255, 138, 34, 0.18); }
.tone-green .dash-icon { color: #48d98a; background: rgba(34, 197, 94, 0.14); box-shadow: 0 0 22px rgba(34, 197, 94, 0.18); }
.tone-purple .dash-icon { color: #b283ff; background: rgba(139, 92, 246, 0.14); box-shadow: 0 0 22px rgba(139, 92, 246, 0.18); }
.trend { display: block; margin-top: 8px; font-size: 11px; font-weight: 400; text-transform: none; }
.trend-up,
.trend-down,
.trend-flat { color: #9db6d8; }
.command-split-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.command-card-row { display: grid; grid-template-columns: 1.35fr repeat(5, minmax(0, 1fr)); gap: 14px; }
.command-panel { min-width: 0; padding: 14px; }
.command-card-row .command-panel {
  min-height: 268px;
}
.command-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.command-panel-head h2 { margin: 0; color: #f4f8ff; font-size: 15px; font-weight: 700; text-transform: uppercase; }
.command-panel-head span { color: #6fb7ff; font-size: 12px; }
.command-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.command-table th { color: #95aac8; font-size: 10px; text-align: left; text-transform: uppercase; }
.command-table td, .command-table th { padding: 8px; border-bottom: 1px solid rgba(74, 103, 145, 0.2); }
.command-table td { color: #dce9ff; }
.command-table .all-row td { color: #56a8ff; font-weight: 700; border-top: 1px solid rgba(74, 103, 145, 0.42); }
.amber { color: #ffa31a !important; }
.green { color: #76e06e !important; }
.red { color: #ff4d63 !important; }
.sla-bar { display: inline-block; width: 48px; height: 7px; margin-right: 7px; overflow: hidden; vertical-align: middle; background: rgba(148, 163, 184, 0.22); }
.sla-bar i { display: block; height: 100%; background: linear-gradient(90deg, #f59e0b, #4ade80); }
.security-layout { display: grid; grid-template-columns: minmax(210px, 0.9fr) minmax(220px, 1fr); gap: 14px; align-items: center; }
.funnel-stack { display: grid; gap: 10px; }
.funnel-stack div { position: relative; padding: 11px 12px; border-left: 3px solid #2aa8ff; background: rgba(8, 18, 34, 0.86); }
.funnel-stack div:nth-child(2) { border-left-color: #ff941f; margin-left: 18px; }
.funnel-stack div:nth-child(3) { border-left-color: #ff4d63; margin-left: 36px; }
.funnel-stack span,
.severity-list span,
.incident-severity span,
.asset-access-layout span,
.dual-metric span,
.compact-two span { display: block; color: #9db6d8; font-size: 11px; }
.funnel-stack strong { display: inline-block; margin-top: 4px; color: #f4f8ff; font-size: 26px; }
.funnel-stack em { float: right; margin-top: 12px; color: #6fb7ff; font-style: normal; font-size: 12px; }
.severity-overview { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; align-items: center; }
.donut, .mini-ring, .ciso-score-ring {
  --ring: conic-gradient(#1d2a3c 0 360deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 132px;
  height: 132px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--ring);
  position: relative;
}
.donut::after, .mini-ring::after, .ciso-score-ring::after { content: ""; position: absolute; inset: 28px; border-radius: 50%; background: #08111f; }
.donut span, .donut strong, .mini-ring span, .mini-ring strong, .ciso-score-ring span, .ciso-score-ring strong { position: relative; z-index: 1; text-align: center; }
.donut span, .mini-ring span, .ciso-score-ring span { color: #8aa2c3; font-size: 9px; line-height: 1; text-transform: uppercase; }
.donut strong, .mini-ring strong, .ciso-score-ring strong { display: block; color: #f4f8ff; font-size: 24px; line-height: 1; }
.severity-list { display: grid; gap: 8px; }
.severity-list span { display: grid; grid-template-columns: 12px 1fr auto auto; gap: 8px; align-items: center; }
.severity-list i { width: 8px; height: 8px; border-radius: 50%; }
.sev-critical { color: #ff4d63 !important; }
.sev-high { color: #ff8a22 !important; }
.sev-medium { color: #facc15 !important; }
.sev-low { color: #60a5fa !important; }
.severity-list .sev-critical i { background: #ff4d63; }
.severity-list .sev-high i { background: #ff8a22; }
.severity-list .sev-medium i { background: #8b5cf6; }
.severity-list .sev-low i { background: #22c55e; }
.incident-grid { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 12px; }
.incident-uniform { display: grid; gap: 12px; }
.incident-severity {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  width: 100%;
}
.incident-severity span, .incident-list div { padding: 9px; background: rgba(7, 15, 28, 0.74); border-left: 2px solid currentColor; }
.incident-severity span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #b8d6ff;
  font-size: 12px;
  font-weight: 700;
}
.incident-severity strong { color: #f4f8ff; font-size: 13px; font-weight: 800; }
.incident-list { display: grid; gap: 7px; }
.incident-list div { display: grid; grid-template-columns: minmax(0, 1fr) 92px 52px; gap: 8px; align-items: center; font-size: 12px; }
.incident-list strong, .incident-list span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.incident-list strong { color: #f7fbff; }
.incident-list span { color: #8aa2c3; }
.incident-list em { font-style: normal; text-align: right; }
.asset-access-layout, .dual-metric, .compact-two, .metric-ring-card { display: grid; gap: 12px; }
.asset-access-layout { grid-template-columns: 112px 1fr 1fr; align-items: center; }
.mini-ring { --ring: conic-gradient(#2dd4bf 0 var(--score), #17263d var(--score) 100%); width: 122px; height: 122px; }
.mini-ring::after { inset: 25px; }
.mini-ring strong { font-size: 22px; }
.asset-access-layout div:not(.mini-ring), .dual-metric div, .compact-two div, .ring-side-stat { padding: 10px; background: rgba(7, 15, 28, 0.7); }
.asset-access-layout strong, .dual-metric strong, .compact-two strong, .ring-side-stat strong { display: block; margin-top: 5px; color: #f4f8ff; font-size: 28px; }
.asset-access-layout small, .dual-metric small, .compact-two small, .ring-side-stat small { display: block; margin-top: 5px; color: #8aa2c3; font-size: 11px; }
.metric-ring-card {
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  text-align: center;
}
.ring-side-stat {
  width: 100%;
  max-width: 170px;
  border-top: 1px solid rgba(74, 103, 145, 0.22);
  background: transparent !important;
}
.incident-overview-stat {
  max-width: none;
}
.incident-overview-stat strong {
  background: linear-gradient(90deg, #6ea8ff, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.access-ring { --ring: conic-gradient(#60a5fa 0 var(--score), #17263d var(--score) 100%); }
.training-ring { --ring: conic-gradient(#a78bfa 0 var(--score), #17263d var(--score) 100%); }
.ciso-score-ring { --ring: conic-gradient(#22c55e 0 var(--score), #ff8a22 var(--score) 100%); width: 122px; height: 122px; }
.ciso-breakdown { display: grid; gap: 6px; margin-top: 12px; }
.ciso-breakdown {
  width: 100%;
  max-width: 190px;
  border-top: 1px solid rgba(74, 103, 145, 0.22);
  padding-top: 10px;
}
.ciso-breakdown span { display: flex; justify-content: space-between; gap: 10px; color: #8aa2c3; font-size: 11px; }
.dual-metric { grid-template-columns: 1fr 1fr; }
.compact-two { grid-template-columns: 1fr; }
.compact-two.centered div { text-align: center; }
.latest-events { padding-bottom: 12px; }
.event-ribbon { display: grid; grid-template-columns: repeat(8, minmax(170px, 1fr)); gap: 10px; overflow: hidden; }
.event-card { min-height: 86px; padding: 10px; border-left: 3px solid currentColor; background: rgba(7, 15, 28, 0.82); }
.event-card span { color: #b6c9e7; font-size: 11px; }
.event-card strong { float: right; padding: 2px 7px; background: rgba(255, 255, 255, 0.06); font-size: 10px; text-transform: uppercase; }
.event-card p { clear: both; margin: 10px 0 6px; color: #f4f8ff; font-size: 13px; line-height: 1.3; }
.event-card small { color: #8aa2c3; font-size: 11px; }
.event-card.is-attention { animation: attentionGlow 2.6s ease-in-out infinite; }
@keyframes attentionGlow {
  0%, 100% { border-left-color: currentColor; }
  50% { border-left-color: #f8fbff; }
}
body.presentation-mode .command-dashboard {
  min-height: calc(100vh - 32px);
}
body.presentation-mode .command-kpi {
  min-height: 96px;
}
.command-empty, .mini-empty { display: grid; min-height: 120px; place-items: center; color: #8aa2c3; font-size: 13px; }
.mini-empty { min-height: 42px; }
@media (max-width: 1500px) {
  .command-kpi-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .command-card-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .command-hero,
  .command-split-row,
  .security-layout,
  .severity-overview,
  .incident-grid,
  .asset-access-layout,
  .dual-metric { grid-template-columns: 1fr; }
  .command-kpi-grid,
  .command-card-row { grid-template-columns: 1fr; }
  .event-ribbon { grid-template-columns: 1fr; overflow: visible; }
}
