body {
  font-family:
    system-ui,
    Segoe UI,
    Roboto,
    Arial;
  background: #eef2f5;
  margin: 0;
  padding: 0; /* <-- clave: sacamos el padding del body */
  color: #0a2a43;
  min-height: 100vh; /* <-- ocupa toda la altura */
  display: flex; /* <-- layout flex */
  flex-direction: column; /* <-- header / main / footer en columna */
}

.app-main {
  flex: 1; /* <-- empuja el footer al fondo */
  padding: 24px; /* <-- el padding va acá, no en body */
}

.card {
  max-width: 880px;
  min-height: 400px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #d9e0e7;
  border-radius: 16px;
  padding: 18px;
}

.logo {
  display: block;
  width: 200px;
  margin: 0 auto;
}

h1 {
  margin: 0 0 14px;
  font-size: 22px;
}

label {
  display: block;
  margin: 10px 0 6px;
  font-weight: 700;
}

input {
  
  padding: 12px;
  border: 1px solid #d9e0e7;
  border-radius: 12px;
}

button {
  margin-top: 14px;
  padding: 12px;
  border: 0;
  border-radius: 12px;
  background: #1f6feb;
  color: #fff;
  font-weight: 900;
}

.error {
  background: #ffe3e3;
  border: 1px solid #ffb1b1;
  color: #8a0f0f;
  padding: 10px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.topbar {
  max-width: 880px;
  margin: 0 auto 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar a {
  color: #1f6feb;
  text-decoration: none;
  font-weight: 800;
}

.ok {
  background: #e7fff1;
  border: 1px solid #a7f3c7;
  color: #0b5b2d;
  padding: 10px;
  border-radius: 12px;
  margin: 12px 0;
}

.btnlink {
  display: inline-block;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f3f7fb;
  border: 1px solid #d9e0e7;
  color: #0a2a43;
  font-weight: 900;
  text-decoration: none;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.table th,
.table td {
  border-bottom: 1px solid #e6edf3;
  padding: 10px;
  text-align: left;
}

.table th {
  color: #6b7a88;
  font-weight: 900;
}

.small {
  padding: 8px 10px;
  border-radius: 12px;
  /* background: #eef2f5;*/
  border: 1px solid #d9e0e7;
  font-weight: 900;
  cursor: pointer;
}

select {
  width: 100%;
  padding: 12px;
  border: 1px solid #d9e0e7;
  border-radius: 12px;
  background: #fff;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.cal-head {
  text-align: center;
  font-weight: 900;
  color: #6b7a88;
}
.cal-cell {
  position: relative;
  min-height: 74px;
  border: 1px solid #d9e0e7;
  border-radius: 14px;
  padding: 10px;
  text-decoration: none;
  color: #0a2a43;
  display: block;
}
.cal-empty {
  border: 1px dashed #e2e8f0;
  background: #ffffff;
}
.cal-num {
  font-weight: 900;
  font-size: 16px;
}
.cal-sub {
  margin-top: 6px;
  font-weight: 900;
  font-size: 12px;
  color: #0a2a43;
  opacity: 0.8;
}
.cal-icon {
  position: absolute;
  right: 10px;
  bottom: 8px;
  font-size: 16px;
}
.cal-selected {
  outline: 3px solid #0a2a43;
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  border: 1px solid transparent;
}

.badge--paid {
  background: #e7f8ee;
  border-color: #a7e2bd;
  color: #0f5b2e;
}

.badge--pending {
  background: #fff3df;
  border-color: #ffd08a;
  color: #7a4a00;
}

.badge--cash{
  background:#e7f8ee;
  border-color:#a7e2bd;
  color:#0f5b2e;
}

.badge--virtual{
  background:#e8f1ff;
  border-color:#a9c8ff;
  color:#103a7a;
}


/* ===== Header ===== */
.app-header {
  width: 880px;
  height: 100px;
  display: flex;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: #eef2f5;
  color: #000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.app-header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.app-logo {
  height: 100px;
  width: auto;
  display: block;
}

.app-title {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.app-header__right {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
}

.app-user {
  opacity: 0.9;
}

.app-logout {
  color: #ff5a5f;
  text-decoration: none;
  font-weight: 600;
}

.app-logout:hover {
  text-decoration: underline;
}

/* ===== Footer premium ===== */
.app-footer {
  margin-top: auto;
  border-top: 1px solid rgba(10, 42, 67, 0.1);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
}

.app-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: rgba(10, 42, 67, 0.75);
}

.app-footer__left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.app-footer__copy {
  letter-spacing: 0.2px;
}

.app-footer__by strong {
  color: rgba(10, 42, 67, 0.95);
  font-weight: 700;
}

.app-footer__sep {
  color: rgba(10, 42, 67, 0.35);
}

.app-footer__link {
  color: rgba(10, 42, 67, 0.8);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(10, 42, 67, 0.1);
  background: rgba(255, 255, 255, 0.45);
  transition:
    transform 0.08s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.app-footer__link:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(10, 42, 67, 0.22);
  transform: translateY(-1px);
}

.app-footer__link:active {
  transform: translateY(0);
}

@media (max-width: 640px) {
  .app-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

.app-footer::before {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(10, 42, 67, 0),
    rgba(10, 42, 67, 0.18),
    rgba(10, 42, 67, 0)
  );
}

.login-wrapper {
  min-height: calc(80vh - 64px); /* deja lugar visual al footer */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* Centrar los botones dentro de .card (sin tocar el resto) */
.card {
  text-align: center; /* centra inline/inline-block (tus .btnlink) */
}

/* Pero el texto normal dentro de la card lo dejamos alineado a la izquierda */
.card h1,
.card h2,
.card h3,
.card p,
.card .error {
  text-align: left;
}

/* Botones prolijos y con mejor alineación */
.btnlink {
  display: inline-flex; /* alinea icono + texto */
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 6px 6px 0 0; /* separa entre botones */
}

/* En mobile: que se acomoden mejor */
@media (max-width: 640px) {
  .btnlink {
    width: auto;
    margin: 6px 6px 0 0;
  }
}

.btnbar{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:12px;
  align-items:center;

}

.healthnotes{
  width: 95%;
}

hr{
  border:none;
  border-top:1px solid #e6edf3;
  margin:14px 0;
}

.btnuseredit{
  display:flex;

  flex-wrap:wrap;
}

.tip{
  color:#6b7a88;
  font-size:12px;
  margin-top:6px;
}

.notice {
  max-width: 880px;
  background:#eef6ff;
  border:1px solid #cfe3ff;
  padding:10px 14px;
  margin: 0 auto;
  border-radius:12px;
}

.notice.warning {
  background:#fff4e5;
  border-color:#ffd8a8;
}

.btn-download {
  display: block;
  margin-top: 18px;
  text-align: center;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 14px;
  text-decoration: none;
  background: linear-gradient(135deg, #0f172a, #1f2937);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  transition: all .2s ease;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
  background: linear-gradient(135deg, #111827, #374151);
}

button.small { margin-top: 0; }

.select-compact{
  width: 80%;
  min-width: 80px;
  padding: 10px 12px; /* un poquito menos que 12 para que quede más compacto */
}

.form-compact{
  display:flex;
  gap:8px;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:nowrap;
}

td .form-compact select,
td .form-compact button{
  margin-top:0; /* por las dudas */
}


.field input {
  width: 100%;
}

/* clave para que no se pasen los anchos por padding/border */
*, *::before, *::after { box-sizing: border-box; }

/* labels SIEMPRE a la izquierda (porque .card centra todo) */
.card label { text-align: left; }

/* 2 columnas prolijas */
.row-2{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 15px;
}

/* cada campo ocupa su columna */
.field{
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.field input{
  width: 100%;
}

/* en pantallas chicas: una columna */
@media (max-width: 640px){
  .row-2{ grid-template-columns: 1fr; }
}

.email-input,
.pass-input{
  width: 95%;
}