body {
  background-color: #f2f3f4;
}

.bg-default {
  background-color: #002C4E !important;
}

.fill-default {
  fill: #002C4E !important;
}

.bg-lightblue {
  background: linear-gradient(135deg, #69D2F1 0%, #002C4E 100%);
}

.btn-primary {
  background-color: #002C4E;
  border-color: #002C4E;
}

.btn-primary:hover {
  background-color: #FFCF00;
  border-color: #FFCF00;
  color: #002C4E;
}

.btn-outline-primary {
  color: #002C4E;
  border-color: #002C4E;
}

.btn-outline-primary:hover {
  background-color: #FFCF00;
  border-color: #FFCF00;
}

.lib-yellow {
  color: #FFCF00;
}

.bg-libYellow {
  background-color: linear-gradient(135deg, #FFCF00 0%, #FFCF00 100%) !important;
}

.align-right {
  text-align: right !important;
  display: flex;
  align-items: flex-end !important;
}

.border-rounded {
  border-radius: 8px;
}

.breadcrumb {
  font-family: inherit;
  font-size: 14px;
  background-color: white;
  margin-bottom: 0px;
}
.breadcrumb a {
  color: #002C4E;
}
.breadcrumb .active {
  color: #002C4E;
}
.breadcrumb.no-bg {
  background: none;
}

.pagePlacement {
  height: 100%;
  display: flex;
  align-items: center;
}

.dropdown-menu {
  background-color: white;
  min-width: 0px !important;
}
.dropdown-menu.pdfselector {
  width: 90px;
}
.dropdown-menu.pdfselector :hover {
  width: 90px;
}

.dropdown-item.pdfselector {
  width: 105px;
}

.btn-primary.disabled, .btn-primary:disabled {
  background-color: #002C4E;
  border-color: #002C4E;
  opacity: 0.65;
  cursor: not-allowed;
  color: white;
}

.btn-primary:not(:disabled):not(.disabled):active, .btn-primary:not(:disabled):not(.disabled).active, .show > .btn-primary.dropdown-toggle {
  background-color: #002C4E;
  border-color: #002C4E;
}

.breadcrumb-item.active {
  opacity: 0.65;
}

.payments-body #filterModal .select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: #002C4E !important;
  color: #fff !important;
}

.btn-neutral {
  background-color: #f2f3f4;
  color: #002C4E;
  border-color: #002C4E;
}

.swal2-confirm.swal2-styled {
  /* Set a custom background color */
  background-color: #002C4E !important;
  /* Set a custom border. You can control width, style, and color. */
  border: 2px solid #002C4E !important;
}

.alert-primary {
  background-color: #002C4E !important;
  color: white !important;
  border-color: #002C4E !important;
}

.sidenav .nav-link.active {
  background-color: #f6f9fc; /* or your preferred color */
  border-radius: 0.375rem;
}
.sidenav .nav-link.active span {
  font-weight: 600;
}

.login {
  background-color: linear-gradient(135deg, #0779ae 0%, #05577c 100%);
}
.login img {
  height: 140px;
  margin-bottom: 1em;
}
.login a {
  color: #002C4E;
}
.login a:hover {
  color: #FFCF00;
}
.login .error {
  border-radius: 5px;
  color: white;
}
.login .error h2 {
  color: white;
}
.login .success {
  border-radius: 5px;
  color: white;
}
.login .success h4 {
  color: white;
}
.login .small-screen-message {
  display: none;
}
@media screen and (max-width: 900px) {
  .login form {
    display: none;
  }
  .login .small-screen-message {
    display: block;
    margin-bottom: 20px;
  }
}

.sidenav .logo {
  height: 150px;
  margin-bottom: 1em;
  max-height: 7rem !important;
}
.sidenav .sidenav-header {
  height: 150px;
}
.sidenav .bottom {
  position: absolute;
  bottom: 10px;
  width: 100%;
  padding: 0.675rem 1.5rem;
  color: rgba(0, 0, 0, 0.7);
  text-align: center;
}
.sidenav .syncTime {
  font-size: 11px;
  padding-top: 0px;
  margin-top: 0px;
}

.landing {
  /* Dropdown styling */
  /* Match Bootstrap Form Control Focus State */
  /* Fix select2 search field border */
}
.landing td {
  font-size: 0.9rem;
}
.landing .bgHover:hover {
  background-color: rgb(246, 249, 252);
}
.landing th {
  font-size: 0.75em !important;
}
.landing .header-body {
  margin-bottom: 2em;
}
.landing .header-body h6 {
  margin-top: 2.1em;
  font-size: 1.8em;
}
.landing .ico-tbl {
  display: flex;
  flex-direction: row;
  flex-grow: 1 0 auto;
}
.landing .selected {
  background: none !important;
}
.landing .form-control {
  color: rgb(82, 95, 127);
}
.landing .report-errors {
  border-radius: 0.375rem;
}
.landing .report-errors span {
  font-size: 12px;
}
.landing tbody.summaryTable {
  display: block;
  max-height: 57vh;
  overflow: auto;
}
.landing thead.summaryTable, .landing tbody tr.summaryTable {
  display: table;
  width: 100%;
  table-layout: fixed; /* even columns width , fix width of table too*/
}
.landing .card-header.party-units {
  display: flex;
}
.landing .card-header.party-units h3 {
  flex: 1 1 auto;
}
.landing .card-header.party-units > :last-child {
  flex: 0 0 25px;
  border: 1px solid #002C4E;
  border-radius: 4px;
}
.landing .card-header.party-units > :last-child i {
  margin-left: 6px;
  color: #002C4E;
}
.landing .card-header.party-units > :last-child:hover {
  background-color: #002C4E;
  cursor: pointer;
}
.landing .card-header.party-units > :last-child:hover i {
  color: white;
}
@media only screen and (max-height: 780px) {
  .landing tbody.summaryTable {
    display: block;
    max-height: 47vh;
    overflow: auto;
  }
}
.landing .select2-container .select2-selection--single {
  height: 44px !important;
  display: flex !important;
  align-items: center !important;
}
.landing .select2-container .select2-selection--single .select2-selection__rendered {
  display: flex !important;
  align-items: center !important;
  width: calc(100% - 20px) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  padding-right: 20px !important;
}
.landing .select2-container .select2-selection--single .select2-selection__clear {
  position: relative !important;
  right: auto !important;
  margin-left: 5px !important;
  margin-right: 5px !important;
  font-weight: bold !important;
  color: #999 !important;
  font-size: 14px !important;
}
.landing .select2-container .select2-selection--single .select2-selection__arrow {
  position: absolute !important;
  right: 5px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
}
.landing .select2-container .select2-dropdown .select2-results__option {
  white-space: normal !important;
  padding: 6px 12px !important;
}
.landing .select2-container--default .select2-selection--multiple .select2-selection__choice {
  display: flex !important;
  align-items: center !important;
}
.landing .select2-container--default .select2-selection--multiple .select2-selection__choice .select2-selection__choice__remove {
  margin-right: 3px !important;
}
.landing .select2-container--default.select2-container--open .select2-selection--single {
  border-color: #dee2e6 !important;
}
.landing .select2-container--open .select2-dropdown {
  border-color: #dee2e6;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  z-index: 1060;
}
.landing .select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: #002C4E;
}
.landing .select2-container--default.select2-container--focus .select2-selection--single,
.landing .select2-container--default.select2-container--open .select2-selection--single {
  color: #495057;
  background-color: #fff;
  border-color: #80bdff !important;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important;
}
.landing .select2-search--dropdown .select2-search__field {
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
}
.landing .select2-container--default .select2-results > .select2-results__options {
  max-height: 250px !important;
  overflow-y: auto !important;
}
.landing .select2-results__options {
  max-height: 450px !important;
  overflow-y: auto !important;
}
@media (max-height: 700px) {
  .landing .select2-container--default .select2-results > .select2-results__options,
  .landing .select2-results__options {
    max-height: 150px !important;
  }
}
.landing .select2-container--default .select2-selection--single {
  border-color: #dee2e6;
}

.report .header-body {
  margin-bottom: 2em;
}
.report .header-body h6 {
  margin-top: 2.1em;
  font-size: 1.8em;
}
.report h5 {
  font-weight: normal;
}
.report .table-responsive:first-child {
  border-radius: calc(0.375rem - 1px) calc(0.375rem - 1px) 0 0;
}
.report table td {
  white-space: unset;
}
.report table tr:hover {
  background-color: rgb(246, 249, 252);
}
.report .balanceHeader {
  font-weight: bold;
  border-top: 2px solid rgba(0, 0, 0, 0.125);
  border-bottom: 2px solid rgba(0, 0, 0, 0.125);
}
.report .dataTables_length {
  margin-bottom: 12px;
}
.report .dataTables_length .form-control {
  margin: 0px;
}
.report .pagination .active a {
  background-color: #002C4E;
  border-color: #002C4E;
}
.report .tableSubtotal {
  font-weight: 100;
  background-color: #fefefe;
}

.topnav .iconPosition {
  display: flex;
  flex-direction: column !important;
  align-items: flex-end !important;
}

.partyUnits {
  /* Add these styles to your existing CSS */
  /* Type-specific badge colors */
}
.partyUnits .header-body {
  margin-bottom: 0.2rem;
}
.partyUnits .header-body h6 {
  margin-top: 2.1em;
  font-size: 1.8em;
}
.partyUnits tr:hover {
  background-color: rgb(246, 249, 252);
}
.partyUnits .bgHover span {
  font-size: 1rem;
}
.partyUnits .integration-icon {
  display: inline-block;
  vertical-align: middle;
}
.partyUnits .badge {
  padding: 0.5em 0.8em;
  font-size: 0.9rem !important;
  font-weight: 600;
}
.partyUnits .badge-primary {
  background-color: #5e72e4;
}
.partyUnits .badge-info {
  background-color: #11cdef;
}
.partyUnits .badge-success {
  background-color: #2dce89;
}

.partyUnits_Edit {
  /* Add these styles for leadership cards */
}
.partyUnits_Edit .emailSelector {
  padding-bottom: 0px;
  margin-bottom: 0px;
}
.partyUnits_Edit .emailSelector a:visited,
.partyUnits_Edit .emailSelector a:link,
.partyUnits_Edit .emailSelector a:active {
  text-decoration: none !important;
  color: inherit;
}
.partyUnits_Edit .emailSelector a:hover {
  color: black;
}
.partyUnits_Edit .select2-results__options {
  max-height: 200px !important;
}
.partyUnits_Edit .card-selector {
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid #e9ecef;
}
.partyUnits_Edit .card-selector:hover {
  border-color: #5e72e4;
  background-color: #f8f9fa;
}
.partyUnits_Edit .card-selector.selected {
  border-color: #5e72e4;
  background-color: #eef0fd;
  box-shadow: 0 0.5rem 1rem rgba(94, 114, 228, 0.15);
}
.partyUnits_Edit .party-unit-type-selector .card-body {
  padding: 1rem;
}
.partyUnits_Edit .leadership-card .loading-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.partyUnits_Edit .leadership-card .card-body {
  position: relative;
  min-height: 100px;
}
.partyUnits_Edit .leadership-card.no-position .text-muted {
  display: none;
}
.partyUnits_Edit .leadership-card.loading .row {
  opacity: 0.5;
}

.profile {
  /* Specific styling for status checkboxes */
  /* Leadership positions styling */
  /* For better mobile display */
  /* Make badges more visible */
}
.profile .profileImage img {
  min-width: 110px;
}
.profile .nameHeader {
  font-size: 32px;
}
.profile .partyUnits {
  min-height: 30px;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 20px;
}
.profile .displaybutton {
  display: flex;
  justify-content: center;
}
.profile .custom-control.custom-checkbox {
  padding-left: 1.5rem;
}
.profile .custom-control.custom-checkbox .custom-control-label {
  position: relative;
  margin-bottom: 0;
  vertical-align: middle;
  cursor: pointer;
}
.profile .custom-control.custom-checkbox .custom-control-label::before {
  position: absolute;
  top: 0.15rem;
  left: -1.5rem;
  display: block;
  width: 1rem;
  height: 1rem;
  pointer-events: none;
  content: "";
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
}
.profile .custom-control.custom-checkbox .custom-control-label::after {
  position: absolute;
  top: 0.15rem;
  left: -1.5rem;
  display: block;
  width: 1rem;
  height: 1rem;
  content: "";
  background: no-repeat 50%/50% 50%;
}
.profile .custom-control.custom-checkbox .custom-control-input {
  position: absolute;
  z-index: -1;
  opacity: 0;
}
.profile .custom-control.custom-checkbox .custom-control-input:checked ~ .custom-control-label::before {
  color: #fff;
  border-color: #002C4E;
  background-color: #002C4E;
}
.profile .custom-control.custom-checkbox .custom-control-input:checked ~ .custom-control-label::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3e%3c/svg%3e");
}
.profile .custom-control.custom-checkbox .custom-control-input:focus ~ .custom-control-label::before {
  box-shadow: 0 0 0 0.2rem rgba(94, 114, 228, 0.25);
}
.profile .custom-control.custom-checkbox {
  margin-right: 1rem;
  margin-bottom: 0.5rem;
}
.profile .custom-control.custom-checkbox label {
  font-weight: normal;
}
.profile form :disabled input, .profile form :disabled select, .profile form :disabled textarea {
  background-color: #f8f9fa;
  cursor: not-allowed;
}
.profile .leadership-positions {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
}
.profile .position-item {
  transition: background-color 0.2s;
}
.profile .position-item:hover {
  background-color: rgba(0, 0, 0, 0.03);
}
@media (max-width: 767.98px) {
  .profile .position-item {
    flex-wrap: wrap;
    padding: 8px 0;
  }
  .profile .position-item > div:first-child {
    width: 30%;
  }
  .profile .position-item > div:nth-child(2) {
    width: 70%;
    margin-bottom: 4px;
  }
  .profile .position-item > div:last-child {
    width: 100%;
    margin-top: 4px;
  }
}
.profile .badge {
  padding: 0.35em 0.65em;
  font-size: 0.75rem;
}

