/* Links use theme colors */
a {
  text-decoration: none;
  color: #4C92D9;
}
a:hover {
  text-decoration: underline;
  color: #30659f;
}

/* Icon box for dashboard cards */
.icon-box-56 {
  width: 56px;
  height: 56px;
}

/* Visit card hover - show delete link */
.visit-card .delete-link {
  opacity: 0;
  transition: opacity 0.2s;
}
.visit-card:hover .delete-link {
  opacity: 1;
}

/* Prevent underlines on buttons and nav-links */
.btn,
.btn:hover,
.nav-link,
.nav-link:hover {
  text-decoration: none !important;
}

/* Remove underlines from pagination links on hover */
.pagination .page-link:hover {
  text-decoration: none;
}

/* Override Bootstrap 5 btn-link default underline */
.btn-link {
  text-decoration: none !important;
}

.btn-link:hover {
  text-decoration: underline !important;
}

/* Prevent white background on btn-outline-secondary hover */
.btn-outline-secondary:hover {
  background-color: #3A70A6 !important;
  border-color: #3A70A6 !important;
  color: #fff !important;
}

/* Drag and drop zone feedback */
.dropzone.in, .dropzone.hover {
  background-color: #d1ecf1 !important;
  border-color: #0dcaf0 !important;
  color: #055160 !important;
}

/* Prevent dropzone button from changing on mouse hover (only on drag) */
.dropzone.btn-outline-secondary:hover:not(.hover):not(.in),
.dropzone.btn-outline-secondary.btn-droppable:hover:not(.hover):not(.in) {
  background-color: transparent !important;
  border-color: #6c757d !important;
  color: #6c757d !important;
  cursor: default !important;
}

/* Prevent hover effect on other dropzone elements */
.dropzone.border:hover:not(.hover):not(.in),
.dropzone.bg-light:hover:not(.hover):not(.in) {
  cursor: default !important;
}

/* Ensure all nested text elements inherit white color on hover, but keep icon colors */
.btn-outline-secondary:hover .stat-value,
.btn-outline-secondary:hover .stat-label,
.btn-outline-secondary:hover .fw-semibold,
.btn-outline-secondary:hover .small,
.btn-outline-secondary:hover div:not(.stat-icon-wrapper),
.btn-outline-secondary:hover span:not(i) {
  color: #fff !important;
}

/* Match Bootstrap 2 form help text size (was .help-block, now .form-text) */
.form-text {
  font-size: 13px;
}

/* Bootstrap 2 label/badge compatibility for PDF reports */
.label {
  display: inline-block;
  padding: 0.25em 0.4em;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.25rem;
}

.label-lightgray {
  background-color: #e9ecef;
  color: #495057;
}

.label-default {
  background-color: #6c757d;
  color: #fff;
}

.label-important,
.label-important[href] {
  background-color: #d1686a;
}

.label-success,
.label-success[href] {
  background-color: #2faf6f;
}
/* Override Framework7's .badge background for Bootstrap 5 utility classes */
.badge.bg-success {
  background-color: #198754 !important; /* Bootstrap 5 success color */
}

.badge.bg-danger {
  background-color: #dc3545 !important; /* Bootstrap 5 danger color */
}

.badge.bg-secondary {
  background-color: #6c757d !important; /* Bootstrap 5 secondary color */
}

.inline-editor-badge {
  box-shadow: none;
  border: none;
  transition: none;
  background-color: var(--bs-primary) !important;
  color: #fff !important;
}

.inline-editor-badge:hover,
.inline-editor-badge:focus {
  box-shadow: none;
  background-color: var(--bs-primary);
  color: #fff;
  text-decoration: none;
  border: none;
}

.inline-editor-badge:focus {
  outline: none;
}

.inline-editor-badge:focus-visible {
  outline: none;
  box-shadow: none;
  background-color: var(--bs-primary);
  color: #fff;
}

