/* ===== Modal Solicitar certificados ===== */
.haon-solicitar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8,20,38,0.72);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99998;
  animation: haon-sol-fade 0.2s ease;
}
@keyframes haon-sol-fade { from { opacity: 0; } to { opacity: 1; } }
.haon-solicitar-card {
  position: relative;
  width: 92%;
  max-width: 380px;
  background: linear-gradient(160deg, #14335c 0%, #0f2847 100%);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 32px 28px 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: haon-sol-pop 0.25s ease;
}
@keyframes haon-sol-pop { from { transform: scale(0.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.haon-solicitar-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #aebfce;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.haon-solicitar-close:hover { background: rgba(226,75,74,0.15); color: #ffb3b3; }
.haon-sol-title { font-size: 21px; font-weight: 700; color: #fff; margin: 0 0 6px; }
.haon-sol-sub { font-size: 14px; color: #9fb3c8; margin: 0 0 20px; }
.haon-sol-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  letter-spacing: 1px;
  outline: none;
  transition: border-color 0.2s ease;
}
.haon-sol-input:focus { border-color: #5dcaa5; }
.haon-sol-hint { font-size: 12px; color: #7a93a8; margin: 8px 0 0; text-align: center; min-height: 14px; }
.haon-sol-enviar {
  width: 100%;
  margin-top: 18px;
  background: #1d9e75;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}
.haon-sol-enviar:hover:not(:disabled) { background: #25b888; }
.haon-sol-enviar:disabled { opacity: 0.6; cursor: default; }
.haon-sol-msg { font-size: 13px; text-align: center; margin-top: 14px; min-height: 16px; }
.haon-sol-msg.is-ok { color: #5dcaa5; }
.haon-sol-msg.is-error { color: #ffb3b3; }

/* ════════════════════════════════════════════════════════════
   HAONVGM — Bloque Contraseña en Configuración
   Brotherhood Martín + Claude — 2026-06-02
   ════════════════════════════════════════════════════════════ */

.haon-pwd-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 8px 12px;
  color: #fff;
  font-size: 0.95rem;
  width: 240px;
  font-family: inherit;
  transition: border-color 0.15s ease;
}

.haon-pwd-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.haon-pwd-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.haon-pwd-btn {
  background: #10b981;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 22px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  transition: background 0.15s ease;
}

.haon-pwd-btn:hover:not(:disabled) {
  background: #059669;
}

.haon-pwd-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.haon-pwd-feedback {
  margin-top: 14px;
  padding: 0 14px;
  font-size: 0.9rem;
  min-height: 1.2rem;
  font-weight: 500;
}

.haon-pwd-feedback.ok {
  color: #10b981;
}

.haon-pwd-feedback.error {
  color: #ef4444;
}

@media (max-width: 600px) {
  .haon-pwd-input {
    width: 100%;
  }
}

/* ===== Panel Admin Solicitudes (aprobador) ===== */
.haon-admin-body-empty { text-align:center; color:#9fb3c8; padding:24px 0; }
.haon-admin-row {
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:14px 16px; background:rgba(0,0,0,0.18);
  border:1px solid rgba(255,255,255,0.08); border-radius:12px; margin-bottom:10px;
  transition:background 0.3s ease;
}
.haon-admin-row-info { flex:1; min-width:0; }
.haon-admin-row-top { display:flex; align-items:center; gap:8px; margin-bottom:4px; }
.haon-admin-row-top strong { color:#fff; font-size:14px; }
.haon-admin-estado {
  font-size:11px; padding:2px 8px; border-radius:6px;
  background:rgba(255,180,0,0.15); color:#ffb400; font-weight:600;
}
.haon-admin-row-detail { display:flex; gap:12px; font-size:12px; color:#8a9bab; flex-wrap:wrap; }
.haon-admin-row-notas { font-size:12px; color:#7a93a8; margin-top:4px; font-style:italic; }
.haon-admin-row-actions { display:flex; gap:6px; flex-shrink:0; }
.haon-admin-btn-ok,.haon-admin-btn-no {
  border:none; border-radius:8px; padding:8px 14px;
  font-size:13px; font-weight:600; cursor:pointer; transition:all 0.2s ease;
}
.haon-admin-btn-ok { background:#1d9e75; color:#fff; }
.haon-admin-btn-ok:hover { background:#23b888; }
.haon-admin-btn-ok:disabled,.haon-admin-btn-no:disabled { opacity:0.5; cursor:default; }
.haon-admin-btn-no { background:rgba(226,75,74,0.15); color:#ff8a8a; }
.haon-admin-btn-no:hover { background:rgba(226,75,74,0.3); }
@media(max-width:600px){
  .haon-admin-row { flex-direction:column; align-items:stretch; }
  .haon-admin-row-actions { justify-content:flex-end; }
}

/* ===== Tabla Consumo ===== */
.haon-consumo-table { width:100%; border-collapse:collapse; }
.haon-consumo-table th {
  text-align:left; padding:10px 14px; color:#9fb3c8; font-size:12px;
  text-transform:uppercase; letter-spacing:0.5px; border-bottom:1px solid rgba(255,255,255,0.1);
}
.haon-consumo-table td { padding:12px 14px; border-bottom:1px solid rgba(255,255,255,0.06); color:#e0e8ef; font-size:14px; }
.haon-consumo-table tr:hover { background:rgba(255,255,255,0.04); }
.haon-consumo-num { text-align:right; font-variant-numeric:tabular-nums; }
.haon-consumo-prefijo { background:rgba(93,202,165,0.15); color:#5dcaa5; padding:2px 6px; border-radius:4px; font-size:11px; font-weight:600; margin-right:6px; }
.haon-consumo-bar { height:6px; border-radius:3px; background:rgba(255,255,255,0.08); overflow:hidden; min-width:80px; }
.haon-consumo-bar-fill { height:100%; border-radius:3px; background:#f0c136; transition:width 0.4s ease; }

/* ===== Filtro de empresa en Estadisticas (root only) ===== */
.haon-stats-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
}
.haon-stats-filter-label {
  font-size: 13px;
  color: #cbd5e1;
  font-weight: 500;
}
.haon-stats-empresa-select {
  flex: 1;
  max-width: 320px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.06);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  outline: none;
}
.haon-stats-empresa-select:focus {
  border-color: #fbbf24;
}
.haon-stats-empresa-select option {
  background: #0f2847;
  color: #ffffff;
}

/* ===== Boton "Asignar folios" en tabla Consumo (root only) ===== */
.haon-consumo-asignar-btn {
  background: #fbbf24;
  color: #0f2847;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}
.haon-consumo-asignar-btn:hover {
  background: #f59e0b;
}
.haon-consumo-asignar-btn:active {
  transform: translateY(1px);
}

/* ===== Modal generico HAON (field, actions, botones) ===== */
.haon-sol-field {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.haon-sol-field label {
  font-size: 13px;
  font-weight: 500;
  color: #9fb3c8;
  letter-spacing: 0.02em;
}
.haon-sol-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}
.haon-sol-cancel {
  background: transparent;
  color: #9fb3c8;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}
.haon-sol-cancel:hover {
  background: rgba(255,255,255,0.05);
  color: #fff;
}
.haon-sol-submit {
  background: #fbbf24;
  color: #0f2847;
  border: none;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}
.haon-sol-submit:hover {
  background: #f59e0b;
}
.haon-sol-submit:disabled {
  background: rgba(251,191,36,0.4);
  color: rgba(15,40,71,0.6);
  cursor: not-allowed;
}