.newUser .rowDiv {
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: center;
}
.newUser .create-user-info {
  font-size: 0.8rem;
  color: whitesmoke;
  margin-top: 10px;
  margin-bottom: 20px;
}
.newUser body {
  padding: 40px;
}
.newUser .ui.dropdown {
  max-width: 800px;
}
@media only screen and (max-width: 767px) {
  .newUser .ui.selection.dropdown .menu {
    /*      max-height: 8.01428571rem; /* + 1.335714285 to 9.349999995rem */
    /*      max-height: 9.349999995rem; /* Adds a half */
    max-height: 16.02857142rem;
    /* Double size */
  }
}
@media only screen and (min-width: 768px) {
  .newUser .ui.selection.dropdown .menu {
    /*         max-height: 10.68571429rem; /* + 1.3357142863 to 12.0214285763rem */
    max-height: 12.0214285763rem;
  }
}
@media only screen and (min-width: 992px) {
  .newUser .ui.selection.dropdown .menu {
    max-height: 16.02857143rem;
    /* + 1.3357142858 to 17.3642857158rem */
  }
}
@media only screen and (min-width: 1920px) {
  .newUser .ui.selection.dropdown .menu {
    max-height: 21.37142857rem;
    /* + 1.3357142856 to 22.7071428556rem */
  }
}

