@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&display=swap');

:root {
    --formops-dark: #212121;
    --formops-text: #212121;
    --formops-muted: #555555;
    --formops-border: #CECECE;
    --formops-bg: #F3F3F3;
    --formops-blue: #212121;
    --formops-navy: #212121;
    --formops-green: #555555;
    --admin-sidebar-width: 260px;
    --admin-sidebar-collapsed-width: 76px;
    --bs-body-font-family: "Poppins", sans-serif;
    --bs-body-color: #555555;
    --bs-body-bg: #F3F3F3;
    --bs-primary: #212121;
    --bs-primary-rgb: 33, 33, 33;
    --bs-secondary: #555555;
    --bs-secondary-rgb: 85, 85, 85;
    --bs-border-color: #CECECE;
}

html,
body {
    font-family: "Poppins", sans-serif;
    color: var(--formops-text);
}

body {
    background: var(--formops-bg);
}

.formops-logo {
    display: block;
    width: 150px;
    max-width: 100%;
    height: auto;
}

.formops-logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    object-fit: cover;
    background: #fff;
    box-shadow: 0 10px 24px rgba(33, 33, 33, .12);
}

.formops-brand-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.formops-brand-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.03em;
}

.formops-brand-subtitle {
    color: rgba(255, 255, 255, .66);
    font-size: 13px;
}

.admin-wrapper,
.system-wrapper {
    min-height: 100vh;
    display: flex;
}

.admin-sidebar,
.system-sidebar {
    width: 260px;
    background: linear-gradient(180deg, var(--formops-navy), #212121);
    color: #fff;
    flex-shrink: 0;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    width: var(--admin-sidebar-collapsed-width);
    height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 0%, rgba(33, 33, 33, .28), transparent 28rem),
        linear-gradient(160deg, #212121 0%, #212121 54%, #212121 100%);
    box-shadow: 18px 0 45px rgba(33, 33, 33, .18);
    transition: width .22s ease;
    z-index: 20;
}

.admin-sidebar:hover,
.admin-sidebar:focus-within {
    width: var(--admin-sidebar-width);
}

.admin-sidebar::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255, 255, 255, .07), transparent 38%);
    opacity: .6;
}

.admin-sidebar-inner {
    position: relative;
    z-index: 1;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    padding: 22px 10px;
    width: 100%;
    transition: padding .22s ease;
}

.admin-sidebar:hover .admin-sidebar-inner,
.admin-sidebar:focus-within .admin-sidebar-inner {
    padding: 22px 16px;
}

.admin-sidebar .brand,
.system-sidebar .brand {
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.admin-sidebar-brand {
    padding: 2px 0 40px;
    transition: padding .22s ease;
}

.admin-sidebar:hover .admin-sidebar-brand,
.admin-sidebar:focus-within .admin-sidebar-brand {
    padding: 2px 6px 40px;
}

.admin-sidebar .formops-logo-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    box-shadow: 0 16px 34px rgba(33, 33, 33, .22);
}

.admin-sidebar .formops-brand-row {
    justify-content: center;
    gap: 0;
    transition: gap .18s ease;
}

.admin-sidebar:hover .formops-brand-row,
.admin-sidebar:focus-within .formops-brand-row {
    justify-content: flex-start;
    gap: 12px;
}

.admin-sidebar .formops-brand-title {
    color: #fff;
    line-height: 1;
}

.admin-sidebar .formops-brand-subtitle {
    margin-top: 4px;
    color: #CECECE;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.admin-sidebar .formops-brand-row > div:not(:first-child),
.admin-sidebar .admin-nav-section-label,
.admin-sidebar a.admin-nav-item span {
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-6px);
    transition: max-width .18s ease, opacity .16s ease, transform .16s ease;
    pointer-events: none;
}

