/* Sistema Juridico - modern internal theme. Scoped to authenticated pages only. */
body.modern-app-shell {
    --mc-navy-950: #101923;
    --mc-navy-900: #162331;
    --mc-navy-800: #203244;
    --mc-navy-700: #2f4559;
    --mc-gold: #c99a54;
    --mc-gold-soft: #f3dfbf;
    --mc-page: #edf2f7;
    --mc-surface: #ffffff;
    --mc-border: #dde6ef;
    --mc-text: #1f2933;
    --mc-muted: #758395;
    --mc-shadow: 0 22px 55px rgba(20, 32, 44, 0.10);
    --mc-shadow-soft: 0 12px 32px rgba(20, 32, 44, 0.08);
    background: var(--mc-page) !important;
    color: var(--mc-text);
}

/*
 * Fallback global de rolagem das telas internas.
 * A página continua navegável mesmo se o PerfectScrollbar ou outro script
 * falhar durante a inicialização.
 */
.main-scrollable-page {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
}

@media (min-width: 641px) {
    .main-scrollable-page {
        height: calc(100vh - 65px);
        height: calc(100dvh - 65px);
    }
}

.modern-app-shell #left-menu-toggle-mask,
.modern-app-shell .page-container,
.modern-app-shell .main-scrollable-page {
    background:
        radial-gradient(circle at 12% 0%, rgba(201, 154, 84, 0.14), transparent 24%),
        linear-gradient(135deg, #f7f2e9 0%, #eef4f8 36%, #e8eef5 100%) !important;
}

.modern-app-shell .page-wrapper {
    padding: 28px;
}

.modern-app-shell .page-container {
    margin-top: 70px;
}

.modern-app-shell .page-title {
    border: 1px solid rgba(221, 230, 239, 0.85);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--mc-shadow-soft);
}

