/* ===== thrivosign-theme.css (consolidated) ===== */
/* ThrivoSign Web Manager — design tokens & typography
 *
 * Defines CSS variables and global typography. Loaded once, before the layout
 * and component stylesheets. Do not put component styles here.
 *
 * The legacy hello.css, icon.css, materialize.css, materialize.min.css, and
 * jquery.min.js / bootstrap.min.js duplicates under core/css have been removed.
 * Bootstrap 3 and jQuery 2 are still loaded from core/js. The ThrivoSign theme
 * is layered on top of Bootstrap 3 with `fs-` prefixed class names to avoid
 * collisions with the existing Bootstrap 3 markup in legacy JSPs.
 */

:root {
    /* Brand colours (from task brief, locked in). */
    --thrivosign-navy:       #102A43;
    --thrivosign-navy-dark:  #081F33;
    --thrivosign-navy-soft:  #1F4068;
    --thrivosign-orange:     #F47B20;
    --thrivosign-orange-dark:#D9630E;
    --thrivosign-orange-soft:#FBA661;

    /* Neutrals. */
    --thrivosign-background: #F5F7FA;
    --thrivosign-surface:    #FFFFFF;
    --thrivosign-surface-alt:#F9FBFD;
    --thrivosign-border:     #D9E2EC;
    --thrivosign-border-soft:#E6EDF4;
    --thrivosign-divider:    #EEF2F6;

    /* Text. */
    --thrivosign-text:       #243B53;
    --thrivosign-text-muted: #627D98;
    --thrivosign-text-soft:  #829AB1;
    --thrivosign-text-inverse: #FFFFFF;

    /* Status colours. */
    --thrivosign-success:    #1F8A5B;
    --thrivosign-success-bg: #E6F4ED;
    --thrivosign-warning:    #B7791F;
    --thrivosign-warning-bg: #FDF2DA;
    --thrivosign-danger:     #C53030;
    --thrivosign-danger-bg:  #FDE7E7;
    --thrivosign-info:       #2B6CB0;
    --thrivosign-info-bg:    #E1ECF7;
    --thrivosign-neutral:    #627D98;
    --thrivosign-neutral-bg: #EEF2F6;

    /* Typography scale. */
    --thrivosign-font-sans: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --thrivosign-font-mono: "SFMono-Regular", "Consolas", "Menlo", monospace;
    --thrivosign-fs-12: 0.75rem;
    --thrivosign-fs-13: 0.8125rem;
    --thrivosign-fs-14: 0.875rem;
    --thrivosign-fs-16: 1rem;
    --thrivosign-fs-18: 1.125rem;
    --thrivosign-fs-20: 1.25rem;
    --thrivosign-fs-24: 1.5rem;
    --thrivosign-fs-28: 1.75rem;

    /* Spacing (4px scale). */
    --thrivosign-space-1: 4px;
    --thrivosign-space-2: 8px;
    --thrivosign-space-3: 12px;
    --thrivosign-space-4: 16px;
    --thrivosign-space-5: 20px;
    --thrivosign-space-6: 24px;
    --thrivosign-space-7: 32px;
    --thrivosign-space-8: 40px;
    --thrivosign-space-9: 56px;
    --thrivosign-space-10: 72px;

    /* Radii. */
    --thrivosign-radius-sm: 4px;
    --thrivosign-radius:    6px;
    --thrivosign-radius-lg: 10px;
    --thrivosign-radius-pill: 999px;

    /* Shadows. */
    --thrivosign-shadow-sm: 0 1px 2px rgba(16, 42, 67, 0.06);
    --thrivosign-shadow:    0 2px 6px rgba(16, 42, 67, 0.08);
    --thrivosign-shadow-lg: 0 10px 24px rgba(16, 42, 67, 0.12);
    --thrivosign-shadow-focus: 0 0 0 3px rgba(244, 123, 32, 0.25);

    /* Layout. */
    --thrivosign-sidebar-width:        240px;
    --thrivosign-sidebar-width-collapsed: 64px;
    --thrivosign-topbar-height:        56px;
    --thrivosign-content-max:          1400px;

    /* Transitions. */
    --thrivosign-transition: 160ms ease;
}

/* Bootstrap 3 override. Map Bootstrap's brand variables to our brand
 * colours so the existing btn-primary, alert-info, navbar-inverse, etc.
 * pick up the navy + orange identity without us touching every legacy
 * class. */
.btn-primary {
    background-color: var(--thrivosign-orange);
    border-color: var(--thrivosign-orange-dark);
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--thrivosign-orange-dark);
    border-color: var(--thrivosign-orange-dark);
}
a {
    color: var(--thrivosign-orange-dark);
}
a:hover,
a:focus {
    color: var(--thrivosign-navy);
}

/* Global typography. */
html, body {
    height: 100%;
}
body {
    font-family: var(--thrivosign-font-sans);
    font-size: var(--thrivosign-fs-14);
    line-height: 1.5;
    color: var(--thrivosign-text);
    background-color: var(--thrivosign-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 {
    color: var(--thrivosign-navy);
    font-weight: 600;
    margin-top: 0;
}
h1 { font-size: var(--thrivosign-fs-24); }
h2 { font-size: var(--thrivosign-fs-20); }
h3 { font-size: var(--thrivosign-fs-18); }
h4 { font-size: var(--thrivosign-fs-16); }

code, pre, kbd, samp {
    font-family: var(--thrivosign-font-mono);
}

/* Visible keyboard focus on the entire app. */
*:focus-visible {
    outline: none;
    box-shadow: var(--thrivosign-shadow-focus);
    border-radius: var(--thrivosign-radius-sm);
}

/* Skip-link (target added by the sidebar JS). */
.fs-skip-link {
    position: absolute;
    left: -10000px;
    top: 8px;
    background: var(--thrivosign-navy);
    color: var(--thrivosign-text-inverse);
    padding: 8px 14px;
    border-radius: var(--thrivosign-radius);
    z-index: 9999;
}
.fs-skip-link:focus {
    left: 8px;
}

/* Visually-hidden utility for screen readers. */
.fs-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;
}


/* ===== thrivosign-layout.css (consolidated) ===== */
/* ThrivoSign Web Manager — application shell
 *
 * Defines the sidebar, topbar, breadcrumb, page-header, and footer regions.
 * Loaded after thrivosign-theme.css. Bootstrap 3 markup still works inside
 * each region (the regions are wrappers).
 */

/* App shell. */
.fs-app {
    display: grid;
    grid-template-columns: var(--thrivosign-sidebar-width) 1fr;
    grid-template-rows: var(--thrivosign-topbar-height) 1fr;
    grid-template-areas:
        "sidebar topbar"
        "sidebar main";
    min-height: 100vh;
    background-color: var(--thrivosign-background);
}
.fs-app--collapsed {
    grid-template-columns: var(--thrivosign-sidebar-width-collapsed) 1fr;
}

/* Sidebar. */
.fs-sidebar {
    grid-area: sidebar;
    background-color: var(--thrivosign-navy);
    color: var(--thrivosign-text-inverse);
    border-right: 1px solid var(--thrivosign-navy-dark);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 1020;
}
.fs-sidebar__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    height: var(--thrivosign-topbar-height);
    padding: 0 18px;
    background-color: var(--thrivosign-navy-dark);
    color: var(--thrivosign-text-inverse);
    text-decoration: none;
    font-weight: 700;
    font-size: var(--thrivosign-fs-16);
    letter-spacing: 0.2px;
    border-bottom: 1px solid var(--thrivosign-navy-dark);
    white-space: nowrap;
    overflow: hidden;
}
.fs-sidebar__brand:hover,
.fs-sidebar__brand:focus {
    color: var(--thrivosign-text-inverse);
    text-decoration: none;
}
.fs-sidebar__brand-mark {
    width: 28px; height: 28px;
    background: var(--thrivosign-orange);
    border-radius: var(--thrivosign-radius-sm);
    color: var(--thrivosign-text-inverse);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--thrivosign-fs-14);
    flex-shrink: 0;
}
.fs-sidebar__brand-text {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fs-app--collapsed .fs-sidebar__brand-text {
    display: none;
}

.fs-sidebar__scroll {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 0 24px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.18) transparent;
}
.fs-sidebar__scroll::-webkit-scrollbar { width: 6px; }
.fs-sidebar__scroll::-webkit-scrollbar-thumb {
    background-color: rgba(255,255,255,0.18);
    border-radius: 3px;
}

.fs-nav-group {
    padding: 8px 0;
}
.fs-nav-group__label {
    padding: 10px 18px 6px;
    font-size: var(--thrivosign-fs-12);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: rgba(255,255,255,0.55);
    font-weight: 700;
}
.fs-app--collapsed .fs-nav-group__label {
    /* Show as a thin divider instead. */
    height: 1px;
    padding: 0;
    margin: 8px 12px;
    background: rgba(255,255,255,0.18);
    overflow: hidden;
}
.fs-nav-item,
.fs-nav-group__toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 18px;
    color: rgba(255,255,255,0.78);
    text-decoration: none;
    font-size: var(--thrivosign-fs-14);
    font-weight: 500;
    border: 0;
    background: transparent;
    width: 100%;
    text-align: left;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: background-color var(--thrivosign-transition), color var(--thrivosign-transition);
    white-space: nowrap;
}
.fs-nav-item:hover,
.fs-nav-group__toggle:hover {
    background-color: rgba(255,255,255,0.06);
    color: var(--thrivosign-text-inverse);
    text-decoration: none;
}
.fs-nav-item:focus-visible,
.fs-nav-group__toggle:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 2px var(--thrivosign-orange);
}
.fs-nav-item[aria-current="page"] {
    background-color: rgba(244, 123, 32, 0.16);
    color: var(--thrivosign-text-inverse);
    border-left-color: var(--thrivosign-orange);
}
.fs-nav-item__icon,
.fs-nav-group__toggle-icon {
    width: 18px; height: 18px;
    flex-shrink: 0;
    color: rgba(255,255,255,0.85);
}
.fs-nav-item[aria-current="page"] .fs-nav-item__icon {
    color: var(--thrivosign-orange);
}
.fs-nav-item__label {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fs-nav-group__caret {
    width: 12px; height: 12px;
    flex-shrink: 0;
    transition: transform var(--thrivosign-transition);
    color: rgba(255,255,255,0.55);
}
.fs-nav-group[aria-expanded="true"] .fs-nav-group__caret {
    transform: rotate(90deg);
}
.fs-nav-group__children {
    display: none;
    background-color: rgba(0,0,0,0.18);
    border-left: 1px solid rgba(255,255,255,0.08);
    margin: 4px 0 4px 24px;
    padding: 4px 0;
}
.fs-nav-group[aria-expanded="true"] .fs-nav-group__children {
    display: block;
}
.fs-app--collapsed .fs-nav-item__label,
.fs-app--collapsed .fs-nav-group__label,
.fs-app--collapsed .fs-nav-group__caret,
.fs-app--collapsed .fs-nav-group__children {
    display: none;
}
.fs-app--collapsed .fs-nav-item,
.fs-app--collapsed .fs-nav-group__toggle {
    justify-content: center;
    padding: 11px 0;
    border-left: 0;
}
.fs-app--collapsed .fs-nav-item__icon,
.fs-app--collapsed .fs-nav-group__toggle-icon {
    margin: 0;
}
.fs-app--collapsed .fs-nav-item[aria-current="page"] {
    background-color: transparent;
    border-left: 0;
    box-shadow: inset 3px 0 0 var(--thrivosign-orange);
}

/* Sidebar footer. */
.fs-sidebar__footer {
    padding: 12px 18px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: var(--thrivosign-fs-12);
    color: rgba(255,255,255,0.55);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.fs-app--collapsed .fs-sidebar__footer-text { display: none; }

/* Topbar. */
.fs-topbar {
    grid-area: topbar;
    background-color: var(--thrivosign-surface);
    border-bottom: 1px solid var(--thrivosign-border);
    box-shadow: var(--thrivosign-shadow-sm);
    display: flex;
    align-items: center;
    padding: 0 var(--thrivosign-space-6);
    gap: var(--thrivosign-space-4);
    position: sticky;
    top: 0;
    z-index: 1010;
}
.fs-topbar__toggle {
    background: transparent;
    border: 0;
    width: 36px; height: 36px;
    border-radius: var(--thrivosign-radius);
    color: var(--thrivosign-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color var(--thrivosign-transition);
}
.fs-topbar__toggle:hover,
.fs-topbar__toggle:focus-visible {
    background-color: var(--thrivosign-divider);
}
.fs-topbar__title {
    font-size: var(--thrivosign-fs-16);
    font-weight: 600;
    color: var(--thrivosign-navy);
    margin: 0;
}
.fs-topbar__spacer { flex: 1 1 auto; }
.fs-topbar__user {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--thrivosign-text);
    font-weight: 500;
    padding: 6px 12px;
    border-radius: var(--thrivosign-radius);
    cursor: pointer;
    background: transparent;
    border: 0;
}
.fs-topbar__user:hover,
.fs-topbar__user:focus-visible {
    background-color: var(--thrivosign-divider);
}
.fs-topbar__user-avatar {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--thrivosign-navy-soft);
    color: var(--thrivosign-text-inverse);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--thrivosign-fs-13);
}
.fs-topbar__user-name {
    color: var(--thrivosign-text);
    font-weight: 600;
}
.fs-topbar__user-role {
    color: var(--thrivosign-text-muted);
    font-size: var(--thrivosign-fs-12);
    font-weight: 400;
    margin-left: 6px;
}
.fs-topbar__menu {
    position: absolute;
    top: calc(var(--thrivosign-topbar-height) - 4px);
    right: var(--thrivosign-space-6);
    min-width: 220px;
    background: var(--thrivosign-surface);
    border: 1px solid var(--thrivosign-border);
    border-radius: var(--thrivosign-radius);
    box-shadow: var(--thrivosign-shadow-lg);
    padding: 6px 0;
    display: none;
    z-index: 1025;
}
.fs-topbar__menu.is-open { display: block; }
.fs-topbar__menu a,
.fs-topbar__menu button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: left;
    background: transparent;
    border: 0;
    padding: 8px 14px;
    color: var(--thrivosign-text);
    font-size: var(--thrivosign-fs-14);
    text-decoration: none;
}
.fs-topbar__menu a:hover,
.fs-topbar__menu button:hover,
.fs-topbar__menu a:focus-visible,
.fs-topbar__menu button:focus-visible {
    background-color: var(--thrivosign-divider);
    color: var(--thrivosign-navy);
    text-decoration: none;
}

