@charset "UTF-8";
/*---------------------------------
   Turbo Frames
   Custom elements default to display:inline which breaks
   overflow, max-height, and IntersectionObserver containment.
--------------------------------*/
turbo-frame {
  display: block;
}

/*---------------------------------
   App Shell
   Keep the shared layout tall enough for short pages so the footer
   sits on the bottom edge of the viewport.
--------------------------------*/
#kt_app_root {
  min-height: 100vh;
  min-height: 100dvh;
}

#kt_app_wrapper,
#kt_app_main {
  min-height: 0;
}

#kt_app_main {
  display: flex;
  flex-direction: column;
}

#kt_app_footer {
  flex: 0 0 auto;
  margin-top: auto;
}

#kt_app_root.accounts-shell {
  flex: 0 0 auto;
}

#kt_app_wrapper.accounts-shell__wrapper {
  flex: 1 0 auto;
}

#kt_app_main.accounts-shell__main {
  flex: 1 0 auto;
}

#kt_app_header {
  flex: 0 0 auto;
  position: sticky;
  top: 0;
  z-index: 550;
  background-color: var(--bs-app-header-base-bg-color, var(--bs-body-bg));
}

/*---------------------------------
   Invoice Theme Picker
--------------------------------*/
.invoice-theme-card {
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.invoice-theme-card-selected {
  border-style: solid !important;
}

.invoice-theme-current-ribbon {
  position: absolute;
  top: 12px;
  right: 0;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0.3rem 0.75rem 0.3rem 1rem;
  background-color: var(--bs-warning);
  color: var(--bs-warning-inverse, #fff);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  clip-path: polygon(0.45rem 0, 100% 0, 100% 100%, 0.45rem 100%, 0 50%);
  box-shadow: 0 4px 12px rgba(var(--bs-warning-rgb), 0.28);
}

.invoice-theme-card-action {
  border-style: solid;
  cursor: pointer;
}

.invoice-theme-card-action:hover,
.invoice-theme-card-action:focus-within {
  border-color: var(--bs-warning) !important;
  border-style: dashed !important;
  background-color: var(--bs-light-warning) !important;
  box-shadow: 0 0 0 0.25rem rgba(var(--bs-warning-rgb), 0.12);
  outline: none;
}

/* The card being previewed (not yet saved). Beats the hover style, so the
   choice still reads as made while the pointer rests on it. */
.invoice-theme-card-previewing,
.invoice-theme-card-action.invoice-theme-card-previewing:hover,
.invoice-theme-card-action.invoice-theme-card-previewing:focus-within {
  border-style: solid !important;
  border-color: var(--bs-primary) !important;
  border-width: 2px !important;
  box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.15);
}

.invoice-theme-card-pick {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

/*---------------------------------
   Smooth Scroll Behavior
--------------------------------*/
html {
  scroll-behavior: smooth;
}

/* Offset anchor scroll position to account for sticky header.
   When adding new sections to the company settings nav, add the ID here
   and to the :target highlight rule below. */
#plan-limits,
#theme,
#accounting,
#project-statuses,
#terminology,
#office-closures,
#nas-storage,
#company-profile,
#api-tokens,
#profile-verification,
#hive-profile,
#showcase-profile,
#accounts,
#preferences,
#security,
#time-logged,
#expenses,
#invoices,
#leave-management,
#files,
#company_people,
#company_receivable_statements,
#company_payable_statements,
#company_running_statement,
#company_files {
  scroll-margin-top: 70px;
}

/* Highlight animation when navigating to anchor */
@keyframes anchor-highlight-fade {
  0% {
    box-shadow: 0 0 0 3px var(--bs-primary);
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}
#plan-limits:target,
#theme:target,
#accounting:target,
#project-statuses:target,
#terminology:target,
#office-closures:target,
#nas-storage:target,
#company-profile:target,
#api-tokens:target,
#profile-verification:target,
#hive-profile:target,
#showcase-profile:target,
#accounts:target,
#preferences:target,
#security:target,
#time-logged:target,
#expenses:target,
#invoices:target,
#leave-management:target,
#files:target,
#company_people:target,
#company_receivable_statements:target,
#company_payable_statements:target,
#company_running_statement:target,
#company_files:target {
  animation: anchor-highlight-fade 2s ease-out forwards;
  border-radius: 0.625rem;
}

/* NAS Connection Status Badge Animation */
@keyframes connection-status-highlight {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 currentColor;
  }
  25% {
    transform: scale(1.15);
    box-shadow: 0 0 8px 2px currentColor;
  }
  50% {
    transform: scale(1);
    box-shadow: 0 0 12px 4px currentColor;
  }
  75% {
    transform: scale(1.1);
    box-shadow: 0 0 6px 2px currentColor;
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 transparent;
  }
}
.connection-status-updated {
  animation: connection-status-highlight 1.5s ease-out;
}

/*---------------------------------
   Textual Typography
--------------------------------*/
/*---------------------------------
   Animation
--------------------------------*/
/*---------------------------------
   Misc
--------------------------------*/
.task-checkbox {
  width: 82px;
  margin-right: 5px;
}
.task-checkbox .checker {
  margin-bottom: 5px;
}
.task-checkbox .label {
  width: 62px;
  text-align: center;
}
.task-checkbox .badge-light a {
  color: var(--bs-light-inverse);
}
.task-checkbox .badge-danger a {
  color: var(--bs-danger-inverse);
}
.task-checkbox .badge-warning a {
  color: var(--bs-warning-inverse);
}
.task-checkbox .badge-secondary a {
  color: var(--bs-secondary-inverse);
}
.task-checkbox .badge-success a {
  color: var(--bs-success-inverse);
}

.fc-daygrid-body .fc-day-today {
  background-color: #4DB1EF !important;
}
.fc-daygrid-body .fc-day-today .fc-daygrid-day-number {
  color: #fff !important;
}

.app-container {
  --animate-delay: 0.25s;
}

.fc-day-sat,
.fc-day-sun {
  background-color: var(--bs-gray-100) !important;
}

.task-steps-container {
  width: auto;
  text-align: center;
  position: absolute;
  z-index: 1070;
  right: 11px;
  opacity: 0;
  display: none;
}
.task-steps-container.show {
  opacity: 1;
  z-index: 1070;
}
.task-steps-container .state-popup {
  position: absolute;
  top: 0;
  left: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  border-radius: 0.625rem;
  width: 90px;
  height: 100%;
  background-color: #ACADA1;
  color: white;
  text-transform: none;
}
.task-steps-container .states-bar {
  background: var(--bs-card-bg);
  padding: 5px;
  margin-top: 2px;
  box-shadow: rgba(6, 6, 6, 0.2) 0px 0px 12px 0px;
  border-radius: 0.625rem !important;
}

.task-time-logger {
  border-radius: 0.625rem !important;
  border: 0px;
  position: absolute;
  top: 7.5px;
  left: -20px;
  -webkit-box-shadow: 0 0px 25px rgba(0, 0, 0, 0.15);
  -moz-box-shadow: 0 0px 25px rgba(0, 0, 0, 0.15);
  box-shadow: 0 0px 25px rgba(0, 0, 0, 0.15);
}

.task-time-logger .expanded {
  background-color: --bs-gray-500;
  color: #fff;
  height: 300px;
  width: 400px;
}

.task-time-logger .card {
  background-color: var(--bs-card-bg);
  color: var(--bs-body-color);
}

/***
Popover
 ***/
.popover {
  -webkit-box-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
  -moz-box-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
  padding: 0 !important;
}

.popover-content {
  display: flex;
  flex-direction: column;
  justify-content: normal;
  padding: 10px;
  align-items: center;
}

.add-group-btn {
  border-radius: 0px 0px 6px 6px !important;
}

.add-line-item-button {
  border-radius: 0px 0px 6px 6px !important;
}

.add-line-item {
  border-top: 4px solid #F1F1F1;
}


.progress-small {
  height: 12px;
  border-radius: 6px !important;
}

/*---------------------------------
  Progress Bars
-----------------------------------*/
.grid-line {
  display: inline-block;
  width: 9.45%;
  border-left: 1px solid #dfdfdf;
}

.grid-line-both {
  display: inline-block;
  width: 9.45%;
  border-left: 1px solid #dfdfdf;
  border-right: 1px solid #dfdfdf;
}

.leave-bar {
  height: 6px;
  margin-bottom: 1px;
}

.progress-small {
  height: 12px;
  border-radius: 6px;
}

/*---------------------------------
  Milestone Progress Bars
-----------------------------------*/
.milestone-widget-grid {
  border-right: 1px solid #ddd;
}

.milestone-header-icon {
  font-size: 32px !important;
}

.milestone {
  overflow: visible;
  min-height: 16px;
  line-height: 16px;
}
.milestone i {
  border-radius: 20px;
}
.milestone .milestone-tasks-bar {
  position: relative;
  height: 0px;
}
.milestone .fa-bullseye {
  margin-left: -16px;
}
.milestone .progress {
  background-color: transparent;
  z-index: 1000;
}
.milestone .milestone-dot {
  z-index: 100;
  position: relative;
  font-size: 11px;
  max-width: 350px;
  margin-top: 0px;
}
.milestone .milestone-dot .appear {
  display: none;
}
.milestone .milestone-dot a:hover {
  color: #E36E00;
}
.milestone .milestone-dot:hover .appear {
  display: inline-block;
}
.milestone .milestone-dot i {
  font-size: 27px;
}
.milestone .milestone-dot .milestone-title {
  display: inline-block;
  vertical-align: top;
  font-size: 14px;
  padding-left: 5px;
}
.milestone .milestone-dot .milestone-title a:hover {
  color: #E36E00;
}
.milestone .milestone-dot .milestone-title .fa-trash {
  font-size: 14px;
  color: #dfdfdf;
}
.milestone .big {
  padding: 8px 0px;
}

.blank {
  background-image: none;
  background-color: transparent;
}

.notesContainer .editable-buttons .editable-submit {
  background-color: #D85D18;
}
.notesContainer .wysihtml5-editor {
  font-weight: 100 !important;
}
.notesContainer .wysihtml5-sandbox .m-wrap .wysihtml5 .wysihtml5-editor {
  font-size: 14px !important;
  font-weight: 100 !important;
}
.notesContainer .editable-click {
  font-size: 14px !important;
  font-weight: 100 !important;
}

.blank {
  background-image: none;
  background-color: transparent !important;
}

.selection__rendered {
  color: #000 !important;
}

.in_progress {
  background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  -webkit-background-size: 1rem 1rem;
  background-size: 1rem 1rem;
  -webkit-animation: progress-bar-stripes 1s linear infinite;
  -o-animation: progress-bar-stripes 1s linear infinite;
  animation: progress-bar-stripes 1s linear infinite;
}

.queued {
  background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  -webkit-background-size: 1rem 1rem;
  background-size: 1rem 1rem;
  -webkit-animation: progress-bar-stripes 1s linear infinite;
  -o-animation: progress-bar-stripes 1s linear infinite;
  animation: progress-bar-stripes 1s linear infinite;
}

.alert.fade-out {
  animation: fadeOut 5s forwards;
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    display: none;
  }
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.select2-choices {
  min-height: 150px;
  max-height: 150px;
  overflow-y: auto;
}

.time-entry-edit-mode .noUi-target,
.time-entry-edit-mode .noUi-connects,
.time-entry-edit-mode .noUi-connect {
  height: 20px !important;
}
.time-entry-edit-mode .noUi-target {
  direction: ltr !important;
  background-color: rgba(var(--bs-body-color-rgb), 0.08);
}
.time-entry-edit-mode .noUi-handle {
  opacity: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}
.time-entry-edit-mode .noUi-handle:before,
.time-entry-edit-mode .noUi-handle:after {
  display: none !important;
}

.time-entries-index .noUi-handle {
  opacity: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}
.time-entries-index .noUi-handle:before,
.time-entries-index .noUi-handle:after {
  display: none !important;
}

/*---------------------------------
  TAGS
-----------------------------------*/
.task-tags .radio_buttons {
  color: transparent;
  margin-right: 10px !important;
}
.task-tags #tag_color_c90a17 {
  background-color: #c90a17;
  border-radius: 30px;
  background-image: none;
  height: 26px;
  width: 26px;
  border: 6px solid transparent;
}
.task-tags #tag_color_c90a17 span {
  background-image: none;
}
.task-tags #tag_color_c90a17 .checked {
  background-color: var(--bs-gray-100);
  border-radius: 30px;
  background-image: none;
  height: 14px;
  width: 14px;
  border: 6px solid --bs-red;
}
.task-tags #tag_color_3fa1ec {
  background-color: #3fa1ec;
  border-radius: 30px;
  background-image: none;
  height: 26px;
  width: 26px;
  border: 6px solid transparent;
}
.task-tags #tag_color_3fa1ec span {
  background-image: none;
}
.task-tags #tag_color_3fa1ec .checked {
  background-color: var(--bs-gray-100);
  border-radius: 30px;
  background-image: none;
  height: 14px;
  width: 14px;
  border: 6px solid --bs-blue;
}
.task-tags #tag_color_d0d0ca {
  background-color: #d0d0ca !important;
  border-radius: 20px;
  background-image: none;
  height: 26px;
  width: 26px;
  border: 6px solid transparent;
}
.task-tags #tag_color_d0d0ca span {
  background-image: none;
}
.task-tags #tag_color_d0d0ca .checked {
  background-color: var(--bs-gray-100);
  border-radius: 30px;
  background-image: none;
  height: 14px;
  width: 14px;
  border: 6px solid --bs-green;
}
.task-tags #tag_color_aab93a {
  background-color: #aab93a !important;
  border-radius: 30px;
  background-image: none;
  height: 26px;
  width: 26px;
  border: 6px solid transparent;
}
.task-tags #tag_color_aab93a span {
  background-image: none;
}
.task-tags #tag_color_aab93a .checked {
  background-color: var(--bs-gray-100);
  border-radius: 30px;
  background-image: none;
  height: 14px;
  width: 14px;
  border: 6px solid --bs-purple;
}
.task-tags #tag_color_e36e00 {
  background-color: #e36e00;
  border-radius: 30px;
  background-image: none;
  height: 26px;
  width: 26px;
  border: 6px solid transparent;
}
.task-tags #tag_color_e36e00 span {
  background-image: none;
}
.task-tags #tag_color_e36e00 .checked {
  background-color: var(--bs-gray-100);
  border-radius: 30px;
  background-image: none;
  height: 14px;
  width: 14px;
  border: 6px solid --bs-yellow;
}
.task-tags #tag_color_e865b3 {
  background-color: #e865b3;
  border-radius: 30px;
  background-image: none;
  height: 26px;
  width: 26px;
  border: 6px solid transparent;
}
.task-tags #tag_color_e865b3 span {
  background-image: none;
}
.task-tags #tag_color_e865b3 .checked {
  background-color: var(--bs-gray-100);
  border-radius: 30px;
  background-image: none;
  height: 14px;
  width: 14px;
  border: 6px solid #e865b3;
}

.help-text {
  color: #717171;
}

.transaction_group_top {
  display: none;
}

.no_details .transaction_group_top {
  display: none !important;
}
.no_details .transaction_group_bottom {
  display: block !important;
}
.no_details .details {
  display: none !important;
}

.no_group_details .transaction_group_top {
  display: block !important;
}
.no_group_details .transaction_group_bottom {
  display: none !important;
}
.no_group_details .quantity,
.no_group_details .kind,
.no_group_details .amount,
.no_group_details .base_amount,
.no_group_details .percentage,
.no_group_details .total {
  opacity: 0;
}
.no_group_details .details {
  display: none !important;
}

.only_total .transaction_group_top {
  display: none !important;
}
.only_total .transaction_group_bottom {
  display: none !important;
}
.only_total .quantity,
.only_total .kind,
.only_total .amount,
.only_total .total,
.only_total .base_amount,
.only_total .percentage {
  opacity: 0;
}

.total_only_less .transaction_group_top {
  display: none !important;
}
.total_only_less .transaction_group_bottom {
  display: none !important;
}
.total_only_less .quantity,
.total_only_less .kind,
.total_only_less .amount,
.total_only_less .total,
.total_only_less .base_amount,
.total_only_less .percentage {
  opacity: 0;
}
.total_only_less .details {
  display: none !important;
}

