@media only screen and (max-width: 768px) {
  .mobile {
    margin-top: 180px !important;
  }

  .full-width {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
  }
  
    .exp-date {
        visibility:hidden;
        display:none;
    }
    
    .ellipsis-exp {
      width: 250px; /* Ajusta el valor según tus necesidades */
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    
    .ellipsis-col {
      text-overflow: ellipsis;
      overflow: hidden;
      max-width: 150px;
    }
    
    .ellipsis {
      text-overflow: ellipsis;
      overflow: hidden;
      max-width: 180px !important;
    }
    
    #accordionContainerCol {
        max-height:550px;
        overflow-y:auto;
    }
    
    #collapseFactura {
        max-height:170px;
        overflow-y:auto;
    }
}

.custom-nav {
    display: flex;
    justify-content: space-between;
    gap: 2px; /* Espaciado reducido entre los botones */
}

.custom-nav .custom-tab {
    flex: 1;
    text-align: center;
    padding: 6px 2px;
    border: 1px solid #252525;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.82rem;
    cursor: pointer;
    background-color: #161616;
    color: #a0a0a0;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.custom-nav .custom-tab:hover {
    background-color: #1e1e1e;
    color: #e4e4e4;
    border-color: #3a3a3a;
}

.custom-nav .custom-tab.active {
    background-color: #56baed;
    color: #0a0a0a;
    border-color: #56baed;
    font-weight: 600;
}

.floating-buttons {
    position: fixed;
    bottom: 160px !important;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.floating-buttons .btn {
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* TEMPORAL FLOATING LABEL FIX */

tbody {
    font-family: 'Console', monospace;
}

.highlight {
    background-color: yellow; /* Cambia el color de fondo a tu gusto */
    font-weight: bold; /* Cambia el estilo de fuente a tu gusto */
    opacity: .5;
    color: black;
}


/*******************************/

.border-primary {
    border:1px solid #0d6efd;
    border-radius:12px 12px 0 0;
}

#searchDirectionInput:empty:before {
    content: attr(placeholder);
    color: #999;
}

body {
  background-color: #0d0d0d;
  color: #e4e4e4;
  overflow: auto;
  font-family: "Poppins", "Gill Sans", system-ui, sans-serif !important;
  -webkit-font-smoothing: antialiased;
}

.nav-link active {
    color: black;
}

.bg-darker {
    background-color: #111111;
}

button.active {
    color: #0a0a0a !important;
    background-color: #56baed !important;
    border-color: #39ace7 !important;
    font-weight: 600;
}

button.nav-link {
    color: #c8c8c8;
    border: 1px solid #2a2a2a !important;
    font-weight: 500;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

button.nav-link:hover {
    background-color: #1a1a1a;
    color: #e4e4e4;
    border-color: #56baed !important;
}

.nav-link {
    color: white;
}

.nav-link:hover {
    color: white;
}

.border-warning {
    border:1px solid #ffc107;
    border-radius:12px 12px 0 0;
}

.active a {
    color: white !important;
}

.inactive a{
    background-color: var(--bs-dark-bg-subtle) !important;
}

.table-transparent-bg {
    --bs-table-bg: transparent !important;
}

.table-warning-custom th:first-child {
    border-top-left-radius: 10px !important;
    border-top-right-radius: 10px !important;
}

.table-warning-custom th:last-child {
    border-top-right-radius: 10px !important;
}

.table-warning-custom {
    --bs-table-bg: #ffc107;
}

.border-success {
    border:1px solid darkgreen;
    border-radius:8px;
}

#mainTab li button {
  color: white;
}

#mainTab li .active {
  color: black !important;
}

.text-bold {
    font-weight: bold;
}

.tab-mainarea {
  max-height: 85vh !important;
  overflow-y: auto;
  margin: 5px;
}

.tab-header {
  width: 100%;
  margin-top: 5px;
}

.header-menu {
  /*border: 1px dashed red;*/
  padding: 0px;

}

.header-menu button {
  margin: 4px;
}

.tab-pane {
  /*border: 2px dashed yellow;*/
}

/* Define una clase para el contenedor padre si no existe */
.container-ellipsis {
  white-space: nowrap;
  overflow: hidden;
}

/* Define una clase para el elemento de texto que se truncará con ellipsis */
.ellipsis {
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 200px;
}

.ellipsis-col {
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 220px;
}

.carousel-inner .carousel-item {
  transition: -webkit-transform .1s ease;
  transition: transform .1s ease;
  transition: transform .1s ease, -webkit-transform .1s ease;
}

/* Media query para desactivar ellipsis en resoluciones mayores a 768px */
@media (min-width: 769px) {
      #myCarousel {
          width: 60%;
          margin:auto;
      }
  
    .ellipsis-col {
      text-overflow: ellipsis;
      overflow: hidden;
      max-width: 950px;
    }

    /* Define una clase para el elemento de texto que se truncará con ellipsis */
    .ellipsis {
      text-overflow: ellipsis;
      overflow: hidden;
      max-width: 450px;
    }
    
    #accordionContainerCol {
        max-height:650px;
        overflow-y:auto;
    }
    
    #collapseFactura {
        max-height:300px;
        overflow-y:auto;
    }
}

/* Media query para desactivar ellipsis en resoluciones mayores a 768px */
@media (min-width: 1200px) {
  .ellipsis {
    text-overflow: clip; /* Cambia de ellipsis a clip para desactivar el efecto */
    white-space: nowrap; /* Restablece la propiedad white-space a su valor predeterminado */
    max-width: 950px; /* Restablece el ancho máximo */
  }
  
  #myCarousel {
      width: 60%;
      margin:auto;
  }
  
  .ellipsis-col {
      text-overflow: ellipsis;
      overflow: hidden;
      max-width: 950px;
    }

        /* Define una clase para el elemento de texto que se truncará con ellipsis */
    .ellipsis {
      text-overflow: ellipsis;
      overflow: hidden;
      max-width: 650px;
    }
    
    #accordionContainerCol {
        max-height:750px;
        overflow-y:auto;
    }
    
    #collapseFactura {
        max-height:400px;
        overflow-y:auto;
    }
}

