html {
  zoom: 0.80;
  overflow-x: hidden;
}

:root {
  /* Typography System */
  --color-navy: #1F4D8F;
  --color-text-primary: #000000;
  --color-text-secondary: #475569;
  --font-size-base: 0.9375rem; /* 15px - standard body text */
  --font-size-title: 1.05 rem; /* 18px - titles/headers */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 600;
}

body { 
  font-family: 'Inter', Arial, sans-serif; 
  margin: 0; 
  background: #f8fafc; 
  color: var(--color-text-primary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
}
.page-root { min-height: 100vh; display:flex; flex-direction:column; }
.site-header {
  background: #fff;
  border-bottom: 1.5px solid #e3e9f6;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0rem 2.2rem 0rem 2.2rem;
}
.branding { display: flex; align-items: flex-end; }
.brand-link { display: flex; align-items: flex-end; text-decoration: none; }
.brand-logo {
  height: 80px;
  width: 80px;
  margin-right: 1.2rem;
  margin-top: 0.5rem;
  object-fit: contain;
}
.brand-meta { display: flex; flex-direction: column; }
.brand-url {
  font-size: 0.98em;
  color: #64748b;
  opacity: 0.85;
  margin-bottom: 2px;
}
.brand-title {
  font-size: 1.17em;
  color: #1F4D8F;
  font-weight: 900;
  letter-spacing: .01em;
}
.site-header-right { display: flex; gap: 1.5rem; align-items: center; }
.site-main { flex: 1 1 auto; padding: 0; }

/* Flask flash messages (shown after redirects, e.g. reload sample data) */
.flash-messages {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.25rem 0;
  box-sizing: border-box;
}
@media (max-width: 1300px) {
  .flash-messages { max-width: 98vw; }
}
.flash-messages .alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}
.flash-messages .alert:last-child { margin-bottom: 0.25rem; }
.alert-success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.alert-error {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
.alert-warning {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}
.alert-info, .alert-message {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.site-footer {
  background: #fff;
  color: #475569;
  font-size: 0.98em;
  padding: 0.6rem 2.2rem;
  border-top: 1px solid #e3e9f6;
  text-align: right;
}

/* Dashboard styles (matches previous CSS for dashboard) */
.section { margin-bottom: 0.5rem; }
.section-title { 
  font-size: var(--font-size-title);
  color: var(--color-navy); 
  font-weight: var(--font-weight-bold); 
  margin-bottom: 0.4em; 
}
.section-divider { border: none; border-top: 1px solid #e5e8ec; margin: 0.7rem 0; }
.kpis { display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1rem; }
.kpi { 
  background: #fff; 
  border: 1px solid #e3e9f6; 
  border-radius: 12px; 
  padding: 1rem; 
  box-shadow: 0 2px 8px rgba(31,77,143,0.09);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@keyframes flashRed {
  0%, 100% { 
    background: #fafbfc;
    border-color: #e8ecf1;
  }
  50% { 
    background: #fee2e2;
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
  }
}

.kpi.flash-critical {
  animation: flashRed 1.5s ease-in-out infinite;
}
.kpi:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(31,77,143,0.15);
}
.kpi .label { color: #475569; font-size: .85rem; }
.kpi .value { font-size: 1.5rem; font-weight: 900; color: #1F4D8F; }
.help-link { color:#64748b; text-decoration:underline; font-size:.97em; cursor:pointer;}
.help-link:hover { color:#1F4D8F; }
.modal-bg { display: none; position:fixed; z-index:9999; left:0;top:0;width:100vw;height:100vh; background:rgba(31,77,143,.12); align-items:center; justify-content:center;}
.modal-bg.open { display:flex; }
.modal-card { background: #fff; border-radius: 14px; max-width: 510px; width:95vw; box-shadow: 0 8px 38px rgba(31,77,143,0.18); padding:2.2rem 1.5rem; position:relative; }
.modal-close { position:absolute; right:1rem; top:1rem; background:transparent; border:none; font-size:1.6rem; color:#999; cursor:pointer;}
.modal-title { font-size:1.18rem; font-weight:900; color:#1F4D8F; margin-bottom:.5rem;}
.modal-desc { font-size:1.01em; color:#475569; margin-bottom:.7rem; }

.integration-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  align-items: flex-start;
}
.integration-controls, .integration-list {
  flex: 1 1 260px;
  min-width: 220px;
}
.integration-list { margin-top: 0.2em; }
.settings-list {
  list-style: disc inside;
  padding-left: 1em;
}
.settings-list li {
  margin-bottom: .3em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.5em;
  min-width: 220px;
  max-width: 520px;
  width: 100%;
}
.form-label {
  width: 130px;
  font-size: 0.97em;
  font-weight: 600;
  color: #3c4c5c;
  margin-right: 8px;
  flex-shrink: 0;
}
.form-input,
select.form-input,
input[type="url"].form-input,
.file-name {
  height: 38px;
  font-size: 0.99em;
  padding: 0 0.9em;
  border-radius: 7px;
  background: #f7fafc;
  border: 1px solid #e3e9f6;
  color: #1F4D8F;
  box-sizing: border-box;
  transition: border-color 0.15s, background 0.15s;
}
.form-input:focus,
select.form-input:focus,
input[type="url"].form-input:focus {
  border-color: #64748b;
  background: #f8fafc;
}
.file-name {
  background: #fff;
  border: 1px solid #e3e9f6;
  border-left: none;
  border-radius: 0 7px 7px 0;
  color: #5b7da6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 80px;
  max-width: 180px;
  display: inline-flex;
  align-items: center;
}

.btn,
.btn-primary,
.btn-secondary,
.file-upload-label {
  height: 38px;
  min-width: 110px;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border: 1px solid #6C7B9F;
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 0;
}
.btn {
  background: #E6ECF7;
  color: #4A608A;
  box-shadow: 0 2px 8px rgba(2,8,23,.04);
}
.btn-primary {
  background: #E6ECF7;
  color: #4A608A;
  letter-spacing: .02em;
  box-shadow: 0 2px 8px rgba(2,8,23,.04);
}
.btn-primary:hover {
  background: #D1D9F0;
  color: #4A608A;
  box-shadow: 0 2px 8px rgba(2,8,23,.04);
}
.btn-secondary {
  background: #ffffff;
  color: #4A608A;
  border: 1px solid #6C7B9F;
}
.btn-secondary:hover {
  background: #f8fafc;
  color: #4A608A;
  border-color: #6C7B9F;
}
.btn-icon {
  font-size: 1.04em;
  margin-right: .19em;
  opacity: .83;
}
.file-upload-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  gap: 0;
}
.file-upload-input {
  opacity: 0;
  width: 1px;
  height: 1px;
  position: absolute;
  z-index: -1;
}
.file-upload-label {
  background: #f8fafc;
  color: #1F4D8F;
  border: 1px solid #64748b;
  border-radius: 7px 0 0 7px;
  min-width: 110px;
  transition:.15s background,.15s color;
}
.file-upload-label:hover {
  background: #e3e9f6;
  color: #64748b;
  border-color: #1F4D8F;
}

/* Badges */
.badge {
  display: inline-block;
  border-radius: 7px;
  font-size: .99em;
  padding: 2px 10px;
  font-weight: 700;
  vertical-align: middle;
}
.badge-status {
  margin-right: 0.6em;
}
.badge-connected { background: #d1fae5; color: #15803d; border: 1px solid #bbf7d0;}
.badge-pending { background: #fef9c3; color: #a16207; border: 1px solid #fde68a;}
.badge-error { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca;}
.badge-okta { background: #e0f2fe; color: #1d4ed8; border: 1px solid #90cdf4;}
.badge-webhook { background: #fef9c3; color: #a16207; border: 1px solid #fde68a;}
.badge-entra { background: #ede9fe; color: #6d28d9; border: 1px solid #c7d2fe;}

/* Raw log preview */
.raw-log {
  font-family: "JetBrains Mono", "Consolas", monospace;
  font-size: .97em;
  background: #f7fafc;
  color: #64748b;
  border-radius: 6px;
  padding: 2px 7px;
  max-width: 180px;
  overflow-x: auto;
  display: inline-block;
}

/* Anomaly table improvements */
.anomaly-table { width:100%; margin-top:.3rem; border-collapse:collapse; }
.anomaly-table th, .anomaly-table td {
  text-align:center;
  padding:.4em .2em;
  border-bottom: 1px solid #e3e9f6;
}
.anomaly-table th { color:#1F4D8F; font-weight:900;}
.anomaly-table td.sev-high { color:#a16207;font-weight:800;}
.anomaly-table td.sev-medium { color:#eab308;font-weight:800;}
.anomaly-table td.sev-critical { color:#b91c1c;font-weight:800;}
.anomaly-table tr:hover { background: #f1f5f9; }
.settings-section { margin-bottom:1.1em; }
.settings-section strong { font-size:1.07em; }
.settings-table, .settings-table th, .settings-table td {
  border: none;
  border-collapse: collapse;
  font-size:1em;
  text-align: center;
  vertical-align: middle;
  padding: .4em .2em;
}
.settings-table th { color:#1F4D8F; font-weight:900; background:#f8fafc;}
.settings-table td { background: #fff;}
.settings-table tr { border-bottom: 1px solid #e3e9f6;}
.settings-table .btn, .settings-section .btn {
  margin: 0 .13em !important;
  min-width: 90px;
  height: 34px;
  font-size: .97em;
}
.settings-section ul, .settings-list {
  margin: .5em 0 0 0;
  padding: 0 0 0 1em;
  list-style: disc inside;
}
.settings-section li, .settings-list li {
  margin-bottom: .3em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.settings-section .integration-status, .integration-status {
  display: inline-block;
  font-size: .98em;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 7px;
}
.integration-ok { background: #d1fae5; color: #15803d;}
.integration-pending { background: #fef9c3; color: #a16207;}
.integration-error { background: #fee2e2; color: #b91c1c;}
@media (max-width: 900px)  { .site-main { padding: 1rem 1rem; } .site-header, .site-footer { padding: 0.7rem 1rem; } }
@media (max-width: 900px)  { .root { grid-template-columns: 54px 1fr; } .sidebar .logo{display:none} }
@media (max-width: 640px)  { 
  .kpis { grid-template-columns: 1fr; }
  .integration-flex { flex-direction:column; gap:0.7rem; }
}



.dashboard-container {
  max-width: 1024px;
  margin: 2.5rem auto 2.5rem auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(31,77,143,0.09), 0 2px 8px rgba(31,77,143,0.04);
  padding: 2.5rem 2rem 2rem 2rem;
  border: 1.5px solid #e3e9f6;
}
@media (max-width: 1100px) {
  .dashboard-container { margin: 1.2rem; }
}
@media (max-width: 700px) {
  .dashboard-container {
    padding: 1.1rem 0.5rem;
    max-width: 100vw;
    margin: 0.7rem;
    border-radius: 10px;
  }
}



.delimited-container {
  max-width: 1200px;
  margin: 3rem auto 3rem auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(31,77,143,0.09), 0 2px 8px rgba(31,77,143,0.04);
  padding: 2.5rem 2.5rem 2rem 2.5rem;
  border: 1.5px solid #e3e9f6;
  position: relative;
  min-height: 600px;
}

@media (max-width: 1300px) {
  .delimited-container { max-width: 98vw; }
}

@media (max-width: 700px) {
  .delimited-container {
    padding: 1rem 1rem;
    border-radius: 10px;
  }
}

.container-logo-box {
  position: absolute !important;
  top: 2rem !important;
  right: 2rem !important;
  z-index: 2 !important;
}
.container-logo-box img {
  height: 100px !important;
  width: 100px !important;
  object-fit: contain !important;
  /* Remove background, border-radius, and shadow for clean look */
  background: none !important;
  border-radius: 0 !important;
  /* Original logo - no filter needed */
  box-shadow: none !important;
}

/* Responsive logo positioning */
@media (max-width: 768px) {
  .container-logo-box {
    right: 0.5rem;
  }
  .container-logo-box img {
    height: 80px;
    width: 80px;
  }
  .tabs-nav {
    width: 100%; /* Take full width on mobile too */
    max-width: 100%;
  }
}

.tabs-nav {
  display: flex;
  gap: 0;
  border-bottom: none; /* Removed - border is now on parent container */
  margin-bottom: 0;
  margin-top: 0;
  width: auto; /* Auto width for right alignment */
  max-width: none;
}

/* Threat Detection Cards */
.threat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.threat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(2,8,23,.04);
  transition: all 0.2s ease;
}

.threat-card:hover {
  box-shadow: 0 4px 16px rgba(2,8,23,.08);
  transform: translateY(-2px);
}

.threat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.threat-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1F4D8F;
  margin: 0;
}

.threat-status {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  background: #E6ECF7;
  color: #4A608A;
  border: 1px solid #6C7B9F;
}

.threat-description {
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.threat-metrics {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.metric-label {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
}

.metric-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1F4D8F;
}

.threat-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.threat-actions .btn-sm {
  flex: 1;
  text-align: center;
}

/* Risk Level Colors */
.risk-low {
  color: #10b981 !important;
}

.risk-medium {
  color: #f59e0b !important;
}

.risk-high {
  color: #ef4444 !important;
}

/* Alert Status */
.threat-status.alert {
  background: #fef2f2 !important;
  color: #dc2626 !important;
  border-color: #fca5a5 !important;
}

/* Threat Details Modal */
.threat-details-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.threat-details-modal > div {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
.tab-link {
  appearance: none;
  border: none;
  background: none;
  font: inherit;
  font-size: 1.2em;
  font-weight: 700;
  color: #64748b;
  padding: 1rem 2.2rem 1rem 2.2rem;
  cursor: pointer;
  border-bottom: none;
  transition: color .16s, background .13s;
  margin-right: 1px;
  position: relative;
}
.tab-link.active, .tab-link[aria-current="page"] {
  color: #1F4D8F !important;
  background: rgba(245, 247, 251, 0.6) !important;
  z-index: 1;
}
.tab-link:hover:not(.active) {
  background: #f8fafc;
  color: #184A7A;
}

.dashboard-graphs {
  margin: 1.3rem 0 1.8rem 0;
  background: #f8fafc;
  border-radius: 10px;
  padding: 1.1rem 1rem 0.6rem 1rem;
  box-shadow: 0 2px 8px rgba(31,77,143,0.04);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.dashboard-graphs canvas {
  max-width: 100%;
  height: 120px !important;
}


/* Delimited card look for dashboard and (optionally) index */
.dashboard-container, .lp-delimited {
  max-width: 1180px;
  margin: 3rem auto 3rem auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(31,77,143,0.09), 0 2px 8px rgba(31,77,143,0.04);
  padding: 2.2rem 2.5rem 2rem 2.5rem;
  border: 1.5px solid #e3e9f6;
  position: relative;
}
@media (max-width: 1200px) {
  .dashboard-container, .lp-delimited { max-width: 98vw; }
}
@media (max-width: 700px) {
  .dashboard-container, .lp-delimited {
    padding: 1rem 0.5rem;
    border-radius: 10px;
  }
}

/* Logo in top right of card/area */
.card-logo-box {
  position: absolute;
  top: 1.3rem;
  right: 2rem;
  z-index: 10;
}
.card-logo-box img {
  height: 100px;
  width: 100px;
  object-fit: contain;
  background: none;
  border-radius: 0;
  box-shadow: none;
}

/* Navigation-style tabs for dashboard */
.dashboard-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e3e9f6;
  margin-bottom: 2.2rem;
  margin-top: 1.3rem;
}
.dashboard-tab {
  appearance: none;
  border: none;
  background: none;
  font: inherit;
  font-size: 1.08em;
  font-weight: 700;
  color: #64748b;
  padding: 1rem 2.2rem 1rem 2.2rem;
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
  transition: color .16s, border-bottom .16s, background .13s;
  margin-right: 1px;
}
.dashboard-tab.active, .dashboard-tab[aria-current="page"] {
  color: #1F4D8F;
  border-bottom: 2.5px solid #1F4D8F;
  background: #f5f7fb;
  z-index: 1;
}
.dashboard-tab:hover:not(.active) {
  background: #f8fafc;
  color: #184A7A;
}

/* Settings-Inspired Module Card Design for Analysis Tab */
.analytics-card {
  background: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.06);
  padding: 1.5rem;
  transition: box-shadow 0.2s ease;
  margin-bottom: 1.5rem;
}

.analytics-card:hover {
  box-shadow: 0 4px 12px rgba(44, 62, 80, 0.12);
}

.analytics-card h3 {
  color: var(--color-navy);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-title);
  margin: 0 0 0.75rem 0;
}

.analytics-card p {
  color: #6C757D;
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 1.25rem;
}

.analytics-card .card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.analytics-card .card-title {
  color: var(--color-navy);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-title);
  margin: 0;
}

.analytics-card .card-description {
  color: var(--color-text-primary);
  font-size: var(--font-size-base);
  line-height: 1.4;
  margin-bottom: 1.25rem;
}

.analytics-card .card-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1rem;
}

.analytics-card .btn-sm,
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  height: 38px;
  min-width: 110px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.analytics-card .btn-configure {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 6px;
  border: 1px solid #6C7B9F;
  background: #E6ECF7;
  color: #4A608A;
  transition: all 0.2s ease;
  cursor: pointer;
}

.analytics-card .btn-configure:hover {
  background: #D1D9F0;
  color: #4A608A;
  border-color: #6C7B9F;
}

.analytics-card .btn-disable {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 6px;
  border: 1px solid #6C7B9F;
  background: #ffffff;
  color: #4A608A;
  transition: all 0.2s ease;
  cursor: pointer;
}

.analytics-card .btn-disable:hover {
  background: #f8fafc;
  color: #4A608A;
  border-color: #6C7B9F;
}

.analytics-card .status-badge {
  background: #D4EDDA;
  color: #28A745;
  border: 1px solid #D4EDDA;
  border-radius: 6px;
  padding: 0.25rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Operations insight (ex–Advanced Analytics) — compact panel */
.advanced-analytics {
  margin-top: 1.35rem;
  padding: 1rem 1.05rem 1.1rem;
  background: linear-gradient(165deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}
.advanced-analytics .aa-head {
  margin-bottom: 0.85rem;
}
.advanced-analytics .aa-head .section-title {
  margin-bottom: 0.35rem;
}
.advanced-analytics .aa-lede {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.42;
  color: #64748b;
  max-width: 50rem;
}
.advanced-analytics .aa-kpi-grid {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}
.advanced-analytics .aa-kpi-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.advanced-analytics .aa-kpi-grid--exec {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 960px) {
  .advanced-analytics .aa-kpi-grid--exec {
    grid-template-columns: 1fr;
  }
}
.advanced-analytics .aa-mini-card {
  padding: 0.85rem 0.95rem;
  border-radius: 9px;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  flex-wrap: wrap;
  min-height: 0;
}
.advanced-analytics .aa-mini-main {
  flex: 1 1 12rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.advanced-analytics .aa-mini-kicker {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.advanced-analytics .aa-mini-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 8px;
  flex-shrink: 0;
}
.advanced-analytics .aa-mini-icon .feather,
.advanced-analytics .aa-mini-icon svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
}
.advanced-analytics .aa-mini-card--priority .aa-mini-icon {
  background: #fee2e2;
  color: #b91c1c;
}
.advanced-analytics .aa-mini-card--aging .aa-mini-icon {
  background: #fffbeb;
  color: #b45309;
}
.advanced-analytics .aa-mini-card--pulse .aa-mini-icon {
  background: #eff6ff;
  color: #1e40af;
}
.advanced-analytics .aa-mini-card--priority {
  border-left: 4px solid #b91c1c;
  background: linear-gradient(180deg, #fffefb 0%, #fff 40%);
}
.advanced-analytics .aa-mini-card--aging {
  border-left: 4px solid #d97706;
}
.advanced-analytics .aa-mini-card--pulse {
  border-left: 4px solid #4a608a;
}
.advanced-analytics .aa-mini-pill {
  align-self: flex-start;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #991b1b;
  background: #fee2e2;
  border: 1px solid #fecaca;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
}
.advanced-analytics .aa-mini-pill--amber {
  color: #92400e;
  background: #fffbeb;
  border-color: #fde68a;
}
.advanced-analytics .aa-mini-pill--muted {
  color: #475569;
  background: #f1f5f9;
  border-color: #e2e8f0;
}
.advanced-analytics .aa-mini-title {
  margin: 0.1rem 0 0 0;
  font-size: 0.9rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.advanced-analytics .aa-mini-lead {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #334155;
}
.advanced-analytics .aa-mini-foot {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.35;
  color: #94a3b8;
}
.advanced-analytics .aa-mini-muted {
  color: #94a3b8;
  font-weight: 500;
}
.advanced-analytics .aa-mini-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}
.advanced-analytics .aa-mini-value {
  font-size: 1.55rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
  line-height: 1.15;
}
.advanced-analytics .aa-mini-card--pulse .aa-mini-value {
  font-size: 1.45rem;
}
.advanced-analytics .aa-mini-vs {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
}
.advanced-analytics .aa-mini-desc {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.42;
  color: #64748b;
  flex: 1;
}
.advanced-analytics .aa-mini-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0;
  padding-bottom: 0.05rem;
}
.advanced-analytics .aa-mini-btn {
  font-size: 0.75rem !important;
  padding: 0.35rem 0.65rem !important;
  min-height: 30px;
}
@media (max-width: 720px) {
  .advanced-analytics .aa-kpi-grid--two {
    grid-template-columns: 1fr;
  }
}
.advanced-analytics .aa-kpi-grid .analytics-card {
  margin-bottom: 0;
  padding: 0.75rem 0.8rem;
  border-radius: 8px;
  border-color: #e2e8f0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.advanced-analytics .aa-kpi-grid .analytics-card .card-header {
  margin-bottom: 0.2rem;
}
.advanced-analytics .aa-kpi-grid .analytics-card .card-title {
  font-size: 0.8125rem;
}
.advanced-analytics .aa-kpi-grid .analytics-card .card-description {
  font-size: 0.72rem;
  color: #64748b;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}
.advanced-analytics .aa-kpi-body {
  margin-top: auto;
}
.advanced-analytics .ops-sev-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
}
.advanced-analytics .ops-sev {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.32rem 0.45rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  border: 1px solid #e8edf3;
  background: #fff;
}
.advanced-analytics .ops-sev span {
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.62rem;
}
.advanced-analytics .ops-sev strong {
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
}
.advanced-analytics .ops-sev--critical strong {
  color: #b91c1c;
}
.advanced-analytics .ops-sev--high strong {
  color: #c2410c;
}
.advanced-analytics .ops-sev--medium strong {
  color: #b45309;
}
.advanced-analytics .ops-sev--low strong {
  color: #4a608a;
}
.advanced-analytics .ops-volume {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.advanced-analytics .ops-vol-block {
  padding: 0.4rem 0.45rem;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #e8edf3;
}
.advanced-analytics .ops-vol-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
  margin-bottom: 0.2rem;
}
.advanced-analytics .ops-vol-num {
  font-size: 1.05rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #1e3a5f;
  line-height: 1.1;
}
.advanced-analytics .ops-vol-sub {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.65rem;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
}
.advanced-analytics .aa-split {
  display: grid;
  grid-template-columns: minmax(240px, 0.95fr) minmax(0, 2.05fr);
  gap: 1rem;
  align-items: stretch;
}
@media (max-width: 960px) {
  .advanced-analytics .aa-split {
    grid-template-columns: 1fr;
  }
}
.advanced-analytics .aa-countries {
  margin-bottom: 0;
  padding: 0.75rem 0.8rem;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  min-height: 9rem;
}
.advanced-analytics .aa-countries .card-description {
  margin-bottom: 0.65rem;
}
.advanced-analytics #topCountriesList {
  flex: 1;
  min-height: 0;
  max-height: 240px;
  overflow-y: auto;
  margin: 0 -0.15rem;
  padding: 0 0.15rem;
  scrollbar-gutter: stable;
}
.advanced-analytics .aa-countries-placeholder {
  text-align: center;
  padding: 2rem 1rem;
  color: #94a3b8;
  font-size: 0.875rem;
}
.advanced-analytics .aa-geo-card {
  margin-bottom: 0;
  padding: 0.75rem 0.85rem;
  border-radius: 8px;
  cursor: default;
}
.advanced-analytics .aa-geo-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.advanced-analytics .aa-geo-map {
  width: 100%;
  height: min(280px, 48vh);
  min-height: 200px;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}
.advanced-analytics .aa-geo-card .card-actions {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
}
.advanced-analytics .aa-geo-stat {
  font-size: 0.75rem;
  color: #64748b;
}
.advanced-analytics .aa-geo-stat strong {
  color: #0f172a;
  font-weight: 700;
}
.aa-country-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.35rem;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s ease;
  border-bottom: 1px solid #f1f5f9;
}
.aa-country-row:last-child {
  border-bottom: none;
}
.aa-country-row:hover {
  background: rgba(248, 250, 252, 0.95);
}
.aa-country-rank {
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.aa-country-body {
  flex: 1;
  min-width: 0;
}
.aa-country-name {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.28rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.aa-country-bar-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.aa-country-track {
  flex: 1;
  height: 5px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  min-width: 0;
}
.aa-country-bar {
  height: 100%;
  border-radius: 999px;
  transition: width 0.35s ease;
}
.aa-country-meta {
  flex-shrink: 0;
  display: flex;
  gap: 0.35rem;
  align-items: center;
  font-variant-numeric: tabular-nums;
}
.aa-country-count {
  font-size: 0.75rem;
  font-weight: 700;
  color: #0f172a;
}
.aa-country-pct {
  font-size: 0.68rem;
  font-weight: 600;
  color: #64748b;
}

/* Recent Updates Section */
.recent-updates {
  background: #f8fafc !important;
  border: 1px solid #e3e9f6 !important;
  border-radius: 8px !important;
}

.recent-updates h4 {
  color: #1F4D8F !important;
  font-weight: 700 !important;
}

.recent-updates ul {
  color: #64748b !important;
}

.recent-updates li strong {
  color: #1F4D8F !important;
}

/* Chart containers with Settings-inspired design */
.chart-container {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.06);
  padding: 1.5rem;
  transition: box-shadow 0.2s ease;
  cursor: pointer;
}

.chart-container:hover {
  box-shadow: 0 4px 12px rgba(44, 62, 80, 0.12);
  /* No translateY — combined with inner transforms (bubbles, charts) it caused visible jitter. */
}

.chart-container h3 {
  color: var(--color-navy);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-title);
  margin: 0 0 1rem 0;
}

.chart-container span {
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Dashboard: tighter chart cards + KPIs (scoped — chart_gallery unchanged) */
.dashboard-section .chart-container {
  padding: 0.8rem 0.9rem;
  border-radius: 7px;
}
.dashboard-section .chart-container h3 {
  font-size: 0.9rem;
  margin: 0 0 0.35rem 0;
}
.dashboard-section .threat-dist-wrap {
  min-height: 110px;
}
.dashboard-section .kpis.kpis--compact .kpi {
  padding: 0.55rem 0.5rem;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(31, 77, 143, 0.06);
}
.dashboard-section .kpis.kpis--compact .kpi:hover {
  transform: none;
  box-shadow: 0 2px 8px rgba(31, 77, 143, 0.1);
}

/* Analysis tab: centered column so cards are not edge-to-edge on wide screens */
.dashboard-section#tab-events .dashboard-events-rail {
  max-width: min(1080px, 100%);
  margin-inline: auto;
  width: 100%;
  box-sizing: border-box;
}

/* Severity + pipeline row: two sibling cards, equal columns (fixes empty third of a mega-card) */
.sp-two-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}
@media (max-width: 900px) {
  .sp-two-cards {
    grid-template-columns: 1fr;
  }
}
.sp-two-cards > .chart-container {
  min-width: 0;
}

/* Equal-height chart cards in a row (Analysis tab) */
.dashboard-section#tab-events .dash-equal-row {
  align-items: stretch;
}
.dashboard-section#tab-events .dash-equal-row > .chart-container {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.dashboard-section#tab-events .dash-equal-row .dash-card-spacer {
  flex: 1;
  min-height: 0;
}
.dashboard-section#tab-events .dash-row-threat .threat-dist-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
}
.dashboard-section#tab-events .dash-row-threat .threat-timeline-chart-wrap {
  flex: 1 1 auto;
  min-height: 212px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dashboard-section#tab-events .dash-row-threat .threat-timeline-chart-wrap > canvas {
  width: 100% !important;
  height: 100% !important;
}
.dashboard-section#tab-events .dash-row-threat .threat-type-dist-card .card-actions,
.dashboard-section#tab-events .dash-row-threat .threat-timeline-card .card-actions {
  margin-top: auto;
}
.pipeline-stack-card .status-pipeline-table-wrap {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}
.dashboard-section#tab-events .ds-by-source-card .ds-source-wrap {
  flex: 1;
  min-height: 0;
}
.dashboard-section#tab-events .throughput-line-card .throughput-chart-wrap {
  flex: 1;
  min-height: 0;
}
.pipeline-stack-card .status-pipeline {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.pipeline-stack-card .status-pipeline-total {
  margin-top: auto;
}

/* Threat distribution: HTML rows — hover/click match the row (no canvas hit-testing) */
.threat-dist-wrap {
  width: 100%;
  min-height: 200px;
  position: relative;
}
.threat-dist-bars {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.threat-dist-row {
  margin: 0;
  padding: 0.45rem 0.5rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.threat-dist-row[data-threat-key]:not([data-threat-key=""]) {
  cursor: pointer;
}
.threat-dist-row[data-threat-key]:not([data-threat-key=""]):hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}
.threat-dist-row-inner {
  display: grid;
  grid-template-columns: minmax(7rem, 32%) 1fr auto;
  align-items: center;
  gap: 0.5rem 0.75rem;
}
@media (max-width: 520px) {
  .threat-dist-row-inner {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}
.threat-dist-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.3;
}
.threat-dist-track {
  height: 10px;
  border-radius: 5px;
  background: #e2e8f0;
  overflow: hidden;
  min-width: 0;
}
.threat-dist-fill {
  height: 100%;
  border-radius: 5px;
  min-width: 2px;
  transition: width 0.2s ease;
}
.threat-dist-meta {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.threat-dist-pct {
  font-weight: 500;
  color: #64748b;
}
.threat-dist-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
}

.severity-stack-card .severity-chart-wrap {
  flex: 0 0 auto;
}
/* Incident pipeline — proportional bar + table */
.status-pipeline-bar {
  display: flex;
  width: 100%;
  min-height: 28px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 2px 10px rgba(15, 23, 42, 0.06);
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}
.status-pipeline-seg {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 3px;
  padding: 0;
  margin: 0;
  border: none;
  box-sizing: border-box;
  cursor: pointer;
  transition: box-shadow 0.12s ease, filter 0.12s ease;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}
.status-pipeline-seg:hover,
.status-pipeline-seg--hi {
  filter: brightness(1.05);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.3),
    inset 0 0 0 3px rgba(255, 255, 255, 0.45),
    inset 0 0 10px rgba(15, 23, 42, 0.12);
  z-index: 1;
}
.status-pipeline-seg:focus-visible {
  outline: 2px solid rgba(74, 96, 138, 0.55);
  outline-offset: 2px;
}
.status-pipeline-table-wrap {
  margin-top: 0.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.status-pipeline-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}
.status-pipeline-table thead th {
  text-align: left;
  padding: 0.35rem 0.5rem;
  background: #f8fafc;
  color: #64748b;
  font-weight: 700;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #e2e8f0;
}
.status-pipeline-table thead th.status-pipeline-table-num {
  text-align: right;
  width: 4.5rem;
}
.status-pipeline-table tbody td {
  padding: 0.38rem 0.5rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  color: #334155;
}
.status-pipeline-table tbody tr:last-child td {
  border-bottom: none;
}
.status-pipeline-table-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: #1e293b;
}
.status-pipeline-table-swatch {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  margin-right: 0.4rem;
  vertical-align: middle;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.12);
}
.status-pipeline-table-label {
  vertical-align: middle;
}
.status-pipeline-tr--action {
  cursor: pointer;
  transition: background 0.12s ease;
}
.status-pipeline-tr--action:hover,
.status-pipeline-tr--hi {
  background: #f8fafc;
}
.status-pipeline-tr:not(.status-pipeline-tr--action) {
  color: #94a3b8;
}
.status-pipeline-tr:not(.status-pipeline-tr--action) .status-pipeline-table-num {
  color: #94a3b8;
  font-weight: 500;
}
.status-pipeline-total {
  margin: 0.45rem 0 0 0;
  font-size: 0.75rem;
  color: #64748b;
}

/* Threats by data source — stacked % strip + legend (not row bars) */
.ds-throughput-row {
  align-items: stretch;
}
@media (max-width: 960px) {
  .ds-throughput-row {
    grid-template-columns: 1fr !important;
  }
}
.ds-source-wrap {
  width: 100%;
}
.ds-source-summary {
  margin: 0 0 0.65rem 0;
  font-size: 0.8125rem;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}
.ds-source-summary strong {
  color: #1e293b;
  font-weight: 700;
}
.ds-comp {
  width: 100%;
}
/* Data source: bubble row */
.ds-source-viz-wrap {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}
.ds-bubble-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 0.65rem 1.1rem;
  padding: 0.35rem 0 0.15rem;
}
.ds-bubble-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 10.5rem;
  text-align: center;
  transition: transform 0.15s ease;
  border-radius: 10px;
  padding: 0.2rem 0.25rem 0.35rem;
}
.ds-bubble-item:focus {
  outline: none;
}
.ds-bubble-item:focus-visible {
  box-shadow: 0 0 0 2px #1f4d8f;
}
.ds-bubble-item--action {
  cursor: pointer;
}
.ds-bubble-item--action:hover .ds-bubble,
.ds-bubble-item--action:focus-visible .ds-bubble {
  transform: scale(1.04);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.16), inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}
.ds-bubble {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12), inset 0 0 0 2px rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ds-bubble-cap {
  font-size: clamp(0.8rem, 2.2vw, 1.05rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: rgba(15, 23, 42, 0.88);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
  line-height: 1;
}
.ds-bubble-name {
  margin-top: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.25;
  word-break: break-word;
}
.ds-bubble-sub {
  margin-top: 0.15rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}
.ds-bubble-foot {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.45;
}
.ds-src-hi .ds-bubble {
  /* Shadow-only highlight — scale + card hover used to read as a “bounce”. */
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.2), inset 0 0 0 2px rgba(255, 255, 255, 0.55);
}
.ds-comp-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.8125rem;
}
.ds-comp-legend-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.35rem 0.5rem;
  margin: 0 -0.5rem;
  border: 1px solid transparent;
  border-bottom: 1px solid #f1f5f9;
  border-radius: 8px;
  box-sizing: border-box;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.ds-comp-legend-row:last-child:not(.ds-comp-legend-row--sync-hover) {
  border-bottom-color: transparent;
}
/* Same treatment as incident pipeline column hover (data source legend sync) */
.ds-comp-legend-row--sync-hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  border-bottom-color: #94a3b8;
}
.ds-comp-legend-row--sync-hover .ds-comp-name {
  color: #0f172a !important;
  font-weight: 700 !important;
}
.ds-comp-legend-row--sync-hover .ds-comp-count,
.ds-comp-legend-row--sync-hover .ds-comp-pct {
  color: #0f172a !important;
  font-weight: 700 !important;
}
.ds-comp-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.85);
}
.ds-comp-name {
  font-weight: 600;
  color: #1e293b;
  word-break: break-word;
  min-width: 0;
}
.ds-comp-count {
  font-weight: 600;
  color: #475569;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.ds-comp-pct {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #1f4d8f;
  min-width: 3.25rem;
  text-align: right;
  font-family: ui-monospace, 'SF Mono', Menlo, Monaco, Consolas, monospace;
  font-size: 0.8rem;
}
@media (max-width: 520px) {
  .ds-comp-legend-row {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    font-size: 0.75rem;
    gap: 0.35rem 0.45rem;
  }
  .ds-comp-pct {
    min-width: 2.75rem;
    font-size: 0.74rem;
  }
}
.throughput-chart-wrap > canvas {
  display: block;
  max-width: 100%;
}

/* Risk Score and Analytics Elements */
#riskScore {
  color: #1F4D8F !important;
}

.risk-label {
  background: rgba(230, 236, 247, 1) !important;
  color: #4A608A !important;
}

.trend-percentage {
  color: #1F4D8F !important;
}

.trend-label {
  color: #64748b !important;
}

/* Predictive Insights */
.predictive-probability {
  color: #1F4D8F !important;
}

.predictive-label {
  color: #64748b !important;
}

.predictive-item {
  color: #64748b !important;
}

/* Heatmap and Top Threats */
.heatmap-title {
  color: #1F4D8F !important;
  font-weight: 700 !important;
}

.top-threats-title {
  color: #1F4D8F !important;
  font-weight: 700 !important;
}

.threat-name {
  color: #1F4D8F !important;
  font-weight: 600 !important;
}

.threat-severity-text {
  color: #64748b !important;
}

.threat-count-number {
  color: #1F4D8F !important;
  font-weight: 600 !important;
}

.threat-count-label {
  color: #64748b !important;
}

/* Compact Settings Module Cards - Optimized for 7 modules */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

@media (max-width: 1200px) {
  .modules-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .modules-grid {
    grid-template-columns: 1fr;
  }
}

/* Wider Data Sources Grid */
.data-sources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
}

/* Data Source Grid - Optimized for 6 data sources - WIDER for content */
.add-data-source-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  align-items: start;
}

@media (max-width: 1400px) {
  .add-data-source-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .add-data-source-grid {
    grid-template-columns: 1fr;
  }
}

/* Data Source Cards */
.data-source-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.25rem;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  min-height: 180px;
}

.data-source-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #64748b;
}

.data-source-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.data-source-logo {
  margin-right: 1rem;
}

.plug-icon {
  font-size: 1.5rem;
  color: #1F4D8F;
}

.data-source-info h4 {
  color: #1F4D8F;
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0 0 0.25rem 0;
}

.data-source-description {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0 0 1rem 0;
  flex-grow: 1;
}

.data-source-stats {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-label {
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.stat-value {
  color: #1F4D8F;
  font-size: 1.1rem;
  font-weight: 600;
}

.data-source-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

/* Add Source Cards */
.add-source-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.75rem;
  transition: all 0.2s ease;
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.add-source-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #64748b;
}

.add-source-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.6rem;
}

.add-source-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  margin-right: 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #E6ECF7;
  border: 1.5px solid #6C7B9F;
  border-radius: 5px;
  flex-shrink: 0;
}