.spinner {
  width: 40px;
  height: 40px;
  position: relative;
  margin: 100px auto;
  transform: translateZ(0);
}

.double-bounce1,
.double-bounce2 {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: white;
  opacity: 0.6;
  position: absolute;
  top: 0;
  left: 0;
  -webkit-animation: sk-bounce 2s infinite ease-in-out;
  animation: sk-bounce 2s infinite ease-in-out;
}

.double-bounce2 {
  -webkit-animation-delay: -1s;
  animation-delay: -1s;
}

@-webkit-keyframes sk-bounce {
  0%, 100% {
    -webkit-transform: scale(0);
  }
  50% {
    -webkit-transform: scale(1);
  }
}
@keyframes sk-bounce {
  0%, 100% {
    transform: scale(0);
    -webkit-transform: scale(0);
  }
  50% {
    transform: scale(1);
    -webkit-transform: scale(1);
  }
}
.party-users .dataTables_wrapper, .party-units .dataTables_wrapper {
  padding: 7px;
  padding-top: 1rem;
}
.party-users .dataTables_length label select, .party-units .dataTables_length label select {
  margin-left: 0px;
}
.party-users th, .party-units th {
  padding-left: 1.5rem;
}
.party-users th input, .party-units th input {
  height: calc(0.45em + 1.25rem + 5px);
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
}