.details p {
  margin-bottom: 0px;
}

.statement_delete_button {
  border: none;
  background: transparent;
  padding: 0;
}

.close-project-tape {
  background: url(/assets/general/closed-project-tape-2.png) no-repeat right;
  background-size: 818px;
  width: 818px;
  pointer-events: none;
  z-index: -1;
  opacity: 0.5;
}

.icons-journal-paid-stamp {
  background: url(/assets/journal_entries/journal-paid-stamp.png) no-repeat center;
  background-size: 110px;
  width: 110px;
  height: 110px;
  top: -20px;
  z-index: 2;
}

.icons-journal-overdue-stamp {
  background: url(/assets/journal_entries/journal-overdue-stamp.png) no-repeat center;
  background-size: 110px;
  width: 110px;
  height: 110px;
  top: -20px;
  z-index: 2;
}

.icons-journal-sent-stamp {
  background: url(/assets/journal_entries/journal-sent-stamp.png) no-repeat center;
  background-size: 110px;
  background-size: 110px;
  width: 110px;
  height: 110px;
  top: -20px;
  z-index: 2;
}

.icons-journal-approved-stamp {
  background: url(/assets/journal_entries/journal-approved-stamp.png) no-repeat center;
  background-size: 110px;
  width: 110px;
  height: 110px;
  top: -20px;
  z-index: 2;
}

.stamp-container {
  position: absolute;
  top: -20px;
  right: 20px;
  z-index: 10000;
}

.states-step {
  margin-bottom: 6px;
  height: 20px;
}

.selected {
  border: 1px solid;
}

.task-user-filter-dropdown {
  top: 65px !important;
}

.task-steps-container {
  display: block;
  visibility: hidden;
  transition: all 0.1s ease;
  width: 90px;
  z-index: 1070;
}

.task-steps-container.opened {
  visibility: visible;
  opacity: 1;
}

.task-steps-container.position_1 {
  top: 3px;
  left: 0px;
}

.task-steps-container.position_2 {
  top: -23px;
  left: 0px;
}

.task-steps-container.position_3 {
  top: -46px;
  left: 0px;
}

.project-status-switcher .project-status-options {
  position: absolute;
  top: calc(-5px - var(--project-status-index, 0) * 26px);
  left: -5px;
  z-index: 1070;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 5px;
  background: var(--bs-card-bg);
  box-shadow: rgba(6, 6, 6, 0.2) 0px 0px 12px 0px;
  border-radius: 0.625rem;
  display: none;
}
.project-status-switcher:hover:not(.is-changing) .project-status-options {
  display: flex;
  animation: bounceIn 0.25s;
}

.drawer-state-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.drawer-state-switcher::before {
  content: "";
  position: absolute;
  inset: -5px -7px;
  background: var(--bs-card-bg);
  border-radius: 0.625rem;
  box-shadow: rgba(6, 6, 6, 0.2) 0px 0px 12px 0px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease;
  z-index: 0;
}
.drawer-state-switcher:hover::before {
  opacity: 1;
  visibility: visible;
}
.drawer-state-switcher .drawer-state-slot {
  position: relative;
  z-index: 1;
  flex: 0 0 70px;
  width: 70px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.drawer-state-switcher .drawer-state-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease;
}
.drawer-state-switcher:hover .drawer-state-option {
  opacity: 1;
  visibility: visible;
}
.drawer-state-switcher .drawer-state-option-disabled {
  cursor: not-allowed;
  filter: grayscale(0.85);
}

.unbillable .noUi-connect {
  background-color: #BB0013 !important;
}

.tools {
  opacity: 0;
}

.task_line {
  transition: background-color 0.15s ease;
  position: relative;
  /* ensure z-index applies */
  z-index: auto;
  /* avoid creating a stacking context so dropdowns can escape row bounds */
  border-radius: 20px;
}
.task_line:hover .tools {
  opacity: 1;
}

/* Removed global task_line hover background to prevent affecting non-time-entry views */
/* Stronger specificity inside time entries list */
.time-entries-index .task_line:hover,
.time-entries-index .task_line:focus-within {
  background-color: var(--bs-gray-100) !important;
}

/*---------------------------------
  Steps MT
-----------------------------------*/
.bg-white {
  background-color: var(--bs-gray-400);
}

.mt-step-number {
  line-height: 36px;
}

.last {
  margin-left: 0px !important;
}

.mt-element-step .row {
  margin: 0;
}

.mt-element-step .mt-step-col {
  padding-top: 30px;
  padding-bottom: 30px;
  text-align: center;
}

.mt-element-step .mt-step-number {
  font-size: 26px;
  border-radius: 50% !important;
  display: inline-block;
  margin: auto;
  padding: 3px 14px;
  margin-bottom: 20px;
}

.mt-element-step .mt-step-title {
  font-size: 30px;
  font-weight: 100;
  color: var(--bs-gray-400);
}

.mt-step-content {
  color: var(--bs-gray-400);
}

.mt-element-step .step-line .mt-step-col {
  padding: 10px 0px 30px 0px;
  text-align: center;
}

.mt-element-step .step-line .mt-step-number {
  font-size: 26px;
  border-radius: 50% !important;
  display: inline-block;
  margin: auto;
  padding: 9px;
  margin-bottom: 5px;
  border: 3px solid;
  border-color: var(--bs-gray-400);
  color: var(--bs-gray-400);
  position: relative;
  z-index: 5;
  height: 60px;
  width: 60px;
  text-align: center;
}

.mt-element-step .step-line .mt-step-number > i {
  position: relative;
  top: 50%;
  transform: translateY(-120%);
}

.mt-element-step .step-line .mt-step-title {
  font-size: 20px;
  font-weight: 300;
  position: relative;
}

.mt-element-step .step-line .mt-step-title::after {
  content: "";
  height: 3px;
  width: 50%;
  position: absolute;
  background-color: var(--bs-gray-400);
  color: var(--bs-gray-400);
  top: -32px;
  left: 50%;
  z-index: 4;
  transform: translateY(-100%);
}

.mt-element-step .step-line .mt-step-title::before {
  content: "";
  height: 3px;
  width: 50%;
  position: absolute;
  background-color: var(--bs-gray-400);
  color: var(--bs-gray-400);
  top: -32px;
  right: 50%;
  z-index: 4;
  transform: translateY(-100%);
}

.mt-element-step .step-line .first .mt-step-title::before {
  content: none;
}

.mt-element-step .step-line .last .mt-step-title::after {
  content: none;
}

.mt-element-step .step-line .active .mt-step-number {
  color: #E36E00 !important;
  border-color: #E36E00 !important;
}

.mt-element-step .step-line .active .mt-step-title,
.mt-element-step .step-line .active .mt-step-content {
  color: #E36E00 !important;
}

.mt-element-step .step-line .active .mt-step-title::after,
.mt-element-step .step-line .active .mt-step-title::before {
  background-color: #E36E00;
}

.mt-element-step .step-line .done .mt-step-number {
  color: #aab93a !important;
  border-color: #aab93a !important;
}

.mt-element-step .step-line .done .mt-step-title,
.mt-element-step .step-line .done .mt-step-content {
  color: #aab93a !important;
}

.mt-element-step .step-line .done .mt-step-title::after,
.mt-element-step .step-line .done .mt-step-title::before {
  background-color: #aab93a;
}

.mt-element-step .step-line .error .mt-step-number {
  color: #E7505A !important;
  border-color: #E7505A !important;
}

.mt-element-step .step-line .error .mt-step-title,
.mt-element-step .step-line .error .mt-step-content {
  color: #E7505A !important;
}

.mt-element-step .step-line .error .mt-step-title::after,
.mt-element-step .step-line .error .mt-step-title::before {
  background-color: #E7505A;
}

.editable-container.editable-inline {
  width: 100% !important;
}

ul.select2-results__options {
  max-height: none !important;
  overflow-y: unset !important;
}

ul.select2-results__options[role=listbox] {
  max-height: 250px !important;
  overflow-y: auto !important;
}

.task-time-logger .to-account-field .select2-container + label {
  /* Keep label above selection without forcing float */
  position: relative;
  background-color: var(--bs-body-bg, #fff);
  padding: 0 0.25rem;
  z-index: 2;
  pointer-events: none;
}

/* Ensure the Select2 selection stays below the label within this field */
.task-time-logger .to-account-field .select2-container .select2-selection {
  position: relative;
  z-index: 1;
}

.task-time-logger .select2-results__group {
  font-weight: 900 !important;
}

.task-time-logger .line_item .tools {
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}
.task-time-logger .line_item:hover .tools {
  opacity: 1;
}

/* Removed global hover background for transaction line items to avoid unintended styling on journal entries.
   Background highlighting is now scoped only to the time entries index via `.time-entries-index .task_line` rules below. */
/* Toggle button styles for transaction delete functionality */
.tools {
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

/* Show tools on hover for task lines */
.task_line:hover .tools {
  opacity: 1;
}

/* Show tools on hover for generic line items (e.g., journal entry transactions) */
.line_item:hover .tools {
  opacity: 1;
}

/* KTToggle target styles - initially hidden */
[id^=kt_toggle_target_] {
  display: none !important;
}

/* When toggle is active, show the target */
[data-kt-toggle-state=active] + [id^=kt_toggle_target_],
[data-kt-toggle][data-kt-toggle-state=active] ~ [id^=kt_toggle_target_] {
  display: block !important;
}

/* Delete button styling within toggle target */
[id^=kt_toggle_target_] .btn {
  animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.line_item input:not([type=checkbox]):focus {
  background-color: var(--bs-gray-100) !important;
}

.line_item input:not([type=checkbox]):hover {
  background-color: var(--bs-gray-100) !important;
}

.transaction_group_name input:focus {
  background-color: var(--bs-gray-100) !important;
  color: var(--bs-body-color) !important;
}

.transaction_group_name input:hover {
  background-color: var(--bs-gray-100) !important;
  color: var(--bs-body-color) !important;
}

.select2-results__option.person-option-bg {
  background-color: var(--bs-dropdown-bg) !important;
  color: var(--bs-warning) !important;
}
.select2-results__option.person-option-bg.select2-results__option--highlighted {
  background-color: var(--bs-warning) !important;
  color: #fff !important;
}
.select2-results__option.person-option-bg.select2-results__option--selected {
  background-color: var(--bs-warning) !important;
  color: #fff !important;
}
.select2-results__option.person-option-bg::after {
  background-color: var(--bs-warning) !important;
  color: #000 !important;
}

.select2-results__option.company-option-bg {
  background-color: var(--bs-dropdown-bg) !important;
  color: var(--bs-component-hover-color) !important;
}
.select2-results__option.company-option-bg.select2-results__option--highlighted {
  background-color: var(--bs-info) !important;
  color: #fff !important;
}
.select2-results__option.company-option-bg.select2-results__option--selected {
  background-color: var(--bs-info) !important;
  color: #fff !important;
}
.select2-results__option.company-option-bg::after {
  background-color: var(--bs-dropdown-bg) !important;
  color: #000 !important;
}

.select2-results__option--highlighted {
  color: #141414 !important;
}

.select2-results__option--selected {
  color: #505050 !important;
}

.draggable-mirror {
  background-color: var(--bs-gray-100) !important;
  opacity: 0.5;
}

.draggable-transaction-zone {
  min-height: 36px;
}

#transaction_accounts_table_length {
  padding-left: 20px;
}

.form-control p {
  margin-bottom: 0.5rem !important;
}

.input-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 100;
}

.badge.all {
  background-color: none !important;
  color: var(--bs-gray-700) !important;
  font-size: 13px;
  font-weight: 400 !important;
}

.badge.open {
  background-color: var(--bs-secondary) !important;
  color: #000 !important;
}

.badge.bounce {
  background-color: var(--bs-danger) !important;
  color: #fff !important;
}

.badge.in_progress {
  background-color: var(--bs-success) !important;
  color: #fff !important;
}

.badge.review {
  background-color: var(--bs-warning) !important;
  color: #fff !important;
}

.badge.free {
  background-color: var(--bs-light) !important;
  color: var(--bs-gray-700) !important;
  border: 1px solid var(--bs-gray-300);
}

.badge.basic {
  background-color: var(--bs-secondary) !important;
  color: #000 !important;
}

.badge.pro {
  background-color: var(--bs-success) !important;
  color: #fff !important;
}

.badge.advanced {
  background-color: var(--bs-warning) !important;
  color: #fff !important;
}

.badge.ultimate {
  background-color: var(--bs-dark) !important;
  color: #fff !important;
}

/* Upgrade Plan Modal — marketing-style pricing cards */
#modal_upgrade_plan .pricing-toggle {
  display: inline-flex;
  background: #f8fafc;
  border-radius: 8px;
  padding: 4px;
  border: 1px solid #e9e7e4;
}
#modal_upgrade_plan .pricing-toggle .btn {
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1.5rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: #64748b;
  background: transparent;
  transition: all 0.15s;
}
#modal_upgrade_plan .pricing-toggle .btn.active {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
#modal_upgrade_plan .pricing-card {
  background: #fff;
  border: 2px solid #e9e7e4;
  border-radius: 12px;
  padding: 1.75rem;
  height: 100%;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  text-align: left;
  position: relative;
}
#modal_upgrade_plan .pricing-card:hover:not(.disabled-card) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
#modal_upgrade_plan .pricing-card.active {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 1px var(--bs-primary);
}
#modal_upgrade_plan .pricing-card.popular.active {
  box-shadow: 0 0 0 1px var(--bs-primary), 0 8px 30px rgba(0, 0, 0, 0.08);
}
#modal_upgrade_plan .pricing-card.disabled-card {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
#modal_upgrade_plan .pricing-card .popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bs-primary);
  color: #fff;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
#modal_upgrade_plan .pricing-card .plan-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0f172a;
}
#modal_upgrade_plan .pricing-card .plan-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}
#modal_upgrade_plan .pricing-card .plan-price .period {
  font-size: 0.9rem;
  font-weight: 400;
  color: #64748b;
}
#modal_upgrade_plan .pricing-card .plan-description {
  font-size: 0.9rem;
  color: #64748b;
}
#modal_upgrade_plan .pricing-card hr {
  border-color: #e9e7e4;
}
#modal_upgrade_plan .pricing-card .plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
}
#modal_upgrade_plan .pricing-card .plan-features li {
  padding: 0.35rem 0;
  font-size: 0.85rem;
  color: #334155;
}
#modal_upgrade_plan .pricing-card .plan-features li i {
  color: var(--bs-primary);
  margin-right: 0.5rem;
}

.task-user-filter-dropdown {
  top: 65px !important;
}

.add-line-item-button.btn:disabled {
  opacity: 0 !important;
}

.add-group-btn.btn:disabled {
  opacity: 0 !important;
}

/* The task drawer is a flex row and the task frame its only item. A flex
   item's minimum width defaults to its content's, so one unbreakable word in
   the task details (a file path, a URL) widened the frame past the 800px
   drawer and the surplus hung off the drawer's left edge, clipped. Let the
   frame shrink to the drawer, and wrap words the drawer cannot fit. */
.drawer[data-kt-drawer-name=tasks] > #edit_task {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

/* Task details click-to-edit: one always-mounted TipTap editor renders both
   read and edit mode, so content keeps its exact position and typography.
   Read mode hides the chrome (border, background, toolbar); .is-editing
   brings it back without moving the text. */
