.groupbox{
  position: relative;
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 20px 15px 15px 15px;
  margin-bottom: 18px;
  background: #faf8f9;
}

.groupbox legend{
  padding: 0 10px;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: #333;
}

.groupbox-content {
  display: flex;
  flex-wrap: wrap;
  gap: 15px 15px;
  align-items: center;
  width:100%
}

.field {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 250px;
}

.field label {
  width: 100px;
  text-align: left;
}

.field input {
  flex: 0;
}

.field.login {
  justify-content: center;
}

.groupbox-title {
  position: absolute;
  top: -11px;
  left: 15px;
  background: #f8f9fa;
  padding: 0 8px;
  font-weight: bold;
  color: #333;
  font-size: 14px;
}


/* ---- CONTROLES ---- */
.groupbox input{
  padding: 6px 10px;
  border: 1px solid #bbb;
  border-radius: 20px;
  text-transform: uppercase;
  font-size: .85rem;
}

.groupbox select {
  border-radius: 80px;
  border: 1px solid #bbb;
  text-transform: uppercase;
  font-size: .85rem;
}

.form-select{
  border-radius: 20px;
}

.form-input{
  padding: 4px 8px;
  border: 1px solid #bbb;
  border-radius: 20px;
  text-transform: uppercase;
}

/* ---- BOTONES ---- */
button {
  padding: 6px 14px;
  border: none;
  background-color: #0078d7;
  border-radius: 20px;
  cursor: pointer;
  font-size: .85rem;
  text-transform: uppercase;
}

button:hover {
  background-color: #005ea6;
}

/* personalizados */
.boton-buscar {
  background-color: #378C7B;
  color: white;
}
.boton-buscar:hover {
  background-color: #2F7568;
}

.boton-exportar {
  background-color: #355C7D;
  color: white;
}
.boton-exportar:hover {
  background-color: #2B4B66;
}

.boton-graficar {
  background-color: #c36a12;
  color: white;
}
.boton-graficar:hover {
  background-color: #B7642C;
}

.boton-anular {
  background-color: #dc3545;
  color: white;
}
.boton-anular:hover {
  background-color: #a71d2a;
}

.boton-agregar {
  background-color: #198754;
  color: white;
}
.boton-agregar:hover {
  background-color: #0f5132;
}

.boton-editar {
  background-color: #c3651e;
  color: white;
}
.boton-editar:hover {
  background-color: #8a4d1d;
}

.boton-descargar {
  background-color: #3f9fc5;
  color: white;
}

.boton-descargar:hover {
  background-color: #257ca1;
  color: white;
}

.boton-ver {
  background-color: #3c77cc;
  color: white;
}

.boton-ver:hover {
  background-color: #27598c;
  color: white;
}

.boton-upload {
  background-color: #9553dd;
  color: white;
}

.boton-upload:hover {
  background-color: #40278c;
  color: white;
}

.boton-series {
  background-color: #0aabbc;
  color: white;
}

.boton-series:hover {
  background-color: #4b7f95;
  color: white;
}

.boton-horarios {
  background-color: #6dae43;
  color: white;
}

.boton-horarios:hover {
  background-color: #517a32;
  color: white;
}

.boton-cuentas {
  background-color: #8e6e75;
  color: white;
}

.boton-cuentas:hover {
  background-color: #5e494d;
  color: white;
}
/* ---- select2 ---- */
.select2-container .select2-selection {
  min-width: 300px !important;
  border-radius: 20px !important;
}

textarea {
  width: 200px;
  height: 60px;
  resize: none; /* opcional */
}

.leyenda {
  font-weight: bold;
}

.leyenda .planificado {
  color: #0d6efd;
}

.leyenda .recaudado,
.leyenda .sin-diferencia{
  color: #198754;
}

.leyenda .depositado {
  color: #b74fd3;
}

.leyenda .con-diferencia{
  color: #fd310d;
}

.informativo {
  color: #0b9bbd;
}

.leyenda .ok{
  color: #40b50f;
}

.leyenda .diferencia{
  color: #fd4040;
}

.leyenda .pendiente{
  color: #f4ba27;
}