/* Braintree Drop-in Bootstrap reset */
.bt-drop-in-container label {
  display: block !important;
  width: 100% !important;
}

.bt-drop-in-container .braintree-form__field,
.bt-drop-in-container .braintree-form__hosted-field,
.bt-drop-in-container .braintree-form__hosted-field iframe {
  width: 100% !important;
}

.bt-drop-in-container .braintree-form__notice-of-collection {
  flex-basis: 100% !important;
  width: 100% !important;
  margin-top: 0.75rem !important;
  text-align: left !important;
}

.editable-empty,
.editable-empty:hover,
.editable-empty:focus {
  color: #ccc;
}

@media print {
  a[href]:after {
    content: none !important;
  }

  .noPrint {
    display: none;
  }
}

/* Body layout styles */
body {
  padding-top: 60px; /* Space for fixed navbar */
  margin-bottom: 0;
}

body.with-super-bar {
  padding-top: 80px;
}

body.app-with-sidebar {
  padding-top: 0;
  margin-bottom: 0;
}

body.app-with-sidebar.with-super-bar {
  padding-top: 80px;
}

/* Sidebar navigation fixes */
.col-xl-4 .bg-body-tertiary,
.col-xl-3 .bg-body-tertiary,
.col-xxl-3 .bg-body-tertiary,
.col-xxl-2 .bg-body-tertiary {
  overflow-x: hidden;
}

.col-xl-4 .bg-body-tertiary hr,
.col-xl-3 .bg-body-tertiary hr,
.col-xxl-3 .bg-body-tertiary hr,
.col-xxl-2 .bg-body-tertiary hr {
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100%;
}

/* Help widget tutorial links */
.hover-opacity:hover {
  opacity: 0.7;
  transition: opacity 0.2s ease;
}


/* depreciated... */
a.highlight {
  background-color: #ffc;
}

a.danger {
  color: #b94a48;
}

.link-button {
  background: none;
  border: 0;
  color: #08c;
  font-size: 11px;
  line-height: 11px;
  padding: 0;
}

.link-button:hover {
  text-decoration: underline;
}

ul.condensed {
  color: #444;
  font-size: 13px;
  line-height: 1.4em;
}

ul.condensed i {
  color: #aaa;
}

ul.two_cols {
  flex-wrap: wrap;
  display: flex;
  padding: 6px !important;
}

ul.two_cols li {
  flex: 1 0 50%;
}

ul.no-bullets {
  margin: 0;
  padding: 0;
}

ul.no-bullets>li {
  list-style-type: none;
}

ul.striped li {
  border-bottom: 1px solid #eee;
  margin-bottom: 10px;
}

.display-inline {
  display: inline;
}

.display-none {
  display: none;
}

.hides .hidden {
  visibility: hidden;
}

.hides:hover .hidden {
  visibility: visible;
}

/* Document actions hover effect */
.hides .document-actions {
  visibility: hidden;
}

.hides:hover .document-actions {
  visibility: visible;
}

.hides2 .hidden2 {
  visibility: hidden;
}

.hides2:hover .hidden2,
.hides2 .hidden2.inline-editing {
  visibility: visible;
}

/* Make outline buttons visible on hover over checklist pictures */
.hides2:hover .hidden2 .btn-outline-danger:not(:hover),
.hides2:hover .hidden2 .btn-outline-secondary:not(:hover) {
  background-color: white;
  opacity: 0.95;
}

.underliner_handler:hover .underliner_element {
  text-decoration: underline;
}

.display_handler .hidden_element {
  display: none;
}

.display_handler:hover .hidden_element {
  display: inline;
}

/* Super bar styling: make it visually flush with the main navbar */
.super-bar {
  border-bottom: 1px solid rgba(255,255,255,.55) !important;
  box-shadow: none !important;
  font-size: small;
}

.super-bar + .navbar {
  box-shadow: none !important;
  border-top: 0 !important;
}

