body {
  font-size: 0.95rem;
}

.card-header h5 {
  font-weight: 600;
}

.text-uppercase.text-secondary {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.auth-bg {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("/static/img/logo.png") no-repeat center center fixed;
  background-size: cover;
}

.auth-card {
  max-width: 420px;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.9);
}

.app-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.sidebar {
  width: 260px;
  min-width: 260px;
  flex: 0 0 260px;
  position: relative;
  overflow: hidden;
  transition:
    width 0.25s ease,
    min-width 0.25s ease,
    flex-basis 0.25s ease;
}

.sidebar.sidebar-collapsed {
  width: 0;
  min-width: 0;
  flex-basis: 0;
}

.main-content {
  min-width: 0;
  flex: 1 1 auto;
  background-color: #ffffff;
}

.sidebar-backdrop {
  display: none;
}

.sidebar-nav .nav-link {
  transition: background-color 0.15s ease, color 0.15s ease;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link:focus {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.sidebar-nav .nav-link.bg-primary:hover,
.sidebar-nav .nav-link.bg-primary:focus {
  background-color: #0d6efd;
  color: #ffffff;
}

.cases-chart-wrapper {
  position: relative;
  height: 35vh;
  max-height: 300px;
  width: 100%;
}

#org-list .list-group-item.org-selected {
  background-color: #0d6efd;
  border-color: #0d6efd;
  color: #ffffff;
  font-weight: 600;
}

/* Admin dashboard request tables */
.dashboard-table {
  min-width: 1280px;
  width: 100%;
  table-layout: auto;
}

.dashboard-table th,
.dashboard-table td {
  vertical-align: middle;
}

.dashboard-table .col-id {
  width: 55px;
  white-space: nowrap;
}

.dashboard-table .col-name {
  min-width: 200px;
  width: 220px;
}

.dashboard-table .col-name .person-name {
  display: block;
  color: #212529;
  font-weight: 600;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: break-word;
}

.dashboard-table .col-name a.person-name {
  color: #0d6efd;
}

.dashboard-table .col-name a.person-name:hover {
  color: #0a58ca;
  text-decoration: underline !important;
}

.dashboard-table .member-number {
  display: block;
  margin-top: 2px;
  color: #6c757d;
  font-size: 0.75rem;
}

.dashboard-table .col-employer {
  min-width: 155px;
}

.dashboard-table .col-contact {
  min-width: 125px;
  white-space: nowrap;
}

.dashboard-table .col-status {
  min-width: 95px;
  white-space: nowrap;
}

.dashboard-table .col-submitted {
  min-width: 145px;
  white-space: nowrap;
}

.dashboard-table .col-origin {
  min-width: 190px;
}

.dashboard-table .col-actions {
  min-width: 180px;
}

.dashboard-table .col-attachment {
  min-width: 125px;
  white-space: nowrap;
}

/* Mobile and small-tablet sidebar drawer */
@media (max-width: 767.98px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    width: 280px;
    min-width: 280px;
    height: 100vh;
    flex-basis: 280px;
    overflow-y: auto;
    transform: translateX(0);
    transition: transform 0.25s ease;
  }

  .sidebar.sidebar-collapsed {
    width: 280px;
    min-width: 280px;
    flex-basis: 280px;
    transform: translateX(-100%);
  }

  .main-content {
    width: 100%;
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1030;
    background: rgba(0, 0, 0, 0.45);
  }

  body.sidebar-open .sidebar-backdrop {
    display: block;
  }

  #sidebar-toggle {
    position: fixed;
    top: 12px;
    right: 16px;
    z-index: 1050;
  }
}

@media (max-width: 992px) {
  .dashboard-table {
    min-width: 1280px;
  }
}

/* Reports: member and organisation picker buttons */
#openMemberPicker,
#openOrganisationPicker {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  min-height: 42px !important;
  padding: 0.375rem 0.75rem !important;
  background-color: #ffffff !important;
  border: 1px solid #ced4da !important;
  border-radius: 0.375rem !important;
  font-weight: 400 !important;
  color: #212529 !important;
  text-align: left !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}

#openMemberPicker:hover,
#openOrganisationPicker:hover {
  background-color: #f8f9fa !important;
  border-color: #adb5bd !important;
}

#openMemberPicker:focus,
#openOrganisationPicker:focus {
  border-color: #86b7fe !important;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
  outline: none !important;
}

#openMemberPicker span,
#openOrganisationPicker span {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

#openMemberPicker i,
#openOrganisationPicker i {
  flex-shrink: 0 !important;
}

/* Report picker buttons */
.picker-button {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  min-height: 42px !important;
  padding: 0.375rem 0.75rem !important;
  background-color: #ffffff !important;
  border: 1px solid #ced4da !important;
  border-radius: 0.375rem !important;
  font-size: 0.95rem !important;
  font-weight: 400 !important;
  color: #212529 !important;
  text-align: left !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image: none !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}

.picker-button:hover {
  background-color: #f8f9fa !important;
  border-color: #adb5bd !important;
}

.picker-button:focus {
  border-color: #86b7fe !important;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
  outline: none !important;
}

.picker-button span {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.picker-button i {
  flex-shrink: 0 !important;
}

/* Complaint / Dispute number search */
.case-number-search {
  position: relative;
  width: 100%;
}

.case-number-search i {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  color: #6c757d;
  pointer-events: none;
  z-index: 2;
}

.case-number-search .form-control {
  width: 100%;
  min-height: 42px;
  padding-left: 38px;
  padding-right: 12px;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  background-color: #ffffff;
}

.case-number-search .form-control:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
  outline: none;
}