﻿:root {
    --bremm-orange: #f36f12;
    --bremm-charcoal: #17212b;
    --bremm-dark: #0f1821;
    --bremm-light: #f5f7fa;
    --bremm-border: #d9dee7;
    --bremm-text: #1d2530;
    --bremm-scroll-thumb: rgba(243, 111, 18, .78);
    --bremm-scroll-thumb-hover: #f36f12;
    --bremm-scroll-track: rgba(226, 232, 240, .5);
}

html, body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--bremm-light);
    color: var(--bremm-text);
}

.bremm-sidebar,
.bremm-nav,
.bremm-workspace,
.module-nav-card,
.module-with-nav > .module-page,
.panel,
.table-scroll,
.responsive-scroll,
.details-table,
.api-group-panel,
.inbox-folders,
.inbox-list-panel,
.inbox-thread-detail,
.learning-centre-nav,
.context-help-content,
.attachment-preview-body,
.organogram-canvas {
    scrollbar-width: thin;
    scrollbar-color: var(--bremm-scroll-thumb) var(--bremm-scroll-track);
}

    .bremm-sidebar::-webkit-scrollbar,
    .bremm-nav::-webkit-scrollbar,
    .bremm-workspace::-webkit-scrollbar,
    .module-nav-card::-webkit-scrollbar,
    .module-with-nav > .module-page::-webkit-scrollbar,
    .panel::-webkit-scrollbar,
    .table-scroll::-webkit-scrollbar,
    .responsive-scroll::-webkit-scrollbar,
    .details-table::-webkit-scrollbar,
    .api-group-panel::-webkit-scrollbar,
    .inbox-folders::-webkit-scrollbar,
    .inbox-list-panel::-webkit-scrollbar,
    .inbox-thread-detail::-webkit-scrollbar,
    .learning-centre-nav::-webkit-scrollbar,
    .context-help-content::-webkit-scrollbar,
    .attachment-preview-body::-webkit-scrollbar,
    .organogram-canvas::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }

    .bremm-sidebar::-webkit-scrollbar-track,
    .bremm-nav::-webkit-scrollbar-track,
    .bremm-workspace::-webkit-scrollbar-track,
    .module-nav-card::-webkit-scrollbar-track,
    .module-with-nav > .module-page::-webkit-scrollbar-track,
    .panel::-webkit-scrollbar-track,
    .table-scroll::-webkit-scrollbar-track,
    .responsive-scroll::-webkit-scrollbar-track,
    .details-table::-webkit-scrollbar-track,
    .api-group-panel::-webkit-scrollbar-track,
    .inbox-folders::-webkit-scrollbar-track,
    .inbox-list-panel::-webkit-scrollbar-track,
    .inbox-thread-detail::-webkit-scrollbar-track,
    .learning-centre-nav::-webkit-scrollbar-track,
    .context-help-content::-webkit-scrollbar-track,
    .attachment-preview-body::-webkit-scrollbar-track,
    .organogram-canvas::-webkit-scrollbar-track {
        background: var(--bremm-scroll-track);
        border-radius: 999px;
    }

    .bremm-sidebar::-webkit-scrollbar-thumb,
    .bremm-nav::-webkit-scrollbar-thumb,
    .bremm-workspace::-webkit-scrollbar-thumb,
    .module-nav-card::-webkit-scrollbar-thumb,
    .module-with-nav > .module-page::-webkit-scrollbar-thumb,
    .panel::-webkit-scrollbar-thumb,
    .table-scroll::-webkit-scrollbar-thumb,
    .responsive-scroll::-webkit-scrollbar-thumb,
    .details-table::-webkit-scrollbar-thumb,
    .api-group-panel::-webkit-scrollbar-thumb,
    .inbox-folders::-webkit-scrollbar-thumb,
    .inbox-list-panel::-webkit-scrollbar-thumb,
    .inbox-thread-detail::-webkit-scrollbar-thumb,
    .learning-centre-nav::-webkit-scrollbar-thumb,
    .context-help-content::-webkit-scrollbar-thumb,
    .attachment-preview-body::-webkit-scrollbar-thumb,
    .organogram-canvas::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, #ff8a2b, var(--bremm-scroll-thumb));
        border: 2px solid rgba(255, 255, 255, .72);
        border-radius: 999px;
    }

    .bremm-sidebar::-webkit-scrollbar-thumb:hover,
    .bremm-nav::-webkit-scrollbar-thumb:hover,
    .bremm-workspace::-webkit-scrollbar-thumb:hover,
    .module-nav-card::-webkit-scrollbar-thumb:hover,
    .module-with-nav > .module-page::-webkit-scrollbar-thumb:hover,
    .panel::-webkit-scrollbar-thumb:hover,
    .table-scroll::-webkit-scrollbar-thumb:hover,
    .responsive-scroll::-webkit-scrollbar-thumb:hover,
    .details-table::-webkit-scrollbar-thumb:hover,
    .api-group-panel::-webkit-scrollbar-thumb:hover,
    .inbox-folders::-webkit-scrollbar-thumb:hover,
    .inbox-list-panel::-webkit-scrollbar-thumb:hover,
    .inbox-thread-detail::-webkit-scrollbar-thumb:hover,
    .learning-centre-nav::-webkit-scrollbar-thumb:hover,
    .context-help-content::-webkit-scrollbar-thumb:hover,
    .attachment-preview-body::-webkit-scrollbar-thumb:hover,
    .organogram-canvas::-webkit-scrollbar-thumb:hover {
        background: var(--bremm-scroll-thumb-hover);
    }

