.container-xl {
  max-width: 100%;
}

.requests-summary-table .summary-badge {
  display: inline-block;
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

@media (max-width: 1399px) {
  .requests-summary-table .summary-badge {
    max-width: 11rem;
  }
}

.teams-table td:last-child .badge,
.requests-table td:last-child .badge,
.users-table td:last-child .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
}

.users-table tbody tr.arrival-request-row {
  background-color: rgba(13, 110, 253, 0.08);
}

.request-history-row--arrival > * {
  background-color: color-mix(in srgb, var(--app-accent-green) 8%, white) !important;
}

.request-history-row--departure > * {
  background-color: color-mix(in srgb, var(--app-accent-red) 8%, white) !important;
}

.request-history-row--account_extension > * {
  background-color: color-mix(in srgb, var(--app-accent-purple) 8%, white) !important;
}

.request-history-row--extension > * {
  background-color: color-mix(in srgb, var(--tblr-warning) 10%, white) !important;
}

.request-history-row--move > * {
  background-color: color-mix(in srgb, var(--app-accent-blue) 8%, white) !important;
}

html[data-bs-theme="dark"] .request-history-row--arrival > * {
  background-color: color-mix(in srgb, var(--app-accent-green) 14%, var(--app-dark-surface)) !important;
}

html[data-bs-theme="dark"] .request-history-row--departure > * {
  background-color: color-mix(in srgb, var(--app-accent-red) 14%, var(--app-dark-surface)) !important;
}

html[data-bs-theme="dark"] .request-history-row--account_extension > * {
  background-color: color-mix(in srgb, var(--app-accent-purple) 14%, var(--app-dark-surface)) !important;
}

html[data-bs-theme="dark"] .request-history-row--extension > * {
  background-color: color-mix(in srgb, var(--tblr-warning) 18%, var(--app-dark-surface)) !important;
}

html[data-bs-theme="dark"] .request-history-row--move > * {
  background-color: color-mix(in srgb, var(--app-accent-blue) 14%, var(--app-dark-surface));
}

html[data-bs-theme="dark"] .card.card-arrival > .card-header {
  background-color: var(--tblr-green-lt) !important;
}

html[data-bs-theme="dark"] .card.card-arrival {
  --app-accent-card-body-bg: color-mix(in srgb, var(--app-accent-green) 14%, var(--app-dark-surface));
  --app-accent-card-body-color: color-mix(in srgb, var(--app-accent-green) 22%, var(--app-dark-text-strong));
}

html[data-bs-theme="dark"] .card.card-departure > .card-header {
  background-color: var(--tblr-red-lt) !important;
}

html[data-bs-theme="dark"] .card.card-departure {
  --app-accent-card-body-bg: color-mix(in srgb, var(--app-accent-red) 14%, var(--app-dark-surface));
  --app-accent-card-body-color: color-mix(in srgb, var(--app-accent-red) 22%, var(--app-dark-text-strong));
}

html[data-bs-theme="dark"] .card.card-account-extension > .card-header {
  background-color: var(--tblr-purple-lt) !important;
}

html[data-bs-theme="dark"] .card.card-account-extension {
  --app-accent-card-body-bg: color-mix(in srgb, var(--app-accent-purple) 14%, var(--app-dark-surface));
  --app-accent-card-body-color: color-mix(in srgb, var(--app-accent-purple) 22%, var(--app-dark-text-strong));
}

html[data-bs-theme="dark"] .card.card-extension > .card-header {
  background-color: var(--tblr-yellow-lt) !important;
}

html[data-bs-theme="dark"] .card.card-extension {
  --app-accent-card-body-bg: color-mix(in srgb, var(--tblr-warning) 18%, var(--app-dark-surface));
  --app-accent-card-body-color: color-mix(in srgb, var(--tblr-warning) 18%, #f7edd3);
}

html[data-bs-theme="dark"] .card.card-move > .card-header {
  background-color: var(--tblr-blue-lt) !important;
}

html[data-bs-theme="dark"] .card.card-move {
  --app-accent-card-body-bg: color-mix(in srgb, var(--app-accent-blue) 14%, var(--app-dark-surface));
  --app-accent-card-body-color: color-mix(in srgb, var(--app-accent-blue) 22%, var(--app-dark-text-strong));
}

.user-request-themed-card {
  background: color-mix(in srgb, var(--request-theme-accent) 6%, white) !important;
  border: 1px solid color-mix(in srgb, var(--request-theme-accent) 35%, #d9e7ef);
  border-left-width: 4px;
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--request-theme-accent) 8%, transparent),
    0 10px 20px -20px rgba(45, 67, 78, 0.28);
}

.user-request-themed-card .card-title,
.user-request-themed-card .card-body,
.user-request-themed-card .card-title a {
  color: var(--request-theme-text) !important;
}