#myCarousel{
    border-radius:5px !important;
}

#tableDirectionsTBody {
    display: block;
    max-height: calc(60vh - 150px); /* Altura máxima calculada */
    overflow-y: auto;
    margin-bottom: 20px;
}

#tableDirectionsTBody tr {
    display: table;
    width: 100%;
    table-layout: fixed; /* Fijar las columnas */
}

#tableDirectionsTBody td {
    word-wrap: break-word; /* Para manejar texto largo */
}

#tableDirectionsTBody tr td p {
  margin: 0;
}

#viewDir_url_lbl:hover {
    text-decoration:underline !important;
}

#phonesContainer a:hover {
    text-decoration:underline !important;
}

.action-btn {
    /*heigth:100% !important;
    width:100%;*/
    padding:2px;
}

.rotate-icon {
  transition: transform 1s;
}

.rotating {
  transform: rotate(360deg);
}

/* BS TOOLTIPS */

:root {
  --primary: #0d6efd;
  --secondary: #686c70;
  --warning: #ffc107;
  --danger: #dc3545;
  --success: #198754;
}


.secondary-tooltip {
  --bs-tooltip-bg: var(--secondary);
}

.primary-tooltip {
  --bs-tooltip-bg: var(--primary);
}

.danger-tooltip {
  --bs-tooltip-bg: var(--danger);
}

.success-tooltip {
  --bs-tooltip-bg: var(--success);
}

/* END BS TOOLTIPS*/

/* LOADING SCREEN ANIMATION */

