.suggestions {
    max-height: 200px;
    overflow-y: auto;
    z-index: 1050; /* Ensure the dropdown is above other elements */
    background: white;
    border: none;
}

.search-container {
    position: relative;
}

.search-container .suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 4px 4px;
}

.suggestion {
    padding: 8px;
    cursor: pointer;
}

.suggestion:hover,
.suggestion.active {
    background-color: #007bff;
    color: white;
}

#datatablesSimple tbody tr {
    cursor: pointer;
}

#datatablesSimple tbody tr:hover {
    background-color: #f1f1f1; /* Optional: Add a hover effect */
}

.estado-box {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: bold;
    min-width: 110px;
    max-width: 110px;
    text-align: center;
    background-color: lightgray; /* Example default; override per badge */
    color: white;  /* Always the same text color */
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.7);
    font-size: 0.9em;
}
.estado-box {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 8px;
  font-weight: bold;
  min-width: 110px;
  max-width: 110px;
  text-align: center;
  background-color: lightgray; /* Override via inline style */
  color: white;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.7);
  font-size: 0.9em;
  cursor: pointer;
  text-decoration: none; /* Prevent underline */

}

.estado-box:hover {
    color: white !important;         /* Keep text color white */
    text-decoration: none !important; /* Prevent underline */
  }
  

.estado-box i {
    margin-left: 6px;
  }



.estado-borrador {
    background-color: lightgray;
}
.estado-gray {
    background-color: lightgray;
}
.estado-presupuesto {
    background-color: #ff99ff;
}
.estado-presupuesto-strong {
    background-color: #cc7acc;
}

.estado-nuevo {
    background-color: #66B2B2;
}
.estado-confirmado {
    background-color: blue;
}
.estado-teal {
    background-color: rgb(7, 198, 198);
}
.estado-publicado {
    background-color: #5cd65c;
}
.estado-facturado {
    background-color: #5cd65c;
}
.estado-anulado {
    background-color: lightcoral;
}
.estado-orange {
    background-color: orange;
}
.estado-soft-blue {
    background-color: DeepSkyBlue;
}
.estado-soft-green {
    background-color: lightgreen;
}
.estado-soft-red {
    background-color: lightcoral;
}
.estado-soft-yellow {
    background-color: lightgoldenrodyellow;
}
.estado-soft-purple {
    background-color: rgb(212, 90, 237);
}
.estado-soft-pink {
    background-color: lightpink;
}
.estado-soft-orange {
    background-color: orange;
}

.table.table-striped tbody tr:hover {
    background-color: #e0e0e0; /* Change this to any color you prefer */
}

.table.table-striped tbody tr.clickable {
    cursor: pointer;
}


/* custom.css */
.btn-light {
    background-color: #f8f9fa;
    color: #212529;
    border: none;
}

.btn-light:hover {
    background-color: #e2e6ea;
    color: #212529;
}


/* custom.css */
.btn-light.btn-sm {
    background-color: #f8f9fa;
    color: #212529;
    border: none;
    font-size: 0.875rem; /* Adjust font size */
    padding: 0.25rem 0.5rem; /* Adjust padding */
}

.btn-light.btn-sm:hover {
    background-color: #e2e6ea;
    color: #212529;
}


.user-initials-circle {
    width: 35px;
    height: 35px;
    background-color: #4CAF50; /* Example color */
    border-radius: 50%;
    color: white;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    margin-right: 8px;
}

.user-circle-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 4px; /* optional: spacing between initials and name */
    vertical-align: middle;
}

.user-display-name {
    white-space: nowrap;
    font-size: 14px;
}


.user-initials-circle-sm {
    width: 24px;
    height: 24px;
    background-color: #4CAF50; /* Example color */
    border-radius: 50%;
    color: white;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    margin-right: 8px;
}

.user-profile-photo img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
}

.dropdown-menu {
    width: 250px;
    border-radius: 10px;
}

.dropdown-header {
    font-size: 14px;
    font-weight: bold;
    color: #6c757d;
    margin-top: 10px;
}

.dropdown-item i {
    font-size: 18px;
    color: #6c757d;
}

.btn-outline-secondary {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
}

.icon-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tooltip-text {
    visibility: hidden;
    width: 120px; /* Adjust width as needed */
    background-color: #f9f9f9; /* Light background color */
    color: #333; /* Dark text color for contrast */
    text-align: center;
    border-radius: 5px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%; /* Position above the icon */
    left: 50%;
    margin-left: -60px; /* Center the tooltip */
    opacity: 0;
    transition: opacity 0.3s;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1); /* Adding a subtle shadow for better visibility */
    border: 1px solid #ddd; /* Optional: Light border for definition */
}


.icon-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}


.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}


.color-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.sm-color-circle {
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #ccc; /* optional: to add a subtle border */
    vertical-align: middle;
    justify-content: center;
    position: relative;
}



.color-circle input[type="radio"] {
    display: none;
}

.color-circle input[type="radio"]:checked + .color-circle {
    border: 2px solid #007bff; /* Highlight selected color */
}


