/* =====================================
   PANEL DE CONTROL - TUBAS Y SOUSÁFONOS
   BANDA MBM
===================================== */

.control-page {
  background: #f4f6f9;
  color: #202938;
}

.control-container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 64px;
}

/* ENCABEZADO */

.control-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 9px;
  color: #758096;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.35px;
}

.control-heading h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 43px);
  letter-spacing: -1.3px;
}

.heading-copy {
  margin: 10px 0 0;
  color: #707b8d;
  line-height: 1.6;
}

.section-tag,
.total-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid #e2e7ef;
  border-radius: 30px;
  background: #fff;
  color: #536078;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b58c3c;
}

/* ESTADÍSTICAS */

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.summary-card,
.panel-card {
  background: #fff;
  border: 1px solid #e7ebf1;
  border-radius: 13px;
  box-shadow: 0 5px 18px rgba(26, 39, 60, 0.035);
}

.summary-card {
  min-height: 130px;
  padding: 20px 22px;
}

.summary-main {
  background: #202f49;
  border-color: #202f49;
  color: #fff;
}

.summary-label {
  display: block;
  color: #7b8799;
  font-size: 12px;
  font-weight: 700;
}

.summary-main .summary-label,
.summary-main .summary-note {
  color: #d1d9e6;
}

.summary-number {
  margin: 8px 0 3px;
  font-size: 38px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -1px;
}

.summary-note {
  color: #8792a3;
  font-size: 11px;
}

/* PANELES */

.panel-card {
  padding: 24px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.panel-header h2,
.info-panel h2,
.note-panel h2 {
  margin: 0;
  font-size: 21px;
  letter-spacing: -0.4px;
}

.panel-description {
  margin: 7px 0 0;
  color: #7b8595;
  font-size: 13px;
}

/* BUSCADOR Y FILTRO */

.search-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 15px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 200px;
  padding: 0 13px;
  border: 1px solid #dfe5ed;
  border-radius: 8px;
  background: #fbfcfe;
  color: #8290a3;
}

.search-box span {
  font-size: 22px;
}

.search-box input {
  width: 100%;
  height: 43px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #273449;
  font: inherit;
  font-size: 13px;
}

.search-box:focus-within {
  border-color: #b58c3c;
  box-shadow: 0 0 0 3px rgba(181, 140, 60, 0.12);
}

.instrument-filter {
  min-width: 175px;
  height: 45px;
  padding: 0 12px;
  border: 1px solid #dfe5ed;
  border-radius: 8px;
  background: #fbfcfe;
  color: #536078;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.instrument-filter:focus {
  outline: 2px solid #b58c3c;
  outline-offset: 2px;
}

.search-hint {
  color: #8993a2;
  font-size: 12px;
  white-space: nowrap;
}

/* TABLA */

.table-wrap {
  overflow-x: auto;
}

.member-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}

.member-table th {
  padding: 12px 13px;
  background: #f6f8fb;
  color: #7c8798;
  font-size: 10px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.member-table td {
  padding: 14px 13px;
  border-bottom: 1px solid #edf0f4;
  color: #586477;
  font-size: 12px;
}

.member-table tbody tr:last-child td {
  border-bottom: 0;
}

.member-table tbody tr:hover {
  background: #fafbfd;
}

.member-table td:first-child {
  color: #9aa3b0;
  font-variant-numeric: tabular-nums;
}

.member-name {
  color: #263449 !important;
  font-weight: 700;
}

.muted-value {
  color: #9aa3b0;
}

.empty-message {
  padding: 25px;
  text-align: center;
  color: #8993a2;
  font-size: 13px;
}

.data-note {
  margin: 16px 0 0;
  color: #8b95a4;
  font-size: 11px;
  line-height: 1.6;
}

/* ESTADOS */

.status {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
}

.status-ok {
  background: #eaf6ef;
  color: #32805a;
}

/* INFORMACIÓN INFERIOR */

.bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

.info-panel h2,
.note-panel h2 {
  margin-bottom: 17px;
}

.details-list {
  margin: 0;
}

.details-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid #edf0f4;
  font-size: 12px;
}

.details-list div:last-child {
  border-bottom: 0;
}

.details-list dt {
  color: #8791a0;
}

.details-list dd {
  margin: 0;
  color: #344157;
  font-weight: 700;
  text-align: right;
}

/* DISTRIBUCIÓN INSTRUMENTAL */

.note-panel > p:not(.eyebrow):not(.progress-caption) {
  color: #6f7a8b;
  font-size: 13px;
  line-height: 1.8;
}

.instrument-progress {
  margin-top: 20px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  margin: 15px 0 8px;
  color: #687589;
  font-size: 12px;
}

.progress-info strong {
  color: #344157;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 10px;
  background: #edf0f5;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 10px;
  background: #b58c3c;
  transition: width 0.3s ease;
}

#sousafono-bar {
  background: #7589a8;
}

.progress-caption {
  margin: 15px 0 0;
  color: #8791a0;
  font-size: 11px;
}

/* RESPONSIVE */

@media (max-width: 760px) {

  .control-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .summary-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .summary-card {
    min-height: 105px;
  }

  .bottom-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 520px) {

  .control-container {
    width: calc(100% - 28px);
    padding: 28px 0 42px;
  }

  .panel-card {
    padding: 18px 14px;
  }

  .panel-header {
    flex-direction: column;
  }

  .search-row {
    align-items: stretch;
    flex-direction: column;
  }

  .search-box,
  .instrument-filter {
    width: 100%;
    box-sizing: border-box;
  }

  .section-tag {
    font-size: 11px;
  }

}