/* Logo Clientes */
.img-logo {
  width: 90%;
  aspect-ratio: 16 / 9;
  object-fit: scale-down;
}

/* Colores Clientes */
.text-primary {
  color: var(--primary-color) !important;
}
.dashboard-body .dash-card-one .icon {
  background: var(--primary-color);
}

.dashboard-body .tenant-summary-grid .dash-card-one .value {
  font-size: clamp(20px, 2.2vw, 32px);
  line-height: 1.15;
  overflow-wrap: anywhere;
  word-break: normal;
}

@media only screen and (max-width: 767px) {
  .dashboard-body .tenant-summary-grid .dash-card-one .value {
    font-size: clamp(18px, 5.2vw, 22px);
    line-height: 1.2;
  }
}

.pending-payment-unit-name {
  font-size: 11px;
  line-height: 1.15;
  white-space: nowrap;
}

.pending-payment-unit-location {
  display: block;
  font-size: 10px !important;
  line-height: 1.15;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pending-payment-month {
  font-size: 13px;
  line-height: 1.25;
  white-space: nowrap;
}

.pending-payment-contract {
  display: block;
  font-size: 11px !important;
  line-height: 1.25;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media only screen and (max-width: 767px) {
  .pending-payment-month {
    font-size: 12px;
  }

  .pending-payment-contract {
    max-width: 128px;
  }

  .pending-payment-unit-name {
    font-size: 10px;
  }

  .pending-payment-unit-location {
    max-width: 160px;
  }
}
.dash-aside-navbar {
  .logout-btn {
    &:hover {
      color: var(--secondary-color);
      .icon {
        background: var(--secondary-color);
      }
    }
  }
  .close-btn {
    font-size: 28px;
    color: #000;
    &:hover {
      color: var(--primary-color);
    }
  }
}

.swiper-pagination-bullet-active {
  background: var(--primary-color) !important;
}

/* Botones */
.dash-aside-navbar .dasboard-main-nav li a.active {
  background: var(--primary-color);
}
.btn-five {
  background: var(--primary-color);
  &:hover,
  &:focus {
    background: var(--secondary-color);
  }
}

.price-home {
  font-size: clamp(16px, 2vw, 40px) !important;
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--primary-color);
    --bs-btn-border-color: var(--primary-color);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--secondary-color);
    --bs-btn-hover-border-color: var(--secondary-color);
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--primary-color);
    --bs-btn-active-border-color: var(--primary-color);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--primary-color);
    --bs-btn-disabled-border-color: var(--primary-color);
}

.btn-outline-primary {
    --bs-btn-color: var(--primary-color);
    --bs-btn-border-color: var(--primary-color);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--primary-color);
    --bs-btn-hover-border-color: var(--primary-color);
    --bs-btn-focus-shadow-rgb: 13, 110, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--primary-color);
    --bs-btn-active-border-color: var(--primary-color);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: var(--primary-color);
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: var(--primary-color);
    --bs-gradient: none;
}

/* DataTables pagination (Bootstrap 5) */
div.dataTables_wrapper div.dataTables_paginate ul.pagination .page-item .page-link {
  color: var(--primary-color) !important;
  border-color: var(--primary-color-transparent) !important;
}

div.dataTables_wrapper div.dataTables_paginate ul.pagination .page-item.active .page-link {
  color: #fff !important;
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

div.dataTables_wrapper div.dataTables_paginate ul.pagination .page-item:not(.active):not(.disabled) .page-link:hover,
div.dataTables_wrapper div.dataTables_paginate ul.pagination .page-item:not(.active):not(.disabled) .page-link:focus {
  color: #fff !important;
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
}

div.dataTables_wrapper div.dataTables_paginate ul.pagination .page-item.disabled .page-link {
  color: var(--primary-color) !important;
  opacity: 0.5;
}

.property-status-rented {
  display: inline-block;
  line-height: 35px;
  border-radius: 40px;
  font-size: 15px;
  padding: 0 25px;
  color: #29a54c;
  background: #d0f3da;
}

.property-status-for-rent {
  display: inline-block;
  line-height: 35px;
  border-radius: 40px;
  font-size: 15px;
  padding: 0 25px;
  background: #fee9e9;
  color: #d06767;
}

.description-box {
  max-height: 300px;
  overflow-y: auto;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fafafa;
  margin-bottom: 30px;
}

.p-40 {
  padding: 40px !important;
}

.short-filter {
  .nice-select {
    font-size: 12px !important;
  }
}

.myUnitsSwiper {
  overflow: hidden;
}

.myUnitsSwiper .swiper-wrapper {
  align-items: stretch;
}

.myUnitsSwiper .swiper-slide {
  height: auto;
}

/* Language Switcher  */
/* CONTENEDOR */
.lang-switcher {
  position: relative;
  margin-left: 12px;
  margin-right: 12px;
}
/* BOTÓN PRINCIPAL */
.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #ccc;
  padding: 4px 12px;
  border-radius: 0.75rem;
  font-size: 14px;
  cursor: pointer;
}
/* MENU */
.lang-menu {
  display: none;
  position: absolute;
  top: 110%;
  right: 0;
  background: white;
  border-radius: 8px;
  padding: 6px 0;
  width: 150px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.12);
  z-index: 9999;
}
/* OPCIONES */
.lang-option {
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.lang-option:hover {
  background: #f5f5f5;
}
/* ABIERTO */
.lang-switcher.open .lang-menu {
  display: block;
}
/* OPCIÓN DESHABILITADA (IDIOMA ACTUAL) */
.lang-option.disabled {
  opacity: 0.4;
  pointer-events: none;
}
/* desktop */
#lang-label::after {
  content: attr(data-full);
}
/* mobile */
@media (max-width: 767px) {
  #lang-label::after {
    content: attr(data-short);
  }
}