.task-details-editor {
  /* Header holds the DETAILS: label (read) or the toolbar (edit). It must
     reserve the TOOLBAR's height in both modes — the label alone is only
     ~15px, so anything shorter than the toolbar makes the row grow when the
     toolbar swaps in and pushes the content below it down. The toolbar
     measures 32.9px with Metronic's .btn-sm .btn-icon metrics; keep this at
     or above that. */
}
.task-details-editor .task-details-header {
  min-height: 35px;
  margin-bottom: 0.5rem;
}
.task-details-editor {
  /* The visible border comes from .border.border-1 in the markup (Bootstrap's
     border utility is !important, so it wins here either way) — only the fill
     changes between modes. */
}
.task-details-editor .tiptap-editor-surface {
  background-color: transparent;
  transition: background-color 0.15s ease;
}
.task-details-editor:not(.is-editing) .tiptap-editor-surface:hover {
  background-color: rgba(var(--bs-body-color-rgb), 0.05);
}
.task-details-editor.is-editing .tiptap-editor-surface {
  background-color: var(--bs-gray-100);
}
.task-details-editor {
  /* No internal scrollbox: the editor grows with its content and the drawer
     scrolls, exactly like read mode. */
}
.task-details-editor .tiptap-editor-surface .tiptap {
  min-height: 0;
  max-height: none;
  overflow-y: visible;
}
.task-details-editor.is-editing .tiptap-editor-surface .tiptap {
  min-height: 120px;
}
.task-details-editor {
  /* Save/Cancel keeps its space in read mode. Hiding it with display would
     collapse the row and pull everything below the details section up, then
     drop it back on edit — so hide it by visibility instead, which reserves
     the row's real height without a hardcoded value. Default-hidden means a
     JS failure leaves the buttons hidden rather than stranded on screen. */
}
.task-details-editor .task-details-actions {
  visibility: hidden;
}
.task-details-editor.is-editing .task-details-actions {
  visibility: visible;
}

/* Notes carry headings — the API's meeting notes open with one, and the note
   toolbar offers them. Bootstrap's page-title sizes are far too loud inside a
   note card, so notes size their own, in the editor and in the rendered note.
   Scoped like the document editor's: task/comment markdown is untouched. */
.note-markdown h1 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0.75rem 0 0.5rem;
}
.note-markdown h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0.7rem 0 0.4rem;
}
.note-markdown h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0.6rem 0 0.35rem;
}
.note-markdown h4, .note-markdown h5, .note-markdown h6 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0.6rem 0 0.3rem;
}
.note-markdown > :first-child {
  margin-top: 0;
}

/* TipTap editor surface (markdown WYSIWYG: task details, task comments,
   transaction line details, task allocations) */
.tiptap-editor-surface {
  padding: 0;
  height: auto;
  cursor: text;
}
.tiptap-editor-surface .tiptap {
  min-height: 120px;
  max-height: 45vh;
  overflow-y: auto;
  padding: 0.8rem;
  outline: none;
  color: var(--bs-body-color);
  font-size: 1rem;
  font-weight: 400;
}
.tiptap-editor-surface .tiptap p {
  margin-bottom: 0.5rem;
}
.tiptap-editor-surface .tiptap ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin: 0 0 0.5rem;
}
.tiptap-editor-surface .tiptap ol {
  list-style-type: decimal;
  padding-left: 1.5rem;
  margin: 0 0 0.5rem;
}
.tiptap-editor-surface .tiptap li {
  margin-bottom: 0.15rem;
}
.tiptap-editor-surface .tiptap strong {
  font-weight: bold;
}
.tiptap-editor-surface .tiptap em {
  font-style: italic;
}
.tiptap-editor-surface .tiptap s {
  text-decoration: line-through;
}
.tiptap-editor-surface .tiptap code {
  background: rgba(0, 0, 0, 0.05);
  padding: 2px 4px;
  border-radius: 3px;
  font-size: 0.9em;
}
.tiptap-editor-surface .tiptap pre {
  background: rgba(0, 0, 0, 0.05);
  padding: 0.75rem;
  border-radius: 6px;
  overflow-x: auto;
  margin-bottom: 0.5rem;
}
.tiptap-editor-surface .tiptap a {
  color: inherit;
  text-decoration: underline;
}
.tiptap-editor-surface .tiptap blockquote {
  border-left: 3px solid rgba(0, 0, 0, 0.1);
  padding-left: 0.75rem;
  margin: 0 0 0.5rem;
}
.tiptap-editor-surface .tiptap table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 0.75rem;
}
.tiptap-editor-surface .tiptap th, .tiptap-editor-surface .tiptap td {
  border: 1px solid var(--bs-border-color);
  padding: 0.4rem 0.5rem;
  vertical-align: top;
  position: relative;
}
.tiptap-editor-surface .tiptap th {
  font-weight: 600;
  background: var(--bs-gray-100);
}
.tiptap-editor-surface .tiptap th p, .tiptap-editor-surface .tiptap td p {
  margin: 0;
}
.tiptap-editor-surface .tiptap {
  /* Cell selection (drag across cells) from the table extension */
}
.tiptap-editor-surface .tiptap .selectedCell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(var(--bs-primary-rgb), 0.12);
  pointer-events: none;
}
.tiptap-editor-surface .tiptap {
  /* Placeholder extension ghost text */
}
.tiptap-editor-surface .tiptap p.is-editor-empty:first-child::before {
  content: attr(data-placeholder);
  color: var(--bs-gray-500);
  float: left;
  height: 0;
  pointer-events: none;
}
.tiptap-editor-surface {
  /* Dense surfaces (transaction line details) */
}
.tiptap-editor-surface.tiptap-compact .tiptap {
  min-height: 100px;
  font-size: 0.85rem;
}
.tiptap-editor-surface {
  /* Notes are written at length — the writing area matches the plain
     textareas these editors replaced (200px inline/modal, 400px in the
     full-width new-note modal); the quick-add composers keep the default. */
}
.tiptap-editor-surface.tiptap-note .tiptap h1 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0.75rem 0 0.5rem;
}
.tiptap-editor-surface.tiptap-note .tiptap h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0.7rem 0 0.4rem;
}
.tiptap-editor-surface.tiptap-note .tiptap h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0.6rem 0 0.35rem;
}
.tiptap-editor-surface.tiptap-note .tiptap h4, .tiptap-editor-surface.tiptap-note .tiptap h5, .tiptap-editor-surface.tiptap-note .tiptap h6 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0.6rem 0 0.3rem;
}
.tiptap-editor-surface.tiptap-note .tiptap > :first-child {
  margin-top: 0;
}
.tiptap-editor-surface.tiptap-note-body .tiptap {
  min-height: 200px;
}
.tiptap-editor-surface.tiptap-note-tall .tiptap {
  min-height: 400px;
}

/* Document system: numbered lists count hierarchically (1, 1.1, 1.1.1) —
   scoped to documents only, so task/comment markdown keeps plain numbering. */
/* Freeform document editor: a tall paper-like canvas. The page scrolls, the
   editor doesn't — so no max-height scrollbox, unlike the compact surfaces. */
.document-editor-shell .tiptap ol {
  list-style: none;
  counter-reset: bx-doc-ol;
  padding-left: 2rem;
}
.document-editor-shell .tiptap ol > li {
  counter-increment: bx-doc-ol;
  position: relative;
}
.document-editor-shell .tiptap {
  /* Hangs in the left margin (absolute, growing leftward) because list item
     content is block-level — TipTap wraps items in <p>, so an inline marker
     would sit on its own line above the text. */
}
.document-editor-shell .tiptap ol > li::before {
  content: counters(bx-doc-ol, ".") ".";
  position: absolute;
  right: 100%;
  margin-right: 0.4em;
  white-space: nowrap;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.document-editor-shell .tiptap ol > li > p {
  margin-bottom: 0.15rem;
}
.document-editor-shell .document-editor-paper {
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 8px;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.document-editor-shell .tiptap-editor-surface .tiptap {
  min-height: 60vh;
  max-height: none;
  overflow-y: visible;
  padding: 3rem 3.5rem;
}
.document-editor-shell .tiptap-editor-surface .tiptap h1 {
  font-size: 1.9rem;
  font-weight: 700;
  margin: 1.25rem 0 0.75rem;
}
.document-editor-shell .tiptap-editor-surface .tiptap h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 1.1rem 0 0.6rem;
}
.document-editor-shell .tiptap-editor-surface .tiptap h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 1rem 0 0.5rem;
}
.document-editor-shell .tiptap-editor-surface .tiptap h4, .document-editor-shell .tiptap-editor-surface .tiptap h5, .document-editor-shell .tiptap-editor-surface .tiptap h6 {
  font-weight: 600;
  margin: 0.9rem 0 0.4rem;
}
.document-editor-shell .tiptap-editor-surface .tiptap hr {
  margin: 1.5rem 0;
}
.document-editor-shell {
  /* Read-only (someone else is editing / lock not yet granted) */
}
.document-editor-shell:not(.is-editing) .document-editor-paper {
  opacity: 0.85;
}
.document-editor-shell:not(.is-editing) .markdown-toolbar {
  visibility: hidden;
}

/* Rendered document pages (show + version views) share the editor's
   hierarchical list numbering. */
.project-document .markdown-content ol {
  list-style: none;
  counter-reset: bx-doc-ol;
  padding-left: 2rem;
}
.project-document .markdown-content ol > li {
  counter-increment: bx-doc-ol;
  position: relative;
}
.project-document .markdown-content {
  /* Hangs in the left margin (absolute, growing leftward) because list item
     content is block-level — TipTap wraps items in <p>, so an inline marker
     would sit on its own line above the text. */
}
.project-document .markdown-content ol > li::before {
  content: counters(bx-doc-ol, ".") ".";
  position: absolute;
  right: 100%;
  margin-right: 0.4em;
  white-space: nowrap;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.project-document .markdown-content ol > li > p {
  margin-bottom: 0.15rem;
}

/* Unified line diff for freeform document version compare */
.markdown-diff {
  font-family: var(--bs-font-monospace, monospace);
  font-size: 0.8rem;
  line-height: 1.5;
}
.markdown-diff .markdown-diff-line {
  display: flex;
  padding: 0.05rem 0.75rem;
  white-space: pre-wrap;
  word-break: break-word;
}
.markdown-diff .markdown-diff-marker {
  width: 1.25rem;
  flex: 0 0 auto;
  user-select: none;
  opacity: 0.6;
}
.markdown-diff .markdown-diff-text {
  flex: 1 1 auto;
}
.markdown-diff .markdown-diff-added {
  background: rgba(var(--bs-success-rgb), 0.12);
}
.markdown-diff .markdown-diff-removed {
  background: rgba(var(--bs-danger-rgb), 0.1);
}
.markdown-diff .markdown-diff-removed .markdown-diff-text {
  text-decoration: line-through;
  text-decoration-color: rgba(var(--bs-danger-rgb), 0.4);
}
.markdown-diff .markdown-diff-elision {
  justify-content: center;
  color: var(--bs-gray-500);
  background: rgba(var(--bs-body-color-rgb), 0.03);
  font-size: 0.75rem;
}

#task_comment_input textarea.form-control.form-control-solid,
#task_comment_input textarea.form-control.form-control-solid:focus {
  font-size: 1rem;
  font-weight: 400;
  padding: 0.8rem;
}

/* Markdown content styles */
.markdown-content {
  font-family: inherit;
}
.markdown-content p,
.markdown-content ul,
.markdown-content ol,
.markdown-content li {
  font-family: inherit;
}
.markdown-content p {
  margin-bottom: 0.5rem;
  padding-left: 0;
}
.markdown-content ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin: 0 0 0.5rem;
}
.markdown-content ol {
  list-style-type: decimal;
  padding-left: 1.5rem;
  margin: 0 0 0.5rem;
}
.markdown-content li {
  margin-bottom: 0.15rem;
}
.markdown-content strong {
  font-weight: bold;
}
.markdown-content em {
  font-style: italic;
}
.markdown-content del {
  text-decoration: line-through;
}
.markdown-content code {
  background: rgba(var(--bs-body-color-rgb), 0.06);
  padding: 2px 4px;
  border-radius: 3px;
  font-size: 0.9em;
}
.markdown-content pre {
  background: rgba(var(--bs-body-color-rgb), 0.06);
  padding: 0.75rem;
  border-radius: 6px;
  overflow-x: auto;
  margin-bottom: 0.5rem;
}
.markdown-content a {
  color: inherit;
  text-decoration: underline;
}

/* A calculated tax-return field's formula (reports/tax_returns/_formula):
   each figure captioned with its label, joined by its operator, then the
   result. The figures are body text; only the captions and asides are muted. */
.tax-formula {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  column-gap: 0.4rem;
  row-gap: 0.35rem;
  font-size: 0.85rem;
  line-height: 1.3;
  color: var(--bs-gray-800);
}
.tax-formula .tax-formula-term {
  display: inline-flex;
  flex-direction: column;
}
.tax-formula .tax-formula-symbol {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--bs-gray-600);
  white-space: nowrap;
}
.tax-formula .tax-formula-figure {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.tax-formula .tax-formula-op {
  color: var(--bs-gray-600);
}
.tax-formula .tax-formula-result .tax-formula-figure {
  font-weight: 700;
  color: var(--bs-gray-900);
}
.tax-formula .tax-formula-aside {
  font-size: 0.75rem;
  color: var(--bs-gray-600);
}

/* The Auto badge of a calculated total shows its formula as its tooltip,
   wide enough for a sum of several labels to sit on one or two lines. */
.tooltip.tax-formula-tooltip .tooltip-inner {
  max-width: 420px;
  text-align: left;
}

/* Field notes quote figures and workings in inline code; Metronic's magenta
   code style shouts over the note, so they read as plain figures in a box. */
#fieldNoteTimeline code {
  color: var(--bs-gray-900);
  background: var(--bs-gray-100);
  box-shadow: none;
  margin: 0;
  padding: 1px 5px;
  font-size: 0.95em;
}

/* Markdown toolbar buttons */
.markdown-toolbar .btn-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  font-size: 0.85rem;
}

/* Ensure rendered content displays correctly inside chat bubbles */
[data-kt-element=message-text] {
  text-align: left !important;
}
[data-kt-element=message-text] .markdown-content p {
  margin-bottom: 0.5rem;
  padding-left: 0;
}
[data-kt-element=message-text] .markdown-content ul {
  list-style-type: disc;
  padding-left: 1.25rem;
  margin: 0 0 0.5rem 1.25rem;
}
[data-kt-element=message-text] .markdown-content ol {
  list-style-type: decimal;
  padding-left: 1.25rem;
  margin: 0 0 0.5rem 1.25rem;
}
[data-kt-element=message-text] .markdown-content li {
  margin-left: 0;
}

[data-kt-element=message-text] p {
  margin-bottom: 0.5rem;
}

[data-kt-element=message-text] ul {
  list-style-type: disc;
  list-style-position: outside;
  padding-left: 1.25rem;
  margin: 0 0 0.5rem 1.25rem;
}

[data-kt-element=message-text] ol {
  list-style-type: decimal;
  list-style-position: outside;
  padding-left: 1.25rem;
  margin: 0 0 0.5rem 1.25rem;
}

[data-kt-element=message-text] li {
  margin-left: 0;
}

.help-drawer-message {
  max-width: 86%;
  line-height: 1.5;
}

.help-drawer-message-user {
  border-top-right-radius: 0.25rem !important;
}

.help-drawer-message-assistant {
  border-top-left-radius: 0.25rem !important;
}

.help-drawer-answer p {
  margin: 0 0 0.75rem;
}
.help-drawer-answer p:last-child {
  margin-bottom: 0;
}
.help-drawer-answer ul,
.help-drawer-answer ol {
  margin: 0 0 0.75rem;
  padding-left: 1.15rem;
}
.help-drawer-answer li {
  margin-bottom: 0.35rem;
  padding-left: 0.15rem;
}
.help-drawer-answer li:last-child {
  margin-bottom: 0;
}
.help-drawer-answer strong {
  color: var(--bs-gray-900);
  font-weight: 600;
}
.help-drawer-answer code {
  background: var(--bs-gray-200);
  border-radius: 0.25rem;
  color: var(--bs-gray-800);
  font-size: 0.92em;
  padding: 0.1rem 0.3rem;
}

.help-drawer-search-results {
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color, #e4e6ef);
  border-radius: 0.475rem;
  box-shadow: 0 0.5rem 1.5rem rgba(15, 23, 42, 0.08);
  left: 0;
  max-height: 360px;
  overflow-y: auto;
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  z-index: 3;
}

