        @import url('https://fonts.googleapis.com/css2?family=Inter:wght=300;400;500;600;700&display=swap');
        :root {
            --jgest-topbar-right-gap: 1cm;
            --jgest-font-size-2xs: 11px;
            --jgest-font-size-xs: 12.5px;
            --jgest-font-size-sm: 14px;
            --jgest-font-size-md: 15px;
            --jgest-font-size-lg: 16px;
            --jgest-font-size-xl: 17px;
            --jgest-font-size-2xl: 19px;
            --jgest-font-size-3xl: 21px;
            --jgest-font-size-page-title: 23px;
            --jgest-table-font-size: var(--jgest-font-size-sm);
            --jgest-line-height-tight: 1.25;
            --jgest-line-height-normal: 1.45;
            --jgest-line-height-relaxed: 1.65;
            --jgest-scrollbar-size: calc(12px + 2mm);
            --jgest-scrollbar-thumb: color-mix(in srgb, #64748b 42%, transparent);
            --jgest-scrollbar-thumb-hover: color-mix(in srgb, #475569 62%, transparent);
            --jgest-scrollbar-track: transparent;
        }
        body {
            font-family: 'Inter', sans-serif;
            font-size: var(--jgest-font-size-md);
            line-height: var(--jgest-line-height-normal);
        }
        body.theme-dark {
            --jgest-scrollbar-thumb: color-mix(in srgb, #cbd5e1 34%, transparent);
            --jgest-scrollbar-thumb-hover: color-mix(in srgb, #e2e8f0 56%, transparent);
            --jgest-scrollbar-track: transparent;
        }
        .text-\[10px\] { font-size: var(--jgest-font-size-2xs) !important; }
        .text-\[11px\] { font-size: var(--jgest-font-size-2xs) !important; }
        .text-\[12px\] { font-size: var(--jgest-font-size-xs) !important; }
        .text-\[13px\] { font-size: var(--jgest-font-size-sm) !important; }
        .text-\[14px\] { font-size: var(--jgest-font-size-md) !important; }
        .text-\[15px\] { font-size: var(--jgest-font-size-lg) !important; }
        .text-xs { font-size: var(--jgest-font-size-xs) !important; }
        .text-sm { font-size: var(--jgest-font-size-sm) !important; }
        .text-base { font-size: var(--jgest-font-size-md) !important; }
        .text-lg { font-size: var(--jgest-font-size-xl) !important; }
        .text-xl { font-size: var(--jgest-font-size-2xl) !important; }
        .text-2xl { font-size: var(--jgest-font-size-3xl) !important; }
        .text-3xl { font-size: var(--jgest-font-size-page-title) !important; }
        table {
            font-size: var(--jgest-table-font-size);
        }
        table :where(th, td) {
            font-size: var(--jgest-table-font-size) !important;
        }
        table :where(th, td) :where(a, button, div, p, span) {
            font-size: inherit !important;
        }
        * {
            scrollbar-width: auto;
            scrollbar-color: var(--jgest-scrollbar-thumb) var(--jgest-scrollbar-track);
        }
        *::-webkit-scrollbar {
            width: var(--jgest-scrollbar-size);
            height: var(--jgest-scrollbar-size);
        }
        *::-webkit-scrollbar-track {
            background: var(--jgest-scrollbar-track);
        }
        *::-webkit-scrollbar-thumb {
            min-height: 40px;
            border: 2px solid transparent;
            border-radius: 999px;
            background-color: var(--jgest-scrollbar-thumb);
            background-clip: padding-box;
        }
        *::-webkit-scrollbar-thumb:hover {
            background-color: var(--jgest-scrollbar-thumb-hover);
        }
        *::-webkit-scrollbar-corner {
            background: transparent;
        }
        *::-webkit-scrollbar-button {
            display: none;
            width: 0;
            height: 0;
        }
        /* Limitar texto a 2 linhas */
        .line-clamp-2 {
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .djen-resumo-celula {
            white-space: normal;
            vertical-align: top !important;
        }
        .djen-resumo-texto {
            display: -webkit-box;
            -webkit-line-clamp: 4;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: normal;
            line-height: 1.35;
            max-height: 5.4em;
            text-align: justify;
        }
        .djen-partes-texto {
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: normal;
        }
        .djen-conteudo-paragrafo {
            margin: 0 0 12px 0;
            text-align: justify;
            text-indent: 2cm;
            white-space: normal;
            line-height: 1.65;
        }
        .djen-conteudo-paragrafo:last-child {
            margin-bottom: 0;
        }
        .jgest-tour-overlay {
            position: fixed;
            inset: 0;
            z-index: 10000;
            width: 100vw;
            height: 100vh;
            pointer-events: auto;
        }
        .jgest-tour-overlay-fill {
            fill: rgba(2, 6, 23, 0.56);
        }
        .jgest-tour-highlight-target {
            border-radius: 10px;
            filter: brightness(1.22) saturate(1.08);
            box-shadow:
                0 0 0 4px rgba(245, 158, 11, 0.95),
                0 12px 30px rgba(245, 158, 11, 0.32);
        }
        .jgest-tour-box {
            position: fixed;
            z-index: 10003;
            max-width: calc(100vw - 32px);
            border: 1px solid #e2e8f0;
            border-radius: 10px;
            background: #ffffff;
            color: #0f172a;
            padding: 16px;
            box-shadow: 0 22px 54px rgba(15, 23, 42, 0.32);
        }
        .theme-dark .jgest-tour-box {
            border-color: #334155;
            background: #0f172a;
            color: #f8fafc;
        }
        .jgest-tour-step {
            margin: 0 0 6px;
            color: #b45309;
            font-size: var(--jgest-font-size-xs);
            font-weight: 700;
            text-transform: uppercase;
        }
        .theme-dark .jgest-tour-step {
            color: #fbbf24;
        }
        .jgest-tour-title {
            margin: 0;
            color: inherit;
            font-size: var(--jgest-font-size-xl);
            font-weight: 800;
            line-height: 1.25;
        }
        .jgest-tour-text {
            margin: 8px 0 0;
            color: #475569;
            font-size: var(--jgest-font-size-sm);
            line-height: 1.5;
        }
        .theme-dark .jgest-tour-text {
            color: #cbd5e1;
        }
        .jgest-tour-actions {
            display: flex;
            flex-wrap: wrap;
            justify-content: flex-end;
            gap: 8px;
            margin-top: 14px;
        }
        .jgest-tour-button {
            min-height: 36px;
            border-radius: 8px;
            padding: 8px 12px;
            font-size: var(--jgest-font-size-sm);
            font-weight: 700;
            transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
        }
        .jgest-tour-button-primary {
            border: 1px solid #d97706;
            background: #f59e0b;
            color: #111827;
        }
        .jgest-tour-button-primary:hover {
            background: #fbbf24;
        }
        .jgest-tour-button-secondary {
            border: 1px solid #cbd5e1;
            background: #ffffff;
            color: #334155;
        }
        .jgest-tour-button-secondary:hover {
            background: #f1f5f9;
            color: #0f172a;
        }
        .theme-dark .jgest-tour-button-secondary {
            border-color: #475569;
            background: #1e293b;
            color: #e2e8f0;
        }
        .theme-dark .jgest-tour-button-secondary:hover {
            background: #334155;
            color: #ffffff;
        }
        .jgest-table-header,
        .jgest-content-header,
        div.bg-slate-900.text-white.flex.justify-between,
        div.bg-emerald-600.text-white.flex.justify-between {
            background-color: #0F172A !important;
            color: #F1F5F9 !important;
        }
        .jgest-content-header h2,
        .jgest-content-header h3 {
            color: #F8FAFC !important;
        }
        .jgest-content-header p {
            color: #CBD5E1 !important;
        }
        #sidebar-nav.sidebar-collapsed {
            width: 4.75rem;
        }
        #sidebar-nav.sidebar-collapsed .nav-label,
        #sidebar-nav.sidebar-collapsed .nav-badge,
        #sidebar-nav.sidebar-collapsed .sidebar-footer-label {
            display: none;
        }
        #sidebar-nav.sidebar-collapsed .sidebar-account-panel {
            display: none;
        }
        #sidebar-nav.sidebar-collapsed .nav-item {
            justify-content: center;
        }
        #sidebar-nav.sidebar-mobile-open {
            transform: translateX(0) !important;
        }
        @media (max-width: 1023px) {
            #sidebar-nav.sidebar-collapsed {
                width: 100%;
            }
        }
        @media (min-width: 1024px) {
            #dashboard-content {
                margin-left: 16rem;
                transition: margin-left 200ms ease;
            }
            #sidebar-nav.sidebar-collapsed + #dashboard-content {
                margin-left: 4.75rem;
            }
            #sidebar-nav.sidebar-mobile-open {
                transform: none !important;
            }
        }
        #dashboard-content.agenda-mode {
            overflow: hidden;
            padding-top: 0.75rem;
            padding-bottom: 0.75rem;
            padding-left: 0.75rem;
            padding-right: 0.75rem;
        }
        #dashboard-content.agenda-mode #conteudo-agenda {
            height: calc(100vh - 64px - 1.5rem);
            min-height: 0;
            overflow: hidden;
        }
        .agenda-toolbar {
            display: flex;
            flex: 1 1 auto;
            flex-wrap: nowrap;
            align-items: center;
            gap: 0.5rem;
            min-width: 0;
        }
        .agenda-toolbar-nav {
            display: flex;
            flex: 0 0 auto;
            flex-wrap: nowrap;
            align-items: center;
            justify-content: flex-start;
            gap: 0.5rem;
            margin-left: 0;
            min-width: 0;
        }
        .agenda-toolbar-actions {
            margin-left: auto;
            display: flex;
            min-width: 0;
            flex: 0 0 auto;
            flex-wrap: nowrap;
            align-items: center;
            justify-content: flex-end;
            gap: 0.5rem;
        }
        .agenda-search-control {
            width: 38px;
            height: 38px;
        }
        .agenda-search-control.is-open {
            width: 38px;
        }
        .agenda-search-field {
            opacity: 0;
            pointer-events: none;
        }
        .agenda-search-control.is-open #filter-busca-agenda,
        .agenda-search-control.is-open .agenda-search-close {
            opacity: 1;
            pointer-events: auto;
        }
        #filter-busca-agenda {
            position: absolute;
            right: 0;
            top: calc(100% + 0.5rem);
            z-index: 60;
            width: min(320px, calc(100vw - 2rem));
            box-shadow: 0 12px 30px rgba(15, 23, 42, 0.28);
        }
        .agenda-search-close {
            position: absolute;
            right: 0;
            top: calc(100% + 0.5rem);
            z-index: 61;
            height: 38px;
        }
        .agenda-shell {
            height: 100%;
            min-height: 0;
            display: flex;
            flex-direction: column;
        }
        .agenda-calendar-wrap {
            flex: 1;
            min-height: 0;
            overflow-x: auto;
            overflow-y: hidden;
        }
        .agenda-calendar-inner {
            height: 100%;
            min-height: 0;
            display: flex;
            flex-direction: column;
        }
        #agenda-calendario {
            flex: 1;
            min-height: 0;
        }
        #agenda-calendario.agenda-mes {
            grid-auto-rows: minmax(0, 1fr);
        }
        #agenda-calendario.agenda-semana {
            grid-auto-rows: minmax(0, 1fr);
        }
        .agenda-dia {
            min-height: 0 !important;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }
        .agenda-eventos-dia {
            flex: 1;
            min-height: 0;
            overflow-y: auto;
        }
        #agenda-calendario.agenda-mes .agenda-eventos-dia {
            overflow: hidden;
        }
        .agenda-evento-linha {
            display: block;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .agenda-evento-primeiro {
            min-width: 0;
            flex: 1;
        }
        th[data-processo-col],
        th[data-prazo-col] {
            background-color: #0f172a;
            color: #f1f5f9;
        }
        th[data-processo-col]:hover,
        th[data-prazo-col]:hover {
            background-color: #1e293b !important;
            color: #f8fafc;
        }
        table td {
            vertical-align: middle !important;
        }
        table td:not(:last-child) {
            text-align: left;
        }
        th.jgest-col-center,
        td.jgest-col-center,
        table td.jgest-col-center:not(:last-child) {
            text-align: center !important;
            vertical-align: middle !important;
        }
        .jgest-cell-fill-center {
            display: flex !important;
            width: 100%;
            max-width: 100%;
            align-items: center;
            justify-content: center;
            text-align: center !important;
        }
        .jgest-col-actions > div,
        .jgest-col-actions > span {
            margin-left: auto !important;
            margin-right: auto !important;
            justify-content: center;
        }
        .jgest-col-nowrap {
            white-space: nowrap !important;
        }
        .topbar-inner {
            box-sizing: border-box;
            width: 100%;
            max-width: 100%;
            padding-right: var(--jgest-topbar-right-gap) !important;
        }
        #topbar-default-pills {
            justify-content: flex-end;
            padding-right: 0 !important;
        }
        .jgest-topbar-cadastro-rapido {
            max-width: 100%;
            margin-left: auto;
            background-color: transparent !important;
            border-color: rgba(245, 158, 11, 0.72) !important;
            color: #F8FAFC !important;
            box-shadow: none !important;
        }
        .jgest-topbar-cadastro-rapido:hover {
            background-color: rgba(255, 255, 255, 0.08) !important;
            border-color: rgba(251, 191, 36, 0.95) !important;
            color: #FEF3C7 !important;
        }
        .jgest-topbar-cadastro-rapido > i {
            color: #FBBF24 !important;
        }
        .jgest-topbar-cadastro-rapido:focus-visible {
            outline: 2px solid #F59E0B;
            outline-offset: 2px;
        }
        @media (max-width: 640px) {
            :root {
                --jgest-topbar-right-gap: min(1cm, 16px);
            }

            .jgest-topbar-cadastro-rapido {
                max-width: 100%;
                min-width: 0;
                flex-shrink: 1;
                text-align: center;
            }

            .jgest-topbar-cadastro-rapido span {
                min-width: 0;
                overflow-wrap: anywhere;
                line-height: 1.15;
            }
        }
        body.theme-dark {
            background: #131314;
            color: #F8FAFC;
        }
        body.theme-dark .jgest-table-header,
        body.theme-dark .jgest-content-header,
        body.theme-dark div.bg-slate-900.text-white.flex.justify-between,
        body.theme-dark div.bg-emerald-600.text-white.flex.justify-between,
        body.theme-dark th[data-processo-col],
        body.theme-dark th[data-prazo-col] {
            background-color: #1B2430 !important;
            color: #F1F5F9 !important;
        }
        body.theme-dark .bg-slate-50,
        body.theme-dark .bg-slate-50\/50,
        body.theme-dark .bg-slate-50\/80,
        body.theme-dark .bg-white,
        body.theme-dark .bg-white\/95 {
            background-color: #1B1B1D !important;
        }
        body.theme-dark main,
        body.theme-dark main > div {
            background-color: #131314 !important;
        }
        body.theme-dark .bg-slate-100,
        body.theme-dark .bg-slate-100\/80 {
            background-color: #242426 !important;
        }
        body.theme-dark .border-slate-100,
        body.theme-dark .border-slate-200,
        body.theme-dark .border-slate-200\/70,
        body.theme-dark .border-slate-300 {
            border-color: #343438 !important;
        }
        body.theme-dark .divide-slate-100 > :not([hidden]) ~ :not([hidden]),
        body.theme-dark .divide-slate-200 > :not([hidden]) ~ :not([hidden]) {
            border-color: #343438 !important;
        }
        body.theme-dark .text-slate-900,
        body.theme-dark .text-slate-800,
        body.theme-dark .text-slate-700 {
            color: #F8FAFC !important;
        }
        body.theme-dark .text-slate-600,
        body.theme-dark .text-slate-500,
        body.theme-dark .text-slate-400 {
            color: #CBD5E1 !important;
        }
        body.theme-dark .bg-amber-50,
        body.theme-dark .bg-amber-50\/70,
        body.theme-dark .bg-amber-100 {
            background-color: #2F2414 !important;
        }
        body.theme-dark .bg-amber-200 {
            background-color: #3A2B16 !important;
        }
        body.theme-dark .border-amber-100,
        body.theme-dark .border-amber-200,
        body.theme-dark .border-amber-300 {
            border-color: #6B4E16 !important;
        }
        body.theme-dark .text-amber-700,
        body.theme-dark .text-amber-800,
        body.theme-dark .text-amber-900 {
            color: #FCD34D !important;
        }
        body.theme-dark .text-amber-800\/80 {
            color: rgba(252, 211, 77, 0.82) !important;
        }
        .jgest-prazo-badge-atencao,
        body.theme-dark .jgest-prazo-badge-atencao {
            background-color: #FEF3C7 !important;
            border-color: #B45309 !important;
            color: #92400E !important;
        }
        body.theme-dark .jgest-cadastro-rapido-trigger.text-slate-900,
        body.theme-dark .jgest-cadastro-rapido-trigger .text-slate-900 {
            color: #0F172A !important;
        }
        body.theme-dark .jgest-cadastro-rapido-trigger.text-slate-950 {
            color: #020617 !important;
        }
        body.theme-dark .jgest-cadastro-rapido-trigger .text-slate-600 {
            color: #475569 !important;
        }
        body.theme-dark .jgest-cadastro-rapido-trigger.bg-amber-500 {
            background-color: #242426 !important;
            color: #F8FAFC !important;
            box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.72), 0 1px 2px rgba(0, 0, 0, 0.24) !important;
        }
        body.theme-dark .jgest-cadastro-rapido-trigger.bg-amber-500:hover {
            background-color: #303034 !important;
        }
        body.theme-dark .jgest-cadastro-rapido-trigger.bg-amber-500 > i {
            color: #F59E0B !important;
        }
        body.theme-dark .jgest-cadastro-rapido-trigger.bg-amber-500:focus-visible {
            outline: 2px solid #F59E0B;
            outline-offset: 2px;
        }
        body.theme-dark input:not([type="checkbox"]):not([type="color"]),
        body.theme-dark textarea,
        body.theme-dark select {
            border-color: #44444A !important;
            background-color: #242426 !important;
            color: #F8FAFC !important;
        }
        body.theme-dark input::placeholder,
        body.theme-dark textarea::placeholder {
            color: #9CA3AF !important;
        }
        body.theme-dark table tbody tr:hover {
            background-color: #242426 !important;
        }
        .jgest-process-row {
            background-color: #FFFFFF;
        }
        .jgest-process-row:hover,
        .jgest-process-row:hover .jgest-process-row-sticky {
            background-color: #F8FAFC;
        }
        .jgest-process-row.is-selected,
        .jgest-process-row.is-selected .jgest-process-row-sticky {
            background-color: #FFFFFF;
        }
        .jgest-process-row.has-stopped-alert,
        .jgest-process-row.has-stopped-alert .jgest-process-row-sticky {
            background-color: #FFFFFF;
        }
        .jgest-process-row.has-extrajudicial-alert,
        .jgest-process-row.has-extrajudicial-alert .jgest-process-row-sticky {
            background-color: #FFFFFF;
        }
        .jgest-process-row.is-selected {
            box-shadow: inset 3px 0 0 #F59E0B;
        }
        .jgest-process-row.has-stopped-alert,
        .jgest-process-row.has-extrajudicial-alert {
            box-shadow: inset 3px 0 0 rgba(249, 115, 22, 0.7);
        }
        .jgest-process-row-sticky {
            background-color: inherit;
        }
        body.theme-dark .jgest-process-row,
        body.theme-dark .jgest-process-row-sticky {
            background-color: #1B1B1D;
        }
        body.theme-dark .jgest-process-row:hover,
        body.theme-dark .jgest-process-row:hover .jgest-process-row-sticky {
            background-color: #242426 !important;
        }
        body.theme-dark .jgest-process-row.is-selected,
        body.theme-dark .jgest-process-row.is-selected .jgest-process-row-sticky {
            background-color: #1B1B1D !important;
        }
        body.theme-dark .jgest-process-row.has-stopped-alert,
        body.theme-dark .jgest-process-row.has-stopped-alert .jgest-process-row-sticky,
        body.theme-dark .jgest-process-row.has-extrajudicial-alert,
        body.theme-dark .jgest-process-row.has-extrajudicial-alert .jgest-process-row-sticky {
            background-color: #1B1B1D !important;
        }
        body.theme-dark .jgest-process-row.is-selected {
            box-shadow: inset 3px 0 0 #F59E0B;
        }
        body.theme-dark .jgest-process-row.has-stopped-alert,
        body.theme-dark .jgest-process-row.has-extrajudicial-alert {
            box-shadow: inset 3px 0 0 rgba(249, 115, 22, 0.65);
        }
        body.theme-dark #agenda-calendario {
            background-color: #1B1B1D !important;
        }
        body.theme-dark .agenda-dia {
            background-color: #1B1B1D !important;
            border-color: #343438 !important;
        }
        body.theme-dark .shadow-sm,
        body.theme-dark .shadow-md,
        body.theme-dark .shadow-xl,
        body.theme-dark .shadow-2xl {
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22) !important;
        }
        body.theme-dark header .text-slate-100,
        body.theme-dark #sidebar-nav .text-slate-100 {
            color: #F1F5F9 !important;
        }
        body.theme-dark header .text-slate-200,
        body.theme-dark #sidebar-nav .text-slate-200 {
            color: #E2E8F0 !important;
        }
        body.theme-dark header .text-slate-300,
        body.theme-dark #sidebar-nav .text-slate-300 {
            color: #CBD5E1 !important;
        }
        body.theme-dark header .text-slate-400,
        body.theme-dark #sidebar-nav .text-slate-400 {
            color: #94A3B8 !important;
        }
        body.theme-dark header .text-slate-950,
        body.theme-dark #sidebar-nav .text-slate-950 {
            color: #020617 !important;
        }
        .jgest-filter-chevron {
            position: absolute;
            inset-block: 0;
            right: 0.75rem;
            display: flex;
            align-items: center;
            color: #94A3B8;
            pointer-events: none;
        }
        .jgest-clear-before-chevron {
            right: 1.75rem !important;
            padding-left: 0.5rem !important;
            padding-right: 0.5rem !important;
        }
        .jgest-filter-control {
            min-height: 42px;
            width: 100%;
            border-radius: 0.5rem;
            border: 1px solid #CBD5E1;
            background-color: #FFFFFF;
            color: #0F172A;
            font-size: var(--jgest-font-size-sm);
            transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
        }
        .jgest-filter-control::placeholder {
            color: #94A3B8;
        }
        .jgest-filter-control:hover {
            border-color: #94A3B8;
        }
        .jgest-filter-control:focus,
        .jgest-filter-control:focus-visible {
            outline: none;
            border-color: #F59E0B;
            box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.36);
        }
        .jgest-filter-dropdown-menu {
            z-index: 80;
            margin-top: 0.5rem;
            max-height: 20rem;
            overflow: auto;
            border-radius: 0.5rem;
            border: 1px solid #E2E8F0;
            background-color: #FFFFFF;
            padding: 0.5rem;
            box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.1);
        }
        .jgest-filter-dropdown-item,
        .jgest-filter-dropdown-group,
        .jgest-tribunal-filter-option,
        .jgest-tribunal-filter-group {
            border-radius: 0.375rem;
            color: #334155;
            font-size: var(--jgest-font-size-sm);
            transition: background-color 0.15s ease, color 0.15s ease;
        }
        .jgest-filter-dropdown-item:hover,
        .jgest-filter-dropdown-item:focus,
        .jgest-filter-dropdown-item.is-keyboard-active,
        .jgest-filter-dropdown-group:hover,
        .jgest-filter-dropdown-group:focus,
        .jgest-filter-dropdown-group.is-keyboard-active,
        .jgest-tribunal-filter-option:hover,
        .jgest-tribunal-filter-option:focus,
        .jgest-tribunal-filter-option.is-keyboard-active,
        .jgest-tribunal-filter-group:hover,
        .jgest-tribunal-filter-group:focus,
        .jgest-tribunal-filter-group.is-keyboard-active {
            background-color: #FEF3C7;
            color: #78350F;
            box-shadow: inset 0 0 0 1px #FCD34D;
        }
        .jgest-filter-dropdown-item.is-selected,
        .jgest-tribunal-filter-option.is-selected {
            background-color: #FDE68A;
            color: #78350F;
        }
        .jgest-filter-dropdown-item.is-selected:hover,
        .jgest-filter-dropdown-item.is-selected:focus,
        .jgest-tribunal-filter-option.is-selected:hover,
        .jgest-tribunal-filter-option.is-selected:focus {
            background-color: #FCD34D;
            color: #78350F;
        }
        .jgest-filter-dropdown-count {
            color: #94A3B8;
        }
        .jgest-filter-dropdown-group:hover .jgest-filter-dropdown-count,
        .jgest-filter-dropdown-group:focus .jgest-filter-dropdown-count,
        .jgest-tribunal-filter-group:hover .jgest-tribunal-filter-count,
        .jgest-tribunal-filter-group:focus .jgest-tribunal-filter-count {
            color: #92400E;
        }
        body.theme-dark .jgest-filter-control {
            border-color: #44444A !important;
            background-color: #242426 !important;
            color: #F8FAFC !important;
        }
        body.theme-dark .jgest-filter-control::placeholder {
            color: #9CA3AF !important;
        }
        body.theme-dark .jgest-filter-control:hover {
            border-color: #6B7280 !important;
        }
        body.theme-dark .jgest-filter-control:focus,
        body.theme-dark .jgest-filter-control:focus-visible {
            border-color: #F59E0B !important;
            box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.45) !important;
        }
        .jgest-process-type-filter {
            background: #181F2A;
            border: 1px solid #3F3F46;
            box-shadow: none;
        }
        .jgest-process-type-button {
            color: #CBD5E1;
            background: #1B2430;
            border: 1px solid #3F3F46;
            box-shadow: none;
        }
        .jgest-process-type-button:hover,
        .jgest-process-type-button:focus-visible {
            color: #FFFFFF;
            background: #263244;
            border-color: #64748B;
        }
        .jgest-process-type-button.is-active {
            color: #F8FAFC;
            background: #263244;
            border-color: #D97706;
            box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.28), 0 1px 2px rgba(0, 0, 0, 0.24);
        }
        .jgest-process-type-count {
            display: inline-flex;
            min-width: 1.5rem;
            height: 1.5rem;
            align-items: center;
            justify-content: center;
            border-radius: 999px;
            padding: 0 0.45rem;
            font-size: 0.75rem;
            line-height: 1;
            font-weight: 700;
            color: #CBD5E1;
            background: #111827;
            border: 1px solid #475569;
        }
        .jgest-process-type-button.is-active .jgest-process-type-count {
            color: #111827;
            background: #F59E0B;
            border-color: #FBBF24;
        }
        body.theme-dark .jgest-process-type-filter {
            background: #181F2A;
            border-color: #3F3F46;
            box-shadow: none;
        }
        body.theme-dark .jgest-process-type-button {
            color: #CBD5E1;
            background: #1B2430;
            border-color: #3F3F46;
            box-shadow: none;
        }
        body.theme-dark .jgest-process-type-button:hover,
        body.theme-dark .jgest-process-type-button:focus-visible {
            color: #FFFFFF;
            background: #263244;
            border-color: #64748B;
        }
        body.theme-dark .jgest-process-type-button.is-active {
            color: #F8FAFC;
            background: #263244;
            border-color: #D97706;
            box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.28), 0 1px 2px rgba(0, 0, 0, 0.24);
        }
        body.theme-dark .jgest-process-type-count {
            color: #CBD5E1;
            background: #111827;
            border-color: #475569;
        }
        body.theme-dark .jgest-process-type-button.is-active .jgest-process-type-count {
            color: #111827;
            background: #F59E0B;
            border-color: #FBBF24;
        }
        body.theme-dark .jgest-filter-dropdown-menu,
        body.theme-dark .jgest-tribunal-filter-dropdown {
            background-color: #1B1B1D !important;
            border-color: #343438 !important;
        }
        body.theme-dark .jgest-filter-dropdown-item,
        body.theme-dark .jgest-filter-dropdown-group,
        body.theme-dark .jgest-tribunal-filter-option,
        body.theme-dark .jgest-tribunal-filter-group {
            color: #F8FAFC !important;
        }
        body.theme-dark .jgest-filter-dropdown-item:hover,
        body.theme-dark .jgest-filter-dropdown-item:focus,
        body.theme-dark .jgest-filter-dropdown-item.is-keyboard-active,
        body.theme-dark .jgest-filter-dropdown-group:hover,
        body.theme-dark .jgest-filter-dropdown-group:focus,
        body.theme-dark .jgest-filter-dropdown-group.is-keyboard-active,
        body.theme-dark .jgest-tribunal-filter-option:hover,
        body.theme-dark .jgest-tribunal-filter-option:focus,
        body.theme-dark .jgest-tribunal-filter-option.is-keyboard-active,
        body.theme-dark .jgest-tribunal-filter-group:hover,
        body.theme-dark .jgest-tribunal-filter-group:focus,
        body.theme-dark .jgest-tribunal-filter-group.is-keyboard-active {
            background-color: #334155 !important;
            color: #FFFFFF !important;
        }
        body.theme-dark .jgest-filter-dropdown-item.is-selected,
        body.theme-dark .jgest-tribunal-filter-option.is-selected {
            background-color: #78350F !important;
            color: #FEF3C7 !important;
        }
        body.theme-dark .jgest-filter-dropdown-count,
        body.theme-dark .jgest-tribunal-filter-count {
            color: #CBD5E1 !important;
        }
        body.theme-dark .jgest-filter-dropdown-group:hover .jgest-filter-dropdown-count,
        body.theme-dark .jgest-filter-dropdown-group:focus .jgest-filter-dropdown-count,
        body.theme-dark .jgest-tribunal-filter-group:hover .jgest-tribunal-filter-count,
        body.theme-dark .jgest-tribunal-filter-group:focus .jgest-tribunal-filter-count {
            color: #FFFFFF !important;
        }
        .jgest-tribunal-link {
            display: inline-flex;
            max-width: 100%;
            cursor: pointer;
            align-items: center;
            border-radius: 0.25rem;
            padding: 0.125rem 0.25rem;
            color: #334155;
            font-size: var(--jgest-font-size-xs);
            font-weight: 600;
            line-height: var(--jgest-line-height-tight);
            text-decoration: none;
            text-underline-offset: 2px;
            transition: color 0.15s ease, background-color 0.15s ease;
        }
        .jgest-tribunal-link:hover {
            background-color: #F8FAFC;
            color: #0F172A;
            text-decoration: underline;
        }
        .jgest-tribunal-missing {
            display: inline-flex;
            max-width: 100%;
            cursor: pointer;
            align-items: center;
            border-radius: 0.25rem;
            padding: 0.125rem 0.25rem;
            color: #475569;
            font-size: var(--jgest-font-size-xs);
            font-weight: 600;
            line-height: var(--jgest-line-height-tight);
            background: transparent;
        }
        body.theme-dark .jgest-tribunal-link {
            color: #F8FAFC !important;
        }
        body.theme-dark .jgest-tribunal-link:hover {
            background-color: rgba(248, 250, 252, 0.08) !important;
            color: #FFFFFF !important;
        }
        body.theme-dark .jgest-tribunal-missing {
            color: #CBD5E1 !important;
        }
        @media (max-width: 1023px) {
            .jgest-mobile-tab-header {
                align-items: stretch !important;
                flex-direction: column;
                width: 100%;
            }
            .jgest-tab-type-root,
            .jgest-tab-actions,
            .jgest-tab-filters {
                box-sizing: border-box;
                min-width: 0;
                width: 100%;
                max-width: 100%;
            }
            .jgest-tab-type-root > .jgest-process-type-filter,
            .jgest-mobile-tab-header > .jgest-tab-type-root.jgest-process-type-filter {
                display: grid;
                grid-template-columns: repeat(2, minmax(0, 1fr));
                grid-auto-rows: 1fr;
                width: 100%;
                max-width: 100%;
            }
            .jgest-tab-type-root .jgest-process-type-button {
                min-width: 0;
                width: 100%;
                max-width: 100%;
                white-space: normal;
            }
            .jgest-tab-actions {
                display: grid !important;
                grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
                align-items: stretch !important;
                justify-content: stretch !important;
            }
            .jgest-tab-actions > button {
                box-sizing: border-box;
                min-width: 0;
                width: 100%;
                max-width: 100%;
                white-space: normal;
            }
            #conteudo-processos .jgest-filter-control,
            #conteudo-prazos .jgest-filter-control,
            #conteudo-processos .jgest-filter-dropdown-menu,
            #conteudo-prazos .jgest-filter-dropdown-menu {
                box-sizing: border-box;
                min-width: 0;
                width: 100%;
                max-width: 100%;
            }
            .jgest-prazos-manual-warning {
                box-sizing: border-box;
                width: 100%;
                max-width: 100%;
                overflow-wrap: anywhere;
                white-space: normal;
            }
            .topbar-inner {
                padding-left: max(1rem, env(safe-area-inset-left)) !important;
                padding-right: max(var(--jgest-topbar-right-gap), env(safe-area-inset-right)) !important;
            }
            #topbar-default-pills.hidden {
                display: flex !important;
            }
            .agenda-mobile-controls-root {
                box-sizing: border-box;
                width: 100%;
                max-width: 100%;
            }
            #agenda-mobile-controls-root #topbar-agenda-controls:not(.hidden) {
                display: flex;
                flex-direction: column;
                align-items: stretch;
                box-sizing: border-box;
                width: 100%;
                max-width: 100%;
                margin-bottom: 0.75rem;
                padding: 0.75rem;
                padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
                border: 1px solid #334155;
                border-radius: 0.75rem;
                background: #0F172A;
            }
            #agenda-mobile-controls-root #topbar-agenda-controls .agenda-toolbar-nav {
                display: grid;
                flex: none;
                grid-template-columns: 38px minmax(0, 1fr) 38px;
                gap: 0.5rem;
                width: 100%;
                max-width: 100%;
                margin-left: 0;
            }
            #agenda-mobile-controls-root #topbar-agenda-controls .agenda-toolbar-nav > div:first-child {
                display: contents;
            }
            #agenda-mobile-controls-root #agenda-mes-titulo {
                box-sizing: border-box;
                grid-column: 1 / -1;
                grid-row: 1;
                min-width: 0;
                width: 100%;
                max-width: 100%;
                border: 1px solid rgba(255, 255, 255, 0.15);
                border-radius: 0.5rem;
                background: rgba(255, 255, 255, 0.1);
            }
            #agenda-mobile-controls-root #topbar-agenda-controls .agenda-toolbar-nav > div:first-child > button:first-child,
            #agenda-mobile-controls-root #topbar-agenda-controls .agenda-toolbar-nav > div:first-child > button:last-child {
                grid-row: 2;
                border: 1px solid rgba(255, 255, 255, 0.15);
                border-radius: 0.5rem;
                background: rgba(255, 255, 255, 0.1);
            }
            #agenda-mobile-controls-root #topbar-agenda-controls .agenda-toolbar-nav > div:first-child > button:first-child {
                grid-column: 1;
            }
            #agenda-mobile-controls-root #topbar-agenda-controls .agenda-toolbar-nav > div:first-child > button:last-child {
                grid-column: 3;
            }
            #agenda-mobile-controls-root #topbar-agenda-controls .agenda-toolbar-nav > button {
                grid-column: 2;
                grid-row: 2;
                width: 100%;
            }
            #agenda-mobile-controls-root #topbar-agenda-controls .agenda-toolbar-nav > div:last-child {
                display: grid;
                grid-column: 1 / -1;
                grid-row: 3;
                grid-template-columns: repeat(2, minmax(0, 1fr));
                width: 100%;
            }
            #agenda-mobile-controls-root #topbar-agenda-controls .agenda-toolbar-nav > div:last-child > button {
                width: 100%;
            }
            #agenda-mobile-controls-root #topbar-agenda-controls .agenda-toolbar-actions {
                display: grid;
                grid-template-columns: 38px 38px minmax(0, 1fr);
                align-items: stretch;
                justify-content: stretch;
                gap: 0.5rem;
                width: 100%;
                max-width: 100%;
                margin-left: 0;
            }
            #agenda-mobile-controls-root #topbar-agenda-controls .agenda-toolbar-actions > label {
                box-sizing: border-box;
                min-width: 0;
                width: 100%;
                justify-content: center;
                white-space: normal;
            }
            #agenda-mobile-controls-root #topbar-agenda-controls .agenda-search-control.is-open {
                grid-column: 1 / -1;
                width: 100%;
            }
            #agenda-mobile-controls-root #topbar-agenda-controls .agenda-search-control.is-open .agenda-search-trigger {
                visibility: hidden;
            }
            #agenda-mobile-controls-root #topbar-agenda-controls #filter-busca-agenda {
                top: 0;
                left: 0;
                right: 0;
                box-sizing: border-box;
                width: 100%;
                max-width: 100%;
            }
            #agenda-mobile-controls-root #topbar-agenda-controls .agenda-search-close {
                top: 0;
            }
            #dashboard-content.agenda-mode {
                overflow: visible;
            }
            #dashboard-content.agenda-mode #conteudo-agenda {
                height: auto;
                min-width: 0;
                max-width: 100%;
                overflow: visible;
            }
            .agenda-toolbar-actions {
                margin-left: auto;
            }
            .agenda-toolbar-nav {
                flex: 0 1 auto;
                justify-content: flex-start;
                margin-left: 0;
            }
        }
        @media (max-width: 640px) {
            .jgest-tab-actions {
                grid-template-columns: minmax(0, 1fr);
            }
        }
        @media (max-width: 430px) {
            .jgest-tab-type-root > .jgest-process-type-filter,
            .jgest-mobile-tab-header > .jgest-tab-type-root.jgest-process-type-filter {
                grid-template-columns: minmax(0, 1fr);
            }
        }
        @media (min-width: 1024px) {
            .topbar-brand {
        margin-right: 1rem;
            }
            .topbar-context {
        min-width: 0;
        padding-right: 0;
            }
            #topbar-default-pills {
        padding-right: 0 !important;
            }
            #topbar-agenda-controls {
        margin-left: 1.5cm;
        padding-right: 0;
            }
        }
body.theme-dark .jgest-sync-status-notice {
    border-color: #92400e;
    background: #451a03;
    color: #fef3c7;
}
