/* GioCRM Custom Styles */

/* Form inputs with Tailwind compatibility */
input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
input[type="date"],
input[type="tel"],
textarea,
select {
    @apply block w-full rounded-md border-0 py-1.5 px-3 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-emerald-600 sm:text-sm sm:leading-6;
}

/* HTMX loading indicator */
.htmx-indicator {
    display: none;
}

.htmx-request .htmx-indicator {
    display: inline-block;
}

.htmx-request.htmx-indicator {
    display: inline-block;
}

/* Mobile responsive tables — horizontal scroll instead of clipping */
@media (max-width: 1023px) {
    .overflow-hidden:has(> table) {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Reduce table padding on mobile */
    table th,
    table td {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    /* Stack header actions on small screens */
    header .flex-1 h1 {
        font-size: 0.875rem;
    }
}

/* PDF styles */
@media print {
    body {
        font-size: 12pt;
    }

    .no-print {
        display: none !important;
    }
}

/* Timer animation */
@keyframes pulse-timer {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.timer-active {
    animation: pulse-timer 2s infinite;
}
