:root {
    --fi-primary: #3B4753;
    --fi-secondary: #9CA3B5;
    --fi-text: #1F1F21;
    --fi-accent: #C10609;

    --fi-dark: #202833;
    --fi-dark-2: #18212b;
    --fi-beige: #E3DDD1;
    --fi-white: #FFFFFF;
    --fi-gray: #BDBDBD;

    --fi-bg: #F4F5F6;
    --fi-surface: #FFFFFF;
    --fi-border: #DEE2E6;
    --fi-muted: #6D7680;

    --fi-success: #23855B;
    --fi-warning: #C58A00;
    --fi-danger: #C10609;

    --fi-radius: 8px;
    --fi-radius-lg: 12px;

    --fi-shadow: 0 12px 38px rgba(32, 40, 51, .08);

    --fi-font-title: "Saira", "Arial Narrow", Arial, sans-serif;
    --fi-font-body: "Manrope", "Segoe UI", Arial, sans-serif;
}

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

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    min-height: 100vh;
    background: var(--fi-bg);
    color: var(--fi-text);
    font-family: var(--fi-font-body);
    font-size: 15px;
    line-height: 1.5;
}

button,
input,
select,
textarea {
    font: inherit;
}

/* =========================================================
   PORTAL
   ========================================================= */

.shell {
    min-height: 100vh;
    display: flex;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 265px;
    height: 100vh;

    padding: 24px 16px;

    background:
        linear-gradient(
            180deg,
            var(--fi-dark) 0%,
            var(--fi-dark-2) 100%
        );

    color: var(--fi-white);
    overflow-y: auto;
}

.sidebar-brand {
    min-height: 72px;
    margin: 0 4px 28px;
    padding-bottom: 22px;

    display: flex;
    align-items: center;

    border-bottom: 1px solid rgba(255,255,255,.10);
}

.sidebar-logo {
    display: block;
    width: 205px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.cockpit-label {
    margin-top: 8px;
    color: rgba(255,255,255,.60);

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.2px;
    text-transform: uppercase;
}

.sidebar nav a {
    position: relative;

    display: flex;
    align-items: center;
    gap: 11px;

    min-height: 45px;
    margin-bottom: 3px;
    padding: 0 13px;

    border-left: 3px solid transparent;
    border-radius: 5px;

    color: #CED3D8;
    text-decoration: none;

    transition:
        background-color .18s ease,
        color .18s ease,
        border-color .18s ease;
}

.sidebar nav a:hover:not(.disabled) {
    background: rgba(255,255,255,.05);
    color: white;
}

.sidebar nav a.active {
    background: rgba(255,255,255,.07);
    border-left-color: var(--fi-accent);
    color: white;
    font-weight: 600;
}

.sidebar nav a.disabled {
    opacity: .52;
    cursor: default;
}

.nav-indicator {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: .7;
}

.nav-title {
    margin: 25px 10px 9px;

    color: #83909D;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.9px;
    text-transform: uppercase;
}

.main {
    width: calc(100% - 265px);
    min-width: 0;
    min-height: 100vh;

    margin-left: 265px;
}

.topbar {
    height: 80px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 30px;

    background: var(--fi-white);
    border-bottom: 1px solid var(--fi-border);
}

.topbar strong {
    display: block;

    color: var(--fi-text);

    font-family: var(--fi-font-title);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.1;
}

.eyebrow {
    display: block;

    margin-bottom: 3px;

    color: var(--fi-accent);

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.top-user {
    display: flex;
    align-items: center;
    gap: 15px;

    color: var(--fi-text);
    font-size: 14px;
}

.user-name {
    font-weight: 600;
}

.logout-button {
    min-height: 38px;
    padding: 0 15px;

    border: 1px solid #D4D9DE;
    border-radius: 5px;

    background: var(--fi-white);
    color: var(--fi-text);

    cursor: pointer;

    transition:
        background-color .18s ease,
        border-color .18s ease;
}

.logout-button:hover {
    background: #F5F6F7;
    border-color: #BBC2C8;
}

.content {
    padding: 38px 34px 60px;
}

.content-header {
    max-width: 850px;
    margin-bottom: 30px;
}

.content h1 {
    margin: 0 0 6px;

    color: var(--fi-text);

    font-family: var(--fi-font-title);
    font-size: 42px;
    font-weight: 600;
    line-height: 1.08;
}

.muted {
    color: var(--fi-muted);
}

.content-header .muted {
    margin: 0;
    font-size: 16px;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px,1fr));
    gap: 15px;

    margin-top: 25px;
}

