/* ══════════════════════════════════════════
   REPORTES.CSS — Estilos de formularios y botones
   Si cambia el diseño de los formularios o botones
   de descarga, solo tocas este archivo.
══════════════════════════════════════════ */

/* ── PANEL CONTENEDOR ── */
.report-panel {
    display: none;
    width: 100%;
    max-width: 680px;
  }
  
  .report-panel.active { display: block; }
  
  /* ── TÍTULO ── */
  .report-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 28px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent);
  }
  
  /* ── GRILLA DE FORMULARIO ── */
  .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 20px;
  }
  
  .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  
  .form-group label {
    font-size: 11px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .form-group input,
  .form-group select {
    border: 1px solid #ddd;
    border-radius: 7px;
    padding: 10px 13px;
    font-size: 13px;
    font-family: inherit;
    background: white;
    outline: none;
    transition: border-color 0.2s;
  }
  
  .form-group input:focus,
  .form-group select:focus { border-color: var(--accent); }
  
  .form-group input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.5;
  }
  
  /* ── CHECKBOX ── */
  .checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    cursor: pointer;
  }
  
  .checkbox-row input[type="checkbox"] {
    accent-color: var(--accent);
    width: 16px;
    height: 16px;
    cursor: pointer;
  }
  
  .checkbox-row label {
    font-size: 13px;
    cursor: pointer;
  }
  
  /* ── BOTÓN DESCARGAR ── */
  .btn-download {
    width: 180px;
    height: 50px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 50px;
    font-family: inherit;
    cursor: pointer;
    position: relative;
    box-shadow: 0 8px 24px rgba(232,35,56,0.35);
    overflow: hidden;
    margin: 28px auto 0;
    display: block;
    transition: background 0.2s;
  }
  
  .btn-download:hover           { background: var(--accent-hover); }
  .btn-download:disabled        { background: #ccc; cursor: not-allowed; box-shadow: none; }
  
  /* Animación hover — texto sube, ícono sube desde abajo */
  .btn-text-one,
  .btn-text-two {
    position: absolute;
    width: 100%;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: top 0.4s ease;
    font-size: 13px;
    font-weight: 600;
  }
  
  .btn-text-one { top: 50%;  transform: translateY(-50%); }
  .btn-text-two { top: 150%; transform: translateY(-50%); }
  
  .btn-download:not(:disabled):hover .btn-text-one { top: -100%; }
  .btn-download:not(:disabled):hover .btn-text-two { top: 50%;   }
  
  .btn-text-two img {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1);
  }
  
  /* ── MENSAJE DE ESTADO ── */
  .status-msg {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    min-height: 20px;
    padding: 0 16px;
  }
  
  .status-msg.ok    { color: #1a7a1a; }
  .status-msg.error { color: var(--accent); }
  .status-msg.warn  { color: #b07d00; }
  
  /* ── BARRA DE CARGA ── */
  /* ── LOADER TRIÁNGULO ── */
  .loading-bar {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    color: #aaa;
    font-size: 13px;
    font-weight: 500;
  }

  .loading-bar.active { display: flex; }

  .loader {
    width: 30px;
    aspect-ratio: 1.154;
    position: relative;
    background: conic-gradient(
      from 120deg at 50% 64%,
      #0000,
      var(--accent) 1deg 120deg,
      #0000 121deg
    );
    animation: l27-0 1.5s infinite cubic-bezier(0.3, 1, 0, 1);
  }

  .loader:before,
  .loader:after {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit;
    transform-origin: 50% 66%;
    animation: l27-1 1.5s infinite;
  }

  .loader:after { --s: -1; }

  @keyframes l27-0 {
    0%,  30%   { transform: rotate(0);       }
    70%        { transform: rotate(120deg);  }
    70.01%,100%{ transform: rotate(360deg); }
  }

  @keyframes l27-1 {
    0%      { transform: rotate(calc(var(--s,1)*120deg)) translate(0); }
    30%,70% { transform: rotate(calc(var(--s,1)*120deg)) translate(calc(var(--s,1)*-5px),10px); }
    100%    { transform: rotate(calc(var(--s,1)*120deg)) translate(0); }
  }

  /* eliminar el fill que ya no se usa */
  .loading-bar-fill { display: none; }