.modern-app-shell .page-title h1,
.modern-app-shell h4 {
    color: var(--mc-navy-900);
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Topbar */
.modern-app-shell .navbar-custom {
    min-height: 70px;
    border-bottom: 1px solid rgba(221, 230, 239, 0.75);
    background: rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 12px 34px rgba(20, 32, 44, 0.08) !important;
    backdrop-filter: blur(16px);
}

.modern-app-shell .navbar-custom .nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    margin: 0 2px;
    border-radius: 14px;
    color: var(--mc-navy-700) !important;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.modern-app-shell .navbar-custom .nav-link:hover,
.modern-app-shell .navbar-custom .nav-link:focus {
    background: #f2f5f8;
    color: var(--mc-navy-950) !important;
    transform: translateY(-1px);
}

.modern-app-shell .navbar-custom .avatar-xs img {
    border: 2px solid #eef3f7;
    box-shadow: 0 6px 16px rgba(20, 32, 44, 0.12);
}

/* Sidebar */
.modern-app-shell .sidebar,
.modern-app-shell .sidebar-scroll,
.modern-app-shell .sidebar-brand {
    background:
        radial-gradient(circle at 78% 2%, rgba(201, 154, 84, 0.22), transparent 28%),
        linear-gradient(180deg, var(--mc-navy-950) 0%, var(--mc-navy-900) 54%, #0e1720 100%) !important;
    color: rgba(255, 255, 255, 0.78);
}

.modern-app-shell .sidebar {
    box-shadow: 18px 0 45px rgba(0, 0, 0, 0.18) !important;
}

.modern-app-shell .sidebar-brand {
    height: 70px;
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none !important;
}

.modern-app-shell .sidebar-brand img {
    max-height: 40px;
    filter: brightness(0) invert(1);
    opacity: 0.96;
}

.modern-app-shell .sidebar-scroll {
    margin-top: 70px;
    border-top: 0 !important;
}

.modern-app-shell .sidebar-menu {
    padding: 16px 0;
}

.modern-app-shell .sidebar-menu li a {
    margin: 4px 12px;
    padding: 0.86rem 1rem;
    border: 1px solid transparent;
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.68);
    font-weight: 650;
    letter-spacing: -0.01em;
}

.modern-app-shell .sidebar-menu li a svg {
    color: rgba(243, 223, 191, 0.72);
}

.modern-app-shell .sidebar-menu li a:hover,
.modern-app-shell .sidebar-menu li a:focus {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.modern-app-shell .sidebar-menu li.active > a {
    border-color: rgba(243, 223, 191, 0.38);
    background: linear-gradient(135deg, rgba(201, 154, 84, 0.95), rgba(123, 91, 49, 0.95)) !important;
    color: #ffffff !important;
    box-shadow: 0 16px 34px rgba(201, 154, 84, 0.22);
}

.modern-app-shell .sidebar-menu li ul {
    background: rgba(255, 255, 255, 0.04);
}

.modern-app-shell .sidebar-menu li ul li a {
    color: rgba(255, 255, 255, 0.60) !important;
}

.modern-app-shell .sidebar-menu li ul li a:hover {
    color: #ffffff !important;
}

/* Cards and panels */
.modern-app-shell .card,
.modern-app-shell .box,
.modern-app-shell .bg-white,
.modern-app-shell .modal-content,
.modern-app-shell .dropdown-menu {
    border: 1px solid rgba(221, 230, 239, 0.88) !important;
    border-radius: 22px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: var(--mc-shadow-soft) !important;
}

.modern-app-shell .card {
    overflow: hidden;
}

.modern-app-shell .card .card-header,
.modern-app-shell .card-header,
.modern-app-shell .card-footer {
    border-color: rgba(221, 230, 239, 0.82) !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
}

.modern-app-shell .card .card-body {
    padding: 20px;
}

.modern-app-shell .dashboard-icon-widget .card-body,
.modern-app-shell .widget-container .card {
    box-shadow: var(--mc-shadow) !important;
}

/* Tabs */
.modern-app-shell .nav-tabs {
    overflow: hidden;
    border: 1px solid rgba(221, 230, 239, 0.88) !important;
    border-bottom: 0 !important;
    border-radius: 22px 22px 0 0 !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: var(--mc-shadow-soft);
}

.modern-app-shell .nav-tabs li a {
    color: var(--mc-muted);
    font-weight: 700;
}

.modern-app-shell .nav-tabs li .active,
.modern-app-shell .nav-tabs li.active {
    color: var(--mc-navy-900) !important;
    border-bottom-color: var(--mc-gold) !important;
}

.modern-app-shell .nav-tabs li:not(.title-tab):after {
    background-color: var(--mc-gold);
}

/* Settings pages need a wider side rail because several labels are long in Portuguese. */
.modern-app-shell #page-content > .row > .col-sm-3.col-lg-2:has(.nav-tabs.vertical.settings) {
    flex: 0 0 320px;
    max-width: 320px;
}

.modern-app-shell #page-content > .row > .col-sm-3.col-lg-2:has(.nav-tabs.vertical.settings) + .col-sm-9.col-lg-10 {
    flex: 1 1 0;
    max-width: calc(100% - 320px);
}

.modern-app-shell .nav-tabs.vertical.settings {
    overflow: visible;
    padding: 12px;
    border-bottom: 1px solid rgba(221, 230, 239, 0.88) !important;
    border-radius: 22px !important;
}

.modern-app-shell .nav-tabs.vertical.settings .settings-anchor,
.modern-app-shell .nav-tabs.vertical.settings .list-group-item {
    min-height: 42px;
    overflow-wrap: anywhere;
    white-space: normal;
}

.modern-app-shell .nav-tabs.vertical.settings .settings-anchor {
    display: flex;
    align-items: center;
    border-radius: 14px;
    color: var(--mc-navy-900);
    font-weight: 800;
    line-height: 1.35;
}

.modern-app-shell .nav-tabs.vertical.settings .list-group-item {
    border: 0;
    border-radius: 12px;
    color: var(--mc-navy-700);
    line-height: 1.35;
}

.modern-app-shell .nav-tabs.vertical.settings .list-group-item.active {
    border-left-color: var(--mc-gold) !important;
    background: #fff8ec;
    color: var(--mc-navy-950);
    font-weight: 800;
}

/* Tables and filters */
.modern-app-shell .table-responsive {
    border-radius: 18px;
}

.modern-app-shell table.dataTable,
.modern-app-shell .dataTables_wrapper {
    color: var(--mc-text);
}