.admin-sidebar:hover .formops-brand-row > div:not(:first-child),
.admin-sidebar:focus-within .formops-brand-row > div:not(:first-child),
.admin-sidebar:hover .admin-nav-section-label,
.admin-sidebar:focus-within .admin-nav-section-label,
.admin-sidebar:hover a.admin-nav-item span,
.admin-sidebar:focus-within a.admin-nav-item span {
    max-width: 180px;
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.admin-tenant-label {
    color: #CECECE;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.admin-sidebar nav,
.system-sidebar nav {
    padding: 16px;
}

.admin-sidebar-nav {
    flex: 1;
    padding: 8px 0 16px !important;
}

.admin-nav-section {
    margin-bottom: 8px;
    transition: margin-bottom .18s ease;
}

.admin-nav-section-label {
    max-height: 0;
    overflow: hidden;
    padding: 0 12px;
    color: #555555;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: max-height .18s ease, padding .18s ease, opacity .16s ease, transform .16s ease;
}

.admin-sidebar:hover .admin-nav-section,
.admin-sidebar:focus-within .admin-nav-section {
    margin-bottom: 16px;
}

.admin-sidebar:hover .admin-nav-section-label,
.admin-sidebar:focus-within .admin-nav-section-label {
    max-height: 28px;
    padding: 0 12px 8px;
}

.admin-sidebar a,
.system-sidebar a {
    display: block;
    color: rgba(255, 255, 255, .76);
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 12px;
    margin-bottom: 6px;
    font-size: 15px;
}

.admin-sidebar a.admin-nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-height: 44px;
    margin-bottom: 7px;
    padding: 11px;
    border: 1px solid transparent;
    color: #CECECE;
    border-radius: 14px;
    font-weight: 700;
    transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, gap .18s ease, padding .18s ease;
    white-space: nowrap;
}

.admin-sidebar:hover a.admin-nav-item,
.admin-sidebar:focus-within a.admin-nav-item {
    justify-content: flex-start;
    gap: 11px;
    padding: 11px 12px;
}

.sidebar-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: .9;
}

.admin-sidebar a.admin-nav-item:hover {
    color: #fff;
    background: rgba(206, 206, 206, .12);
    border-color: rgba(206, 206, 206, .16);
    transform: none;
}

.admin-sidebar:hover a.admin-nav-item:hover,
.admin-sidebar:focus-within a.admin-nav-item:hover {
    transform: translateX(3px);
}

.admin-sidebar a.admin-nav-item.active {
    color: #fff;
    background: linear-gradient(135deg, #212121, #555555);
    border-color: rgba(255, 255, 255, .16);
    box-shadow: 0 16px 34px rgba(33, 33, 33, .34);
}

.admin-sidebar a.admin-nav-featured {
    background: rgba(33, 33, 33, .13);
    border-color: rgba(33, 33, 33, .22);
    color: #CECECE;
}

.admin-sidebar a.admin-nav-featured:not(.active):hover {
    background: rgba(33, 33, 33, .22);
    border-color: rgba(33, 33, 33, .32);
}

.admin-nav-divider {
    height: 1px;
    margin: 12px 6px;
    background: rgba(206, 206, 206, .14);
}

.admin-sidebar-footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(206, 206, 206, .14);
}

.admin-logout-item {
    color: #fecaca !important;
}

.admin-logout-item:hover {
    background: rgba(239, 68, 68, .12) !important;
    border-color: rgba(248, 113, 113, .20) !important;
}

.admin-sidebar a:hover,
.admin-sidebar a.active,
.system-sidebar a:hover,
.system-sidebar a.active {
    background: rgba(33, 33, 33, .22);
    color: #fff;
}

.admin-sidebar a.admin-nav-item:hover,
.admin-sidebar a.admin-nav-item.active {
    background: rgba(206, 206, 206, .12);
}