/* Main content. */
.fs-main {
    grid-area: main;
    padding: var(--thrivosign-space-6);
    min-width: 0;
}
.fs-main__inner {
    max-width: var(--thrivosign-content-max);
    margin: 0 auto;
}

/* Breadcrumb. */
.fs-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--thrivosign-text-muted);
    font-size: var(--thrivosign-fs-13);
    margin-bottom: var(--thrivosign-space-3);
    flex-wrap: wrap;
}
.fs-breadcrumb a {
    color: var(--thrivosign-text-muted);
    text-decoration: none;
}
.fs-breadcrumb a:hover { color: var(--thrivosign-navy); }
.fs-breadcrumb__sep { color: var(--thrivosign-text-soft); }
.fs-breadcrumb__current {
    color: var(--thrivosign-text);
    font-weight: 500;
}

/* Page header. */
.fs-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--thrivosign-space-4);
    margin-bottom: var(--thrivosign-space-5);
    flex-wrap: wrap;
}
.fs-page-header__main { min-width: 0; }
.fs-page-header__title {
    font-size: var(--thrivosign-fs-24);
    color: var(--thrivosign-navy);
    margin: 0 0 4px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}
.fs-page-header__description {
    color: var(--thrivosign-text-muted);
    font-size: var(--thrivosign-fs-14);
    margin: 0;
    max-width: 80ch;
}
.fs-page-header__actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

/* Footer. */
.fs-footer {
    border-top: 1px solid var(--thrivosign-border);
    background: var(--thrivosign-surface);
    padding: 14px var(--thrivosign-space-6);
    color: var(--thrivosign-text-muted);
    font-size: var(--thrivosign-fs-12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: var(--thrivosign-space-6);
}
.fs-footer__brand { font-weight: 600; color: var(--thrivosign-navy); }


/* ===== thrivosign-components.css (consolidated) ===== */
/* ThrivoSign Web Manager — components
 *
 * Cards, alerts, badges, status pills, tables, form fields, action buttons.
 * Loaded after thrivosign-layout.css.
 */

/* Cards. */
.fs-card {
    background: var(--thrivosign-surface);
    border: 1px solid var(--thrivosign-border);
    border-radius: var(--thrivosign-radius);
    box-shadow: var(--thrivosign-shadow-sm);
    overflow: hidden;
    margin-bottom: var(--thrivosign-space-5);
}
.fs-card__header {
    padding: var(--thrivosign-space-4) var(--thrivosign-space-5);
    border-bottom: 1px solid var(--thrivosign-border-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--thrivosign-space-3);
    background: var(--thrivosign-surface);
}
.fs-card__title {
    font-size: var(--thrivosign-fs-16);
    font-weight: 600;
    color: var(--thrivosign-navy);
    margin: 0;
}
.fs-card__subtitle {
    font-size: var(--thrivosign-fs-13);
    color: var(--thrivosign-text-muted);
    margin: 2px 0 0;
}
.fs-card__body {
    padding: var(--thrivosign-space-5);
}
.fs-card__footer {
    padding: var(--thrivosign-space-3) var(--thrivosign-space-5);
    border-top: 1px solid var(--thrivosign-border-soft);
    background: var(--thrivosign-surface-alt);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}
.fs-card--flush .fs-card__body { padding: 0; }
.fs-card--padded .fs-card__body { padding: var(--thrivosign-space-6); }
.fs-card--accent { border-top: 3px solid var(--thrivosign-orange); }

/* Stat / KPI cards. */
.fs-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: var(--thrivosign-space-5);
    background: var(--thrivosign-surface);
    border: 1px solid var(--thrivosign-border);
    border-radius: var(--thrivosign-radius);
    box-shadow: var(--thrivosign-shadow-sm);
    min-height: 96px;
}
.fs-stat__label {
    font-size: var(--thrivosign-fs-12);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--thrivosign-text-muted);
    font-weight: 700;
}
.fs-stat__value {
    font-size: var(--thrivosign-fs-28);
    font-weight: 700;
    color: var(--thrivosign-navy);
    line-height: 1.1;
}
.fs-stat__hint {
    color: var(--thrivosign-text-muted);
    font-size: var(--thrivosign-fs-12);
    margin-top: 2px;
}
.fs-stat--empty .fs-stat__value {
    color: var(--thrivosign-text-soft);
    font-weight: 500;
    font-size: var(--thrivosign-fs-14);
}

/* Alerts. */
.fs-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px var(--thrivosign-space-4);
    border-radius: var(--thrivosign-radius);
    border: 1px solid transparent;
    margin-bottom: var(--thrivosign-space-4);
    font-size: var(--thrivosign-fs-14);
}
.fs-alert__icon { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.fs-alert__title { font-weight: 600; display: block; margin-bottom: 2px; }
.fs-alert__body { flex: 1 1 auto; }
.fs-alert--info    { background: var(--thrivosign-info-bg);    color: var(--thrivosign-info);    border-color: rgba(43,108,176,0.25); }
.fs-alert--success { background: var(--thrivosign-success-bg); color: var(--thrivosign-success); border-color: rgba(31,138,91,0.25); }
.fs-alert--warning { background: var(--thrivosign-warning-bg); color: var(--thrivosign-warning); border-color: rgba(183,121,31,0.25); }
.fs-alert--danger  { background: var(--thrivosign-danger-bg);  color: var(--thrivosign-danger);  border-color: rgba(197,48,48,0.25); }
.fs-alert--neutral { background: var(--thrivosign-neutral-bg); color: var(--thrivosign-text);    border-color: var(--thrivosign-border); }
.fs-alert--closeable { padding-right: 8px; }
.fs-alert__close {
    background: transparent;
    border: 0;
    color: inherit;
    opacity: 0.7;
    padding: 2px 6px;
    border-radius: var(--thrivosign-radius-sm);
    cursor: pointer;
}
.fs-alert__close:hover { opacity: 1; }

/* Status badges / pills. */
.fs-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border-radius: var(--thrivosign-radius-pill);
    font-size: var(--thrivosign-fs-12);
    font-weight: 600;
    line-height: 1.6;
    background: var(--thrivosign-neutral-bg);
    color: var(--thrivosign-text);
    border: 1px solid transparent;
    white-space: nowrap;
}
.fs-badge--success { background: var(--thrivosign-success-bg); color: var(--thrivosign-success); }
.fs-badge--warning { background: var(--thrivosign-warning-bg); color: var(--thrivosign-warning); }
.fs-badge--danger  { background: var(--thrivosign-danger-bg);  color: var(--thrivosign-danger);  }
.fs-badge--info    { background: var(--thrivosign-info-bg);    color: var(--thrivosign-info);    }
.fs-badge--orange  { background: rgba(244,123,32,0.12);       color: var(--thrivosign-orange-dark); }
.fs-badge--neutral { background: var(--thrivosign-neutral-bg); color: var(--thrivosign-text-muted); }
.fs-badge--dot::before {
    content: "";
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: currentColor;
    margin-right: 2px;
}

/* Tables. */
.fs-table-wrap {
    background: var(--thrivosign-surface);
    border: 1px solid var(--thrivosign-border);
    border-radius: var(--thrivosign-radius);
    box-shadow: var(--thrivosign-shadow-sm);
    /* was overflow:hidden, which CLIPPED wide tables at every width above 767px - the
       right-hand columns simply could not be reached. Scroll horizontally instead, at
       any width, so a wide table stays fully viewable. */
    overflow-x: auto;
    overflow-y: hidden;
}
.fs-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: var(--thrivosign-fs-13);
    color: var(--thrivosign-text);
    background: var(--thrivosign-surface);
}
.fs-table th,
.fs-table td {
    padding: 10px 14px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid var(--thrivosign-border-soft);
}
.fs-table thead th {
    background: var(--thrivosign-surface-alt);
    color: var(--thrivosign-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: var(--thrivosign-fs-12);
    letter-spacing: 0.4px;
    border-bottom: 1px solid var(--thrivosign-border);
    position: sticky;
    top: 0;
    z-index: 1;
}
.fs-table tbody tr:hover { background-color: var(--thrivosign-surface-alt); }
.fs-table tbody tr:last-child td { border-bottom: 0; }
.fs-table__empty {
    padding: 32px 16px;
    text-align: center;
    color: var(--thrivosign-text-muted);
}
.fs-table__actions { white-space: nowrap; }
/* Fixed 28px square controls apply ONLY to explicitly marked icon-only controls (class fs-icon-btn). The text buttons used in action
   cells (a.fs-btn / button.fs-btn, usually inside .fs-cluster) keep their normal .fs-btn sizing, so their labels are never clipped. */
.fs-table__actions .fs-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px;
    margin-right: 4px;
    border: 0;
    background: transparent;
    border-radius: var(--thrivosign-radius-sm);
    color: var(--thrivosign-text-muted);
    cursor: pointer;
    text-decoration: none;
}
.fs-table__actions .fs-icon-btn:hover,
.fs-table__actions .fs-icon-btn:focus-visible {
    background: var(--thrivosign-divider);
    color: var(--thrivosign-navy);
    text-decoration: none;
}
.fs-table__actions .fs-icon-btn svg { width: 16px; height: 16px; }
/* Text actions sit in a wrapping row with a readable gap; forms inside the row (POST + CSRF buttons) add no margin of their own. */
.fs-table__actions .fs-cluster { flex-wrap: wrap; gap: 8px; max-width: 24rem; }
.fs-table__actions .fs-cluster form { margin: 0; display: inline-flex; }
.fs-table__actions .fs-btn { flex: 0 0 auto; white-space: nowrap; }