.fadeOut {
  -webkit-animation-name: fadeOut;
  animation-name: fadeOut;
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

@-webkit-keyframes fadeOut {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

/* END LOADING SCREN ANIAMTION */

.text-left {
    text-align: left !important;
}

.text-link {
  cursor: pointer;
}

.text-purple {
  color: #6610f2 !important;
}

.alert-purple {
  background-color: #bd96fc !important;
  color: #5100d4 !important;
}

.alert-tean {
  background-color: #fff383 !important;
  color: #827717 !important;
}

.bg-tean {
  background-color: #827717;
}

.bg-purple {
  background-color: #6610f2;
}

/***************************************************************************/

.alert-palid-blue::placeholder {
  /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: white;
  opacity: 1;
  /* Firefox */
}

.alert-palid-blue:-ms-input-placeholder {
  /* Internet Explorer 10-11 */
  color: white;
}

.alert-palid-blue::-ms-input-placeholder {
  /* Microsoft Edge */
  color: white;
}

.alert-palid-blue {
  background: #529dcccc;
  color: #004068;
  border-color: #0040687c;
}

.text-palid-blue {
  color: #004068;
}

/***************************************************************************/

.alert-pink::placeholder {
  /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: white;
  opacity: 1;
  /* Firefox */
}

.alert-pink:-ms-input-placeholder {
  /* Internet Explorer 10-11 */
  color: white;
}

.alert-pink::-ms-input-placeholder {
  /* Microsoft Edge */
  color: white;
}

.alert-pink {
  background: #b634a086;
  color: #660055;
  border-color: #af009286;
}

.text-pink {
  color: #660055;
}

/***************************************************************************/

.alert-dark-green::placeholder {
  /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: white;
  opacity: 1;
  /* Firefox */
}

.alert-dark-green:-ms-input-placeholder {
  /* Internet Explorer 10-11 */
  color: white;
}

.alert-dark-green::-ms-input-placeholder {
  /* Microsoft Edge */
  color: white;
}

.alert-dark-green {
  background: #34b68486;
  color: #006856;
  border-color: #00925a86;
}

.text-dark-green {
  color: #34b6a0;
}

/***************************************************************************/

.alert-yellow::placeholder {
  /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: grey;
  opacity: 1;
  /* Firefox */
}

.alert-yellow:-ms-input-placeholder {
  /* Internet Explorer 10-11 */
  color: grey;
}

.alert-yellow::-ms-input-placeholder {
  /* Microsoft Edge */
  color: grey;
}

.alert-yellow {
  background: #fffd83c5;
  color: #777500;
  border-color: #cac700;
}

.text-yellow {
  color: #b8b500;
}

/***************************************************************************/

.alert-blue::placeholder {
  /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: white;
  opacity: 1;
  /* Firefox */
}

.alert-blue:-ms-input-placeholder {
  /* Internet Explorer 10-11 */
  color: white;
}

.alert-blue::-ms-input-placeholder {
  /* Microsoft Edge */
  color: white;
}

.alert-blue {
  background: #4e86ffd2;
  color: #002ae7;
  border-color: #3676ff;
}

.text-blue {
  color: #0051ff;
}

/***************************************************************************/

.alert-grey::placeholder {
  /* Chrome, Firefox, Opera, Safari 10.1+ */
  /*color: white;*/
  opacity: 1;
  /* Firefox */
}

.alert-grey:-ms-input-placeholder {
  /* Internet Explorer 10-11 */
  /*color: white;*/
}

.alert-grey::-ms-input-placeholder {
  /* Microsoft Edge */
  /*color: white;*/
}

.alert-grey {
  background: #9b9b9b86;
  color: #5c5c5c;
  border-color: #8b8b8b;
}

.text-grey {
  color: #5c5c5c;
}

/***************************************************************************/

.alert-white-c::placeholder {
  /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: grey;
  opacity: 1;
  /* Firefox */
}

.alert-white-c:-ms-input-placeholder {
  /* Internet Explorer 10-11 */
  color: grey;
}

.alert-white-c::-ms-input-placeholder {
  /* Microsoft Edge */
  color: grey;
}

.alert-white-c {
  background: #eeeeeed3;
  color: #5c5c5c;
  border-color: #cacaca;
}

.text-white-c {
  color: #5c5c5c;
}

/***************************************************************************/

.alert-red::placeholder {
  /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: white;
  opacity: 1;
  /* Firefox */
}

.alert-red:-ms-input-placeholder {
  /* Internet Explorer 10-11 */
  color: white;
}

.alert-red::-ms-input-placeholder {
  /* Microsoft Edge */
  color: white;
}

.alert-red {
  background: #ff8989af;
  color: #ff0000;
  border-color: #e42828af;
}

.text-red {
  color: #ff0000;
}

/***************************************************************************/

.alert-green::placeholder {
  /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: white;
  opacity: 1;
  /* Firefox */
}

.alert-green:-ms-input-placeholder {
  /* Internet Explorer 10-11 */
  color: white;
}

.alert-green::-ms-input-placeholder {
  /* Microsoft Edge */
  color: white;
}

.alert-green {
  background: #00800052;
  color: #008000;
  border-color: #0080008a;
}

.text-green {
  color: #008000;
}

/***************************************************************************/

.alert-sad-blue::placeholder {
  /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: white;
  opacity: 1;
  /* Firefox */
}

.alert-sad-blue:-ms-input-placeholder {
  /* Internet Explorer 10-11 */
  color: white;
}

.alert-sad-blue::-ms-input-placeholder {
  /* Microsoft Edge */
  color: white;
}

.alert-sad-blue {
  background: #0a2481ad;
  color: white;
  border-color: #0f1733;
}

.text-sad-blue {
  color: white;
}

/***************************************************************************/
/* ── Theme overrides ── */
/***************************************************************************/

/* Navbar */
.navbar.fixed-top.bg-darker {
    border-bottom: 1px solid #1e1e1e;
}

.navbar-brand {
    font-weight: 600 !important;
    color: #e4e4e4 !important;
    letter-spacing: -0.3px;
    font-size: 1rem;
}

/* Nav tabs (main: Direcciones / Colaboradores / Teléfonos / Usuarios) */
.nav-tabs {
    border-bottom: 1px solid #222 !important;
    gap: 4px;
}

.nav-tabs .nav-link {
    border-radius: 6px 6px 0 0 !important;
    border-color: #222 !important;
    font-size: 0.82rem;
    padding: 6px 4px;
}

/* Search inputs */
input.form-control.bg-dark,
input.form-control.text-white {
    background-color: #1c1c1c !important;
    border-color: #2a2a2a !important;
    color: #e4e4e4 !important;
}

input.form-control.bg-dark::placeholder,
input.form-control.text-white::placeholder {
    color: #555 !important;
}

input.form-control.bg-dark:focus,
input.form-control.text-white:focus {
    background-color: #1c1c1c !important;
    border-color: #56baed !important;
    box-shadow: 0 0 0 3px rgba(86, 186, 237, 0.1) !important;
    color: #e4e4e4 !important;
}

div[contenteditable].bg-dark {
    background-color: #1c1c1c !important;
    border-color: #2a2a2a !important;
    color: #e4e4e4 !important;
    border-radius: 4px;
}

div[contenteditable].bg-dark:focus {
    outline: none;
    border-color: #56baed !important;
    box-shadow: 0 0 0 3px rgba(86, 186, 237, 0.1);
}

/* Search icon buttons */
.input-group-text.btn.btn-dark.border-light {
    background-color: #1c1c1c !important;
    border-color: #2a2a2a !important;
    color: #888 !important;
    transition: border-color 0.15s, color 0.15s;
}

.input-group-text.btn.btn-dark.border-light:hover {
    border-color: #56baed !important;
    color: #e4e4e4 !important;
}

/* Clear buttons */
.input-group-text.btn.btn-danger.border-light {
    background-color: #2a1515 !important;
    border-color: #3d1a1a !important;
    color: #d95f5f !important;
    transition: background-color 0.15s;
}

.input-group-text.btn.btn-danger.border-light:hover {
    background-color: #3d1a1a !important;
}

/* Toast */
#toastPlacement {
    min-width: 300px;
    max-width: calc(100vw - 24px);
}

#mainToast {
    background-color: #272727 !important;
    border: 1px solid #404040 !important;
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.4) !important;
    min-width: 280px;
}

#mainToast .toast-header {
    background-color: #303030 !important;
    border-bottom: 1px solid #404040 !important;
    color: #f0f0f0 !important;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 10px 14px;
}

#mainToast .toast-header .btn-close {
    filter: invert(1) opacity(0.7);
}

#mainToast .toast-body {
    color: #e0e0e0 !important;
    font-size: 0.88rem;
    padding: 12px 14px;
    line-height: 1.5;
}

/* Offcanvas */
.offcanvas.text-bg-dark,
.offcanvas.navbar-dark.bg-dark {
    background-color: #111 !important;
    border-left: 1px solid #1e1e1e !important;
    border-right: 1px solid #1e1e1e !important;
}

.offcanvas-header .btn-close-white {
    filter: invert(1) opacity(0.5);
}

.offcanvas-title {
    color: #e4e4e4 !important;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Loader spinner in brand */
#loader.spinner-border {
    color: #56baed;
    opacity: 0.7;
    width: 0.9rem;
    height: 0.9rem;
    border-width: 2px;
}

/* Accordion items base */
.accordion-item {
    background-color: #161616;
    border-color: #222;
    color: #e4e4e4;
}

/* Dark default — skip when semantic bg-* classes are present (users, colaborators) */
.accordion-button:not(.bg-success):not(.bg-danger):not(.bg-warning):not(.bg-primary) {
    background-color: #1a1a1a;
    color: #e4e4e4;
    border-bottom: 1px solid #222;
}