.table-responsive {
  overflow-x: hidden !important;
}

.payments-body {
  /* Modal styles */
  /* Make the filter panel look nice on mobile */
  /* Modal backdrop to cover entire screen */
  /* If you want a grey backdrop instead of the default black */
  /* Ensure modal is above the backdrop */
  /* Ensure sidenav doesn't overlap the backdrop */
  /* Consistent input heights for modal */
}
.payments-body #filterModal .modal-lg {
  max-width: 900px;
  z-index: 1050;
}
.payments-body #filterModal .modal-content {
  border-radius: 0.375rem;
}
.payments-body #filterModal .modal-header {
  background-color: #f6f9fc;
  border-bottom: 1px solid #e9ecef;
}
.payments-body .badge {
  font-size: 0.65rem;
}
.payments-body .datepicker-dropdown {
  z-index: 9999 !important;
}
.payments-body tr:hover {
  background-color: rgb(246, 249, 252);
}
@media (max-width: 767px) {
  .payments-body .input-group-sm {
    width: 100%;
    margin-bottom: 5px;
  }
  .payments-body .d-flex {
    flex-direction: column;
  }
  .payments-body #filterModal .mr-2 {
    margin-right: 0 !important;
  }
}
.payments-body .modal-backdrop {
  z-index: 1040 !important;
  /* Higher than sidenav but lower than modal */
  opacity: 0.5 !important;
  /* Adjust opacity as needed */
  background-color: #000 !important;
  /* Change to grey if preferred */
}
.payments-body .modal-backdrop.show {
  background-color: #808080 !important;
  /* Medium grey - adjust as needed */
  /* Alternative greys: #a9a9a9 (darker) or #d3d3d3 (lighter) */
}
.payments-body #filterModal {
  z-index: 1050 !important;
}
.payments-body .sidenav {
  z-index: 1030 !important;
  /* Lower than backdrop */
}
.payments-body h6 {
  font-size: 1.8em;
}
.payments-body .btn.btn-warning {
  background-color: #f5b759;
  border-color: #f5b759;
  color: #212529;
  box-shadow: 0 4px 6px rgba(245, 183, 89, 0.25);
}
.payments-body .btn.btn-warning:hover {
  background-color: #f4a534;
  border-color: #f39c12;
}
.payments-body .btn.btn-warning .badge-warning {
  background-color: #f39c12;
  color: #fff;
  border: 1px solid #fff;
}
.payments-body .position-relative {
  position: relative;
  display: inline-block;
}
.payments-body #filterModal {
  /* Apply to all form controls */
  /* Fix for input groups to maintain proper alignment */
  /* Fix for datepicker inputs */
  /* Fix for select elements */
  /* Ensure consistent padding */
  /* Dropdown styling */
  /* Match Bootstrap Form Control Focus State */
  /* Fix select2 search field border */
  /* Specific styling for status checkboxes */
}
.payments-body #filterModal .form-control,
.payments-body #filterModal .custom-select,
.payments-body #filterModal .input-group,
.payments-body #filterModal .input-group-text,
.payments-body #filterModal .input-group-prepend,
.payments-body #filterModal .input-group-append {
  height: 36px !important;
  /* Set consistent height */
}
.payments-body #filterModal .input-group {
  display: flex;
  align-items: stretch;
}
.payments-body #filterModal .input-group .form-control {
  flex: 1 1 auto;
}
.payments-body #filterModal .input-group .input-group-prepend,
.payments-body #filterModal .input-group .input-group-append {
  display: flex;
}
.payments-body #filterModal .input-group .input-group-text {
  display: flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  line-height: 1.5;
}
.payments-body #filterModal .datepicker {
  height: 36px !important;
  line-height: 22px !important;
}
.payments-body #filterModal select.form-control {
  padding-top: 0;
  padding-bottom: 0;
}
.payments-body #filterModal .form-control,
.payments-body #filterModal .input-group-text {
  padding: 0.375rem 0.75rem;
}
.payments-body #filterModal .select2-container {
  width: 100% !important;
}
.payments-body #filterModal .select2-container .select2-selection--single {
  height: 36px !important;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  border: 1px solid #dee2e6 !important;
  /* Lighter border color to match Bootstrap */
  border-radius: 0.25rem !important;
  background-color: #fff;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  box-shadow: none !important;
}
.payments-body #filterModal .select2-container .select2-selection--single .select2-selection__rendered {
  color: #495057;
  line-height: 1.5 !important;
  padding-left: 0 !important;
  padding-right: 20px;
}
.payments-body #filterModal .select2-container .select2-selection--single .select2-selection__arrow {
  height: 36px;
  position: absolute;
  top: 0;
  right: 6px;
  width: 20px;
}
.payments-body #filterModal .select2-container .select2-selection--single .select2-selection__arrow b {
  border-color: #adb5bd transparent transparent;
  /* Lighter arrow color */
  border-style: solid;
  border-width: 5px 4px 0;
  height: 0;
  left: 50%;
  margin-left: -4px;
  margin-top: -2px;
  position: absolute;
  top: 50%;
  width: 0;
}
.payments-body #filterModal .select2-container .select2-selection--single .select2-selection__placeholder {
  color: #adb5bd;
  /* Lighter placeholder color */
}
.payments-body #filterModal .select2-container--default.select2-container--open .select2-selection--single {
  border-color: #dee2e6 !important;
}
.payments-body #filterModal .select2-container--default .select2-selection--single .select2-selection__clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-weight: bold;
  cursor: pointer;
}
.payments-body #filterModal .select2-container--open .select2-dropdown {
  border-color: #dee2e6;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  z-index: 1060;
}
.payments-body #filterModal .select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: #002C4E;
}
.payments-body #filterModal .select2-container--default.select2-container--focus .select2-selection--single,
.payments-body #filterModal .select2-container--default.select2-container--open .select2-selection--single {
  color: #495057;
  background-color: #fff;
  border-color: #80bdff !important;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important;
}
.payments-body #filterModal .select2-search--dropdown .select2-search__field {
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
}
.payments-body #filterModal .custom-control.custom-checkbox {
  padding-left: 1.5rem;
}
.payments-body #filterModal .custom-control.custom-checkbox .custom-control-label {
  position: relative;
  margin-bottom: 0;
  vertical-align: middle;
  cursor: pointer;
}
.payments-body #filterModal .custom-control.custom-checkbox .custom-control-label::before {
  position: absolute;
  top: 0.15rem;
  left: -1.5rem;
  display: block;
  width: 1rem;
  height: 1rem;
  pointer-events: none;
  content: "";
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
}
.payments-body #filterModal .custom-control.custom-checkbox .custom-control-label::after {
  position: absolute;
  top: 0.15rem;
  left: -1.5rem;
  display: block;
  width: 1rem;
  height: 1rem;
  content: "";
  background: no-repeat 50%/50% 50%;
}
.payments-body #filterModal .custom-control.custom-checkbox .custom-control-input {
  position: absolute;
  z-index: -1;
  opacity: 0;
}
.payments-body #filterModal .custom-control.custom-checkbox .custom-control-input:checked ~ .custom-control-label::before {
  color: #fff;
  border-color: #002C4E;
  background-color: #002C4E;
}
.payments-body #filterModal .custom-control.custom-checkbox .custom-control-input:checked ~ .custom-control-label::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3e%3c/svg%3e");
}
.payments-body #filterModal .custom-control.custom-checkbox .custom-control-input:focus ~ .custom-control-label::before {
  box-shadow: 0 0 0 0.2rem rgba(94, 114, 228, 0.25);
}
.payments-body #filterModal .custom-control.custom-checkbox {
  margin-right: 1rem;
  margin-bottom: 0.5rem;
}
.payments-body #filterModal .custom-control.custom-checkbox label {
  font-weight: normal;
}
.payments-body .table-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.payments-body .no-data-row td {
  padding: 20px !important;
}
.payments-body .datepicker table tbody tr td.selected, .payments-body .datepicker table tbody tr td.selected.highlighted, .payments-body .datepicker table tbody tr td.selected:hover, .payments-body .datepicker table tbody tr td.selected.highlighted:hover, .payments-body .datepicker table tbody tr td.day.range:hover {
  background-color: unset !important;
}
.payments-body .liberal-spinner {
  color: #002C4E !important;
  width: 3rem;
  height: 3rem;
  border-width: 0.25em;
  display: block !important;
  margin: 0 auto !important;
}
.payments-body .dataTables_processing {
  background: rgba(255, 255, 255, 0.95) !important;
  border: none !important;
  z-index: 1000;
  box-shadow: unset !important;
  height: auto !important;
  padding: 40px 20px !important;
  text-align: center !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: auto !important;
  min-width: 120px !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.payments-body .dataTables_processing[style*="display: none"] {
  display: none !important;
}
.payments-body .xero-logo {
  width: 20px;
  height: 20px;
  margin-left: 5px;
  margin-bottom: 3px;
}
.payments-body tr.xero-sync-error {
  background-color: #ffebee !important; /* Light red background */
}
.payments-body tr.xero-sync-error:hover {
  background-color: #ffcdd2 !important; /* Slightly darker red on hover */
}
.payments-body tr.xero-sync-error td {
  border-color: #ffcccb !important;
}
.payments-body #payments_summary tr td:nth-of-type(6) {
  white-space: normal; /* Ensures text wraps */
  overflow-wrap: break-word; /* Breaks long words to prevent overflow */
  word-break: break-all; /* An alternative for breaking words if needed */
}