.admin-sidebar a.admin-nav-item.active {
    background: linear-gradient(135deg, #212121, #555555);
}

.admin-main,
.system-main {
    flex: 1;
    min-width: 0;
}

.admin-topbar,
.system-topbar {
    min-height: 72px;
    background: rgba(255, 255, 255, .88);
    border-bottom: 1px solid var(--formops-border);
    display: flex;
    align-items: center;
    backdrop-filter: blur(12px);
}

.admin-content,
.system-content {
    padding: 32px;
}


.card {
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(33, 33, 33, .06);
}

.btn,
.form-control,
.form-select {
    border-radius: 12px;
}

.btn-primary {
    --bs-btn-bg: var(--formops-blue);
    --bs-btn-border-color: var(--formops-blue);
    --bs-btn-hover-bg: #555555;
    --bs-btn-hover-border-color: #555555;
}

.btn-success {
    --bs-btn-bg: var(--formops-green);
    --bs-btn-border-color: var(--formops-green);
    --bs-btn-hover-bg: #16a34a;
    --bs-btn-hover-border-color: #16a34a;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--formops-blue);
    box-shadow: 0 0 0 .25rem rgba(33, 33, 33, .14);
}

.formops-login-shell {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(33, 33, 33, .12), rgba(34, 197, 94, .08)), var(--formops-bg);
}

.formops-login-card {
    max-width: 440px;
    width: 100%;
}

.formops-login-logo {
    width: 180px;
    margin: 0 auto 14px;
}

.formops-reset-code {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .22em;
    font-size: 20px;
    font-weight: 800;
}

.formops-tagline {
    color: var(--formops-muted);
}