/* Form fields. */
.fs-form { margin: 0; }
.fs-form-field { margin-bottom: var(--thrivosign-space-4); }
.fs-form-field__label {
    display: block;
    font-weight: 600;
    font-size: var(--thrivosign-fs-13);
    color: var(--thrivosign-text);
    margin-bottom: 6px;
}
.fs-form-field__label--required::after {
    content: " *";
    color: var(--thrivosign-danger);
    font-weight: 700;
}
.fs-form-field__hint {
    display: block;
    font-size: var(--thrivosign-fs-12);
    color: var(--thrivosign-text-muted);
    margin-top: 4px;
}
.fs-form-field__error {
    display: block;
    color: var(--thrivosign-danger);
    font-size: var(--thrivosign-fs-12);
    margin-top: 4px;
}
.fs-form-field--error .form-control,
.fs-form-field--error input,
.fs-form-field--error select,
.fs-form-field--error textarea {
    border-color: var(--thrivosign-danger);
    box-shadow: 0 0 0 3px rgba(197,48,48,0.12);
}
.fs-form-field__checkbox,
.fs-form-field__radio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 18px;
    font-weight: 500;
    color: var(--thrivosign-text);
}
.fs-form-field__checkbox input,
.fs-form-field__radio input {
    width: 16px; height: 16px;
    margin: 0;
}

/* Action bar. */
.fs-actionbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--thrivosign-space-3);
    flex-wrap: wrap;
    margin-bottom: var(--thrivosign-space-4);
}
.fs-actionbar__filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.fs-actionbar__buttons { display: flex; gap: 8px; flex-wrap: wrap; }

/* Buttons (ThrivoSign-flavoured on top of Bootstrap 3). */
.fs-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--thrivosign-radius);
    border: 1px solid var(--thrivosign-border);
    background: var(--thrivosign-surface);
    color: var(--thrivosign-text);
    font-size: var(--thrivosign-fs-13);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background-color var(--thrivosign-transition), color var(--thrivosign-transition), border-color var(--thrivosign-transition);
    line-height: 1.4;
    white-space: nowrap;
}
.fs-btn:hover,
.fs-btn:focus-visible {
    background: var(--thrivosign-divider);
    color: var(--thrivosign-navy);
    text-decoration: none;
}
.fs-btn:disabled,
.fs-btn[disabled] {
    cursor: not-allowed;
    opacity: 0.55;
    background: var(--thrivosign-neutral-bg);
    color: var(--thrivosign-text-muted);
    border-color: var(--thrivosign-border);
    box-shadow: none;
}
.fs-btn:disabled:hover,
.fs-btn[disabled]:hover {
    background: var(--thrivosign-neutral-bg);
    color: var(--thrivosign-text-muted);
}
.fs-btn--primary {
    background: var(--thrivosign-orange);
    color: var(--thrivosign-text-inverse);
    border-color: var(--thrivosign-orange-dark);
}
.fs-btn--primary:hover,
.fs-btn--primary:focus-visible {
    background: var(--thrivosign-orange-dark);
    color: var(--thrivosign-text-inverse);
    border-color: var(--thrivosign-orange-dark);
}
.fs-btn--secondary {
    background: var(--thrivosign-navy);
    color: var(--thrivosign-text-inverse);
    border-color: var(--thrivosign-navy-dark);
}
.fs-btn--secondary:hover,
.fs-btn--secondary:focus-visible {
    background: var(--thrivosign-navy-dark);
    color: var(--thrivosign-text-inverse);
}
.fs-btn--ghost {
    background: transparent;
    color: var(--thrivosign-text);
    border-color: var(--thrivosign-border);
}
.fs-btn--danger {
    background: var(--thrivosign-danger);
    color: var(--thrivosign-text-inverse);
    border-color: var(--thrivosign-danger);
}
.fs-btn--danger:hover,
.fs-btn--danger:focus-visible {
    background: #A52727;
    color: var(--thrivosign-text-inverse);
    border-color: #A52727;
}
.fs-btn--sm { padding: 4px 10px; font-size: var(--thrivosign-fs-12); }
.fs-btn--lg { padding: 10px 18px; font-size: var(--thrivosign-fs-14); }
.fs-btn--block { display: flex; width: 100%; justify-content: center; }
.fs-btn svg { width: 14px; height: 14px; }

/* Empty state. */
.fs-empty {
    text-align: center;
    padding: var(--thrivosign-space-9) var(--thrivosign-space-5);
    color: var(--thrivosign-text-muted);
}
.fs-empty__icon {
    width: 40px; height: 40px;
    color: var(--thrivosign-text-soft);
    margin: 0 auto var(--thrivosign-space-3);
    display: block;
}
.fs-empty__title {
    color: var(--thrivosign-text);
    font-size: var(--thrivosign-fs-16);
    font-weight: 600;
    margin: 0 0 6px;
}
.fs-empty__description { font-size: var(--thrivosign-fs-14); margin: 0; }

/* Pagination. */
.fs-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--thrivosign-space-3);
    padding: var(--thrivosign-space-3) var(--thrivosign-space-4);
    border-top: 1px solid var(--thrivosign-border-soft);
    background: var(--thrivosign-surface-alt);
    font-size: var(--thrivosign-fs-13);
    color: var(--thrivosign-text-muted);
    flex-wrap: wrap;
}
.fs-pagination__pages {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.fs-pagination__pages a,
.fs-pagination__pages span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    padding: 4px 8px;
    border-radius: var(--thrivosign-radius-sm);
    border: 1px solid var(--thrivosign-border);
    background: var(--thrivosign-surface);
    color: var(--thrivosign-text);
    text-decoration: none;
    font-weight: 500;
}
.fs-pagination__pages a:hover,
.fs-pagination__pages a:focus-visible {
    background: var(--thrivosign-divider);
    color: var(--thrivosign-navy);
    text-decoration: none;
}
.fs-pagination__pages .is-active {
    background: var(--thrivosign-orange);
    color: var(--thrivosign-text-inverse);
    border-color: var(--thrivosign-orange-dark);
}

/* Grid utilities used by modernised JSPs. */
.fs-grid {
    display: grid;
    gap: var(--thrivosign-space-4);
}
.fs-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fs-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fs-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fs-grid--auto-300 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.fs-grid--auto-260 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.fs-stack { display: flex; flex-direction: column; gap: var(--thrivosign-space-3); }
.fs-cluster { display: flex; flex-wrap: wrap; gap: var(--thrivosign-space-2); align-items: center; }
.fs-between { display: flex; align-items: center; justify-content: space-between; gap: var(--thrivosign-space-3); }

/* Detail / metadata grid. */
.fs-meta {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 8px var(--thrivosign-space-4);
    margin: 0;
}
.fs-meta dt { color: var(--thrivosign-text-muted); font-weight: 600; }
.fs-meta dd { margin: 0; color: var(--thrivosign-text); word-break: break-word; }


/* ===== thrivosign-pages.css (consolidated) ===== */
/* ThrivoSign Web Manager — page-specific styles
 *
 * Login screen, dashboard, eSign monitoring pages, and any other visual
 * touch-ups that don't belong in the global theme or component layers.
 */

/* Login page. */
.fs-login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--thrivosign-navy) 0%, var(--thrivosign-navy-dark) 100%);
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    justify-items: center;
    padding: 24px;
}
.fs-login-page__shell {
    width: 100%;
    max-width: 960px;
    display: grid;
    grid-template-columns: 1fr;
    background: var(--thrivosign-surface);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--thrivosign-shadow-lg);
}
.fs-login-page__brand {
    display: none;
}
.fs-login-page__panel {
    padding: 40px 32px;
}
.fs-login-page__brand-mark {
    width: 48px; height: 48px;
    background: var(--thrivosign-orange);
    color: var(--thrivosign-text-inverse);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--thrivosign-fs-20);
    border-radius: 8px;
    margin-bottom: 16px;
}
.fs-login-page__title {
    color: var(--thrivosign-navy);
    font-size: var(--thrivosign-fs-24);
    margin: 0 0 4px;
    font-weight: 700;
}
.fs-login-page__subtitle {
    color: var(--thrivosign-text-muted);
    font-size: var(--thrivosign-fs-14);
    margin: 0 0 24px;
}
.fs-login-page__form .fs-form-field { margin-bottom: 16px; }
.fs-login-page__form .form-control {
    height: 42px;
    font-size: var(--thrivosign-fs-14);
    border-radius: var(--thrivosign-radius);
    border: 1px solid var(--thrivosign-border);
    padding: 8px 12px;
    width: 100%;
    background: var(--thrivosign-surface);
    color: var(--thrivosign-text);
    transition: border-color var(--thrivosign-transition), box-shadow var(--thrivosign-transition);
}
.fs-login-page__form .form-control:focus {
    border-color: var(--thrivosign-orange);
    box-shadow: var(--thrivosign-shadow-focus);
    outline: none;
}
.fs-login-page__form .form-control[readonly] {
    background: var(--thrivosign-surface-alt);
}
.fs-login-page__password-wrap {
    position: relative;
}
.fs-login-page__password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    color: var(--thrivosign-text-muted);
    padding: 4px 6px;
    border-radius: var(--thrivosign-radius-sm);
    cursor: pointer;
    font-size: var(--thrivosign-fs-12);
    font-weight: 600;
}
.fs-login-page__password-toggle:hover,
.fs-login-page__password-toggle:focus-visible {
    color: var(--thrivosign-navy);
    background: var(--thrivosign-divider);
}
/*
  Show/hide eye on the set-new-password screens (thrivosign-password.js). Scoped to the password
  wrapper only: the input keeps its full width and border, and gains right padding so typed text
  never runs under the icon.
*/
.fs-login-page__password-wrap .form-control { padding-right: 44px; }
.fs-login-page__password-wrap .form-control::-ms-reveal,
.fs-login-page__password-wrap .form-control::-ms-clear { display: none; }  /* no second eye in Edge */
.fs-login-page__password-wrap .fs-login-page__password-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    line-height: 0;
}
.fs-login-page__password-wrap .fs-login-page__password-toggle[hidden] { display: none; }
.fs-login-page__password-wrap .fs-login-page__password-toggle:focus-visible {
    outline: 2px solid var(--thrivosign-orange);
    outline-offset: 1px;
}
.fs-login-page__password-toggle svg { width: 18px; height: 18px; display: block; }

/* Password requirements checklist, rendered from the user's group policy. */
.fs-password-rules {
    list-style: none;
    margin: 0 0 16px;
    padding: 10px 12px;
    background: var(--thrivosign-surface-alt);
    border-radius: var(--thrivosign-radius);
    font-size: var(--thrivosign-fs-13);
    color: var(--thrivosign-text-muted);
}
.fs-password-rules__title {
    font-weight: 600;
    color: var(--thrivosign-text);
    margin-bottom: 4px;
}
.fs-password-rules ul { list-style: none; margin: 0; padding: 0; }
.fs-password-rules li[data-rule] { position: relative; padding-left: 22px; margin: 2px 0; }
.fs-password-rules li[data-rule]::before {
    content: "\25CB";                        /* ○ not yet satisfied */
    position: absolute;
    left: 2px;
    top: 0;
}
.fs-password-rules li[data-rule].is-met { color: var(--thrivosign-success); }
.fs-password-rules li[data-rule].is-met::before { content: "\2713"; font-weight: 700; }  /* ✓ */
.fs-login-page__submit {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
    padding: 10px 18px;
    font-size: var(--thrivosign-fs-14);
}
.fs-login-page__footer {
    margin-top: 18px;
    text-align: center;
    color: var(--thrivosign-text-muted);
    font-size: var(--thrivosign-fs-12);
}
.fs-login-page__version { display: block; margin-top: 6px; }