.help-drawer-search-group {
  padding: 0.75rem 0;
}
.help-drawer-search-group + .help-drawer-search-group {
  border-top: 1px solid var(--bs-border-color, #e4e6ef);
}

.help-drawer-search-category {
  color: var(--bs-gray-500);
  font-size: 0.725rem;
  font-weight: 700;
  letter-spacing: 0;
  padding: 0 1rem 0.35rem;
  text-transform: uppercase;
}

.help-drawer-search-result {
  display: block;
  padding: 0.55rem 1rem;
}
.help-drawer-search-result:hover {
  background: var(--bs-gray-100);
}

.help-drawer-search-title,
.help-drawer-search-description {
  display: block;
}

.help-drawer-search-title {
  color: var(--bs-gray-900);
  font-size: 0.9rem;
  font-weight: 600;
}

.help-drawer-search-description {
  color: var(--bs-gray-600);
  font-size: 0.78rem;
  line-height: 1.35;
  margin-top: 0.15rem;
}

.help-drawer-search-empty {
  color: var(--bs-gray-600);
  font-size: 0.85rem;
  padding: 1rem;
}

.project-header {
  z-index: 500;
}

.menu-sub.menu-sub-dropdown[data-kt-menu] {
  z-index: 10001 !important;
}

.tooltip {
  z-index: 10050 !important;
}

.z-index-5 {
  z-index: 501;
}

[data-kt-toggle-name=on] {
  display: block !important;
}

.bas-journal-delete:has(#bas_journal_delete_confirm[data-kt-toggle-name=on]) #bas_journal_delete_toggle {
  display: none;
}

/* New CSS Grid-based Gantt Timeline System */
.gantt-grid-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bs-card-bg);
  border-bottom: 1px solid var(--bs-border-color);
}

.gantt-day-header {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gantt-container {
  position: relative;
}

.gantt-timeline-wrapper {
  position: relative;
  overflow-y: auto;
}

.gantt-grid-container {
  height: 100%;
}

.gantt-grid-column {
  height: 100%;
  border-right: 1px solid var(--bs-border-color);
}

.gantt-grid-column:last-child {
  border-right: none;
}

.gantt-day-header {
  border-right: 1px solid var(--bs-border-color);
}

.gantt-day-header:last-child {
  border-right: none;
}

/* Fullscreen Desktop agents modal (accounts/desktop_agents/_modal.html.haml).
   Its header and body arrive inside a turbo-frame, which sits between
   .modal-content and .modal-body. The frame has to pass the flex column on,
   or .modal-body never gets a bounded height and the whole modal overflows
   the window instead of the body scrolling under a fixed header. */
#desktop_agent_modal turbo-frame#desktop_agent_modal_frame {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

/* "Move other Milestones?" (task_lists/_milestone_move_modal) also opens over
   the fullscreen #gantt-modal below. Both are Bootstrap modals at z-index 1055
   and #gantt-modal comes later in the page, so without this the prompt opened
   behind the fullscreen chart and the drag looked like it did nothing. The
   backdrop class is added by milestone_tasks_controller#showBulkMoveModal. */
#milestone_move_modal {
  z-index: 1065;
}

.modal-backdrop.milestone-move-backdrop {
  z-index: 1060;
}

/* Fullscreen "Milestones & Events" modal (#gantt-modal in
   tasks/_gantt_chart_list.html.haml).

   Padding: the dialog is `modal-fullscreen`, so without this the chart runs
   into all four edges of the browser window.

   Height: the chart is a flex column from .modal-body down to .table-container
   so it fills the window rather than stopping at the last milestone row — the
   day columns are absolutely positioned inside .table-container, so they only
   reach the bottom if every ancestor stretches. min-height: 0 is what lets the
   chart shrink and scroll internally when there are more rows than fit;
   without it flex items refuse to go below their content height and the whole
   modal overflows instead. */
#gantt-modal {
  /* 2.25rem / 2rem is the card padding Metronic uses everywhere else, so the
     fullscreen chart sits on the same rhythm as the one in the dashboard card. */
}
#gantt-modal .modal-header {
  padding-left: 2.25rem;
  padding-right: 2.25rem;
  /* The filter bar wraps on narrow windows; keep the rows apart when it does. */
}
#gantt-modal .modal-header > .d-flex {
  row-gap: 0.5rem;
}
#gantt-modal .modal-body {
  padding: 0 2.25rem 2rem;
  min-height: 0;
}
#gantt-modal #modal-gantt-container,
#gantt-modal turbo-frame#gantt_milestones_modal,
#gantt-modal .gantt-inner {
  min-height: 0;
}
#gantt-modal .gantt-timeline-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 0;
  /* Grow into the leftover space, but never shrink below the rows, so the
     wrapper still scrolls when the milestones outrun the window. */
}
#gantt-modal .gantt-timeline-wrapper .table-container {
  flex: 1 0 auto;
}

/* Fullscreen Gantt Mode */
.gantt-fullscreen-mode .card {
  height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
}
.gantt-fullscreen-mode .card .card-body {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.gantt-fullscreen-mode .card .card-body .gantt-container {
  flex: 1;
  overflow-x: auto;
  display: flex;
  flex-direction: column;
}
.gantt-fullscreen-mode .card .card-body .gantt-container .gantt-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.gantt-fullscreen-mode .card .card-body .gantt-container .gantt-inner .gantt-grid-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bs-card-bg);
  border-bottom: 1px solid var(--bs-border-color);
}
.gantt-fullscreen-mode .card .card-body .gantt-container .gantt-inner .gantt-timeline-wrapper {
  flex: 1;
  overflow-y: auto;
  position: relative;
}
.gantt-fullscreen-mode .card .card-body .gantt-container .gantt-inner .gantt-timeline-wrapper .gantt-grid-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 100%;
  height: 100%;
}
.gantt-fullscreen-mode .card .card-body .gantt-container .gantt-inner .gantt-timeline-wrapper .gantt-grid-column {
  min-height: 100%;
  height: 100%;
}
.gantt-fullscreen-mode .card .card-body .gantt-container .gantt-inner .gantt-timeline-wrapper .table-container {
  position: relative;
  z-index: 10;
  background: transparent;
  height: 100%;
}
.gantt-fullscreen-mode {
  /* Hide other page elements in fullscreen */
}
.gantt-fullscreen-mode ~ * {
  display: none !important;
}

/* Legacy grid container - kept for backwards compatibility */
.grid-container {
  position: relative;
}

/* Ensure the table (or a wrapping div) is positioned above the background */
.table-container {
  position: relative;
  z-index: 2;
}

/* Add this to your CSS */
.typing-indicators {
  padding: 0 10px;
  min-height: 30px;
}

@-webkit-keyframes pulse {
  0% {
    -webkit-transform: scale(1);
  }
  50% {
    -webkit-transform: scale(1.2);
  }
  100% {
    -webkit-transform: scale(1);
  }
}
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}
.noUi-target .noUi-handle {
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.noUi-target .noUi-handle::before,
.noUi-target .noUi-handle::after {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  display: none !important;
}

.typing-indicator {
  animation: pulse 1.5s infinite;
}

/* app/assets/stylesheets/toast.css */
#toast-container {
  z-index: 1050;
}

.toast {
  min-width: 300px;
  background-color: var(--bs-card-bg);
  border-left: 4px solid #009ef7;
  box-shadow: 0 0.5rem 1.5rem 0.5rem rgba(0, 0, 0, 0.075);
  cursor: pointer;
}

.toast .btn-close {
  cursor: pointer;
}

.toast-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.toast-body {
  padding: 0.75rem;
}

.select2-container--default .select2-results__option .expense-class {
  color: #BE0015;
}

.select2-container--default .select2-selection--single .select2-selection__rendered .expense-class {
  color: #BE0015;
}

.select2-container--default .select2-selection__placeholder .expense-class {
  color: #BE0015;
}

.select2-container--default .select2-results__option .income-class {
  color: #9CAE2F;
}

.select2-container--default .select2-selection--single .select2-selection__rendered .income-class {
  color: #9CAE2F;
}

.select2-container--default .select2-selection__placeholder .income-class {
  color: #9CAE2F;
}

/*---------------------------------
  Overdue Milestones list (above the gantt chart)
-----------------------------------*/
/* The overdue backlog can run to dozens of rows; cap it and scroll internally so
   the gantt chart below it always stays on screen. */
.overdue-milestones-scroll {
  max-height: 220px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding-right: 4px;
}

.overdue-milestones-scroll::-webkit-scrollbar {
  width: 6px;
}

.overdue-milestones-scroll::-webkit-scrollbar-thumb {
  background-color: var(--bs-gray-300);
  border-radius: 3px;
}

.overdue-milestone-item {
  border-radius: 6px;
  padding-left: 6px;
  padding-right: 6px;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}

.overdue-milestone-item.is-draggable {
  cursor: grab;
}

.overdue-milestone-item.is-draggable:hover {
  background-color: var(--bs-gray-100);
}

.overdue-milestone-item.overdue-milestone-dragging {
  opacity: 0.45;
  cursor: grabbing;
}

/* Milestone dragging styles */
.milestone-dot {
  cursor: grab;
  z-index: 10;
  position: relative;
  min-width: 20px;
  min-height: 20px;
}

.milestone-dot i.fa-bullseye {
  display: inline-block !important;
  width: auto !important;
  height: auto !important;
  font-size: 24px !important;
  line-height: 1 !important;
}

.milestone-dot:hover::after {
  opacity: 1;
}

.milestone-dot.milestone-dragging {
  opacity: 0.7;
  cursor: grabbing;
  transform: scale(1);
}

.milestone-dot.milestone-dragging::after {
  opacity: 0;
}

/* Milestone row highlight when task is dragged over */
.milestone-row.task-drag-over {
  background-color: var(--bs-gray-200) !important;
  border: 0px dashed #41b883 !important;
}

/* Day column styles */
.position-absolute.milestone-drag-over {
  background-color: var(--bs-gray-300) !important;
}

.position-absolute.column-highlight {
  background-color: var(--bs-gray-300);
  transition: background-color 0.2s ease;
}

/* Make the day column indicators more noticeable */
.position-absolute {
  transition: background-color 0.3s ease;
}

/* Hover effect for milestones to indicate they're draggable */
.milestone-dot:hover i.fa-bullseye {
  transform: scale(1.1);
  transition: transform 0.2s ease;
}

/* Add a visual cue during dragging */
.grid-container.dragging-active .position-absolute {
  background-color: var(--bs-gray-300);
  border-right: 1px dashed #E0E0E0 !important;
}

.symbol.symbol-15px .symbol-label {
  width: 15px;
  height: 15px;
}

.fc-list-event .fa-bullseye {
  color: #e36e00 !important;
}

.fc-daygrid-event {
  padding-left: 5px !important;
  font-size: 11px !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center;
  border-radius: 8px !important;
}
.fc-daygrid-event .fc-event-main {
  overflow: hidden !important;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}
.fc-daygrid-event .symbol {
  flex-shrink: 0;
}

.tooltip-avatar[style*="--avatar-color"] {
  background-color: var(--avatar-color) !important;
}

.tooltip .tooltip-avatar[style*="--avatar-color"],
.tooltip-inner .tooltip-avatar[style*="--avatar-color"],
[data-bs-toggle=tooltip] .tooltip-avatar[style*="--avatar-color"],
.bs-tooltip-auto .tooltip-avatar[style*="--avatar-color"] {
  background-color: var(--avatar-color) !important;
}

.tooltip-avatar {
  background-color: var(--avatar-color, #007bff) !important;
}

/*---------------------------------
  Gantt Column Hover States
-----------------------------------*/
/* Hover effect for table click overlay areas */
.gantt-click-area.gantt-column-clickable {
  transition: background-color 0.2s ease, opacity 0.2s ease;
  pointer-events: auto;
  cursor: pointer;
  z-index: 1;
  /* below task bars so tasks remain clickable */
}

/* JS-controlled highlight to avoid hover flicker */
.column-highlight {
  /* DEBUG: make highlight very obvious */
  background-color: #DA5806 !important;
  /* vivid magenta */
  opacity: 0.5 !important;
  /* higher for visibility */
  will-change: opacity;
}

/* Dedicated moving hover highlight element under tasks */
.gantt-hover-highlight {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  /* will be overridden inline */
  width: 0;
  /* will be overridden inline */
  pointer-events: none;
  /* non-interactive */
  background-color: var(--bs-gray-200);
  /* subtle background */
  opacity: 0.6;
  transition: none;
  /* instant to avoid flicker */
  z-index: 0;
  /* stay beneath task overlays if they have higher z */
}

/*---------------------------------
  Gantt Task Bar Hover
-----------------------------------*/
/* Ensure the task container doesn't clip scaled bars */
.milestone-task-container {
  overflow: visible;
}

/* Smooth scale effect on task progress bars (links with class task-bar) */
.task-bar {
  transition: opacity 120ms ease, box-shadow 120ms ease;
  will-change: opacity;
  position: relative;
  /* ensure z-index takes effect */
  z-index: 10;
  /* clearly above overlay so hover/clicks register */
}

.task-bar:hover {
  opacity: 0.85;
  /* subtle emphasis via opacity */
  z-index: 15;
  /* raise above neighbors during hover */
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* JS-mirrored hover when overlay is on top */
.task-bar.task-bar--hovered {
  opacity: 0.85;
  z-index: 15;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), 0 2px 6px rgba(0, 0, 0, 0.15);
}

.quote-gantt-preview .quote-gantt-table {
  position: relative;
  z-index: 10;
  margin-bottom: 0;
}
.quote-gantt-preview .quote-gantt-row {
  background: transparent;
}
.quote-gantt-preview .quote-gantt-row td {
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}
.quote-gantt-preview .quote-gantt-milestone-dot {
  cursor: default;
  max-width: 420px;
}
.quote-gantt-preview .quote-gantt-milestone-draggable {
  cursor: grab;
}
.quote-gantt-preview .quote-gantt-task-bar {
  min-width: 3px;
  overflow: hidden;
}
.quote-gantt-preview .quote-gantt-task-bar-resizable {
  overflow: visible;
  cursor: grab;
}
.quote-gantt-preview .quote-gantt-task-bar-overdue {
  box-shadow: 0 0 0 2px var(--bs-warning);
}
.quote-gantt-preview .quote-gantt-resize-handle {
  position: absolute;
  top: -2px;
  bottom: -2px;
  right: -4px;
  width: 10px;
  cursor: ew-resize;
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.15s ease-in-out;
  background: rgba(0, 0, 0, 0.35);
}
.quote-gantt-preview .quote-gantt-resize-handle-start {
  right: auto;
  left: -4px;
}
.quote-gantt-preview .quote-gantt-task-bar-resizable:hover .quote-gantt-resize-handle {
  opacity: 1;
}
.quote-gantt-preview .quote-gantt-task-stack {
  position: relative;
  z-index: 20;
  pointer-events: none;
}
.quote-gantt-preview .quote-gantt-task-stack-row {
  min-height: 20px;
}
.quote-gantt-preview .quote-gantt-task-stack-row + .quote-gantt-task-stack-row {
  margin-top: 3px;
}
.quote-gantt-preview .quote-gantt-task-track {
  top: 50%;
  z-index: 25;
  height: 18px;
  transform: translateY(-50%);
  pointer-events: none;
}
.quote-gantt-preview .quote-gantt-task-label {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.quote-gantt-preview .quote-gantt-empty-task-line {
  padding-left: 10px;
}

body.quote-gantt-resizing {
  cursor: ew-resize;
  user-select: none;
}

.fc-daygrid-dot-event .ki-tag {
  color: #EC3600 !important;
}
.fc-daygrid-dot-event .ki-calendar {
  color: #D2D2D2 !important;
}

/*---------------------------------
  Time Entries 24h Grid
-----------------------------------*/
.time-entries-timeline-wrapper {
  position: relative;
}

.time-entries-timeline-wrapper .time-grid-container {
  pointer-events: none;
  /* let row controls be clickable */
}

.time-entries-timeline-wrapper .time-grid-column {
  border-left: 1px solid #efefef;
  background-clip: padding-box;
  /* keep border visible over bg */
}

/* Add a right edge line on the final hour column */
.time-entries-timeline-wrapper .time-grid-column.work-hours {
  background: var(--bs-gray-100);
  /* subtle brand tint during work hours */
}

.time-grid-label {
  font-size: 10px;
  line-height: 1;
  color: #7e8299;
  /* muted */
  border-radius: 3px;
}

.time-entry-edit-mode [id^=time-entry-slider-] .noUi-connect {
  background: var(--te-color) !important;
  background-color: var(--te-color) !important;
  background-image: none !important;
  opacity: 1 !important;
}
.time-entry-edit-mode [id^=time-entry-slider-] .noUi-handle {
  box-shadow: none !important;
  outline: none !important;
  border-color: transparent !important;
}

/* app/assets/stylesheets/override.css.scss */
.comments-container textarea.form-control,
.markdown-inline-wrapper textarea.form-control {
  border: 1px solid #e4e6ef;
  border-radius: 0.475rem;
}

/* Typing dots animation for messaging */
.typing-dots {
  display: inline-block;
  margin-left: 2px;
}

.typing-dots .dot {
  display: inline-block;
  font-size: 1.2em;
  line-height: 1;
  margin: 0 1px;
}

/*---------------------------------
  DataTables Page Length Dropdown Fix
-----------------------------------*/
div.dataTables_wrapper div.dataTables_length select {
  min-width: 60px;
  padding-right: 2rem;
}

/* DataTables pagination styling to match showcase page */
div.dataTables_wrapper > .row:last-child {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 1.5rem;
}

div.dataTables_wrapper div.dataTables_info {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--bs-gray-700);
  padding-top: 0;
}

div.dataTables_wrapper div.dataTables_paginate .pagination {
  margin-bottom: 0;
}

/*---------------------------------
  Daterangepicker z-index fix for modals
  The leave modal uses z-index: 1070, so daterangepicker needs to be higher
-----------------------------------*/
.modal-open .daterangepicker {
  z-index: 1075 !important;
}

/*---------------------------------
  Location Autocomplete Styles
-----------------------------------*/
.autocomplete-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bs-dropdown-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 0.475rem;
  box-shadow: 0px 0px 50px 0px rgba(82, 63, 105, 0.15);
  max-height: 300px;
  overflow-y: auto;
  margin-top: 0.25rem;
}