@media (max-width: 991px) {
    .admin-wrapper,
    .system-wrapper {
        display: block;
    }

    .admin-sidebar,
    .system-sidebar {
        width: 100%;
    }

    .admin-sidebar {
        position: relative;
        height: auto;
        overflow: visible;
        width: 100%;
        transition: none;
    }

    .admin-sidebar-inner {
        min-height: auto;
        padding: 16px;
        width: 100%;
    }

    .admin-sidebar .formops-brand-row > div:not(:first-child),
    .admin-sidebar .admin-nav-section-label,
    .admin-sidebar a.admin-nav-item span {
        max-width: none;
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

    .admin-sidebar .formops-brand-row {
        justify-content: flex-start;
        gap: 12px;
    }

    .admin-sidebar-brand {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        padding: 0 0 14px;
    }
    
    .admin-sidebar nav,
    .system-sidebar nav {
        display: flex;
        gap: 8px;
        overflow-x: auto;
    }

    .admin-sidebar-nav {
        flex: initial;
        padding: 4px 0 0 !important;
    }

    .admin-nav-section-label {
        display: none;
    }

    .admin-nav-section {
        display: flex;
        gap: 8px;
        margin-bottom: 0;
    }

    .admin-sidebar-footer {
        display: flex;
        padding-top: 8px;
        border-top: 0;
    }

    .admin-sidebar a,
    .system-sidebar a {
        white-space: nowrap;
    }

    .admin-sidebar a.admin-nav-item {
        justify-content: flex-start;
        gap: 11px;
        padding: 11px 12px;
        min-height: 42px;
        margin-bottom: 0;
    }

    .admin-content,
    .system-content {
        padding: 20px;
    }
}

/* ================================
   FORMOPS - IDENTIDADE MONOCROMÁTICA
================================ */

.admin-main,
.system-main,
.formops-login-shell {
    background: var(--formops-bg);
}

.admin-sidebar,
.system-sidebar {
    background: linear-gradient(160deg, #212121 0%, #555555 58%, #212121 100%);
    box-shadow: 18px 0 45px rgba(33, 33, 33, .16);
}

.admin-sidebar {
    background:
        radial-gradient(circle at 20% 0%, rgba(206, 206, 206, .10), transparent 28rem),
        linear-gradient(160deg, #212121 0%, #555555 58%, #212121 100%);
}

.system-sidebar {
    background:
        radial-gradient(circle at 18% 0%, rgba(206, 206, 206, .10), transparent 28rem),
        linear-gradient(160deg, #212121 0%, #555555 58%, #212121 100%);
}

.admin-sidebar .formops-brand-subtitle,
.admin-tenant-label,
.admin-nav-section-label,
.system-brand-subtitle,
.system-nav-label,
.system-help-card span {
    color: #CECECE;
}

.admin-sidebar a.admin-nav-item,
.system-nav-link,
.system-logout {
    color: #CECECE !important;
}

.admin-sidebar a.admin-nav-item:hover,
.admin-sidebar a.admin-nav-item.active,
.system-nav-link:hover,
.system-nav-link.active,
.system-nav-link.featured,
.system-nav-link.featured.active {
    color: #fff !important;
    background: #555555 !important;
    border-color: rgba(206, 206, 206, .26) !important;
    box-shadow: none;
}

.admin-sidebar a.admin-nav-featured:not(.active),
.system-nav-link.featured:not(.active) {
    color: #F3F3F3 !important;
    background: rgba(206, 206, 206, .10) !important;
    border-color: rgba(206, 206, 206, .18) !important;
}

.admin-sidebar a.admin-nav-featured:not(.active):hover,
.system-nav-link.featured:not(.active):hover,
.system-help-card:hover {
    background: rgba(206, 206, 206, .18) !important;
    border-color: rgba(206, 206, 206, .30) !important;
}

.admin-sidebar .formops-logo-mark,
.system-logo-wrap {
    box-shadow: 0 16px 34px rgba(0, 0, 0, .22);
}

.system-admin-badge,
.system-help-icon {
    color: #F3F3F3;
    background: rgba(206, 206, 206, .12);
    border-color: rgba(206, 206, 206, .22);
}

.admin-topbar,
.system-topbar {
    background: rgba(255, 255, 255, .94);
    border-bottom-color: var(--formops-border);
}

.system-topbar strong,
.admin-main h1,
.admin-main h2,
.admin-main h3,
.admin-main h4,
.admin-main h5,
.admin-main h6,
.system-main h1,
.system-main h2,
.system-main h3,
.system-main h4,
.system-main h5,
.system-main h6,
.formops-login-shell h1,
.formops-login-shell h2,
.formops-login-shell h3 {
    color: #212121;
}

.system-topbar small,
.system-user-pill,
.text-muted,
.form-text,
.formops-tagline {
    color: #555555 !important;
}

.system-user-pill {
    border-color: var(--formops-border);
    box-shadow: 0 8px 22px rgba(33, 33, 33, .04);
}

.card,
.modal-content,
.dropdown-menu,
.offcanvas,
.list-group-item,
.table > :not(caption) > * > * {
    border-color: var(--formops-border);
}

.card {
    box-shadow: 0 14px 36px rgba(33, 33, 33, .06);
}

.form-control,
.form-select,
.input-group-text {
    color: #212121;
    border-color: var(--formops-border);
}

.form-control::placeholder {
    color: #555555;
    opacity: .72;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: #555555;
    box-shadow: 0 0 0 .22rem rgba(85, 85, 85, .14);
}

.form-check-input:checked {
    background-color: #212121;
    border-color: #212121;
}

.btn-primary {
    --bs-btn-bg: #212121;
    --bs-btn-border-color: #212121;
    --bs-btn-hover-bg: #555555;
    --bs-btn-hover-border-color: #555555;
    --bs-btn-active-bg: #555555;
    --bs-btn-active-border-color: #555555;
    --bs-btn-disabled-bg: #555555;
    --bs-btn-disabled-border-color: #555555;
}

.btn-outline-primary {
    --bs-btn-color: #212121;
    --bs-btn-border-color: #212121;
    --bs-btn-hover-bg: #212121;
    --bs-btn-hover-border-color: #212121;
    --bs-btn-active-bg: #555555;
    --bs-btn-active-border-color: #555555;
}

.btn-secondary {
    --bs-btn-bg: #555555;
    --bs-btn-border-color: #555555;
    --bs-btn-hover-bg: #212121;
    --bs-btn-hover-border-color: #212121;
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link,
.page-item.active .page-link,
.progress-bar {
    background-color: #212121 !important;
    border-color: #212121 !important;
}

.nav-link,
.page-link,
a:not(.btn):not(.admin-nav-item):not(.system-nav-link):not(.system-logout) {
    color: #555555;
}

.nav-link:hover,
.page-link:hover,
a:not(.btn):not(.admin-nav-item):not(.system-nav-link):not(.system-logout):hover {
    color: #212121;
}

.formops-login-shell {
    background:
        linear-gradient(rgba(33, 33, 33, .22), rgba(33, 33, 33, .22)),
        url("clients/formops/fundo_login.jpg") center / cover no-repeat;
}


.admin-main { background: #F3F3F3; }


/* ================================
   FORMOPS - SYSTEM ADMIN SIDEBAR
   Painel do sistema / Super Admin
================================ */

.system-sidebar {
    position: sticky;
    top: 0;
    width: 280px;
    height: 100vh;
    overflow: hidden;
    flex-shrink: 0;
    color: #fff;
    background:
        radial-gradient(circle at 18% 0%, rgba(33, 33, 33, .30), transparent 28rem),
        radial-gradient(circle at 100% 90%, rgba(34, 197, 94, .10), transparent 22rem),
        linear-gradient(160deg, #212121 0%, #212121 52%, #212121 100%);
    box-shadow: 18px 0 45px rgba(33, 33, 33, .18);
}

.system-sidebar::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255, 255, 255, .06), transparent 42%);
    opacity: .7;
}

.system-sidebar-inner {
    position: relative;
    z-index: 1;
    height: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 22px 16px;
}

.system-brand {
    padding: 2px 6px 20px;
    border-bottom: 1px solid rgba(206, 206, 206, .16);
    margin-bottom: 20px;
}

.system-brand-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.system-logo-wrap {
    width: 46px;
    height: 46px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .10);
    box-shadow: 0 16px 34px rgba(33, 33, 33, .22);
}

.system-logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    object-fit: cover;
    background: #fff;
}

.system-brand-title {
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -.04em;
    line-height: 1;
}

.system-brand-subtitle {
    margin-top: 4px;
    color: #CECECE;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.system-admin-badge {
    margin-top: 16px;
    min-height: 34px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    color: #CECECE;
    background: rgba(33, 33, 33, .13);
    border: 1px solid rgba(96, 165, 250, .20);
    font-size: 12px;
    font-weight: 800;
}

.system-admin-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, .14);
}