.accordion-button:not(.bg-success):not(.bg-danger):not(.bg-warning):not(.bg-primary):not(.collapsed) {
    background-color: #1e1e1e;
    color: #56baed;
    box-shadow: none;
}

.accordion-button:not(.bg-success):not(.bg-danger):not(.bg-warning):not(.bg-primary)::after {
    filter: invert(1) opacity(0.5);
}

/* Semantic accordion buttons keep their colors but get a subtle tweak */
.accordion-button.bg-success,
.accordion-button.bg-danger,
.accordion-button.bg-warning,
.accordion-button.bg-primary {
    box-shadow: none;
}

.accordion-body {
    background-color: #161616;
    color: #e4e4e4;
}

/* Modal */
.modal-content {
    background-color: #161616;
    border: 1px solid #252525;
    border-radius: 12px;
}

.modal-header.bg-primary {
    background-color: #1a3a4a !important;
    border-bottom: 1px solid #1e4a60 !important;
}

.modal-body.bg-dark {
    background-color: #161616 !important;
    color: #b0b0b0 !important;
}

.modal-footer.bg-dark {
    background-color: #111 !important;
    border-top: 1px solid #222 !important;
}

.modal-body.bg-dark .text-white {
    color: #e4e4e4 !important;
}

.modal-body.bg-dark input.form-control,
.modal-body.bg-dark select.form-select,
.modal-body.bg-dark textarea.form-control {
    background-color: #1c1c1c !important;
    border-color: #2a2a2a !important;
    color: #e4e4e4 !important;
}

.modal-body.bg-dark input.form-control:focus,
.modal-body.bg-dark select.form-select:focus,
.modal-body.bg-dark textarea.form-control:focus {
    border-color: #56baed !important;
    box-shadow: 0 0 0 3px rgba(86, 186, 237, 0.1) !important;
}

.modal-body.bg-dark .input-group-text {
    background-color: #222 !important;
    border-color: #2a2a2a !important;
    color: #888 !important;
}

/* Container margin-top for fixed navbar */
.container[style*="margin-top: 80px"] {
    margin-top: 70px !important;
}

/* Message container alerts injected by common.js */
#messageContainer .alert {
    border-radius: 8px;
    font-size: 0.875rem;
    border-width: 1px;
}

/* Nav tabs mobile — stack icons only on small screens */
@media (max-width: 400px) {
    .nav-tabs .nav-link {
        padding: 6px 2px;
        font-size: 0.75rem;
    }
}

/***************************************************************************/
/* ── Direction cards ── */
/***************************************************************************/

.dir-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 2px 0;
}

.dir-card {
    background: #161616;
    border: 1px solid #222;
    border-radius: 10px;
    padding: 12px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: border-color 0.15s, background-color 0.15s;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.dir-card:hover {
    border-color: #2e2e2e;
    background: #1a1a1a;
}

.dir-card:active {
    background: #1e1e1e;
}

.dir-card-info {
    flex: 1;
    min-width: 0;
}

.dir-card-name {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: #e4e4e4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dir-card-date {
    display: block;
    font-size: 0.72rem;
    color: #56baed;
    margin-top: 2px;
}

.dir-card-actions {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.dir-card-map {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #56baed;
    color: #0a0a0a !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.15s;
    flex-shrink: 0;
}

.dir-card-map:hover {
    background: #39ace7;
    color: #0a0a0a !important;
}

.dir-card-btn {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: 1px solid #282828;
    background: #1c1c1c;
    color: #777;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
    padding: 0;
    flex-shrink: 0;
}

.dir-card-btn--edit:hover {
    border-color: #56baed;
    color: #56baed;
    background: rgba(86, 186, 237, 0.12);
}

.dir-card-btn--del {
    color: #b05555;
    border-color: rgba(217, 95, 95, 0.3);
    background: rgba(217, 95, 95, 0.06);
}

.dir-card-btn--del:hover {
    border-color: #d95f5f;
    color: #e07070;
    background: rgba(217, 95, 95, 0.15);
}

.dir-card-btn--view {
    color: #56baed;
    border-color: rgba(86, 186, 237, 0.3);
    background: rgba(86, 186, 237, 0.07);
}

.dir-card-btn--view:hover {
    border-color: #56baed;
    color: #7ecff5;
    background: rgba(86, 186, 237, 0.15);
}

/***************************************************************************/
/* ── ViewMapModal full-screen ── */
/***************************************************************************/

#ViewMapModal .modal-dialog {
    margin: 0;
    max-width: 100%;
}

#ViewMapModal .modal-content {
    background: #0a0a0a;
    border: none;
    border-radius: 0;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.vm-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid #1a1a1a;
    flex-shrink: 0;
    background: #111;
    min-height: 56px;
}

.vm-title {
    flex: 1;
    font-size: 1rem;
    font-weight: 700;
    color: #e4e4e4;
    min-width: 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding-top: 2px;
}

.vm-close-btn {
    background: #1c1c1c;
    border: 1px solid #282828;
    color: #888;
    cursor: pointer;
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
    flex-shrink: 0;
}

.vm-close-btn:hover,
.vm-close-btn:active {
    color: #e4e4e4;
    background: #2a2a2a;
    border-color: #383838;
}

.vm-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.vm-section {
    padding: 16px 16px;
    border-bottom: 1px solid #161616;
}

.vm-section:last-child {
    border-bottom: none;
}

.vm-section-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

#viewDir_obs {
    color: #b0b0b0;
    font-size: 0.9rem;
    line-height: 1.65;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

/* ── Image gallery ── */

#imageGallery {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

#imageGallery::-webkit-scrollbar { display: none; }

