/* =========================================================
   MIS PARTIDOS · FILTROS · SCOUTING LOOK
   ========================================================= */

.mp-filters-shell{
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(90,255,170,.14);
  background:
    radial-gradient(circle at top right, rgba(48,163,116,.10), transparent 34%),
    linear-gradient(180deg, rgba(13,18,22,.96) 0%, rgba(9,13,16,.96) 100%);
  box-shadow:
    0 14px 36px rgba(0,0,0,.30),
    inset 0 1px 0 rgba(255,255,255,.03);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.mp-filters-shell::before{
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, rgba(54,255,154,.80), rgba(54,255,154,.10));
  border-top-left-radius: 18px;
  border-bottom-left-radius: 18px;
}

/* =========================================================
   HEADER
   ========================================================= */

.mp-filters-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mp-filters-header-left{
  min-width: 0;
}

.mp-filters-title{
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .015em;
  color: #f5fbf8;
  line-height: 1.08;
}

.mp-filters-subtitle,
.mp-filters-header-right,
.mp-filters-badge{
  display: none !important;
}

/* =========================================================
   GRID GENERAL EN UNA SOLA FILA
   ========================================================= */

.mp-filters-grid{
  display: grid;
  gap: 12px;
}

.mp-filters-grid-inline{
  grid-template-columns: minmax(320px, 1.25fr) repeat(3, minmax(220px, 1fr));
  align-items: stretch;
}

/* =========================================================
   CARDS
   ========================================================= */

.mp-filter-card{
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
  min-width: 0;
  min-height: 82px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.05);
  background:
    linear-gradient(180deg, rgba(13,21,25,.96), rgba(9,15,19,.96));
  box-shadow:
    0 8px 20px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.025);
}

.mp-filter-card-head{
  display: flex;
  align-items: center;
  min-height: 20px;
  margin-bottom: 0;
}

.mp-filter-card-title{
  font-size: .92rem;
  font-weight: 800;
  color: #edf7f1;
  line-height: 1.1;
  letter-spacing: .01em;
}

.mp-filter-card-subtitle{
  display: none !important;
}

.mp-filter-card-days{
  min-width: 0;
}

.mp-filter-card-check{
  justify-content: flex-start;
}

/* =========================================================
   DÍAS
   ========================================================= */

.mp-days-scroll{
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  padding-bottom: 2px;
  margin-top: 2px;
}

.mp-days-scroll::-webkit-scrollbar{
  height: 6px;
}

.mp-days-scroll::-webkit-scrollbar-track{
  background: rgba(255,255,255,.04);
  border-radius: 999px;
}

.mp-days-scroll::-webkit-scrollbar-thumb{
  background: rgba(111,255,182,.20);
  border-radius: 999px;
}

.mp-days-buttons{
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  min-width: max-content;
}

.mp-day-chip{
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.035);
  color: rgba(236,245,240,.82);
  font-weight: 700;
  transition: all .16s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
  cursor: pointer;
  flex: 0 0 auto;
}

.mp-day-chip:hover:not(:disabled){
  transform: translateY(-1px);
  border-color: rgba(111,255,182,.24);
  background: rgba(111,255,182,.08);
  color: #f7fffb;
}

.mp-day-chip.is-active{
  border-color: rgba(83,255,173,.38);
  background: linear-gradient(180deg, rgba(86,255,109,.96), rgba(48,235,94,.92));
  color: #041109;
  box-shadow:
    0 0 0 1px rgba(83,255,173,.10),
    0 8px 18px rgba(31,160,103,.18);
}

.mp-day-chip.is-disabled{
  opacity: .30;
  border-color: rgba(255,255,255,.045);
  background: rgba(255,255,255,.02);
  color: rgba(236,245,240,.36);
  cursor: not-allowed;
}

.mp-day-chip-dow{
  font-size: 11px;
  line-height: 11px;
  font-weight: 800;
}

.mp-day-chip-date{
  font-size: 9px;
  line-height: 9px;
  opacity: .92;
}