.color-circle-wrapper {
    position: relative;
}

.color-circle-wrapper input[type="radio"]:checked + .color-circle {
    border-color: #007bff; /* Highlight selected color with a blue border */
}

.checkmark {
    color: white;
    font-size: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

.color-circle-wrapper input[type="radio"]:checked + .color-circle .checkmark {
    display: block; /* Show checkmark on selected color */
}



/* toggle switch and dropdown filter menu */


.switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;

}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.1s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.1s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #4caf50;
}

input:checked + .slider:before {
    transform: translateX(14px);
}

.badge-filter {
    display: inline-block;
    background-color: #e0e0e0;
    padding: 3px 8px;
    border-radius: 12px;
    margin-right: 5px;
    margin-bottom: 5px;
    font-size: 12px;
}

.badge-filter .remove-filter {
    margin-left: 8px;
    cursor: pointer;
}

.rango-fechas-inputs {
    display: flex;
    flex-direction: column;
}

.dropdown-menu {
    padding: 10px;
}


.breadcrumb {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dual-list-widget .btn-block {
    width: 120px;
}


.select2-field-container .info-icon {
    position: absolute;
    top: 50%;
    right: 5px;   /* Adjust as needed */
    transform: translateY(-50%);
    cursor: pointer;
    
}

/* Custom tooltip class */
.lighter-tooltip .tooltip-inner {
    /* Lighter background (e.g., light grey or near-white) */
    background-color: #f9f9f9 !important;
    /* Darker text for contrast */
    color: #212529 !important;
    /* Optional: add a border for clarity */
    border: 1px solid #ddd !important;
    /* Adjust padding if desired */
    padding: 8px 12px !important;
  }
  
  /* Arrow styling should match the new background color */
  .lighter-tooltip .tooltip-arrow::before {
    border-top-color: #f9f9f9 !important;
  }

/* Style for the custom add row button */
.add-row-btn {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.85rem;  /* smaller font size */
    color: #6c757d;      /* subtle gray color */
    display: inline-flex;
    align-items: center;
    cursor: pointer;
  }
  
  /* The circle with plus icon */
  .add-row-btn .circle {
    width: 24px;             /* smaller circle */
    height: 24px;
    background-color: #e9ecef; /* light gray background */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 4px;
  }
  
  .add-row-btn .circle i {
    font-size: 14px;         /* smaller icon */
    color: #6c757d;
  }
  
  /* Container for the other action buttons (Guardar and Cancelar) */
  .action-buttons {
    display: block;
    margin-top: 12px; /* spacing between the add row button and these buttons */
  }


/* Only the body area scrolls on hover. The card header remains visible. */
.scroll-on-hover {
    max-height: 400px;
    overflow-y: hidden;
    /* Reserving space for a scrollbar so content doesn't shift */
    scrollbar-gutter: stable;
  }
  
  /* Show scrollbar on hover */
  .scroll-on-hover:hover {
    overflow-y: auto;
  }
  
  /* You can further style the scrollbar if desired, for example: */
  .scroll-on-hover::-webkit-scrollbar {
    width: 6px;
  }
  .scroll-on-hover::-webkit-scrollbar-track {
    background: #f1f1f1;
  }
  .scroll-on-hover::-webkit-scrollbar-thumb {
    background: #888;
  }
  .scroll-on-hover::-webkit-scrollbar-thumb:hover {
    background: #555;
  }
  

  a.highlight-on-hover {
    color: #212529; /* text-dark (Bootstrap) */
    text-decoration: none;
    transition: color 0.2s ease;
  }
  
  a.highlight-on-hover:hover {
    color: #707b7c; /* Bootstrap’s primary color or any you prefer */
  }


  /* select2 */


/* texto ya seleccionado */
.monospace-select2 .select2-selection__rendered {
    white-space: pre;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

/* cada opción del desplegable */
.monospace-select2-dd .select2-results__option {
    white-space: pre;
    font-family: monospace;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}


/* Only the body area scrolls on hover. The card header remains visible. */
.scroll-on-hover {
    max-height: 400px;
    overflow-y: hidden;
    /* Reserving space for a scrollbar so content doesn't shift */
    scrollbar-gutter: stable;
  }
  
  /* Show scrollbar on hover */
  .scroll-on-hover:hover {
    overflow-y: auto;
  }
  
  /* You can further style the scrollbar if desired, for example: */
  .scroll-on-hover::-webkit-scrollbar {
    width: 6px;
  }
  .scroll-on-hover::-webkit-scrollbar-track {
    background: #f1f1f1;
  }
  .scroll-on-hover::-webkit-scrollbar-thumb {
    background: #888;
  }
  .scroll-on-hover::-webkit-scrollbar-thumb:hover {
    background: #555;
  }
  

  a.highlight-on-hover {
    color: #212529; /* text-dark (Bootstrap) */
    text-decoration: none;
    transition: color 0.2s ease;
  }
  
  a.highlight-on-hover:hover {
    color: #707b7c; /* Bootstrap’s primary color or any you prefer */
  }


  /* select2 */


/* texto ya seleccionado */
.monospace-select2 .select2-selection__rendered {
    white-space: pre;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

/* cada opción del desplegable */
.monospace-select2-dd .select2-results__option {
    white-space: pre;
    font-family: monospace;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}



/* pretty json */

.json-pretty { 
    white-space: pre-wrap;   /* respeta \n y sangrías, pero permite ajuste de línea */
    font-family: Menlo, monospace;
    margin: 0;
}

/* --- ENV BANNER (tipo Codepen) --- */
:root { --env-banner-h: 56px; }

.env-banner{
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--env-banner-h);
  z-index: 99999;
  display: flex;
  align-items: center;
  color: #fff;
}

/* fondo full width */
.env-banner--dev{ background: #dc3545; }
.env-banner--staging{ background: #0d6efd; }

/* contenido centrado como el ejemplo (container en el medio) */
.env-banner__content{
  width: 100%;
  max-width: 500px;     /* 👈 como el Codepen */
  margin: 0 auto;
  padding: 0 16px;

  height: 100%;
  display: flex;
  align-items: center;
  gap: 12px;

  box-sizing: border-box;
}

/* truco: “placeholder” a la izquierda para que el texto quede centrado
   aunque el botón esté a la derecha */
.env-banner__content::before{
  content: "";
  width: 40px;
  flex: 0 0 40px;
}

/* texto centrado */
.env-banner__text{
  flex: 1;
  text-align: center;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  color: #fff;
}

/* botón X sin recuadro (blindaje anti Bootstrap/SB-Admin) */
.env-banner__close{
  width: 40px;
  height: 40px;
  flex: 0 0 40px;

  display: grid;
  place-items: center;

  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;

  box-shadow: none !important;
  outline: none !important;

  -webkit-appearance: none;
  appearance: none;

  cursor: pointer;
  color: #fff;
}

.env-banner__close .material-icons{
  font-size: 24px;
  line-height: 1;
  color: #fff;
}

.env-banner__close:hover{
  background: rgba(255,255,255,.12) !important;
  border-radius: 8px;
}

.env-banner button,
.env-banner button:focus,
.env-banner button:active{
  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

/* SB Admin offsets */
body.sb-nav-fixed.has-env-banner .sb-topnav{
  top: var(--env-banner-h) !important;
}

body.sb-nav-fixed.has-env-banner #layoutSidenav #layoutSidenav_nav{
  top: calc(56px + var(--env-banner-h)) !important;
  height: calc(100vh - 56px - var(--env-banner-h)) !important;
}

body.sb-nav-fixed.has-env-banner #layoutSidenav #layoutSidenav_content{
  padding-top: var(--env-banner-h) !important;
}



/* ──────────────────────────────────────────────────────────────
   Diario card chip (modules.diarios.templatetags.diario_filters)
   Render: [icon] CODE · Name  (compact, linked, identity own)
   ────────────────────────────────────────────────────────────── */
.diario-card,
.diario-card:hover,
.diario-card:focus,
.diario-card > *{
  text-decoration: none !important;
}

.diario-card{
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .25rem .65rem .25rem .5rem;
  border: 1px solid #d6dbe2;
  border-left: 3px solid #4b6cb7;
  border-radius: 6px;
  background: linear-gradient(180deg, #fbfcfd 0%, #f3f5f8 100%);
  color: #2c3e50;
  font-size: .82rem;
  line-height: 1.2;
  white-space: nowrap;
  transition: border-color .12s ease, box-shadow .12s ease, transform .04s ease;
}

.diario-card:hover{
  border-color: #4b6cb7;
  box-shadow: 0 1px 6px rgba(75, 108, 183, .18);
  color: #1f2d3d;
}

.diario-card:active{
  transform: translateY(1px);
}

.diario-card__icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  color: #4b6cb7;
  font-size: .85rem;
  text-decoration: none;
}

.diario-card__code{
  font-family: 'SFMono-Regular', Menlo, Consolas, monospace;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 0 .35rem;
  background: #eef2f7;
  border-radius: 3px;
  color: #1f2d3d;
}

.diario-card__name{
  font-weight: 400;
  color: #4a5560;
}

.diario-card__sep{
  color: #b8c0cc;
  font-weight: 300;
  user-select: none;
}


/* Row action dropdown toggle — span con clase propia, sin clases de
   Bootstrap. Replica exacta de la config del toy table que funciona. */
.row-actions-toggle{
  display: inline-block !important;
  width: 36px !important;
  height: 36px !important;
  line-height: 30px !important;
  text-align: center !important;
  border-radius: 50% !important;
  background: transparent !important;
  border: 1px solid #e0e4e9 !important;
  color: #adb5bd !important;
  cursor: pointer !important;
  user-select: none !important;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease !important;
}
.row-actions-toggle:hover,
.row-actions-toggle:focus-visible,
.row-actions-toggle.show{
  background: #ffffff !important;
  border-color: #adb5bd !important;
  color: #212529 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .12) !important;
}
.row-actions-toggle:active{ transform: scale(.94) !important; }
.row-actions-toggle::after{ display: none !important; }