.vm-img-wrapper {
    position: relative;
    flex-shrink: 0;
    width: 38vw;
    max-width: 160px;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background: #1a1a1a;
}

.vm-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.18s;
}

.vm-img-wrapper:active img { transform: scale(0.96); }

.vm-img-delete {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.vm-img-delete:hover,
.vm-img-delete:active {
    background: #d95f5f;
    color: #fff;
}

/* ── Phone rows ── */

.vm-phone-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 0;
    border-bottom: 1px solid #1a1a1a;
}

.vm-phone-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.vm-phone-number {
    flex: 1;
    color: #e4e4e4;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    min-width: 0;
}

.vm-phone-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.vm-phone-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.15s;
    flex-shrink: 0;
    cursor: pointer;
}

.vm-phone-action-btn--call {
    background: rgba(86, 186, 237, 0.1);
    border-color: rgba(86, 186, 237, 0.25);
    color: #56baed;
}

.vm-phone-action-btn--call:hover,
.vm-phone-action-btn--call:active { background: rgba(86, 186, 237, 0.22); color: #7ecff5; }

.vm-phone-action-btn--wa {
    background: rgba(37, 211, 102, 0.1);
    border-color: rgba(37, 211, 102, 0.25);
    color: #25d366;
}

.vm-phone-action-btn--wa:hover,
.vm-phone-action-btn--wa:active { background: rgba(37, 211, 102, 0.22); color: #4de07d; }

.vm-phone-action-btn--sms {
    background: rgba(240, 165, 0, 0.1);
    border-color: rgba(240, 165, 0, 0.25);
    color: #f0a500;
}

.vm-phone-action-btn--sms:hover,
.vm-phone-action-btn--sms:active { background: rgba(240, 165, 0, 0.22); color: #ffc107; }

/* ── Footer ── */

.vm-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid #1a1a1a;
    flex-shrink: 0;
    background: #111;
    flex-wrap: wrap;
}

#viewdir_btns {
    display: flex;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.vm-maps-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: #56baed;
    color: #0a0a0a !important;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.15s;
    border: none;
    cursor: pointer;
    flex: 1;
    min-height: 46px;
    white-space: nowrap;
}

.vm-maps-btn:hover,
.vm-maps-btn:active {
    background: #39ace7;
    color: #0a0a0a !important;
}

.vm-dismiss-btn {
    padding: 12px 20px;
    background: #1a1a1a;
    color: #888;
    border: 1px solid #282828;
    border-radius: 10px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    min-height: 46px;
    flex-shrink: 0;
}

.vm-dismiss-btn:hover,
.vm-dismiss-btn:active {
    color: #e4e4e4;
    border-color: #383838;
    background: #222;
}

@media (max-width: 360px) {
    .vm-maps-btn,
    .vm-dismiss-btn { font-size: 0.82rem; padding: 11px 14px; }
    .vm-phone-action-btn { width: 36px; height: 36px; }
}

/* ── Image Viewer ── */

.iv-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: none;
    transition: background 0.22s;
    overscroll-behavior: none;
}

.iv-overlay.iv-visible {
    background: rgba(0, 0, 0, 0.96);
}