/* ensure links in the super-bar have same color as navbar-dark nav-links */
.super-bar a.text-white-50,
.super-bar .text-white-50 {
  color: rgba(255,255,255,.55) !important;
}
.super-bar a.text-white-50:hover,
.super-bar .text-white-50:hover {
  color: rgba(255,255,255,.75) !important;
}

.handle {
  cursor: move;
}

.sortable {
  cursor: move;
}

.sortable:hover,
.sortable:hover td {
  background-color: #ffc !important;
}

.navbar-inverse .divider-vertical {
  border-left-color: #787878;
}

.navbar .nav>li>a {
  padding: 10px;
}

.icon-reports {
  background: url("/assets/icon-reports-2d73d2e5.png") no-repeat 0 1px;
}

.underlined {
  text-decoration: underline;
}

input.search-query {
  width: auto;
}

#language_menu {
  padding: 0px 10px;
}

#language_menu a {
  color: #999;
  text-decoration: none;
}

#language_menu a:hover {
  color: #fff;
}

#modal-window form,
#modal-window .modal-body form,
#modal-window .form-actions,
#modal-window .modal-body .form-actions {
  margin-bottom: 0;
}

.ui-sortable li {
  cursor: move;
  font-size: 14px;
  line-height: 20px;
  word-spacing: -0.1em;
}

.ui-sortable li a.small {
  font-size: 11px;
  line-height: 20px;
  vertical-align: top;
  margin-left: 0;
  word-spacing: normal;
}

.ui-sortable li a.small:before,
.ui-sortable li a.small:after {
  vertical-align: top;
}

.ui-sortable li > * {
  margin-right: 0 !important;
}

.sortable-placeholder-drag-area {
  height: 1em;
  line-height: 1em;
  background-color: Gold;
}

.sortable-placeholder-drag-area2 {
  background-color: rgba(0, 123, 255, 0.1) !important;
  border: 2px dashed #007bff !important;
  visibility: visible !important;
  min-height: 140px !important;
  margin: 4px 0 !important;
  border-radius: 0 !important;
  position: relative !important;
  list-style: none !important;
  box-sizing: border-box !important;
}

span.large {
  font-size: 16px;
}

.page-center {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  text-align: center;
}

#change-layout {
  font-size: 0.875rem;
  max-width: 280px;
  margin: 0;
}

.navbar-inverse .nav>li>a.lighter-gray {
  color: #eee;
}

.navbar-inverse .nav>li>a.lighter-gray:hover {
  color: #fff;
  text-shadow: #999 0px 0px 1px;
}

.navbar-nav > .nav-item.dropdown {
  position: relative;
}

.navbar-nav > .nav-item .dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  left: auto;
  margin-top: 0.5rem;
  z-index: 1050;
  min-width: 10rem;
}

.form-text.contact_detail_id {
  font-size: 13px;
  margin-top: 1px;
}

/* Hide original select elements when Choices.js is active */
.ajax-choices {
  display: none !important;
}

/* Allow Choices widgets inside Bootstrap input groups to stretch next to icons */
.input-group > .choices {
  flex: 1 1 auto !important;
  width: 1% !important;
  min-width: 0 !important;
}

/* Limit Choices.js dropdown height to enable scrolling for pagination */
.choices__list--dropdown .choices__list {
  max-height: 300px !important;
  overflow-y: auto !important;
}

/* Ensure the dropdown wrapper itself doesn't scroll */
.choices__list--dropdown {
  overflow: visible !important;
  max-height: none !important;
}

/* Ensure Choices.js dropdowns appear above datepickers and inputs */
.choices__list--dropdown {
  z-index: 1060 !important; /* higher than common datepicker z-indexes (1000) */
}

/* In some setups Choices renders list in a positioned container; be explicit when active */
.choices__list--dropdown.is-active,
.choices__list--dropdown[aria-expanded="true"] {
  z-index: 1060 !important;
}

.contact-header {
  margin-bottom: 20px;
}

.table-nomargin {
  margin-bottom: 0px;
}

