h1:focus {
    outline: none;
}

.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-brand {
    text-align: center;
    margin-bottom: 26px;
}

    .login-brand img {
        max-width: 200px;
        margin-bottom: 10px;
    }

    .login-brand p {
        color: #cbd5e1;
        font-size: 12px;
        margin: 0;
        letter-spacing: .3px;
    }

.login-title {
    margin-bottom: 26px;
}

    .login-title h1 {
        margin: 0;
        font-size: 22px;
        color: #f8fafc;
        font-weight: 700;
    }

    .login-title span {
        display: block;
        margin-top: 6px;
        color: #94a3b8;
        font-size: 13px;
    }

.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);
}

.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: 16px 18px;
    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(520px, 1fr);
    gap: 14px;
    align-items: center;
    padding: 6px 14px;
    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: 6px;
    margin: 14px 0 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.help-menu-tabs button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    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-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;
    gap: 8px;
    margin: 0 0 14px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.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;
    gap: 7px;
    min-height: 38px;
    padding: 0 12px;
    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;
}

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

.help-index,
.help-reader {
    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: 82px;
    max-height: calc(100vh - 106px);
    overflow: auto;
    padding: 10px;
}

.help-index-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 8px 12px;
    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: 28px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    margin-bottom: 6px;
    padding: 10px;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #cbd5e1;
    background: transparent;
    text-align: left;
}

.help-index button span {
    overflow: hidden;
    font-size: 13px;
    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: 22px;
}

.help-reader-title {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 58px;
    gap: 16px;
    align-items: center;
    padding-bottom: 16px;
    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: 3px 0 6px;
    color: #ffffff;
    font-size: 21px;
    font-weight: 500;
    letter-spacing: 0;
}

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

.help-reader-title > .mud-icon-root {
    width: 54px;
    height: 54px;
    padding: 13px;
    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: 10px;
    margin-top: 18px;
}

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

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

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

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

.help-table-wrap {
    margin-top: 18px;
    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: 10px 12px;
    color: #dbeafe;
    background: #172033;
    font-size: 12px;
    text-align: left;
}

.help-table td {
    padding: 10px 12px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    color: #cbd5e1;
    font-size: 13px;
    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: 8px;
    margin-top: 18px;
}

.help-callout {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 12px;
    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;
}

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

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

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

@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-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;
}

.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-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.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: #202127;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 14px;
}

.saved-report-list {
    display: grid;
    gap: 8px;
    margin: 12px 0;
}

.saved-report-item {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: #2d2d36;
    color: #f4f6fb;
    border-radius: 6px;
    padding: 9px 10px;
    text-align: left;
    cursor: pointer;
}

.saved-report-item.active {
    border-color: #7c6cff;
    background: #252b45;
}

.saved-report-item span,
.saved-report-item small {
    display: block;
}

.saved-report-item small {
    color: #b9bdca;
    margin-top: 3px;
}

.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-builder-zones {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.report-zone {
    min-height: 210px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: #191a20;
    padding: 12px;
}

.drop-zone {
    outline: 1px dashed rgba(124, 108, 255, 0.45);
    outline-offset: -5px;
}

.field-palette {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.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;
    background: #30313a;
    color: #f4f6fb;
}

.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-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: #bfc0c4;
    color: #05070c;
    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;
}

.report-group-row td {
    background: #151a2b;
    color: #ffffff;
    font-weight: 700;
}

.selected-field-token {
    cursor: grab;
    user-select: none;
    touch-action: none;
}

.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: 118px;
    padding: 22px 24px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 8px;
    background: linear-gradient(135deg, #171923 0%, #202436 58%, #172426 100%);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.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: 4px 0 0;
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 800;
}

.executive-hero p {
    max-width: 760px;
    margin: 9px 0 0;
    color: #cbd5e1;
    font-size: 0.92rem;
}

.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;
}

@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;
    }

    .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-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
    background: #b8b8b8;
    min-height: 32px;
    padding: 4px 10px;
}

.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: #111827;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.2;
    margin: 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-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(320px, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.sge-dashboard-filters {
    display: grid;
    grid-template-columns: repeat(6, minmax(140px, 1fr)) auto;
    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 {
    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 select:focus {
    border-color: #7c5cf2;
    box-shadow: 0 0 0 1px rgba(124, 92, 242, .42);
}

.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-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-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;
}

.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;
}

.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: linear-gradient(180deg, #38bdf8 0%, #3b82f6 52%, #7c3aed 100%);
    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: linear-gradient(90deg, #22d3ee 0%, #3b82f6 55%, #8b5cf6 100%);
}

@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: translateY(-1px);
    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: translateY(-1px);
}

.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: #b8b8b8;
}

.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: #000 !important;
    font-weight: 500;
}

.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;
    box-shadow: -10px 0 16px rgba(0, 0, 0, 0.24);
}

.adm-table-panel .mud-table-head .adm-row-actions {
    z-index: 28;
    background: #b8b8b8;
    box-shadow: -10px 0 16px rgba(0, 0, 0, 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: center;
    gap: 4px;
    min-height: 32px;
    width: 100%;
}

.grid-row-actions-content > .sgm-row-actions {
    justify-content: center;
}

.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-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-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;
    gap: 4px;
}

.grid-cell-center {
    text-align: center !important;
}

.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: #93c5fd;
    opacity: 0.82;
}

.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-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;
}

.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.94), rgba(17,24,39,0.72));
    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: 46px;
    background: transparent;
}

.adm-tabs .mud-tabs-toolbar-wrapper {
    padding: 6px 10px 0;
}