.modern-app-shell table.dataTable thead th,
.modern-app-shell table.display thead th {
    border-bottom: 1px solid #e5edf5 !important;
    color: var(--mc-navy-700);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.modern-app-shell table.dataTable tbody tr {
    transition: background 0.16s ease;
}

.modern-app-shell table.dataTable tbody tr:hover {
    background: #f6f8fb !important;
}

.modern-app-shell .datatable-tools,
.modern-app-shell .custom-toolbar {
    gap: 10px;
}

.modern-app-shell .form-control,
.modern-app-shell .custom-filter-search,
.modern-app-shell .select2-container .select2-choice,
.modern-app-shell .select2-container .select2-choices,
.modern-app-shell .select2-dropdown-open .select2-choice {
    min-height: 42px;
    border: 1px solid #dce6ef !important;
    border-radius: 14px !important;
    background: #f8fafc !important;
    box-shadow: none !important;
}

.modern-app-shell .form-control:focus,
.modern-app-shell .select2-container-active .select2-choice {
    border-color: var(--mc-gold) !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(201, 154, 84, 0.14) !important;
}

.modern-app-shell .select2-container .select2-choice .select2-arrow {
    border-left: 0;
    border-radius: 0 14px 14px 0;
    background: transparent;
}

/* Buttons */
.modern-app-shell .btn {
    min-height: 38px;
    border-radius: 13px !important;
    font-weight: 750;
    box-shadow: none !important;
}

.modern-app-shell .btn-primary,
.modern-app-shell .btn-info {
    border-color: transparent !important;
    background: linear-gradient(135deg, var(--mc-navy-800), var(--mc-navy-700)) !important;
    color: #ffffff !important;
}

.modern-app-shell .btn-primary:hover,
.modern-app-shell .btn-info:hover {
    background: linear-gradient(135deg, var(--mc-navy-950), var(--mc-navy-800)) !important;
}

.modern-app-shell .btn-default,
.modern-app-shell .btn-light {
    border-color: #dce6ef !important;
    background: #ffffff !important;
    color: var(--mc-navy-700) !important;
}

.modern-app-shell .btn-default:hover,
.modern-app-shell .btn-light:hover {
    background: #f4f7fa !important;
}

.modern-app-shell .badge {
    border-radius: 999px;
    font-weight: 800;
}

/* Kanban */
.modern-app-shell .kanban-page-wrapper {
    min-height: calc(100vh - 70px);
    padding-bottom: 18px !important;
}

.modern-app-shell .kanban-filters-container {
    border: 1px solid rgba(221, 230, 239, 0.88);
    border-radius: 0 0 22px 22px;
    background: rgba(255, 255, 255, 0.94) !important;
    box-shadow: var(--mc-shadow-soft);
}

.modern-app-shell .kanban-filters-container .row {
    align-items: center;
    margin-left: 0;
    margin-right: 0;
}

.modern-app-shell #kanban-filters .custom-toolbar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.modern-app-shell .kanban-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
}

.modern-app-shell #toggle-completed-kanban {
    border-radius: 14px !important;
    font-weight: 850;
    white-space: nowrap;
}

.modern-app-shell #toggle-completed-kanban.btn-success {
    border-color: rgba(0, 179, 147, 0.24) !important;
    background: linear-gradient(135deg, #00a884, #087f6d) !important;
    box-shadow: 0 12px 24px rgba(0, 132, 104, 0.22);
}