.payments-create-body {
  /* Fix datepicker validation layout */
  /* Keep feedback message separate from input */
}
.payments-create-body #form-progress .nav-link {
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
}
.payments-create-body #form-progress .nav-link.active {
  color: #fff;
  background-color: #002C4E;
}
.payments-create-body #form-progress .nav-link:not(.active) {
  color: #525f7f;
  background-color: #f8f9fe;
}
.payments-create-body #form-progress .nav-link i {
  font-size: 1rem;
}
.payments-create-body .card {
  margin-bottom: 100px;
  box-shadow: 0 0 2rem 0 rgba(136, 152, 170, 0.15);
}
.payments-create-body .card .card-header {
  background-color: #f6f9fc;
  padding: 1rem 1.5rem;
}
.payments-create-body .card .card-header h3 {
  font-weight: 600;
  color: #32325d;
  margin-bottom: 0;
}
.payments-create-body .card .card-body {
  padding: 1.5rem;
}
.payments-create-body .card .card-footer {
  background-color: #f6f9fc;
  padding: 1rem 1.5rem;
}
.payments-create-body .form-control {
  border: 1px solid #dee2e6;
  transition: box-shadow 0.15s ease-in-out, border-color 0.15s ease-in-out;
}
.payments-create-body .form-control:focus {
  border-color: #002C4E;
  box-shadow: 0 0 0 0.2rem rgba(94, 114, 228, 0.25);
}
.payments-create-body .form-control.is-invalid {
  border-color: #fb6340;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23fb6340'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23fb6340' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}
.payments-create-body .custom-file-input:focus ~ .custom-file-label {
  border-color: #002C4E;
  box-shadow: 0 0 0 0.2rem rgba(94, 114, 228, 0.25);
}
.payments-create-body .character-counter {
  text-align: right;
  display: block;
  margin-top: 0.25rem;
}
.payments-create-body .character-counter #char-count {
  font-weight: bold;
}
.payments-create-body .character-counter #char-count.text-danger {
  color: #fb6340 !important;
}
.payments-create-body .file-preview {
  background-color: #f8f9fe;
}
.payments-create-body .file-preview i.fa-file-alt {
  color: #002C4E;
}
.payments-create-body .text-danger {
  color: #fb6340 !important;
}
.payments-create-body .datepicker-dropdown {
  z-index: 1060 !important;
}
.payments-create-body .btn-primary {
  background-color: #002C4E;
  border-color: #002C4E;
}
.payments-create-body .btn-primary:hover {
  background-color: #FFCF00;
  border-color: #FFCF00;
  color: black;
}
.payments-create-body .btn-success {
  background-color: #2dce89;
  border-color: #2dce89;
}
.payments-create-body .btn-success:hover {
  background-color: #24a46d;
  border-color: #24a46d;
}
@media (max-width: 768px) {
  .payments-create-body .nav-pills .nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }
  .payments-create-body .card-body {
    padding: 1rem;
  }
}
.payments-create-body .custom-control.custom-checkbox {
  padding-left: 1.5rem;
}
.payments-create-body .custom-control.custom-checkbox .custom-control-label {
  position: relative;
  margin-bottom: 0;
  vertical-align: middle;
  cursor: pointer;
}
.payments-create-body .custom-control.custom-checkbox .custom-control-label::before {
  position: absolute;
  top: 0.15rem;
  left: -1.5rem;
  display: block;
  width: 1rem;
  height: 1rem;
  pointer-events: none;
  content: "";
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
}
.payments-create-body .custom-control.custom-checkbox .custom-control-label::after {
  position: absolute;
  top: 0.15rem;
  left: -1.5rem;
  display: block;
  width: 1rem;
  height: 1rem;
  content: "";
  background: no-repeat 50%/50% 50%;
}
.payments-create-body .custom-control.custom-checkbox .custom-control-input {
  position: absolute;
  z-index: -1;
  opacity: 0;
}
.payments-create-body .custom-control.custom-checkbox .custom-control-input:checked ~ .custom-control-label::before {
  color: #fff;
  border-color: #002C4E;
  background-color: #002C4E;
}
.payments-create-body .custom-control.custom-checkbox .custom-control-input:checked ~ .custom-control-label::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3e%3c/svg%3e");
}
.payments-create-body .custom-control.custom-checkbox .custom-control-input:focus ~ .custom-control-label::before {
  box-shadow: 0 0 0 0.2rem rgba(94, 114, 228, 0.25);
}
.payments-create-body .gj-datepicker {
  position: relative;
  width: 100%;
}
.payments-create-body .gj-datepicker-md [role=right-icon] {
  position: absolute !important;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}
