body.sisa-app {
  background: #f4f7f9;
  color: #183247;
}

.sisa-shell-header {
  background: #ffffff;
  border-bottom: 1px solid #d6dfe6;
}

.sisa-topbar {
  background: #ffffff;
}

.navbar-brand-subtitle {
  color: #4f6473;
  font-family: "Euclid Circular B SemiBold", "Euclid Circular B", sans-serif;
  font-size: 0.9rem;
}

.sisa-page-header {
  padding-bottom: 1.5rem;
  padding-top: 1.5rem;
}

.sisa-eyebrow {
  color: #5a6b79;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sisa-page-intro {
  color: #4f6473;
  font-size: 1rem;
  max-width: 52rem;
}

.sisa-main {
  position: relative;
  z-index: 1;
}

.sisa-section-card,
.sisa-data-card,
.sisa-form-card,
.sisa-detail-card,
.sisa-login-card {
  background: #fff;
  border: 1px solid #d6dfe6;
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px rgba(10, 36, 64, 0.04);
}

.sisa-section-card,
.sisa-data-card,
.sisa-form-card,
.sisa-detail-card {
  padding: 2rem;
}

.sisa-login-card {
  padding: 2.5rem;
}

.sisa-section-header {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.sisa-section-header h2,
.sisa-section-header h3,
.sisa-section-header h4 {
  margin: 0;
}

.sisa-data-table {
  margin-bottom: 0;
}

.sisa-data-table > thead > tr > th,
.sisa-data-table > tbody > tr > td {
  padding: 0.7rem 0.65rem;
}

.sisa-data-table th {
  border-top: 0;
  color: #285f82;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.sisa-data-table td {
  vertical-align: middle;
}

.sisa-table-primary {
  width: 38%;
}

.sisa-table-actions-cell {
  white-space: nowrap;
  width: 1%;
}

.sisa-table-actions {
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.9rem;
  justify-content: flex-end;
}

.sisa-table-actions .btn-link {
  padding: 0;
}

.sisa-data-table .sisa-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  word-break: break-word;
}

.sisa-status {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.45rem 0.75rem;
}

.sisa-status-active,
.sisa-status-human,
.sisa-status-machine {
  background: rgba(160, 200, 100, 0.16);
  color: #3f6c12;
}

.sisa-status-inactive,
.sisa-status-unverified {
  background: rgba(216, 56, 66, 0.12);
  color: #b01822;
}

.sisa-status-machine {
  background: rgba(40, 95, 130, 0.12);
  color: #285f82;
}

.sisa-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.sisa-actions .btn {
  white-space: nowrap;
}

.sisa-form-grid {
  display: grid;
  gap: 1.25rem;
}

.sisa-form-grid .form-check {
  padding-left: 1.75rem;
}

.sisa-form-grid .form-check-input {
  margin-left: -1.75rem;
}

.sisa-field-help {
  color: #5a6b79;
  font-size: 0.875rem;
  margin-top: 0.35rem;
}

.sisa-field-errors {
  color: #b01822;
  font-size: 0.875rem;
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
}

.sisa-detail-table th {
  color: #285f82;
  width: 12rem;
}

.sisa-detail-table > tbody > tr > th,
.sisa-detail-table > tbody > tr > td {
  padding: 0.7rem 0.4rem;
  vertical-align: middle;
}

.sisa-timestamp-note {
  color: #5a6b79;
  font-size: 0.875rem;
  margin: 0 0 1rem;
}

.sisa-detail-timestamp {
  white-space: nowrap;
}

.sisa-detail-table tr:first-child th,
.sisa-detail-table tr:first-child td {
  border-top: 0;
}

.sisa-code-block,
.sisa-api-content pre {
  background: #0e2436;
  border-radius: 0.5rem;
  color: #eef5fb;
  overflow-x: auto;
  padding: 1rem 1.25rem;
}

.sisa-api-content code {
  color: inherit;
}

.sisa-api-content h2,
.sisa-api-content h4,
.sisa-api-content h5 {
  margin-top: 2rem;
}

.sisa-api-content ul {
  padding-left: 1.25rem;
}

.sisa-empty-state {
  color: #5a6b79;
  padding: 1rem 0;
  text-align: center;
}

.sisa-footer {
  padding-top: 0;
}

@media (max-width: 991.98px) {
  .sisa-detail-table th,
  .sisa-detail-table td {
    display: block;
    width: 100%;
  }

  .sisa-detail-table th {
    border-bottom: 0;
    padding-bottom: 0.25rem;
  }

  .sisa-detail-table td {
    padding-top: 0;
  }

  .sisa-detail-timestamp {
    white-space: normal;
  }
}

@media (max-width: 767.98px) {
  .navbar-brand-subtitle {
    display: none;
  }

  .sisa-page-header {
    padding-bottom: 1rem;
    padding-top: 1rem;
  }

  .sisa-section-card,
  .sisa-data-card,
  .sisa-form-card,
  .sisa-detail-card,
  .sisa-login-card {
    border-radius: 0.75rem;
    padding: 1.25rem;
  }
}
