/* The JJLJ design system on the Filament panel. Tokens come from the theme package (injected as variables for light
   and dark); this sheet only maps Filament's parts to the design system shapes: the operator desk density, the sidebar
   with collapsible groups and the current item on a soft surface, the top bar on the page ground, tables with a quiet
   header and the action column, status chips with a dot, black primary actions, 8px controls, cards on a hairline. */

.fi-body { background: var(--bg); color: var(--ink); font-family: var(--font-ui); font-size: 13px; }
.fi-body .fi-main-ctn, .fi-body .fi-main { background: var(--bg); }

/* Sidebar */
.fi-body .fi-sidebar { background: var(--bg); border-inline-end: 1px solid var(--line); box-shadow: none; }
.fi-body .fi-sidebar-header { background: var(--bg); box-shadow: none; border-bottom: 0; height: 60px; padding-inline: 16px; }
.fi-body .fi-logo { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.fi-body .fi-sidebar-nav { padding: 6px 10px 16px; gap: 2px; }
.fi-body .fi-sidebar-nav-groups { gap: 6px; }
.fi-body .fi-sidebar-group-btn { padding: 6px 8px; }
.fi-body .fi-sidebar-group-label { font-size: 12px; font-weight: 600; color: var(--ink-2); letter-spacing: 0; text-transform: none; }
.fi-body .fi-sidebar-group-items { gap: 1px; }
.fi-body .fi-sidebar-item-btn { min-height: 32px; padding: 0 8px; gap: 10px; border-radius: var(--radius-m); color: var(--ink-2); font-size: 13px; font-weight: 500; transition: background-color 160ms ease, color 160ms ease; }
.fi-body .fi-sidebar-item-btn:hover { background: var(--surface-2); color: var(--ink); }
.fi-body .fi-sidebar-item.fi-active > .fi-sidebar-item-btn { background: var(--surface-3); color: var(--ink); font-weight: 600; }
.fi-body .fi-sidebar-item-icon { width: 16px; height: 16px; color: inherit; }
.fi-body .fi-sidebar-item.fi-active .fi-sidebar-item-icon { color: var(--ink); }
.fi-body .fi-sidebar-item-label { color: inherit; }

/* Top bar and page header */
.fi-body .fi-topbar { background: var(--bg); box-shadow: none; border-bottom: 1px solid var(--line); min-height: 56px; }
.fi-body .fi-topbar-ctn { box-shadow: none; }
.fi-body .fi-breadcrumbs-item-label { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.fi-body .fi-breadcrumbs-item:last-child .fi-breadcrumbs-item-label { color: var(--ink); font-weight: 600; }
.fi-body .fi-header-heading { font-size: 28px; line-height: 32px; font-weight: 650; letter-spacing: -0.02em; color: var(--ink); }
.fi-body .fi-page-content { gap: 16px; }

/* Cards, sections, tables */
.fi-body .fi-section, .fi-body .fi-ta-ctn { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: none; }
.fi-body .fi-ta-header-ctn { border-bottom: 1px solid var(--line); }
.fi-body .fi-ta-header-cell { background: var(--surface-2); font-size: 12px; font-weight: 600; color: var(--ink-2); letter-spacing: 0; }
.fi-body .fi-ta-row { transition: background-color 160ms ease; }
.fi-body .fi-ta-row:hover { background: var(--surface-2); }
.fi-body .fi-ta-cell { font-size: 13px; color: var(--ink); }
.fi-body .fi-ta-text-item-label { font-size: 13px; }
.fi-body .fi-pagination { font-size: 13px; }

/* Numbers on the overview */
.fi-body .fi-wi-stats-overview-stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: none; padding: 14px 16px; }
.fi-body .fi-wi-stats-overview-stat-label { font-size: 12px; font-weight: 550; color: var(--ink-2); }
.fi-body .fi-wi-stats-overview-stat-value { font-size: 26px; line-height: 30px; font-weight: 650; letter-spacing: -0.02em; color: var(--ink); }
.fi-body .fi-wi-stats-overview-stat-description { font-size: 12px; color: var(--ink-3); }

/* Status chips: soft background and a dot */
.fi-body .fi-badge { border-radius: 999px; font-size: 12px; font-weight: 600; padding: 2px 8px 2px 7px; gap: 5px; box-shadow: none; }
.fi-body .fi-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Buttons and fields */
.fi-body .fi-btn { min-height: 32px; border-radius: var(--radius-m); font-size: 13px; font-weight: 600; box-shadow: none; transition: transform 120ms ease, background-color 160ms ease; }
.fi-body .fi-btn:active { transform: scale(0.97); }
.fi-body .fi-btn.fi-color-primary { background: var(--action); color: var(--on-action); }
.fi-body .fi-btn.fi-color-primary:hover { background: var(--action-hover, var(--action)); }
.fi-body .fi-input-wrp { border-radius: var(--radius-m); background: var(--surface); box-shadow: none; outline: 1px solid var(--line-strong); }
.fi-body .fi-input-wrp:focus-within { outline: 2px solid var(--focus); }
.fi-body .fi-input { font-size: 13px; color: var(--ink); }
.fi-body .fi-fo-field-label-content { font-size: 12px; font-weight: 550; color: var(--ink-2); }

/* Menus and the user button */
.fi-body .fi-dropdown-panel { background: var(--raised, var(--surface)); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow-2); }
.fi-body .fi-dropdown-list-item { border-radius: var(--radius-m); font-size: 13px; }

/* The sign-in card */
.fi-body .fi-simple-main { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-2); }

/* Content arrives, the frame stays still */
@keyframes jjlj-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.fi-body .fi-page-content > * { animation: jjlj-enter 380ms cubic-bezier(0.05, 0.7, 0.1, 1) both; }
.fi-body .fi-page-content > :nth-child(2) { animation-delay: 50ms; }
.fi-body .fi-page-content > :nth-child(3) { animation-delay: 100ms; }
@media (prefers-reduced-motion: reduce) { .fi-body .fi-page-content > * { animation: none; } .fi-body .fi-btn { transition: none; } }

/* The numbers stand on their own tiles, never inside another card */
.fi-body .fi-wi-stats-overview > .fi-section, .fi-body .fi-wi-stats-overview .fi-section-content-ctn { background: transparent; border: 0; padding: 0; box-shadow: none; }
.fi-body .fi-section:has(.fi-wi-stats-overview-stat) { background: transparent; border: 0; padding: 0; box-shadow: none; }