/* Login two-column layout on wider screens. */
@media (min-width: 768px) {
    .fs-login-page__shell { grid-template-columns: 1fr 1fr; }
    .fs-login-page__brand {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 48px 36px;
        background: linear-gradient(180deg, var(--thrivosign-navy) 0%, var(--thrivosign-navy-dark) 100%);
        color: var(--thrivosign-text-inverse);
    }
    .fs-login-page__brand-title {
        font-size: var(--thrivosign-fs-28);
        color: var(--thrivosign-text-inverse);
        margin: 0 0 6px;
    }
    .fs-login-page__brand-tagline {
        color: rgba(255,255,255,0.7);
        font-size: var(--thrivosign-fs-14);
        max-width: 32ch;
    }
    .fs-login-page__brand-mark--lg {
        width: 64px; height: 64px;
        font-size: var(--thrivosign-fs-24);
        margin-bottom: 24px;
    }
    /*
      One FS mark per screen, not two.

      Below 768px .fs-login-page__brand is display:none, so the mark inside the sign-in panel is
      the ONLY branding on the page and has to stay. From 768px up the brand panel appears and
      carries its own large mark, which left the same badge rendered twice side by side.

      Hiding the panel copy here rather than deleting it from login.jsp is deliberate: removing the
      markup would fix the desktop duplicate by leaving the mobile layout with no branding at all.
    */
    .fs-login-page__panel .fs-login-page__brand-mark {
        display: none;
    }
}

/* Dashboard cards. */
.fs-dashboard-section {
    margin-bottom: var(--thrivosign-space-6);
}
.fs-dashboard-section__title {
    color: var(--thrivosign-navy);
    font-size: var(--thrivosign-fs-18);
    font-weight: 600;
    margin: 0 0 var(--thrivosign-space-3);
    display: flex;
    align-items: center;
    gap: 8px;
}
.fs-dashboard-section__title::before {
    content: "";
    display: inline-block;
    width: 4px; height: 18px;
    background: var(--thrivosign-orange);
    border-radius: 2px;
}

/* eSign operation/operation table improvements. */
.fs-operation-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--thrivosign-space-3);
    padding: var(--thrivosign-space-4);
    background: var(--thrivosign-surface-alt);
    border-radius: var(--thrivosign-radius);
    border: 1px solid var(--thrivosign-border-soft);
    margin-bottom: var(--thrivosign-space-4);
}
.fs-operation-summary__cell {
    min-width: 0;
}
.fs-operation-summary__label {
    color: var(--thrivosign-text-muted);
    font-size: var(--thrivosign-fs-12);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 700;
    display: block;
    margin-bottom: 2px;
}
.fs-operation-summary__value {
    color: var(--thrivosign-text);
    font-size: var(--thrivosign-fs-14);
    font-weight: 600;
    word-break: break-word;
    font-family: var(--thrivosign-font-mono);
    background: transparent;
    border: 0;
    padding: 0;
}

/* Legacy Bootstrap 3 form compatibility. */
.form-horizontal .control-label {
    text-align: left;
    color: var(--thrivosign-text);
    font-weight: 600;
    padding-top: 10px;
}
.form-control {
    border-radius: var(--thrivosign-radius);
    border-color: var(--thrivosign-border);
}
.form-control:focus {
    border-color: var(--thrivosign-orange);
    box-shadow: var(--thrivosign-shadow-focus);
}
.has-error .form-control,
.has-error .form-control:focus {
    border-color: var(--thrivosign-danger);
    box-shadow: 0 0 0 3px rgba(197,48,48,0.12);
}
.help-block { color: var(--thrivosign-text-muted); }
.text-muted { color: var(--thrivosign-text-muted) !important; }


/* ===== thrivosign-responsive.css (consolidated) ===== */
/* ThrivoSign Web Manager — responsive behaviour
 *
 * Breakpoints:
 *   mobile:   0      - 767px   (sidebar becomes a drawer)
 *   tablet:   768px  - 1023px  (sidebar collapsed to icons)
 *   laptop:   1024px - 1279px (sidebar collapsed to icons)
 *   desktop:  1280px+        (sidebar expanded)
 */

/* Mobile / tablet: sidebar hidden, topbar shows a hamburger. */
@media (max-width: 1023px) {
    .fs-app,
    .fs-app--collapsed {
        grid-template-columns: 1fr;
        grid-template-areas:
            "topbar"
            "main";
    }
    .fs-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: var(--thrivosign-sidebar-width);
        transform: translateX(-100%);
        transition: transform var(--thrivosign-transition);
    }
    .fs-app.is-sidebar-open .fs-sidebar {
        transform: translateX(0);
        box-shadow: var(--thrivosign-shadow-lg);
    }
    .fs-app.is-sidebar-open::after {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(8, 31, 51, 0.45);
        z-index: 1015;
    }
    .fs-main { padding: var(--thrivosign-space-4); }
    .fs-topbar { padding: 0 var(--thrivosign-space-3); }
    .fs-topbar__user-name { display: none; }
}

/* Laptop: sidebar collapsed to icons. */
@media (min-width: 1024px) and (max-width: 1279px) {
    .fs-app {
        grid-template-columns: var(--thrivosign-sidebar-width-collapsed) 1fr;
        grid-template-areas:
            "sidebar topbar"
            "sidebar main";
    }
    .fs-app .fs-nav-item__label,
    .fs-app .fs-nav-group__label,
    .fs-app .fs-nav-group__caret,
    .fs-app .fs-nav-group__children,
    .fs-app .fs-sidebar__footer-text {
        display: none;
    }
    .fs-app .fs-nav-item,
    .fs-app .fs-nav-group__toggle {
        justify-content: center;
        padding: 11px 0;
        border-left: 0;
    }
    .fs-app .fs-nav-item__icon,
    .fs-app .fs-nav-group__toggle-icon {
        margin: 0;
    }
    .fs-app .fs-nav-item[aria-current="page"] {
        background-color: transparent;
        border-left: 0;
        box-shadow: inset 3px 0 0 var(--thrivosign-orange);
    }
}

/* Desktop: full sidebar. */
@media (min-width: 1280px) {
    .fs-app {
        grid-template-columns: var(--thrivosign-sidebar-width) 1fr;
    }
}

/* Tables become scrollable on small screens. */
@media (max-width: 767px) {
    .fs-table-wrap { overflow-x: auto; }
    .fs-table { min-width: 600px; }
    .fs-actionbar { flex-direction: column; align-items: stretch; }
    .fs-actionbar__filters,
    .fs-actionbar__buttons { width: 100%; }
    .fs-page-header { flex-direction: column; align-items: stretch; }
    .fs-page-header__actions { width: 100%; }
    .fs-meta { grid-template-columns: 1fr; }
    .fs-meta dt { color: var(--thrivosign-text-muted); }
}

/* Forms: stack on mobile. */
@media (max-width: 767px) {
    .fs-grid--2,
    .fs-grid--3,
    .fs-grid--4 {
        grid-template-columns: 1fr;
    }
    .form-horizontal .control-label {
        text-align: left;
        padding-top: 0;
    }
}

