/* ============================================================
   DANGOFE OS LIQUID V2 — tarifas.css
   TARIFAS / COMISIONES POR TÉCNICO (DANGOFE-TECNICO-044 · v1.0.44)
   Estética Liquid Glass (prefijo tf-).
   ============================================================ */

.tf-wrap { display: flex; flex-direction: column; gap: 16px; }

/* ---------- encabezado ---------- */
.tf-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.5rem; }
.tf-sub { margin: 4px 0 0; opacity: .75; font-size: .92rem; line-height: 1.45; }

/* ---------- tarjetas ---------- */
.tf-card {
  border-radius: 18px; padding: 16px 18px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: flex; flex-direction: column; gap: 14px;
}
.tf-card h3 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 1.1rem; }

/* ---------- formulario ---------- */
.tf-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.tf-field { display: flex; flex-direction: column; gap: 5px; flex: 1 1 180px; min-width: 150px; }
.tf-field--wide { flex-basis: 100%; }
.tf-field span { font-size: .82rem; opacity: .78; }
.tf-field input, .tf-field select, .tf-field textarea {
  padding: 9px 12px; border-radius: 12px; border: 1px solid var(--glass-border);
  background: var(--glass-bg-input); color: inherit; font: inherit; font-size: .9rem;
  outline: none; transition: border-color .15s ease; width: 100%; box-sizing: border-box;
}
.tf-field input:focus, .tf-field select:focus, .tf-field textarea:focus { border-color: rgba(99,132,255,.65); }
.tf-field textarea { resize: vertical; min-height: 52px; }
.tf-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- botones ---------- */
.tf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 15px; border-radius: 12px; border: 1px solid var(--glass-border);
  background: var(--glass-bg-input); color: inherit; cursor: pointer;
  font: inherit; font-size: .9rem; transition: all .18s ease;
}
.tf-btn:hover { background: var(--glass-bg-active); }
.tf-btn--primary { background: rgba(99,132,255,.28); border-color: rgba(99,132,255,.55); font-weight: 600; }
.tf-btn--primary:hover { background: rgba(99,132,255,.4); }
.tf-btn--danger { background: rgba(255,99,99,.22); border-color: rgba(255,99,99,.5); }
.tf-btn--danger:hover { background: rgba(255,99,99,.34); }
.tf-btn--sm { padding: 6px 11px; font-size: .82rem; border-radius: 10px; }

/* ---------- consulta ---------- */
.tf-consulta__row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tf-consulta__row select, .tf-consulta__row input {
  padding: 9px 12px; border-radius: 12px; border: 1px solid var(--glass-border);
  background: var(--glass-bg-input); color: inherit; font: inherit; font-size: .9rem;
}
.tf-consulta__res {
  padding: 12px 14px; border-radius: 12px; font-size: .95rem;
  background: rgba(74,222,128,.12); border: 1px solid rgba(74,222,128,.32);
}

/* ---------- lista de reglas ---------- */
.tf-lista { display: flex; flex-direction: column; gap: 10px; }
.tf-item {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; border-radius: 14px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
}
.tf-item--off { opacity: .58; }
.tf-item__main { display: flex; flex-direction: column; gap: 5px; flex: 1 1 260px; min-width: 0; }
.tf-item__top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tf-item__calc { font-weight: 700; font-size: 1rem; }
.tf-item__cond { display: flex; align-items: center; gap: 6px; font-size: .86rem; opacity: .82; flex-wrap: wrap; }
.tf-item__nota { font-size: .82rem; opacity: .68; }

/* ---------- distintivos de alcance ---------- */
.tf-tag {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px;
  font-size: .76rem; font-weight: 600;
  border: 1px solid var(--glass-border); background: var(--glass-bg-strong);
}
.tf-tag--global       { background: rgba(148,163,184,.22); border-color: rgba(148,163,184,.5); }
.tf-tag--tipo_orden   { background: rgba(56,189,248,.22);  border-color: rgba(56,189,248,.5); }
.tf-tag--tecnico      { background: rgba(99,132,255,.22);  border-color: rgba(99,132,255,.5); }
.tf-tag--tecnico_tipo { background: rgba(192,132,252,.22); border-color: rgba(192,132,252,.5); }
.tf-tag--off          { background: rgba(255,99,99,.18);   border-color: rgba(255,99,99,.45); }

/* ---------- utilidades ---------- */
.tf-cargando, .tf-vacio {
  padding: 28px 16px; border-radius: 16px; text-align: center; opacity: .82;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.tf-error { color: #ff8f8f; font-size: .9rem; display: flex; align-items: center; gap: 6px; padding: 14px; }
.tf-nomas { opacity: .6; font-size: .82rem; }