.table-noborder th,
.table-noborder td {
  border: none;
}

.table-fat-border tr:last-child td {
  border-bottom: solid 3px #ccc;
}

.table-fat-border tr td:only-child {
  border-left: solid 3px #ccc;
  border-right: solid 3px #ccc;
}

.table-fat-border tr td:first-child {
  border-left: solid 3px #ccc;
}

.table-fat-border tr td:last-child {
  border-right: solid 3px #ccc;
}

.table-fat-border tr th:first-child {
  border-left: solid 3px #ccc;
}

.table-fat-border tr th:last-child {
  border-right: solid 3px #ccc;
}

.table-fat-border tbody:first-child tr:first-child th,
.table-fat-border tbody:first-child tr:first-child td {
  border-top: solid 3px #ccc;
}

.table-fat-border tr th,
.table-fat-border tr td {
  border-top: solid 3px #ccc;
}

.glyphicons_image {
  width: 12px;
}

.has-spinner .spinner {
  display: none;
}

.has-spinner.active {
  cursor: progress;
}

.has-spinner.active .spinner {
  display: inline-block;
  margin-right: 0.25rem;
}

.has-spinner.active .bi-file-pdf {
  display: none;
}

.icon-refresh-animate {
  animation: rotateThis 0.9s linear infinite;
  display: inline-block;
}

@keyframes rotateThis {
  from {
    transform: scale(1) rotate(0deg);
  }

  to {
    transform: scale(1) rotate(360deg);
  }
}

.alert-fixed {
  position: fixed;
  left: 15%;
  width: 65%;
  top: 50px;
  z-index: 9999;
  border-radius: 0px;
  text-align: center;
}

input.search-spinner {
  background-image: url("/assets/spinner-55984d34.gif");
  background-position: right 7px center;
  background-repeat: no-repeat;
}

/* Hide spinner images by default */
img.spinner {
  display: none;
}

.report_pdf_borders {
  outline-offset: 20px;
  outline: solid 10px #ddd;
}

.fake-report-content {
  background: url("/assets/faux-report-content-58b40e7c.png") no-repeat center;
  background-size: 100% auto;
  width: 100%;
  min-height: 180px;
  padding: 40px 0;
  margin-top: 6px;
  text-align: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fake-report-content h4 {
  background-color: #777;
  border-bottom: 0;
  border-radius: 3px;
  color: #fff;
  padding: 9px 18px;
  min-width: 200px;
  max-width: 80%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  margin: 0;
  font-weight: normal;
  padding: 9px;
  text-shadow: none;
}

.input-big {
  font-size: 20px !important;
  font-weight: bold;
  height: 40px !important;
}

.select2-container--classic .select2-search--dropdown .select2-search__field {
  border: 1px solid #aaa;
  outline: 0;
  background-image: url("select2.png") !important;
  background-repeat: no-repeat !important;
  background-size: 60px 40px !important;
  height: auto !important;
  background-position: 100% -21px !important;
}

.select2-container .select2-selection--multiple .select2-selection__choice {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.select2-results__option[aria-selected="true"] {
  display: none;
}

#selectable .ui-selected {
  background: #9ad372;
}

#selectable li {
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

#selectable .ui-selecting {
  background: #cde7ff;
}

#selectable .picture-frame {
  border: 3px solid var(--bs-border-color);
  border-radius: 0.5rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  overflow: hidden;
  background-clip: padding-box;
}

#selectable li.ui-selecting .picture-frame {
  border-color: transparent;
  box-shadow: 0 0 0 3px var(--bs-info), 0 0.25rem 0.75rem rgba(13, 110, 253, 0.15);
}

#selectable li.ui-selected .picture-frame {
  border-color: transparent;
  box-shadow: 0 0 0 3px var(--bs-success), 0 0.25rem 0.75rem rgba(25, 135, 84, 0.2);
}


.icon-green {
  color: green;
}

.icon-red {
  color: red;
}

