/* Small, reusable presentation utilities.
   Keep domain components in their owning stylesheet; this layer replaces one-off inline CSS. */
.is-hidden { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-1 { flex: 1; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.gap-0 { gap: 0; }
.gap-4 { gap: 4px; }
.gap-6 { gap: 6px; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-18 { gap: 18px; }

.overflow-x-auto { max-width: 100%; overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }
.overflow-hidden { overflow: hidden; }
.is-clickable { cursor: pointer; }
.nowrap { white-space: nowrap; }
.object-contain { object-fit: contain; }
.sticky-top { position: sticky; top: 0; z-index: 2; }

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 2px; }

.text-2xs { font-size: 11px; }
.text-xs { font-size: 12px; }
.text-sm { font-size: 13px; }
.text-base { font-size: 14px; }
.text-md { font-size: 14px; }
.text-lg { font-size: 16px; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-mono { font-family: var(--font-mono); }
.leading-loose { line-height: 2; }
.tracking-label { letter-spacing: .5px; }
.tracking-heading { letter-spacing: 3px; }

.text-body { color: var(--text); }
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.text-danger { color: var(--red); }
.text-success { color: var(--green); }
.text-white { color: #fff; }
.text-on-dark { color: rgba(255, 255, 255, .7); }
.text-on-dark-40 { color: rgba(255, 255, 255, .4); }
.text-on-dark-50 { color: rgba(255, 255, 255, .5); }
.text-on-dark-60 { color: rgba(255, 255, 255, .6); }

.m-0 { margin: 0; }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: 4px; }
.mb-6 { margin-bottom: 6px; }
.mb-8 { margin-bottom: 8px; }
.mb-10 { margin-bottom: 10px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mr-4 { margin-right: 4px; }
.mr-8 { margin-right: 8px; }
.mr-auto { margin-right: auto; }
.my-8 { margin-block: 8px; }
.section-margin { margin: 12px 0 6px; }
.mt-1 { margin-top: 1px; }
.mt-2 { margin-top: 2px; }
.mt-4 { margin-top: 4px; }
.mt-6 { margin-top: 6px; }
.mt-8 { margin-top: 8px; }
.mt-10 { margin-top: 10px; }
.mt-12 { margin-top: 12px; }
.p-0 { padding: 0; }
.p-8 { padding: 8px; }
.p-9 { padding: 9px; }
.p-12 { padding: 12px; }
.p-20 { padding: 20px; }
.p-24 { padding: 24px; }
.p-30 { padding: 30px; }
.p-40 { padding: 40px; }
.py-8 { padding-block: 8px; }
.pt-12 { padding-top: 12px; }
.empty-panel-space { padding: 60px 20px; }
.pr-8 { padding-right: 8px; }
.min-h-16 { min-height: 16px; }
.min-h-18 { min-height: 18px; }
.min-w-0 { min-width: 0; }
.min-w-140 { min-width: 140px; }
.min-w-300 { min-width: 300px; }
.w-full { width: 100%; }
.w-40 { width: 40px; }
.w-60 { width: 60px; }
.w-80 { width: 80px; }
.w-90 { width: 90px; }
.w-100 { width: 100px; }
.w-120 { width: 120px; }
.w-130 { width: 130px; }
.w-140 { width: 140px; }
.w-200 { width: 200px; }
.w-220 { width: 220px; }
.w-280 { width: 280px; }
.w-300 { width: 300px; }
.w-55pct { width: 55%; }
.w-92vw { width: 92vw; }
.max-w-full { max-width: 100%; }
.max-w-960 { max-width: 960px; }
.max-h-full { max-height: 100%; }
.max-h-84vh { max-height: 84vh; }
.h-100 { height: 100px; }

.modal-w-380 { width: min(380px, calc(100vw - 32px)); }
.modal-w-420 { width: min(420px, calc(100vw - 32px)); }
.modal-w-500 { width: min(500px, calc(100vw - 32px)); }
.modal-w-560 { width: min(560px, calc(100vw - 32px)); }
.modal-w-580 { width: min(580px, calc(100vw - 32px)); }
.modal-w-620 { width: min(620px, calc(100vw - 32px)); }
.modal-w-680 { width: min(680px, calc(100vw - 32px)); }
.modal-w-700 { width: min(700px, calc(100vw - 32px)); }
.modal-w-720 { width: min(720px, calc(100vw - 32px)); }
.modal-w-760 { width: min(760px, calc(100vw - 32px)); }

.border-0 { border: 0; }
.border-base { border: 1px solid var(--border); }
.border-right { border-right: 1px solid var(--border); }
.border-top { border-top: 1px solid var(--border); }
.radius-0 { border-radius: 0; }
.radius-base { border-radius: var(--radius); }
.shadow-none { box-shadow: none; }
.bg-page { background: var(--page-bg); }
.bg-panel-alt { background: var(--panel-alt); }
.bg-transparent { background: transparent; }
.bg-login { background: rgb(15, 22, 35); }
.bg-print-preview { background: #d0d4d8; }
.checkerboard-bg { background: repeating-conic-gradient(#e0e0e0 0% 25%, #fff 0% 50%) 0 0 / 16px 16px; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-span-2 { grid-column: span 2; }