/* Print. */
@media print {
    .fs-sidebar,
    .fs-topbar,
    .fs-footer,
    .fs-actionbar,
    .fs-pagination,
    .fs-table__actions {
        display: none !important;
    }
    .fs-app,
    .fs-app--collapsed {
        grid-template-columns: 1fr;
        grid-template-areas: "main";
    }
    .fs-main { padding: 0; }
    body { background: #fff; }
}


/* ===== thrivosign-legacy-modern.css (consolidated) ===== */
/* ThrivoSign Web Manager V2 - safe legacy compatibility layer.
 * UI-only: no routes, form names, controller contracts, permissions or data bindings changed.
 */
body { padding: 0 24px 32px; background: var(--thrivosign-background); }
body > .navbar { margin-left: -24px; margin-right: -24px; }
.navbar-inverse {
    min-height: 58px; margin-bottom: 24px; border: 0; border-radius: 0;
    background: var(--thrivosign-navy); box-shadow: var(--thrivosign-shadow);
}
.navbar-inverse > div { max-width: var(--thrivosign-content-max); margin: 0 auto; padding: 0 18px; }
.navbar-inverse .navbar-brand { color: #fff; font-weight: 700; letter-spacing: .2px; padding: 19px 18px; }
.navbar-inverse .navbar-brand:before { content: "FS"; display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px; margin:-7px 10px -7px 0; border-radius:6px; background:var(--thrivosign-orange); font-size:12px; }
.navbar-inverse .navbar-nav > li > a { color: rgba(255,255,255,.82); padding: 19px 12px; font-weight: 600; }
.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > li > a:focus { color:#fff; background:rgba(255,255,255,.08); }
.navbar-inverse .navbar-nav > li.active > a { color:#fff; background:transparent; border-bottom:3px solid var(--thrivosign-orange); }

body > div:not(.navbar):not(.container), body > form, body > table { max-width:var(--thrivosign-content-max); margin-left:auto; margin-right:auto; }
h1 { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin:0 0 20px; padding-bottom:14px; border-bottom:1px solid var(--thrivosign-border); }
h1 .btn, h1 button { margin-left:0; }

.table, table { background:var(--thrivosign-surface); }
.table-responsive { border:1px solid var(--thrivosign-border); border-radius:var(--thrivosign-radius-lg); box-shadow:var(--thrivosign-shadow-sm); }
table:not(.ui-datepicker-calendar) { border-collapse:separate; border-spacing:0; width:100%; }
table:not(.ui-datepicker-calendar) th { background:var(--thrivosign-surface-alt); color:var(--thrivosign-navy); font-size:12px; text-transform:uppercase; letter-spacing:.35px; border-bottom:1px solid var(--thrivosign-border) !important; padding:12px 10px !important; }
table:not(.ui-datepicker-calendar) td { border-bottom:1px solid var(--thrivosign-divider); padding:11px 10px !important; vertical-align:middle !important; }
table:not(.ui-datepicker-calendar) tr:hover td { background:#fffaf6; }

.form-horizontal, form { background:var(--thrivosign-surface); border:1px solid var(--thrivosign-border-soft); border-radius:var(--thrivosign-radius-lg); padding:20px; box-shadow:var(--thrivosign-shadow-sm); }
.form-control { min-height:38px; box-shadow:none; }
label { color:var(--thrivosign-text); font-weight:600; }
.btn { border-radius:var(--thrivosign-radius); font-weight:600; box-shadow:none; }
.btn-info { color:#fff; background:var(--thrivosign-navy-soft); border-color:var(--thrivosign-navy-soft); }
.btn-info:hover,.btn-info:focus { background:var(--thrivosign-navy); border-color:var(--thrivosign-navy); }
.btn-danger { background:var(--thrivosign-danger); border-color:var(--thrivosign-danger); }
.alert { border:0; border-left:4px solid currentColor; border-radius:var(--thrivosign-radius); box-shadow:var(--thrivosign-shadow-sm); }
.pagination > li > a, .pagination > li > span { color:var(--thrivosign-navy); }
.pagination > .active > a, .pagination > .active > span { background:var(--thrivosign-orange); border-color:var(--thrivosign-orange-dark); }

.fs-legacy-page-card { max-width:var(--thrivosign-content-max); margin:0 auto; }
.fs-legacy-page-card > h1:first-child { margin-top:0; }

@media (max-width: 991px) {
    body { padding:0 12px 24px; }
    body > .navbar { margin-left:-12px; margin-right:-12px; }
    .navbar-inverse .navbar-nav > li > a { padding:12px; }
    table { min-width:760px; }
    form table { min-width:0; }
    form table tr, form table td { display:block; width:100% !important; }
}



/* ========================================================================== 
   THRIVOSIGN CUSTOMER THEME OVERRIDES
   Edit the variables in :root for approved branding amendments.
   All application-specific UI styling is consolidated in this file.
   ========================================================================== */
:root {
  --fs-brand-orange: #f97316;
  --fs-brand-orange-dark: #d95d0b;
  --fs-brand-navy: #0f2f4a;
  --fs-brand-navy-2: #173f63;
  --fs-page-bg: #f4f7fb;
  --fs-surface: #ffffff;
  --fs-surface-soft: #f8fafc;
  --fs-text: #172033;
  --fs-muted: #667085;
  --fs-border: #d9e2ec;
  --fs-success: #16803b;
  --fs-warning: #b54708;
  --fs-danger: #c92a2a;
  --fs-info: #175cd3;
  --fs-font-family: Inter, "Segoe UI", Arial, sans-serif;
  --fs-font-size: 15px;
  --fs-nav-font-size: 14px;
  --fs-table-font-size: 14px;
  --fs-radius: 10px;
  --fs-shadow: 0 8px 24px rgba(15, 47, 74, .08);
  --fs-content-max: 1600px;
}

html { font-size: 100%; }
body {
  margin: 0;
  background: var(--fs-page-bg);
  color: var(--fs-text);
  font-family: var(--fs-font-family);
  font-size: var(--fs-font-size);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body, input, select, textarea, button { font-family: var(--fs-font-family); }
a { color: var(--fs-brand-navy-2); }
a:hover, a:focus { color: var(--fs-brand-orange-dark); }

.container { width: auto; max-width: var(--fs-content-max); margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }

/* Global headings and page rhythm */
h1 { font-size: 28px; line-height: 1.2; font-weight: 700; }
h2 { font-size: 23px; line-height: 1.25; font-weight: 700; }
h3 { font-size: 19px; line-height: 1.3; font-weight: 700; }
h4 { font-size: 17px; line-height: 1.35; font-weight: 650; }
.page-header { border: 0; margin: 22px 0 18px; padding: 0; }
.page-header h1, .page-header h2 { margin: 0; color: var(--fs-brand-navy); }

/* Main navigation: readable, wrap-safe, and clean on legacy markup */
.navbar.navbar-inverse {
  background: var(--fs-brand-navy);
  border: 0;
  border-radius: 0;
  min-height: 64px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(15,47,74,.14);
}
.navbar-inverse > div { max-width: var(--fs-content-max); margin: 0 auto; padding: 0 20px; display: flex; align-items: center; flex-wrap: wrap; }
.navbar-header { display: flex; align-items: center; min-height: 64px; }
.navbar-header br { display: none; }
/* The brand is the FS badge alone. The word "Home" beside it is now
   sr-only text in header.jsp -- kept so the link still has an accessible
   name -- so the anchor is sized to the badge and nothing else. */
.navbar-inverse .navbar-brand {
  height: 64px;
  width: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0;
  color: #fff;
  font-size: 21px;
  font-weight: 750;
  position: relative;
}
.navbar-inverse .navbar-brand::before {
  content: "FS";
  position: absolute;
  left: 4px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--fs-brand-orange);
  color: white;
  font-size: 12px;
  font-weight: 800;
}
#navbar-header { display: contents; }
.navbar-nav { display: flex; align-items: stretch; flex-wrap: wrap; margin: 0; }
.navbar-nav > li { float: none; }
.navbar-inverse .navbar-nav > li > a {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 0 12px;
  color: rgba(255,255,255,.92);
  font-size: var(--fs-nav-font-size);
  font-weight: 650;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > li > a:focus,
.navbar-inverse .navbar-nav > .active > a,
.navbar-inverse .navbar-nav > .active > a:hover {
  color: #fff;
  background: rgba(255,255,255,.06);
  border-bottom-color: var(--fs-brand-orange);
}

/* Cards/panels */
.panel, .well, .jumbotron, .fs-card, form > .container, .container > form {
  border-color: var(--fs-border);
  border-radius: var(--fs-radius);
}
.panel, .well, .fs-card { background: var(--fs-surface); box-shadow: var(--fs-shadow); }
.panel-heading { border-radius: var(--fs-radius) var(--fs-radius) 0 0; font-weight: 700; }

/* Forms */
label, .control-label { color: var(--fs-text); font-size: 14px; font-weight: 650; }
.form-control, input[type="text"], input[type="password"], input[type="email"], input[type="number"], input[type="date"], input[type="datetime-local"], select, textarea {
  min-height: 42px;
  padding: 9px 12px;
  font-size: 15px;
  color: var(--fs-text);
  background: #fff;
  border: 1px solid var(--fs-border);
  border-radius: 7px;
  box-shadow: none;
}
.form-control:focus, input:focus, select:focus, textarea:focus {
  border-color: var(--fs-brand-orange);
  box-shadow: 0 0 0 3px rgba(249,115,22,.14);
  outline: 0;
}
.form-group { margin-bottom: 18px; }
.searchinput1 { width: min(100%, 360px) !important; min-height: 42px !important; margin: 0 !important; padding: 9px 12px !important; background: #fff !important; border: 1px solid var(--fs-border) !important; border-radius: 7px !important; font-size: 15px !important; }

/* Buttons */
.btn, button, input[type="submit"], input[type="button"] {
  min-height: 40px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
  padding: 9px 15px;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .05s ease;
}
.btn:active, button:active { transform: translateY(1px); }
.btn-primary, .btn-warning, input[type="submit"].btn-primary {
  color: #fff;
  background: var(--fs-brand-orange);
  border-color: var(--fs-brand-orange);
}
.btn-primary:hover, .btn-primary:focus, .btn-warning:hover, .btn-warning:focus {
  color: #fff;
  background: var(--fs-brand-orange-dark);
  border-color: var(--fs-brand-orange-dark);
}
.btn-default { color: var(--fs-brand-navy); background: #fff; border-color: var(--fs-border); }
.btn-danger { background: var(--fs-danger); border-color: var(--fs-danger); }

/* Tables: apply to every legacy list screen */
.table-responsive { border: 0; margin-bottom: 20px; }
table, .table { width: 100%; max-width: 100%; background: var(--fs-surface); font-size: var(--fs-table-font-size); }
/*
   .table used to carry `overflow: hidden`, purely so its border-radius clipped the first and last
   rows into the rounded card. That clip applies to EVERYTHING inside the table's box, including
   absolutely-positioned children - so the Actions dropdown on the user list was cut off at the
   table's bottom edge and only a sliver of the menu was visible. A menu cannot be read, let alone
   clicked, through a clip.

   The rounded corners are kept by rounding the corner CELLS instead, which works because the
   table is already `border-collapse: separate`. Nothing is clipped, so a dropdown, a tooltip or a
   datepicker opening from the last row now overlays the page normally. Horizontal scrolling for
   wide tables is unaffected: that lives on the .table-responsive / .fs-table-wrap ancestors. */
.table { border-collapse: separate; border-spacing: 0; border: 1px solid var(--fs-border); border-radius: var(--fs-radius); }
.table > thead > tr:first-child > th:first-child,
.table > thead:first-child > tr:first-child > th:first-child { border-top-left-radius: var(--fs-radius); }
.table > thead > tr:first-child > th:last-child,
.table > thead:first-child > tr:first-child > th:last-child { border-top-right-radius: var(--fs-radius); }
.table > tbody > tr:last-child > td:first-child { border-bottom-left-radius: var(--fs-radius); }
.table > tbody > tr:last-child > td:last-child { border-bottom-right-radius: var(--fs-radius); }

/* A menu opened from a table row must sit above the rows that follow it, and above the striping
   and hover backgrounds those rows paint. */
.table .btn-group.open > .dropdown-menu,
.table .dropdown.open > .dropdown-menu { z-index: 1100; }
.table > thead > tr > th, table > thead > tr > th {
  padding: 13px 12px;
  color: var(--fs-brand-navy);
  background: var(--fs-surface-soft);
  border-bottom: 1px solid var(--fs-border);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .02em;
  text-transform: uppercase;
  vertical-align: middle;
}
.table > tbody > tr > td, table > tbody > tr > td {
  padding: 13px 12px;
  border-top: 1px solid #e8edf3;
  vertical-align: middle;
  line-height: 1.4;
}
.table-striped > tbody > tr:nth-of-type(odd) { background: #fbfcfe; }
.table-hover > tbody > tr:hover, table > tbody > tr:hover { background: #fff8f2; }

/* Tabs and page-level action bars */
.nav-tabs { border-bottom: 1px solid var(--fs-border); margin-bottom: 20px; }
.nav-tabs > li > a { border-radius: 7px 7px 0 0; font-size: 14px; font-weight: 650; }
.nav-pills > li > a { border-radius: 7px; font-weight: 650; }

/* Alerts/status */
.alert { border-radius: 8px; border-width: 1px; font-size: 14px; }
.label, .badge { padding: 5px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }

/* Login and plain pages */
.fs-login-page { min-height: 100vh; background: linear-gradient(135deg, #f8fafc 0%, #eef4f9 55%, #fff5ed 100%); }

/* Footer */
footer { color: var(--fs-muted); font-size: 13px; padding: 20px 0; }

/* Accessibility */
:focus-visible { outline: 3px solid rgba(249,115,22,.35); outline-offset: 2px; }

/* Responsive */
@media (max-width: 1200px) {
  :root { --fs-nav-font-size: 13px; }
  .navbar-inverse .navbar-nav > li > a { padding-left: 9px; padding-right: 9px; }
}
@media (max-width: 991px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .navbar-inverse > div { display: block; padding: 0 14px; }
  .navbar-nav { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); padding-bottom: 10px; }
  .navbar-inverse .navbar-nav > li > a { min-height: 42px; padding: 8px 10px; border-bottom-width: 2px; }
  .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
@media (max-width: 640px) {
  :root { --fs-font-size: 14px; --fs-table-font-size: 13px; }
  .navbar-nav { grid-template-columns: repeat(2, minmax(0,1fr)); }
  h1 { font-size: 24px; }
  h2 { font-size: 21px; }
  .btn, button, input[type="submit"], input[type="button"] { width: auto; }
}


/* === MIGRATED JSP PRESENTATION RULES === */
/* Generated from former JSP inline styles. Customer may edit these rules here. */
/* Source: users/user_1.jsp */
.fs-inline-0db2942d3d { margin-left: 15px; }
/* Source: company/company.jsp */
.fs-inline-1151799950 { width: 50%; }
/* Source: company/companyselection.jsp, company/companyselection0730.jsp, company/companyselectionview.jsp */
.fs-inline-13a6251fa9 { width: 200px; height: 30px; }
/* Source: users/user_1.jsp */
.fs-inline-22f61d20c1 { margin-left: 10px; }
/* Source: ra/entityprofile.jsp, ra/entityprofileview.jsp */
.fs-inline-2db70ad5f2 { width: 100%; margin: 5px; display: table; }
/* Source: ra/certrclientequserslist.jsp, ra/certrequserslist.jsp, ra/certrserverreqlist.jsp, ra/samhsmreqlist.jsp (+1 more) */
.fs-inline-318e42c25c { width: 20%; background-color: white; display: table-cell; vertical-align: top; }
/* Source: applications/list.jsp, channels/list.jsp, channels/list_1.jsp */
.fs-inline-3198e9279c { width: 35%; }
/* Source: audit/list.jsp */
.fs-inline-34331dc461 { float: right; margin: 5px; }
/* Source: audit/list.jsp, certs/list.jsp, channels/emailhistorylist.jsp, channels/imagelist.jsp (+7 more) */
.fs-inline-38382c5f6f { width: 25%; }
/* Source: ra/certreqlist.jsp */
.fs-inline-3adf0bd595 { width: 70%; background-color: white; display: table-cell; vertical-align: top; }
/* Source: company/company.jsp */
.fs-inline-3bc928abb5 { width: 80%; }
/* Source: certs/list.jsp */
.fs-inline-4279421c9c { width: 85px; margin: 10px; float: right; border: 0; }
/* Source: users/usercert.jsp */
.fs-inline-49d1e46e68 { margin-left: 20px; }
/* Source: sam/samReqList.jsp */
.fs-inline-4a097de7de { width: 30%; display: none; }
/* Source: esign/operations.jsp, esign/subscribers.jsp */
.fs-inline-4a3180e2eb { margin-bottom: 15px; }
/* Source: ca/company.jsp, ca/companyselection.jsp, company/companyselection.jsp, company/companyselection0730.jsp (+15 more) */
.fs-inline-632a48eb8d { position: absolute; z-index: 1; top: -12px; left: -12000px; }
/* Source: ra/certrclientequserslist.jsp, ra/certrequserslist.jsp, ra/certrserverreqlist.jsp, ra/samhsmreqlist.jsp (+3 more) */
.fs-inline-67545b1030 { width: 50%; background-color: white; display: table-cell; vertical-align: top; }
/* Source: company/company.jsp */
.fs-inline-68d5339f45 { width: 60%; display: table-cell; }
/* Source: audit/list.jsp, authsession/list.jsp, certs/list.jsp, token/usercryptolist.jsp (+2 more) */
.fs-inline-69d66e5b2e { width: 100%; }
/* Source: company/company.jsp */
.fs-inline-6bab2b840d { min-height: 150%; }
/* Source: audit/list.jsp, certs/list.jsp, users/list.jsp */
.fs-inline-704e912798 { width: 45px; margin: 10px; }
/* Source: esign/operations.jsp, esign/subscribers.jsp */
.fs-inline-72a68ac344 { text-align: center; }
/* Source: ra/certreqlist.jsp */
.fs-inline-796675910e { width: 70%; background-color: white; display: table-cell; float: left; vertical-align: top; margin-top: 5px; }
/* Source: users/emailreset.jsp, users/qnareset.jsp, users/resetpassoption.jsp, users/smsreset.jsp */
.fs-inline-7d7f56235f { width: 100%; height: 60px; background-color: black; }
/* Source: audit/list.jsp, auth/list.jsp, authsession/list.jsp, ca/list.jsp (+44 more) */
.fs-inline-85b7a6bea8 { width: 20%; }
/* Source: applications/list.jsp, audit/list.jsp, auth/list.jsp, ca/list.jsp (+52 more) */
.fs-inline-873f29802f { width: 10%; }
/* Source: ra/entityprofile.jsp, ra/entityprofileview.jsp */
.fs-inline-8844508aee { width: 50%; margin: 5px; display: table-cell; }
/* Source: certs/certdata.jsp, fragments/footer.jsp, users/resetpassoption.jsp */
.fs-inline-8a461919d2 { visibility: hidden; }
/* Source: authsession/list.jsp */
.fs-inline-8f7a25586c { width: 55%; }
/* Source: ra/certreqlist.jsp */
.fs-inline-950cc1c284 { width: 90%; }
/* Source: config/propsetting.jsp */
.fs-inline-a10e483c95 { margin-left: 5px; margin-right: 5px; }
/* Source: audit/list.jsp */
.fs-inline-a13f809b73 { width: 85px; float: right; border: 0; margin: 10px; }
/* Source: ra/certrclientequserslist.jsp, ra/certreqlist.jsp, ra/certrequserslist.jsp, ra/certrserverreqlist.jsp (+3 more) */
.fs-inline-a4034d620f { width: 30%; background-color: white; display: table-cell; vertical-align: top; margin-top: 5px; }
/* Source: applications/list.jsp, audit/list.jsp, authsession/list.jsp, ca/list.jsp (+34 more) */
.fs-inline-a659372d50 { width: 15%; }
/* Source: company/company.jsp, ra/certrclientequserslist.jsp, ra/certreqlist.jsp, ra/certrequserslist.jsp (+4 more) */
.fs-inline-a687de47f9 { width: 100%; display: table; }
/* Source: audit/list.jsp */
.fs-inline-acd3aa8707 { width: 20%; align: left; }
/* Source: ra/certrclientequserslist.jsp, ra/certreqlist.jsp, ra/certrequserslist.jsp, ra/certrserverreqlist.jsp (+3 more) */
.fs-inline-af1e5ce5f8 { width: 100%; display: table; margin-top: 5px; }
/* Source: applications/list.jsp, auth/list.jsp, authsession/list.jsp, ca/list.jsp (+40 more) */
.fs-inline-afc576444a { width: 30%; }
/* Source: certs/list.jsp, ra/entitycertlist.jsp */
.fs-inline-b26e4cf80d { width: 8%; }
/* Source: ra/certrclientequserslist.jsp, ra/certreqlist.jsp, ra/certrequserslist.jsp, ra/certrserverreqlist.jsp (+3 more) */
.fs-inline-b63b972f73 { vertical-align: top; line-height: 0px; }
/* Source: users/list.jsp */
.fs-inline-b654ebfd6d { width: 85px; margin: 1px; float: right; border: 0; }
/* Source: sic/credentialList.jsp */
.fs-inline-b6f5e77037 { width: 10%; display: none; }
/* Source: ra/certreqlist.jsp, ra/samhsmreqlist.jsp, ra/signaturelist.jsp, ra/usercertrserverreqlist.jsp */
.fs-inline-b7eaca2abe { width: 30%; background-color: white; display: table-cell; vertical-align: top; }
/* Source: users/list.jsp */
.fs-inline-bab78ca0c5 { float: right; margin: 1px; }
/* Source: certs/usersearchlist.jsp, channels/imagehistorylist.jsp, company/company.jsp, managementapi/list.jsp (+9 more) */
.fs-inline-bc0eb55156 { width: 40%; }
/* Source: esign/operations.jsp, esign/subscribers.jsp */
.fs-inline-c199bdfad5 { margin: 3px; }
/* Source: certs/list.jsp */
.fs-inline-d54ea8defb { width: 15%; float: rigth; }
/* Source: ra/certreqlist.jsp */
.fs-inline-d6b8a1b05d { width: 100%; background-color: white; display: table-cell; vertical-align: top; }
/* Source: company/company.jsp */
.fs-inline-d929731de8 { width: 100%; display: table-row; }
/* Source: certs/list.jsp */
.fs-inline-dce755a5f5 { float: left; margin: 5px; }
/* Source: ra/signaturelist.jsp */
.fs-inline-ddaf279e36 { width: 20%; background-color: white; display: table-cell; vertical-align: top; margin-top: 5px; }
/* Source: users/resetpassoption.jsp */
.fs-inline-e2ce2291d1 { font-weight: lighter; color: #01579b; }
/* Source: company/company.jsp */
.fs-inline-e34c1c3ad4 { width: 20%; display: table-cell; }
/* Source: ra/entityprofile.jsp */
.fs-inline-e397172058 { width: 60%; margin: 5px; display: table-cell; }
/* Source: users/list.jsp */
.fs-inline-e6743abca1 { width: 2%; }
/* Source: plan/subcription.jsp, plan/subcriptionpayment.jsp, users/subcriptionpayment2.jsp, verification/userverification.jsp */
.fs-inline-e9da065462 { float: left; }
/* Source: company/companyselection.jsp, company/companyselection0730.jsp, company/companyselectionview.jsp */
.fs-inline-ec060bac5e { width: 200px; }
/* Source: ca/company.jsp, certs/certdata.jsp, company/company.jsp, company/companyselection.jsp (+9 more) */
.fs-inline-f2892a2e8a { display: none; }
/* Source: company/company.jsp */
.fs-inline-f51f952549 { height: 35px; width: 35px; }
/* Source: company/company.jsp */
.fs-inline-f8fe67f77e { width: 100%; max-width: 100%; }
/* Source: groups/list.jsp, signverify/signverifyprofile.jsp, users/user.jsp (+1 more) */
.fs-inline-fa9644bb1f { width: 60%; }
/* Source: authsession/list.jsp, certs/list.jsp, channels/subscribeplanlist.jsp, channels/subscribeplanpaymentlist.jsp (+4 more) */
.fs-inline-fee18fcac8 { width: 5%; }
/* Source: config/propsetting.jsp */
.fs-inline-ff5689ce80 { resize: both; white-space: pre-wrap; }

/* === MIGRATED JSP EMBEDDED STYLE BLOCKS === */

/* Source: roles/role.jsp */
div1 {
            padding-left: 10px; 
            display: inline-block;
        }

/* Source: company/company.jsp */
.input-group-addon.download-addon {
        float: right;
        margin-left: -30px; /* adjust this value as needed */
    }
    
    #closeBtn {
  background-color: lightgrey;
  border: none;
  color: white;
  padding: 8px 16px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 14px;
  margin: 4px 2px;
  cursor: pointer;
}


    #searchBtn {
  background-color:  #337ab7;
  border: none;
  color: white;
  padding: 8px 16px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 14px;
  margin: 4px 2px;
  cursor: pointer;
}

    .download-img {
        height: 25px;
        width: 25px;
        cursor: pointer;
    }
      
#resultTable {
  border-collapse: collapse;
  width: 100%;
}

#resultTable td, #resultTable th {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

#resultTable tr:nth-child(even) {
  background-color: white;
}

#resultTable th {
  padding-top: 12px;
  padding-bottom: 12px;
}
        .modal {
            display: none;
            position: fixed;
            z-index: 9999;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
          }

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 40%;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* Style for the background overlay */
#overlay {
  position: fixed;
  z-index: 9998;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
}

/* Source: certs/certdata.jsp */
div1 {
                padding-left: 10px; 
                 display: block;
            }

/* Source: certs/bindusercert.jsp */
div1 {
                padding-left: 10px; 
                display: block;
            }

/* Source: certs/usercert.jsp */
div1 {
                padding-left: 10px; 
                 display: block;
            }

/* Source: certs/certonly.jsp */
div1 {
                padding-left: 10px; 
                 display: block;
            }

/* Source: emailconfig/emailconfigprofile.jsp */
div1 {
                padding-left: 10px; 
                 display: block;
            }

/* Source: emailconfig/smsconfig.jsp */
div1 {
                padding-left: 10px; 
                 display: block;
            }

/* Source: config/configprofileinit.jsp */
div1 {
            padding-left: 10px; 
             display: block;
        }

/* Source: config/configprofile.jsp */
div1 {
        padding-left: 10px; 
         display: block;
    }

/* Source: token/usertokenprofile.jsp */
div1 {
            padding-left: 10px; 
             display: block;
        }

/* Source: token/usertokenqr.jsp */
div1 {
                padding-left: 10px; 
                 display: block;
            }

/* Source: token/userauthtoken.jsp */
div1 {
            padding-left: 10px; 
             display: block;
        }

/* Source: token/usersigntoken.jsp */
div1 {
            padding-left: 10px; 
             display: block;
        }

/* Source: token/tokenprofile.jsp */
div1 {
                padding-left: 10px; 
                 display: block;
            }

/* Source: token/usercryptotoken.jsp */
div1 {
            padding-left: 10px; 
             display: block;
        }

/* Source: token/usertokenqrself.jsp */
div1 {
                padding-left: 10px; 
                 display: block;
            }

/* Source: channels/useremailblacklist.jsp */
div1 {
            padding-left: 10px; 
             display: block;
        }

/* Source: channels/userpinlblacklist.jsp */
div1 {
            padding-left: 10px; 
             display: block;
        }

/* Source: users/user.jsp */
.input-group-addon.download-addon {
        float: right;
        margin-left: -30px; /* adjust this value as needed */
    }
    
    #closeBtn {
  background-color: lightgrey;
  border: none;
  color: white;
  padding: 8px 16px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 14px;
  margin: 4px 2px;
  cursor: pointer;
}

    #searchBtn {
  background-color:  #337ab7;
  border: none;
  color: white;
  padding: 8px 16px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 14px;
  margin: 4px 2px;
  cursor: pointer;
}
.download-img {
    height: 25px;
    width: 25px;
    cursor: pointer;
}
      
#resultTable {
  border-collapse: collapse;
  width: 100%;
}

#resultTable td, #resultTable th {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

#resultTable tr:nth-child(even) {
  background-color: white;
}

#resultTable th {
  padding-top: 12px;
  padding-bottom: 12px;
}
        .modal {
            display: none;
            position: fixed;
            z-index: 9999;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
          }

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  top: 100;
            
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* Style for the background overlay */
#overlay {
  position: fixed;
  z-index: 9998;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
}

/* Source: users/user_1.jsp */
.input-group-addon.download-addon {
        float: right;
        margin-left: -30px; /* adjust this value as needed */
    }
    
    #closeBtn {
  background-color: lightgrey;
  border: none;
  color: white;
  padding: 8px 16px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 14px;
  margin: 4px 2px;
  cursor: pointer;
}

    #searchBtn {
  background-color:  #337ab7;
  border: none;
  color: white;
  padding: 8px 16px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 14px;
  margin: 4px 2px;
  cursor: pointer;
}
.download-img {
    height: 25px;
    width: 25px;
    cursor: pointer;
}
      