.adm-tabs .mud-tab {
    position: relative;
    min-height: 38px !important;
    margin: 0 4px;
    padding: 0 18px !important;
    border: 1px solid transparent;
    border-radius: 8px 8px 0 0;
    color: #cbd5e1 !important;
    font-weight: 700;
    text-transform: none !important;
    transition: color .18s ease, background .18s ease, border-color .18s ease, transform .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.10);
    border-color: rgba(124,108,255,0.18);
}

.adm-tabs .mud-tab.mud-tab-active {
    color: #fff !important;
    background: linear-gradient(180deg, rgba(124,108,255,0.24), rgba(124,108,255,0.10));
    border-color: rgba(139,124,255,0.44);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.adm-tabs .mud-tab.mud-tab-active::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: -1px;
    height: 3px;
    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-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-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: 360px;
}

.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-x: hidden;
}

.audit-table-panel .mud-table {
    table-layout: fixed;
    width: 100%;
}

.audit-table-panel .mud-table-cell {
    white-space: normal;
    overflow-wrap: anywhere;
}

.audit-action-taken {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) 36px;
    gap: 6px;
    align-items: center;
    min-width: 220px;
}

.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);
}

.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: linear-gradient(90deg, #b8b8b8, #d8dde7);
    min-height: 30px;
    padding: 3px 10px;
    margin-bottom: 8px;
}

.sga-header h1 {
    font-size: 15px;
    line-height: 1.1;
}

.sga-header div:first-child {
    min-width: 0;
}

.sga-header span {
    display: block;
    margin-top: 2px;
    color: #374151;
    font-size: 12px;
}

.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: linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.86));
    color: #e5e7eb;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.20);
}

.gma-page .adm-header h1 {
    color: #f8fafc;
    font-weight: 700;
}

.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: translateY(-2px);
    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: 52px;
    margin-bottom: -8px;
    padding: 12px 16px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.86));
    color: #e5e7eb;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.20);
}

.sga-page .adm-header h1,
.sga-page .sga-header h1 {
    color: #f8fafc;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.15;
}

.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: translateY(-2px);
    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: translateY(-1px);
}

.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;
}

@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: 3200 !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-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: 16px;
}

.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-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;
    line-height: 1;
    text-align: center;
}

.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;
}

.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);
}

.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-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;
}

.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;
}

@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-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 {
    background: rgba(31, 33, 37, 0.92);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px 8px 0 0;
}

.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;
}

.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(5, minmax(120px, 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(20px, 1.55vw, 24px);
}

.sgm-dashboard-pmo-metric-grid .sgm-dashboard-metric-top span,
.sgm-dashboard-pmo-metric-grid .sgm-dashboard-metric small {
    font-size: 10px;
}

.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-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(250,204,21,0.34);
}

.sgm-dashboard-metric.is-warning .mud-icon-root,
.sgm-dashboard-alert.is-warning span,
.sgm-dashboard-tag.is-warning {
    color: #fde68a;
    background: rgba(245,158,11,0.14);
}

.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;
}

@media (max-width: 980px) {
    .sgm-dashboard-filter-panel {
        grid-template-columns: 1fr;
    }
}


.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;
}

.ons-page .mud-tabs-toolbar {
    background: rgba(31, 31, 38, 0.95);
    border-radius: 8px 8px 0 0;
}

.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-meta,
.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-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-result {
    display: grid;
    gap: 10px;
}

.ons-sam-meta {
    gap: 10px;
    flex-wrap: wrap;
    color: #94a3b8;
    font-size: 0.86rem;
}

.ons-sam-meta span {
    max-width: 100%;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.44);
    overflow-wrap: anywhere;
}

.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));
    }
}


.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-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-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));
    }
}

@media (max-width: 820px) {
    .gio-page > .gma-kpi-grid,
    .gio-page .gio-dashboard-kpis {
        grid-template-columns: repeat(2, minmax(0, 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;
}

.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 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(4, minmax(190px, 1fr));
}

.adm-dashboard-alerts .adm-alert-item {
    align-items: flex-start;
    min-height: 118px;
}

.adm-dashboard-alerts .adm-alert-item em {
    align-self: center;
}

@media (max-width: 1350px) {
    .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;
}

@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: 14px;
    padding: 16px 0 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;
}

.sgm-risk-matrix-table {
    width: 100%;
    min-width: 820px;
    border-collapse: collapse;
    table-layout: fixed;
    background: transparent;
}

.sgm-risk-matrix-table th,
.sgm-risk-matrix-table td {
    border: 1px solid rgba(15, 23, 42, 0.92);
    text-align: center;
    height: 52px;
    padding: 8px;
}

.sgm-risk-matrix-table thead th {
    background: #1f2937;
    color: #e5edf7;
    font-weight: 800;
}

.sgm-risk-matrix-table tbody th {
    width: 96px;
    background: #1f2937;
    color: #e5edf7;
    font-weight: 800;
}

.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,
.sgm-risk-matrix-legend .is-low {
    background: #93d050;
}

.sgm-risk-matrix-table .is-medium,
.sgm-risk-matrix-legend .is-medium {
    background: #fff600;
}

.sgm-risk-matrix-table .is-high,
.sgm-risk-matrix-legend .is-high {
    background: #ffc000;
}

.sgm-risk-matrix-table .is-critical,
.sgm-risk-matrix-legend .is-critical {
    background: #ff1616;
}

.sgm-risk-matrix-legend {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 8px;
    background: #111827;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.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-matrix-legend i {
    width: 28px;
    height: 16px;
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.14);
}

.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(3, 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;
    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: translateY(-1px);
}

.sgm-risk-alert-card span {
    color: #cbd5e1;
}

.sgm-risk-alert-card strong {
    color: #f8fafc;
}

.sgm-risk-alert-card small {
    display: block;
    color: #5d6a75;
    line-height: 1.35;
    margin-top: 8px;
}

.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-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;
    }
}