#chat-form textarea {
  width: 95%;
}

.nav-tabs.nav-stacked>li.active>a {
  border-left: solid 2px #ccc;
  background-color: #f0f0f0;
}

.collaborator_or_user_photo {
  width: 12px;
  height: 12px;
}

.internal_collaborator_photo {
  border: solid 2px #53f5b5;
}

.external_collaborator_photo {
  border: solid 2px #ebeb50;
}

.no_collaborator_photo {
  border: solid 2px #eee;
}

.badge_or_label_multiline {
  white-space: normal;
  margin-bottom: 2px;
}

.progress {
  box-shadow: inset 0 0px 6px rgba(0, 0, 0, 0.2);
}

.progress .progress-bar,
.progress_bar .bar,
.progress_bar .progress-bar {
  background-color: #0d6efd;
  color: #fff;
  transition: width 0.3s ease;
}

.progress_bar .bar {
  display: block;
  height: 100%;
  line-height: 20px;
}

.sortable-table thead th {
  cursor: pointer;
}

.sortable-table thead th:after {
  padding-left: 7px;
}

.sortable-table thead th[data-sort-direction="0"]:after {
  content: "\21D5";
}

.sortable-table thead th[data-sort-direction="1"]:after {
  content: "\25B4";
}

.sortable-table thead th[data-sort-direction="-1"]:after {
  content: "\25BE";
}

.sortable-table.sortable-fa-icons thead th:after {
  font-family: FontAwesome;
}

.sortable-table.sortable-fa-icons thead th[data-sort-direction="0"]:after {
  content: "\f0dc";
}

.sortable-table.sortable-fa-icons thead th[data-sort-direction="1"]:after {
  content: "\f0de";
}

.sortable-table.sortable-fa-icons thead th[data-sort-direction="-1"]:after {
  content: "\f0dd";
}

#visor-apryse {
  all: initial;
}

.collapsible-item {
  cursor: pointer;
  user-select: none;
  color: #08c;
}

.datepicker-dropdown,
div.datepicker {
  z-index: 2000 !important;
}

input.datepicker,
input.form-control.datepicker {
  z-index: auto !important;
  min-height: calc(1.5em + 0.75rem + 2px);
  padding: 0.375rem 0.75rem;
}

.ms-login-button {
  background: white;
  border: 1px solid #ccc;
  padding: 10px 16px;
  border-radius: 4px;
  font-weight: 500;
  font-family: "Segoe UI", sans-serif;
  display: flex;
  align-items: center;
}

.ms-login-logo {
  margin-right: 10px;
}

/* Highlight animation for newly created/edited checklist items */
@keyframes highlight-flash {
  0%, 100% { 
    background-color: transparent; 
  }
  50% { 
    background-color: #ffffcc; /* Light yellow highlight */
  }
}

.highlight-flash {
  animation: highlight-flash 1s ease-in-out;
}

/* Choices.js Bootstrap 5 integration */
.choices {
  margin-bottom: 0 !important;
  font-size: inherit !important;
  width: 100% !important;
  max-width: 100% !important;
  flex-shrink: 1 !important;
}

.choices[data-type*="select-one"],
.choices[data-type*="select-multiple"] {
  width: 100% !important;
  max-width: 100% !important;
}

/* Make the inner container look like Bootstrap form-select */
.choices__inner {
  min-height: calc(1.5em + 0.75rem + 2px) !important;
  padding: 0.375rem 2.25rem 0.375rem 0.75rem !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  color: var(--bs-body-color) !important;
  background-color: var(--bs-body-bg) !important;
  border: 1px solid var(--bs-border-color) !important;
  border-radius: var(--bs-border-radius) !important;
  appearance: none !important;
  width: 100% !important;
  display: block !important;
}

.choices.is-open .choices__inner,
.choices.is-focused .choices__inner {
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Dropdown styling */
.choices__list--dropdown {
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0.375rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.175);
  margin-top: 0.125rem;
  z-index: 1050;
}