.iv-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 1;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #bbb;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.iv-close:hover,
.iv-close:active {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.iv-img {
    max-width: 100vw;
    max-height: 100dvh;
    object-fit: contain;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    will-change: transform;
    transform-origin: center center;
    display: block;
    cursor: default;
}

/* ── Floating Action Buttons ── */

.fab {
    position: fixed;
    right: 20px;
    z-index: 1000;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
    transition: background-color 0.15s ease, transform 0.1s ease, color 0.15s ease, border-color 0.15s ease;
}

.fab:active {
    transform: scale(0.94);
}

.fab--primary {
    background: #56baed;
    color: #0a0a0a;
    bottom: 20px;
}

.fab--primary:hover:not(:disabled) {
    background: #39ace7;
}

.fab--primary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.fab--secondary {
    background: #1c1c1c;
    color: #888;
    border: 1px solid #2a2a2a;
    bottom: 80px;
}

.fab--secondary:hover {
    color: #e4e4e4;
    border-color: #3a3a3a;
}

.fab--lone {
    background: #1c1c1c;
    color: #888;
    border: 1px solid #2a2a2a;
    bottom: 20px;
}

.fab--lone:hover {
    color: #e4e4e4;
    border-color: #3a3a3a;
}

/* ── User cards ── */

.user-card {
    background: #161616;
    border: 1px solid #222;
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: border-color 0.15s, background-color 0.15s;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.user-card:hover {
    border-color: #2e2e2e;
    background: #1a1a1a;
}

.user-card:active {
    background: #1e1e1e;
}

.user-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-card-info {
    flex: 1;
    min-width: 0;
}

.user-card-name {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: #e4e4e4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-card-meta {
    display: block;
    font-size: 0.72rem;
    color: #56baed;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-card-actions {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

/* ── Colaborator cards ── */

.col-card {
    background: #161616;
    border: 1px solid #222;
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: border-color 0.15s, background-color 0.15s;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}

.col-card:hover { border-color: #2e2e2e; background: #1a1a1a; }
.col-card:active { background: #1e1e1e; }

.col-card-icon {
    display: none;
}

.col-card-info {
    flex: 1;
    min-width: 0;
}

.col-card-name {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: #e4e4e4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.col-card-meta {
    display: block;
    font-size: 0.72rem;
    color: #56baed;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.col-card-actions {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

/* ── Phone cards ── */

.phone-card {
    background: #161616;
    border: 1px solid #222;
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: border-color 0.15s, background-color 0.15s;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}

.phone-card:hover {
    border-color: #2e2e2e;
    background: #1a1a1a;
}

.phone-card-icon {
    display: none;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.phone-card-info {
    flex: 1;
    min-width: 0;
}

.phone-card-name {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: #e4e4e4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.phone-card-meta {
    display: block;
    font-size: 0.72rem;
    color: #56baed;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.phone-card-actions {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

/* ── Bottom Navigation Bar ── */

#myTab {
    display: none !important;
}

#myTabContent {
    padding-bottom: 74px;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 62px;
    background: #111;
    border-top: 1px solid #222;
    display: flex;
    align-items: center;
    z-index: 1050;
    padding: 0 8px;
    gap: 8px;
}

.bottom-nav__tabs {
    display: flex;
    flex: 1;
    height: 100%;
    gap: 2px;
}

.bottom-nav__tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #666;
    font-size: 10px;
    line-height: 1.2;
    gap: 3px;
    padding: 4px 2px;
    cursor: pointer;
    border-radius: 10px;
    transition: color 0.15s, background-color 0.15s;
    min-width: 0;
    white-space: nowrap;
}

.bottom-nav__tab.active {
    color: #56baed;
    background: rgba(86, 186, 237, 0.09);
}

.bottom-nav__tab:active {
    transform: scale(0.93);
}

.bottom-nav__sep {
    width: 1px;
    height: 36px;
    background: #2a2a2a;
    flex-shrink: 0;
}

.bottom-nav__actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.bottom-nav__btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s, transform 0.1s;
    flex-shrink: 0;
}

.bottom-nav__btn:active {
    transform: scale(0.92);
}

.bottom-nav__btn--primary {
    background: #56baed;
    color: #0a0a0a;
}

.bottom-nav__btn--primary:hover:not(:disabled) {
    background: #39ace7;
}

.bottom-nav__btn--primary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.bottom-nav__btn--secondary {
    background: #1c1c1c;
    color: #888;
    border: 1px solid #2a2a2a;
}

.bottom-nav__btn--secondary:hover {
    color: #e4e4e4;
    border-color: #3a3a3a;
}

.bottom-nav__btn--suggest {
    background: rgba(61, 189, 125, 0.1);
    color: #3dbd7d;
    border: 1px solid rgba(61, 189, 125, 0.3);
}

.bottom-nav__btn--suggest:hover {
    background: rgba(61, 189, 125, 0.18);
    color: #5fd4a0;
}

/***************************************************************************/
/* ── GPS button in URL fields ── */
/***************************************************************************/

/* Base compartida: GPS y Ver Maps */
.btn-gps,
.btn-maps-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 12px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border-left: none;
    border-radius: 0;         /* input-group maneja el radius del último */
    white-space: nowrap;
    transition: all 0.15s;
    flex-shrink: 0;
}

/* Último elemento del input-group → esquinas redondeadas a la derecha */
.input-group > .btn-gps:last-child,
.input-group > .btn-maps-link:last-child { border-radius: 0 6px 6px 0; }

.btn-gps {
    background: rgba(61, 189, 125, 0.1);
    border: 1px solid rgba(61, 189, 125, 0.3);
    color: #3dbd7d;
}
.btn-gps:hover,
.btn-gps:active  { background: rgba(61, 189, 125, 0.2); color: #5fd4a0; }
.btn-gps:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-maps-link {
    background: rgba(86, 186, 237, 0.1);
    border: 1px solid rgba(86, 186, 237, 0.3);
    color: #56baed;
}
.btn-maps-link:hover,
.btn-maps-link:active  { background: rgba(86, 186, 237, 0.2); color: #7ecff5; }
.btn-maps-link:disabled { opacity: 0.4; cursor: default; }

/* Previsualización de imágenes en modales de sugerencia */
.sug-img-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.sug-img-thumb {
    width: 68px;
    height: 68px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #282828;
    background: #1a1a1a;
    cursor: pointer;
    transition: transform 0.15s, border-color 0.15s;
}

.sug-img-thumb:hover {
    transform: scale(1.06);
    border-color: #56baed;
}

.sug-img-thumb:active {
    transform: scale(0.96);
}

.sug-img-size-hint {
    font-size: .72rem;
    color: #555;
    margin-top: 3px;
}

/***************************************************************************/
/* ── Navbar suggestion badge ── */
/***************************************************************************/

.nav-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    background: #d95f5f;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    pointer-events: none;
    line-height: 1;
}

.navbar-toggler {
    position: relative;
}

/***************************************************************************/
/* ── Offcanvas sidebar modernizado ── */
/***************************************************************************/

.oc-body {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 16px 24px;
}

.oc-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 0 16px;
    border-bottom: 1px solid #1e1e1e;
    margin-bottom: 12px;
}

.oc-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(86, 186, 237, 0.12);
    border: 1px solid rgba(86, 186, 237, 0.2);
    color: #56baed;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.oc-user-info {
    flex: 1;
    min-width: 0;
}

.oc-user-name {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: #e4e4e4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.oc-user-role {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 2px;
}

.oc-divider {
    height: 1px;
    background: #1e1e1e;
    margin: 8px 0;
}

.oc-section-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 10px 0 4px;
}

.oc-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid #222;
    background: #161616;
    color: #c0c0c0;
    font-size: 0.88rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    text-align: left;
    margin-bottom: 6px;
}

.oc-btn:hover,
.oc-btn:active {
    background: #1e1e1e;
    border-color: #2e2e2e;
    color: #e4e4e4;
}

.oc-btn--inbox {
    background: rgba(61, 189, 125, 0.07);
    border-color: rgba(61, 189, 125, 0.25);
    color: #3dbd7d;
}

.oc-btn--inbox:hover,
.oc-btn--inbox:active {
    background: rgba(61, 189, 125, 0.14);
    border-color: rgba(61, 189, 125, 0.4);
    color: #5fd4a0;
}

.oc-btn--danger {
    background: rgba(217, 95, 95, 0.07);
    border-color: rgba(217, 95, 95, 0.25);
    color: #d95f5f;
}