.status-card {
    position: relative;

    min-height: 140px;
    padding: 21px 20px;

    background: var(--fi-white);
    border: 1px solid var(--fi-border);
    border-radius: var(--fi-radius-lg);

    overflow: hidden;
}

.status-card::before {
    content: "";

    position: absolute;
    inset: 0 auto 0 0;

    width: 3px;

    background: var(--fi-primary);
}

.status-card.highlight::before {
    background: var(--fi-accent);
}

.status-card span {
    display: block;

    color: #747E87;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.status-card strong {
    display: block;

    margin: 14px 0 8px;

    color: var(--fi-text);

    font-family: var(--fi-font-title);
    font-size: 25px;
    font-weight: 600;
    line-height: 1.1;
}

.status-card small {
    color: #84909A;
    font-size: 12px;
}

.info-box {
    position: relative;

    margin-top: 22px;
    padding: 22px 24px 22px 27px;

    background: var(--fi-white);
    border: 1px solid var(--fi-border);
    border-radius: var(--fi-radius-lg);
}

.info-box::before {
    content: "";

    position: absolute;
    inset: 0 auto 0 0;

    width: 4px;

    background: var(--fi-accent);

    border-radius: var(--fi-radius-lg) 0 0 var(--fi-radius-lg);
}

.info-box strong {
    font-family: var(--fi-font-title);
    font-size: 17px;
    font-weight: 600;
}

.info-box p {
    margin: 7px 0 0;
    color: var(--fi-muted);
}

/* =========================================================
   LOGIN
   ========================================================= */

.login-body {
    min-height: 100vh;

    display: grid;
    grid-template-columns: minmax(360px, 46%) 1fr;

    background: var(--fi-white);
}

.login-visual {
    position: relative;

    min-height: 100vh;
    padding: 56px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    background:
        linear-gradient(
            145deg,
            rgba(32,40,51,.98),
            rgba(32,40,51,.91)
        );

    overflow: hidden;
}

.login-visual::after {
    content: "";

    position: absolute;
    right: -180px;
    bottom: -180px;

    width: 520px;
    height: 520px;

    border: 1px solid rgba(255,255,255,.08);
    transform: rotate(35deg);
}

.login-logo {
    position: relative;
    z-index: 2;

    width: 270px;
    max-width: 85%;
    height: auto;
}

.login-visual-message {
    position: relative;
    z-index: 2;

    max-width: 520px;
}

.login-visual-message .eyebrow {
    margin-bottom: 15px;
}

.login-visual-message h2 {
    margin: 0;

    color: var(--fi-white);

    font-family: var(--fi-font-title);
    font-size: clamp(36px, 4vw, 60px);
    font-weight: 600;
    line-height: 1.03;
}

.login-red-line {
    width: 110px;
    height: 5px;

    margin-top: 28px;

    background: var(--fi-accent);
}

.login-panel {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 42px;
}

.login-card {
    width: 440px;
    max-width: 100%;

    padding: 0;

    background: transparent;
    border: 0;
    box-shadow: none;
}

.login-brand-mobile {
    display: none;
}

.login-card h1 {
    margin: 0 0 7px;

    color: var(--fi-text);

    font-family: var(--fi-font-title);
    font-size: 42px;
    font-weight: 600;
    line-height: 1.08;
}

.login-card > .muted {
    margin: 0 0 27px;
    font-size: 15px;
}

.login-card label {
    display: block;

    margin: 17px 0 7px;

    color: var(--fi-text);

    font-size: 13px;
    font-weight: 700;
}

.login-card input {
    width: 100%;
    height: 48px;

    padding: 0 13px;

    border: 1px solid #C9D0D6;
    border-radius: 5px;

    background: var(--fi-white);
    color: var(--fi-text);

    font-size: 15px;

    outline: none;

    transition:
        border-color .18s ease,
        box-shadow .18s ease;
}

.login-card input:focus {
    border-color: var(--fi-accent);
    box-shadow: 0 0 0 3px rgba(193,6,9,.09);
}