.choices .choices__list--dropdown .choices__item,
.choices .choices__list--dropdown .choices__item--selectable,
.choices .choices__list[aria-expanded] .choices__item,
.choices[data-type*="select-one"] .choices__list--dropdown .choices__item,
.choices[data-type*="select-multiple"] .choices__list--dropdown .choices__item {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  padding-left: 0.5rem !important;
  padding-right: 0.5rem !important;
  font-size: 1rem !important;
}

.choices__list--dropdown .choices__item--selectable.is-highlighted,
.choices__list[aria-expanded] .choices__item--selectable.is-highlighted {
  background-color: #0d6efd !important;
  color: #fff !important;
}

/* Hide the default form-control class conflicts */
.choices__inner.form-control {
  border: none;
  padding: 0;
  background: none;
  box-shadow: none;
}

.choices__inner.form-control.p-0 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 0.1875rem 0.75rem;
}

/* Single select styling */
.choices[data-type*="select-one"] .choices__inner {
  padding: 0.375rem 2.25rem 0.375rem 0.75rem !important;
  width: 100% !important;
  min-height: calc(1.5em + 0.75rem + 2px) !important;
  max-height: calc(1.5em + 0.75rem + 2px) !important;
}

.choices__list--single {
  padding: 0 !important;
  display: block !important;
  width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}

.choices[data-type*="select-one"] .choices__item {
  display: block !important;
  width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1.5 !important;
}