.user-request-card-body {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.user-request-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.user-request-card-title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  min-width: 0;
}

.user-request-card-icon {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--request-theme-accent) 16%, white);
  flex: 0 0 auto;
  color: var(--request-theme-text);
}

.user-request-card-title {
  font-size: 0.95rem;
  line-height: 1.2;
}

.user-request-card-subtitle {
  font-size: 0.75rem;
  color: color-mix(in srgb, var(--request-theme-text) 72%, #6c7a86);
  line-height: 1.2;
  margin-top: 0.15rem;
}

.user-request-card-status {
  margin-top: 0.1rem;
}

.user-request-card-status > * {
  width: 100%;
}

.user-request-card-status .badge {
  font-size: 0.72rem;
}

.user-request-card-status-header {
  flex: 0 0 auto;
  margin-top: 0.05rem;
}

.user-request-card-status-header > * {
  width: auto;
}

.user-request-card-status-header .d-flex {
  justify-content: flex-end;
}

.user-request-card-status-footer {
  margin-top: 0;
}

.user-request-card-status-footer .d-flex.flex-column {
  gap: 0.2rem !important;
}

.user-request-card-status-footer .d-flex.flex-wrap {
  gap: 0.25rem !important;
}

.user-request-card-status-footer .badge {
  font-size: 0.68rem;
  line-height: 1.05;
  padding: 0.22rem 0.35rem;
}

html[data-bs-theme="dark"] .user-request-themed-card {
  background: color-mix(in srgb, var(--request-theme-accent) 10%, var(--app-dark-surface)) !important;
  border-color: color-mix(in srgb, var(--request-theme-accent) 45%, var(--app-dark-border));
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--request-theme-accent) 12%, transparent),
    0 12px 22px -22px rgba(0, 0, 0, 0.4);
}

html[data-bs-theme="dark"] .user-request-themed-card .card-title,
html[data-bs-theme="dark"] .user-request-themed-card .card-body,
html[data-bs-theme="dark"] .user-request-themed-card .card-title a {
  color: color-mix(in srgb, var(--request-theme-accent) 18%, var(--app-dark-text-strong)) !important;
}

html[data-bs-theme="dark"] .user-request-card-icon {
  background: color-mix(in srgb, var(--request-theme-accent) 18%, var(--app-dark-surface-strong));
  color: color-mix(in srgb, var(--request-theme-accent) 18%, var(--app-dark-text-strong));
}

html[data-bs-theme="dark"] .user-request-card-subtitle {
  color: color-mix(in srgb, var(--request-theme-accent) 12%, #b8ccd7);
}

.user-detail-page .user-detail-actions-wrapper {
  position: sticky;
  top: 0.75rem;
  z-index: 100;
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
}

.user-detail-page .user-detail-actions {
  background: var(--tblr-bg-surface);
  border: 1px solid var(--tblr-border-color);
  border-radius: 0.75rem;
  padding: 0.75rem;
  box-shadow: 0 0.25rem 0.75rem rgba(31, 41, 55, 0.08);
  --bs-gutter-y: 0;
  --bs-gutter-x: 0.5rem;
}

.user-detail-page .user-detail-actions.row {
  --bs-gutter-y: 0 !important;
}

.user-detail-page .user-detail-card {
  border-radius: 0.75rem;
  border: 1px solid var(--tblr-border-color);
  overflow: hidden;
}

.user-detail-page .user-detail-card .card-status-start {
  border-radius: 0.75rem 0 0 0.75rem;
}

.user-detail-page .user-detail-card .card-header {
  min-height: 3.25rem;
  display: flex;
  align-items: center;
}

.user-detail-page .user-detail-card .card-title {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.user-detail-page .user-detail-card-body > .mb-3:last-child {
  margin-bottom: 0 !important;
}

.user-detail-page .user-workflow-card {
  border-radius: 0.75rem;
}

.layout-aligned-section {
  margin-left: -0.25rem;
  margin-right: -0.25rem;
}

@media (max-width: 991px) {
  .user-workflow-card .user-workflow-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 0.1rem;
    padding-bottom: 0.1rem;
  }

  .user-workflow-card .user-workflow-arrow-icon {
    display: inline-flex;
    transform: rotate(90deg);
    transform-origin: center;
  }
}

.user-detail-page .user-history-section {
  margin-top: 1rem;
}

.user-detail-page .user-api-access-switch {
  background: var(--tblr-bg-surface-secondary);
}

.user-detail-page .form-label {
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.user-detail-page .form-control:disabled,
.user-detail-page .form-select:disabled,
.user-detail-page .form-check-input:disabled {
  opacity: 1;
  cursor: not-allowed;
  background-color: var(--tblr-bg-surface-secondary);
  border-color: var(--tblr-border-color);
}