.modern-app-shell .modern-kanban-board {
    min-height: calc(100vh - 205px);
    overflow: auto !important;
    padding: 8px;
    border-radius: 0 0 24px 24px;
    background:
        radial-gradient(circle at 8% 0%, rgba(201, 154, 84, 0.14), transparent 24%),
        linear-gradient(135deg, #dfe8f0, #f0f5fa) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
    scrollbar-gutter: stable;
}

.modern-app-shell .kanban-container {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    min-width: 100%;
    padding: 0 !important;
    list-style: none;
    border-radius: 24px;
    background: transparent !important;
}

.modern-app-shell .kanban-col {
    float: none !important;
    flex: 1 0 clamp(292px, 24vw, 370px);
    min-width: 292px;
    max-width: 390px;
    margin: 0 !important;
}

.modern-app-shell .kanban-col-title {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 10px 14px !important;
    border-radius: 15px 15px 8px 8px !important;
    border-bottom-width: 4px !important;
    color: var(--mc-navy-800);
    font-weight: 850;
    box-shadow: var(--mc-shadow-soft);
}

.modern-app-shell .kanban-item-list {
    padding: 8px 6px 12px;
    border-radius: 0 0 15px 15px;
    background: rgba(230, 238, 246, 0.72);
    overflow-y: auto !important;
    scrollbar-width: thin;
}

.modern-app-shell .kanban-item {
    width: auto !important;
    margin: 0 0 8px !important;
    padding: 10px 12px !important;
    border: 1px solid #e0e8f0;
    border-radius: 14px;
    background: #ffffff;
    color: var(--mc-navy-700);
    box-shadow: 0 7px 18px rgba(20, 32, 44, 0.07);
    text-decoration: none !important;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.modern-app-shell .kanban-item:hover,
.modern-app-shell .kanban-item:active,
.modern-app-shell .kanban-item:focus {
    background: #fffaf1;
    color: var(--mc-navy-900);
    box-shadow: 0 10px 24px rgba(20, 32, 44, 0.12);
    transform: translateY(-1px);
}

.modern-app-shell .kanban-task-card-header {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.modern-app-shell .kanban-task-avatar {
    flex: 0 0 24px;
}

.modern-app-shell .kanban-task-avatar img {
    width: 24px;
    height: 24px;
    border: 1px solid #edf3f8;
    box-shadow: 0 4px 10px rgba(20, 32, 44, 0.08);
}

.modern-app-shell .kanban-task-title-wrap {
    flex: 1 1 auto;
    min-width: 0;
}

.modern-app-shell .kanban-task-title {
    display: inline;
    color: var(--mc-navy-800);
    font-size: 12.5px;
    font-weight: 800;
    line-height: 1.28;
}

.modern-app-shell .kanban-task-id {
    display: inline-flex;
    align-items: center;
    margin-right: 5px;
    padding: 1px 6px;
    border-radius: 999px;
    background: #eef4f8;
    color: var(--mc-muted);
    font-size: 10.5px;
    font-weight: 850;
}

.modern-app-shell .kanban-task-card-actions {
    flex: 0 0 auto;
    min-width: 18px;
}

.modern-app-shell .kanban-task-date-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 9px;
    margin-top: 7px;
}

.modern-app-shell .kanban-task-date,
.modern-app-shell .kanban-task-meta {
    color: var(--mc-muted);
    font-size: 11px;
    line-height: 1.25;
}

.modern-app-shell .kanban-task-meta {
    margin-top: 5px;
}

.modern-app-shell .kanban-task-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-height: 20px;
    margin-top: 6px;
}

.modern-app-shell .kanban-task-open-pill {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    padding: 3px 7px;
    border-radius: 999px;
    background: #f4f7fa;
    color: var(--mc-navy-700);
    font-size: 10.5px;
    font-weight: 850;
    opacity: 0.78;
}

.modern-app-shell .kanban-item:hover .kanban-task-open-pill {
    background: rgba(201, 154, 84, 0.16);
    color: var(--mc-navy-950);
    opacity: 1;
}

.modern-app-shell .kanban-load-more-wrap {
    display: flex;
    justify-content: center;
    padding: 8px 0 4px;
}

.modern-app-shell .kanban-load-more {
    width: 100%;
    border: 1px dashed rgba(47, 66, 84, 0.22) !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.74) !important;
    color: var(--mc-navy-700) !important;
    font-weight: 800;
}

.modern-app-shell .kanban-load-more:hover {
    border-color: rgba(201, 154, 84, 0.55) !important;
    background: #fffaf1 !important;
    color: var(--mc-navy-950) !important;
}

.modern-app-shell .kanban-load-progress {
    color: var(--mc-muted);
    font-weight: 700;
}

.modern-app-shell .kanban-sortable-ghost {
    opacity: 0.45;
}

.modern-app-shell .kanban-sortable-chosen {
    transform: rotate(-1deg);
}

@media (min-width: 1500px) {
    .modern-app-shell .kanban-col {
        max-width: none;
    }
}

/* Modals and dropdowns */
.modern-app-shell .modal-header,
.modern-app-shell .modal-footer {
    border-color: #e5edf5 !important;
}

.modern-app-shell .dropdown-item {
    border-radius: 10px;
    color: var(--mc-navy-700);
}

