:root { --army: #4a5d3a; --army-dark: #3a4a2d; }
body { background: #f4f5f1; }
.bg-army { background-color: var(--army) !important; }
.btn-army { background: var(--army); border-color: var(--army); color: #fff; }
.btn-army:hover { background: var(--army-dark); border-color: var(--army-dark); color: #fff; }
.btn-outline-army { color: var(--army); border-color: var(--army); }
.btn-outline-army:hover { background: var(--army); color: #fff; }
.text-army { color: var(--army) !important; }
.map-box { width: 100%; border: 1px solid #b9c2ae; border-radius: 6px; z-index: 0; }
.map-full { height: calc(100vh - 56px); border: 0; border-radius: 0; }
.map-form { height: 380px; }
.map-detail { height: 280px; }
.pax-row .form-control { min-width: 0; }
.pax-scroll { max-height: 420px; overflow-y: auto; }

/* installation features */
.feat-label { background: rgba(14,20,14,.82); color: #fff; border: 0; border-radius: 3px; padding: 1px 5px;
              font-size: 11px; font-weight: 600; box-shadow: none; }
.feat-label::before { display: none; }
.feat-zone { background: rgba(60,48,0,.75); color: #ffe07a; font-size: 12px; }
.feat-poi-label { background: rgba(110,20,20,.85); }
.feat-bldg { background: #fff; border: 2px solid #1f2b1a; border-radius: 2px; }
.feat-poi { color: #ff5a4f; font-size: 18px; line-height: 22px; text-align: center; text-shadow: 0 0 3px #000; }
.feat-draft { background: #ffcf33; border: 2px solid #000; border-radius: 50%; }

/* ── mobile ─────────────────────────────────────────────────────────────── */
.map-full { height: calc(100vh - 56px); height: calc(100dvh - 56px); }
.leaflet-touch .leaflet-bar a { width: 36px; height: 36px; line-height: 36px; }   /* bigger zoom buttons */
@media (max-width: 767.98px) {
  main.container { padding-left: 12px; padding-right: 12px; }
  /* iOS zooms the page when focusing inputs smaller than 16px */
  .form-control, .form-select, .form-control-sm, .form-select-sm, textarea { font-size: 16px !important; }
  .btn { min-height: 40px; }
  .btn-sm { min-height: 36px; }
  .map-form { height: 300px; }
  .map-detail { height: 240px; }
  h4 { font-size: 1.25rem; }
  .pax-scroll { max-height: none; }
  /* tables become stacked cards: each cell on its own line with its label */
  table.table-stack thead { display: none; }
  table.table-stack, table.table-stack tbody, table.table-stack tr, table.table-stack td { display: block; width: 100%; }
  table.table-stack tr { border-bottom: 1px solid #dee2e6; padding: .5rem .75rem; }
  table.table-stack td { border: 0; padding: .15rem 0; text-align: left !important; }
  table.table-stack td[data-label]::before { content: attr(data-label); display: inline-block; min-width: 6.5rem;
    font-weight: 600; color: #6c757d; font-size: .85em; }
  .navbar-brand { font-size: 1rem; }
  .navbar-brand .small { display: none; }
}

/* spreadsheet-style user grid */
.user-grid td { padding: 0; }
.user-grid td.row-num, .user-grid td:last-child { padding: 0 .25rem; }
.user-grid input.form-control { border-radius: 0; min-width: 7rem; background: transparent; }
.user-grid input.form-control:focus { box-shadow: inset 0 0 0 2px #4a5d3a; background: #fff; }
.user-grid input.is-invalid { box-shadow: inset 0 0 0 2px #dc3545; }
.user-grid .invalid-feedback { padding: 0 .5rem .25rem; margin: 0; font-size: .75rem; }
.user-grid thead th { font-size: .8rem; white-space: nowrap; }
