/* Plus Jakarta Sans - Local v12 */
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('font/PlusJakartaSans/plus-jakarta-sans-v12-latin-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('font/PlusJakartaSans/plus-jakarta-sans-v12-latin-500.woff2') format('woff2');
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('font/PlusJakartaSans/plus-jakarta-sans-v12-latin-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('font/PlusJakartaSans/plus-jakarta-sans-v12-latin-700.woff2') format('woff2');
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('font/PlusJakartaSans/plus-jakarta-sans-v12-latin-800.woff2') format('woff2');
}


html,
body {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}

.active-item {
    background-color: #ffffff !important;
}

.inactive-item {
    background-color: #e6e6e6 !important;
    border-bottom: 1px solid rgb(196, 196, 196) !important;
}

/* === UX overrides: dropdowns mais altos para listas longas (zonas, parceiros, etc.) === */
.choices__list--dropdown,
.choices__list[aria-expanded] .choices__list--dropdown {
    max-height: 420px !important;
}
.choices__list--dropdown .choices__list,
.choices__list[aria-expanded] .choices__list {
    max-height: 380px !important;
}

/* === UX: tabelas livewire-tables ============================================= */
/* Última coluna (ações) sticky à direita, sempre visível mesmo com scroll
   horizontal. Targeta especificamente o wrapper do rappasoft/laravel-livewire-tables
   (`.align-middle.min-w-full.overflow-x-auto`) para não vazar pra outras tabelas
   do app (modais de detalhes, etc.). Só aplica em md+ porque mobile pode ter
   layout diferente. */
@media (min-width: 768px) {
    .align-middle.min-w-full.overflow-x-auto > table > thead > tr > th:last-child,
    .align-middle.min-w-full.overflow-x-auto > table > tbody > tr > td:last-child {
        position: sticky;
        right: 0;
        z-index: 2;
    }
    .align-middle.min-w-full.overflow-x-auto > table > thead > tr > th:last-child {
        background-color: rgb(249 250 251); /* bg-gray-50 */
        box-shadow: -6px 0 8px -4px rgba(0, 0, 0, 0.06);
    }
    .align-middle.min-w-full.overflow-x-auto > table > tbody > tr > td:last-child {
        background-color: #ffffff;
        box-shadow: -6px 0 8px -4px rgba(0, 0, 0, 0.06);
    }
    /* Mantém o fundo correto no hover da linha (rappasoft padrão não tem hover,
       mas se algum custom adicionar, o sticky cell deve acompanhar) */
    .align-middle.min-w-full.overflow-x-auto > table > tbody > tr:hover > td:last-child {
        background-color: rgb(249 250 251);
    }
}

/* Scrollbar horizontal mais visível pra deixar claro que rolagem existe. */
.align-middle.min-w-full.overflow-x-auto {
    scrollbar-width: thin;
    scrollbar-color: rgba(107, 114, 128, 0.4) transparent;
}
.align-middle.min-w-full.overflow-x-auto::-webkit-scrollbar {
    height: 10px;
}
.align-middle.min-w-full.overflow-x-auto::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03);
}
.align-middle.min-w-full.overflow-x-auto::-webkit-scrollbar-thumb {
    background-color: rgba(107, 114, 128, 0.4);
    border-radius: 6px;
}
.align-middle.min-w-full.overflow-x-auto::-webkit-scrollbar-thumb:hover {
    background-color: rgba(107, 114, 128, 0.6);
}
