:root { --sg-navy: #1f4e79; --sg-amber: #f0a202; }
body { background: #f4f6f9; }
.sg-nav { background: var(--sg-navy); }
.sg-main { max-width: 1200px; margin: 0 auto; padding-bottom: 80px !important; }
.card { border: 0; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.card-header { background: #fff; font-weight: 600; }

/* Gate device: big touch targets */
.gate-actions .btn { font-size: 1.25rem; padding: 1.1rem .5rem; font-weight: 600; }
.req-card { border-left: 6px solid #adb5bd; }
.req-card.pending { border-left-color: var(--sg-amber); }
.req-card.no_response { border-left-color: #dc3545; }
.req-card.allowed, .req-card.call_approved, .req-card.preapproved, .req-card.emergency { border-left-color: #198754; }
.req-card.denied, .req-card.call_refused { border-left-color: #6c757d; }
.req-photo { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; background: #e9ecef; }
.countdown { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1.4rem; }
.contact-btn { font-size: 1.1rem; }

/* Resident approval card */
.approve-card .btn { font-size: 1.3rem; padding: .9rem; font-weight: 700; }
.approve-card .req-photo { width: 120px; height: 120px; }
.approve-card.focus { outline: 3px solid var(--sg-amber); }

/* Camera */
.cam-box { position: relative; max-width: 420px; }
.cam-box video, .cam-box img { width: 100%; border-radius: 10px; background: #000; aspect-ratio: 4/3; object-fit: cover; }

.push-banner { position: fixed; left: 0; right: 0; bottom: 0; background: #212529; color: #fff;
  padding: .6rem 1rem; display: flex; gap: .75rem; align-items: center; justify-content: space-between; z-index: 1050; }

.stat { font-size: 1.8rem; font-weight: 700; color: var(--sg-navy); }
.table td, .table th { vertical-align: middle; }

/* Printable gate pass */
@media print {
  .sg-nav, .no-print, .push-banner { display: none !important; }
  body { background: #fff; }
}
.gate-pass { max-width: 380px; border: 2px dashed #333; padding: 1rem; background: #fff; }
