body {
  min-height: 100vh;
  background: #f6f7f9;
}

.auth-body {
  min-height: 100vh;
  background: #eef4fb;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.auth-panel {
  width: min(100%, 420px);
  background: #fff;
  border: 1px solid #d8e2ef;
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
  padding: 1.5rem;
}

.auth-panel-wide {
  width: min(100%, 720px);
}

.page-shell {
  min-height: 100vh;
}

.metric-box {
  height: 100%;
  padding: 1rem;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: .5rem;
}

.metric-label {
  color: #6c757d;
  font-size: .875rem;
}

.metric-value {
  margin-top: .25rem;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
}

.monitor-table {
  table-layout: fixed;
  min-width: 980px;
}

.monitor-table th,
.monitor-table td {
  vertical-align: middle;
}

.monitor-table th:nth-child(1),
.monitor-table td:nth-child(1) {
  width: 20%;
}

.monitor-table th:nth-child(2),
.monitor-table td:nth-child(2) {
  width: 10%;
}

.monitor-target-cell {
  width: 22%;
}

.monitor-target-main,
.monitor-target-sub {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.monitor-target-sub {
  color: #6c757d;
  font-size: .8125rem;
  margin-top: .125rem;
}

.monitor-actions-cell {
  width: 25%;
  white-space: nowrap;
}

.monitor-actions-cell .btn {
  min-width: 4rem;
}

.monitor-list-table {
  table-layout: auto;
  min-width: 760px;
}

.monitor-list-table th,
.monitor-list-table td {
  vertical-align: middle;
}

.monitor-list-table th:nth-child(1),
.monitor-list-table td:nth-child(1) {
  width: auto;
}

.monitor-list-table th:nth-child(2),
.monitor-list-table td:nth-child(2),
.monitor-list-table th:nth-child(3),
.monitor-list-table td:nth-child(3),
.monitor-list-table th:nth-child(4),
.monitor-list-table td:nth-child(4) {
  width: 9rem;
}

.monitor-list-table th:nth-child(5),
.monitor-list-table td:nth-child(5) {
  width: 23rem;
}

.monitor-main-row > td {
  border-bottom: 0;
  padding-bottom: .35rem;
}

.monitor-detail-row > td {
  border-top: 0;
  padding-top: 0;
  padding-bottom: .85rem;
}

.monitor-details {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.25rem;
  color: #495057;
  font-size: .875rem;
  line-height: 1.35;
}

.monitor-detail-item {
  display: inline-flex;
  min-width: 0;
  max-width: 100%;
  gap: .35rem;
}

.monitor-detail-label {
  color: #6c757d;
  font-weight: 600;
}

.monitor-detail-target {
  flex: 1 1 20rem;
  min-width: 0;
}

.monitor-detail-target span:last-child {
  display: inline-block;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.monitor-actions {
  display: flex;
  justify-content: flex-end;
  gap: .5rem;
  white-space: nowrap;
}

.monitor-actions form {
  margin: 0;
}

.monitor-search-bar {
  max-width: 34rem;
  margin-bottom: 1rem;
}

.monitor-group-row {
  --bs-table-bg: #dbe7f3;
  --bs-table-color: #17324d;
}

.monitor-group-row > td {
  background-color: #dbe7f3 !important;
  border-top: 1px solid #b8cbe0;
  border-bottom: 1px solid #b8cbe0;
  border-left: .35rem solid #2f6f9f;
  padding: .65rem .85rem;
}

.monitor-group-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .75rem;
}

.monitor-group-title {
  color: #17324d;
  font-size: .925rem;
  font-weight: 700;
  letter-spacing: 0;
}

.statistics-chart {
  display: flex;
  align-items: end;
  gap: .35rem;
  min-height: 15rem;
  overflow-x: auto;
}

.statistics-day {
  flex: 1 0 2rem;
  min-width: 2rem;
}

.statistics-bars {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: .15rem;
  height: 11rem;
  border-bottom: 1px solid #dee2e6;
}

.statistics-bar {
  width: .55rem;
  min-height: .15rem;
  border-radius: .15rem .15rem 0 0;
}

.statistics-bar-availability {
  background: #198754;
}

.statistics-bar-availability.is-warning {
  background: #dc3545;
}

.statistics-bar-availability.is-empty {
  background: #adb5bd;
}

.statistics-bar-incidents {
  background: #f59f00;
}

.statistics-day-label {
  margin-top: .35rem;
  color: #6c757d;
  font-size: .75rem;
  text-align: center;
  white-space: nowrap;
}

.statistics-legend {
  display: inline-block;
  width: .8rem;
  height: .8rem;
  margin-right: .35rem;
  border-radius: .15rem;
  vertical-align: -.1rem;
}

.statistics-legend-availability {
  background: #198754;
}

.statistics-legend-incidents {
  background: #f59f00;
}

.statistics-ranking-table {
  min-width: 980px;
}

.status-page-body {
  min-height: 100vh;
  background: #f5f7fb;
  color: #1f2937;
}

.status-hero {
  background: linear-gradient(180deg, #ffffff 0%, #edf3f8 100%);
  border-bottom: 1px solid #d9e2ec;
}

.status-global {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: min(100%, 22rem);
  padding: 1rem 1.15rem;
  background: #fff;
  border: 1px solid #d9e2ec;
  border-radius: .5rem;
  box-shadow: 0 .35rem 1.25rem rgba(15, 23, 42, .06);
}

.status-global-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.status-global.is-ok .status-global-icon {
  color: #198754;
}

.status-global.is-ko .status-global-icon {
  color: #dc3545;
}

.status-metric {
  height: 100%;
  padding: 1rem;
  background: #fff;
  border: 1px solid #d9e2ec;
  border-radius: .5rem;
  box-shadow: 0 .25rem .9rem rgba(15, 23, 42, .04);
}

.status-metric-label {
  color: #667085;
  font-size: .85rem;
}

.status-metric-value {
  margin-top: .25rem;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.15;
}

.status-section {
  overflow: hidden;
  background: #fff;
  border: 1px solid #d9e2ec;
  border-radius: .5rem;
  box-shadow: 0 .25rem .9rem rgba(15, 23, 42, .04);
}

.status-section-header {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid #e5eaf0;
}

.status-service-list {
  display: grid;
}

.status-service {
  display: block;
  padding: 1rem 1.15rem;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid #edf1f5;
}

.status-service:last-child {
  border-bottom: 0;
}

.status-service:hover {
  background: #f8fafc;
}

.status-service-main {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: .75rem;
}

.status-service-name {
  font-weight: 700;
}

.status-service-description {
  max-width: 58rem;
  margin-top: .15rem;
  color: #667085;
  font-size: .92rem;
}

.status-service-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.25rem;
  margin-top: .75rem;
  color: #667085;
  font-size: .875rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .35rem .65rem;
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 700;
  white-space: nowrap;
}

.status-pill.is-ok {
  color: #0f5132;
  background: #d1e7dd;
}

.status-pill.is-ko {
  color: #842029;
  background: #f8d7da;
}

.status-pill.is-pending {
  color: #475467;
  background: #eef2f6;
}