#resultTable {
  border-collapse: collapse;
  width: 100%;
}

#resultTable td, #resultTable th {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

#resultTable tr:nth-child(even) {
  background-color: white;
}

#resultTable th {
  padding-top: 12px;
  padding-bottom: 12px;
}
        .modal {
            display: none;
            position: fixed;
            z-index: 9999;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
          }

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  top: 100;
            
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* Style for the background overlay */
#overlay {
  position: fixed;
  z-index: 9998;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
}

/* Source: users/usercert.jsp */
div1 {
                padding-left: 10px; 
                 display: block;
            }

/* Source: trustanchor/trustdata.jsp */
div1 {
                padding-left: 10px; 
                 display: block;
            }

/* Source: trustanchor/uploadcrl.jsp */
div1 {
                padding-left: 10px; 
                 display: block;
            }

/* Source: trustanchor/trustcert.jsp */
div1 {
                padding-left: 10px; 
                 display: block;
            }

/* Governance and approval baseline */
.fs-page-shell{padding:24px 30px 40px}.fs-filter-bar{padding:16px;margin:0 0 18px;background:#fff;border:1px solid #dfe6ee;border-radius:6px}.fs-filter-bar .form-control{margin-right:8px;min-width:170px}.fs-page-shell .table td,.fs-page-shell .table th{vertical-align:middle}.fs-page-shell small{color:#687789}@media(max-width:767px){.fs-page-shell{padding:16px}.fs-filter-bar .form-control,.fs-filter-bar .btn{width:100%;margin:0 0 8px}}


/* Stable grouped navigation and simplified module permission editor */
.navbar-menu-group { float: left; }
.navbar .dropdown-menu { z-index: 1100; min-width: 260px; }
.navbar .dropdown.open > .dropdown-menu { display: block; }
.fs-module-access-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 9px 14px;
    margin: 0 0 8px;
    border: 1px solid var(--fs-border-color, #d8e1eb);
    border-radius: 8px;
    background: #f8fafc;
    font-weight: 600;
    cursor: pointer;
}
.fs-module-access-toggle input { width: 18px; height: 18px; margin: 0; }
.fs-legacy-permission-inputs { display: none !important; }
@media (max-width: 991px) {
    .navbar-menu-group { float: none; width: 100%; }
    .navbar .dropdown-menu { position: static; float: none; width: 100%; box-shadow: none; }
}

/* Navbar certificate expiry bell (header.jsp). Pushed right so it sits beside Logout. */
.fs-navbar-notification-group { margin-left: auto; }
.navbar-inverse .navbar-nav > li.fs-navbar-notification > a { gap: 8px; padding-left: 14px; padding-right: 14px; }
.fs-notification-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; }
.fs-notification-icon svg { display: block; width: 20px; height: 20px; }
.fs-notification-badge {
    position: absolute;
    top: -7px;
    left: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border: 2px solid var(--fs-brand-navy, #0f2f4a);
    border-radius: 9px;
    background: #c2410c;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
}
.fs-notification-badge[hidden] { display: none; }
.fs-notification-label {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
@media (max-width: 991px) {
    .fs-navbar-notification-group { margin-left: 0; }
    .fs-notification-label { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; }
}

/* Navbar user icon + My Account dropdown (header.jsp). Right-aligned like the bell; when the bell
   is shown it already pushes the group right, so the account icon sits directly after it. */
.fs-navbar-account-group { margin-left: auto; }
.fs-navbar-notification-group + .fs-navbar-account-group { margin-left: 0; }
.navbar-inverse .navbar-nav > li.fs-navbar-account > a { gap: 6px; padding-left: 12px; padding-right: 12px; }
.fs-account-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border: 1.5px solid rgba(255,255,255,.55); border-radius: 50%;
}
.fs-account-icon svg { display: block; width: 18px; height: 18px; }
.fs-account-label {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.fs-account-menu { min-width: 240px; }
.fs-account-menu__identity { padding: 8px 16px 6px; }
.fs-account-menu__caption { display: block; font-size: 12px; color: #627D98; }
.fs-account-menu__name { display: block; font-weight: 700; color: #102A43; word-break: break-all; }
.fs-account-menu__role { display: block; font-size: 12px; color: #627D98; }
.fs-account-menu__role:empty { display: none; }
@media (max-width: 991px) {
    .fs-navbar-account-group { margin-left: 0; }
    .fs-account-label { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; }
    .fs-account-menu__name { color: inherit; }
}

/* Narrow-screen navigation drawer (header.jsp #fsNavbarMenu, thrivosign-ui.js setupNavbarDrawer).
   On desktop the wrapper is layout-neutral, so the horizontal bar is unchanged. Below 992px the
   same menu is closed by default behind the hamburger and opens as a bounded, scrollable panel
   anchored under the header, instead of every module group expanding to full page width. */
.fs-navbar-toggle { display: none; }
.fs-navbar-menu { display: contents; }
@media (max-width: 991px) {
    .navbar-inverse > div { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; }
    .fs-navbar-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        margin: 0;
        padding: 10px;
        border: 1px solid rgba(255,255,255,.28);
        border-radius: 6px;
        background: transparent;
        cursor: pointer;
    }
    .fs-navbar-toggle:hover,
    .fs-navbar-toggle:focus { background: rgba(255,255,255,.08); }
    .fs-navbar-toggle__bar { display: block; width: 100%; height: 2px; border-radius: 1px; background: #fff; }
    .fs-navbar-menu { display: none; }
    .navbar.is-nav-open .fs-navbar-menu {
        display: block;
        position: absolute;
        top: 100%;
        right: 0;
        z-index: 1050;
        width: 320px;
        max-width: calc(100vw - 16px);
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 6px 0;
        background: var(--fs-brand-navy, #0f2f4a);
        border-radius: 0 0 0 8px;
        box-shadow: 0 12px 28px rgba(15,47,74,.35);
    }
    .fs-navbar-menu .navbar-menu-group { float: none; width: 100%; }
    .fs-navbar-menu .navbar-nav { display: block; width: 100%; margin: 0; padding: 0; }
    .fs-navbar-menu .navbar-nav > li { float: none; }
    .navbar-inverse .fs-navbar-menu .navbar-nav > li > a {
        min-height: 44px;
        padding: 10px 20px;
        white-space: normal;
        border-bottom: 0;
        border-left: 3px solid transparent;
    }
    .navbar-inverse .fs-navbar-menu .navbar-nav > li > a:hover,
    .navbar-inverse .fs-navbar-menu .navbar-nav > li > a:focus { border-left-color: var(--fs-brand-orange, #f97316); }
}


/* ---------------------------------------------------------------------------
   eSign Operations table (esign/operations.jsp)

   The grid carries 13 mostly-UUID columns, which overflows the container on a
   desktop viewport -- Bootstrap's .table-responsive only turns on overflow-x
   below 992px (see the max-width:991px block above), so the trailing Status /
   Provider Code / Attempts / Duration columns were unreachable on wide screens.
   Scroll the wrapper at every width, and stop identifiers wrapping at their
   hyphens, which was stretching each row to four lines and starving the short
   columns of width.
   --------------------------------------------------------------------------- */
.fs-ops-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.fs-ops-scroll > table { width: auto; min-width: 100%; margin-bottom: 0; }
.fs-ops-scroll th,
.fs-ops-scroll td { white-space: nowrap; vertical-align: middle; }
.fs-ops-id { font-family: Consolas, "SFMono-Regular", Menlo, monospace; font-size: 12px; }
.fs-ops-empty { color: var(--thrivosign-text-soft); }

/* Account-status action buttons on the user list: each action is its own POST form
   (a GET must never change account state), so the forms have to sit side by side
   instead of stacking as block elements. */
.fs-inline-form { display: inline-flex; margin: 0; }

/* The global rule ".form-horizontal, form { background/border/padding/box-shadow }" turns EVERY
   form into a card. Forms that exist only to carry one POST action - a status button in a table
   row, or a menu item in a dropdown - must not become cards: that is what wrapped Suspend and
   Deactivate in their own white boxes and made the actions cell look packed. */
.fs-inline-form,
.fs-menu-form {
    background: none;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    margin: 0;
}

/* Service client secret rotation: a stacked form (hours, secret row, submit). As an inline-flex
   row the hours box and the pill submit button stretched to the secret column's height, which
   drew the button as a large circle. */
.fs-inline-form.fs-secret-rotate { display: block; margin-bottom: var(--thrivosign-space-3); }
.fs-secret-rotate__hours { max-width: 8em; }
.fs-secret-rotate__row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fs-secret-rotate__row .form-control { flex: 1 1 18rem; min-width: 0; }
.fs-secret-rotate__row .fs-btn { flex: 0 0 auto; white-space: nowrap; }

/* Row actions: one primary button plus a single "Actions" menu, instead of a pile of buttons
   whose count changed with account status. */
.fs-actions__menu { min-width: 224px; }
.fs-menu-form { display: block; }
.fs-actions__menu .fs-menu-form button {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    padding: 6px 20px;
    color: inherit;
    font-weight: 400;
    line-height: 1.42857143;
    white-space: nowrap;
}
.fs-actions__menu .fs-menu-form button:hover,
.fs-actions__menu .fs-menu-form button:focus { background-color: var(--thrivosign-border-soft, #f5f5f5); }

/* Users filter toolbar: ONE row - free-text search, Search and a Filters toggle on the left,
   the pager on the right. The previous version was a three-row table whose cells mixed
   col-sm-10 and col-sm-12, and a blanket "width:100%" on its buttons stacked the pager
   vertically down the right-hand side. Buttons here are explicitly auto-width. */
.fs-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.fs-toolbar__main,
.fs-toolbar__pager { display: flex; align-items: center; gap: 8px; }
.fs-toolbar .btn { width: auto; flex: 0 0 auto; }
.fs-toolbar__search { width: 260px; min-width: 150px; }
.fs-toolbar__page { width: 92px; text-align: center; padding-left: 6px; padding-right: 6px; }

/* Advanced filters, revealed by the Filters toggle. Auto-fit grid so they reflow instead of
   forcing the toolbar to grow. */
.fs-advfilters { margin-top: 14px; }
.fs-advfilters__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px 16px;
    align-items: end;
}
.fs-advfilters__field label {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.fs-advfilters__field .form-control { width: 100%; }
.fs-advfilters__actions { display: flex; align-items: flex-end; }
/* Filter date fields: one width standard for every WebManager list.

   The grid is auto-fit/1fr, so a date input stretched to whatever share of the row was left
   over -- From Date and To Date could land in different rows and end up visibly different
   widths on the same panel, and differently again between /users and /certs. Bounding them
   keeps the pair equal and consistent across pages while staying inside the grid column, so
   the layout still reflows on a narrow viewport instead of overflowing. */
.fs-advfilters__field--date .form-control {
    width: 100%;
    min-width: 170px;
    max-width: 230px;
}
/* A checkbox filter sits BELOW its field label like every other control, not beside it, or the
   grid row it lives in loses its baseline and the whole row shifts up. */
.fs-advfilters__check {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 7px 0;
    font-weight: 400;
    white-space: nowrap;
}
.fs-advfilters__check input { margin: 0; }
/* The Clear link is an <a>, so it needs the same vertical rhythm as the buttons beside it. */
.fs-toolbar__main .btn,
.fs-toolbar__pager .btn { white-space: nowrap; }

/* Row actions cell: one wrapping flex row so Suspend / Deactivate / Restore / Unlock /
   Update / Delete line up as a grid instead of drifting into a floating cluster when a
   status renders several of them at once. Buttons are all btn-sm, so widths stay even. */
.fs-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.fs-actions .btn { margin: 0; }
.fs-actions__select {
    width: auto;
    min-width: 160px;
    max-width: 220px;
    display: inline-block;
}


/* Login alert: ONE region shared by the server-side flash and the client-side field check.
   Fades in on arrival and out when it times out or is dismissed, so a replacing message does not
   jump. Reduced-motion users get the same behaviour without the transition. */
.fs-login-alert {
    position: relative;
    margin-bottom: 20px;
    padding-right: 42px;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .25s ease, transform .25s ease;
}
.fs-login-alert.is-visible { opacity: 1; transform: none; }
.fs-login-alert[hidden] { display: none; }
.fs-login-alert__close {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    border: 0;
    background: none;
    padding: 4px 8px;
    font-size: 20px;
    line-height: 1;
    color: inherit;
    opacity: .55;
    cursor: pointer;
}
.fs-login-alert__close:hover,
.fs-login-alert__close:focus { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
    .fs-login-alert { transition: none; }
}

/* Muted secondary identifier shown under a resolved name (e.g. the company id under the
   company name), so the human-readable value leads and the raw id stays available. */
.fs-id-hint { font-size: 12px; word-break: break-all; margin-top: 2px; }

/* ==========================================================================
   Audit Log
   Reuses the existing tokens, badges and filter grid from the Users page. The
   only additions are the table's column sizing and the two-line time/actor
   cells, which exist so the table fits a 1024px viewport without the page
   itself scrolling sideways.
   ========================================================================== */

.fs-audit-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--thrivosign-space-3, 12px);
    flex-wrap: wrap;
    margin: var(--thrivosign-space-3, 12px) 0;
    font-size: var(--thrivosign-fs-14, 14px);
    color: var(--thrivosign-text-muted, #6b7280);
}
.fs-audit-summary__count strong { color: var(--thrivosign-text, #111827); }
.fs-audit-summary__size {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.fs-audit-summary__size label { margin: 0; font-weight: 500; }
.fs-audit-summary__size .form-control { width: auto; min-width: 72px; }

/* The table scrolls inside its own container if it must; the page never does. */
.fs-audit-table { overflow-x: auto; }
.fs-audit-table > table { margin-bottom: 0; }
.fs-audit-table th,
.fs-audit-table td { vertical-align: top; }

.fs-audit-table .fs-col-time     { width: 11%; min-width: 116px; white-space: nowrap; }
.fs-audit-table .fs-col-cat      { width: 8%;  min-width: 84px;  }
.fs-audit-table .fs-col-action   { width: 10%; min-width: 92px;  }
.fs-audit-table .fs-col-outcome  { width: 8%;  min-width: 88px;  }
.fs-audit-table .fs-col-actor    { width: 14%; min-width: 120px; }
.fs-audit-table .fs-col-company  { width: 11%; min-width: 110px; }
.fs-audit-table .fs-col-resource { width: 14%; min-width: 120px; }
.fs-audit-table .fs-col-desc     { width: 18%; }
.fs-audit-table .fs-col-view     { width: 6%;  min-width: 64px; text-align: right; white-space: nowrap; }

.fs-audit-date { display: block; }
.fs-audit-time {
    display: block;
    font-size: var(--thrivosign-fs-12, 12px);
    color: var(--thrivosign-text-muted, #6b7280);
}
.fs-audit-actor { display: block; word-break: break-word; }
.fs-audit-sub {
    display: block;
    font-size: var(--thrivosign-fs-12, 12px);
    color: var(--thrivosign-text-muted, #6b7280);
    word-break: break-all;
}

/* Long descriptions are clamped so one verbose row cannot stretch the table;
   the full text stays available through the title attribute and the detail view. */
.fs-audit-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.fs-audit-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--thrivosign-space-3, 12px);
    flex-wrap: wrap;
    margin: var(--thrivosign-space-4, 16px) 0;
}
.fs-audit-pager__label {
    font-size: var(--thrivosign-fs-14, 14px);
    color: var(--thrivosign-text-muted, #6b7280);
    white-space: nowrap;
}

.fs-audit-detail {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 10px var(--thrivosign-space-4, 16px);
    margin: 0;
}
.fs-audit-detail dt {
    font-weight: 600;
    color: var(--thrivosign-text-muted, #6b7280);
    font-size: var(--thrivosign-fs-13, 13px);
}
.fs-audit-detail dd { margin: 0; word-break: break-word; }
.fs-audit-mono {
    font-family: var(--thrivosign-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
    font-size: var(--thrivosign-fs-13, 13px);
    word-break: break-all;
}

@media (max-width: 900px) {
    .fs-audit-detail { grid-template-columns: 1fr; gap: 4px; }
    .fs-audit-detail dd { margin-bottom: 10px; }
}

@media (max-width: 767px) {
    .fs-audit-summary { flex-direction: column; align-items: stretch; }
    .fs-audit-table .fs-col-resource,
    .fs-audit-table .fs-col-actor { min-width: 100px; }
}


/* ---- Account state pill (fragments/userstatusbadge.jsp) -------------------------------------
   The user form used to show status as five radio buttons wired with onclick="return false;":
   they looked editable, clicking one did nothing, and an administrator could not tell whether a
   change had been applied. These are STATE LABELS, so they are styled as static pills - default
   cursor, no hover state, no focus ring, not focusable.

   Colour is never the only signal: the state word is always inside the pill, so the meaning
   survives greyscale, colour-blindness and a stylesheet that fails to load. The border carries the
   same distinction as the fill for high-contrast modes. */
.fs-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 11px;
    border: 1px solid transparent;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
    cursor: default;
}
.fs-status--active      { background-color: #e3f6e8; border-color: #9ed7b0; color: #1c6b38; }
.fs-status--locked      { background-color: #fdE4e4; border-color: #e3a4a4; color: #96201f; }
.fs-status--suspended   { background-color: #fdf1dc; border-color: #e8c98a; color: #8a5a10; }
.fs-status--deactivated { background-color: #eceef0; border-color: #c2c8cf; color: #4c545c; }
.fs-status--archived    { background-color: #eceef0; border-color: #c2c8cf; color: #4c545c; }
.fs-status--pending     { background-color: #e6f0fb; border-color: #a6c6e8; color: #1f537f; }
.fs-status--unknown     { background-color: #eceef0; border-color: #c2c8cf; color: #4c545c; }

/* Read-only account-state block on the user form: the pill, one sentence explaining what the
   state means for sign-in, and - separately - the administrator actions. Status DISPLAY and
   status INPUT are deliberately not mixed. */
.fs-statepanel { margin-bottom: 6px; }
.fs-statepanel__hint {
    display: block;
    margin-top: 6px;
    color: var(--thrivosign-text-muted, #6b7480);
    font-size: 13px;
}
.fs-stateactions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fs-stateactions--spaced { margin-top: 8px; }
.fs-stateactions form { background: none; border: none; padding: 0; box-shadow: none; margin: 0; }

/* Company cell in the users list and on the company-assignment screen: readable name first, the
   64-character id underneath as secondary text so nobody has to decode a bare hash. */
.fs-company__name { display: block; }
.fs-company__id {
    display: block;
    font-size: 11px;
    color: var(--thrivosign-text-muted, #6b7480);
    word-break: break-all;
}

/* Off-screen text carrier: values a script must quote back to the administrator (a company name,
   a username) are rendered as escaped page text and read with textContent, never interpolated into
   a JavaScript string literal - a name containing an apostrophe would otherwise terminate the
   literal and take the whole script block with it. */
.fs-offscreen {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ------------------------------------------------------------------------
   Certificate list column widths (certs/list.jsp)

   A Subject DN is a single long token-free string with few natural break
   opportunities, so without an explicit maximum it sets the table's width by
   itself: the table stretches, every other column is squeezed, and Actions is
   pushed off to the right behind a horizontal scrollbar.

   table-layout stays at the browser default; these bound the DN column and let
   it wrap instead of letting it dictate the layout. The data is untouched --
   the cell renders the whole DN, over as many lines as it needs, and also
   carries it in a title tooltip.
   ------------------------------------------------------------------------ */
.fs-cert-subject-dn {
    min-width: 260px;
    width: 320px;
    max-width: 360px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Serial numbers are long hex strings and break just as badly. */
.fs-cert-serial {
    min-width: 180px;
    max-width: 240px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.fs-cert-user {
    min-width: 120px;
    max-width: 200px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Fixed so ACTIVE / REVOKED / EXPIRED all occupy the same width and the
   columns beside them do not shift as the value changes. */
.fs-cert-status {
    min-width: 100px;
    white-space: nowrap;
}

.fs-cert-actions {
    white-space: nowrap;
}

/* ------------------------------------------------------------------------
   Certificate detail read-only fields (certs/certdata.jsp)

   Long values (DN, fingerprint, serial) must stay inside the form column
   rather than widening the page.
   ------------------------------------------------------------------------ */
.fs-cert-detail-value {
    width: 100%;
}

/* ------------------------------------------------------------------------
   eKYC list tables (ekyc/list.jsp)

   The manual-application table used width:100%, so the browser squeezed every column to fit
   (Application Ref and Submitted broke over three lines) and still overflowed by a few pixels,
   leaving ACTION half-clipped with the only scrollbar at the bottom of a long table. The table
   now keeps its natural widths and scrolls inside its own box -- never the page -- and the
   Action column is pinned to the right edge so it is reachable without scrolling.
   ------------------------------------------------------------------------ */
.ekyc-table-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.ekyc-table-scroll .ekyc-table:not(.ekyc-table--wrapping) { width: max-content; min-width: 100%; }
.ekyc-table-scroll .ekyc-table:not(.ekyc-table--wrapping) th,
.ekyc-table-scroll .ekyc-table:not(.ekyc-table--wrapping) td { white-space: nowrap; }
.ekyc-table-scroll .ekyc-table th.fs-table__actions,
.ekyc-table-scroll .ekyc-table td.fs-table__actions {
    position: sticky;
    right: 0;
    background: var(--thrivosign-surface);
    box-shadow: -1px 0 0 var(--thrivosign-border-soft);
}
.ekyc-table-scroll .ekyc-table thead th.fs-table__actions { background: var(--thrivosign-surface-alt); z-index: 2; }
.ekyc-table-scroll .ekyc-table tbody tr:hover td.fs-table__actions { background: var(--thrivosign-surface-alt); }

/* Sign-in pages (.ts-login) are full-bleed. The legacy body rules above (24px side padding, centred max-width on every
   body > div) would otherwise leave the page background as a narrow panel with white margins. */
html body:has(> .ts-login) { margin: 0; padding: 0; min-height: 100vh; background: #f1eefc; overflow-x: hidden; }
html body > div.ts-login { max-width: none; width: 100%; margin: 0; }
