/*
 * Minimal layout utilities for forms migrating off Tailwind CDN.
 * Invoice is the reference consumer — keep this list small.
 */

.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none !important; }
.block { display: block; }
.relative { position: relative; }
.absolute { position: absolute; }

.flex-shrink-0 { flex-shrink: 0; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.cursor-pointer { cursor: pointer; }

.grid-cols-1 { grid-template-columns: 1fr; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }

.w-4 { width: 1rem; }
.h-4 { height: 1rem; }
.max-w-3xl { max-width: 48rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.ml-3 { margin-left: 0.75rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }

.rounded { border-radius: var(--hw-radius-sm); }
.font-bold { font-weight: 700; }
.text-sm { font-size: 0.875rem; line-height: 1.45; }
.text-base { font-size: 1rem; line-height: 1.5; }
.text-gray-600,
.text-gray-700 { color: var(--hw-tool-text-soft); }
.text-\[var\(--hw-tool-ink\)\] { color: var(--hw-tool-ink); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .grid-cols-2 { grid-template-columns: 1fr; }
}
