/* cnpr-utils.css — utility classes used by Calculadora Notarial (replaces Tailwind Play CDN) */

/* ── Layout ────────────────────────────────────────────────────────────────── */
.max-w-5xl   { max-width: 64rem; }
.mx-auto     { margin-left: auto; margin-right: auto; }
.flex        { display: flex; }
.flex-wrap   { flex-wrap: wrap; }
.flex-col    { flex-direction: column; }
.flex-1      { flex: 1 1 0%; min-width: 0; }
.items-center   { align-items: center; }
.items-end      { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.gap-1  { gap: 0.25rem; }
.gap-2  { gap: 0.5rem; }
.gap-3  { gap: 0.75rem; }
.gap-4  { gap: 1rem; }
.grid   { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0,1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (min-width: 640px)  { .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) { .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0,1fr)); } }

/* ── Sizing ────────────────────────────────────────────────────────────────── */
.w-full  { width: 100%; }
.w-36    { width: 9rem; }
.w-32    { width: 8rem; }
.w-4     { width: 1rem; }
.w-3     { width: 0.75rem; }
.w-1\/3  { width: 33.3333%; }
.h-4     { height: 1rem; }
.h-3     { height: 0.75rem; }
.overflow-hidden  { overflow: hidden; }
.overflow-x-auto  { overflow-x: auto; }

/* ── Padding ───────────────────────────────────────────────────────────────── */
.p-3     { padding: 0.75rem; }
.px-1    { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-3    { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4    { padding-left: 1rem;    padding-right: 1rem; }
.px-5    { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6    { padding-left: 1.5rem;  padding-right: 1.5rem; }
.py-2    { padding-top: 0.5rem;   padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3    { padding-top: 0.75rem;  padding-bottom: 0.75rem; }
.py-4    { padding-top: 1rem;     padding-bottom: 1rem; }
.pb-2    { padding-bottom: 0.5rem; }
.pb-7    { padding-bottom: 1.75rem; }
.pt-3    { padding-top: 0.75rem; }

/* ── Margin ────────────────────────────────────────────────────────────────── */
.mb-1    { margin-bottom: 0.25rem; }
.mb-2    { margin-bottom: 0.5rem; }
.mb-3    { margin-bottom: 0.75rem; }
.mb-4    { margin-bottom: 1rem; }
.mb-5    { margin-bottom: 1.25rem; }
.mb-6    { margin-bottom: 1.5rem; }
.mb-8    { margin-bottom: 2rem; }
.mb-10   { margin-bottom: 2.5rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1    { margin-top: 0.25rem; }
.mt-2    { margin-top: 0.5rem; }
.mt-3    { margin-top: 0.75rem; }
.mt-4    { margin-top: 1rem; }
.mt-6    { margin-top: 1.5rem; }

/* ── Typography ────────────────────────────────────────────────────────────── */
.text-xs    { font-size: 0.75rem;  line-height: 1rem; }
.text-sm    { font-size: 0.875rem; line-height: 1.25rem; }
.text-base  { font-size: 1rem;     line-height: 1.5rem; }
.text-xl    { font-size: 1.25rem;  line-height: 1.75rem; }
.text-3xl   { font-size: 1.875rem; line-height: 2.25rem; }
.font-bold     { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-mono  { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; }
.uppercase      { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.05em; }
.italic         { font-style: italic; }
.text-left      { text-align: left; }
.text-right     { text-align: right; }
.text-center    { text-align: center; }
.leading-none   { line-height: 1; }
.whitespace-nowrap { white-space: nowrap; }
.select-none    { user-select: none; -webkit-user-select: none; }

/* ── Colors — text ─────────────────────────────────────────────────────────── */
.text-white     { color: #fff; }
.text-gray-100  { color: #f3f4f6; }
.text-gray-200  { color: #e5e7eb; }
.text-gray-300  { color: #d1d5db; }
.text-gray-400  { color: #9ca3af; }
.text-gray-500  { color: #6b7280; }
.text-gray-600  { color: #4b5563; }
.text-green-400 { color: #4ade80; }
.text-blue-400  { color: #60a5fa; }
.text-yellow-400 { color: #facc15; }
.text-red-400   { color: #f87171; }

/* ── Colors — background ───────────────────────────────────────────────────── */
.bg-gray-900  { background-color: #111827; }
.bg-gray-800  { background-color: #1f2937; }
.bg-gray-700  { background-color: #374151; }
.bg-gray-600  { background-color: #4b5563; }
.bg-green-700 { background-color: #15803d; }
.bg-green-900 { background-color: #14532d; }
.bg-blue-700  { background-color: #1d4ed8; }
.bg-blue-600  { background-color: #2563eb; }
.bg-yellow-700 { background-color: #a16207; }
.bg-gray-800\/50  { background-color: rgba(31,41,55,0.50); }
.bg-gray-800\/40  { background-color: rgba(31,41,55,0.40); }
.bg-green-900\/30 { background-color: rgba(20,83,45,0.30); }

/* ── Hover — background ────────────────────────────────────────────────────── */
.hover\:bg-gray-500:hover  { background-color: #6b7280; }
.hover\:bg-gray-600:hover  { background-color: #4b5563; }
.hover\:bg-green-600:hover { background-color: #16a34a; }
.hover\:bg-green-500:hover { background-color: #22c55e; }
.hover\:bg-blue-500:hover  { background-color: #3b82f6; }
.hover\:text-red-400:hover { color: #f87171; }

/* ── Border ────────────────────────────────────────────────────────────────── */
.border    { border-width: 1px; border-style: solid; }
.border-b  { border-bottom-width: 1px; border-bottom-style: solid; }
.border-t  { border-top-width: 1px; border-top-style: solid; }
.border-gray-600 { border-color: #4b5563; }
.border-gray-700 { border-color: #374151; }
.border-gray-800 { border-color: #1f2937; }
.border-collapse { border-collapse: collapse; }

/* ── Border radius ─────────────────────────────────────────────────────────── */
.rounded    { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }

/* ── Display ───────────────────────────────────────────────────────────────── */
.hidden        { display: none !important; }
.block         { display: block; }
.inline-block  { display: inline-block; }

/* ── Misc ──────────────────────────────────────────────────────────────────── */
.cursor-pointer { cursor: pointer; }
.transition-colors { transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out; }
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:border-green-500:focus { border-color: #22c55e; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.divide-gray-800 > * + * { border-top: 1px solid #1f2937; }
