h1:focus {
    outline: none;
}

:root,
:root[data-theme="dark"] {
    --ginoma-bg: #0b1120;
    --ginoma-bg-elevated: #111827;
    --ginoma-surface: #1f2125;
    --ginoma-surface-soft: #171b24;
    --ginoma-text: #f8fafc;
    --ginoma-text-muted: #94a3b8;
    --ginoma-border: rgba(148, 163, 184, 0.22);
    --ginoma-primary: #60a5fa;
    --ginoma-primary-strong: #2563eb;
    --ginoma-shadow: rgba(0, 0, 0, 0.32);
    --ginoma-input-bg: #171b24;
    --ginoma-hover: rgba(96, 165, 250, 0.12);
    --ginoma-control-bg: #151c28;
    --ginoma-control-disabled-bg: #202938;
    --ginoma-control-disabled-text: #8492a6;
    --ginoma-focus: rgba(96, 165, 250, 0.34);
    --ginoma-shadow-soft: rgba(0, 0, 0, 0.22);
}

:root[data-theme="light"] {
    --ginoma-bg: #eef2f7;
    --ginoma-bg-elevated: #ffffff;
    --ginoma-surface: #ffffff;
    --ginoma-surface-soft: #f5f7fb;
    --ginoma-text: #172033;
    --ginoma-text-muted: #52647a;
    --ginoma-border: #cbd5e1;
    --ginoma-primary: #2563eb;
    --ginoma-primary-strong: #1d4ed8;
    --ginoma-shadow: rgba(15, 23, 42, 0.08);
    --ginoma-input-bg: #ffffff;
    --ginoma-hover: rgba(37, 99, 235, 0.08);
    --ginoma-control-bg: #f1f5f9;
    --ginoma-control-disabled-bg: #e2e8f0;
    --ginoma-control-disabled-text: #64748b;
    --ginoma-focus: rgba(37, 99, 235, 0.24);
    --ginoma-shadow-soft: rgba(15, 23, 42, 0.06);
}

html,
body {
    background: var(--ginoma-bg);
    color: var(--ginoma-text);
    overflow-x: clip;
}

html {
    scrollbar-gutter: stable;
}

:root[data-theme="light"] .mud-paper,
:root[data-theme="light"] .mud-card,
:root[data-theme="light"] .mud-table-container,
:root[data-theme="light"] .mud-popover,
:root[data-theme="light"] .mud-dialog {
    color: var(--ginoma-text);
    border-color: var(--ginoma-border);
    background-color: var(--ginoma-surface);
}

:root[data-theme="light"] .mud-input,
:root[data-theme="light"] .mud-input-control,
:root[data-theme="light"] .mud-select,
:root[data-theme="light"] .mud-table-cell,
:root[data-theme="light"] .mud-typography,
:root[data-theme="light"] label {
    color: var(--ginoma-text);
}

:root[data-theme="light"] .mud-input-outlined-border,
:root[data-theme="light"] .mud-table-root,
:root[data-theme="light"] .mud-table-cell {
    border-color: var(--ginoma-border);
}

:root[data-theme="light"] input,
:root[data-theme="light"] select,
:root[data-theme="light"] textarea {
    color: var(--ginoma-text);
    border-color: var(--ginoma-border);
    background-color: var(--ginoma-input-bg);
}

:root[data-theme="light"] input[type="date"] {
    color-scheme: light;
}

:root[data-theme="light"] .ginoma-sidebar {
    color: #263244;
    border-right-color: #b5becb;
    background: #d4dae3;
}

:root[data-theme="light"] .ginoma-menu .mud-nav-link,
:root[data-theme="light"] .ginoma-menu .mud-nav-group .mud-nav-link,
:root[data-theme="light"] .ginoma-menu .mud-nav-group .mud-nav-group-header {
    color: #3f4d61;
}

:root[data-theme="light"] .ginoma-menu .mud-nav-link.active,
:root[data-theme="light"] .ginoma-menu .mud-nav-link:hover,
:root[data-theme="light"] .ginoma-menu .mud-nav-group .mud-nav-group-header:hover {
    color: #123b78;
    background: rgba(255, 255, 255, 0.58);
}

:root[data-theme="light"] .ginoma-sidebar .mud-icon-root,
:root[data-theme="light"] .ginoma-sidebar .mud-nav-link-expand-icon {
    color: #465468;
}

:root[data-theme="light"] .ginoma-sidebar .mud-nav-link.active .mud-icon-root,
:root[data-theme="light"] .ginoma-sidebar .mud-nav-link:hover .mud-icon-root {
    color: #123b78;
}

:root[data-theme="light"] .ginoma-sidebar .mud-divider {
    border-color: #aeb8c6 !important;
    opacity: 1;
}

:root[data-theme="light"] .topbar-zoom,
:root[data-theme="light"] .topbar-chat-trigger,
:root[data-theme="light"] .topbar-manager-trigger,
:root[data-theme="light"] .topbar-critical-trigger {
    color: var(--ginoma-primary-strong);
    border-color: var(--ginoma-border);
    background: var(--ginoma-surface-soft);
}

.ginoma-content {
    color: var(--ginoma-text) !important;
    background: linear-gradient(135deg, var(--ginoma-bg) 0%, var(--ginoma-bg-elevated) 45%, var(--ginoma-bg) 100%) !important;
}

:root[data-theme="light"] .ginoma-topbar {
    color: var(--ginoma-text) !important;
    border-bottom-color: var(--ginoma-border) !important;
    background: var(--ginoma-bg-elevated) !important;
}

:root[data-theme="light"] .notification-center {
    color: var(--ginoma-text) !important;
}

:root[data-theme="light"] .notification-hero,
:root[data-theme="light"] .notification-toolbar,
:root[data-theme="light"] .notification-tabbar,
:root[data-theme="light"] .notification-panel,
:root[data-theme="light"] .notification-filters-panel,
:root[data-theme="light"] .notification-table-wrap,
:root[data-theme="light"] .notification-filter,
:root[data-theme="light"] .notification-filter-field {
    color: var(--ginoma-text) !important;
    border-color: var(--ginoma-border) !important;
    background: var(--ginoma-surface) !important;
    box-shadow: 0 8px 24px var(--ginoma-shadow) !important;
}

:root[data-theme="light"] .notification-filter,
:root[data-theme="light"] .notification-filter-field,
:root[data-theme="light"] .notification-grid-filter,
:root[data-theme="light"] .notification-quick-days,
:root[data-theme="light"] .notification-count-pill,
:root[data-theme="light"] .notification-usage-summary div {
    color: var(--ginoma-text) !important;
    border-color: var(--ginoma-border) !important;
    background: var(--ginoma-surface-soft) !important;
}

:root[data-theme="light"] .notification-title-row h1,
:root[data-theme="light"] .notification-panel-header h2,
:root[data-theme="light"] .notification-empty strong,
:root[data-theme="light"] .notification-module-cell,
:root[data-theme="light"] .notification-record-title,
:root[data-theme="light"] .notification-usage-summary strong,
:root[data-theme="light"] .notification-filter select,
:root[data-theme="light"] .notification-filter input,
:root[data-theme="light"] .notification-filter-field input,
:root[data-theme="light"] .notification-grid-filter input {
    color: var(--ginoma-text) !important;
}

:root[data-theme="light"] .notification-title-block > span,
:root[data-theme="light"] .notification-panel-header span,
:root[data-theme="light"] .notification-panel-header small,
:root[data-theme="light"] .notification-filter legend,
:root[data-theme="light"] .notification-filter span,
:root[data-theme="light"] .notification-filter-field legend,
:root[data-theme="light"] .notification-pagination,
:root[data-theme="light"] .notification-record-description,
:root[data-theme="light"] .notification-status-text {
    color: var(--ginoma-text-muted) !important;
}

:root[data-theme="light"] .notification-table th {
    color: var(--ginoma-primary-strong) !important;
    border-bottom-color: var(--ginoma-border) !important;
    background: var(--ginoma-surface-soft) !important;
}

:root[data-theme="light"] .notification-table td {
    color: var(--ginoma-text) !important;
    border-bottom-color: var(--ginoma-border) !important;
}

:root[data-theme="light"] .notification-table tr:hover td {
    background: var(--ginoma-hover) !important;
}

:root[data-theme="light"] .notification-tab,
:root[data-theme="light"] .notification-day-button,
:root[data-theme="light"] .ginoma-nav-pdf-link {
    color: var(--ginoma-text-muted) !important;
}

:root[data-theme="light"] .notification-tab.active,
:root[data-theme="light"] .notification-day-button.active {
    color: var(--ginoma-primary-strong) !important;
    border-color: rgba(37, 99, 235, 0.28) !important;
    background: var(--ginoma-hover) !important;
}

:root[data-theme="light"] .floating-user-pending-card::before {
    border-top-color: var(--ginoma-border) !important;
    background: var(--ginoma-bg-elevated) !important;
}

:root[data-theme="light"] .floating-user-pending-card {
    color: var(--ginoma-text) !important;
    border-color: var(--ginoma-border) !important;
    background: linear-gradient(135deg, var(--ginoma-bg-elevated), var(--ginoma-surface-soft)) !important;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.login-page {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 48px 8%;
    background: linear-gradient(90deg, rgba(5,7,10,0.80), rgba(11,17,32,0.88)), url('images/login-energy.jpg');
    background-size: cover;
    background-position: center;
}

.login-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(37,99,235,0.28), transparent 28%), radial-gradient(circle at 80% 70%, rgba(148,163,184,0.16), transparent 30%), linear-gradient(135deg, rgba(3,7,18,0.25), rgba(3,7,18,0.90));
}

.energy-lines {
    position: absolute;
    left: 8%;
    top: 18%;
    width: 420px;
    height: 420px;
    border-left: 2px solid rgba(148,163,184,0.28);
    transform: skewX(-14deg);
}

    .energy-lines span {
        display: block;
        height: 2px;
        margin: 82px 0;
        background: linear-gradient(90deg, rgba(148,163,184,0.70), transparent);
    }

.login-card {
    position: relative;
    z-index: 2;
    width: 380px;
    padding: 26px;
    background: rgba(31, 33, 37, 0.86) !important;
    border: 1px solid rgba(255,255,255,0.10);
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 80px rgba(0,0,0,0.45);
}

.login-page .login-brand {
    text-align: center;
    margin-bottom: 26px;
}

.gma-api-page .dashboard-chart-grid {
    align-items: stretch;
}

.gma-api-panel,
.gma-api-access-panel {
    min-width: 0;
}

.gma-api-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.gma-api-copy-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 10px;
    align-items: center;
}

.gma-api-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.gma-api-test-result {
    margin-top: 14px;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 6px;
    color: #dbeafe;
    background: rgba(15, 23, 42, 0.42);
    font-size: 0.82rem;
    overflow-wrap: anywhere;
}

.gma-api-test-result.success {
    border-color: rgba(34, 197, 94, 0.36);
    color: #bbf7d0;
}

.gma-api-test-result.error {
    border-color: rgba(248, 113, 113, 0.42);
    color: #fecaca;
}

.gma-api-type-list {
    display: grid;
    gap: 8px;
}

.gma-api-type-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 10px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.24);
}

.gma-api-type-list span {
    color: #cbd5e1;
    font-size: 0.84rem;
}

.gma-api-type-list strong {
    color: #f8fafc;
}

.gma-api-table {
    overflow-x: auto;
}

.gma-api-table td,
.gma-api-table th {
    max-width: 280px;
    overflow-wrap: anywhere;
    vertical-align: top;
}

    .login-page .login-logo-strip {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 72px;
        margin: -4px -26px 14px;
        padding: 10px 26px;
        background: #050505;
    }

    .login-page .login-brand img {
        max-width: 200px;
        display: block;
    }

    .login-page .login-brand p {
        color: #f8fafc;
        font-size: 16px;
        font-weight: 700;
        line-height: 1.3;
        margin: 0;
        letter-spacing: .2px;
    }

.login-title {
    margin-bottom: 26px;
}

    .login-title span {
        display: block;
        color: #cbd5e1;
        font-size: 15px;
        font-weight: 600;
    }

.login-input {
    margin-bottom: 14px;
}

.login-form {
    margin: 0;
}

.login-alert {
    margin-bottom: 14px;
}

.login-native-field {
    display: block;
    margin-bottom: 14px;
}

.login-native-field span {
    display: block;
    color: #cbd5e1;
    font-size: 12px;
    margin-bottom: 6px;
}

.login-native-field input {
    width: 100%;
    height: 42px;
    color: #f8fafc;
    background: rgba(17, 24, 39, 0.28);
    border: 1px solid rgba(255,255,255,0.28);
    border-radius: 4px;
    outline: none;
    padding: 0 12px;
}

.login-native-field input:focus {
    border-color: #7c6cff;
    box-shadow: 0 0 0 1px rgba(124,108,255,0.4);
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 6px 0 22px;
}

.forgot-link {
    color: #93c5fd !important;
    font-size: 13px;
    text-decoration: none;
}

.login-button {
    height: 48px;
    border-radius: 14px;
    font-weight: 700;
    letter-spacing: .8px;
    background: linear-gradient(90deg, #2563eb, #1d4ed8) !important;
    box-shadow: 0 12px 28px rgba(37,99,235,0.35);
}

.login-page-primary {
    justify-content: center;
    padding: clamp(20px, 4vh, 48px) 24px;
    background:
        linear-gradient(180deg, rgba(2, 10, 27, 0.05), rgba(2, 8, 20, 0.18)),
        url('images/login-ginoma-city-v2.png') center center / cover no-repeat;
}

.login-card-primary {
    width: clamp(370px, 25vw, 410px);
    padding: 28px 30px 30px;
    border: 1px solid rgba(147, 197, 253, 0.48);
    border-radius: 14px;
    background:
        radial-gradient(circle at 50% 0%, rgba(30, 64, 175, 0.13), transparent 34%),
        linear-gradient(180deg, rgba(6, 20, 43, 0.94), rgba(3, 14, 31, 0.96)) !important;
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.55),
        0 0 0 3px rgba(30, 64, 175, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -1px 0 rgba(59, 130, 246, 0.22);
    backdrop-filter: blur(15px);
}

.login-card-primary::after {
    position: absolute;
    right: 23%;
    bottom: -2px;
    left: 23%;
    height: 3px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.95), rgba(37, 99, 235, 0));
    box-shadow: 0 0 18px rgba(59, 130, 246, 0.82);
    content: '';
    pointer-events: none;
}

.login-page-primary .login-brand {
    margin-bottom: 28px;
}

.login-page-primary .login-logo-strip {
    min-height: 0;
    margin: 0 0 8px;
    padding: 0;
    background: transparent;
}

.login-page-primary .login-brand img {
    width: min(250px, 78%);
    max-width: none;
    border-radius: 4px;
    mix-blend-mode: screen;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.32));
}

.login-page-primary .login-brand p {
    color: #f8fafc;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0;
}

.login-page-primary .login-brand p span {
    color: #d6a756;
}

.login-card-primary .login-native-field {
    margin-bottom: 17px;
}

.login-card-primary .login-native-field > span {
    margin-bottom: 8px;
    color: #f8fafc;
    font-size: 14px;
    font-weight: 600;
}

.login-input-shell {
    position: relative;
    display: flex;
    align-items: center;
}

.login-input-shell > .mud-icon-root {
    position: absolute;
    z-index: 1;
    left: 13px;
    width: 21px;
    height: 21px;
    color: #8391a7;
    pointer-events: none;
}

.login-card-primary .login-input-shell input {
    height: 50px;
    padding: 0 44px;
    border-color: rgba(148, 163, 184, 0.48);
    border-radius: 6px;
    color: #f8fafc;
    background: rgba(8, 20, 40, 0.72);
}

.login-card-primary .login-input-shell input:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.18);
}

.login-card-primary .login-input-shell input:-webkit-autofill,
.login-card-primary .login-input-shell input:-webkit-autofill:hover,
.login-card-primary .login-input-shell input:-webkit-autofill:focus {
    -webkit-text-fill-color: #f8fafc;
    caret-color: #f8fafc;
    box-shadow: 0 0 0 1000px #0a1930 inset;
    transition: background-color 9999s ease-out;
}

.login-password-toggle {
    position: absolute;
    z-index: 2;
    right: 8px;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    padding: 0;
    border: 0;
    color: #93a4ba;
    background: transparent;
    cursor: pointer;
}

.login-password-toggle:hover,
.login-password-toggle:focus-visible,
.login-password-toggle.is-showing {
    color: #60a5fa;
}

.login-password-toggle .mud-icon-root {
    width: 21px;
    height: 21px;
}

.login-card-primary .login-options {
    margin: 3px 0 22px;
}

.login-card-primary .login-remember input {
    accent-color: #2563eb;
}

.login-card-primary .forgot-link {
    color: #3b82f6 !important;
}

.login-card-primary .login-button {
    height: 46px;
    border: 1px solid rgba(96, 165, 250, 0.72);
    border-radius: 7px;
    color: #eff6ff;
    background: linear-gradient(135deg, rgba(13, 35, 68, 0.98), rgba(15, 54, 106, 0.98)) !important;
    box-shadow:
        0 8px 22px rgba(2, 8, 23, 0.44),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.login-card-primary .login-button:hover,
.login-card-primary .login-button:focus-visible {
    border-color: #93c5fd;
    background: linear-gradient(135deg, #17447f, #175fc0) !important;
    box-shadow:
        0 10px 26px rgba(20, 90, 190, 0.34),
        0 0 0 3px rgba(59, 130, 246, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transform: none;
}

.login-card-primary .auth-submit-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-card-primary .auth-submit-label .mud-icon-root {
    width: 18px;
    height: 18px;
    color: #d6a756;
}

.auth-submit-button {
    position: relative;
}

.auth-submit-wait {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.auth-wait-form.is-submitting .auth-submit-label {
    display: none;
}

.auth-wait-form.is-submitting .auth-submit-wait {
    display: inline-flex;
}

.auth-wait-form.is-submitting .auth-submit-button {
    opacity: 0.92;
    cursor: wait;
}

.auth-wait-form.is-submitting .auth-action-disabled {
    pointer-events: none;
    opacity: 0.72;
}

.auth-is-blocked {
    cursor: wait;
}

.auth-blocking-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    background: rgba(3, 7, 18, 0.62);
    backdrop-filter: blur(2px);
    pointer-events: all;
}

.auth-blocking-box {
    min-width: 260px;
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 24px 28px;
    color: #f8fafc;
    background: rgba(17, 24, 39, 0.96);
    border: 1px solid rgba(124, 108, 255, 0.55);
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.auth-blocking-box strong {
    font-size: 18px;
    font-weight: 700;
}

.auth-blocking-box small {
    color: #cbd5e1;
    font-size: 13px;
}

.auth-spinner {
    width: 17px;
    height: 17px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    display: inline-block;
    animation: auth-spin 0.75s linear infinite;
}

.ginoma-help-page {
    min-height: calc(100vh - 64px);
    padding: 10px 14px;
    color: #f8fafc;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.34), rgba(15, 23, 42, 0)),
        #303039;
}

.help-hero {
    display: grid;
    grid-template-columns: auto minmax(360px, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 6px 10px;
    border: 1px solid rgba(96, 165, 250, 0.24);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(8, 21, 37, 0.96), rgba(17, 24, 39, 0.92));
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.help-pdf-page {
    position: fixed;
    inset: 0;
    z-index: 2400;
    overflow: auto;
    min-height: 100vh;
    padding: 16px 18px;
    background: #f4f7fb;
    color: #111827;
}

.help-pdf-toolbar {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
    padding: 14px 18px;
    border: 1px solid #d7e1ec;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.help-pdf-toolbar h1 {
    margin: 8px 0 4px;
    color: #0f172a;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0;
}

.help-pdf-toolbar p {
    margin: 0;
    color: #475569;
    font-size: 13px;
}

.help-pdf-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.help-pdf-content {
    display: grid;
    gap: 18px;
}

.help-pdf-module {
    padding: 18px;
    border: 1px solid #d7e1ec;
    border-radius: 8px;
    background: #ffffff;
}

.help-pdf-module-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid #dbe4ee;
    color: #0f172a;
}

.help-pdf-module-title .mud-icon-root {
    color: #2563eb;
}

.help-pdf-module-title h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0;
}

.help-pdf-module-title span {
    margin-left: auto;
    color: #64748b;
    font-size: 12px;
}

.help-pdf-article {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #edf2f7;
    break-inside: avoid;
}

.help-pdf-article:first-of-type {
    border-top: 0;
}

.help-pdf-page .help-reader-title {
    border-bottom-color: #dbe4ee;
}

.help-pdf-page .help-reader-title span {
    color: #2563eb;
}

.help-pdf-page .help-reader-title h2 {
    color: #0f172a;
}

.help-pdf-page .help-reader-title p,
.help-pdf-page .help-step p,
.help-pdf-page .help-table td {
    color: #334155;
}

.help-pdf-page .help-reader-title > .mud-icon-root,
.help-pdf-page .help-step-icon {
    color: #2563eb;
    border-color: #bfdbfe;
    background: #eff6ff;
}

.help-pdf-page .help-step {
    border-color: #dbe4ee;
    background: #f8fafc;
}

.help-pdf-page .help-step h3,
.help-pdf-page .help-table td:first-child {
    color: #0f172a;
}

.help-pdf-page .help-table-wrap {
    border-color: #dbe4ee;
}

.help-pdf-page .help-table {
    background: #ffffff;
}

.help-pdf-page .help-table th {
    color: #0f172a;
    background: #e8eef5;
}

.help-pdf-page .help-table td {
    border-top-color: #dbe4ee;
}

.help-pdf-page .help-callout {
    color: #713f12;
    border-color: #facc15;
    background: #fef9c3;
}

.help-kicker {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 0;
    padding: 3px 9px;
    border: 1px solid rgba(56, 189, 248, 0.45);
    border-radius: 999px;
    color: #7dd3fc;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .4px;
    text-transform: uppercase;
}

.help-search {
    align-self: center;
    width: 100%;
}

.help-search-field .mud-input-control-input-container {
    min-height: 42px;
}

.help-search-field .mud-input {
    min-height: 42px;
    color: #f8fafc;
    background: rgba(15, 23, 42, 0.72);
}

.help-menu-tabs {
    display: flex;
    gap: 5px;
    margin: 8px 0 6px;
    overflow-x: auto;
    padding-bottom: 3px;
}

.help-menu-tabs button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 9px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 6px;
    color: #cbd5e1;
    background: #25262f;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.help-menu-tabs button.active,
.help-menu-tabs button:hover {
    color: #ffffff;
    border-color: rgba(56, 189, 248, 0.58);
    background: #0f314b;
}

.help-module-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 10px;
    overflow: visible;
    padding-bottom: 0;
}

.help-sub-tabs {
    padding: 8px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 8px;
    background: rgba(32, 33, 42, 0.62);
}

.help-module-strip button {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 6px;
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 6px;
    color: #cbd5e1;
    background: #25262f;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.help-module-strip button.active,
.help-module-strip button:hover {
    color: #ffffff;
    border-color: rgba(96, 165, 250, 0.72);
    background: #173452;
}

.gio-manobra-chart-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.gio-manobra-kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gio-manobra-page .mo-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    padding: 24px;
    background: rgba(2, 6, 23, .88);
    backdrop-filter: blur(2px);
}

.gio-manobra-page .mo-modal {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: visible;
    margin: 0;
    border: 1px solid rgba(71, 85, 105, .78);
    border-radius: 8px;
    background: #1f232a;
    box-shadow: 0 24px 72px rgba(0, 0, 0, .56);
    color: #f8fafc;
}

.gio-manobra-page .mo-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 64px;
    padding: 12px 18px;
    background: #1f2530;
    border-bottom: 1px solid rgba(71, 85, 105, .72);
}

.gio-manobra-page .mo-modal-title {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.gio-manobra-page .mo-modal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 1px solid rgba(96, 165, 250, .42);
    border-radius: 8px;
    background: rgba(30, 64, 175, .28);
    color: #bfdbfe;
}

.gio-manobra-modal-heading {
    display: grid;
    min-width: 0;
}

.gio-manobra-modal-heading span {
    color: #7dd3fc;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.gio-manobra-modal-heading strong {
    color: #ffffff;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.15;
}

.gio-manobra-page .mo-modal-title small {
    display: block;
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.gio-manobra-page .mo-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    padding: 18px;
    background: #1f232a;
}

.gio-manobra-page .mo-modal-footer {
    position: sticky;
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    flex-shrink: 0;
    padding: 12px 18px;
    background: #20242b;
    border-top: 1px solid rgba(71, 85, 105, .72);
}

.gio-manobra-modal {
    width: min(920px, calc(100vw - 48px));
    max-height: calc(100vh - 48px);
}

.gio-manobra-etapas-modal {
    width: min(1180px, calc(100vw - 48px));
    max-height: calc(100vh - 48px);
}

.gio-manobra-tipo-modal {
    width: min(720px, calc(100vw - 48px));
    max-height: calc(100vh - 48px);
}

.gio-manobra-etapas-modal-body,
.gio-manobra-tipo-modal-body {
    display: grid;
    gap: 12px;
}

.gio-manobra-form-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

.gio-manobra-modal-tabs {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    min-height: 0;
}

.gio-manobra-modal-tabs .mud-tabs-toolbar {
    position: relative;
    z-index: 3;
    flex-shrink: 0;
    min-height: 44px;
    padding: 0 0 12px;
    background: #1f232a;
    border-bottom: 1px solid rgba(71, 85, 105, .54);
}

.gio-manobra-modal-tabs .mud-tab {
    min-height: 38px !important;
    padding: 0 18px !important;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 8px 8px 0 0;
    background: rgba(15, 23, 42, .28);
    color: #cbd5e1 !important;
    font-weight: 800;
}

.gio-manobra-modal-tabs .mud-tab.mud-tab-active {
    border-color: rgba(139, 124, 246, .76);
    background: rgba(124, 108, 255, .22);
    color: #ffffff !important;
}

.gio-manobra-modal-tabs .mud-tabs-panels {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-top: 16px;
}

.gio-manobra-form-panel {
    min-height: 500px;
    padding: 22px 18px 18px;
    background: #20242b !important;
    border: 1px solid rgba(71, 85, 105, .64);
    border-radius: 8px;
}

.gio-manobra-etapas-panel {
    display: flex;
    flex-direction: column;
}

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

.gio-manobra-form-grid.compact {
    gap: 14px;
}

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

.gio-manobra-responsaveis-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.gio-native-select-field {
    position: relative;
    display: grid;
    min-width: 0;
}

.gio-native-select-field label {
    position: absolute;
    top: -7px;
    left: 12px;
    z-index: 1;
    padding: 0 6px;
    color: #b7c7e6;
    background: #20242b;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.gio-native-select-field select {
    width: 100%;
    height: 38px;
    padding: 0 38px 0 14px;
    border: 1px solid rgba(148, 163, 184, .48);
    border-radius: 4px;
    outline: none;
    background: #202329;
    color: #f8fafc;
    font: inherit;
    font-size: 13px;
    appearance: none;
    cursor: pointer;
}

.gio-native-select-field::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #94a3b8;
    transform: translateY(-35%);
    pointer-events: none;
}

.gio-native-select-field select:focus {
    border-color: #8b7cf6;
    box-shadow: 0 0 0 1px rgba(139, 124, 246, .72);
}

.gio-native-select-field select:disabled {
    cursor: not-allowed;
    opacity: .58;
}

.gio-native-select-field select option {
    background: #202329;
    color: #f8fafc;
}

.gio-fieldset {
    position: relative;
    margin: 16px 0 18px;
    padding: 18px 14px 10px;
    border: 1px solid rgba(148, 163, 184, .48);
    border-radius: 4px;
    background: rgba(15, 23, 42, .12);
}

.gio-fieldset > span {
    position: absolute;
    top: -7px;
    left: 12px;
    padding: 0 6px;
    color: #b7c7e6;
    background: #20242b;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.gio-manobra-type-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 14px;
    margin: 0;
}

.gio-manobra-etapas {
    display: grid;
    gap: 10px;
    margin: 12px 0;
}

.gio-manobra-etapas-panel .gio-manobra-step-counter {
    display: none;
}

.gio-manobra-tab-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.gio-manobra-tab-header h6 {
    margin: 0;
}

.gio-manobra-empty-steps {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 8px;
    min-height: 310px;
    padding: 34px 18px;
    border: 1px dashed rgba(148, 163, 184, .34);
    border-radius: 8px;
    background: rgba(15, 23, 42, .22);
    color: #cbd5e1;
    text-align: center;
}

.gio-manobra-empty-steps svg {
    color: #93c5fd;
    font-size: 32px;
}

.gio-manobra-empty-steps strong {
    color: #f8fafc;
    font-size: 15px;
}

.gio-manobra-empty-steps.compact {
    min-height: 120px;
    padding: 22px 16px;
}

.gio-manobra-inline-action {
    display: flex;
    align-items: end;
}

.gio-manobra-list-box {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.gio-manobra-list-row {
    display: grid;
    grid-template-columns: minmax(90px, .7fr) minmax(140px, 1fr) minmax(120px, 1fr) minmax(180px, 1.4fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(148, 163, 184, .25);
    border-radius: 8px;
    background: rgba(15, 23, 42, .22);
}

.gio-manobra-list-row.two-cols {
    grid-template-columns: 1fr auto;
}

.gio-manobra-team-add {
    grid-template-columns: minmax(240px, 1fr) auto;
}

.gio-manobra-etapa-row {
    display: grid;
    grid-template-columns: 76px 140px 160px minmax(260px, 1fr) 112px 36px;
    gap: 8px;
    align-items: start;
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 8px;
    background: rgba(15, 23, 42, .28);
}

.gio-manobra-steps-summary {
    display: grid;
    align-content: start;
    gap: 12px;
}

.gio-manobra-step-counter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 8px;
    background: rgba(15, 23, 42, .34);
}

.gio-manobra-step-counter span {
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 700;
}

.gio-manobra-step-counter strong {
    color: #f8fafc;
    font-size: 28px;
    line-height: 1;
}

.gio-manobra-step-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.gio-manobra-apoio-editor {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(300px, 1.4fr) 120px auto auto;
    gap: 10px;
    align-items: center;
    margin-top: 14px;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 8px;
    background: rgba(15, 23, 42, .32);
}

.gio-manobra-page .gio-manobra-grid .grid-toolbar {
    align-items: center;
    gap: 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
    margin-bottom: 10px;
}

.gio-manobra-page .gio-manobra-grid .grid-toolbar-left {
    display: grid;
    grid-template-columns: 250px 310px 332px;
    align-items: center;
    justify-content: start;
    flex: 1 1 auto;
    max-width: none;
    gap: 8px;
    width: 100%;
}

.gio-manobra-page .gio-manobra-grid .grid-global-search {
    grid-column: 2;
    grid-row: 1;
}

.gio-manobra-page .gio-manobra-grid .grid-group-dropzone {
    flex: 0 0 250px;
    width: 250px;
    max-width: 250px;
}

.gio-manobra-page .gio-manobra-grid .grid-toolbar-left-actions {
    grid-column: 3;
    grid-row: 1;
    height: 36px;
    align-items: center;
    width: 332px;
    min-width: 332px;
}

.gio-manobra-page .gio-manobra-grid .grid-global-search {
    flex: 0 1 310px;
    width: 310px;
    min-width: 310px;
    max-width: 310px;
}

.gio-manobra-page .gio-manobra-grid .grid-toolbar-actions {
    flex: 0 0 auto;
    justify-self: end;
}

.gio-manobra-page .gio-manobra-grid .mud-table-body .mud-table-row {
    min-height: 48px;
}

.gio-manobra-page .gio-manobra-grid .mud-table-body .grid-cell-center {
    height: 48px;
}

.gio-manobra-page .gio-manobra-grid .mud-table-body .grid-cell-center .grid-cell-text-plain,
.gio-manobra-page .gio-manobra-grid .mud-table-body .grid-cell-center .grid-cell-text-shell {
    min-height: 38px;
    line-height: 1.25;
}

.gio-manobra-support-tabs {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.18);
    overflow: hidden;
}

.gio-manobra-support-tabs > .mud-tabs-toolbar {
    background: #35343d;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.gio-manobra-support-tabs > .mud-tabs-panels {
    background: transparent;
    padding: 14px;
}

.gio-manobra-support-tabs .gio-pv-panel {
    margin: 0;
}

@media (max-width: 1320px) {
    .gio-manobra-page .gio-manobra-grid .grid-toolbar {
        grid-template-columns: 1fr;
    }

    .gio-manobra-page .gio-manobra-grid .grid-toolbar-left {
        grid-template-columns: 250px minmax(240px, 310px) 332px;
    }

    .gio-manobra-page .gio-manobra-grid .grid-toolbar-actions {
        justify-self: end;
    }
}

@media (max-width: 980px) {
    .gio-manobra-page .gio-manobra-grid .grid-toolbar-left {
        grid-template-columns: 1fr;
    }

    .gio-manobra-page .gio-manobra-grid .grid-group-dropzone,
    .gio-manobra-page .gio-manobra-grid .grid-toolbar-left-actions,
    .gio-manobra-page .gio-manobra-grid .grid-global-search {
        grid-column: auto;
        grid-row: auto;
        width: 100%;
        min-width: 0;
        max-width: none;
    }
}

.help-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.help-index,
.help-reader,
.help-ask {
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 8px;
    background: #20212a;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18);
}

.help-index {
    position: sticky;
    top: 72px;
    max-height: calc(100vh - 86px);
    overflow: auto;
    padding: 8px;
}

.help-index-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 7px 9px;
    color: #e2e8f0;
}

.help-index-head span {
    margin-left: auto;
    min-width: 28px;
    padding: 2px 7px;
    border-radius: 999px;
    color: #93c5fd;
    background: rgba(37, 99, 235, 0.18);
    font-size: 12px;
    text-align: center;
}

.help-index button {
    width: 100%;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 7px;
    align-items: center;
    margin-bottom: 5px;
    padding: 8px;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #cbd5e1;
    background: transparent;
    text-align: left;
}

.help-index button span {
    overflow: hidden;
    font-size: 12px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.help-index button em {
    grid-column: 2;
    color: #8ca3bd;
    font-size: 11px;
    font-style: normal;
}

.help-index button.active,
.help-index button:hover {
    border-color: rgba(124, 108, 255, 0.48);
    color: #ffffff;
    background: rgba(124, 108, 255, 0.14);
}

.help-reader {
    min-height: 560px;
    padding: 18px;
}

.help-reader-title {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px;
    gap: 12px;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.help-reader-title span {
    color: #7dd3fc;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.help-reader-title h2 {
    margin: 2px 0 4px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0;
}

.help-reader-title p {
    margin: 0;
    color: #cbd5e1;
    font-size: 13px;
}

.help-reader-title > .mud-icon-root {
    width: 46px;
    height: 46px;
    padding: 11px;
    border: 1px solid rgba(96, 165, 250, 0.38);
    border-radius: 8px;
    color: #93c5fd;
    background: rgba(37, 99, 235, 0.16);
}

.help-steps {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.help-step {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 8px;
    background: #25262f;
}

.help-step-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #93c5fd;
    background: rgba(37, 99, 235, 0.17);
}

.help-step h3 {
    margin: 0 0 3px;
    color: #f8fafc;
    font-size: 14px;
    font-weight: 800;
}

.help-step p {
    margin: 0;
    color: #cbd5e1;
    font-size: 12px;
    line-height: 1.38;
}

.help-table-wrap {
    margin-top: 12px;
    overflow: auto;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 8px;
}

.help-table {
    width: 100%;
    border-collapse: collapse;
    background: #20212a;
}

.help-table th {
    padding: 8px 10px;
    color: #dbeafe;
    background: #172033;
    font-size: 12px;
    text-align: left;
}

.help-table td {
    padding: 8px 10px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    color: #cbd5e1;
    font-size: 12px;
    vertical-align: middle;
}

.help-table td:first-child {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #f8fafc;
}

.help-table td:first-child .mud-icon-root {
    color: #93c5fd;
}

.help-callouts {
    display: grid;
    gap: 7px;
    margin-top: 12px;
}

.help-callout {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 9px 10px;
    border: 1px solid rgba(250, 204, 21, 0.24);
    border-radius: 8px;
    color: #fde68a;
    background: rgba(120, 83, 18, 0.22);
    font-size: 13px;
}

.help-empty {
    min-height: 420px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    color: #cbd5e1;
    text-align: center;
}

.help-empty .mud-icon-root {
    width: 54px;
    height: 54px;
    color: #94a3b8;
}

.help-ask {
    position: fixed;
    top: 76px;
    right: 18px;
    z-index: 1400;
    display: grid;
    grid-template-rows: auto minmax(260px, 1fr) auto;
    width: min(420px, calc(100vw - 32px));
    max-height: calc(100vh - 96px);
    min-height: min(560px, calc(100vh - 96px));
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateX(calc(100% + 28px));
    transition: opacity .16s ease, transform .16s ease;
}

.help-ask.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.help-ask-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1390;
    border: 0;
    background: rgba(2, 6, 23, 0.38);
    cursor: default;
}

.help-ask-toggle {
    min-height: 36px;
    white-space: nowrap;
}

.help-ask-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.help-ask-title span {
    display: block;
    color: #7dd3fc;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .4px;
    text-transform: uppercase;
}

.help-ask-title strong {
    display: block;
    margin-top: 3px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
}

.help-ask-title-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.help-ask-title-actions > .mud-icon-root {
    width: 42px;
    height: 42px;
    padding: 10px;
    border-radius: 8px;
    color: #67e8f9;
    background: rgba(8, 145, 178, 0.2);
}

.help-chat {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: auto;
    padding: 12px;
}

.help-chat-message {
    display: grid;
    gap: 8px;
    max-width: 100%;
    padding: 10px 11px;
    border-radius: 8px;
    color: #dbeafe;
    background: #25262f;
    font-size: 12px;
    line-height: 1.45;
}

.help-chat-message.user {
    justify-self: end;
    max-width: 86%;
    margin-left: 0;
    color: #ffffff;
    background: #12385d;
    font-weight: 800;
}

.help-chat-message.assistant {
    margin-right: 0;
    border: 1px solid rgba(56, 189, 248, 0.16);
}

.help-chat-links {
    display: grid;
    gap: 6px;
    padding-top: 2px;
}

.help-chat-links > strong {
    color: #7dd3fc;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .3px;
    text-transform: uppercase;
}

.help-chat-links button {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 4px 8px;
    align-items: center;
    padding: 7px 8px;
    border: 1px solid rgba(96, 165, 250, 0.22);
    border-radius: 6px;
    color: #e0f2fe;
    background: rgba(15, 23, 42, 0.42);
    text-align: left;
}

.help-chat-links button:hover {
    border-color: rgba(125, 211, 252, 0.62);
    background: rgba(14, 116, 144, 0.22);
}

.help-chat-links .mud-icon-root {
    width: 20px;
    height: 20px;
    color: #93c5fd;
}

.help-chat-links span {
    overflow: hidden;
    font-size: 12px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.help-chat-links em {
    grid-column: 2;
    overflow: hidden;
    color: #a7b8cc;
    font-size: 10px;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.help-screen-links {
    display: grid;
    gap: 6px;
    padding-top: 2px;
}

.help-screen-links > strong {
    color: #86efac;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .3px;
    text-transform: uppercase;
}

.help-screen-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    padding: 7px 10px;
    border: 1px solid rgba(74, 222, 128, 0.28);
    border-radius: 6px;
    color: #dcfce7;
    background: rgba(22, 101, 52, 0.22);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.help-screen-links a:hover {
    border-color: rgba(134, 239, 172, 0.62);
    background: rgba(22, 101, 52, 0.34);
}

.help-screen-links .mud-icon-root {
    width: 18px;
    height: 18px;
    color: #86efac;
}

.help-screen-links span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.help-ask-form {
    display: grid;
    gap: 10px;
    padding: 12px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(15, 23, 42, 0.24);
}

.help-ask-field .mud-input {
    color: #f8fafc;
    background: rgba(15, 23, 42, 0.72);
}

.help-ask-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

@media (max-width: 980px) {
    .ginoma-help-page {
        padding: 14px;
    }

    .help-hero,
    .help-shell {
        grid-template-columns: 1fr;
    }

    .help-index {
        position: static;
        max-height: none;
    }

    .help-ask {
        position: static;
        max-height: none;
        min-height: 460px;
    }
}

@media print {
    .mud-layout,
    .mud-main-content,
    .ginoma-help-page {
        background: #ffffff !important;
    }

    .help-pdf-toolbar {
        position: static;
        box-shadow: none;
    }

    .help-pdf-actions {
        display: none !important;
    }

    .help-pdf-module {
        break-before: page;
        box-shadow: none;
    }

    .help-pdf-module:first-child {
        break-before: auto;
    }

    .help-pdf-article {
        break-inside: avoid;
    }
}

@keyframes auth-spin {
    to {
        transform: rotate(360deg);
    }
}

.login-footer {
    margin-top: 22px;
    text-align: center;
    color: #94a3b8;
    font-size: 11px;
}

.topbar-session {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    max-width: 280px;
    height: 40px;
    margin-right: 12px;
    padding: 6px 12px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.28);
    color: #e5e7eb;
}

.topbar-session .mud-icon-root {
    color: #93c5fd;
    flex: 0 0 auto;
}

.topbar-session img {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(147, 197, 253, 0.42);
}

.topbar-session div {
    min-width: 0;
    display: grid;
    line-height: 1.1;
}

.topbar-session strong {
    display: block;
    max-width: 210px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #f8fafc;
    font-size: 13px;
    font-weight: 500;
}

.topbar-session span {
    display: block;
    margin-top: 3px;
    color: #bfdbfe;
    font-size: 11px;
    font-weight: 700;
}

.topbar-local-tooltip {
    position: relative;
    display: inline-flex;
}

.topbar-local-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    z-index: 10000;
    width: max-content;
    max-width: 220px;
    padding: 5px 8px;
    border-radius: 4px;
    background: rgba(17, 24, 39, 0.96);
    color: #f8fafc;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -3px);
    transition: opacity 0.12s ease, transform 0.12s ease;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.32);
}

.topbar-local-tooltip:hover::after,
.topbar-local-tooltip:focus-within::after {
    opacity: 1;
    transform: translate(-50%, 0);
}

.topbar-manager-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-right: 10px;
    border: 1px solid rgba(125, 211, 252, 0.28);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.28);
    color: #93c5fd;
    cursor: pointer;
}

.topbar-manager-trigger .mud-icon-root {
    font-size: 22px;
}

.topbar-manager-trigger:hover {
    border-color: rgba(125, 211, 252, 0.48);
    background: rgba(14, 116, 144, 0.18);
    color: #bae6fd;
}

.topbar-alert-bell {
    color: #34d399 !important;
}

.topbar-alert-bell.danger {
    color: #ef4444 !important;
    animation: topbar-alert-pulse 1.8s ease-in-out infinite;
}

@keyframes topbar-alert-pulse {
    0%, 100% {
        opacity: 1;
        filter: drop-shadow(0 0 0 rgba(239, 68, 68, 0));
        transform: scale(1);
    }

    50% {
        opacity: 0.72;
        filter: drop-shadow(0 0 7px rgba(239, 68, 68, 0.55));
        transform: scale(1.05);
    }
}

.topbar-alert-bell.ok {
    color: #34d399 !important;
}

.ginoma-sidebar {
    height: 100vh !important;
    max-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

.ginoma-sidebar .logo-area {
    box-sizing: border-box;
    flex: 0 0 64px;
    height: 64px;
    min-height: 64px;
    padding-top: 7px;
    padding-bottom: 7px;
    border-top: 0;
}

.ginoma-sidebar .ginoma-menu {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
}

.ginoma-sidebar .ginoma-menu::-webkit-scrollbar {
    width: 8px;
}

.ginoma-sidebar .ginoma-menu::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(203, 213, 225, 0.42);
}

.ginoma-sidebar .ginoma-menu::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-pending-card {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    width: calc(100% - 24px);
    min-height: 86px;
    margin: 0 12px;
    padding: 14px 12px;
    overflow: hidden;
    border: 1px solid rgba(125, 211, 252, 0.24);
    border-radius: 8px;
    background:
        radial-gradient(circle at 16% 18%, rgba(56, 189, 248, 0.22), transparent 34%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.92));
    color: #eaf4ff;
    text-align: left;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: border-color 0.18s ease, background 0.18s ease;
}

.floating-user-pending-card {
    position: relative;
    flex: 0 0 auto;
    z-index: 1;
    width: 100%;
    min-height: 96px;
    margin: 0;
    padding: 14px 16px;
    grid-template-columns: 44px minmax(0, 1fr);
    align-content: center;
    border-radius: 0;
}

.floating-user-pending-card::before {
    content: "";
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    z-index: 0;
    border-top: 1px solid rgba(148, 163, 184, 0.10);
    background: #2b2b34;
    pointer-events: none;
}

.floating-user-pending-card.has-pending::before {
    animation: none;
}

.floating-user-pending-card::after,
.floating-user-pending-card .sidebar-pending-glow {
    z-index: 1;
}

.floating-user-pending-card .sidebar-pending-icon,
.floating-user-pending-card .sidebar-pending-content {
    position: relative;
    z-index: 2;
}

.floating-user-pending-card .sidebar-pending-icon {
    width: 44px;
    height: 44px;
}

.floating-user-pending-card .sidebar-pending-icon .mud-icon-root {
    font-size: 24px;
}

.floating-user-pending-card .sidebar-pending-content {
    gap: 5px;
}

.floating-user-pending-card .sidebar-pending-content strong {
    font-size: 13px;
}

.floating-user-pending-card .sidebar-pending-content span {
    font-size: 11.5px;
}

.floating-user-pending-card .sidebar-pending-content b {
    font-size: 16px;
}

.sidebar-pending-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.12) 45%, transparent 72%);
    transform: translateX(-110%);
    animation: sidebar-pending-sheen 5.5s ease-in-out infinite;
}

.sidebar-pending-card:hover {
    border-color: rgba(125, 211, 252, 0.52);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.sidebar-pending-card.has-pending {
    border-color: rgba(248, 113, 113, 0.46);
    background:
        radial-gradient(circle at 16% 18%, rgba(248, 113, 113, 0.22), transparent 34%),
        linear-gradient(135deg, rgba(25, 27, 42, 0.98), rgba(45, 34, 48, 0.94));
}

.sidebar-pending-card.is-clear .sidebar-pending-icon {
    color: #34d399;
    border-color: rgba(52, 211, 153, 0.34);
    background: rgba(6, 78, 59, 0.22);
}

.sidebar-pending-glow {
    position: absolute;
    right: -38px;
    bottom: -42px;
    width: 112px;
    height: 112px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.16);
    filter: blur(4px);
    animation: sidebar-pending-breathe 3.2s ease-in-out infinite;
}

.sidebar-pending-card.has-pending .sidebar-pending-glow {
    background: rgba(248, 113, 113, 0.18);
}

.floating-user-pending-card.has-pending::after {
    z-index: 1;
    opacity: 0;
    transform: none;
    background:
        radial-gradient(circle at 18% 50%, rgba(248, 113, 113, .34), transparent 46%),
        linear-gradient(90deg, rgba(239, 68, 68, .24), rgba(239, 68, 68, .08));
    animation: floating-pending-alert-flash .68s ease-in-out 4;
    will-change: opacity, box-shadow;
}

.floating-user-pending-card.has-pending .sidebar-pending-glow {
    opacity: .42;
    transform: scale(1);
    animation: floating-pending-alert-glow .68s ease-in-out 4;
    will-change: opacity, transform;
}

.sidebar-pending-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(248, 113, 113, 0.34);
    border-radius: 8px;
    background: rgba(127, 29, 29, 0.22);
    color: #fca5a5;
}

.sidebar-pending-icon .mud-icon-root {
    font-size: 21px;
}

.sidebar-pending-content {
    display: grid;
    min-width: 0;
    gap: 5px;
}

.sidebar-pending-content strong {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: #f8fafc;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-pending-content span {
    display: block;
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
}

.sidebar-pending-content b {
    color: #ffffff;
    font-size: 14px;
    font-weight: 950;
}

@keyframes sidebar-pending-breathe {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.12);
    }
}

@keyframes floating-pending-alert-flash {
    0%, 100% {
        opacity: 0;
        box-shadow: inset 0 0 0 rgba(239, 68, 68, 0);
    }

    45%, 55% {
        opacity: 1;
        box-shadow: inset 0 0 26px rgba(239, 68, 68, .34);
    }
}

@keyframes floating-pending-alert-glow {
    0%, 100% {
        opacity: .35;
        transform: scale(1);
    }

    45%, 55% {
        opacity: 1;
        transform: scale(1.28);
    }
}

@keyframes sidebar-pending-sheen {
    0%, 58% {
        transform: translateX(-110%);
    }

    78%, 100% {
        transform: translateX(110%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .floating-user-pending-card.has-pending::after,
    .floating-user-pending-card.has-pending .sidebar-pending-glow {
        animation: none;
    }
}

.constructor-page {
    padding: 14px 18px 28px;
}

.constructor-tabs > .mud-tabs-panels {
    padding: 0 !important;
    background: transparent !important;
}

.constructor-tabs .report-builder-page {
    padding: 12px 0 0;
}

.report-builder-page {
    padding: 14px 18px 28px;
}

.report-builder-header,
.report-preview-header,
.report-builder-panel-title,
.report-builder-form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.report-builder-header {
    min-height: 58px;
    margin: 0 0 12px;
    padding: 10px 16px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 8px;
    background: #1a1d24;
    color: #e5e7eb;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
}

.report-builder-header .mud-typography-h5 {
    color: #f8fafc;
    font-size: 1.12rem;
    font-weight: 400;
    line-height: 1.18;
    margin: 0;
}

.report-builder-header .mud-typography-body2 {
    color: #b6c2d1;
    font-size: 0.84rem;
    font-weight: 500;
    line-height: 1.25;
    margin: 2px 0 0;
}

.report-builder-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.report-builder-actions .mud-button-root {
    min-height: 34px;
    border-radius: 8px;
    box-shadow: none;
}

.report-builder-overview {
    display: grid;
    grid-template-columns: repeat(5, minmax(130px, 1fr));
    gap: 10px;
    margin: 0 0 12px;
}

.report-builder-overview > div {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 9px;
    min-height: 66px;
    padding: 11px 13px;
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.13), rgba(15, 23, 42, 0.04)),
        #151b26;
}

.report-builder-overview .mud-icon-root {
    grid-row: span 2;
    color: #7dd3fc;
}

.report-builder-overview span {
    color: #b9c7d9;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.report-builder-overview strong {
    color: #ffffff;
    font-size: 1.28rem;
    line-height: 1;
}

.report-builder-loading {
    display: flex;
    min-height: 280px;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.report-preview-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 0 4px;
}

.report-builder-layout {
    display: grid;
    grid-template-columns: minmax(220px, 280px) 1fr;
    gap: 14px;
    margin-top: 14px;
}

.report-builder-saved,
.report-builder-designer,
.report-preview {
    background: #171c25;
    border: 1px solid rgba(96, 165, 250, 0.18);
    border-radius: 8px;
    padding: 14px;
}

.saved-report-list {
    display: grid;
    gap: 8px;
    margin: 12px 0;
}

.saved-report-item {
    display: grid;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: #2d2d36;
    color: #f4f6fb;
    border-radius: 6px;
    padding: 10px 12px;
    text-align: left;
    cursor: pointer;
}

.saved-report-item.active {
    border-color: #7c6cff;
    background: #252b45;
}

.saved-report-item span,
.saved-report-item small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.saved-report-item span {
    font-weight: 700;
}

.saved-report-item small {
    color: #b9bdca;
    font-size: 0.72rem;
}

.report-sgm-tabs {
    margin-top: 12px;
}

.report-builder-filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 10px;
    margin-top: 12px;
    padding: 12px;
    border: 1px solid rgba(124, 108, 255, 0.22);
    border-radius: 8px;
    background: #191a20;
}

.report-zone-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 28px;
    margin-bottom: 8px;
    padding-bottom: 9px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.report-zone-title .mud-typography-subtitle2 {
    color: #f8fafc;
    font-size: 0.86rem;
}

.report-builder-zones {
    display: grid;
    grid-template-columns: repeat(5, minmax(170px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.report-zone {
    display: flex;
    flex-direction: column;
    min-height: 210px;
    max-height: 430px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 8px;
    background: #111722;
    padding: 12px;
    overflow: hidden;
}

.drop-zone {
    outline: 1px dashed rgba(124, 108, 255, 0.45);
    outline-offset: -5px;
}

.field-palette {
    display: grid;
    gap: 8px;
    margin-top: 10px;
    min-height: 0;
    overflow-y: auto;
    padding-right: 4px;
    overscroll-behavior: contain;
}

.report-zone-title + .field-palette {
    margin-top: 0;
}

.report-zone > .field-palette {
    flex: 1 1 auto;
}

.field-palette::-webkit-scrollbar {
    width: 8px;
}

.field-palette::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(125, 211, 252, 0.36);
}

.field-palette::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.28);
    border-radius: 999px;
}

.field-token,
.selected-field-token {
    display: flex;
    min-height: 36px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-radius: 6px;
    padding: 5px 6px 5px 10px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: #1f2937;
    color: #f4f6fb;
}

.field-token:hover,
.selected-field-token:hover {
    border-color: rgba(125, 211, 252, 0.42);
    background: #243244;
}

.field-token {
    cursor: grab;
    user-select: none;
    touch-action: none;
}

.empty-drop {
    margin-top: 10px;
    color: #b9bdca;
    font-size: 0.82rem;
}

.report-preview {
    margin-top: 14px;
}

.report-preview-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.report-table-wrap {
    overflow: auto;
    max-height: 540px;
    margin-top: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
}

.report-preview-table {
    width: 100%;
    min-width: 820px;
    border-collapse: collapse;
}

.report-preview-table th {
    position: sticky;
    top: 0;
    background: #0f1b2d;
    color: #ffffff;
    z-index: 1;
}

.report-preview-table th,
.report-preview-table td {
    padding: 9px 11px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
    vertical-align: top;
    color: #dbeafe;
}

.report-group-row td {
    background: #101827;
    color: #ffffff;
    font-weight: 700;
}

.selected-field-token {
    cursor: grab;
    user-select: none;
    touch-action: none;
}

.report-sort-token {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
}

.report-sort-token > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.report-sort-token .mud-button-root {
    min-width: 42px;
    padding-inline: 6px;
}

.report-zone.drag-over {
    border-color: #8b7dff;
    outline-color: #8b7dff;
    background: #202235;
}

.report-drag-ghost {
    position: fixed;
    z-index: 10000;
    pointer-events: none;
    opacity: 0.92;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
}

.report-dragging,
.report-dragging * {
    cursor: grabbing !important;
}

.executive-dashboard {
    color: #f8fafc;
    padding: 16px 18px 26px;
}

.executive-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 58px;
    padding: 10px 16px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 8px;
    background: #1a1d24;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
}

.executive-hero span,
.executive-panel-header span {
    color: #93c5fd;
    display: block;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none !important;
}

.executive-hero h1,
.executive-panel-header h2 {
    margin: 0;
    color: #ffffff;
    font-size: 1.12rem;
    font-weight: 400;
}

.executive-hero p {
    max-width: 760px;
    margin: 2px 0 0;
    color: #cbd5e1;
    font-size: 0.84rem;
    line-height: 1.25;
}

.executive-hero-status {
    min-width: 150px;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    padding-left: 22px;
}

.executive-hero-status strong {
    display: block;
    color: #ffffff;
    font-size: 2rem;
    line-height: 1;
}

.executive-hero-status span {
    margin-top: 6px;
    color: #cbd5e1;
    text-transform: none !important;
}

.executive-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 260px;
    color: #cbd5e1;
}

.executive-kpi-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.executive-kpi {
    display: block;
    min-height: 118px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 8px;
    background: #202127;
    color: #f8fafc;
    text-decoration: none;
}

.executive-kpi:hover {
    border-color: rgba(139, 124, 255, 0.55);
    background: #252733;
}

.executive-kpi div {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 28px;
}

.executive-kpi div span {
    color: #cbd5e1;
    font-size: 0.78rem;
    font-weight: 800;
}

.executive-kpi strong {
    display: block;
    margin-top: 12px;
    color: #ffffff;
    font-size: 1.8rem;
    line-height: 1;
}

.executive-kpi small {
    display: block;
    margin-top: 7px;
    color: #aeb6c6;
    font-size: 0.76rem;
}

.executive-kpi.danger .mud-icon-root,
.executive-alert.danger .executive-alert-icon {
    color: #f87171;
}

.executive-kpi.warning .mud-icon-root,
.executive-alert.warning .executive-alert-icon {
    color: #fbbf24;
}

.executive-kpi.success .mud-icon-root {
    color: #34d399;
}

.executive-kpi.info .mud-icon-root {
    color: #60a5fa;
}

.executive-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 14px;
    margin-top: 14px;
}

.executive-panel {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 8px;
    background: #202127;
    padding: 16px;
}

.executive-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.executive-panel-header strong {
    color: #cbd5e1;
    font-size: 0.84rem;
    font-weight: 800;
}

.executive-alert-list,
.executive-module-list {
    display: grid;
    gap: 9px;
}

.executive-alert {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 11px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 8px;
    background: #191a20;
    color: #f8fafc;
    text-decoration: none;
}

.executive-alert:hover,
.executive-module-list a:hover {
    border-color: rgba(139, 124, 255, 0.5);
    background: #252733;
}

.executive-alert-icon {
    display: flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
}

.executive-alert strong,
.executive-module-list strong {
    display: block;
    color: #ffffff;
    font-size: 0.88rem;
}

.executive-alert span,
.executive-module-list span {
    display: block;
    margin-top: 3px;
    color: #cbd5e1;
    font-size: 0.8rem;
}

.executive-alert small {
    display: block;
    margin-top: 5px;
    color: #94a3b8;
    font-size: 0.74rem;
}

.executive-alert em {
    border-radius: 999px;
    padding: 5px 9px;
    background: rgba(148, 163, 184, 0.14);
    color: #f8fafc;
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 800;
}

.executive-alert.danger em {
    background: rgba(220, 38, 38, 0.18);
    color: #fecaca;
}

.executive-alert.warning em {
    background: rgba(245, 158, 11, 0.18);
    color: #fde68a;
}

.executive-empty {
    display: grid;
    place-items: center;
    min-height: 210px;
    text-align: center;
    color: #cbd5e1;
}

.executive-empty .mud-icon-root {
    color: #34d399;
    font-size: 38px;
}

.executive-empty strong {
    margin-top: 8px;
    color: #ffffff;
}

.executive-empty span {
    max-width: 430px;
    margin-top: 6px;
    color: #aeb6c6;
}

.executive-module-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 8px;
    background: #191a20;
    color: #f8fafc;
    padding: 12px;
    text-decoration: none;
}

.executive-module-list b {
    color: #ffffff;
    font-size: 1.3rem;
}

@media (max-width: 1320px) {
    .executive-kpi-grid {
        grid-template-columns: repeat(3, minmax(180px, 1fr));
    }

    .executive-main-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .executive-hero,
    .executive-panel-header {
        align-items: stretch;
        flex-direction: column;
    }

    .executive-hero-status {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        padding: 14px 0 0;
    }

    .executive-kpi-grid {
        grid-template-columns: 1fr;
    }

    .executive-alert {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .executive-alert em {
        grid-column: 2;
        justify-self: start;
    }
}

.auth-card-wide {
    width: 430px;
}

.auth-link-row {
    margin-top: 18px;
    text-align: center;
}

.password-rules {
    border: 1px solid rgba(147, 197, 253, 0.28);
    background: rgba(37, 99, 235, 0.12);
    border-radius: 8px;
    color: #bfdbfe;
    font-size: 12px;
    line-height: 1.5;
    padding: 10px 12px;
    margin: 4px 0 18px;
}

.mo-public-page {
    justify-content: center;
}

.mo-public-card {
    width: min(880px, 100%);
}

.mo-public-loading {
    display: grid;
    justify-items: center;
    gap: 12px;
    margin: 18px 0 12px;
    color: #e2e8f0;
}

.mo-public-loading strong {
    font-size: 14px;
}

.mo-public-number-highlight {
    display: grid;
    justify-items: center;
    gap: 8px;
    margin: 18px 0 8px;
    padding: 16px 18px;
    border: 1px solid rgba(147, 197, 253, 0.26);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.16), rgba(15, 23, 42, 0.24));
    text-align: center;
}

.mo-public-number-highlight span {
    color: #93c5fd;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.mo-public-number-highlight strong {
    color: #f8fafc;
    font-size: 34px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .02em;
}

.mo-public-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.mo-public-summary div {
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.34);
}

.mo-public-summary span {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.mo-public-summary strong {
    color: #f8fafc;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    word-break: break-word;
}

.mo-public-actions {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.mo-public-revisao-field {
    margin: 0;
}

@media (max-width: 768px) {
    .report-builder-layout,
    .report-builder-zones {
        grid-template-columns: 1fr;
    }

    .report-builder-header,
    .report-builder-form-row {
        align-items: stretch;
        flex-direction: column;
    }

    .login-page {
        justify-content: center;
        padding: 24px;
    }

    .login-card {
        width: 100%;
        max-width: 420px;
    }

    .mo-public-card {
        max-width: 100%;
    }

    .mo-public-summary {
        grid-template-columns: 1fr;
    }

    .energy-lines {
        display: none;
    }

    .topbar-session {
        max-width: 190px;
        padding: 6px 9px;
    }

    .topbar-session strong {
        max-width: 130px;
    }
}

.adm-page {
    color: #e5e7eb;
    margin: 0;
    padding: 16px 18px 24px;
    box-sizing: border-box;
    max-width: 100%;
    overflow-x: hidden;
}

.adm-system-page {
    display: grid;
    gap: 14px;
}

.adm-system-header p {
    margin: 4px 0 0;
    color: #a7b2c4;
    font-size: 0.92rem;
}

.adm-system-module-grid {
    display: grid;
    grid-template-columns: repeat(14, minmax(0, 1fr));
    gap: 6px;
    padding: 9px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 8px;
    background: #242632;
}

.adm-system-module-grid button {
    min-width: 0;
    min-height: 44px;
    display: inline-flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
    padding: 7px 8px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 7px;
    color: #cbd5e1;
    background: rgba(24, 26, 34, 0.78);
    text-align: left;
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.adm-system-module-grid button:hover,
.adm-system-module-grid button.active {
    color: #ffffff;
    border-color: rgba(96, 165, 250, 0.68);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.34), rgba(124, 108, 255, 0.22));
    box-shadow: inset 0 -2px 0 #60a5fa;
}

.adm-system-module-grid .mud-icon-root {
    color: #d8e4f5;
    font-size: 1.08rem;
}

.adm-system-module-grid strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: inherit;
    font-size: 0.82rem;
    font-weight: 850;
}

.adm-system-content {
    display: grid;
    gap: 12px;
}

.adm-system-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 64px;
    gap: 10px;
    align-items: center;
    min-height: 0;
    padding: 8px 14px !important;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(139, 124, 255, 0.10)), rgba(31, 33, 37, 0.94) !important;
}

.adm-system-hero span,
.adm-system-title span,
.adm-system-placeholder span {
    color: #8bd3ff;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.adm-system-hero h2,
.adm-system-placeholder h2 {
    margin: 2px 0 4px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 650;
}

.adm-system-hero p,
.adm-system-placeholder p {
    max-width: 880px;
    margin: 0;
    color: #cbd5e1;
    font-size: 0.76rem;
    line-height: 1.25;
}

.adm-system-score {
    display: grid;
    place-items: center;
    gap: 2px;
    min-height: 48px;
    border: 1px solid rgba(96, 165, 250, 0.30);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.48);
    text-align: center;
}

.adm-system-score strong {
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 650;
    line-height: 1;
}

.adm-system-score span {
    color: #bfdbfe;
    font-size: 0.62rem;
    font-weight: 650;
    text-transform: none;
    letter-spacing: 0;
}

.adm-system-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr);
    gap: 14px;
}

.adm-system-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.adm-system-panel {
    display: grid;
    gap: 14px;
}

.adm-system-settings {
    display: grid;
    gap: 12px;
}

.adm-system-settings-row {
    display: grid;
    grid-template-columns: minmax(180px, 260px) minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.adm-system-settings-row .mud-typography-body2 {
    color: #cbd5e1;
    font-size: 0.82rem;
}

.adm-system-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.adm-system-title > .mud-icon-root {
    width: 42px;
    height: 42px;
    padding: 9px;
    border: 1px solid rgba(96, 165, 250, 0.28);
    border-radius: 8px;
    color: #93c5fd;
    background: rgba(37, 99, 235, 0.16);
}

.adm-system-title h3 {
    margin: 2px 0 0;
    color: #f8fafc;
    font-size: 1.08rem;
    font-weight: 850;
}

.adm-system-flow-panel {
    overflow: hidden;
}

.adm-system-process {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
    grid-template-rows: none;
    gap: 10px;
    overflow: hidden;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(14, 165, 233, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(37, 99, 235, 0.08), rgba(15, 23, 42, 0.18)),
        #191b23;
}

.adm-system-process-start,
.adm-system-process-end,
.adm-system-process-card {
    position: relative;
    z-index: 1;
    border: 1px solid rgba(96, 165, 250, 0.26);
    border-radius: 8px;
    background: rgba(18, 24, 36, 0.94);
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.18);
}

.adm-system-process-start {
    display: grid;
    justify-items: center;
    gap: 3px;
    min-height: 74px;
    padding: 9px;
    color: #dbeafe;
    text-align: center;
}

.adm-system-process-start .mud-icon-root,
.adm-system-process-end .mud-icon-root {
    color: #93c5fd;
}

.adm-system-process-start strong,
.adm-system-process-end strong {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 900;
}

.adm-system-process-start span,
.adm-system-process-end span {
    color: #9fb0c7;
    font-size: 0.76rem;
    font-weight: 800;
}

.adm-system-process-card {
    min-height: 86px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
    padding: 10px;
}

.adm-system-process-end {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 4px;
    min-height: 74px;
    padding: 10px 12px;
    border-color: rgba(34, 197, 94, 0.34);
    color: #dcfce7;
    background: rgba(20, 83, 45, 0.22);
    text-align: center;
}

.adm-system-process-icon {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #bfdbfe;
    background: rgba(37, 99, 235, 0.24);
}

.adm-system-process-card em {
    display: inline-flex;
    margin-bottom: 2px;
    color: #7dd3fc;
    font-size: 0.68rem;
    font-style: normal;
    font-weight: 950;
    letter-spacing: .04em;
}

.adm-system-process-card strong {
    display: block;
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 900;
    line-height: 1.2;
}

.adm-system-process-card p {
    margin: 3px 0 0;
    color: #aebbd0;
    font-size: 0.72rem;
    line-height: 1.28;
}

.adm-system-process-card::after {
    content: "";
    position: absolute;
    inset: 10px auto 10px 0;
    width: 3px;
    border-radius: 999px;
    background: rgba(125, 211, 252, 0.62);
}

.adm-system-swimlane {
    display: grid;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 8px;
    background: #191b23;
}

.adm-system-lane {
    display: grid;
    grid-template-columns: 172px minmax(0, 1fr);
    min-height: 142px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.adm-system-lane:first-child {
    border-top: 0;
}

.adm-system-lane-label {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 9px;
    padding: 18px 14px;
    border-right: 1px solid rgba(148, 163, 184, 0.14);
    text-align: center;
}

.adm-system-lane-label .mud-icon-root {
    width: 42px;
    height: 42px;
    padding: 9px;
    border-radius: 8px;
    color: #e0f2fe;
    background: rgba(14, 165, 233, 0.18);
}

.adm-system-lane-label span {
    color: #f8fafc;
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1.25;
    text-transform: uppercase;
}

.lane-foundation .adm-system-lane-label {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(15, 23, 42, 0.15));
}

.lane-operation .adm-system-lane-label {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.16), rgba(15, 23, 42, 0.12));
}

.lane-governance .adm-system-lane-label {
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.14), rgba(15, 23, 42, 0.12));
}

.adm-system-lane-flow {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 16px 22px;
}

.adm-system-flow-card,
.adm-system-decision,
.adm-system-end {
    position: relative;
    flex: 1 1 210px;
    max-width: 310px;
}

.adm-system-flow-card::after,
.adm-system-decision::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -23px;
    width: 18px;
    height: 2px;
    background: rgba(125, 211, 252, 0.52);
    transform: translateY(-50%);
}

.adm-system-flow-card::before,
.adm-system-decision::before {
    content: "";
    position: absolute;
    top: 50%;
    right: -25px;
    width: 8px;
    height: 8px;
    border-top: 2px solid rgba(125, 211, 252, 0.74);
    border-right: 2px solid rgba(125, 211, 252, 0.74);
    transform: translateY(-50%) rotate(45deg);
}

.adm-system-lane-flow > :last-child::before,
.adm-system-lane-flow > :last-child::after {
    display: none;
}

.adm-system-flow-card {
    min-height: 96px;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(96, 165, 250, 0.26);
    border-radius: 8px;
    background: rgba(18, 24, 36, 0.92);
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.18);
}

.adm-system-flow-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #bfdbfe;
    background: rgba(37, 99, 235, 0.24);
}

.adm-system-flow-card em {
    display: inline-flex;
    margin-bottom: 3px;
    color: #7dd3fc;
    font-size: 0.68rem;
    font-style: normal;
    font-weight: 950;
    letter-spacing: .04em;
}

.adm-system-flow-card strong {
    display: block;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 900;
    line-height: 1.2;
}

.adm-system-flow-card p {
    margin: 4px 0 0;
    color: #aebbd0;
    font-size: 0.78rem;
    line-height: 1.35;
}

.adm-system-decision {
    flex: 0 1 180px;
    display: grid;
    justify-items: center;
    gap: 10px;
}

.adm-system-decision-shape {
    width: 104px;
    height: 104px;
    display: grid;
    place-items: center;
    padding: 16px;
    border: 1px solid rgba(250, 204, 21, 0.52);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.34), rgba(245, 158, 11, 0.22));
    transform: rotate(45deg);
}

.adm-system-decision-shape span {
    color: #fff7ed;
    font-size: 0.72rem;
    font-weight: 950;
    line-height: 1.18;
    text-align: center;
    transform: rotate(-45deg);
}

.adm-system-decision-paths {
    display: grid;
    gap: 4px;
    width: 100%;
}

.adm-system-decision-paths span {
    padding: 4px 7px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 900;
    text-align: center;
}

.adm-system-decision-paths .no {
    color: #fecaca;
    background: rgba(239, 68, 68, 0.16);
}

.adm-system-decision-paths .yes {
    color: #bbf7d0;
    background: rgba(34, 197, 94, 0.16);
}

.adm-system-end {
    flex: 0 1 210px;
    min-height: 96px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 5px;
    padding: 12px;
    border: 1px solid rgba(34, 197, 94, 0.34);
    border-radius: 8px;
    color: #dcfce7;
    background: rgba(20, 83, 45, 0.22);
    text-align: center;
}

.adm-system-end .mud-icon-root {
    color: #86efac;
}

.adm-system-end strong {
    color: #ffffff;
    font-size: 0.95rem;
}

.adm-system-end span {
    color: #bbf7d0;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: none;
    letter-spacing: 0;
}

.adm-system-map-panel {
    overflow: hidden;
}

.adm-system-map {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 8px;
    background:
        radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.16), transparent 31%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.54), rgba(32, 33, 42, 0.72));
}

.adm-system-map-lines {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.adm-system-map-lines path {
    fill: none;
    stroke: rgba(125, 211, 252, 0.30);
    stroke-width: 2.4;
    stroke-linecap: round;
}

.adm-system-map-center,
.adm-system-node {
    position: absolute;
    z-index: 2;
    border: 1px solid rgba(96, 165, 250, 0.30);
    border-radius: 8px;
    background: rgba(18, 24, 36, 0.94);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.20);
}

.adm-system-map-center {
    left: 50%;
    top: 50%;
    width: 190px;
    min-height: 148px;
    display: grid;
    place-items: center;
    gap: 6px;
    padding: 18px;
    transform: translate(-50%, -50%);
    text-align: center;
}

.adm-system-map-center .mud-icon-root {
    width: 46px;
    height: 46px;
    padding: 10px;
    border-radius: 8px;
    color: #bfdbfe;
    background: rgba(37, 99, 235, 0.24);
}

.adm-system-map-center strong {
    color: #ffffff;
    font-size: 1.9rem;
    font-weight: 950;
    line-height: 1;
}

.adm-system-map-center span {
    color: #9fb0c7;
    font-size: 0.78rem;
    font-weight: 800;
}

.adm-system-node {
    width: min(292px, 30%);
    min-height: 104px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 12px;
}

.adm-system-node.node-01 {
    left: 4.4%;
    top: 40px;
}

.adm-system-node.node-02 {
    left: 4.4%;
    top: 208px;
}

.adm-system-node.node-03 {
    left: 4.4%;
    bottom: 40px;
}

.adm-system-node.node-04 {
    right: 4.4%;
    top: 40px;
}

.adm-system-node.node-05 {
    right: 4.4%;
    top: 208px;
}

.adm-system-node.node-06 {
    right: 4.4%;
    bottom: 40px;
}

.adm-system-node em {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #7c6cff);
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 950;
}

.adm-system-dependencies article,
.adm-system-integrations article {
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.26);
}

.adm-system-node strong,
.adm-system-dependencies strong,
.adm-system-integrations strong {
    color: #ffffff;
    font-size: 0.95rem;
}

.adm-system-node p,
.adm-system-dependencies p {
    margin: 4px 0 0;
    color: #aebbd0;
    font-size: 0.82rem;
    line-height: 1.38;
}

.adm-system-dependencies,
.adm-system-integrations {
    display: grid;
    gap: 10px;
}

.adm-system-dependencies article,
.adm-system-integrations article {
    display: grid;
    gap: 5px;
    padding: 12px;
}

.adm-system-dependencies span,
.adm-system-integrations span {
    color: #cbd5e1;
    font-size: 0.84rem;
}

.adm-system-alerts {
    display: grid;
    gap: 8px;
}

.adm-system-alerts span {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid rgba(250, 204, 21, 0.24);
    border-radius: 8px;
    color: #fde68a;
    background: rgba(113, 63, 18, 0.18);
    font-size: 0.86rem;
    font-weight: 700;
}

.adm-system-alerts span::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #facc15;
    box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.10);
}

.adm-system-placeholder {
    min-height: 360px;
    display: grid;
    grid-template-columns: 64px minmax(0, 720px);
    gap: 16px;
    align-content: center;
    justify-content: center;
    text-align: left;
}

.adm-system-placeholder > .mud-icon-root {
    width: 58px;
    height: 58px;
    padding: 13px;
    border: 1px solid rgba(139, 124, 255, 0.30);
    border-radius: 8px;
    color: #c4b5fd;
    background: rgba(124, 108, 255, 0.16);
}

@media (max-width: 1180px) {
    .adm-system-hero,
    .adm-system-grid,
    .adm-system-grid.compact {
        grid-template-columns: 1fr;
    }

    .adm-system-lane {
        grid-template-columns: 132px minmax(0, 1fr);
    }

    .adm-system-module-grid {
        grid-template-columns: repeat(14, minmax(0, 1fr));
        gap: 5px;
    }

    .adm-system-process {
        grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
        gap: 10px;
        padding: 12px;
    }

    .adm-system-score {
        min-height: auto;
        padding: 8px;
    }

    .adm-system-settings-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .adm-system-process {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        gap: 12px;
        padding: 12px;
    }

    .adm-system-process-start,
    .adm-system-process-card.step-01,
    .adm-system-process-card.step-02,
    .adm-system-process-card.step-03,
    .adm-system-process-card.step-04,
    .adm-system-process-card.step-05,
    .adm-system-process-card.step-06,
    .adm-system-process-end {
        grid-column: auto;
        grid-row: auto;
    }

    .adm-system-process-start::before,
    .adm-system-process-start::after,
    .adm-system-process-card::before,
    .adm-system-process-card::after {
        display: none;
    }

    .adm-system-map {
        display: grid;
        gap: 10px;
        min-height: 0;
        padding: 12px;
    }

    .adm-system-map-lines {
        display: none;
    }

    .adm-system-map-center,
    .adm-system-node {
        position: static;
        width: auto;
        min-height: 0;
        transform: none;
    }

    .adm-system-map-center {
        justify-items: start;
        text-align: left;
    }
}

@media (max-width: 760px) {
    .adm-system-module-grid {
        grid-template-columns: repeat(14, minmax(0, 1fr));
        gap: 4px;
        padding: 6px;
    }

    .adm-system-module-grid button {
        min-height: 38px;
        gap: 4px;
        padding: 5px 4px;
    }

    .adm-system-module-grid .mud-icon-root {
        font-size: 0.98rem;
    }

    .adm-system-module-grid strong {
        font-size: 0.72rem;
    }

    .adm-system-hero {
        grid-template-columns: 1fr;
    }

    .adm-system-placeholder {
        grid-template-columns: 1fr;
        min-height: 300px;
    }
}

.adm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
    min-height: 58px;
    padding: 10px 16px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 8px;
    background: #1a1d24;
    color: #e5e7eb;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
}

.login-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e5e7eb;
    font-size: 14px;
}

.login-remember input {
    accent-color: #7c6cff;
    width: 18px;
    height: 18px;
}

.adm-header h1 {
    color: #f8fafc;
    font-size: 1.12rem;
    font-weight: 400;
    line-height: 1.18;
    margin: 0;
}

.adm-header p,
.adm-header .mud-typography-body2,
.adm-header [class*="subtitle"] {
    color: #b6c2d1;
    font-size: 0.84rem;
    font-weight: 500;
    line-height: 1.25;
    margin: 2px 0 0;
}

.adm-grid {
    display: grid;
    grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.adm-grid-wide {
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
}

.adm-stack {
    display: grid;
    gap: 18px;
}

.adm-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 12px 16px;
    align-items: start;
}

.sge-field-span-all {
    grid-column: 1 / -1;
}

.sge-upload-box {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    min-height: 42px;
}

.sge-upload-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 4px;
    border: 1px solid rgba(139, 92, 246, 0.72);
    background: #7c5cf2;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
}

.sge-upload-button input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.sge-upload-box small {
    color: #cbd5e1;
    font-size: 12px;
}

.sge-dashboard-chart-wide {
    min-height: 320px;
}

.sge-dashboard-bars {
    align-items: end;
    min-height: 240px;
    padding-top: 8px;
}

.sge-dashboard-bar-item {
    min-width: 56px;
}

.sge-dashboard-bar-item .dashboard-vertical-bar-track {
    height: 190px;
}

.sge-dashboard-bar-item span {
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sge-dashboard-page .gma-kpi {
    min-height: 86px;
}

.sge-dashboard-tabs {
    margin-top: 14px;
}

.sge-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(320px, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.sge-indicators-dashboard-grid .sge-health-card {
    grid-column: 1 / -1;
}

.sge-indicator-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.sge-indicator-card {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(30px, auto) auto;
    gap: 7px;
    align-items: start;
    min-height: 86px;
    min-width: 0;
    border: 1px solid rgba(148, 163, 184, .16);
    border-left: 4px solid var(--indicator-color);
    border-radius: 8px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--indicator-color) 12%, transparent), transparent 42%),
        linear-gradient(180deg, rgba(17, 24, 39, .98), rgba(15, 23, 42, .90));
    color: #f8fafc;
    padding: 12px 14px;
    text-align: left;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03), 0 12px 24px rgba(2, 6, 23, .18);
}

.sge-indicator-card:hover {
    border-color: color-mix(in srgb, var(--indicator-color) 50%, rgba(148, 163, 184, .20));
    transform: none;
}

.sge-indicator-card span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    color: #dbe7f8;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sge-indicator-card .mud-icon-root {
    color: var(--indicator-color);
}

.sge-indicator-card strong {
    color: #ffffff;
    font-size: clamp(21px, 1.65vw, 27px);
    font-weight: 800;
    line-height: 1;
    text-align: left;
    white-space: nowrap;
}

.sge-indicator-card em {
    display: block;
    min-width: 0;
    overflow: hidden;
    color: #9fb0c8;
    font-size: 11px;
    font-style: normal;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sge-indicator-card-success {
    --indicator-color: #16a34a;
}

.sge-indicator-card-danger {
    --indicator-color: #dc2626;
}

.sge-indicator-card-warning {
    --indicator-color: #ea580c;
}

.sge-indicator-card-info {
    --indicator-color: #60a5fa;
}

.sge-period-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0;
    color: #cbd5e1;
    font-size: 12px;
}

.sge-period-summary span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 4px;
    background: rgba(15, 23, 42, .30);
}

.sge-period-summary strong {
    color: #ffffff;
    font-weight: 800;
}

.sge-dashboard-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    align-items: end;
    margin-top: 14px;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 6px;
    background: rgba(31, 33, 37, .90);
}

.sge-dashboard-filter {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.sge-dashboard-filter span {
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 800;
}

.sge-dashboard-filter select,
.sge-dashboard-filter input {
    width: 100%;
    height: 34px;
    min-width: 0;
    color: #f8fafc;
    border: 1px solid rgba(148, 163, 184, .36);
    border-radius: 4px;
    background: #1f2125;
    padding: 0 10px;
    outline: none;
}

.sge-dashboard-filter input[type="date"] {
    color-scheme: dark;
}

.sge-dashboard-filter select:focus,
.sge-dashboard-filter input:focus {
    border-color: #7c5cf2;
    box-shadow: 0 0 0 1px rgba(124, 92, 242, .42);
}

.sge-dashboard-filter-apply,
.sge-dashboard-filter-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 34px;
    padding: 0 12px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 4px;
    background: transparent;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
}

.sge-dashboard-filter-apply {
    border-color: rgba(37, 99, 235, .92);
    background: #2563eb;
}

.sge-dashboard-filter-apply:hover {
    border-color: #60a5fa;
    background: #1d4ed8;
}

.sge-dashboard-filter-clear:hover {
    border-color: #7c5cf2;
    background: rgba(124, 92, 242, .16);
}

.sge-apex-bar-card {
    min-height: 360px;
    padding: 0;
    border-color: rgba(148, 163, 184, .20);
    background: #1f2125 !important;
}

.sge-chart-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 28px;
    padding: 5px 10px;
    background: #7c5cf2;
    color: #ffffff;
}

.sge-chart-heading div {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: 13px;
    font-weight: 800;
}

.sge-chart-heading span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sge-chart-heading strong {
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
}

.sge-apex-bar-card .apexcharts-canvas {
    margin: 8px auto 0;
}

.sge-apex-bar-card .apexcharts-bar-area {
    cursor: pointer;
}

.sge-health-card {
    min-height: 260px;
    background: linear-gradient(180deg, rgba(17, 24, 39, .98), rgba(15, 23, 42, .92));
}

.sge-health-card .sge-chart-heading {
    margin: 0;
    padding: 14px 18px 10px;
    background: transparent;
    border-bottom: 1px solid rgba(148, 163, 184, .16);
}

.sge-health-card .sge-chart-heading div {
    gap: 9px;
}

.sge-health-card .sge-chart-heading .mud-icon-root {
    color: #38bdf8;
}

.sge-health-card .sge-chart-heading span {
    color: #e5eefb;
    font-size: 13px;
    font-weight: 700;
}

.sge-health-shell {
    display: grid;
    grid-template-columns: 220px repeat(2, minmax(170px, 1fr)) minmax(360px, 1.45fr);
    gap: 12px;
    align-items: stretch;
    padding: 16px 18px 18px;
}

.sge-health-score-block {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 10px;
}

.sge-health-summary {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 154px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, .20);
    border-radius: 8px;
    background:
        radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--health-color) 18%, transparent), transparent 46%),
        linear-gradient(180deg, rgba(15, 23, 42, .88), rgba(2, 6, 23, .72));
    color: #ffffff;
    text-align: center;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.sge-health-summary::before {
    content: "";
    position: absolute;
    width: 132px;
    height: 132px;
    border-radius: 50%;
    background:
        conic-gradient(var(--health-color) calc(var(--health-score) * 1%), rgba(51, 65, 85, .52) 0);
    box-shadow: 0 18px 40px rgba(2, 6, 23, .45);
}

.sge-health-summary::after {
    content: "";
    position: absolute;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(180deg, #101827, #07101f);
    border: 1px solid rgba(148, 163, 184, .14);
}

.sge-health-summary span {
    position: relative;
    z-index: 1;
    color: #f8fafc;
    font-size: 11px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(2, 6, 23, .75);
}

.sge-health-summary strong {
    position: relative;
    z-index: 1;
    margin-top: 8px;
    font-size: 32px;
    line-height: 1;
    letter-spacing: 0;
    text-shadow: 0 2px 6px rgba(2, 6, 23, .85);
}

.sge-health-score-block p {
    margin: 0;
    padding: 8px 10px;
    border: 1px solid rgba(148, 163, 184, .14);
    border-radius: 7px;
    background: rgba(15, 23, 42, .46);
    color: #b7c5d9;
    font-size: 10px;
    line-height: 1.4;
    text-align: center;
}

.sge-health-insights {
    display: contents;
}

.sge-health-insights button {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 10px;
    align-items: center;
    min-width: 0;
    min-height: 100%;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 7px;
    background:
        linear-gradient(135deg, rgba(30, 41, 59, .62), rgba(15, 23, 42, .54));
    color: #f8fafc;
    padding: 14px;
    text-align: left;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}

.sge-health-insights span {
    grid-column: 1 / -1;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
}

.sge-health-insights strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #f8fafc;
    font-size: 14px;
    font-weight: 700;
}

.sge-health-insights em {
    color: #ffffff;
    font-size: 18px;
    font-style: normal;
    font-weight: 800;
}

.sge-health-list {
    grid-column: auto;
    display: grid;
    align-content: center;
    gap: 7px;
    margin-top: 0;
    padding: 12px 14px;
    border: 1px solid rgba(148, 163, 184, .14);
    border-radius: 8px;
    background: rgba(2, 6, 23, .18);
}

.sge-health-list button {
    display: grid;
    grid-template-columns: minmax(92px, 1fr) 38px minmax(96px, 1.35fr);
    gap: 8px;
    align-items: center;
    min-width: 0;
    border: 0;
    background: transparent;
    color: #f8fafc;
    padding: 0;
    cursor: pointer;
}

.sge-health-list span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 700;
    color: #f8fafc;
}

.sge-health-list strong {
    color: var(--health-color);
    font-size: 11px;
    font-weight: 800;
    text-align: right;
}

.sge-health-list i {
    display: block;
    height: 7px;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 999px;
    background:
        linear-gradient(90deg, var(--health-color) calc(var(--health-score) * 1%), rgba(51, 65, 85, .56) 0);
    box-shadow: inset 0 1px 2px rgba(2, 6, 23, .40);
}

.sge-static-bars-shell {
    overflow: hidden;
    background: #1f2125;
}

.sge-static-bars-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-color: #7c5cf2 #111827;
    scrollbar-width: thin;
}

.sge-static-bars-scroll::-webkit-scrollbar {
    height: 12px;
}

.sge-static-bars-scroll::-webkit-scrollbar-track {
    background: #111827;
}

.sge-static-bars-scroll::-webkit-scrollbar-thumb {
    background: #7c5cf2;
    border-radius: 999px;
    border: 3px solid #111827;
}

.sge-static-bars {
    display: grid;
    grid-template-columns: repeat(var(--bar-count), minmax(0, 1fr));
    align-items: end;
    gap: 8px;
    height: 326px;
    padding: 18px 16px 22px;
    background: #1f2125;
    min-width: 100%;
}

.sge-static-bars-scroll .sge-static-bars {
    min-width: max(100%, calc(var(--bar-count) * (100% / var(--bar-visible))));
    padding-bottom: 18px;
}

.sge-static-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    justify-items: center;
    min-width: 0;
    height: 100%;
    border: 0;
    background: transparent;
    color: #ffffff;
    padding: 0;
    cursor: pointer;
}

.sge-static-bar strong {
    color: #f8fafc;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 6px;
    text-shadow: none;
    white-space: nowrap;
}

.sge-static-bar span {
    display: block;
    width: 78%;
    height: min(var(--bar-pct), calc(100% - 44px));
    min-height: 4px;
    border-radius: 0;
    background: #7c5cf2;
    box-shadow: none;
}

.sge-static-bar:hover span {
    background: #8f73ff;
}

.sge-static-bar em {
    max-width: 100%;
    overflow: hidden;
    color: #e5e7eb;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 1.2;
    margin-top: 8px;
    text-align: center;
    text-overflow: ellipsis;
    text-shadow: none;
    white-space: nowrap;
}

.sge-static-bars-wrap .sge-static-bar em {
    display: -webkit-box;
    min-height: 48px;
    overflow: hidden;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.sge-dashboard-modal {
    width: min(1440px, calc(100vw - 40px));
}

.sge-pie-card {
    min-height: 360px;
}

.sge-pie-shell {
    display: grid;
    grid-template-columns: minmax(190px, 250px) minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    min-height: 326px;
    padding: 18px 20px 20px;
    background: #1f2125;
}

.sge-pie-visual {
    position: relative;
    display: block;
    justify-self: center;
    width: min(220px, 100%);
    aspect-ratio: 1;
    border-radius: 999px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, .26);
}

.sge-pie-visual svg {
    display: block;
    width: 100%;
    height: 100%;
}

.sge-pie-visual path {
    cursor: pointer;
    transition: filter .12s ease, transform .12s ease;
    transform-origin: center;
}

.sge-pie-visual path:hover {
    filter: brightness(1.12);
}

.sge-pie-center {
    position: absolute;
    inset: 28%;
    z-index: 2;
    display: grid;
    place-items: center;
    align-content: center;
    border: 0;
    border-radius: 999px;
    background: #1f2125;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, .18);
}

.sge-pie-center span,
.sge-pie-center em {
    color: #ffffff;
    line-height: 1.1;
}

.sge-pie-center span {
    align-self: end;
    font-size: 24px;
    font-weight: 900;
}

.sge-pie-center em {
    align-self: start;
    margin-top: 4px;
    color: #cbd5e1;
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
    text-transform: uppercase;
}

.sge-pie-legend {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.sge-pie-legend button {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto auto;
    gap: 9px;
    align-items: center;
    min-height: 34px;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 6px;
    background: rgba(15, 23, 42, .34);
    color: #e5e7eb;
    padding: 0 10px;
    cursor: pointer;
}

.sge-pie-legend button:hover {
    border-color: rgba(124, 92, 242, .55);
    background: rgba(124, 92, 242, .14);
}

.sge-pie-legend i {
    width: 10px;
    height: 10px;
    border-radius: 999px;
}

.sge-pie-legend span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 700;
}

.sge-pie-legend strong {
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
}

.sge-pie-legend em {
    color: #cbd5e1;
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
}

.sge-failure-row {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.sge-failure-chart-card {
    min-height: 224px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, .16);
    background:
        linear-gradient(145deg, rgba(15, 23, 42, .98), rgba(31, 33, 37, .98)) !important;
}

.sge-failure-chart-card .sge-chart-heading {
    min-height: 34px;
    padding: 8px 12px 7px;
    border-bottom: 1px solid rgba(148, 163, 184, .14);
    background:
        linear-gradient(90deg, rgba(234, 88, 12, .18), rgba(15, 23, 42, .18));
    color: #f8fafc;
}

.sge-failure-chart-card .sge-chart-heading div {
    gap: 7px;
    font-size: 12px;
    font-weight: 700;
}

.sge-failure-chart-card .sge-chart-heading .mud-icon-root {
    color: #fb923c;
}

.sge-failure-bars {
    display: grid;
    gap: 9px;
    padding: 14px 14px 16px;
}

.sge-failure-bars button {
    display: grid;
    grid-template-columns: minmax(82px, .95fr) 44px minmax(90px, 1.35fr);
    gap: 8px;
    align-items: center;
    min-width: 0;
    min-height: 24px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #f8fafc;
    padding: 2px 0;
    cursor: pointer;
}

.sge-failure-bars button:hover {
    background: rgba(234, 88, 12, .08);
}

.sge-failure-bars button:hover span,
.sge-failure-bars button:hover strong {
    color: #fed7aa;
}

.sge-failure-bars span {
    overflow: hidden;
    color: #dbe7f8;
    font-size: 10.5px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sge-failure-bars strong {
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 800;
    text-align: right;
}

.sge-failure-bars i {
    display: block;
    height: 7px;
    border: 1px solid rgba(148, 163, 184, .16);
    border-radius: 999px;
    background:
        linear-gradient(90deg, #ea580c var(--bar-pct), rgba(15, 23, 42, .78) 0);
    box-shadow: inset 0 1px 2px rgba(2, 6, 23, .40), 0 0 12px rgba(234, 88, 12, .10);
}

@media (max-width: 1500px) {
    .sge-indicator-strip {
        grid-template-columns: repeat(3, minmax(180px, 1fr));
    }
}

@media (max-width: 1100px) {
    .sge-failure-row {
        grid-template-columns: 1fr;
    }
}

.adm-panel {
    background: rgba(31, 33, 37, 0.90) !important;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 18px;
}

.adm-table-panel {
    overflow: hidden;
    max-width: 100%;
    padding: 8px;
}

.adm-table-panel .mud-table-container {
    max-width: 100%;
    overflow-x: auto;
}

.adm-apoio-tab-shell {
    width: 100%;
}

.adm-apoio-tab-shell > .adm-table-panel {
    width: 100%;
}

.dashboard-chart-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.dashboard-chart-panel {
    background: #1f2125 !important;
    background-image: none !important;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 14px;
}

.ginoma-apex-card {
    min-height: 340px;
    overflow: hidden;
}

.ginoma-donut-shell {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(210px, 280px);
    gap: 10px;
    align-items: center;
    min-height: 285px;
}

.ginoma-donut-value-legend {
    display: grid;
    gap: 8px;
    align-content: center;
}

.ginoma-donut-value-row {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto auto;
    gap: 8px;
    align-items: center;
    min-width: 0;
    color: #dbeafe;
    font-size: 11px;
    font-weight: 700;
}

.ginoma-donut-value-row i {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .04);
}

.ginoma-donut-value-row span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ginoma-donut-value-row strong {
    color: #f8fafc;
    font-size: 12px;
}

.ginoma-donut-value-row em {
    color: #9ca3af;
    font-style: normal;
}

.dashboard-chart-wide {
    grid-column: 1 / -1;
}

.adm-dashboard-tabs {
    margin-top: 14px;
}

.adm-dashboard-tabs > .mud-tabs-panels {
    padding-top: 18px;
}

.adm-course-dashboard {
    display: grid;
    gap: 18px;
}

.adm-course-kpis {
    grid-template-columns: repeat(5, minmax(150px, 1fr));
}

.adm-course-chart-wide {
    grid-column: 1 / -1;
}

.adm-course-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.adm-course-card {
    display: grid;
    gap: 12px;
    min-width: 0;
    padding: 14px;
    border: 1px solid rgba(96, 165, 250, .22);
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(15, 23, 42, .90), rgba(17, 24, 39, .74));
}

.adm-course-card-button {
    width: 100%;
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.adm-course-card-button:hover {
    border-color: rgba(125, 211, 252, .55);
    background: linear-gradient(145deg, rgba(15, 23, 42, .96), rgba(30, 41, 59, .82));
    transform: none;
}

.adm-course-card header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.adm-course-card header span {
    min-width: 0;
    color: #e5e7eb !important;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
}

.login-remember span {
    color: #e5e7eb !important;
}

.adm-course-card header strong {
    color: #7dd3fc;
    font-size: 24px;
    line-height: 1;
}

.adm-course-progress {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(15, 23, 42, .92);
}

.adm-course-progress div {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #22c55e, #38bdf8);
}

.adm-course-card-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.adm-course-card-stats span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    padding: 7px 9px;
    border-radius: 6px;
    background: rgba(2, 6, 23, .36);
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 700;
}

.adm-course-card-stats b {
    color: #f8fafc;
    font-size: 13px;
}

.adm-course-detail-modal {
    width: min(1320px, calc(100vw - 42px));
}

.ginoma-chart-title {
    color: #e5e7eb;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: 8px;
}

.ginoma-apex-card .apexcharts-canvas,
.ginoma-apex-card .apexcharts-svg {
    background: transparent !important;
}

.ginoma-apex-card .apexcharts-tooltip {
    background: #161b22 !important;
    border: 1px solid rgba(148, 163, 184, .24) !important;
    color: #e5e7eb !important;
    box-shadow: 0 18px 34px rgba(0, 0, 0, .38) !important;
}

.ginoma-apex-card .apexcharts-tooltip-title {
    background: #111827 !important;
    border-bottom: 1px solid rgba(148, 163, 184, .22) !important;
    color: #f8fafc !important;
}

.ginoma-apex-card .apexcharts-legend-text,
.ginoma-apex-card .apexcharts-xaxis-label,
.ginoma-apex-card .apexcharts-yaxis-label,
.ginoma-apex-card .apexcharts-datalabel,
.ginoma-apex-card .apexcharts-data-labels text {
    fill: #ffffff !important;
    color: #ffffff !important;
    font-family: inherit !important;
    font-weight: 800 !important;
    paint-order: stroke !important;
    stroke: rgba(2, 6, 23, .82) !important;
    stroke-width: 4px !important;
    text-shadow: 0 2px 7px rgba(0, 0, 0, .86) !important;
}

.ginoma-apex-card .apexcharts-data-labels rect,
.ginoma-apex-card .apexcharts-datalabels rect {
    fill: transparent !important;
    stroke: transparent !important;
}

.ginoma-apex-card .apexcharts-gridline,
.ginoma-apex-card .apexcharts-xaxis-tick,
.ginoma-apex-card .apexcharts-xaxis line,
.ginoma-apex-card .apexcharts-yaxis line {
    stroke: rgba(148, 163, 184, .16) !important;
}

.ginoma-chart-fixed-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
    margin-top: -8px;
    padding-top: 8px;
    border-top: 1px solid rgba(148, 163, 184, .12);
}

.ginoma-chart-fixed-values div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    align-items: center;
    min-width: 0;
    padding: 5px 8px;
    border-radius: 6px;
    background: rgba(15, 23, 42, .36);
}

.ginoma-chart-fixed-values span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #dbeafe;
    font-size: 11px;
    font-weight: 700;
}

.ginoma-chart-fixed-values strong {
    color: #f8fafc;
    font-size: 12px;
}

.ginoma-chart-fixed-values em {
    color: #9ca3af;
    font-size: 11px;
    font-style: normal;
}

.ginoma-chart-fixed-values-compact {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.ginoma-chart-fixed-values-compact div {
    grid-template-columns: minmax(0, 1fr) auto;
}

.ginoma-bars {
    width: 100%;
}

.ginoma-bars-vertical {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(118px, 1fr);
    gap: 14px;
    align-items: end;
    padding: 20px 10px 6px;
    border-bottom: 1px solid rgba(148, 163, 184, .34);
    overflow-x: auto;
}

.ginoma-vertical-bar-column {
    display: grid;
    grid-template-rows: auto minmax(130px, 1fr) minmax(34px, auto);
    align-items: end;
    justify-items: center;
    min-width: 118px;
}

.ginoma-vertical-bar-value {
    color: #f8fafc;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
}

.ginoma-vertical-bar-track {
    display: flex;
    align-items: flex-end;
    width: min(58px, 74%);
    height: 100%;
    min-height: 130px;
    border-radius: 7px 7px 0 0;
    background: rgba(15, 23, 42, .74);
    border: 1px solid rgba(59, 130, 246, .16);
    overflow: hidden;
}

.ginoma-vertical-bar-fill {
    width: 100%;
    height: max(4px, var(--bar-pct));
    border-radius: 7px 7px 0 0;
    background: var(--bar-color, #3b82f6);
    box-shadow: 0 8px 20px rgba(59, 130, 246, .24);
}

.ginoma-vertical-bar-label {
    width: 100%;
    max-width: 150px;
    margin-top: 9px;
    color: #dbeafe;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    overflow: visible;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
}

.ginoma-bars-horizontal {
    display: grid;
    gap: 14px;
    align-content: center;
    padding: 18px 8px 8px;
}

.ginoma-horizontal-bar-row {
    display: grid;
    grid-template-columns: minmax(160px, 30%) minmax(180px, 1fr);
    gap: 14px;
    align-items: center;
}

.ginoma-horizontal-bar-label {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    color: #dbeafe;
    font-size: 11px;
    font-weight: 800;
}

.ginoma-horizontal-bar-label span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ginoma-horizontal-bar-label strong {
    color: #f8fafc;
}

.ginoma-horizontal-bar-track {
    height: 13px;
    border-radius: 999px;
    background: rgba(15, 23, 42, .74);
    border: 1px solid rgba(59, 130, 246, .14);
    overflow: hidden;
}

.ginoma-horizontal-bar-fill {
    height: 100%;
    min-width: 4px;
    border-radius: inherit;
    background: var(--bar-color, #3b82f6);
}

@media (max-width: 1100px) {
    .gio-rap-workspace {
        grid-template-columns: 1fr;
    }

    .gio-rap-nav {
        position: static;
        grid-template-columns: repeat(3, minmax(150px, 1fr));
    }
    .ginoma-donut-shell {
        grid-template-columns: 1fr;
    }
}

.ginoma-ranking-card {
    min-height: 340px;
}

.ginoma-ranking-list {
    display: grid;
    gap: 13px;
    margin-top: 16px;
}

.ginoma-ranking-row {
    display: grid;
    grid-template-columns: minmax(150px, 260px) minmax(0, 1fr) 48px;
    gap: 14px;
    align-items: center;
}

.ginoma-ranking-row strong {
    display: block;
    color: #f8fafc;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ginoma-ranking-row span {
    display: block;
    color: #9ca3af;
    font-size: 11px;
    margin-top: 2px;
}

.ginoma-ranking-row b {
    color: #e5e7eb;
    font-size: 13px;
    text-align: right;
}

.ginoma-ranking-track {
    height: 11px;
    border-radius: 999px;
    background: rgba(15, 23, 42, .76);
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, .16);
}

.ginoma-ranking-track div {
    height: 100%;
    min-width: 4px;
    border-radius: inherit;
    background: linear-gradient(90deg, #06b6d4, #7c6cff);
    box-shadow: 0 0 18px rgba(124, 108, 255, .25);
}

.dashboard-bar-row {
    display: grid;
    grid-template-columns: minmax(170px, 240px) minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    margin-top: 14px;
}

.dashboard-bar-row strong {
    display: block;
    color: #f8fafc;
    font-size: 13px;
}

.dashboard-bar-row span {
    display: block;
    color: #9ca3af;
    font-size: 12px;
    margin-top: 2px;
}

.dashboard-bar-track {
    height: 14px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
}

.dashboard-bar-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #7c6cff, #2563eb);
    box-shadow: 0 0 18px rgba(37,99,235,0.28);
}

.dashboard-bar-fill-green {
    background: linear-gradient(90deg, #10b981, #22c55e);
    box-shadow: 0 0 18px rgba(34,197,94,0.25);
}

.dashboard-bar-fill-amber {
    background: linear-gradient(90deg, #f59e0b, #ef4444);
    box-shadow: 0 0 18px rgba(245,158,11,0.22);
}

.dashboard-standard-chart {
    min-height: 300px;
}

.dashboard-standard-chart-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.dashboard-standard-bars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(58px, 1fr));
    align-items: end;
    gap: 12px;
    min-height: 238px;
    margin-top: 18px;
    padding: 8px 4px 0;
    border-bottom: 1px solid rgba(148, 163, 184, .22);
}

.dashboard-standard-bar {
    display: grid;
    grid-template-rows: 22px 170px 34px;
    align-items: end;
    justify-items: center;
    gap: 7px;
    min-width: 0;
}

.dashboard-standard-bar span {
    color: #e5e7eb;
    font-size: 12px;
    font-weight: 700;
}

.dashboard-standard-bar strong {
    width: 100%;
    color: #cbd5e1;
    font-size: 11px;
    line-height: 1.15;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-standard-bar-track {
    display: flex;
    align-items: end;
    width: 100%;
    max-width: 52px;
    height: 170px;
    border-radius: 8px 8px 0 0;
    background: rgba(15, 23, 42, .72);
    border: 1px solid rgba(148, 163, 184, .14);
    overflow: hidden;
}

.dashboard-standard-bar-track div {
    width: 100%;
    min-height: 4px;
    border-radius: inherit;
    background: linear-gradient(180deg, #60a5fa, #7c6cff);
    box-shadow: 0 -10px 24px rgba(96, 165, 250, .18);
}

.dashboard-standard-pie-wrap {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    min-height: 238px;
    margin-top: 18px;
}

.dashboard-standard-pie {
    display: grid;
    place-items: center;
    width: 176px;
    aspect-ratio: 1;
    border-radius: 50%;
    box-shadow: 0 20px 34px rgba(0, 0, 0, .28);
}

.dashboard-standard-pie > div {
    display: grid;
    place-items: center;
    width: 102px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #1f2125;
    border: 1px solid rgba(255, 255, 255, .08);
}

.dashboard-standard-pie strong {
    color: #f8fafc;
    font-size: 24px;
    line-height: 1;
}

.dashboard-standard-pie span {
    color: #9ca3af;
    font-size: 11px;
    text-transform: uppercase;
}

.dashboard-standard-legend,
.dashboard-standard-mini-legend {
    display: grid;
    gap: 8px;
}

.dashboard-standard-legend-item {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto auto;
    gap: 8px;
    align-items: center;
    color: #cbd5e1;
    font-size: 12px;
}

.dashboard-standard-legend-item i,
.dashboard-standard-mini-legend i {
    width: 10px;
    height: 10px;
    border-radius: 999px;
}

.dashboard-standard-legend-item strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-standard-legend-item span {
    color: #f8fafc;
    font-weight: 700;
}

.dashboard-standard-legend-item em {
    color: #9ca3af;
    font-style: normal;
}

.dashboard-standard-mini-legend {
    grid-template-columns: repeat(2, max-content);
    justify-content: end;
    gap: 6px 12px;
    margin-top: 2px;
}

.dashboard-standard-mini-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #cbd5e1;
    font-size: 11px;
    white-space: nowrap;
}

.dashboard-standard-stack-row {
    display: grid;
    grid-template-columns: minmax(130px, 220px) minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    margin-top: 14px;
}

.dashboard-standard-stack-label {
    min-width: 0;
}

.dashboard-standard-stack-label strong {
    display: block;
    color: #f8fafc;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-standard-stack-label span {
    display: block;
    color: #9ca3af;
    font-size: 11px;
    margin-top: 2px;
}

.dashboard-standard-stack-track {
    display: flex;
    height: 24px;
    border-radius: 7px;
    overflow: hidden;
    background: rgba(15, 23, 42, .78);
    border: 1px solid rgba(148, 163, 184, .14);
}

.dashboard-standard-stack-track > div {
    display: grid;
    place-items: center;
    min-width: 4px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.dashboard-pie-wrap {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    margin-top: 16px;
}

.dashboard-pie {
    width: 170px;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 10px solid rgba(255,255,255,0.06);
    box-shadow: inset 0 0 0 18px rgba(15,23,42,0.42), 0 18px 30px rgba(0,0,0,0.26);
}

.dashboard-pie-legend {
    display: grid;
    gap: 10px;
}

.dashboard-pie-legend-item {
    display: grid;
    grid-template-columns: 12px 1fr auto;
    gap: 8px;
    align-items: center;
    width: 100%;
    border: 0;
    padding: 3px 0;
    background: transparent;
    color: #cbd5e1;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
}

.dashboard-pie-legend-item:hover {
    color: #f8fafc;
}

.dashboard-pie-legend-item strong {
    color: #f8fafc;
    font-size: 13px;
}

.dashboard-pie-legend-item em {
    color: #9ca3af;
    font-style: normal;
}

.dashboard-vertical-bars {
    display: grid;
    grid-template-columns: repeat(4, minmax(72px, 1fr));
    gap: 16px;
    align-items: end;
    min-height: 220px;
    margin-top: 18px;
}

.dashboard-vertical-bar-item {
    display: grid;
    grid-template-rows: 150px auto auto auto;
    gap: 6px;
    align-items: end;
    justify-items: center;
    border: 0;
    padding: 0;
    background: transparent;
    color: #e5e7eb;
    cursor: pointer;
}

.dashboard-vertical-bar-track {
    display: flex;
    align-items: end;
    width: 42px;
    height: 150px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255,255,255,0.08);
}

.dashboard-vertical-bar-track div {
    width: 100%;
    min-height: 4px;
    border-radius: inherit;
    transition: height .16s ease;
}

.dashboard-vertical-bar-item:hover .dashboard-vertical-bar-track {
    border-color: rgba(255,255,255,0.22);
}

.dashboard-vertical-bar-item strong {
    color: #f8fafc;
    font-size: 13px;
}

.dashboard-vertical-bar-item span {
    color: #f8fafc;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.dashboard-vertical-bar-item em {
    color: #9ca3af;
    font-size: 12px;
    font-style: normal;
}

.dashboard-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
}

.dashboard-home-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 16px;
}

.dashboard-home-panel {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 14px;
    align-items: center;
    background: rgba(31, 33, 37, 0.90) !important;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 18px;
}

.dashboard-home-panel strong,
.dashboard-home-panel span {
    display: block;
}

.dashboard-home-panel strong {
    color: #f8fafc;
    font-size: 18px;
}

.dashboard-home-panel span {
    color: #cbd5e1;
    margin-top: 4px;
}

.dashboard-home-icon {
    color: #7c6cff;
    font-size: 34px !important;
}

.dashboard-home-icon-green {
    color: #22c55e;
}

.dashboard-status-row {
    width: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.dashboard-status-row:hover .dashboard-bar-track {
    border-color: rgba(255,255,255,0.24);
}

.dashboard-alert-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: grid;
    place-items: center;
    padding: 28px;
    background: rgba(2, 6, 23, 0.86);
    backdrop-filter: blur(6px) saturate(0.72);
}

.dashboard-alert-modal {
    width: min(1500px, calc(100vw - 36px));
    max-height: 92vh;
    overflow: auto;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 8px;
    background: #1f2125;
    box-shadow: 0 26px 80px rgba(0,0,0,0.45);
    padding: 12px;
}

.dashboard-alert-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 6px 12px;
}

.dashboard-alert-modal-header h2 {
    margin: 0;
    color: #f8fafc;
    font-size: 18px;
    font-weight: 700;
}

.dashboard-radar-panel {
    margin-top: 18px;
    background: rgba(31, 33, 37, 0.90) !important;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 18px;
}

.dashboard-radar-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.dashboard-radar-header span {
    color: #9ca3af;
    font-size: 13px;
}

.dashboard-radar-header strong {
    min-width: 56px;
    text-align: right;
    color: #f8fafc;
    font-size: 30px;
    line-height: 1;
}

.dashboard-radar-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 12px;
}

.dashboard-radar-card {
    display: grid;
    gap: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 14px;
    background: rgba(17, 24, 39, 0.58);
    color: #e5e7eb;
    text-align: left;
    cursor: pointer;
}

.dashboard-radar-card:hover {
    transform: none;
    border-color: rgba(255,255,255,0.18);
}

.dashboard-radar-card-top,
.dashboard-radar-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.dashboard-radar-card-top span {
    border-radius: 999px;
    padding: 3px 9px;
    font-size: 11px;
    font-weight: 700;
}

.dashboard-radar-card-top em {
    color: #9ca3af;
    font-size: 12px;
    font-style: normal;
}

.dashboard-radar-card > strong {
    color: #f8fafc;
    font-size: 14px;
    line-height: 1.35;
}

.dashboard-radar-card-bottom b {
    color: #f8fafc;
    font-size: 20px;
}

.dashboard-radar-track {
    flex: 1;
    height: 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.92);
    overflow: hidden;
}

.dashboard-radar-track div {
    height: 100%;
    border-radius: inherit;
}

.dashboard-radar-card.normal .dashboard-radar-card-top span {
    color: #86efac;
    background: rgba(34, 197, 94, 0.12);
}

.dashboard-radar-card.normal .dashboard-radar-track div {
    background: #22c55e;
}

.dashboard-radar-card.medium .dashboard-radar-card-top span {
    color: #fcd34d;
    background: rgba(245, 158, 11, 0.14);
}

.dashboard-radar-card.medium .dashboard-radar-track div {
    background: #f59e0b;
}

.dashboard-radar-card.high .dashboard-radar-card-top span {
    color: #fdba74;
    background: rgba(249, 115, 22, 0.16);
}

.dashboard-radar-card.high .dashboard-radar-track div {
    background: #f97316;
}

.dashboard-radar-card.critical .dashboard-radar-card-top span {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.16);
}

.dashboard-radar-card.critical .dashboard-radar-track div {
    background: #ef4444;
}

.gma-embedded-page {
    padding: 0;
}

.grid-modal-panel {
    position: fixed;
    inset: 14px 18px;
    z-index: 1500;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: auto;
    max-width: none;
    padding: 16px;
    border: 1px solid rgba(147,197,253,0.55);
    box-shadow: 0 30px 90px rgba(0,0,0,0.78), 0 0 0 9999px rgba(2, 6, 23, 0.86);
}

.grid-modal-panel .grid-sticky-top,
.grid-modal-panel > .grid-toolbar {
    flex: 0 0 auto;
    z-index: 24;
    padding-bottom: 10px;
    background: rgba(31,33,37,0.98);
}

.grid-modal-panel .mud-table-container {
    flex: 1 1 auto;
    min-height: 0;
    max-height: calc(100vh - 190px);
    overflow: auto;
}

.grid-modal-panel .mud-table-root,
.dashboard-alert-modal .mud-table-root {
    width: 100%;
}

.ginoma-confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 2400;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(2, 6, 23, 0.88);
    backdrop-filter: blur(8px) saturate(0.7);
    animation: ginoma-confirm-fade .14s ease-out;
}

.ginoma-confirm-card {
    position: relative;
    width: min(460px, 100%);
    color: #f8fafc;
    background: linear-gradient(145deg, rgba(31,33,37,0.98), rgba(17,24,39,0.98));
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 10px;
    box-shadow: 0 28px 90px rgba(0,0,0,0.62);
    padding: 24px;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 16px;
    transform-origin: center;
    animation: ginoma-confirm-pop .16s ease-out;
}

.ginoma-confirm-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.52);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease;
}

.ginoma-confirm-close:hover {
    color: #fff;
    background: rgba(124, 108, 255, 0.20);
    border-color: rgba(139, 124, 255, 0.46);
    transform: none;
}

.ginoma-confirm-card-wide {
    width: min(620px, 100%);
}

.ginoma-confirm-leaving {
    animation: ginoma-confirm-fade-out .12s ease-in forwards;
}

.ginoma-confirm-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #dc2626, #f97316);
    box-shadow: 0 16px 34px rgba(220,38,38,0.32);
}

.ginoma-confirm-icon-danger {
    background: linear-gradient(135deg, #dc2626, #f97316);
    box-shadow: 0 16px 34px rgba(220,38,38,0.32);
}

.ginoma-confirm-icon span {
    font-size: 30px;
    line-height: 1;
    font-weight: 800;
}

.ginoma-confirm-icon-info {
    background: linear-gradient(135deg, #2563eb, #7c6cff);
    box-shadow: 0 16px 34px rgba(37,99,235,0.32);
}

.ginoma-confirm-icon-success {
    background: linear-gradient(135deg, #059669, #10b981);
    box-shadow: 0 16px 34px rgba(16,185,129,0.28);
}

.ginoma-confirm-icon-warning {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    box-shadow: 0 16px 34px rgba(245,158,11,0.28);
}

.ginoma-confirm-content h2 {
    margin: 0 0 8px;
    color: #f8fafc;
    font-size: 20px;
    font-weight: 700;
}

.ginoma-confirm-content p {
    margin: 0;
    color: #e5e7eb;
    font-size: 14px;
    line-height: 1.45;
}

.ginoma-confirm-content small {
    display: block;
    margin-top: 8px;
    color: #9ca3af;
    font-size: 12px;
    line-height: 1.4;
}

.ginoma-confirm-field {
    grid-column: 1 / -1;
    display: grid;
    gap: 8px;
}

.ginoma-confirm-field span {
    color: #bfdbfe;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.ginoma-confirm-field textarea {
    width: 100%;
    min-height: 118px;
    resize: vertical;
    color: #f8fafc;
    background: rgba(15,23,42,0.72);
    border: 1px solid rgba(147,197,253,0.24);
    border-radius: 8px;
    padding: 12px;
    outline: none;
    font: inherit;
    line-height: 1.45;
}

.ginoma-confirm-field textarea:focus {
    border-color: rgba(124,108,255,0.85);
    box-shadow: 0 0 0 3px rgba(124,108,255,0.16);
}

.ginoma-confirm-error {
    color: #fb7185;
    font-size: 12px;
    font-style: normal;
}

.ginoma-confirm-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
}

.ginoma-confirm-actions button {
    height: 38px;
    border-radius: 7px;
    border: 1px solid transparent;
    padding: 0 16px;
    font-weight: 700;
    cursor: pointer;
}

.ginoma-confirm-cancel {
    color: #e5e7eb;
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.22) !important;
}

.ginoma-confirm-cancel:hover {
    background: rgba(255,255,255,0.09);
}

.ginoma-confirm-ok {
    color: #fff;
    background: #dc2626;
    border-color: #dc2626 !important;
    box-shadow: 0 12px 28px rgba(220,38,38,0.30);
}

.ginoma-confirm-ok:hover {
    background: #b91c1c;
}

.ginoma-confirm-ok-success {
    background: #059669;
    border-color: #059669 !important;
    box-shadow: 0 12px 28px rgba(16,185,129,0.24);
}

.ginoma-confirm-ok-success:hover {
    background: #047857;
}

.ginoma-confirm-ok-info {
    background: #2563eb;
    border-color: #2563eb !important;
    box-shadow: 0 12px 28px rgba(37,99,235,0.24);
}

.ginoma-confirm-ok-info:hover {
    background: #1d4ed8;
}

.ginoma-confirm-ok-warning {
    background: #d97706;
    border-color: #d97706 !important;
    box-shadow: 0 12px 28px rgba(245,158,11,0.24);
}

.ginoma-confirm-ok-warning:hover {
    background: #b45309;
}

@keyframes ginoma-confirm-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes ginoma-confirm-fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes ginoma-confirm-pop {
    from {
        transform: translateY(8px) scale(.98);
        opacity: .4;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.adm-table-panel .mud-table-head,
.adm-table-panel .mud-table-head tr,
.adm-table-panel .mud-table-head th {
    background:
        linear-gradient(180deg, rgba(30, 41, 59, 0.98) 0%, rgba(17, 24, 39, 0.98) 100%);
}

.grid-sticky-top {
    background: rgba(31, 33, 37, 0.98);
    padding-bottom: 8px;
}

.grid-modal-panel .mud-table-head th {
    position: sticky;
    top: 0;
    z-index: 18;
}

.adm-table-panel .mud-table-head .mud-table-cell,
.adm-table-panel .mud-table-head .mud-table-cell *,
.adm-table-panel .mud-table-head th,
.adm-table-panel .mud-table-head th * {
    color: #e8f0ff !important;
    font-weight: 650;
}

.adm-table-panel .mud-table-head .mud-table-cell,
.adm-table-panel .mud-table-head th {
    border-bottom: 1px solid rgba(96, 165, 250, 0.34) !important;
    border-right: 1px solid rgba(148, 163, 184, 0.16) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.adm-table-panel .mud-table-body .mud-table-cell {
    border-right: 1px solid rgba(148, 163, 184, 0.12) !important;
}

.adm-table-panel .mud-table-head .mud-table-cell:last-child,
.adm-table-panel .mud-table-body .mud-table-cell:last-child {
    border-right: 0 !important;
}

.adm-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.adm-row-actions {
    text-align: center;
    white-space: nowrap;
    position: sticky;
    right: 0;
    z-index: 3;
    background: #34343e;
    border-left: 1px solid rgba(96, 165, 250, 0.18) !important;
    box-shadow: -10px 0 16px rgba(0, 0, 0, 0.24);
}

.adm-table-panel .mud-table-head .adm-row-actions {
    z-index: 28;
    background:
        linear-gradient(180deg, rgba(30, 41, 59, 0.98) 0%, rgba(17, 24, 39, 0.98) 100%);
    box-shadow: -10px 0 16px rgba(0, 0, 0, 0.22), inset 1px 0 0 rgba(96, 165, 250, 0.18);
}

.grid-modal-panel .mud-table-head .adm-row-actions {
    top: 0;
}

.adm-table-panel .mud-table-body .adm-row-actions {
    background: #34343e;
}

.adm-table-panel .mud-table-row:hover .adm-row-actions {
    background: #3b3b46;
}

.adm-row-actions .d-flex,
.adm-row-actions {
    align-items: center;
    justify-content: center;
}

.grid-row-actions-content {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    min-height: 32px;
    width: 100%;
}

.grid-row-actions-content > .sgm-row-actions {
    justify-content: flex-end;
    flex: 0 0 auto;
}

.grid-row-actions-content .mud-tooltip-root,
.sgm-row-actions .mud-tooltip-root {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
}

.gio-action-tooltip-native {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.grid-toolbar-native-tooltip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gio-grid-period-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    width: 332px;
    height: 36px;
    align-self: center;
}

.gio-grid-period-field {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 120px;
    height: 36px;
    margin: 0;
    border: 1px solid rgba(148, 163, 184, 0.48);
    border-radius: 6px;
    background: #1f2125;
    box-sizing: border-box;
}

.gio-grid-period-field span {
    position: absolute;
    left: 10px;
    top: -7px;
    padding: 0 4px;
    background: #1f2125;
    color: #aeb8c8;
    font-size: 10px;
    font-weight: 650;
    line-height: 1;
    pointer-events: none;
}

.gio-grid-period-field input {
    width: 100%;
    height: 34px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #e8f0ff;
    font: inherit;
    font-size: 12.5px;
    padding: 8px 8px 4px;
    box-sizing: border-box;
}

.gio-grid-period-field input::-webkit-calendar-picker-indicator {
    filter: invert(0.82);
    opacity: 0.86;
}

.gio-grid-period-action {
    width: 34px;
    height: 34px;
}

.grid-actions-header {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.grid-selection-cell {
    width: 48px;
    min-width: 48px;
    max-width: 48px;
    text-align: center;
    vertical-align: middle;
}

.grid-selection-cell .mud-checkbox {
    justify-content: center;
}

.grid-clickable-cell {
    cursor: pointer;
    color: #9fc5ff;
}

.mud-table-row:hover .grid-clickable-cell {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.adm-table-panel .mud-table-body .mud-table-cell:not(.adm-row-actions):not(.grid-selection-cell),
.mud-table-body .mud-table-cell.grid-cell-text-auto {
    vertical-align: middle;
}

.grid-cell-text-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 4px;
    max-width: 100%;
    min-width: 0;
    line-height: 1.28;
}

.grid-cell-text-shell.has-more {
    cursor: help;
}

.grid-cell-text-plain {
    display: inline;
    max-width: 100%;
}

.grid-cell-text-value {
    display: -webkit-box;
    max-height: calc(1.28em * 2);
    overflow: hidden;
    overflow-wrap: anywhere;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.adm-row-actions .mud-icon-button {
    margin: 0 1px;
}

.grid-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 8px;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
}

.grid-toolbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 720px;
    min-width: min(100%, 520px);
    max-width: 780px;
}

.grid-toolbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-left: auto;
    flex-wrap: wrap;
    min-width: 0;
}

.grid-loading-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    margin: 8px 0 10px;
    border: 1px dashed rgba(124, 108, 255, 0.45);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.35);
    color: #c7d7ee;
    font-size: 13px;
    font-weight: 600;
}

.grid-modal-toggle {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.grid-group-dropzone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    min-width: min(190px, 100%);
    flex: 0 1 220px;
    max-width: 240px;
    color: #e5edff;
    background: linear-gradient(135deg, rgba(15,23,42,0.84), rgba(30,41,59,0.72));
    border: 1px dashed rgba(147,197,253,0.72);
    border-radius: 8px;
    padding: 0 12px;
    font-size: 12.5px;
    font-weight: 600;
    box-sizing: border-box;
}

.grid-group-dropzone span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.grid-group-dropzone:hover {
    border-color: rgba(129,140,248,0.95);
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(129,140,248,0.22), 0 8px 18px rgba(15,23,42,0.22);
}

.grid-group-dropzone.is-dragging {
    border-color: #8b7cff;
    background: linear-gradient(135deg, rgba(37,99,235,0.28), rgba(124,108,255,0.22));
    box-shadow: inset 0 0 0 1px rgba(139,124,255,0.34), 0 12px 28px rgba(0,0,0,0.26);
}

.grid-global-search {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 320px;
    min-width: min(260px, 100%);
    max-width: 360px;
    height: 36px;
    min-height: 36px;
    align-self: center;
    margin: 0;
    padding: 0 10px;
    color: #e5edff;
    background: linear-gradient(135deg, rgba(15,23,42,0.84), rgba(30,41,59,0.72));
    border: 1px solid rgba(147,197,253,0.55);
    border-radius: 8px;
    box-sizing: border-box;
}

.grid-global-search:focus-within,
.grid-global-search:hover {
    border-color: rgba(129,140,248,0.95);
    box-shadow: inset 0 0 0 1px rgba(129,140,248,0.16), 0 8px 18px rgba(15,23,42,0.18);
}

.grid-global-search input {
    flex: 1 1 auto;
    min-width: 0;
    height: 34px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #e5edff;
    font: inherit;
    font-size: 12.5px;
    padding: 0;
}

.grid-global-search input::placeholder {
    color: rgba(229, 237, 255, 0.55);
}

.grid-global-search-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: rgba(229, 237, 255, 0.72);
    background: transparent;
    cursor: pointer;
}

.grid-global-search-clear:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.08);
}
@media (max-width: 1100px) {
    .gio-rap-workspace {
        grid-template-columns: 1fr;
    }

    .gio-rap-nav {
        position: static;
        grid-template-columns: repeat(3, minmax(150px, 1fr));
    }
    .grid-toolbar-actions {
        justify-content: flex-start;
        margin-left: 0;
    }
}

.grid-draggable-header {
    cursor: grab;
    user-select: none;
}

.grid-draggable-header:active {
    cursor: grabbing;
}

.grid-header-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 34px;
    width: 100%;
    letter-spacing: 0;
    text-align: center;
}

.adm-table-panel .mud-table-head .mud-table-cell,
.adm-table-panel .mud-table-head th {
    vertical-align: middle !important;
    text-align: center !important;
}

.adm-table-panel .mud-table-head .mud-table-sort-label {
    justify-content: center;
    width: 100%;
    text-align: center;
}

.grid-cell-center {
    text-align: center !important;
    vertical-align: middle !important;
}

.grid-cell-center .grid-cell-text-plain,
.grid-cell-center .grid-cell-text-shell,
.grid-cell-center .grid-cell-text-value {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.grid-cell-center .grid-header-content,
.grid-cell-center .mud-table-sort-label {
    justify-content: center;
    width: 100%;
}

.grid-cell-center .mud-table-sort-label {
    text-align: center;
}

.grid-header-drag-icon {
    color: #8b7cf6;
    opacity: 0.9;
}

.grid-tag-list {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    min-height: 24px;
}

.grid-tag-chip {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(37,99,235,0.18);
    border: 1px solid rgba(96,165,250,0.32);
    color: #dbeafe;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.grid-group-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #dbeafe;
    background: rgba(37,99,235,0.12);
    border: 1px solid rgba(96,165,250,0.18);
    border-radius: 6px;
    padding: 8px 10px;
}

.grid-filter-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
    align-items: center;
    margin: 0 0 10px;
    padding: 10px;
    background: linear-gradient(135deg, rgba(15,23,42,0.72), rgba(31,41,55,0.54));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
}

.grid-filter-clear-cell {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 44px;
}

.grid-date-range-filter {
    display: grid;
    grid-template-columns: 62px 132px 132px 32px;
    gap: 8px;
    align-items: center;
    width: 390px;
    max-width: 100%;
    grid-column: span 2;
}

.grid-date-range-label {
    color: #cbd5e1;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.1;
}

.grid-date-range-apply {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
}

@media (max-width: 760px) {
    .grid-date-range-filter {
        grid-template-columns: 1fr 1fr 34px;
        min-width: 0;
    }

    .grid-date-range-label {
        grid-column: 1 / -1;
    }
}

.grid-filter-clear-button,
.grid-filter-toggle {
    flex: 0 0 34px;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    overflow: hidden;
    box-shadow: none !important;
    filter: none !important;
}

.grid-filter-clear-button::before,
.grid-filter-clear-button::after,
.grid-filter-toggle::before,
.grid-filter-toggle::after {
    inset: 0 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

.grid-filter-clear-button .mud-ripple,
.grid-filter-toggle .mud-ripple {
    display: none !important;
}

.grid-columns-wrapper {
    position: relative;
    display: inline-flex;
}

.grid-columns-popover {
    z-index: 1400;
}

.grid-columns-menu-body {
    width: 320px;
    max-height: 420px;
    overflow-y: auto;
    padding: 8px;
    color: #e5e7eb;
    background: #202329;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.42);
}

.grid-columns-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 4px 8px 10px;
    color: #f8fafc;
    font-size: 13px;
    font-weight: 700;
}

.grid-column-config {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    min-height: 36px;
    padding: 3px 4px;
    border-radius: 6px;
    cursor: grab;
}

.grid-column-config:hover {
    background: rgba(124,108,255,0.12);
}

.grid-column-config:active {
    cursor: grabbing;
}

.grid-column-drag-icon {
    color: #9ca3af;
}

.grid-column-order {
    display: flex;
    gap: 2px;
}

.adm-header:not(.sga-header) .mud-button-root {
    border-color: #2563eb !important;
    background: #2563eb !important;
    color: #fff !important;
    font-weight: 700;
    min-height: 34px;
}

.adm-header:not(.sga-header) .mud-button-root:hover {
    background: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
}

.ginoma-new-button,
.adm-header:not(.sga-header) .ginoma-new-button,
.grid-toolbar .ginoma-new-button,
.grid-toolbar-actions .ginoma-new-button,
.adm-actions .ginoma-new-button {
    border-color: #8b7cff !important;
    background: linear-gradient(90deg, #8b7cff, #3b82f6) !important;
    color: #fff !important;
    font-weight: 700;
    box-shadow: 0 12px 26px rgba(124, 108, 255, 0.24) !important;
}

.ginoma-new-button:hover,
.adm-header:not(.sga-header) .ginoma-new-button:hover,
.grid-toolbar .ginoma-new-button:hover,
.grid-toolbar-actions .ginoma-new-button:hover,
.adm-actions .ginoma-new-button:hover {
    border-color: #a99cff !important;
    background: linear-gradient(90deg, #7c6cff, #2563eb) !important;
    box-shadow: 0 14px 30px rgba(124, 108, 255, 0.34) !important;
}

.adm-tabs {
    --ginoma-tab-active: #8b7cff;
    --ginoma-tab-border: rgba(148, 163, 184, 0.14);
    background: linear-gradient(135deg, rgba(31,33,37,0.96), rgba(17,24,39,0.78));
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px 10px 0 0;
    box-shadow: 0 14px 34px rgba(0,0,0,0.18);
    overflow: hidden;
}

.adm-tabs .mud-tabs-toolbar {
    min-height: 50px;
    background: linear-gradient(180deg, rgba(47,49,58,0.96), rgba(38,40,49,0.96));
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.adm-tabs .mud-tabs-toolbar-wrapper {
    padding: 7px 10px 0;
}

.adm-tabs .mud-tab {
    position: relative;
    min-height: 40px !important;
    margin: 0 5px;
    padding: 0 20px !important;
    border: 1px solid rgba(148, 163, 184, 0.10);
    border-radius: 8px 8px 0 0;
    background: rgba(15, 23, 42, 0.18);
    color: #d7dee8 !important;
    font-weight: 700;
    text-transform: none !important;
    opacity: 0.88;
    transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.adm-tabs .mud-tab *,
.adm-tabs .mud-tab .mud-button-label {
    text-transform: none !important;
}

.adm-tabs .mud-tab:hover {
    color: #fff !important;
    background: rgba(124,108,255,0.14);
    border-color: rgba(124,108,255,0.26);
    opacity: 1;
}

.adm-tabs .mud-tab.mud-tab-active {
    color: #fff !important;
    background:
        linear-gradient(180deg, rgba(124,108,255,0.34), rgba(37,99,235,0.20)),
        #111827;
    border-color: rgba(139,124,255,0.64);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.10),
        0 10px 24px rgba(0,0,0,0.22),
        0 0 0 1px rgba(124,108,255,0.12);
    opacity: 1;
}

.adm-tabs .mud-tab .mud-icon-root {
    color: #e5e7eb !important;
    opacity: 0.92;
}

.adm-tabs .mud-tab.mud-tab-active .mud-icon-root {
    color: #ffffff !important;
    filter: drop-shadow(0 0 8px rgba(139,124,255,0.42));
}

.adm-tabs .mud-tab.mud-tab-active::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: -1px;
    height: 4px;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(90deg, #8b7cff, #3b82f6);
    box-shadow: 0 0 16px rgba(139,124,255,0.48);
}

.adm-tabs .mud-tab.mud-tab-active::before {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    top: 0;
    height: 2px;
    border-radius: 0 0 999px 999px;
    background: rgba(255, 255, 255, 0.42);
}

.adm-tabs .mud-tabs-panels {
    background: #1f2125;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.adm-tabs .mud-tab-slider {
    display: none;
}

.adm-tabs .mud-tab-scroll-button {
    color: #9ca3af !important;
    border-radius: 8px;
    margin-top: 4px;
}

.adm-tabs .mud-tab-scroll-button:hover {
    background: rgba(124,108,255,0.14);
    color: #fff !important;
}

.adm-list-panel {
    margin-top: 18px;
}

.permission-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 10px;
}

.permission-module-tabs,
.permission-submodule-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 10px;
}

.permission-submodule-tabs {
    padding: 8px;
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 6px;
}

.permission-action-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 10px;
    margin: 0 0 10px;
}

.adm-user-profile-association-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.adm-user-profile-selector {
    position: relative;
    z-index: 2;
}

.adm-user-profile-popover,
.mud-popover.adm-user-profile-popover {
    z-index: 1800 !important;
}

.adm-user-profile-popover .mud-list {
    max-height: 240px;
    overflow-y: auto;
}

.sgd-import-help {
    color: #cbd5e1 !important;
}

@media (max-width: 900px) {
    .permission-action-filters {
        grid-template-columns: 1fr;
    }
}

.permission-group-header {
    background: #f4f7fb;
    color: #1f2937;
    font-weight: 700;
}

.permission-action-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.permission-action-cell small {
    color: #64748b;
    font-size: 0.76rem;
    line-height: 1.25;
}

.sgd-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.sgd-workspace {
    display: grid;
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
    gap: 14px;
}

.sgd-folder-pane,
.sgd-content-pane {
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.03);
    border-radius: 8px;
    padding: 12px;
}

.sgd-pane-title,
.sgd-current-folder {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}

.sgd-pane-title-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.sgd-new-folder-button {
    color: #facc15 !important;
}

.sgd-new-folder-button:hover {
    background: rgba(250, 204, 21, 0.14) !important;
}

.sgd-new-folder-button.mud-disabled {
    color: rgba(250, 204, 21, 0.38) !important;
}

.sgd-folder-tree {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 10px;
}

.sgd-folder-row {
    width: 100%;
    min-height: 34px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;
    border-radius: 6px;
    background: transparent;
    color: inherit;
}

.sgd-folder-row:hover,
.sgd-folder-row.selected {
    background: rgba(124, 108, 255, 0.14);
}

.sgd-folder-main {
    min-width: 0;
    min-height: 34px;
    display: grid;
    grid-template-columns: 18px 22px minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
    font: inherit;
}

.sgd-folder-main span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sgd-folder-row.root .sgd-folder-icon {
    color: #facc15;
}

.sgd-folder-expander {
    opacity: 0.74;
}

.sgd-folder-expander.empty {
    opacity: 0;
}

.sgd-folder-main small {
    opacity: 0.72;
    padding-right: 8px;
    font-variant-numeric: tabular-nums;
    min-width: 42px;
    text-align: right;
}

.sgd-folder-actions {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    padding-right: 4px;
}

.sgd-folder-actions .mud-icon-button {
    width: 24px;
    height: 24px;
    padding: 2px;
}

.sgd-folder-edit-button {
    color: #facc15 !important;
}

.sgd-folder-edit-button:hover {
    background: rgba(250, 204, 21, 0.14) !important;
}

.sgd-folder-delete-button {
    color: #ef4444 !important;
}

.sgd-folder-delete-button:hover {
    background: rgba(239, 68, 68, 0.14) !important;
}

.sgd-empty-state {
    min-height: 280px;
    display: grid;
    place-items: center;
    gap: 10px;
    color: #64748b;
}

.sgd-loading-state {
    min-height: 280px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    color: #94a3b8;
}

.sgd-dashboard-filters {
    display: grid;
    grid-template-columns: repeat(5, minmax(160px, 1fr)) auto;
    gap: 10px;
    align-items: end;
    margin-bottom: 14px;
}

.sgd-dashboard-filter-actions {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.sgd-dashboard-date-filter input {
    width: 100%;
    height: 34px;
    min-width: 0;
    color: #f8fafc;
    border: 1px solid rgba(148, 163, 184, .36);
    border-radius: 4px;
    background: #1f2125;
    padding: 0 10px;
    outline: none;
}

.sgd-dashboard-date-filter input:focus {
    border-color: #7c5cf2;
    box-shadow: 0 0 0 1px rgba(124, 92, 242, .42);
}

.sgd-dashboard-kpis {
    grid-template-columns: repeat(5, minmax(150px, 1fr));
}

.sgd-dashboard-page .sgd-dashboard-kpis {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.sgd-kpi {
    min-height: 104px;
}

.sgd-kpi-top {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.sgd-kpi-top .mud-icon-root {
    color: #8b7cff;
}

.sgd-kpi small {
    color: #94a3b8;
    font-size: 11px;
}

.sgd-kpi-danger .sgd-kpi-top .mud-icon-root {
    color: #ef4444;
}

.sgd-kpi-warning .sgd-kpi-top .mud-icon-root {
    color: #f59e0b;
}

.sgd-kpi-info .sgd-kpi-top .mud-icon-root {
    color: #38bdf8;
}

.sgd-dashboard-chart-grid {
    grid-template-columns: repeat(2, minmax(320px, 1fr));
}

.sgd-dashboard-chart-panel {
    min-height: 320px;
}

.sgd-dashboard-chart-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.sgd-dashboard-chart-title .mud-icon-root {
    color: #8b7cff;
}

.sgd-dashboard-bar-row {
    cursor: default;
}

.sgd-dashboard-page .sge-static-bar {
    cursor: pointer;
}

.sgd-dashboard-page .sge-static-bar span {
    background: var(--sgd-bar-color, #7c5cf2);
}

.sgd-dashboard-page .sge-static-bar:hover span {
    background: var(--sgd-bar-color, #7c5cf2);
    filter: brightness(1.12);
}

.sgd-dashboard-donut {
    width: 190px;
    aspect-ratio: 1;
    border-radius: 999px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 2px;
    border: 0;
    cursor: pointer;
    box-shadow: inset 0 0 0 22px rgba(15, 23, 42, .72), 0 18px 30px rgba(0, 0, 0, .24);
}

.sgd-dashboard-donut:hover {
    filter: brightness(1.08);
}

.sgd-dashboard-donut span {
    color: #ffffff;
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
}

.sgd-dashboard-donut em {
    color: #cbd5e1;
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
    text-transform: uppercase;
}

.sgd-pie-legend-row {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto auto;
    gap: 8px;
    align-items: center;
    width: 100%;
    min-width: 0;
    padding: 7px 0;
    border: 0;
    background: transparent;
    color: #cbd5e1;
    text-align: left;
    cursor: pointer;
}

.sgd-pie-legend-row:hover {
    color: #ffffff;
}

.sgd-dashboard-modal {
    max-width: 1420px;
}

.sgd-dashboard-modal-toolbar {
    margin-bottom: 8px;
}

.sgd-dashboard-modal-toolbar > span {
    min-height: 1px;
}

.sgd-dashboard-column-filters {
    display: grid;
    grid-template-columns: repeat(7, minmax(120px, 1fr)) auto;
    gap: 8px;
    align-items: end;
    margin: 0 0 10px;
}

.sgd-dashboard-column-filters .sge-dashboard-filter select {
    height: 36px;
}

.sgd-dashboard-column-filters .sge-dashboard-filter input {
    width: 100%;
    height: 36px;
    min-width: 0;
    color: #f8fafc;
    border: 1px solid rgba(148, 163, 184, .36);
    border-radius: 4px;
    background: #1f2125;
    padding: 0 10px;
    outline: none;
}

.sgd-dashboard-column-filters .sge-dashboard-filter input:focus {
    border-color: #7c5cf2;
    box-shadow: 0 0 0 1px rgba(124, 92, 242, .42);
}

.sgd-dashboard-column-filters .mud-button-root {
    height: 36px;
    align-self: end;
}

.sgd-dashboard-modal-filter {
    min-width: 0;
}

.sgd-dashboard-modal .mud-table-container {
    max-height: calc(92vh - 150px);
}

.sgd-loading-state.table {
    min-height: 180px;
}

.sgd-pie-legend-row i {
    width: 10px;
    height: 10px;
    border-radius: 999px;
}

.sgd-pie-legend-row span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sgd-pie-legend-row strong {
    color: #f8fafc;
    font-size: 12px;
}

.sgd-pie-legend-row em {
    color: #94a3b8;
    font-size: 11px;
    font-style: normal;
}

.sgd-document-actions-head,
.sgd-document-actions-cell,
.sgd-approval-actions-head,
.sgd-approval-actions-cell {
    width: 168px;
    min-width: 168px;
    text-align: center !important;
    white-space: nowrap;
}

.sgd-document-actions-cell,
.sgd-approval-actions-cell {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;
}

.sgd-document-actions-cell .mud-icon-button,
.sgd-approval-actions-cell .mud-icon-button {
    width: 28px;
    height: 28px;
    padding: 3px;
}

.sgd-history-modal {
    max-width: 760px;
}

.sgd-history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 520px;
    overflow: auto;
}

.sgd-history-item {
    display: grid;
    gap: 4px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 8px;
    padding: 10px 12px;
    background: rgba(15, 23, 42, 0.12);
}

.sgd-history-item strong {
    color: #f8fafc;
    font-size: 12px;
}

.sgd-history-item span {
    color: #dbeafe;
    font-size: 12px;
}

.sgd-history-item small {
    color: #94a3b8;
    font-size: 11px;
}

.sgd-file-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 520px;
    overflow: auto;
}

.sgd-file-list-item {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 8px;
    padding: 10px 12px;
    background: rgba(15, 23, 42, 0.12);
}

.sgd-file-list-item strong,
.sgd-file-list-item span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sgd-file-list-item strong {
    color: #f8fafc;
    font-size: 12px;
}

.sgd-file-list-item span {
    color: #94a3b8;
    font-size: 11px;
}

.sgd-small-modal {
    max-width: 520px;
}

.sgd-document-modal {
    max-width: 780px;
}

.sgd-document-form,
.sgd-support-editor {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.sgd-support-editor {
    align-items: start;
}

.sgd-support-editor .adm-actions {
    grid-column: 1 / -1;
    margin-top: 4px;
    margin-bottom: 8px;
    align-self: start;
}

.sgd-file-box {
    grid-column: 1 / -1;
    border: 1px dashed rgba(148, 163, 184, 0.6);
    border-radius: 8px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
}

.sgd-file-box.invalid {
    border-color: rgba(239, 68, 68, 0.82);
    background: rgba(239, 68, 68, 0.06);
}

.sgd-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.sgd-file-button {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(124, 108, 255, 0.85);
    border-radius: 6px;
    background: #6750f5;
    color: #fff;
    padding: 0 13px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    user-select: none;
    box-shadow: 0 8px 18px rgba(103, 80, 245, 0.24);
}

.sgd-file-button:hover {
    background: #7563f7;
    border-color: #8b7cff;
}

.sgd-file-box > span {
    min-width: 0;
    color: #cbd5e1;
    font-size: 11.5px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sgd-file-box em {
    flex-basis: 100%;
    color: #fca5a5;
    font-size: 11.5px;
    font-style: normal;
    font-weight: 700;
}

.sgd-color-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.sgd-color-grid {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.sgd-color-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.18);
}

@media (max-width: 900px) {
    .sgd-workspace,
    .sgd-document-form,
    .sgd-support-editor {
        grid-template-columns: 1fr;
    }
}

.audit-filter {
    margin-bottom: 18px;
}

.audit-filter-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) repeat(2, minmax(180px, 240px)) auto;
    gap: 12px;
    align-items: center;
}

.audit-pdf-button {
    height: 32px;
    width: 92px;
    min-width: 92px;
    background: #dc2626 !important;
    color: #fff !important;
    border-color: #dc2626 !important;
    font-weight: 700;
    justify-content: center;
}

.audit-pdf-button:hover {
    background: #b91c1c !important;
    border-color: #b91c1c !important;
}
.ginoma-report-icon-button {
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    border-radius: 6px !important;
    background: transparent !important;
    box-shadow: none !important;
}

.ginoma-report-icon-button .mud-icon-root {
    font-size: 21px !important;
}

.ginoma-report-icon-button:hover {
    background: rgba(139, 92, 246, .12) !important;
}

.grid-excel-button {
    height: 32px;
    width: 92px;
    min-width: 92px;
    background: #15803d !important;
    color: #fff !important;
    border-color: #15803d !important;
    font-weight: 700;
    justify-content: center;
}

.grid-excel-button:hover {
    background: #166534 !important;
    border-color: #166534 !important;
}
.grid-export-icon-button {
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    border-radius: 6px !important;
}

.grid-export-icon-button .mud-icon-root {
    margin: 0 !important;
}

.audit-hint {
    color: #9ca3af;
    display: block;
    margin-top: 8px;
}

.audit-detail {
    display: grid;
    gap: 3px;
    max-width: 240px;
}

.audit-detail strong {
    color: #e5e7eb;
    font-size: 12px;
    font-weight: 700;
}

.audit-detail span {
    color: #cbd5e1;
    font-size: 12px;
    white-space: normal;
    overflow-wrap: anywhere;
}

.audit-table-panel {
    overflow: hidden;
}

.audit-table-panel .mud-table-container {
    position: relative;
    overflow-x: auto;
}

.audit-table-panel .mud-table {
    table-layout: fixed;
    min-width: 1160px;
    width: 100%;
}

.audit-table-panel .mud-table-cell {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.audit-table-panel .mud-table-head .mud-table-cell {
    white-space: nowrap;
}

.audit-col-data {
    width: 130px;
    min-width: 130px;
}

.audit-col-usuario {
    width: 120px;
    min-width: 120px;
}

.audit-col-email {
    width: 170px;
    min-width: 170px;
}

.audit-col-empresa,
.audit-col-modulo,
.audit-col-ip {
    width: 90px;
    min-width: 90px;
}

.audit-col-acao,
.audit-col-tipo {
    width: 105px;
    min-width: 105px;
}

.audit-col-localizacao,
.audit-col-registro {
    width: 145px;
    min-width: 145px;
}

.audit-col-detalhes {
    width: 210px;
    min-width: 210px;
}

.audit-action-column {
    position: sticky !important;
    right: 0 !important;
    width: 88px !important;
    min-width: 88px !important;
    max-width: 88px !important;
    z-index: 6 !important;
    background: #34343e !important;
    box-shadow: -10px 0 16px rgba(0, 0, 0, 0.28);
    overflow: visible !important;
    white-space: normal !important;
}

.audit-table-panel .mud-table-head .audit-action-column {
    z-index: 32 !important;
    background: #b8b8b8 !important;
    white-space: nowrap !important;
}

.audit-table-panel .mud-table-cell.audit-action-column,
.audit-table-panel th.audit-action-column,
.audit-table-panel td.audit-action-column {
    right: 0 !important;
    width: 88px !important;
    min-width: 88px !important;
    max-width: 88px !important;
}

.audit-table-panel .mud-table-row:hover .audit-action-column {
    background: #3b3b46 !important;
}

.audit-action-taken {
    display: flex;
    justify-content: center;
    gap: 4px;
    align-items: center;
    width: 64px;
    min-width: 64px;
    margin: 0 auto;
}

.audit-action-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 3500;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(2, 6, 23, 0.68);
    backdrop-filter: blur(2px);
}

.audit-action-modal {
    width: min(560px, 100%);
    padding: 22px;
    border: 1px solid rgba(124, 92, 255, 0.32);
    border-radius: 8px;
    color: #e5e7eb;
    background: #20212a;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.audit-action-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.audit-action-modal-header h2 {
    margin: 0 0 4px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
}

.audit-action-modal-header span {
    color: #9ca3af;
    font-size: 12px;
}

.audit-action-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

.audit-expand-column {
    width: 44px;
    max-width: 44px;
    text-align: center;
}

.audit-expanded-row td {
    background: #151922;
    border-top: 1px solid rgba(124, 92, 255, 0.28);
    border-bottom: 1px solid rgba(124, 92, 255, 0.18);
    padding: 0 !important;
}

.audit-expanded-panel {
    padding: 14px 16px 16px;
    color: #e5e7eb;
}

.audit-expanded-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #c4b5fd;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
}

.audit-change-grid {
    display: grid;
    grid-template-columns: minmax(110px, 140px) minmax(160px, 0.8fr) minmax(220px, 1fr) minmax(220px, 1fr);
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
}

.audit-change-grid > div {
    min-height: 38px;
    padding: 9px 10px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    color: #dbe4f0;
    overflow-wrap: anywhere;
}

.audit-change-grid > div:nth-last-child(-n + 4) {
    border-bottom: 0;
}

.audit-change-head {
    background: #bdbdbd;
    color: #05070d !important;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.audit-change-value {
    font-family: Consolas, "Courier New", monospace;
    font-size: 12px;
    color: #cbd5e1;
}

.file-field {
    display: block;
    margin: 10px 0 6px;
    color: #e5e7eb;
}

.file-field span {
    display: block;
    color: #cbd5e1;
    font-size: 12px;
    margin-bottom: 6px;
}

.file-field input {
    width: 100%;
    color: #e5e7eb;
    min-height: 46px;
    padding: 8px;
    border: 1px solid rgba(124,108,255,0.45);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(15,23,42,0.92), rgba(31,41,55,0.86));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 12px 28px rgba(0,0,0,0.18);
    cursor: pointer;
}

.file-field input::file-selector-button {
    height: 30px;
    margin-right: 12px;
    border: 0;
    border-radius: 7px;
    padding: 0 14px;
    color: #fff;
    font-weight: 700;
    letter-spacing: .2px;
    background: linear-gradient(90deg, #7c6cff, #2563eb);
    box-shadow: 0 8px 18px rgba(37,99,235,0.28);
    cursor: pointer;
}

.file-field input:hover {
    border-color: rgba(147,197,253,0.75);
}

.file-field input:hover::file-selector-button {
    background: linear-gradient(90deg, #8b7cff, #3b82f6);
}

.file-field small {
    display: block;
    color: #9ca3af;
    margin-top: 6px;
}

.grid-thumb {
    width: 46px;
    height: 34px;
    object-fit: contain;
    display: block;
    border-radius: 6px;
    padding: 3px;
    background: #f3f4f6;
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 6px 16px rgba(0,0,0,0.24);
}

.grid-thumb-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    padding: 0;
}

.development-panel {
    min-height: 220px;
    display: grid;
    place-items: center;
    gap: 14px;
    text-align: center;
}

.development-icon {
    color: #93c5fd;
    font-size: 58px;
}

.gma-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.gma-kpi {
    display: grid;
    gap: 6px;
    min-height: 84px;
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(31,33,37,0.94), rgba(17,24,39,0.88)) !important;
}

.gma-kpi span {
    color: #cbd5e1;
    font-size: 12px;
}

.gma-kpi strong {
    color: #f8fafc;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    text-align: right;
}

.gma-kpi-button {
    width: 100%;
    appearance: none;
    border: 1px solid rgba(255,255,255,0.08);
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.gma-kpi-button:hover {
    border-color: rgba(124,108,255,0.45);
    filter: brightness(1.08);
}

.adm-agentes-dashboard-kpis {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin-top: 12px;
}

.adm-agentes-dashboard-kpis .gma-kpi-button {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 10px;
    min-height: 86px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(31, 33, 37, 0.96), rgba(17, 24, 39, 0.9)) !important;
}

.adm-agentes-dashboard-kpis .gma-kpi-button span {
    display: block;
    align-self: center;
    justify-self: start;
    color: #cbd5e1;
    font-size: 12px;
    line-height: 1.25;
    text-align: left;
}

.adm-agentes-dashboard-kpis .gma-kpi-button strong {
    display: block;
    align-self: center;
    justify-self: end;
    color: #f8fafc;
    font-size: 28px;
    line-height: 1;
    text-align: right;
    white-space: nowrap;
}

.adm-agentes-chart-grid {
    display: grid;
    grid-template-columns: minmax(320px, 0.8fr) minmax(460px, 1.2fr);
    gap: 14px;
}

.adm-agentes-status-chart.dashboard-chart-panel,
.adm-agentes-sector-chart.dashboard-chart-panel {
    min-height: 300px;
}

.adm-agentes-status-chart .ginoma-donut-shell {
    grid-template-columns: minmax(180px, 1fr) minmax(180px, 240px);
    min-height: 230px;
    gap: 16px;
}

.adm-agentes-status-chart .ginoma-apex-donut {
    max-width: 280px;
    margin: 0 auto;
}

.adm-agentes-status-chart .ginoma-donut-value-legend {
    gap: 10px;
}

.adm-agentes-status-chart .ginoma-donut-value-row {
    padding: 10px 12px;
    border: 1px solid rgba(148, 163, 184, .14);
    border-radius: 8px;
    background: rgba(15, 23, 42, .3);
}

.adm-agentes-sector-chart .ginoma-bars-horizontal {
    padding: 10px 0 0;
    align-content: start;
}

.adm-agentes-sector-chart .ginoma-horizontal-bar-row {
    gap: 16px;
}

.adm-agentes-sector-chart .ginoma-horizontal-bar-label {
    font-size: 12px;
    color: #d7e3f4;
}

.adm-agentes-sector-chart .ginoma-horizontal-bar-track {
    height: 16px;
    background: rgba(15, 23, 42, .52);
    border-color: rgba(59, 130, 246, .12);
}

.adm-agentes-sector-chart .ginoma-horizontal-bar-fill {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.adm-agentes-dashboard-modal {
    width: min(1280px, calc(100vw - 48px));
    max-width: 1280px;
}

@media (max-width: 1280px) {
    .adm-agentes-dashboard-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .adm-agentes-chart-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .adm-agentes-dashboard-kpis {
        grid-template-columns: 1fr;
    }
}

.gma-support-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 16px;
}

.gma-support-panel h2 {
    color: #f8fafc;
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 10px;
}

.gma-support-panel ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 18px;
    color: #cbd5e1;
    font-size: 13px;
}

.sga-page {
    display: grid;
    gap: 14px;
}

.sga-header {
    align-items: center;
    background: #1a1d24;
    min-height: 58px;
    padding: 10px 16px;
    margin-bottom: 12px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
}

.sga-header h1 {
    color: #f8fafc;
    font-size: 1.12rem;
    font-weight: 400;
    line-height: 1.18;
}

.sga-header div:first-child {
    min-width: 0;
}

.sga-header span {
    display: block;
    margin-top: 2px;
    color: #b6c2d1;
    font-size: 0.84rem;
    line-height: 1.25;
}

.sga-header-actions,
.sga-command-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.sga-command-actions .mud-button-root {
    min-height: 42px;
    min-width: 128px;
    color: #f8fafc !important;
    background: #2563eb !important;
    border-color: #2563eb !important;
    box-shadow: 0 8px 18px rgba(37,99,235,0.24);
    font-weight: 700;
}

.sga-command-actions .mud-button-root:hover {
    background: #1d4ed8 !important;
}

.sga-command-actions .mud-button-root .mud-icon-root,
.sga-tabs .mud-tab .mud-icon-root {
    color: #e0f2fe !important;
    opacity: 1 !important;
}

.sga-command-bar {
    display: grid;
    grid-template-columns: minmax(210px, 260px) minmax(210px, 260px) minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    background: rgba(31, 33, 37, 0.90);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
}

.sga-command-actions {
    justify-content: flex-end;
}

.sga-header-actions {
    justify-content: flex-end;
}

.sga-company-select {
    min-width: 210px;
}

.sga-search {
    display: flex;
    align-items: center;
    min-height: 38px;
    gap: 10px;
    padding: 0 12px;
    color: #9ca3af;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(148,163,184,0.14);
    border-radius: 8px;
}

.sga-search .mud-icon-root {
    color: #93c5fd;
}

.sga-search span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.sga-kpi-grid {
    grid-template-columns: repeat(6, minmax(150px, 1fr));
}

.sga-kpi {
    min-height: 104px;
}

.sga-kpi em {
    color: #9ca3af;
    font-size: 12px;
    font-style: normal;
}

.sga-kpi.success {
    border-left: 3px solid #22c55e;
}

.sga-kpi.info {
    border-left: 3px solid #3b82f6;
}

.sga-kpi.warning {
    border-left: 3px solid #f59e0b;
}

.sga-tabs {
    margin-top: 2px;
}

.sga-tabs .mud-tabs-panels {
    padding: 14px;
}

.sga-panel {
    background: rgba(31, 33, 37, 0.90) !important;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 14px;
}

.sga-panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.sga-panel-title span {
    color: #9ca3af;
    font-size: 12px;
}

.sga-dashboard-shell {
    display: grid;
    gap: 18px;
}

.sga-executive-grid {
    display: grid;
    grid-template-columns: minmax(320px, 1.1fr) minmax(320px, .9fr);
    gap: 18px;
    margin-bottom: 18px;
}

.sga-bar-row {
    grid-template-columns: minmax(190px, 260px) minmax(0, 1fr);
}

.sga-risk-list,
.sga-insight-list,
.sga-automation-list,
.sga-workflow {
    display: grid;
    gap: 10px;
}

.sga-risk-card,
.sga-insight,
.sga-automation {
    width: 100%;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    background: rgba(17, 24, 39, 0.58);
    color: #e5e7eb;
    text-align: left;
    cursor: pointer;
}

.sga-risk-card {
    display: grid;
    gap: 8px;
    padding: 12px;
}

.sga-risk-card span {
    width: fit-content;
    border-radius: 999px;
    padding: 3px 9px;
    font-size: 11px;
    font-weight: 700;
}

.sga-risk-card strong,
.sga-insight strong,
.sga-automation strong {
    color: #f8fafc;
    font-size: 13px;
}

.sga-risk-card em,
.sga-insight span,
.sga-automation span {
    color: #9ca3af;
    font-size: 12px;
    font-style: normal;
}

.sga-risk-card.critical span,
.sga-kanban-card.critical .sga-card-top em,
.sga-team-card.critical .dashboard-radar-card-top span {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.16);
}

.sga-risk-card.high span,
.sga-kanban-card.high .sga-card-top em,
.sga-team-card.high .dashboard-radar-card-top span {
    color: #fdba74;
    background: rgba(249, 115, 22, 0.16);
}

.sga-risk-card.medium span,
.sga-kanban-card.medium .sga-card-top em,
.sga-team-card.medium .dashboard-radar-card-top span {
    color: #fcd34d;
    background: rgba(245, 158, 11, 0.14);
}

.sga-risk-card.normal span,
.sga-kanban-card.normal .sga-card-top em,
.sga-team-card.normal .dashboard-radar-card-top span {
    color: #86efac;
    background: rgba(34, 197, 94, 0.12);
}

.sga-risk-card.critical .dashboard-radar-track div,
.sga-team-card.critical .dashboard-radar-track div {
    background: #ef4444;
}

.sga-risk-card.high .dashboard-radar-track div,
.sga-team-card.high .dashboard-radar-track div {
    background: #f97316;
}

.sga-risk-card.medium .dashboard-radar-track div,
.sga-team-card.medium .dashboard-radar-track div {
    background: #f59e0b;
}

.sga-risk-card.normal .dashboard-radar-track div,
.sga-team-card.normal .dashboard-radar-track div {
    background: #22c55e;
}

.sga-month-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(70px, 1fr));
    gap: 12px;
    min-height: 210px;
    align-items: end;
}

.sga-month-item {
    display: grid;
    grid-template-rows: 150px auto auto;
    justify-items: center;
    gap: 7px;
    border: 0;
    background: transparent;
    color: #e5e7eb;
    cursor: pointer;
}

.sga-month-bars {
    display: flex;
    align-items: end;
    gap: 7px;
    height: 150px;
}

.sga-month-bars i,
.sga-month-bars b {
    display: block;
    width: 16px;
    min-height: 6px;
    border-radius: 999px 999px 4px 4px;
}

.sga-month-bars i {
    background: linear-gradient(180deg, #22c55e, #15803d);
}

.sga-month-bars b {
    background: linear-gradient(180deg, #f59e0b, #b45309);
}

.sga-month-item strong {
    color: #f8fafc;
    font-size: 12px;
}

.sga-month-item span {
    color: #9ca3af;
    font-size: 12px;
}

.sga-insight,
.sga-automation {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 62px;
    padding: 10px 12px;
}

.sga-automation {
    cursor: default;
}

.sga-automation.is-active {
    border-color: rgba(34,197,94,0.28);
    background: linear-gradient(135deg, rgba(22,101,52,0.18), rgba(17,24,39,0.72));
}

.sga-automation.is-paused {
    opacity: 0.72;
}

.sga-insight .mud-icon-root,
.sga-automation .mud-icon-root {
    color: #93c5fd;
    font-size: 26px;
}

.sga-insight em,
.sga-automation em {
    color: #c4b5fd;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
}

.sga-automation small {
    display: block;
    color: #b6c7df;
    font-size: 11px;
    line-height: 1.35;
    margin-top: 3px;
}

.sga-automation-control {
    display: grid;
    justify-items: end;
    gap: 8px;
}

.sga-toggle {
    position: relative;
    display: inline-flex;
    width: 46px;
    height: 24px;
    cursor: pointer;
}

.sga-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sga-toggle span {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: #4b5563;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
    transition: background 0.18s ease;
}

.sga-toggle span::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #e5e7eb;
    transition: transform 0.18s ease;
}

.sga-toggle input:checked + span {
    background: #2563eb;
}

.sga-toggle input:checked + span::after {
    transform: translateX(22px);
}

.sga-history-panel {
    border: 1px solid rgba(129,140,248,0.22);
    border-radius: 8px;
    background: rgba(15,23,42,0.36);
    padding: 12px;
}

.sga-history-list {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.sga-history-item {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 12px;
    align-items: start;
    border: 1px solid rgba(96,165,250,0.18);
    border-radius: 8px;
    background: rgba(17,24,39,0.68);
    padding: 11px 12px;
}

.sga-history-item strong {
    display: block;
    color: #fff;
    font-size: 13px;
}

.sga-history-item span,
.sga-history-item em {
    display: block;
    color: #b6c7df;
    font-size: 12px;
    font-style: normal;
    margin-top: 3px;
}

.sga-history-item small {
    color: #93c5fd;
    font-size: 11px;
    white-space: nowrap;
}

.sga-history-empty {
    border: 1px dashed rgba(147,197,253,0.34);
    border-radius: 8px;
    color: #bfdbfe;
    padding: 14px;
    text-align: center;
}

.sga-action-matrix {
    display: grid;
    grid-template-columns: repeat(4, minmax(110px, 1fr));
    gap: 10px;
}

.sga-action-stat {
    display: grid;
    gap: 6px;
    justify-items: start;
    min-height: 112px;
    padding: 12px;
    color: #e5e7eb;
    text-align: left;
    background: rgba(17,24,39,0.64);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    cursor: pointer;
}

.sga-action-stat .mud-icon-root {
    color: #93c5fd;
    font-size: 26px;
}

.sga-action-stat strong {
    color: #f8fafc;
    font-size: 26px;
    line-height: 1;
}

.sga-action-stat span {
    color: #cbd5e1;
    font-size: 12px;
}

.sga-action-stat.success {
    border-left: 3px solid #22c55e;
}

.sga-action-stat.info {
    border-left: 3px solid #3b82f6;
}

.sga-action-stat.warning {
    border-left: 3px solid #f59e0b;
}

.sga-action-stat.danger {
    border-left: 3px solid #ef4444;
}

.sga-approval-matrix {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.sga-approval-card {
    min-height: 118px;
    justify-items: center;
    align-content: center;
    text-align: center;
}

.sga-approval-card .mud-icon-root {
    font-size: 30px;
}

.sga-approval-detail-modal {
    width: min(1320px, 96vw);
}

.sga-approver-modal {
    width: min(1360px, 96vw);
}

.sga-approver-hero {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.sga-approver-hero > div {
    padding: 12px 14px;
    border: 1px solid rgba(147,197,253,0.22);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(15,23,42,0.82), rgba(37,99,235,0.18));
}

.sga-approver-hero span {
    display: block;
    color: #93c5fd;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.sga-approver-hero strong {
    display: block;
    margin-top: 5px;
    color: #f8fafc;
    font-size: 24px;
    line-height: 1;
}

.sga-embedded-panel {
    margin-bottom: 12px;
    background: rgba(15,23,42,0.36);
}

.sga-workflow-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 10px;
    background: rgba(15,23,42,0.44);
    border: 1px solid rgba(148,163,184,0.12);
    border-radius: 8px;
}

.sga-attachment-panel {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(147,197,253,0.16);
    border-radius: 8px;
    background: rgba(15,23,42,0.40);
}

.sga-attachment-header,
.sga-attachment-header > div,
.sga-attachment-upload,
.sga-attachment-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sga-attachment-header {
    justify-content: space-between;
    gap: 16px;
}

.sga-attachment-header .mud-icon-root {
    color: #93c5fd;
}

.sga-attachment-header strong,
.sga-attachment-item strong {
    color: #f8fafc;
}

.sga-attachment-header > div {
    min-width: 0;
    flex: 1;
}

.sga-attachment-header span,
.sga-attachment-item span,
.sga-attachment-item small,
.sga-attachment-empty {
    color: #9ca3af;
    font-size: 12px;
}

.sga-attachment-item small {
    color: #6b7280;
}

.sga-attachment-header .mud-chip-root {
    flex: 0 0 auto;
    min-width: 92px;
    justify-content: center;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 900;
    border: 1px solid rgba(147,197,253,0.45);
    box-shadow: 0 0 0 1px rgba(96,165,250,0.12), 0 8px 22px rgba(37,99,235,0.22);
}

.sga-attachment-header .mud-chip-content {
    color: #ffffff !important;
    opacity: 1;
}

.sga-attachment-upload {
    flex-wrap: wrap;
    padding: 10px;
    border: 1px dashed rgba(147,197,253,0.25);
    border-radius: 8px;
    background: rgba(17,24,39,0.45);
}

.sga-attachment-upload .file-field {
    flex: 1 1 280px;
    margin: 0;
}

.sga-attachment-upload .mud-input-control {
    min-width: min(360px, 100%);
    flex: 1 1 280px;
}

.sga-attachment-upload .mud-button-root {
    min-height: 42px;
    align-self: center;
}

.sga-attachment-list {
    display: grid;
    gap: 8px;
}

.sga-attachment-item {
    min-height: 46px;
    padding: 8px 10px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    background: rgba(17,24,39,0.52);
}

.sga-attachment-item > div {
    min-width: 0;
    flex: 1;
}

.sga-attachment-item strong,
.sga-attachment-item span,
.sga-attachment-item small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sga-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1800;
    display: grid;
    place-items: start center;
    padding: 28px;
    background: rgba(2, 6, 23, 0.88);
    backdrop-filter: blur(8px) saturate(0.72);
    overflow: auto;
}

.sga-form-modal {
    width: min(1180px, 96vw);
    max-height: calc(100vh - 56px);
    overflow: auto;
    box-shadow: 0 28px 90px rgba(0,0,0,0.55);
}

.sga-project-activities-modal {
    width: min(1480px, 98vw);
}

.sga-context-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(130px, 1fr));
    gap: 10px;
    margin: 12px 0;
}

.sga-context-summary div {
    border: 1px solid rgba(120,110,255,0.28);
    background: linear-gradient(135deg, rgba(23,35,64,0.92), rgba(15,22,38,0.96));
    border-radius: 8px;
    padding: 12px 14px;
}

.sga-context-summary span {
    display: block;
    color: #a9d0ff;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.sga-context-summary strong {
    display: block;
    color: #fff;
    font-size: 1.45rem;
    line-height: 1.1;
    margin-top: 4px;
}

.sga-inner-tabs {
    margin-top: 12px;
}

.sga-inner-tabs .mud-tabs-toolbar {
    min-height: 42px;
    border-bottom: 1px solid rgba(148,163,184,0.16);
    background: rgba(15,23,42,0.26);
}

.sga-inner-tabs .mud-tab {
    min-height: 42px;
}

.gio-rap-workspace {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.gio-rap-nav {
    position: sticky;
    top: 0;
    display: grid;
    gap: 6px;
    padding: 8px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.34);
}

.gio-rap-nav-item {
    justify-content: flex-start;
    min-height: 38px;
    border-radius: 6px;
    color: #cbd5e1;
    text-transform: none;
}

.gio-rap-nav-item .mud-button-label {
    justify-content: flex-start;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gio-rap-nav-item.is-active {
    background: rgba(124, 96, 239, 0.22);
    color: #ffffff;
    box-shadow: inset 3px 0 0 #7c60ef;
}

.gio-rap-content {
    min-width: 0;
}
.adm-upload-tabs .mud-tabs-panels {
    padding-top: 14px;
}

.adm-upload-extension-tabs {
    margin-top: 0;
}

.adm-upload-extension-tabs .mud-tabs-panels {
    padding-top: 12px;
}

.adm-upload-add-extension {
    display: grid;
    grid-template-columns: minmax(190px, 0.7fr) minmax(220px, 1fr) auto;
    gap: 12px;
    align-items: center;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.24);
    border-radius: 8px;
    padding: 12px 14px;
}

.adm-upload-data-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(300px, 1.15fr);
    gap: 18px;
    align-items: start;
}

.adm-upload-field-block,
.adm-upload-summary,
.adm-upload-extension-panel {
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.24);
    border-radius: 8px;
    padding: 14px;
}

.adm-upload-size-list,
.adm-upload-option-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
    gap: 4px 10px;
    margin-top: 8px;
}

.adm-upload-option-list {
    grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
}

.adm-upload-summary {
    margin-top: 14px;
}

.adm-upload-selected-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

@media (max-width: 760px) {
    .adm-upload-data-grid {
        grid-template-columns: 1fr;
    }

    .adm-upload-add-extension {
        grid-template-columns: 1fr;
    }
}

.sga-activity-tree {
    border: 1px solid rgba(129,140,248,0.22);
    background: rgba(15,23,42,0.34);
    border-radius: 8px;
    padding: 12px;
    margin: 12px 0;
}

.sga-activity-tree-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.sga-activity-tree-title span {
    color: #bfdbfe;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.74rem;
}

.sga-tree-node {
    margin-left: calc(var(--level) * 24px);
}

.sga-tree-row,
.sga-tree-empty {
    width: 100%;
    border: 1px solid rgba(96,165,250,0.18);
    background: linear-gradient(135deg, rgba(17,24,39,0.94), rgba(15,23,42,0.9));
    color: #e5f0ff;
    border-radius: 8px;
    padding: 10px 12px;
    margin: 6px 0;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    text-align: left;
    cursor: pointer;
}

.sga-tree-empty {
    grid-template-columns: auto 1fr;
}

.sga-tree-row:hover,
.sga-tree-empty:hover {
    border-color: rgba(96,165,250,0.46);
    background: linear-gradient(135deg, rgba(30,41,79,0.98), rgba(16,30,56,0.94));
}

.sga-tree-row strong,
.sga-tree-empty strong {
    display: block;
    color: #fff;
    font-weight: 900;
}

.sga-tree-row small,
.sga-tree-empty span {
    display: block;
    color: #a9d0ff;
    margin-top: 2px;
}

.sga-tree-row em {
    color: #dbeafe;
    font-style: normal;
    font-weight: 800;
}

.sga-tabs .mud-tabs-toolbar .mud-tab:nth-child(4),
.sga-tabs .mud-tabs-toolbar-content .mud-tab:nth-child(4) {
    display: none;
}

.sga-kpi-modal {
    width: min(980px, 94vw);
}

.sga-kpi-detail-summary {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(129,140,248,0.22);
    border-radius: 8px;
    background: rgba(15,23,42,0.46);
}

.sga-kpi-detail-summary strong {
    color: #f8fafc;
    font-size: 28px;
    line-height: 1;
}

.sga-kpi-detail-summary span {
    color: #bfdbfe;
    font-size: 12px;
    font-weight: 700;
}

.sga-kpi-cost-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.sga-kpi-cost-metrics > div {
    padding: 12px 14px;
    border: 1px solid rgba(147,197,253,0.2);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(15,23,42,0.78), rgba(30,64,175,0.18));
}

.sga-kpi-cost-metrics span {
    display: block;
    color: #93c5fd;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.sga-kpi-cost-metrics strong {
    display: block;
    margin-top: 5px;
    color: #f8fafc;
    font-size: 18px;
    line-height: 1.1;
}

.sga-kpi-cost-metrics small {
    display: block;
    margin-top: 4px;
    color: #bfdbfe;
    font-size: 11px;
    font-weight: 800;
}

.sga-kpi-cost-metrics .sga-kpi-cost-positive strong {
    color: #34d399;
}

.sga-kpi-cost-metrics .sga-kpi-cost-negative {
    border-color: rgba(248,113,113,0.42);
    background: linear-gradient(135deg, rgba(127,29,29,0.58), rgba(30,41,59,0.72));
}

.sga-kpi-cost-metrics .sga-kpi-cost-negative span,
.sga-kpi-cost-metrics .sga-kpi-cost-negative strong {
    color: #fecaca;
}

.sga-kpi-detail-section {
    margin-top: 14px;
}

.sga-kpi-detail-section h3 {
    margin: 0 0 8px;
    color: #f8fafc;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.sga-kpi-detail-list {
    display: grid;
    gap: 8px;
}

.sga-kpi-detail-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px 130px;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 11px 12px;
    color: #e5edff;
    text-align: left;
    border: 1px solid rgba(148,163,184,0.18);
    border-radius: 8px;
    background: rgba(15,23,42,0.72);
}

.sga-kpi-detail-row:not(.sga-kpi-detail-static) {
    cursor: pointer;
}

.sga-kpi-detail-row:not(.sga-kpi-detail-static):hover {
    border-color: rgba(129,140,248,0.55);
    background: rgba(37,99,235,0.18);
}

.sga-kpi-detail-row strong,
.sga-kpi-detail-row span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sga-kpi-detail-row span {
    margin-top: 3px;
    color: #93c5fd;
    font-size: 12px;
}

.sga-kpi-detail-row em,
.sga-kpi-detail-row small {
    color: #dbeafe;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
    text-align: center;
}

.sga-kpi-detail-row small {
    color: #cbd5e1;
}

.sga-kpi-cost-row {
    grid-template-columns: minmax(0, 1fr) 170px 170px;
}

.sga-kpi-cost-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.sga-kpi-cost-meta b {
    max-width: 180px;
    padding: 3px 7px;
    color: #dbeafe;
    font-size: 10px;
    font-weight: 800;
    border: 1px solid rgba(147,197,253,0.16);
    border-radius: 999px;
    background: rgba(37,99,235,0.18);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sga-kpi-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 120px;
    color: #bfdbfe;
    border: 1px dashed rgba(147,197,253,0.28);
    border-radius: 8px;
    background: rgba(15,23,42,0.36);
}

.sga-modal-title {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(147,197,253,0.18);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(15,23,42,0.88), rgba(37,99,235,0.18));
}

.sga-modal-title-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: #dbeafe;
    border: 1px solid rgba(147,197,253,0.28);
    border-radius: 8px;
    background: rgba(37,99,235,0.22);
}

.sga-modal-title-copy {
    min-width: 0;
}

.sga-modal-title-copy .mud-typography {
    color: #f8fafc;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
}

.sga-modal-title-copy span {
    display: block;
    margin-top: 3px;
    color: #bfdbfe;
    font-size: 12px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sga-form-wide {
    grid-column: 1 / -1;
}

.sga-form-modal .mud-input-control {
    margin-bottom: 4px;
}

.sga-form-modal .mud-input-label {
    color: #cfe3ff !important;
    font-weight: 700;
}

.sga-form-modal .mud-input-outlined-border {
    border-color: rgba(203,213,225,0.42) !important;
}

.sga-form-modal .mud-input-root {
    color: #f8fafc !important;
}

.sga-form-modal .mud-input-root input,
.sga-form-modal .mud-input-root textarea {
    color: #f8fafc !important;
    font-weight: 650;
}

.sga-form-modal .mud-input-root textarea {
    line-height: 1.45;
}

.sga-form-modal .mud-input-root input::placeholder,
.sga-form-modal .mud-input-root textarea::placeholder {
    color: rgba(219,234,254,0.62) !important;
}

.gma-page .adm-header {
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: #1a1d24;
    color: #e5e7eb;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.20);
}

.gma-page .adm-header h1 {
    color: #f8fafc;
    font-weight: 400;
}

.gma-page .adm-stack {
    gap: 14px;
}

.gma-page .adm-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}

.gma-page .adm-grid > .adm-table-panel {
    grid-column: 1 / -1;
    width: 100%;
}

.gma-page .adm-table-panel {
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: linear-gradient(180deg, rgba(31, 35, 44, 0.98), rgba(24, 28, 35, 0.98));
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.gma-page .grid-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: wrap;
    padding: 6px 0 12px;
}

.gma-page .grid-toolbar > .mud-button-root:first-child {
    margin-right: auto;
}

.gma-page .grid-toolbar > .mud-button-root,
.gma-page .grid-toolbar-actions > .mud-button-root {
    min-height: 32px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
}

.gma-page .grid-toolbar > .grid-columns-wrapper,
.gma-page .grid-toolbar > .mud-icon-button-root,
.gma-page .grid-toolbar > .mud-button-root:not(:first-child) {
    flex: 0 0 auto;
}

.gma-page .grid-toolbar-actions {
    gap: 8px;
}

.gma-page .grid-toolbar > .mud-button-root:first-child,
.gma-page .grid-toolbar-actions > .mud-button-root:first-child {
    min-width: 150px;
}

.gma-page .grid-toolbar .mud-icon-button,
.gma-page .grid-toolbar-actions .mud-icon-button {
    border: 1px solid rgba(148, 163, 184, 0.20);
    background: rgba(15, 23, 42, 0.44);
    border-radius: 8px;
}

.gma-page .adm-row-actions {
    width: 150px;
    min-width: 150px;
    white-space: nowrap;
}

.gma-page .adm-table-panel .mud-table-container {
    border-radius: 8px;
    width: 100%;
}

.gma-page .adm-table-panel .mud-table-root,
.gma-page .adm-table-panel .mud-table {
    width: 100%;
}

.gma-page .adm-tabs {
    margin-top: 14px;
}
.gma-page .adm-tabs {
    overflow: visible;
    border-radius: 10px;
    background: rgba(31, 35, 44, 0.96);
}

.gma-page .adm-tabs .mud-tabs-toolbar {
    height: auto;
    min-height: 0;
    padding: 8px 10px;
    background: rgba(53, 52, 62, 0.86);
}

.gma-page .adm-tabs .mud-tabs-toolbar-wrapper,
.gma-page .adm-tabs .mud-tabs-toolbar-content {
    width: 100%;
    overflow: visible !important;
}

.gma-page .adm-tabs .mud-tabs-toolbar-content {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    transform: none !important;
}

.gma-page .adm-tabs .mud-tabs-toolbar-wrapper > div,
.gma-page .adm-tabs .mud-tabs-toolbar-inner,
.gma-page .adm-tabs .mud-tabs-toolbar-scroll {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px;
    width: 100% !important;
    max-width: 100% !important;
    transform: none !important;
    overflow: visible !important;
}

.gma-page .adm-tabs .mud-tab {
    flex: 1 1 150px;
    max-width: 240px;
    min-width: 138px;
    min-height: 38px !important;
    margin: 0;
    padding: 0 14px !important;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.22);
    color: #dbeafe !important;
    font-size: 12px;
    font-weight: 800;
    justify-content: center;
}

.gma-page .adm-tabs .mud-tab:hover {
    border-color: rgba(139, 124, 255, 0.34);
    background: rgba(124, 108, 255, 0.16);
}

.gma-page .adm-tabs .mud-tab.mud-tab-active {
    border-color: rgba(139, 124, 255, 0.62);
    background: linear-gradient(180deg, rgba(124,108,255,0.32), rgba(124,108,255,0.16));
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255,255,255,0.08);
}

.gma-page .adm-tabs .mud-tab.mud-tab-active::after {
    left: 12px;
    right: 12px;
    bottom: -1px;
}

.gma-page .adm-tabs .mud-tab-scroll-button {
    display: none !important;
}

.gma-page .adm-tabs .mud-tabs-panels {
    padding: 14px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 0 0 10px 10px;
    background: rgba(24, 28, 35, 0.98);
}

.gma-page .adm-tabs .adm-tabs {
    margin-top: 0;
    border: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: none;
}

.gma-page .adm-tabs .adm-tabs .mud-tabs-toolbar {
    padding: 8px;
    background: rgba(42, 43, 51, 0.88);
}

.gma-page .adm-tabs .adm-tabs .mud-tab {
    flex: 1 1 190px;
    max-width: 280px;
}

.gma-page .adm-tabs .adm-tabs .mud-tabs-panels {
    padding: 12px;
}

.gma-page .gma-kpi {
    border: 1px solid rgba(148, 163, 184, 0.12);
    background:
        radial-gradient(circle at 20% 10%, rgba(34, 197, 94, 0.10), transparent 28%),
        linear-gradient(135deg, rgba(17, 24, 39, 0.96), rgba(15, 23, 42, 0.96));
}

.gma-page .gma-kpi:hover {
    transform: none;
    border-color: rgba(34, 197, 94, 0.30);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.24);
}

.gma-cadastro-modal {
    display: none;
}

.gma-cadastro-modal.is-open {
    position: fixed;
    top: 72px;
    left: 50%;
    z-index: 1500;
    display: block;
    width: min(1420px, calc(100vw - 32px));
    height: max-content !important;
    min-height: 0 !important;
    max-height: calc(100dvh - 104px);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 16px;
    transform: translateX(-50%);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 12px;
    background: rgba(31, 33, 37, 0.90) !important;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.72), 0 0 0 9999px rgba(2, 6, 23, 0.88);
}

.gma-cadastro-modal .adm-actions {
    justify-content: flex-end;
    padding-top: 6px;
    margin-top: 8px;
}

.gma-cadastro-modal .adm-form-grid,
.gma-cadastro-modal > .mud-input-control,
.gma-cadastro-modal > .mud-checkbox,
.gma-cadastro-modal > .file-field {
    margin-top: 12px;
}

.gma-cadastro-modal .adm-form-grid {
    grid-template-columns: repeat(3, minmax(260px, 1fr));
    align-content: start;
    align-items: start;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    background: #1f2125;
}

.gma-cadastro-modal .sga-modal-title {
    margin-bottom: 8px;
}

.gma-cadastro-modal.sga-form-modal,
.gma-cadastro-modal.sga-panel,
.gma-cadastro-modal.adm-panel {
    flex: 0 0 auto !important;
    align-self: auto !important;
}

.gma-cadastro-modal .mud-input-control,
.gma-cadastro-modal .mud-checkbox,
.gma-cadastro-modal .mud-form,
.gma-cadastro-modal .mud-grid,
.gma-cadastro-modal .mud-grid-item {
    min-height: 0 !important;
}

.gma-cadastro-modal textarea {
    max-height: 92px;
}

.gma-form-workflow {
    align-items: center;
    justify-content: flex-start;
    padding: 0;
}

.gma-form-workflow .mud-button-root {
    min-width: 150px;
}

.gma-cadastro-modal > .mud-input-control,
.gma-cadastro-modal > .mud-checkbox,
.gma-cadastro-modal > .file-field {
    display: block;
}

.sga-page {
    gap: 14px;
}

.sga-page .adm-header,
.sga-page .sga-header {
    min-height: 58px;
    margin-bottom: 12px;
    padding: 10px 16px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 8px;
    background: #1a1d24;
    color: #e5e7eb;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.20);
}

.sga-page .adm-header h1,
.sga-page .sga-header h1 {
    color: #f8fafc;
    font-size: 1.12rem;
    font-weight: 400;
    line-height: 1.18;
}

.sga-page .sga-command-bar {
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: linear-gradient(180deg, rgba(31, 35, 44, 0.98), rgba(24, 28, 35, 0.98));
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.16);
}

.sga-page .sga-command-actions .mud-button-root {
    min-height: 38px;
    min-width: 150px;
    border-radius: 8px;
}

.sga-page .gma-kpi {
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-left: 0;
    background:
        radial-gradient(circle at 20% 10%, rgba(34, 197, 94, 0.10), transparent 28%),
        linear-gradient(135deg, rgba(17, 24, 39, 0.96), rgba(15, 23, 42, 0.96));
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16);
}

.sga-page .gma-kpi:hover {
    transform: none;
    border-color: rgba(34, 197, 94, 0.30);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.24);
}

.sga-page .gma-kpi span {
    color: #bfdbfe;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.sga-page .gma-kpi strong {
    color: #f8fafc;
    font-size: 25px;
}

.sga-page .sga-kpi em {
    color: #cbd5e1;
}

.sga-page .sga-tabs {
    margin-top: 10px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(31, 35, 44, 0.98), rgba(24, 28, 35, 0.98));
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.sga-page .sga-tabs .mud-tabs-toolbar {
    background: rgba(53, 52, 62, 0.88);
}

.sga-page .sga-tabs .mud-tab {
    min-height: 44px;
    color: #dbeafe;
    font-weight: 800;
}

.sga-page .sga-tabs .mud-tab.mud-tab-active {
    border-radius: 8px 8px 0 0;
    background: rgba(124, 108, 255, 0.20);
    color: #fff;
}

.sga-page .sga-tabs .mud-tabs-panels {
    padding: 14px;
    background: rgba(24, 28, 35, 0.96);
}

.sga-page .sga-panel,
.sga-page .adm-table-panel,
.sga-page .dashboard-chart-panel,
.sga-page .dashboard-radar-panel {
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: linear-gradient(180deg, rgba(31, 35, 44, 0.98), rgba(24, 28, 35, 0.98)) !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.sga-page .grid-toolbar {
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
    padding: 6px 0 12px;
}

.sga-page .grid-toolbar-actions {
    gap: 8px;
}

.sga-page .grid-toolbar .mud-icon-button,
.sga-page .grid-toolbar-actions .mud-icon-button {
    border: 1px solid rgba(148, 163, 184, 0.20);
    background: rgba(15, 23, 42, 0.44);
    border-radius: 8px;
}

.sga-page .adm-table-panel .mud-table-container {
    border-radius: 8px;
}

.sga-page .dashboard-radar-card,
.sga-page .sga-risk-card,
.sga-page .sga-insight,
.sga-page .sga-automation,
.sga-page .sga-team-overview > div,
.sga-page .sga-support-overview > div {
    border-color: rgba(148, 163, 184, 0.14);
    background:
        radial-gradient(circle at 20% 8%, rgba(59, 130, 246, 0.10), transparent 30%),
        linear-gradient(135deg, rgba(17, 24, 39, 0.96), rgba(15, 23, 42, 0.94));
}

.sga-page .sga-form-modal {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 12px;
    background: rgba(31, 33, 37, 0.94) !important;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.72);
}

.sga-page .sga-modal-title {
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.86));
}

.sga-page .sga-inner-tabs .mud-tabs-toolbar {
    background: rgba(53, 52, 62, 0.88);
}

.sga-project-chart {
    display: grid;
    gap: 8px;
    max-height: 520px;
    overflow: auto;
    padding-right: 4px;
}

.sga-project-row {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(260px, 1.2fr) minmax(220px, auto);
    gap: 14px;
    align-items: center;
    width: 100%;
    min-height: 58px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 8px;
    background:
        radial-gradient(circle at 20% 8%, rgba(59, 130, 246, 0.08), transparent 30%),
        linear-gradient(135deg, rgba(17, 24, 39, 0.96), rgba(15, 23, 42, 0.94));
    color: #e5e7eb;
    cursor: pointer;
    padding: 10px 12px;
    text-align: left;
}

.sga-project-row:hover {
    border-color: rgba(96, 165, 250, 0.42);
    transform: none;
}

.sga-project-row-main strong {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sga-project-row-main span,
.sga-project-bar-head span,
.sga-project-row-metrics span {
    color: #bfdbfe;
    font-size: 11px;
}

.sga-project-bars {
    display: grid;
    gap: 6px;
}

.sga-project-bar-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.sga-project-bar-head strong {
    color: #fff;
    font-size: 12px;
}

.sga-project-row-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(64px, 1fr));
    gap: 6px;
    text-align: center;
}

.sga-project-row-metrics span {
    border-radius: 7px;
    background: rgba(15, 23, 42, 0.48);
    padding: 7px 8px;
    white-space: nowrap;
}

.sga-project-bars-chart {
    display: grid;
    gap: 10px;
}

.sga-project-bars-legend {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    color: #bfdbfe;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.sga-project-bars-legend strong {
    margin-left: auto;
    color: #f8fafc;
}
.sga-operational-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 36px;
    color: #c8d2f0;
    font-size: .86rem;
}

.sga-operational-summary span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border: 1px solid rgba(130, 105, 245, .35);
    border-radius: 6px;
    background: rgba(14, 22, 38, .72);
}

.sga-operational-summary b {
    color: #fff;
}

.sga-project-bars-legend i {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 6px;
    border-radius: 3px;
}

.sga-project-bars-legend i.open,
.sga-project-bar.open {
    background: #3b82f6;
}

.sga-project-bars-legend i.done,
.sga-project-bar.done {
    background: #22c55e;
}

.sga-project-bars-legend i.risk,
.sga-project-bar.risk {
    background: #f59e0b;
}

.sga-project-bar-row {
    display: grid;
    grid-template-columns: minmax(190px, 270px) minmax(0, 1fr) 52px;
    gap: 14px;
    align-items: center;
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.50);
    color: #e5e7eb;
    padding: 10px 12px;
    text-align: left;
}

.sga-project-bar-row:hover {
    border-color: rgba(96, 165, 250, 0.42);
    background: rgba(15, 23, 42, 0.74);
}

.sga-project-bar-name strong {
    display: block;
    overflow: hidden;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sga-project-bar-name span {
    color: #93c5fd;
    font-size: 11px;
}

.sga-project-bar-stack {
    display: grid;
    gap: 5px;
}

.sga-project-bar {
    min-width: 18px;
    height: 12px;
    border-radius: 999px;
    position: relative;
    opacity: 0.92;
}

.sga-project-bar span {
    position: absolute;
    right: -24px;
    top: -3px;
    color: #dbeafe;
    font-size: 11px;
    font-weight: 800;
}

.sga-project-bar-total {
    justify-self: end;
    color: #fff;
    font-size: 18px;
}

.sga-project-chart-note {
    border: 1px dashed rgba(147, 197, 253, 0.28);
    border-radius: 8px;
    color: #bfdbfe;
    font-size: 12px;
    padding: 10px 12px;
    text-align: center;
}

.adm-user-modal {
    width: min(1160px, 96vw);
}

.adm-user-email-row {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
}

.adm-user-email-row .mud-input-control {
    margin-bottom: 0;
}

.adm-user-upload-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
}

.adm-user-upload-grid .file-field {
    min-width: 0;
}

.adm-user-combo-popover,
.mud-popover.adm-user-combo-popover {
    z-index: 3000 !important;
    max-width: min(640px, calc(100vw - 48px)) !important;
    transform-origin: top left !important;
}

.adm-user-combo-popover .mud-list {
    background: #202329;
    border: 1px solid rgba(148, 163, 184, 0.32);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.52);
    max-height: 260px;
    overflow-y: auto;
}

.adm-user-combo-popover .mud-list-item {
    color: #e5e7eb;
}

.adm-user-combo-popover .mud-list-item:hover,
.adm-user-combo-popover .mud-list-item.mud-selected-item {
    background: rgba(124, 108, 255, 0.22);
    color: #ffffff;
}

@media (max-width: 860px) {
    .adm-user-email-row,
    .adm-user-upload-grid {
        grid-template-columns: 1fr;
    }
}

.sga-title-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mud-snackbar-location-top-right,
.mud-snackbar-location-top-left,
.mud-snackbar-location-top-center,
.mud-snackbar-location-bottom-right,
.mud-snackbar-location-bottom-left,
.mud-snackbar-location-bottom-center,
.mud-snackbar-container {
    z-index: 9000 !important;
}

.sga-kanban {
    display: grid;
    grid-template-columns: repeat(5, minmax(230px, 1fr));
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.sga-kanban-column {
    min-width: 230px;
    background: rgba(17,24,39,0.66);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 10px;
}

.sga-kanban-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 32px;
    margin-bottom: 10px;
}

.sga-kanban-header strong {
    color: #f8fafc;
    font-size: 13px;
}

.sga-kanban-header span {
    display: grid;
    place-items: center;
    min-width: 26px;
    height: 24px;
    color: #f8fafc;
    background: rgba(124,108,255,0.18);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.sga-kanban-card {
    display: grid;
    gap: 8px;
    margin-bottom: 10px;
    padding: 12px;
    background: rgba(31,33,37,0.94);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
}

.sga-kanban-card.critical {
    border-left: 3px solid #ef4444;
}

.sga-kanban-card.high {
    border-left: 3px solid #f97316;
}

.sga-kanban-card.medium {
    border-left: 3px solid #f59e0b;
}

.sga-kanban-card.normal {
    border-left: 3px solid #22c55e;
}

.sga-card-top,
.sga-card-progress,
.sga-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.sga-card-top span {
    color: #93c5fd;
    font-size: 12px;
    font-weight: 700;
}

.sga-card-top em {
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
}

.sga-kanban-card strong {
    color: #f8fafc;
    line-height: 1.35;
}

.sga-kanban-card p {
    margin: 0;
    color: #9ca3af;
    font-size: 12px;
}

.sga-card-progress .dashboard-bar-track {
    flex: 1;
}

.sga-card-progress span,
.sga-card-meta span,
.sga-card-meta b {
    color: #cbd5e1;
    font-size: 12px;
}

.sga-card-meta b {
    color: #f8fafc;
}

.sga-gantt-panel {
    overflow-x: auto;
}

.sga-gantt-scale {
    display: grid;
    grid-template-columns: 220px repeat(6, minmax(110px, 1fr));
    min-width: 920px;
    margin-bottom: 8px;
    color: #9ca3af;
    font-size: 12px;
}

.sga-gantt-scale span:first-child {
    grid-column: 2;
}

.sga-gantt-row {
    display: grid;
    grid-template-columns: 220px minmax(660px, 1fr);
    gap: 14px;
    align-items: center;
    min-width: 920px;
    min-height: 48px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.sga-gantt-label strong,
.sga-gantt-label span {
    display: block;
}

.sga-gantt-label strong {
    color: #f8fafc;
    font-size: 13px;
}

.sga-gantt-label span {
    color: #9ca3af;
    font-size: 12px;
    margin-top: 3px;
}

.sga-gantt-track {
    height: 28px;
    padding: 4px;
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 16.66% 100%;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
}

.sga-gantt-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 18px;
    min-width: 36px;
    border-radius: 6px;
    padding-right: 8px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.sga-gantt-bar.normal {
    background: linear-gradient(90deg, #2563eb, #22c55e);
}

.sga-gantt-bar.high {
    background: linear-gradient(90deg, #7c6cff, #f97316);
}

.sga-gantt-bar.critical {
    background: linear-gradient(90deg, #ef4444, #f97316);
}

.sga-gantt-bar.planned {
    background: linear-gradient(90deg, #64748b, #3b82f6);
}

.sga-team-modal {
    width: min(1180px, 96vw);
}

.sga-support-modal {
    width: min(960px, 96vw);
}

.sga-team-title {
    align-items: center;
    gap: 16px;
}

.sga-team-title > div {
    min-width: 0;
}

.sga-team-title .mud-button-root {
    flex: 0 0 auto;
}

.sga-team-overview {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
}

.sga-support-hub {
    margin-bottom: 12px;
}

.sga-support-overview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.sga-support-overview > div {
    position: relative;
    min-height: 104px;
    padding: 14px 14px 12px;
    overflow: hidden;
    border: 1px solid rgba(147,197,253,0.22);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(37,99,235,0.14), rgba(15,23,42,0.76)),
        rgba(15,23,42,0.62);
}

.sga-support-overview .mud-icon-root {
    position: absolute;
    top: 12px;
    right: 12px;
    color: #93c5fd;
    opacity: 0.9;
    font-size: 22px;
}

.sga-support-overview span {
    display: block;
    color: #93c5fd;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.sga-support-overview strong {
    display: block;
    margin-top: 14px;
    color: #f8fafc;
    font-size: 26px;
    line-height: 1;
}

.sga-support-overview small {
    display: block;
    margin-top: 8px;
    color: #cbd5e1;
    font-size: 11px;
    line-height: 1.25;
}

.sga-team-overview > div {
    position: relative;
    min-height: 104px;
    padding: 14px 14px 12px;
    overflow: hidden;
    border: 1px solid rgba(147,197,253,0.22);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(37,99,235,0.14), rgba(15,23,42,0.76)),
        rgba(15,23,42,0.62);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.sga-team-overview > div::after {
    content: "";
    position: absolute;
    right: -22px;
    bottom: -28px;
    width: 86px;
    height: 86px;
    border: 1px solid rgba(124,108,255,0.18);
    border-radius: 50%;
}

.sga-team-overview .mud-icon-root {
    position: absolute;
    top: 12px;
    right: 12px;
    color: #93c5fd;
    opacity: 0.9;
    font-size: 22px;
}

.sga-team-overview span {
    display: block;
    color: #93c5fd;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.sga-team-overview strong {
    display: block;
    margin-top: 14px;
    color: #f8fafc;
    font-size: 26px;
    line-height: 1;
}

.sga-team-overview small {
    display: block;
    margin-top: 8px;
    color: #cbd5e1;
    font-size: 11px;
    line-height: 1.25;
}

.sga-team-card {
    min-height: 150px;
}

.sga-team-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.sga-team-metrics small {
    color: #cbd5e1;
    background: rgba(15,23,42,0.62);
    border-radius: 6px;
    padding: 6px;
    text-align: center;
}

.sga-empty-state {
    min-height: 72px;
    display: grid;
    place-items: center;
    color: #94a3b8;
    border: 1px dashed rgba(147,197,253,0.22);
    border-radius: 8px;
    background: rgba(15,23,42,0.36);
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 1400px) {
    .sga-team-overview {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .sga-support-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .sga-team-title {
        align-items: stretch;
    }

    .sga-team-title .mud-button-root {
        width: 100%;
    }

    .sga-team-overview {
        grid-template-columns: 1fr;
    }

    .sga-support-overview {
        grid-template-columns: 1fr;
    }
}

.sga-member-panel {
    grid-column: 1 / -1;
    display: grid;
    gap: 10px;
    padding: 12px;
    background: rgba(15,23,42,0.46);
    border: 1px solid rgba(148,163,184,0.12);
    border-radius: 8px;
}

.sga-member-panel > span {
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 700;
}

.sga-member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 8px;
}

.sga-member-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    color: #e5e7eb;
    padding: 7px 9px;
    border-radius: 6px;
    background: rgba(31,41,55,0.62);
    border: 1px solid rgba(255,255,255,0.08);
}

.sga-workflow-step {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 58px;
    padding: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    background: rgba(17,24,39,0.58);
}

.sga-workflow-step > span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: #fff;
    background: linear-gradient(135deg, #7c6cff, #2563eb);
    border-radius: 50%;
    font-weight: 700;
}

.sga-workflow-step strong,
.sga-workflow-step em {
    display: block;
}

.sga-workflow-step strong {
    color: #f8fafc;
    font-size: 13px;
}

.sga-workflow-step em {
    color: #9ca3af;
    font-size: 12px;
    font-style: normal;
}

.sga-workflow-step b {
    color: #c4b5fd;
    font-size: 12px;
}

.sga-risk-card:hover,
.sga-insight:hover,
.sga-automation:hover,
.sga-kanban-card:hover,
.sga-team-card:hover {
    border-color: rgba(147,197,253,0.32);
    filter: brightness(1.05);
}

@media (max-width: 1100px) {
    .gio-rap-workspace {
        grid-template-columns: 1fr;
    }

    .gio-rap-nav {
        position: static;
        grid-template-columns: repeat(3, minmax(150px, 1fr));
    }
    .adm-grid,
    .adm-form-grid,
    .gma-kpi-grid,
    .gma-support-grid,
    .dashboard-radar-grid,
    .sga-executive-grid,
    .sga-command-bar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .gio-rap-nav {
        display: flex;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .gio-rap-nav-item {
        flex: 0 0 190px;
    }
    .ginoma-content {
        padding: 14px;
    }

    .adm-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .adm-page {
        padding: 12px;
    }

    .sga-header-actions,
    .sga-command-actions,
    .sga-panel-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .sga-month-grid {
        grid-template-columns: repeat(3, minmax(70px, 1fr));
    }

    .sga-insight,
    .sga-automation {
        grid-template-columns: 32px minmax(0, 1fr);
    }

    .sga-insight em,
    .sga-automation em {
        grid-column: 2;
    }
}

/* Compactação global de tipografia do sistema */
html,
body {
    font-size: 14px;
}

.mud-typography,
.mud-input,
.mud-input-slot,
.mud-input-control,
.mud-select,
.mud-table,
.mud-table-cell,
.mud-list-item-text,
.mud-nav-link-text,
.mud-button-root,
.mud-checkbox,
.mud-radio,
.mud-chip,
.mud-menu-item,
.mud-pagination,
.mud-tooltip-root {
    font-size: 0.875rem !important;
}

.mud-tooltip {
    z-index: 9500 !important;
}

/*
 * O MudBlazor posiciona o popover do tooltip fora da grade. Mantê-lo fixo ao
 * viewport impede que o texto temporário aumente a área rolável da página e
 * faça as barras horizontal/vertical aparecerem durante o hover das ações.
 */
.mud-popover.mud-tooltip {
    position: fixed !important;
}

/* Padrão único de tooltip do Ginoma, baseado no tooltip do Chat. */
.mud-tooltip.mud-tooltip-default {
    max-width: 240px !important;
    padding: 4px 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 4px !important;
    color: #f8fafc !important;
    background: #111827 !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28) !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    letter-spacing: 0 !important;
    text-align: center !important;
}

.mud-tooltip.mud-tooltip-default.mud-tooltip-arrow::after {
    border-color: #111827 transparent transparent transparent !important;
}

.mud-tooltip.mud-tooltip-default.mud-tooltip-arrow::before {
    border-color: rgba(255, 255, 255, 0.14) transparent transparent transparent !important;
}

.ginoma-apex-card .apexcharts-tooltip {
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 4px !important;
    color: #f8fafc !important;
    background: #111827 !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28) !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
}

.ginoma-apex-card .apexcharts-tooltip-title {
    border-bottom: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: #f8fafc !important;
    background: #111827 !important;
    font: inherit !important;
}

.mud-input > input,
.mud-input textarea,
.mud-select .mud-input-slot,
.mud-input-control input,
.mud-input-control textarea {
    font-size: 0.875rem !important;
    line-height: 1.25 !important;
}

.mud-input-control > .mud-input-control-input-container > .mud-input-label,
.mud-input-label,
.mud-field-label {
    font-size: 0.75rem !important;
}

.mud-button-root {
    font-size: 0.78rem !important;
    letter-spacing: 0 !important;
}

.mud-tab {
    font-size: 0.875rem !important;
    min-height: 42px !important;
}

.mud-table-head .mud-table-cell,
.mud-table-body .mud-table-cell,
.mud-table-foot .mud-table-cell {
    font-size: 0.8125rem !important;
}

.adm-header h1 {
    font-size: 1.12rem;
    font-weight: 400;
}

.dashboard-chart-panel .mud-typography-h6,
.dashboard-radar-header .mud-typography-h6 {
    font-size: 1rem !important;
}

.gma-kpi span {
    font-size: 11px;
}

.gma-kpi strong {
    font-size: 24px;
}

.dashboard-radar-header strong {
    font-size: 26px;
}

.sge-oleo-page {
    gap: 14px;
}

.sge-dashboard-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0 -4px;
    padding: 10px 12px;
    border-left: 4px solid #7c55ed;
    background: #202228;
    color: #eef3ff;
    font-size: 13px;
    font-weight: 900;
}

.sge-oil-dashboard-grid {
    margin-top: 0;
}

.sge-oil-chart-card .sge-static-bar span {
    background: #0f86b7;
}

.sge-oil-chart-card .sge-static-bar:hover span {
    background: #13a3dd;
}

.sge-equipment-oil-tab .gma-kpi-grid {
    grid-template-columns: repeat(4, minmax(120px, 1fr));
}

.sge-oil-panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.sge-oil-support-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr;
    gap: 12px;
}

.sge-oil-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sge-oil-chip-list span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 9px;
    border: 1px solid #3d4352;
    background: #24262d;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.sge-oil-chip-list small {
    color: #b7c3dc;
    font-weight: 700;
}

.sge-oil-list {
    display: grid;
    gap: 8px;
    max-height: 210px;
    overflow: auto;
}

.sge-oil-list > div:not(.sge-empty) {
    display: grid;
    gap: 2px;
    padding: 8px 10px;
    border: 1px solid #343946;
    background: #24262d;
}

.sge-oil-list strong,
.sge-oil-list small {
    display: block;
}

.sge-oil-list small {
    color: #aeb8ce;
}


.sge-oleo-filters {
    grid-template-columns: repeat(4, minmax(160px, 1fr)) auto;
}

.sge-oleo-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
    gap: 14px;
}

.sge-oleo-panel {
    background: #1f2025;
    border: 1px solid #30333c;
    min-height: 360px;
    overflow: hidden;
}

.sge-oleo-table-wrap {
    overflow: auto;
    max-height: 560px;
}

.sge-oleo-table {
    width: 100%;
    border-collapse: collapse;
    color: #e8edf8;
}

.sge-oleo-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #2b2d35;
    color: #cbd7f2;
    font-size: 11px;
    font-weight: 800;
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid #3a3e49;
}

.sge-oleo-table td {
    padding: 10px;
    border-bottom: 1px solid #30333c;
    font-size: 12px;
    vertical-align: middle;
}

.sge-oleo-table tbody tr {
    cursor: pointer;
}

.sge-oleo-table tbody tr:hover,
.sge-oleo-table tbody tr.is-selected {
    background: #25283a;
}

.sge-oleo-table td strong,
.sge-oleo-table td small {
    display: block;
}

.sge-oleo-table td small {
    color: #aeb8ce;
    margin-top: 3px;
}

.sge-oleo-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
}

.sge-oleo-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid #4d5364;
    background: #232630;
    color: #eef3ff;
}

.sge-oleo-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
}

.sge-oleo-status.is-high {
    background: #7f1d1d;
    color: #fecaca;
}

.sge-oleo-status.is-medium {
    background: #78350f;
    color: #fde68a;
}

.sge-oleo-status.is-normal {
    background: #064e3b;
    color: #a7f3d0;
}

.sge-oleo-status.is-empty {
    background: #374151;
    color: #d1d5db;
}

.sge-oleo-summary {
    display: grid;
    gap: 4px;
    padding: 14px 18px;
    border-bottom: 1px solid #30333c;
    color: #dbe6ff;
}

.sge-oleo-summary strong {
    font-size: 16px;
}

.sge-oleo-summary span {
    color: #aeb8ce;
    font-size: 12px;
}

.sge-oleo-result-list {
    display: grid;
    gap: 8px;
    padding: 14px;
    max-height: 500px;
    overflow: auto;
}

.sge-oleo-result {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) 80px 80px 80px 80px;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border: 1px solid #343946;
    background: #24262d;
}

.sge-oleo-result strong,
.sge-oleo-result span {
    display: block;
}

.sge-oleo-result span {
    color: #aeb8ce;
    font-size: 11px;
    margin-top: 2px;
}

.sgm-page .adm-header {
    align-items: center;
}

.sgm-page:has(.sgm-risk-matrix-panel) > .adm-header {
    margin-bottom: 8px;
}

.sgm-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sgm-loading-panel {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-color: rgba(96, 165, 250, 0.30);
    background: rgba(15, 23, 42, 0.72);
}

.sgm-loading-panel div {
    display: grid;
    gap: 2px;
}

.sgm-loading-panel strong {
    color: #eef4ff;
    font-size: 14px;
}

.sgm-loading-panel span {
    color: #aeb8ce;
    font-size: 12px;
}

.sgm-kpi-grid {
    grid-template-columns: repeat(7, minmax(130px, 1fr));
}

.sgm-cost-kpi-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 0.75rem;
}

.sgm-cost-kpi-grid .gma-kpi {
    min-width: 0;
}

.sgm-cost-kpi-grid .gma-kpi span {
    white-space: normal;
}

.sgm-cost-kpi-grid .gma-kpi strong {
    font-size: clamp(1.35rem, 1.8vw, 2rem);
}

@media (max-width: 1400px) {
    .sgm-cost-kpi-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .sgm-cost-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.sgm-kpi-filter {
    border: 1px solid transparent;
}

.sgm-kpi-filter.is-active {
    border-color: #7c55ed;
    box-shadow: inset 0 0 0 1px rgba(124, 85, 237, 0.32), 0 10px 26px rgba(0, 0, 0, 0.20);
}

.sgm-os-kpi-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.sgm-os-kpi-grid .gma-kpi {
    min-width: 0;
    flex: 1 1 0;
    min-height: 58px;
    padding: 8px 10px;
    gap: 3px;
}

.sgm-os-kpi-grid .gma-kpi span {
    font-size: 10px;
    line-height: 1.1;
    text-align: center;
}

.sgm-os-kpi-grid .gma-kpi strong {
    font-size: 19px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.sgm-section-tabs {
    margin-top: 0;
}

.sgm-page .sgm-section-tabs .sgm-support-tabs {
    background: linear-gradient(135deg, rgba(61, 64, 76, 0.98), rgba(47, 51, 62, 0.94));
    border-color: rgba(203, 213, 225, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.sgm-page .sgm-section-tabs .sgm-support-tabs > .mud-tabs-toolbar {
    min-height: 42px;
    background: rgba(255, 255, 255, 0.035);
}

.sgm-page .sgm-section-tabs .sgm-support-tabs > .mud-tabs-toolbar .mud-tab {
    min-height: 34px !important;
    color: #e2e8f0 !important;
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(203, 213, 225, 0.10);
}

.sgm-page .sgm-section-tabs .sgm-support-tabs > .mud-tabs-toolbar .mud-tab:hover {
    color: #ffffff !important;
    background: rgba(96, 165, 250, 0.16);
    border-color: rgba(147, 197, 253, 0.26);
}

.sgm-page .sgm-section-tabs .sgm-support-tabs > .mud-tabs-toolbar .mud-tab.mud-tab-active {
    color: #ffffff !important;
    background: linear-gradient(180deg, rgba(96, 165, 250, 0.30), rgba(59, 130, 246, 0.16));
    border-color: rgba(147, 197, 253, 0.48);
}

.sgm-page .sgm-section-tabs .sgm-support-tabs > .mud-tabs-toolbar .mud-tab.mud-tab-active::after {
    background: linear-gradient(90deg, #93c5fd, #60a5fa);
    box-shadow: 0 0 12px rgba(96, 165, 250, 0.42);
}

.sgm-page .sgm-section-tabs .sgm-support-tabs > .mud-tabs-panels {
    background: #20252d;
    border-top-color: rgba(203, 213, 225, 0.12);
}

.sgm-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(360px, 1.2fr);
    gap: 14px;
}

.sgm-command-panel,
.sgm-module-panel,
.sgm-form-panel {
    display: grid;
    gap: 14px;
}

.sgm-status-flow {
    display: grid;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    gap: 10px;
}

.sgm-status-node {
    display: grid;
    gap: 5px;
    min-height: 82px;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.42);
}

.sgm-status-node span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    font-weight: 900;
}

.sgm-status-node strong {
    color: #eef4ff;
    font-size: 13px;
}

.sgm-action-strip,
.sgm-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sgm-section-title {
    justify-content: space-between;
}

.sgm-section-title .mud-typography-caption {
    color: #aeb8ce;
}

.sgm-modal-title-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.sgm-field-span-all {
    grid-column: 1 / -1;
}

.sgm-field-span-two {
    grid-column: span 2;
}

.sgm-pmo-company-picker {
    padding: 10px 12px 6px;
    border: 1px solid rgba(124, 92, 255, .75);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(124, 92, 255, .16), rgba(24, 32, 48, .38));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04), 0 0 0 1px rgba(124, 92, 255, .12);
}

.sgm-program-grid {
    grid-template-columns: repeat(4, minmax(140px, 1fr));
}

.sgm-pre-service-panel {
    gap: 16px;
}

.sgm-pre-service-section {
    display: grid;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.18);
}

.sgm-pre-service-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px 14px;
    align-items: center;
}

.sgm-pre-service-fields.one {
    grid-template-columns: 1fr;
}

.sgm-pre-wide {
    grid-column: span 2;
}

.sgm-pre-service-section .mud-checkbox {
    align-self: center;
}

.sgm-team-form {
    grid-template-columns: minmax(280px, 1fr) auto;
    align-items: center;
}

.sgm-team-form-external {
    grid-template-columns: repeat(4, minmax(160px, 1fr)) auto;
    align-items: center;
}

.sgm-team-form .mud-button-root,
.sgm-team-form-external .mud-button-root {
    min-height: 40px;
}

.sgm-activity-form {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
}

@media (max-width: 1100px) {
    .gio-rap-workspace {
        grid-template-columns: 1fr;
    }

    .gio-rap-nav {
        position: static;
        grid-template-columns: repeat(3, minmax(150px, 1fr));
    }
    .sgm-program-grid {
        grid-template-columns: 1fr;
    }

    .sgm-pre-wide {
        grid-column: 1 / -1;
    }

    .sgm-team-form,
    .sgm-team-form-external,
    .sgm-activity-form {
        grid-template-columns: 1fr;
    }
}

.sgm-page .sga-form-modal .mud-input-label,
.sgm-page .sga-form-modal .mud-field-label {
    font-size: 0.82rem !important;
    font-weight: 500 !important;
}

.sgm-page .sga-form-modal .mud-input-root,
.sgm-page .sga-form-modal .mud-input-root input,
.sgm-page .sga-form-modal .mud-input-root textarea,
.sgm-page .sga-form-modal .mud-select .mud-input-slot {
    font-weight: 400 !important;
}

.sgm-page .sga-form-modal .mud-input-root input,
.sgm-page .sga-form-modal .mud-input-root textarea {
    color: #f8fafc !important;
}

.sgm-autocomplete-popover,
.mud-popover.sgm-autocomplete-popover {
    z-index: 2600 !important;
}

.gma-combo-popover,
.mud-popover.gma-combo-popover {
    z-index: 6000 !important;
}

.gma-combo-popover .mud-list {
    background: #202329;
    border: 1px solid rgba(148, 163, 184, 0.32);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.52);
    max-height: 320px;
    overflow: auto;
}

.gma-combo-popover .mud-list-item {
    color: #e5e7eb;
}

.gma-combo-popover .mud-list-item:hover,
.gma-combo-popover .mud-list-item.mud-selected-item {
    background: rgba(124, 108, 255, 0.22);
    color: #ffffff;
}

.sgm-autocomplete-popover .mud-list {
    background: #202329;
    border: 1px solid rgba(148, 163, 184, 0.32);
    box-shadow: 0 18px 42px rgba(0,0,0,0.52);
}

.mo-combo-field {
    position: relative;
    width: 100%;
}

.mo-combo-field label {
    position: absolute;
    top: -7px;
    left: 14px;
    z-index: 2;
    padding: 0 5px;
    background: #202329;
    color: #cbd5e1;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}

.mo-combo-input {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 38px;
    border: 1px solid rgba(148, 163, 184, 0.56);
    border-radius: 4px;
    background: #202329;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.mo-combo-input:focus-within {
    border-color: #7c6cff;
    box-shadow: 0 0 0 1px rgba(124, 108, 255, 0.35);
}

.mo-combo-input input {
    width: 100%;
    min-width: 0;
    height: 36px;
    padding: 0 66px 0 14px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #f8fafc;
    font: inherit;
    font-size: 0.875rem;
}

.mo-combo-input input::placeholder {
    color: #94a3b8;
    opacity: 0.9;
}

.mo-text-field .mo-combo-input input {
    padding-right: 14px;
}

.mo-combo-icon {
    position: absolute;
    color: #aeb4c2;
}

.mo-combo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.mo-combo-toggle {
    right: 8px;
}

.mo-combo-clear {
    right: 34px;
}

.mo-combo-icon:hover {
    color: #f8fafc;
}

.mo-combo-list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 2900;
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid rgba(148, 163, 184, 0.32);
    border-radius: 4px;
    background: #202329;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.52);
}

.mo-combo-list button {
    display: block;
    width: 100%;
    min-height: 40px;
    padding: 0 14px;
    border: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    background: transparent;
    color: #e5e7eb;
    font: inherit;
    font-size: 0.875rem;
    text-align: left;
    cursor: pointer;
}

.mo-combo-list button:hover,
.mo-combo-list button:focus {
    outline: 0;
    background: rgba(124, 108, 255, 0.22);
    color: #ffffff;
}

.sgm-support-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(160px, 1fr));
    gap: 12px;
}

.sgm-support-card {
    display: grid;
    grid-template-columns: 32px 1fr auto;
    align-items: center;
    gap: 10px;
    min-height: 66px;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.42);
}

.sgm-support-card span {
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 800;
}

.sgm-support-card strong {
    color: #fff;
    font-size: 20px;
}

.sgm-classification-color-swatch {
    display: inline-block;
    width: 42px;
    height: 22px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    vertical-align: middle;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.35), 0 3px 8px rgba(0, 0, 0, 0.2);
}

.sgm-classification-color-option {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 140px;
}

.sgm-classification-color-option-swatch {
    display: inline-block;
    width: 30px;
    height: 18px;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 5px;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.3);
}

.sgm-module-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #eef4ff;
}

.sgm-ss-modal {
    width: min(1280px, calc(100vw - 40px));
    max-height: calc(100vh - 40px);
    overflow: auto;
}

.sgm-executor-modal {
    width: min(720px, calc(100vw - 40px));
    max-height: calc(100vh - 44px);
    overflow: auto;
}

.sgm-executor-form {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    margin-top: 14px;
}

.sgm-executor-form .mud-input-control:last-child {
    grid-column: 1 / -1;
}

.sgm-row-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
}

.sgm-toolbar-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.sgm-page .grid-toolbar {
    flex-wrap: nowrap;
    align-items: center;
}

.sgm-page .grid-toolbar-left {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
}

.sgm-page .grid-toolbar-actions {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.sgm-page .grid-global-search {
    max-width: 460px;
}

.sgm-base-os-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 260px;
    max-width: 420px;
}

.sgm-base-os-chips {
    display: flex;
    align-items: center;
    gap: 5px;
    overflow: hidden;
    white-space: nowrap;
}

.sgm-base-os-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    max-width: 96px;
    height: 22px;
    padding: 0 8px;
    border: 1px solid rgba(129, 140, 248, 0.45);
    border-radius: 6px;
    background: rgba(37, 99, 235, 0.16);
    color: #dbeafe;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sgm-base-os-chip.is-more {
    flex: 0 0 auto;
    border-color: rgba(125, 92, 255, 0.65);
    background: rgba(125, 92, 255, 0.22);
    color: #ffffff;
}

.sgm-base-os-summary {
    color: #aeb9d2;
    font-size: 11px;
    line-height: 1;
}

@media (max-width: 900px) {
    .sgm-page .grid-toolbar {
        flex-wrap: wrap;
    }

    .sgm-page .grid-toolbar-actions {
        justify-content: flex-start;
        margin-left: 0;
    }
}

.sgm-file-upload {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sgm-file-picker {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.sgm-file-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.sgm-file-picker-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 6px;
    border: 1px solid rgba(129, 140, 248, 0.55);
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.92), rgba(79, 70, 229, 0.92));
    color: #fff;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
    cursor: pointer;
}

.sgm-file-picker:hover .sgm-file-picker-button {
    border-color: rgba(165, 180, 252, 0.85);
    filter: brightness(1.08);
}

.sgm-file-selected {
    color: #cbd5e1;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sgm-view-modal {
    width: min(860px, calc(100vw - 40px));
    max-height: calc(100vh - 44px);
    overflow: auto;
    padding: 0;
    border-color: rgba(96, 165, 250, 0.35);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
}

.sgm-view-header {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 22px;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.46), rgba(15, 23, 42, 0.84));
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.sgm-view-header .mud-typography-h4 {
    color: #fff;
    font-size: 30px;
    font-weight: 900;
    line-height: 1.1;
}

.sgm-view-header .mud-typography-subtitle1 {
    color: #c7d2fe;
    margin-top: 4px;
    font-weight: 700;
}

.sgm-view-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 8px;
    background: rgba(37, 99, 235, 0.30);
    border: 1px solid rgba(147, 197, 253, 0.36);
    color: #bfdbfe;
}

.sgm-view-status-line {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 16px 22px 0;
    color: #dbeafe;
    font-size: 14px;
    font-weight: 800;
}

.sgm-view-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 18px 22px;
}

.sgm-view-info {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 4px 10px;
    align-items: center;
    min-height: 78px;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.34);
}

.sgm-view-info .mud-icon-root {
    grid-row: 1 / span 2;
    color: #60a5fa;
}

.sgm-view-info span {
    color: #aeb8ce;
    font-size: 12px;
    font-weight: 800;
}

.sgm-view-info strong {
    color: #fff;
    font-size: 15px;
    line-height: 1.25;
}

.sgm-view-description {
    margin: 0 22px 18px;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    background: rgba(2, 6, 23, 0.28);
}

.sgm-view-description span {
    display: block;
    color: #93c5fd;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 10px;
}

.sgm-view-description p {
    margin: 0;
    color: #f8fafc;
    font-size: 18px;
    line-height: 1.55;
}

.sgm-view-actions {
    justify-content: flex-end;
    padding: 0 22px 22px;
}

@media (max-width: 900px) {
    .sgm-view-grid {
        grid-template-columns: 1fr;
    }
}

.sge-empty {
    padding: 28px;
    color: #b9c7e6;
    text-align: center;
}

.sge-oleo-modal {
    width: min(1180px, calc(100vw - 40px));
    max-height: calc(100vh - 40px);
    overflow: auto;
}

.sge-oleo-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
    gap: 14px 12px;
    padding: 14px;
}

.sge-oleo-form-section {
    grid-column: 1 / -1;
    border-top: 1px solid #333846;
    padding-top: 12px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.sge-oleo-form-section:first-child {
    border-top: 0;
    padding-top: 0;
}

.sge-oleo-form-section strong {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-left: 4px solid #7c55ed;
    background: #252734;
}

.sge-oleo-form label,
.sge-oleo-ensaio-grid label {
    display: grid;
    gap: 5px;
    color: #dbe6ff;
    font-size: 11px;
    font-weight: 800;
}

.sge-oleo-form label.is-wide {
    grid-column: 1 / -1;
}

.sge-oleo-form .mud-input-control {
    margin: 0;
}

.sge-oleo-form .mud-input-root {
    min-height: 34px;
}

.sge-oleo-form .sge-upload-box {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: end;
    gap: 8px 12px;
    min-height: 58px;
}

.sge-oleo-form .sge-upload-label {
    grid-column: 1 / -1;
    color: #dbe6ff;
    font-size: 11px;
    font-weight: 800;
}

.sge-oleo-form .sge-upload-box small {
    align-self: center;
    min-width: 0;
}

.sge-document-read-action {
    display: grid;
    align-self: end;
    gap: 5px;
}

.sge-document-read-action small {
    color: #b9c7e6;
    font-size: 11px;
    line-height: 1.25;
}

.sge-oleo-equipment-context {
    display: grid;
    gap: 5px;
    border: 1px solid #566071;
    border-left: 4px solid #7c55ed;
    background: #202228;
    color: #dbe6ff;
    padding: 8px 10px;
}

.sge-oleo-equipment-context span {
    font-size: 11px;
    font-weight: 800;
}

.sge-oleo-equipment-context strong {
    color: #fff;
    font-size: 13px;
}

.sge-oleo-equipment-context small {
    color: #b9c7e6;
    font-size: 11px;
}

.sge-oleo-form input,
.sge-oleo-form select,
.sge-oleo-form textarea,
.sge-oleo-ensaio-grid input {
    width: 100%;
    border: 1px solid #566071;
    background: #202228;
    color: #fff;
    padding: 8px 10px;
    font-size: 12px;
    outline: none;
}

.sge-oleo-form textarea {
    resize: vertical;
}

.sge-oleo-ensaios {
    display: grid;
    gap: 14px;
    padding: 0 14px 14px;
}

.sge-oleo-ensaio-group {
    border: 1px solid #333846;
    background: #202228;
}

.sge-oleo-ensaio-group h3 {
    margin: 0;
    padding: 10px 12px;
    background: #7c55ed;
    color: #fff;
    font-size: 12px;
}

.sge-oleo-ensaio-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 12px;
}

.sge-oleo-ensaio-grid small {
    color: #aeb8ce;
    font-weight: 600;
    min-height: 28px;
}

.sgm-row-overdue td,
.sgm-row-overdue .mud-table-cell {
    color: #ff4d5f !important;
    font-weight: 700;
}

.sgm-row-due-soon td,
.sgm-row-due-soon .mud-table-cell {
    color: #ffbf2f !important;
    font-weight: 700;
}

@media (max-width: 1180px) {
    .sge-oleo-grid,
    .sge-oleo-filters,
    .sge-oleo-form {
        grid-template-columns: 1fr;
    }

    .sge-oleo-ensaio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sge-oleo-result {
        grid-template-columns: 1fr 70px 70px;
    }
}
.sgm-flow-board {
    display: grid;
    gap: 14px;
    padding: 14px;
    margin-bottom: 12px;
    border: 1px solid rgba(128, 112, 255, 0.28);
    background: linear-gradient(135deg, rgba(17, 26, 43, 0.92), rgba(28, 29, 36, 0.96));
}

.sgm-flow-board-head,
.sgm-flow-actions-panel,
.sgm-flow-dialog-header,
.sgm-flow-dialog-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sgm-flow-current {
    color: #8f7cff;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.sgm-flow-timeline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    overflow: visible;
    padding: 4px 2px 10px;
}

.sgm-flow-step {
    min-width: 150px;
    display: grid;
    gap: 5px;
    position: relative;
    padding: 10px 12px 10px 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

.sgm-flow-step-current {
    border-color: rgba(0, 200, 150, 0.7);
    background: rgba(0, 200, 150, 0.09);
}

.sgm-flow-step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: absolute;
    left: 6px;
    top: 15px;
    background: #7c6cff;
}

.sgm-flow-step-current .sgm-flow-step-dot {
    background: #00c896;
}

.sgm-execution-modal {
    width: min(1180px, calc(100vw - 40px));
}

.sgm-execution-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 12px;
    margin-bottom: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

.sgm-execution-summary span {
    color: #fff;
    font-weight: 700;
}

.sgm-execution-summary small {
    color: rgba(255, 255, 255, 0.68);
}

.sgm-execution-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 18px 28px;
    padding: 8px 4px 18px;
    overflow: visible;
}

.sgm-execution-step {
    position: relative;
    flex: 0 1 160px;
    min-width: 150px;
}

.sgm-execution-step::after {
    content: "";
    position: absolute;
    top: 34px;
    left: calc(100% + 4px);
    width: 20px;
    height: 2px;
    background: rgba(255, 255, 255, 0.24);
}

.sgm-execution-step::before {
    content: "";
    position: absolute;
    top: 29px;
    left: calc(100% + 22px);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 7px solid rgba(255, 255, 255, 0.32);
}

.sgm-execution-step:last-child::before,
.sgm-execution-step:last-child::after {
    display: none;
}

.sgm-execution-node {
    width: 100%;
    min-height: 112px;
    display: grid;
    grid-template-columns: auto 1fr;
    align-content: start;
    gap: 5px 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    padding: 10px;
    text-align: left;
    cursor: help;
}

.sgm-execution-node:hover {
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.08);
}

.sgm-execution-node-clickable {
    cursor: pointer;
}

.sgm-execution-node-clickable:hover {
    border-color: rgba(116, 211, 255, 0.62);
    box-shadow: 0 0 0 3px rgba(55, 190, 255, 0.12);
}

.sgm-execution-index {
    color: rgba(255, 255, 255, 0.58);
    font-size: 11px;
    font-weight: 700;
}

.sgm-execution-icon {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    grid-row: span 2;
}

.sgm-execution-node strong {
    font-size: 13px;
    line-height: 1.25;
}

.sgm-execution-node small {
    color: rgba(255, 255, 255, 0.68);
    font-size: 11px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.sgm-execution-step-primary .sgm-execution-icon {
    background: rgba(79, 140, 255, 0.2);
    color: #8bb8ff;
}

.sgm-execution-step-success .sgm-execution-icon {
    background: rgba(0, 200, 150, 0.18);
    color: #55dfbd;
}

.sgm-execution-step-info .sgm-execution-icon {
    background: rgba(55, 190, 255, 0.18);
    color: #74d3ff;
}

.sgm-execution-step-warning .sgm-execution-icon {
    background: rgba(255, 185, 74, 0.2);
    color: #ffc96b;
}

.sgm-execution-step-danger .sgm-execution-icon {
    background: rgba(255, 93, 93, 0.18);
    color: #ff8c8c;
}

.sgm-execution-step-neutral .sgm-execution-icon {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.76);
}

.sgm-execution-info-dialog {
    border-color: rgba(37, 99, 235, 0.42);
}

.sgm-execution-os-list {
    max-height: min(420px, 55vh);
    overflow: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(147, 197, 253, 0.2);
    background: rgba(15, 23, 42, 0.46);
}

.sgm-execution-os-list span {
    padding: 8px 10px;
    border: 1px solid rgba(147, 197, 253, 0.18);
    background: rgba(37, 99, 235, 0.12);
    color: #dbeafe;
    font-size: 13px;
    font-weight: 700;
}

.sgm-flow-step small,
.sgm-flow-empty,
.sgm-flow-dialog-copy {
    color: rgba(255, 255, 255, 0.68);
}

.sgm-flow-os-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.sgm-flow-os-link {
    border: 0;
    background: transparent;
    padding: 0;
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.sgm-flow-step .sgm-flow-os-link {
    justify-self: start;
    font-size: 12px;
}

.sgm-flow-os-status {
    font-weight: 700;
}

.sgm-flow-os-ok {
    color: #22c55e;
}

.sgm-flow-os-pending {
    color: #fb7185;
}

.sgm-flow-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    width: 100%;
}

.sgm-flow-dialog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sgm-flow-wait {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.82);
}

.sgm-flow-dialog-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(2, 6, 18, 0.72);
}

.sgm-flow-dialog {
    width: min(680px, 100%);
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 1px solid rgba(128, 112, 255, 0.35);
    background: #1b1d24;
}

.sgm-flow-dialog-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 8px;
    background: rgba(128, 112, 255, 0.2);
}


.sgm-dashboard-home {
    display: grid;
    gap: 14px;
}

.sgm-dashboard-tabs > .mud-tabs-toolbar {
    min-height: 52px;
    background: linear-gradient(180deg, rgba(49, 51, 60, 0.98), rgba(38, 40, 49, 0.98));
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-bottom-color: rgba(124, 108, 255, 0.22);
    border-radius: 8px 8px 0 0;
}

.sgm-dashboard-tabs > .mud-tabs-toolbar .mud-tab {
    min-height: 42px !important;
    min-width: 132px;
    justify-content: center;
    background: rgba(15, 23, 42, 0.30);
    border-color: rgba(148, 163, 184, 0.14);
}

.sgm-dashboard-tabs > .mud-tabs-toolbar .mud-tab.mud-tab-active {
    background:
        linear-gradient(180deg, rgba(124,108,255,0.40), rgba(37,99,235,0.22)),
        #111827;
    border-color: rgba(139,124,255,0.72);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.12),
        0 12px 28px rgba(0,0,0,0.26),
        0 0 0 1px rgba(124,108,255,0.18);
}

.sgm-dashboard-tab-panel {
    padding-top: 14px;
}


.sgm-dashboard-home {
    position: relative;
}

.sgm-dashboard-home.is-busy {
    cursor: wait;
}

.sgm-dashboard-busy-layer {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    background: rgba(5, 7, 10, 0.34);
    color: #f8fafc;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0;
    pointer-events: all;
}

.sgm-dashboard-busy-layer::before {
    content: "";
    width: 18px;
    height: 18px;
    margin-right: 10px;
    border: 3px solid rgba(255,255,255,0.25);
    border-top-color: #7c5cff;
    border-radius: 50%;
    animation: sgm-spin 0.75s linear infinite;
}

.sgm-dashboard-busy-layer {
    grid-auto-flow: column;
}

@keyframes sgm-spin {
    to { transform: rotate(360deg); }
}

.sgm-dashboard-metric-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.sgm-dashboard-metric {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr;
    align-items: start;
    gap: 8px;
    min-height: 116px;
    padding: 12px;
    border: 1px solid rgba(148,163,184,0.16);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(17,24,39,0.94), rgba(31,33,37,0.88));
    color: #e5e7eb;
}

.sgm-dashboard-metric-top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-width: 0;
}

.sgm-dashboard-metric-top span {
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 700;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.sga-modal-title-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    justify-self: end;
}

.sgm-dashboard-metric strong {
    grid-column: 1;
    color: #f8fafc;
    font-size: clamp(24px, 2vw, 30px);
    line-height: 1;
    text-align: right;
    justify-self: end;
    margin-top: 2px;
}

.sgm-dashboard-metric small {
    grid-column: 1;
    align-self: end;
    color: #9ca3af;
    font-size: 11px;
    line-height: 1.25;
    text-align: left;
    min-height: 28px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.sgm-dashboard-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(320px, 1fr));
    gap: 14px;
}


.sgm-dashboard-os-metric-grid {
    grid-template-columns: repeat(8, minmax(98px, 1fr));
}

.sgm-dashboard-os-metric-grid .sgm-dashboard-metric {
    min-height: 92px;
    padding: 9px;
    gap: 6px 8px;
}

.sgm-dashboard-os-metric-grid .sgm-dashboard-metric strong {
    font-size: clamp(18px, 1.45vw, 22px);
}

.sgm-dashboard-os-metric-grid .sgm-dashboard-metric-top span {
    font-size: 10px;
}

.sgm-dashboard-os-metric-grid .sgm-dashboard-metric small {
    font-size: 10px;
    line-height: 1.2;
}

.sgm-dashboard-os-metric-grid .mud-icon-root {
    font-size: 21px;
}


.sgm-dashboard-os-metric-grid .sgm-dashboard-metric-top {
    width: 100%;
}

.sgm-dashboard-os-metric-grid .sgm-dashboard-metric strong {
    grid-column: 1;
    justify-self: end;
    margin-top: 2px;
    font-size: clamp(20px, 1.55vw, 24px);
}

.sgm-dashboard-os-metric-grid .sgm-dashboard-metric small {
    grid-column: 1;
    align-self: end;
    min-height: 24px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}


.sgm-dashboard-ss-metric-grid {
    grid-template-columns: repeat(8, minmax(98px, 1fr));
}

.sgm-dashboard-ss-metric-grid .sgm-dashboard-metric {
    min-height: 92px;
    padding: 9px;
    gap: 6px;
}

.sgm-dashboard-ss-metric-grid .sgm-dashboard-metric strong {
    font-size: clamp(20px, 1.55vw, 24px);
}

.sgm-dashboard-ss-metric-grid .sgm-dashboard-metric-top span,
.sgm-dashboard-ss-metric-grid .sgm-dashboard-metric small {
    font-size: 10px;
}

.sgm-dashboard-pmo-metric-grid {
    grid-template-columns: repeat(7, minmax(96px, 1fr));
}

.sgm-dashboard-pmo-metric-grid .sgm-dashboard-metric {
    min-height: 92px;
    padding: 9px;
    gap: 6px;
}

.sgm-dashboard-pmo-metric-grid .sgm-dashboard-metric strong {
    font-size: clamp(18px, 1.35vw, 22px);
}

.sgm-dashboard-pmo-metric-grid .sgm-dashboard-metric-top span,
.sgm-dashboard-pmo-metric-grid .sgm-dashboard-metric small {
    font-size: 10px;
}

.sgm-dashboard-pmo-metric-grid .sgm-dashboard-metric {
    border-width: 1px 1px 3px;
}

.sgm-pmo-executive-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(340px, 1fr));
    gap: 14px;
}

.sgm-pmo-chart-hero {
    min-height: 360px;
}

.sgm-pmo-chart-compact {
    min-height: 0;
}

.sgm-pmo-chart-compact .ginoma-bars-horizontal {
    min-height: 132px !important;
}

.sgm-pmo-chart-compact .ginoma-horizontal-bar-row {
    margin: 10px 0;
}

.sgm-pmo-executive-layout .sgm-dashboard-chart-wide {
    grid-column: 1 / -1;
}

.sgm-pmo-executive-layout .ginoma-chart-title,
.sgm-pmo-region-card .sgm-dashboard-section-title {
    color: #dbeafe;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 16px;
    padding: 0 0 15px;
    border-bottom: 1px solid rgba(148, 163, 184, .16);
}

.sgm-pmo-region-card {
    grid-column: 1 / -1;
    min-height: 0;
    padding: 14px 18px 16px;
}

.sgm-pmo-region-card .sgm-dashboard-section-title .mud-typography-root {
    color: inherit;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
}

.sgm-pmo-region-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 12px 22px;
}

.sgm-pmo-region-row {
    display: grid;
    grid-template-columns: minmax(128px, 0.42fr) minmax(220px, 1fr) minmax(170px, 0.42fr);
    gap: 14px;
    align-items: center;
    min-height: 54px;
    padding: 10px 12px;
    border: 1px solid rgba(148,163,184,0.10);
    border-radius: 8px;
    background: rgba(15,23,42,0.20);
}

.sgm-pmo-region-name {
    display: grid;
    gap: 1px;
    min-width: 0;
}

.sgm-pmo-region-name strong {
    color: #f8fafc;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sgm-pmo-region-name span {
    color: #94a3b8;
    font-size: 11px;
}

.sgm-pmo-region-bars {
    display: flex;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(15,23,42,0.78);
    border: 1px solid rgba(148,163,184,0.14);
}

.sgm-pmo-region-bars span {
    min-width: 3px;
}

.sgm-pmo-region-bars .is-critical {
    background: #ef4444;
}

.sgm-pmo-region-bars .is-warning {
    background: #f97316;
}

.sgm-pmo-region-values {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 800;
    text-align: right;
}

.sgm-pmo-region-values .is-critical {
    color: #fca5a5;
}

.sgm-pmo-region-values .is-warning {
    color: #fdba74;
}

.sgm-pmo-follow-card {
    min-height: 0;
    padding: 14px 18px 16px;
}

.sgm-pmo-follow-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(148, 163, 184, .16);
}

.sgm-pmo-follow-header .mud-typography-root {
    color: #dbeafe;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
}

.sgm-pmo-follow-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 30px;
    padding: 0 12px;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 8px;
    background: rgba(15, 23, 42, .42);
    color: #dbeafe;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, color .16s ease;
}

.sgm-pmo-follow-toggle:hover,
.sgm-pmo-follow-toggle.is-selected {
    border-color: rgba(249, 115, 22, .62);
    background: rgba(249, 115, 22, .15);
    color: #fed7aa;
}

.sgm-pmo-follow-tree {
    display: grid;
    gap: 8px;
    max-height: 320px;
    overflow: auto;
    padding: 10px 4px 0 0;
    scrollbar-color: #7c5cf2 #111827;
}

.sgm-pmo-follow-region,
.sgm-pmo-follow-empresa {
    display: grid;
    gap: 8px;
}

.sgm-pmo-follow-empresa {
    margin-left: 24px;
    padding-left: 14px;
    border-left: 1px solid rgba(148, 163, 184, .16);
}

.sgm-pmo-follow-row {
    display: grid;
    grid-template-columns: 28px 9px minmax(150px, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 7px 10px;
    border: 1px solid rgba(148, 163, 184, .16);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(15, 23, 42, .82), rgba(17, 24, 39, .62));
}

.sgm-pmo-follow-row.is-region {
    border-color: rgba(124, 92, 242, .32);
    background: linear-gradient(135deg, rgba(15, 23, 42, .94), rgba(30, 41, 59, .62));
}

.sgm-pmo-follow-row.is-plan {
    margin-left: 38px;
    border-color: rgba(34, 197, 94, .16);
    background: rgba(15, 23, 42, .38);
}

.sgm-pmo-follow-row.has-delay {
    border-color: rgba(34, 197, 94, .34);
}

.sgm-pmo-follow-card:has(.sgm-pmo-follow-toggle.is-selected) .sgm-pmo-follow-row.has-delay {
    border-color: rgba(239, 68, 68, .34);
}

.sgm-pmo-follow-expand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: 1px solid rgba(148, 163, 184, .24);
    border-radius: 7px;
    background: rgba(30, 41, 59, .68);
    color: #cbd5e1;
    cursor: pointer;
}

.sgm-pmo-follow-expand:disabled {
    opacity: .42;
    cursor: default;
}

.sgm-pmo-follow-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, .09);
}

.sgm-pmo-follow-row.has-delay .sgm-pmo-follow-dot {
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, .10);
}

.sgm-pmo-follow-card:has(.sgm-pmo-follow-toggle.is-selected) .sgm-pmo-follow-row.has-delay .sgm-pmo-follow-dot {
    background: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, .10);
}

.sgm-pmo-follow-row > strong {
    min-width: 0;
    overflow: hidden;
    color: #f8fafc;
    font-size: 12px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sgm-pmo-follow-values {
    display: grid;
    grid-template-columns: repeat(6, auto);
    align-items: center;
    gap: 11px;
    color: #cbd5e1;
    font-size: 11px;
    white-space: nowrap;
}

.sgm-pmo-follow-values b {
    margin-left: 3px;
    color: #fff;
    font-size: 12px;
}

.sgm-pmo-follow-values .is-delay b {
    color: #fca5a5;
}

.sgm-pmo-follow-values .is-percent {
    min-width: 52px;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(34, 197, 94, .12);
    color: #bbf7d0;
    font-weight: 800;
    text-align: center;
}

@media (max-width: 1300px) {
    .sgm-pmo-follow-row {
        grid-template-columns: 28px 9px minmax(130px, 1fr);
    }

    .sgm-pmo-follow-values {
        grid-column: 3 / -1;
        grid-template-columns: repeat(3, auto);
        justify-content: start;
    }
}

.sgm-dashboard-apr-metric-grid {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.sgm-dashboard-apr-metric-grid .sgm-dashboard-metric {
    min-height: 92px;
    padding: 10px;
    gap: 6px;
}

.sgm-dashboard-apr-metric-grid .sgm-dashboard-metric strong {
    font-size: clamp(22px, 1.8vw, 28px);
}

.sgm-dashboard-apr-metric-grid .sgm-dashboard-metric-top span,
.sgm-dashboard-apr-metric-grid .sgm-dashboard-metric small {
    font-size: 11px;
}

.sgm-dashboard-chart-wide {
    grid-column: 1 / -1;
}

.sgm-dashboard-section,
.sgm-dashboard-chart {
    min-height: 260px;
}

.sgm-dashboard-section-wide {
    grid-column: 1 / -1;
}

.sgm-dashboard-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.sgm-dashboard-section-title span {
    color: #9ca3af;
    font-size: 12px;
}

.sgm-dashboard-section-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.sgm-dashboard-section-actions .mud-button-root {
    min-width: 0;
    height: 30px;
    padding: 0 10px;
    font-size: 11px;
}

.sgm-dashboard-alert-list {
    display: grid;
    gap: 8px;
}

.sgm-dashboard-alert {
    display: grid;
    grid-template-columns: 64px minmax(110px, 160px) minmax(120px, 180px) minmax(0, 1fr) minmax(90px, 160px);
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(148,163,184,0.12);
    border-radius: 8px;
    background: rgba(15,23,42,0.46);
}

.sgm-dashboard-alert span,
.sgm-dashboard-tag {
    justify-self: start;
    border-radius: 999px;
    padding: 3px 9px;
    font-size: 11px;
    font-weight: 800;
}

.sgm-dashboard-alert strong,
.sgm-dashboard-table td:first-child {
    color: #f8fafc;
    font-weight: 800;
}

.sgm-dashboard-alert p {
    margin: 0;
    color: #d1d5db;
    font-size: 13px;
}

.sgm-dashboard-alert em,
.sgm-dashboard-alert b {
    color: #cbd5e1;
    font-size: 12px;
    font-style: normal;
}

.sgm-dashboard-table-wrap {
    overflow: auto;
}

.sgm-dashboard-table {
    width: 100%;
    border-collapse: collapse;
    color: #d1d5db;
    font-size: 12px;
}

.sgm-dashboard-table th {
    color: #111827;
    background: #c4c4c4;
    font-weight: 600;
    padding: 10px;
    white-space: nowrap;
}

.sgm-dashboard-table td {
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 10px;
    vertical-align: middle;
}

.sgm-os-position-panel {
    overflow: hidden;
}

.sgm-os-position-scroll {
    width: 100%;
    overflow: auto;
    border: 1px solid rgba(56, 89, 139, 0.48);
    border-radius: 8px;
    background: rgba(7, 14, 27, 0.56);
}

.sgm-os-position-table {
    width: 100%;
    min-width: 1120px;
    border-collapse: collapse;
    color: #f8fafc;
    font-size: 12px;
    table-layout: fixed;
}

.sgm-os-position-table th,
.sgm-os-position-table td {
    border: 1px solid rgba(33, 52, 82, 0.9);
    padding: 10px 8px;
    text-align: right;
    vertical-align: middle;
    height: 42px;
}

.sgm-os-position-table thead th,
.sgm-os-position-table tbody th,
.sgm-os-position-table tfoot th {
    background: #1d2838;
    color: #f8fafc;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;
}

.sgm-os-position-table thead th:first-child,
.sgm-os-position-table tbody th,
.sgm-os-position-table tfoot th {
    width: 118px;
}

.sgm-os-position-table tbody td {
    background: rgba(15, 23, 42, 0.42);
    color: #d1d5db;
    font-weight: 700;
}

.sgm-os-position-table tfoot td {
    background: rgba(30, 41, 59, 0.74);
    color: #f8fafc;
    font-weight: 900;
}

.sgm-os-position-table button {
    width: 100%;
    min-height: 28px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 900;
    text-align: right;
    cursor: pointer;
}

.sgm-os-position-table button:hover,
.sgm-os-position-table button:focus-visible {
    background: rgba(99, 102, 241, 0.18);
    color: #bfdbfe;
    outline: 1px solid rgba(129, 140, 248, 0.58);
}

.sgm-os-position-table span {
    display: block;
    color: #94a3b8;
    text-align: center;
}

.sgm-os-position-table .is-total button,
.sgm-os-position-table .is-grand-total button {
    color: #e0e7ff;
}

.sgm-dashboard-empty {
    padding: 18px;
    border: 1px dashed rgba(148,163,184,0.28);
    border-radius: 8px;
    color: #aeb8ce;
    text-align: center;
}

.sgm-dashboard-metric.is-critical,
.sgm-dashboard-alert.is-critical,
.sgm-dashboard-tag.is-critical {
    border-color: rgba(248,113,113,0.42);
}

.sgm-dashboard-metric.is-critical .mud-icon-root,
.sgm-dashboard-alert.is-critical span,
.sgm-dashboard-tag.is-critical {
    color: #fca5a5;
    background: rgba(239,68,68,0.14);
}

.sgm-dashboard-metric.is-high,
.sgm-dashboard-alert.is-high,
.sgm-dashboard-tag.is-high {
    border-color: rgba(251,146,60,0.38);
}

.sgm-dashboard-metric.is-high .mud-icon-root,
.sgm-dashboard-alert.is-high span,
.sgm-dashboard-tag.is-high {
    color: #fdba74;
    background: rgba(249,115,22,0.14);
}

.sgm-dashboard-metric.is-warning,
.sgm-dashboard-alert.is-warning,
.sgm-dashboard-tag.is-warning {
    border-color: rgba(249,115,22,0.46);
}

.sgm-dashboard-metric.is-warning .mud-icon-root,
.sgm-dashboard-alert.is-warning span,
.sgm-dashboard-tag.is-warning {
    color: #fdba74;
    background: rgba(249,115,22,0.16);
}

.sgm-dashboard-metric.is-success .mud-icon-root,
.sgm-dashboard-alert.is-success span,
.sgm-dashboard-tag.is-success {
    color: #86efac;
    background: rgba(34,197,94,0.14);
}

.sgm-dashboard-metric.is-info .mud-icon-root,
.sgm-dashboard-alert.is-info span,
.sgm-dashboard-tag.is-info {
    color: #93c5fd;
    background: rgba(37,99,235,0.14);
}

.sgm-dashboard-metric.is-neutral .mud-icon-root,
.sgm-dashboard-alert.is-neutral span,
.sgm-dashboard-tag.is-neutral {
    color: #cbd5e1;
    background: rgba(148,163,184,0.14);
}

@media (max-width: 1280px) {
    .sgm-dashboard-metric-grid {
        grid-template-columns: repeat(3, minmax(150px, 1fr));
    }

    .sgm-dashboard-layout,
    .sgm-dashboard-alert {
        grid-template-columns: 1fr;
    }
}


.sgm-dashboard-filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1.3fr) minmax(170px, 0.8fr) minmax(170px, 0.8fr) auto;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding: 10px 12px;
}

.sgm-dashboard-filter-panel .mud-button-root {
    min-height: 40px;
}

.sgm-pmo-filter-panel {
    grid-template-columns: 168px minmax(0, 1fr) 36px;
    gap: 12px;
    overflow: hidden;
    padding: 8px 12px;
}

.sgm-pmo-filter-panel .mud-input-control {
    max-width: 168px;
    margin: 0;
}

.sgm-pmo-filter-panel .mud-input-control > .mud-input-control-input-container {
    margin-top: 0;
}

.sgm-pmo-filter-panel .mud-input-root {
    min-height: 32px;
    height: 32px;
}

.sgm-pmo-filter-panel .mud-input-slot {
    font-size: 12px;
    padding-top: 3px !important;
    padding-bottom: 3px !important;
}

.sgm-pmo-filter-panel .mud-input-control .mud-input-label {
    font-size: 10px;
    transform: translate(12px, -7px) scale(.75);
}

.sgm-pmo-filter-panel .sgm-pmo-clear-button {
    width: 34px;
    height: 34px;
    min-width: 34px;
    padding: 0;
    justify-self: end;
}

.sgm-pmo-horizon,
.sgm-pmo-company-filter {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.sgm-pmo-horizon > span,
.sgm-pmo-company-filter > span {
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 800;
}

.sgm-pmo-horizon > div,
.sgm-pmo-company-filter > div {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.sgm-pmo-horizon button,
.sgm-pmo-company-filter button {
    min-height: 28px;
    padding: 0 9px;
    border: 1px solid rgba(148,163,184,0.32);
    border-radius: 8px;
    background: rgba(15,23,42,0.42);
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 400;
    cursor: pointer;
    white-space: nowrap;
}

.sgm-pmo-horizon button.is-selected,
.sgm-pmo-company-filter button.is-selected {
    border-color: rgba(129,140,248,0.95);
    background: rgba(99,102,241,0.26);
    color: #fff;
}

.sgm-pmo-company-filter {
    grid-column: auto;
}

.sgm-pmo-company-filter > div {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0;
    scrollbar-width: none;
}

.sgm-pmo-company-filter > div::-webkit-scrollbar {
    display: none;
}

.sgm-pmo-company-filter small {
    color: #94a3b8;
    font-size: 12px;
}

@media (max-width: 980px) {
    .sgm-dashboard-filter-panel {
        grid-template-columns: 1fr;
    }

    .sgm-pmo-company-filter {
        grid-column: auto;
    }

    .sgm-pmo-region-grid,
    .sgm-pmo-region-row {
        grid-template-columns: 1fr;
    }

    .sgm-pmo-region-values {
        justify-content: flex-start;
    }
}


.sgm-dashboard-chart.ginoma-apex-card {
    min-height: 216px;
    padding: 8px 12px;
}

.sgm-dashboard-chart .ginoma-bars-vertical {
    grid-auto-columns: minmax(30px, 1fr);
    gap: 0;
    overflow-x: hidden;
    min-height: 188px !important;
    padding: 0 2px 4px;
}

.sgm-dashboard-chart .ginoma-vertical-bar-column {
    min-width: 0;
    grid-template-rows: auto 86px 44px;
}

.sgm-dashboard-chart .ginoma-vertical-bar-track {
    width: min(42px, 86%);
    height: 86px;
    min-height: 86px;
}

.sgm-dashboard-chart .ginoma-vertical-bar-label {
    display: -webkit-box;
    max-width: 64px;
    height: 36px;
    font-size: 8px;
    font-weight: 400;
    line-height: 1.15;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.sgm-dashboard-chart .ginoma-vertical-bar-value {
    font-size: 10px;
    font-weight: 400;
    margin-bottom: 5px;
}

.sgm-dashboard-chart .ginoma-chart-title {
    margin-bottom: 0;
}

.sgm-dashboard-chart .ginoma-horizontal-bar-label,
.sgm-dashboard-chart .ginoma-horizontal-bar-label strong {
    font-weight: 400;
}

.sgm-dashboard-filter-wait {
    margin: -4px 0 12px;
}

.sgm-dashboard-metric {
    font: inherit;
    text-align: left;
}

.sgm-dashboard-metric:disabled {
    cursor: default;
}

.sgm-dashboard-metric.is-clickable {
    cursor: pointer;
}

.sgm-dashboard-metric.is-clickable:hover,
.sgm-dashboard-metric.is-selected {
    border-color: rgba(124, 92, 255, 0.72);
    box-shadow: 0 0 0 1px rgba(124, 92, 255, 0.22), 0 14px 28px rgba(0,0,0,0.22);
}

.sgm-dashboard-alert.is-pmo {
    grid-template-columns: 64px minmax(110px, 160px) minmax(0, 1fr) minmax(90px, 160px);
}

.sgm-dashboard-alert.is-pmo em {
    display: none;
}

.sgm-dashboard-sort-button {
    min-height: 38px;
    padding: 0 14px !important;
    border-color: rgba(126, 97, 255, 0.7) !important;
    background: linear-gradient(135deg, rgba(126, 97, 255, 0.18), rgba(56, 189, 248, 0.08)) !important;
    color: #e8edff !important;
    border-radius: 8px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none !important;
}

.sgm-dashboard-sort-button .mud-button-label {
    gap: 6px;
}

.sgm-inline-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.sgm-torre-selector {
    max-height: 220px;
    overflow: auto;
    padding: 10px 12px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.18) !important;
}

.sgm-preview-table {
    max-height: 360px;
    overflow: auto;
}

.sgm-ss-torre-title-flag {
    margin-left: auto;
    margin-right: 10px;
    padding: 6px 10px;
    border: 1px solid rgba(129, 140, 248, 0.55);
    border-radius: 8px;
    background: rgba(30, 41, 59, 0.72);
    white-space: nowrap;
}

.sgm-ss-torre-title-flag .mud-typography,
.sgm-ss-torre-title-flag .mud-checkbox-label {
    font-size: 0.88rem;
    color: #e5e7eb;
}

.sgm-ss-modal-title {
    grid-template-columns: 44px minmax(0, 1fr) auto 40px;
}

.sgm-ss-modal-title > .mud-icon-button-root {
    justify-self: end;
    align-self: center;
}

.int-header {
    min-height: 46px;
}

.int-tabs,
.int-subtabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 0;
    margin: 0 0 10px;
    padding: 0;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 8px;
    background: #30313a;
    overflow: hidden;
}

.int-subtabs {
    grid-template-columns: repeat(3, minmax(120px, 180px));
    margin-top: -2px;
    background: #272932;
}

.int-tabs button,
.int-subtabs button {
    position: relative;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 14px;
    border: 0;
    border-right: 1px solid rgba(148, 163, 184, 0.10);
    border-radius: 0;
    color: #cbd5e1;
    background: transparent;
    font-size: 0.82rem;
    font-weight: 650;
}

.int-tabs button:last-child,
.int-subtabs button:last-child {
    border-right: 0;
}

.int-tabs button:hover,
.int-tabs button.active,
.int-subtabs button:hover,
.int-subtabs button.active {
    color: #ffffff;
    background: rgba(37, 99, 235, 0.24);
}

.int-tabs button.active::after,
.int-subtabs button.active::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 0;
    height: 4px;
    border-radius: 999px 999px 0 0;
    background: #6d6bff;
    box-shadow: 0 0 14px rgba(109, 107, 255, 0.6);
}

.int-tabs button.active {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.34), rgba(37, 99, 235, 0.18));
}

.ons-communication-panel {
    min-height: 420px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 30%, rgba(45, 212, 191, 0.12), transparent 28%),
        radial-gradient(circle at 78% 38%, rgba(59, 130, 246, 0.12), transparent 24%),
        #202126 !important;
}

.ons-communication-scene {
    width: min(920px, 100%);
    display: grid;
    grid-template-columns: 180px minmax(220px, 1fr) 240px;
    align-items: center;
    gap: 42px;
    padding: 38px;
}

.ons-signal-wrap {
    position: relative;
    width: 150px;
    height: 150px;
    display: grid;
    place-items: center;
}

.ons-signal-icon {
    z-index: 2;
    width: 76px !important;
    height: 76px !important;
    color: #67e8f9;
    filter: drop-shadow(0 0 18px rgba(103, 232, 249, 0.45));
    animation: onsPulse 1.4s ease-in-out infinite;
}

.ons-signal-ring {
    position: absolute;
    inset: 34px;
    border: 2px solid rgba(103, 232, 249, 0.35);
    border-radius: 50%;
    opacity: 0;
    animation: onsRing 2.4s ease-out infinite;
}

.ons-ring-two {
    animation-delay: 0.55s;
}

.ons-ring-three {
    animation-delay: 1.1s;
}

.ons-communication-copy h4 {
    color: #f8fafc;
    font-weight: 800;
    letter-spacing: 0;
    margin-bottom: 8px;
}

.ons-communication-copy .mud-typography {
    color: #cbd5e1;
}

.ons-sam-panel {
    display: grid;
    gap: 16px;
    background: #202126 !important;
}

.ons-sam-header,
.ons-sam-actions,
.ons-sam-loading,
.ons-sam-resource {
    display: flex;
    align-items: center;
}

.ons-sam-header {
    justify-content: space-between;
    gap: 16px;
}

.ons-sam-header h5 {
    color: #f8fafc;
    font-weight: 800;
    letter-spacing: 0;
}

.ons-sam-header .mud-typography {
    color: #cbd5e1;
}

.ons-sam-logo {
    width: 92px;
    height: auto;
    display: block;
    border: 0;
    border-radius: 3px;
    background: transparent;
}

.ons-sam-connection-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.36);
}

.ons-sam-connection-bar .mud-button-root {
    min-height: 40px;
    white-space: nowrap;
}

.ons-sam-ready {
    min-height: 210px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    color: #cbd5e1;
    border: 1px dashed rgba(148, 163, 184, 0.3);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.2);
}

.ons-sam-ready .mud-icon-root {
    width: 54px;
    height: 54px;
    color: #67e8f9;
}

.ons-sam-actions {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.ons-sam-loading {
    min-height: 180px;
    justify-content: center;
    gap: 12px;
    color: #cbd5e1;
}

.ons-sam-status-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.ons-sam-status-card {
    min-height: 94px;
    display: grid;
    align-content: center;
    gap: 6px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.44);
}

.ons-sam-status-card .mud-icon-root {
    color: #93c5fd;
}

.ons-sam-status-card.ok .mud-icon-root {
    color: #34d399;
}

.ons-sam-status-card.warn .mud-icon-root {
    color: #fbbf24;
}

.ons-sam-status-card span {
    color: #94a3b8;
    font-size: 0.78rem;
    text-transform: uppercase;
}

.ons-sam-status-card strong {
    color: #f8fafc;
    font-size: 1rem;
    overflow-wrap: anywhere;
}

.ons-sam-kpi-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.ons-sam-kpi-strip.five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.ons-sam-kpi {
    min-width: 0;
    min-height: 78px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-left: 3px solid #60a5fa;
    border-radius: 7px;
    background: rgba(15, 23, 42, 0.4);
}

.ons-sam-kpi > .mud-icon-root {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    color: #60a5fa;
}

.ons-sam-kpi > div {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.ons-sam-kpi span {
    color: #aebbd0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: .035em;
    line-height: 1.2;
    text-transform: uppercase;
}

.ons-sam-kpi strong {
    color: #f8fafc;
    font-size: 1.55rem;
    font-weight: 850;
    line-height: 1;
}

.ons-sam-kpi.success {
    border-left-color: #34d399;
}

.ons-sam-kpi.success > .mud-icon-root {
    color: #34d399;
}

.ons-sam-kpi.info {
    border-left-color: #67e8f9;
}

.ons-sam-kpi.info > .mud-icon-root {
    color: #67e8f9;
}

.ons-sam-kpi.warning {
    border-left-color: #fbbf24;
}

.ons-sam-kpi.warning > .mud-icon-root {
    color: #fbbf24;
}

.ons-sam-kpi.danger {
    border-left-color: #fb7185;
    background: rgba(127, 29, 29, 0.14);
}

.ons-sam-kpi.danger > .mud-icon-root,
.ons-sam-kpi.danger strong {
    color: #fb7185;
}

.ons-sam-result {
    display: grid;
    gap: 10px;
}

.ons-sam-query {
    display: grid;
    gap: 12px;
}

.ons-sam-query-footer,
.ons-sam-query-footer > div,
.ons-sam-query-loading {
    display: flex;
    align-items: center;
}

.ons-sam-connection-alert .mud-alert-message {
    flex: 1;
    min-width: 0;
}

.ons-sam-connection-alert-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
}

.ons-sam-query-footer {
    color: #94a3b8;
    font-size: 0.82rem;
}

.ons-sam-query-token {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 190px;
    justify-content: center;
    padding: 5px 8px;
    border: 1px solid rgba(52, 211, 153, 0.3);
    border-radius: 6px;
    color: #6ee7b7 !important;
    background: rgba(16, 185, 129, 0.08);
}

.ons-sam-query-token .mud-icon-root {
    font-size: 17px;
}

.ons-sam-resource-tabs {
    display: grid;
    grid-template-columns: repeat(8, minmax(130px, 1fr));
    overflow-x: auto;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.38);
}

.ons-sam-resource-tabs button {
    min-width: 130px;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 10px;
    border: 0;
    border-right: 1px solid rgba(148, 163, 184, 0.16);
    color: #cbd5e1;
    background: transparent;
    cursor: pointer;
}

.ons-sam-resource-tabs button:last-child {
    border-right: 0;
}

.ons-sam-resource-tabs button:hover:not(:disabled) {
    color: #ffffff;
    background: rgba(96, 165, 250, 0.1);
}

.ons-sam-resource-tabs button.active {
    color: #ffffff;
    box-shadow: inset 0 -3px #6d5dfc;
    background: rgba(109, 93, 252, 0.16);
}

.ons-sam-resource-tabs button:disabled {
    cursor: wait;
    opacity: 0.66;
}

.ons-sam-resource-tabs .mud-icon-root {
    width: 20px;
    height: 20px;
}

.ons-sam-query-loading {
    min-height: 150px;
    justify-content: center;
    gap: 10px;
    color: #cbd5e1;
}

.ons-sam-control-grid {
    margin: 0;
    padding: 0 !important;
    border: 1px solid rgba(148, 163, 184, 0.2) !important;
    border-radius: 6px !important;
    background: transparent !important;
    overflow: hidden;
}

.ons-sam-control-grid .grid-sticky-top {
    position: static;
}

.ons-sam-control-grid .grid-toolbar {
    border-radius: 0;
}

.ons-sam-control-grid .mud-table-container {
    max-height: 520px;
}

.ons-sam-detail-modal-wrap {
    width: min(1180px, calc(100vw - 40px));
    max-height: calc(100vh - 40px);
}

.ons-sam-detail-modal {
    width: 100%;
    max-width: none;
    max-height: calc(100vh - 40px);
    overflow: auto;
}

.ons-sam-detail-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.ons-sam-detail-summary > div {
    min-height: 68px;
    display: grid;
    align-content: center;
    gap: 4px;
    padding: 10px 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.32);
}

.ons-sam-detail-summary > div.ons-sam-detail-reference {
    border-color: rgba(96, 165, 250, 0.32);
    background: rgba(59, 130, 246, 0.08);
}

.ons-sam-detail-summary span {
    color: #94a3b8;
    font-size: 0.76rem;
    text-transform: uppercase;
}

.ons-sam-detail-summary strong {
    color: #f8fafc;
    overflow-wrap: anywhere;
}

.ons-sam-detail-table-wrap {
    width: 100%;
    max-height: 440px;
    overflow: auto;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 6px;
}

.ons-sam-detail-loading {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #cbd5e1;
}

.ons-sam-detail-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    color: #e2e8f0;
    font-size: 0.84rem;
}

.ons-sam-detail-table th,
.ons-sam-detail-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    text-align: left;
    vertical-align: top;
}

.ons-sam-detail-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    color: #cbd5e1;
    white-space: nowrap;
    background: #2c2e36;
}

.ons-sam-query-table-wrap {
    width: 100%;
    overflow: auto;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 6px;
}

.ons-sam-query-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    color: #e2e8f0;
    font-size: 0.86rem;
}

.ons-sam-query-table th,
.ons-sam-query-table td {
    padding: 11px 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    text-align: left;
    vertical-align: top;
}

.ons-sam-query-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    color: #cbd5e1;
    font-weight: 700;
    white-space: nowrap;
    background: #2c2e36;
}

.ons-sam-query-table tbody tr:hover {
    background: rgba(96, 165, 250, 0.06);
}

.ons-sam-query-table tbody tr:last-child td {
    border-bottom: 0;
}

.ons-sam-query-empty {
    height: 96px;
    color: #94a3b8;
    text-align: center !important;
    vertical-align: middle !important;
}

.ons-sam-query-footer {
    min-height: 36px;
    justify-content: space-between;
    gap: 16px;
}

.ons-sam-query-footer > div {
    gap: 8px;
}

.ons-sam-resource-list {
    display: grid;
    gap: 8px;
}

.ons-sam-resource {
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 8px;
    color: #e5e7eb;
    text-decoration: none;
    background: rgba(15, 23, 42, 0.34);
}

.ons-sam-resource:hover {
    border-color: rgba(96, 165, 250, 0.52);
    color: #ffffff;
}

.ons-sam-resource span {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.ons-sam-resource small {
    color: #94a3b8;
    overflow-wrap: anywhere;
}

.ons-logo-card {
    display: grid;
    place-items: center;
    min-height: 140px;
    padding: 22px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.58);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.ons-logo-card img {
    max-width: 100%;
    max-height: 94px;
    object-fit: contain;
}

@keyframes onsPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

@keyframes onsRing {
    0% {
        transform: scale(0.65);
        opacity: 0.7;
    }
    80%, 100% {
        transform: scale(1.85);
        opacity: 0;
    }
}

@media (max-width: 820px) {
    .ons-communication-scene {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }

    .ons-sam-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .ons-sam-actions {
        justify-content: flex-start;
    }

    .ons-sam-status-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ons-sam-kpi-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ons-sam-connection-bar {
        grid-template-columns: 1fr;
    }

    .ons-sam-connection-alert-content,
    .ons-sam-query-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .ons-sam-query-token {
        align-self: flex-end;
    }

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

@media (max-width: 560px) {
    .ons-sam-kpi-strip {
        grid-template-columns: 1fr;
    }

    .ons-sam-detail-summary {
        grid-template-columns: 1fr;
    }
}


.sgm-cost-filter-panel {
    margin: 0 0 1rem;
}

.sgm-cost-chart-stack {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.sgm-cost-chart-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.sgm-cost-chart,
.sgm-cost-chart-wide {
    min-height: 320px;
}

.sgm-cost-chart .ginoma-chart-title,
.sgm-cost-chart-wide .ginoma-chart-title {
    min-height: 2.6rem;
    display: flex;
    align-items: center;
}

.sgm-cost-row-actions {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

@media (max-width: 900px) {
    .sgm-cost-chart-pair {
        grid-template-columns: 1fr;
    }
}
.gio-rap-save-alert {
    margin-bottom: 12px;
}

.gio-rap-save-alert .mud-alert-message {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

@media (max-width: 760px) {
    .gio-rap-save-alert .mud-alert-message {
        align-items: flex-start;
        flex-direction: column;
    }
}
.gio-rap-content .adm-form-grid {
    grid-template-columns: repeat(2, minmax(360px, 1fr));
    gap: 28px 24px;
    align-items: stretch;
}

.gio-rap-content .adm-form-grid > .mud-input-control,
.gio-rap-content .adm-form-grid > .mud-checkbox {
    width: 100%;
}

.gio-rap-content .mud-input-root textarea {
    min-height: 138px;
}

.gio-rap-content .sge-field-span-all {
    grid-column: 1 / -1;
}
.gio-page .gio-rdi-modal {
    width: min(96vw, 1720px);
    max-width: 1720px;
    min-height: min(88vh, 900px);
}

.gio-page .gio-rdi-modal > .sga-inner-tabs {
    min-height: 0;
}

.gio-page .gio-rdi-modal .adm-form-grid {
    grid-template-columns: repeat(3, minmax(320px, 1fr));
    gap: 30px 20px;
}

.gio-page .gio-rdi-modal .gio-rdi-descricao {
    grid-column: 1 / -1;
}

.gio-page .gio-rdi-modal .gio-rdi-descricao .mud-input-root textarea {
    min-height: 230px;
}

@media (max-width: 1100px) {
    .gio-page .gio-rdi-modal .adm-form-grid {
        grid-template-columns: repeat(2, minmax(260px, 1fr));
    }
}

@media (max-width: 760px) {
    .gio-page .gio-rdi-modal {
        width: calc(100vw - 20px);
        min-height: calc(100vh - 28px);
    }

    .gio-page .gio-rdi-modal .adm-form-grid {
        grid-template-columns: 1fr;
    }
}
.grid-toolbar-left-actions {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.grid-toolbar-left-actions .mud-input-control {
    margin: 0;
}

.grid-toolbar-left-actions .gio-year-select {
    width: 132px;
    min-width: 132px;
}

.gio-page .grid-toolbar {
    flex-wrap: nowrap;
    align-items: center;
}

.gio-page .grid-toolbar-left {
    flex: 0 1 auto;
    min-width: 0;
    max-width: none;
}

.gio-page .grid-group-dropzone {
    flex: 0 0 250px;
    min-width: 250px;
    max-width: 250px;
}

.gio-page .grid-global-search {
    flex: 0 1 300px;
    width: 300px;
    min-width: 220px;
    max-width: 300px;
}

.gio-page .grid-toolbar-left-actions .mud-input-control.gio-year-select,
.gio-page .grid-toolbar-left-actions .gio-year-select {
    width: 112px !important;
    min-width: 112px !important;
    max-width: 112px !important;
}

.gio-page .grid-toolbar-actions {
    flex: 1 0 auto;
    flex-wrap: nowrap;
}

.gio-pv-page {
    background: #111318;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 8px;
    padding: 16px;
}

.gio-pv-page .gio-pv-hero,
.gio-page:has(.gio-dashboard-kpis) > .adm-header {
    min-height: 58px;
    margin: 0 0 12px;
    padding: 10px 16px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 8px;
    background: #1a1d24;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
}

.gio-pv-page .gio-pv-hero h1,
.gio-page:has(.gio-dashboard-kpis) > .adm-header h1 {
    color: #f8fafc;
    font-size: 1.12rem;
    font-weight: 400;
    letter-spacing: 0;
    margin: 0;
}

.gio-page .gio-pv-header-subtitle {
    max-width: 760px;
    color: #b6c2d1;
    font-size: 0.84rem;
    font-weight: 500;
    line-height: 1.25;
    margin: 2px 0 0;
}

.gio-pv-page .gio-pv-hero .mud-button-root,
.gio-page:has(.gio-dashboard-kpis) > .adm-header .mud-button-root {
    min-height: 34px;
    border-radius: 8px;
    box-shadow: none;
}

.gio-page .gio-mo-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: nowrap;
}

.gio-page .gio-mo-header-actions .mud-button-root {
    margin: 0;
}

.gio-pv-tabs,
.gio-page:has(.gio-dashboard-kpis) > .adm-tabs {
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 8px;
    background: #171a21;
    overflow: hidden;
}

.gio-pv-tabs .mud-tabs-toolbar,
.gio-page:has(.gio-dashboard-kpis) > .adm-tabs .mud-tabs-toolbar {
    min-height: 58px;
    background: #222530;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.gio-pv-tabs .mud-tab,
.gio-page:has(.gio-dashboard-kpis) > .adm-tabs .mud-tab {
    min-height: 58px;
    padding: 0 24px;
    color: #cbd5e1;
    font-weight: 700;
    text-transform: none;
}

.gio-pv-tabs .mud-tab.mud-tab-active,
.gio-page:has(.gio-dashboard-kpis) > .adm-tabs .mud-tab.mud-tab-active {
    color: #ffffff;
    background: rgba(37, 99, 235, 0.16);
}

.gio-pv-tabs .mud-tabs-panels,
.gio-page:has(.gio-dashboard-kpis) > .adm-tabs .mud-tabs-panels {
    padding: 16px;
}

.gio-pv-page .gio-dashboard-loading {
    min-height: 340px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 8px;
    background: #191c23;
}

.gio-pv-kpis {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 16px;
}

.gio-pv-kpis button {
    min-height: 112px;
    align-items: flex-start;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 8px;
    background: #1d2129;
    box-shadow: none;
    text-align: left;
}

.gio-pv-kpis button:hover {
    border-color: rgba(96, 165, 250, 0.46);
    background: #222834;
}

.gio-pv-kpis button span {
    display: block;
    color: #9ca3af;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.gio-pv-kpis button strong {
    display: block;
    color: #f8fafc;
    font-size: clamp(1.15rem, 1.6vw, 1.55rem);
    font-weight: 850;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.gio-dashboard-shell {
    display: grid;
    gap: 16px;
}

.gio-pv-panel,
.gio-dashboard-shell > .adm-panel {
    border: 1px solid rgba(148, 163, 184, 0.14) !important;
    border-radius: 8px !important;
    background: #1a1d24 !important;
    overflow: hidden;
}

.gio-pv-panel .gio-pendency-header,
.gio-dashboard-shell > .adm-panel .gio-pendency-header {
    padding: 2px 0 14px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    margin-bottom: 0;
}

.gio-pv-panel .gio-pendency-header h6,
.gio-dashboard-shell > .adm-panel .gio-pendency-header h6 {
    color: #f8fafc;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0;
}

.gio-pv-panel .gio-pendency-header .mud-typography-body2,
.gio-dashboard-shell > .adm-panel .gio-pendency-header .mud-typography-body2 {
    color: #aab6c7;
}

.gio-pv-panel .mud-table,
.gio-dashboard-shell > .adm-panel .mud-table {
    background: transparent;
}

.gio-pv-panel .mud-table-head,
.gio-dashboard-shell > .adm-panel .mud-table-head {
    background: #242832;
}

.gio-pv-panel .mud-table-cell,
.gio-dashboard-shell > .adm-panel .mud-table-cell {
    border-color: rgba(148, 163, 184, 0.12);
    color: #dbe4ef;
}

.gio-pv-panel .mud-table-head .mud-table-cell,
.gio-dashboard-shell > .adm-panel .mud-table-head .mud-table-cell {
    color: #cbd5e1;
    font-weight: 800;
}

.gio-pv-panel .pa-4,
.gio-dashboard-shell > .adm-panel .pa-4 {
    min-height: 86px;
    display: grid;
    place-items: center;
    color: #cbd5e1;
    background: #20242d;
}

.gio-pv-panel .mo-form-grid {
    min-height: auto;
    display: flex;
    align-items: flex-start;
    padding: 18px;
    background: #20242d;
}

.gio-pv-panel .mo-form-grid > .mud-grid-item {
    min-width: 0;
}

.gio-pv-panel .mo-option-group {
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.24);
}

.gio-pv-panel .mo-option-group > span {
    display: block;
    margin-bottom: 4px;
    color: #aeb8c9;
    font-size: 0.75rem;
    font-weight: 700;
}

.gio-pv-panel .mo-radio-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
}

.gio-pv-panel .mo-list-grid {
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.gio-page .mo-form-modal {
    width: min(1320px, calc(100vw - 48px));
    max-width: 1320px;
    max-height: calc(100vh - 32px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.gio-page .mo-form-modal > .sga-modal-title {
    flex: 0 0 auto;
}

.gio-page .mo-form-modal > .mo-modal-tabs {
    flex: 1 1 auto;
    min-height: 0;
    display: block;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-gutter: stable;
}

.gio-page .mo-form-modal > .mo-modal-tabs > .mud-tabs-toolbar {
    position: sticky;
    top: 0;
    z-index: 8;
    background: #34343e;
}

.gio-page .mo-form-modal > .mo-modal-tabs > .mud-tabs-panels {
    overflow: visible;
}

.gio-page .mo-form-modal .mo-modal-body-panel {
    height: auto;
    overflow: visible;
    padding-bottom: 18px;
}

.gio-page .mo-form-modal .mo-modal-grid {
    padding: 16px;
}

.gio-page .mo-form-modal .mo-modal-footer {
    flex: 0 0 auto;
    margin-top: 0;
    padding: 12px 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    background: #202329;
    box-shadow: 0 -12px 24px rgba(0, 0, 0, 0.26);
}

.gio-page .mo-recebida-modal {
    width: min(1180px, 96vw);
    max-height: calc(100vh - 56px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.gio-page .mo-recebida-modal > .sga-modal-title {
    flex: 0 0 auto;
    min-height: 64px;
    padding: 12px 16px;
}

.gio-page .mo-recebida-modal .mo-recebida-body {
    flex: 1 1 auto;
    min-height: 0;
    margin: 0;
    padding: 14px;
    overflow: auto;
    scrollbar-gutter: stable;
}

.gio-page .mo-recebida-layout {
    display: grid;
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.gio-page .mo-recebida-side,
.gio-page .mo-recebida-main {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 8px;
    background: #1b1f27;
    padding: 14px;
}

.gio-page .mo-recebida-side {
    position: sticky;
    top: 0;
    display: grid;
    gap: 12px;
}

.gio-page .mo-recebida-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    color: #eef2ff;
    font-size: 0.84rem;
    font-weight: 800;
}

.gio-page .mo-recebida-section-title .mud-icon-root {
    color: #93c5fd;
    font-size: 1.1rem;
}

.gio-page .mo-recebida-upload-box {
    position: relative;
    display: grid;
    justify-items: start;
    gap: 7px;
    min-height: 132px;
    padding: 14px;
    border: 1px dashed rgba(147, 197, 253, 0.42);
    border-radius: 8px;
    background: #202633;
}

.gio-page .mo-recebida-upload-box > .mud-icon-root {
    color: #93c5fd;
    font-size: 1.8rem;
}

.gio-page .mo-recebida-upload-box strong {
    color: #f8fafc;
    font-size: 0.92rem;
    line-height: 1.15;
}

.gio-page .mo-recebida-upload-box span {
    max-width: 100%;
    color: #b6c2d1;
    font-size: 0.78rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.gio-page .mo-recebida-upload-box input[type="file"] {
    width: 100%;
    color: #dbeafe;
    font-size: 0.78rem;
}

.gio-page .mo-recebida-upload-box input[type="file"]::file-selector-button {
    min-height: 30px;
    margin-right: 8px;
    border: 1px solid rgba(96, 165, 250, 0.42);
    border-radius: 8px;
    background: #2563eb;
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
}

.gio-page .mo-recebida-meta-list {
    display: grid;
    gap: 8px;
}

.gio-page .mo-recebida-meta-list div {
    display: grid;
    gap: 2px;
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 8px;
    background: #20242d;
}

.gio-page .mo-recebida-meta-list span {
    color: #94a3b8;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.gio-page .mo-recebida-meta-list strong {
    color: #f8fafc;
    font-size: 0.82rem;
    overflow-wrap: anywhere;
}

.gio-page .mo-recebida-meta-list .mo-recebida-meta-warning {
    border-color: rgba(251, 191, 36, 0.42);
    background: rgba(120, 53, 15, 0.22);
}

.gio-page .mo-recebida-meta-list .mo-recebida-meta-warning span,
.gio-page .mo-recebida-meta-list .mo-recebida-meta-warning strong {
    color: #fcd34d;
}

.gio-page .mo-recebida-form-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px 12px;
}

.gio-page .mo-recebida-form-grid .mud-input-control {
    margin: 0;
}

.gio-page .mo-recebida-form-grid .mud-input-root input,
.gio-page .mo-recebida-form-grid .mud-input-root textarea {
    font-size: 0.84rem;
}

.gio-page .mo-recebida-form-grid .mo-recebida-field-half {
    grid-column: span 2;
}

.gio-page .mo-recebida-form-grid .mo-recebida-field-wide {
    grid-column: span 4;
}

.gio-page .mo-recebida-form-grid .mo-recebida-field-missing .mud-input-outlined-border {
    border-color: rgba(251, 191, 36, 0.72) !important;
}

.gio-page .mo-recebida-form-grid .mo-recebida-field-missing .mud-input-label,
.gio-page .mo-recebida-form-grid .mo-recebida-field-missing .mud-input-slot {
    color: #fcd34d !important;
}

.gio-page .mo-recebida-form-grid .mo-recebida-field-missing .mud-input-root {
    background: rgba(120, 53, 15, 0.16);
}

.gio-page .mo-recebida-modal > .mo-modal-footer {
    flex: 0 0 auto;
    margin-top: 0;
    padding: 12px 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    background: #202329;
    box-shadow: 0 -12px 24px rgba(0, 0, 0, 0.26);
}

.gio-page .mo-recebida-batch-upload {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid rgba(96, 165, 250, 0.28);
    border-radius: 8px;
    background: rgba(37, 99, 235, 0.12);
    color: #dbeafe;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    overflow: hidden;
}

.gio-page .mo-recebida-batch-upload input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.gio-page .mo-batch-modal {
    width: min(1420px, 98vw);
    max-height: calc(100vh - 56px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.gio-page .mo-batch-body {
    flex: 1 1 auto;
    min-height: 0;
    margin: 0;
    padding: 12px;
    overflow: auto;
}

.gio-page .mo-batch-processing {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #bfdbfe;
    font-size: 0.84rem;
    font-weight: 800;
}

.gio-page .mo-batch-list {
    display: grid;
    gap: 8px;
}

.gio-page .mo-batch-row {
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) minmax(180px, 1fr) minmax(130px, 0.7fr) minmax(150px, 0.7fr) auto;
    gap: 8px;
    align-items: center;
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 8px;
    background: #1b1f27;
}

.gio-page .mo-batch-row.is-ready {
    border-color: rgba(34, 197, 94, 0.28);
}

.gio-page .mo-batch-row.is-pending {
    border-color: rgba(248, 113, 113, 0.24);
}

.gio-page .mo-batch-file {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.gio-page .mo-batch-file .mud-icon-root {
    flex: 0 0 auto;
    color: #93c5fd;
}

.gio-page .mo-batch-row.is-ready .mo-batch-file .mud-icon-root {
    color: #4ade80;
}

.gio-page .mo-batch-row.is-pending .mo-batch-file .mud-icon-root {
    color: #f87171;
}

.gio-page .mo-batch-file strong,
.gio-page .mo-batch-file span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gio-page .mo-batch-file strong {
    color: #f8fafc;
    font-size: 0.82rem;
}

.gio-page .mo-batch-file span {
    color: #94a3b8;
    font-size: 0.72rem;
}

.gio-page .mo-batch-field .mud-input-control {
    margin: 0;
}

.gio-page .mo-batch-field.is-ok .mud-input-outlined-border {
    border-color: rgba(34, 197, 94, 0.72) !important;
}

.gio-page .mo-batch-field.is-missing .mud-input-outlined-border {
    border-color: rgba(248, 113, 113, 0.78) !important;
}

.gio-page .mo-batch-field.is-ok .mud-input-label {
    color: #86efac !important;
}

.gio-page .mo-batch-field.is-missing .mud-input-label {
    color: #fca5a5 !important;
}

.gio-page .mo-batch-actions {
    display: flex;
    justify-content: flex-end;
}

.gio-page .mo-batch-modal > .mo-modal-footer {
    flex: 0 0 auto;
    margin-top: 0;
    padding: 12px 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    background: #202329;
    box-shadow: 0 -12px 24px rgba(0, 0, 0, 0.26);
}

@media (max-width: 1050px) {
    .gio-page .mo-batch-row {
        grid-template-columns: 1fr 1fr;
    }

    .gio-page .mo-batch-file {
        grid-column: span 2;
    }

    .gio-page .mo-batch-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 980px) {
    .gio-page .mo-recebida-layout {
        grid-template-columns: 1fr;
    }

    .gio-page .mo-recebida-side {
        position: static;
    }

    .gio-page .mo-recebida-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gio-page .mo-recebida-form-grid .mo-recebida-field-wide {
        grid-column: span 2;
    }

    .gio-page .mo-recebida-form-grid .mo-recebida-field-half {
        grid-column: span 1;
    }
}

@media (max-width: 640px) {
    .gio-page .mo-recebida-modal {
        width: calc(100vw - 24px);
        max-height: calc(100vh - 24px);
    }

    .gio-page .mo-recebida-form-grid {
        grid-template-columns: 1fr;
    }

    .gio-page .mo-recebida-form-grid .mo-recebida-field-wide {
        grid-column: span 1;
    }

    .gio-page .mo-recebida-form-grid .mo-recebida-field-half {
        grid-column: span 1;
    }
}

.gio-page .mo-form-modal .mo-flags-cell {
    min-height: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
}

.gio-page .mo-form-modal .mo-flags-label {
    color: #aeb8c9;
    font-size: 0.75rem;
    font-weight: 800;
    white-space: nowrap;
}

.gio-page .mo-form-modal .mo-flags-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px 10px;
    width: 100%;
}

.gio-page .mo-form-modal .mo-flags-row .mud-radio {
    margin: 0;
    white-space: nowrap;
    flex-shrink: 0;
}

.gio-page .mo-form-modal .mo-flags-panel {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.18);
    padding: 12px 16px;
}

.gio-page .mo-form-modal .mo-flags-inline {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    min-height: 32px;
    padding-top: 0;
    width: 100%;
}

.gio-page .mo-form-modal .mo-flags-inline .mo-flags-row {
    width: auto;
    gap: 6px 18px;
    justify-content: flex-start;
}

.gio-page .mo-form-modal .mo-inline-alert {
    margin: 0 16px 8px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(96, 165, 250, 0.28);
    background: rgba(30, 41, 59, 0.54);
    color: #cbd5e1;
    font-size: 0.92rem;
}

.gio-page .mo-form-modal .mo-inline-alert.is-warning {
    border-color: rgba(251, 191, 36, 0.28);
    background: rgba(120, 53, 15, 0.22);
    color: #fde68a;
}

.gio-page .mo-form-modal .mo-team-action {
    display: flex;
    align-items: flex-end;
}

.gio-page .mo-form-modal .mo-team-action .mud-button-root {
    min-height: 40px;
    margin-bottom: 3px;
}

.gio-page .mo-form-modal .mo-team-table {
    margin: 0 16px 16px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.26);
}

.gio-page .mo-form-modal .mo-team-table table {
    width: 100%;
    border-collapse: collapse;
}

.gio-page .mo-form-modal .mo-team-table th,
.gio-page .mo-form-modal .mo-team-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    text-align: left;
}

.gio-page .mo-form-modal .mo-team-table th {
    color: #d9e1f2;
    font-size: 0.78rem;
    font-weight: 800;
    background: rgba(30, 41, 59, 0.48);
}

.gio-page .mo-form-modal .mo-team-table tbody tr:last-child td {
    border-bottom: 0;
}

.gio-page .mo-form-modal .mo-team-table .mo-team-empty {
    color: #aeb8c9;
    text-align: center;
}

.gio-page .mo-form-modal .mo-team-table .mo-team-actions-col {
    width: 108px;
    text-align: center;
}

.gio-page .mo-team-files-modal {
    width: min(980px, calc(100vw - 64px));
    max-width: 980px;
    max-height: calc(100vh - 64px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.gio-page .mo-team-files-modal .mo-modal-body-panel {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

.gio-page .mo-team-files-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.gio-page .mo-team-files-upload {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
}

.gio-page .mo-team-files-upload .mud-icon-button {
    width: 30px;
    height: 30px;
}

.gio-page .mo-team-files-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.gio-page .mo-team-files-table {
    margin-top: 16px;
}

.gio-page .mo-team-files-modal .adm-row-actions {
    width: 92px;
    min-width: 92px;
}

.gio-page .mo-team-files-modal .grid-row-actions-content {
    justify-content: center;
}

.gio-page .gio-mo-period-filter {
    min-width: 180px;
}

.gio-page .gio-mo-period-filter .mud-input-control {
    margin-top: 0;
}

.gio-page .gio-mo-period-range {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.gio-page .mo-row-actions {
    gap: 4px;
}

.gio-page .mo-row-actions .mo-action-tooltip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
}

.gio-page .mo-row-actions .mo-action-button {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    color: #cbd5e1 !important;
}

.gio-page .mo-row-actions .mo-action-button:hover {
    background: rgba(148, 163, 184, 0.12);
}

.gio-page .mo-row-actions .mo-action-button.is-emitir {
    color: #8b5cf6 !important;
}

.gio-page .mo-row-actions .mo-action-button.is-iniciar {
    color: #60a5fa !important;
}

.gio-page .mo-row-actions .mo-action-button.is-reprogramar {
    color: #f59e0b !important;
}

.gio-page .mo-row-actions .mo-action-button.is-prorrogar {
    color: #fb923c !important;
}

.gio-page .mo-row-actions .mo-action-button.is-enviar {
    color: #22d3ee !important;
}

.gio-page .mo-row-actions .mo-action-button.is-visualizar {
    color: #60a5fa !important;
}

.gio-page .mo-row-actions .mo-action-button.is-pdf {
    color: #ef4444 !important;
}

.gio-page .mo-row-actions .mo-action-button.is-clonar {
    color: #14b8a6 !important;
}

.gio-page .mo-row-actions .mo-action-button.is-cancelar {
    color: #f43f5e !important;
}

.gio-page .mo-row-actions .mo-action-button.is-aprovar {
    color: #22c55e !important;
}

.gio-page .mo-row-actions .mo-action-button.is-revisar {
    color: #facc15 !important;
}

.gio-page .mo-row-actions .mo-action-button.is-ajustar {
    color: #a78bfa !important;
}

.gio-page .mo-row-actions .mo-action-button.is-fluxo {
    color: #3b82f6 !important;
}

.gio-page .mo-row-actions .mo-action-button.is-editar {
    color: #818cf8 !important;
}

.gio-page .mo-pdf-modal {
    width: min(1080px, calc(100vw - 48px));
    max-height: calc(100vh - 32px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.gio-page .mo-pdf-modal.is-expanded {
    width: calc(100vw - 24px);
    max-width: none;
    max-height: calc(100vh - 24px);
}

.gio-page .mo-pdf-preview-shell {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 18px;
    background: #202329;
}

.gio-page .mo-pdf-modal.is-expanded .mo-pdf-preview-shell {
    padding: 14px;
}

.gio-page .mo-pdf-page {
    width: 1120px;
    min-height: 1584px;
    margin: 0 auto;
    padding: 24px 22px 12px;
    display: flex;
    flex-direction: column;
    border-radius: 2px;
    background: #ffffff;
    color: #000000;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 22px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.42);
}

.gio-page .mo-pdf-loading-state {
    min-height: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 36px 24px;
    color: #f5f7fb;
    text-align: center;
}

.gio-page .mo-pdf-loading-state strong {
    font-size: 24px;
    font-weight: 700;
}

.gio-page .mo-pdf-loading-state span {
    font-size: 16px;
    color: rgba(245, 247, 251, 0.78);
}

.gio-page .mo-pdf-model-header {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 372px;
    align-items: center;
    column-gap: 22px;
    min-height: 110px;
    margin-bottom: 12px;
}

.gio-page .mo-pdf-title-status {
    display: contents;
}

.gio-page .mo-pdf-title-status h2 {
    grid-column: 2;
    margin: 0;
    text-align: center;
    color: #063b66;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: 0;
    white-space: nowrap;
    transform: translateX(-8px);
}

.gio-page .mo-pdf-header-meta {
    grid-column: 3;
    display: grid;
    border-left: 3px solid #d4d4d4;
    border-top: 3px solid #d4d4d4;
    background: #ffffff;
}

.gio-page .mo-pdf-header-meta p {
    margin: 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    border-right: 3px solid #d4d4d4;
    border-bottom: 3px solid #d4d4d4;
    font-size: 20px;
    line-height: 1.15;
}

.gio-page .mo-pdf-header-meta p > span {
    align-self: stretch;
    display: inline-flex;
    align-items: center;
    width: 132px;
    flex: 0 0 132px;
    padding: 6px 12px;
    border-right: 3px solid #d4d4d4;
    background: #e2e2e2;
    font-size: 20px;
    font-weight: 500;
    text-align: left;
}

.gio-page .mo-pdf-header-meta p > strong {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    font-weight: 400;
    line-height: 1.25;
}

.gio-page .mo-pdf-company-logo {
    width: 220px;
    max-height: 96px;
    object-fit: contain;
    justify-self: start;
}

.gio-page .mo-pdf-corc-logo {
    width: 220px;
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    justify-self: start;
    color: #0060af;
    font-weight: 900;
    line-height: 1;
}

.gio-page .mo-pdf-corc-logo strong {
    font-size: 58px;
    letter-spacing: 0;
}

.gio-page .mo-pdf-corc-logo small {
    margin-top: 4px;
    color: #2b6ea5;
    font-size: 10px;
    font-weight: 500;
    text-align: center;
}

.gio-page .mo-pdf-corc-mark {
    width: 68px;
    height: 68px;
    border: 2px solid #1d75bb;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.gio-page .mo-pdf-corc-mark::before {
    content: "";
    position: absolute;
    width: 66px;
    height: 10px;
    border-top: 4px solid #1d75bb;
    transform: rotate(-10deg) translateY(-18px);
}

.gio-page .mo-pdf-corc-mark span {
    width: 10px;
    height: 54px;
    border-left: 3px solid #1d75bb;
    border-right: 3px solid #1d75bb;
    transform: skew(-8deg);
}

.gio-page .mo-pdf-blue-line {
    height: 5px;
    margin: 0 0 28px;
    background: #063b66;
}

.gio-page .mo-pdf-model-grid {
    display: grid;
    border-left: 3px solid #d4d4d4;
    border-top: 3px solid #d4d4d4;
}

.gio-page .mo-pdf-cell {
    border-right: 3px solid #d4d4d4;
    border-bottom: 3px solid #d4d4d4;
    color: #000000;
}

.gio-page .mo-pdf-info-cell p > span,
.gio-page .mo-pdf-program-priority > span,
.gio-page .mo-pdf-program-periodicity > span,
.gio-page .mo-pdf-program-date-cell p > span {
    align-self: stretch;
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-right: 3px solid #d4d4d4;
    background: #e2e2e2;
    font-size: 21px;
    font-weight: 500;
    text-align: left;
}

.gio-page .mo-pdf-check-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 22px;
    align-items: center;
}

.gio-page .mo-pdf-check-row span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #000000;
    font-size: 22px;
    white-space: nowrap;
}

.gio-page .mo-pdf-check-row span::before {
    content: "";
    width: 17px;
    height: 17px;
    display: inline-block;
    border: 1.5px solid #000000;
    box-sizing: border-box;
}

.gio-page .mo-pdf-check-row span.is-selected::before {
    content: "X";
    font-size: 16px;
    font-weight: 700;
    line-height: 14px;
    text-align: center;
}

.gio-page .mo-pdf-party-grid {
    grid-template-columns: 185px minmax(0, calc(57.02% - 185px)) minmax(0, 42.98%);
    min-height: 82px;
    margin-top: 12px;
}

.gio-page .mo-pdf-label-cell {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 10px;
    background: #e2e2e2;
    font-size: 21px;
    font-weight: 500;
    line-height: 1.15;
    text-align: left;
}

.gio-page .mo-pdf-value-cell {
    padding: 13px 12px;
    display: flex;
    align-items: center;
    background: #ffffff;
    font-size: 22px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.gio-page .mo-pdf-info-cell {
    padding: 0;
    display: grid;
    grid-template-rows: 1fr 1fr;
}

.gio-page .mo-pdf-info-cell p {
    margin: 0;
    display: flex;
    align-items: center;
    border-bottom: 3px solid #d4d4d4;
    font-size: 22px;
    line-height: 1.15;
}

.gio-page .mo-pdf-info-cell p:last-child {
    border-bottom: 0;
}

.gio-page .mo-pdf-info-cell p > span {
    width: 148px;
    flex: 0 0 148px;
    padding: 9px 12px;
}

.gio-page .mo-pdf-info-cell p > strong {
    padding: 9px 12px;
    font-weight: 400;
    overflow-wrap: anywhere;
}

.gio-page .mo-pdf-subject-grid {
    grid-template-columns: 185px 1fr;
    min-height: 68px;
    margin-top: 12px;
}

.gio-page .mo-pdf-program-table {
    margin-top: 12px;
    border: 3px solid #d4d4d4;
    display: grid;
    grid-template-rows: auto repeat(3, minmax(40px, auto));
}

.gio-page .mo-pdf-program-table > label {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 3px solid #d4d4d4;
    background: #e2e2e2;
    font-size: 21px;
    font-weight: 500;
    text-align: left;
}

.gio-page .mo-pdf-program-table-row {
    display: grid;
    grid-template-columns: 185px 1fr;
    min-height: 40px;
    border-bottom: 3px solid #d4d4d4;
}

.gio-page .mo-pdf-program-table-row:last-child {
    border-bottom: 0;
}

.gio-page .mo-pdf-program-table-row > span,
.gio-page .mo-pdf-program-table-dates > span {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-right: 3px solid #d4d4d4;
    background: #e2e2e2;
    font-size: 21px;
    font-weight: 500;
    text-align: left;
}

.gio-page .mo-pdf-program-table-row > .mo-pdf-check-row {
    gap: 30px;
    padding: 0 12px;
}

.gio-page .mo-pdf-program-table-dates {
    grid-template-columns: 185px minmax(0, calc(57.02% - 185px)) 148px minmax(0, calc(42.98% - 148px));
}

.gio-page .mo-pdf-program-table-dates > strong {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 21px;
    font-weight: 400;
}

.gio-page .mo-pdf-model-text {
    margin-top: 12px;
    min-height: 112px;
    border: 3px solid #d4d4d4;
    padding: 0;
    display: grid;
    grid-template-rows: auto 1fr;
}

.gio-page .mo-pdf-model-text label {
    display: block;
    padding: 8px 12px;
    border-bottom: 3px solid #d4d4d4;
    background: #e2e2e2;
    font-size: 21px;
    font-weight: 500;
    text-align: left;
}

.gio-page .mo-pdf-model-text p {
    margin: 0;
    padding: 12px 76px;
    display: flex;
    align-items: center;
    color: #000000;
    font-size: 23px;
    line-height: 1.35;
    white-space: pre-wrap;
}

.gio-page .mo-pdf-observation {
    min-height: 170px;
}

.gio-page .mo-pdf-observation p {
    margin-top: 0;
}

.gio-page .mo-pdf-team-table {
    margin-top: 12px;
    color: #000000;
}

.gio-page .mo-pdf-team-table > label {
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
}

.gio-page .mo-pdf-team-table table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    border: 2px solid #4d4d4d;
    background: #ffffff;
}

.gio-page .mo-pdf-team-table th,
.gio-page .mo-pdf-team-table td {
    border: 2px solid #4d4d4d;
    padding: 6px 8px;
    color: #000000;
    font-size: 16px;
    line-height: 1.2;
    vertical-align: middle;
}

.gio-page .mo-pdf-team-table th {
    background: #c7d9ee;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
}

.gio-page .mo-pdf-team-table th:nth-child(1),
.gio-page .mo-pdf-team-table td:nth-child(1) {
    width: 54px;
    text-align: center;
}

.gio-page .mo-pdf-team-table th:nth-child(2),
.gio-page .mo-pdf-team-table td:nth-child(2) {
    width: 40%;
}

.gio-page .mo-pdf-team-table th:nth-child(3),
.gio-page .mo-pdf-team-table td:nth-child(3) {
    width: 30%;
}

.gio-page .mo-pdf-team-table td:nth-child(4) {
    width: 30%;
}

.gio-page .mo-pdf-bottom {
    margin-top: auto;
    padding-top: 18px;
}

.gio-page .mo-pdf-footer {
    padding-top: 0;
}

.gio-page .mo-pdf-signature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-left: 3px solid #d4d4d4;
    border-top: 3px solid #d4d4d4;
}

.gio-page .mo-pdf-signature-cell {
    min-height: 100px;
    display: grid;
    grid-template-rows: 36px 1fr;
    border-right: 3px solid #d4d4d4;
    border-bottom: 3px solid #d4d4d4;
}

.gio-page .mo-pdf-signature-cell label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-bottom: 3px solid #d4d4d4;
    background: #e2e2e2;
    color: #000000;
    font-size: 21px;
    font-weight: 500;
    text-align: center;
}

.gio-page .mo-pdf-signature-cell div {
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px 12px;
}

.gio-page .mo-pdf-page-number {
    margin-top: 10px;
    text-align: right;
    color: #000000;
    font-size: 14px;
}

@media (max-width: 1180px) {
    .gio-pv-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .gio-pv-page {
        padding: 10px;
    }

    .gio-pv-page .gio-pv-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .gio-pv-tabs .mud-tab,
    .gio-page:has(.gio-dashboard-kpis) > .adm-tabs .mud-tab {
        min-width: max-content;
        padding: 0 16px;
    }

    .gio-pv-tabs .mud-tabs-panels,
    .gio-page:has(.gio-dashboard-kpis) > .adm-tabs .mud-tabs-panels {
        padding: 10px;
    }

    .gio-pv-kpis {
        grid-template-columns: 1fr;
    }
}

.gio-year-select-popover .mud-list-item {
    padding-left: 10px;
    padding-right: 10px;
}

.gio-year-select-popover .mud-list-item-icon {
    min-width: 34px;
    margin-right: 4px;
}

.gio-year-select-popover .mud-list-item-text {
    margin-left: 0;
}
.gio-page .gio-rdo-os-modal {
    width: min(96vw, 1560px);
    max-width: 1560px;
    min-height: 0;
}

.gio-page .gio-rdo-os-modal .adm-stack {
    gap: 12px;
}

.gio-page .gio-rdo-os-modal .grid-toolbar {
    gap: 10px;
}

.gio-page .gio-rdo-os-modal .grid-group-dropzone {
    flex-basis: 260px;
    min-width: 220px;
    max-width: 300px;
}

.gio-page .gio-rdo-os-modal .grid-global-search {
    flex-basis: 300px;
    width: 300px;
    max-width: 320px;
}

.gio-page .gio-rdo-os-modal .gio-rdo-os-select {
    width: 420px;
    min-width: 320px;
    max-width: 420px;
}

.gio-page .gio-rdo-os-modal .gio-rdo-os-select .mud-input-control {
    margin: 0;
}

.gio-page .gio-rdo-os-modal .grid-toolbar-actions .mud-icon-button {
    width: 40px;
    height: 40px;
}

.gio-page .gio-rdo-os-actions {
    justify-content: flex-end;
    margin-top: 12px;
}
.gio-pendency-panel {
    display: grid;
    gap: 14px;
}

.gio-pendency-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.gio-pendency-header .mud-typography-h6 {
    color: #f4f7ff;
    font-weight: 800;
}

.gio-pendency-header .mud-typography-body2 {
    color: #c7cedc;
}

.gio-pendency-filters {
    display: grid;
    grid-template-columns: minmax(180px, 0.7fr) minmax(180px, 0.8fr) minmax(260px, 1.5fr);
    gap: 12px;
    align-items: center;
}

.gio-pendency-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    gap: 12px;
}

.gio-pendency-kpi,
.gio-pendency-kpi-critical {
    min-height: 76px;
    border: 1px solid rgba(124, 101, 255, 0.22);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(18, 24, 38, 0.98), rgba(29, 34, 48, 0.98));
    color: #eef3ff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 14px 18px;
    text-align: left;
}

.gio-pendency-kpi {
    cursor: pointer;
}

.gio-pendency-kpi:hover,
.gio-pendency-kpi.is-active {
    border-color: #8068ff;
    box-shadow: inset 0 0 0 1px rgba(128, 104, 255, 0.42);
}

.gio-pendency-kpi span,
.gio-pendency-kpi-critical span {
    color: #c9d1e0;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.gio-pendency-kpi strong,
.gio-pendency-kpi-critical strong {
    font-size: 1.75rem;
    line-height: 1;
}

.gio-pendency-kpi-critical {
    border-color: rgba(239, 68, 68, 0.32);
}

.gio-pendency-kpi-critical strong {
    color: #ffb4b4;
}

@media (max-width: 980px) {
    .gio-pendency-header,
    .gio-pendency-filters,
    .gio-pendency-kpis {
        grid-template-columns: 1fr;
    }

    .gio-pendency-header {
        align-items: stretch;
    }
}




.gio-page > .gma-kpi-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.gio-page > .gma-kpi-grid .gma-kpi,
.gio-page > .gma-kpi-grid .gma-kpi-button {
    min-height: 92px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 10px;
    padding: 14px 16px;
}

.gio-page > .gma-kpi-grid .gma-kpi span,
.gio-page > .gma-kpi-grid .gma-kpi-button span {
    align-self: start;
    justify-self: start;
    text-align: left;
    line-height: 1.2;
}

.gio-page > .gma-kpi-grid .gma-kpi strong,
.gio-page > .gma-kpi-grid .gma-kpi-button strong {
    align-self: end;
    justify-self: end;
    text-align: right;
    white-space: nowrap;
}

.gio-page .gio-dashboard-kpis {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.gio-page .gio-dashboard-kpis .gma-kpi {
    min-height: 92px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 10px;
    padding: 14px 16px;
}

.gio-page .gio-dashboard-kpis .gma-kpi span {
    align-self: start;
    justify-self: start;
    text-align: left;
    line-height: 1.2;
}

.gio-page .gio-dashboard-kpis .gma-kpi strong {
    align-self: end;
    justify-self: end;
    text-align: right;
    white-space: nowrap;
}

.gio-page .gio-mo-chart-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 2px;
}

.gio-page .gio-mo-bar-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.gio-page .mo-flow-destinatario {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 8px;
    background: rgba(15, 23, 42, .44);
}

.gio-page .mo-flow-destinatario div {
    display: grid;
    gap: 4px;
}

.gio-page .mo-flow-destinatario span {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.gio-page .mo-flow-destinatario strong {
    color: #f8fafc;
    font-size: 14px;
    font-weight: 700;
    word-break: break-word;
}

.gio-page .gio-mo-status-chart .ginoma-donut-shell,
.gio-page .gio-mo-prioridade-chart .ginoma-donut-shell,
.gio-page .gio-mo-periodicidade-chart .ginoma-donut-shell {
    grid-template-columns: 1fr;
    align-items: start;
    justify-items: center;
    min-height: 285px;
    gap: 12px;
}

.gio-page .gio-mo-status-chart .ginoma-apex-donut,
.gio-page .gio-mo-prioridade-chart .ginoma-apex-donut,
.gio-page .gio-mo-periodicidade-chart .ginoma-apex-donut {
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
}

.gio-page .gio-mo-status-chart .ginoma-donut-value-legend,
.gio-page .gio-mo-prioridade-chart .ginoma-donut-value-legend,
.gio-page .gio-mo-periodicidade-chart .ginoma-donut-value-legend {
    width: 100%;
    align-content: start;
}

.gio-dashboard-kpi-button.is-active {
    border-color: #7c55ed;
    box-shadow: inset 0 0 0 1px rgba(124, 85, 237, .34), 0 12px 28px rgba(0, 0, 0, .2);
}

.gio-dashboard-loading {
    min-height: 260px;
}

@media (max-width: 1400px) {
    .gio-page > .gma-kpi-grid,
    .gio-page .gio-dashboard-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .gio-page .gio-mo-chart-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gio-page .gio-mo-bar-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .gio-page > .gma-kpi-grid,
    .gio-page .gio-dashboard-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gio-page .gio-mo-chart-grid {
        grid-template-columns: 1fr;
    }

    .gio-page .gio-mo-bar-grid {
        grid-template-columns: 1fr;
    }

    .gio-page .mo-flow-destinatario {
        grid-template-columns: 1fr;
    }
}

.gio-dashboard-shell {
    display: grid;
    gap: 18px;
    padding: 18px 10px 24px;
}

.gio-chart-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.gio-chart-card,
.gio-company-chart {
    border: 1px solid rgba(148, 163, 184, .16);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(24, 29, 39, .98), rgba(15, 23, 42, .94));
    box-shadow: 0 18px 36px rgba(0, 0, 0, .2);
}

.gio-chart-card {
    min-height: 300px;
    padding: 18px;
}

.gio-chart-head,
.gio-company-chart-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.gio-chart-head div,
.gio-company-chart-head div {
    display: grid;
    gap: 4px;
}

.gio-chart-head span,
.gio-company-chart-head span {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.gio-chart-head strong,
.gio-company-chart-head strong {
    color: #f8fafc;
    font-size: 17px;
    line-height: 1.2;
}

.gio-chart-head em,
.gio-company-chart-head em {
    color: #dbeafe;
    font-size: 13px;
    font-style: normal;
    font-weight: 900;
    white-space: nowrap;
}

.gio-donut-wrap {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}

.gio-donut {
    width: 150px;
    aspect-ratio: 1;
    border-radius: 999px;
    display: grid;
    place-items: center;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 18px 32px rgba(0, 0, 0, .22);
}

.gio-donut > div {
    width: 88px;
    aspect-ratio: 1;
    border-radius: 999px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 2px;
    background: #111827;
    box-shadow: 0 0 0 1px rgba(148, 163, 184, .14);
}

.gio-donut strong {
    color: #fff;
    font-size: 20px;
    line-height: 1;
}

.gio-donut span {
    color: #94a3b8;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.gio-chart-legend {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.gio-chart-legend div {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    padding: 6px 8px;
    border: 1px solid rgba(148, 163, 184, .12);
    border-radius: 6px;
    background: rgba(15, 23, 42, .72);
}

.gio-chart-legend i {
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

.gio-chart-legend span {
    min-width: 0;
    overflow: hidden;
    color: #cbd5e1;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gio-chart-legend strong,
.gio-chart-legend em {
    color: #f8fafc;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.gio-chart-legend em {
    color: #93c5fd;
}

.gio-company-chart {
    grid-column: 1 / -1;
    padding: 18px;
}

.gio-company-bars {
    display: grid;
    gap: 10px;
}

.gio-company-bar-row {
    display: grid;
    grid-template-columns: minmax(190px, 260px) minmax(0, 1fr) 110px;
    align-items: center;
    gap: 14px;
    padding: 9px 10px;
    border: 1px solid rgba(148, 163, 184, .11);
    border-radius: 6px;
    background: rgba(15, 23, 42, .62);
}

.gio-company-bar-row div:first-child {
    display: grid;
    gap: 2px;
}

.gio-company-bar-row strong {
    color: #f8fafc;
    font-size: 13px;
}

.gio-company-bar-row span,
.gio-company-bar-row small {
    color: #94a3b8;
    font-size: 11px;
}

.gio-company-bar-row small {
    text-align: right;
}

.gio-company-bar-track {
    position: relative;
    height: 20px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(30, 41, 59, .92);
}

.gio-company-bar-track i {
    position: absolute;
    inset: 0 auto 0 0;
    border-radius: inherit;
}

.gio-company-bar-track .total {
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
}

.gio-company-bar-track .alert {
    background: linear-gradient(90deg, #f59e0b, #ef4444);
    opacity: .85;
}

.gio-company-bar-track .secondary {
    background: linear-gradient(90deg, #22c55e, #38bdf8);
    opacity: .8;
}

@media (max-width: 1280px) {
    .gio-chart-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gio-donut-wrap {
        grid-template-columns: 130px minmax(0, 1fr);
    }

    .gio-donut {
        width: 130px;
    }
}

@media (max-width: 820px) {
    .gio-chart-grid {
        grid-template-columns: 1fr;
    }

    .gio-donut-wrap,
    .gio-company-bar-row {
        grid-template-columns: 1fr;
    }

    .gio-company-bar-row small {
        text-align: left;
    }
}



.gma-page .gma-section-tabs {
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: linear-gradient(180deg, rgba(31, 35, 44, 0.98), rgba(24, 28, 35, 0.98));
}

.gma-page .gma-section-tabs > .mud-tabs-toolbar {
    padding: 10px;
    background: rgba(15, 23, 42, 0.44);
}

.gma-page .gma-section-tabs > .mud-tabs-toolbar .mud-tabs-toolbar-content {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 10px;
}

.gma-page .gma-section-tabs > .mud-tabs-toolbar .mud-tab {
    max-width: none;
    min-height: 46px !important;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(15, 23, 42, .70), rgba(30, 41, 59, .54));
    border-color: rgba(148, 163, 184, .16);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.gma-page .gma-section-tabs > .mud-tabs-toolbar .mud-tab .mud-icon-root {
    color: #8b7cff;
    margin-right: 8px;
}

.gma-page .gma-section-tabs > .mud-tabs-toolbar .mud-tab.mud-tab-active {
    background: linear-gradient(135deg, rgba(124, 108, 255, .34), rgba(37, 99, 235, .20));
    border-color: rgba(139, 124, 255, .62);
}

.gma-page .gma-section-tabs > .mud-tabs-panels {
    padding: 12px;
    background: rgba(24, 28, 35, 0.98);
}

.gma-page .gma-sub-tabs {
    margin-top: 0;
    border-radius: 10px;
    box-shadow: none;
    background: transparent;
}

.gma-page .gma-sub-tabs > .mud-tabs-toolbar {
    padding: 8px;
    background: rgba(53, 52, 62, 0.70);
}

.gma-page .gma-sub-tabs > .mud-tabs-toolbar .mud-tabs-toolbar-content {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gma-page .gma-sub-tabs > .mud-tabs-toolbar .mud-tab {
    flex: 0 1 auto;
    min-width: 150px;
    max-width: 260px;
    min-height: 36px !important;
    border-radius: 8px;
}

.gma-page .gma-sub-tabs > .mud-tabs-panels {
    padding: 12px 0 0;
    background: transparent;
    border-top: 0;
}

@media (max-width: 1200px) {
    .gma-page .gma-section-tabs > .mud-tabs-toolbar .mud-tabs-toolbar-content {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }
}

@media (max-width: 720px) {
    .gma-page .gma-section-tabs > .mud-tabs-toolbar .mud-tabs-toolbar-content {
        grid-template-columns: 1fr;
    }

    .gma-page .gma-sub-tabs > .mud-tabs-toolbar .mud-tab {
        flex: 1 1 100%;
        max-width: none;
    }
}
/* ADM dashboard */
.adm-dashboard-page {
    gap: 14px;
}

.adm-dashboard-loading {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #cbd5e1;
    font-weight: 700;
}

.adm-dashboard-kpis {
    grid-template-columns: repeat(6, minmax(150px, 1fr));
}

.adm-dashboard-kpi {
    position: relative;
    min-height: 126px;
    text-align: left;
    overflow: hidden;
}

.adm-dashboard-kpi .mud-icon-root {
    color: #8b7cf6;
    font-size: 24px;
    margin-bottom: 8px;
}

.adm-dashboard-kpi em {
    display: block;
    margin-top: 8px;
    color: #a7b0c2;
    font-style: normal;
    font-size: .78rem;
    line-height: 1.25;
}

.adm-dashboard-kpi.success .mud-icon-root,
.adm-health-row.normal em,
.adm-alert-item.success .mud-icon-root {
    color: #22c55e;
}

.adm-dashboard-kpi.medium .mud-icon-root,
.adm-health-row.high em,
.adm-alert-item.high .mud-icon-root {
    color: #f59e0b;
}

.adm-dashboard-kpi.high .mud-icon-root,
.adm-health-row.critical em,
.adm-alert-item.critical .mud-icon-root {
    color: #ef4444;
}

.adm-dashboard-executive-grid,
.adm-dashboard-bottom-grid {
    display: grid;
    grid-template-columns: minmax(360px, .9fr) minmax(460px, 1.1fr);
    gap: 14px;
}

.adm-dashboard-chart-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(230px, 1fr));
    gap: 14px;
}

.adm-dashboard-health,
.adm-dashboard-alerts,
.adm-dashboard-radar,
.adm-dashboard-activity {
    min-height: 100%;
}

.adm-health-score {
    padding: 10px 0 14px;
    display: grid;
    gap: 6px;
}

.adm-health-score strong {
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1;
    color: #f8fafc;
}

.adm-health-score span {
    color: #aeb8c9;
    font-size: .9rem;
}

.adm-health-track,
.adm-health-row,
.adm-alert-item {
    border: 1px solid rgba(148, 163, 184, .22);
    background: rgba(15, 23, 42, .38);
}

.adm-health-track {
    height: 9px;
    border-radius: 999px;
    overflow: hidden;
}

.adm-health-track div {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ef4444, #f59e0b, #22c55e);
}

.adm-health-metrics,
.adm-alert-list,
.adm-activity-list {
    display: grid;
    gap: 8px;
}

.adm-health-row,
.adm-alert-item {
    width: 100%;
    border-radius: 8px;
    color: #e5e7eb;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    text-align: left;
    cursor: pointer;
}

.sgm-ss-upload-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 14px;
    margin-top: 14px;
    margin-bottom: 8px;
}

.sgm-ss-upload-grid .sgm-upload-box {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 14px;
    min-height: 132px;
    border: 1px solid rgba(129, 140, 248, 0.38);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.28);
}

.sgm-ss-upload-grid .sgm-upload-box > .mud-icon-root {
    width: 42px;
    height: 42px;
    padding: 9px;
    border-radius: 8px;
    color: #a99cff;
    background: rgba(124, 92, 255, 0.14);
}

.sgm-upload-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.sgm-upload-copy .mud-typography {
    color: #eef4ff;
    font-weight: 800;
}

.sgm-upload-copy span {
    color: #aeb8ce;
    font-size: 0.82rem;
}

.sgm-file-label {
    position: relative;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 22px minmax(0, max-content) minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px dashed rgba(129, 140, 248, 0.62);
    border-radius: 7px;
    background: rgba(31, 41, 55, 0.66);
    color: #f8fafc;
    cursor: pointer;
    overflow: hidden;
}

.sgm-file-label:hover {
    border-color: rgba(167, 139, 250, 0.92);
    background: rgba(49, 46, 129, 0.38);
}

.sgm-file-label .mud-icon-root {
    color: #8b7cf6;
}

.sgm-file-label strong {
    font-size: 0.8rem;
    text-transform: uppercase;
}

.sgm-file-label em {
    min-width: 0;
    color: #c7d2fe;
    font-style: normal;
    font-size: 0.82rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .sgm-ss-upload-grid {
        grid-template-columns: 1fr;
    }
}

.adm-health-row:hover,
.adm-alert-item:hover,
.adm-activity-item:hover {
    border-color: rgba(139, 124, 246, .55);
    background: rgba(30, 41, 59, .72);
}

.adm-health-row div,
.adm-alert-item div,
.adm-activity-item div {
    min-width: 0;
    flex: 1;
}

.adm-health-row strong,
.adm-alert-item strong,
.adm-activity-item strong {
    display: block;
    color: #f8fafc;
    font-size: .9rem;
}

.adm-health-row span,
.adm-alert-item span,
.adm-activity-item span {
    display: block;
    color: #9aa5b8;
    font-size: .78rem;
    line-height: 1.3;
}

.adm-health-row em,
.adm-alert-item em {
    font-style: normal;
    font-size: 1.15rem;
    font-weight: 900;
    color: #f8fafc;
}

.adm-alert-item .mud-icon-root {
    flex: 0 0 auto;
}

.adm-dashboard-radar .dashboard-radar-grid {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
}

.adm-dashboard-radar .dashboard-radar-card {
    min-height: 138px;
    text-align: left;
}

.adm-dashboard-activity .sga-empty-state {
    min-height: 160px;
}

.adm-activity-item {
    border: 1px solid rgba(148, 163, 184, .18);
    background: rgba(15, 23, 42, .34);
    border-radius: 8px;
    padding: 11px 12px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.adm-activity-item time {
    color: #8b7cf6;
    font-size: .76rem;
    font-weight: 800;
    white-space: nowrap;
}

@media (max-width: 1500px) {
    .adm-dashboard-kpis,
    .adm-dashboard-chart-grid {
        grid-template-columns: repeat(3, minmax(210px, 1fr));
    }
}

@media (max-width: 1100px) {
    .adm-dashboard-executive-grid,
    .adm-dashboard-bottom-grid,
    .adm-dashboard-chart-grid,
    .adm-dashboard-kpis {
        grid-template-columns: 1fr;
    }

    .adm-dashboard-radar .dashboard-radar-grid {
        grid-template-columns: repeat(2, minmax(150px, 1fr));
    }
}

@media (max-width: 680px) {
    .adm-dashboard-radar .dashboard-radar-grid {
        grid-template-columns: 1fr;
    }
}

.adm-dashboard-error {
    min-height: 180px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: #e5e7eb;
    padding: 22px;
}

.adm-dashboard-error .mud-icon-root {
    color: #f59e0b;
    font-size: 32px;
}

.adm-dashboard-error div {
    flex: 1;
    min-width: 0;
}

.adm-dashboard-error strong {
    display: block;
    color: #f8fafc;
    font-size: 1rem;
    margin-bottom: 4px;
}

.adm-dashboard-error span {
    display: block;
    color: #aeb8c9;
    font-size: .86rem;
}

/* ADM dashboard top KPI refinement */
.adm-dashboard-kpis {
    grid-template-columns: repeat(4, minmax(190px, 1fr));
}

.adm-dashboard-kpi {
    min-height: 118px;
}

@media (max-width: 1500px) {
    .adm-dashboard-kpis {
        grid-template-columns: repeat(4, minmax(180px, 1fr));
    }
}

@media (max-width: 980px) {
    .adm-dashboard-kpis {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }
}

@media (max-width: 620px) {
    .adm-dashboard-kpis {
        grid-template-columns: 1fr;
    }
}

.adm-users-area .adm-course-kpis {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.adm-users-area .adm-course-kpis .adm-dashboard-kpi {
    min-width: 0;
}

@media (max-width: 1280px) {
    .adm-users-area .adm-course-kpis {
        grid-template-columns: repeat(3, minmax(180px, 1fr));
    }
}

@media (max-width: 780px) {
    .adm-users-area .adm-course-kpis {
        grid-template-columns: repeat(2, minmax(160px, 1fr));
    }
}

@media (max-width: 520px) {
    .adm-users-area .adm-course-kpis {
        grid-template-columns: 1fr;
    }
}

/* ADM dashboard governance panel refinement */
.adm-dashboard-executive-grid {
    grid-template-columns: 1fr;
}

.adm-dashboard-alerts {
    min-height: 0;
}

.adm-dashboard-alerts .adm-alert-list {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
}

@media (max-width: 980px) {
    .adm-dashboard-alerts .adm-alert-list {
        grid-template-columns: 1fr;
    }
}

/* ADM dashboard final layout pass */
.adm-dashboard-chart-grid .adm-audit-wide-chart {
    grid-column: 1 / -1;
}

.adm-dashboard-bottom-grid {
    grid-template-columns: 1fr;
}

.adm-dashboard-alerts .adm-alert-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.adm-dashboard-alerts .adm-alert-item {
    align-items: flex-start;
    min-height: 112px;
    gap: 10px;
    padding: 12px 10px;
}

.adm-dashboard-alerts .adm-alert-item strong {
    font-size: .84rem;
}

.adm-dashboard-alerts .adm-alert-item span {
    font-size: .72rem;
}

.adm-dashboard-alerts .adm-alert-item em {
    align-self: center;
}

@media (max-width: 1500px) {
    .adm-dashboard-alerts .adm-alert-list {
        grid-template-columns: repeat(3, minmax(220px, 1fr));
    }
}

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

@media (max-width: 760px) {
    .adm-dashboard-alerts .adm-alert-list {
        grid-template-columns: 1fr;
    }
}

/* ADM dashboard chart sizing refinement */
.adm-dashboard-alerts {
    padding-top: 16px;
}

.adm-dashboard-chart-grid .adm-company-wide-chart {
    grid-column: span 3;
}

/* ADM users area */
.adm-users-area {
    gap: 14px;
}

.adm-users-header {
    align-items: flex-start;
}

.adm-users-tabs {
    display: grid;
    gap: 14px;
}

.adm-users-tabs > .mud-tabs-toolbar {
    min-height: 50px;
    padding: 0 8px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 8px 8px 0 0;
    background: #33333f;
}

.adm-users-tabs > .mud-tabs-toolbar .mud-tabs-toolbar-content {
    gap: 0;
    flex-wrap: wrap;
}

.adm-users-tabs > .mud-tabs-toolbar .mud-tab {
    min-width: 164px;
    margin: 0;
    justify-content: center;
}

.adm-users-tabs > .mud-tabs-panels {
    overflow: visible;
    background: transparent;
}

.adm-users-tabs > .mud-tabs-panels > .mud-tab-panel {
    padding: 0;
}

.adm-users-dashboard {
    display: grid;
    gap: 14px;
}

.adm-users-dashboard-tabs > .mud-tabs-panels {
    padding-top: 14px;
    background: transparent;
}

.adm-users-dashboard-tabs > .mud-tabs-panels > .mud-tab-panel {
    padding: 0;
}

.adm-users-kpis {
    grid-template-columns: repeat(6, minmax(160px, 1fr));
}

.adm-users-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(340px, .95fr) minmax(420px, 1.05fr);
    gap: 14px;
}

.adm-users-panel-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.adm-users-panel-title .mud-icon-root {
    flex: 0 0 auto;
    color: #7dd3fc;
}

.adm-users-panel-title strong,
.adm-users-health-row strong {
    display: block;
    color: #f8fafc;
}

.adm-users-panel-title span,
.adm-users-health-row em,
.adm-users-steps em {
    display: block;
    color: #aeb8c9;
    font-style: normal;
    line-height: 1.3;
}

.adm-users-health,
.adm-users-flow {
    min-height: 100%;
}

.adm-users-health {
    display: grid;
    gap: 8px;
    align-content: start;
}

.adm-users-health-row,
.adm-users-steps button {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.48);
    color: #dbeafe;
    text-align: left;
    transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.adm-users-health-row {
    display: grid;
    grid-template-columns: minmax(140px, 1fr) auto minmax(180px, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 10px 12px;
}

.adm-users-health-row:hover,
.adm-users-steps button:hover {
    border-color: rgba(125, 211, 252, 0.45);
    background: rgba(37, 99, 235, 0.14);
    transform: none;
}

.adm-users-health-row.success strong {
    color: #22c55e;
}

.adm-users-health-row.medium strong {
    color: #f59e0b;
}

.adm-users-health-row.high strong {
    color: #fb7185;
}

.adm-users-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 10px;
}

.adm-users-steps button {
    display: grid;
    gap: 8px;
    min-height: 142px;
    padding: 14px;
    align-content: start;
}

.adm-users-steps i {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(79, 70, 229, 0.24);
    color: #c4b5fd;
    font-style: normal;
    font-weight: 900;
}

.adm-users-steps span {
    color: #f8fafc;
    font-weight: 800;
}

@media (max-width: 1500px) {
    .adm-users-kpis {
        grid-template-columns: repeat(3, minmax(190px, 1fr));
    }

    .adm-users-steps {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }
}

@media (max-width: 1100px) {
    .adm-users-dashboard-grid,
    .adm-users-kpis {
        grid-template-columns: 1fr;
    }

    .adm-users-health-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .adm-users-tabs > .mud-tabs-toolbar .mud-tab,
    .adm-users-steps {
        width: 100%;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1500px) {
    .adm-dashboard-chart-grid .adm-company-wide-chart {
        grid-column: span 2;
    }
}

@media (max-width: 1100px) {
    .adm-dashboard-chart-grid .adm-company-wide-chart {
        grid-column: auto;
    }
}

/* ADM audit chart compact spacing */
.adm-audit-wide-chart.dashboard-chart-panel {
    padding-top: 14px;
}

.adm-audit-wide-chart .ginoma-chart-title {
    margin-bottom: 2px;
}

.adm-audit-wide-chart .ginoma-bars-vertical {
    padding-top: 4px;
    align-items: end;
}

/* Chart header actions */
.ginoma-chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.ginoma-chart-header .ginoma-chart-title {
    margin-bottom: 0;
}

.ginoma-chart-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
}

.adm-audit-periods {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.adm-audit-period {
    border: 1px solid rgba(148, 163, 184, .28);
    background: rgba(15, 23, 42, .56);
    color: #cbd5e1;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 800;
    cursor: pointer;
}

.adm-audit-period:hover,
.adm-audit-period.is-active {
    border-color: rgba(139, 124, 246, .8);
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    color: #ffffff;
}

.adm-audit-wide-chart.dashboard-chart-panel {
    padding-top: 10px;
}

.adm-audit-wide-chart .ginoma-chart-header {
    margin-bottom: 0;
}

.adm-audit-wide-chart .ginoma-bars-vertical {
    padding-top: 0 !important;
    min-height: 270px !important;
}

/* ADM audit chart responsive bars: no horizontal scroll */
.adm-audit-wide-chart .ginoma-bars-vertical {
    grid-auto-flow: row !important;
    grid-auto-columns: unset !important;
    grid-template-columns: repeat(auto-fit, minmax(58px, 1fr)) !important;
    gap: 8px !important;
    overflow-x: hidden !important;
    padding-inline: 4px !important;
}

.adm-audit-wide-chart .ginoma-vertical-bar-column {
    min-width: 0 !important;
    width: 100%;
    grid-template-rows: auto minmax(126px, 1fr) minmax(34px, auto);
}

.adm-audit-wide-chart .ginoma-vertical-bar-track {
    width: clamp(34px, 58%, 76px) !important;
    min-height: 126px;
}

.adm-audit-wide-chart .ginoma-vertical-bar-label {
    max-width: 100%;
    white-space: normal !important;
    overflow-wrap: anywhere;
    text-align: center;
    line-height: 1.15;
    font-size: clamp(.68rem, .76vw, .82rem);
}

.adm-audit-wide-chart .ginoma-vertical-bar-value {
    margin-bottom: 6px;
    font-size: clamp(.7rem, .82vw, .86rem);
}

@media (min-width: 1450px) {
    .adm-audit-wide-chart .ginoma-bars-vertical {
        grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)) !important;
        gap: 10px !important;
    }
}

.sgm-risk-matrix-panel {
    display: grid;
    gap: 8px;
    padding: 0;
}

.sgm-risk-matrix-header {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.sgm-risk-matrix-header > div:first-child {
    min-width: 260px;
    flex: 1 1 420px;
}

.sgm-risk-matrix-summary {
    min-width: 150px;
    border: 1px solid rgba(34, 87, 122, 0.14);
    border-radius: 8px;
    padding: 12px 14px;
    background: #ffffff;
}

.sgm-risk-matrix-summary span,
.sgm-risk-alert-card span {
    display: block;
    color: #607080;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.sgm-risk-matrix-summary strong,
.sgm-risk-alert-card strong {
    display: block;
    color: #17212b;
    font-size: 1.55rem;
    line-height: 1.1;
    margin-top: 4px;
}

.sgm-risk-matrix-summary.is-alert {
    border-color: rgba(197, 75, 42, 0.26);
    background: #fff8f1;
}

.sgm-risk-matrix-layout {
    display: block;
}

.sgm-risk-matrix-scroll {
    overflow-x: auto;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 8px;
    background: #111827;
    padding: 10px;
}

.sgm-risk-matrix-title {
    color: #e5edf7;
    font-size: 0.96rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.2;
    margin-bottom: 8px;
    text-align: center;
}

.sgm-risk-matrix-axis-wrap {
    display: grid;
    grid-template-columns: minmax(820px, 1fr);
    grid-template-areas: "matrix";
    align-items: stretch;
    min-width: 820px;
}

.sgm-risk-matrix-table {
    grid-area: matrix;
    width: 100%;
    min-width: 820px;
    border-collapse: collapse;
    table-layout: fixed;
    background: transparent;
}

.sgm-risk-priority-col {
    width: 118px;
}

.sgm-risk-matrix-table th,
.sgm-risk-matrix-table td {
    border: 2px solid rgba(17, 24, 39, 0.72);
    text-align: center;
    height: 52px;
    padding: 8px;
}

.sgm-risk-matrix-table thead th {
    background: #1f2937;
    color: #e5edf7;
    font-weight: 800;
    text-transform: uppercase;
}

.sgm-risk-matrix-table tbody th {
    width: 118px;
    background: #1f2937;
    color: #e5edf7;
    font-weight: 800;
}

.sgm-risk-priority-link {
    width: 100%;
    min-height: 36px;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: inherit;
    cursor: pointer;
}

.sgm-risk-axis-link {
    width: 100%;
    min-height: 36px;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: inherit;
    text-transform: inherit;
    cursor: pointer;
}

.sgm-risk-priority-link:hover,
.sgm-risk-priority-link:focus-visible,
.sgm-risk-axis-link:hover,
.sgm-risk-axis-link:focus-visible {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
    outline: none;
}

.sgm-risk-matrix-table td span {
    color: #061018;
    font-weight: 800;
}

.sgm-risk-matrix-cell {
    padding: 0 !important;
}

.sgm-risk-matrix-cell button {
    width: 100%;
    height: 100%;
    min-height: 52px;
    border: 0;
    background: transparent;
    color: #061018;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.sgm-risk-matrix-cell button:hover,
.sgm-risk-matrix-cell button:focus-visible {
    outline: 2px solid rgba(15, 23, 42, 0.55);
    outline-offset: -4px;
    background: rgba(255, 255, 255, 0.18);
}

.sgm-risk-matrix-table .is-low {
    background: #a9d18e;
}

.sgm-risk-matrix-table .is-medium {
    background: #ffe699;
}

.sgm-risk-matrix-table .is-high {
    background: #f4b183;
}

.sgm-risk-matrix-table .is-critical {
    background: #c00000;
}

.sgm-risk-matrix-table .is-critical button {
    color: #ffffff;
}

.sgm-risk-matrix-legend {
    margin-top: 10px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 8px;
    background: #111827;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    text-align: center;
}

.sgm-risk-matrix-legend strong {
    color: #e5edf7;
}

.sgm-risk-matrix-legend > span {
    display: none;
}

.sgm-risk-matrix-legend em {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #cbd5e1;
    font-weight: 700;
    font-style: normal;
}

.sgm-risk-legend-link {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #cbd5e1;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.sgm-risk-legend-link:hover,
.sgm-risk-legend-link:focus-visible {
    color: #ffffff;
    text-decoration: underline;
    outline: none;
}

.sgm-risk-matrix-legend i {
    width: 28px;
    height: 16px;
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.14);
}

.sgm-risk-matrix-legend i.is-very-low {
    background: #d9ead3;
}

.sgm-risk-matrix-legend i.is-low {
    background: #a9d18e;
}

.sgm-risk-matrix-legend i.is-medium {
    background: #ffe699;
}

.sgm-risk-matrix-legend i.is-high {
    background: #f4b183;
}

.sgm-risk-matrix-legend i.is-critical {
    background: #c00000;
}

.sgm-risk-alert-panel {
    display: grid;
    gap: 12px;
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
}

.sgm-risk-alert-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.sgm-risk-alert-card {
    appearance: none;
    width: 100%;
    display: block;
    text-align: left;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: #111827;
    padding: 10px 12px 9px;
    cursor: pointer;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.sgm-risk-alert-card:hover,
.sgm-risk-alert-card:focus-visible {
    border-color: rgba(129, 140, 248, 0.78);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
    outline: none;
    transform: none;
}

.sgm-risk-alert-card span {
    color: #e5edf7;
    font-size: 0.76rem;
    letter-spacing: 0;
}

.sgm-risk-alert-card strong {
    color: #f8fafc;
    font-size: 1.24rem;
    text-align: left;
}

.sgm-risk-alert-card small {
    display: block;
    color: #d7e1ec;
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.35;
    margin-top: 6px;
}

.sgm-risk-alert-card.is-very-low {
    border-color: rgba(215, 240, 200, 0.5);
    background: rgba(84, 126, 62, 0.32);
}

.sgm-risk-alert-card.is-low {
    border-color: rgba(169, 209, 142, 0.5);
    background: rgba(84, 126, 62, 0.42);
}

.sgm-risk-alert-card.is-medium {
    border-color: rgba(255, 230, 153, 0.48);
    background: rgba(133, 98, 18, 0.32);
}

.sgm-risk-alert-card.is-critical {
    border-color: rgba(248, 113, 113, 0.35);
    background: rgba(127, 29, 29, 0.22);
}

.sgm-risk-alert-card.is-high {
    border-color: rgba(251, 146, 60, 0.34);
    background: rgba(124, 45, 18, 0.22);
}

.sgm-risk-alert-card.is-warning {
    border-color: rgba(250, 204, 21, 0.34);
    background: rgba(113, 63, 18, 0.22);
}

.sgm-risk-detail-modal {
    max-width: min(1180px, calc(100vw - 48px));
    width: 100%;
}

.sgm-pmo-detail-modal {
    max-width: min(1420px, calc(100vw - 48px));
    width: 100%;
    max-height: calc(100vh - 48px);
    overflow: auto;
}

.sgm-risk-detail-loading {
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #cbd5e1;
    font-weight: 700;
}

.sgm-risk-detail-table-wrap {
    max-height: min(62vh, 620px);
    overflow: auto;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 8px;
}

.sgm-risk-detail-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 980px;
}

.sgm-risk-detail-table th,
.sgm-risk-detail-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    text-align: left;
    vertical-align: top;
}

.sgm-risk-detail-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #111827;
    color: #e5edf7;
    font-size: 0.78rem;
    text-transform: uppercase;
}

.sgm-risk-detail-table td {
    color: #d7dee8;
}

.sgm-risk-detail-table td:first-child {
    color: #ffffff;
    font-weight: 800;
    white-space: nowrap;
}

@media (max-width: 960px) {
    .sgm-risk-matrix-layout,
    .sgm-risk-alert-grid {
        grid-template-columns: 1fr;
    }
}

.chat-page {
    min-height: calc(100vh - 84px);
    padding: 18px;
    color: #f8fafc;
}

.chat-header,
.chat-panel {
    background: #171a21;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    margin-bottom: 14px;
}

.chat-header span,
.chat-panel-title span {
    color: #7dd3fc;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.chat-header h1 {
    margin: 4px 0;
    font-size: 1.35rem;
    font-weight: 800;
}

.chat-header p {
    margin: 0;
    color: #cbd5e1;
    font-size: 0.9rem;
}

.chat-nick {
    min-width: 320px;
}

.chat-nick label,
.chat-create-group label {
    display: block;
    margin-bottom: 6px;
    color: #cbd5e1;
    font-size: 0.78rem;
}

.chat-nick div {
    display: flex;
    gap: 8px;
}

.chat-page input,
.chat-page textarea {
    width: 100%;
    min-width: 0;
    background: #0f1623;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 7px;
    color: #f8fafc;
    font: inherit;
    outline: none;
}

.chat-page input {
    height: 38px;
    padding: 0 12px;
}

.chat-page textarea {
    min-height: 64px;
    max-height: 150px;
    padding: 10px 12px;
    resize: vertical;
}

.chat-page button {
    border: 0;
    font: inherit;
}

.chat-nick button,
.chat-create-group > button,
.chat-composer button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 7px;
    background: #2563eb;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.chat-nick button:disabled,
.chat-create-group > button:disabled,
.chat-composer button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.chat-shell {
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(420px, 1fr) minmax(230px, 280px);
    gap: 14px;
    min-height: calc(100vh - 190px);
}

.chat-panel {
    min-height: 0;
    overflow: hidden;
}

.chat-sidebar,
.chat-online {
    display: flex;
    flex-direction: column;
}

.chat-panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 0 14px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.chat-panel-title button {
    width: 32px;
    height: 32px;
    border-radius: 7px;
    background: rgba(37, 99, 235, 0.18);
    color: #bfdbfe;
    cursor: pointer;
}

.chat-panel-title strong {
    min-width: 30px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.16);
    color: #86efac;
    text-align: center;
}

.chat-conversation-list,
.chat-user-list,
.chat-messages {
    overflow: auto;
}

.chat-conversation-list {
    flex: 1;
    padding: 10px;
}

.chat-conversation,
.chat-user-row {
    width: 100%;
    display: flex;
    align-items: center;
    text-align: left;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.chat-conversation {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 11px 12px;
    border: 1px solid transparent;
    border-radius: 8px;
}

.chat-conversation:hover,
.chat-conversation.is-active {
    background: rgba(37, 99, 235, 0.14);
    border-color: rgba(96, 165, 250, 0.45);
}

.chat-conversation strong {
    font-size: 0.92rem;
}

.chat-conversation span,
.chat-conversation small,
.chat-user-row small {
    max-width: 100%;
    color: #94a3b8;
    font-size: 0.76rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-create-group {
    padding: 12px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.chat-group-users {
    display: grid;
    gap: 6px;
    max-height: 120px;
    margin: 10px 0;
    overflow: auto;
}

.chat-group-users label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #e2e8f0;
}

.chat-group-users input {
    width: 16px;
    height: 16px;
}

.chat-main {
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.chat-main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 64px;
    padding: 0 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.chat-main-header span {
    color: #7dd3fc;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.chat-main-header h2 {
    margin: 3px 0 0;
    font-size: 1.05rem;
}

.chat-main-header small {
    color: #94a3b8;
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.38), rgba(15, 23, 42, 0.12));
}

.chat-message {
    display: flex;
    gap: 10px;
    max-width: 78%;
}

.chat-message.is-mine {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-message > div {
    padding: 10px 12px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    background: #101827;
}

.chat-message.is-mine > div {
    background: rgba(37, 99, 235, 0.22);
    border-color: rgba(96, 165, 250, 0.32);
}

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

.chat-message strong {
    font-size: 0.78rem;
}

.chat-message span {
    color: #94a3b8;
    font-size: 0.68rem;
}

.chat-message p {
    margin: 0;
    color: #e5edf7;
    line-height: 1.38;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.chat-attachments {
    display: grid;
    gap: 8px;
    margin-top: 8px;
}

.chat-attachment {
    display: grid;
    gap: 6px;
}

.chat-attachment img {
    max-width: min(360px, 100%);
    max-height: 260px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 8px;
    object-fit: contain;
    background: rgba(2, 6, 23, 0.4);
}

.chat-attachment button {
    width: 100%;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid rgba(96, 165, 250, 0.25);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.62);
    color: #dbeafe;
    text-align: left;
    cursor: pointer;
}

.chat-attachment button span {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.chat-attachment button strong,
.chat-attachment button small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-attachment button small {
    color: #93c5fd;
    font-size: 0.72rem;
}

.chat-composer {
    display: grid;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.chat-composer-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: stretch;
}

.chat-file-button {
    width: 42px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    border: 1px solid rgba(96, 165, 250, 0.28);
    border-radius: 8px;
    background: rgba(37, 99, 235, 0.16);
    color: #bfdbfe;
    cursor: pointer;
}

.chat-file-button input {
    display: none;
}

.chat-selected-files {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.chat-selected-files span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 260px;
    padding: 6px 8px;
    border: 1px solid rgba(96, 165, 250, 0.22);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #dbeafe;
    font-size: 0.76rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-selected-files small {
    color: #93c5fd;
}

.chat-selected-files button {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.16);
    color: #fecaca;
    font-weight: 800;
    cursor: pointer;
}

.chat-welcome,
.chat-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 180px;
    padding: 20px;
    color: #94a3b8;
    text-align: center;
}

.chat-welcome .mud-icon-root {
    width: 46px;
    height: 46px;
    color: #60a5fa;
}

.chat-welcome h2 {
    margin: 0;
    color: #f8fafc;
    font-size: 1.2rem;
}

.chat-welcome p {
    margin: 0;
}

.chat-user-list {
    padding: 10px;
}

.chat-user-row {
    position: relative;
    gap: 10px;
    min-height: 54px;
    padding: 8px 28px 8px 8px;
    border-radius: 8px;
}

.chat-user-row:not(:disabled):hover {
    background: rgba(37, 99, 235, 0.13);
}

.chat-user-row:disabled {
    cursor: default;
    opacity: 0.88;
}

.chat-user-row span {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chat-user-row strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-user-row i {
    position: absolute;
    right: 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #64748b;
}

.chat-user-row i.is-online {
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.chat-avatar {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #1d4ed8;
    color: #e0f2fe;
    font-size: 0.76rem;
    font-weight: 800;
    overflow: hidden;
}

.chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 1180px) {
    .chat-shell {
        grid-template-columns: minmax(230px, 300px) 1fr;
    }

    .chat-online {
        grid-column: 1 / -1;
        min-height: 220px;
    }

    .chat-user-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    }
}

@media (max-width: 760px) {
    .chat-page {
        padding: 10px;
    }

    .chat-header {
        align-items: stretch;
        flex-direction: column;
    }

    .chat-nick {
        min-width: 0;
    }

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

    .chat-message {
        max-width: 100%;
    }

    .chat-composer-row {
        grid-template-columns: 1fr;
    }

    .chat-file-button {
        width: 100%;
    }
}

.adm-loading-message {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    margin: 10px 0;
    padding: 8px 12px;
    border: 1px solid rgba(125, 211, 252, 0.28);
    border-radius: 8px;
    background: rgba(14, 165, 233, 0.1);
    color: #dbeafe;
    font-size: 0.88rem;
    font-weight: 700;
}

/* ADM users hard pass */
.adm-users-command {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    align-items: center;
    min-height: 72px;
    padding: 12px 16px;
    border: 1px solid rgba(96, 165, 250, 0.24);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(15, 23, 42, 0.2)),
        #121722;
    box-shadow: 0 18px 44px rgba(2, 6, 23, 0.24);
}

.adm-users-command-copy {
    min-width: 0;
    display: grid;
    align-content: center;
    gap: 3px;
}

.adm-users-command-copy span {
    color: #7dd3fc;
    font-size: .68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.adm-users-command-copy strong {
    color: #ffffff;
    font-size: 1.26rem;
    font-weight: 500;
    line-height: 1.12;
}

.adm-users-command-copy em {
    color: #cbd5e1;
    font-style: normal;
    font-size: .82rem;
}

.adm-users-metrics {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.adm-users-metric {
    min-width: 0;
    min-height: 136px;
    display: grid;
    align-content: space-between;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 8px;
    background: #141a25;
    color: #dbeafe;
    text-align: left;
    cursor: pointer;
    transition: border-color .16s ease, transform .16s ease, background .16s ease;
}

.adm-users-metric:hover {
    border-color: rgba(125, 211, 252, 0.55);
    background: #172033;
    transform: none;
}

.adm-users-metric span {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: #cbd5e1;
    font-size: .76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.adm-users-metric .mud-icon-root {
    flex: 0 0 auto;
    color: #8b7cf6;
}

.adm-users-metric strong {
    color: #ffffff;
    font-size: 2rem;
    line-height: 1;
}

.adm-users-metric em {
    color: #9fb0c7;
    font-style: normal;
    font-size: .78rem;
    line-height: 1.28;
}

.adm-users-metric.success .mud-icon-root,
.adm-users-metric.success strong {
    color: #22c55e;
}

.adm-users-metric.medium .mud-icon-root,
.adm-users-metric.medium strong {
    color: #f59e0b;
}

.adm-users-metric.high .mud-icon-root,
.adm-users-metric.high strong {
    color: #fb7185;
}

.adm-users-metric.info .mud-icon-root,
.adm-users-metric.info strong {
    color: #8b7cf6;
}

.adm-users-health,
.adm-users-flow {
    padding: 18px;
    background: #141820 !important;
}

.adm-users-health-row {
    grid-template-columns: minmax(0, 1fr) auto 82px;
    min-height: 76px;
    background: #111827;
}

.adm-users-health-row b {
    color: #f8fafc;
    font-size: 1.35rem;
}

.adm-users-health-row > i {
    height: 8px;
    border-radius: 999px;
    background: #22c55e;
}

.adm-users-health-row.medium > i {
    background: #f59e0b;
}

.adm-users-health-row.high > i {
    background: #fb7185;
}

.adm-users-steps {
    position: relative;
}

.adm-users-steps button {
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 118px;
    align-items: start;
}

.adm-users-steps button > i {
    margin-top: 2px;
}

.adm-users-steps button strong {
    display: block;
    margin-bottom: 6px;
}

.adm-user-register-page {
    gap: 14px;
}

.adm-user-register-header {
    border-color: rgba(96, 165, 250, 0.22);
    background: #121722;
}

.adm-user-register-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(170px, 1fr));
    gap: 12px;
}

.adm-user-register-summary > div {
    min-height: 96px;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
        "icon label"
        "icon value";
    gap: 2px 12px;
    align-content: center;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 8px;
    background: #141a25;
}

.adm-user-register-summary .mud-icon-root {
    grid-area: icon;
    align-self: center;
    color: #7dd3fc;
}

.adm-user-register-summary span {
    grid-area: label;
    color: #aeb8c9;
    font-size: .76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.adm-user-register-summary strong {
    grid-area: value;
    color: #ffffff;
    font-size: 1.55rem;
    line-height: 1;
}

.adm-user-register-page .sga-modal-backdrop {
    align-items: flex-start;
    padding-top: 24px;
}

.adm-user-register-page .adm-user-modal {
    max-width: min(1280px, calc(100vw - 56px));
    border-color: rgba(96, 165, 250, 0.22);
    max-height: calc(100vh - 36px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.adm-user-register-page .sga-modal-title {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.24), rgba(15, 23, 42, 0.2));
}

.adm-user-register-page .adm-user-modal-tabs {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.adm-user-register-page .sga-inner-tabs > .mud-tabs-toolbar,
.adm-user-register-page .sga-inner-tabs > .mud-tabs-tabbar {
    flex: 0 0 auto;
    z-index: 2;
    background: #252733;
}

.adm-user-register-page .adm-user-modal-tabs > .mud-tabs-panels {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-gutter: stable;
}

.adm-user-register-page .adm-user-modal-footer {
    flex: 0 0 auto;
    margin-top: 0;
    padding: 12px 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    background: #202329;
    box-shadow: 0 -12px 24px rgba(0, 0, 0, 0.26);
}

.adm-user-register-page .adm-form-grid {
    grid-template-columns: repeat(4, minmax(190px, 1fr));
}

.adm-user-register-page .adm-user-email-row {
    grid-column: span 2;
}

.adm-user-register-page .adm-user-email-row.sga-form-wide {
    grid-column: 1 / -1;
    grid-template-columns: minmax(220px, 1fr) minmax(140px, 180px) auto;
}

.adm-user-profile-selector {
    display: grid;
    grid-template-columns: minmax(320px, 520px) 1fr;
    gap: 12px;
    align-items: end;
    overflow: visible !important;
}

.adm-user-profile-selector .adm-actions {
    justify-content: flex-start;
    margin: 0;
}

.adm-user-picker {
    position: relative;
    z-index: 5;
}

.mud-popover.adm-user-profile-popover {
    z-index: 2200 !important;
    max-width: min(620px, calc(100vw - 48px)) !important;
    margin-top: 54px !important;
    border: 1px solid rgba(125, 211, 252, 0.24);
    border-radius: 8px;
    background: #252733;
    box-shadow: 0 22px 52px rgba(2, 6, 23, 0.46);
}

.adm-user-profile-popover .mud-list {
    max-height: 160px !important;
    padding: 6px;
    overflow-y: auto;
}

.adm-user-profile-popover .mud-list-item {
    border-radius: 7px;
}

.adm-profile-page,
.adm-association-page {
    gap: 14px;
}

.adm-profile-header,
.adm-association-header {
    border-color: rgba(96, 165, 250, 0.22);
    background: #121722;
}

.adm-profile-page > .adm-list-panel,
.adm-association-page > .adm-list-panel {
    margin-top: 0;
}

.adm-profile-page .adm-profile-summary {
    margin-bottom: 14px;
}

.adm-profile-summary > div,
.adm-association-summary > div {
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.10), rgba(15, 23, 42, 0.05)),
        #141a25;
}

.adm-profile-summary > div:nth-child(2) .mud-icon-root,
.adm-association-summary > div:nth-child(3) .mud-icon-root {
    color: #22c55e;
}

.adm-profile-summary > div:nth-child(4) .mud-icon-root,
.adm-association-summary > div:nth-child(4) .mud-icon-root {
    color: #8b7cf6;
}

.adm-profile-page .sga-modal-backdrop {
    align-items: flex-start;
    padding-top: 24px;
}

.adm-profile-page .sga-approver-modal {
    width: min(1440px, calc(100vw - 56px));
    max-width: min(1440px, calc(100vw - 56px));
    border-color: rgba(96, 165, 250, 0.22);
}

.adm-profile-page .sga-modal-title {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.24), rgba(15, 23, 42, 0.2));
}

.adm-profile-page .adm-grid-wide,
.adm-association-grid {
    grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
}

.adm-user-company-page .adm-association-grid {
    grid-template-columns: 1fr;
}

.adm-profile-page .permission-toolbar,
.adm-association-page .adm-actions {
    gap: 8px;
}

.adm-association-page .adm-user-profile-association-grid {
    gap: 14px;
    margin-top: 14px;
}

.adm-association-page .adm-association-summary {
    margin-bottom: 14px;
}

.adm-association-page .adm-user-profile-selector {
    padding: 16px;
    border-color: rgba(96, 165, 250, 0.20);
    background: #141a25;
}

.adm-association-page .adm-table-panel {
    border-color: rgba(148, 163, 184, 0.16);
}

.adm-association-page .adm-list-panel {
    background: #141820;
}

.adm-association-page .mud-table-head {
    background: linear-gradient(180deg, #142238, #101827);
}

@media (max-width: 1100px) {
    .adm-profile-page .adm-grid-wide,
    .adm-association-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1500px) {
    .adm-users-metrics {
        grid-template-columns: repeat(3, minmax(190px, 1fr));
    }

    .adm-user-register-page .adm-form-grid,
    .adm-user-register-summary {
        grid-template-columns: repeat(2, minmax(190px, 1fr));
    }
}

@media (max-width: 900px) {
    .adm-users-command,
    .adm-users-metrics,
    .adm-user-profile-selector,
    .adm-user-register-page .adm-form-grid,
    .adm-user-register-summary,
    .adm-user-register-page .adm-user-email-row.sga-form-wide {
        grid-template-columns: 1fr;
    }

    .adm-user-register-page .adm-user-email-row {
        grid-column: 1 / -1;
    }
}

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

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

    .gio-manobra-etapa-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gio-manobra-apoio-editor {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .gio-manobra-chart-grid,
    .gio-manobra-kpis,
    .gio-manobra-form-grid,
    .gio-manobra-type-grid,
    .gio-manobra-etapa-row,
    .gio-manobra-apoio-editor {
        grid-template-columns: 1fr;
    }
}

.manager-page {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
}

.manager-header,
.manager-filters,
.manager-panel,
.manager-line-panel {
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 8px;
    background: #171a22;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.manager-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px;
    background:
        radial-gradient(circle at 84% 0%, rgba(20, 184, 166, 0.14), transparent 32%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(24, 27, 36, 0.98));
}

.manager-header span,
.manager-panel-title span,
.manager-details-panel th {
    color: #67d8ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.manager-header h1 {
    margin: 0;
    color: #ffffff;
    font-size: 1.12rem;
    font-weight: 400;
    line-height: 1.18;
}

.manager-header p {
    margin: 0;
    color: #b8c6d8;
    font-size: 14px;
}

.manager-header-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.manager-filters {
    display: grid;
    grid-template-columns: 1.1fr 1.1fr 1.1fr 170px 170px auto;
    gap: 10px;
    padding: 14px 16px;
}

.manager-filters label {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
}

.manager-filters label span {
    color: #93c5fd;
    font-size: 11px;
    font-weight: 700;
}

.manager-filters select,
.manager-filters input,
.manager-grid-actions input {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(96, 165, 250, 0.22);
    border-radius: 7px;
    background: #0f1620;
    color: #f8fbff;
    padding: 0 12px;
    outline: none;
}

.manager-filters select:focus,
.manager-filters input:focus,
.manager-grid-actions input:focus {
    border-color: rgba(103, 216, 255, 0.62);
}

.manager-quick-periods {
    display: grid;
    grid-template-columns: repeat(5, 42px);
    align-content: end;
    gap: 6px;
}

.manager-quick-periods button {
    min-height: 42px;
    border: 1px solid rgba(96, 165, 250, 0.18);
    border-radius: 7px;
    background: #121827;
    color: #dbeafe;
    font-weight: 800;
    cursor: pointer;
}

.manager-quick-periods button.active {
    border-color: rgba(34, 211, 238, 0.46);
    background: #123d52;
    color: #ffffff;
}

.manager-loading {
    display: flex;
    min-height: 220px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #dbeafe;
    font-weight: 800;
}

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

.manager-kpi,
.manager-module-card,
.manager-ranking button {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 8px;
    background: linear-gradient(180deg, #151b26, #101720);
    color: #eff6ff;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.16s ease, transform 0.16s ease, background 0.16s ease;
}

.manager-kpi {
    position: relative;
    display: grid;
    grid-template-rows: auto minmax(34px, 1fr) auto;
    align-content: stretch;
    min-height: 142px;
    padding: 16px 18px;
    overflow: hidden;
}

.manager-kpi::after {
    content: "";
    position: absolute;
    right: -38px;
    bottom: -42px;
    width: 126px;
    height: 126px;
    border-radius: 999px;
    background: rgba(96, 165, 250, 0.14);
}

.manager-kpi:hover,
.manager-module-card:hover,
.manager-ranking button:hover {
    transform: none;
    border-color: rgba(103, 216, 255, 0.44);
}

.manager-kpi .mud-icon-root {
    font-size: 28px;
    color: #67d8ff;
}

.manager-kpi.is-danger .mud-icon-root,
.manager-kpi.is-danger::after {
    color: #fca5a5;
    background: rgba(248, 113, 113, 0.16);
}

.manager-kpi.is-warning .mud-icon-root,
.manager-kpi.is-warning::after {
    color: #facc15;
    background: rgba(250, 204, 21, 0.12);
}

.manager-kpi.is-success .mud-icon-root,
.manager-kpi.is-success::after {
    color: #34d399;
    background: rgba(52, 211, 153, 0.12);
}

.manager-kpi-label,
.manager-module-card span {
    display: block;
    color: #a8bad2;
    font-size: 12px;
    font-weight: 800;
}

.manager-kpi-label {
    display: inline-grid;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
}

.manager-kpi-label b {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
    color: #cfe6ff;
    line-height: 1.15;
}

.manager-kpi strong {
    display: block;
    align-self: center;
    justify-self: end;
    max-width: 100%;
    overflow: hidden;
    color: #ffffff;
    font-size: clamp(24px, 2.1vw, 34px);
    line-height: 1.05;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.manager-kpi strong.manager-kpi-name {
    max-width: 100%;
    overflow: hidden;
    font-size: clamp(17px, 1.35vw, 22px);
    line-height: 1.12;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.manager-kpi-users-card {
    cursor: pointer;
}

.manager-kpi-users-card > strong.manager-kpi-name {
    font-size: clamp(13px, 1vw, 16px);
}

.ginoma-horizontal-bar-label:has(.ginoma-horizontal-bar-rank) {
    grid-template-columns: 28px minmax(0, 1fr) auto;
}

.ginoma-horizontal-bar-rank {
    display: inline-grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border: 1px solid rgba(96, 165, 250, .26);
    border-radius: 6px;
    color: #93c5fd;
    background: rgba(59, 130, 246, .10);
    font-size: 11px;
    font-weight: 900;
}

:root[data-theme="light"] .ginoma-horizontal-bar-rank {
    color: #1d4ed8;
    border-color: #bfdbfe;
    background: #eff6ff;
}

.manager-kpi em,
.manager-module-card em,
.manager-ranking em {
    display: block;
    color: #9fb1c9;
    font-size: 12px;
    line-height: 1.25;
    font-style: normal;
}

.manager-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.7fr);
    gap: 12px;
}

.manager-panel,
.manager-line-panel {
    padding: 16px;
}

.manager-panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.manager-panel-title strong {
    display: block;
    margin-top: 3px;
    color: #ffffff;
    font-size: 16px;
}

.manager-module-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.manager-module-card {
    min-height: 102px;
    padding: 14px;
}

.manager-module-card strong {
    display: block;
    margin-top: 5px;
    color: #ffffff;
    font-size: 26px;
}

.manager-module-card.has-pending {
    border-color: rgba(248, 113, 113, 0.34);
    background:
        radial-gradient(circle at 100% 0%, rgba(248, 113, 113, 0.13), transparent 42%),
        linear-gradient(180deg, #171b25, #101720);
}

.manager-focus-panel {
    display: flex;
    flex-direction: column;
}

.manager-focus-score {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 14px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.72);
}

.manager-focus-score strong {
    color: #fca5a5;
    font-size: 42px;
    line-height: 1;
}

.manager-focus-score span,
.manager-focus-panel p {
    color: #b8c6d8;
    font-size: 13px;
}

.manager-chart-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}

.manager-chart {
    min-width: 0;
}

.manager-line-chart {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: end;
    gap: 8px;
    min-height: 210px;
    padding: 10px 0 0;
}

.manager-line-point {
    display: grid;
    grid-template-rows: 24px 1fr 20px;
    min-height: 190px;
    align-items: end;
    text-align: center;
}

.manager-line-point strong,
.manager-line-point em {
    color: #cbd5e1;
    font-size: 11px;
    font-style: normal;
}

.manager-line-point span {
    display: block;
    width: 100%;
    height: var(--line-height);
    min-height: 8px;
    border-radius: 6px 6px 2px 2px;
    background: linear-gradient(180deg, #67d8ff, #22c55e);
}

.manager-detail-grid {
    display: grid;
    grid-template-columns: minmax(290px, 0.6fr) minmax(0, 1.4fr);
    gap: 12px;
}

.manager-ranking {
    display: grid;
    gap: 8px;
}

.manager-ranking button {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 58px;
    gap: 8px;
    padding: 11px 12px;
}

.manager-ranking span {
    overflow: hidden;
    color: #eff6ff;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.manager-ranking strong {
    color: #ffffff;
    font-size: 18px;
    text-align: right;
}

.manager-ranking em {
    grid-column: 1 / -1;
    margin: 0;
}

.manager-grid-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.manager-grid-actions input {
    width: min(320px, 34vw);
}

.manager-table-wrap {
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid rgba(96, 165, 250, 0.12);
    border-radius: 8px;
}

.manager-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    border-collapse: collapse;
}

.manager-table th:nth-child(1) { width: 9%; }
.manager-table th:nth-child(2) { width: 22%; }
.manager-table th:nth-child(3) { width: 27%; }
.manager-table th:nth-child(4) { width: 10%; }
.manager-table th:nth-child(5) { width: 10%; }
.manager-table th:nth-child(6) { width: 12%; }
.manager-table th:nth-child(7) { width: 10%; }

.manager-table th,
.manager-table td {
    border-bottom: 1px solid rgba(148, 163, 184, 0.10);
    padding: 10px 6px;
    color: #dbeafe;
    font-size: 11px;
    line-height: 1.25;
    overflow-wrap: anywhere;
    vertical-align: middle;
}

.manager-table th {
    font-size: 10px;
}

.manager-table tbody tr {
    background: #101720;
}

.manager-table tbody tr:nth-child(even) {
    background: #121923;
}

.manager-table td strong {
    display: block;
    color: #ffffff;
    font-size: 11px;
}

.manager-table td span {
    display: block;
    margin-top: 3px;
    color: #9fb1c9;
}

.manager-badge {
    display: inline-flex;
    min-width: 60px;
    justify-content: center;
    border-radius: 999px;
    padding: 4px 6px;
    background: rgba(96, 165, 250, 0.16);
    color: #bfdbfe;
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
}

.manager-badge.danger {
    background: rgba(248, 113, 113, 0.18);
    color: #fecaca;
}

.manager-badge.warning {
    background: rgba(250, 204, 21, 0.15);
    color: #fde68a;
}

@media (max-width: 1400px) {
    .manager-filters {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .manager-kpi-grid,
    .manager-module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .manager-chart-grid,
    .manager-main-grid,
    .manager-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .manager-page {
        padding: 12px;
    }

    .manager-header,
    .manager-panel-title,
    .manager-grid-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .manager-filters,
    .manager-kpi-grid,
    .manager-module-grid {
        grid-template-columns: 1fr;
    }

    .manager-quick-periods {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .manager-line-chart {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

.manager-grid-actions input {
        width: 100%;
    }
}

/* Tema Ginoma: normalização visual compartilhada entre claro e escuro. */
.ginoma-content {
    background: var(--ginoma-bg) !important;
}

.notification-center {
    color: var(--ginoma-text) !important;
}

.notification-hero,
.notification-toolbar,
.notification-tabbar,
.notification-panel {
    color: var(--ginoma-text) !important;
    border-color: var(--ginoma-border) !important;
    background: var(--ginoma-surface) !important;
    box-shadow: 0 8px 22px var(--ginoma-shadow-soft) !important;
}

.notification-toolbar,
.notification-tabbar,
.notification-panel {
    margin-top: 12px;
}

.notification-filter,
.notification-grid-filter,
.notification-quick-days,
.notification-count-pill,
.notification-page-size,
.notification-filters-panel,
.notification-filter-field,
.notification-table-wrap {
    color: var(--ginoma-text) !important;
    border-color: var(--ginoma-border) !important;
    background: var(--ginoma-control-bg) !important;
    box-shadow: none !important;
}

.notification-title-row h1,
.notification-panel-header h2,
.notification-empty strong,
.notification-module-cell,
.notification-record-title,
.notification-filter select,
.notification-filter input,
.notification-filter-field input,
.notification-grid-filter input,
.notification-page-size select {
    color: var(--ginoma-text) !important;
}

.notification-title-block > span,
.notification-panel-header span,
.notification-panel-header small,
.notification-filter legend,
.notification-filter span,
.notification-filter-field legend,
.notification-pagination,
.notification-record-description,
.notification-status-text,
.notification-empty,
.notification-empty span,
.notification-page-size {
    color: var(--ginoma-text-muted) !important;
}

.notification-filter select,
.notification-filter input,
.notification-page-size select {
    color-scheme: normal;
}

:root[data-theme="dark"] .notification-filter select,
:root[data-theme="dark"] .notification-filter input,
:root[data-theme="dark"] .notification-page-size select {
    color-scheme: dark;
}

:root[data-theme="light"] .notification-filter input::-webkit-calendar-picker-indicator {
    filter: none !important;
}

.notification-tab,
.notification-day-button {
    color: var(--ginoma-text-muted) !important;
}

.notification-tab.active,
.notification-day-button.active {
    color: var(--ginoma-primary-strong) !important;
    border-color: var(--ginoma-focus) !important;
    background: var(--ginoma-hover) !important;
}

.notification-export-button,
.notification-pagination-actions button,
.notification-panel-actions .grid-columns-wrapper .mud-button-root,
.notification-hero-clear,
.notification-hero-refresh {
    color: var(--ginoma-text) !important;
    border-color: var(--ginoma-border) !important;
    background: var(--ginoma-control-bg) !important;
}

.notification-hero-refresh {
    color: var(--ginoma-primary-strong) !important;
    border-color: var(--ginoma-focus) !important;
    background: var(--ginoma-hover) !important;
}

.notification-export-button:disabled,
.notification-pagination-actions button:disabled,
.notification-hero-clear:disabled,
.notification-hero-refresh:disabled,
.notification-panel-actions .mud-button-root:disabled {
    opacity: 1 !important;
    color: var(--ginoma-control-disabled-text) !important;
    border-color: var(--ginoma-border) !important;
    background: var(--ginoma-control-disabled-bg) !important;
}

.notification-empty .mud-icon-root {
    color: var(--ginoma-primary) !important;
}

.notification-filter:focus-within,
.notification-grid-filter:focus-within,
.notification-filter-field:focus-within,
.notification-filter-field.active {
    border-color: var(--ginoma-primary) !important;
    box-shadow: 0 0 0 3px var(--ginoma-focus) !important;
}

:root[data-theme="light"] .notification-table-wrap {
    background: #ffffff !important;
}

:root[data-theme="light"] .notification-table th {
    background: #f1f5f9 !important;
}

:root[data-theme="light"] .notification-filter select option,
:root[data-theme="light"] .notification-page-size option {
    color: var(--ginoma-text) !important;
    background: #ffffff !important;
}

:root[data-theme="light"] .floating-user-pending-card {
    color: #263244 !important;
    border-color: #aeb8c6 !important;
    background: #c4ccd7 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55) !important;
}

:root[data-theme="light"] .floating-user-pending-card::before {
    border-top-color: #aeb8c6 !important;
    background: #d4dae3 !important;
}

:root[data-theme="light"] .floating-user-pending-card .sidebar-pending-content strong,
:root[data-theme="light"] .floating-user-pending-card .sidebar-pending-content b {
    color: #1f2937 !important;
}

:root[data-theme="light"] .floating-user-pending-card .sidebar-pending-content span {
    color: #526174 !important;
}

:root[data-theme="light"] .floating-user-pending-card .sidebar-pending-icon {
    color: #b42318 !important;
    border-color: rgba(180, 35, 24, 0.34) !important;
    background: rgba(180, 35, 24, 0.10) !important;
}

:root[data-theme="light"] .floating-user-pending-card .sidebar-pending-glow {
    background: rgba(180, 35, 24, 0.10) !important;
}

@media (max-height: 800px) {
    .floating-user-pending-card {
        min-height: 78px;
        padding: 9px 14px;
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .floating-user-pending-card .sidebar-pending-icon {
        width: 38px;
        height: 38px;
    }

    .floating-user-pending-card .sidebar-pending-icon .mud-icon-root {
        font-size: 21px;
    }
}

/* Abas: contraste consistente no tema claro. */
:root[data-theme="light"] .adm-tabs .mud-tabs-toolbar,
:root[data-theme="light"] .sga-tabs .mud-tabs-toolbar,
:root[data-theme="light"] .sga-inner-tabs .mud-tabs-toolbar {
    border-bottom-color: #b8c2cf !important;
    background: #eef2f7 !important;
}

:root[data-theme="light"] .adm-tabs .mud-tab:not(.mud-tab-active),
:root[data-theme="light"] .sga-tabs .mud-tab:not(.mud-tab-active),
:root[data-theme="light"] .sga-inner-tabs .mud-tab:not(.mud-tab-active) {
    color: #334155 !important;
    border-color: #c2cad5 !important;
    background: #dce2ea !important;
    opacity: 1 !important;
}

:root[data-theme="light"] .adm-tabs .mud-tab:not(.mud-tab-active) .mud-icon-root,
:root[data-theme="light"] .sga-tabs .mud-tab:not(.mud-tab-active) .mud-icon-root,
:root[data-theme="light"] .sga-inner-tabs .mud-tab:not(.mud-tab-active) .mud-icon-root {
    color: #475569 !important;
    opacity: 1 !important;
}

:root[data-theme="light"] .adm-tabs .mud-tab:not(.mud-tab-active):hover,
:root[data-theme="light"] .sga-tabs .mud-tab:not(.mud-tab-active):hover,
:root[data-theme="light"] .sga-inner-tabs .mud-tab:not(.mud-tab-active):hover {
    color: #123b78 !important;
    border-color: #93a4b8 !important;
    background: #cdd6e2 !important;
}

:root[data-theme="light"] .adm-tabs .mud-tab.mud-disabled,
:root[data-theme="light"] .sga-tabs .mud-tab.mud-disabled,
:root[data-theme="light"] .sga-inner-tabs .mud-tab.mud-disabled {
    color: #64748b !important;
    background: #e5e9ef !important;
    opacity: 1 !important;
}

/* SGM: o tema claro usa superfícies integralmente claras. */
:root[data-theme="light"] .sgm-page,
:root[data-theme="light"] .sgm-dashboard-home,
:root[data-theme="light"] .sgm-dashboard-tabs,
:root[data-theme="light"] .sgm-dashboard-tabs > .mud-tabs-panels,
:root[data-theme="light"] .sgm-dashboard-tab-panel {
    color: #172033 !important;
    background: #ffffff !important;
}

:root[data-theme="light"] .sgm-page .adm-header,
:root[data-theme="light"] .sgm-page .adm-panel,
:root[data-theme="light"] .sgm-dashboard-section,
:root[data-theme="light"] .sgm-dashboard-chart,
:root[data-theme="light"] .sgm-dashboard-chart.ginoma-apex-card,
:root[data-theme="light"] .sgm-dashboard-filter-panel {
    color: #172033 !important;
    border-color: #cbd5e1 !important;
    background: #ffffff !important;
    background-image: none !important;
    box-shadow: 0 5px 16px rgba(15, 23, 42, 0.06) !important;
}

:root[data-theme="light"] .sgm-page .adm-header h1,
:root[data-theme="light"] .sgm-dashboard-section-title,
:root[data-theme="light"] .sgm-dashboard-section-title .mud-typography-root,
:root[data-theme="light"] .sgm-dashboard-chart .ginoma-chart-title,
:root[data-theme="light"] .sgm-dashboard-chart .ginoma-vertical-bar-value,
:root[data-theme="light"] .sgm-dashboard-alert strong,
:root[data-theme="light"] .sgm-dashboard-table td:first-child {
    color: #172033 !important;
}

:root[data-theme="light"] .sgm-dashboard-metric {
    color: #172033 !important;
    border-color: #cbd5e1 !important;
    background: #ffffff !important;
    background-image: none !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06) !important;
}

:root[data-theme="light"] .sgm-dashboard-metric-top span,
:root[data-theme="light"] .sgm-dashboard-metric strong {
    color: #172033 !important;
}

:root[data-theme="light"] .sgm-dashboard-metric small,
:root[data-theme="light"] .sgm-dashboard-section-title span,
:root[data-theme="light"] .sgm-dashboard-alert em,
:root[data-theme="light"] .sgm-dashboard-alert b {
    color: #52647a !important;
}

:root[data-theme="light"] .sgm-dashboard-chart .ginoma-bars-vertical {
    border-bottom-color: #94a3b8 !important;
    background: #ffffff !important;
}

:root[data-theme="light"] .sgm-dashboard-chart .ginoma-vertical-bar-track {
    border-color: #bfdbfe !important;
    background: #e8eef6 !important;
}

:root[data-theme="light"] .sgm-dashboard-chart .ginoma-vertical-bar-label,
:root[data-theme="light"] .sgm-dashboard-chart .ginoma-horizontal-bar-label,
:root[data-theme="light"] .sgm-dashboard-chart .ginoma-horizontal-bar-label strong {
    color: #334155 !important;
}

:root[data-theme="light"] .sgm-dashboard-alert {
    color: #172033 !important;
    border-color: #cbd5e1 !important;
    background: #f8fafc !important;
}

:root[data-theme="light"] .sgm-dashboard-alert p {
    color: #334155 !important;
}

:root[data-theme="light"] .sgm-dashboard-table {
    color: #334155 !important;
    background: #ffffff !important;
}

:root[data-theme="light"] .sgm-dashboard-table th {
    color: #172033 !important;
    border-color: #cbd5e1 !important;
    background: #e8edf3 !important;
}

:root[data-theme="light"] .sgm-dashboard-table td {
    color: #334155 !important;
    border-bottom-color: #d8e0ea !important;
    background: #ffffff !important;
}

:root[data-theme="light"] .sgm-pmo-horizon > span,
:root[data-theme="light"] .sgm-pmo-company-filter > span,
:root[data-theme="light"] .sgm-pmo-company-filter small {
    color: #52647a !important;
}

:root[data-theme="light"] .sgm-pmo-horizon button,
:root[data-theme="light"] .sgm-pmo-company-filter button {
    color: #334155 !important;
    border-color: #cbd5e1 !important;
    background: #f1f5f9 !important;
}

:root[data-theme="light"] .sgm-pmo-horizon button.is-selected,
:root[data-theme="light"] .sgm-pmo-company-filter button.is-selected {
    color: #ffffff !important;
    border-color: #2563eb !important;
    background: #2563eb !important;
}

:root[data-theme="light"] .sgm-dashboard-chart .apexcharts-legend-text,
:root[data-theme="light"] .sgm-dashboard-chart .apexcharts-xaxis-label,
:root[data-theme="light"] .sgm-dashboard-chart .apexcharts-yaxis-label,
:root[data-theme="light"] .sgm-dashboard-chart .apexcharts-datalabel,
:root[data-theme="light"] .sgm-dashboard-chart .apexcharts-data-labels text {
    fill: #172033 !important;
    color: #172033 !important;
    stroke: rgba(255, 255, 255, 0.88) !important;
    text-shadow: none !important;
}

:root[data-theme="light"] .sgm-dashboard-chart .apexcharts-gridline,
:root[data-theme="light"] .sgm-dashboard-chart .apexcharts-xaxis-tick,
:root[data-theme="light"] .sgm-dashboard-chart .apexcharts-xaxis line,
:root[data-theme="light"] .sgm-dashboard-chart .apexcharts-yaxis line {
    stroke: #cbd5e1 !important;
}

:root[data-theme="light"] .sgm-dashboard-chart .apexcharts-tooltip {
    color: #172033 !important;
    border-color: #cbd5e1 !important;
    background: #ffffff !important;
}

:root[data-theme="light"] .sgm-dashboard-chart .apexcharts-tooltip-title {
    color: #172033 !important;
    border-bottom-color: #cbd5e1 !important;
    background: #f1f5f9 !important;
}

/* Tooltips de gráficos permanecem iguais nos dois temas. */
:root[data-theme] .ginoma-apex-card .apexcharts-tooltip {
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 4px !important;
    color: #f8fafc !important;
    background: #111827 !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28) !important;
}

:root[data-theme] .ginoma-apex-card .apexcharts-tooltip-title {
    border-bottom-color: rgba(255, 255, 255, 0.14) !important;
    color: #f8fafc !important;
    background: #111827 !important;
}

.ginoma-native-tooltip {
    position: relative;
}

.ginoma-native-tooltip::before,
.ginoma-native-tooltip::after {
    position: absolute;
    left: 50%;
    z-index: 9600;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .12s ease, transform .12s ease, visibility .12s ease;
}

.ginoma-native-tooltip::before {
    content: "";
    top: calc(100% + 3px);
    width: 8px;
    height: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-left: 1px solid rgba(255, 255, 255, 0.14);
    background: #111827;
    transform: translate(-50%, 0) rotate(45deg);
}

.ginoma-native-tooltip::after {
    content: attr(data-tooltip);
    top: calc(100% + 7px);
    min-width: max-content;
    max-width: 240px;
    padding: 4px 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 4px;
    color: #f8fafc;
    background: #111827;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
    transform: translate(-50%, 0);
}

.ginoma-native-tooltip:hover::before,
.ginoma-native-tooltip:has(:focus-visible)::before,
.ginoma-native-tooltip:hover::after,
.ginoma-native-tooltip:has(:focus-visible)::after {
    opacity: 1;
    visibility: visible;
}

.ginoma-native-tooltip:hover::before,
.ginoma-native-tooltip:has(:focus-visible)::before {
    transform: translate(-50%, 0) rotate(45deg);
}

.ginoma-native-tooltip:hover::after,
.ginoma-native-tooltip:has(:focus-visible)::after {
    transform: translate(-50%, 0);
}

/* ========================================================================== */
/* Tema claro global: superfícies base de todas as famílias de telas          */
/* ========================================================================== */
:root[data-theme="light"] .adm-page,
:root[data-theme="light"] .sga-page,
:root[data-theme="light"] .sge-page,
:root[data-theme="light"] .sgs-page,
:root[data-theme="light"] .sgm-page,
:root[data-theme="light"] .gio-page,
:root[data-theme="light"] .sgd-page,
:root[data-theme="light"] .sgc-page,
:root[data-theme="light"] .gma-page,
:root[data-theme="light"] .sct-page,
:root[data-theme="light"] .sup-page,
:root[data-theme="light"] .ons-page,
:root[data-theme="light"] .manager-page,
:root[data-theme="light"] .executive-dashboard,
:root[data-theme="light"] .ginoma-help-page,
:root[data-theme="light"] .chat-shell,
:root[data-theme="light"] .report-builder-designer,
:root[data-theme="light"] .report-preview {
    color: #172033 !important;
    background-color: #ffffff !important;
    background-image: none !important;
}

:root[data-theme="light"] .adm-page .adm-header,
:root[data-theme="light"] .adm-page .adm-panel,
:root[data-theme="light"] .adm-page .sga-panel,
:root[data-theme="light"] .adm-page .dashboard-chart-panel,
:root[data-theme="light"] .adm-page .dashboard-radar-panel,
:root[data-theme="light"] .adm-page .mud-tabs-panels,
:root[data-theme="light"] .adm-page .mud-table-container,
:root[data-theme="light"] .adm-page .mud-dialog,
:root[data-theme="light"] .adm-page [class*="-panel"],
:root[data-theme="light"] .adm-page [class*="-card"],
:root[data-theme="light"] .manager-page [class*="-panel"],
:root[data-theme="light"] .manager-page [class*="-card"],
:root[data-theme="light"] .executive-dashboard [class*="-panel"],
:root[data-theme="light"] .executive-dashboard [class*="-card"],
:root[data-theme="light"] .ginoma-help-page [class*="-panel"],
:root[data-theme="light"] .ginoma-help-page [class*="-card"],
:root[data-theme="light"] .chat-shell [class*="-panel"],
:root[data-theme="light"] .chat-shell [class*="-card"] {
    color: #172033 !important;
    border-color: #cbd5e1 !important;
    background-color: #ffffff !important;
    background-image: none !important;
    box-shadow: 0 5px 16px rgba(15, 23, 42, 0.06) !important;
}

:root[data-theme="light"] .adm-page .adm-header h1,
:root[data-theme="light"] .adm-page h1,
:root[data-theme="light"] .adm-page h2,
:root[data-theme="light"] .adm-page h3,
:root[data-theme="light"] .adm-page h4,
:root[data-theme="light"] .adm-page .mud-typography:not(.mud-button-label),
:root[data-theme="light"] .manager-page h1,
:root[data-theme="light"] .manager-page h2,
:root[data-theme="light"] .manager-page h3,
:root[data-theme="light"] .executive-dashboard h1,
:root[data-theme="light"] .executive-dashboard h2,
:root[data-theme="light"] .executive-dashboard h3,
:root[data-theme="light"] .ginoma-help-page h1,
:root[data-theme="light"] .ginoma-help-page h2,
:root[data-theme="light"] .ginoma-help-page h3 {
    color: #172033 !important;
}

:root[data-theme="light"] .adm-page p,
:root[data-theme="light"] .adm-page small,
:root[data-theme="light"] .adm-page .mud-typography-caption,
:root[data-theme="light"] .manager-page p,
:root[data-theme="light"] .manager-page small,
:root[data-theme="light"] .executive-dashboard p,
:root[data-theme="light"] .executive-dashboard small,
:root[data-theme="light"] .ginoma-help-page p,
:root[data-theme="light"] .ginoma-help-page small {
    color: #52647a !important;
}

:root[data-theme="light"] .adm-page input,
:root[data-theme="light"] .adm-page select,
:root[data-theme="light"] .adm-page textarea,
:root[data-theme="light"] .adm-page .mud-input,
:root[data-theme="light"] .adm-page .mud-select,
:root[data-theme="light"] .adm-page .mud-input-control,
:root[data-theme="light"] .adm-page .mud-input-slot,
:root[data-theme="light"] .manager-page input,
:root[data-theme="light"] .manager-page select,
:root[data-theme="light"] .manager-page textarea {
    color: #172033 !important;
    border-color: #b8c3d1 !important;
    background-color: #ffffff !important;
    color-scheme: light !important;
}

:root[data-theme="light"] .adm-page .mud-input-outlined-border,
:root[data-theme="light"] .adm-page fieldset,
:root[data-theme="light"] .manager-page fieldset {
    border-color: #b8c3d1 !important;
}

:root[data-theme="light"] .adm-page label,
:root[data-theme="light"] .adm-page legend,
:root[data-theme="light"] .adm-page .mud-input-label,
:root[data-theme="light"] .manager-page label,
:root[data-theme="light"] .manager-page legend {
    color: #52647a !important;
}

:root[data-theme="light"] .adm-page table,
:root[data-theme="light"] .adm-page .mud-table-root,
:root[data-theme="light"] .manager-page table,
:root[data-theme="light"] .executive-dashboard table {
    color: #334155 !important;
    border-color: #cbd5e1 !important;
    background-color: #ffffff !important;
}

:root[data-theme="light"] .adm-page th,
:root[data-theme="light"] .adm-page .mud-table-head,
:root[data-theme="light"] .adm-page .mud-table-head .mud-table-cell,
:root[data-theme="light"] .manager-page th,
:root[data-theme="light"] .executive-dashboard th {
    color: #172033 !important;
    border-color: #cbd5e1 !important;
    background-color: #e8edf3 !important;
}

:root[data-theme="light"] .adm-page td,
:root[data-theme="light"] .adm-page .mud-table-body .mud-table-cell,
:root[data-theme="light"] .manager-page td,
:root[data-theme="light"] .executive-dashboard td {
    color: #334155 !important;
    border-color: #d8e0ea !important;
    background-color: #ffffff !important;
}

:root[data-theme="light"] .adm-page tbody tr:hover td,
:root[data-theme="light"] .adm-page .mud-table-row:hover .mud-table-cell,
:root[data-theme="light"] .manager-page tbody tr:hover td,
:root[data-theme="light"] .executive-dashboard tbody tr:hover td {
    background-color: #f1f5f9 !important;
}

:root[data-theme="light"] .adm-page .mud-tabs-toolbar,
:root[data-theme="light"] .manager-page .mud-tabs-toolbar,
:root[data-theme="light"] .executive-dashboard .mud-tabs-toolbar {
    border-color: #cbd5e1 !important;
    background-color: #eef2f7 !important;
    background-image: none !important;
}

:root[data-theme="light"] .adm-page .mud-tab:not(.mud-tab-active),
:root[data-theme="light"] .manager-page .mud-tab:not(.mud-tab-active),
:root[data-theme="light"] .executive-dashboard .mud-tab:not(.mud-tab-active) {
    color: #334155 !important;
    border-color: #c2cad5 !important;
    background-color: #dce2ea !important;
    background-image: none !important;
    opacity: 1 !important;
}

:root[data-theme="light"] .mud-dialog,
:root[data-theme="light"] .sga-form-modal,
:root[data-theme="light"] .grid-modal-panel,
:root[data-theme="light"] [class*="-modal"] .mud-paper {
    color: #172033 !important;
    border-color: #cbd5e1 !important;
    background-color: #ffffff !important;
    background-image: none !important;
}

:root[data-theme="light"] .ginoma-chart-title,
:root[data-theme="light"] .ginoma-vertical-bar-value,
:root[data-theme="light"] .ginoma-horizontal-bar-label,
:root[data-theme="light"] .ginoma-horizontal-bar-label strong,
:root[data-theme="light"] .ginoma-vertical-bar-label,
:root[data-theme="light"] .ginoma-donut-value-row,
:root[data-theme="light"] .ginoma-donut-value-row strong {
    color: #172033 !important;
}

:root[data-theme="light"] .ginoma-vertical-bar-track,
:root[data-theme="light"] .ginoma-horizontal-bar-track,
:root[data-theme="light"] .manager-bar-track,
:root[data-theme="light"] .executive-bar-track {
    border-color: #bfdbfe !important;
    background-color: #e8eef6 !important;
}

/* Excecoes de composicao que possuem fundos escuros fixos nos modulos. */
:root[data-theme="light"] .executive-filter,
:root[data-theme="light"] .manager-filters,
:root[data-theme="light"] .chat-header,
:root[data-theme="light"] .help-module-strip,
:root[data-theme="light"] .help-index,
:root[data-theme="light"] .help-reader,
:root[data-theme="light"] .help-step,
:root[data-theme="light"] .help-ask,
:root[data-theme="light"] .help-ask-form,
:root[data-theme="light"] .adm-system-module-grid,
:root[data-theme="light"] .adm-system-process,
:root[data-theme="light"] .adm-system-process-start,
:root[data-theme="light"] .adm-system-process-card,
:root[data-theme="light"] .adm-system-process-end,
:root[data-theme="light"] .grid-sticky-top,
:root[data-theme="light"] .critical-action-row.is-group {
    color: #172033 !important;
    border-color: #cbd5e1 !important;
    background-color: #ffffff !important;
    background-image: none !important;
}

:root[data-theme="light"] .help-module-strip,
:root[data-theme="light"] .adm-system-module-grid,
:root[data-theme="light"] .grid-sticky-top,
:root[data-theme="light"] .critical-action-row.is-group {
    background-color: #eef2f7 !important;
}

:root[data-theme="light"] .mud-tabs-tabbar,
:root[data-theme="light"] .mud-tabs-panels,
:root[data-theme="light"] .mud-table,
:root[data-theme="light"] .grid-loading-message,
:root[data-theme="light"] .adm-users-command,
:root[data-theme="light"] .adm-users-metric,
:root[data-theme="light"] .adm-users-health-row {
    color: #172033 !important;
    border-color: #cbd5e1 !important;
    background-color: #ffffff !important;
    background-image: none !important;
}

:root[data-theme="light"] .mud-tabs-tabbar,
:root[data-theme="light"] .grid-loading-message,
:root[data-theme="light"] .adm-users-command {
    background-color: #eef2f7 !important;
}

:root[data-theme="light"] .adm-alert-item.critical,
:root[data-theme="light"] .adm-users-health-row.high {
    color: #7f1d1d !important;
    border-color: #fecaca !important;
    background-color: #fff1f2 !important;
}

/* Rede de seguranca para superficies internas compartilhadas pelos modulos. */
:root[data-theme="light"] .adm-page :is(
    [class$="-header"],
    [class$="-panel"],
    [class$="-card"],
    [class$="-toolbar"],
    [class$="-filters"],
    [class$="-filter"],
    [class$="-content"],
    [class$="-section"],
    [class$="-grid"],
    [class$="-table"],
    [class$="-tabs"],
    [class$="-tabbar"]
),
:root[data-theme="light"] .constructor-page :is(
    [class$="-header"],
    [class$="-panel"],
    [class$="-card"],
    [class$="-toolbar"],
    [class$="-content"]
),
:root[data-theme="light"] .report-builder-page :is(
    [class$="-header"],
    [class$="-panel"],
    [class$="-card"],
    [class$="-toolbar"],
    [class$="-content"]
) {
    color: #172033 !important;
    border-color: #cbd5e1 !important;
    background-color: #ffffff !important;
    background-image: none !important;
}

:root[data-theme="light"] .adm-page :is(h1, h2, h3, h4, h5, h6, label, legend, th, td),
:root[data-theme="light"] .constructor-page :is(h1, h2, h3, h4, h5, h6, label, legend, th, td),
:root[data-theme="light"] .report-builder-page :is(h1, h2, h3, h4, h5, h6, label, legend, th, td) {
    color: #172033 !important;
}

/* ========================================================================== */
/* Design system de dashboards                                                 */
/* ========================================================================== */
:root[data-theme="light"] .adm-header,
:root[data-theme="light"] .notification-hero,
:root[data-theme="light"] .manager-header,
:root[data-theme="light"] .executive-header {
    min-height: 74px;
    padding: 18px 22px !important;
    border: 1px solid #d8e0ea !important;
    border-radius: 12px !important;
    color: #0f172a !important;
    background: #ffffff !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04) !important;
}

:root[data-theme="light"] .gma-kpi,
:root[data-theme="light"] .sge-indicator-card,
:root[data-theme="light"] .executive-kpi-card,
:root[data-theme="light"] .manager-kpi-card,
:root[data-theme="light"] [class*="dashboard-kpi-card"] {
    position: relative;
    overflow: hidden;
    min-height: 96px;
    padding: 16px 18px !important;
    border: 1px solid #d8e0ea !important;
    border-left: 4px solid #4f46e5 !important;
    border-radius: 12px !important;
    color: #172033 !important;
    background: #ffffff !important;
    background-image: none !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .06) !important;
    filter: none !important;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

:root[data-theme="light"] .gma-kpi-button:hover,
:root[data-theme="light"] .sge-indicator-card:hover,
:root[data-theme="light"] .executive-kpi-card:hover,
:root[data-theme="light"] [class*="dashboard-kpi-card"]:hover {
    border-color: #a5b4fc !important;
    box-shadow: 0 9px 24px rgba(79, 70, 229, .12) !important;
    transform: none;
}

:root[data-theme="light"] .gma-kpi span,
:root[data-theme="light"] .sge-indicator-card span,
:root[data-theme="light"] .executive-kpi-card span,
:root[data-theme="light"] [class*="dashboard-kpi-card"] span {
    color: #52647a !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: .01em;
}

:root[data-theme="light"] .gma-kpi strong,
:root[data-theme="light"] .sge-indicator-card strong,
:root[data-theme="light"] .executive-kpi-card strong,
:root[data-theme="light"] [class*="dashboard-kpi-card"] strong {
    color: #0f172a !important;
    font-weight: 800 !important;
}

:root[data-theme="light"] .sge-indicator-card em {
    color: #64748b !important;
}

:root[data-theme="light"] .sge-dashboard-filters,
:root[data-theme="light"] .sgd-dashboard-filters,
:root[data-theme="light"] [class*="dashboard-filters"] {
    gap: 12px !important;
    padding: 16px !important;
    border: 1px solid #d8e0ea !important;
    border-radius: 12px !important;
    color: #172033 !important;
    background: #f8fafc !important;
    box-shadow: none !important;
}

:root[data-theme="light"] .sge-dashboard-filter span,
:root[data-theme="light"] [class*="dashboard-filter"] > span,
:root[data-theme="light"] [class*="dashboard-filter"] > label {
    color: #334155 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
}

:root[data-theme="light"] .sge-dashboard-filter select,
:root[data-theme="light"] .sge-dashboard-filter input,
:root[data-theme="light"] [class*="dashboard-filter"] select,
:root[data-theme="light"] [class*="dashboard-filter"] input {
    min-height: 40px !important;
    color: #0f172a !important;
    border: 1px solid #b8c3d1 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    color-scheme: light !important;
}

:root[data-theme="light"] .dashboard-chart-panel,
:root[data-theme="light"] .ginoma-apex-card,
:root[data-theme="light"] .sge-apex-bar-card,
:root[data-theme="light"] [class*="dashboard-chart"],
:root[data-theme="light"] [class*="chart-panel"] {
    overflow: hidden;
    color: #172033 !important;
    border: 1px solid #d8e0ea !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    background-image: none !important;
    box-shadow: 0 5px 18px rgba(15, 23, 42, .06) !important;
}

:root[data-theme="light"] .sge-static-bars-shell,
:root[data-theme="light"] .sge-static-bars,
:root[data-theme="light"] .sge-pie-shell,
:root[data-theme="light"] .sge-health-shell,
:root[data-theme="light"] .gio-dashboard-shell,
:root[data-theme="light"] .sga-dashboard-shell,
:root[data-theme="light"] .ginoma-donut-shell {
    color: #172033 !important;
    background: #ffffff !important;
    background-image: none !important;
}

:root[data-theme="light"] .sge-chart-heading,
:root[data-theme="light"] [class*="chart-heading"] {
    min-height: 48px;
    padding: 10px 14px !important;
    color: #172033 !important;
    border-bottom: 1px solid #d8e0ea !important;
    background: #f8fafc !important;
    background-image: none !important;
}

:root[data-theme="light"] .sge-chart-heading :is(span, strong, .mud-icon-root),
:root[data-theme="light"] [class*="chart-heading"] :is(span, strong, .mud-icon-root) {
    color: #334155 !important;
}

:root[data-theme="light"] .apexcharts-text,
:root[data-theme="light"] .apexcharts-xaxis-label,
:root[data-theme="light"] .apexcharts-yaxis-label,
:root[data-theme="light"] .apexcharts-legend-text,
:root[data-theme="light"] .apexcharts-datalabel,
:root[data-theme="light"] .apexcharts-data-labels text {
    fill: #334155 !important;
    color: #334155 !important;
}

:root[data-theme="light"] .apexcharts-gridline,
:root[data-theme="light"] .apexcharts-xaxis line,
:root[data-theme="light"] .apexcharts-yaxis line {
    stroke: #e2e8f0 !important;
}

:root[data-theme="light"] .sgm-dashboard-tabs > .mud-tabs-toolbar,
:root[data-theme="light"] .sge-dashboard-tabs > .mud-tabs-toolbar,
:root[data-theme="light"] [class*="dashboard-tabs"] > .mud-tabs-toolbar {
    min-height: 52px;
    padding: 4px;
    border: 1px solid #d8e0ea !important;
    border-radius: 10px !important;
    background: #eef2f7 !important;
    background-image: none !important;
    box-shadow: none !important;
}

:root[data-theme="light"] [class*="dashboard-tabs"] > .mud-tabs-toolbar .mud-tab {
    min-height: 42px !important;
    color: #475569 !important;
    border: 0 !important;
    border-radius: 7px !important;
    background: transparent !important;
    box-shadow: none !important;
}

:root[data-theme="light"] [class*="dashboard-tabs"] > .mud-tabs-toolbar .mud-tab.mud-tab-active {
    color: #3730a3 !important;
    background: #ffffff !important;
    box-shadow: 0 2px 7px rgba(15, 23, 42, .10) !important;
}

:root[data-theme="light"] .grid-loading-message,
:root[data-theme="light"] [class*="dashboard-loading"],
:root[data-theme="light"] [class*="busy-layer"] {
    color: #334155 !important;
    border-color: #d8e0ea !important;
    background: #f8fafc !important;
    background-image: none !important;
}

:root[data-theme="dark"] .gma-kpi,
:root[data-theme="dark"] .sge-indicator-card,
:root[data-theme="dark"] .executive-kpi-card,
:root[data-theme="dark"] .manager-kpi-card,
:root[data-theme="dark"] [class*="dashboard-kpi-card"] {
    min-height: 96px;
    padding: 16px 18px !important;
    border: 1px solid #30394a !important;
    border-left: 4px solid #818cf8 !important;
    border-radius: 12px !important;
    background: #151b27 !important;
    background-image: none !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .18) !important;
}

:root[data-theme="dark"] .sge-dashboard-filters,
:root[data-theme="dark"] .sgd-dashboard-filters,
:root[data-theme="dark"] [class*="dashboard-filters"] {
    gap: 12px !important;
    padding: 16px !important;
    border: 1px solid #30394a !important;
    border-radius: 12px !important;
    background: #151b27 !important;
    box-shadow: none !important;
}

:root[data-theme="dark"] .dashboard-chart-panel,
:root[data-theme="dark"] .ginoma-apex-card,
:root[data-theme="dark"] .sge-apex-bar-card,
:root[data-theme="dark"] [class*="dashboard-chart"],
:root[data-theme="dark"] [class*="chart-panel"] {
    overflow: hidden;
    border: 1px solid #30394a !important;
    border-radius: 12px !important;
    background: #151b27 !important;
    background-image: none !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .18) !important;
}

:root[data-theme="dark"] .sge-static-bars-shell,
:root[data-theme="dark"] .sge-static-bars,
:root[data-theme="dark"] .sge-pie-shell,
:root[data-theme="dark"] .sge-health-shell,
:root[data-theme="dark"] .gio-dashboard-shell,
:root[data-theme="dark"] .sga-dashboard-shell,
:root[data-theme="dark"] .ginoma-donut-shell {
    background: #151b27 !important;
    background-image: none !important;
}

:root[data-theme="dark"] .sge-chart-heading,
:root[data-theme="dark"] [class*="chart-heading"] {
    min-height: 48px;
    padding: 10px 14px !important;
    border-bottom: 1px solid #30394a !important;
    background: #1d2533 !important;
    background-image: none !important;
}

:root[data-theme="dark"] [class*="dashboard-tabs"] > .mud-tabs-toolbar {
    padding: 4px;
    border: 1px solid #30394a !important;
    border-radius: 10px !important;
    background: #151b27 !important;
    background-image: none !important;
}

:root[data-theme="dark"] [class*="dashboard-tabs"] > .mud-tabs-toolbar .mud-tab {
    border: 0 !important;
    border-radius: 7px !important;
    background: transparent !important;
    box-shadow: none !important;
}

:root[data-theme="dark"] [class*="dashboard-tabs"] > .mud-tabs-toolbar .mud-tab.mud-tab-active {
    background: #273149 !important;
    box-shadow: inset 0 0 0 1px rgba(129, 140, 248, .35) !important;
}

:root[data-theme="light"] .dashboard-home-panel,
:root[data-theme="light"] .dashboard-radar-panel,
:root[data-theme="light"] .dashboard-radar-card,
:root[data-theme="light"] .sge-failure-chart-card,
:root[data-theme="light"] .sgm-dashboard-metric,
:root[data-theme="light"] .sgm-dashboard-alert,
:root[data-theme="light"] .gio-chart-card,
:root[data-theme="light"] .gio-company-chart,
:root[data-theme="light"] .gio-chart-legend div,
:root[data-theme="light"] .adm-agentes-status-chart .ginoma-donut-value-row {
    color: #172033 !important;
    border-color: #d8e0ea !important;
    background: #ffffff !important;
    background-image: none !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .05) !important;
}

:root[data-theme="light"] .dashboard-radar-track,
:root[data-theme="light"] .dashboard-bar-track,
:root[data-theme="light"] .dashboard-vertical-bar-track,
:root[data-theme="light"] .dashboard-standard-bar-track,
:root[data-theme="light"] .dashboard-standard-stack-track,
:root[data-theme="light"] .ginoma-horizontal-bar-track,
:root[data-theme="light"] .ginoma-vertical-bar-track {
    border-color: #d8e0ea !important;
    background: #eef2f7 !important;
    background-image: none !important;
}

:root[data-theme="light"] .dashboard-standard-pie > div,
:root[data-theme="light"] .sge-dashboard-section-title,
:root[data-theme="light"] .gio-pv-tabs,
:root[data-theme="light"] .gio-page:has(.gio-dashboard-kpis) > .adm-tabs,
:root[data-theme="light"] .gio-pv-panel,
:root[data-theme="light"] .gio-dashboard-shell > .adm-panel {
    color: #172033 !important;
    border-color: #d8e0ea !important;
    background: #ffffff !important;
    background-image: none !important;
    box-shadow: none !important;
}

:root[data-theme="light"] .sge-dashboard-section-title {
    border-left-color: #4f46e5 !important;
    background: #f8fafc !important;
}

:root[data-theme="light"] .dashboard-pie-legend-item,
:root[data-theme="light"] .dashboard-vertical-bar-item,
:root[data-theme="light"] .gio-chart-legend :is(span, strong),
:root[data-theme="light"] .sgm-dashboard-metric :is(span, strong, small),
:root[data-theme="light"] .sgm-dashboard-alert :is(span, strong, small) {
    color: #334155 !important;
}

:root[data-theme="light"] .ginoma-chart-fixed-values div,
:root[data-theme="light"] .sge-period-summary span,
:root[data-theme="light"] .gio-pv-panel .pa-4,
:root[data-theme="light"] .gio-dashboard-shell > .adm-panel .pa-4 {
    color: #334155 !important;
    border-color: #d8e0ea !important;
    background: #f8fafc !important;
}

:root[data-theme="light"] .gio-pv-tabs .mud-tabs-toolbar,
:root[data-theme="light"] .gio-page:has(.gio-dashboard-kpis) > .adm-tabs .mud-tabs-toolbar,
:root[data-theme="light"] .gio-pv-panel .mud-table-head,
:root[data-theme="light"] .gio-dashboard-shell > .adm-panel .mud-table-head {
    border-color: #d8e0ea !important;
    background: #eef2f7 !important;
}

:root[data-theme="light"] .sgm-dashboard-sort-button {
    color: #3730a3 !important;
    border-color: #a5b4fc !important;
    background: #eef2ff !important;
    background-image: none !important;
    box-shadow: none !important;
}

:root[data-theme="light"] .sge-static-bar strong,
:root[data-theme="light"] .sge-static-bar em,
:root[data-theme="light"] .sge-pie-center span,
:root[data-theme="light"] .sge-pie-center em,
:root[data-theme="light"] .sge-pie-legend :is(span, strong, em) {
    color: #334155 !important;
    text-shadow: none !important;
}

:root[data-theme="light"] .sge-static-bar strong,
:root[data-theme="light"] .sge-pie-center span,
:root[data-theme="light"] .sge-pie-legend strong {
    color: #0f172a !important;
}

:root[data-theme="light"] .sge-pie-center,
:root[data-theme="light"] .sge-pie-legend button {
    color: #172033 !important;
    border-color: #d8e0ea !important;
    background: #ffffff !important;
    box-shadow: none !important;
}

:root[data-theme="light"] .sge-pie-legend button:hover {
    border-color: #a5b4fc !important;
    background: #eef2ff !important;
}

:root[data-theme="light"] .sge-pie-visual {
    box-shadow: 0 8px 22px rgba(15, 23, 42, .10) !important;
}

:root[data-theme="light"] .sge-static-bars-scroll {
    scrollbar-color: #818cf8 #eef2f7;
}

:root[data-theme="light"] .sge-static-bars-scroll::-webkit-scrollbar-track {
    background: #eef2f7;
}

:root[data-theme="light"] .sge-static-bars-scroll::-webkit-scrollbar-thumb {
    border-color: #eef2f7;
    background: #818cf8;
}

:root[data-theme="light"] .notification-title-row > strong {
    color: #1d4ed8 !important;
}

:root[data-theme="light"] .notification-loading,
:root[data-theme="light"] .notification-loading span,
:root[data-theme="light"] .manager-loading,
:root[data-theme="light"] .executive-loading {
    color: #475569 !important;
}

:root[data-theme="light"] .executive-year-filter > span,
:root[data-theme="light"] .executive-company,
:root[data-theme="light"] .executive-company span {
    color: #475569 !important;
}

:root[data-theme="light"] .executive-year {
    color: #334155 !important;
    border-color: #cbd5e1 !important;
    background: #ffffff !important;
}

:root[data-theme="light"] .executive-year:hover,
:root[data-theme="light"] .executive-year.active {
    color: #3730a3 !important;
    border-color: #a5b4fc !important;
    background: #eef2ff !important;
}

:root[data-theme="light"] .adm-health-row,
:root[data-theme="light"] .adm-alert-item,
:root[data-theme="light"] .adm-activity-item {
    color: #172033 !important;
    border-color: #d8e0ea !important;
    background: #ffffff !important;
}

:root[data-theme="light"] .adm-health-row:hover,
:root[data-theme="light"] .adm-alert-item:hover,
:root[data-theme="light"] .adm-activity-item:hover {
    border-color: #a5b4fc !important;
    background: #f8fafc !important;
}

:root[data-theme="light"] :is(.adm-health-row, .adm-alert-item, .adm-activity-item) :is(strong, em) {
    color: #0f172a !important;
}

:root[data-theme="light"] :is(.adm-health-row, .adm-alert-item, .adm-activity-item) span {
    color: #64748b !important;
}

:root[data-theme="light"] .sga-action-stat {
    color: #172033 !important;
    border-color: #d8e0ea !important;
    background: #ffffff !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .05) !important;
}

:root[data-theme="light"] .sga-action-stat strong {
    color: #0f172a !important;
}

:root[data-theme="light"] .sga-action-stat span {
    color: #64748b !important;
}

/* O painel de acoes criticas tambem precisa respeitar o tema selecionado. */
:root[data-theme="light"] .critical-actions-dialog {
    color: #172033 !important;
    border: 1px solid #cbd5e1 !important;
    background: #ffffff !important;
    box-shadow: 0 24px 64px rgba(15, 23, 42, .24) !important;
}

:root[data-theme="light"] .critical-actions-header,
:root[data-theme="light"] .critical-actions-footer {
    color: #172033 !important;
    border-color: #d8e0ea !important;
    background: #ffffff !important;
    background-image: none !important;
}

:root[data-theme="light"] .critical-actions-header h2 {
    color: #0f172a !important;
}

:root[data-theme="light"] .critical-actions-header p {
    color: #64748b !important;
}

:root[data-theme="light"] .critical-actions-summary,
:root[data-theme="light"] .critical-actions-close {
    color: #172033 !important;
    border-color: #cbd5e1 !important;
    background: #f8fafc !important;
}

:root[data-theme="light"] .critical-actions-summary strong {
    color: #0f172a !important;
}

:root[data-theme="light"] .critical-actions-summary span {
    color: #64748b !important;
}

:root[data-theme="light"] .critical-action-row {
    color: #172033 !important;
    border-color: #d8e0ea !important;
    background: #f8fafc !important;
}

:root[data-theme="light"] .critical-action-row:hover {
    border-color: #a5b4fc !important;
    background: #eef2ff !important;
}

:root[data-theme="light"] .critical-action-title,
:root[data-theme="light"] .critical-action-values,
:root[data-theme="light"] .critical-action-values b {
    color: #334155 !important;
}

:root[data-theme="light"] .critical-action-values strong {
    color: #7c2d12 !important;
    background: #ffedd5 !important;
}

:root[data-theme="light"] .sga-empty-state,
:root[data-theme="light"] .sct-insight {
    color: #475569 !important;
    border-color: #d8e0ea !important;
    background: #f8fafc !important;
    background-image: none !important;
}

:root[data-theme="light"] .sct-insight :is(strong, b) {
    color: #0f172a !important;
}

/* Grade compartilhada: cabeçalhos precisam manter contraste no tema claro. */
:root[data-theme="light"] .adm-table-panel .mud-table-head,
:root[data-theme="light"] .adm-table-panel .mud-table-head tr,
:root[data-theme="light"] .adm-table-panel .mud-table-head th,
:root[data-theme="light"] .adm-table-panel .mud-table-head .mud-table-cell {
    color: #172033 !important;
    border-color: #cbd5e1 !important;
    background: #e8edf3 !important;
    background-image: none !important;
}

:root[data-theme="light"] .adm-table-panel .mud-table-head th *,
:root[data-theme="light"] .adm-table-panel .mud-table-head .mud-table-cell * {
    color: #172033 !important;
}

:root[data-theme="light"] .adm-table-panel .mud-table-head .grid-header-content {
    color: #172033 !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

:root[data-theme="light"] .adm-table-panel .mud-table-head .grid-header-drag-icon,
:root[data-theme="light"] .adm-table-panel .mud-table-head .mud-table-sort-label .mud-icon-root {
    color: #475569 !important;
}

/*
 * Popovers ficam fora da arvore visual da pagina e alguns componentes tinham
 * cores escuras fixas. Este bloco final garante contraste consistente para
 * selects, autocompletes, filtros de grade e menus em todo o tema claro.
 */
:root[data-theme="light"] .mud-popover,
:root[data-theme="light"] .mud-popover .mud-paper,
:root[data-theme="light"] .mud-popover .mud-list,
:root[data-theme="light"] .mud-popover .mud-menu-list,
:root[data-theme="light"] .gma-combo-popover .mud-list,
:root[data-theme="light"] .sgm-autocomplete-popover .mud-list,
:root[data-theme="light"] .adm-user-combo-popover .mud-list,
:root[data-theme="light"] .adm-user-profile-popover,
:root[data-theme="light"] .adm-user-profile-popover .mud-list,
:root[data-theme="light"] .grid-columns-menu-body {
    color: #172033 !important;
    border-color: #cbd5e1 !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .16) !important;
}

:root[data-theme="light"] .mud-popover .mud-list-item,
:root[data-theme="light"] .mud-popover .mud-list-item-text,
:root[data-theme="light"] .mud-popover .mud-menu-item,
:root[data-theme="light"] .mud-popover .mud-typography,
:root[data-theme="light"] .gma-combo-popover .mud-list-item,
:root[data-theme="light"] .sgm-autocomplete-popover .mud-list-item,
:root[data-theme="light"] .adm-user-combo-popover .mud-list-item,
:root[data-theme="light"] .adm-user-profile-popover .mud-list-item,
:root[data-theme="light"] .grid-columns-menu-body :is(label, span, strong) {
    color: #172033 !important;
}

:root[data-theme="light"] .mud-popover .mud-list-item:hover,
:root[data-theme="light"] .mud-popover .mud-menu-item:hover,
:root[data-theme="light"] .mud-popover .mud-list-item.mud-selected-item,
:root[data-theme="light"] .mud-popover .mud-list-item[aria-selected="true"],
:root[data-theme="light"] .gma-combo-popover .mud-list-item:hover,
:root[data-theme="light"] .gma-combo-popover .mud-list-item.mud-selected-item,
:root[data-theme="light"] .sgm-autocomplete-popover .mud-list-item:hover,
:root[data-theme="light"] .sgm-autocomplete-popover .mud-list-item.mud-selected-item,
:root[data-theme="light"] .adm-user-combo-popover .mud-list-item:hover,
:root[data-theme="light"] .adm-user-combo-popover .mud-list-item.mud-selected-item {
    color: #0f172a !important;
    background: #e8f0fe !important;
    background-color: #e8f0fe !important;
}

:root[data-theme="light"] .mud-popover .mud-disabled,
:root[data-theme="light"] .mud-popover .mud-list-item.mud-disabled,
:root[data-theme="light"] .mud-popover .mud-list-item.mud-disabled * {
    color: #94a3b8 !important;
}

:root[data-theme="light"] .mud-popover .mud-divider {
    border-color: #e2e8f0 !important;
}

:root[data-theme="light"] .mud-popover .mud-icon-root,
:root[data-theme="light"] .grid-columns-menu-body .mud-icon-root {
    color: #475569 !important;
}

:root[data-theme="light"] .mud-popover,
:root[data-theme="light"] .mud-popover .mud-list,
:root[data-theme="light"] .mud-popover .mud-menu-list,
:root[data-theme="light"] .gma-combo-popover .mud-list,
:root[data-theme="light"] .sgm-autocomplete-popover .mud-list,
:root[data-theme="light"] .adm-user-combo-popover .mud-list,
:root[data-theme="light"] .adm-user-profile-popover .mud-list {
    scrollbar-color: #64748b #e2e8f0 !important;
    scrollbar-width: auto !important;
}

:root[data-theme="light"] .mud-popover::-webkit-scrollbar,
:root[data-theme="light"] .mud-popover ::-webkit-scrollbar,
:root[data-theme="light"] .gma-combo-popover .mud-list::-webkit-scrollbar,
:root[data-theme="light"] .sgm-autocomplete-popover .mud-list::-webkit-scrollbar,
:root[data-theme="light"] .adm-user-combo-popover .mud-list::-webkit-scrollbar,
:root[data-theme="light"] .adm-user-profile-popover .mud-list::-webkit-scrollbar {
    width: 12px !important;
    height: 12px !important;
    background: #e2e8f0 !important;
}

:root[data-theme="light"] .mud-popover::-webkit-scrollbar-track,
:root[data-theme="light"] .mud-popover ::-webkit-scrollbar-track {
    border-radius: 999px !important;
    background: #e2e8f0 !important;
    box-shadow: inset 0 0 0 1px #cbd5e1 !important;
}

:root[data-theme="light"] .mud-popover::-webkit-scrollbar-thumb,
:root[data-theme="light"] .mud-popover ::-webkit-scrollbar-thumb {
    min-height: 36px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 999px !important;
    background: #64748b !important;
    background-clip: padding-box !important;
}

:root[data-theme="light"] .mud-popover::-webkit-scrollbar-thumb:hover,
:root[data-theme="light"] .mud-popover ::-webkit-scrollbar-thumb:hover {
    background: #475569 !important;
    background-clip: padding-box !important;
}

:root[data-theme="light"] .mud-popover::-webkit-scrollbar-button,
:root[data-theme="light"] .mud-popover ::-webkit-scrollbar-button {
    width: 12px !important;
    height: 12px !important;
    background-color: #cbd5e1 !important;
}

:root[data-theme="light"] select option,
:root[data-theme="light"] select optgroup {
    color: #172033 !important;
    background: #ffffff !important;
}

/* Combos de filtro: acabamento e contraste definitivo no tema claro. */
:root[data-theme="light"] .mud-popover.gma-combo-popover,
:root[data-theme="light"] .gma-combo-popover .mud-paper,
:root[data-theme="light"] .gma-combo-popover .mud-list {
    opacity: 1 !important;
    color: #0f172a !important;
    border: 1px solid #94a3b8 !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    box-shadow: 0 16px 38px rgba(15, 23, 42, .22) !important;
}

:root[data-theme="light"] .gma-combo-popover .mud-list {
    padding: 4px !important;
}

:root[data-theme="light"] .gma-combo-popover .mud-list-item {
    min-height: 36px !important;
    margin: 1px 0 !important;
    padding: 7px 11px !important;
    border: 1px solid transparent !important;
    border-radius: 4px !important;
    color: #0f172a !important;
    background: #ffffff !important;
    font-weight: 600 !important;
    opacity: 1 !important;
}

:root[data-theme="light"] .gma-combo-popover .mud-list-item + .mud-list-item {
    border-top-color: #e2e8f0 !important;
}

:root[data-theme="light"] .gma-combo-popover .mud-list-item :is(span, div, p),
:root[data-theme="light"] .gma-combo-popover .mud-list-item-text,
:root[data-theme="light"] .gma-combo-popover .mud-typography {
    color: #0f172a !important;
    font-weight: 600 !important;
    opacity: 1 !important;
}

:root[data-theme="light"] .gma-combo-popover .mud-list-item:hover {
    color: #1e3a8a !important;
    border-color: #bfdbfe !important;
    background: #eff6ff !important;
}

:root[data-theme="light"] .gma-combo-popover .mud-list-item.mud-selected-item,
:root[data-theme="light"] .gma-combo-popover .mud-list-item[aria-selected="true"] {
    color: #1e3a8a !important;
    border-color: #93c5fd !important;
    background: #dbeafe !important;
    box-shadow: inset 3px 0 0 #2563eb !important;
}

:root[data-theme="light"] .gma-combo-popover .mud-list-item:hover :is(span, div, p),
:root[data-theme="light"] .gma-combo-popover .mud-list-item.mud-selected-item :is(span, div, p),
:root[data-theme="light"] .gma-combo-popover .mud-list-item[aria-selected="true"] :is(span, div, p) {
    color: #1e3a8a !important;
}

/* Tema claro: base neutra; o alerta temporario usa uma luz mais limpa. */
:root[data-theme="light"] .floating-user-pending-card.has-pending {
    background: #d4dae3 !important;
}

:root[data-theme="light"] .floating-user-pending-card.has-pending::before {
    opacity: 1;
    background: #d4dae3 !important;
    animation: none;
}

:root[data-theme="light"] .floating-user-pending-card.has-pending::after {
    background:
        radial-gradient(circle at 18% 50%, rgba(220, 38, 38, .24), transparent 48%),
        linear-gradient(90deg, rgba(220, 38, 38, .17), rgba(220, 38, 38, .055));
}
