/* ==========================================================================
   FootPro modern back-office theme  (UI_THEME=modern)
   --------------------------------------------------------------------------
   Every rule is scoped to body.ui-modern, so the login page and the classic
   Inspinia theme (UI_THEME=classic) are untouched.

   1. Tokens
   2. Base & typography
   3. App shell: sidebar, top bar, footer
   4. Page content: re-skin of the Inspinia components the pages use
   5. Dashboard
   6. Responsive
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
body.ui-modern {
    --fp-red: #e7174d;
    --fp-red-dark: #c40f3d;
    --fp-red-soft: #fde8ee;
    --fp-teal: #56c4d1;
    --fp-teal-600: #1798a8;
    --fp-teal-700: #0e7c89;     /* primary buttons: white text passes AA */
    --fp-teal-800: #0b6570;
    --fp-teal-soft: #e3f6f8;

    --fp-ink: #16202a;          /* headings */
    --fp-text: #0b1117;         /* body text  (near black, ~19:1 on white) */
    --fp-text-2: #1c242d;       /* secondary: labels, table headings (~16:1) */
    --fp-muted: #5f6b7a;        /* muted      (5.4:1)  */
    --fp-line: #e3e8ee;
    --fp-line-2: #d3dae2;
    --fp-bg: #f3f5f8;
    --fp-surface: #ffffff;
    --fp-surface-2: #f8fafc;

    --fp-sidebar-bg: #1b2229;
    --fp-sidebar-bg-2: #232c35;
    --fp-sidebar-text: #c9d2dc;
    --fp-sidebar-muted: #a9b6c3;   /* readable over the teal end of the sidebar gradient */

    --fp-blue: #1d64c8;
    --fp-green: #15803d;
    --fp-amber: #b45309;
    --fp-danger: #d0103f;

    --fp-radius: 12px;
    --fp-radius-sm: 8px;
    --fp-shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
    --fp-shadow: 0 1px 3px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .04);
    --fp-shadow-lg: 0 18px 40px -16px rgba(16, 24, 40, .28);

    --fp-sidebar-w: 260px;
    --fp-sidebar-w-collapsed: 76px;
    --fp-topbar-h: 64px;

    --fp-font: 'Open Sans', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --fp-font-head: 'Montserrat', 'Open Sans', -apple-system, 'Segoe UI', Arial, sans-serif;
}

/* 2. Base & typography ----------------------------------------------------- */
body.ui-modern {
    margin: 0;
    background: var(--fp-bg);
    color: var(--fp-text);
    font-family: var(--fp-font);
    font-size: 14px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body.ui-modern h1, body.ui-modern h2, body.ui-modern h3,
body.ui-modern h4, body.ui-modern h5, body.ui-modern h6 {
    color: var(--fp-ink);
    font-weight: 600;
    letter-spacing: -.01em;
}
body.ui-modern h1 { font-size: 26px; }
body.ui-modern h2 { font-size: 22px; }
body.ui-modern h3 { font-size: 17px; }
body.ui-modern h4 { font-size: 15px; }
body.ui-modern h5 { font-size: 14px; }

body.ui-modern a { color: var(--fp-teal-700); }
body.ui-modern a:hover, body.ui-modern a:focus { color: var(--fp-teal-800); }

body.ui-modern .text-muted,
body.ui-modern small.text-muted { color: var(--fp-muted) !important; }
body.ui-modern small, body.ui-modern .small { font-size: 12.5px; }
body.ui-modern strong, body.ui-modern b { font-weight: 600; }
body.ui-modern .font-bold { font-weight: 600; }
body.ui-modern label { color: var(--fp-text-2); font-weight: 600; }
body.ui-modern hr { border-color: var(--fp-line); }
body.ui-modern .hr-line-dashed { border-top: 1px dashed var(--fp-line-2); background: none; margin: 18px 0; }
body.ui-modern .gray-bg { background: var(--fp-bg); }
body.ui-modern .white-bg { background: var(--fp-surface); }

body.ui-modern :focus-visible { outline: 2px solid var(--fp-teal); outline-offset: 2px; }
body.ui-modern ::selection { background: rgba(86, 196, 209, .3); }

body.ui-modern .pace .pace-progress { background: linear-gradient(90deg, var(--fp-teal), var(--fp-red)); height: 3px; }

/* 3. App shell ------------------------------------------------------------- */
body.ui-modern .fp-app { min-height: 100vh; }

/* Sidebar */
body.ui-modern .fp-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1030;
    width: var(--fp-sidebar-w);
    display: flex;
    flex-direction: column;
    /* same colours as the login brand panel, run top-to-bottom, with static soft glows */
    background:
        radial-gradient(circle at 110% -5%, rgba(86, 196, 209, .22), transparent 45%),
        radial-gradient(circle at -20% 105%, rgba(231, 23, 77, .18), transparent 40%),
        linear-gradient(180deg, #1b2025 0%, #2f363c 50%, #1f5f68 100%);
    color: var(--fp-sidebar-text);
    transition: width .22s ease, transform .22s ease;
}

body.ui-modern .fp-sidebar__brand {
    flex: 0 0 auto;
    height: var(--fp-topbar-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}
body.ui-modern .fp-sidebar__logo {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border-radius: 10px;
    padding: 5px 10px;
    box-shadow: 0 6px 18px -10px rgba(0, 0, 0, .6);
}
body.ui-modern .fp-sidebar__logo img { height: 40px; width: auto; display: block; }
/* collapsed-rail monogram: teal "FP" with the logo's red footprint dots */
body.ui-modern .fp-sidebar__logo-mini {
    position: relative;
    display: none;
    width: 42px; height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--fp-teal), var(--fp-teal-700));
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: var(--fp-font-head);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -.02em;
    text-decoration: none;
}
body.ui-modern .fp-sidebar__logo-mini:hover { color: #fff; text-decoration: none; }
body.ui-modern .fp-mono-dots { position: absolute; top: -5px; right: -4px; display: flex; align-items: flex-end; gap: 2px; }
body.ui-modern .fp-mono-dots i { display: block; border-radius: 50%; background: var(--fp-red); box-shadow: 0 0 0 1.5px var(--fp-sidebar-bg); }
body.ui-modern .fp-mono-dots i:nth-child(1) { width: 5px; height: 5px; }
body.ui-modern .fp-mono-dots i:nth-child(2) { width: 6px; height: 6px; margin-bottom: 2px; }
body.ui-modern .fp-mono-dots i:nth-child(3) { width: 8px; height: 8px; margin-bottom: 4px; }
body.ui-modern .fp-sidebar__close { display: none; }

body.ui-modern .fp-sidebar__search {
    position: relative;
    margin: 14px 14px 6px;
}
body.ui-modern .fp-sidebar__search i {
    position: absolute; left: 12px; top: 50%;
    transform: translateY(-50%);
    color: var(--fp-sidebar-muted);
    font-size: 13px;
    pointer-events: none;
}
body.ui-modern .fp-sidebar__search input {
    width: 100%;
    height: 38px;
    padding: 0 12px 0 34px;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .06);
    color: #fff;
    font-size: 13.5px;
    outline: none;
    transition: border-color .15s, background .15s;
}
body.ui-modern .fp-sidebar__search input::placeholder { color: var(--fp-sidebar-muted); }
body.ui-modern .fp-sidebar__search input:focus { border-color: var(--fp-teal); background: rgba(255, 255, 255, .1); }

body.ui-modern .fp-nav {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 10px 16px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .15) transparent;
}
body.ui-modern .fp-nav::-webkit-scrollbar { width: 6px; }
body.ui-modern .fp-nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .15); border-radius: 3px; }

body.ui-modern .fp-nav__label {
    margin: 16px 10px 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--fp-sidebar-muted);
    white-space: nowrap;
}

body.ui-modern .fp-nav__link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 42px;
    padding: 9px 12px;
    margin: 2px 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--fp-sidebar-text);
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s, color .15s;
}
body.ui-modern .fp-nav__link > i:first-child {
    flex: 0 0 22px;
    width: 22px;
    text-align: center;
    font-size: 16px;
    color: var(--fp-sidebar-muted);
    transition: color .15s;
}
body.ui-modern .fp-nav__link > span { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; }
body.ui-modern .fp-nav__caret { font-size: 14px; color: var(--fp-sidebar-muted); transition: transform .2s; }

body.ui-modern .fp-nav__link:hover,
body.ui-modern .fp-nav__link:focus {
    background: rgba(255, 255, 255, .06);
    color: #fff;
    text-decoration: none;
    outline: none;
}
body.ui-modern .fp-nav__link:focus-visible { box-shadow: inset 0 0 0 2px rgba(86, 196, 209, .7); }
body.ui-modern .fp-nav__link:hover > i:first-child { color: #fff; }

body.ui-modern .fp-nav__link.is-active,
body.ui-modern .fp-nav__group.is-active > .fp-nav__toggle {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}
body.ui-modern .fp-nav__link.is-active > i:first-child,
body.ui-modern .fp-nav__group.is-active > .fp-nav__toggle > i:first-child { color: var(--fp-teal); }
body.ui-modern .fp-nav__link.is-active::before,
body.ui-modern .fp-nav__group.is-active > .fp-nav__toggle::before {
    content: "";
    position: absolute;
    left: -10px; top: 9px; bottom: 9px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--fp-red);
}

body.ui-modern .fp-nav__group.is-open > .fp-nav__toggle .fp-nav__caret { transform: rotate(180deg); }

