/* ====== Variables de color (verde como en login) ====== */
:root{
  --green-800:#1b5e20;
  --green-700:#2e7d32;
  --green-600:#388e3c;
  --green-100:#e8f5e9;
  --green-050:#f4f9f4;

  --text:#333;
  --muted:#666;
  --border:#ddd;
  --white:#fff;
  --shadow: 0 2px 6px rgba(0,0,0,.15);
}

/* ====== Reset básico ====== */
*{ box-sizing: border-box; margin:0; padding:0; }

html, body{
  height:100%;
}

body{
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: var(--green-050);
  display:flex;
  flex-direction:column;
}

/* ====== Componentes genéricos ====== */
label{
  font-weight:600;
  color: var(--green-700);
  display:block;
  margin-bottom:.35rem;
}

input[type="text"],
input[type="password"],
input[type="date"],
select,
button,
.btn{
  font-size: 1rem;
  padding:.55rem .75rem;
  border:1px solid var(--border);
  border-radius:8px;
  background: var(--white);
}

input[type="text"],
input[type="password"],
input[type="date"],
select{
  width:100%;
}

.btn{
  background: var(--green-700);
  color: var(--white);
  border:none;
  cursor:pointer;
  transition: background .2s ease, transform .05s ease;
}

.btn:hover{ background: var(--green-800); }
.btn:active{ transform: translateY(1px); }

/* Espaciado de grupos de formulario */
.form-group{ margin-bottom: 1rem; }

/* ====== Header (página de reportes) ====== */
.header{
  display:flex;
  align-items:center;
  gap:1rem;
  background: var(--green-700);
  color: var(--white);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.logo-small{ height:42px; }

/* ====== Contenido principal ====== */
.content{ flex:1; padding: 1rem; }

/* ====== Filtros (página de reportes) ====== */
.filters{
  display:flex;
  flex-wrap:wrap;
  gap:.8rem 1rem;
  margin-bottom:1rem;
  background: var(--green-100);
  padding:1rem;
  border-radius:10px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.filters .btn{ /* reutiliza botón genérico */
  align-self:flex-end;
}

/* ====== Tabla (página de reportes) ====== */
.table-container{ overflow-x:auto; background: var(--white); border-radius:10px; box-shadow: 0 1px 6px rgba(0,0,0,.08); }

.report-table{
  width:100%;
  border-collapse:collapse;
  min-width: 680px;
}

.report-table th, .report-table td{
  padding:.65rem .75rem;
  border:1px solid var(--border);
  text-align:left;
  font-size:.95rem;
}

.report-table th{
  background: var(--green-600);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1;
}

.report-table tr:nth-child(even){ background:#f1f8f2; }
.report-table tr:hover{ background:#cfead1; }

.foto{
  max-width:100px;
  height:auto;
  border-radius:8px;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}

/* ====== Login ====== */
.login-container{
  min-height:100vh;
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 24px;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(56,142,60,.15), transparent 60%),
    radial-gradient(900px 600px at -10% 90%, rgba(46,125,50,.18), transparent 60%),
    var(--green-050);
}

.login-card{
  width:100%;
  max-width:420px;
  background: var(--white);
  border-radius:14px;
  box-shadow: 0 10px 25px rgba(0,0,0,.12);
  padding: 22px 22px 18px;
}

.logo{
  display:block;
  height:64px;
  width:auto;
  margin: 4px auto 10px;
}

.login-card h2{
  text-align:center;
  color: var(--green-700);
  margin-bottom: 14px;
}

.login-card .btn{
  width:100%;
  margin-top: .25rem;
}
/* Lightbox básica */
.lightbox {
  display: none;
  position: fixed;
  z-index: 100;
  top:0; left:0;
  width:100%;
  height:100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
}

.lightbox:target {
  display: flex;
}

.close {
  position: absolute;
  top:20px;
  right:30px;
  font-size: 2rem;
  color:white;
  text-decoration:none;
}
.filters {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.filter-item {
  flex: 1;
  min-width: 150px;
}

.filter-item.full-width {
  width: 100%;
}

.filters label {
  display: block;
  margin-bottom: 0.3rem;
}

.filters input,
.filters select,
.filters button {
  width: 100%;
  padding: 0.4rem;
  font-size: 1rem;
}

/* ====== Boton regresar====== */
.back-button {
      position: absolute;
      top: 10px;
      left: 10px;
      background-color: #2e7d32; /* verde consistente con login */
      color: white;
      border: none;
      padding: 8px 12px;
      border-radius: 5px;
      cursor: pointer;
      font-size: 14px;
}
.back-button:hover {
      background-color: #1b5e20;
}
	
header.header {
      position: relative; /* necesario para que el botón se posicione dentro */
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 1rem 0;
}

@media (max-width: 600px) {
  .filter-row {
    flex-direction: column;
  }
}