.modern-app-shell .dropdown-item:hover {
    background: #f4f7fa;
    color: var(--mc-navy-950);
}

@media (min-width: 991px) {
    .modern-app-shell.sidebar-toggled .sidebar-menu li:hover {
        background: var(--mc-navy-900);
        border-radius: 16px;
    }

    .modern-app-shell.sidebar-toggled .sidebar-menu li:hover > a {
        background: rgba(255, 255, 255, 0.10);
        box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22) !important;
    }

    .modern-app-shell.sidebar-toggled .sidebar-menu li ul {
        background: var(--mc-navy-900);
        box-shadow: 16px 18px 38px rgba(0, 0, 0, 0.24);
    }
}

@media (max-width: 990px) {
    .modern-app-shell .page-wrapper {
        padding: 18px;
    }

    .modern-app-shell .navbar-custom {
        min-height: 64px;
    }

    .modern-app-shell #page-content > .row > .col-sm-3.col-lg-2:has(.nav-tabs.vertical.settings),
    .modern-app-shell #page-content > .row > .col-sm-3.col-lg-2:has(.nav-tabs.vertical.settings) + .col-sm-9.col-lg-10 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .modern-app-shell .kanban-page-wrapper {
        padding: 12px !important;
    }

    .modern-app-shell .kanban-toolbar-actions {
        flex-wrap: wrap;
    }

    .modern-app-shell #kanban-filters .custom-toolbar {
        justify-content: flex-start;
    }

    .modern-app-shell .modern-kanban-board {
        min-height: calc(100vh - 205px);
        padding: 10px;
    }

    .modern-app-shell .kanban-container {
        gap: 12px;
    }

    .modern-app-shell .kanban-col {
        flex-basis: 86vw;
        min-width: 86vw;
        max-width: 86vw;
    }
}
/* Central de notificacoes -------------------------------------------------- */
.morais-notification-nav {
    align-items: center;
    display: flex;
}

#web-notification-icon {
    align-items: center;
    background: #f3f6fa;
    border: 1px solid #e4eaf1;
    border-radius: 12px;
    color: #183149;
    display: inline-flex;
    height: 40px;
    justify-content: center;
    margin: 6px 4px;
    padding: 0;
    position: relative;
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
    width: 40px;
}

#web-notification-icon:hover,
#web-notification-icon[aria-expanded="true"] {
    background: #eaf2ff;
    border-color: #bcd2f0;
    box-shadow: 0 8px 20px rgba(21, 57, 91, .13);
    color: #135fa8;
    transform: translateY(-1px);
}

#web-notification-icon::after {
    display: none;
}

#web-notification-icon .badge.up {
    align-items: center;
    background: linear-gradient(135deg, #ff445d, #ff6a3d) !important;
    border: 2px solid #fff;
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(255, 68, 93, .3);
    display: flex;
    font-size: 9px;
    font-weight: 900;
    height: 19px;
    justify-content: center;
    min-width: 19px;
    padding: 0 4px;
    position: absolute;
    right: -6px;
    top: -5px;
}

.morais-notification-dropdown {
    border: 0;
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(15, 35, 55, .22);
    margin-top: 9px !important;
    max-width: calc(100vw - 24px);
    overflow: hidden;
    padding: 0;
    width: 500px;
}