body.ui-modern .fp-nav__sub {
    list-style: none;
    margin: 2px 0 6px;
    padding: 0 0 0 23px;
    display: none;
}
body.ui-modern .fp-nav__group.is-open > .fp-nav__sub { display: block; }
body.ui-modern .fp-nav__sub li { position: relative; }
body.ui-modern .fp-nav__sub li::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, .1);
}
body.ui-modern .fp-nav__sub a {
    display: block;
    padding: 7px 12px 7px 18px;
    border-radius: 8px;
    color: var(--fp-sidebar-text);
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    transition: background .15s, color .15s;
}
body.ui-modern .fp-nav__sub a:hover,
body.ui-modern .fp-nav__sub a:focus { color: #fff; background: rgba(255, 255, 255, .05); outline: none; }
body.ui-modern .fp-nav__sub a.is-active {
    color: #fff;
    font-weight: 600;
    background: rgba(255, 255, 255, .07);
}
body.ui-modern .fp-nav__sub a.is-active::before {
    content: "";
    position: absolute;
    left: -2px; top: 50%;
    width: 5px; height: 5px;
    margin-top: -2.5px;
    border-radius: 50%;
    background: var(--fp-teal);
}
body.ui-modern .fp-nav mark {
    background: rgba(86, 196, 209, .35);
    color: #fff;
    padding: 0 1px;
    border-radius: 2px;
}
body.ui-modern .fp-nav__empty {
    display: none;
    padding: 18px 12px;
    color: var(--fp-sidebar-muted);
    font-size: 13px;
    text-align: center;
}
body.ui-modern .fp-nav.is-filtering-empty .fp-nav__empty { display: block; }

body.ui-modern .fp-sidebar__foot {
    flex: 0 0 auto;
    margin: 0 12px 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .07);
    font-size: 12.5px;
    color: var(--fp-sidebar-muted);
    white-space: nowrap;
    overflow: hidden;
}
body.ui-modern .fp-sidebar__foot a { color: #fff; font-weight: 600; font-size: 14px; text-decoration: none; }
body.ui-modern .fp-sidebar__foot i { color: var(--fp-teal); margin-right: 6px; }

/* Main column */
body.ui-modern .fp-main {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin-left: var(--fp-sidebar-w);
    transition: margin-left .22s ease;
    min-width: 0;
}

/* Top bar */
body.ui-modern .fp-topbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    height: var(--fp-topbar-h);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid var(--fp-line);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    backdrop-filter: saturate(180%) blur(10px);
}

body.ui-modern .fp-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--fp-text-2);
    font-size: 17px;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s, color .15s;
}
body.ui-modern .fp-icon-btn:hover,
body.ui-modern .fp-icon-btn:focus,
body.ui-modern .open > .fp-icon-btn { background: #eef2f6; color: var(--fp-ink); outline: none; }
body.ui-modern .fp-icon-btn:focus-visible { box-shadow: 0 0 0 3px rgba(86, 196, 209, .35); }
body.ui-modern .fp-sidebar .fp-icon-btn { color: var(--fp-sidebar-text); }
body.ui-modern .fp-sidebar .fp-sidebar__close { display: none; }
body.ui-modern .fp-sidebar .fp-icon-btn:hover { background: rgba(255, 255, 255, .08); color: #fff; }

body.ui-modern .fp-count {
    position: absolute;
    top: 4px; right: 3px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    border: 2px solid #fff;
    background: var(--fp-red);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 14px;
    text-align: center;
}

body.ui-modern .fp-search {
    position: relative;
    flex: 1 1 auto;
    max-width: 460px;
}
body.ui-modern .fp-search > i {
    position: absolute;
    left: 14px; top: 50%;
    transform: translateY(-50%);
    color: var(--fp-muted);
    pointer-events: none;
}
body.ui-modern .fp-search input {
    width: 100%;
    height: 40px;
    padding: 0 64px 0 40px;
    border: 1px solid var(--fp-line);
    border-radius: 10px;
    background: var(--fp-surface-2);
    color: var(--fp-text);
    font-size: 14px;
    cursor: pointer;
    outline: none;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
body.ui-modern .fp-search input::placeholder { color: var(--fp-muted); }
body.ui-modern .fp-search input:hover { border-color: var(--fp-line-2); background: #fff; }
body.ui-modern .fp-search input:focus { border-color: var(--fp-teal); background: #fff; box-shadow: 0 0 0 4px rgba(86, 196, 209, .18); }
body.ui-modern .fp-search kbd {
    position: absolute;
    right: 10px; top: 50%;
    transform: translateY(-50%);
    padding: 2px 7px;
    border-radius: 6px;
    border: 1px solid var(--fp-line-2);
    background: #fff;
    box-shadow: none;
    color: var(--fp-muted);
    font: 600 11px/1.6 var(--fp-font);
    pointer-events: none;
}

body.ui-modern .fp-topbar__spacer { flex: 1 1 auto; }
body.ui-modern .fp-topbar__actions { display: flex; align-items: center; gap: 4px; }

body.ui-modern .fp-support {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--fp-teal-soft);
    color: var(--fp-teal-800);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
}
body.ui-modern .fp-support:hover { background: #d2f0f3; color: var(--fp-teal-800); text-decoration: none; }

body.ui-modern .fp-switch-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    margin-right: 4px;
    border-radius: 999px;
    background: #fff4e5;
    color: #8a4b00;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
body.ui-modern .fp-switch-back:hover { background: #ffe9c7; color: #6d3b00; text-decoration: none; }

body.ui-modern .fp-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 8px 4px 4px;
    margin-left: 6px;
    border-radius: 12px;
    color: var(--fp-ink);
    text-decoration: none;
    cursor: pointer;
}
body.ui-modern .fp-user:hover,
body.ui-modern .fp-user:focus,
body.ui-modern .open > .fp-user { background: #eef2f6; color: var(--fp-ink); text-decoration: none; outline: none; }
body.ui-modern .fp-user img {
    width: 36px; height: 36px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--fp-teal-soft);
}
body.ui-modern .fp-user__meta { display: flex; flex-direction: column; line-height: 1.25; max-width: 170px; }
body.ui-modern .fp-user__name { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.ui-modern .fp-user__role { font-size: 12px; color: var(--fp-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.ui-modern .fp-user .fa-angle-down { color: var(--fp-muted); }

/* Top bar dropdown panels */
body.ui-modern .fp-topbar .dropdown { position: relative; }
body.ui-modern .fp-panel-menu {
    right: 0;
    left: auto;
    width: 360px;
    max-width: calc(100vw - 24px);
    margin-top: 10px;
    padding: 0;
    border: 1px solid var(--fp-line);
    border-radius: 14px;
    box-shadow: var(--fp-shadow-lg);
    overflow: hidden;
}
body.ui-modern .fp-panel-menu__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--fp-line);
    font-weight: 600;
    color: var(--fp-ink);
}
body.ui-modern .fp-panel-menu__head small { color: var(--fp-muted); font-weight: 500; }
body.ui-modern .fp-panel-menu__body { max-height: 360px; overflow-y: auto; }
body.ui-modern .fp-panel-menu__item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f3f6;
    color: var(--fp-text);
    text-decoration: none;
}
body.ui-modern .fp-panel-menu__item:hover { background: var(--fp-surface-2); color: var(--fp-text); text-decoration: none; }
body.ui-modern .fp-panel-menu__item.is-unread { background: #f3fbfc; }
body.ui-modern .fp-panel-menu__item img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: 0 0 36px; }
body.ui-modern .fp-panel-menu__item .fp-dot-icon {
    flex: 0 0 36px; width: 36px; height: 36px;
    border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--fp-teal-soft); color: var(--fp-teal-700);
}
body.ui-modern .fp-panel-menu__title { font-weight: 600; color: var(--fp-ink); line-height: 1.35; }
body.ui-modern .fp-panel-menu__meta { font-size: 12.5px; color: var(--fp-muted); }
body.ui-modern .fp-panel-menu__empty { padding: 28px 16px; text-align: center; color: var(--fp-muted); }
body.ui-modern .fp-panel-menu__empty i { display: block; font-size: 26px; margin-bottom: 8px; color: var(--fp-line-2); }
body.ui-modern .fp-panel-menu__foot {
    display: block;
    padding: 12px 16px;
    text-align: center;
    font-weight: 600;
    background: var(--fp-surface-2);
    color: var(--fp-teal-700);
}
body.ui-modern .fp-panel-menu__foot:hover { background: #eef6f7; text-decoration: none; }
body.ui-modern .fp-pill {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    background: var(--fp-red-soft);
    color: var(--fp-red-dark);
}

/* Teena help panel (markup + classes kept for the shared help scripts) */
body.ui-modern .fp-help-menu { width: 400px; }
body.ui-modern .fp-help-menu .help_window_inner { padding: 14px 16px 16px; }
body.ui-modern .fp-help-menu .help_header_back { cursor: pointer; font-weight: 600; }
body.ui-modern .fp-help-menu .help_talk { font-size: 16px; margin: 8px 0 12px; }
body.ui-modern .fp-help-menu .current_page_help { max-height: 300px; overflow-y: auto; margin-top: 10px; }
body.ui-modern .fp-help-menu .current_page_help .table th { background: none; }

body.ui-modern .fp-user-menu { width: 240px; }
body.ui-modern .fp-user-menu > li > a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--fp-text);
    font-weight: 500;
}
body.ui-modern .fp-user-menu > li > a i { width: 16px; text-align: center; color: var(--fp-muted); }
body.ui-modern .fp-user-menu > li > a:hover { background: var(--fp-surface-2); color: var(--fp-ink); }
body.ui-modern .fp-user-menu > li > a.is-danger, body.ui-modern .fp-user-menu > li > a.is-danger i { color: var(--fp-danger); }
body.ui-modern .fp-user-menu .divider { margin: 4px 0; background: var(--fp-line); }

/* Content + footer */
body.ui-modern .fp-content {
    flex: 1 0 auto;
    padding: 4px 24px 32px;
    min-width: 0;
    overflow-x: clip;   /* Bootstrap .row negative margins must not cause sideways scroll; clip keeps the sticky top bar working */
}
body.ui-modern .fp-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 16px;
    padding: 16px 24px;
    border-top: 1px solid var(--fp-line);
    background: var(--fp-surface);
    color: var(--fp-muted);
    font-size: 12.5px;
}
body.ui-modern .fp-footer strong { color: var(--fp-text-2); }
body.ui-modern .fp-footer a { color: var(--fp-text-2); font-weight: 600; }

body.ui-modern .fp-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1025;
    background: rgba(15, 20, 26, .5);
}

/* Signed-out pages that use the app layout (error pages) */
body.ui-modern .fp-guest {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 32px 16px;
    text-align: center;
}
body.ui-modern .fp-guest__logo img { height: 64px; }
body.ui-modern .fp-guest__content { max-width: 640px; color: var(--fp-text); }
body.ui-modern .fp-guest__content .title { font-family: var(--fp-font-head); font-size: 64px; font-weight: 700; color: var(--fp-red); margin-bottom: 8px; }
body.ui-modern .fp-guest__content h1 { font-size: 20px; }

/* Collapsed sidebar (desktop) */
html.fp-sidebar-collapsed body.ui-modern .fp-sidebar { width: var(--fp-sidebar-w-collapsed); }
html.fp-sidebar-collapsed body.ui-modern .fp-main { margin-left: var(--fp-sidebar-w-collapsed); }
html.fp-sidebar-collapsed body.ui-modern .fp-sidebar__brand { justify-content: center; padding: 0; }
html.fp-sidebar-collapsed body.ui-modern .fp-sidebar__logo { display: none; }
html.fp-sidebar-collapsed body.ui-modern .fp-sidebar__logo-mini { display: inline-flex; }
html.fp-sidebar-collapsed body.ui-modern .fp-sidebar__search,
html.fp-sidebar-collapsed body.ui-modern .fp-nav__label,
html.fp-sidebar-collapsed body.ui-modern .fp-nav__link > span,
html.fp-sidebar-collapsed body.ui-modern .fp-nav__caret,
html.fp-sidebar-collapsed body.ui-modern .fp-nav__sub,
html.fp-sidebar-collapsed body.ui-modern .fp-sidebar__foot { display: none !important; }
html.fp-sidebar-collapsed body.ui-modern .fp-nav { padding-top: 14px; }
html.fp-sidebar-collapsed body.ui-modern .fp-nav__link { justify-content: center; padding: 10px 0; }
html.fp-sidebar-collapsed body.ui-modern .fp-nav__link > i:first-child { font-size: 18px; }

/* 4. Page content (Inspinia components) ------------------------------------ */

/* Page heading + breadcrumb (243 pages) */
body.ui-modern .page-heading,
body.ui-modern .page-heading.white-bg,
body.ui-modern .breadcrumb-bg {
    background: transparent !important;
    color: var(--fp-text);
    border: 0 !important;
    padding: 10px 0 10px;
    margin-bottom: 0;
}
body.ui-modern .page-heading h2,
body.ui-modern .breadcrumb-bg h2 {
    margin: 0 0 6px;
    font-family: var(--fp-font-head);
    font-size: 22px;
    font-weight: 700;
    color: var(--fp-ink);
    letter-spacing: -.015em;
}
body.ui-modern .page-heading h2 i { color: var(--fp-teal-600); margin-right: 4px; }
body.ui-modern .breadcrumb,
body.ui-modern .breadcrumb-bg .breadcrumb {
    background: transparent !important;
    padding: 0 !important;
    margin: 0;
    font-size: 13px;
}
body.ui-modern .breadcrumb > li,
body.ui-modern .breadcrumb > li a { color: var(--fp-muted); font-weight: 500; }
body.ui-modern .breadcrumb > li a:hover { color: var(--fp-teal-700); }
body.ui-modern .breadcrumb > li a.active,
body.ui-modern .breadcrumb > .active,
body.ui-modern .breadcrumb > li:last-child a { color: var(--fp-text-2); font-weight: 600; }
body.ui-modern .breadcrumb > li + li:before,
body.ui-modern .breadcrumb-bg .breadcrumb > li + li:before {
    content: "\f105";
    font-family: FontAwesome;
    color: #a3adb9;
    padding: 0 8px;
}
body.ui-modern .page-heading .title-action { padding-top: 0; }

/* Title left, breadcrumb right, on one line (wraps when space runs out).
   Works for both heading layouts used by the pages: col-lg-12, and col-lg-10 + col-lg-2. */
body.ui-modern .page-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    margin-left: 0;
    margin-right: 0;
}
body.ui-modern .page-heading::before,
body.ui-modern .page-heading::after { display: none; }
body.ui-modern .page-heading > [class*="col-"] {
    float: none;
    width: auto;
    min-height: 0;
    padding: 0;
}
body.ui-modern .page-heading > [class*="col-"]:first-child {
    flex: 1 1 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 24px;
    min-width: 0;
}
body.ui-modern .page-heading > [class*="col-"]:not(:first-child) { flex: 0 0 auto; }
/* the empty col-lg-2 most pages carry would leave a gap after the breadcrumb */
body.ui-modern .page-heading > [class*="col-"]:not(:first-child):not(:has(*)) { display: none; }
body.ui-modern .page-heading > [class*="col-"]:not(:first-child) h1 { margin: 0; font-size: 20px; }
body.ui-modern .page-heading h2,
body.ui-modern .breadcrumb-bg h2 { margin: 0; }
body.ui-modern .page-heading .breadcrumb {
    margin-left: auto;
    padding: 6px 12px !important;
    border-radius: 999px;
    background: var(--fp-surface) !important;
    border: 1px solid var(--fp-line);
    white-space: nowrap;
}

