/* main.scss */
/* CSS Variables */
/* Forms CSS */
.edited {
  background-color: #eee;
}

form.edited {
  padding: 4px;
}

.field-group-form table {
  margin-bottom: 0;
}

.form-container {
  width: 100%;
}

.disabled .form-control {
  opacity: 0.9;
  pointer-events: none;
}

#property-search-form, #static-filters, #filter-fields {
  -webkit-transition: none !important;
  -moz-transition: none !important;
  -o-transition: none !important;
  transition: none !important;
}

/* Tables */
.key div {
  padding-left: 8px;
}
.key .publish {
  border-left: 5px #e6e6e6 solid;
}
.key .inherit {
  border-left: 5px #909 solid;
}

#search-results-listing {
  overflow-x: scroll;
}
#search-results-listing .table {
  min-width: 100%; /* Ensure the table takes full width */
  border-collapse: collapse;
  white-space: nowrap; /* Prevent text from wrapping */
}

.table tbody tr.publish td:first-child {
  border-left: 5px #e6e6e6 solid;
  transition: border-left-color 1s ease-out;
}
.table tbody tr.inherit td:first-child {
  border-left: 5px #909 solid;
  transition: border-left-color 1s ease-out;
}
.table tbody tr td {
  text-align: left;
}
.table tbody#property-listing {
  opacity: 1;
  transition: opacity 1s ease-out;
}
.table tbody#property-listing.htmx-swapping, .table tbody#property-listing.htmx-swapping tr td, .table tbody#property-listing.htmx-swapping tr.publish td:first-child {
  opacity: 0;
  border-color: transparent;
  border-left-color: transparent;
}
.table .sortable {
  cursor: pointer;
  font-weight: 600;
  color: #0fb7ff;
}
.table .sortable.active-sort {
  font-weight: bolder !important;
  color: green;
}
.table .sortable i {
  margin-left: 4px;
}

table.gridjs-table td.gridjs-td:first-child {
  text-align: center;
}
table.gridjs-table td.gridjs-td:first-child .fas {
  font-size: 18px;
  margin: 0 4px;
}
table.gridjs-table td.gridjs-td:first-child a:hover {
  text-decoration: none;
}

.table-footer.fixed-bottom {
  padding: 1em;
  background: #fff;
}

/* Transactions Table Vertical Scrolling */
.table-responsive.transactions-table {
  overflow-x: auto;
  overflow-y: visible;
  max-height: none;
}
.table-responsive.transactions-table .table {
  min-width: 600px;
  width: max-content;
}

.gridjs-tr:has(.active-property-state) td {
  background-color: #feffa5 !important;
  font-weight: bold;
}

/* Global Elements */
div.main {
  background-color: #fff !important;
}

.section-title {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
.section-title span {
  margin-right: auto;
}
.section-title i, .section-title svg {
  margin-right: 8px;
}
.section-title i:last-child, .section-title svg:last-child {
  margin-right: 0;
}

[hx-trigger=click] {
  cursor: pointer;
}

.table tr .choices {
  margin-bottom: 0;
}
.table textarea, .table .datepicker-input {
  width: 100%;
}

.datepicker-dropdown {
  pointer-events: all !important;
}

.selection-export {
  display: flex;
  align-items: center;
  gap: 8px;
}
.selection-export .spinner-border {
  display: none;
}
.selection-export.exporting .spinner-border {
  display: inline-block;
}

.tab .nav.nav-tabs:after {
  border-bottom: 1px solid #dee2e6;
  content: "";
  display: block;
  width: 100%;
}
.tab .nav.nav-tabs .nav-link.active {
  background: #e0e0e0;
}

#error .wpdberror {
  display: none;
}

div#property-photos img {
  cursor: pointer;
}

.toast .toast-body {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}
.toast .toast-body p {
  margin-bottom: 0;
}

.disabled {
  pointer-events: none !important;
  opacity: 0.5;
}

.skeleton-loader {
  position: relative;
  display: inline-block;
}