.autocomplete-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid #f5f8fa;
  transition: background-color 0.15s ease;
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.active {
  background-color: var(--bs-gray-100);
}

.autocomplete-item .fw-semibold {
  color: #181c32;
  font-size: 0.95rem;
}

.autocomplete-item .text-muted {
  margin-top: 0.25rem;
}

/*---------------------------------
   Help Drawer — Markdown Content
   Styles for rendered markdown
   inside the help drawer panel.
---------------------------------*/
.help-article-content h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--bs-gray-700);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed var(--bs-gray-300);
}
.help-article-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--bs-gray-700);
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}
.help-article-content p {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}
.help-article-content ul, .help-article-content ol {
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}
.help-article-content li {
  margin-bottom: 0.25rem;
  line-height: 1.6;
}
.help-article-content table {
  width: 100%;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  border-collapse: collapse;
}
.help-article-content table th {
  font-weight: 600;
  background-color: var(--bs-gray-100);
  padding: 0.5rem 0.75rem;
  border-bottom: 2px solid var(--bs-gray-300);
  text-align: left;
}
.help-article-content table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--bs-gray-200);
  vertical-align: top;
}
.help-article-content blockquote {
  border-left: 3px solid var(--bs-primary);
  padding: 0.5rem 1rem;
  margin: 0.75rem 0;
  background-color: var(--bs-gray-100);
  border-radius: 0 0.25rem 0.25rem 0;
  font-size: 0.85rem;
}
.help-article-content blockquote p {
  margin-bottom: 0;
}
.help-article-content code {
  background-color: var(--bs-gray-100);
  padding: 0.15rem 0.35rem;
  border-radius: 0.2rem;
  font-size: 0.85em;
}
.help-article-content pre {
  background-color: var(--bs-gray-100);
  padding: 1rem;
  border-radius: 0.375rem;
  overflow-x: auto;
  margin-bottom: 1rem;
}
.help-article-content pre code {
  background: none;
  padding: 0;
}
.help-article-content hr {
  border: 0;
  border-top: 1px dashed var(--bs-gray-300);
  margin: 1.5rem 0;
}
.help-article-content strong {
  font-weight: 600;
  color: var(--bs-gray-800);
}
.help-article-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1rem 0 1.5rem;
  border: 1px solid var(--bs-border-color, #e4e6ef);
  border-radius: 0.625rem;
  box-shadow: 0 1rem 2rem rgba(15, 23, 42, 0.16), 0 0.25rem 0.75rem rgba(15, 23, 42, 0.08);
}

/*---------------------------------
   Showcase Person Search (New Contact Modal)
---------------------------------*/
.showcase-search-results .showcase-result-item {
  cursor: pointer;
  border-bottom: 1px solid #f1f1f2;
  transition: background-color 0.15s ease;
}
.showcase-search-results .showcase-result-item:hover {
  background-color: var(--bs-gray-100);
}
.showcase-search-results .showcase-result-item:last-child {
  border-bottom: none;
}

/*---------------------------------
   Project Roster Source Browser
---------------------------------*/
.roster-source-browser-layout {
  align-items: flex-start;
}

.roster-source-filter-column {
  align-self: flex-start;
  position: sticky;
  top: 1.5rem;
  z-index: 2;
}

.roster-source-filter-card {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 10rem);
}
.roster-source-filter-card .select2-container {
  width: 100% !important;
}
.roster-source-filter-card .card-body {
  overflow-y: auto;
}

@media (max-width: 991.98px) {
  .roster-source-filter-column {
    position: static;
  }
  .roster-source-filter-card {
    max-height: none;
  }
}
/*---------------------------------
   Leave Management Card Scroll
---------------------------------*/
.leave-management-scroll {
  max-height: 500px;
  overflow-y: auto;
}

/*---------------------------------
   Allocations Table
---------------------------------*/
#allocations_table tbody.allocation-row-group:not(:last-of-type) > tr:last-child > td {
  border-bottom: 0.5rem solid var(--bs-body-bg) !important;
}
#allocations_table tr.statement-row {
  height: 45px;
}
#allocations_table .allocation-suggestion-card,
#allocations_table .allocation-suggested-match-card {
  border: 1px dashed var(--bs-warning);
  border-radius: 0.475rem;
  padding: 0.35rem 0.6rem;
  background: transparent;
}
#allocations_table .allocation-suggestion-placeholder {
  border: 1px dashed transparent;
  border-radius: 0.475rem;
  padding: 0.35rem 0.6rem;
}
#allocations_table .allocation-suggested-match-card.allocation-duplicate-card {
  border-color: var(--bs-danger);
}
#allocations_table .allocation-suggestion-label {
  color: var(--bs-gray-600);
  font-size: 0.65rem;
  line-height: 1.2;
  margin-bottom: 0.2rem;
}
#allocations_table tbody.allocation-row-busy {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.15s ease-in;
}
#allocations_table .allocation-accept-suggestion[data-kt-indicator=on] {
  background-color: transparent !important;
  border-color: transparent !important;
  opacity: 1;
}
#allocations_table .allocation-record-card {
  border: 1px solid rgba(var(--bs-success-rgb), 0.45);
  border-radius: 0.475rem;
  padding: 0.35rem 0.6rem;
  background: rgba(var(--bs-success-rgb), 0.08);
}

.bank-feed-account-logo .bank-logo {
  max-width: 100%;
  width: auto;
}

.select2-transaction-account-logo-frame {
  align-items: center;
  display: inline-flex;
  flex: 0 0 38px;
  height: 38px;
  justify-content: center;
}

.select2-transaction-account-logo {
  display: block;
  height: 38px;
  max-width: 38px;
  object-fit: contain;
  width: auto;
}

/*---------------------------------
   Project Files - storage destination bar

   ONE storage system per account (docs/file-manager-plan.md), so the Files
   page carries a single horizontal bar -- identity on the left, the drop
   target in the middle, that backend's actions on the right -- and the whole
   bar is the Dropzone form. .storage-card is kept as the shared class name
   so the dropzone-storage-card border reset and preview rules below still
   apply.
---------------------------------*/
.storage-card .dz-previews-area:not(:empty) {
  margin-top: 0.75rem;
}

.storage-bar__identity {
  min-width: 220px;
}

.dropzone.dropzone-storage-card {
  cursor: default;
}
.dropzone.dropzone-storage-card .dz-default.dz-message {
  display: none;
}
.dropzone.dropzone-storage-card:hover, .dropzone.dropzone-storage-card.dz-drag-hover {
  border-color: var(--bs-card-border-color) !important;
  background-color: var(--bs-card-bg) !important;
  box-shadow: none;
  transform: none;
}

.files-drop-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--bs-primary);
  border-radius: var(--bs-card-border-radius, 0.625rem);
  background-color: rgba(var(--bs-primary-rgb), 0.06);
  backdrop-filter: blur(1px);
  pointer-events: none;
}

.files-drop-overlay--page {
  position: fixed;
  inset: 0.75rem;
  z-index: 1060;
  border-width: 3px;
  background-color: rgba(var(--bs-body-bg-rgb), 0.88);
  backdrop-filter: blur(2px);
}

.invoice-upload-button .dz-previews-area {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 20;
  width: 340px;
  max-width: calc(100vw - 2rem);
}
.invoice-upload-button .dz-previews-area:has(> :not(.dz-preview)) {
  padding: 0.5rem 0.5rem 0;
  border-radius: var(--bs-border-radius-lg);
  background-color: var(--bs-body-bg);
  box-shadow: var(--bs-dropdown-box-shadow);
}

.folder-chip {
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.folder-chip:hover {
  border-color: var(--bs-primary) !important;
  box-shadow: 0 0.15rem 0.5rem rgba(var(--bs-primary-rgb), 0.15);
}
.folder-chip--drop-hover {
  border-color: var(--bs-primary) !important;
  background-color: var(--bs-primary-light);
}

/*---------------------------------
   Dropzone Inline Upload Previews
   Side-by-side layout: message left, progress bars right
---------------------------------*/
.dropzone {
  cursor: pointer;
}
.dropzone.dropzone-storage-card {
  padding: 0 !important;
  border: var(--bs-card-border-width) solid var(--bs-card-border-color) !important;
  background-color: var(--bs-card-bg) !important;
}
.dropzone {
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.dropzone:hover {
  border-color: var(--bs-primary) !important;
  background-color: var(--bs-primary-light) !important;
  box-shadow: 0 0.25rem 0.75rem rgba(var(--bs-primary-rgb), 0.2);
  transform: translateY(-1px);
}
.dropzone:hover .ki-document {
  color: var(--bs-primary) !important;
}
.dropzone.dz-drag-hover {
  border-style: solid !important;
  border-color: var(--bs-primary) !important;
  background-color: rgba(var(--bs-primary-rgb), 0.12) !important;
  box-shadow: 0 0 0 0.15rem rgba(var(--bs-primary-rgb), 0.25);
  transform: translateY(-1px);
}
.dropzone.dz-drag-hover .ki-document {
  color: var(--bs-primary) !important;
}
.dropzone.dz-started .dz-message {
  display: flex !important;
}
.dropzone .dz-previews-area {
  max-height: 200px;
  min-width: 0;
}
.dropzone .dz-previews-area:empty {
  pointer-events: none;
}
.dropzone .dz-preview {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  min-height: auto !important;
  margin: 0 !important;
  padding: 4px 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
.dropzone .dz-preview:hover {
  z-index: auto !important;
}
.dropzone .dz-preview.dz-complete {
  animation: dz-fade-out 1.5s ease-out 1s forwards;
}

@keyframes dz-fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0.3;
  }
}
.card-rounded-top.bg-light-danger .text-white,
.card-rounded-top.bg-light-success .text-white,
.card-header.bg-light-danger .text-white,
.card-header.bg-light-success .text-white {
  color: var(--bs-gray-800) !important;
}
.card-rounded-top.bg-light-danger .btn-outline.text-white,
.card-rounded-top.bg-light-success .btn-outline.text-white,
.card-header.bg-light-danger .btn-outline.text-white,
.card-header.bg-light-success .btn-outline.text-white {
  border-color: var(--bs-gray-600);
}

.add-group-btn.bg-light-danger,
.add-group-btn.bg-light-success {
  color: var(--bs-gray-700);
}
.add-group-btn.bg-light-danger .text-inverse-primary,
.add-group-btn.bg-light-success .text-inverse-primary {
  color: var(--bs-gray-700) !important;
}

.border-light-danger.border-light-danger {
  border-color: var(--bs-danger-light) !important;
}

.border-light-success.border-light-success {
  border-color: var(--bs-success-light) !important;
}

.min-w-0 {
  min-width: 0 !important;
}

.ai-finding-action-tooltip .tooltip-inner {
  max-width: 320px;
  text-align: left;
}

#dashboard_customize_toolbar .dashboard-customize-actions {
  display: none;
}
#dashboard_customize_toolbar.dashboard-customizing .dashboard-customize-enter {
  display: none;
}
#dashboard_customize_toolbar.dashboard-customizing .dashboard-customize-actions {
  display: flex;
}

#dashboard_customizable .dashboard-slot-chrome,
#dashboard_customizable .dashboard-empty-slot {
  display: none;
}
#dashboard_customizable.dashboard-customizing .dashboard-slot {
  outline: 2px dashed var(--bs-gray-400);
  outline-offset: 3px;
  border-radius: 0.75rem;
}
#dashboard_customizable.dashboard-customizing .dashboard-slot.dashboard-slot-drop-target {
  outline: 2px solid var(--bs-primary);
  background-color: rgba(var(--bs-primary-rgb), 0.05);
}
#dashboard_customizable.dashboard-customizing .dashboard-widget-item.draggable-source--is-dragging {
  opacity: 0.4;
}
#dashboard_customizable.dashboard-customizing .dashboard-slot-chrome {
  display: flex;
  gap: 0.35rem;
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 15;
}
#dashboard_customizable.dashboard-customizing .dashboard-slot-drag-handle {
  cursor: grab;
}
#dashboard_customizable.dashboard-customizing .dashboard-widget-item > turbo-frame,
#dashboard_customizable.dashboard-customizing .dashboard-widget-item > .card {
  pointer-events: none;
  user-select: none;
}
#dashboard_customizable.dashboard-customizing .dashboard-slot-chrome,
#dashboard_customizable.dashboard-customizing .dashboard-empty-slot {
  pointer-events: auto;
}
#dashboard_customizable.dashboard-customizing .dashboard-empty-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  height: 100%;
  border: 2px dashed var(--bs-gray-400);
  border-radius: 0.75rem;
  background: var(--bs-gray-100);
}

@media (min-width: 1200px) {
  #dashboard_customizable .dashboard-half-col {
    display: flex;
    flex-direction: column;
  }
  #dashboard_customizable .dashboard-half-col > .dashboard-slot[data-slot-size=half] {
    flex: 1 1 0;
    min-height: 400px;
  }
  #dashboard_customizable .dashboard-slot[data-slot-size=half] .dashboard-widget-item,
  #dashboard_customizable .dashboard-slot[data-slot-size=half] .dashboard-widget-item > .card,
  #dashboard_customizable .dashboard-slot[data-slot-size=half] .dashboard-widget-item > turbo-frame,
  #dashboard_customizable .dashboard-slot[data-slot-size=half] .card-body,
  #dashboard_customizable .dashboard-slot[data-slot-size=half] .card-body .scroll-y {
    min-height: 0;
  }
}
.dashboard-my-tasks--half .task-project-cell {
  display: none !important;
}
.dashboard-my-tasks--half .task_line .text-truncate.mw-650px {
  max-width: 260px !important;
}

