@font-face {
  font-family: "Teko-SemiBold";
  src:
    url("../fonts/Teko-SemiBold.woff2") format("woff2"),
    url("../fonts/Teko-SemiBold.woff") format("woff");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

body.dashboard-page {
  background: #f4f7fb;
  color: #182b49;
}

.dashboard-shell {
  padding: 24px 0 40px;
}

.dashboard-tools {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.dashboard-settings-button {
  align-items: center;
  border-color: #d7e1ea;
  border-radius: 10px;
  color: #52657a;
  display: inline-flex;
  font-size: 16px;
  height: 42px;
  justify-content: center;
  padding: 0;
  width: 42px;
}

.dashboard-settings-button:focus,
.dashboard-settings-button:hover {
  color: #182b49;
}

.dashboard-panel {
  background: #fff;
  border: 1px solid #d7e1ea;
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(24, 43, 73, 0.08);
  margin-bottom: 24px;
  padding: 28px;
}

.dashboard-panel-header {
  align-items: start;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.dashboard-panel h2 {
  margin: 0 0 4px;
}

.dashboard-subcopy {
  color: #52657a;
  margin: 0;
}

.dashboard-checkbox {
  margin-top: 31px;
}

.dashboard-checkbox label {
  color: #234;
  font-weight: 700;
}

.dashboard-checkbox input {
  margin-right: 6px;
}

.dashboard-status {
  color: #b42318;
  margin: 14px 0 0;
  min-height: 20px;
}

.dashboard-status.is-muted {
  color: #52657a;
}

.dashboard-table {
  margin: 16px 0 0;
}

.dashboard-table thead th {
  border-bottom: 2px solid #d7e1ea;
  color: #52657a;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-table tbody td {
  border-top: 1px solid #e4ebf2;
  vertical-align: top;
}

.guardrails-table th:first-child,
.guardrails-table td:first-child {
  min-width: 120px;
  white-space: nowrap;
}

.dashboard-action-col {
  text-align: center;
  width: 120px;
}

.dashboard-table .btn {
  min-width: 88px;
}

.dashboard-table .btn.btn-sm {
  min-width: 72px;
}

.dashboard-code {
  background: #f4f7fb;
  border-radius: 8px;
  color: #163552;
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 1.5;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 6px 8px;
}

.dashboard-badge {
  background: #eaf6ff;
  border-radius: 999px;
  color: #00629b;
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
}

.dashboard-badge.is-disabled {
  background: #f5e8e4;
  color: #8a3f20;
}

.dashboard-analytics-grid {
  margin-top: 8px;
}

.analytics-card {
  margin-bottom: 20px;
}

.analytics-card-inner {
  background: linear-gradient(180deg, #fff, #f7fbff);
  border: 1px solid #d7e1ea;
  border-radius: 14px;
  height: 100%;
  padding: 22px;
}

.analytics-card-header {
  align-items: baseline;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.analytics-card-title {
  color: #182b49;
  font-family: "Teko-SemiBold", sans-serif;
  font-size: 2.1em;
  line-height: 1;
  margin: 0;
}

.analytics-card-total {
  color: #52657a;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.analytics-bar {
  background: #dce9f3;
  border-radius: 999px;
  display: flex;
  height: 12px;
  margin-bottom: 16px;
  overflow: hidden;
}

.analytics-bar-allowed {
  background: #00a57a;
}

.analytics-bar-blocked {
  background: #d98f8f;
}

.analytics-metrics {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

.analytics-metric {
  background: #eef5fb;
  border-radius: 10px;
  padding: 12px;
}

.analytics-metric-label {
  color: #52657a;
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.analytics-metric-value {
  color: #182b49;
  display: block;
  font-family: "Teko-SemiBold", sans-serif;
  font-size: 2em;
  line-height: 1;
}

.analytics-category-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.analytics-category {
  background: #fff;
  border: 1px solid #e4ebf2;
  border-radius: 10px;
  padding: 10px 12px;
}

.analytics-category-head {
  align-items: center;
  display: flex;
  font-size: 13px;
  font-weight: 700;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.analytics-category-label {
  color: #182b49;
}

.analytics-category-count {
  color: #8b3434;
}

.analytics-category-track {
  background: #efd0d0;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.analytics-category-fill {
  background: linear-gradient(90deg, #d98f8f, #c96f6f);
  border-radius: inherit;
  height: 100%;
}

.analytics-empty-copy,
.empty-state {
  background: #eef5fb;
  border: 1px dashed #b8cada;
  border-radius: 12px;
  color: #52657a;
  margin-top: 14px;
  padding: 16px;
}

.hidden {
  display: none !important;
}

.modal-copy {
  margin-bottom: 14px;
}

.dashboard-modal-dialog {
  max-width: 560px;
  width: calc(100% - 32px);
}

.modal-content {
  border: 1px solid #d7e1ea;
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(24, 43, 73, 0.22);
}

.modal-header {
  background: #f4f7fb;
  border-bottom: 1px solid #d7e1ea;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}

.modal-header .modal-title {
  color: #182b49;
  margin: 0;
}

.alert code {
  background: rgba(255, 255, 255, 0.55);
  border-radius: 6px;
  color: #182b49;
  display: inline-block;
  margin-top: 8px;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 6px 8px;
}

.footer.layout-footer {
  margin-top: 12px;
}

.footer.layout-footer > .layout-container {
  background-image: none;
}

@media (max-width: 991px) {
  .dashboard-panel {
    padding: 22px;
  }
}

@media (max-width: 767px) {
  .dashboard-title {
    font-size: 2.2em;
  }

  .analytics-metrics {
    grid-template-columns: 1fr;
  }

  .dashboard-action-col {
    width: auto;
  }

  .dashboard-table .btn {
    width: 100%;
  }
}
