.aude-dashboard {
  display: grid;
  grid-template-columns: 1.03fr 1fr;
  gap: 18px;
}

.aude-input-card {
  padding: 16px;
}

.aude-card-title,
.aude-table-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.aude-title-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.aude-card-title h3,
.aude-table-title h3 {
  margin: 0;
  font-size: 1.02rem;
}

.aude-orange {
  color: var(--premium);
}

.aude-upload {
  margin-top: 16px;
  height: 70px;
  border: 1px dashed rgba(203, 213, 225, 0.38);
  background: rgba(15, 23, 42, 0.42);
  border-radius: 12px;
  display: grid;
  place-items: center;
  text-align: center;
  cursor: pointer;
  transition: 0.16s ease;
}

.aude-upload:hover {
  border-color: var(--premium);
  background: rgba(217, 84, 7, 0.08);
}

.aude-upload strong {
  display: block;
  color: var(--textMain);
  font-size: 0.88rem;
}

.aude-upload span {
  display: block;
  margin-top: 4px;
  color: var(--silver);
  font-size: 0.72rem;
}

.aude-file-name {
  margin: 9px 0 0;
  color: var(--textSec);
  font-size: 0.84rem;
  word-break: break-word;
}

.aude-options {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.aude-option-title {
  color: var(--silver);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.aude-options label {
  background: rgba(15, 23, 42, 0.42);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 9px 11px;
  color: var(--textSec);
  font-size: 0.88rem;
  font-weight: 800;
}

.aude-folder {
  margin: 9px 0 0;
  color: var(--silver);
  font-size: 0.76rem;
}

.aude-kpis {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.aude-kpi {
  min-height: 116px;
  padding: 16px;
}

.aude-kpi-head {
  color: var(--textSec);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.aude-kpi-value {
  margin-top: 26px;
  font-size: 1.85rem;
  font-weight: 900;
}

.aude-kpi-sub {
  margin-top: 3px;
  color: var(--silver);
  font-size: 0.78rem;
}

.aude-orange-text {
  color: var(--premium);
}

.aude-green-text {
  color: var(--positive);
}

.aude-table-card {
  padding: 15px;
  margin-bottom: 12px;
}

.aude-table-title p {
  margin: 4px 0 0;
  color: var(--textSec);
  font-size: 0.84rem;
}

.aude-actions-inline {
  margin-left: auto;
}

.aude-results-table {
  max-height: 222px;
  margin-top: 13px;
}

.aude-preview-table {
  max-height: 252px;
  margin-top: 13px;
}

#filesTable {
  min-width: 890px;
}

#previewTable {
  min-width: 760px;
}

@media (max-width: 980px) {
  .aude-dashboard {
    grid-template-columns: 1fr;
  }

  .aude-kpis {
    grid-template-columns: 1fr;
  }

  .aude-actions-inline {
    margin-left: 0;
    margin-top: 10px;
  }
}

/* AUDELOT V1.1.1 - Alineación consistente de valores numéricos */
#filesTable th:nth-child(3),
#filesTable th:nth-child(4),
#filesTable th:nth-child(5),
#filesTable th:nth-child(6),
#filesTable td:nth-child(3),
#filesTable td:nth-child(4),
#filesTable td:nth-child(5),
#filesTable td:nth-child(6),
#previewTable th:nth-child(3),
#previewTable th:nth-child(4),
#previewTable td:nth-child(3),
#previewTable td:nth-child(4) {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

#filesTable th:nth-child(2),
#filesTable td:nth-child(2),
#filesTable th:nth-child(7),
#filesTable td:nth-child(7),
#filesTable th:nth-child(8),
#filesTable td:nth-child(8) {
  text-align: center;
}

#previewTable th:nth-child(2),
#previewTable td:nth-child(2) {
  text-align: left;
}


/* AUDELOT V1.1.2 - Selector de renglones para DESCRIPCION */
.aude-description-config {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgba(15, 23, 42, 0.42);
}
.aude-description-config label {
  display: block;
  margin-bottom: 8px;
}
.aude-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(203, 213, 225, 0.28);
  border-radius: 9px;
  background: #0f172a;
  color: var(--textMain);
  font: inherit;
  font-weight: 800;
}
.aude-description-note {
  margin: 8px 0 0;
  color: var(--positive);
  font-size: 0.76rem;
  line-height: 1.4;
}
.aude-description-note.warning {
  color: #fbbf24;
}

/* AUDELOT V1.1.3 - Formato de salida junto a los botones de descarga */
.aude-output-actions {
  align-items: center;
}

.aude-output-title {
  color: var(--silver);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
  margin-right: 2px;
}

@media (max-width: 980px) {
  .aude-output-actions {
    width: 100%;
  }

  .aude-output-title {
    width: 100%;
    margin-bottom: 2px;
  }
}

/* AUDELOT V1.5.0 - Controles clicables con mayor contraste */
.aude-click-zone {
  background: rgba(71, 85, 105, 0.48);
  border-color: rgba(203, 213, 225, 0.52);
}

.aude-click-zone:hover,
.aude-description-config.aude-click-zone:focus-within {
  background: rgba(71, 85, 105, 0.62);
  border-color: rgba(226, 232, 240, 0.72);
}

.aude-click-zone .aude-select {
  background: #26364a;
  border-color: rgba(226, 232, 240, 0.46);
}
