/* ManuLink — small additions on top of Tailwind (CDN). Component classes live in views/partials/head.php. */

[x-cloak] { display: none !important; }

/* Avoid a flash of unstyled content while the Tailwind CDN compiles. */
body { opacity: 1; transition: opacity .15s ease; }

/* Single-column grids on phones must not grow to fit wide content (tables, chip rows, long words).
   Zero specificity, so every grid-cols-* utility (incl. responsive ones) still wins. */
:where(.grid) { grid-template-columns: minmax(0, 1fr); }

/* Safety net: nothing should ever scroll the page sideways on small screens. */
html, body { overflow-x: clip; }

::selection { background: #DBEAFE; color: #1E3A8A; }

/* Thin scrollbars inside panels */
.scroll-thin { scrollbar-width: thin; scrollbar-color: #CBD5E1 transparent; }
.scroll-thin::-webkit-scrollbar { width: 6px; height: 6px; }
.scroll-thin::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 999px; }
.scroll-dark { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
.scroll-dark::-webkit-scrollbar { width: 6px; }
.scroll-dark::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 999px; }

@keyframes shimmer { 100% { transform: translateX(100%); } }

/* Toast progress bar */
@keyframes toast-progress { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.toast-progress { transform-origin: left; animation: toast-progress linear forwards; }

/* Hero glow orbs */
.orb { position: absolute; border-radius: 9999px; filter: blur(70px); opacity: .55; pointer-events: none; }

/* Range slider polish */
input[type=range] { accent-color: #2563EB; }

/* Line clamp fallbacks */
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Print: invoices & reports */
@media print {
    .no-print { display: none !important; }
    body { background: #fff !important; }
    .print-area { box-shadow: none !important; border: 0 !important; margin: 0 !important; max-width: none !important; }
    @page { margin: 14mm; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