.morais-notification-dropdown .dropdown-details,
.morais-notification-center {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.morais-notification-header {
    align-items: center;
    background: linear-gradient(135deg, #10283d 0%, #1b405d 100%);
    color: #fff;
    display: flex;
    justify-content: space-between;
    min-height: 82px;
    padding: 17px 18px;
}

.morais-notification-heading,
.morais-notification-header-actions {
    align-items: center;
    display: flex;
}

.morais-notification-heading {
    gap: 11px;
}

.morais-notification-heading-icon {
    align-items: center;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 12px;
    display: flex;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.morais-notification-heading strong,
.morais-notification-heading small {
    display: block;
}

.morais-notification-heading strong {
    font-size: 16px;
    font-weight: 850;
    letter-spacing: -.15px;
}

.morais-notification-heading small {
    color: #bfd1e0;
    font-size: 11px;
    margin-top: 2px;
}

.morais-notification-header-actions {
    gap: 6px;
}

.morais-notification-header-actions a {
    align-items: center;
    border-radius: 10px;
    color: #dce9f4;
    display: inline-flex;
    font-size: 11px;
    font-weight: 750;
    gap: 5px;
    min-height: 34px;
    padding: 7px 9px;
    text-decoration: none;
}

.morais-notification-header-actions a:hover {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.morais-notification-header-actions a.is-busy {
    opacity: .6;
    pointer-events: none;
}

.morais-notification-settings {
    justify-content: center;
    width: 34px;
}

.morais-notification-filters {
    align-items: center;
    background: #fff;
    border-bottom: 1px solid #edf1f5;
    display: flex;
    gap: 6px;
    padding: 10px 14px;
}

.morais-notification-filter {
    background: #f2f5f8;
    border: 1px solid transparent;
    border-radius: 999px;
    color: #526579;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    padding: 7px 11px;
}

.morais-notification-filter:hover,
.morais-notification-filter.is-active {
    background: #eaf2ff;
    border-color: #cddff5;
    color: #175d9c;
}

.morais-notification-filter span {
    background: #fff;
    border-radius: 99px;
    display: inline-block;
    font-size: 9px;
    margin-left: 4px;
    min-width: 17px;
    padding: 3px 5px;
    text-align: center;
}

.morais-notification-list {
    background: #f7f9fb;
    max-height: min(58vh, 520px);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0;
}

.morais-notification-section {
    align-items: center;
    background: #f7f9fb;
    color: #738397;
    display: flex;
    font-size: 10px;
    font-weight: 900;
    gap: 6px;
    letter-spacing: .45px;
    padding: 10px 16px 7px;
    text-transform: uppercase;
}

.morais-notification-item {
    background: #fff;
    border-bottom: 1px solid #edf1f5 !important;
    color: #27394b;
    padding: 14px 16px !important;
    position: relative;
    transition: background .15s ease, transform .15s ease;
}

.morais-notification-item:hover {
    background: #f5f9fd !important;
    color: #172c40;
    transform: translateX(2px);
}

.morais-notification-item.unread-notification {
    background: #eef6ff !important;
}

.morais-notification-item.unread-notification::before {
    background: #2784db;
    border-radius: 0 5px 5px 0;
    bottom: 9px;
    content: "";
    left: 0;
    position: absolute;
    top: 9px;
    width: 3px;
}

.global-alert-notification.unread-notification {
    background: #fff8ec !important;
}

.global-alert-notification.unread-notification::before {
    background: #f39a21;
}

.morais-notification-item .avatar-xs,
.morais-notification-type-icon {
    height: 36px;
    width: 36px;
}

.morais-notification-type-icon {
    align-items: center;
    border-radius: 11px;
    display: flex;
    justify-content: center;
}

.morais-notification-type-icon.is-alert {
    background: #fff0d9;
    color: #dc7b00;
}

.morais-notification-item strong {
    color: #1c3349;
    font-size: 12px;
    font-weight: 850;
}

.morais-notification-item .text-break {
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    color: #526579;
    display: -webkit-box;
    font-size: 11px;
    line-height: 1.45;
    overflow: hidden;
}

.morais-notification-time {
    color: #8291a2;
    float: right;
    font-size: 10px;
    margin-left: 8px;
    white-space: nowrap;
}

.morais-notification-filter-empty {
    align-items: center;
    color: #7790a3;
    display: none;
    flex-direction: column;
    gap: 5px;
    justify-content: center;
    min-height: 190px;
    padding: 28px;
    text-align: center;
}

.morais-notification-filter-empty svg {
    color: #31a979;
    margin-bottom: 5px;
}

.morais-notification-filter-empty strong {
    color: #29445b;
    font-size: 13px;
}

.morais-notification-filter-empty span {
    font-size: 11px;
}

.morais-notification-footer {
    background: #fff;
    border-top: 1px solid #e9eef3;
    margin: 0 !important;
    padding: 9px 12px;
}

.morais-notification-footer a {
    align-items: center;
    border-radius: 10px;
    color: #245f91;
    display: flex;
    font-size: 11px;
    font-weight: 850;
    gap: 8px;
    justify-content: center;
    padding: 8px 10px;
}

.morais-notification-footer a:hover {
    background: #edf5fc;
    text-decoration: none;
}

@media (max-width: 640px) {
    .morais-notification-dropdown {
        border-radius: 15px;
        position: fixed !important;
        right: 8px !important;
        top: 58px !important;
        transform: none !important;
        width: calc(100vw - 16px);
    }

    .morais-notification-header-actions .mark-all-as-read-button span {
        display: none;
    }

    .morais-notification-list {
        max-height: calc(100vh - 230px);
    }
}

/* Acoes modernas da barra superior --------------------------------------- */
.morais-topbar-actions {
    align-items: center;
    gap: 9px;
    padding: 0 8px 0 4px;
}

.morais-topbar-actions > .nav-item,
.morais-topbar-action {
    align-items: center;
    display: flex;
}

#global-search-btn,
#quick-add-icon,
#web-notification-icon,
#message-notification-icon {
    align-items: center;
    border: 0;
    border-radius: 14px;
    color: #fff !important;
    display: inline-flex;
    height: 44px;
    justify-content: center;
    margin: 4px 0;
    padding: 0 !important;
    position: relative;
    transition: box-shadow .2s ease, filter .2s ease, transform .2s ease;
    width: 44px;
}

#global-search-btn {
    background: linear-gradient(145deg, #2584ef, #1765cf);
    box-shadow: 0 7px 18px rgba(37, 132, 239, .24);
}

#quick-add-icon {
    background: linear-gradient(145deg, #20bf87, #099b69);
    box-shadow: 0 7px 18px rgba(9, 155, 105, .24);
}

#web-notification-icon {
    background: linear-gradient(145deg, #ffad32, #f07820);
    box-shadow: 0 7px 18px rgba(240, 120, 32, .25);
}

#message-notification-icon {
    background: linear-gradient(145deg, #8b6cf6, #6848d8);
    box-shadow: 0 7px 18px rgba(104, 72, 216, .24);
}

#global-search-btn:hover,
#quick-add-icon:hover,
#web-notification-icon:hover,
#web-notification-icon[aria-expanded="true"],
#message-notification-icon:hover,
#message-notification-icon[aria-expanded="true"] {
    border: 0;
    color: #fff !important;
    filter: brightness(1.08) saturate(1.08);
    transform: translateY(-2px) scale(1.03);
}

#global-search-btn svg,
#quick-add-icon svg,
#web-notification-icon svg,
#message-notification-icon svg {
    height: 21px;
    stroke-width: 2.35;
    width: 21px;
}

#quick-add-icon::after,
#web-notification-icon::after,
#message-notification-icon::after {
    display: none;
}