#dashboard_customizable:not(.dashboard-customizing) .dashboard-slot:not(:has(.dashboard-widget-item:not(.dashboard-widget-empty))),
#dashboard_customizable:not(.dashboard-customizing) .dashboard-col:not(:has(.dashboard-widget-item:not(.dashboard-widget-empty))),
#dashboard_customizable:not(.dashboard-customizing) .dashboard-row:not(:has(.dashboard-widget-item:not(.dashboard-widget-empty))) {
  display: none;
}
@media (min-width: 768px) {
  #dashboard_customizable:not(.dashboard-customizing) .dashboard-row > .dashboard-col {
    flex-grow: 1;
  }
  #dashboard_customizable:not(.dashboard-customizing) .dashboard-stack-col > .dashboard-slot:nth-child(1 of :has(.dashboard-widget-item:not(.dashboard-widget-empty))):nth-last-child(1 of :has(.dashboard-widget-item:not(.dashboard-widget-empty))) {
    height: calc(100% + 1.25rem) !important;
  }
}
@media (min-width: 1200px) {
  #dashboard_customizable:not(.dashboard-customizing) .dashboard-row > .dashboard-stack-col {
    flex: 3 1 0;
    width: auto;
  }
  #dashboard_customizable:not(.dashboard-customizing) .dashboard-row > .dashboard-half-col:not(.dashboard-promoted-col) {
    flex: 6 1 0;
    width: auto;
  }
  #dashboard_customizable:not(.dashboard-customizing) .dashboard-stack-col > .dashboard-slot:nth-child(1 of :has(.dashboard-widget-item:not(.dashboard-widget-empty))):nth-last-child(1 of :has(.dashboard-widget-item:not(.dashboard-widget-empty))) {
    height: calc(100% + 2.5rem) !important;
  }
}

.draggable-mirror.dashboard-widget-item {
  opacity: 0.9;
  z-index: 1100;
  background-color: transparent !important;
}
.draggable-mirror.dashboard-widget-item,
.draggable-mirror.dashboard-widget-item * {
  pointer-events: none !important;
}

/*---------------------------------
   Task message composer attachments (Slack-style drag & drop)
   comment_attachments_controller.js stages dropped/pasted files as chips;
   sent messages render image thumbnails / file cards under the bubble.
--------------------------------*/
.comment-attachments-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  border: 2px dashed var(--bs-primary, #009ef7);
  /* Never intercept the drag — drop events must reach the composer beneath */
  pointer-events: none;
}

.comment-attachment-chip {
  max-width: 240px;
}

.comment-attachment-chip-thumb {
  width: 32px;
  height: 32px;
  object-fit: cover;
}

.comment-attachment-thumb {
  display: block;
  max-width: 220px;
  max-height: 140px;
  object-fit: cover;
  background: #fff;
}

.comment-attachment-preview:hover .comment-attachment-thumb {
  filter: brightness(0.92);
}

