/* AutoAgent design tokens — dense but calm (Linear/Vercel reference)
   Sidebar 248px / 36px rows / 13px labels. Titles 20px-700.
   Buttons 32px, one accent only, white text on blue (4.5:1). 8px grid. */

/* ── Sidebar ─────────────────────────────────────────── */
.fi-sidebar { --sidebar-width: 248px; }
.fi-sidebar-nav { gap: 2px; }
.fi-sidebar-item-button {
    height: 36px;
    padding: 0 10px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
}
.fi-sidebar-item-label { font-size: 13px; font-weight: 500; }
.fi-sidebar-item-icon { width: 16px; height: 16px; }
.fi-sidebar-item:not(.fi-active) .fi-sidebar-item-label { color: #6b7280; }
.fi-sidebar-item.fi-active .fi-sidebar-item-label { color: #111827; font-weight: 600; }
.fi-sidebar-group-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #9ca3af;
}

/* ── Page titles: weight contrast, not size ──────────── */
.fi-header-heading { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.fi-header-subheading { font-size: 13px; color: #6b7280; }
.fi-section-header-heading { font-size: 15px; font-weight: 600; }

/* ── Buttons: neutral default, single blue accent ─────── */
.fi-btn {
    height: 32px;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
}
.fi-btn.fi-size-sm { height: 28px; font-size: 12px; padding: 0 10px; }
.fi-btn.fi-size-lg { height: 36px; font-size: 13px; padding: 0 16px; }
/* Contrast fix: never dark text on a colour fill */
.fi-btn.fi-color-primary,
.fi-btn.fi-color-info,
.fi-btn.fi-color-success,
.fi-btn.fi-color-warning,
.fi-btn.fi-color-danger { color: #fff; }

/* ── Tables + inputs: tighten to the 8px grid ─────────── */
.fi-ta-header-cell, .fi-ta-cell { font-size: 13px; }
.fi-ta-header-cell { font-weight: 600; color: #6b7280; }
.fi-input { font-size: 13px; }
.fi-fo-field-wrp-label { font-size: 13px; font-weight: 500; }


/* The auth submit button, on login and password reset alike.
   This lived in a style block injected after the login form, so the button
   painted at Filament's 32px and jumped - and reset never got it at all. A
   linked stylesheet is in hand before the first paint. */
/* No form element on these pages - Filament puts wire:submit on a div, so
   every selector containing 'form' matched nothing. Scoped to the auth layout
   instead. */
/* By the button own classes rather than an ancestor: login and password reset
   render the same wrapper yet behaved differently, and this cannot miss. */
.fi-simple-layout .fi-btn.fi-ac-btn-action,
.fi-simple-main .fi-btn-primary,
.fi-simple-main button[type="submit"] {
    /* Forced: Filament ships its own button rules and loads them after this
       file, so a matching selector still loses on order. */
    width: 100% !important;
    height: 46px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: #2563EB !important;
    color: #fff !important;
    font-size: .98rem !important;
    font-weight: 700 !important;
}