.skeleton-loader:after {
  content: "";
  width: auto;
  height: 100%;
  display: inline-block;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  position: absolute;
  z-index: 99999;
  border-radius: 2px;
  animation: skeleton-loading 1s linear infinite alternate;
}

@keyframes skeleton-loading {
  0% {
    background-color: hsl(200, 20%, 80%);
  }
  100% {
    background-color: hsl(200, 20%, 95%);
  }
}
/* Placeholders */
.muted,
th.muted {
  color: #b3b3b3;
}

.placeholder {
  background-color: #dadada;
  height: 1rem;
  width: 100%;
}
.placeholder.fourthree {
  height: 0;
  padding-top: 75%;
  border: 1px solid #9a9a9a;
}

/* CSS for Property Views */
#property-photos {
  position: relative;
}
#property-photos .total-photos {
  position: absolute;
  top: 52px;
  right: 30px;
  color: #fff;
  padding: 2px 6px;
  background-color: rgba(59, 125, 221, 0.8);
  border-radius: 3px;
}
#property-photos .total-photos:hover {
  background-color: #3b7ddd;
}

.pb-4 {
  padding-bottom: 1.5rem !important;
}

#property-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 1rem;
}
#property-actions .btn.btn-icon {
  background: white;
  border: 1px solid black !important;
  padding: 4px 10px;
  font-size: 12px;
}
#property-actions .btn.property-nav.disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
  background: #d7d7d7;
  border-color: #d7d7d7 !important;
}
#property-actions .btn.btn-danger {
  border: 1px solid red !important;
}
#property-actions .btn.btn-danger i {
  color: red;
}
#property-actions .dropdown .dropdown-menu {
  margin-top: 5px;
  inset: 35px 0px auto auto !important;
}
#property-actions .dropdown .dropdown-menu .dropdown-item.delete-property, #property-actions .dropdown .dropdown-menu .dropdown-item.remove-property {
  color: red;
}

#property-states .transaction-item {
  text-align: center;
}
#property-states .transaction-item a {
  background-color: transparent !important;
}
#property-states .transaction-item.active {
  background-color: #007bff !important;
}
#property-states .transaction-item.active a {
  color: white !important;
}
#property-states .transaction-item:hover {
  background-color: #007bff !important;
}
#property-states .transaction-item:hover a {
  color: white !important;
}

.small-puc {
  font-size: 13px;
  color: #ffffff;
  font-weight: 700;
  background: #3b7ddd;
  padding: 5px 15px;
  border-radius: 8px;
  display: block;
}
.small-puc.inherit {
  background: #990099;
}

h1.property-title {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.5rem;
}

.property-address {
  font-size: 0.875rem;
}

.pill {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 16px 20px;
  background: #fff;
  margin-bottom: 20px;
}

.fs-8 {
  font-size: 0.75rem !important;
}

#head-parcel-id .parcel-icon {
  color: #ffc107;
  font-size: 1.5rem;
  margin-right: 8px;
  display: flex;
  align-items: center;
}
#head-parcel-id .parcel-label {
  font-size: 0.95rem;
  color: #6c757d;
  font-weight: 500;
  margin-bottom: 2px;
}
#head-parcel-id .parcel-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: #222;
  letter-spacing: 1px;
}

div#property-photos img {
  padding: 0;
  border: unset;
}

#property-photos .total-photos {
  top: 60px;
}

.summary .summary-tabs .nav-tabs {
  border-bottom: 1px solid #e9e9e9;
  padding-bottom: 1px;
}
.summary .summary-tabs .nav-tabs .nav-link {
  background-color: white;
}

.property-detail-fields {
  width: 100%;
}
.property-detail-fields .property-field-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.property-detail-fields .property-field-row .col-half {
  width: calc(50% - 10px);
}
.property-detail-fields .property-field-row .col-third {
  width: calc(33.33% - 13.33px);
}
.property-detail-fields .property-field-row .col-full {
  width: 100%;
}
.property-detail-fields .property-field-row .property-field-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.property-detail-fields .property-field-row .property-field-column .property-detail-subheading {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
  color: black;
}

.property-detail-label {
  color: #6c757d;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.15rem;
}