.comment-attachment-file {
  max-width: 260px;
}
.comment-attachment-file:hover {
  border-color: var(--bs-primary, #009ef7) !important;
}

/* Submit buttons with a loading indicator: stack the label and the
   "Loading… + ellipsis" spans in the same grid cell so the button is always
   sized to the larger of the two states — toggling data-kt-indicator can no
   longer change the button's width or height mid-submit. The theme's
   .btn.btn-icon { display: inline-flex } loads after this file, so icon
   buttons need the extra class to keep the grid; as flex items the hidden
   ellipsis took the room and squeezed the icon off-centre. */
.btn[data-kt-indicator],
.btn.btn-icon[data-kt-indicator] {
  display: inline-grid;
  grid-auto-flow: column;
  align-items: center;
  justify-content: center;
  justify-items: center;
}

.btn[data-kt-indicator] > .indicator-label,
.btn[data-kt-indicator] > .indicator-progress {
  grid-area: 1/1;
  display: inline-block;
  white-space: nowrap;
}

.btn[data-kt-indicator] > .indicator-progress {
  visibility: hidden;
}

.btn[data-kt-indicator=on] > .indicator-progress {
  visibility: visible;
}

.btn[data-kt-indicator=on] > .indicator-label {
  display: inline-block;
  visibility: hidden;
}

/* The ellipsis SVG is 15–20px tall; without this it raises the line box and
   grows btn-sm buttons by a few pixels. Negative vertical margins keep its
   contribution to the line box below the text height at every button size. */
.btn .indicator-progress img {
  vertical-align: middle;
  margin-top: -6px;
  margin-bottom: -6px;
}

/* The theme renders .alert-danger as --bs-danger text (#BB0013) on
   --bs-danger-light (#FF6464). Despite the name, danger-light is a saturated
   red, not a subtle tint, so that pairing sits at 2.79:1 — below WCAG AA for
   any text size. Children carrying .text-danger or .text-muted are worse still.

   Fix it once here rather than per-view: solid --bs-danger ground with white
   content (9.3:1). Only .alert-danger is affected — .alert-warning and friends
   use genuinely pale backgrounds (--bs-warning-light is #fff8dd) where white
   text would disappear, so they are deliberately left alone. */
.alert.alert-danger {
  background-color: var(--bs-danger);
  border-color: var(--bs-danger);
  color: #fff;
}
.alert.alert-danger h1, .alert.alert-danger h2, .alert.alert-danger h3, .alert.alert-danger h4, .alert.alert-danger h5, .alert.alert-danger h6,
.alert.alert-danger .alert-link,
.alert.alert-danger a:not(.btn),
.alert.alert-danger .text-danger,
.alert.alert-danger .text-muted,
.alert.alert-danger .text-dark,
.alert.alert-danger [class*=text-gray-],
.alert.alert-danger .ki-duotone,
.alert.alert-danger .ki-outline,
.alert.alert-danger .ki-solid {
  color: #fff !important;
}
.alert.alert-danger {
  /* A .table sets its cells' colour from --bs-table-color, which the theme
     points at the body colour (dark grey), so a table inside the alert
     (banking/_bank_balances_summary) rendered dark grey on the red. Give it
     white text, a transparent ground and faint white rules. */
}
.alert.alert-danger .table {
  --bs-table-color: #fff;
  --bs-table-bg: transparent;
  --bs-table-border-color: rgba(255, 255, 255, 0.3);
  --bs-table-striped-color: #fff;
  --bs-table-hover-color: #fff;
  --bs-table-active-color: #fff;
  color: #fff;
}
.alert.alert-danger {
  /* btn-close is a dark SVG data-URI; invert it so dismissible danger alerts
     keep a visible close control against the solid red. */
}
.alert.alert-danger .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

/* Dark mode redefines every --bs-*-light background to a dark tone
   (--bs-warning-light goes #fff8dd -> #3A2A14, success -> #2A2E14, and so on)
   but leaves --bs-text-muted at #565674. Muted copy inside an alert therefore
   lands at ~1.96:1 — the "Your trial ended on:" label in the trial alert is
   the most visible case, but every light-background variant has it.

   --bs-text-gray-700 still reads as secondary against the alert's body text
   while clearing 4.49:1 (warning/primary/dark) to 5.53:1 (secondary).

   .alert-danger is excluded because it is already solid --bs-danger with white
   content in both themes; the exclusion keeps that true regardless of the
   order these two blocks appear in. */
[data-bs-theme=dark] .alert:not(.alert-danger) .text-muted {
  color: var(--bs-text-gray-700) !important;
}

/* Alert icons were picked per call site and drifted across four sizes —
   fs-2 , fs-2x, fs-2hx and fs-2tx — so alerts sitting near each other looked
   inconsistent. fs-2x is both the median and the most common (36 of 69 uses),
   so pin every alert icon to it rather than editing each view; this also
   covers the alerts built in Stimulus controllers.

   The value tracks .fs-2x in style.bundle.css. Those utilities are declared
   !important, so matching that here is what makes the pin effective. */
.alert .ki-duotone,
.alert .ki-outline,
.alert .ki-solid {
  font-size: calc(1.325rem + 0.9vw) !important;
}

.email-suppressed-tag {
  background-color: #F1416C !important;
  border-color: #F1416C !important;
  color: #ffffff !important;
}
.email-suppressed-tag .select2-selection__choice__remove {
  color: #ffffff !important;
}

/* Workload Outlook / Milestones gantt zoom sliders: brand-primary thumb
   (Bootstrap's .form-range defaults the thumb to the theme's component blue).
   Vendor pseudo-elements can't share a selector list across vendors — browsers
   drop the whole rule on the one they don't recognise — so each vendor gets
   its own block. */
.workload-zoom-control .form-range::-webkit-slider-thumb,
.gantt-zoom-control .form-range::-webkit-slider-thumb {
  background-color: var(--bs-primary);
}

.workload-zoom-control .form-range::-moz-range-thumb,
.gantt-zoom-control .form-range::-moz-range-thumb {
  background-color: var(--bs-primary);
}

.workload-zoom-control .form-range:focus::-webkit-slider-thumb,
.gantt-zoom-control .form-range:focus::-webkit-slider-thumb {
  box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}

.workload-zoom-control .form-range:focus::-moz-range-thumb,
.gantt-zoom-control .form-range:focus::-moz-range-thumb {
  box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}

/* Edit Milestone modal task board (task_lists/_edit + milestone_task_board
   Stimulus controller): two drag-and-drop columns for attaching project tasks
   to a milestone. Bootstrap CSS variables keep it correct in dark mode. */
.mtb-min-h-0 {
  min-height: 0; /* lets nested flex children scroll instead of overflowing the modal */
}

.mtb-list {
  min-height: 140px;
  background-color: var(--bs-gray-100);
  border: 1px dashed var(--bs-gray-300);
}

.mtb-card {
  cursor: grab;
  background-color: var(--bs-body-bg);
  border-color: var(--bs-gray-300) !important;
  user-select: none; /* the whole card is the drag handle */
}
.mtb-card:active {
  cursor: grabbing;
}
.mtb-card.mtb-dragging {
  opacity: 0.4;
}
.mtb-card {
  /* Never let the browser drag the task link as a link — the card owns the drag */
}
.mtb-card a {
  -webkit-user-drag: none;
}

.mtb-list.mtb-drag-over {
  border-color: var(--bs-primary);
  background-color: rgba(var(--bs-primary-rgb), 0.08);
}

/* The card's move button shows an "attach" arrow in the available column and
   a "remove" arrow in the milestone column. */
.mtb-move-btn .mtb-icon-remove {
  display: none;
}

[data-column=milestone] .mtb-move-btn .mtb-icon-add {
  display: none;
}
[data-column=milestone] .mtb-move-btn .mtb-icon-remove {
  display: inline-flex;
}

/* Gantt event bar content (tasks/_event_row): the bar's width tracks the zoom
   slider's --day-px live, so what fits inside can't be decided server-side.
   The bar is a size container and container queries reveal detail as it
   widens: nothing below 26px (the tooltip carries everything), then the
   count/initials, then the icon, then the long "N people" form. */
.event-bar {
  container-type: inline-size;
}

.event-bar .event-bar-content {
  display: none;
}

.event-bar .event-bar-icon,
.event-bar .event-bar-count-long {
  display: none;
}

@container (min-width: 26px) {
  .event-bar .event-bar-content {
    display: flex;
  }
}
@container (min-width: 44px) {
  .event-bar .event-bar-icon {
    display: inline-block;
  }
}
@container (min-width: 70px) {
  .event-bar .event-bar-count-long {
    display: inline;
  }
  .event-bar .event-bar-count-short {
    display: none;
  }
}
/* Milestones gantt continuous zoom: gantt_chart_controller.js sets --day-px on
   the widget root and a density class from the same value, so header labels
   and grid lines thin out as columns narrow: at medium density only Mondays /
   month-starts keep their label, at small density only month-starts, and
   non-anchor grid lines drop out (mirrors the Workload Outlook scheme). */
.gantt-zoom-md .gantt-day-header:not(.gm-monday):not(.gm-month-start) .gm-lbl,
.gantt-zoom-sm .gantt-day-header:not(.gm-month-start) .gm-lbl {
  display: none;
}

.gantt-zoom-md .gm-lbl, .gantt-zoom-sm .gm-lbl,
.gantt-zoom-md .gm-today, .gantt-zoom-sm .gm-today {
  white-space: nowrap;
  overflow: visible;
  position: relative;
  z-index: 3;
}

/* Anchor surviving labels to their column's left edge; centring would spill
   them left of narrow columns (the first column's TODAY gets clipped by the
   scroll container). The headers are flex with justify-content: center (rule
   above) and carry Bootstrap's .text-center. */
.gantt-zoom-md .gantt-day-header, .gantt-zoom-sm .gantt-day-header {
  text-align: left !important;
  justify-content: flex-start;
}

.gantt-zoom-sm .gantt-day-header:not(.gm-month-start):not(.gm-monday),
.gantt-zoom-sm .gantt-grid-column:not(.gm-month-start):not(.gm-monday) {
  border-right-color: transparent !important;
}

/* .btn-bg-{variant} paints background and border only — the theme gives it no
   colour rule, so the label fell back to .btn's own #181C32 while .btn-{variant}
   next to it renders white. Solid coloured grounds take white to match; the two
   pale variants (secondary #F1F1F1, light #F9F9F9) keep the dark default.

   Each variant takes its own --bs-<variant>-inverse rather than a #fff literal:
   in dark mode --bs-dark flips to #CDCDDE, and white on that is 1.57:1, whereas
   --bs-dark-inverse flips with it (#151521). The other five inverses are white
   in both themes, so this only changes behaviour where it must. */
.btn.btn-bg-primary {
  color: var(--bs-primary-inverse);
}

.btn.btn-bg-success {
  color: var(--bs-success-inverse);
}

.btn.btn-bg-info {
  color: var(--bs-info-inverse);
}

.btn.btn-bg-warning {
  color: var(--bs-warning-inverse);
}

.btn.btn-bg-danger {
  color: var(--bs-danger-inverse);
}

.btn.btn-bg-dark {
  color: var(--bs-dark-inverse);
}

/* Keenicons carry their own `color: var(--bs-text-muted)` rule in
   style.bundle.css, so they never inherit their container's text colour. The
   theme papers over this with per-variant `.btn.btn-{variant} i` rules — but
   only for buttons. Badges have no such rule and neither does .btn-bg-*, so a
   bare icon there rendered #A1A5B7 regardless of ground: 1.01:1 inside
   .badge-success, 1.03:1 inside .badge-info, 1.01:1 inside .btn-bg-success.
   ~1,400 bare `%i.ki-*` call sites are affected, so fix it by inheritance here
   rather than by adding a text-* class per call site.

   Alerts are included for the same reason: an alert icon with no text-* class
   sat at 2.21:1 on its own ground. Icons that DO carry a utility class keep it
   (those utilities are !important), and .alert-danger's white-icon rule above
   is likewise !important, so both survive this. */
.badge .ki-duotone,
.badge .ki-outline,
.badge .ki-solid,
.alert .ki-duotone,
.alert .ki-outline,
.alert .ki-solid,
.btn[class*=btn-bg-] .ki-duotone,
.btn[class*=btn-bg-] .ki-outline,
.btn[class*=btn-bg-] .ki-solid {
  color: inherit;
}

/* Every pale-tint badge and button carries the same dark ink — 80% black, so
   the tint shows through a little — instead of the theme's variant colour,
   which on its own pale tint never reaches readable contrast (olive on pale
   olive: 1.9:1). The tint alone says which variant it is.

   In dark mode the other -light tokens are dark grounds
   (shared/_dark_mode.scss) and the theme's bright variant colours are right,
   so only success — still a pale ground there — takes the ink in both themes.

   The html:not(...) prefix makes this (0,3,1), which beats the bundle's
   (0,2,0) rules although it loads later. The theme's hover/focus rules are
   (0,4,0) and still take over on interaction, keeping white-on-solid. Its
   .active and .show rules are only (0,3,0), so a button rendered already
   selected would keep the dark ink on the solid colour until clicked; the
   :not(:where()) leaves those states to the theme without adding specificity. */
html {
  --light-variant-ink: rgba(0, 0, 0, 0.8);
}

html:not([data-bs-theme=dark]) .btn.btn-light-primary:not(:where(.active, .show)),
html:not([data-bs-theme=dark]) .badge.badge-light-primary {
  color: var(--light-variant-ink);
}
html:not([data-bs-theme=dark]) .btn.btn-light-primary:not(:where(.active, .show)) i,
html:not([data-bs-theme=dark]) .btn.btn-light-primary:not(:where(.active, .show)) .svg-icon, html:not([data-bs-theme=dark]) .btn.btn-light-primary:not(:where(.active, .show)).dropdown-toggle:after,
html:not([data-bs-theme=dark]) .badge.badge-light-primary i,
html:not([data-bs-theme=dark]) .badge.badge-light-primary .svg-icon,
html:not([data-bs-theme=dark]) .badge.badge-light-primary.dropdown-toggle:after {
  color: inherit;
}
html:not([data-bs-theme=dark]) .btn.btn-light-success:not(:where(.active, .show)),
html:not([data-bs-theme=dark]) .badge.badge-light-success {
  color: var(--light-variant-ink);
}
html:not([data-bs-theme=dark]) .btn.btn-light-success:not(:where(.active, .show)) i,
html:not([data-bs-theme=dark]) .btn.btn-light-success:not(:where(.active, .show)) .svg-icon, html:not([data-bs-theme=dark]) .btn.btn-light-success:not(:where(.active, .show)).dropdown-toggle:after,
html:not([data-bs-theme=dark]) .badge.badge-light-success i,
html:not([data-bs-theme=dark]) .badge.badge-light-success .svg-icon,
html:not([data-bs-theme=dark]) .badge.badge-light-success.dropdown-toggle:after {
  color: inherit;
}
html:not([data-bs-theme=dark]) .btn.btn-light-info:not(:where(.active, .show)),
html:not([data-bs-theme=dark]) .badge.badge-light-info {
  color: var(--light-variant-ink);
}
html:not([data-bs-theme=dark]) .btn.btn-light-info:not(:where(.active, .show)) i,
html:not([data-bs-theme=dark]) .btn.btn-light-info:not(:where(.active, .show)) .svg-icon, html:not([data-bs-theme=dark]) .btn.btn-light-info:not(:where(.active, .show)).dropdown-toggle:after,
html:not([data-bs-theme=dark]) .badge.badge-light-info i,
html:not([data-bs-theme=dark]) .badge.badge-light-info .svg-icon,
html:not([data-bs-theme=dark]) .badge.badge-light-info.dropdown-toggle:after {
  color: inherit;
}
html:not([data-bs-theme=dark]) .btn.btn-light-warning:not(:where(.active, .show)),
html:not([data-bs-theme=dark]) .badge.badge-light-warning {
  color: var(--light-variant-ink);
}
html:not([data-bs-theme=dark]) .btn.btn-light-warning:not(:where(.active, .show)) i,
html:not([data-bs-theme=dark]) .btn.btn-light-warning:not(:where(.active, .show)) .svg-icon, html:not([data-bs-theme=dark]) .btn.btn-light-warning:not(:where(.active, .show)).dropdown-toggle:after,
html:not([data-bs-theme=dark]) .badge.badge-light-warning i,
html:not([data-bs-theme=dark]) .badge.badge-light-warning .svg-icon,
html:not([data-bs-theme=dark]) .badge.badge-light-warning.dropdown-toggle:after {
  color: inherit;
}
html:not([data-bs-theme=dark]) .btn.btn-light-danger:not(:where(.active, .show)),
html:not([data-bs-theme=dark]) .badge.badge-light-danger {
  color: var(--light-variant-ink);
}
html:not([data-bs-theme=dark]) .btn.btn-light-danger:not(:where(.active, .show)) i,
html:not([data-bs-theme=dark]) .btn.btn-light-danger:not(:where(.active, .show)) .svg-icon, html:not([data-bs-theme=dark]) .btn.btn-light-danger:not(:where(.active, .show)).dropdown-toggle:after,
html:not([data-bs-theme=dark]) .badge.badge-light-danger i,
html:not([data-bs-theme=dark]) .badge.badge-light-danger .svg-icon,
html:not([data-bs-theme=dark]) .badge.badge-light-danger.dropdown-toggle:after {
  color: inherit;
}

/* --bs-success-light is the same pale olive (#eaf0d5) in dark mode, so it keeps
   the dark ink there too; the bundle would paint it white (1.17:1). */
html[data-bs-theme=dark] .btn.btn-light-success:not(:where(.active, .show)),
html[data-bs-theme=dark] .badge.badge-light-success {
  color: var(--light-variant-ink);
}
html[data-bs-theme=dark] .btn.btn-light-success:not(:where(.active, .show)) i,
html[data-bs-theme=dark] .btn.btn-light-success:not(:where(.active, .show)) .svg-icon, html[data-bs-theme=dark] .btn.btn-light-success:not(:where(.active, .show)).dropdown-toggle:after,
html[data-bs-theme=dark] .badge.badge-light-success i,
html[data-bs-theme=dark] .badge.badge-light-success .svg-icon,
html[data-bs-theme=dark] .badge.badge-light-success.dropdown-toggle:after {
  color: inherit;
}

/* --bs-secondary (#F1F1F1) and --bs-light (#F9F9F9) are *background* greys in
   this palette, but the theme also hands them to `color:` on every "secondary"
   and "light" variant. That paints near-white text on a near-white ground:
   1.07:1 for .badge-light-secondary / .btn-light-secondary / .alert-secondary,
   1.01:1 for the light equivalents — text that is effectively invisible, and
   the icons inherit it now too.

   The theme already defines the right tokens and uses them on the solid
   variants: --bs-secondary-inverse (#3F4254) and --bs-light-inverse (#7E8299)
   are what .badge-secondary and .badge-light paint with. Point the pale
   variants at the same two tokens rather than inventing literals.

   Where the selector below is (0,2,0) the bundle matches it and loads later, so
   :not(.btn-active) adds the class needed to win; on those buttons the theme's
   hover/active rules are (0,4,0) and still take over on interaction. */
.badge.badge-light-secondary,
.badge.badge-secondary.badge-outline,
.btn.btn-light-secondary:not(.btn-active),
.btn.btn-outline.btn-outline-secondary:not(.btn-active),
.alert.alert-secondary {
  color: var(--bs-secondary-inverse);
  /* The same near-white token is handed to these buttons' `i` rule and to
     .alert-link, both at a specificity the plain colour fix above does not
     reach — pull them onto the container's colour too. */
}
.badge.badge-light-secondary i,
.badge.badge-light-secondary .svg-icon,
.badge.badge-light-secondary .alert-link,
.badge.badge-secondary.badge-outline i,
.badge.badge-secondary.badge-outline .svg-icon,
.badge.badge-secondary.badge-outline .alert-link,
.btn.btn-light-secondary:not(.btn-active) i,
.btn.btn-light-secondary:not(.btn-active) .svg-icon,
.btn.btn-light-secondary:not(.btn-active) .alert-link,
.btn.btn-outline.btn-outline-secondary:not(.btn-active) i,
.btn.btn-outline.btn-outline-secondary:not(.btn-active) .svg-icon,
.btn.btn-outline.btn-outline-secondary:not(.btn-active) .alert-link,
.alert.alert-secondary i,
.alert.alert-secondary .svg-icon,
.alert.alert-secondary .alert-link {
  color: inherit;
}

.badge.badge-light-light,
.badge.badge-light.badge-outline,
.btn.btn-outline.btn-outline-light:not(.btn-active),
.alert.alert-light {
  color: var(--bs-light-inverse);
}
.badge.badge-light-light i,
.badge.badge-light-light .svg-icon,
.badge.badge-light-light .alert-link,
.badge.badge-light.badge-outline i,
.badge.badge-light.badge-outline .svg-icon,
.badge.badge-light.badge-outline .alert-link,
.btn.btn-outline.btn-outline-light:not(.btn-active) i,
.btn.btn-outline.btn-outline-light:not(.btn-active) .svg-icon,
.btn.btn-outline.btn-outline-light:not(.btn-active) .alert-link,
.alert.alert-light i,
.alert.alert-light .svg-icon,
.alert.alert-light .alert-link {
  color: inherit;
}

/* KTMenu dropdowns (108 of them use menu-state-bg-light-primary) paint their
   hover, open, current and active rows with --bs-primary-light. That token is
   now a pale orange (#F9EFE4, for the light-primary badges and buttons), which
   put an orange-red wash behind every menu row, and under a delete item's red
   text. Menu rows go back to the light grey menu ground; the text still turns
   primary (or danger, on text-hover-danger items) as before.

   Setting --bs-primary-light on the menu instead would also recolour the
   badge-light-primary counts inside these menus, so the four state rules are
   restated. The html prefix beats the bundle, which loads later.
   --bs-menu-link-bg-color-hover is light grey in light mode and the dark
   hover ground in dark mode. */
html .menu-state-bg-light-primary .menu-item.show > .menu-link,
html .menu-state-bg-light-primary .menu-item.here > .menu-link,
html .menu-state-bg-light-primary .menu-item.hover:not(.here) > .menu-link:not(.disabled):not(.active):not(.here),
html .menu-state-bg-light-primary .menu-item:not(.here) .menu-link:hover:not(.disabled):not(.active):not(.here),
html .menu-state-bg-light-primary .menu-item .menu-link.active {
  background-color: var(--bs-menu-link-bg-color-hover);
}

/* Recurring invoice schedule modal (recurring_invoices/_schedule_modal).
   Stacked, the timeline of next invoices is a 300px scroll box. From lg up it
   is the modal's right-hand column and takes the height of the settings
   column beside it: a zero flex-basis keeps its own rows from setting the
   row's height, so the settings do. */
.recurring-timeline-scroller {
  max-height: 300px;
}

@media (min-width: 992px) {
  .recurring-timeline-column {
    display: flex;
    flex-direction: column;
    border-left: 1px dashed var(--bs-border-color);
  }
  .recurring-timeline-scroller {
    flex: 1 1 0;
    min-height: 300px;
    max-height: none;
  }
}
/*---------------------------------
   Dark Mode Palette
   The shipped style.bundle.css is a light-only Metronic build: it contains
   component-level [data-bs-theme=dark] rules but is missing the core dark
   variable palette (body/gray/card/text colours). This file supplies it.

   Selector note: application.css loads BEFORE style.bundle.css, whose light
   values live on `:root` (matches in every theme). `html[data-bs-theme=dark]`
   out-specifies `:root`, so these win regardless of load order.

   Values are Metronic 8 demo dark defaults, adapted to the Beeswax brand
   accents (primary/warning orange #E36E00, success olive, info blue).
--------------------------------*/
html[data-bs-theme=dark] {
  /* Core body */
  --bs-body-bg: #151521;
  --bs-body-bg-rgb: 21, 21, 33;
  --bs-body-color: #FFFFFF;
  --bs-body-color-rgb: 255, 255, 255;
  --bs-emphasis-color: #FFFFFF;
  --bs-emphasis-color-rgb: 255, 255, 255;
  --bs-heading-color: #FFFFFF;
  --bs-secondary-color: rgba(255, 255, 255, 0.75);
  --bs-secondary-color-rgb: 255, 255, 255;
  --bs-secondary-bg: #2B2B40;
  --bs-secondary-bg-rgb: 43, 43, 64;
  --bs-tertiary-color: rgba(255, 255, 255, 0.5);
  --bs-tertiary-color-rgb: 255, 255, 255;
  --bs-tertiary-bg: #1B1B29;
  --bs-tertiary-bg-rgb: 27, 27, 41;
  /* Gray scale (inverted) */
  --bs-gray-100: #1B1B29;
  --bs-gray-200: #2B2B40;
  --bs-gray-300: #323248;
  --bs-gray-400: #474761;
  --bs-gray-500: #565674;
  --bs-gray-600: #6D6D80;
  --bs-gray-700: #92929F;
  --bs-gray-800: #CDCDDE;
  --bs-gray-900: #FFFFFF;
  --bs-gray: #6D6D80;
  --bs-gray-dark: #CDCDDE;
  --bs-gray-100-rgb: 27, 27, 41;
  --bs-gray-200-rgb: 43, 43, 64;
  --bs-gray-300-rgb: 50, 50, 72;
  --bs-gray-400-rgb: 71, 71, 97;
  --bs-gray-500-rgb: 86, 86, 116;
  --bs-gray-600-rgb: 109, 109, 128;
  --bs-gray-700-rgb: 146, 146, 159;
  --bs-gray-800-rgb: 205, 205, 222;
  --bs-gray-900-rgb: 255, 255, 255;
  /* Contextual colours — brand accents stay, tints/inverses go dark */
  --bs-light: #1F212A;
  --bs-light-rgb: 31, 33, 42;
  --bs-light-active: #2A2A3C;
  --bs-light-inverse: #7E8299;
  --bs-secondary: #2B2B40;
  --bs-secondary-rgb: 43, 43, 64;
  --bs-secondary-active: #474761;
  --bs-secondary-inverse: #CDCDDE;
  --bs-secondary-light: #1B1B29;
  --bs-primary-light: #3A2A14;
  --bs-warning-light: #3A2A14;
  --bs-success-light: #eaf0d5;
  --bs-info-light: #1A2E3F;
  --bs-danger-light: #3A1A20;
  --bs-dark-light: #2B2B40;
  --bs-dark: #CDCDDE;
  --bs-dark-rgb: 205, 205, 222;
  --bs-dark-active: #FFFFFF;
  --bs-dark-inverse: #151521;
  /* Text utilities */
  --bs-text-gray-100: #1B1B29;
  --bs-text-gray-200: #2B2B40;
  --bs-text-gray-300: #323248;
  --bs-text-gray-400: #474761;
  --bs-text-gray-500: #565674;
  --bs-text-gray-600: #6D6D80;
  --bs-text-gray-700: #92929F;
  --bs-text-gray-800: #CDCDDE;
  --bs-text-gray-900: #FFFFFF;
  --bs-text-muted: #565674;
  --bs-text-dark: #FFFFFF;
  --bs-text-light: #1F212A;
  --bs-text-secondary: #CDCDDE;
  /* Borders */
  --bs-border-color: #2B2B40;
  --bs-border-color-translucent: rgba(255, 255, 255, 0.15);
  --bs-border-dashed-color: #323248;
  /* Links — brighten brand orange slightly for contrast on dark */
  --bs-link-color: #F58A1F;
  --bs-link-color-rgb: 245, 138, 31;
  --bs-link-hover-color: #FFA047;
  --bs-link-hover-color-rgb: 255, 160, 71;
  /* Components */
  --bs-component-hover-bg: #2A2A3C;
  --bs-component-hover-color: #F58A1F;
  --bs-box-shadow: none;
  --bs-box-shadow-xs: none;
  --bs-box-shadow-sm: none;
  --bs-box-shadow-lg: none;
  --bs-input-bg: var(--bs-body-bg);
  --bs-input-color: var(--bs-gray-800);
  --bs-input-solid-color: var(--bs-gray-800);
  --bs-input-solid-bg: var(--bs-gray-100);
  --bs-input-solid-bg-focus: var(--bs-gray-200);
  --bs-input-solid-placeholder-color: var(--bs-gray-500);
  --bs-dropdown-bg: #1E1E2D;
  --bs-dropdown-box-shadow: 0px 0px 50px 0px rgba(0, 0, 0, 0.4);
  --bs-drawer-bg-color: #1E1E2D;
  --bs-drawer-box-shadow: none;
  --bs-symbol-label-color: var(--bs-gray-800);
  --bs-symbol-label-bg: var(--bs-gray-100);
  --bs-bullet-bg-color: var(--bs-gray-400);
  --bs-tooltip-box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.35);
  --bs-table-striped-bg: rgba(27, 27, 41, 0.75);
  --bs-code-bg: #2B2B40;
  --bs-code-box-shadow: none;
  --bs-code-color: #E39FCB;
  --bs-highlight-bg: #3A2A14;
  --bs-form-control-bg: var(--bs-body-bg);
  --bs-form-control-disabled-bg: var(--bs-secondary-bg);
  --bs-gradient: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0));
  /* App shell (bundle defines these too, but keep authoritative set here) */
  --bs-app-bg-color: #151521;
  --bs-app-blank-bg-color: #151521;
  --bs-app-header-base-bg-color: #1E1E2D;
  --bs-app-footer-bg-color: #1E1E2D;
  /* Card — bundle maps card bg to body bg; lift it a step like Metronic dark */
  --bs-card-bg: #1E1E2D;
  --bs-card-border-color: #2B2B40;
  --bs-card-box-shadow: none;
  --bs-card-cap-bg: transparent;
  /* ------------------------------------------------------------------
     Variables defined ONLY in the bundle's [data-bs-theme=light] block.
     That selector doesn't match in dark mode, so without these the
     variables are undefined — e.g. menus rendered transparent.
  ------------------------------------------------------------------ */
  /* KT menus (dropdowns) */
  --bs-menu-dropdown-bg-color: #1E1E2D;
  --bs-menu-dropdown-box-shadow: 0px 0px 50px 0px rgba(0, 0, 0, 0.4);
  --bs-menu-heading-color: #565674;
  --bs-menu-link-color-hover: #F58A1F;
  --bs-menu-link-color-show: #CDCDDE;
  --bs-menu-link-color-here: #CDCDDE;
  --bs-menu-link-color-active: #F58A1F;
  --bs-menu-link-bg-color-hover: #2A2A3C;
  --bs-menu-link-bg-color-show: #2A2A3C;
  --bs-menu-link-bg-color-here: #2A2A3C;
  --bs-menu-link-bg-color-active: #2A2A3C;
  /* Component states */
  --bs-component-active-color: #ffffff;
  --bs-component-active-bg: #E36E00;
  --bs-component-checked-color: #ffffff;
  --bs-component-checked-bg: #009ef7;
  /* Contextual -active / -inverse variants (accents keep light values) */
  --bs-primary-active: #F77E02;
  --bs-success-active: #A8B93A;
  --bs-info-active: #64BEF2;
  --bs-warning-active: #F77E02;
  --bs-danger-active: #F03A4E;
  --bs-primary-inverse: #ffffff;
  --bs-secondary-inverse: #CDCDDE;
  --bs-success-inverse: #ffffff;
  --bs-info-inverse: #ffffff;
  --bs-warning-inverse: #ffffff;
  --bs-danger-inverse: #ffffff;
  /* Text accent utilities */
  --bs-text-white: #ffffff;
  --bs-text-primary: #F58A1F;
  --bs-text-success: #A8B93A;
  --bs-text-info: #64BEF2;
  --bs-text-warning: #F58A1F;
  --bs-text-danger: #E85B6B;
  /* Overlays */
  --bs-overlay-bg: rgba(255, 255, 255, 0.05);
  --bs-blockui-overlay-bg: rgba(21, 21, 33, 0.55);
  --bs-drawer-overlay-bg-color: rgba(0, 0, 0, 0.4);
  /* Scrollbars */
  --bs-scrollbar-color: #2B2B40;
  --bs-scrollbar-hover-color: #323248;
  --bs-scrollbar-size: 5px;
  --bs-scrollbar-overlay-size: 19px;
  --bs-scrollbar-overlay-space: 7px;
  /* Scrolltop button */
  --bs-scrolltop-opacity: 0;
  --bs-scrolltop-opacity-on: 0.5;
  --bs-scrolltop-opacity-hover: 1;
  --bs-scrolltop-box-shadow: none;
  --bs-scrolltop-bg-color: var(--bs-secondary);
  --bs-scrolltop-bg-color-hover: var(--bs-secondary);
  --bs-scrolltop-icon-color: var(--bs-gray-800);
  --bs-scrolltop-icon-color-hover: var(--bs-gray-900);
  /* Misc components */
  --bs-symbol-border-color: rgba(255, 255, 255, 0.1);
  --bs-table-loading-message-box-shadow: 0px 0px 50px 0px rgba(0, 0, 0, 0.4);
  --bs-rating-color-default: #474761;
  --bs-rating-color-active: #FFAD0F;
  --bs-ribbon-label-box-shadow: 0px -1px 5px 0px rgba(0, 0, 0, 0.3);
  --bs-ribbon-label-bg: #009ef7;
  --bs-ribbon-label-border-color: #005d91;
  --bs-ribbon-clip-bg: #FFFFFF;
  --bs-engage-btn-bg: #1E1E2D;
  --bs-engage-btn-box-shadow: none;
  --bs-engage-btn-border-color: #2B2B40;
  --bs-engage-btn-color: #CDCDDE;
  --bs-engage-btn-icon-color: #6D6D80;
  --bs-engage-btn-color-active: #FFFFFF;
}