.login-card button {
    width: 100%;
    height: 48px;

    margin-top: 24px;

    border: 0;
    border-radius: 5px;

    background: var(--fi-accent);
    color: var(--fi-white);

    font-size: 14px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;

    cursor: pointer;

    transition: background-color .18s ease;
}

.login-card button:hover {
    background: #A30508;
}

.alert-error {
    margin: 18px 0;

    padding: 12px 14px;

    background: #FCEDEE;
    border: 1px solid #EAB7B9;
    border-radius: 5px;

    color: #981217;
    font-size: 13px;
}

.login-footer {
    margin-top: 30px;

    color: #949DA5;

    font-size: 11px;
    text-align: center;
}

/* =========================================================
   RESPONSIVO
   ========================================================= */

@media (max-width: 1050px) {
    .status-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

@media (max-width: 850px) {
    .login-body {
        display: block;
        background: var(--fi-bg);
    }

    .login-visual {
        display: none;
    }

    .login-panel {
        min-height: 100vh;
        padding: 25px;
    }

    .login-card {
        padding: 32px;

        background: var(--fi-white);
        border: 1px solid var(--fi-border);
        border-radius: var(--fi-radius-lg);

        box-shadow: var(--fi-shadow);
    }

    .login-brand-mobile {
        display: block;

        margin-bottom: 30px;
        padding: 18px;

        background: var(--fi-dark);
        border-radius: 5px;
    }

    .login-brand-mobile img {
        display: block;

        width: 220px;
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 700px) {
    .sidebar {
        display: none;
    }

    .main {
        width: 100%;
        margin-left: 0;
    }

    .topbar {
        padding: 0 18px;
    }

    .content {
        padding: 28px 20px;
    }

    .status-grid {
        grid-template-columns: 1fr;
    }

    .top-user .user-name {
        display: none;
    }
}
/* =========================================================
   FCH-07B - ADMINISTRAÇÃO / PERFIL / LUCIDE
   ========================================================= */

.sidebar nav svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
}

.admin-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.admin-tab {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    min-height: 44px;
    padding: 0 16px;

    background: #fff;
    border: 1px solid var(--fi-border);
    border-radius: 7px;

    color: var(--fi-text);
    text-decoration: none;
    font-weight: 700;
}

.admin-tab.active {
    border-color: var(--fi-accent);
    box-shadow: 0 0 0 2px rgba(193, 6, 9, .06);
}

.admin-tab svg,
.action-button svg {
    width: 18px;
    height: 18px;
}

.admin-panel {
    padding: 24px;

    background: #fff;
    border: 1px solid var(--fi-border);
    border-radius: var(--fi-radius-lg);
}

.admin-panel h2 {
    margin: 0;

    font-family: var(--fi-font-title);
    font-size: 25px;
    font-weight: 600;
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 15px;
}

.action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    min-height: 42px;
    padding: 0 15px;

    background: #fff;
    border: 1px solid #d3d8dd;
    border-radius: 6px;

    color: var(--fi-text);
    font-weight: 700;

    cursor: pointer;
}

.action-button:hover:not(:disabled) {
    background: #f7f8f9;
}

.action-button:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.icon-red {
    color: #C10609;
}

.icon-blue {
    color: #2563EB;
}

.icon-green {
    color: #168B5B;
}

.icon-purple {
    color: #7C3AED;
}

.icon-amber {
    color: #B7791F;
}

.profile-grid {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) minmax(300px, 1fr);
    gap: 18px;
}

.profile-row {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 20px;

    padding: 13px 0;

    border-bottom: 1px solid var(--fi-border);
}

.profile-row span {
    color: var(--fi-muted);
}

.profile-row strong {
    font-weight: 700;
}

@media (max-width: 850px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .panel-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* =========================================================
   FCH-07C.1 - DATA TABLES
   ========================================================= */

.table-responsive {
    width: 100%;
    margin-top: 22px;
    overflow-x: auto;

    border: 1px solid var(--fi-border);
    border-radius: 8px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.data-table th,
.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--fi-border);
    text-align: left;
    vertical-align: middle;
}

.data-table th {
    background: #F7F8F9;

    color: #68737D;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.data-table tbody tr:last-child td {
    border-bottom: 0;
}