/* =========================================================
   CHECKLISTS COMO PILLS
   ========================================================= */

.mp-checklist{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 2px 0 0 0;
  min-height: 38px;
}

.mp-checklist .form-check{
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin: 0 !important;
  padding-left: 0 !important;
}

.mp-checklist .form-check-input{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mp-checklist .form-check-label{
  display: inline-flex;
  align-items: center;
  margin: 0;
  cursor: pointer;
}

/* =========================================================
   PILLS BASE
   ========================================================= */

.mp-pill-label{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.035);
  color: rgba(236,245,240,.82);
  font-size: .81rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: all .16s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
}

.mp-checklist .form-check-label:hover .mp-pill-label{
  transform: translateY(-1px);
}

.mp-checklist .form-check-input:not(:checked) + .form-check-label .mp-pill-label{
  opacity: .72;
}

.mp-checklist .form-check-input:checked + .form-check-label .mp-pill-label{
  opacity: 1;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.04),
    0 8px 18px rgba(0,0,0,.18);
}

.mp-checklist .form-check-input:focus + .form-check-label .mp-pill-label{
  box-shadow:
    0 0 0 2px rgba(83,255,173,.14),
    0 8px 18px rgba(0,0,0,.18);
}

/* =========================================================
   ASISTENCIA
   ========================================================= */

.mp-pill-label-success{
  border-color: rgba(64,255,145,.16);
  background: rgba(64,255,145,.06);
  color: rgba(210,255,229,.92);
}

.mp-checklist-asistencia .form-check-input:checked + .form-check-label .mp-pill-label-success{
  border-color: rgba(64,255,145,.34);
  background: linear-gradient(180deg, rgba(44,224,110,.26), rgba(44,224,110,.16));
  color: #eafff1;
}

.mp-pill-label-warning{
  border-color: rgba(255,190,74,.16);
  background: rgba(255,190,74,.06);
  color: rgba(255,234,194,.94);
}

.mp-checklist-asistencia .form-check-input:checked + .form-check-label .mp-pill-label-warning{
  border-color: rgba(255,190,74,.34);
  background: linear-gradient(180deg, rgba(255,176,32,.24), rgba(255,176,32,.14));
  color: #fff4da;
}

/* =========================================================
   KILOMETRAJE
   ========================================================= */

.mp-pill-label-neutral{
  border-color: rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color: rgba(235,242,238,.84);
}

.mp-checklist-kms .form-check-input:checked + .form-check-label .mp-pill-label-neutral{
  border-color: rgba(185,197,205,.22);
  background: linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.06));
  color: #ffffff;
}

/* =========================================================
   OPCIONES
   ========================================================= */

.mp-pill-label-option{
  min-width: 42px;
  border-color: rgba(111,255,182,.12);
  background: rgba(111,255,182,.04);
  color: rgba(223,255,238,.88);
}

.mp-checklist-opcion .form-check-input:checked + .form-check-label .mp-pill-label-option{
  border-color: rgba(83,255,173,.30);
  background: linear-gradient(180deg, rgba(83,255,173,.18), rgba(83,255,173,.10));
  color: #effff6;
}

/* =========================================================
   AJUSTES FINOS
   ========================================================= */

.mp-filter-card-check .mp-checklist{
  align-content: center;
}

.mp-filter-card-check .form-check-label{
  align-items: center;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1180px){
  .mp-filters-grid-inline{
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }
}

@media (max-width: 768px){
  .mp-filters-shell{
    padding: 13px 14px;
    border-radius: 16px;
  }

  .mp-filters-grid-inline{
    grid-template-columns: 1fr;
  }

  .mp-filter-card{
    min-height: auto;
    padding: 12px;
  }

  .mp-day-chip{
    width: 40px;
    height: 40px;
  }

  .mp-checklist{
    gap: 8px 12px;
  }

  .mp-pill-label{
    min-height: 36px;
    padding: 0 13px;
    font-size: .81rem;
  }
}