/* dashboard index.php */
.dashboard {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.dashboard label {
  font-weight: 900;
  color: #e9eef7;
}

.dashboard input {
  background-color: #3c8ad3;
  color: #fff;
  border: none;
  box-shadow: none;
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 800;
  cursor: pointer;
  margin-right: 1%;
}

.dashboard button {
  background-color: #26c6da;
  color: #fff;
  border: none;
  box-shadow: none;
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 800;
  cursor: pointer;
}

.dashboard-totales {
  border: solid #ffffff ;
  border-radius: 2px;
  margin: 1%;
  padding: 3%;
}

.dashboard-totales div {
  width: 18%;
  border:2px solid #ddd4d4; 
  border-radius: 10px;
  padding:10px; 
  min-width:20px;
  background-color: #0e5469;

}

.dashboard-totales div:hover{
  background-color: #191785;
}


/* MÓVIL: ocultar menu desktop y usar sidebar */



/*dashboard*/
/* Mostrar/ocultar por tamaño */
.only-desktop{ display:none; }
.only-mobile{ display:block; }
.multi-select{ position:relative; width:100%; }
.multi-trigger{
  width:100%;
  display:flex; align-items:center; justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: inherit;
  cursor:pointer;
}
.multi-trigger:hover{ background: rgba(255,255,255,.09); }
.multi-trigger .caret{ opacity:.75; font-weight:900; }

.multi-panel{
  position:absolute; left:0; right:0; top:calc(100% + 8px);
  background: #0b1220;
  border:1px solid rgba(255,255,255,.12);
  border-radius:16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
  padding:10px;
  display:none;
  z-index: 50;
}
.multi-panel.open{ display:block; }

.multi-search{ padding:6px; }
.multi-actions{ display:flex; gap:8px; padding:6px; flex-wrap:wrap; }

.multi-list{
  max-height:240px;
  overflow:auto;
  padding:6px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.08);
}

.multi-item{
  display:flex; align-items:center; gap:10px;
  padding:8px 8px;
  border-radius:12px;
  cursor:pointer;
}
.multi-item:hover{ background: rgba(255,255,255,.07); }
.multi-item input{ transform: scale(1.1); }

.multi-chips{
  margin-top:10px;
  display:flex; gap:8px; flex-wrap:wrap;
}
.chip{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  font-weight:800;
}
.chip button{
  border:none; background:transparent; color:inherit;
  cursor:pointer; font-size:16px; line-height:1;
  opacity:.75;
}
.chip button:hover{ opacity:1; }
.chip-muted{ opacity:.75; }

/* Evita que un card/container recorte el dropdown */
.card, .container { overflow: visible; }

/* Base */
.multi-select{ position:relative; width:100%; }

/* Panel: bien alineado y con buen tamaño en escritorio */
.multi-panel{
  position:absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;

  width: 100%;
  max-width: 520px;     /* ✅ en escritorio no se ve gigante */
  min-width: 320px;     /* ✅ evita que se vea mini */
  z-index: 9999;        /* ✅ por encima de todo */
}





/* Tabla bonita */
.table{
  width:100%;
  border-collapse: collapse;
}
.table th, .table td{
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.table thead th{
  font-weight: 900;
  text-transform: none;
  opacity: .9;
}
.right{ text-align:right; }
.wrap{ white-space: normal; }

/* pill saldo */
.pill{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  font-weight: 900;
}

/* En pantallas grandes, que quede alineado a la izquierda y no “vuele” */


/*fin del dashboard*/

.table-stack td[data-label="Saldo"] b{
  font-size: 16px;
}
/* Cards móvil */
.entity-cards{
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.entity-card{
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  padding: 12px;
}
.entity-card-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
}
.entity-card-title{
  font-weight: 900;
  font-size: 15px;
}
.entity-card-badge{
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.12);
}
.entity-card-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.num{ font-weight: 900; }
@media (min-width: 992px){
  .multi-select{ max-width: 520px; }
  .multi-panel{ max-width: 520px; }
  .only-desktop{ display:block; }
  .only-mobile{ display:none; }
}

@media (max-width: 900px){
  .nav-desktop{ display:none; }

  .overlay{ display:block; }   /* ahora sí se usa */
  .sidebar{ display:flex; }    /* ahora sí se usa */

  .grid {
    display: block;
  }

  .dashboard-totales div {
  width: 100%;

  }

  .hamburger{
  position: relative;

    display: flex;
    align-items: center;
    gap: 10px;
    padding:16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .04);
    color: #e9eef7;
    cursor: pointer;
    transition: .15s ease;

    
}

}