body.ui-modern .wrapper-content { padding: 8px 0 24px; }
body.ui-modern .wrapper.wrapper-content > .row:first-child { margin-top: 0; }

/* Cards (ibox) */
body.ui-modern .ibox {
    margin-bottom: 20px;
    background: var(--fp-surface);
    border: 1px solid var(--fp-line);
    border-radius: var(--fp-radius);
    box-shadow: var(--fp-shadow);
    clear: both;
}
body.ui-modern .ibox.float-e-margins { margin-bottom: 20px; }
body.ui-modern .ibox-title {
    min-height: 54px;
    padding: 15px 18px 12px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--fp-line);
    border-radius: var(--fp-radius) var(--fp-radius) 0 0;
    color: var(--fp-ink);
}
body.ui-modern .ibox-title h5 {
    font-size: 15px;
    font-weight: 600;
    color: var(--fp-ink);
    margin: 2px 0 0;
}
body.ui-modern .ibox-title .label { margin-left: 6px; }
body.ui-modern .ibox-title h5 .label { float: none; vertical-align: 1px; }
body.ui-modern .ibox-tools { top: 0; }
body.ui-modern .ibox-tools a { color: var(--fp-muted); }
body.ui-modern .ibox-tools a:hover { color: var(--fp-ink); }
body.ui-modern .ibox-content {
    padding: 18px;
    background: transparent;
    border: 0;
    color: var(--fp-text);
}
body.ui-modern .ibox > .ibox-content:first-child { border-radius: var(--fp-radius); }
body.ui-modern .ibox > .ibox-content:last-child { border-radius: 0 0 var(--fp-radius) var(--fp-radius); }
body.ui-modern .ibox > .ibox-content:only-child { border-radius: var(--fp-radius); }
body.ui-modern .ibox-footer {
    padding: 12px 18px;
    background: var(--fp-surface-2);
    border-top: 1px solid var(--fp-line);
    border-radius: 0 0 var(--fp-radius) var(--fp-radius);
    color: var(--fp-text-2);
}
/* An ibox-content used on its own (no ibox wrapper) still reads as a card */
body.ui-modern .wrapper-content > .ibox-content,
body.ui-modern .wrapper-content > .row > [class*="col-"] > .ibox-content,
body.ui-modern .ibox-content.forum-container {
    background: var(--fp-surface);
    border: 1px solid var(--fp-line);
    border-radius: var(--fp-radius);
    box-shadow: var(--fp-shadow);
    margin-bottom: 20px;
}

body.ui-modern .panel {
    border-color: var(--fp-line);
    border-radius: var(--fp-radius);
    box-shadow: var(--fp-shadow-sm);
}
body.ui-modern .panel-heading { border-radius: var(--fp-radius) var(--fp-radius) 0 0; font-weight: 600; }
body.ui-modern .panel-default > .panel-heading { background: var(--fp-surface-2); color: var(--fp-ink); border-color: var(--fp-line); }
body.ui-modern .well { background: var(--fp-surface-2); border-color: var(--fp-line); border-radius: var(--fp-radius-sm); box-shadow: none; }