@media only screen and (max-width: 991px) {
  .table.mobile-card-source,
  .table.mobile-card-source thead,
  .table.mobile-card-source tbody,
  .table.mobile-card-source tr,
  .table.mobile-card-source th,
  .table.mobile-card-source td {
    display: table;
  }

  .table.mobile-card-source thead {
    display: table-header-group;
  }

  .table.mobile-card-source tbody {
    display: table-row-group;
  }

  .table.mobile-card-source tr {
    display: table-row;
  }

  .table.mobile-card-source th,
  .table.mobile-card-source td {
    display: table-cell;
  }

  .table.table-no-more,
  .table.table-no-more thead,
  .table.table-no-more tbody,
  .table.table-no-more tr,
  .table.table-no-more th,
  .table.table-no-more td {
    display: block;
  }

  .table.table-no-more thead tr {
    left: -9999px;
    position: absolute;
    top: -9999px;
  }

  .table.table-no-more tr {
    border-bottom: 1px solid #ddd;
  }

  .table.table-no-more td {
    border: none;
    position: relative;
    text-align: left;
    white-space: normal;
  }

  .table.table-no-more td:before {
    content: attr(data-title);
    font-weight: bold;
    padding-right: 10px;
    position: absolute;
    text-align: left;
    top: 8px;
    white-space: nowrap;
  }

  .table.table-no-more.table-bordered td {
    border-bottom: 1px solid #dedede;
  }

  .table.table-no-more.table-sm td:before {
    top: 5px;
  }
}

@media only screen and (max-width: 991px) {
  .table.table-no-more.mobile-card-source {
    display: table;
  }

  .table.table-no-more.mobile-card-source thead {
    display: table-header-group;
  }

  .table.table-no-more.mobile-card-source tbody {
    display: table-row-group;
  }

  .table.table-no-more.mobile-card-source tr {
    border-bottom: inherit;
    display: table-row;
  }

  .table.table-no-more.mobile-card-source th,
  .table.table-no-more.mobile-card-source td {
    border: inherit;
    display: table-cell;
    position: static;
    text-align: inherit;
    white-space: inherit;
  }

  .table.table-no-more.mobile-card-source thead tr {
    left: auto;
    position: static;
    top: auto;
  }

  .table.table-no-more.mobile-card-source td:before {
    content: none;
  }
}

.mobile-record-list {
  display: none;
}

@media only screen and (max-width: 767px) {
  .mobile-table-shell .dataTables_scroll,
  .mobile-table-shell table.mobile-card-source {
    display: none !important;
  }

  .mobile-record-list {
    display: grid;
    gap: 12px;
    margin-top: 14px;
  }

  .mobile-record-list:empty {
    display: none;
  }

  .mobile-record-card {
    background: #fff;
    border: 1px solid #e8ebef;
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
    padding: 14px;
  }

  .mobile-record-card.has-action {
    position: relative;
  }

  .mobile-record-head {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    justify-content: space-between;
  }

  .mobile-record-title {
    color: #000;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
  }

  .mobile-record-title > .d-flex {
    min-width: 0;
    width: 100%;
  }

  .mobile-record-title .p-img {
    border-radius: 10px;
    flex: 0 0 80px;
    height: 80px;
    object-fit: cover;
    width: 80px;
  }

  .mobile-record-title .p-img + div {
    min-width: 0;
  }

  .mobile-record-title .property-name {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .mobile-record-card.has-action .mobile-record-title,
  .mobile-record-card.has-action .mobile-record-subtitle {
    padding-right: 92px;
  }

  .mobile-record-subtitle {
    color: #6f7782;
    font-size: 13px;
    line-height: 1.35;
    margin-top: 3px;
  }

  .mobile-record-grid {
    display: grid;
    gap: 9px;
    margin-top: 12px;
  }

  .mobile-record-field {
    align-items: flex-start;
    border-top: 1px solid #f0f2f5;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding-top: 9px;
  }

  .mobile-record-label {
    color: #7a828c;
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.3;
    text-transform: uppercase;
  }

  .mobile-record-value {
    color: #29313d;
    font-size: 14px;
    line-height: 1.35;
    min-width: 0;
    text-align: right;
  }

  .mobile-record-value .btn,
  .mobile-record-actions .btn {
    min-height: 34px;
    white-space: nowrap;
  }

  .mobile-record-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
  }

  .mobile-record-card.has-action .mobile-record-actions {
    margin-top: 0;
    position: absolute;
    right: 14px;
    top: 14px;
  }

  .mobile-record-actions form {
    margin: 0;
  }

  .mobile-table-shell .dataTables_wrapper .row {
    row-gap: 12px;
  }

  .mobile-table-shell .dataTables_filter {
    text-align: left;
  }

  .mobile-table-shell .dataTables_filter label,
  .mobile-table-shell .dataTables_filter input {
    width: 100%;
  }

  .mobile-table-shell .dataTables_paginate {
    display: flex;
    justify-content: center;
    margin-top: 4px;
  }
}

.document-icon-link {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-height: 32px;
  min-width: 34px;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.document-icon-link i {
  margin-right: 0 !important;
}

.document-name-truncate {
  display: inline-block;
  max-width: min(100%, 260px);
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
  white-space: nowrap;
}

@media only screen and (max-width: 767px) {
  .mobile-record-value .document-name-truncate {
    max-width: min(48vw, 180px);
  }
}

.property-detail-photo {
  aspect-ratio: 16 / 9;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}