.oc-btn--danger:hover,
.oc-btn--danger:active {
    background: rgba(217, 95, 95, 0.14);
    border-color: rgba(217, 95, 95, 0.4);
    color: #e07070;
}

.oc-btn-badge {
    margin-left: auto;
    background: #d95f5f;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    min-width: 22px;
    text-align: center;
    flex-shrink: 0;
}

/***************************************************************************/
/* ── Suggestion inbox modal ── */
/***************************************************************************/

#suggestionInboxModal .modal-content {
    background: #0a0a0a;
    border: none;
    border-radius: 0;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sib-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid #1a1a1a;
    background: #111;
    flex-shrink: 0;
}

.sib-title {
    flex: 1;
    font-size: 1rem;
    font-weight: 700;
    color: #e4e4e4;
}

.sib-count {
    background: #d95f5f;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    flex-shrink: 0;
}

.sib-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sib-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #444;
    gap: 10px;
    padding: 40px 0;
}

.sib-empty svg { opacity: 0.3; }

.sib-close-btn {
    background: #1c1c1c;
    border: 1px solid #282828;
    color: #888;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s;
}

.sib-close-btn:hover { background: #2a2a2a; color: #e4e4e4; }

/* Suggestion cards in inbox */

.sug-card {
    background: #141414;
    border: 1px solid #222;
    border-radius: 12px;
    overflow: visible;       /* sin overflow:hidden para que los campos no se recorten */
    transition: border-color 0.15s;
}

.sug-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px 8px;
}

.sug-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 8px;
    border-radius: 6px;
    flex-shrink: 0;
}

.sug-type-badge--dir-new {
    background: rgba(86, 186, 237, 0.12);
    color: #56baed;
    border: 1px solid rgba(86, 186, 237, 0.25);
}

.sug-type-badge--dir-change {
    background: rgba(240, 165, 0, 0.12);
    color: #f0a500;
    border: 1px solid rgba(240, 165, 0, 0.25);
}

.sug-type-badge--phone-new {
    background: rgba(61, 189, 125, 0.12);
    color: #3dbd7d;
    border: 1px solid rgba(61, 189, 125, 0.25);
}

.sug-meta {
    font-size: 0.72rem;
    color: #555;
    margin-left: auto;
    white-space: nowrap;
    flex-shrink: 0;
}

.sug-card-body {
    padding: 0 14px 12px;
}

.sug-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: #e4e4e4;
    margin-bottom: 4px;
}

.sug-who {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 8px;
}

.sug-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 10px;
    background: #0f0f0f;
    border-radius: 8px;
    margin-bottom: 6px;
    border: 1px solid #1e1e1e;
}

.sug-field-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.sug-field-old {
    font-size: 0.8rem;
    color: #666;
    text-decoration: line-through;
    word-break: break-word;
}

.sug-field-new {
    font-size: 0.85rem;
    color: #e4e4e4;
    word-break: break-word;
}

.sug-field-val {
    font-size: 0.85rem;
    color: #b0b0b0;
    word-break: break-word;
}

.sug-note {
    font-size: 0.8rem;
    color: #888;
    font-style: italic;
    padding: 6px 10px;
    background: rgba(255,255,255,0.03);
    border-radius: 6px;
    margin-bottom: 6px;
    border-left: 2px solid #333;
}

.sug-actions {
    display: flex;
    gap: 8px;
    padding: 8px 14px 14px;
}

.sug-btn {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: none;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.sug-btn--approve {
    background: rgba(61, 189, 125, 0.12);
    color: #3dbd7d;
    border: 1px solid rgba(61, 189, 125, 0.3);
}

.sug-btn--approve:hover { background: rgba(61, 189, 125, 0.22); }
.sug-btn--approve:disabled { opacity: 0.4; cursor: not-allowed; }

.sug-btn--reject {
    background: rgba(217, 95, 95, 0.08);
    color: #d95f5f;
    border: 1px solid rgba(217, 95, 95, 0.25);
}

.sug-btn--reject:hover { background: rgba(217, 95, 95, 0.16); }
.sug-btn--reject:disabled { opacity: 0.4; cursor: not-allowed; }

/***************************************************************************/
/* ── ViewMapModal footer — layout responsivo ── */
/***************************************************************************/

/* Reescrito para que los botones nunca se pisen en móvil */
.vm-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid #1a1a1a;
    flex-shrink: 0;
    background: #111;
}

#viewdir_btns {
    display: flex;
    gap: 8px;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.vm-maps-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 14px;
    background: #56baed;
    color: #0a0a0a !important;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    transition: background 0.15s;
    border: none;
    cursor: pointer;
    min-height: 44px;
    white-space: nowrap;
    flex-shrink: 0;
}

.vm-maps-btn:hover,
.vm-maps-btn:active {
    background: #39ace7;
    color: #0a0a0a !important;
}

.vm-suggest-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 11px 14px;
    background: rgba(61, 189, 125, 0.1);
    color: #3dbd7d;
    border: 1px solid rgba(61, 189, 125, 0.3);
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.15s;
    min-height: 44px;
    white-space: nowrap;
    flex: 1;
}

.vm-suggest-btn:hover,
.vm-suggest-btn:active {
    background: rgba(61, 189, 125, 0.18);
    color: #5fd4a0;
}

.vm-dismiss-btn {
    padding: 11px 16px;
    background: #1a1a1a;
    color: #888;
    border: 1px solid #282828;
    border-radius: 10px;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    min-height: 44px;
    flex-shrink: 0;
}

.vm-dismiss-btn:hover,
.vm-dismiss-btn:active {
    color: #e4e4e4;
    border-color: #383838;
    background: #222;
}

