:root {
  --gutter: 16px;
  --container-width: calc(100% - (var(--gutter) * 2));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: #FFF;
}

body {
  color: #000;
  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 16px var(--gutter);
  max-width: 1400px;
  margin-right: auto;
  margin-left: auto;
}

.page {
  flex: 1;
}
.page h1 {
  color: #000;
  font-family: "Inter", Arial, sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 135%;
  margin: 0 0 12px;
}

.encounter-list-page {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.encounter-list {
  overflow: hidden;
  border: 1px solid #E6E6E6;
  border-radius: 10px;
}

.encounter-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  border-bottom: 1px solid #E6E6E6;
}
.encounter-row:last-child {
  border-bottom: 0;
}
.encounter-row:hover {
  background: #F2F2F2;
}
.encounter-row:focus-visible {
  outline: 2px solid #2970FF;
  outline-offset: -2px;
}

.encounter-row-date {
  color: #000;
  font-family: "Inter", Arial, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: 150%;
}

.encounter-row-details,
.encounter-list-more {
  color: #000;
  font-family: "Inter", Arial, sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  color: #666666;
}

.error-request-id {
  color: #000;
  font-family: "Inter", Arial, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  color: #666666;
}

.toast-container {
  position: fixed;
  top: var(--gutter);
  right: var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1000;
}

.toast {
  color: #000;
  font-family: "Inter", Arial, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  padding: 12px 16px;
  border-radius: 8px;
  background: #1A1A1A;
  color: #FFF;
}
.toast.toast-success {
  background: #16B364;
}
.toast.toast-error {
  background: #D20000;
}
.toast.toast-warning {
  background: #F79009;
  color: #000;
}
.toast.toast-info {
  background: #2970FF;
}

.spinner {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid #E6E6E6;
  border-top-color: #2970FF;
  border-radius: 50%;
  animation: spinner-spin 0.8s linear infinite;
}

@keyframes spinner-spin {
  to {
    transform: rotate(360deg);
  }
}
.page-loading {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.7);
}
.page-loading[hidden] {
  display: none;
}
.page-loading .spinner {
  width: 32px;
  height: 32px;
  border-width: 3px;
}
