/* =====================================================================
   S.I.R - Estilos propios sobre la plantilla CoolAdmin
   ===================================================================== */

/* Scroll instantaneo: Bootstrap 5 activa scroll-behavior:smooth en :root
   por defecto, lo que genera frames intermedios "desfasados" (banda blanca
   arriba) durante las animaciones de desplazamiento programatico. */
:root {
    scroll-behavior: auto;
}

/* ---------------------------------------------------------------
   Textos de botones centrados en todo el sistema.
   - .m-btn (CoolAdmin) es inline-flex sin justify-content: los textos
     quedaban alineados a la izquierda en los botones de ancho completo
     (Consultar, Nueva tarea, etc.).
   - .au-btn del login no fijaba text-align.
   - .btn (Bootstrap) ya se centra via app.css; se refuerza por si acaso.
--------------------------------------------------------------- */
body.app .m-btn {
    justify-content: center;
    text-align: center;
}
body.app .btn {
    text-align: center;
    justify-content: center;
}
.au-btn,
body.app.auth-page .login-form .au-btn {
    text-align: center;
    justify-content: center;
}

/* Tarjetas de estadistica */
.stat-card__icon--plan {
  background: #ede9fe;
  color: #7c3aed;
}
.stat-card__icon--report {
  background: #dcfce7;
  color: #16a34a;
}

/* Badges de area sustantiva / estado */
.badge-area {
  font-weight: 500;
  letter-spacing: .02em;
}

/* Tarjeta de tarea */
.tarea-card {
  border-left: 4px solid #7c3aed;
}
.tarea-card.cerrada {
  opacity: .72;
  border-left-color: #9ca3af;
}
.tarea-resumen {
  background: #f9fafb;
  border-left: 3px solid #e5e7eb;
  padding: .5rem .75rem;
  font-size: .92rem;
  color: #374151;
}
.tarea-feedback {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: .5rem;
  padding: .6rem .75rem;
}
.tarea-header-toggle {
  cursor: pointer;
  user-select: none;
  border-radius: .35rem;
}
.tarea-header-toggle:hover {
  background: rgba(0, 0, 0, .04);
}
.tarea-chevron {
  transition: transform .25s ease;
  color: #6b7280;
}
.tarea-header-toggle[aria-expanded="false"] .tarea-chevron {
  transform: rotate(-90deg);
  color: #9ca3af;
}

/* Aviso de planificacion pendiente */
.alert-pendiente {
  border-left: 4px solid #f59e0b;
}

/* Formularios */
.sir-textarea {
  min-height: 96px;
  font-size: .95rem;
  line-height: 1.55;
  resize: vertical;
  padding: .55rem .75rem;
}
.sir-textarea:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 .16rem rgba(124, 58, 237, .16);
}
.form-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: .4rem;
  margin: 1.4rem 0 1rem;
}
.form-section-title i {
  color: #7c3aed;
  margin-right: .4rem;
}
.form-subsection-title {
  font-size: .92rem;
  font-weight: 700;
  color: #374151;
  margin: 1rem 0 .6rem;
}
.campo-obligatorio::after {
  content: " *";
  color: #dc2626;
}

/* Tabla de reportes */
.m-table .row-product__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #eef2ff;
  color: #4f46e5;
  margin-right: .5rem;
}

/* Compatibilidad Bootstrap 4 -> 5 (port del formulario SSC) */
.form-group {
  margin-bottom: 1rem;
}
.mr-1 { margin-right: .25rem !important; }
.mr-2 { margin-right: .5rem !important; }
.mr-3 { margin-right: 1rem !important; }
.ml-1 { margin-left: .25rem !important; }
.ml-2 { margin-left: .5rem !important; }
.ml-3 { margin-left: 1rem !important; }
.font-weight-bold { font-weight: 700 !important; }
.text-right { text-align: right !important; }
.form-row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -5px;
  margin-right: -5px;
}
.form-row > [class*="col-"] {
  padding-left: 5px;
  padding-right: 5px;
}
.input-group-append,
.input-group-prepend {
  display: flex;
}
.input-group-append .btn,
.input-group-prepend .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