.add-source-icon svg {
  width: 14px;
  height: 14px;
  stroke: #1F4D8F;
  stroke-width: 2;
}

.add-source-header h4 {
  color: #000000 !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  margin: 0;
  font-family: 'Inter', Arial, sans-serif !important;
}

.add-source-card .add-source-description {
  color: #000000 !important;
  font-size: 0.9375rem !important;
  line-height: 1.4 !important;
  margin: 0 0 0.75rem 0 !important;
  flex-grow: 1;
  font-weight: 400 !important;
  font-family: 'Inter', Arial, sans-serif !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-rendering: optimizeLegibility !important;
}

/* Fallback for extra specificity */
.add-source-description {
  color: #000000 !important;
  font-size: 0.9375rem !important;
  font-weight: 400 !important;
}

.data-source-info {
  margin-top: 0.5rem;
}

.feeds-threats,
.providers-list {
  margin-bottom: 0.5rem;
}

/* Ultra-specific rules to override everything */
.add-source-card .data-source-info .feeds-threats span {
  font-size: 0.8125rem !important;
  color: #000000 !important;
  line-height: 1.4 !important;
  font-weight: 400 !important;
  font-family: 'Inter', Arial, sans-serif !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-rendering: optimizeLegibility !important;
}

.add-source-card .data-source-info .feeds-threats .label {
  font-size: 0.8125rem !important;
  color: #1F4D8F !important;
  font-weight: 500 !important;
}