.system-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 !important;
}

.system-nav-section {
    display: grid;
    gap: 6px;
}

.system-nav-label {
    padding: 0 12px 8px;
    color: #555555;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.system-nav-link,
.system-logout {
    min-height: 46px;
    padding: 11px 12px;
    margin-bottom: 6px;
    border-radius: 14px;
    display: flex !important;
    align-items: center;
    gap: 11px;
    color: #CECECE !important;
    text-decoration: none;
    font-size: 15px;
    font-weight: 750;
    border: 1px solid transparent;
    transition:
        transform .18s ease,
        background .18s ease,
        color .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}

.system-nav-link:hover,
.system-logout:hover {
    color: #fff !important;
    background: rgba(206, 206, 206, .12) !important;
    border-color: rgba(206, 206, 206, .16);
    transform: translateX(3px);
}

.system-nav-link.active {
    color: #fff !important;
    background: linear-gradient(135deg, #212121, #555555) !important;
    border-color: rgba(255, 255, 255, .16);
    box-shadow: 0 16px 34px rgba(33, 33, 33, .34);
}

.system-nav-link.featured {
    color: #CECECE !important;
    background: rgba(33, 33, 33, .13);
    border-color: rgba(33, 33, 33, .22);
}

.system-nav-link.featured:not(.active):hover {
    background: rgba(33, 33, 33, .22) !important;
    border-color: rgba(33, 33, 33, .32);
}

.system-nav-link.featured.active {
    color: #fff !important;
    background: linear-gradient(135deg, #212121, #555555) !important;
}

.system-nav-icon {
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
    display: grid;
    place-items: center;
    color: currentColor;
}

.system-nav-icon svg {
    width: 21px;
    height: 21px;
    display: block;
}

.system-sidebar-footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(206, 206, 206, .14);
}

.system-help-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(206, 206, 206, .12);
    transition: .18s ease;
}

.system-help-card:hover {
    background: rgba(33, 33, 33, .16);
    border-color: rgba(33, 33, 33, .28);
    transform: translateY(-1px);
}

.system-help-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    background: rgba(33, 33, 33, .18);
    color: #CECECE;
    font-weight: 900;
}