.data-table tbody tr:hover {
    background: #FAFBFB;
}

.table-description {
    max-width: 480px;
    color: var(--fi-muted);
}

.table-number {
    text-align: center !important;
    white-space: nowrap;
}

.table-actions {
    width: 100px;
    text-align: center !important;
    white-space: nowrap;
}

.role-code {
    padding: 4px 7px;

    background: #F3F4F5;
    border: 1px solid #E1E4E7;
    border-radius: 4px;

    color: #434B53;
    font-size: 12px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    min-height: 25px;
    padding: 3px 8px;

    border-radius: 999px;

    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.badge svg {
    width: 14px;
    height: 14px;
}

.badge-active {
    background: #ECF8F1;
    color: #16754D;
}

.badge-inactive {
    background: #FFF4E5;
    color: #9A6400;
}

.badge-legacy {
    margin-left: 7px;

    background: #F0F1F3;
    color: #707880;
}

.icon-action {
    width: 36px;
    height: 36px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #D8DDE1;
    border-radius: 6px;

    background: #fff;

    cursor: pointer;
}

.icon-action svg {
    width: 17px;
    height: 17px;
}

.icon-action:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.legacy-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    margin-top: 18px;
    padding: 15px 17px;

    background: #FFFAF0;
    border: 1px solid #F0DFC0;
    border-radius: 7px;
}

.legacy-note > svg {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    margin-top: 2px;
}

.legacy-note strong {
    display: block;
    margin-bottom: 3px;
}

.legacy-note p {
    margin: 0;

    color: #766A56;
    font-size: 13px;
}

.empty-state {
    padding: 35px !important;

    color: var(--fi-muted);
    text-align: center !important;
}


/* =========================================================
   FCH-07C-SUPER.2 - TECHNICAL ACCESS
   ========================================================= */

.technical-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 7px 10px;

    border: 1px solid #E7C4C5;
    border-radius: 6px;

    background: #FFF5F5;
    color: #A8070A;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: .5px;
}

.technical-badge svg {
    width: 17px;
    height: 17px;
}


/* =========================================================
   FCH-07C-SUPER.3B - ROLE CRUD
   ========================================================= */

