:root {
  --istam: #1f6f43;
  --istam-oscuro: #155232;
  --istam-claro: #e8f3ec;
}
body { background: #f4f6f5; padding-bottom: env(safe-area-inset-bottom); }
.bg-istam { background: var(--istam) !important; }
.text-istam { color: var(--istam) !important; }
.btn-istam { background: var(--istam); border-color: var(--istam); color: #fff; }
.btn-istam:hover, .btn-istam:focus { background: var(--istam-oscuro); border-color: var(--istam-oscuro); color: #fff; }
.btn-outline-istam { color: var(--istam); border-color: var(--istam); }
.btn-outline-istam:hover { background: var(--istam); color: #fff; }

.menu .list-group-item { padding: .85rem 1.1rem; border-left: 0; border-right: 0; }
.menu .list-group-item i { width: 1.6rem; display: inline-block; color: var(--istam); }

.card { border: 0; border-radius: .9rem; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.card-header { background: #fff; border-bottom: 1px solid #eef0ef; font-weight: 600; border-radius: .9rem .9rem 0 0 !important; }

/* Botón grande de marcación */
.boton-marcar {
  width: 13rem; height: 13rem; border-radius: 50%;
  font-size: 1.35rem; font-weight: 700; line-height: 1.2;
  border: 0; color: #fff; background: var(--istam);
  box-shadow: 0 10px 25px rgba(31,111,67,.35);
  transition: transform .1s ease, box-shadow .1s ease;
}
.boton-marcar.salida { background: #b4472c; box-shadow: 0 10px 25px rgba(180,71,44,.35); }
.boton-marcar:active { transform: scale(.97); }
.boton-marcar:disabled { background: #9aa5a0; box-shadow: none; }
.boton-marcar i { font-size: 3rem; display: block; margin-bottom: .3rem; }
.reloj { font-size: 2.6rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .02em; }

.stat { border-radius: .9rem; padding: .9rem 1rem; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.06); height: 100%; }
.stat .num { font-size: 1.8rem; font-weight: 700; line-height: 1; }
.stat .lbl { color: #6c757d; font-size: .85rem; }

.mapa { height: 320px; border-radius: .75rem; z-index: 0; }
.table td, .table th { vertical-align: middle; }
.table-sm td, .table-sm th { white-space: nowrap; }
.form-label { font-weight: 500; font-size: .92rem; }
.login-fondo { min-height: 100vh; background: linear-gradient(160deg, var(--istam) 0%, var(--istam-oscuro) 55%, #0c2e1c 100%); }
.badge.text-bg-light { border: 1px solid #dee2e6; }

@media (max-width: 576px) {
  main.container { padding-left: .75rem; padding-right: .75rem; }
  .table-responsive { font-size: .88rem; }
  h1, .h1 { font-size: 1.5rem; }
}
.capitalizar::first-letter { text-transform: uppercase; }
.boton-marcar.inactivo { background: #9aa5a0; box-shadow: 0 6px 16px rgba(0,0,0,.12); }
#modalMensaje .modal-content { border-radius: 1.1rem; }