.bremm-shell {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.bremm-header {
    height: 72px;
    background: white;
    border-bottom: 1px solid var(--bremm-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.bremm-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.bremm-logo {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--bremm-orange);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.bremm-topbar {
    min-height: 132px;
    background: #f3f6fa;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--bremm-border);
}

.header-brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 0 1 360px;
    min-width: 220px;
}

    .header-brand img {
        width: min(330px, 100%);
        height: auto;
        object-fit: contain;
        display: block;
    }

.header-main-layout {
    width: 220px;
    height: 58px;
    object-fit: contain;
    object-position: left center;
    display: block;
}

.bremm-title {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 1px;
}

.bremm-subtitle {
    font-size: 12px;
    color: #647080;
}

.bremm-user-panel {
    text-align: right;
    font-size: 13px;
    flex: 1 1 auto;
    align-self: center;
    min-width: 240px;
}

.bremm-company {
    font-weight: 800;
    color: #111827;
    text-transform: uppercase;
}

.bremm-user {
    color: #647080;
}

.bremm-ribbon {
    height: 58px;
    background: #ffffff;
    border-bottom: 1px solid var(--bremm-border);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 18px;
}

.bremm-main-nav-toggle {
    width: 38px;
    height: 38px;
    border: 1px solid var(--bremm-border);
    border-radius: 8px;
    background: #ffffff;
    color: #1d2530;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
}

.bremm-main-nav-toggle:hover {
    border-color: var(--bremm-orange);
    color: var(--bremm-orange);
}

@media (max-width: 760px) {
    .bremm-topbar {
        min-height: auto;
        align-items: flex-start;
        flex-direction: column;
    }

    .bremm-user-panel {
        text-align: left;
        min-width: 0;
        width: 100%;
    }

    .bremm-header-actions {
        justify-content: flex-start;
    }
}

    .bremm-ribbon a {
        padding: 12px 16px;
        border-radius: 8px;
        color: #1d2530;
        text-decoration: none;
        font-weight: 600;
    }

        .bremm-ribbon a.active,
        .bremm-ribbon a:hover {
            background: var(--bremm-orange);
            color: white;
        }

.bremm-main {
    flex: 1;
    display: flex;
    min-height: 0;
}

.bremm-sidebar {
    width: 290px;
    flex: 0 0 290px;
    background: linear-gradient(180deg, var(--bremm-charcoal), var(--bremm-dark));
    color: white;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    transition: flex-basis .18s ease, width .18s ease;
}

.main-nav-collapsed .bremm-sidebar {
    width: 0;
    flex-basis: 0;
    overflow: hidden;
}

.bremm-menu-title {
    font-size: 12px;
    font-weight: 700;
    padding: 18px 20px 10px;
    color: #b8c2cc;
}

.bremm-workspace {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    overflow-x: hidden;
    background: #f5f7fa;
}

.bremm-workspace:has(> .module-with-nav) {
    overflow-y: auto;
    overflow-x: hidden;
}

.bremm-statusbar {
    height: 30px;
    background: #ffffff;
    border-top: 1px solid var(--bremm-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    font-size: 12px;
    color: #4c5968;
}
.bremm-nav {
    padding: 8px 0 24px;
    min-height: 0;
}

.bremm-nav-section {
    padding: 0 20px 12px;
    font-size: 12px;
    font-weight: 800;
    color: #b8c2cc;
}

.bremm-nav-heading {
    margin-top: 18px;
    padding: 10px 20px 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .5px;
    color: #7f8d9c;
    text-transform: uppercase;
}

.bremm-nav-item,
.bremm-nav-subitem {
    display: block;
    text-decoration: none;
    color: #e8edf3;
    border-left: 4px solid transparent;
}

.bremm-nav-item {
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 600;
}

    .bremm-nav-item span {
        display: inline-block;
        width: 24px;
    }

.bremm-nav-subitem {
    padding: 8px 18px 8px 48px;
    font-size: 13px;
    color: #c8d0da;
}

    .bremm-nav-item:hover,
    .bremm-nav-subitem:hover {
        background: rgba(255,255,255,.08);
        color: white;
    }

    .bremm-nav-item.active,
    .bremm-nav-subitem.active {
        background: var(--bremm-orange);
        color: white;
        border-left-color: white;
    }

.mobile-web-page {
    max-width: 560px;
    margin: 0 auto;
    padding: 18px;
    min-height: calc(100vh - 140px);
    background: #eef3f8;
}

.mobile-web-hero {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 0 18px;
}

.mobile-web-hero img {
    width: 170px;
    max-width: 44vw;
    height: auto;
    object-fit: contain;
}

.mobile-web-hero h1 {
    margin: 0;
    font-size: 22px;
}

.mobile-web-hero p {
    margin: 4px 0 0;
    color: #647080;
}

.mobile-web-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.mobile-web-stat,
.mobile-web-grid a,
.mobile-web-due-item,
.mobile-web-desktop-link {
    text-decoration: none;
}

.mobile-web-stat {
    background: #ffffff;
    border: 1px solid var(--bremm-border);
    border-radius: 8px;
    padding: 12px;
    color: var(--bremm-text);
}

.mobile-web-stat strong {
    display: block;
    font-size: 24px;
    color: var(--bremm-orange);
}

.mobile-web-stat span {
    display: block;
    font-size: 12px;
    color: #647080;
}

.mobile-web-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.mobile-web-grid a {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid var(--bremm-border);
    color: #1d2530;
    font-weight: 700;
    text-align: center;
}

.mobile-web-grid a:hover,
.mobile-web-due-item:hover {
    border-color: var(--bremm-orange);
}

.mobile-web-panel {
    background: #ffffff;
    border: 1px solid var(--bremm-border);
    border-radius: 8px;
    padding: 14px;
}

.mobile-web-panel h2 {
    margin: 0 0 10px;
    font-size: 18px;
}

.mobile-web-panel p {
    margin: 0;
    color: #647080;
}

.mobile-web-due-item {
    display: block;
    border: 1px solid var(--bremm-border);
    border-radius: 8px;
    padding: 10px;
    margin-top: 8px;
    color: var(--bremm-text);
}

.mobile-web-due-item span,
.mobile-web-due-item small {
    display: block;
    color: #647080;
}

.mobile-web-due-item strong {
    display: block;
    margin: 2px 0;
}

.mobile-web-desktop-link {
    display: block;
    margin: 16px 0 4px;
    text-align: center;
    color: var(--bremm-orange);
    font-weight: 800;
}

@media (max-width: 760px) {
    .bremm-ribbon {
        overflow-x: auto;
    }
}

.dashboard-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.welcome-card {
    background: white;
    border: 1px solid var(--bremm-border);
    border-radius: 14px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .welcome-card h1 {
        margin: 0;
        font-size: 32px;
    }

    .welcome-card p {
        margin: 8px 0;
        color: #647080;
    }

    .welcome-card span {
        font-size: 13px;
        color: var(--bremm-orange);
        font-weight: 700;
    }

.welcome-actions {
    display: flex;
    gap: 10px;
}

    .welcome-actions button,
    .quick-actions button {
        border: none;
        background: var(--bremm-orange);
        color: white;
        padding: 12px 18px;
        border-radius: 8px;
        font-weight: 700;
        cursor: pointer;
    }

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
}

.kpi-card {
    background: white;
    border: 1px solid var(--bremm-border);
    border-radius: 8px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 96px;
    min-width: 0;
}

    .kpi-card h2 {
        margin: 0;
        max-width: 100%;
        color: #0f172a;
        font-size: clamp(20px, 1.8vw, 26px);
        line-height: 1.15;
        font-weight: 800;
        overflow-wrap: anywhere;
    }

    .kpi-card p {
        margin: 5px 0 0;
        color: #647080;
        font-size: 12px;
        line-height: 1.25;
        font-weight: 500;
    }

.kpi-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: 800;
}

.green {
    background: #24a148;
}

.orange {
    background: #f36f12;
}

.red {
    background: #da1e28;
}

.blue {
    background: #0f62fe;
}

.purple {
    background: #8a3ffc;
}

.teal {
    background: #009d9a;
}

.dashboard-panels {
    display: grid;
    grid-template-columns: 2fr 2fr 1.4fr;
    gap: 16px;
}

.panel {
    background: white;
    border: 1px solid var(--bremm-border);
    border-radius: 14px;
    padding: 20px;
    min-width: 0;
    overflow: visible;
}

    .panel:has(> table),
    .panel:has(.bremm-table),
    .panel:has(.details-table),
    .panel:has(.table-scroll),
    .panel:has(.responsive-scroll) {
        overflow-x: auto;
        overflow-y: visible;
    }

    .panel h3 {
        margin-top: 0;
    }

    .panel p,
    .panel li,
    .panel td,
    .panel span {
        overflow-wrap: anywhere;
    }

    .panel pre,
    .panel code,
    .raw-text,
    .plain-text {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        white-space: pre-wrap;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        padding: 10px 12px;
        color: #334155;
        font-family: "Segoe UI", Arial, sans-serif;
        line-height: 1.45;
    }

.licence-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 12px;
    margin: 18px 0 22px;
}

.licence-summary-item {
    min-height: 72px;
    padding: 13px 15px;
    border: 1px solid #e1e7ef;
    border-left: 4px solid var(--bremm-orange);
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff, #fbfcfe);
    box-shadow: 0 8px 18px rgba(15, 23, 42, .04);
}

    .licence-summary-item strong {
        display: block;
        margin-bottom: 6px;
        color: #647080;
        font-size: 11px;
        font-weight: 900;
        letter-spacing: .4px;
        text-transform: uppercase;
    }

    .licence-summary-item span {
        display: block;
        color: #102033;
        font-size: 15px;
        font-weight: 800;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

@media (max-width: 1100px) {
    .licence-summary-grid {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }
}

@media (max-width: 700px) {
    .licence-summary-grid {
        grid-template-columns: 1fr;
    }
}

.work-list,
.alert-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .work-list li {
        display: flex;
        justify-content: space-between;
        padding: 12px 0;
        border-bottom: 1px solid #edf0f4;
    }

    .work-list strong {
        color: var(--bremm-orange);
    }

    .alert-list li {
        padding: 12px 0;
        border-bottom: 1px solid #edf0f4;
        font-weight: 700;
    }

.alert-red {
    color: #da1e28;
}

.alert-orange {
    color: #f36f12;
}

.alert-blue {
    color: #0f62fe;
}

.mini-orange-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 8px;
    background: var(--bremm-orange);
    color: #ffffff !important;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.mini-orange-btn:hover {
    background: #d95f0d;
    color: #ffffff !important;
}

.inbox-preview-heading h3 {
    margin-bottom: 2px;
}

.inbox-preview-heading .muted-text {
    margin: 0;
}

.inbox-preview-list {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.inbox-preview-item {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--bremm-border);
    border-left: 4px solid #98a2b3;
    border-radius: 8px;
    background: #ffffff;
    color: var(--bremm-text);
    text-decoration: none;
}

.inbox-preview-item.unread {
    border-left-color: var(--bremm-orange);
    background: #fff7ed;
}

.inbox-preview-item:hover {
    border-color: var(--bremm-orange);
    color: var(--bremm-text);
}

.inbox-preview-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #fff1e6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inbox-preview-item strong,
.inbox-preview-item span,
.inbox-preview-item small {
    display: block;
}

.inbox-preview-item strong {
    font-size: 14px;
}

.inbox-preview-item span {
    margin-top: 3px;
    color: #4c5968;
    font-size: 13px;
    line-height: 1.35;
}

.inbox-preview-item small {
    margin-top: 4px;
    color: #7f8d9c;
    font-size: 12px;
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.login-page {
    min-height: 100vh;
    display: flex;
    background: linear-gradient(135deg, #202832, #f36f12);
    align-items: center;
    justify-content: center;
    gap: 80px;
}

.login-left {
    color: white;
}

.login-brand {
    text-align: center;
}

.login-logo {
    width: 90px;
    height: 90px;
    border-radius: 24px;
    background: #f36f12;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 900;
    margin: 0 auto 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

.login-brand h1 {
    font-size: 56px;
    margin: 0;
    letter-spacing: 2px;
}

.login-brand p {
    font-size: 18px;
    margin-top: 8px;
}

.login-card {
    width: 430px;
    background: white;
    border-radius: 16px;
    padding: 34px;
    box-shadow: 0 20px 50px rgba(0,0,0,.30);
}

    .login-card h2 {
        margin-top: 0;
        margin-bottom: 24px;
        text-align: center;
    }

    .login-card label {
        display: block;
        font-weight: 700;
        margin: 14px 0 6px;
    }

    .login-card input,
    .login-card select {
        width: 100%;
        padding: 12px;
        border: 1px solid var(--bremm-border);
        border-radius: 8px;
        font-size: 15px;
    }

.login-actions {
    display: flex;
    gap: 14px;
    margin-top: 26px;
}

    .login-actions button {
        flex: 1;
        border: none;
        padding: 14px;
        border-radius: 8px;
        font-weight: 800;
        cursor: pointer;
    }

.cancel-btn {
    background: #e5e8ed;
    color: #1d2530;
}

.login-btn {
    background: var(--bremm-orange);
    color: white;
}

.login-error {
    margin-top: 14px;
    background: #ffe5e5;
    color: #b00020;
    padding: 10px;
    border-radius: 8px;
    font-weight: 700;
}

.login-version {
    margin-top: 18px;
    text-align: center;
    color: #647080;
    font-size: 12px;
}
.bremm-login-screen {
    height: 100vh;
    display: grid;
    grid-template-columns: 52% 48%;
    background: #050505;
    overflow: hidden;
    color: white;
}

.bremm-login-brand-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 20px 40px 55px;
    background: linear-gradient(135deg, #050505, #151515 65%, #f36f12 180%);
}

.genesis-login-logo {
    width: 300px;
    max-width: 75%;
}

.powered-by {
    font-size: 14px;
    color: #ddd;
    margin-top: 4px;
}

.mrj-login-logo {
    width: 70px;
    background: white;
    border-radius: 12px;
    padding: 6px;
}

.buildrite-login-logo {
    width: 330px;
    max-width: 80%;
    margin-top: 4px;
}

.bremm-login-card {
    width: 430px;
    align-self: center;
    justify-self: center;
    background: rgba(18, 18, 18, .94);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 25px 80px rgba(0,0,0,.45);
}

    .bremm-login-card h1 {
        text-align: center;
        font-size: 28px;
        margin: 0;
    }

        .bremm-login-card h1 span {
            color: var(--bremm-orange);
        }

    .bremm-login-card p {
        text-align: center;
        color: #aaa;
        margin: 6px 0 20px;
        font-size: 14px;
    }

    .bremm-login-card label {
        display: block;
        margin: 11px 0 5px;
        font-weight: 700;
    }

    .bremm-login-card input,
    .bremm-login-card select {
        width: 100%;
        background: #151515;
        color: white;
        border: 1px solid rgba(255,255,255,.18);
        border-radius: 10px;
        padding: 10px;
        font-size: 14px;
    }

.bremm-signin-btn {
    width: 100%;
    margin-top: 18px;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(90deg, #f36f12, #ff8a00);
    color: white;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
}

.login-tagline {
    text-align: center;
    margin-top: 16px;
    color: #ddd;
    font-size: 14px;
}

.bremm-login-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 38px;
    background: rgba(0,0,0,.55);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 55px;
    color: #bbb;
    font-size: 12px;
}

@media (max-height: 850px) {
    .bremm-login-brand-panel {
        gap: 12px;
        padding: 25px 40px 55px;
    }

    .genesis-login-logo {
        width: 300px;
    }

    .mrj-login-logo {
        width: 70px;
        padding: 6px;
    }

    .buildrite-login-logo {
        width: 330px;
        margin-top: 4px;
    }

    .bremm-login-card {
        width: 430px;
        padding: 26px;
    }

        .bremm-login-card h1 {
            font-size: 26px;
        }

        .bremm-login-card p {
            font-size: 14px;
            margin-bottom: 18px;
        }

        .bremm-login-card label {
            margin: 10px 0 5px;
        }

        .bremm-login-card input,
        .bremm-login-card select {
            padding: 10px;
        }

    .bremm-signin-btn {
        margin-top: 18px;
        padding: 11px;
    }

    .login-tagline {
        margin-top: 16px;
        font-size: 14px;
    }
}


.login-error {
    margin-top: 14px;
    background: #451313;
    color: #ffb3b3;
    padding: 10px;
    border-radius: 8px;
    font-weight: 700;
}
.module-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.page-header {
    background: white;
    border: 1px solid var(--bremm-border);
    border-radius: 14px;
    padding: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .page-header h1 {
        margin: 0;
        font-size: 30px;
    }

    .page-header p {
        margin: 6px 0 0;
        color: #647080;
    }

.primary-btn,
.small-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, #ff7a18, #f36f12);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 9px 14px;
    min-width: 92px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(243, 111, 18, 0.28);
    transition: all 0.18s ease;
}

    .small-btn:hover {
        background: linear-gradient(135deg, #ff8a2b, #e96500);
        color: white;
        text-decoration: none;
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(243, 111, 18, 0.35);
    }

    .small-btn:active {
        transform: translateY(0);
        box-shadow: 0 4px 10px rgba(243, 111, 18, 0.25);
    }
.primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bremm-orange);
    color: #ffffff;
    padding: 12px 22px;
    min-height: 44px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s ease;
}

.primary-btn:hover {
    background: #e66c00;
    color: #ffffff;
    text-decoration: none;
}

.small-btn {
    padding: 7px 12px;
}

.filter-bar {
    background: white;
    border: 1px solid var(--bremm-border);
    border-radius: 14px;
    padding: 18px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

    .filter-bar label {
        display: block;
        font-weight: 700;
        margin-bottom: 6px;
    }

    .filter-bar select {
        width: 100%;
        padding: 11px;
        border: 1px solid var(--bremm-border);
        border-radius: 8px;
    }

.filter-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 16px 18px;
    align-items: end;
}

    .filter-grid label {
        display: flex;
        flex-direction: column;
        gap: 7px;
        min-width: 0;
        color: #102033;
        font-size: 13px;
        font-weight: 800;
    }

    .filter-grid input,
    .filter-grid select,
    .filter-grid textarea {
        width: 100%;
        min-height: 44px;
        box-sizing: border-box;
        border: 1px solid var(--bremm-border);
        border-radius: 8px;
        background: #ffffff;
        color: #102033;
        padding: 10px 12px;
        font: inherit;
        font-weight: 500;
        outline: none;
        transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
    }

    .filter-grid input:focus,
    .filter-grid select:focus,
    .filter-grid textarea:focus {
        border-color: var(--bremm-orange);
        box-shadow: 0 0 0 3px rgba(243, 111, 18, .14);
        background: #fffdfb;
    }

    .filter-grid button {
        min-height: 44px;
    }

.compact-header {
    margin: -4px -4px 16px;
    padding: 0;
    border: 0;
    background: transparent;
}

    .compact-header h2,
    .compact-header h3 {
        margin: 0;
        font-size: 24px;
    }

    .compact-header p {
        margin-top: 5px;
    }

@media (max-width: 1100px) {
    .filter-grid {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }
}

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

.reports-kpis {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.report-category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.report-category-card {
    background: white;
    border: 1px solid var(--bremm-border);
    border-radius: 14px;
    padding: 20px;
}

    .report-category-card h3 {
        margin: 0;
    }

    .report-category-card p {
        color: #647080;
    }

.progress-bar {
    height: 10px;
    background: #edf0f4;
    border-radius: 20px;
    overflow: hidden;
}

    .progress-bar span {
        display: block;
        height: 100%;
        background: var(--bremm-orange);
    }

.bremm-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.table-scroll,
.responsive-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
}

    .bremm-table th,
    .bremm-table td {
        padding: 13px;
        border-bottom: 1px solid #edf0f4;
        text-align: left;
    }

    .bremm-table th {
        font-size: 13px;
        color: #647080;
    }

    .bremm-table td {
        vertical-align: top;
    }

    .bremm-table td:last-child,
    .bremm-table th:last-child {
        min-width: 120px;
        white-space: nowrap;
    }

.status-badge {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.status-green {
    background: #e8f7ee;
    color: #15803d;
}

.status-orange {
    background: #fff3e8;
    color: #c45a00;
}

.status-red {
    background: #ffe8e8;
    color: #b00020;
}
.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bremm-orange);
    color: #ffffff;
    padding: 12px 22px;
    min-height: 44px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s ease;
}

    .secondary-btn:hover {
        background: #e66c00;
        color: #ffffff;
        text-decoration: none;
    }

.upload-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

    .form-grid label,
    .panel label {
        display: block;
        font-weight: 700;
        margin: 14px 0 6px;
    }

    .form-grid select,
    .panel textarea {
        width: 100%;
        padding: 11px;
        border: 1px solid var(--bremm-border);
        border-radius: 8px;
    }

.panel textarea {
    min-height: 110px;
    resize: vertical;
}

.upload-box {
    border: 2px dashed var(--bremm-border);
    border-radius: 14px;
    padding: 34px;
    text-align: center;
    background: #fafbfc;
}

.upload-icon {
    font-size: 42px;
}

.upload-box h3 {
    margin-bottom: 4px;
}

.upload-box p {
    color: #647080;
}

.upload-submit {
    margin-top: 18px;
}

.rules-list {
    padding-left: 20px;
    color: #4c5968;
}

    .rules-list li {
        margin-bottom: 12px;
    }
.danger-btn {
    background: #b00020 !important;
}

.danger-link {
    background: #b00020 !important;
    color: #ffffff !important;
}

.unread-row {
    font-weight: 700;
    background: #fff7ed;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    border-radius: 999px;
    padding: 0 10px;
    background: #e6f0ff;
    color: #175cd3;
    font-size: 12px;
    font-weight: 800;
}

.row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.notification-inbox-detail h3 {
    margin: 10px 0 0;
}

.inbox-messenger {
    display: grid;
    grid-template-columns: 220px minmax(320px, 0.85fr) minmax(360px, 1.15fr);
    gap: 16px;
    align-items: stretch;
}

.inbox-folders,
.inbox-list-panel,
.inbox-thread-detail {
    background: #ffffff;
    border: 1px solid var(--bremm-border);
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.inbox-folders {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: calc(100vh - 190px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.inbox-folder {
    border: 0;
    background: transparent;
    border-radius: 7px;
    padding: 10px;
    display: grid;
    grid-template-columns: 24px 1fr auto;
    gap: 8px;
    align-items: center;
    text-align: left;
    cursor: pointer;
    color: #0f172a;
}

.inbox-folder.active,
.inbox-folder:hover {
    background: #fff4ec;
    color: #c2410c;
}

.inbox-folder em {
    font-style: normal;
    font-size: 12px;
    font-weight: 800;
    background: #eef2f7;
    border-radius: 999px;
    padding: 2px 8px;
}

.inbox-list-panel {
    overflow: hidden;
}

.inbox-toolbar {
    display: grid;
    grid-template-columns: 1fr 150px;
    gap: 8px;
    padding: 12px;
    border-bottom: 1px solid var(--bremm-border);
}

.inbox-thread-list {
    max-height: calc(100vh - 280px);
    overflow: auto;
    padding: 10px;
}

.inbox-message-card {
    width: 100%;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    border-radius: 8px;
    padding: 12px;
    text-align: left;
    cursor: pointer;
    margin-bottom: 10px;
}

.inbox-message-card.unread {
    border-left: 5px solid #ff6a00;
    background: #fffaf6;
}

.inbox-message-card.priority-high {
    border-color: #fecaca;
    box-shadow: inset 0 0 0 1px #fecaca;
}

.inbox-card-topline,
.inbox-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.inbox-card-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 7px;
}

.inbox-card-title strong {
    font-size: 15px;
    color: #0f172a;
}

.inbox-message-card p {
    margin: 7px 0 9px;
    color: #475569;
    line-height: 1.45;
}

.inbox-category {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f1f5f9;
    color: #334155;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 12px;
    font-weight: 800;
}

.unread-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ff6a00;
    flex: 0 0 auto;
}

.status-unread,
.status-read,
.status-resolved,
.status-muted {
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 12px;
    font-weight: 800;
}

.status-unread { background: #fff7ed; color: #c2410c; }
.status-read { background: #eef2f7; color: #475569; }
.status-resolved { background: #dcfce7; color: #15803d; }
.status-muted { background: #f1f5f9; color: #64748b; }

.inbox-thread-detail {
    padding: 18px;
    min-height: 520px;
}

.inbox-detail-header h2 {
    margin: 12px 0 8px;
    font-size: 26px;
}

.inbox-detail-header p,
.inbox-empty-detail p {
    color: #475569;
    line-height: 1.55;
}

.inbox-history {
    margin-top: 18px;
}

.inbox-history-item {
    border-left: 3px solid #ff6a00;
    padding: 10px 0 10px 12px;
    margin-bottom: 10px;
}

.inbox-history-item span {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.inbox-history-item strong {
    display: block;
    margin-top: 3px;
}

.inbox-empty-detail {
    min-height: 420px;
    display: grid;
    place-content: center;
    text-align: center;
}

@media (max-width: 1180px) {
    .inbox-messenger {
        grid-template-columns: 190px 1fr;
    }

    .inbox-thread-detail {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .inbox-messenger {
        grid-template-columns: 1fr;
    }

    .inbox-folders {
        flex-direction: row;
        overflow-x: auto;
    }

    .inbox-folder {
        min-width: 150px;
    }

    .inbox-toolbar {
        grid-template-columns: 1fr;
    }
}

.api-reference-page {
    background: #efede4;
    padding: 0;
}

.api-reference-header {
    background: #ffffff;
    border-bottom: 1px solid var(--bremm-border);
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.api-reference-header h1 {
    margin: 0;
    font-size: 22px;
}

.api-reference-header p {
    margin: 4px 0 0;
    color: #647080;
}

.api-reference-actions {
    display: flex;
    gap: 8px;
}

.api-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding: 22px;
}

.api-stat-card {
    min-height: 86px;
    background: #ffffff;
    border: 1px solid #dedbd0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, .06);
}

.api-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #eef4ff;
    color: #175cd3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.api-stat-card strong {
    display: block;
    font-size: 24px;
}

.api-stat-card span {
    color: #647080;
    font-size: 13px;
}

.api-method-strip {
    margin: 0 22px 20px;
    min-height: 56px;
    background: #ffffff;
    border: 1px solid #dedbd0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 14px;
}

.api-method-strip > div {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.api-method-strip span {
    color: #647080;
    font-size: 13px;
}

.api-method-chip,
.api-auth-chip {
    border: 0;
    border-radius: 6px;
    min-height: 26px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.api-method-chip small {
    margin-left: 4px;
    opacity: .7;
}

.api-method-chip.get,
.api-method.get {
    background: #dcfae6;
    color: #067647;
}

.api-method-chip.post,
.api-method.post {
    background: #e6f0ff;
    color: #175cd3;
}

.api-method-chip.patch,
.api-method.patch {
    background: #fff7ed;
    color: #b54708;
}

.api-method-chip.put,
.api-method.put {
    background: #f4ebff;
    color: #6941c6;
}

.api-method-chip.delete,
.api-method.delete {
    background: #fef3f2;
    color: #b42318;
}

.api-auth-chip {
    background: #f2f4f7;
    color: #344054;
}

.api-auth-chip.active {
    background: var(--bremm-orange);
    color: #ffffff;
}

.api-reference-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 18px;
    padding: 0 22px 24px;
}

.api-group-panel,
.api-endpoint-card,
.api-deployment-check {
    background: #ffffff;
    border: 1px solid #dedbd0;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, .04);
}

.api-group-panel {
    align-self: start;
    padding: 12px;
    position: sticky;
    top: 12px;
    max-height: calc(100vh - 190px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.api-search {
    width: 100%;
    min-height: 38px;
    border: 1px solid var(--bremm-border);
    border-radius: 8px;
    padding: 0 12px;
    margin-bottom: 10px;
}

.api-group-button {
    width: 100%;
    min-height: 36px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #344054;
    display: grid;
    grid-template-columns: 24px 1fr auto;
    align-items: center;
    gap: 8px;
    text-align: left;
    padding: 0 10px;
    font-weight: 700;
    cursor: pointer;
}

.api-group-button.active,
.api-group-button:hover {
    background: #f2f4f7;
}

.api-group-button small {
    color: #7f8d9c;
}

.api-endpoint-panel {
    display: grid;
    gap: 10px;
}

.api-group-heading {
    min-height: 34px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #344054;
    font-weight: 800;
}

.api-group-heading small {
    color: #7f8d9c;
    font-weight: 600;
}

.api-endpoint-card {
    overflow: hidden;
}

.api-endpoint-card summary {
    min-height: 54px;
    display: grid;
    grid-template-columns: 74px minmax(240px, 1fr) minmax(220px, 1.1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    cursor: pointer;
    list-style: none;
}

.api-endpoint-card summary::-webkit-details-marker {
    display: none;
}

.api-method,
.api-auth,
.api-mini-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    border-radius: 6px;
    padding: 0 9px;
    font-size: 12px;
    font-weight: 900;
}

.api-endpoint-card code {
    color: #1d2530;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.api-summary {
    color: #647080;
    font-size: 13px;
}

.api-auth.auth {
    background: #dcfae6;
    color: #067647;
}

.api-auth.public {
    background: #eef4ff;
    color: #175cd3;
}

.api-endpoint-body {
    border-top: 1px solid #edf0f4;
    background: #f8fafc;
    padding: 16px;
}

.api-endpoint-body p {
    margin: 0 0 14px;
    color: #4c5968;
}

.api-detail-grid {
    display: grid;
    grid-template-columns: 1.4fr .8fr;
    gap: 16px;
}

.api-detail-grid h4 {
    margin: 0 0 8px;
    font-size: 12px;
    color: #647080;
    text-transform: uppercase;
}

.api-detail-grid table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

.api-detail-grid th,
.api-detail-grid td {
    padding: 8px;
    border-bottom: 1px solid #edf0f4;
    text-align: left;
    font-size: 13px;
}

.api-detail-grid th {
    color: #647080;
    font-size: 12px;
}

.api-mini-pill {
    min-height: 20px;
    background: #e6f0ff;
    color: #175cd3;
    font-size: 11px;
}

.api-response-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.api-response-list span {
    border-radius: 6px;
    background: #f2f4f7;
    color: #344054;
    padding: 4px 8px;
    font-weight: 800;
    font-size: 12px;
}

.api-muted {
    color: #7f8d9c;
}

.api-deployment-check {
    margin: 0 22px 24px;
    padding: 14px;
    display: flex;
    gap: 10px;
    align-items: center;
}

@media (max-width: 1100px) {
    .api-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .api-reference-layout {
        grid-template-columns: 1fr;
    }

    .api-group-panel {
        position: static;
    }

    .api-endpoint-card summary {
        grid-template-columns: 70px 1fr;
    }

    .api-summary,
    .api-auth {
        grid-column: 2;
    }
}

.report-viewer-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
}

.pdf-placeholder {
    min-height: 520px;
    border: 2px dashed var(--bremm-border);
    border-radius: 14px;
    background: #fafbfc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.pdf-icon {
    font-size: 64px;
}

.details-list div {
    margin-bottom: 12px;
}

.activity-list li {
    margin-bottom: 10px;
}
.analytics-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 16px;
}

.analytics-row {
    display: flex;
    justify-content: space-between;
    margin: 18px 0 8px;
    font-weight: 700;
}

.trend-bars {
    height: 280px;
    display: flex;
    align-items: end;
    gap: 24px;
    padding-top: 20px;
}

    .trend-bars div {
        flex: 1;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: end;
        align-items: center;
    }

    .trend-bars span {
        width: 60px;
        background: var(--bremm-orange);
        border-radius: 10px 10px 0 0;
        display: block;
    }

    .trend-bars p {
        font-weight: 700;
        color: #647080;
    }
.page-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

    .page-actions a,
    .page-actions button {
        white-space: nowrap;
        text-decoration: none;
    }

.page-header {
    gap: 20px;
}

.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.comment-box {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid #edf0f4;
}

.comment-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bremm-orange);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.comment-box p {
    margin: 6px 0;
    color: #4c5968;
}

.comment-box small {
    color: #647080;
}
.comparison-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.upload-message {
    margin-top: 16px;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
}

    .upload-message.success {
        background: #e8f7ee;
        color: #15803d;
    }

    .upload-message.error {
        background: #ffe8e8;
        color: #b00020;
    }

.upload-success-card {
    background: #f8fafc;
    border: 1px solid var(--bremm-border);
    border-radius: 12px;
    padding: 16px;
}
.module-with-nav {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    align-items: start;
    min-height: 100%;
    overflow: visible;
}

    .module-with-nav > .module-page:only-child {
        grid-column: 1 / -1;
    }

    .module-with-nav > .module-page {
        min-width: 0;
        min-height: 100%;
        max-height: none;
        overflow-y: visible;
        overflow-x: auto;
        padding-right: 6px;
        overscroll-behavior-x: contain;
        scrollbar-gutter: stable both-edges;
    }

.module-nav-card {
    background: white;
    border: 1px solid var(--bremm-border);
    border-radius: 14px;
    padding: 18px;
    position: sticky;
    top: 0;
    height: fit-content;
    max-height: calc(100vh - 244px);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

    .module-nav-card h3 {
        margin: 0 0 16px;
    }

    .module-nav-card a {
        display: block;
        padding: 11px 12px;
        margin-bottom: 6px;
        border-radius: 10px;
        color: #1d2530;
        text-decoration: none;
        font-weight: 500;
    }

        .module-nav-card a:hover {
            background: #fff3e8;
            color: var(--bremm-orange);
        }

.module-nav-heading {
    margin: 18px 0 8px;
    padding-top: 12px;
    border-top: 1px solid #edf0f4;
    font-size: 12px;
    font-weight: 800;
    color: #647080;
    text-transform: uppercase;
}
.activity-list {
    margin: 0;
    padding-left: 18px;
}

    .activity-list li {
        padding: 10px 0;
        border-bottom: 1px solid #edf0f4;
    }
.form-control {
    width: 100%;
    padding: 11px;
    border: 1px solid var(--bremm-border);
    border-radius: 8px;
}

.selector-search {
    margin-bottom: 6px;
}

.currency-input {
    display: flex;
    align-items: stretch;
}

.currency-input span {
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid var(--bremm-border);
    border-right: 0;
    border-radius: 8px 0 0 8px;
    background: #f8fafc;
    color: var(--bremm-ink);
    font-weight: 800;
}

.currency-input .form-control {
    border-radius: 0 8px 8px 0;
}
.details-table {
    width: 100%;
    border-collapse: collapse;
}

    .details-table td {
        padding: 12px;
        border-bottom: 1px solid #edf0f4;
    }

.timeline {
    margin-top: 20px;
}

.timeline-item {
    display: flex;
    gap: 18px;
    margin-bottom: 22px;
}

.timeline-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bremm-orange);
    margin-top: 5px;
}

    .timeline-dot.orange {
        background: #ff9800;
    }
.task-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.task-column {
    background: #f8fafc;
    border: 1px solid #edf0f4;
    border-radius: 14px;
    padding: 16px;
    min-height: 420px;
}

    .task-column h3 {
        margin-top: 0;  
    }

.task-column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

    .task-column-header h3 {
        margin: 0;
    }

    .task-column-header span {
        min-width: 30px;
        height: 30px;
        border-radius: 999px;
        background: #e5e7eb;
        color: #111827;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-weight: 800;
        font-size: 13px;
    }

.task-card {
    background: white;
    border: 1px solid #edf0f4;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.task-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

    .task-card-link:hover {
        border-color: var(--bremm-orange);
        box-shadow: 0 8px 18px rgba(249, 115, 22, 0.15);
        transform: translateY(-1px);
    }

.task-card-topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

    .task-card-topline strong {
        line-height: 1.25;
    }

    .task-card p {
        margin: 8px 0;
        color: #64748b;
    }

.task-card-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    color: #475569;
    font-size: 12px;
}

.task-card small {
    display: block;
    margin-top: 8px;
    color: #64748b;
}

@media (max-width: 1180px) {
    .task-board {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .task-board {
        grid-template-columns: 1fr;
    }
}
/* Sprint 13-16 dashboard and reporting additions */
.traffic-light-card {
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 18px;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.traffic-light-card strong { font-size: 34px; }
.traffic-light-card.green { background: #12833b; }
.traffic-light-card.amber { background: #c97900; }
.traffic-light-card.red { background: #b32121; }
.traffic-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}
.traffic-dot.green { background: #12833b; }
.traffic-dot.amber { background: #c97900; }
.traffic-dot.red { background: #b32121; }
.bar {
    width: 100%;
    height: 14px;
    border-radius: 20px;
    background: #e4e8ef;
    overflow: hidden;
}
.bar span {
    display: block;
    height: 100%;
    background: var(--bremm-orange);
    min-width: 2px;
}
.graph-row {
    display: grid;
    grid-template-columns: 160px 1fr 80px;
    gap: 12px;
    align-items: center;
    margin: 12px 0;
}

/* RC6 reporting week, user security and closure-control polish */
.selected-row {
    background: #fff7ed;
}
.status-blue {
    background: #e8f1ff;
    color: #1d4ed8;
}
.upload-message.warning {
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
}
.metric-grid.compact {
    display: grid;
    grid-template-columns: repeat(5, minmax(80px, 1fr));
    gap: 10px;
    margin-top: 12px;
}
.metric-grid.compact div {
    background: #f8fafc;
    border: 1px solid #edf0f4;
    border-radius: 12px;
    padding: 12px;
}
.metric-grid.compact strong {
    display: block;
    font-size: 24px;
    color: #0f172a;
}
.metric-grid.compact span {
    font-size: 12px;
    color: #64748b;
}
.inline-check {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-right: 16px;
    font-weight: 700;
}

/* RC8 stability and UX polish */
.uppercase-login { text-transform: uppercase; }
.bremm-component-error { border: 1px solid #f3b3b3; background: #fff5f5; color: #7a1f1f; border-radius: 12px; padding: 18px; margin: 12px 0; }
.bremm-component-error strong { display: block; margin-bottom: 6px; }
.dashboard-three-column { display: grid; grid-template-columns: 1.2fr 1.2fr 0.8fr; gap: 18px; align-items: start; }
.task-section-heading { margin: 16px 0 8px; font-size: 14px; color: #555; text-transform: uppercase; letter-spacing: .04em; }
.task-section-list { display: grid; gap: 8px; }
.task-mini-card { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid #e8edf3; border-radius: 12px; background: #fff; text-decoration: none; color: inherit; }
.task-mini-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.task-mini-card .muted { color: #667085; font-size: 12px; }
.status-badge.status-grey { background: #eef2f6; color: #344054; }
.week-group-card { border: 1px solid #e6ebf1; border-radius: 14px; background: #fff; margin-bottom: 14px; overflow: hidden; }
.week-group-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: #f8fafc; border-bottom: 1px solid #e6ebf1; }
.week-group-header h3 { margin: 0; }
@media (max-width: 1100px) { .dashboard-three-column { grid-template-columns: 1fr; } }

/* RC23 menu visibility controls */

.attachment-preview-modal {
    align-items: center;
    background: rgba(8, 18, 30, 0.78);
    display: none;
    inset: 0;
    justify-content: center;
    padding: 28px;
    position: fixed;
    z-index: 5000;
}

.attachment-preview-modal.open {
    display: flex;
}

.attachment-preview-dialog {
    background: #ffffff;
    border: 1px solid #d7e0ea;
    border-radius: 10px;
    box-shadow: 0 24px 70px rgba(8, 18, 30, 0.35);
    display: flex;
    flex-direction: column;
    height: min(900px, 92vh);
    max-height: 92vh;
    max-width: 1280px;
    overflow: hidden;
    width: min(1180px, 94vw);
}

.attachment-preview-modal.fullscreen {
    padding: 8px;
}

.attachment-preview-modal.fullscreen .attachment-preview-dialog {
    border-radius: 6px;
    height: calc(100vh - 16px);
    max-height: calc(100vh - 16px);
    max-width: calc(100vw - 16px);
    width: calc(100vw - 16px);
}

.attachment-preview-header,
.attachment-preview-actions {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 14px 18px;
}

.attachment-preview-header {
    background: #f8fafc;
    border-bottom: 1px solid #d7e0ea;
    flex: 0 0 auto;
}

.attachment-preview-header strong {
    color: #0f1f33;
    display: block;
    font-size: 1rem;
}

.attachment-preview-header span {
    color: #60718a;
    display: block;
    font-size: 0.82rem;
    margin-top: 2px;
}

.attachment-preview-window-actions {
    display: inline-flex;
    gap: 8px;
}

.attachment-preview-icon-btn,
.attachment-preview-close {
    align-items: center;
    background: #eef3f8;
    border: 1px solid #d7e0ea;
    border-radius: 6px;
    color: #0f1f33;
    display: inline-flex;
    font-size: 1.4rem;
    height: 36px;
    justify-content: center;
    line-height: 1;
    width: 36px;
}

.attachment-preview-icon-btn {
    font-size: 1rem;
    font-weight: 800;
}

.attachment-preview-body {
    align-items: stretch;
    background: #e7edf4;
    display: flex;
    flex: 1 1 auto;
    justify-content: center;
    min-height: 0;
    overflow: auto;
    padding: 20px;
}

.attachment-preview-frame {
    background: #ffffff;
    border: 1px solid #cfd8e3;
    border-radius: 6px;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.16);
    display: block;
    height: 100%;
    min-height: 680px;
    width: min(920px, 100%);
}

.attachment-preview-image {
    align-self: flex-start;
    background: #ffffff;
    border: 1px solid #cfd8e3;
    border-radius: 6px;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.16);
    display: block;
    margin: 0 auto;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    padding: 14px;
}

.attachment-preview-fallback {
    background: #ffffff;
    border: 1px solid #d7e0ea;
    border-radius: 8px;
    margin: 28px auto;
    max-width: 620px;
    padding: 24px;
}

.attachment-preview-fallback h3 {
    color: #0f1f33;
    margin-top: 0;
}

.attachment-preview-fallback p {
    color: #60718a;
    margin-bottom: 0;
}

.attachment-preview-actions {
    background: #f8fafc;
    border-top: 1px solid #d7e0ea;
    flex: 0 0 auto;
    justify-content: flex-end;
}

@media (max-width: 760px) {
    .attachment-preview-modal {
        padding: 8px;
    }

    .attachment-preview-dialog {
        height: calc(100vh - 16px);
        max-height: calc(100vh - 16px);
        width: calc(100vw - 16px);
    }

    .attachment-preview-body {
        padding: 10px;
    }

    .attachment-preview-frame {
        min-height: 70vh;
        width: 100%;
    }
}
.menu-permission-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 8px 0 16px; }
.menu-permission-tile { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 38px; padding: 9px 12px; border-radius: 6px; background: #ece9dc; color: #1f2933; font-weight: 700; }
.menu-permission-tile span, .menu-permission-tile small { min-width: 0; overflow-wrap: anywhere; }
.menu-permission-tile select { max-width: 110px; }
.status-green-text { color: #067647; }
.status-red-text { color: #b42318; }
@media (max-width: 900px) { .menu-permission-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .menu-permission-grid { grid-template-columns: 1fr; } }

/* Phase A shared feedback and contextual help */
.bremm-toast-region { position: fixed; right: 22px; bottom: 58px; z-index: 3000; display: grid; gap: 10px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.bremm-toast { pointer-events: auto; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: start; padding: 13px 14px; border-radius: 8px; background: #fff; border: 1px solid #d9e1ea; box-shadow: 0 16px 38px rgba(15,23,42,.18); color: #102033; }
.bremm-toast strong { font-size: 13px; }
.bremm-toast span { grid-column: 1; color: #475569; font-size: 13px; }
.bremm-toast button { grid-row: 1 / span 2; grid-column: 2; border: 0; background: transparent; color: #64748b; font-size: 20px; line-height: 1; }
.bremm-toast.success { border-left: 5px solid #159947; }
.bremm-toast.info { border-left: 5px solid #2563eb; }
.bremm-toast.warning { border-left: 5px solid #f97316; }
.bremm-toast.error { border-left: 5px solid #dc2626; }
.context-help-button { position: fixed; right: 22px; bottom: 118px; z-index: 2600; width: 44px; height: 44px; border-radius: 999px; border: 0; background: var(--bremm-orange); color: #fff; font-weight: 900; box-shadow: 0 14px 30px rgba(249,115,22,.35); }
.context-help-backdrop { position: fixed; inset: 0; z-index: 3100; background: rgba(15, 23, 42, .28); }
.context-help-panel { position: fixed; right: 22px; top: 82px; bottom: 58px; z-index: 3200; width: min(620px, calc(100vw - 36px)); display: flex; flex-direction: column; background: #fff; border: 1px solid #dce3eb; border-radius: 8px; box-shadow: 0 24px 60px rgba(15,23,42,.25); overflow: hidden; }
.context-help-panel header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 20px; border-bottom: 1px solid #edf0f4; }
.context-help-panel header span { color: var(--bremm-orange); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.context-help-panel header h2 { margin: 2px 0 0; font-size: 24px; }
.context-help-panel header button { border: 0; background: transparent; font-size: 28px; line-height: 1; color: #475569; }
.context-help-toolbar { display: flex; gap: 8px; padding: 10px 20px; border-bottom: 1px solid #edf0f4; background: #f8fafc; }
.context-help-content { padding: 18px 20px 24px; overflow: auto; }
.context-help-content h3 { margin-top: 18px; font-size: 18px; }
.context-help-content h4 { margin-top: 14px; font-size: 15px; color: #0f172a; }
.context-help-content p, .context-help-content li { color: #475569; line-height: 1.55; }
.context-help-summary { padding: 12px 14px; border-left: 4px solid var(--bremm-orange); background: #fff7ed; border-radius: 6px; }
.context-help-content footer { margin-top: 18px; padding-top: 12px; border-top: 1px solid #edf0f4; color: #64748b; font-size: 12px; }
.help-result-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.help-result-card { border: 1px solid #edf0f4; border-radius: 8px; padding: 14px; background: #fff; }
.help-result-card span { color: var(--bremm-orange); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.help-result-card h3 { margin: 6px 0; font-size: 18px; }
.learning-centre-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; align-items: start; }
.learning-centre-nav { position: sticky; top: 92px; max-height: calc(100vh - 190px); overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.learning-centre-nav label { font-weight: 800; margin-bottom: 6px; color: #0f172a; }
.learning-category-list { display: grid; gap: 8px; margin-top: 14px; }
.learning-category-list button { text-align: left; border: 1px solid #e2e8f0; background: #fff; border-radius: 8px; padding: 10px 12px; color: #0f172a; }
.learning-category-list button.active { border-color: var(--bremm-orange); background: #fff7ed; box-shadow: 0 8px 18px rgba(249,115,22,.12); }
.learning-category-list span { display: block; font-weight: 900; }
.learning-category-list small { display: block; margin-top: 2px; color: #64748b; line-height: 1.35; }
.learning-centre-main { display: grid; gap: 16px; }
.learning-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.learning-stats article { border: 1px solid #dce3eb; border-radius: 8px; background: #fff; padding: 16px; box-shadow: 0 8px 20px rgba(15,23,42,.05); }
.learning-stats strong { display: block; font-size: 28px; color: #0f172a; }
.learning-stats span { color: #64748b; font-weight: 700; }
.learning-section-heading { display: flex; justify-content: space-between; gap: 18px; margin-bottom: 16px; border-bottom: 1px solid #edf0f4; padding-bottom: 12px; }
.learning-section-heading span { color: var(--bremm-orange); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.learning-section-heading h3 { margin: 2px 0 0; }
.learning-section-heading p { margin: 0; max-width: 520px; color: #64748b; }
.workflow-guide-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.workflow-guide-strip article, .learning-library-grid article { border: 1px solid #edf0f4; border-radius: 8px; padding: 12px; background: #f8fafc; }
.workflow-guide-strip strong, .learning-library-grid strong { display: block; color: #0f172a; }
.workflow-guide-strip span, .learning-library-grid span { display: block; margin-top: 4px; color: #64748b; line-height: 1.4; }
.learning-library-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.readiness-line { display: flex; align-items: center; gap: 8px; margin: 4px 0; color: #334155; }
.readiness-line .status-badge { min-width: 58px; justify-content: center; }
@media (max-width: 760px) {
    .bremm-toast-region { right: 12px; bottom: 78px; }
    .context-help-button { right: 14px; bottom: 136px; }
    .context-help-panel { inset: 44px 10px 74px; width: auto; }
    .learning-centre-grid { grid-template-columns: 1fr; }
    .learning-centre-nav { position: static; }
    .learning-stats, .workflow-guide-strip, .learning-library-grid { grid-template-columns: 1fr; }
    .learning-section-heading { display: block; }
    .help-result-list { grid-template-columns: 1fr; }
}

/* Phase C people workspace and organogram */
.employee-summary-header { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 18px; margin-bottom: 14px; border: 1px solid #dbe3ef; border-radius: 8px; background: #fff; }
.employee-summary-header h2 { margin: 0; font-size: 28px; }
.employee-summary-header p { margin: 4px 0 8px; color: #64748b; }
.employee-avatar { display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 8px; background: #ff6b00; color: #fff; font-weight: 900; font-size: 20px; }
.employee-avatar.small { width: 34px; height: 34px; font-size: 12px; }
.employee-summary-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.employee-summary-meta span { padding: 5px 9px; border-radius: 999px; background: #f1f5f9; color: #334155; font-size: 12px; font-weight: 800; }
.workspace-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.workspace-tabs a { padding: 9px 12px; border: 1px solid #dbe3ef; border-radius: 8px; background: #fff; color: #102033; text-decoration: none; font-weight: 800; font-size: 13px; }
.workspace-tabs a.active { background: #ff6b00; border-color: #ff6b00; color: #fff; }
.employee-timeline { display: grid; gap: 10px; }
.employee-timeline-item { border-left: 4px solid #ff6b00; padding: 10px 12px; border-radius: 8px; background: #f8fafc; }
.employee-timeline-item span { color: #ff6b00; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.employee-timeline-item strong, .employee-timeline-item small { display: block; }
.employee-timeline-item p { margin: 4px 0; color: #475569; }
.organogram-toolbar { display: flex; align-items: center; gap: 8px; margin: 12px 0; }
.organogram-canvas { overflow: auto; min-height: 420px; padding: 12px; border: 1px solid #edf0f4; border-radius: 8px; background: #f8fafc; }
.organogram-tree { min-width: 760px; transition: transform .15s ease; }
.organogram-node-wrap { position: relative; padding: 5px 0; }
.organogram-node { display: inline-flex; align-items: center; gap: 8px; }
.organogram-node.vacancy .person-card { opacity: .75; border-style: dashed; }
.org-toggle { width: 24px; height: 24px; border: 1px solid #dbe3ef; border-radius: 6px; background: #fff; color: #102033; font-weight: 900; }
.person-card { display: inline-grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; min-width: 310px; padding: 10px 12px; border: 1px solid #dbe3ef; border-radius: 8px; background: #fff; color: #102033; text-decoration: none; box-shadow: 0 6px 16px rgba(15,23,42,.05); }
.person-card strong, .person-card small { display: block; }
.person-card small { color: #64748b; }
.person-card em { font-style: normal; color: #64748b; font-weight: 900; }
@media (max-width: 760px) {
    .employee-summary-header { grid-template-columns: 1fr; }
    .organogram-tree { min-width: 620px; }
}
