.table-clickable-rows tbody tr {
  cursor: pointer;
}

.custom-file-label::after {
  background-color: #9d0525;
  color: #ffffff;
}

#avatar_cropper {
  max-height: calc(100vh - 60px);
  width: 100%;
}

#dashboard .card-body .icon-container {
  display: inline-block;
  background-color: #9d0525;
  margin-bottom: 1em;
  padding: 1em;
}
#dashboard .card-body .icon-container i {
  color: #ffffff;
  font-size: 4em;
}

#dashboard .card-body .dash-board-icon {
  display: inline-block;
  background-color: transparent;
  margin-bottom: 1em;
  padding: 1em;
  border: 2px solid #292a2b;
}

.select2-container--bootstrap .select2-selection--multiple .select2-selection__choice__remove {
  border: 0;
  background-color: transparent;
}

.is-invalid .select2-container--bootstrap .select2-selection {
  border-color: #ea5455;
}

.import_btn {
  position: absolute;
  right: 20px;
}

.dataTables_wrapper .buttons-csv:hover {
  border-color: #1e1e1e !important;
  color: #fff !important;
  box-shadow: 0 8px 25px -8px #9d0525;
  background-image: none !important;
  border: none !important;
}
.dataTables_wrapper .dt-buttons {
  position: absolute;
  right: 108px;
  top: -54px;
}
.dataTables_wrapper .buttons-csv {
  border-color: #1e1e1e !important;
  background-color: #1e1e1e !important;
  color: #fff;
  background-image: none;
  display: inline-block;
  font-weight: 400;
  font-size: 1rem;
  text-align: center;
  vertical-align: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  background-color: transparent;
  border: 0 solid transparent;
  padding: 0.9rem 2rem;
  font-size: 1rem;
  line-height: 1;
  border-radius: 0.4285rem;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.fc-bootstrap4 .table-bordered th, .fc-bootstrap4 .table-bordered td {
  border: 1px solid #e4e4e4;
}

.fc-header-toolbar .fc-center .btn-group button {
  background-color: transparent !important;
  border: 1px solid #9d0626;
  color: #9d0626;
  padding: 20px;
  line-height: 2px;
  font-size: 16px;
}
.fc-header-toolbar .fc-center .btn-group button:hover, .fc-header-toolbar .fc-center .btn-group button.active {
  background-color: #9d0626 !important;
  color: #fff;
  border-color: #9d0626 !important;
}

.fc-basic-view .fc-body .fc-row {
  height: 80px !important;
  min-height: 80px;
}

.fc-day-grid-container {
  height: auto !important;
}

.fc-right h2 {
  font-size: 16px;
  margin: 0;
  vertical-align: middle;
  margin-top: 6px;
}

.fc-today-button {
  background-color: transparent !important;
  border: 1px solid #9d0626;
  color: #9d0626 !important;
  padding: 20px !important;
  line-height: 2px;
  font-size: 16px !important;
}
.fc-today-button:hover {
  background-color: #9d0626 !important;
  color: #fff;
}

.file_manager_listing .directory_name {
  display: flex;
}

.file_manager_listing .directory_name h5 {
  margin: 0;
  padding-left: 10px;
  font-size: 14px;
}

.file_manager_listing .directory_actions button i {
  font-size: 12px;
}

.file_manager_listing .directory_actions button {
  padding: 5px 12px;
}

.brand-small {
  padding-left: 1rem;
  font-weight: 600;
  letter-spacing: 0.01rem;
  font-size: 1.3rem;
  padding-top: 1.2em !important;
}

.level_form_container input[type=text],
.level_form_container input[type=email],
.level_form_container input[type=tel],
.level_form_container input[type=number],
select,
textarea {
  display: block;
  width: 100%;
  padding: 0.7rem 0.7rem;
  font-size: 0.96rem;
  font-weight: 400;
  line-height: 1.25;
  color: #4e5154;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.level_form_container textarea {
  line-height: 1.6rem;
  font-size: 1rem;
  height: auto;
}

.level_form_container p {
  color: #464646;
  font-size: 0.85rem;
  padding-left: 0.2rem;
}

.notification_title {
  border-bottom: 2px solid #d3d3d3;
  display: block;
  margin-bottom: 20px;
  padding-bottom: 8px;
  font-weight: 600;
  font-size: 18px;
}

.notification_desc {
  display: block;
  width: 100%;
}

.notification_date {
  display: block;
  text-align: right;
  font-size: 12px;
  font-weight: 600;
  color: #9d0525;
  padding-top: 25px;
}

/* Directory page styling */
.employee_listing .card-body {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.employee_listing .card-body .emp_icon {
  margin-right: 30px;
  font-size: 67px;
  line-height: normal;
}

.employee_listing .card-body .emp_icon img {
  width: 155px;
  height: 155px;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 100px;
}

.employee_listing .card-body .emp_information {
  width: 100%;
}

.employee_listing .card-body .emp_information .card-text span {
  background: #cfcfcf;
  padding: 3px 7px;
  margin-right: 7px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
}

.employee_listing .card-body .emp_information .card-title {
  margin-bottom: 15px;
}

.employee_listing .card-body .emp_information .btn {
  padding: 10px 15px;
  font-size: 12px;
}

.employee_listing .card-body .emp_information .emp_address {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.employee_listing .card-body .emp_information .emp_address p {
  margin-bottom: 0px;
}

.employee_searchbox .card-body {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.employee_searchbox .card-body .form-group {
  width: 100%;
  margin-right: 15px;
  margin-bottom: 0px;
}

.employee_searchbox .card-body .form-group label {
  font-size: 14px;
  font-weight: 600;
  padding-bottom: 6px;
}

.employee_searchbox .card-body .form-group .btn {
  margin-top: 24px;
}

.text-bold {
  font-weight: bold;
}

.sidebar-menu-title {
  vertical-align: middle;
}

.sidebar-submenu-title {
  padding-left: 30px;
  vertical-align: middle;
}

.bootstrap-tagsinput .tag {
  background-color: #9d0525;
  padding: 3px 10px;
  border-radius: 5px;
}

/* Task Management */
.card-list {
  margin-bottom: 0.75rem;
  border-radius: 0.5rem;
  padding: 1rem;
  background: #dee2e6;
}

.card-list .card {
  border: none;
  margin-bottom: 1.2rem;
}

.card-list .card-list-head {
  display: flex;
  justify-content: space-between;
}

.card-list .card-list-head h6 {
  font-size: 15px;
  margin-bottom: 11px;
  font-weight: 600;
}

.card-list .card:last-child {
  margin-bottom: 0;
}

.card-task .card-title {
  margin: 0;
}

.card-task .card-body, .card-task .card-meta {
  display: flex;
  align-items: center;
}

.card-task .card-body {
  justify-content: space-between;
}

.card-task .card-options {
  margin-left: 1.5rem;
  position: relative;
  top: 0;
  right: 0;
}

.card-task .avatars {
  margin-right: 1.5rem;
}

.card .avatar {
  border-color: #fff;
  background: #fff;
}

.avatars {
  padding-left: 0;
  list-style: none;
  margin: 0;
}

.avatars > li {
  display: inline-block;
}

.avatars > li + li {
  margin-left: -0.75rem;
}

.btn-options {
  color: #6c757d;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.card > .progress {
  height: 0.1875rem;
  background: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1;
}

.card > .progress .progress-bar {
  height: 1rem;
  border-radius: 0.5rem 0 0 0;
}

.card > .progress .progress-bar[style="width: 100%"] {
  border-radius: 0.5rem 0.5rem 0 0;
}

.card .text-small {
  font-size: 0.875rem;
  line-height: 1.3125rem;
}

.card-title h6 {
  margin: 0;
  color: #000;
  font-size: 17px;
}

.input-group {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  width: 100%;
}

.input-group > .form-control,
.input-group > .form-control-plaintext,
.input-group > .custom-select,
.input-group > .custom-file {
  position: relative;
  flex: 1 1 auto;
  width: 1%;
  min-width: 0;
  margin-bottom: 0;
}

.input-group > .form-control + .form-control,
.input-group > .form-control + .custom-select,
.input-group > .form-control + .custom-file,
.input-group > .form-control-plaintext + .form-control,
.input-group > .form-control-plaintext + .custom-select,
.input-group > .form-control-plaintext + .custom-file,
.input-group > .custom-select + .form-control,
.input-group > .custom-select + .custom-select,
.input-group > .custom-select + .custom-file,
.input-group > .custom-file + .form-control,
.input-group > .custom-file + .custom-select,
.input-group > .custom-file + .custom-file {
  margin-left: -1px;
}

.input-group > .form-control:focus,
.input-group > .custom-select:focus,
.input-group > .custom-file .custom-file-input:focus ~ .custom-file-label {
  z-index: 3;
}

.input-group > .custom-file .custom-file-input:focus {
  z-index: 4;
}

.input-group > .form-control:not(:last-child),
.input-group > .custom-select:not(:last-child) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.input-group > .form-control:not(:first-child),
.input-group > .custom-select:not(:first-child) {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.input-group > .custom-file {
  display: flex;
  align-items: center;
}

.input-group > .custom-file:not(:last-child) .custom-file-label,
.input-group > .custom-file:not(:last-child) .custom-file-label::after {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.input-group > .custom-file:not(:first-child) .custom-file-label {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.input-group-prepend,
.input-group-append {
  display: flex;
}

.input-group-prepend .btn,
.input-group-append .btn {
  position: relative;
  z-index: 2;
}

.input-group-prepend .btn:focus,
.input-group-append .btn:focus {
  z-index: 3;
}

.input-group-prepend .btn + .btn,
.input-group-prepend .btn + .input-group-text,
.input-group-prepend .input-group-text + .input-group-text,
.input-group-prepend .input-group-text + .btn,
.input-group-append .btn + .btn,
.input-group-append .btn + .input-group-text,
.input-group-append .input-group-text + .input-group-text,
.input-group-append .input-group-text + .btn {
  margin-left: -1px;
}

.input-group-text {
  display: flex;
  align-items: center;
  padding: 0.4375rem 1rem;
  margin-bottom: 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(33, 37, 41, 0.5);
  text-align: center;
  white-space: nowrap;
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
}

.input-group-prepend {
  margin-right: -1px;
}

.input-group-append {
  margin-left: -1px;
}

.input-group-prepend .input-group-text {
  padding-right: 0;
}

.input-group-prepend .input-group-text .material-icons {
  font-size: 1.125rem;
}

.input-group-prepend + .form-control {
  border-left: none;
  padding-left: 0.5rem;
}

.input-group-round .input-group-prepend .input-group-text {
  border-radius: 10rem 0 0 10rem;
}

.input-group-round .input-group-prepend + .form-control {
  border-radius: 0 10rem 10rem 0;
}

.input-group-text {
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.input-group:focus-within .input-group-text, .input-group:focus-within .form-control {
  border-color: #99caff;
}

.content-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.content-list-head > div:first-child {
  margin-bottom: 0.75rem;
}

.content-list-head {
  margin-bottom: 0.7rem;
}

.content-list-head h3, .content-list-head h5 {
  margin: 0;
  display: inline-block;
}

.content-list-head > [class*=col] {
  display: flex;
  align-items: center;
}

.content-list + .content-list {
  margin-top: 1.5rem;
}

.btn-round {
  width: 2rem;
  height: 2rem;
  line-height: 2rem;
  border-radius: 50%;
  padding: 0;
  background: #dee2e6;
  display: flex;
  align-items: center;
  justify-content: center;
}

h3 + .btn-round, h5 + .btn-round {
  margin-left: 0.75rem;
}

.nav-tabs .nav-link {
  padding: 0.5rem 2.5rem;
}

.nav-tabs + .tab-content {
  margin-top: 1.5rem;
}

.nav-tabs {
  border-radius: 0.5rem;
  background: #e9ecef;
}

.nav-tabs .nav-item {
  margin: 0.5rem;
}

.nav-tabs .nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.5rem;
  padding: 0.5rem;
  transition: color 0.35s ease-out;
}

.nav-tabs .nav-link:not(.active) {
  color: rgba(33, 37, 41, 0.5);
}

.nav-tabs .nav-link:not(.active):hover {
  color: #007bff;
}

.nav-tabs .nav-link.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.nav-tabs.flex-column .nav-link {
  padding-left: 1rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.nav-link {
  display: block;
  padding: 0.5rem 1rem;
}

.nav-link:hover, .nav-link:focus {
  text-decoration: none;
}

.nav-link.disabled {
  color: #6c757d;
  pointer-events: none;
  cursor: default;
}

.nav-tabs {
  border-bottom: 0 solid transparent;
}

.nav-tabs .nav-item {
  margin-bottom: 0;
}

.nav-tabs .nav-link {
  border: 0 solid transparent;
  border-top-left-radius: 0.25rem;
  border-top-right-radius: 0.25rem;
}

.nav-tabs .nav-link:hover, .nav-tabs .nav-link:focus {
  border-color: #e9ecef #e9ecef transparent;
}

.nav-tabs .nav-link.disabled {
  color: #6c757d;
  background-color: transparent;
  border-color: transparent;
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
  color: #007bff;
  background-color: #fff;
  border-color: transparent;
}

.nav-tabs .dropdown-menu {
  margin-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.nav-pills .nav-link {
  border-radius: 0.25rem;
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  color: #fff;
  background-color: #007bff;
}

.nav-fill > .nav-link,
.nav-fill .nav-item {
  flex: 1 1 auto;
  text-align: center;
}

.nav-justified > .nav-link,
.nav-justified .nav-item {
  flex-basis: 0;
  flex-grow: 1;
  text-align: center;
}

.avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 2px solid #f8f9fa;
  background: #f8f9fa;
  color: #fff;
}

.avatar.bg-primary {
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar.bg-primary i {
  font-size: 1rem;
}

.avatar.avatar-lg {
  width: 3rem;
  height: 3rem;
}

.avatar.avatar-sm {
  width: 1.5rem;
  height: 1.5rem;
}

.list-group-activity .avatars {
  margin-right: 0.75rem;
  display: flex;
  align-items: center;
}

.list-group-activity span {
  margin-right: 0.25rem;
}

.modal-body .form-group.row {
  margin-right: 0;
}

.employee-profile .card {
  border-radius: 10px;
}

.employee-profile .card .card-header .profile_img {
  width: 125px;
  height: 125px;
  -o-object-fit: cover;
     object-fit: cover;
  margin: 0px auto;
  border: 5px solid #fff;
  border-radius: 50%;
  margin-top: -50px;
}

.employee-profile .card h3 {
  font-size: 20px;
  font-weight: 700;
}

.employee-profile .card .card-header h3 {
  color: #fff;
}

.employee-profile .card p {
  font-size: 16px;
  color: #000;
}

.employee-profile .complete_details {
  display: none;
}

.employee-profile .file_icon {
  padding-right: 5px;
  color: #9d0525;
}

.employee-profile .eye_icon {
  margin-top: 6px;
  padding-left: 7px;
  color: #9d0525;
}

.employee-profile .download_icon {
  margin-top: 6px;
  color: #00cfe8;
}

.employee_personal_detail_files .upload-btn-wrapper {
  position: relative;
  overflow: hidden;
  display: inline-block;
  margin-top: 10px;
}

.employee_personal_detail_files .btn {
  border: 2px solid gray;
  color: gray;
  background-color: white;
  padding: 5px 15px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: bold;
}

.employee_personal_detail_files .upload-btn-wrapper input[type=file] {
  font-size: 100px;
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
}

#interviewModal .modal-body .custom_radio_buttons {
  display: block;
  margin-bottom: 15px;
}

#interviewModal .modal-body .custom_radio_buttons label {
  font-size: 14px;
  cursor: pointer;
}

#interviewModal .modal-body .form-control {
  margin-bottom: 15px;
}

#interviewModal ul {
  padding-left: 15px;
  list-style-type: none;
}

.employee-profile .card .card-header {
  padding: 1.5rem 1.5rem;
  background-image: url(https://saueo.co.za/wp-content/uploads/2021/07/pattern-header-1.svg), linear-gradient(125deg, #771714 0%, #450601 100%) !important;
  background-size: cover;
  background-position: bottom center;
  background-repeat: no-repeat;
}

.employee_searchbox .ui-widget-header {
  background: #9d0525;
}

.employee_searchbox .ui-state-default, .ui-widget-content .ui-state-default {
  background: #b8c2cc;
  cursor: pointer;
}

.image_floral {
  background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDBweCIgdmlld0JveD0iMCAwIDEyODAgMTQwIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxnIGZpbGw9IiNmZmZmZmYiPjxwYXRoIGQ9Ik0wIDB2LjQ4QzE4LjYyIDkuMzggMjk3LjgxIDE0MCA2MzkuNSAxNDAgOTkzLjI0IDE0MCAxMjgwIDAgMTI4MCAweiIgZmlsbC1vcGFjaXR5PSIuMyIvPjxwYXRoIGQ9Ik0wIC42YzE0IDguMjggMTc2LjU0IDk5LjggNTU1LjQ1IDExOS4xNEM5NTIuNDEgMTQwIDEyODAgMCAxMjgwIDBIMHoiIGZpbGwtb3BhY2l0eT0iLjUiLz48cGF0aCBkPSJNNzI2LjI5IDEwMS4yQzExMjYuMzYgNzkuOTIgMTI4MSAwIDEyODEgMEgxYy4wNSAwIDMyNS4yNSAxMjIuNDggNzI1LjI5IDEwMS4yeiIvPjwvZz48L3N2Zz4=);
  background-size: 100% 57px;
  top: 120px;
  height: 100px;
  z-index: 1;
  display: block;
  background-repeat-y: no-repeat;
  position: absolute;
  pointer-events: none;
  width: 100%;
  left: 0;
  right: 0;
  transform: rotate(180deg);
}

.profile_main_header {
  height: 220px;
}

.directory_pages .content-wrapper {
  margin-top: 0 !important;
}

@media only screen and (max-width: 467px) {
  .employee_searchbox .card-body {
    flex-wrap: wrap;
  }
  .mobile_btns {
    text-align: center;
  }
  .mobile_btns .btn {
    margin-left: 0 !important;
    margin-bottom: 10px;
  }
  .employee_listing .card-body .emp_icon img {
    width: 70px;
    height: 70px;
  }
  .employee_listing .card-body {
    align-items: self-start;
  }
  .employee_listing .card-body .emp_icon {
    margin-right: 10px;
  }
  .employee-profile .form-group {
    margin-bottom: 0.5rem;
  }
  .employee-profile strong {
    margin-top: 12px;
    display: inline-block;
  }
  .image_floral {
    top: 123px;
  }
  .employee-profile .card .card-header h3 {
    font-size: 17px;
  }
  .employee-profile .card h3 {
    font-size: 22px;
  }
}
.bg-priority-high {
  background-color: #ea5455 !important;
}

.bg-priority-medium {
  background-color: #ff9f43 !important;
}

.bg-priority-low {
  background-color: #00759a !important;
}

/* Remuneration report page */
.extra-input::-webkit-outer-spin-button,
.extra-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.extra-input {
  -moz-appearance: textfield;
}

/* =====================================================
   MOBILE RESPONSIVENESS FIXES - Dashboard & Layout
   ===================================================== */

/* Mobile Navbar Improvements - Show only burger menu */
@media (max-width: 767.98px) {
  /* Fix navbar height - compact since only burger is shown */
  .header-navbar {
    min-height: 50px;
    height: auto;
    padding: 0.25rem 0;
  }

  /* Hide brand elements on mobile - use sidebar instead */
  .header-navbar .brand-logo,
  .header-navbar .brand-text,
  .header-navbar .brand-small {
    display: none !important;
  }

  /* Ensure burger menu toggle is visible and properly sized */
  .header-navbar .menu-toggle {
    display: flex !important;
    padding: 0.5rem !important;
  }

  /* Adjust navbar container padding */
  .header-navbar .navbar-container {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
  }

  /* Ensure navbar collapse doesn't add height */
  .header-navbar .navbar-collapse {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
  }

  /* Bookmark wrapper alignment */
  .header-navbar .bookmark-wrapper {
    justify-content: flex-start !important;
  }

  /* Fix content wrapper margin - reduced since navbar is compact */
  html body .content .content-wrapper {
    margin-top: 3.5rem !important;
    padding: 1rem 1rem 0 1rem !important;
  }

  /* Hide brand-small everywhere (removed from navbar) */
  .brand-small {
    display: none !important;
  }

  /* Mobile user profile in sidebar */
  .mobile-user-profile {
    position: sticky;
    bottom: 0;
    background: inherit;
  }
  .mobile-user-profile a {
    color: inherit;
    text-decoration: none;
    border-radius: 0.25rem;
    transition: background-color 0.2s;
  }
  .mobile-user-profile a:hover {
    background-color: rgba(0,0,0,0.05);
  }
  /* Ensure sidebar has proper padding at bottom for mobile profile */
  .main-menu .main-menu-content {
    padding-bottom: 1rem;
  }

  /* Fix content margin on mobile */
  html body .content {
    margin-left: 0 !important;
  }

  /* Adjust stat cards for mobile */
  .stat-cards {
    padding: 0 0.5rem;
  }

  .stat-cards > div {
    margin-bottom: 0.75rem;
  }

  /* Fix card spacing */
  .card {
    margin-bottom: 1rem;
  }

  /* Optimize dashboard cards */
  #dashboard .card {
    margin-bottom: 1rem;
  }

  /* Fix quick view form on mobile */
  #dashboard .card .card-header {
    flex-wrap: wrap;
  }

  #dashboard .card .card-header .form-inline {
    width: 100%;
    margin-top: 0.5rem;
  }

  #dashboard .card .card-header .form-group {
    margin-bottom: 0.5rem;
  }

  #dashboard .card .card-header .btn {
    width: 100%;
    margin-top: 0.25rem;
  }

  /* Fix container padding */
  #dashboard .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  /* Optimize resource cards */
  #dashboard .row.justify-content-center {
    margin: 0 -0.5rem;
  }

  #dashboard .row.justify-content-center > [class*="col-"] {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  /* Fix representative types and process cards */
  #dashboard .container.mt-5 {
    margin-top: 1.5rem !important;
  }

  /* Improve mobile navigation touch targets */
  .header-navbar .navbar-container ul.nav li > a.nav-link {
    padding: 1rem 0.5rem;
  }

  /* Fix dropdown menu positioning */
  .header-navbar .navbar-container ul.nav li.dropdown .dropdown-menu {
    top: 50px;
  }

  /* Fix user dropdown */
  .header-navbar .navbar-container ul.nav li a.dropdown-user-link {
    padding: 0.5rem;
  }

  /* Adjust mobile menu toggle */
  .header-navbar .navbar-container ul.nav li a.menu-toggle {
    padding: 1rem 0.5rem;
  }

  /* Fix floating nav width */
  .header-navbar.floating-nav {
    width: calc(100vw - 1rem) !important;
    margin: 0.5rem !important;
  }

  /* Ensure navbar shadow doesn't cause issues */
  .header-navbar-shadow {
    display: none !important;
  }
}

