.total-data {
    color: #444444;
    border-radius: 10px;
    padding: 0.48em;
    margin-left: 0.5em;
}
.btn-sm {
    font-size: 10pt !important;
}
.pagination-centered {
    text-align: center;
}

ul.pagination {
    display: flex;
    align-items: center;
    list-style: none;
}

ul.pagination li {
    display: inline-block;
    margin-left: 1rem;
}

ul.pagination li.arrow {
    font-size: 2rem;
}

ul.pagination li a {
    margin-right: 1rem;
}

ul.pagination li.current a {
    font-weight: bold;
    background-color: #18A090 !important;
    border-radius: 3rem;
    padding: 0.3rem 0.8rem;
    color: #fff;
}

#sortable {
    list-style-type: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

#sortable ul {
    list-style-type: none;
}

#sortable li:hover {
    background-color: rgba(222, 222, 222, 0.55);
}

#sortable li {
    border-radius: 5px;
    margin: 3px 3px 3px 0;
    padding: 10px;
    width: 100%;
    background-color: rgba(222, 222, 222, 0.25);
    border-color: rgba(222, 222, 222, 0.70);
}

#sortable li .row {
    height: 100%;
}

#sortable li img {
    max-height: 80%;
    max-width: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}

.taxon-group-title {
    display: flex;
    font-size: 1.3em;
    max-width: 175px;
    word-break: break-word;
    white-space: normal;
}

.update-logo-btn {
    font-size: 10pt;
    padding: 0 5px;
    margin-left: 5px;
    height: fit-content;
}

.selected {
    border: 3px solid #179f9070 !important;
    background-color: #179f9026 !important;
}

.sort-button-selected {
    color: #28a745;
}

.btn-action {
    font-size: 10pt;
}

/* Absolute Center Spinner */
.loading {
    position: fixed;
    z-index: 9999;
    height: 2em;
    width: 2em;
    overflow: show;
    margin: auto;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

/* Transparent Overlay */
.loading:before {
    content: '';
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(rgba(116, 116, 116, 0.63), rgba(0, 0, 0, .8));
    background: -webkit-radial-gradient(rgba(130, 130, 130, 0.8), rgba(73, 73, 73, 0.8));
}

.ui-menu .ui-menu-item {
    margin: 0;
    padding: 0;
    zoom: 1;
    float: left;
    clear: left;
    width: 100%;
}
.select2-selection__choice, .select2-results__options {
    font-size: 0.8em !important;
}
.select2-results__option {
    width: 100%;
}

.remove-extra-attribute {
    padding: 10px;
    height: 36px;
    padding-top: 5px;
}
.btn-add-extra-attribute {
    font-size: 10pt;
    padding: 5px 20px;
    margin-bottom: 5px;
}

.modal-lg {
    max-width: 1200px;
}

.dashboard-title {
    border-bottom: none;
}

.ui-state-default {
    cursor: pointer;
}

.ui-sortable .ui-state-default {
    cursor: default;
}

.taxa-table {
    display: block;
    max-height: 100vh; /* Sets the height to be the same as the viewport */
}

#collapseFilter {
    z-index: 1050;
}

.taxon-group-info-icon {
    position: absolute;
    right: 15px;
    font-size: 24px;
}

.list-form .side-panel {
    padding: 10px;
}

.taxon-group-experts-container .select2-container {
    width: 100% !important;
}

.btn-validated-container, .btn-unvalidated-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.btn-validated-container .btn, .btn-unvalidated-container .btn{
    min-width: auto;
    padding-left: 10px;
    padding-right: 10px;
}

.row-action {
    max-width: 60px;
}

.img-container img {
    width: 100%;
    padding-left: 10px;
}

.taxon-group-badge {
    margin-top: 2px;
    background: #dedede;
    font-size: 10pt;
    padding: 2px 5px;
    width: fit-content;
    margin-right: 3px;
}

.select2-container .select2-selection--single {
  height: 40px;
  line-height: 40px;
}
.select2-container .select2-selection--single .select2-selection__rendered {
  line-height: 38px;
}
.select2-container .select2-selection--single .select2-selection__arrow {
  height: 38px;
}
.select2-container--default .select2-search--dropdown .select2-search__field {
  height: 30px;
}
.dropdown-menu {
    will-change: transform;
    position: fixed;
    z-index: 999999;
}
.side-panel {
    height: 100%;
    overflow-y: auto;
}
.min-width-50 {
    min-width: 50px;
}
.min-width-75 {
    min-width: 75px;
}
.min-width-100 {
    min-width: 100px;
}
.min-width-150 {
    min-width: 150px;
}
table {
    font-size: 11pt;
}
.action-icon {
    padding-left: 5px;
    padding-right: 5px;
}