.role-form-panel {
    margin-bottom: 18px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-field-full {
    grid-column: 1 / -1;
}

.form-field label {
    font-size: 12px;
    font-weight: 800;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 11px 12px;

    border: 1px solid #CDD3D8;
    border-radius: 6px;

    background: #fff;

    font: inherit;
    color: #1F1F21;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #C10609;
    box-shadow: 0 0 0 3px rgba(193,6,9,.08);
}

.form-field input[readonly] {
    background: #F4F5F6;
    color: #68737D;
}

.form-field small {
    color: #7B848D;
    font-size: 11px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.primary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 42px;
    padding: 0 18px;

    border: 0;
    border-radius: 6px;

    background: #C10609;
    color: #fff;

    font-weight: 800;
    cursor: pointer;
}

.primary-action svg {
    width: 17px;
    height: 17px;
}

.action-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.inline-form {
    display: inline-flex;
    margin: 0;
}

.icon-action {
    text-decoration: none;
}

.icon-action-disabled {
    opacity: .5;
    cursor: not-allowed;
}

.admin-alert {
    display: flex;
    align-items: center;
    gap: 10px;

    margin: 0 0 18px;
    padding: 13px 15px;

    border-radius: 7px;

    font-size: 13px;
    font-weight: 700;
}

.admin-alert svg {
    width: 18px;
    height: 18px;
}

.admin-alert-success {
    background: #ECF8F1;
    border: 1px solid #C8E9D6;
    color: #16754D;
}

.admin-alert-error {
    background: #FFF0F0;
    border: 1px solid #F0CACA;
    color: #A12222;
}

@media (max-width: 800px) {

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-field-full {
        grid-column: auto;
    }
}


/* =========================================================
   FCH-07D.1 - AUDIT LOG
   ========================================================= */

.audit-total {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 8px 11px;

    border: 1px solid #D7DCE1;
    border-radius: 6px;

    background: #fff;

    color: #59636C;
    font-size: 12px;
}

.audit-total svg {
    width: 17px;
    height: 17px;
}

.audit-total strong {
    color: #1F1F21;
}

.audit-filters {
    display: grid;
    grid-template-columns:
        minmax(230px, 1.4fr)
        repeat(3, minmax(150px, .8fr))
        minmax(135px, .65fr)
        minmax(135px, .65fr);

    gap: 12px;

    margin: 22px 0;
    padding: 16px;

    border: 1px solid #E0E4E7;
    border-radius: 8px;

    background: #F8F9FA;
}

.audit-filter {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.audit-filter label {
    color: #606A73;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.audit-filter input,
.audit-filter select {
    min-height: 40px;
    width: 100%;

    padding: 8px 10px;

    border: 1px solid #CDD3D8;
    border-radius: 6px;

    background: #fff;
    color: #1F1F21;

    font: inherit;
    font-size: 12px;
}

.audit-filter input:focus,
.audit-filter select:focus {
    outline: none;
    border-color: #C10609;
    box-shadow: 0 0 0 3px rgba(193,6,9,.07);
}

.audit-filter-actions {
    grid-column: 1 / -1;

    display: flex;
    justify-content: flex-end;
    gap: 8px;

    padding-top: 3px;
}

.audit-table {
    min-width: 1050px;
}

.audit-date {
    white-space: nowrap;
}

.audit-event {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.audit-event svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.audit-area {
    display: inline-block;

    padding: 4px 7px;

    border-radius: 4px;

    background: #F1F3F5;
    color: #4E5963;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: .3px;
}

.table-subtext {
    margin-top: 4px;

    color: #8A949D;
    font-size: 10px;
}

.audit-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 16px;

    color: #68727B;
    font-size: 12px;
}

@media (max-width: 1350px) {

    .audit-filters {
        grid-template-columns:
            repeat(3, minmax(180px, 1fr));
    }

}

@media (max-width: 800px) {

    .audit-filters {
        grid-template-columns: 1fr;
    }

    .audit-filter-actions {
        grid-column: auto;
        justify-content: stretch;
    }

    .audit-filter-actions > * {
        flex: 1;
    }

}


/* =========================================================
   FCH-07D.2 - AUDIT DETAILS
   ========================================================= */

.audit-detail-panel {
    margin: 0 0 20px;
    padding: 20px;

    border: 1px solid #D8DDE2;
    border-left: 3px solid #C10609;
    border-radius: 8px;

    background: #FFFFFF;
}

.audit-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;

    margin-top: 18px;
}

.audit-detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;

    min-height: 76px;
    padding: 12px;

    border: 1px solid #E1E5E8;
    border-radius: 6px;

    background: #F8F9FA;
}

.audit-detail-item span,
.audit-detail-label {
    color: #717C85;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.audit-detail-item strong {
    color: #1F1F21;
    font-size: 12px;
    word-break: break-word;
}

.audit-detail-item small {
    color: #8A949D;
    font-size: 10px;
}

.audit-detail-section {
    margin-top: 16px;
    padding-top: 16px;

    border-top: 1px solid #E4E7EA;
}

.audit-detail-section p {
    margin: 8px 0 0;
}

.audit-code-block,
.audit-user-agent {
    display: block;

    margin-top: 8px;
    padding: 10px 12px;

    border: 1px solid #E1E5E8;
    border-radius: 6px;

    background: #F7F8F9;

    color: #4A555E;

    font-size: 11px;
    line-height: 1.5;

    word-break: break-word;
}

.audit-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;

    margin-top: 10px;
}

.audit-comparison-card {
    padding: 14px;

    border: 1px solid #E0E4E7;
    border-radius: 6px;

    background: #F9FAFB;
}

.audit-comparison-title {
    display: block;

    margin-bottom: 10px;

    color: #C10609;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: .6px;
    text-transform: uppercase;
}

.audit-meta-list {
    margin-top: 10px;

    border: 1px solid #E0E4E7;
    border-radius: 6px;

    overflow: hidden;
}

.audit-meta-row {
    display: grid;
    grid-template-columns: minmax(130px, .4fr) 1fr;
    gap: 15px;

    padding: 9px 11px;

    border-bottom: 1px solid #E6E9EC;
}

.audit-meta-row:last-child {
    border-bottom: 0;
}

.audit-meta-row span {
    color: #707A83;
    font-size: 10px;
}