/* Extra small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Further reduce navbar size */
  .header-navbar .brand-logo h2 {
    font-size: 0.75rem !important;
    max-width: 160px;
  }

  /* Reduce brand-small size on mobile */
  .brand-small {
    font-size: 1rem !important;
    padding-top: 0.5rem !important;
  }

  /* Stack stat cards in single column */
  .stat-cards .col-sm-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* Adjust content wrapper further */
  html body .content .content-wrapper {
    margin-top: 4rem !important;
    padding: 0.75rem 0.5rem 0 0.5rem !important;
  }

  /* Fix card body padding */
  .card-body {
    padding: 1rem;
  }

  /* Optimize card titles */
  .card-title {
    font-size: 0.95rem;
  }

  /* Fix list group items */
  .list-group-item {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  /* Adjust badge positioning */
  .list-group-item .badge {
    font-size: 0.75rem;
  }
}

/* Tablet improvements */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Better spacing for tablets */
  html body .content .content-wrapper {
    margin-top: 5rem;
    padding: 1.5rem 1.5rem 0 1.5rem;
  }

  /* Adjust navbar for tablet */
  .header-navbar .brand-logo h2 {
    font-size: 0.9rem !important;
  }
}

/* Fix brand text vertical alignment on lg screens (992px - 1199.98px) */
@media (min-width: 992px) {
  .header-navbar .brand-logo {
    display: flex !important;
    align-items: center !important;
    height: 100%;
  }
  .header-navbar .brand-text {
    line-height: 1;
    display: flex;
    align-items: center;
  }
}

/* Fix for very small screens */
@media (max-width: 375px) {
  .header-navbar .brand-logo h2 {
    font-size: 0.65rem !important;
    max-width: 140px;
  }

  html body .content .content-wrapper {
    margin-top: 3rem !important;
    padding: 0.5rem 0.25rem 0 0.25rem !important;
  }

  .card-body {
    padding: 0.75rem;
  }
}

/* Ensure proper z-index for navbar (global) */
.header-navbar {
  z-index: 1000;
}

/* Fix for content overlay issues (global) */
.content-overlay {
  z-index: 999;
}

/* Improve scrolling experience (global - safe for all devices) */
.content-wrapper {
  -webkit-overflow-scrolling: touch;
}

/* Fix for iOS Safari viewport issues - mobile only */
@supports (-webkit-touch-callout: none) {
  @media (max-width: 767.98px) {
    html body .content .content-wrapper {
      margin-top: 4.5rem !important;
    }
  }
}