.system-help-card strong,
.system-help-card span {
    display: block;
}

.system-help-card strong {
    color: #fff;
    font-size: 13px;
    line-height: 1.2;
}

.system-help-card span {
    margin-top: 3px;
    color: #CECECE;
    font-size: 12px;
    line-height: 1.35;
}

.system-logout {
    color: #fecaca !important;
}

.system-logout:hover {
    color: #fee2e2 !important;
    background: rgba(239, 68, 68, .12) !important;
    border-color: rgba(248, 113, 113, .20);
}

.system-main {
    flex: 1;
    min-width: 0;
    background: #F3F3F3;
}

.system-topbar {
    min-height: 74px;
    background: rgba(255, 255, 255, .88);
    border-bottom: 1px solid var(--formops-border);
    display: flex;
    align-items: center;
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 50;
}

.system-topbar strong {
    display: block;
    color: #212121;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: -.02em;
}

.system-topbar small {
    display: block;
    margin-top: 2px;
    color: #555555;
    font-size: 12px;
    font-weight: 600;
}

.system-user-pill {
    min-height: 38px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    color: #555555;
    background: #fff;
    border: 1px solid #CECECE;
    font-size: 14px;
    font-weight: 750;
    box-shadow: 0 8px 22px rgba(33, 33, 33, .04);
}

.system-content {
    padding: 32px;
}

/* Ajustes responsivos do sidebar do sistema */
@media (max-width: 991px) {
    .system-sidebar {
        position: relative;
        width: 100%;
        height: auto;
        min-height: auto;
    }

    .system-sidebar-inner {
        min-height: auto;
        height: auto;
        padding: 16px;
    }

    .system-brand {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        padding: 0 0 14px;
        margin-bottom: 14px;
    }

    .system-admin-badge {
        margin-top: 0;
    }

    .system-nav {
        display: flex;
        flex-direction: row;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 6px !important;
    }

    .system-nav-section {
        display: flex;
        gap: 8px;
    }

    .system-nav-label,
    .system-help-card {
        display: none;
    }

    .system-nav-link,
    .system-logout {
        white-space: nowrap;
        min-height: 42px;
        margin-bottom: 0;
    }

    .system-sidebar-footer {
        display: flex;
        padding-top: 8px;
        border-top: 0;
    }

    .system-content {
        padding: 20px;
    }
}

/* Regras finais de precedência do novo tema. */
.admin-main,
.system-main {
    background: #F3F3F3;
}