.dt-header {
    padding: 10px;
    background-color: var(--main-accent-color);
}

.dt-item {
    border-bottom: 1px solid #dddddd;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 10px;
}

.dt-column {
    padding: 0 15px;
    width: 300px;
    border: 1px solid rgba(213, 213, 213, 0.70);
}

.dt-full-column {
    padding: 0 15px;
    width: 900px;
    border: 1px solid rgba(213, 213, 213, 0.70);
}

[data-dt-row] {
    background-color: rgba(213, 213, 213, 0.25) !important;
}

[data-dt-row] td {
    box-shadow:inset 0 0 5px rgba(0, 0, 0, 0.1) !important;
}

.taxon-group-name {
    font-size: 12pt;
}

#dt-length-0 {
    margin-right: 5px;
}

#taxaTable {
    margin-left: 0 !important;
}

.form-check-inline {
    padding-left: 0 !important;
}

.taxon-group-expert {
    background-color: rgb(245, 233, 213) !important;
}

.taxon-group-expert:hover {
    background-color: rgb(241, 226, 204) !important;
}

.taxon-group-expert.selected {
    background-color: rgb(237, 214, 174) !important;
}

.taxon_proposal {
    border-top: 1px solid color(srgb 0.0941 0.6266 0.5639);
    margin-top: 20px;
    padding-top: 10px;
}

.dashboard-header {
    margin-top: 10px;
}

#taxon-name-input {
    width: 25%;
}

/* Diff styling for table cells */
.cell-diff {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 4px;
  border-radius: 4px;
}
.cell-diff.stack-on-narrow { flex-direction: row; }

@media (max-width: 1400px) {
  .cell-diff.stack-on-narrow {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
}

.cell-diff .old { opacity: 0.8; text-decoration: line-through; }
.cell-diff .arrow { opacity: 0.6; }
.cell-diff .new { }

.cell-changed {
  background: linear-gradient(to right, rgba(255,193,7,.22), rgba(255,193,7,.08));
  border-left: 3px solid #ffc107;
}

.cell-diff .badge { margin-right: 2px; }

.tg-item {
  position: relative;
}

.tg-item .img-container img {
  max-width: 100%;
  height: auto;
  display: block;
}

.tg-drag-handle {
  position: absolute;
  top: 10px;
  right: 12px;
  transform: translateY(-50%);
  color: #888;
  cursor: grab;
  z-index: 1;
  font-size: 20px;
  line-height: 1;
  padding: 4px 6px;
}

.sortable-placeholder {
  height: 4px;
  background: #aaa;
  border-radius: 2px;
  margin: 2px 0;
  list-style: none;
}

.tg-drag-handle:hover {
  color: #555;
}

.ui-sortable-helper .tg-drag-handle {
  cursor: grabbing;
}

.tg-expert-badge {
  position: absolute;
  top: 0;
  right: 0;
  margin-right: -10px;
}

.tg-metrics {
  display: grid;
  grid-auto-rows: auto;
  row-gap: 6px;
  margin-top: 4px;
}

/* Section label + chips line */
.tg-row {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
}

/* Section labels */
.tg-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: #555;
  margin-right: 2px;
}
.tg-label.valid { color: #2e7d32; }      /* green-ish */
.tg-label.unvalid { color: #8a2d2d; }   /* red-ish  */

/* Count chips */
.tg-chips {
  display: flex;
  flex-wrap: wrap;
}
.taxon-group-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border: 1px solid #e6e6e6;
  background: #fafafa;
  border-radius: 9999px;
  font-size: 12px;
  color: #222;
  white-space: nowrap;
}
.taxon-group-badge span[id^="taxon_group_"] {
  font-variant-numeric: tabular-nums;
  min-width: 1.5em;
  text-align: right;
  display: inline-block;
}

/* Small action buttons */
.update-logo-btn.btn {
  padding: 2px 6px;
  line-height: 1.1;
  font-size: 11px;
}
.remove-all-btn.btn {
  font-size: 10pt;
  padding-top: 0;
  padding-bottom: 0;
}

/* View taxon records link styling */
.view-taxon-records {
  color: #007bff;
  text-decoration: none;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

.view-taxon-records:hover {
  color: #0056b3;
  text-decoration: none;
}

.view-taxon-records i {
  margin-left: 4px;
  font-size: 0.9em;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.view-taxon-records:hover i {
  opacity: 1;
}

.min-width-80 {
  min-width: 80px;
}