.property-detail-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: #222;
  line-height: 1.2;
}

.property-detail-value.text-success {
  color: #198754 !important;
}

.property-detail-fields-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0 2%;
}

.transaction-history-list {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 24px;
}
.transaction-history-list .transaction-history-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
  .transaction-history-list .transaction-history-item {
    flex-direction: row;
    align-items: center;
  }
}
.transaction-history-list .transaction-history-item .transaction-history-title {
  font-weight: 600;
  color: #222;
  font-size: 1rem;
}
.transaction-history-list .transaction-history-item .transaction-history-date {
  color: #888;
  font-size: 0.95em;
}
.transaction-history-list .transaction-history-item .transaction-history-actions {
  margin-top: 0.5rem;
}
@media (min-width: 768px) {
  .transaction-history-list .transaction-history-item .transaction-history-actions {
    margin-top: 0;
  }
}

/* Search Module */
.toggleable-column {
  transition: all 0.3s;
}

.collapsed {
  display: none;
}

.map-column {
  background-color: #f8f9fa;
}

.toggle-icon {
  cursor: pointer;
  top: 10px;
  left: 10px;
  z-index: 1000;
}

#toggleButton {
  text-transform: uppercase;
  color: #495057;
  text-decoration: none;
  line-height: 2em;
}

.property-search-form, .form-group-row {
  gap: 10px;
}

.table-search-results {
  margin-top: 60px;
}

.add-parameter-btn {
  width: auto;
  text-align: left;
  background: unset;
  color: black;
  border: none;
  margin: 0px 0px 10px 0px;
  display: block;
}

#advanced-search-section {
  padding: 10px;
  background: white;
  border-radius: 4px;
}

#filter-fields .row {
  position: relative;
}
#filter-fields span.remove-filter-row {
  position: absolute;
  color: #d04848;
  cursor: pointer;
  font-weight: bold;
  font-size: 20px;
  text-align: center;
  max-width: 40px;
  padding: 0;
  right: 0;
}

div#search-results-listing {
  max-height: 600px !important;
  overflow: scroll;
}

.form-group.posts-per-page {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 10px;
}
.form-group.posts-per-page .form-label {
  margin: 0;
}
.form-group.posts-per-page .form-select {
  width: auto;
}

.toggle-section {
  margin: 0px 0 20px 0;
  width: 100%;
}
.toggle-section h3 {
  margin-right: 20px;
}
.toggle-section #toggleColumnsSelector {
  text-align: left;
}
.toggle-section #toggleColumnsSelector .column-selector-container .table-columns-container {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
  background: white;
}
.toggle-section #toggleColumnsSelector .column-selector-container h4 {
  flex-basis: 100%;
  margin-bottom: 10px;
  margin-top: 30px;
}

button.clear-sorting-btn {
  border: unset;
  background: transparent;
  color: #0fb7ff;
  cursor: pointer;
}

#offCanvasSearch {
  min-height: 60vh;
}

.draggable-tags-container {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.draggable-tag {
  background-color: #007BFF;
  color: white;
  padding: 5px 10px;
  font-size: 14px;
  border-radius: 20px;
  cursor: grab;
  user-select: none;
  transition: transform 0.2s ease;
}

.draggable-tag:active {
  cursor: grabbing;
}

.draggable-tag.dragging {
  opacity: 0.5;
  transform: scale(1.1);
}

/* tom-select.js */
.ts-dropdown .option:hover,
.ts-dropdown .option.active {
  background-color: #3b7ddd;
  color: #fff;
}

.photo-gallery-grid {
  margin-top: 20px;
}
.photo-gallery-grid > .row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.photo-gallery-grid .photo-item {
  width: 100%;
  margin: 0;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}
.photo-gallery-grid .photo-item.selected::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 3px solid rgba(0, 123, 255, 0.5);
  border-radius: 4px;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0, 123, 255, 0.2);
}
.photo-gallery-grid .photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}
.photo-gallery-grid .card {
  margin-bottom: 0;
}

/*# sourceMappingURL=main.css.map */