.payments-create-body .datepicker-wrapper {
  position: relative;
  margin-bottom: 1.5rem;
}
.payments-create-body .datepicker-wrapper .invalid-feedback {
  position: absolute;
  width: 100%;
  margin-top: 50px !important;
}
.payments-create-body #files-preview-list .file-preview-item {
  transition: all 0.2s ease;
}
.payments-create-body #files-preview-list .file-preview-item:hover {
  background-color: #f8f9fe;
}
.payments-create-body #files-preview-list .file-preview-item .remove-file {
  visibility: hidden;
  opacity: 0;
  transition: all 0.2s ease;
}
.payments-create-body #files-preview-list .file-preview-item:hover .remove-file {
  visibility: visible;
  opacity: 1;
}
.payments-create-body #files-preview-list .file-preview-item .fas.fa-file-pdf {
  color: #e53935;
}
.payments-create-body #files-preview-list .file-preview-item .fas.fa-file-image {
  color: #002C4E;
}
.payments-create-body #files-preview-list .file-preview-item .fas.fa-file {
  color: #757575;
}
.payments-create-body .custom-file-input:lang(en) ~ .custom-file-label::after {
  content: "Browse";
}
.payments-create-body .custom-file-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: none;
}
.payments-create-body #payment-policy-requirements {
  font-size: 0.8rem;
  line-height: normal;
}
.payments-create-body #attachment-required-badge {
  font-size: 0.75rem;
  display: inline-block;
  width: auto;
  margin-top: 8px;
  background-color: #dc3545;
  color: white;
  font-weight: 600;
}
.payments-create-body td[day][month][year].disabled {
  color: #aeaeae !important; /* Make text slightly darker to ensure the line is visible */
  text-decoration: line-through !important;
}