/* Tables */
body.ui-modern .table { color: var(--fp-text); font-size: 13.5px; margin-bottom: 16px; }
body.ui-modern .table > thead > tr > th,
body.ui-modern .table > thead > tr > td {
    background: var(--fp-surface-2);
    color: var(--fp-text-2);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .02em;
    padding: 11px 12px;
    border-bottom: 1px solid var(--fp-line-2);
    border-top: 0;
    vertical-align: middle;
    white-space: nowrap;
}
body.ui-modern .table > tbody > tr > td,
body.ui-modern .table > tbody > tr > th,
body.ui-modern .table > tfoot > tr > td,
body.ui-modern .table > tfoot > tr > th {
    padding: 11px 12px;
    border-top: 1px solid var(--fp-line);
    vertical-align: middle;
    line-height: 1.5;
}
body.ui-modern .table > tbody > tr:first-child > td { border-top: 0; }
body.ui-modern .table-hover > tbody > tr:hover > td,
body.ui-modern .table-hover > tbody > tr:hover > th { background: #f4fafb; }
body.ui-modern .table-striped > tbody > tr:nth-of-type(odd) { background: #fafbfd; }
body.ui-modern .table-bordered,
body.ui-modern .table-bordered > thead > tr > th,
body.ui-modern .table-bordered > tbody > tr > td,
body.ui-modern .table-bordered > tfoot > tr > td { border-color: var(--fp-line); }
body.ui-modern .table-bordered { border-radius: var(--fp-radius-sm); }
body.ui-modern .table-responsive { border: 0; border-radius: var(--fp-radius-sm); }
body.ui-modern .table > tbody > tr.active > td,
body.ui-modern .table > tbody > tr > td.active { background: var(--fp-teal-soft); }
body.ui-modern .table .client-avatar img { width: 32px; height: 32px; border-radius: 50%; }

/* Forms */
body.ui-modern .form-control,
body.ui-modern .input-group .form-control,
body.ui-modern .single-line {
    height: 38px;
    padding: 7px 12px;
    border: 1px solid var(--fp-line-2);
    border-radius: var(--fp-radius-sm);
    background: #fff;
    color: var(--fp-ink);
    font-size: 14px;
    box-shadow: none;
    transition: border-color .15s, box-shadow .15s;
}
body.ui-modern textarea.form-control { height: auto; min-height: 80px; line-height: 1.5; }
body.ui-modern select.form-control { padding-right: 28px; }
body.ui-modern select[multiple].form-control { height: auto; }
body.ui-modern .form-control::placeholder { color: #8a94a3; }
body.ui-modern .form-control:focus {
    border-color: var(--fp-teal);
    box-shadow: 0 0 0 4px rgba(86, 196, 209, .18);
    outline: none;
}
body.ui-modern .form-control[disabled],
body.ui-modern .form-control[readonly],
body.ui-modern fieldset[disabled] .form-control { background: #f1f4f7; color: var(--fp-text-2); }
body.ui-modern .input-sm, body.ui-modern .form-group-sm .form-control { height: 32px; font-size: 13px; padding: 5px 10px; }
body.ui-modern .input-lg { height: 46px; font-size: 15px; }
body.ui-modern .control-label { color: var(--fp-text-2); font-weight: 600; font-size: 13.5px; }
body.ui-modern .form-horizontal .control-label { padding-top: 9px; }
body.ui-modern .help-block { color: var(--fp-muted); font-size: 12.5px; }
body.ui-modern .has-error .form-control { border-color: var(--fp-danger); }
body.ui-modern .has-error .help-block,
body.ui-modern .has-error .control-label { color: var(--fp-danger); }
body.ui-modern .has-success .form-control { border-color: var(--fp-green); }
body.ui-modern .input-group-addon {
    border-color: var(--fp-line-2);
    background: var(--fp-surface-2);
    color: var(--fp-text-2);
    border-radius: var(--fp-radius-sm);
}
body.ui-modern .input-group .form-control:first-child,
body.ui-modern .input-group-addon:first-child { border-top-right-radius: 0; border-bottom-right-radius: 0; }
body.ui-modern .input-group .form-control:last-child,
body.ui-modern .input-group-addon:last-child { border-top-left-radius: 0; border-bottom-left-radius: 0; }
body.ui-modern .input-group-btn > .btn { height: 38px; }
body.ui-modern .input-group-btn:last-child > .btn:first-child { border-top-left-radius: 0; border-bottom-left-radius: 0; }
body.ui-modern .input-group-btn:last-child > .btn:last-child { border-top-right-radius: var(--fp-radius-sm); border-bottom-right-radius: var(--fp-radius-sm); }
body.ui-modern .input-group-btn:first-child > .btn { border-top-right-radius: 0; border-bottom-right-radius: 0; }
body.ui-modern .checkbox label, body.ui-modern .radio label { font-weight: 500; color: var(--fp-text); }

/* Buttons */
body.ui-modern .btn {
    border-radius: var(--fp-radius-sm);
    font-size: 13.5px;
    font-weight: 600;
    padding: 8px 14px;
    line-height: 1.45;
    box-shadow: none;
    transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
}
body.ui-modern .btn:focus, body.ui-modern .btn.focus { outline: none; box-shadow: 0 0 0 3px rgba(86, 196, 209, .35); }
body.ui-modern .btn-sm { padding: 6px 11px; font-size: 13px; }
body.ui-modern .btn-xs { padding: 3px 9px; font-size: 12.5px; border-radius: 7px; }
body.ui-modern .btn-lg { padding: 11px 20px; font-size: 15px; border-radius: 10px; }
body.ui-modern .btn-circle { border-radius: 50%; padding: 6px 0; }
body.ui-modern .btn-circle.btn-lg { border-radius: 50%; }

body.ui-modern .btn-primary { background: var(--fp-teal-700); border-color: var(--fp-teal-700); color: #fff; }
body.ui-modern .btn-primary:hover, body.ui-modern .btn-primary:focus,
body.ui-modern .btn-primary:active, body.ui-modern .btn-primary.active,
body.ui-modern .open .dropdown-toggle.btn-primary { background: var(--fp-teal-800); border-color: var(--fp-teal-800); color: #fff; }

body.ui-modern .btn-info { background: var(--fp-blue); border-color: var(--fp-blue); color: #fff; }
body.ui-modern .btn-info:hover, body.ui-modern .btn-info:focus,
body.ui-modern .btn-info:active, body.ui-modern .btn-info.active,
body.ui-modern .open .dropdown-toggle.btn-info { background: #1752a6; border-color: #1752a6; color: #fff; }

body.ui-modern .btn-success { background: var(--fp-green); border-color: var(--fp-green); color: #fff; }
body.ui-modern .btn-success:hover, body.ui-modern .btn-success:focus,
body.ui-modern .btn-success:active, body.ui-modern .btn-success.active { background: #11672f; border-color: #11672f; color: #fff; }

body.ui-modern .btn-warning { background: var(--fp-amber); border-color: var(--fp-amber); color: #fff; }
body.ui-modern .btn-warning:hover, body.ui-modern .btn-warning:focus,
body.ui-modern .btn-warning:active, body.ui-modern .btn-warning.active { background: #934407; border-color: #934407; color: #fff; }

body.ui-modern .btn-danger { background: var(--fp-danger); border-color: var(--fp-danger); color: #fff; }
body.ui-modern .btn-danger:hover, body.ui-modern .btn-danger:focus,
body.ui-modern .btn-danger:active, body.ui-modern .btn-danger.active { background: #ab0d34; border-color: #ab0d34; color: #fff; }

body.ui-modern .btn-default,
body.ui-modern .btn-white {
    background: #fff;
    border: 1px solid var(--fp-line-2);
    color: var(--fp-text);
}
body.ui-modern .btn-default:hover, body.ui-modern .btn-default:focus, body.ui-modern .btn-default:active,
body.ui-modern .btn-white:hover, body.ui-modern .btn-white:focus, body.ui-modern .btn-white:active,
body.ui-modern .btn-white.active { background: #f3f6f9; border-color: #c4cdd7; color: var(--fp-ink); }

body.ui-modern .btn-link { color: var(--fp-teal-700); font-weight: 600; }
body.ui-modern .btn-outline { background: transparent; }
body.ui-modern .btn-primary.btn-outline { color: var(--fp-teal-700); }
body.ui-modern .btn-primary.btn-outline:hover { color: #fff; }
body.ui-modern .btn-block + .btn-block { margin-top: 8px; }

/* Labels & badges: tinted with dark text for legibility */
body.ui-modern .label,
body.ui-modern .badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    text-shadow: none;
    background: #e9edf2;
    color: var(--fp-text-2);
}
body.ui-modern .label-primary, body.ui-modern .badge-primary { background: var(--fp-teal-soft); color: var(--fp-teal-800); }
body.ui-modern .label-info, body.ui-modern .badge-info { background: #e3edfb; color: #134a96; }
body.ui-modern .label-success, body.ui-modern .badge-success { background: #e2f5e9; color: #11632e; }
body.ui-modern .label-warning, body.ui-modern .badge-warning { background: #fff1dc; color: #8a4204; }
body.ui-modern .label-danger, body.ui-modern .badge-danger { background: var(--fp-red-soft); color: #a50c33; }
body.ui-modern .label-default, body.ui-modern .badge-default { background: #e9edf2; color: var(--fp-text-2); }
body.ui-modern .label-inverse, body.ui-modern .badge-inverse { background: #2f363c; color: #fff; }

/* Alerts */
body.ui-modern .alert {
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 13.5px;
}
body.ui-modern .alert-success { background: #ecf8f0; border-color: #c4e8d1; color: #11532a; }
body.ui-modern .alert-info { background: #edf4fd; border-color: #c9dcf6; color: #123f7c; }
body.ui-modern .alert-warning { background: #fff7e9; border-color: #f6dcae; color: #774005; }
body.ui-modern .alert-danger { background: #fdeef2; border-color: #f6c6d3; color: #8f0a2c; }
body.ui-modern .alert .alert-link { font-weight: 700; }

/* Tabs */
body.ui-modern .nav-tabs { border-bottom: 1px solid var(--fp-line); }
body.ui-modern .nav-tabs > li > a {
    margin-right: 4px;
    padding: 10px 16px;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    color: var(--fp-muted);
    font-weight: 600;
}
body.ui-modern .nav-tabs > li > a:hover { background: transparent; color: var(--fp-ink); border-bottom-color: var(--fp-line-2); }
body.ui-modern .nav-tabs > li.active > a,
body.ui-modern .nav-tabs > li.active > a:hover,
body.ui-modern .nav-tabs > li.active > a:focus {
    border: 0;
    border-bottom: 2px solid var(--fp-red);
    background: transparent;
    color: var(--fp-ink);
}
body.ui-modern .tabs-container .panel-body {
    background: var(--fp-surface);
    border: 1px solid var(--fp-line);
    border-top: 0;
    border-radius: 0 0 var(--fp-radius) var(--fp-radius);
    padding: 18px;
}
body.ui-modern .tabs-container .nav-tabs > li.active > a,
body.ui-modern .tabs-container .nav-tabs > li.active > a:hover,
body.ui-modern .tabs-container .nav-tabs > li.active > a:focus { border: 0; border-bottom: 2px solid var(--fp-red); background: transparent; }
body.ui-modern .tabs-container .nav-tabs { background: var(--fp-surface); border: 1px solid var(--fp-line); border-radius: var(--fp-radius) var(--fp-radius) 0 0; padding: 0 8px; }
/* tabs inside a card: no second box, just the underline */
body.ui-modern .ibox-content .tabs-container .nav-tabs,
body.ui-modern .ibox .tabs-container .nav-tabs { background: transparent; border: 0; border-bottom: 1px solid var(--fp-line); border-radius: 0; padding: 0; }
body.ui-modern .ibox-content .tabs-container .panel-body,
body.ui-modern .ibox .tabs-container .panel-body { border: 0; border-radius: 0; background: transparent; padding: 14px 0 0 !important; }
body.ui-modern .nav-pills > li > a { border-radius: 8px; color: var(--fp-text-2); font-weight: 600; }
body.ui-modern .nav-pills > li.active > a { background: var(--fp-teal-700); color: #fff; }

/* Dropdown menus */
body.ui-modern .dropdown-menu {
    border: 1px solid var(--fp-line);
    border-radius: 10px;
    box-shadow: var(--fp-shadow-lg);
    padding: 6px 0;
    font-size: 13.5px;
}
body.ui-modern .dropdown-menu > li > a { color: var(--fp-text); padding: 8px 14px; line-height: 1.45; }
body.ui-modern .dropdown-menu > li > a:hover,
body.ui-modern .dropdown-menu > li > a:focus { background: var(--fp-surface-2); color: var(--fp-ink); }
body.ui-modern .dropdown-menu > .active > a { background: var(--fp-teal-700); }
/* Inspinia's style.css forces .dropdown-menu { left: 0 } after Bootstrap, which breaks Bootstrap's right alignment:
   menus on right-hand buttons opened off the screen. Restore it. */
body.ui-modern .dropdown-menu.dropdown-menu-right,
body.ui-modern .pull-right > .dropdown-menu { left: auto; right: 0; }

/* Modals */
body.ui-modern .modal-content {
    border: 0;
    border-radius: 16px;
    box-shadow: 0 30px 60px -20px rgba(16, 24, 40, .45);
    overflow: hidden;
}
body.ui-modern .modal-header { padding: 16px 20px; border-bottom: 1px solid var(--fp-line); }
body.ui-modern .modal-header .modal-title { font-size: 17px; font-weight: 600; color: var(--fp-ink); }
body.ui-modern .modal-body { padding: 20px; color: var(--fp-text); }
body.ui-modern .modal-footer { padding: 14px 20px; border-top: 1px solid var(--fp-line); background: var(--fp-surface-2); }
body.ui-modern .modal-backdrop.in { opacity: .45; }
body.ui-modern .inmodal .modal-header { padding: 24px 20px 18px; }
body.ui-modern .inmodal .modal-title { font-size: 22px; }
body.ui-modern .inmodal .modal-icon { color: var(--fp-teal-600); }

/* Pagination (Bootstrap 3 markup from Laravel's paginator) */
body.ui-modern .pagination { margin: 12px 0; }
body.ui-modern .pagination > li > a,
body.ui-modern .pagination > li > span {
    margin: 0 3px;
    min-width: 34px;
    padding: 6px 10px;
    border: 1px solid var(--fp-line-2);
    border-radius: 8px !important;
    color: var(--fp-text-2);
    font-weight: 600;
    text-align: center;
}
body.ui-modern .pagination > li > a:hover { background: var(--fp-surface-2); color: var(--fp-ink); }
body.ui-modern .pagination > .active > a,
body.ui-modern .pagination > .active > span,
body.ui-modern .pagination > .active > a:hover,
body.ui-modern .pagination > .active > span:hover { background: var(--fp-teal-700); border-color: var(--fp-teal-700); color: #fff; }
body.ui-modern .pagination > .disabled > span,
body.ui-modern .pagination > .disabled > a { color: #a3adb9; background: #fff; }

/* DataTables */
body.ui-modern .dataTables_wrapper .dataTables_filter input,
body.ui-modern .dataTables_wrapper .dataTables_length select {
    height: 34px;
    border: 1px solid var(--fp-line-2);
    border-radius: 8px;
    padding: 4px 10px;
    margin-left: 6px;
}
body.ui-modern .dataTables_wrapper .dataTables_info { color: var(--fp-muted); padding-top: 14px; }
body.ui-modern .dt-buttons .btn { margin-right: 4px; }

/* Detail pages ("forum" layout, 140+ uses) */
body.ui-modern .forum-container { padding: 6px 18px; }
body.ui-modern .forum-title { margin: 12px 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--fp-line); }
body.ui-modern .forum-title h3 { margin: 6px 0 0; font-size: 16px; }
body.ui-modern .forum-item { padding: 14px 0; margin: 0; border-bottom: 1px solid var(--fp-line); }
body.ui-modern .forum-item:last-child { border-bottom: 0; }
body.ui-modern .forum-item.active .forum-icon i,
body.ui-modern .forum-icon i { color: var(--fp-teal-600); }
body.ui-modern .forum-icon {
    float: left;
    width: 40px; height: 40px;
    margin: 0 14px 0 0;
    border-radius: 10px;
    background: var(--fp-teal-soft);
    text-align: center;
}
body.ui-modern .forum-icon .fa { font-size: 18px; line-height: 40px; margin: 0; }
body.ui-modern .forum-item-title {
    display: block;
    color: var(--fp-muted);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
    margin-bottom: 2px;
}
body.ui-modern .forum-item.active .forum-item-title { color: var(--fp-muted); }
body.ui-modern .forum-sub-title { margin: 0; color: var(--fp-ink); font-size: 15px; font-weight: 600; }

/* Modern detail pages (reusable): header card, label/value grid, linked list.
   First used by menu/show.blade.php. */
body.ui-modern .fp-detail {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 20px;
    margin-bottom: 20px;
    padding: 20px 22px;
    background: var(--fp-surface);
    border: 1px solid var(--fp-line);
    border-radius: var(--fp-radius);
    box-shadow: var(--fp-shadow);
}
body.ui-modern .fp-detail__icon {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--fp-teal-soft);
    color: var(--fp-teal-700);
    font-size: 24px;
}
body.ui-modern .fp-detail__main { flex: 1 1 240px; min-width: 0; }
body.ui-modern .fp-detail__eyebrow {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--fp-muted);
}
body.ui-modern .fp-detail__title {
    margin: 2px 0 8px;
    font-family: var(--fp-font-head);
    font-size: 22px;
    font-weight: 700;
    color: var(--fp-ink);
}
body.ui-modern .fp-detail__meta { display: flex; flex-wrap: wrap; gap: 6px; }
body.ui-modern .fp-detail__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }

body.ui-modern .fp-dl { margin: 0; }
body.ui-modern .fp-dl > div {
    display: grid;
    grid-template-columns: minmax(110px, 38%) 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--fp-line);
}
body.ui-modern .fp-dl > div:first-child { padding-top: 0; }
body.ui-modern .fp-dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
body.ui-modern .fp-dl dt { font-size: 13px; font-weight: 600; color: var(--fp-muted); }
body.ui-modern .fp-dl dd { margin: 0; font-size: 14px; font-weight: 600; color: var(--fp-ink); word-break: break-word; }
body.ui-modern .fp-dl dd code {
    padding: 2px 7px;
    border-radius: 6px;
    background: var(--fp-surface-2);
    border: 1px solid var(--fp-line);
    color: var(--fp-text-2);
    font-size: 12.5px;
}
body.ui-modern .fp-dl__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-right: 8px;
    border-radius: 8px;
    background: var(--fp-teal-soft);
    color: var(--fp-teal-700);
    vertical-align: middle;
}

body.ui-modern .fp-list__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--fp-line);
    color: var(--fp-text);
    text-decoration: none;
    transition: background .15s;
}
body.ui-modern .fp-list__item:last-child { border-bottom: 0; border-radius: 0 0 var(--fp-radius) var(--fp-radius); }
body.ui-modern .fp-list__item:hover,
body.ui-modern .fp-list__item:focus { background: #f4fafb; color: var(--fp-text); text-decoration: none; }
body.ui-modern .fp-list__order {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--fp-surface-2);
    border: 1px solid var(--fp-line);
    color: var(--fp-text-2);
    font-size: 12.5px;
    font-weight: 700;
}
body.ui-modern .fp-list__body { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
body.ui-modern .fp-list__body strong { color: var(--fp-ink); font-size: 14px; }
body.ui-modern .fp-list__body span { color: var(--fp-muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.ui-modern .fp-list__chevron { color: var(--fp-muted); transition: transform .15s, color .15s; }
body.ui-modern .fp-list__item:hover .fp-list__chevron { color: var(--fp-teal-700); transform: translateX(2px); }
body.ui-modern .fp-list__empty { padding: 22px 18px; color: var(--fp-muted); }

@media (max-width: 767px) {
    body.ui-modern .fp-detail__actions { margin-left: 0; width: 100%; }
    body.ui-modern .fp-detail__actions .btn { flex: 1 1 auto; }
    body.ui-modern .fp-dl > div { grid-template-columns: 1fr; gap: 2px; }
}

/* Modern list pages (reusable): toolbar + filter, table rows, flat icon actions.
   First used by menu/index.blade.php. */
body.ui-modern .fp-alert { display: flex; align-items: center; gap: 8px; }
body.ui-modern .fp-alert .close { order: 2; margin-left: auto; opacity: .6; }

body.ui-modern .fp-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--fp-line);
}
body.ui-modern .fp-toolbar__title { display: flex; align-items: center; gap: 8px; }
body.ui-modern .fp-toolbar__title h5 { margin: 0; font-size: 15px; font-weight: 600; color: var(--fp-ink); }
body.ui-modern .fp-toolbar__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
body.ui-modern .fp-filter { position: relative; width: 240px; max-width: 100%; }
body.ui-modern .fp-filter > i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--fp-muted);
    pointer-events: none;
}
body.ui-modern .fp-filter .form-control { padding-left: 34px; }

body.ui-modern .fp-table { margin: 0; }
body.ui-modern .fp-table > thead > tr > th:first-child,
body.ui-modern .fp-table > tbody > tr > td:first-child { padding-left: 18px; }
body.ui-modern .fp-table > thead > tr > th:last-child,
body.ui-modern .fp-table > tbody > tr > td:last-child { padding-right: 18px; }
body.ui-modern .fp-table > tbody > tr:hover > td { background: #f7fbfc; }
body.ui-modern .fp-table__narrow { width: 1%; white-space: nowrap; }
body.ui-modern .fp-table__empty { padding: 28px 18px !important; text-align: center; color: var(--fp-muted); }

body.ui-modern .fp-order {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    border-radius: 9px;
    background: var(--fp-surface-2);
    border: 1px solid var(--fp-line);
    color: var(--fp-text-2);
    font-size: 12.5px;
    font-weight: 700;
}
body.ui-modern .fp-item { display: inline-flex; align-items: center; gap: 12px; color: var(--fp-text); text-decoration: none; }
body.ui-modern .fp-item:hover { color: var(--fp-text); text-decoration: none; }
body.ui-modern .fp-item__icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--fp-teal-soft);
    color: var(--fp-teal-700);
    font-size: 16px;
}
body.ui-modern .fp-item__body { display: flex; flex-direction: column; line-height: 1.3; }
body.ui-modern .fp-item__body strong { color: var(--fp-ink); font-size: 14px; }
body.ui-modern .fp-item:hover .fp-item__body strong { color: var(--fp-teal-700); }
body.ui-modern .fp-item__body span { color: var(--fp-muted); font-size: 12.5px; }
body.ui-modern .fp-item__icon--text { font-size: 12px; font-weight: 700; letter-spacing: .02em; }
body.ui-modern .fp-cell-muted { color: var(--fp-text-2); font-size: 13px; }
body.ui-modern td.fp-cell-muted { max-width: 360px; }
body.ui-modern .fp-nowrap { white-space: nowrap; }
body.ui-modern .fp-tel { color: var(--fp-text); white-space: nowrap; }
body.ui-modern .fp-tel i { color: var(--fp-teal-600); margin-right: 4px; }
body.ui-modern .fp-tel:hover { color: var(--fp-teal-700); text-decoration: none; }
body.ui-modern .fp-table__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    padding: 10px 18px;
    border-top: 1px solid var(--fp-line);
    color: var(--fp-muted);
    font-size: 13px;
}
body.ui-modern .fp-table__foot .pagination { margin: 0; }
body.ui-modern .fp-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
body.ui-modern .fp-code {
    padding: 2px 7px;
    border-radius: 6px;
    background: var(--fp-surface-2);
    border: 1px solid var(--fp-line);
    color: var(--fp-text-2);
    font-size: 12.5px;
    white-space: nowrap;
}

body.ui-modern .fp-actions { display: flex; justify-content: flex-end; gap: 6px; margin: 0; }
body.ui-modern .fp-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--fp-line-2);
    border-radius: 8px;
    background: #fff;
    color: var(--fp-text-2);
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s, border-color .15s, color .15s;
}
body.ui-modern .fp-action:hover,
body.ui-modern .fp-action:focus { background: var(--fp-teal-soft); border-color: var(--fp-teal); color: var(--fp-teal-800); text-decoration: none; outline: none; }
body.ui-modern .fp-action:focus-visible { box-shadow: 0 0 0 3px rgba(86, 196, 209, .35); }
body.ui-modern .fp-action--danger:hover,
body.ui-modern .fp-action--danger:focus { background: var(--fp-red-soft); border-color: #f2a5b9; color: var(--fp-danger); }

@media (max-width: 767px) {
    body.ui-modern .fp-toolbar__tools,
    body.ui-modern .fp-filter { width: 100%; }
    body.ui-modern .fp-toolbar__tools .btn { flex: 1 1 auto; }
    body.ui-modern .fp-hide-sm { display: none !important; }
    body.ui-modern .fp-table > thead > tr > th,
    body.ui-modern .fp-table > tbody > tr > td { padding-left: 8px; padding-right: 8px; }
    body.ui-modern .fp-table > thead > tr > th:first-child,
    body.ui-modern .fp-table > tbody > tr > td:first-child { padding-left: 12px; }
    body.ui-modern .fp-table > thead > tr > th:last-child,
    body.ui-modern .fp-table > tbody > tr > td:last-child { padding-right: 12px; }
    body.ui-modern .fp-actions { gap: 4px; }
    body.ui-modern .fp-action { width: 30px; height: 30px; }
    body.ui-modern .fp-item { gap: 10px; }
    /* Bootstrap stops wrapping in .table-responsive on phones; let long names wrap so actions stay visible */
    body.ui-modern .table-responsive > .fp-table > tbody > tr > td { white-space: normal; }
    body.ui-modern .fp-item__body strong,
    body.ui-modern .fp-item__body span { overflow-wrap: anywhere; }
}

/* Modern forms (reusable): labels, action footer, icon picker, sidebar preview.
   First used by menu/create.blade.php. */
body.ui-modern .fp-label { display: inline-block; margin-bottom: 6px; font-size: 13.5px; font-weight: 600; color: var(--fp-text-2); }
body.ui-modern .fp-req { color: var(--fp-danger); margin-left: 2px; }
body.ui-modern .fp-form .form-group { margin-bottom: 18px; }
body.ui-modern .fp-form__actions { display: flex; justify-content: flex-end; gap: 10px; }

body.ui-modern .fp-icon-picker__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    margin-bottom: 10px;
}
body.ui-modern .fp-icon-picker__head .fp-label { margin: 0; }
body.ui-modern .fp-icon-picker__head .fp-filter { width: 220px; }
body.ui-modern .fp-form__section {
    margin: 6px 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--fp-line);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--fp-muted);
}
body.ui-modern .fp-form__section ~ .fp-form__section { margin-top: 10px; }
body.ui-modern .fp-form__note { margin: 4px 0 0; color: var(--fp-muted); font-size: 13px; }
body.ui-modern .fp-form__note i { color: var(--fp-teal-600); margin-right: 4px; }
body.ui-modern .fp-static { margin: 0; padding: 8px 0 0; font-size: 15px; font-weight: 600; color: var(--fp-ink); }

/* rich-text editor (Summernote) inside modern forms */
body.ui-modern .fp-editor .note-editor { background: #fff !important; border: 1px solid var(--fp-line-2); border-radius: var(--fp-radius-sm); overflow: hidden; }
body.ui-modern .fp-editor .note-toolbar { background: var(--fp-surface-2); border-bottom: 1px solid var(--fp-line); padding: 6px 8px; }
body.ui-modern .fp-editor .note-editable { min-height: 260px; padding: 14px 16px; color: var(--fp-text); font-size: 14px; line-height: 1.6; }
body.ui-modern .fp-editor textarea.summernote { width: 100%; min-height: 260px; }
body.ui-modern .fp-editor .note-editor { min-height: 0; }   /* Inspinia sets 300px, leaving an empty band under the editor */
body.ui-modern .fp-editor--sm .note-editable { min-height: 140px; }
body.ui-modern .fp-editor > textarea { width: 100%; }

/* detail page extras */
body.ui-modern .fp-detail__icon--text { font-size: 15px; font-weight: 700; letter-spacing: .02em; }
body.ui-modern .fp-mini-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
body.ui-modern .fp-mini-stats > div {
    display: flex;
    flex-direction: column;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--fp-surface-2);
    border: 1px solid var(--fp-line);
}
body.ui-modern .fp-mini-stats strong { font-family: var(--fp-font-head); font-size: 22px; font-weight: 700; color: var(--fp-ink); line-height: 1.2; }
body.ui-modern .fp-mini-stats span { font-size: 12.5px; color: var(--fp-muted); }
body.ui-modern .fp-mini-stats > .is-total { background: var(--fp-teal-soft); border-color: transparent; }
body.ui-modern .fp-mini-stats > .is-total strong { color: var(--fp-teal-800); }
body.ui-modern .fp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
body.ui-modern .fp-article { color: var(--fp-text); font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
body.ui-modern .fp-article p { margin: 0 0 10px; }
body.ui-modern .fp-article p:last-child { margin-bottom: 0; }
body.ui-modern .fp-article img { max-width: 100%; height: auto; border-radius: 8px; }
body.ui-modern .fp-article ul, body.ui-modern .fp-article ol { padding-left: 22px; }
body.ui-modern .fp-article--lg { padding: 24px 28px; font-size: 15px; }
body.ui-modern .fp-article--lg h1, body.ui-modern .fp-article--lg h2, body.ui-modern .fp-article--lg h3 { margin: 18px 0 8px; }

body.ui-modern .fp-card__link-plain { font-size: 13px; font-weight: 600; color: var(--fp-teal-700); }
body.ui-modern .fp-card__link-plain:hover { color: var(--fp-teal-800); text-decoration: none; }
body.ui-modern .fp-icon-picker {
    position: relative;   /* offset parent for scrolling the selected icon into view */
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(46px, 1fr));
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
    padding: 12px;
    border: 1px solid var(--fp-line);
    border-radius: 12px;
    background: var(--fp-surface-2);
}
body.ui-modern .has-error .fp-icon-picker { border-color: var(--fp-danger); }
body.ui-modern .fp-icon-picker__item { position: relative; margin: 0; cursor: pointer; }
body.ui-modern .fp-icon-picker__item input { position: absolute; opacity: 0; width: 0; height: 0; }
body.ui-modern .fp-icon-picker__tile {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    border: 1px solid var(--fp-line);
    border-radius: 10px;
    background: #fff;
    color: var(--fp-text-2);
    font-size: 17px;
    transition: border-color .12s, background .12s, color .12s, box-shadow .12s;
}
body.ui-modern .fp-icon-picker__item:hover .fp-icon-picker__tile { border-color: var(--fp-teal); color: var(--fp-teal-800); }
body.ui-modern .fp-icon-picker__item input:focus-visible + .fp-icon-picker__tile { box-shadow: 0 0 0 3px rgba(86, 196, 209, .45); }
body.ui-modern .fp-icon-picker__item input:checked + .fp-icon-picker__tile {
    border-color: var(--fp-teal-700);
    background: var(--fp-teal-soft);
    color: var(--fp-teal-800);
    box-shadow: 0 0 0 2px var(--fp-teal-700);
}
body.ui-modern .fp-icon-picker__empty { grid-column: 1 / -1; padding: 18px; text-align: center; color: var(--fp-muted); }

/* sidebar preview uses the real sidebar colours */
body.ui-modern .fp-preview {
    padding: 14px 12px;
    border-radius: 12px;
    background:
        radial-gradient(circle at 110% -5%, rgba(86, 196, 209, .22), transparent 45%),
        linear-gradient(180deg, #1b2025 0%, #2f363c 70%, #1f5f68 140%);
}
body.ui-modern .fp-preview__label {
    margin: 0 8px 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--fp-sidebar-muted);
}
body.ui-modern .fp-preview__item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 9px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-weight: 600;
}
body.ui-modern .fp-preview__item::before {
    content: "";
    position: absolute;
    left: -12px; top: 9px; bottom: 9px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--fp-red);
}
body.ui-modern .fp-preview__item > i:first-child { width: 22px; text-align: center; font-size: 16px; color: var(--fp-teal); }
body.ui-modern .fp-preview__item span { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.ui-modern .fp-preview__caret { color: var(--fp-sidebar-muted); }
body.ui-modern .fp-preview-meta { margin-top: 16px; }

@media (max-width: 767px) {
    body.ui-modern .fp-icon-picker__head .fp-filter { width: 100%; }
    body.ui-modern .fp-form__actions .btn { flex: 1 1 auto; }
}

/* Notice pages (feature not enabled etc.) */
body.ui-modern .fp-notice { padding: 40px 28px; }
body.ui-modern .fp-notice__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 14px;
    border-radius: 18px;
    background: var(--fp-red-soft);
    color: var(--fp-red);
    font-size: 26px;
}
body.ui-modern .fp-notice__title { margin: 0 0 8px; font-family: var(--fp-font-head); font-size: 20px; font-weight: 700; }
body.ui-modern .fp-notice__text { margin: 0 0 6px; font-size: 15px; font-weight: 600; color: var(--fp-ink); }
body.ui-modern .fp-notice__hint { margin: 0 auto 18px; max-width: 460px; font-size: 13.5px; }

/* Feeds / timelines used by widgets */
body.ui-modern .feed-activity-list .feed-element { padding: 12px 0; border-bottom: 1px solid var(--fp-line); }
body.ui-modern .feed-element, body.ui-modern .media-body { color: var(--fp-text); }
body.ui-modern .feed-element a { color: var(--fp-ink); }
body.ui-modern .feed-element a:hover { color: var(--fp-teal-700); }

/* Misc Inspinia helpers */
body.ui-modern .no-margins { margin: 0 !important; }
body.ui-modern .stat-percent { font-weight: 700; }
body.ui-modern .text-navy { color: var(--fp-teal-700) !important; }
body.ui-modern .text-info { color: var(--fp-blue) !important; }
body.ui-modern .text-success { color: var(--fp-green) !important; }
body.ui-modern .text-warning { color: var(--fp-amber) !important; }
body.ui-modern .text-danger { color: var(--fp-danger) !important; }
body.ui-modern .navy-bg { background: var(--fp-teal-700); color: #fff; }
body.ui-modern .widget { border-radius: var(--fp-radius); }
body.ui-modern .highlight { background: var(--fp-teal-soft); color: var(--fp-teal-800); box-shadow: none; border-radius: 4px; }
body.ui-modern .footable > thead > tr > th { background: var(--fp-surface-2); }
body.ui-modern .sk-spinner-three-bounce div,
body.ui-modern .sk-spinner-double-bounce .sk-double-bounce1,
body.ui-modern .sk-spinner-double-bounce .sk-double-bounce2 { background-color: var(--fp-teal-600); }

/* 5. Dashboard ------------------------------------------------------------- */
body.ui-modern .fp-dash { padding-top: 22px; }
body.ui-modern .fp-dash__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}
body.ui-modern .fp-dash__eyebrow {
    margin: 0 0 4px;
    color: var(--fp-muted);
    font-size: 13px;
    font-weight: 600;
}
body.ui-modern .fp-dash__title {
    margin: 0;
    font-family: var(--fp-font-head);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--fp-ink);
}
body.ui-modern .fp-dash__title span { color: var(--fp-red); }
body.ui-modern .fp-dash__sub { margin: 4px 0 0; color: var(--fp-text-2); font-size: 14px; }

body.ui-modern .fp-segmented {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px;
    border-radius: 12px;
    background: #e8ecf1;
}
body.ui-modern .fp-segmented a {
    padding: 7px 14px;
    border-radius: 9px;
    color: var(--fp-text-2);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s, color .15s;
}
body.ui-modern .fp-segmented a:hover { color: var(--fp-ink); background: rgba(255, 255, 255, .6); }
body.ui-modern .fp-segmented a.is-active {
    background: #fff;
    color: var(--fp-ink);
    box-shadow: var(--fp-shadow);
}
body.ui-modern .fp-segmented a.is-active::before {
    content: "";
    display: inline-block;
    width: 7px; height: 7px;
    margin-right: 7px;
    border-radius: 50%;
    background: var(--fp-red);
    vertical-align: 1px;
}

/* Hero: logo teal, like the login brand panel, with the logo's red footprint dots */
body.ui-modern .fp-dash { padding-top: 20px; }
body.ui-modern .fp-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    padding: 26px 30px;
    border-radius: 18px;
    color: #fff;
    background:
        radial-gradient(circle at 92% 120%, rgba(231, 23, 77, .35), transparent 42%),
        radial-gradient(circle at 70% -40%, rgba(255, 255, 255, .22), transparent 45%),
        linear-gradient(120deg, #0a5d67 0%, #0e7c89 38%, #1592a1 72%, #22a5b4 100%);
    box-shadow: 0 18px 40px -20px rgba(14, 124, 137, .75);
}
body.ui-modern .fp-hero__dots {
    position: absolute;
    right: 34%;
    top: 16px;
    display: flex;
    align-items: flex-end;
    gap: 6px;
    opacity: .9;
    pointer-events: none;
}
body.ui-modern .fp-hero__dots i { display: block; border-radius: 50%; background: var(--fp-red); }
body.ui-modern .fp-hero__dots i:nth-child(1) { width: 7px; height: 7px; }
body.ui-modern .fp-hero__dots i:nth-child(2) { width: 9px; height: 9px; margin-bottom: 4px; }
body.ui-modern .fp-hero__dots i:nth-child(3) { width: 11px; height: 11px; margin-bottom: 9px; }
body.ui-modern .fp-hero__dots i:nth-child(4) { width: 13px; height: 13px; margin-bottom: 12px; }
body.ui-modern .fp-hero__dots i:nth-child(5) { width: 15px; height: 15px; margin-bottom: 13px; }

body.ui-modern .fp-hero__row {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 24px;
}
body.ui-modern .fp-hero h1 {
    margin: 0 0 4px;
    font-family: var(--fp-font-head);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -.02em;
    color: #fff;
}
body.ui-modern .fp-hero p { margin: 0; font-size: 14.5px; color: rgba(255, 255, 255, .9); }
body.ui-modern .fp-hero__chips { display: flex; flex-wrap: wrap; gap: 8px; }
body.ui-modern .fp-hero__chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(6, 52, 58, .28);
    border: 1px solid rgba(255, 255, 255, .22);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
body.ui-modern .fp-hero__roles {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, .18);
}
body.ui-modern .fp-hero__roles-label { margin-right: 4px; font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, .85); }
body.ui-modern .fp-hero__roles a {
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s, color .15s;
}
body.ui-modern .fp-hero__roles a:hover { background: rgba(255, 255, 255, .24); color: #fff; }
body.ui-modern .fp-hero__roles a.is-active { background: #fff; color: var(--fp-teal-800); box-shadow: 0 4px 12px -6px rgba(0, 0, 0, .35); }

body.ui-modern .fp-section-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 16px;
    margin: 0 0 12px;
}
body.ui-modern .fp-section-title h2 { margin: 0; font-family: var(--fp-font-head); font-size: 17px; font-weight: 700; }
body.ui-modern .fp-section-title span { font-size: 12.5px; color: var(--fp-muted); }

@media (max-width: 767px) {
    body.ui-modern .fp-hero { padding: 20px; border-radius: 16px; }
    body.ui-modern .fp-hero h1 { font-size: 22px; }
    body.ui-modern .fp-hero__dots { display: none; }
}

body.ui-modern .fp-dash__body { min-height: 420px; }
body.ui-modern .fp-dash__body .sortable { min-height: 40px; }
body.ui-modern .fp-dash__body .widget-fp { margin-bottom: 4px; }
body.ui-modern .fp-dash__body .widget-fp > .ibox,
body.ui-modern .fp-dash__body .ibox { height: calc(100% - 20px); }
body.ui-modern .fp-dash__body .ibox-title { cursor: move; }
body.ui-modern .fp-dash__body .ibox-title h5 { display: flex; align-items: center; gap: 8px; }
body.ui-modern .fp-dash__body .ibox-title h5 > i:first-child { color: var(--fp-teal-600); }

body.ui-modern .sortable-placeholder {
    margin-bottom: 20px;
    border: 2px dashed var(--fp-teal);
    border-radius: var(--fp-radius);
    background: rgba(86, 196, 209, .08) !important;
    box-shadow: none !important;
    visibility: visible !important;
}

/* Widget settings: floating button + drawer */
body.ui-modern #small-widget { bottom: 76px; right: 28px; z-index: 1010; }
body.ui-modern .open-small-widget {
    width: 52px; height: 52px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    background: linear-gradient(135deg, #ff3d6e, var(--fp-red) 55%, var(--fp-red-dark));
    box-shadow: 0 12px 26px -10px rgba(231, 23, 77, .7);
    cursor: pointer;
    transition: transform .15s;
}
body.ui-modern .open-small-widget:hover { transform: translateY(-2px); color: #fff; }
body.ui-modern #widget-sidebar,
body.ui-modern #widget-sidebar.sidebar-open.sidebar-top {
    top: 0;
    width: 320px !important;
    right: -330px;
    z-index: 1040;
    border: 0;
    box-shadow: none;
    transition: right .25s ease, box-shadow .25s ease;
}
body.ui-modern #widget-sidebar.sidebar-open { right: 0; box-shadow: -20px 0 40px -20px rgba(16, 24, 40, .4); }
body.ui-modern .widget-fp h2 { font-size: 18px; display: inline-flex; align-items: center; gap: 8px; margin-top: 0; }
body.ui-modern .widget-fp h2 .material-icons { color: var(--fp-teal-600); }
body.ui-modern #widget-sidebar .nav-tabs { padding: 10px 12px 0; }
body.ui-modern #widget-sidebar .widget-sidebar-toggle { cursor: pointer; }
body.ui-modern #widget-sidebar .widget-sidebar-toggle:hover { background: transparent !important; color: var(--fp-red) !important; }

/* 6. Responsive ------------------------------------------------------------ */
@media (max-width: 1199px) {
    body.ui-modern .fp-support span { display: none; }
    body.ui-modern .fp-support { padding: 8px 10px; }
}

@media (max-width: 991px) {
    body.ui-modern .fp-sidebar {
        width: var(--fp-sidebar-w) !important;
        transform: translateX(-100%);
        box-shadow: none;
    }
    body.ui-modern.fp-sidebar-open .fp-sidebar { transform: none; box-shadow: 20px 0 50px -20px rgba(0, 0, 0, .5); }
    body.ui-modern.fp-sidebar-open .fp-backdrop { display: block; }
    body.ui-modern .fp-main,
    html.fp-sidebar-collapsed body.ui-modern .fp-main { margin-left: 0; }
    body.ui-modern .fp-sidebar .fp-sidebar__close { display: inline-flex; }

    /* collapsed preference only applies on desktop */
    html.fp-sidebar-collapsed body.ui-modern .fp-sidebar__brand { justify-content: space-between; padding: 0 16px; }
    html.fp-sidebar-collapsed body.ui-modern .fp-sidebar__logo { display: inline-flex; }
    html.fp-sidebar-collapsed body.ui-modern .fp-sidebar__logo-mini { display: none; }
    html.fp-sidebar-collapsed body.ui-modern .fp-sidebar__search,
    html.fp-sidebar-collapsed body.ui-modern .fp-sidebar__foot { display: block !important; }
    html.fp-sidebar-collapsed body.ui-modern .fp-nav__label { display: block !important; }
    html.fp-sidebar-collapsed body.ui-modern .fp-nav__link > span,
    html.fp-sidebar-collapsed body.ui-modern .fp-nav__caret { display: inline !important; }
    html.fp-sidebar-collapsed body.ui-modern .fp-nav__group.is-open > .fp-nav__sub { display: block !important; }
    html.fp-sidebar-collapsed body.ui-modern .fp-nav__link { justify-content: flex-start; padding: 9px 12px; }

    body.ui-modern .fp-user__meta { display: none; }
}

@media (max-width: 767px) {
    body.ui-modern { font-size: 14.5px; }
    body.ui-modern .fp-topbar { padding: 0 10px; gap: 6px; }
    body.ui-modern .fp-search kbd { display: none; }
    body.ui-modern .fp-search input { padding-right: 12px; }
    body.ui-modern .fp-support,
    body.ui-modern .fp-switch-back span { display: none; }
    body.ui-modern .fp-content { padding: 0 12px 24px; }
    body.ui-modern .fp-footer { padding: 14px 16px; }
    body.ui-modern .page-heading h2 { font-size: 19px; }
    body.ui-modern .page-heading .breadcrumb { margin-left: 0; white-space: normal; }
    body.ui-modern .fp-dash__title { font-size: 22px; }
    body.ui-modern .fp-segmented { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
    body.ui-modern .fp-panel-menu { position: fixed; top: calc(var(--fp-topbar-h) - 6px); left: 12px; right: 12px; width: auto; }
    body.ui-modern .fp-help-menu { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
    body.ui-modern .fp-sidebar, body.ui-modern .fp-main, body.ui-modern #widget-sidebar { transition: none; }
    body.ui-modern .animated { animation: none !important; }
}

@media print {
    body.ui-modern .fp-sidebar, body.ui-modern .fp-topbar, body.ui-modern .fp-footer,
    body.ui-modern #small-widget, body.ui-modern #widget-sidebar { display: none !important; }
    body.ui-modern .fp-main { margin: 0 !important; }
    body.ui-modern { background: #fff; }
}

/* ---- Section list + loaded section form (staff edit, user profile edit) ---- */
body.ui-modern .fp-sectnav { list-style: none; margin: 0 0 20px; padding: 6px; background: #fff; border: 1px solid var(--fp-line); border-radius: 12px; }
body.ui-modern .fp-sectnav__item > a {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 12px 12px; border-radius: 9px; color: var(--fp-text); text-decoration: none;
}
body.ui-modern .fp-sectnav__item > a > i {
    flex: 0 0 32px; width: 32px; height: 32px; border-radius: 9px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--fp-surface-2); color: var(--fp-text-2); font-size: 14px;
}
body.ui-modern .fp-sectnav__item > a strong { display: block; font-weight: 600; color: var(--fp-ink); }
body.ui-modern .fp-sectnav__item > a small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--fp-muted); }
body.ui-modern .fp-sectnav__item > a:hover { background: var(--fp-surface-2); }
body.ui-modern .fp-sectnav__item.active > a { background: var(--fp-teal-soft); }
body.ui-modern .fp-sectnav__item.active > a > i { background: var(--fp-teal); color: #fff; }
body.ui-modern .fp-sectnav__item.active > a strong { color: var(--fp-teal-800); }

body.ui-modern .fp-staff-form .details_body .row > [class*="col-"] {
    margin-bottom: 14px; font-size: 13px; font-weight: 600; color: var(--fp-text-2);
}
body.ui-modern .fp-staff-form .details_body .form-control { margin-top: 6px; font-weight: 400; }
body.ui-modern .fp-staff-form .details_body .row[style*="margin-top"] { margin-top: 4px !important; }
body.ui-modern .fp-staff-form .details_body .row[style*="margin-top"] > [class*="col-"] { margin-bottom: 0; }
