/* Small hand-written additions Tailwind's CDN build doesn't cover. */

html, body {
  height: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  padding-bottom: env(safe-area-inset-bottom);
}

/* Bigger, easier-to-tap controls everywhere in the app. */
button, input, select, textarea {
  font-size: 16px; /* stops iOS Safari auto-zooming into inputs */
}

.baf-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 1;
  padding: 6px 2px 8px;
  font-size: 11px;
  color: #78716c;
}

.baf-nav-item.active {
  color: #166534;
  font-weight: 600;
}

.baf-nav-item .icon {
  font-size: 20px;
  line-height: 1;
}

.baf-card {
  background: white;
  border: 1px solid #e7e5e4;
  border-radius: 14px;
  padding: 14px;
}

.baf-input {
  width: 100%;
  border: 1px solid #d6d3d1;
  border-radius: 10px;
  padding: 10px 12px;
  background: white;
}

.baf-input:focus {
  outline: 2px solid #166534;
  outline-offset: 0;
  border-color: #166534;
}

.baf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 600;
  text-align: center;
}

.baf-btn-primary {
  background: #166534;
  color: white;
}
.baf-btn-primary:active {
  background: #14532d;
}

.baf-btn-secondary {
  background: white;
  color: #166534;
  border: 1px solid #166534;
}

.baf-btn-danger {
  background: #fee2e2;
  color: #991b1b;
}

.baf-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

/* Printing an invoice (browser "Print" -> Save as PDF also uses this). */
@media print {
  body * { visibility: hidden; }
  #print-area, #print-area * { visibility: visible; }
  #print-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }
}
