/* Oliinyk Legal — small CSS enhancements on top of Tailwind CDN */

/* Smooth HTMX swaps */
.htmx-swapping { opacity: 0; transition: opacity 120ms ease-out; }
.htmx-settling { opacity: 1; transition: opacity 200ms ease-in; }

/* Subtle scrollbar in dense panels */
.scroll-thin::-webkit-scrollbar { width: 8px; height: 8px; }
.scroll-thin::-webkit-scrollbar-thumb { background: #cdd2d8; border-radius: 4px; }
.scroll-thin::-webkit-scrollbar-thumb:hover { background: #9aa1aa; }

/* Print styles for invoices and generated documents */
@media print {
  body {
    background: white !important;
  }
  header, nav, .no-print, [data-no-print] { display: none !important; }
  main { padding: 0 !important; max-width: none !important; }
  .shadow-card { box-shadow: none !important; }
  a[href]::after { content: ''; }
}

/* Make textarea code-friendly in template editor */
textarea[name="body"] {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  tab-size: 2;
}

/* Clickable rows in tables */
tr[onclick] { cursor: pointer; }

/* Focus ring polish */
:focus-visible {
  outline: none;
}