.choices[data-type*="select-one"] .choices__list--single .choices__item {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Multi-select styling - maintain consistent height */
.choices[data-type*="select-multiple"] .choices__inner {
  min-height: calc(1.5em + 0.75rem + 2px) !important;
  max-height: none !important;
  padding: 0.25rem 0.5rem !important;
}

.choices[data-type*="select-multiple"] .choices__list--multiple {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 0.25rem !important;
}

.choices[data-type*="select-multiple"] .choices__list--multiple .choices__item {
  margin: 0 !important;
  padding: 0.25rem 0.5rem !important;
  background-color: #0d6efd !important;
  color: white !important;
  border-radius: 0.25rem !important;
}

.choices[data-type*="select-multiple"] .choices__input {
  background-color: transparent !important;
  margin: 0 !important;
  padding: 0.25rem !important;
}

.choices.is-disabled .choices__inner {
  background-color: var(--bs-form-control-disabled-bg, #e9ecef) !important;
  border-color: var(--bs-border-color, #ced4da) !important;
  color: var(--bs-secondary-color, #6c757d) !important;
  opacity: 1 !important;
}

/* Force container to respect column width */
.col-lg-2 .choices,
.col-lg-3 .choices,
.col-lg-4 .choices,
.col-md-4 .choices,
.col-md-6 .choices {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

.col-lg-2 .choices__inner,
.col-lg-3 .choices__inner,
.col-lg-4 .choices__inner,
.col-md-4 .choices__inner,
.col-md-6 .choices__inner {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

/* Sortable drag and drop styles */
.sortable-placeholder {
  background-color: #e9ecef !important;
  border: 2px dashed #0d6efd !important;
  visibility: visible !important;
  height: 50px !important;
  margin: 0 !important;
  border-radius: 0.375rem !important;
  position: relative !important;
}

.sortable-placeholder::before {
  content: "Drop here";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #6c757d;
  font-size: 0.875rem;
  font-weight: 500;
}

.ui-sortable-helper {
  opacity: 0.8 !important;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
  z-index: 1000 !important;
  cursor: grabbing !important;
}

.ui-sortable .list-group-item {
  transition: background-color 0.2s ease;
}

.ui-sortable .list-group-item:hover {
  background-color: #f8f9fa;
}

/* Sortable placeholder for docs reordering */
.sortable-placeholder-drag-area {
  background-color: #e9ecef !important;
  border: 2px dashed #0d6efd !important;
  visibility: visible !important;
  height: 60px !important;
  margin: 0.5rem 0 !important;
  border-radius: 0.375rem !important;
  position: relative !important;
  list-style: none !important;
}

.sortable-placeholder-drag-area::before {
  content: "Drop here";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #6c757d;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Cursor move helper */
.cursor-move {
  cursor: move;
}

.cursor-move:active {
  cursor: grabbing;
}

/* Checklist notes hover effects */
.ui-sortable li:hover .note-actions,
li:hover .note-actions {
  opacity: 1 !important;
}

/* Checklist notes sortable cursor */
ul.checklist_item_notes {
  padding: 0 !important;
  margin: 0;
}

ul.checklist_item_notes li {
  cursor: default;
}

ul.checklist_item_notes li .handle {
  cursor: move;
}

/* Sortable placeholder for checklist notes */
ul.checklist_item_notes .sortable-placeholder {
  background-color: #fffbea !important;
  border: 3px dashed #ffc107 !important;
  visibility: visible !important;
  min-height: 40px;
  margin: 0 !important;
  padding: 8px 4px !important;
  border-radius: 0 !important;
  position: relative !important;
  list-style: none !important;
  box-sizing: border-box !important;
  border-bottom: 1px solid #dee2e6 !important;
}

ul.checklist_item_notes .sortable-placeholder::before {
  content: "\2193"; /* Flecha hacia abajo ↓ */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #856404;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
}

ul.checklist_item_notes .ui-sortable-helper {
  opacity: 0.85 !important;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
  background-color: #fff !important;
  border: 1px solid #dee2e6 !important;
  cursor: grabbing !important;
}

/* Checklist card hover effects */
.checklist-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(0,0,0,0.05) !important;
}

.checklist-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.12) !important;
}

.checklist-card .stretched-link {
  color: inherit;
}

.checklist-card:hover .badge {
  background-color: var(--bs-primary) !important;
  color: white !important;
}

.border-dashed {
  border-style: dashed !important;
}

/* Checklist show page styles */
.check-item {
  transition: background-color 0.2s ease;
  border-left: 3px solid transparent !important;
}

.check-item:hover {
  background-color: #f8f9fa !important;
  border-left-color: var(--bs-primary) !important;
}

.accordion-button:not(.collapsed) {
  background-color: #e7f1ff;
  color: var(--bs-primary);
}

.accordion-button:focus {
  box-shadow: none;
  border-color: rgba(0,0,0,.125);
}

.bg-gradient {
  background: linear-gradient(135deg, var(--bs-primary) 0%, #0056b3 100%);
}

/* Tree view hover actions */
.tree-node .d-flex[role="group"] {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.tree-node:hover .d-flex[role="group"] {
  opacity: 1;
}

/* Sites index styling */
.sites-index .site-card {
  margin-bottom: 1rem !important;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.sites-index .archived-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 3px solid #ffa726 !important;
}

.sites-index .header-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.sites-index .stat-link {
  transition: all 0.15s ease;
}

.sites-index .stat-link:hover .stat-icon-wrapper {
  background: #6c757d;
  border-color: #6c757d;
  color: #ffffff;
}

.sites-index .stat-icon-wrapper {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border-radius: 6px;
  border: 1px solid #dee2e6;
  color: #495057;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.sites-index .stat-label {
  font-size: 0.55rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sites-index .stat-value {
  font-size: 0.85rem;
  color: #212529;
  line-height: 1;
}

.sites-index .btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.875rem;
}

.sites-index .btn-xs {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  line-height: 1.2;
}

.blockquote {
  padding: 0 0 0 15px;
  margin: 0 0 20px;
  border-left: 5px solid #eee;
}

/* Add borders only on lg+ screens (992px and above) */
@media (min-width: 992px) {
  .border-lg-start-2 {
    border-left: 2px solid var(--bs-border-color) !important;
  }
  .border-lg-end-2 {
    border-right: 2px solid var(--bs-border-color) !important;
  }
}