.payments-view-body {
  /* Add before the closing </head> tag */
}
.payments-view-body .workflow-progress {
  position: relative;
  padding: 0 30px;
  top: 10px;
}
.payments-view-body .workflow-progress .workflow-progress-bar {
  position: relative;
  height: 80px;
}
.payments-view-body .workflow-progress .workflow-progress-bar .progress-track {
  position: absolute;
  top: 20px;
  left: 5%;
  right: 5%;
  width: 90%;
  height: 4px;
  background-color: #e9ecef;
  z-index: 1;
}
.payments-view-body .workflow-progress .workflow-progress-bar .progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-color: #002C4E;
  transition: width 0.5s ease;
}
.payments-view-body .workflow-progress .workflow-progress-bar .progress-fill.denied {
  background-color: #fb6340;
}
.payments-view-body .workflow-progress .workflow-progress-bar .workflow-steps {
  display: flex;
  justify-content: space-between;
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 2;
}
.payments-view-body .workflow-progress .workflow-progress-bar .workflow-steps .workflow-step {
  position: absolute;
  transform: translateX(-50%);
  text-align: center;
  width: 80px;
}
.payments-view-body .workflow-progress .workflow-progress-bar .workflow-steps .workflow-step .step-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: all 0.3s ease;
}
.payments-view-body .workflow-progress .workflow-progress-bar .workflow-steps .workflow-step .step-icon i {
  color: #fff;
}
.payments-view-body .workflow-progress .workflow-progress-bar .workflow-steps .workflow-step .badge-secondary {
  background-color: #8898aa;
}
.payments-view-body .workflow-progress .workflow-progress-bar .workflow-steps .workflow-step .badge-primary {
  background-color: #002C4E;
}
.payments-view-body .workflow-progress .workflow-progress-bar .workflow-steps .workflow-step .badge-success {
  background-color: #2dce89;
}
.payments-view-body .workflow-progress .workflow-progress-bar .workflow-steps .workflow-step .badge-danger {
  background-color: #fb6340;
}
.payments-view-body .workflow-progress .workflow-progress-bar .workflow-steps .workflow-step .step-label {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #525f7f;
  word-wrap: break-word;
  white-space: normal;
  max-width: 120px;
  margin-left: -20px;
  margin-right: -20px;
}
.payments-view-body .workflow-progress .workflow-progress-bar .workflow-steps .workflow-step.current .step-icon {
  transform: scale(1.2);
  box-shadow: 0 0 0 5px rgba(0, 44, 78, 0.1);
}
.payments-view-body .workflow-progress .workflow-progress-bar .workflow-steps .workflow-step.current .step-label {
  color: #32325d;
  font-weight: 700;
}
.payments-view-body .workflow-progress .workflow-progress-bar .workflow-steps .workflow-step.completed .step-icon {
  background-color: #002C4E;
}
.payments-view-body .workflow-progress .workflow-progress-bar .workflow-steps .workflow-step.upcoming {
  opacity: 0.5;
}
@media (max-width: 768px) {
  .payments-view-body .workflow-progress {
    padding: 0 20px;
  }
  .payments-view-body .workflow-progress .workflow-progress-bar {
    height: 100px;
  }
  .payments-view-body .workflow-progress .workflow-progress-bar .progress-track {
    top: 20px;
    left: 10%;
    right: 10%;
    width: 80%;
  }
  .payments-view-body .workflow-progress .workflow-progress-bar .workflow-steps .workflow-step {
    width: 60px;
  }
  .payments-view-body .workflow-progress .workflow-progress-bar .workflow-steps .workflow-step .step-label {
    font-size: 11px;
    max-width: 90px;
    margin-left: -15px;
    margin-right: -15px;
  }
}
.payments-view-body .progress-fill.denied {
  background-color: #fb6340;
}
@media (max-width: 576px) {
  .payments-view-body .workflow-progress {
    padding: 0 10px;
  }
  .payments-view-body .workflow-progress .workflow-progress-bar {
    height: 80px;
  }
  .payments-view-body .workflow-progress .workflow-progress-bar .workflow-steps .workflow-step .step-icon {
    width: 30px;
    height: 30px;
  }
  .payments-view-body .workflow-progress .workflow-progress-bar .workflow-steps .workflow-step .step-icon i {
    font-size: 0.8rem;
  }
  .payments-view-body .workflow-progress .workflow-progress-bar .workflow-steps .workflow-step .step-label {
    font-size: 10px;
  }
}
.payments-view-body .progress-fill.denied {
  background-color: #fb6340;
}
.payments-view-body .payment-bank-details {
  background-color: #f6f9fc;
  padding: 1rem;
  border-radius: 0.375rem;
  margin-top: 0.5rem;
}
.payments-view-body .note-item {
  background-color: #f8f9fe;
  padding: 1rem;
  border-radius: 0.375rem;
  border-left: 3px solid #002C4E;
}
.payments-view-body .note-item .note-author, .payments-view-body .note-item .note-date {
  font-size: 0.875rem;
}
.payments-view-body .note-item .note-content {
  font-size: 0.75rem;
}
.payments-view-body .note-item:last-child {
  margin-bottom: 0;
}
.payments-view-body .badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
}
.payments-view-body .timeline {
  position: relative;
  padding: 0;
  margin: 0;
  list-style: none;
}
.payments-view-body .timeline:before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 2px;
  background-color: #e9ecef;
}
.payments-view-body .timeline .timeline-item {
  position: relative;
  padding-left: 45px;
  padding-bottom: 20px;
}
.payments-view-body .timeline .timeline-item:last-child {
  padding-bottom: 20px;
}
.payments-view-body .timeline .timeline-item .timeline-badge {
  position: absolute;
  top: 0;
  left: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  text-align: center;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.payments-view-body .timeline .timeline-item .timeline-badge i {
  font-size: 0.6rem;
  color: #fff;
}
.payments-view-body .timeline .timeline-item .timeline-badge.bg-success {
  background-color: #2dce89;
}
.payments-view-body .timeline .timeline-item .timeline-badge.bg-primary {
  background-color: #002C4E;
}
.payments-view-body .timeline .timeline-item .timeline-badge.bg-danger {
  background-color: #fb6340;
}
.payments-view-body .timeline .timeline-item .timeline-badge.bg-secondary {
  background-color: #8898aa;
}
.payments-view-body .timeline .timeline-item .timeline-content {
  position: relative;
  padding-bottom: 10px;
}
.payments-view-body .timeline .timeline-item .timeline-content .timeline-title {
  margin: 0 0 5px;
  font-weight: 600;
  font-size: 0.9rem;
}
.payments-view-body .history-body {
  padding-bottom: 15px;
}
.payments-view-body .documents-list .btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}
@media (max-width: 767px) {
  .payments-view-body .workflow-steps .nav-item .workflow-step {
    padding: 0.5rem 0.25rem;
    font-size: 0.8rem;
  }
  .payments-view-body .workflow-steps .nav-item .workflow-step i {
    margin-right: 0 !important;
  }
  .payments-view-body .timeline:before {
    left: 15px;
  }
  .payments-view-body .timeline .timeline-item {
    padding-left: 35px;
  }
  .payments-view-body .timeline .timeline-item .timeline-badge {
    left: 5px;
  }
}
.payments-view-body .documents-table-container {
  overflow-x: auto;
  min-height: 0.01%;
  width: 100%;
  margin-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
}
.payments-view-body .documents-table-container .table {
  width: 100%;
  max-width: 100%;
  margin-bottom: 0;
}
.payments-view-body .documents-table-container .table .text-wrap {
  white-space: normal;
  word-break: break-word;
}
.payments-view-body .documents-table-container .table th:last-child, .payments-view-body .documents-table-container .table td:last-child {
  position: sticky;
  right: 0;
  background-color: #fff;
  z-index: 1;
  box-shadow: -5px 0 5px -5px rgba(0, 0, 0, 0.1);
}
.payments-view-body .documents-table-container .table tr:hover td:last-child {
  background-color: rgb(246, 249, 252);
}
.payments-view-body .documents-table-container .table .download-document {
  white-space: nowrap;
  min-width: 36px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.payments-view-body .xero-icon {
  vertical-align: middle;
  height: 25px !important;
  width: 25px !important;
  margin-left: 5px;
}