#web-notification-icon .badge.up,
#message-notification-icon .badge.up {
    background: linear-gradient(145deg, #ff3657, #dc1739) !important;
    border: 2px solid #fff;
    box-shadow: 0 4px 10px rgba(220, 23, 57, .32);
    right: -6px;
    top: -6px;
}

.morais-user-menu {
    align-items: center;
    border-left: 1px solid #e6edf4;
    display: flex;
    margin-left: 3px;
    padding-left: 9px;
}

#user-dropdown {
    align-items: center;
    border-radius: 15px;
    display: inline-flex;
    min-height: 48px;
    padding: 4px 9px 4px 5px;
    transition: background .18s ease, box-shadow .18s ease;
}

#user-dropdown:hover,
#user-dropdown[aria-expanded="true"] {
    background: #f2f6fb;
    box-shadow: inset 0 0 0 1px #e2eaf2;
}

#user-dropdown .avatar {
    background: linear-gradient(145deg, #2584ef, #7b5ce7);
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #d8e5f2, 0 5px 12px rgba(25, 55, 82, .18);
    height: 36px;
    min-width: 36px;
    width: 36px;
}

#user-dropdown .avatar img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

#user-dropdown .user-name {
    color: #21394d;
    font-size: 13px;
    font-weight: 750;
    margin-left: 10px;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .morais-topbar-actions {
        gap: 6px;
        padding-right: 3px;
    }

    #global-search-btn,
    #quick-add-icon,
    #web-notification-icon,
    #message-notification-icon {
        border-radius: 12px;
        height: 40px;
        width: 40px;
    }

    .morais-user-menu {
        margin-left: 0;
        padding-left: 6px;
    }

    #user-dropdown {
        padding-right: 5px;
    }
}