/* Cost / sell / profit / markup / margin bar pinned to the bottom of a quote
   or invoice page (journal_entries/_cost_summary_bar). The spacer keeps the
   end of the document clear of it. */
.cost-summary-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1020;
  background-color: var(--bs-body-bg);
  border-top: 1px solid var(--bs-border-color);
  box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.06);
}

.cost-summary-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem 2.5rem;
  max-width: 1320px;
  margin: 0 auto;
  padding: 1.1rem 2rem;
}

.cost-summary-bar__stat {
  text-align: right;
}

.cost-summary-bar__label {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bs-text-muted);
  line-height: 1;
  margin-bottom: 0.2rem;
}

.cost-summary-bar__value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bs-gray-800);
  line-height: 1.1;
}

.cost-summary-bar__note {
  flex-basis: 100%;
  font-size: 0.75rem;
  color: var(--bs-text-muted);
  text-align: right;
}

.cost-summary-bar__spacer {
  height: 90px;
}

/*---------------------------------
  Time Entries inline edit — floating time bubble
  (time_entries/_inline_edit_form; positioned by time_entry_controller#positionEditBubble)
-----------------------------------*/
.time-entry-edit-bubble {
  position: absolute;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  background: var(--bs-body-bg, #fff);
  border: 1px solid var(--bs-gray-300);
  border-radius: 0.475rem;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.08);
  padding: 0.15rem 0.5rem;
  white-space: nowrap;
  transition: left 0.05s linear;
}

.time-entry-edit-bubble::before {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: inherit;
  border-right: 1px solid var(--bs-gray-300);
  border-bottom: 1px solid var(--bs-gray-300);
}

/* Task drawer: the same pill hung below the bar (the workday labels sit above it). */
.time-entry-edit-bubble--below {
  bottom: auto;
  top: calc(100% + 8px);
}

.time-entry-edit-bubble--below::before {
  bottom: auto;
  top: -6px;
  border-right: 0;
  border-bottom: 0;
  border-left: 1px solid var(--bs-gray-300);
  border-top: 1px solid var(--bs-gray-300);
}

/* Room for the floating pill, which takes no space of its own. */
.time-entry-edit-bubble-spacer {
  margin-bottom: 44px;
}

/* The bubble's inner white strip is no longer needed */
.time-entry-edit-bubble .bg-white {
  background: transparent !important;
}

/*---------------------------------
  Index filter rows — one layout before and after select2
  (responsive_filter_controller.js rows; every select in them becomes a select2 box)
-----------------------------------*/
/* Until a page's scripts run select2, the browser paints the native control,
   and a multi-select paints as a tall listbox of names. Keep the native box so
   the row lays out as it will, but don't paint it. select2 adds
   .select2-hidden-accessible when it takes a select over, so a select in a
   filter row that select2 never takes over would stay hidden. */
[data-responsive-filter-target=filters] select:not(.select2-hidden-accessible) {
  visibility: hidden;
}

/* A waiting multi-select takes one line: height 0 yields to .form-select-sm's
   min-height, which select2's multiple box shares. */
[data-responsive-filter-target=filters] select[multiple]:not(.select2-hidden-accessible) {
  height: 0;
}

/* A native .form-select is a block; select2's box is inline-block, so it sat
   in a line box as tall as the card title's type and the row grew 4px when it
   swapped in. Lay it out as the block it replaces. */
[data-responsive-filter-target=filters] .select2-container {
  display: block;
}

/* ---------------------------------------------------------------------------
   Duplicate contacts review (contact_duplicates/_review, full-screen modal)
   The frame and the review fill the modal; the group list and the chosen
   group scroll on their own, and the group's actions stay in view.
--------------------------------------------------------------------------- */
#contact_duplicates_frame {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.contact-duplicates-review {
  min-height: 0;
}

.contact-duplicates-body {
  min-height: 0;
}

.contact-duplicates-list {
  list-style: none;
  margin: 0;
  padding: 1rem;
  background: var(--bs-gray-100);
  border-bottom: 1px solid var(--bs-gray-200);
  display: flex;
  flex-shrink: 0;
  gap: 0.5rem;
  overflow-x: auto;
}

.contact-duplicates-list > li {
  flex: 0 0 15rem;
}

@media (min-width: 992px) {
  .contact-duplicates-list {
    display: block;
    width: 21rem;
    flex-shrink: 0;
    overflow-x: hidden;
    overflow-y: auto;
    border-bottom: 0;
    border-right: 1px solid var(--bs-gray-200);
  }
  .contact-duplicates-list > li + li {
    margin-top: 0.5rem;
  }
}
.contact-duplicates-item {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0.65rem;
  padding: 0.85rem 1rem;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.contact-duplicates-item:hover {
  background: var(--bs-body-bg);
  border-color: var(--bs-gray-300);
}

.contact-duplicates-item[aria-current=true] {
  background: var(--bs-body-bg);
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.12);
}

.contact-duplicates-detail {
  min-width: 0;
  min-height: 0;
}

.contact-duplicates-pane {
  min-height: 0;
}

.contact-duplicates-pane-body {
  overflow-y: auto;
  min-height: 0;
}

.contact-duplicates-actions {
  border-top: 1px solid var(--bs-gray-200);
  background: var(--bs-body-bg);
}

.contact-duplicates-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px dashed var(--bs-gray-300);
  border-radius: 0.65rem;
  padding: 1.25rem;
  transition: border-color 0.15s ease, background-color 0.15s ease, opacity 0.15s ease;
}

.contact-duplicates-card.is-keeper {
  border-style: solid;
  border-color: var(--bs-primary);
  background: rgba(var(--bs-primary-rgb), 0.05);
}

.contact-duplicates-card.is-excluded {
  opacity: 0.55;
}

.contact-duplicates-facts {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.4rem 1rem;
  margin: 0;
  font-size: 0.95rem;
}

.contact-duplicates-facts dt {
  color: var(--bs-gray-600);
  font-weight: 500;
}

.contact-duplicates-facts dd {
  margin: 0;
  text-align: right;
  color: var(--bs-gray-800);
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.contact-duplicates-include {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--bs-gray-300);
}

.accounting-integrations-grid .integration-card {
  min-width: 0;
}
.accounting-integrations-grid .integration-card > .card-header {
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.5rem 1.5rem 0;
  flex-wrap: wrap;
}
.accounting-integrations-grid .integration-card .integration-card__identity {
  flex: 1 1 10rem;
  min-width: 0;
  overflow-wrap: anywhere;
}
.accounting-integrations-grid .integration-card {
  /* Every card's logo sits in the same 40px row, so the brands read as one
     size whatever the proportions of their files. A logo image is 36px high and
     as wide as that makes it; a mark with the name beside it (an inline svg,
     or a .brand-mark image) fits a 40 by 36 box. Give the
     artwork no width class of its own. */
}
.accounting-integrations-grid .integration-card .integration-card__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 40px;
}
.accounting-integrations-grid .integration-card .integration-card__logo > img {
  flex: none;
  width: auto;
  height: 36px;
}
.accounting-integrations-grid .integration-card .integration-card__logo > svg,
.accounting-integrations-grid .integration-card .integration-card__logo > img.brand-mark {
  flex: none;
  width: auto;
  height: auto;
  max-width: 40px;
  max-height: 36px;
}
.accounting-integrations-grid .integration-card .integration-card__logo {
  /* The name beside a mark stays on one line. The identity column breaks
     long words anywhere, which let "OneDrive" shrink to a letter-wide
     column beside its image mark. */
}
.accounting-integrations-grid .integration-card .integration-card__logo > span {
  flex: none;
  white-space: nowrap;
}
.accounting-integrations-grid .integration-card > .card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  overflow-wrap: anywhere;
}
.accounting-integrations-grid .integration-card > .card-body > .d-flex {
  flex: 1;
}
.accounting-integrations-grid .integration-card .accounting-integrations__section {
  margin-top: auto;
  padding-top: 1.5rem;
}

/* Radio cards on the account forms (transaction_accounts/_radio_card): the
   radio is visually hidden and the whole card is its <label>, so a click
   anywhere on the card picks it. Each card carries its account type's colour
   (the TransactionAccountDecorator#account_type_class palette): a light tint
   on hover, the solid colour with white text once selected. */
.radio-card-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.radio-card-group > .radio-card-option {
  flex: 1 1 0;
  min-width: 5.5rem;
}

/* Phones: three to a row, the rest centred on the next, never one card
   stretched across a row of its own. */
@media (max-width: 575.98px) {
  .radio-card-group > .radio-card-option {
    flex: 0 0 calc((100% - 1.5rem) / 3);
    min-width: 0;
  }
}
.radio-card-group.radio-card-group-wide > .radio-card-option {
  max-width: 14rem;
  min-width: 10rem;
}

.radio-card {
  --radio-card-color: var(--bs-primary);
  --radio-card-light: var(--bs-primary-light);
  --radio-card-inverse: var(--bs-primary-inverse);
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  margin: 0;
  padding: 0.85rem 0.5rem;
  border: 1px solid var(--bs-gray-300);
  border-radius: 0.625rem;
  text-align: center;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.radio-card .radio-card-title {
  font-size: 1.075rem;
  font-weight: 600;
  color: var(--radio-card-color);
}
.radio-card .radio-card-hint {
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: var(--bs-gray-600);
}

.radio-card.radio-card-info {
  --radio-card-color: var(--bs-info);
  --radio-card-light: var(--bs-info-light);
  --radio-card-inverse: var(--bs-info-inverse);
}

.radio-card.radio-card-danger {
  --radio-card-color: var(--bs-danger);
  --radio-card-light: var(--bs-danger-light);
  --radio-card-inverse: var(--bs-danger-inverse);
}

.radio-card.radio-card-success {
  --radio-card-color: var(--bs-success);
  --radio-card-light: var(--bs-success-light);
  --radio-card-inverse: var(--bs-success-inverse);
}

.radio-card.radio-card-warning {
  --radio-card-color: var(--bs-warning);
  --radio-card-light: var(--bs-warning-light);
  --radio-card-inverse: var(--bs-warning-inverse);
}

.radio-card.radio-card-dark {
  --radio-card-color: var(--bs-dark);
  --radio-card-light: var(--bs-dark-light);
  --radio-card-inverse: var(--bs-dark-inverse);
}

.radio-card.radio-card-primary {
  --radio-card-color: var(--bs-primary);
  --radio-card-light: var(--bs-primary-light);
  --radio-card-inverse: var(--bs-primary-inverse);
}

.radio-card-input:not(:disabled) + .radio-card:hover {
  border-color: var(--radio-card-color);
  background-color: var(--radio-card-light);
}

.radio-card-input:checked + .radio-card,
.radio-card-input:checked + .radio-card:hover {
  border-color: var(--radio-card-color);
  background-color: var(--radio-card-color);
}
.radio-card-input:checked + .radio-card .radio-card-title,
.radio-card-input:checked + .radio-card .radio-card-hint,
.radio-card-input:checked + .radio-card:hover .radio-card-title,
.radio-card-input:checked + .radio-card:hover .radio-card-hint {
  color: var(--radio-card-inverse);
}

.radio-card-input:focus-visible + .radio-card {
  outline: 3px solid var(--radio-card-color);
  outline-offset: 2px;
}

.radio-card-input:disabled + .radio-card {
  cursor: default;
}

.radio-card-input:disabled:not(:checked) + .radio-card {
  opacity: 0.55;
}

tr:has(+ tr.invoice-review-panel-row) > td {
  background-color: var(--bs-secondary) !important;
  box-shadow: none !important;
  border-top: 1.25rem solid transparent;
  background-clip: padding-box;
}

/* A wider, left-aligned tooltip for a small panel of markup (the bank feed
   status badge lists its latest syncs). Opt in with
   data-bs-custom-class="tooltip-wide". */
.tooltip.tooltip-wide .tooltip-inner {
  text-align: left;
  max-width: 380px;
}

/* Intuit's "Connect to QuickBooks" button: their artwork, shown at its natural
   size, swapping to their hover artwork on hover and keyboard focus. */
.quickbooks-connect-button {
  display: inline-block;
  line-height: 0;
  border-radius: 4px;
}
.quickbooks-connect-button .quickbooks-connect-button__hover {
  display: none;
}
.quickbooks-connect-button:hover .quickbooks-connect-button__default, .quickbooks-connect-button:focus-visible .quickbooks-connect-button__default {
  display: none;
}
.quickbooks-connect-button:hover .quickbooks-connect-button__hover, .quickbooks-connect-button:focus-visible .quickbooks-connect-button__hover {
  display: inline;
}
