/*
 * Classes des trois vues maison du panneau :
 *   resources/views/filament/invoice-line-items.blade.php
 *   resources/views/filament/pages/billing-settings.blade.php
 *   resources/views/filament/pages/qbo-settings.blade.php
 *
 * Filament 3 livrait ces classes Tailwind dans sa feuille de style ; Filament 4
 * ne les livre plus. Les règles ci-dessous reprennent celles de Filament 3.3,
 * avec les couleurs du panneau. Les classes de ces vues que Filament 3 ne
 * définissait pas non plus (text-green-600, bg-amber-50, sm:grid-cols-2,
 * focus:…) restent sans effet, comme avant.
 *
 * Écrit à la main, sans compilation. Enregistré dans AdminPanelProvider.
 */

/* Les deux champs natifs de qbo-settings : reprise de @tailwindcss/forms,
   que Filament 3 appliquait à tout select et input texte. :where() garde la
   priorité la plus basse, pour que les classes ci-dessous l'emportent. */
:where(select.fi-select-input.border-gray-300, input.fi-input.border-gray-300) {
    appearance: none;
    background-color: #fff;
    border-width: 1px;
    border-style: solid;
    border-radius: 0;
    padding: .5rem .75rem;
    font-size: 1rem;
    line-height: 1.5rem;
}

:where(select.fi-select-input.border-gray-300) {
    padding-right: 2.5rem;
}

.mt-1 { margin-top: .25rem; }
.mt-3 { margin-top: .75rem; }
.mt-6 { margin-top: 1.5rem; }
.block { display: block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.w-full { width: 100%; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.gap-1 { gap: .25rem; }
.gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; }
.gap-x-6 { column-gap: 1.5rem; }
.gap-y-1 { row-gap: .25rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; margin-bottom: 0; }
.rounded-lg { border-radius: .5rem; }
.border { border-width: 1px; }
.border-b { border-bottom-width: 1px; }
/* Filament 3 donnait à toute bordure le gris 200 par défaut. */
.border, .border-b { border-style: solid; border-color: var(--gray-200); }
.border-gray-100 { border-color: var(--gray-100); }
.border-gray-200 { border-color: var(--gray-200); }
.border-gray-300 { border-color: var(--gray-300); }
.bg-gray-50 { background-color: var(--gray-50); }
.p-4 { padding: 1rem; }
.py-1 { padding-top: .25rem; padding-bottom: .25rem; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.align-top { vertical-align: top; }
.text-sm { font-size: .875rem; line-height: 1.25rem; }
.text-xs { font-size: .75rem; line-height: 1rem; }
.font-medium { font-weight: 500; }
.text-danger-600 { color: var(--danger-600); }
.text-gray-400 { color: var(--gray-400); }
.text-gray-500 { color: var(--gray-500); }
.text-gray-600 { color: var(--gray-600); }
.text-gray-950 { color: var(--gray-950); }
.text-primary-600 { color: var(--primary-600); }
.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / .05); }
.transition {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
    transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    transition-duration: .15s;
}
.duration-75 { transition-duration: 75ms; }

/* Focus des champs natifs (@tailwindcss/forms) : après border-gray-300 et
   shadow-sm pour l'emporter sur eux, avant les classes dark: comme sous Filament 3. */
:where(select.fi-select-input.border-gray-300, input.fi-input.border-gray-300):focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    border-color: #2563eb;
    box-shadow: 0 0 0 1px #2563eb, 0 1px 2px 0 rgb(0 0 0 / .05);
}

.dark\:border-gray-600:is(.dark *) { border-color: var(--gray-600); }
.dark\:border-gray-700:is(.dark *) { border-color: var(--gray-700); }
.dark\:bg-gray-700:is(.dark *) { background-color: var(--gray-700); }
.dark\:bg-gray-800:is(.dark *) { background-color: var(--gray-800); }
.dark\:text-white:is(.dark *) { color: #fff; }

@media (min-width: 640px) {
    .sm\:text-sm { font-size: .875rem; line-height: 1.25rem; }
}