/* En pantallas muy angostas (<380px) stacking vertical */
@media (max-width: 380px) {
    #viewdir_btns { flex: 0 0 100%; }
    .vm-suggest-btn { flex: 1; }
    .vm-dismiss-btn { flex: 0 0 100%; text-align: center; }
    .vm-maps-btn { flex: 1; justify-content: center; }
}

/***************************************************************************/
/* ── Suggestion inline edit (admin inbox + user history) ── */
/***************************************************************************/

.sug-edit-form {
    padding: 4px 0 4px;
}

.sug-edit-field {
    margin-bottom: 8px;
}

.sug-edit-field label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.68rem;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 3px;
}

.sug-maps-link {
    color: #56baed;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    padding: 1px 6px;
    background: rgba(86,186,237,0.1);
    border-radius: 4px;
    transition: background 0.15s;
}

.sug-maps-link:hover { background: rgba(86,186,237,0.2); color: #7ecff5; }

.sug-edit-input {
    width: 100%;
    background: #0f0f0f;
    border: 1px solid #242424;
    border-radius: 6px;
    color: #e4e4e4;
    padding: 7px 10px;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.15s;
    resize: none;            /* auto-height vía JS — sin resize manual que confunde */
    overflow: hidden;        /* ocultar scrollbar mientras se auto-ajusta */
    font-family: inherit;
    box-sizing: border-box;
}

.sug-edit-input:focus { border-color: #56baed; }
.sug-edit-input::placeholder { color: #3a3a3a; }

/* Botón editar/guardar dentro del historial */
.sug-edit-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: 1px solid #282828;
    border-radius: 6px;
    color: #888;
    font-size: 0.76rem;
    padding: 4px 9px;
    cursor: pointer;
    transition: all 0.15s;
    margin-bottom: 8px;
}

.sug-edit-toggle:hover { color: #e4e4e4; border-color: #3a3a3a; }

/* Copy feedback button */
.sug-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(240,165,0,0.08);
    border: 1px solid rgba(240,165,0,0.25);
    border-radius: 6px;
    color: #f0a500;
    font-size: 0.78rem;
    padding: 5px 10px;
    cursor: pointer;
    transition: all 0.15s;
    margin-top: 6px;
}

.sug-copy-btn:hover { background: rgba(240,165,0,0.15); }

/* Rejected card visual indicator */
.sug-card[data-status="rejected"] { border-color: rgba(217,95,95,0.2); }
.sug-card[data-status="approved"] { border-color: rgba(61,189,125,0.2); }

/***************************************************************************/
/* ── Suggest modals (user-facing) ── */
/***************************************************************************/

.sug-modal-field-diff {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 8px 0 4px;
}

.sug-original-value {
    font-size: 0.78rem;
    color: #666;
    background: #0f0f0f;
    border: 1px solid #1e1e1e;
    padding: 6px 10px;
    border-radius: 6px;
    white-space: pre-wrap;
    word-break: break-word;
}

/***************************************************************************/
/* ══════════════════════════════════════════════════════════════════════════
   Themed modal panel — replaces hardcoded inline styles on modals
   ══════════════════════════════════════════════════════════════════════════ */

.modal-panel     { background: #111 !important; color: #e2e8f0 !important; border: 1px solid #1e1e1e !important; }
.modal-panel-hdr { background: #111 !important; border-bottom: 1px solid #1a1a1a !important; padding: 14px 16px !important; }
.modal-panel-body{ background: #0d0d0d !important; color: #94a3b8 !important; }
.modal-panel-body-hi { background: #0d0d0d !important; color: #e2e8f0 !important; }
.modal-panel-ftr { background: #111 !important; border-top: 1px solid #1a1a1a !important; }

/* Indigo/special style — colObjetivosModal */
.modal-panel-indigo     { background: #0a0f1e !important; border: none !important; }
.modal-panel-hdr-indigo { background: #111827 !important; border-bottom: 1px solid rgba(255,255,255,.08) !important; padding: 14px 18px !important; }
.modal-panel-body-indigo{ background: #0a0f1e !important; }

/* Form create card inside colObjetivosModal */
.col-obj-form {
    background: #1e293b;
    border: 1px solid rgba(99,102,241,.3);
    border-radius: 12px;
    padding: 16px;
    margin: 14px 14px 0;
}

/* Collaborator objective widget card */
.col-obj-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,.08);
}
.col-obj-card-track {
    background: rgba(255,255,255,.07);
    border-radius: 99px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}
.col-obj-card-label { font-size: .75rem; color: #94a3b8; letter-spacing: .05em; text-transform: uppercase; font-weight: 600; line-height: 1.2; }
.col-obj-card-period { font-size: .72rem; color: #64748b; background: rgba(255,255,255,.06); padding: 3px 9px; border-radius: 20px; line-height: 1.4; }
.col-obj-card-pct { font-size: 1.15rem; font-weight: 700; color: #f1f5f9; line-height: 1; }

/* Themed text input (replaces bg-dark text-white) */
.themed-input {
    background: #1a1a1a !important;
    color: #e2e8f0 !important;
    border-color: #2a2a2a !important;
}
.themed-input::placeholder { color: #555 !important; }
.themed-input:focus { background: #1a1a1a !important; color: #e2e8f0 !important; border-color: #56baed !important; box-shadow: none !important; }

/* Clear / search button theming (replaces border-light) */
.btn-themed-clear { border-color: #3a3a3a !important; }
.btn-themed-search { border-color: #3a3a3a !important; }

/* dir-card-btn light-mode base overrides (applied via themes.css) */

/* Empty state for dir-list (replaces Bootstrap text-warning + border-warning) */
.dir-empty-state {
    text-align: center;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: .86rem;
    background: rgba(255,193,7,.07);
    border: 1px solid rgba(255,193,7,.2);
    color: #d4a017;
    margin: 4px 0;
}
