/* JurisPa Legal 2.0 — mobile-first shell shared by admin, portal and secure views. */
:root {
    --jurispa-touch-target: 44px;
}

/* Empty values remain readable in the native table and responsive cards. */
.fi-ta-table .fi-ta-cell .fi-ta-placeholder { color: #475569; }
.dark .fi-ta-table .fi-ta-cell .fi-ta-placeholder { color: #cbd5e1; }

/* Keep all seven calendar columns reachable when text enlarges the rem grid. */
.fi-fo-date-time-picker-panel {
    width: min(22rem, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    box-sizing: border-box;
    padding: min(1rem, 3vw);
}
.fi-fo-date-time-picker-panel .fi-fo-date-time-picker-calendar,
.fi-fo-date-time-picker-panel .fi-fo-date-time-picker-calendar-header {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: min(.25rem, 1vw);
}
.fi-fo-date-time-picker-panel .fi-fo-date-time-picker-calendar-header-day {
    min-width: 0;
    overflow-wrap: anywhere;
}
.fi-fo-date-time-picker-panel .fi-fo-date-time-picker-calendar-day {
    min-width: 0;
    min-height: var(--jurispa-touch-target);
    display: grid;
    place-items: center;
}
.fi-fo-date-time-picker-panel .fi-fo-date-time-picker-panel-header {
    gap: .5rem;
    flex-wrap: wrap;
}
.fi-fo-date-time-picker-panel .fi-fo-date-time-picker-month-select {
    min-width: 0;
    max-width: 100%;
}
.fi-fo-date-time-picker-panel .fi-fo-date-time-picker-year-input {
    flex: 0 0 auto;
    max-width: 100%;
}

[data-jurispa-draft-autosave] {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 45;
  display: grid;
  gap: .5rem;
  max-width: min(28rem, calc(100vw - 2rem));
  min-height: 44px;
  padding: .65rem .8rem;
  border: 1px solid color-mix(in srgb, currentColor 15%, transparent);
  border-radius: .75rem;
  background: var(--fi-body-bg, #fff);
  box-shadow: 0 .5rem 1.5rem rgb(15 23 42 / .14);
  font-size: .875rem;
}

[data-jurispa-draft-autosave][hidden] { display: none !important; }
[data-jurispa-draft-autosave] > * { min-width: 0; }
[data-jurispa-draft-autosave] summary { cursor: pointer; min-height: 44px; padding-block: .65rem; }
.jurispa-draft-tools-content { display: grid; gap: .5rem; max-height: 35vh; overflow-y: auto; overflow-wrap: anywhere; }
.jurispa-draft-guide { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
[data-jurispa-draft-autosave] button { min-height: 44px; padding: .35rem .6rem; border: 1px solid currentColor; border-radius: .4rem; }
[data-jurispa-sync-receipt] code { display: block; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .7rem; }
[data-jurispa-draft-autosave][data-status="saved"],
[data-jurispa-draft-autosave][data-status="resumed"] { border-color: #0f766e; }
[data-jurispa-draft-autosave][data-status="warning"],
[data-jurispa-draft-autosave][data-status="conflict"] { border-color: #b45309; }
[data-jurispa-draft-autosave] a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; }
.jurispa-draft-attachment { min-height: 44px; display: inline-flex; align-items: center; cursor: pointer; font-weight: 600; text-decoration: underline; }

@media (max-width: 639px) {
  [data-jurispa-draft-autosave] { left: 1rem; right: 1rem; justify-content: space-between; }
}

.jurispa-appearance { position: relative; }
.jurispa-appearance > summary { min-height: 44px; padding: .5rem; cursor: pointer; }
.jurispa-appearance-icon { display: none; }
.jurispa-appearance-form {
    position: absolute;
    inset-inline-end: 0;
    z-index: 90;
    display: grid;
    gap: .5rem;
    width: 18rem;
    max-width: calc(100vw - 2rem);
    max-height: calc(100dvh - 5rem);
    overflow: auto;
    padding: 1rem;
    border: 1px solid #64748b;
    border-radius: .5rem;
    background: Canvas;
    color: CanvasText;
    box-shadow: 0 .75rem 2rem #0f172a25;
}

.jurispa-locale-options {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgb(148 163 184 / .7);
    border-radius: .65rem;
    overflow: hidden;
}

.jurispa-locale-options button {
    display: inline-grid;
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    place-items: center;
    border: 0;
    border-inline-start: 1px solid rgb(148 163 184 / .45);
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-size: .75rem;
    font-weight: 800;
}

.jurispa-locale-options button:first-child { border-inline-start: 0; }
.jurispa-locale-options button:hover,
.jurispa-locale-options button:focus-visible { background: rgb(15 118 110 / 12%); outline: 2px solid #0f766e; outline-offset: -2px; }
.jurispa-locale-options button[aria-pressed="true"] { background: #0f766e; color: #fff; cursor: default; }
.dark .jurispa-locale-options button[aria-pressed="true"] { background: #14b8a6; color: #082f49; }

.jurispa-locale-mobile { display: none; position: relative; }
.jurispa-locale-mobile > summary {
    display: grid;
    width: 44px;
    min-height: 44px;
    place-items: center;
    border: 1px solid rgb(148 163 184 / .7);
    border-radius: .65rem;
    cursor: pointer;
    font-size: .75rem;
    font-weight: 800;
    list-style: none;
}
.jurispa-locale-mobile > summary::-webkit-details-marker { display: none; }
.jurispa-locale-mobile > form {
    position: absolute;
    z-index: 90;
    inset-block-start: calc(100% + .35rem);
    inset-inline-end: 0;
    display: grid;
    min-width: 11rem;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    border-radius: .65rem;
    background: #fff;
    color: #172033;
    box-shadow: 0 .75rem 2rem #0f172a25;
}
.jurispa-locale-mobile button {
    min-height: 44px;
    border: 0;
    border-block-start: 1px solid #e2e8f0;
    padding: .45rem .75rem;
    background: transparent;
    color: inherit;
    text-align: start;
}
.jurispa-locale-mobile button:first-of-type { border-block-start: 0; }
.jurispa-locale-mobile button[aria-pressed="true"] { background: #0f766e; color: #fff; }

.jurispa-contextual-help-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: .4rem;
    color: inherit;
    text-decoration: none;
}

.jurispa-contextual-help-link > span:first-child,
.jurispa-field-help > summary {
    display: inline-grid;
    width: 1.75rem;
    height: 1.75rem;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-weight: 700;
}

.jurispa-field-help { position: relative; display: inline-block; margin-inline-start: .35rem; }
.jurispa-field-help > summary { cursor: help; list-style: none; }
.jurispa-field-help > div { position: absolute; z-index: 50; width: min(22rem, 82vw); padding: .75rem; border: 1px solid #cbd5e1; border-radius: .75rem; background: #fff; color: #172033; box-shadow: 0 .75rem 2rem #0f172a25; }

.jurispa-help-trigger {
    position: relative;
    display: inline-grid;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    flex: 0 0 44px;
    place-items: center;
    margin-inline: .2rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #0f766e;
    font: inherit;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    cursor: help;
}
.jurispa-help-trigger::before {
    content: '';
    position: absolute;
    width: 28px;
    height: 28px;
    border: 1px solid currentColor;
    border-radius: 999px;
}
.jurispa-help-inline-anchor {
    display: inline-flex;
    align-items: center;
    gap: .15rem;
    flex-wrap: wrap;
}

.fi-modal .fi-modal-window .fi-modal-header { flex-wrap: wrap; gap: min(1rem, 3vw); padding-inline: min(1.5rem, 3vw); }
.fi-modal .fi-modal-window .fi-modal-header > div { min-width: 0; max-width: 100%; }
.fi-modal .fi-modal-window .fi-modal-heading { overflow-wrap: anywhere; }
/* The close control is absolute in the vendor layout. Reserve its column,
   including a gap, so a wrapped heading/help control cannot enter that area. */
@media screen {
    .fi-modal .fi-modal-window-ctn .fi-modal-window .fi-modal-header:has(> .fi-modal-close-btn) { padding-inline-end: 5.5rem; }
}
.fi-modal .fi-modal-window .fi-modal-close-btn { width: 44px; height: 44px; min-width: 44px; }
.fi-modal .fi-modal-window .fi-modal-close-btn svg { width: 24px; height: 24px; }
.fi-fo-field-label-ctn.jurispa-help-inline-anchor { display: flex; align-items: center; justify-content: flex-start; gap: .15rem; }
/* A help control must not replace the table-cell formatting context. */
th.jurispa-help-inline-anchor { display: table-cell; }
.dark .jurispa-help-trigger { color: #99f6e4; }
.fi-fo-field-label-ctn > .jurispa-help-trigger,
.fi-ta-header-cell > .jurispa-help-trigger {
    vertical-align: middle;
}
.jurispa-help-trigger:hover { background: rgb(15 118 110 / 10%); }
.jurispa-help-trigger:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.jurispa-help-popover {
    position: fixed;
    z-index: 2147483000;
    overflow: auto;
    overscroll-behavior: contain;
    padding: 1rem;
    border: 1px solid #94a3b8;
    border-radius: .85rem;
    background: #fff;
    color: #172033;
    box-shadow: 0 1.25rem 3rem rgb(15 23 42 / 25%);
    font-size: .92rem;
    line-height: 1.45;
}
.jurispa-help-popover[hidden] { display: none !important; }
.jurispa-help-popover__header { display: flex; align-items: start; justify-content: space-between; gap: .75rem; }
.jurispa-help-popover__header h2 { margin: 0; font-size: 1.05rem; line-height: 1.3; }
.jurispa-help-popover__close,
.jurispa-help-popover__more {
    min-width: 2.75rem;
    min-height: 2.75rem;
    border: 1px solid #94a3b8;
    border-radius: .55rem;
    background: #fff;
    color: #172033;
    cursor: pointer;
}
.jurispa-help-popover__close { flex: 0 0 2.75rem; font-size: 1.35rem; }
.jurispa-help-popover__actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.jurispa-help-popover__more { display: inline-flex; align-items: center; padding: .45rem .75rem; color: #0f766e; font-weight: 750; text-decoration: none; }
.jurispa-help-popover__document { background: #0f766e; color: #fff; }
.jurispa-help-popover__close:focus-visible,
.jurispa-help-popover__more:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.jurispa-help-popover__summary { margin: .75rem 0; }
.jurispa-help-popover__details h3 { margin: 1rem 0 .2rem; font-size: .92rem; }
.jurispa-help-popover__details p { margin: 0; }
.jurispa-help-popover__fallback { padding: .55rem; border-radius: .45rem; background: #fff7ed; color: #9a3412; }
.dark .jurispa-help-popover { border-color: #475569; background: #111827; color: #f8fafc; }
.dark .jurispa-help-popover__close,
.dark .jurispa-help-popover__more { border-color: #64748b; background: #1f2937; color: #f8fafc; }
.dark .jurispa-help-popover__document { background: #0f766e; }

.jurispa-help-body { font-family: ui-sans-serif, system-ui, sans-serif; margin: 0; background: #f8fafc; color: #172033; }
.jurispa-help-main { max-width: 52rem; margin: 2rem auto; padding: 1.5rem; background: #fff; border: 1px solid #d8e0e8; border-radius: 1rem; box-shadow: 0 1rem 2.5rem #0f172a12; }
.jurispa-help-main h1 { font-size: 1.65rem; }
.jurispa-help-main h2 { font-size: 1.15rem; margin-top: 1.5rem; }
.jurispa-help-main code { overflow-wrap: anywhere; }
.jurispa-help-summary { font-size: 1.05rem; color: #334155; }
.jurispa-help-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.jurispa-help-button { display: inline-flex; min-height: 44px; align-items: center; padding: .25rem .9rem; border-radius: .6rem; background: #0f766e; color: #fff; text-decoration: none; }
.jurispa-help-button-secondary { background: #475569; }

@media (max-width: 639px) {
    .jurispa-contextual-help-label { display: none; }
    .jurispa-locale-desktop { display: none; }
    .jurispa-locale-mobile { display: block; }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

.jp-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.jp-sidebar-mode-control {
    display: none;
}

.jp-navigation-context {
    display: flex;
    min-width: 0;
    margin-block-end: .75rem;
}

.jp-navigation-context[hidden] {
    display: none;
}

.jp-navigation-context__back {
    display: inline-flex;
    min-height: var(--jurispa-touch-target);
    max-width: 100%;
    align-items: center;
    gap: .45rem;
    border: 1px solid rgb(100 116 139 / 45%);
    border-radius: .55rem;
    padding: .45rem .7rem;
    background: transparent;
    color: #0f5f59;
    font-size: .875rem;
    font-weight: 750;
    overflow-wrap: anywhere;
    cursor: pointer;
}

.jp-navigation-context__back:hover,
.jp-navigation-context__back:focus-visible {
    border-color: #0f766e;
    background: rgb(15 118 110 / 10%);
    outline: 3px solid #f59e0b;
    outline-offset: 2px;
}

.dark .jp-navigation-context__back {
    color: #99f6e4;
}

.jp-authenticated-user-identity {
    display: inline-flex;
    min-width: 0;
    max-width: min(12rem, 22vw);
    min-height: var(--jurispa-touch-target);
    align-items: center;
    padding-inline: .35rem;
    color: #334155;
    font-size: .875rem;
    font-weight: 700;
}

.dark .jp-authenticated-user-identity {
    color: #e2e8f0;
}

.jp-authenticated-user-identity > span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jp-sidebar-group-control {
    width: 100%;
    min-width: 0;
}

.jp-sidebar-shell-button {
    display: inline-flex;
    width: 100%;
    min-width: 0;
    min-height: var(--jurispa-touch-target);
    align-items: center;
    justify-content: flex-start;
    gap: .55rem;
    border: 1px solid rgb(100 116 139 / 35%);
    border-radius: .55rem;
    padding: .5rem .65rem;
    background: rgb(15 118 110 / 8%);
    color: #0f5f59;
    font-size: .82rem;
    font-weight: 800;
    line-height: 1.25;
    text-align: start;
}

.jp-sidebar-shell-button:hover,
.jp-sidebar-shell-button:focus-visible {
    border-color: #0f766e;
    background: rgb(15 118 110 / 16%);
    outline: 2px solid transparent;
}

.jp-sidebar-shell-button svg {
    width: 1.25rem;
    height: 1.25rem;
    flex: 0 0 auto;
}

.dark .jp-sidebar-shell-button {
    border-color: rgb(148 163 184 / 45%);
    background: rgb(20 184 166 / 12%);
    color: #99f6e4;
}

@media (min-width: 64rem) {
    .jp-sidebar-mode-control {
        display: flex;
        flex: 0 0 auto;
        align-items: center;
        margin-inline-end: .5rem;
    }

    .jp-sidebar-mode-control .jp-sidebar-shell-button {
        width: auto;
        white-space: nowrap;
    }
}

@media (min-width: 64rem) and (max-width: 89.999rem) {
    .jp-sidebar-mode-control .jp-sidebar-shell-button {
        width: var(--jurispa-touch-target);
        padding-inline: 0;
        justify-content: center;
    }

    .jp-sidebar-mode-control .jp-sidebar-shell-button > span:not(.jp-visually-hidden) {
        display: none;
    }
}

html {
    min-width: 320px;
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body.fi-body,
.fi-layout,
.fi-main-ctn,
.fi-main,
.fi-page,
.fi-page-content,
.fi-header,
.fi-topbar {
    max-width: 100%;
}

body.fi-body {
    overflow-x: hidden;
    overflow-x: clip;
}

.fi-header > div,
.fi-header-heading,
.fi-topbar,
.fi-topbar-end {
    min-width: 0;
}

.fi-header {
    flex-wrap: wrap;
    align-items: flex-start;
}

.fi-header > div:first-child {
    min-width: 0;
}

.fi-header-actions-ctn {
    width: auto;
    min-width: 0;
    max-width: 100%;
}

.fi-header-actions-ctn > .fi-ac {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    flex-wrap: wrap;
}

@media (min-width: 64rem) {
    .fi-header > div:first-child {
        flex: 1 1 16rem;
    }

    .fi-header-actions-ctn {
        flex: 1 1 32rem;
    }
}

.fi-topbar-end {
    max-width: 100%;
    overflow: visible;
    flex-wrap: wrap;
    gap: min(.5rem, 1vw);
}

/* Text enlargement may consume more room than viewport breakpoints predict. */
.fi-topbar { height: auto; flex-wrap: wrap; gap: min(.5rem, 1vw); padding-inline: min(1.5rem, 3vw); }
.fi-skip-link:focus { max-width: calc(100vw - 24px); inset-inline-start: 12px; overflow-wrap: anywhere; }
.fi-main { padding-inline: min(2rem, 3vw) !important; }
.jp-tenant-switcher select { min-width: 44px !important; flex: 1 1 auto; }
.jurispa-locale-options { flex-wrap: wrap; }
.jurispa-locale-options button { width: auto; padding-inline: .45em; }
.jurispa-locale-mobile > summary { width: auto; min-width: 44px; padding-inline: .4em; }

.fi-header-heading {
    max-width: 100%;
    font-size: clamp(1.35rem, 1.2rem + .5vw, 1.65rem);
    line-height: 1.25;
    overflow-wrap: break-word;
}

body.fi-body .fi-page h2.text-xl {
    font-size: 1.125rem;
    line-height: 1.4;
}

body,
main,
.fi-main,
.fi-page,
.fi-page-content,
.fi-section,
.fi-section-content {
    min-width: 0;
}

img,
video,
canvas,
iframe {
    max-width: 100%;
}

.portal-form input:not([type="checkbox"]):not([type="radio"]),
.portal-form select,
.portal-form textarea,
.portal-form button,
.portal-item-actions button,
.card button,
.security-card button,
.btn {
    min-height: var(--jurispa-touch-target);
}

.portal-header a {
    display: inline-flex;
    min-width: var(--jurispa-touch-target);
    min-height: var(--jurispa-touch-target);
    align-items: center;
}

@media (max-width: 63.999rem) {
    /* Leave a touch target for the native backdrop, even with enlarged rems. */
    .fi-main-sidebar { max-width: calc(100vw - 48px); }
    .fi-main-sidebar .fi-sidebar-nav { min-width: 0; padding: min(2rem, 3vw) min(1rem, 3vw); gap: min(1.75rem, 3vw); align-items: stretch; }
    .fi-main-sidebar .fi-sidebar-nav-groups,
    .fi-main-sidebar .fi-sidebar-group,
    .fi-main-sidebar .fi-sidebar-group-items,
    .fi-main-sidebar .fi-sidebar-sub-group-items,
    .fi-main-sidebar .fi-sidebar-item { width: 100%; min-width: 0; max-width: 100%; }
    .fi-main-sidebar .fi-sidebar-nav-groups { margin-inline: 0; }
    .fi-main-sidebar .fi-sidebar-item-btn,
    .fi-main-sidebar .fi-sidebar-group-btn { min-width: 0; max-width: 100%; padding: min(.5rem, 3vw) min(1rem, 3vw); gap: min(.75rem, 3vw); }
    .fi-main-sidebar .fi-sidebar-item-label,
    .fi-main-sidebar .fi-sidebar-group-label { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
    .fi-main-sidebar .fi-icon { width: 24px; height: 24px; flex-shrink: 0; }
    .fi-main-sidebar .jp-sidebar-shell-button { padding: min(.5rem, 3vw) min(.65rem, 3vw); gap: min(.55rem, 2vw); }
    .fi-main-sidebar .jp-sidebar-shell-button > span { min-width: 0; overflow-wrap: anywhere; }
    .fi-main-sidebar .jp-sidebar-shell-button svg { width: 24px; height: 24px; }
    .fi-header-actions-ctn,
    .fi-header-actions-ctn > .fi-ac {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .fi-header-actions-ctn {
        display: block;
    }

    .fi-header-actions-ctn > .fi-ac {
        display: flex;
        flex-wrap: wrap;
    }

    .fi-header-actions-ctn .fi-btn {
        max-width: 100%;
        white-space: normal;
    }

    .jp-authenticated-user-identity {
        max-width: min(7rem, 22vw);
        font-size: .8125rem;
    }

    body.fi-body button,
    body.fi-body a[role="button"],
    .fi-btn,
    .fi-icon-btn,
    .fi-sidebar-open-button,
    .fi-sidebar-close-button,
    .fi-sidebar-item-btn,
    .fi-sidebar-group-btn,
    .fi-pagination-item-btn,
    .fi-dropdown-trigger > button,
    .fi-ta-actions button,
    .fi-ta-actions a {
        min-height: var(--jurispa-touch-target);
    }

    .fi-icon-btn,
    .fi-sidebar-open-button,
    .fi-sidebar-close-button,
    .fi-pagination-item-btn,
    .fi-user-menu-trigger,
    .fi-ta-actions button,
    .fi-ta-actions a {
        min-width: var(--jurispa-touch-target);
    }

    /* Icon targets stay usable when enlarged text changes rem-based spacing. */
    .fi-icon-btn { width: 44px; height: 44px; padding: 8px; }
    .fi-icon-btn svg { width: 24px; height: 24px; }
    /* Fixed touch targets cannot retain Filament's rem-based negative margins. */
    .fi-ta-header-toolbar .fi-icon-btn { margin: 0; }
    .fi-ta-header-toolbar { padding-inline: min(1rem, 3vw) !important; }
    .fi-ta-header-toolbar > div { min-width: 0; max-width: 100%; flex-wrap: wrap; }

    .fi-input-wrp input:not([type="checkbox"]):not([type="radio"]),
    .fi-input-wrp select,
    .fi-select-input,
    .fi-fo-textarea,
    .fi-fo-rich-editor textarea,
    body.fi-body input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
    body.fi-body select,
    body.fi-body textarea,
    .portal-form input:not([type="checkbox"]):not([type="radio"]),
    .portal-form select,
    .portal-form textarea {
        min-height: var(--jurispa-touch-target);
        font-size: 16px;
    }

    .fi-header-actions,
    .fi-ac-actions,
    .fi-ta-header-toolbar,
    .fi-ta-actions,
    .fi-modal-footer-actions,
    .fi-btn-group,
    .portal-item-actions,
    .bar {
        flex-wrap: wrap;
    }

    .fi-ta-content-ctn.jurispa-responsive-table-container {
        overflow: visible;
    }

    .fi-ta-table[data-jurispa-responsive="cards"] {
        display: block;
        width: 100% !important;
        min-width: 0 !important;
        table-layout: auto;
    }

    .fi-ta-table[data-jurispa-responsive="cards"] > thead {
        display: block;
        width: 100%;
    }

    .fi-ta-table[data-jurispa-responsive="cards"] > thead > tr {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: .5rem;
        width: 100%;
        padding: min(.75rem, 3vw);
        border-bottom: 1px solid #e5e7eb;
    }

    .dark .fi-ta-table[data-jurispa-responsive="cards"] > thead > tr {
        border-bottom-color: #374151;
    }

    .fi-ta-table[data-jurispa-responsive="cards"] > thead > tr.jurispa-has-sort::before {
        content: attr(data-jurispa-sort-label);
        color: #4b5563;
        font-size: .75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .025em;
    }

    .dark .fi-ta-table[data-jurispa-responsive="cards"] > thead > tr.jurispa-has-sort::before {
        color: #d1d5db;
    }

    .fi-ta-table[data-jurispa-responsive="cards"] > thead > tr > th {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        padding: 0 !important;
        margin: -1px !important;
        overflow: hidden !important;
        clip: rect(0, 0, 0, 0) !important;
        clip-path: inset(50%) !important;
        white-space: nowrap !important;
        border: 0 !important;
    }

    .fi-ta-table[data-jurispa-responsive="cards"] > thead > tr > th.jurispa-sortable-header {
        position: static !important;
        display: block;
        width: auto !important;
        height: auto !important;
        margin: 0 !important;
        overflow: visible !important;
        clip: auto !important;
        clip-path: none !important;
        white-space: normal !important;
        min-width: 0;
        max-width: 100%;
    }

    /* Keep semantic column headings, but do not leave an invisible help
       button in the keyboard order inside a clipped mobile header. */
    .fi-ta-table[data-jurispa-responsive="cards"] > thead > tr > th:not(.jurispa-sortable-header) .jurispa-help-trigger {
        display: none !important;
    }

    .fi-ta-table[data-jurispa-responsive="cards"] .fi-ta-header-cell-sort-btn {
        min-height: var(--jurispa-touch-target);
        padding: .5rem .75rem;
        border: 1px solid #d1d5db;
        border-radius: .5rem;
        min-width: 0;
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .fi-ta-table[data-jurispa-responsive="cards"] .fi-ta-header-cell-sort-btn > * { min-width: 0; }

    .dark .fi-ta-table[data-jurispa-responsive="cards"] .fi-ta-header-cell-sort-btn {
        border-color: #4b5563;
    }

    .fi-ta-table[data-jurispa-responsive="cards"] > tbody {
        display: grid;
        gap: .75rem;
        width: 100%;
    }

    .fi-ta-table[data-jurispa-responsive="cards"] > tbody > tr {
        display: grid;
        width: 100%;
        min-width: 0;
        overflow: hidden;
        border: 1px solid #e5e7eb;
        border-radius: .75rem;
        background: #fff;
        box-shadow: 0 1px 2px rgb(0 0 0 / 4%);
    }

    .dark .fi-ta-table[data-jurispa-responsive="cards"] > tbody > tr {
        border-color: #374151;
        background: #111827;
    }

    .fi-ta-table[data-jurispa-responsive="cards"] > tbody > tr > .fi-ta-cell {
        position: static !important;
        display: grid;
        grid-template-columns: minmax(0, 36%) minmax(0, 1fr);
        align-items: start;
        gap: min(.75rem, 3vw);
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        padding: min(.75rem, 3vw) !important;
        border: 0;
        border-top: 1px solid #e5e7eb;
        white-space: normal !important;
        overflow-wrap: anywhere;
    }

    .dark .fi-ta-table[data-jurispa-responsive="cards"] > tbody > tr > .fi-ta-cell {
        border-top-color: #374151;
    }

    .fi-ta-table[data-jurispa-responsive="cards"] > tbody > tr > .fi-ta-cell:first-child {
        border-top: 0;
    }

    .fi-ta-table[data-jurispa-responsive="cards"] > tbody > tr > .fi-ta-cell::before {
        content: attr(data-jurispa-label);
        color: #4b5563;
        font-size: .75rem;
        font-weight: 700;
        line-height: 1.25rem;
        text-transform: uppercase;
        letter-spacing: .025em;
    }

    .dark .fi-ta-table[data-jurispa-responsive="cards"] > tbody > tr > .fi-ta-cell::before {
        color: #d1d5db;
    }

    .fi-ta-table[data-jurispa-responsive="cards"] > tbody > tr > .fi-ta-cell > * {
        min-width: 0;
        max-width: 100%;
    }

    .fi-ta-table[data-jurispa-responsive="cards"] .fi-ta-text,
    .fi-ta-table[data-jurispa-responsive="cards"] .fi-ta-text-item-label,
    .fi-ta-table[data-jurispa-responsive="cards"] .fi-badge-label {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .fi-ta-table[data-jurispa-responsive="cards"] .fi-ta-actions {
        justify-content: flex-start;
        gap: .5rem;
    }

    .fi-ta-table[data-jurispa-responsive="cards"] .fi-ta-actions button,
    .fi-ta-table[data-jurispa-responsive="cards"] .fi-ta-actions a {
        max-width: 100%;
        white-space: normal !important;
        text-align: start;
    }

    .fi-ta-table[data-jurispa-responsive="cards"] .fi-ta-actions .fi-link-label,
    .fi-ta-table[data-jurispa-responsive="cards"] .fi-ta-actions .fi-btn-label {
        min-width: 0;
        white-space: normal !important;
        overflow-wrap: anywhere;
    }

    .fi-modal-window,
    .fi-dropdown-panel {
        max-width: calc(100vw - 1rem);
    }

    .portal-header nav,
    .portal-form button,
    .portal-item-actions,
    .portal-item-actions button,
    .card-heading,
    .card-heading button,
    .bar,
    .bar .btn,
    .bar .status {
        width: 100%;
    }

    .portal-header nav {
        gap: .25rem .75rem;
    }

    .bar .status {
        min-width: 0;
    }

    .videos {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

@media (max-width: 30rem) {
    .fi-ta-table[data-jurispa-responsive="cards"] > tbody > tr > .fi-ta-cell {
        grid-template-columns: minmax(0, 40%) minmax(0, 1fr);
        gap: .5rem;
        padding: min(.625rem, 3vw) min(.75rem, 3vw) !important;
    }

    .security-card {
        width: calc(100% - 1.5rem);
        padding: 1.25rem;
    }
}

@media (min-width: 48rem) and (max-width: 63.999rem) {
    .fi-ta-table[data-jurispa-responsive="cards"] > tbody {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 80rem) {
    .fi-main {
        width: 100%;
        max-width: 120rem;
        margin-inline: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

.jp-secure-file {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: #f4f7f8;
    color: #17202a;
}

.jp-secure-file__card {
    width: min(100%, 42rem);
    padding: clamp(1.25rem, 4vw, 2.5rem);
    border: 1px solid #d5dde2;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 1rem 2.5rem rgb(15 23 42 / 10%);
}

.jp-secure-file__card h1 { margin: 0 0 1rem; font-size: clamp(1.35rem, 3vw, 1.9rem); }
.jp-secure-file__card p { line-height: 1.55; }
.jp-secure-file__card button {
    min-height: 2.75rem;
    width: 100%;
    margin-block: 1rem;
    border: 0;
    border-radius: .65rem;
    background: #0f766e;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.jp-secure-file__card button:disabled { cursor: not-allowed; opacity: .5; }

.jurispa-panel-nav-link {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    border: 1px solid #0f766e;
    border-radius: .5rem;
    padding: .5rem .75rem;
    color: #0f766e;
    font-weight: 700;
    text-decoration: none;
}
.jurispa-panel-nav-icon { display: none; }
.dark .jurispa-panel-nav-link { border-color: #5eead4; color: #99f6e4; }
.jurispa-panel-nav-link:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }

@media (max-width: 63.999rem) {
    .fi-topbar-end { overflow: visible; }
    .jurispa-panel-nav-link,
    .jurispa-appearance > summary {
        display: inline-grid;
        width: 44px;
        min-width: 44px;
        min-height: 44px;
        place-items: center;
        padding: 0;
        line-height: 1;
    }
    .jurispa-panel-nav-label,
    .jurispa-appearance-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
    .jurispa-panel-nav-icon,
    .jurispa-appearance-icon { display: inline; font-size: 24px; }
}

@media (max-width: 39.999rem) {
    .jurispa-appearance-form {
        position: fixed;
        inset-block-start: calc(4rem + env(safe-area-inset-top));
        left: max(1rem, env(safe-area-inset-left));
        right: max(1rem, env(safe-area-inset-right));
        width: auto;
        max-width: none;
        max-height: calc(100dvh - 5rem - env(safe-area-inset-top));
    }
    .jurispa-locale-mobile > form {
        position: fixed;
        inset-block-start: calc(4rem + env(safe-area-inset-top));
        inset-inline-end: max(1rem, env(safe-area-inset-right));
        width: min(11rem, calc(100vw - 2rem));
        min-width: 0;
    }
}

@media print {
    @page { size: auto; margin: 12mm; }
    html, body, .fi-body, .fi-layout, .fi-main, .fi-main-ctn, .fi-page, .fi-ta-ctn {
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        height: auto !important;
        overflow: visible !important;
        background: #fff !important;
        color: #000 !important;
    }
    .fi-sidebar, .fi-topbar, .fi-header-actions, .fi-ta-header-toolbar,
    .jurispa-help-trigger, [data-jurispa-draft-autosave], .fi-modal-close-overlay {
        display: none !important;
    }
    .fi-ta-content, .fi-ta-table, .fi-modal-window {
        position: static !important;
        width: 100% !important;
        max-width: none !important;
        overflow: visible !important;
        box-shadow: none !important;
        transform: none !important;
    }
    table { width: 100% !important; table-layout: auto !important; }
    thead { display: table-header-group; }
    tfoot { display: table-footer-group; }
    tr, img, svg { break-inside: avoid; page-break-inside: avoid; }
    th, td { white-space: normal !important; overflow-wrap: anywhere; }
}

/* Native search layout: these classes do not depend on a Tailwind rebuild. */
@media screen {
    .jp-master-search { min-width: 0; }
    .jp-search-form, .jp-search-results article {
        border: 1px solid #d1d5db; border-radius: .75rem; padding: 1rem;
        background: #fff; color: #1f2937; min-width: 0;
    }
    .dark .jp-search-form, .dark .jp-search-results article { background: #111827; color: #f3f4f6; border-color: #4b5563; }
    .jp-search-form label { display: block; font-weight: 600; margin-bottom: .4rem; }
    .jp-search-form input, .jp-search-form select {
        display: block; width: 100%; max-width: 100%; min-width: 0; min-height: 44px;
        border: 1px solid #9ca3af; border-radius: .4rem; padding: .6rem;
        background: transparent; color: inherit; font: inherit;
    }
    .jp-search-form select { height: 9rem; }
    .jp-search-form option { padding: .2rem; }
    .jp-search-controls { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; margin: 1rem 0; }
    .jp-search-results { display: grid; gap: .85rem; min-width: 0; }
    .jp-search-results article { overflow-wrap: anywhere; line-height: 1.5; }
    .jp-search-results h3 { margin: .4rem 0; font-weight: 650; font-size: 1rem; }
    .jp-search-results article p { margin: .25rem 0 0; }
    .jp-search-results nav { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
    @media (max-width: 767px) { .jp-search-controls { grid-template-columns: minmax(0, 1fr); } }
}

/* Native log overview uses the shipped stylesheet, without relying on unbuilt utilities. */
.jp-log-overview{display:grid;gap:1rem;min-width:0}
.jp-log-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}
.jp-log-stat{min-width:0;border:1px solid rgb(100 116 139/.35);border-radius:.75rem;padding:.75rem}
.jp-log-stat-value{font-size:1.5rem;line-height:2rem;font-weight:700}
.jp-log-stat-label{font-size:.8rem;line-height:1.2rem;overflow-wrap:anywhere}
.jp-log-trend{display:flex;align-items:stretch;gap:.5rem;border:1px solid rgb(100 116 139/.35);border-radius:.75rem;padding:.75rem}
.jp-log-day{display:grid;grid-template-rows:48px auto;flex:1;min-width:0;gap:.25rem;text-align:center;font-size:.7rem;line-height:1rem;overflow-wrap:anywhere}
.jp-log-bar{align-self:end;background:#0f766e;border-radius:.2rem .2rem 0 0;width:100%}
@media(min-width:48rem){.jp-log-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:80rem){.jp-log-stats{grid-template-columns:repeat(6,minmax(0,1fr))}}

/* Shared named Livewire paginators, independent of unpublished utility classes. */
.jp-manual-pagination{display:grid;gap:.75rem;min-width:0;margin-block:.75rem}
.jp-pagination-overview{font-size:.875rem;line-height:1.5;overflow-wrap:anywhere}
.jp-pagination-buttons{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;min-width:0}
.jp-pagination-buttons .fi-btn{min-width:44px;min-height:44px;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.jp-pagination-current,.jp-pagination-gap{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:.5rem;font-weight:600}
.jp-pagination-current{border:2px solid currentColor;border-radius:.5rem}

/* Scoped layout for application-owned manual views; vendor CSS has no utility build. */
.jp-manual-page{min-width:0}
/* Application calendar does not depend on unbuilt vendor utility classes. */
[data-calendar-board] [data-calendar-view]{display:grid;gap:.5rem;grid-template-columns:minmax(0,1fr)}
[data-calendar-board] [data-calendar-view="month"],
[data-calendar-board] [data-calendar-view="week"]{grid-template-columns:repeat(7,minmax(7rem,1fr));min-width:56rem}
[data-calendar-board] [data-calendar-date]{min-width:0;min-height:7rem;border:1px solid #d1d5db;border-radius:.5rem;padding:.5rem;overflow-wrap:anywhere}
[data-calendar-board] [data-calendar-date] h3{font-weight:650}
[data-calendar-board]>.rounded-xl{padding:1.25rem;background:#fff;border:1px solid #d1d5db;border-radius:.75rem}
.dark [data-calendar-board]>.rounded-xl{background:#111827;border-color:#4b5563}
[data-calendar-board] .overflow-x-auto{overflow-x:auto}
[data-calendar-board]>.rounded-xl>.flex{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.75rem}
[data-calendar-board] [role="group"], [data-calendar-board]>.rounded-xl>.flex>.flex{display:flex;flex-wrap:wrap;gap:.5rem}
[data-calendar-board] button{padding:.5rem .75rem;border:1px solid #64748b;border-radius:.5rem;font-weight:600;min-height:44px;cursor:pointer}
[data-calendar-board] button[aria-pressed="true"]{color:#fff;background:#0f766e;border-color:#0f766e}
.fi-sidebar-item.fi-active>.fi-sidebar-item-btn,
.fi-sidebar-item-active>.fi-sidebar-item-btn,
.fi-sidebar-item-active>.fi-sidebar-item-button{background:#ccfbf1!important;color:#115e59!important;border-inline-start:4px solid #0f766e;font-weight:700}
.dark .fi-sidebar-item.fi-active>.fi-sidebar-item-btn,
.dark .fi-sidebar-item-active>.fi-sidebar-item-btn,
.dark .fi-sidebar-item-active>.fi-sidebar-item-button{background:#134e4a!important;color:#f0fdfa!important;border-inline-start-color:#5eead4}
.jp-fin{min-width:0;max-width:100%;grid-template-columns:minmax(0,1fr)}
.jp-fin-card{min-width:0;max-width:100%;overflow-wrap:anywhere}
.jp-fin input[type=search]{min-width:0;max-width:100%}
.jp-manual-page :where(.rounded-xl){border:1px solid #d1d5db;border-radius:.75rem;background:#fff;color:#1f2937;min-width:0;overflow-wrap:anywhere}
.dark .jp-manual-page :where(.rounded-xl){border-color:#4b5563;background:#111827;color:#f3f4f6}
.jp-manual-page :where(.p-5){padding:1.25rem}
.jp-manual-page :where(.p-4){padding:1rem}
.jp-manual-page :where(.p-2){padding:.5rem}
.jp-manual-page :where(.rounded.border){border:1px solid #d1d5db;border-radius:.25rem}
.dark .jp-manual-page :where(.rounded.border){border-color:#4b5563}
.jp-manual-page :where(.block){display:block}
.jp-manual-page :where(.sr-only){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.jp-manual-page :where(.w-full){width:100%}
.jp-manual-page :where(input,select,textarea){display:block;width:100%;max-width:100%;min-width:0;min-height:44px;border:1px solid #64748b;border-radius:.5rem;padding:.6rem;background:transparent;color:inherit;font:inherit}
:where(.jp-manual-page,.jp-tenant-switcher,.portal-form) :where(select:not([multiple]):not([size]),select:not([multiple])[size="1"]){height:max(var(--jurispa-touch-target,44px),3rem)}
.jp-manual-page :where(textarea){min-height:6rem;resize:vertical}
.jp-manual-page :where(label:not(.sr-only)){display:block;font-weight:600}
.jp-manual-page :where(form){display:grid;gap:.65rem}
.jp-manual-page :where(.grid){display:grid;grid-template-columns:minmax(0,1fr)}
.jp-manual-page :where(.flex){display:flex}
.jp-manual-page :where(.flex-wrap){flex-wrap:wrap}
.jp-manual-page :where(.items-center){align-items:center}
.jp-manual-page :where(.justify-between){justify-content:space-between}
.jp-manual-page :where(.gap-2){gap:.5rem}
.jp-manual-page :where(.gap-3){gap:.75rem}
.jp-manual-page :where(.gap-4){gap:1rem}
.jp-manual-page :where(.space-y-2)>*+*{margin-top:.5rem}
.jp-manual-page :where(.space-y-3)>*+*{margin-top:.75rem}
.jp-manual-page :where(.space-y-4)>*+*{margin-top:1rem}
.jp-manual-page :where(.mb-2){margin-bottom:.5rem}
.jp-manual-page :where(.mb-3){margin-bottom:.75rem}
.jp-manual-page :where(.mt-1){margin-top:.25rem}
.jp-manual-page :where(.mt-2){margin-top:.5rem}
.jp-manual-page :where(.mt-3){margin-top:.75rem}
.jp-manual-page :where(.text-xs){font-size:.75rem;line-height:1.2rem}
.jp-manual-page :where(.text-sm){font-size:.875rem;line-height:1.4rem}
.jp-manual-page :where(.text-2xl){font-size:1.5rem;line-height:2rem}
.jp-manual-page :where(.font-medium){font-weight:500}
.jp-manual-page :where(.font-semibold){font-weight:650}
.jp-manual-page :where(.font-normal){font-weight:400}
.jp-manual-page :where(.font-mono){font-family:ui-monospace,monospace}
.jp-manual-page :where(.uppercase){text-transform:uppercase}
.jp-manual-page :where(.text-gray-500){color:#4b5563}
.dark .jp-manual-page :where(.text-gray-500){color:#cbd5e1}
.jp-manual-page :where(.text-primary-600){color:#0f766e}
.dark .jp-manual-page :where(.text-primary-600){color:#5eead4}
.jp-manual-page :where(.text-danger-600){color:#b91c1c}
.dark .jp-manual-page :where(.text-danger-600){color:#fca5a5}
@media(min-width:48rem){.jp-manual-page :where(.md\:grid-cols-5){grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(min-width:64rem){.jp-manual-page :where(.lg\:grid-cols-2){grid-template-columns:repeat(2,minmax(0,1fr))}}