.add-source-card .data-source-info .providers-list > span {
  font-size: 0.8125rem !important;
  color: #000000 !important;
  line-height: 1.4 !important;
  font-weight: 400 !important;
  font-family: 'Inter', Arial, sans-serif !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-rendering: optimizeLegibility !important;
}

.add-source-card .data-source-info .providers-list .label {
  font-size: 0.8125rem !important;
  color: #1F4D8F !important;
  font-weight: 500 !important;
}

/* Provider badges - brand-colored pills */
.provider-pill-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.provider-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  letter-spacing: 0.01em;
}

.provider-pill--okta { background: linear-gradient(135deg, #007dc1 0%, #005a94 100%); }
.provider-pill--azure { background: linear-gradient(135deg, #0078d4 0%, #005a9e 100%); }
.provider-pill--google { background: linear-gradient(135deg, #4285f4 0%, #1967d2 100%); }
.provider-pill--auth0 { background: linear-gradient(135deg, #eb5424 0%, #c43a1a 100%); }
.provider-pill--stripe { background: linear-gradient(135deg, #635bff 0%, #4f46e5 100%); }
.provider-pill--paypal { background: linear-gradient(135deg, #003087 0%, #001f5c 100%); }
.provider-pill--square { background: linear-gradient(135deg, #006aff 0%, #0047ab 100%); }
.provider-pill--m365 { background: linear-gradient(135deg, #d83b01 0%, #a42600 100%); }
.provider-pill--gmail { background: linear-gradient(135deg, #ea4335 0%, #c5221f 100%); }
.provider-pill--exchange { background: linear-gradient(135deg, #0078d4 0%, #004578 100%); }
.provider-pill--jamf { background: linear-gradient(135deg, #e01e5a 0%, #a81845 100%); }
.provider-pill--intune { background: linear-gradient(135deg, #0078d4 0%, #005a9e 100%); }
.provider-pill--telecom { background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%); }
.provider-pill--paloalto { background: linear-gradient(135deg, #fa582d 0%, #c2410c 100%); }
.provider-pill--cisco { background: linear-gradient(135deg, #049fd9 0%, #0369a1 100%); }
.provider-pill--cloudflare { background: linear-gradient(135deg, #f38020 0%, #d97706 100%); }
.provider-pill--aws { background: linear-gradient(135deg, #ff9900 0%, #d97706 100%); }
.provider-pill--datadog { background: linear-gradient(135deg, #632ca6 0%, #4c1d95 100%); }
.provider-pill--kong { background: linear-gradient(135deg, #003459 0%, #001a2e 100%); }

.add-source-card .providers-list div span {
  font-size: 0.75rem !important;
  font-weight: 600 !important;
}

.add-source-card .provider-pill {
  font-weight: 700 !important;
}

/* Connected Data Sources grid — brand-colored logo tiles */
.connected-source-logo {
  width: 44px;
  height: 44px;
  margin: 0 auto 0.5rem;
  border-radius: 14px;
  padding: 3px;
  box-sizing: border-box;
  background: linear-gradient(145deg, #cbd5e1, #94a3b8);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

.connected-source-logo__inner {
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  box-sizing: border-box;
}

.connected-source-logo__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.connected-source-logo__svg {
  width: 100%;
  height: 100%;
  display: block;
}

.connected-source-logo__fallback {
  width: 18px;
  height: 18px;
  color: #64748b;
}

.connected-source-logo__fallback--solo {
  width: 20px;
  height: 20px;
  color: #4a608a;
}

.connected-source-logo--okta { background: linear-gradient(145deg, #007dc1, #005a94); }
.connected-source-logo--azure_ad { background: linear-gradient(145deg, #0078d4, #005a9e); }
.connected-source-logo--google { background: linear-gradient(145deg, #4285f4, #1967d2); }
.connected-source-logo--auth0 { background: linear-gradient(145deg, #eb5424, #c43a1a); }
.connected-source-logo--stripe { background: linear-gradient(145deg, #635bff, #4f46e5); }
.connected-source-logo--paypal { background: linear-gradient(145deg, #003087, #001f5c); }
.connected-source-logo--square { background: linear-gradient(145deg, #006aff, #0047ab); }
.connected-source-logo--office_365 { background: linear-gradient(145deg, #d83b01, #a42600); }
.connected-source-logo--gmail { background: linear-gradient(145deg, #ea4335, #c5221f); }
.connected-source-logo--exchange { background: linear-gradient(145deg, #0078d4, #004578); }
.connected-source-logo--jamf { background: linear-gradient(145deg, #e01e5a, #a81845); }
.connected-source-logo--intune { background: linear-gradient(145deg, #0078d4, #005a9e); }
.connected-source-logo--telecom_apis { background: linear-gradient(145deg, #0d9488, #0f766e); }
.connected-source-logo--palo_alto { background: linear-gradient(145deg, #fa582d, #c2410c); }
.connected-source-logo--cisco { background: linear-gradient(145deg, #049fd9, #0369a1); }
.connected-source-logo--cloudflare { background: linear-gradient(145deg, #f38020, #d97706); }
.connected-source-logo--aws_vpc { background: linear-gradient(145deg, #ff9900, #d97706); }
.connected-source-logo--aws_api_gateway { background: linear-gradient(145deg, #ff9900, #ea8600); }
.connected-source-logo--datadog { background: linear-gradient(145deg, #632ca6, #4c1d95); }
.connected-source-logo--kong { background: linear-gradient(145deg, #003459, #001a2e); }

/* Settings: threat webhooks */
.threat-webhook-settings {
  margin-top: 0.5rem;
}

.threat-webhook-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.threat-webhook-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
}

.threat-webhook-sev {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #64748b;
}

.threat-webhook-sev select {
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  font-size: 0.85rem;
}

.threat-webhook-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}

.threat-webhook-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.65rem;
  margin-bottom: 0.35rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.82rem;
}

.threat-webhook-list .wh-hint {
  color: #475569;
  font-weight: 600;
  word-break: break-all;
}

.threat-webhook-list .wh-del {
  flex-shrink: 0;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 6px;
  border: 1px solid #fecaca;
  background: #fff;
  color: #b91c1c;
  cursor: pointer;
}

.add-source-form {
  margin-top: 0.75rem;
}

.add-source-form .form-group {
  margin-bottom: 0.75rem;
}

.add-source-form .form-group:last-of-type {
  margin-bottom: 0;
}

.add-source-form .form-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.875rem;
  transition: border-color 0.2s ease;
}

.add-source-form input[type="file"] {
  display: none;
}

.file-upload-wrapper {
  position: relative;
  display: inline-block;
  width: auto;
}

.file-upload-button {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 6px;
  border: 1px solid #6C7B9F;
  background: #E6ECF7;
  color: #4A608A;
  transition: all 0.2s ease;
  cursor: pointer;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-width: auto;
}

.file-upload-button:hover {
  background: #D1D9F0;
  color: #4A608A;
  border-color: #6C7B9F;
}

.file-upload-button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(31, 77, 143, 0.1);
}

.add-source-form .form-input:focus {
  outline: none;
  border-color: #1F4D8F;
  box-shadow: 0 0 0 3px rgba(31, 77, 143, 0.1);
}

.add-source-form .form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #1F4D8F;
  font-size: 0.875rem;
}

.add-source-form .form-help {
  margin-top: 0.5rem;
}

.add-source-form .form-help small {
  color: #64748b;
  font-size: 0.75rem;
}

.add-source-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

.add-source-actions .btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 6px;
  border: 1px solid #6C7B9F;
  background: #E6ECF7;
  color: #4A608A;
  transition: all 0.2s ease;
  cursor: pointer;
}

.add-source-actions .btn:hover {
  background: #D1D9F0;
  color: #4A608A;
  border-color: #6C7B9F;
}

.add-source-actions .btn-primary {
  background: #E6ECF7;
  color: #4A608A;
  border: 1px solid #6C7B9F;
}

.add-source-actions .btn-primary:hover {
  background: #D1D9F0;
  color: #4A608A;
  border-color: #6C7B9F;
}

/* Multiple buttons - first light blue, second white */
.add-source-actions .btn:first-child {
  background: #E6ECF7;
  color: #4A608A;
}

.add-source-actions .btn:not(:first-child) {
  background: #ffffff;
  color: #4A608A;
}

.add-source-actions .btn:not(:first-child):hover {
  background: #f8fafc;
  color: #4A608A;
}

/* Override for analytics card buttons specifically */
.analytics-card .btn-configure {
  background: #E6ECF7 !important;
  color: #4A608A !important;
  border: 1px solid #6C7B9F !important;
}

.analytics-card .btn-disable {
  background: #ffffff !important;
  color: #4A608A !important;
  border: 1px solid #6C7B9F !important;
}

.module-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.4rem;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 70px;
}

.module-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-color: #64748b;
}

.module-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.module-header-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.module-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #E6ECF7;
  border: 1.5px solid #6C7B9F;
  border-radius: 5px;
  flex-shrink: 0;
}

.module-icon svg {
  width: 14px;
  height: 14px;
  stroke: #1F4D8F;
  stroke-width: 2;
}

.module-header h4 {
  color: #000000 !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  margin: 0;
  font-family: 'Inter', Arial, sans-serif !important;
}

.module-description {
  color: var(--color-text-primary);
  font-size: var(--font-size-base);
  line-height: 1.4;
  margin: 0 0 0.75rem 0;
  flex-grow: 1;
}

.module-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.module-actions .btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 6px;
  border: 1px solid #6C7B9F;
  background: #E6ECF7;
  color: #4A608A;
  transition: all 0.2s ease;
  cursor: pointer;
}

.module-actions .btn:hover {
  background: #D1D9F0;
  color: #4A608A;
  border-color: #6C7B9F;
}

/* Disable buttons in Settings should be white */
.module-actions .btn-danger {
  background: #ffffff;
  color: #4A608A;
  border: 1px solid #6C7B9F;
}

.module-actions .btn-danger:hover {
  background: #f8fafc;
  color: #4A608A;
  border-color: #6C7B9F;
}

/* Dashboard Section Tab Switching */
.dashboard-section {
  display: none;
}

.dashboard-section.tab-active {
  display: block;
}

/* Toggle Switch Styles */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: .3s;
  border-radius: 22px;
  border: 2px solid #94a3b8;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 2px;
  top: 50%;
  transform: translateY(-50%);
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
  background-color: #1F4D8F;
  border: 2px solid #0f3a6b;
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(18px) translateY(-50%);
  box-shadow: 0 2px 6px rgba(31, 77, 143, 0.4);
}


/* Modern Threat Explorer styling */
.threat-table {
  border-radius:14px;
  background:#fff;
  box-shadow:0 2px 12px rgba(31,77,143,0.06);
  overflow:hidden;
  margin-bottom:2.3rem;
  border-collapse:separate;
  border-spacing:0;
}
.threat-table th {
  font-weight:600;
  background:#f5f7fa;
  color:#1F4D8F;
  padding:1em 1.4em;
  font-size:1.1em;
  border:none;
}
.threat-table-header th {
  border:none;
  background:#f5f7fa;
  position:sticky;
  top:0;
  z-index:1;
}
.threat-row {
  border-bottom: 1px solid #e5e8f1;
  font-size:1.07em;
  background:#fff;
  transition: box-shadow 0.18s, background 0.18s;
}
.threat-row:nth-child(2n) {
  background:#f7fafc;
}
.threat-row:hover {
  background:#e6ecf7;
  box-shadow:0 4px 12px rgba(31,77,143,0.11);
}
/* Subtle threat status badges for table */
.threat-status-badge {
  display:inline-block;
  padding:1.6px 7px;
  border-radius:13px;
  background:transparent;
  font-size:.81em;
  font-weight:500;
  letter-spacing:.04em;
  text-transform:uppercase;
  border:1.3px solid #e7eaf7;
  margin: 0 2px;
  color: #64748b;
  vertical-align:middle;
  box-shadow:none;
}
.status-critical {
  border-color: #ef4444;
  color: #ef4444;
}
.status-high {
  border-color: #f59e0b;
  color: #f59e0b;
}
.status-medium {
  border-color: #BED5EC !important;
  color: #AAB8CA !important;
  font-size: .81em !important;
  padding: 1.6px 7px !important;
  border-radius: 13px !important;
  font-weight: 500;
  background: transparent !important;
}
.status-low {
  border-color: #10b981;
  color: #10b981;
}
.threat-critical { background:#ef4444; color:#fff; }
.threat-high { background:#f59e0b; color:#fff; }
.threat-medium { background:#4A608A; color:#fff; }
.threat-low { background:#10b981; color:#fff; }
.threat-table td {
  padding:1.1em 1.3em;
  border:none;
  vertical-align: middle;
}
.threat-icon { font-size:1.25em; text-align:center; }
input#explorer-threatSearch, select#explorer-severityFilter, select#explorer-typeFilter {
  font-size:1.09em; 
  border-radius:8px;
  padding:0.7em 1.13em;
  margin-right:0.6em; 
  min-width:124px;
}


/* Threat Explorer Status badges (distinct from severity) */
.status-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 12px;
  font-size: 0.82em;
  font-weight: 400;
  letter-spacing: .02em;
  background: #f1f4f9;
  border: 1px solid #d7e1eb;
  color: #4A608A;
  text-transform: lowercase;
  margin: 0 2.5px;
  vertical-align: middle;
}
.status-open {
  border-color: #93b4dd;
  color: #4176ae;
  background: #f5f9fd;
}
.status-pending {
  border-color: #c3bca9;
  color: #948c63;
  background: #fcfbf6;
}
.status-resolved {
  border-color: #a7dfc8;
  color: #179769;
  background: #f2faf7;
}