.audit-meta-row strong {
    color: #1F1F21;
    font-size: 11px;
    word-break: break-word;
}

.audit-json {
    margin: 8px 0 0;
    padding: 12px;

    border: 1px solid #E0E4E7;
    border-radius: 6px;

    background: #202833;
    color: #F5F6F7;

    font-size: 11px;
    line-height: 1.55;

    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

@media (max-width: 1200px) {

    .audit-detail-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 700px) {

    .audit-detail-grid,
    .audit-comparison {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   FCH-07E.1 - USERS
   ========================================================= */

.user-filters {
    display: grid;
    grid-template-columns:
        minmax(280px, 1.5fr)
        minmax(180px, .75fr)
        minmax(160px, .6fr)
        auto;

    gap: 12px;
    align-items: end;

    margin: 22px 0;
    padding: 16px;

    border: 1px solid #E0E4E7;
    border-radius: 8px;

    background: #F8F9FA;
}

.user-filter-actions {
    display: flex;
    gap: 8px;
}

.users-table {
    min-width: 1050px;
}

.user-email {
    color: #4F5962;
    font-size: 12px;
}

.user-role-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.user-role-badge {
    display: inline-flex;
    align-items: center;

    padding: 4px 7px;

    border: 1px solid #D8DEE4;
    border-radius: 4px;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: .35px;
}

.user-role-business {
    background: #F3F7FB;
    color: #365E83;
}

.user-role-technical {
    border-color: #E7B9BA;
    background: #FFF4F4;
    color: #C10609;
}

.user-role-legacy {
    background: #F7F4EC;
    color: #8A6A25;
}

.users-table .table-subtext {
    display: flex;
    align-items: center;
    gap: 5px;
}

.users-table .table-subtext svg {
    width: 12px;
    height: 12px;
}

@media (max-width: 1100px) {

    .user-filters {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 700px) {

    .user-filters {
        grid-template-columns: 1fr;
    }

    .user-filter-actions {
        width: 100%;
    }

    .user-filter-actions > * {
        flex: 1;
    }

}



/* =========================================================
   FCH-07E.2 - USER EDIT
   ========================================================= */

.user-edit-panel {
    max-width: 1100px;
}

.user-edit-section {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid #E1E5E8;
}

.user-edit-section h3 {
    margin: 4px 0 7px;
}

.user-status-toggle {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    margin-top: 14px;
    padding: 14px;

    border: 1px solid #DDE2E6;
    border-radius: 7px;

    background: #F8F9FA;
    cursor: pointer;
}

.user-status-toggle input {
    margin-top: 3px;
}

.user-status-toggle span {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.user-status-toggle small {
    color: #77818A;
}

.user-role-selector {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 10px;
    margin-top: 15px;
}

.user-role-option {
    display: flex;
    gap: 11px;

    padding: 13px;

    border: 1px solid #DDE2E6;
    border-radius: 7px;

    background: #FAFBFC;
    cursor: pointer;
}

.user-role-option:hover {
    border-color: #B7C1C9;
    background: #FFFFFF;
}

.user-role-option input {
    margin-top: 4px;
}

.user-role-option > span {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.user-role-option code {
    font-size: 9px;
}

.user-role-option small {
    color: #707A83;
    line-height: 1.45;
}

.user-role-option-technical {
    border-color: #E9C5C6;
    background: #FFF7F7;
}

.user-role-option-technical strong,
.user-role-option-technical code {
    color: #C10609;
}

@media (max-width: 800px) {

    .user-role-selector {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   FCH-07E.3B - ACCOUNT ACTIVATION
   ========================================================= */

.activation-body {
    margin: 0;
    min-height: 100vh;
    background: #F4F5F6;
}

.activation-shell {
    display: grid;
    grid-template-columns:
        minmax(380px, .9fr)
        minmax(520px, 1.1fr);

    min-height: 100vh;
}

.activation-brand {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 55px 58px;

    background: #202833;
    color: #FFFFFF;
}

.activation-logo {
    width: 200px;
    max-width: 80%;
}

.activation-brand .eyebrow {
    color: #E23A3D;
}

.activation-brand h1 {
    margin: 12px 0;
    color: #FFFFFF;
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1.05;
}

.activation-brand p {
    max-width: 430px;
    color: #CAD0D5;
    line-height: 1.6;
}

.activation-content {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 45px;
}

.activation-card {
    width: min(520px, 100%);
}

.activation-card h2 {
    margin: 8px 0 8px;
    font-size: 32px;
}

.activation-field {
    margin-top: 18px;
}

.activation-field label {
    display: block;
    margin-bottom: 7px;

    font-size: 12px;
    font-weight: 800;
}

.password-input-wrap {
    position: relative;
}

.password-input-wrap input {
    width: 100%;
    min-height: 48px;

    padding: 10px 50px 10px 13px;

    border: 1px solid #CDD4DA;
    border-radius: 6px;

    background: #FFFFFF;

    box-sizing: border-box;
    font: inherit;
}

.password-input-wrap input:focus {
    outline: none;
    border-color: #C10609;
    box-shadow:
        0 0 0 3px rgba(193,6,9,.08);
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    transform: translateY(-50%);

    border: 0;
    border-radius: 5px;

    background: transparent;
    color: #4E5963;

    cursor: pointer;
}

.password-toggle:hover {
    background: #F1F3F5;
    color: #1266F1;
}

.password-toggle svg {
    width: 18px;
    height: 18px;
}

.password-requirements {
    margin-top: 20px;
    padding: 15px;

    border: 1px solid #DDE2E6;
    border-radius: 7px;

    background: #F8F9FA;
}

.password-requirements-title {
    display: block;
    margin-bottom: 10px;

    font-size: 11px;
    font-weight: 800;
}

.password-rule {
    display: flex;
    align-items: center;
    gap: 8px;

    margin: 7px 0;

    color: #747E87;
    font-size: 12px;
}

.password-rule svg {
    width: 15px;
    height: 15px;
}

.password-rule.valid {
    color: #078553;
    font-weight: 700;
}

.activation-submit {
    width: 100%;
    justify-content: center;

    margin-top: 20px;
    min-height: 48px;
}

.activation-submit:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.activation-success-icon,
.activation-invalid-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;

    margin-bottom: 20px;

    border-radius: 50%;
}

.activation-success-icon {
    background: #E6F7EF;
    color: #078553;
}

.activation-invalid-icon {
    background: #FDEEEE;
    color: #C10609;
}

.activation-success-icon svg,
.activation-invalid-icon svg {
    width: 29px;
    height: 29px;
}

.activation-login {
    display: inline-flex;
    margin-top: 18px;
    text-decoration: none;
}

@media (max-width: 900px) {

    .activation-shell {
        grid-template-columns: 1fr;
    }

    .activation-brand {
        min-height: 240px;
        padding: 35px;
    }

    .activation-content {
        padding: 35px 22px;
    }

}


/* =========================================================
   FCH-07E.3C - USER INVITATION
   ========================================================= */

.user-heading-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge-pending {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    padding: 5px 8px;

    border-radius: 999px;

    background: #FFF3D9;
    color: #A66300;

    font-size: 10px;
    font-weight: 800;
}

.badge-pending svg {
    width: 13px;
    height: 13px;
}

.invitation-created {
    max-width: 850px;
}

.invitation-created-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 54px;
    height: 54px;

    margin-bottom: 16px;

    border-radius: 50%;

    background: #E7F7EF;
    color: #078553;
}

.invitation-created-icon svg {
    width: 27px;
    height: 27px;
}

.invitation-user-summary {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 10px;

    margin-top: 22px;
}

.invitation-user-summary > div {
    display: flex;
    flex-direction: column;
    gap: 5px;

    padding: 12px;

    border: 1px solid #E0E4E7;
    border-radius: 6px;

    background: #F8F9FA;
}

.invitation-user-summary span {
    color: #747E87;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: .6px;
    text-transform: uppercase;
}

.invitation-user-summary strong {
    word-break: break-word;
}

.invitation-link-box {
    margin-top: 20px;
    padding: 15px;

    border: 1px solid #DDE2E6;
    border-radius: 7px;

    background: #F8F9FA;
}

.invitation-link-box label {
    display: block;
    margin-bottom: 7px;

    font-size: 11px;
    font-weight: 800;
}

.invitation-link-row {
    display: flex;
    gap: 8px;
}

.invitation-link-row input {
    flex: 1;
    min-width: 0;

    padding: 10px 12px;

    border: 1px solid #CDD4DA;
    border-radius: 6px;

    background: #FFFFFF;

    font-family: monospace;
    font-size: 11px;
}

.invitation-link-box small {
    display: block;

    margin-top: 8px;

    color: #707A83;
    line-height: 1.5;
}

.admin-alert-warning {
    margin-top: 16px;

    border: 1px solid #F0D29B;
    background: #FFF8E9;
    color: #8A5B00;
}

@media (max-width: 700px) {

    .user-heading-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .invitation-user-summary {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   FCH-07G.1 - PASSWORD RECOVERY
   ========================================================= */

.password-recovery-page {
    margin: 0;
    background: #f3f4f5;
}

.password-recovery-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.password-recovery-brand {
    position: relative;
    padding: 54px 58px;
    background: #202833;
    color: #ffffff;
}

.password-recovery-logo {
    width: 190px;
    max-width: 60%;
}

.password-recovery-message {
    position: absolute;
    left: 58px;
    right: 58px;
    bottom: 52px;
}

.password-recovery-message > span {
    color: #ff3438;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.6px;
}

.password-recovery-message h1 {
    margin: 16px 0 12px;
    color: #ffffff;
    font-size: clamp(38px, 4vw, 58px);
    line-height: 1.05;
}

.password-recovery-message p {
    margin: 0;
    color: #ffffff;
}

.password-recovery-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.password-recovery-card {
    width: 100%;
    max-width: 490px;
}

.password-recovery-card h2 {
    margin: 8px 0 14px;
    font-size: 31px;
    color: #202833;
}

.password-recovery-icon,
.password-recovery-success-icon {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 50%;
}

.password-recovery-icon {
    background: #fdebec;
    color: #c10609;
}

.password-recovery-success-icon {
    background: #e7f7ef;
    color: #078553;
}

.password-recovery-icon svg,
.password-recovery-success-icon svg {
    width: 26px;
    height: 26px;
}

.password-recovery-text {
    margin: 0 0 25px;
    color: #69737c;
    line-height: 1.65;
}

.password-recovery-help {
    margin: -10px 0 25px;
    color: #8a939b;
    font-size: 12px;
    line-height: 1.55;
}

.password-recovery-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 18px;
}

.password-recovery-field label {
    font-size: 12px;
    font-weight: 800;
    color: #202833;
}

.password-recovery-field input {
    min-height: 46px;
    padding: 0 13px;
    border: 1px solid #cfd6dc;
    border-radius: 6px;
    background: #ffffff;
    font-size: 14px;
}

.password-recovery-field input:focus {
    outline: none;
    border-color: #c10609;
    box-shadow: 0 0 0 3px rgba(193, 6, 9, .08);
}

.password-recovery-primary {
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    border: 0;
    border-radius: 6px;

    background: #c10609;
    color: #ffffff;

    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.password-recovery-primary svg {
    width: 17px;
    height: 17px;
}

.password-recovery-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    margin-top: 19px;

    color: #59636c;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.password-recovery-back svg {
    width: 15px;
    height: 15px;
}

@media (max-width: 850px) {

    .password-recovery-shell {
        grid-template-columns: 1fr;
    }

    .password-recovery-brand {
        min-height: 250px;
        padding: 32px;
    }

    .password-recovery-message {
        position: static;
        margin-top: 70px;
    }

    .password-recovery-message h1 {
        font-size: 38px;
    }

    .password-recovery-content {
        padding: 45px 24px;
    }
}


/* =========================================================
   FCH-07G.3 - LOGIN PASSWORD RECOVERY
   ========================================================= */

.login-password-help {
    display: flex;
    justify-content: flex-end;

    margin-top: 10px;
}

.login-forgot-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    color: var(--fi-accent);

    font-size: 12px;
    font-weight: 700;

    text-decoration: none;

    transition:
        color .18s ease,
        opacity .18s ease;
}

.login-forgot-link:hover {
    color: #A30508;
    text-decoration: underline;
}

.login-forgot-link svg {
    width: 15px;
    height: 15px;

    flex: 0 0 auto;
}

.login-submit {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-submit svg {
    width: 17px;
    height: 17px;

    flex: 0 0 auto;
}
