/* =========================================================
   Estilos del panel de administración - SEPA Mandatos
   ========================================================= */

body {
  background-color: #f4f6f9;
}

.stat-card {
  border-left-width: 4px;
  text-align: center;
}
.stat-number {
  font-size: 2.2rem;
  font-weight: 700;
}
.stat-label {
  color: #666;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #0d6efd, #0a58ca);
}
.login-card {
  border: none;
  border-radius: 12px;
}

.company-logo-thumb {
  max-height: 50px;
  max-width: 120px;
  object-fit: contain;
  background: #fff;
  padding: 2px;
  border: 1px solid #eee;
  border-radius: 4px;
}

.audit-timeline {
  max-height: 420px;
  overflow-y: auto;
}

@media print {
  .navbar, footer, .btn, form, .card-header {
    display: none !important;
  }
  .card {
    border: none !important;
    box-shadow: none !important;
  }
}

/* =========================================================
   Plantilla del mandato SEPA (reutilizada en vista previa
   y en la ficha de administración)
   ========================================================= */

.mandate-doc {
  background: #fff;
  color: #000;
  font-size: 13px;
  line-height: 1.5;
  position: relative;
  padding: 10px;
}
.mandate-doc .mandate-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px solid #333;
  padding-bottom: 10px;
  margin-bottom: 15px;
  gap: 10px;
  flex-wrap: wrap;
}
.mandate-doc .mandate-logo img { max-height: 80px; max-width: 220px; object-fit: contain; }
.mandate-doc .mandate-company-data { text-align: right; font-size: 12px; }
.mandate-doc .mandate-title {
  text-align: center;
  font-weight: bold;
  border: 2px solid #333;
  padding: 10px;
  font-size: 16px;
  margin-bottom: 15px;
  text-transform: uppercase;
}
.mandate-doc .mandate-ref { margin-bottom: 15px; font-size: 13px; }
.mandate-doc .mandate-section { margin-bottom: 18px; }
.mandate-doc .section-label {
  font-weight: bold;
  background: #f0f0f0;
  padding: 4px 8px;
  border-left: 4px solid #333;
  margin-bottom: 8px;
}
.mandate-doc .mandate-fields td { padding: 3px 6px; vertical-align: top; }
.mandate-doc .field-label { font-weight: 600; width: 260px; }
.mandate-doc .char-box-label { font-size: 11px; font-weight: 600; margin: 6px 0 4px; }
.mandate-doc .char-boxes { display: flex; flex-wrap: wrap; gap: 2px; margin-bottom: 10px; }
.mandate-doc .char-box {
  display: inline-block;
  width: 22px;
  height: 26px;
  line-height: 26px;
  text-align: center;
  border: 1px solid #333;
  font-family: monospace;
  font-weight: bold;
}
.mandate-doc .payment-type { display: flex; gap: 30px; flex-wrap: wrap; }
.mandate-doc .checkbox-item { display: flex; align-items: center; gap: 6px; }
.mandate-doc .checkbox-box {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border: 2px solid #333; font-weight: bold;
}
.mandate-doc .mandate-text {
  font-size: 11.5px; text-align: justify; border: 1px solid #ccc; padding: 10px;
  background: #fafafa; margin-bottom: 20px;
}
.mandate-doc .mandate-signature {
  display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 20px; flex-wrap: wrap; gap: 10px;
}
.mandate-doc .signature-box {
  width: 260px; height: 90px; border: 1px solid #333; display: flex; flex-direction: column;
  justify-content: flex-end; align-items: center; padding: 6px;
}
.mandate-doc .signature-label { font-size: 11px; color: #555; border-top: 1px solid #999; width: 100%; text-align: center; padding-top: 4px; }
.mandate-doc .signature-signed { color: #146c2e; font-size: 12px; text-align: center; }
.mandate-doc .mandate-footer { text-align: center; font-size: 10px; color: #777; border-top: 1px solid #ccc; padding-top: 8px; }
.mandate-doc .signed-stamp {
  display: inline-block; border: 3px solid #146c2e; color: #146c2e;
  padding: 6px 10px; font-weight: bold; font-size: 11px; text-align: center; transform: rotate(-8deg);
  border-radius: 6px; background: rgba(20, 108, 46, 0.05);
}