.system-sidebar {
    background:
        radial-gradient(circle at 18% 0%, rgba(206, 206, 206, .10), transparent 28rem),
        linear-gradient(160deg, #212121 0%, #555555 58%, #212121 100%);
    box-shadow: 18px 0 45px rgba(33, 33, 33, .16);
}

.system-brand-subtitle,
.system-nav-label,
.system-help-card span {
    color: #CECECE;
}

.system-nav-link,
.system-logout {
    color: #CECECE !important;
}

.system-nav-link:hover,
.system-nav-link.active,
.system-nav-link.featured,
.system-nav-link.featured.active {
    color: #fff !important;
    background: #555555 !important;
    border-color: rgba(206, 206, 206, .26) !important;
    box-shadow: none;
}

.system-nav-link.featured:not(.active) {
    color: #F3F3F3 !important;
    background: rgba(206, 206, 206, .10) !important;
    border-color: rgba(206, 206, 206, .18) !important;
}

.system-nav-link.featured:not(.active):hover,
.system-help-card:hover {
    background: rgba(206, 206, 206, .18) !important;
    border-color: rgba(206, 206, 206, .30) !important;
}

.system-admin-badge,
.system-help-icon {
    color: #F3F3F3;
    background: rgba(206, 206, 206, .12);
    border-color: rgba(206, 206, 206, .22);
}

.system-topbar {
    background: rgba(255, 255, 255, .94);
    border-bottom-color: #CECECE;
}

.system-topbar strong {
    color: #212121;
}

.system-topbar small,
.system-user-pill {
    color: #555555;
}

.system-user-pill {
    border-color: #CECECE;
    box-shadow: 0 8px 22px rgba(33, 33, 33, .04);
}

/* Alertas e confirmações do sistema. */
body.formops-alert-open {
    overflow: hidden;
}

.formops-alert-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(33, 33, 33, .58);
    opacity: 0;
    transition: opacity .16s ease;
}

.formops-alert-overlay.is-visible {
    opacity: 1;
}

.formops-alert {
    width: min(100%, 460px);
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 0 16px;
    padding: 26px;
    border: 1px solid rgba(206, 206, 206, .8);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 30px 80px rgba(33, 33, 33, .28);
    transform: translateY(10px) scale(.98);
    transition: transform .16s ease;
}

.formops-alert-overlay.is-visible .formops-alert {
    transform: translateY(0) scale(1);
}

.formops-alert-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #212121;
    background: rgba(33, 33, 33, .09);
}

.formops-alert-icon svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.formops-alert--success .formops-alert-icon {
    color: #15803d;
    background: #dcfce7;
}

.formops-alert--warning .formops-alert-icon {
    color: #a16207;
    background: #fef3c7;
}

.formops-alert--danger .formops-alert-icon {
    color: #dc2626;
    background: #fee2e2;
}

.formops-alert-content h2 {
    margin: 1px 0 7px;
    color: #212121;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -.025em;
}

.formops-alert-content p {
    margin: 0;
    color: #555555;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-line;
}

.formops-alert-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
}

.formops-alert-button {
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.formops-alert-button:hover {
    transform: translateY(-1px);
}

.formops-alert-button:focus-visible {
    outline: 3px solid rgba(33, 33, 33, .2);
    outline-offset: 2px;
}

.formops-alert-button--secondary {
    border-color: #CECECE;
    color: #555555;
    background: #fff;
}

.formops-alert-button--secondary:hover {
    color: #212121;
    border-color: #a8a8a8;
    background: #F3F3F3;
}

.formops-alert-button--primary {
    color: #fff;
    background: #212121;
    box-shadow: 0 10px 22px rgba(33, 33, 33, .18);
}

.formops-alert--danger .formops-alert-button--primary {
    background: #dc2626;
    box-shadow: 0 10px 22px rgba(220, 38, 38, .2);
}

@media (max-width: 575px) {
    .formops-alert {
        grid-template-columns: 44px minmax(0, 1fr);
        padding: 20px;
        border-radius: 16px;
    }

    .formops-alert-icon {
        width: 44px;
        height: 44px;
        border-radius: 13px;
    }

    .formops-alert-actions {
        flex-direction: column-reverse;
    }

    .formops-alert-button {
        width: 100%;
    }
}

