html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  min-height: 100vh;
  color: #172033;
}

[x-cloak] {
  display: none !important;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.15rem rgba(34, 99, 255, 0.18);
}

.app-shell {
  min-height: 100vh;
  display: flex;
  background: linear-gradient(180deg, #f5f7fb 0%, #eef2f7 100%);
}

.app-sidebar {
  width: 280px;
  background: linear-gradient(180deg, #13203a 0%, #1d2f57 100%);
  color: #f8fbff;
  padding: 1.5rem;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1040;
  transform: translateX(-100%);
  transition: transform 0.2s ease;
}

.app-sidebar.is-open {
  transform: translateX(0);
}

.sidebar-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.75rem;
}

.app-nav-link {
  display: block;
  padding: 0.875rem 1rem;
  border-radius: 1rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
}

.app-nav-link:hover,
.app-nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.app-main {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(23, 32, 51, 0.08);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.app-content {
  padding: 1.25rem;
}

.app-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 1035;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.2), transparent 30%),
    radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.18), transparent 30%),
    #f4f7fb;
}

.login-card {
  width: min(100%, 980px);
  border: 0;
  border-radius: 1.75rem;
  overflow: hidden;
  box-shadow: 0 1.5rem 4rem rgba(15, 23, 42, 0.12);
}

.login-panel {
  background: linear-gradient(160deg, #10203a 0%, #194782 100%);
  color: #f8fbff;
}

.dashboard-notes li {
  padding-left: 1.25rem;
  position: relative;
  color: var(--bs-secondary-color);
}

.dashboard-notes li + li {
  margin-top: 0.9rem;
}

.dashboard-notes li::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #2563eb;
  position: absolute;
  left: 0;
  top: 0.45rem;
}

.booked-auditor-list {
  max-height: 26rem;
  overflow: auto;
}

.job-directory {
  max-height: 34rem;
  overflow: auto;
}

.job-selection-list {
  max-width: 100%;
}

.job-selection-card {
  box-shadow: 0 0.75rem 2rem rgba(15, 23, 42, 0.06);
}

.job-switch-form {
  flex-shrink: 0;
}

.job-switch-button {
  min-width: 10rem;
}

.upload-preview {
  max-height: 32rem;
  overflow: auto;
  font-size: 0.875rem;
}

.language-select {
  min-width: 9rem;
}

.expense-editor-form {
  max-width: 100%;
}

.expense-readonly-field {
  display: flex;
  align-items: center;
  background: #f8fafc;
  color: #334155;
}

.expense-comment-box {
  min-height: 8rem;
}

.staff-picker {
  position: relative;
}

.staff-picker-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  z-index: 30;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 1rem;
  background: #fff;
  overflow: hidden;
}

.staff-picker-option {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  background: #fff;
  text-align: left;
  padding: 0.85rem 1rem;
  display: grid;
  gap: 0.1rem;
}

.staff-picker-option:last-child {
  border-bottom: 0;
}

.staff-picker-option:hover,
.staff-picker-option.is-active {
  background: #eff6ff;
}

.staff-picker-option-id {
  font-weight: 700;
  color: #0f172a;
}

.staff-picker-option-name {
  color: #334155;
}

.staff-picker-option-meta {
  color: #64748b;
  font-size: 0.875rem;
}

@media (max-width: 767.98px) {
  .app-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .app-topbar > div:last-child {
    width: 100%;
    justify-content: space-between;
  }

  .job-switch-form,
  .job-switch-button {
    width: 100%;
  }
}

@media (min-width: 992px) {
  .app-sidebar {
    transform: translateX(0);
    position: sticky;
    top: 0;
    height: 100vh;
  }

  .app-main {
    width: calc(100% - 280px);
  }

  .app-content {
    padding: 1.5rem;
  }
}
