/* =========================================================
   RamosNET — Dark Theme
   Carregar depois do new-theme.css
   ========================================================= */

body.dark-theme {
	color-scheme:dark;
	--rsm-dark-sidebar:#031536;
	--rsm-dark-bg:#061B3D;
	--rsm-dark-topbar:#071F46;
	--rsm-dark-panel:#092653;
	--rsm-dark-panel-inner:#0B2D5D;
	--rsm-dark-hover:#103568;
	--rsm-dark-border:#153D70;
	--rsm-dark-border-soft:rgba(255,255,255,.055);
	--rsm-dark-primary:#15549A;
	--rsm-dark-primary-hover:#1C65B5;
	--rsm-dark-blue:#3D8BDB;
	--rsm-dark-blue-light:#6AA8E8;
	--rsm-dark-orange:#F77D25;
	--rsm-dark-orange-hover:#F26805;
	--rsm-dark-green:#35D995;
	--rsm-dark-red:#FF4D68;
	--rsm-dark-purple:#8B4DFF;
	--rsm-dark-text:#F1F6FF;
	--rsm-dark-text-soft:#D5E2F4;
	--rsm-dark-muted:#AFC3DF;
	--rsm-dark-muted-2:#8297B5;
	--rsm-dark-shadow:0 5px 18px rgba(0,8,28,.16);
	--bs-body-bg:#061B3D;
	--bs-body-color:#F1F6FF;
	--bs-border-color:#153D70;
	--bs-secondary-color:#AFC3DF;
	--bs-tertiary-bg:#0B2D5D;
	--bs-secondary-bg:#092653;
	--bs-emphasis-color:#F1F6FF;
	--bs-link-color:#6AA8E8;
	--bs-link-hover-color:#9CC8FF;
}

body.dark-theme,
body.dark-theme #page-top,
body.dark-theme .main-wrapper,
body.dark-theme .page-content {
	background:#061B3D;
	color:#F1F6FF;
}

/* Sidebar */
body.dark-theme .sidebar {
	background:#031536;
	color:#F1F6FF;
	border-right:1px solid rgba(255,255,255,.025);
	box-shadow:none;
}
body.dark-theme .sidebar-header { background:#031536; border-bottom-color:rgba(255,255,255,.035); }
body.dark-theme .sidebar-subtitle { color:#7189AA; }
body.dark-theme .sidebar-section-title { color:#7189AA; }
body.dark-theme .sidebar .nav-link { color:#AFC3DF; background:transparent; }
body.dark-theme .sidebar .nav-link:hover { background:#092653; color:#F1F6FF; }
body.dark-theme .sidebar .nav-link.active { background:#15549A; color:#fff; box-shadow:none; }
body.dark-theme .sidebar .nav-link > i:first-child { color:inherit; }
body.dark-theme .sidebar .nav-link .submenu-arrow { color:#7189AA; }
body.dark-theme .sidebar-dropdown:has(.submenu-link.active) > .submenu-toggle { background:#092653; color:#fff; }
body.dark-theme .sidebar-submenu { background:#061B3D; border-left-color:#153D70; }
body.dark-theme .sidebar-submenu .submenu-link { color:#8297B5; }
body.dark-theme .sidebar-submenu .submenu-link:hover { background:#0B2D5D; color:#F1F6FF; }
body.dark-theme .sidebar-submenu .submenu-link.active { background:#103568; color:#fff; }
body.dark-theme .sidebar-submenu .submenu-link i { color:#7189AA; }
body.dark-theme .sidebar-submenu .submenu-link.active i { color:#F77D25; }
body.dark-theme .sidebar-user,
body.dark-theme .sidebar-summary { background:#092653; border-color:#153D70; color:#F1F6FF; }
body.dark-theme .sidebar-user-info strong,
body.dark-theme .sidebar-summary-title { color:#F1F6FF; }
body.dark-theme .sidebar-user-info small,
body.dark-theme .sidebar-summary small { color:#8297B5; }
body.dark-theme .sidebar-user-avatar { background:#0B2D5D; color:#6AA8E8; }
body.dark-theme .sidebar-overlay { background:rgba(0,8,28,.68); }

/* Topbar */
body.dark-theme .topbar { background:#071F46; border-bottom:1px solid #153D70; box-shadow:none; }
body.dark-theme .topbar-inner { color:#F1F6FF; }
body.dark-theme .topbar-left > i { background:#0B2D5D; color:#6AA8E8; }
body.dark-theme .topbar-title { color:#F1F6FF; }
body.dark-theme .topbar-left > p { color:#8297B5; }
body.dark-theme .sidebar-toggle,
body.dark-theme .topbar-action { color:#8297B5; }
body.dark-theme .sidebar-toggle:hover,
body.dark-theme .topbar-action:hover { color:#F1F6FF; }
body.dark-theme .topbar .dropdown-toggle { color:#AFC3DF; }
body.dark-theme .topbar .dropdown-toggle:hover { color:#fff; }

/* Conteúdo / cabeçalhos */
body.dark-theme .page-title,
body.dark-theme .wrapper-title .head h2 { color:#F1F6FF; }
body.dark-theme .page-description,
body.dark-theme .wrapper-title .head p { color:#8297B5; }
body.dark-theme .wrapper-title { color:#F1F6FF; }
body.dark-theme .wrapper-actions .btn { box-shadow:none; }
body.dark-theme .wrapper-actions .btn-primary,
body.dark-theme .wrapper-actions .btn-search { background:#F77D25; border-color:#F77D25; color:#fff; }
body.dark-theme .wrapper-actions .btn-primary:hover,
body.dark-theme .wrapper-actions .btn-search:hover { background:#F26805; border-color:#F26805; color:#fff; }
body.dark-theme .wrapper-actions .btn-secondary,
body.dark-theme .wrapper-actions .btn-light { background:#0B2D5D; border-color:#28507F; color:#D5E2F4; }
body.dark-theme .wrapper-actions .btn-secondary:hover,
body.dark-theme .wrapper-actions .btn-light:hover { background:#103568; border-color:#3D6596; color:#fff; }

/* Cards / painéis */
body.dark-theme .card,
body.dark-theme .chart,
body.dark-theme .reports-card,
body.dark-theme .cop-report-card,
body.dark-theme .onu-card,
body.dark-theme .pon-card,
body.dark-theme .dashboard-card,
body.dark-theme .info-panel,
body.dark-theme .panel,
body.dark-theme .demands-panel,
body.dark-theme .modal-content,
body.dark-theme .reports-modal { background:#092653; color:#F1F6FF; border-color:#153D70; box-shadow:var(--rsm-dark-shadow); }
body.dark-theme .card-header,
body.dark-theme .card-footer,
body.dark-theme .chart .chart-head,
body.dark-theme .reports-card-header,
body.dark-theme .cop-report-header,
body.dark-theme .onu-card-header,
body.dark-theme .pon-card-header,
body.dark-theme .onu-card-footer,
body.dark-theme .pon-card-footer,
body.dark-theme .panel-head { background:#0B2D5D; color:#F1F6FF; border-color:#153D70; }
body.dark-theme .info-panel .panel-body { background:#092653; color:#D5E2F4; }
body.dark-theme .dashboard-card-content h3,
body.dark-theme .reports-title strong,
body.dark-theme .reports-technician-info strong,
body.dark-theme .cop-report-title strong,
body.dark-theme .cop-section-header strong,
body.dark-theme .onu-client-name,
body.dark-theme .pon-client-name,
body.dark-theme .chart .chart-head .title { color:#F1F6FF; }
body.dark-theme .reports-title span,
body.dark-theme .reports-technician-info span,
body.dark-theme .cop-report-title span,
body.dark-theme .cop-section-header span,
body.dark-theme .onu-client-login,
body.dark-theme .pon-client-login,
body.dark-theme .chart .chart-total span,
body.dark-theme .chart .info-label { color:#AFC3DF; }

/* Painel VLAN / Info Panel */
body.dark-theme .info-panel .panel-head { background:#0B2D5D; color:#F1F6FF; border-bottom-color:#153D70; }
body.dark-theme .info-panel .panel-body .panel-row { color:#D5E2F4; }
body.dark-theme .info-panel .panel-body .panel-row .panel-col.vlan p { color:#F1F6FF; }
body.dark-theme .info-panel .panel-body .panel-row .panel-col.vlan .sub-text { color:#8297B5; }
body.dark-theme .info-panel .panel-body .panel-row .panel-col-inline { background:#071F46; border:1px solid #153D70; }
body.dark-theme .info-panel .panel-body .panel-row .panel-col.vlan-total { color:#AFC3DF; }
body.dark-theme .info-panel .panel-body .panel-row .panel-progress { background:#19B86B; color:#fff; }
body.dark-theme .info-panel .panel-body .panel-row .panel-progress.red { background:#FF4D68; }
body.dark-theme .info-panel .panel-body .panel-row .panel-progress.blue { background:#15549A; }
body.dark-theme .info-panel .panel-bottom { color:#8297B5; }
body.dark-theme .info-panel .panel-body::-webkit-scrollbar-track { background:#071F46; }
body.dark-theme .info-panel .panel-body::-webkit-scrollbar-thumb { background:#28507F; border-color:#071F46; }
body.dark-theme .info-panel .panel-body::-webkit-scrollbar-thumb:hover { background:#3D6596; }
body.dark-theme .info-panel .panel-body { scrollbar-color:#28507F #071F46; }

/* Tabelas gerais */
body.dark-theme .table { --bs-table-bg:transparent; --bs-table-color:#D5E2F4; --bs-table-border-color:#153D70; color:#D5E2F4; }
body.dark-theme .table > :not(caption) > * > * { background-color:#092653; color:#D5E2F4; border-color:#153D70; }
body.dark-theme .table tr td,
body.dark-theme .table tr th { background:#092653; color:#D5E2F4; border-color:#153D70; }
body.dark-theme .table tr:nth-child(odd) td { background:#0B2D5D; color:#D5E2F4; border-color:#153D70; }
body.dark-theme .table tr:hover > td,
body.dark-theme .table tr:nth-child(odd):hover > td,
body.dark-theme .table tr:nth-child(even):hover > td { background:#103568 !important; color:#fff !important; border-color:#153D70 !important; }
body.dark-theme .table-responsive .table-default thead tr th { background:#15549A !important; border-color:#153D70 !important; color:#fff !important; }
body.dark-theme .table tr td small { color:#8DBBFA; }
body.dark-theme .table tr td a { color:#8DBBFA; }
body.dark-theme .table tr td a:hover { color:#C1DDFF; }
body.dark-theme .table tr td.table-secondary,
body.dark-theme .table tr td.table-light { background:#0B2D5D !important; color:#D5E2F4 !important; }
body.dark-theme .table .dropdown .dropdown-menu { background:#092653; border-color:#153D70; }
body.dark-theme .table .dropdown .dropdown-menu .dropdown-item { color:#D5E2F4; }
body.dark-theme .table .dropdown .dropdown-menu .dropdown-item:hover { background:#103568; color:#fff; }
body.dark-theme .sortable { color:#fff; }
body.dark-theme .sortable span { color:#F77D25; }

/* Tabela interna de painéis */
body.dark-theme .table.panel-table { background:transparent !important; color:#F1F6FF; --bs-table-color:#F1F6FF; --bs-table-border-color:transparent; }
body.dark-theme .table.panel-table > thead > tr > th { background:#15549A !important; border-bottom-color:rgba(255,255,255,.10) !important; color:#fff !important; }
body.dark-theme .table.panel-table > tbody > tr > td { background:transparent !important; border-bottom-color:rgba(255,255,255,.055) !important; color:#D5E2F4 !important; }
body.dark-theme .table.panel-table > tbody > tr:hover > td { background:#103568 !important; color:#fff !important; }

/* Forms */
body.dark-theme .form-control,
body.dark-theme .form-select,
body.dark-theme .input-group-text,
body.dark-theme .form-floating-fixed input,
body.dark-theme .form-floating-fixed select,
body.dark-theme .select2-container--bootstrap-5 .select2-selection,
body.dark-theme .select2-container--bootstrap-5 .select2-dropdown,
body.dark-theme .select2-container--bootstrap-5 .select2-search__field { background:#071F46; border-color:#28507F; color:#F1F6FF; }
body.dark-theme .form-control::placeholder,
body.dark-theme .select2-container--bootstrap-5 .select2-selection__placeholder { color:#7189AA; }
body.dark-theme .form-control:focus,
body.dark-theme .form-select:focus,
body.dark-theme .form-floating-fixed input:focus,
body.dark-theme .form-floating-fixed select:focus,
body.dark-theme .select2-container--bootstrap-5 .select2-selection:focus { background:#071F46; border-color:#3D8BDB; color:#fff; box-shadow:0 0 0 .2rem rgba(61,139,219,.14); }
body.dark-theme .form-floating-fixed label { color:#AFC3DF; background:transparent; }
body.dark-theme .form-check-input { background-color:#071F46; border-color:#52749D; }
body.dark-theme .form-check-input:checked { background-color:#2378CC; border-color:#2378CC; }
body.dark-theme .select2-container--bootstrap-5 .select2-results__option { background:#071F46; color:#D5E2F4; }
body.dark-theme .select2-container--bootstrap-5 .select2-results__option--highlighted { background:#15549A; color:#fff; }
body.dark-theme .select2-container--bootstrap-5 .select2-selection__choice { background:#0B2D5D; border-color:#28507F; color:#D5E2F4; }

/* Badges / blocos de status */
body.dark-theme .block-blue { background:#15549A !important; border-color:#15549A !important; }
body.dark-theme .block-green { background:#19B86B !important; border-color:#19B86B !important; }
body.dark-theme .block-red { background:#D93652 !important; border-color:#D93652 !important; }
body.dark-theme .badge-priority-high { background:rgba(255,77,104,.16); color:#FF7186; }
body.dark-theme .responsible-avatar { background:#0B2D5D; color:#8DBBFA; }
body.dark-theme .responsible-name,
body.dark-theme .deadline-date { color:#D5E2F4; }
body.dark-theme .deadline-remaining { color:#F77D25; }
body.dark-theme .action-menu { color:#8297B5; }
body.dark-theme .action-menu:hover { color:#F1F6FF; }

/* ONU / PON */
body.dark-theme .onu-card,
body.dark-theme .pon-card { overflow:hidden; }
body.dark-theme .onu-card:hover,
body.dark-theme .pon-card:hover { border-color:#28558A; box-shadow:0 7px 20px rgba(0,8,28,.22); }
body.dark-theme .onu-client-icon,
body.dark-theme .pon-client-icon,
body.dark-theme .onu-info > i,
body.dark-theme .pon-info > i { background:rgba(61,139,219,.16); color:#6AA8E8; }
body.dark-theme .onu-info,
body.dark-theme .pon-info,
body.dark-theme .onu-serial,
body.dark-theme .onu-ip,
body.dark-theme .pon-serial,
body.dark-theme .pon-ip { border-color:#153D70; color:#D5E2F4; }
body.dark-theme .onu-info strong,
body.dark-theme .pon-info strong,
body.dark-theme .onu-serial strong,
body.dark-theme .onu-ip strong,
body.dark-theme .pon-serial strong,
body.dark-theme .pon-ip strong { color:#F1F6FF; }
body.dark-theme .onu-info label,
body.dark-theme .pon-info label,
body.dark-theme .onu-serial label,
body.dark-theme .onu-ip label,
body.dark-theme .pon-serial label,
body.dark-theme .pon-ip label { color:#8297B5; }
body.dark-theme .pon-card .top { background:#15549A; }
body.dark-theme .pon-card.highlighted .top { background:#F77D25; }
body.dark-theme .pon-card .mid .signal .vlan small,
body.dark-theme .pon-card .mid .signal .rx small,
body.dark-theme .pon-card .mid .signal .tx small,
body.dark-theme .pon-card .mid .mac small,
body.dark-theme .pon-card .bottom small { color:#8297B5; }

/* Relatórios */
body.dark-theme .reports-technician,
body.dark-theme .reports-technician-body,
body.dark-theme .reports-technician-details,
body.dark-theme .reports-item,
body.dark-theme .reports-list-item { background:#092653; border-color:#153D70; color:#D5E2F4; }
body.dark-theme .reports-technician-header { background:#0B2D5D; border-color:#153D70; }
body.dark-theme .reports-technician-icon,
body.dark-theme .reports-icon { background:rgba(61,139,219,.16); color:#6AA8E8; }
body.dark-theme .reports-icon-warning { background:rgba(247,125,37,.15); color:#F77D25; }
body.dark-theme .reports-icon-success { background:rgba(25,212,123,.14); color:#35D995; }
body.dark-theme .reports-technician-total { background:#0B2D5D; color:#F1F6FF; }
body.dark-theme .reports-technician:hover,
body.dark-theme .reports-item:hover,
body.dark-theme .reports-list-item:hover { background:#103568; }
body.dark-theme .reports-card-footer { border-color:#153D70; color:#8297B5; }
body.dark-theme .reports-card-footer strong { color:#F1F6FF; }
body.dark-theme .reports-view-more { color:#6AA8E8; }
body.dark-theme .reports-modal-header { background:#0B2D5D; border-color:#153D70; }
body.dark-theme .reports-modal-body { background:#061B3D; }
body.dark-theme .reports-modal-icon { background:rgba(61,139,219,.16); color:#6AA8E8; }
body.dark-theme .reports-modal-title h5 { color:#F1F6FF; }
body.dark-theme .reports-modal-title span { color:#8297B5; }

/* COP */
body.dark-theme .cop-person-card,
body.dark-theme .cop-summary-item,
body.dark-theme .cop-person-card-total,
body.dark-theme .cop-summary-year { background:#0B2D5D; border-color:#153D70; color:#F1F6FF; }
body.dark-theme .cop-person-card-header,
body.dark-theme .cop-person-card-metric { border-color:#153D70; }
body.dark-theme .cop-person strong,
body.dark-theme .cop-person-card-metric strong,
body.dark-theme .cop-summary-item strong,
body.dark-theme .cop-person-card-total strong { color:#F1F6FF; }
body.dark-theme .cop-person span,
body.dark-theme .cop-person-card-metric span,
body.dark-theme .cop-summary-item span { color:#AFC3DF; }

/* Modais */
body.dark-theme .modal-backdrop.show { opacity:.72; }
body.dark-theme .modal-content { background:#092653; border-color:#153D70; }
body.dark-theme .modal .modal-header,
body.dark-theme .modal .modal-footer { background:#0B2D5D; border-color:#153D70; color:#F1F6FF; }
body.dark-theme .modal .modal-body { background:#092653; color:#D5E2F4; }
body.dark-theme .modal .modal-title,
body.dark-theme .modal .modal-body h1,
body.dark-theme .modal .modal-body h2,
body.dark-theme .modal .modal-body h3,
body.dark-theme .modal .modal-body h4,
body.dark-theme .modal .modal-body h5,
body.dark-theme .modal .modal-body h6 { color:#F1F6FF; }
body.dark-theme .modal .modal-header .btn-close { filter:invert(1) grayscale(100%) brightness(200%); }
body.dark-theme .modal-waiting .modal-dialog,
body.dark-theme .modal-window .modal-dialog,
body.dark-theme .modal-confirm .modal-dialog { background:#092653; color:#F1F6FF; border-color:#153D70; }
body.dark-theme .modal-waiting .modal-dialog .message h3,
body.dark-theme .modal-window .modal-dialog .message h3,
body.dark-theme .modal-confirm .modal-dialog .message h3 { color:#F1F6FF; }
body.dark-theme .modal-waiting .modal-dialog .message p,
body.dark-theme .modal-window .modal-dialog .message p,
body.dark-theme .modal-confirm .modal-dialog .message p { color:#AFC3DF; }
body.dark-theme .error-modal-content,
body.dark-theme .success-modal-content { background:#092653; border-color:#153D70; }
body.dark-theme .error-modal-dialog .message h3,
body.dark-theme .success-modal-dialog .message h3 { color:#F1F6FF; }
body.dark-theme .error-modal-dialog .message p,
body.dark-theme .success-modal-dialog .message p { color:#AFC3DF; }

/* Dropdowns / tooltip / paginação */
body.dark-theme .dropdown-menu,
body.dark-theme .popover,
body.dark-theme .tooltip-inner,
body.dark-theme .wrapper-actions .dropdown-menu { background:#092653; border-color:#153D70; color:#F1F6FF; box-shadow:0 8px 22px rgba(0,8,28,.22); }
body.dark-theme .dropdown-item,
body.dark-theme .wrapper-actions .dropdown-item { color:#D5E2F4; }
body.dark-theme .dropdown-item:hover,
body.dark-theme .dropdown-item:focus,
body.dark-theme .wrapper-actions .dropdown-item:hover,
body.dark-theme .wrapper-actions .dropdown-item:focus { background:#103568; color:#fff; }
body.dark-theme .pagination .page-link { background:transparent; border-color:transparent; color:#8297B5; }
body.dark-theme .pagination .page-link:hover { background:#0B2D5D; color:#fff; }
body.dark-theme .pagination .page-item.active .page-link { background:#15549A; border-color:#15549A; color:#fff; }
body.dark-theme .tooltip-item-info,
body.dark-theme .tooltip:has(.tooltip-info),
body.dark-theme .tooltip:has(.vlan-tooltip-info) { --bs-tooltip-bg:#092653; --bs-tooltip-color:#F1F6FF; }
body.dark-theme .tooltip-item-info .tooltip-inner,
body.dark-theme .tooltip:has(.tooltip-info) .tooltip-inner,
body.dark-theme .tooltip:has(.vlan-tooltip-info) .tooltip-inner { background:#092653; border-color:#153D70; color:#D5E2F4; box-shadow:0 8px 24px rgba(0,8,28,.24); }
body.dark-theme .tooltip-info p,
body.dark-theme .vlan-tooltip-info p,
body.dark-theme .tooltip-item-info .tooltip-inner p { border-bottom-color:#153D70; color:#D5E2F4; }
body.dark-theme .tooltip-info strong,
body.dark-theme .vlan-tooltip-info strong,
body.dark-theme .tooltip-item-info .tooltip-inner strong { color:#8297B5 !important; }
body.dark-theme .tooltip-item-info .tooltip-inner .title { color:#F1F6FF; }
body.dark-theme .tooltip-item-info .tooltip-inner .highlighted { color:#35D995; }
body.dark-theme .tooltip:has(.vlan-tooltip-info).bs-tooltip-top .tooltip-arrow::before { border-top-color:#092653; }
body.dark-theme .tooltip:has(.vlan-tooltip-info).bs-tooltip-bottom .tooltip-arrow::before { border-bottom-color:#092653; }
body.dark-theme .tooltip:has(.vlan-tooltip-info).bs-tooltip-start .tooltip-arrow::before { border-left-color:#092653; }
body.dark-theme .tooltip:has(.vlan-tooltip-info).bs-tooltip-end .tooltip-arrow::before { border-right-color:#092653; }

/* Links */
body.dark-theme a { color:#6AA8E8; }
body.dark-theme a:hover { color:#9CC8FF; }

/* Footer */
body.dark-theme .main-footer { background:#071F46; border-top-color:#153D70; color:#7189AA; }

/* Scrollbars */
body.dark-theme .table-responsive::-webkit-scrollbar-thumb,
body.dark-theme .wrapper-responsive::-webkit-scrollbar-thumb,
body.dark-theme .sidebar::-webkit-scrollbar-thumb { background:#28507F; }
body.dark-theme .table-responsive::-webkit-scrollbar-thumb:hover,
body.dark-theme .wrapper-responsive::-webkit-scrollbar-thumb:hover,
body.dark-theme .sidebar::-webkit-scrollbar-thumb:hover { background:#3D6596; }
body.dark-theme .table-responsive::-webkit-scrollbar-track,
body.dark-theme .wrapper-responsive::-webkit-scrollbar-track,
body.dark-theme .sidebar::-webkit-scrollbar-track { background:#071F46; }

/* Bootstrap — elementos neutros */
body.dark-theme .btn-light,
body.dark-theme .btn-outline-secondary { background:#0B2D5D; border-color:#28507F; color:#D5E2F4; }
body.dark-theme .btn-light:hover,
body.dark-theme .btn-outline-secondary:hover { background:#103568; border-color:#3D6596; color:#fff; }
body.dark-theme .text-muted { color:#8297B5 !important; }
body.dark-theme .bg-light { background:#0B2D5D !important; color:#D5E2F4; }
body.dark-theme .border { border-color:#153D70 !important; }


/* =========================================================
   RamosNET — Dark Theme / Base visual model
   Camada final de ajuste visual.
   O tema claro permanece intacto: todas as regras usam body.dark-theme.
   ========================================================= */

body.dark-theme {
	--rsm-dark-sidebar:#001235;
	--rsm-dark-bg:#001336;
	--rsm-dark-topbar:#011F4C;
	--rsm-dark-panel:#001D49;
	--rsm-dark-panel-inner:#082D68;
	--rsm-dark-hover:#103B73;
	--rsm-dark-border:#0B3A70;
	--rsm-dark-border-soft:rgba(116,177,235,.10);
	--rsm-dark-primary:#087FEF;
	--rsm-dark-primary-hover:#1592FF;
	--rsm-dark-blue:#3D9AF2;
	--rsm-dark-blue-light:#9ACBFF;
	--rsm-dark-orange:#F77D25;
	--rsm-dark-orange-hover:#F26805;
	--rsm-dark-green:#19D47B;
	--rsm-dark-red:#FF4D68;
	--rsm-dark-purple:#8B4DFF;
	--rsm-dark-text:#F1F6FF;
	--rsm-dark-text-soft:#D5E3F7;
	--rsm-dark-muted:#A8BFDE;
	--rsm-dark-muted-2:#7894B8;
	--rsm-dark-shadow:0 6px 20px rgba(0,7,25,.18);
	--bs-body-bg:#001336;
	--bs-body-color:#F1F6FF;
	--bs-border-color:#0B3A70;
	--bs-secondary-color:#A8BFDE;
	--bs-tertiary-bg:#082D68;
	--bs-secondary-bg:#001D49;
	--bs-emphasis-color:#F1F6FF;
	--bs-link-color:#9ACBFF;
	--bs-link-hover-color:#C7E3FF;
}

body.dark-theme,
body.dark-theme #page-top,
body.dark-theme .main-wrapper,
body.dark-theme .page-content {
	background:linear-gradient(180deg,#001336 0%,#00183D 52%,#001B43 100%);
	color:#F1F6FF;
}

/* Sidebar / topbar */
body.dark-theme .sidebar,
body.dark-theme .sidebar-header { background:#001235; }
body.dark-theme .sidebar { border-right:1px solid rgba(58,139,219,.20); }
body.dark-theme .sidebar-section-title,
body.dark-theme .sidebar-subtitle { color:#4D8AC7; }
body.dark-theme .sidebar .nav-link { color:#D5E3F7; }
body.dark-theme .sidebar .nav-link:hover { background:#082D68; color:#fff; }
body.dark-theme .sidebar .nav-link.active { background:linear-gradient(90deg,#087FEF,#075FB7); color:#fff; box-shadow:0 5px 14px rgba(0,127,239,.20); }
body.dark-theme .sidebar-submenu { background:#00183D; border-left-color:#0B3A70; }
body.dark-theme .sidebar-submenu .submenu-link { color:#A8BFDE; }
body.dark-theme .sidebar-submenu .submenu-link:hover { background:#082D68; color:#fff; }
body.dark-theme .sidebar-submenu .submenu-link.active { background:#075BAA; color:#fff; }
body.dark-theme .sidebar-submenu .submenu-link.active i { color:#F77D25; }
body.dark-theme .sidebar-dropdown:has(.submenu-link.active) > .submenu-toggle { background:#082D68; color:#fff; }
body.dark-theme .sidebar-user,
body.dark-theme .sidebar-summary { background:#001D49; border-color:#0B3A70; }
body.dark-theme .sidebar-user-avatar { background:#082D68; color:#9ACBFF; }

body.dark-theme .topbar { background:linear-gradient(180deg,#011F4C 0%,#011D47 100%); border-bottom:1px solid #0B3A70; }
body.dark-theme .topbar-left > i { background:#082D68; color:#9ACBFF; }
body.dark-theme .sidebar-toggle,
body.dark-theme .topbar-action { color:#A8BFDE; }
body.dark-theme .sidebar-toggle:hover,
body.dark-theme .topbar-action:hover { color:#fff; }

/* Página / ações */
body.dark-theme .page-title,
body.dark-theme .wrapper-title .head h2 { color:#F1F6FF; }
body.dark-theme .page-description,
body.dark-theme .wrapper-title .head p { color:#9AB5D6; }
body.dark-theme .wrapper-actions .btn-primary,
body.dark-theme .wrapper-actions .btn-search { background:#F77D25; border-color:#F77D25; color:#fff; box-shadow:0 4px 12px rgba(247,125,37,.16); }
body.dark-theme .wrapper-actions .btn-primary:hover,
body.dark-theme .wrapper-actions .btn-search:hover { background:#F26805; border-color:#F26805; }
body.dark-theme .wrapper-actions .btn-secondary,
body.dark-theme .wrapper-actions .btn-light { background:#082D68; border-color:#174B82; color:#DDEBFA; }
body.dark-theme .wrapper-actions .btn-secondary:hover,
body.dark-theme .wrapper-actions .btn-light:hover { background:#103B73; border-color:#28649C; }

/* Cards e painéis — separação igual ao modelo */
body.dark-theme .card,
body.dark-theme .chart,
body.dark-theme .reports-card,
body.dark-theme .cop-report-card,
body.dark-theme .onu-card,
body.dark-theme .pon-card,
body.dark-theme .dashboard-card,
body.dark-theme .info-panel,
body.dark-theme .panel,
body.dark-theme .demands-panel,
body.dark-theme .modal-content,
body.dark-theme .reports-modal {
	background:linear-gradient(180deg,#001E49 0%,#001B43 100%);
	border-color:#0B3A70;
	box-shadow:0 6px 20px rgba(0,7,25,.18);
	color:#F1F6FF;
}
body.dark-theme .card-header,
body.dark-theme .card-footer,
body.dark-theme .chart .chart-head,
body.dark-theme .reports-card-header,
body.dark-theme .cop-report-header,
body.dark-theme .onu-card-header,
body.dark-theme .pon-card-header,
body.dark-theme .panel-head,
body.dark-theme .info-panel .panel-head {
	background:#082D68;
	border-color:#0B3A70;
	color:#F1F6FF;
}
body.dark-theme .info-panel .panel-body { background:#00193F; color:#D5E3F7; }
body.dark-theme .info-panel .panel-bottom { background:#00183D; }

/* Cards de estatística */
body.dark-theme .stats-card { background:linear-gradient(180deg,#001E49 0%,#001A40 100%); border-color:#0B3A70; }
body.dark-theme .stats-card::before { background:#087FEF; }
body.dark-theme .stats-card.total::before { background:#087FEF; }
body.dark-theme .stats-card.pending::before { background:#FF4D68; }
body.dark-theme .stats-card.progress::before { background:#19D47B; }
body.dark-theme .stats-card.completed::before { background:#8B4DFF; }
body.dark-theme .stats-label { color:#A8BFDE; }
body.dark-theme .stats-number { color:#F1F6FF; }
body.dark-theme .stats-description { color:#8EABD0; }
body.dark-theme .stats-icon { background:#082D68; color:#9ACBFF; }
body.dark-theme .stats-card.pending .stats-icon { background:rgba(255,77,104,.17); color:#FF7185; }
body.dark-theme .stats-card.progress .stats-icon { background:rgba(25,212,123,.17); color:#35E39A; }
body.dark-theme .stats-card.completed .stats-icon { background:rgba(139,77,255,.18); color:#B28AFF; }

/* VLAN / barras */
body.dark-theme .info-panel .panel-body .panel-row .panel-col-inline { background:#00183D; border-color:#0B3A70; }
body.dark-theme .info-panel .panel-body .panel-row .panel-progress { background:#19D47B; }
body.dark-theme .info-panel .panel-body .panel-row .panel-progress.red { background:#FF4D68; }
body.dark-theme .info-panel .panel-body .panel-row .panel-progress.blue { background:#087FEF; }
body.dark-theme .info-panel .panel-body::-webkit-scrollbar-track { background:#001336; }
body.dark-theme .info-panel .panel-body::-webkit-scrollbar-thumb { background:#174B82; border-color:#001336; }
body.dark-theme .info-panel .panel-body::-webkit-scrollbar-thumb:hover { background:#28649C; }
body.dark-theme .info-panel .panel-body { scrollbar-color:#174B82 #001336; }

/* Tabelas */
body.dark-theme .table { --bs-table-bg:transparent; --bs-table-color:#D5E3F7; --bs-table-border-color:#0B3A70; color:#D5E3F7; }
body.dark-theme .table > :not(caption) > * > * { background-color:#001D49; color:#D5E3F7; border-color:#0B3A70; }
body.dark-theme .table tr td,
body.dark-theme .table tr th { background:#001D49; color:#D5E3F7; border-color:#0B3A70; }
body.dark-theme .table tr:nth-child(odd) td { background:#082650; color:#D5E3F7; }
body.dark-theme .table tr:hover > td,
body.dark-theme .table tr:nth-child(odd):hover > td,
body.dark-theme .table tr:nth-child(even):hover > td { background:#103B73 !important; color:#fff !important; }
body.dark-theme .table-responsive .table-default thead tr th { background:#082D68 !important; border-color:#0B3A70 !important; color:#fff !important; }
body.dark-theme .table.panel-table > thead > tr > th { background:#082D68 !important; }
body.dark-theme .table.panel-table > tbody > tr > td { background:transparent !important; border-bottom-color:rgba(128,184,235,.08) !important; }
body.dark-theme .table.panel-table > tbody > tr:hover > td { background:#103B73 !important; }

/* Forms */
body.dark-theme .form-control,
body.dark-theme .form-select,
body.dark-theme .input-group-text,
body.dark-theme .form-floating-fixed input,
body.dark-theme .form-floating-fixed select,
body.dark-theme .select2-container--bootstrap-5 .select2-selection,
body.dark-theme .select2-container--bootstrap-5 .select2-dropdown,
body.dark-theme .select2-container--bootstrap-5 .select2-search__field { background:#00183D; border-color:#174B82; color:#F1F6FF; }
body.dark-theme .form-control:focus,
body.dark-theme .form-select:focus,
body.dark-theme .form-floating-fixed input:focus,
body.dark-theme .form-floating-fixed select:focus,
body.dark-theme .select2-container--bootstrap-5 .select2-selection:focus { background:#00183D; border-color:#087FEF; box-shadow:0 0 0 .2rem rgba(8,127,239,.16); }
body.dark-theme .select2-container--bootstrap-5 .select2-results__option { background:#00183D; color:#D5E3F7; }
body.dark-theme .select2-container--bootstrap-5 .select2-results__option--highlighted { background:#087FEF; color:#fff; }

/* ONU / PON */
body.dark-theme .onu-card,
body.dark-theme .pon-card { background:linear-gradient(180deg,#001E49 0%,#001A40 100%); }
body.dark-theme .onu-card:hover,
body.dark-theme .pon-card:hover { border-color:#1761A0; box-shadow:0 8px 22px rgba(0,7,25,.24); }
body.dark-theme .onu-client-icon,
body.dark-theme .pon-client-icon,
body.dark-theme .onu-info > i,
body.dark-theme .pon-info > i { background:rgba(8,127,239,.16); color:#9ACBFF; }
body.dark-theme .pon-card .top { background:#082D68; }
body.dark-theme .pon-card.highlighted .top { background:#F77D25; }

/* Relatórios / COP */
body.dark-theme .reports-technician,
body.dark-theme .reports-technician-body,
body.dark-theme .reports-technician-details,
body.dark-theme .reports-item,
body.dark-theme .reports-list-item { background:#001D49; border-color:#0B3A70; }
body.dark-theme .reports-technician-header,
body.dark-theme .reports-technician-total { background:#082D68; border-color:#0B3A70; }
body.dark-theme .reports-technician-icon,
body.dark-theme .reports-icon { background:rgba(8,127,239,.16); color:#9ACBFF; }
body.dark-theme .reports-icon-warning { background:rgba(247,125,37,.15); color:#F77D25; }
body.dark-theme .reports-icon-success { background:rgba(25,212,123,.14); color:#35D995; }
body.dark-theme .reports-technician:hover,
body.dark-theme .reports-item:hover,
body.dark-theme .reports-list-item:hover { background:#103B73; }
body.dark-theme .cop-person-card,
body.dark-theme .cop-summary-item,
body.dark-theme .cop-person-card-total,
body.dark-theme .cop-summary-year { background:#082D68; border-color:#0B3A70; }

/* Modais / dropdowns */
body.dark-theme .modal-backdrop.show { opacity:.76; }
body.dark-theme .modal .modal-header,
body.dark-theme .modal .modal-footer { background:#082D68; border-color:#0B3A70; }
body.dark-theme .modal .modal-body { background:#001D49; }
body.dark-theme .dropdown-menu,
body.dark-theme .popover,
body.dark-theme .tooltip-inner,
body.dark-theme .wrapper-actions .dropdown-menu { background:#001D49; border-color:#0B3A70; }
body.dark-theme .dropdown-item,
body.dark-theme .wrapper-actions .dropdown-item { color:#D5E3F7; }
body.dark-theme .dropdown-item:hover,
body.dark-theme .dropdown-item:focus,
body.dark-theme .wrapper-actions .dropdown-item:hover,
body.dark-theme .wrapper-actions .dropdown-item:focus { background:#103B73; color:#fff; }

/* Scrollbars */
body.dark-theme .table-responsive::-webkit-scrollbar-thumb,
body.dark-theme .wrapper-responsive::-webkit-scrollbar-thumb,
body.dark-theme .sidebar::-webkit-scrollbar-thumb { background:#174B82; }
body.dark-theme .table-responsive::-webkit-scrollbar-thumb:hover,
body.dark-theme .wrapper-responsive::-webkit-scrollbar-thumb:hover,
body.dark-theme .sidebar::-webkit-scrollbar-thumb:hover { background:#28649C; }
body.dark-theme .table-responsive::-webkit-scrollbar-track,
body.dark-theme .wrapper-responsive::-webkit-scrollbar-track,
body.dark-theme .sidebar::-webkit-scrollbar-track { background:#001336; }

/* =========================================================
   Ajuste fino — fidelidade à referência visual RamosNET
   Esta camada vem por último para neutralizar regras anteriores.
   ========================================================= */
body.dark-theme,
body.dark-theme #page-top,
body.dark-theme .main-wrapper,
body.dark-theme .page-content { background:#061B3D !important; color:#F1F6FF; }
body.dark-theme .sidebar,
body.dark-theme .sidebar-header { background:#031536 !important; }
body.dark-theme .topbar { background:#071F46 !important; border-color:rgba(21,61,112,.72) !important; }
body.dark-theme .card,
body.dark-theme .chart,
body.dark-theme .reports-card,
body.dark-theme .cop-report-card,
body.dark-theme .onu-card,
body.dark-theme .pon-card,
body.dark-theme .dashboard-card,
body.dark-theme .info-panel,
body.dark-theme .panel,
body.dark-theme .demands-panel,
body.dark-theme .modal-content,
body.dark-theme .reports-modal,
body.dark-theme .stats-card { background:#092653 !important; border-color:#103568 !important; box-shadow:0 4px 14px rgba(0,8,28,.12) !important; }
body.dark-theme .card-header,
body.dark-theme .card-footer,
body.dark-theme .chart .chart-head,
body.dark-theme .reports-card-header,
body.dark-theme .cop-report-header,
body.dark-theme .onu-card-header,
body.dark-theme .pon-card-header,
body.dark-theme .panel-head,
body.dark-theme .info-panel .panel-head { background:#0B2D5D !important; border-color:#153D70 !important; color:#F1F6FF !important; }
body.dark-theme .info-panel .panel-body,
body.dark-theme .modal .modal-body { background:#092653 !important; color:#D5E2F4; }
body.dark-theme .info-panel .panel-row .panel-col-inline { background:#061B3D !important; border-color:#153D70 !important; }
body.dark-theme .info-panel .panel-row .panel-progress { background:#19D47B !important; }
body.dark-theme .info-panel .panel-row .panel-progress.red { background:#FF4D68 !important; }
body.dark-theme .info-panel .panel-row .panel-progress.blue { background:#087FEF !important; }
body.dark-theme .stats-card::before { background:#087FEF !important; }
body.dark-theme .stats-card.total::before { background:#087FEF !important; }
body.dark-theme .stats-card.pending::before { background:#FF4D68 !important; }
body.dark-theme .stats-card.progress::before { background:#19D47B !important; }
body.dark-theme .stats-card.completed::before { background:#8B4DFF !important; }
/* Ícones circulares: fundos coloridos e escuros, nunca círculos brancos */
body.dark-theme .stats-icon,
body.dark-theme .stat-icon,
body.dark-theme .dashboard-stat-icon,
body.dark-theme .card-icon,
body.dark-theme .metric-icon,
body.dark-theme .summary-icon { background:rgba(8,127,239,.24) !important; color:#8FC5FF !important; border-color:transparent !important; box-shadow:none !important; }
body.dark-theme .stats-card.total .stats-icon,
body.dark-theme .stats-card.primary .stats-icon,
body.dark-theme .stats-card.blue .stats-icon,
body.dark-theme .stat-icon.blue,
body.dark-theme .dashboard-stat-icon.blue { background:rgba(8,127,239,.28) !important; color:#8FC5FF !important; }
body.dark-theme .stats-card.pending .stats-icon,
body.dark-theme .stats-card.danger .stats-icon,
body.dark-theme .stats-card.red .stats-icon,
body.dark-theme .stat-icon.red,
body.dark-theme .dashboard-stat-icon.red { background:rgba(255,77,104,.22) !important; color:#FF7185 !important; }
body.dark-theme .stats-card.progress .stats-icon,
body.dark-theme .stats-card.success .stats-icon,
body.dark-theme .stats-card.green .stats-icon,
body.dark-theme .stat-icon.green,
body.dark-theme .dashboard-stat-icon.green { background:rgba(25,212,123,.22) !important; color:#35D995 !important; }
body.dark-theme .stats-card.completed .stats-icon,
body.dark-theme .stats-card.purple .stats-icon,
body.dark-theme .stat-icon.purple,
body.dark-theme .dashboard-stat-icon.purple { background:rgba(139,77,255,.24) !important; color:#B28AFF !important; }
body.dark-theme .stats-card .stats-icon i,
body.dark-theme .stats-card .stats-icon svg,
body.dark-theme .stat-icon i,
body.dark-theme .dashboard-stat-icon i { color:inherit !important; }
body.dark-theme .table > :not(caption) > * > *,
body.dark-theme .table tr td,
body.dark-theme .table tr th { background-color:transparent; border-color:rgba(21,61,112,.65); color:#D5E2F4; }
body.dark-theme .table tr:nth-child(odd) td { background:#0B2D5D !important; }
body.dark-theme .table tr:hover > td,
body.dark-theme .table tr:nth-child(odd):hover > td,
body.dark-theme .table tr:nth-child(even):hover > td { background:#103568 !important; color:#F1F6FF !important; }
body.dark-theme .table-responsive .table-default thead tr th,
body.dark-theme .table.panel-table > thead > tr > th { background:#0B2D5D !important; border-color:#153D70 !important; color:#F1F6FF !important; }
body.dark-theme .table.panel-table > tbody > tr > td { background:transparent !important; border-bottom-color:rgba(21,61,112,.48) !important; color:#D5E2F4 !important; }
body.dark-theme .form-control,
body.dark-theme .form-select,
body.dark-theme .input-group-text,
body.dark-theme .form-floating-fixed input,
body.dark-theme .form-floating-fixed select,
body.dark-theme .select2-container--bootstrap-5 .select2-selection,
body.dark-theme .select2-container--bootstrap-5 .select2-dropdown,
body.dark-theme .select2-container--bootstrap-5 .select2-search__field { background:#061B3D !important; border-color:#153D70 !important; color:#F1F6FF !important; }
body.dark-theme .form-control:focus,
body.dark-theme .form-select:focus,
body.dark-theme .form-floating-fixed input:focus,
body.dark-theme .form-floating-fixed select:focus { border-color:#087FEF !important; box-shadow:0 0 0 .2rem rgba(8,127,239,.16) !important; }
body.dark-theme .onu-client-icon,
body.dark-theme .pon-client-icon,
body.dark-theme .onu-info > i,
body.dark-theme .pon-info > i,
body.dark-theme .reports-technician-icon,
body.dark-theme .reports-icon { background:rgba(8,127,239,.20) !important; color:#8FC5FF !important; }
body.dark-theme .pon-card .top { background:#0B2D5D !important; }
body.dark-theme .pon-card.highlighted .top { background:#F77D25 !important; }

/* =========================================================
   Correções de componentes reais do tema (VLAN / Stat Cards)
   Esta seção sobrescreve os estilos claros com seletores específicos.
   ========================================================= */
body.dark-theme .stat-card {
	background:linear-gradient(145deg,#092653 0%,#072149 100%) !important;
	border:1px solid #153D70 !important;
	color:#F1F6FF !important;
	box-shadow:0 4px 14px rgba(0,8,28,.16) !important;
}
body.dark-theme .stat-card-blue::after { background:#087FEF !important; }
body.dark-theme .stat-card-green::after { background:#00C98A !important; }
body.dark-theme .stat-card-red::after { background:#FF405D !important; }
body.dark-theme .stat-card-purple::after { background:#9147FF !important; }
body.dark-theme .stat-card .stat-icon { border:0 !important; box-shadow:none !important; }
body.dark-theme .stat-card-blue .stat-icon { background:rgba(8,127,239,.28) !important; color:#79BDFF !important; }
body.dark-theme .stat-card-green .stat-icon { background:rgba(0,201,138,.22) !important; color:#39E6AD !important; }
body.dark-theme .stat-card-red .stat-icon { background:rgba(255,64,93,.22) !important; color:#FF6A7E !important; }
body.dark-theme .stat-card-purple .stat-icon { background:rgba(145,71,255,.24) !important; color:#BD91FF !important; }
body.dark-theme .stat-card .stat-title { color:#B8CBE5 !important; }
body.dark-theme .stat-card h4 { color:#F1F6FF !important; }
body.dark-theme .stat-card-blue .stat-info { color:#22B9FF !important; }
body.dark-theme .stat-card-green .stat-info { color:#00D69A !important; }
body.dark-theme .stat-card-red .stat-info { color:#FF405D !important; }
body.dark-theme .stat-card-purple .stat-info { color:#B17AFF !important; }

/* Tabela de dados: neutraliza background branco e cores inline/Bootstrap */
body.dark-theme .table-responsive table.table,
body.dark-theme .table-responsive table.table-default,
body.dark-theme table.table-default,
body.dark-theme .table-responsive .table-default {
	--bs-table-bg:#092653 !important;
	--bs-table-color:#D5E2F4 !important;
	--bs-table-striped-bg:#0B2D5D !important;
	--bs-table-striped-color:#F1F6FF !important;
	--bs-table-accent-bg:transparent !important;
	background:#092653 !important;
	color:#D5E2F4 !important;
	border-color:#153D70 !important;
}
body.dark-theme .table-responsive .table-default > thead > tr > th,
body.dark-theme .table-responsive .table-default > thead > tr > td,
body.dark-theme table.table-default > thead > tr > th {
	background:#0B2D5D !important;
	color:#F1F6FF !important;
	border-color:#153D70 !important;
}
body.dark-theme .table-responsive .table-default > tbody > tr > th,
body.dark-theme .table-responsive .table-default > tbody > tr > td,
body.dark-theme table.table-default > tbody > tr > th,
body.dark-theme table.table-default > tbody > tr > td,
body.dark-theme .table-responsive table.table > tbody > tr > th,
body.dark-theme .table-responsive table.table > tbody > tr > td {
	background:#092653 !important;
	background-color:#092653 !important;
	color:#D5E2F4 !important;
	border-color:#153D70 !important;
	box-shadow:none !important;
}
body.dark-theme .table-responsive .table-default > tbody > tr:nth-child(odd) > td,
body.dark-theme .table-responsive .table-default > tbody > tr:nth-child(odd) > th,
body.dark-theme table.table-default > tbody > tr:nth-child(odd) > td,
body.dark-theme table.table-default > tbody > tr:nth-child(odd) > th {
	background:#0B2D5D !important;
	background-color:#0B2D5D !important;
	color:#F1F6FF !important;
}
body.dark-theme .table-responsive .table-default > tbody > tr:hover > td,
body.dark-theme .table-responsive .table-default > tbody > tr:hover > th,
body.dark-theme table.table-default > tbody > tr:hover > td,
body.dark-theme table.table-default > tbody > tr:hover > th {
	background:#103568 !important;
	background-color:#103568 !important;
	color:#FFFFFF !important;
}
body.dark-theme .table-responsive .table-default td a,
body.dark-theme .table-responsive .table-default td small,
body.dark-theme .table-responsive .table-default td span { color:#8FC5FF !important; }
body.dark-theme .table-responsive .table-default td,
body.dark-theme .table-responsive .table-default th { text-shadow:none !important; }

/* Textos de painéis e gráficos devem manter contraste sobre azul escuro */
body.dark-theme .info-panel .panel-head h1,
body.dark-theme .info-panel .panel-head h2,
body.dark-theme .info-panel .panel-head h3,
body.dark-theme .info-panel .panel-head h4,
body.dark-theme .info-panel .panel-head strong,
body.dark-theme .chart .chart-head,
body.dark-theme .chart .chart-head * { color:#F1F6FF !important; }
body.dark-theme .chart .chart-total,
body.dark-theme .chart .chart-total strong,
body.dark-theme .chart .chart-total span,
body.dark-theme .chart .info-label,
body.dark-theme .chart .info-value { color:#D5E2F4 !important; }

/* Ajuste fino: lista de VLAN e rodapé do painel principal */
body.dark-theme .info-panel,
body.dark-theme .info-panel .panel-body,
body.dark-theme .info-panel .panel-row,
body.dark-theme .info-panel .panel-col,
body.dark-theme .info-panel .panel-footer,
body.dark-theme .info-panel .panel-bottom {
	background-color:#092653 !important;
	color:#F1F6FF !important;
}
body.dark-theme .info-panel .panel-row .panel-col-inline {
	background:#0B2D5D !important;
	border-color:#153D70 !important;
}
body.dark-theme .info-panel .panel-row .panel-col.vlan-total,
body.dark-theme .info-panel .panel-row .panel-col.vlan-total * { color:#D5E2F4 !important; }

/* Tabela da lista VLAN: sobrescreve estilos Bootstrap, alternância e estilos inline */
body.dark-theme table,
body.dark-theme table.table,
body.dark-theme table.table-default,
body.dark-theme .table-responsive table,
body.dark-theme .table-responsive .table,
body.dark-theme .table-responsive .table-default {
	--bs-table-bg:#092653 !important;
	--bs-table-color:#D5E2F4 !important;
	--bs-table-striped-bg:#0B2D5D !important;
	--bs-table-striped-color:#F1F6FF !important;
	--bs-table-hover-bg:#103568 !important;
	--bs-table-hover-color:#FFFFFF !important;
	background:#092653 !important;
	background-color:#092653 !important;
	color:#D5E2F4 !important;
	border-color:#153D70 !important;
}
body.dark-theme table thead,
body.dark-theme table thead tr,
body.dark-theme table thead th,
body.dark-theme table thead td,
body.dark-theme table.table thead th,
body.dark-theme .table-responsive table thead th {
	background:#0B2D5D !important;
	background-color:#0B2D5D !important;
	color:#F1F6FF !important;
	border-color:#153D70 !important;
}
body.dark-theme table tbody tr,
body.dark-theme table tbody td,
body.dark-theme table tbody th,
body.dark-theme table.table tbody tr > *,
body.dark-theme .table-responsive table tbody tr > * {
	background:#092653 !important;
	background-color:#092653 !important;
	color:#D5E2F4 !important;
	border-color:rgba(21,61,112,.85) !important;
	box-shadow:none !important;
}
body.dark-theme table tbody tr:nth-child(even) > *,
body.dark-theme table.table-striped tbody tr:nth-of-type(even) > * {
	background:#0B2D5D !important;
	background-color:#0B2D5D !important;
	color:#F1F6FF !important;
}
body.dark-theme table tbody tr:hover > *,
body.dark-theme table.table-hover tbody tr:hover > * {
	background:#103568 !important;
	background-color:#103568 !important;
	color:#FFFFFF !important;
}
body.dark-theme table th,
body.dark-theme table td { text-shadow:none !important; }
body.dark-theme table td a,
body.dark-theme table td small,
body.dark-theme table td span { color:#8FC5FF !important; }

/* Ajuste final da Lista de VLAN: manter a mesma linguagem visual dos painéis */
body.dark-theme .table-responsive,
body.dark-theme .table-wrapper,
body.dark-theme .vlan-list,
body.dark-theme .vlan-list-wrapper,
body.dark-theme .vlan-table-wrapper,
body.dark-theme .table-container {
	background:#092653 !important;
	background-color:#092653 !important;
	border:1px solid #153D70 !important;
	border-radius:8px;
	box-shadow:none !important;
}
body.dark-theme .table-responsive {
	border-color:#153D70 !important;
}
body.dark-theme .table-responsive > table,
body.dark-theme .table-responsive table.table,
body.dark-theme .table-responsive table.table-default,
body.dark-theme table.table-default {
	background:#092653 !important;
	background-color:#092653 !important;
	border:0 !important;
	border-collapse:separate !important;
	border-spacing:0 !important;
	--bs-table-bg:#092653;
	--bs-table-color:#D5E2F4;
	--bs-table-striped-bg:#0B2D5D;
	--bs-table-striped-color:#F1F6FF;
	--bs-table-hover-bg:#103568;
	--bs-table-hover-color:#FFFFFF;
}
body.dark-theme .table-responsive table.table-default thead,
body.dark-theme .table-responsive table.table-default thead tr,
body.dark-theme .table-responsive table.table-default thead th,
body.dark-theme table.table-default thead th {
	background:#103568 !important;
	background-color:#103568 !important;
	color:#F1F6FF !important;
	border:0 !important;
	border-bottom:1px solid #1A477C !important;
}
body.dark-theme .table-responsive table.table-default tbody tr,
body.dark-theme .table-responsive table.table-default tbody td,
body.dark-theme .table-responsive table.table-default tbody th,
body.dark-theme table.table-default tbody tr,
body.dark-theme table.table-default tbody td,
body.dark-theme table.table-default tbody th {
	background:#092653 !important;
	background-color:#092653 !important;
	color:#D5E2F4 !important;
	border:0 !important;
	border-bottom:1px solid rgba(21,61,112,.72) !important;
	box-shadow:none !important;
}
body.dark-theme .table-responsive table.table-default tbody tr:nth-child(even) > *,
body.dark-theme table.table-default tbody tr:nth-child(even) > * {
	background:#0B2D5D !important;
	background-color:#0B2D5D !important;
	color:#F1F6FF !important;
}
body.dark-theme .table-responsive table.table-default tbody tr:hover > *,
body.dark-theme table.table-default tbody tr:hover > * {
	background:#103568 !important;
	background-color:#103568 !important;
	color:#FFFFFF !important;
}
body.dark-theme .table-responsive table.table-default td a,
body.dark-theme .table-responsive table.table-default td small,
body.dark-theme .table-responsive table.table-default td span {
	color:#8FC5FF !important;
}
body.dark-theme .table-responsive table.table-default th:first-child,
body.dark-theme .table-responsive table.table-default td:first-child { border-left:0 !important; }
body.dark-theme .table-responsive table.table-default th:last-child,
body.dark-theme .table-responsive table.table-default td:last-child { border-right:0 !important; }

/* =========================================================
   Correção específica da Lista de VLAN / Data Table Frame
   O fundo branco vinha de .data-table-frame, .data-panel-body
   e .table.data-table no CSS claro original.
   ========================================================= */
body.dark-theme .data-table-frame,
body.dark-theme .data-panel,
body.dark-theme .data-panel-body,
body.dark-theme .data-panel-scroll,
body.dark-theme .data-table-frame .table-responsive {
	background:#092653 !important;
	background-color:#092653 !important;
	border-color:#153D70 !important;
	box-shadow:none !important;
}
body.dark-theme .data-table-frame {
	border:1px solid #153D70 !important;
	border-radius:8px !important;
	overflow:hidden;
}
body.dark-theme .data-table-frame .table-responsive {
	margin:0 !important;
	padding:0 !important;
	border:0 !important;
	border-radius:0 !important;
}
body.dark-theme .data-table-frame table.data-table,
body.dark-theme table.table.data-table,
body.dark-theme .data-table-frame .table.data-table {
	width:100%;
	margin:0 !important;
	background:#092653 !important;
	background-color:#092653 !important;
	color:#D5E2F4 !important;
	border:0 !important;
	border-collapse:separate !important;
	border-spacing:0 !important;
	--bs-table-bg:#092653 !important;
	--bs-table-color:#D5E2F4 !important;
	--bs-table-striped-bg:#0B2D5D !important;
	--bs-table-striped-color:#F1F6FF !important;
	--bs-table-hover-bg:#103568 !important;
	--bs-table-hover-color:#FFFFFF !important;
}
body.dark-theme .data-table-frame .table.data-table thead,
body.dark-theme .data-table-frame .table.data-table thead tr,
body.dark-theme .data-table-frame .table.data-table thead th,
body.dark-theme .data-table-frame .table.data-table thead td {
	background:#103568 !important;
	background-color:#103568 !important;
	color:#F1F6FF !important;
	border:0 !important;
	border-bottom:1px solid #153D70 !important;
}
body.dark-theme .data-table-frame .table.data-table tbody tr,
body.dark-theme .data-table-frame .table.data-table tbody td,
body.dark-theme .data-table-frame .table.data-table tbody th {
	background:#092653 !important;
	background-color:#092653 !important;
	color:#D5E2F4 !important;
	border:0 !important;
	border-bottom:1px solid rgba(21,61,112,.72) !important;
	box-shadow:none !important;
}
body.dark-theme .data-table-frame .table.data-table tbody tr:nth-child(even) > *,
body.dark-theme .data-table-frame .table.data-table.table-striped tbody tr:nth-of-type(even) > * {
	background:#0B2D5D !important;
	background-color:#0B2D5D !important;
	color:#F1F6FF !important;
}
body.dark-theme .data-table-frame .table.data-table tbody tr:hover > *,
body.dark-theme .data-table-frame .table.data-table.table-hover tbody tr:hover > * {
	background:#103568 !important;
	background-color:#103568 !important;
	color:#FFFFFF !important;
}
body.dark-theme .data-table-frame .table.data-table td a,
body.dark-theme .data-table-frame .table.data-table td small,
body.dark-theme .data-table-frame .table.data-table td span {
	color:#8FC5FF !important;
}
body.dark-theme .data-table-frame .table.data-table th,
body.dark-theme .data-table-frame .table.data-table td {
	text-shadow:none !important;
}
body.dark-theme .data-table-frame .table.data-table thead th:first-child,
body.dark-theme .data-table-frame .table.data-table tbody td:first-child { border-left:0 !important; }
body.dark-theme .data-table-frame .table.data-table thead th:last-child,
body.dark-theme .data-table-frame .table.data-table tbody td:last-child { border-right:0 !important; }
body.dark-theme .data-panel-body { padding:10px; }
body.dark-theme .data-panel-scroll::-webkit-scrollbar-track,
body.dark-theme .data-table-frame .table-responsive::-webkit-scrollbar-track,
body.dark-theme .data-table-frame .table-responsive::-webkit-scrollbar-track:hover {
	background:#061B3D !important;
}
body.dark-theme .data-panel-scroll::-webkit-scrollbar-thumb,
body.dark-theme .data-table-frame .table-responsive::-webkit-scrollbar-thumb {
	background:#24518A !important;
}

/* Ajustes finais: separador do título do painel e cabeçalho da tabela VLAN */
body.dark-theme .data-panel-head {
	background:#0B2D5D !important;
	color:#F1F6FF !important;
	border-bottom:1px solid #24518A !important;
	box-shadow:inset 0 -1px 0 rgba(8,127,239,.12) !important;
}
body.dark-theme .data-panel-head.head-blue {
	background:#103568 !important;
	color:#FFFFFF !important;
	border-bottom:1px solid #2B65A5 !important;
}
body.dark-theme .data-table-frame .table.data-table thead,
body.dark-theme .data-table-frame .table.data-table thead tr,
body.dark-theme .data-table-frame .table.data-table thead th,
body.dark-theme .data-table-frame .table.data-table thead td,
body.dark-theme table.table.data-table thead th {
	background:#17447D !important;
	background-color:#17447D !important;
	color:#F7FAFF !important;
	border-bottom:1px solid #2D67A6 !important;
	font-weight:600 !important;
}


body.dark-theme .fm-container {
    --fm-primary:#F77D25;
    --fm-primary-dark:#F26805;
    --fm-primary-light:rgba(247,125,37,.14);
    --fm-border:#153D70;
    --fm-text:#F1F6FF;
    --fm-muted:#AFC3DF;
    --fm-bg:#061B3D;
    color:var(--fm-text);
}

/* Cabeçalho */

body.dark-theme .fm-heading h4 {
    color:#F1F6FF;
}

body.dark-theme .fm-heading-icon {
    background:rgba(247,125,37,.14);
    color:#F77D25;
}

/* Botões */

body.dark-theme .fm-btn-outline,
body.dark-theme .fm-btn-danger,
body.dark-theme .fm-btn-green,
body.dark-theme .fm-btn-orange,
body.dark-theme .fm-btn-blue,
body.dark-theme .fm-btn-yellow {
    background:#0B2D5D;
    border-color:#153D70;
    color:#D5E2F4;
}

body.dark-theme .fm-btn-outline:hover,
body.dark-theme .fm-btn-danger:hover,
body.dark-theme .fm-btn-green:hover,
body.dark-theme .fm-btn-orange:hover,
body.dark-theme .fm-btn-blue:hover,
body.dark-theme .fm-btn-yellow:hover {
    background:#103568;
    border-color:#24558E;
    color:#F1F6FF;
}

body.dark-theme .fm-btn-primary {
    background:#F77D25;
    color:#fff;
}

body.dark-theme .fm-btn-primary:hover {
    background:#F26805;
    color:#fff;
}

body.dark-theme .fm-btn:disabled,
body.dark-theme .fm-btn:disabled:hover {
    background:#102B50;
    border-color:#24446D;
    color:#7890B1;
}

/* Barra de ferramentas e pesquisa */

body.dark-theme .fm-toolbar {
    background:#092653;
    border-color:#153D70;
}

body.dark-theme .fm-search {
    background:#061B3D;
    border-color:#153D70;
    color:#AFC3DF;
}

body.dark-theme .fm-search:focus-within {
    border-color:#F77D25;
    box-shadow:0 0 0 3px rgba(247,125,37,.13);
}

body.dark-theme .fm-search input {
    color:#F1F6FF;
}

body.dark-theme .fm-search input::placeholder {
    color:#829BBE;
}

/* Estrutura do gerenciador */

body.dark-theme .fm-workspace {
    background:#092653;
    border-color:#153D70;
}

/* Sidebar e navegação de diretórios */

body.dark-theme .fm-sidebar {
    background:#071F46;
    border-color:#153D70;
}

body.dark-theme .fm-sidebar-title span {
    color:#A8BFDE;
}

body.dark-theme .fm-sidebar-title button {
    color:#AFC3DF;
}

body.dark-theme .fm-sidebar-title button:hover {
    background:#103568;
    color:#F77D25;
}

body.dark-theme .fm-folder-link,
body.dark-theme .fm-tree-link {
    color:#D5E2F4;
}

body.dark-theme .fm-folder-link i {
    color:#A8BFDE;
}

body.dark-theme .fm-folder-link:hover,
body.dark-theme .fm-tree-link:hover {
    background:#103568;
    color:#F1F6FF;
}

body.dark-theme .fm-folder-link.active,
body.dark-theme .fm-tree-link.active {
    background:rgba(247,125,37,.14);
    color:#FFAA68;
    font-weight:600;
}

body.dark-theme .fm-folder-link.active i,
body.dark-theme .fm-tree-link.active .fm-folder-icon {
    color:#F77D25;
}

body.dark-theme .fm-sidebar-divider {
    background:#153D70;
}

/* Árvore de diretórios */

body.dark-theme .fm-tree {
    color:#D5E2F4;
}

body.dark-theme .fm-tree-arrow {
    color:#91A9CA;
}

body.dark-theme .fm-folder-icon {
    color:#F7B84B;
}

body.dark-theme .fm-tree-children {
    border-left-color:#24446D;
}

body.dark-theme .fm-tree-link:hover .fm-tree-arrow,
body.dark-theme .fm-tree-link.active .fm-tree-arrow {
    color:#FFAA68;
}

/* Indicador de armazenamento */

body.dark-theme .fm-storage-heading {
    color:#E7F0FF;
}

body.dark-theme .fm-storage-heading i {
    color:#AFC3DF;
}

body.dark-theme .fm-storage-values strong {
    color:#F1F6FF;
}

body.dark-theme .fm-storage-values span,
body.dark-theme .fm-storage small {
    color:#AFC3DF;
}

body.dark-theme .fm-storage-progress {
    background:#153D70;
}

body.dark-theme .fm-storage-progress div {
    background:#087FEF;
}

/* Área principal e caminho de navegação */

body.dark-theme .fm-main {
    background:#092653;
}

body.dark-theme .fm-navigation {
    border-color:#153D70;
}

body.dark-theme .fm-breadcrumb {
    color:#91A9CA;
}

body.dark-theme .fm-breadcrumb a {
    color:#B8CBE5;
}

body.dark-theme .fm-breadcrumb a:hover {
    color:#FFAA68;
}

body.dark-theme .fm-breadcrumb a:first-child {
    background:#103568;
    color:#FFAA68;
}

body.dark-theme .fm-breadcrumb > span {
    color:#F1F6FF;
}

body.dark-theme .fm-view-btn {
    color:#AFC3DF;
}

body.dark-theme .fm-view-btn:hover,
body.dark-theme .fm-view-btn.active {
    border-color:#24558E;
    background:#103568;
    color:#FFAA68;
}

body.dark-theme .fm-item-count {
    color:#AFC3DF;
}

/* Barras de seleção */

body.dark-theme .fm-selection-bar {
    background:rgba(8,127,239,.12);
    border-color:rgba(8,127,239,.35);
    color:#C9DDF7;
}

body.dark-theme .fm-selection-bar > div i {
    color:#58A8FF;
}

body.dark-theme .fm-selection-bar button {
    color:#AFC3DF;
}

body.dark-theme .fm-danger-bar {
    background:rgba(255,77,104,.10);
    border-color:rgba(255,77,104,.32);
    color:#FF9AAA;
}

body.dark-theme .fm-danger-bar > div i {
    color:#FF6F86;
}

/* Listagem de arquivos e diretórios */

body.dark-theme .fm-table thead th {
    background:#0B2D5D;
    border-top-color:#153D70;
    border-bottom-color:#24446D;
    color:#BFD1E9;
}

body.dark-theme .fm-table thead th:first-child {
    border-left-color:#153D70;
}

body.dark-theme .fm-table thead th:last-child {
    border-right-color:#153D70;
}

body.dark-theme .fm-table tbody td {
    background:#092653;
    border-bottom-color:#153D70;
    color:#B8CBE5;
}

body.dark-theme .fm-table tbody tr:hover td {
    background:#103568;
}

body.dark-theme .fm-table tbody tr:last-child td {
    border-bottom-color:#153D70;
}

body.dark-theme .fm-table input[type="checkbox"] {
    accent-color:#F77D25;
}

body.dark-theme .fm-file-name {
    color:#E7F0FF;
}

body.dark-theme .fm-file-name:hover {
    color:#FFAA68;
}

body.dark-theme .fm-icon-folder {
    color:#F7B84B;
}

body.dark-theme .fm-icon-image {
    color:#42C99A;
}

body.dark-theme .fm-icon-code {
    color:#58A8FF;
}

body.dark-theme .fm-icon-php {
    color:#A5A8E8;
}

body.dark-theme .fm-icon-config {
    color:#AFC3DF;
}

/* Ações por linha e menus */

body.dark-theme .fm-row-action {
    color:#AFC3DF;
}

body.dark-theme .fm-row-action:hover,
body.dark-theme .fm-row-action[aria-expanded="true"] {
    background:#103568;
    border-color:#24558E;
    color:#FFAA68;
}

body.dark-theme .fm-actions-menu {
    background:#0B2D5D;
    border-color:#24558E;
    box-shadow:0 8px 24px rgba(0,0,0,.35);
}

body.dark-theme .fm-actions-menu .dropdown-item {
    color:#D5E2F4;
}

body.dark-theme .fm-actions-menu .dropdown-item:hover {
    background:#103568;
    color:#FFAA68;
}

body.dark-theme .fm-actions-menu .dropdown-divider {
    border-color:#24446D;
}

/* Rodapé */

body.dark-theme .fm-footer {
    color:#AFC3DF;
}

body.dark-theme .fm-footer strong {
    color:#E7F0FF;
}

/* Modal de upload — cabeçalho, corpo e rodapé */

body.dark-theme .fm-upload-modal {
    background:#092653;
    border-color:#153D70;
}

body.dark-theme .fm-upload-modal .modal-header,
body.dark-theme .fm-upload-modal .modal-footer {
    border-color:#153D70;
}

/* Responsividade: mantém o comportamento definido no CSS original */

/* =========================================================
   Botões, modais, configurações e permissões
   Seletores conferidos com o CSS original do RamosNET.
   ========================================================= */

/* Botões do gerenciador */

body.dark-theme .fm-btn {
    border-color:#28507F;
    color:#D5E2F4;
}

body.dark-theme .fm-btn-outline {
    background:#0B2D5D;
    border-color:#28507F;
    color:#D5E2F4;
}

body.dark-theme .fm-btn-outline:hover {
    background:#103568;
    border-color:#3D6596;
    color:#FFFFFF;
}

body.dark-theme .fm-btn-danger {
    background:rgba(255,77,104,.14);
    border-color:rgba(255,77,104,.4);
    color:#FF8295;
}

body.dark-theme .fm-btn-danger:hover {
    background:#B92D49;
    border-color:#D83B58;
    color:#FFFFFF;
}

body.dark-theme .fm-btn-green {
    background:rgba(25,212,123,.13);
    border-color:rgba(25,212,123,.35);
    color:#4BE3A0;
}

body.dark-theme .fm-btn-green:hover {
    background:#087A50;
    border-color:#0A9B66;
    color:#FFFFFF;
}

body.dark-theme .fm-btn-blue {
    background:rgba(8,127,239,.14);
    border-color:rgba(8,127,239,.38);
    color:#8FC5FF;
}

body.dark-theme .fm-btn-blue:hover {
    background:#075FB7;
    border-color:#087FEF;
    color:#FFFFFF;
}

body.dark-theme .fm-btn-yellow {
    background:rgba(247,184,75,.13);
    border-color:rgba(247,184,75,.35);
    color:#F7C66F;
}

body.dark-theme .fm-btn-yellow:hover {
    background:#946414;
    border-color:#B9821B;
    color:#FFFFFF;
}

body.dark-theme .fm-btn-orange {
    background:#F77D25;
    border-color:#F77D25;
    color:#FFFFFF;
}

body.dark-theme .fm-btn-orange:hover {
    background:#F26805;
    border-color:#F26805;
    color:#FFFFFF;
}

/* Modais próprios do gerenciador */

body.dark-theme .fm-folder-modal,
body.dark-theme .fm-upload-modal {
    background:#092653;
    border-color:#153D70;
    color:#D5E2F4;
    box-shadow:0 12px 35px rgba(0,8,28,.35);
}

body.dark-theme .fm-folder-modal .modal-header,
body.dark-theme .fm-folder-modal .modal-footer,
body.dark-theme .fm-upload-modal .modal-header,
body.dark-theme .fm-upload-modal .modal-footer {
    background:#0B2D5D;
    border-color:#153D70;
    color:#F1F6FF;
}

body.dark-theme .fm-folder-modal .modal-title,
body.dark-theme .fm-upload-modal .modal-title {
    color:#F1F6FF;
}

body.dark-theme .fm-folder-modal .modal-body,
body.dark-theme .fm-upload-modal .modal-body {
    background:#092653;
    color:#D5E2F4;
}

body.dark-theme .fm-folder-modal .form-label,
body.dark-theme .fm-upload-modal .form-label {
    color:#D5E2F4;
}

body.dark-theme .fm-folder-input .form-control,
body.dark-theme .fm-folder-input .form-select {
    background:#061B3D;
    border-color:#28507F;
    color:#F1F6FF;
}

body.dark-theme .fm-folder-input .form-control:focus,
body.dark-theme .fm-folder-input .form-select:focus {
    border-color:#F77D25;
    box-shadow:0 0 0 3px rgba(247,125,37,.14);
}

body.dark-theme .fm-folder-input > i {
    color:#8FC5FF;
}

body.dark-theme .fm-folder-hint {
    color:#AFC3DF;
}

/* Upload */

body.dark-theme .fm-upload-dropzone {
    background:#061B3D;
    border-color:#28507F;
    color:#F1F6FF;
}

body.dark-theme .fm-upload-dropzone.is-dragover {
    background:rgba(247,125,37,.10);
    border-color:#F77D25;
}

body.dark-theme .fm-upload-dropzone p,
body.dark-theme .fm-upload-dropzone small {
    color:#AFC3DF;
}

body.dark-theme .fm-upload-files-header {
    color:#F1F6FF;
}

body.dark-theme .fm-upload-file {
    background:#0B2D5D;
    border-color:#24446D;
    color:#D5E2F4;
}

body.dark-theme .fm-upload-file-name,
body.dark-theme .fm-upload-file strong {
    color:#F1F6FF;
}

body.dark-theme .fm-upload-file-status,
body.dark-theme .fm-upload-summary {
    color:#AFC3DF;
}

body.dark-theme .fm-upload-progress {
    background:#153D70;
}

/* Configurações — classes reais us-* */

body.dark-theme .us-layout {
    color:#D5E2F4;
}

body.dark-theme .us-sidebar,
body.dark-theme .us-content,
body.dark-theme .us-section {
    background:#092653;
    border-color:#153D70;
    color:#D5E2F4;
    box-shadow:none;
}

body.dark-theme .us-header,
body.dark-theme .us-content-header {
    border-color:#153D70;
    color:#F1F6FF;
}

body.dark-theme .us-header h4,
body.dark-theme .us-section-title,
body.dark-theme .us-profile h5,
body.dark-theme .us-profile strong {
    color:#F1F6FF;
}

body.dark-theme .us-header p,
body.dark-theme .us-description,
body.dark-theme .us-profile p,
body.dark-theme .us-profile small {
    color:#AFC3DF;
}

body.dark-theme .us-header-icon,
body.dark-theme .us-menu-icon {
    background:#103568;
    color:#8FC5FF;
}

body.dark-theme .us-avatar {
    background:#103568;
    color:#8FC5FF;
}

body.dark-theme .us-profile-badge {
    background:rgba(247,125,37,.14);
    color:#FFAA68;
}

body.dark-theme .us-menu-link {
    color:#D5E2F4;
}

body.dark-theme .us-menu-link:hover,
body.dark-theme .us-menu-link.active {
    background:#103568;
    color:#FFFFFF;
}

body.dark-theme .us-menu-link.active .us-menu-icon {
    color:#FFAA68;
}

body.dark-theme .us-content-body {
    background:transparent;
    color:#D5E2F4;
}

body.dark-theme .us-content-body .form-label,
body.dark-theme .us-switch,
body.dark-theme .us-content-body label {
    color:#D5E2F4;
}

body.dark-theme .us-content-body .form-control,
body.dark-theme .us-content-body .form-select,
body.dark-theme .us-content-body input,
body.dark-theme .us-content-body select,
body.dark-theme .us-content-body textarea {
    background:#061B3D;
    border-color:#28507F;
    color:#F1F6FF;
}

body.dark-theme .us-content-body .form-control:focus,
body.dark-theme .us-content-body .form-select:focus {
    border-color:#F77D25;
    box-shadow:0 0 0 3px rgba(247,125,37,.14);
}

body.dark-theme .us-content-body .form-control::placeholder {
    color:#829BBE;
}

body.dark-theme .us-password,
body.dark-theme .us-info {
    background:#0B2D5D;
    border-color:#28507F;
    color:#D5E2F4;
}

body.dark-theme .us-actions .btn,
body.dark-theme .us-btn-reset {
    background:#0B2D5D;
    border-color:#28507F;
    color:#D5E2F4;
}

body.dark-theme .us-actions .btn:hover,
body.dark-theme .us-btn-reset:hover {
    background:#103568;
    border-color:#3D6596;
    color:#FFFFFF;
}

body.dark-theme .us-actions .us-btn-save,
body.dark-theme .us-btn-save {
    background:#F77D25;
    border-color:#F77D25;
    color:#FFFFFF;
}

body.dark-theme .us-actions .us-btn-save:hover,
body.dark-theme .us-btn-save:hover {
    background:#F26805;
    border-color:#F26805;
    color:#FFFFFF;
}

/* Página de permissões — containers, abas e listagem */

body.dark-theme .intranet-permissions,
body.dark-theme .user-permissions {
    color:#D5E2F4;
}

body.dark-theme .intranet-permissions-container,
body.dark-theme .user-permissions-container {
    background:#092653;
    border-color:#153D70;
    box-shadow:none;
}

body.dark-theme .intranet-permissions-header h4,
body.dark-theme .user-permissions-header h4,
body.dark-theme .intranet-permissions-panel-header h5,
body.dark-theme .user-permissions-panel-header h5 {
    color:#F1F6FF;
}

body.dark-theme .intranet-permissions-header p,
body.dark-theme .user-permissions-header p,
body.dark-theme .intranet-permissions-panel-header p,
body.dark-theme .user-permissions-panel-header p {
    color:#AFC3DF;
}

body.dark-theme .intranet-permissions-header-icon,
body.dark-theme .user-permissions-header-icon,
body.dark-theme .intranet-permissions-empty-icon,
body.dark-theme .user-permissions-empty-icon {
    background:#103568;
    color:#8FC5FF;
}

body.dark-theme .intranet-permissions-tabs,
body.dark-theme .user-permissions-tabs {
    border-bottom-color:#153D70;
}

body.dark-theme .intranet-permissions-tab,
body.dark-theme .user-permissions-tab {
    color:#AFC3DF;
}

body.dark-theme .intranet-permissions-tab:hover,
body.dark-theme .user-permissions-tab:hover {
    background:#0B2D5D;
    color:#F1F6FF;
}

body.dark-theme .intranet-permissions-tab.active,
body.dark-theme .user-permissions-tab.active {
    color:#8FC5FF;
}

body.dark-theme .intranet-permissions-content,
body.dark-theme .user-permissions-content,
body.dark-theme .intranet-permissions-panel,
body.dark-theme .user-permissions-panel {
    background:#092653;
    color:#D5E2F4;
}

body.dark-theme .intranet-permissions-toolbar,
body.dark-theme .user-permissions-toolbar {
    color:#D5E2F4;
}

body.dark-theme .intranet-permissions-search .form-control,
body.dark-theme .user-permissions-search .form-control {
    background:#061B3D;
    border-color:#28507F;
    color:#F1F6FF;
}

body.dark-theme .intranet-permissions-search .form-control::placeholder,
body.dark-theme .user-permissions-search .form-control::placeholder {
    color:#829BBE;
}

body.dark-theme .intranet-permissions-add-button,
body.dark-theme .user-permissions-add-button {
    background:#F77D25;
    border-color:#F77D25;
    color:#FFFFFF;
}

body.dark-theme .intranet-permissions-add-button:hover,
body.dark-theme .user-permissions-add-button:hover {
    background:#F26805;
    border-color:#F26805;
}

body.dark-theme .intranet-permissions-empty,
body.dark-theme .user-permissions-empty {
    background:#0B2D5D;
    border-color:#28507F;
    color:#D5E2F4;
}

body.dark-theme .intranet-permissions-empty h6,
body.dark-theme .user-permissions-empty h6 {
    color:#F1F6FF;
}

body.dark-theme .intranet-permissions-empty p,
body.dark-theme .user-permissions-empty p {
    color:#AFC3DF;
}

/* Formulário de permissões — classes reais intranet-perm-* e user-perm-* */

body.dark-theme .intranet-perm-header,
body.dark-theme .user-perm-header,
body.dark-theme .intranet-perm-body,
body.dark-theme .user-perm-body,
body.dark-theme .intranet-perm-content,
body.dark-theme .user-perm-content,
body.dark-theme .intranet-perm-panel,
body.dark-theme .user-perm-panel {
    background:#092653;
    color:#D5E2F4;
}

body.dark-theme .intranet-perm-header,
body.dark-theme .user-perm-header {
    border-color:#153D70;
}

body.dark-theme .intranet-perm-section,
body.dark-theme .user-perm-section {
    border-color:#153D70;
}

body.dark-theme .intranet-perm-section-title,
body.dark-theme .user-perm-section-title,
body.dark-theme .intranet-perm-group-name,
body.dark-theme .user-perm-group-name,
body.dark-theme .intranet-perm-option label,
body.dark-theme .user-perm-option label {
    color:#F1F6FF;
}

body.dark-theme .intranet-perm-section-title i,
body.dark-theme .user-perm-section-title i,
body.dark-theme .intranet-perm-group-name i,
body.dark-theme .user-perm-group-name i {
    color:#8FC5FF;
}

body.dark-theme .intranet-perm-description,
body.dark-theme .user-perm-description,
body.dark-theme .intranet-perm-option small,
body.dark-theme .user-perm-option small,
body.dark-theme .intranet-perm-group .form-check-label,
body.dark-theme .user-perm-group .form-check-label {
    color:#AFC3DF;
}

body.dark-theme .intranet-perm-content .form-label,
body.dark-theme .user-perm-content .form-label {
    color:#D5E2F4;
}

body.dark-theme .intranet-perm-content .form-control,
body.dark-theme .user-perm-content .form-control,
body.dark-theme .intranet-perm-content .form-select,
body.dark-theme .user-perm-content .form-select {
    background:#061B3D;
    border-color:#28507F;
    color:#F1F6FF;
}

body.dark-theme .intranet-perm-content .form-control:focus,
body.dark-theme .user-perm-content .form-control:focus,
body.dark-theme .intranet-perm-content .form-select:focus,
body.dark-theme .user-perm-content .form-select:focus {
    border-color:#F77D25;
    box-shadow:0 0 0 3px rgba(247,125,37,.14);
}

body.dark-theme .intranet-perm-options,
body.dark-theme .user-perm-options,
body.dark-theme .intranet-perm-group,
body.dark-theme .user-perm-group {
    background:#0B2D5D;
    border-color:#153D70;
    color:#D5E2F4;
}

body.dark-theme .intranet-perm-option,
body.dark-theme .user-perm-option {
    background:#0B2D5D;
    border-color:#153D70;
    color:#D5E2F4;
}

body.dark-theme .intranet-perm-option:hover,
body.dark-theme .user-perm-option:hover {
    background:#103568;
}

body.dark-theme .intranet-perm-group-header,
body.dark-theme .user-perm-group-header {
    border-color:#153D70;
}

body.dark-theme .intranet-perm-group .form-check-input,
body.dark-theme .user-perm-group .form-check-input,
body.dark-theme .intranet-perm-option .form-check-input,
body.dark-theme .user-perm-option .form-check-input {
    background-color:#061B3D;
    border-color:#52749D;
}

body.dark-theme .intranet-perm-group .form-check-input:checked,
body.dark-theme .user-perm-group .form-check-input:checked,
body.dark-theme .intranet-perm-option .form-check-input:checked,
body.dark-theme .user-perm-option .form-check-input:checked {
    background-color:#087FEF;
    border-color:#087FEF;
}

body.dark-theme .intranet-perm-empty,
body.dark-theme .user-perm-empty,
body.dark-theme .user-settings-empty {
    background:#0B2D5D;
    border-color:#28507F;
    color:#D5E2F4;
}

body.dark-theme .intranet-perm-empty h6,
body.dark-theme .user-perm-empty h6,
body.dark-theme .user-settings-empty h6 {
    color:#F1F6FF;
}

body.dark-theme .intranet-perm-empty p,
body.dark-theme .user-perm-empty p,
body.dark-theme .user-settings-empty p {
    color:#AFC3DF;
}

body.dark-theme .intranet-perm-actions .btn,
body.dark-theme .user-perm-actions .btn {
    background:#0B2D5D;
    border-color:#28507F;
    color:#D5E2F4;
}

body.dark-theme .intranet-perm-actions .btn:hover,
body.dark-theme .user-perm-actions .btn:hover {
    background:#103568;
    color:#FFFFFF;
}

body.dark-theme .intranet-perm-actions .btn-primary,
body.dark-theme .user-perm-actions .btn-primary {
    background:#F77D25;
    border-color:#F77D25;
    color:#FFFFFF;
}

/* Modais Bootstrap e diálogos da aplicação */

body.dark-theme .modal-content {
    background:#092653;
    border-color:#153D70;
    color:#D5E2F4;
}

body.dark-theme .modal .modal-header,
body.dark-theme .modal .modal-footer {
    background:#0B2D5D;
    border-color:#153D70;
    color:#F1F6FF;
}

body.dark-theme .modal .modal-body {
    background:#092653;
    color:#D5E2F4;
}

body.dark-theme .modal .modal-title,
body.dark-theme .modal .modal-body h1,
body.dark-theme .modal .modal-body h2,
body.dark-theme .modal .modal-body h3,
body.dark-theme .modal .modal-body h4,
body.dark-theme .modal .modal-body h5,
body.dark-theme .modal .modal-body h6 {
    color:#F1F6FF;
}

body.dark-theme .modal .modal-body p,
body.dark-theme .modal .modal-body label,
body.dark-theme .modal .modal-body .form-label {
    color:#D5E2F4;
}

body.dark-theme .modal .modal-body .text-muted {
    color:#AFC3DF !important;
}

body.dark-theme .modal .form-control,
body.dark-theme .modal .form-select,
body.dark-theme .modal textarea {
    background:#061B3D;
    border-color:#28507F;
    color:#F1F6FF;
}

body.dark-theme .modal .form-control::placeholder,
body.dark-theme .modal textarea::placeholder {
    color:#829BBE;
}

body.dark-theme .modal .btn-close {
    filter:invert(1) grayscale(100%) brightness(200%);
}

body.dark-theme .modal .btn-light,
body.dark-theme .modal .btn-outline-secondary,
body.dark-theme .modal .btn-secondary {
    background:#0B2D5D;
    border-color:#28507F;
    color:#D5E2F4;
}

body.dark-theme .modal .btn-light:hover,
body.dark-theme .modal .btn-outline-secondary:hover,
body.dark-theme .modal .btn-secondary:hover {
    background:#103568;
    border-color:#3D6596;
    color:#FFFFFF;
}

body.dark-theme .modal .btn-primary {
    background:#F77D25;
    border-color:#F77D25;
    color:#FFFFFF;
}

body.dark-theme .modal .btn-primary:hover {
    background:#F26805;
    border-color:#F26805;
}

/* Ajustes finais da página de permissões */

body.dark-theme .intranet-permissions-container,
body.dark-theme .user-permissions-container,
body.dark-theme .intranet-perm-header,
body.dark-theme .user-perm-header,
body.dark-theme .intranet-perm-section,
body.dark-theme .user-perm-section,
body.dark-theme .intranet-perm-options,
body.dark-theme .user-perm-options,
body.dark-theme .intranet-perm-group,
body.dark-theme .user-perm-group,
body.dark-theme .intranet-perm-option,
body.dark-theme .user-perm-option {
    border-color:#28507F !important;
}

body.dark-theme .intranet-permissions-container,
body.dark-theme .user-permissions-container,
body.dark-theme .intranet-perm-content,
body.dark-theme .user-perm-content {
    outline:0;
    box-shadow:none;
}

/* Selects de usuário, setor e documento com mais contraste */

body.dark-theme .intranet-perm-content .form-select,
body.dark-theme .user-perm-content .form-select,
body.dark-theme .intranet-perm-content select,
body.dark-theme .user-perm-content select {
    background-color:#103568;
    border-color:#38618E;
    color:#F1F6FF;
}

body.dark-theme .intranet-perm-content .form-select option,
body.dark-theme .user-perm-content .form-select option,
body.dark-theme .intranet-perm-content select option,
body.dark-theme .user-perm-content select option {
    background:#103568;
    color:#F1F6FF;
}

/* Switches */

body.dark-theme .intranet-perm-group .form-switch .form-check-input,
body.dark-theme .user-perm-group .form-switch .form-check-input,
body.dark-theme .intranet-perm-option .form-switch .form-check-input,
body.dark-theme .user-perm-option .form-switch .form-check-input {
    background-color:#087FEF !important;
    border-color:#087FEF !important;
    background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e") !important;
    background-position:left center;
    box-shadow:none;
}

body.dark-theme .intranet-perm-group .form-switch .form-check-input:checked,
body.dark-theme .user-perm-group .form-switch .form-check-input:checked,
body.dark-theme .intranet-perm-option .form-switch .form-check-input:checked,
body.dark-theme .user-perm-option .form-switch .form-check-input:checked {
    background-color:#087FEF !important;
    border-color:#087FEF !important;
    background-position:right center;
}

/* Ícones da página sem o fundo branco */

body.dark-theme .intranet-permissions-header-icon,
body.dark-theme .user-permissions-header-icon,
body.dark-theme .intranet-permissions-empty-icon,
body.dark-theme .user-permissions-empty-icon,
body.dark-theme .intranet-perm-section-title i,
body.dark-theme .user-perm-section-title i,
body.dark-theme .intranet-perm-group-name i,
body.dark-theme .user-perm-group-name i {
    background-color:#F77D25;
    color:#FFFFFF;
}

/* Identificação do grupo em destaque */

body.dark-theme .intranet-perm-group-name,
body.dark-theme .user-perm-group-name {
    color:#FFFFFF;
}

/* Ajuste fino — bordas da área de permissões */

body.dark-theme .intranet-perm-content,
body.dark-theme .user-perm-content {
    border:1px solid #153D70;
    box-shadow:none;
}

body.dark-theme .intranet-perm-body,
body.dark-theme .user-perm-body {
    border-color:#153D70;
}

body.dark-theme .intranet-perm-sidebar,
body.dark-theme .user-perm-sidebar,
body.dark-theme .intranet-perm-sidebar::before,
body.dark-theme .user-perm-sidebar::before,
body.dark-theme .intranet-perm-sidebar::after,
body.dark-theme .user-perm-sidebar::after {
    border-color:#153D70;
    box-shadow:none;
}

/* Sidebar das configurações do usuário */

body.dark-theme aside.us-sidebar {
    background:#092653;
    border:1px solid #153D70;
    box-shadow:none;
}

body.dark-theme aside.us-sidebar .us-profile {
    border-bottom:1px solid #153D70;
}

body.dark-theme aside.us-sidebar .us-menu-link {
    border:1px solid transparent;
}

body.dark-theme aside.us-sidebar .us-menu-link:hover,
body.dark-theme aside.us-sidebar .us-menu-link.active {
    border-color:#244D7D;
}

/* Correções finais — contraste do envio e avisos de informação */

body.dark-theme .fm-upload-modal .modal-footer .btn-primary,
body.dark-theme .fm-upload-modal .modal-footer .btn-primary:hover,
body.dark-theme .fm-upload-modal .modal-footer .btn-primary:focus {
    background:#F77D25 !important;
    border-color:#F77D25 !important;
    color:#FFFFFF !important;
    opacity:1;
}

body.dark-theme .fm-upload-modal .modal-footer .btn-primary:hover {
    background:#F26805 !important;
    border-color:#F26805 !important;
}

body.dark-theme .fm-upload-modal .modal-footer .btn-primary:disabled {
    background:#A94D12 !important;
    border-color:#A94D12 !important;
    color:#FFFFFF !important;
    opacity:.6;
}

/* Informações das configurações */

body.dark-theme .us-info {
    background:#0B2D5D;
    border:1px solid #28507F;
    border-radius:8px;
    color:#D5E2F4;
    box-shadow:none;
}

body.dark-theme .us-info i {
    color:#F77D25;
}

/* Correção de contraste — upload e avisos das configurações */

body.dark-theme .fm-upload-modal .modal-footer button,
body.dark-theme .fm-upload-modal .modal-footer .btn,
body.dark-theme .fm-upload-modal .modal-footer [type="submit"] {
    background:#F77D25 !important;
    border:1px solid #F77D25 !important;
    color:#FFFFFF !important;
    opacity:1 !important;
    text-shadow:none !important;
}

body.dark-theme .fm-upload-modal .modal-footer button:hover,
body.dark-theme .fm-upload-modal .modal-footer .btn:hover,
body.dark-theme .fm-upload-modal .modal-footer [type="submit"]:hover {
    background:#F26805 !important;
    border-color:#F26805 !important;
    color:#FFFFFF !important;
}

body.dark-theme .fm-upload-modal .modal-footer button:disabled,
body.dark-theme .fm-upload-modal .modal-footer .btn:disabled,
body.dark-theme .fm-upload-modal .modal-footer [type="submit"]:disabled {
    background:#A94D12 !important;
    border-color:#A94D12 !important;
    color:#FFFFFF !important;
    opacity:.7 !important;
}

/* .us-info segue o mesmo padrão azul do aviso do gerenciador */

body.dark-theme .us-info {
    background:rgba(8,127,239,.12) !important;
    border:1px solid rgba(8,127,239,.35) !important;
    color:#C9DDF7 !important;
    box-shadow:none !important;
}

body.dark-theme .us-info i {
    color:#58A8FF !important;
}

/* Avisos da página de permissões */

body.dark-theme .intranet-perm-info,
body.dark-theme .user-perm-info {
    background:rgba(8,127,239,.12) !important;
    border:1px solid rgba(8,127,239,.35) !important;
    border-radius:8px;
    color:#C9DDF7 !important;
    box-shadow:none !important;
}

body.dark-theme .intranet-perm-info i,
body.dark-theme .user-perm-info i {
    color:#58A8FF !important;
}

/* Identificação do grupo na sidebar de permissões */

body.dark-theme .intranet-perm-sidebar .badge,
body.dark-theme .user-perm-sidebar .badge {
    background:#F77D25 !important;
    border:1px solid #F77D25 !important;
    color:#FFFFFF !important;
}

/* Árvore do gerenciador — cores sólidas */

body.dark-theme .fm-tree {
    color:#D5E2F4;
}

body.dark-theme .fm-tree-link {
    min-height:34px;
    padding:6px 9px;
    border:1px solid transparent;
    border-radius:6px;
    color:#D5E2F4;
    transition:background-color .15s ease, border-color .15s ease, color .15s ease;
}

body.dark-theme .fm-tree-link:hover {
    background:#153D70;
    border-color:#28558A;
    color:#FFFFFF;
}

body.dark-theme .fm-tree-link.active {
    background:#F77D25;
    border-color:#F77D25;
    color:#FFFFFF;
    font-weight:600;
}

body.dark-theme .fm-tree-arrow,
body.dark-theme .fm-tree-link:hover .fm-tree-arrow {
    color:#F77D25;
}

body.dark-theme .fm-tree-link.active .fm-tree-arrow,
body.dark-theme .fm-tree-link.active .fm-folder-icon {
    color:#FFFFFF;
}

body.dark-theme .fm-folder-icon,
body.dark-theme .fm-tree-link .fm-folder-icon {
    color:#F77D25;
}

body.dark-theme .fm-tree-children {
    margin-left:12px;
    padding-left:10px;
    border-left:1px solid #F77D25;
}

/* =========================================================
   File Manager — cabeçalho, botões e navegação
   Ajustes finais com cores sólidas
   ========================================================= */

/* Cabeçalho */

body.dark-theme .fm-header {
     background:transparent !important;
    border:0 !important;
    box-shadow:none !important;
}

body.dark-theme .fm-heading-icon {
    background:#087FEF !important;
    border:1px solid #087FEF;
    color:#FFFFFF !important;
}

body.dark-theme .fm-heading-icon i {
    color:#FFFFFF !important;
}

body.dark-theme .fm-heading h4 {
    color:#F1F6FF !important;
}

body.dark-theme .fm-heading span {
    color:#9ACBFF !important;
}

/* Botões — estilo neutro */

body.dark-theme .fm-btn {
    border-radius:6px;
    font-weight:600;
    text-shadow:none;
    box-shadow:none;
}

body.dark-theme .fm-btn-outline {
    background:#12345F !important;
    border:1px solid #35618F !important;
    color:#EAF2FF !important;
}

body.dark-theme .fm-btn-outline:hover:not(:disabled) {
    background:#1B4779 !important;
    border-color:#5686B8 !important;
    color:#FFFFFF !important;
}

/* Botão de envio */

body.dark-theme .fm-btn-primary {
    background:#F77D25 !important;
    border:1px solid #F77D25 !important;
    color:#FFFFFF !important;
}

body.dark-theme .fm-btn-primary:hover:not(:disabled) {
    background:#F26805 !important;
    border-color:#F26805 !important;
    color:#FFFFFF !important;
}

/* Nova pasta */

body.dark-theme .fm-btn-blue {
    background:#087FEF !important;
    border:1px solid #087FEF !important;
    color:#FFFFFF !important;
}

body.dark-theme .fm-btn-blue:hover:not(:disabled) {
    background:#0068CC !important;
    border-color:#0068CC !important;
    color:#FFFFFF !important;
}

/* Excluir */

body.dark-theme .fm-btn-danger {
    background:#C92F4B !important;
    border:1px solid #C92F4B !important;
    color:#FFFFFF !important;
}

body.dark-theme .fm-btn-danger:hover:not(:disabled) {
    background:#A91F3A !important;
    border-color:#A91F3A !important;
    color:#FFFFFF !important;
}

/* Restaurar */

body.dark-theme .fm-btn-green {
    background:#138653 !important;
    border:1px solid #138653 !important;
    color:#FFFFFF !important;
}

body.dark-theme .fm-btn-green:hover:not(:disabled) {
    background:#0D7043 !important;
    border-color:#0D7043 !important;
    color:#FFFFFF !important;
}

/* Botão laranja */

body.dark-theme .fm-btn-orange {
    background:#F77D25 !important;
    border:1px solid #F77D25 !important;
    color:#FFFFFF !important;
}

body.dark-theme .fm-btn-orange:hover:not(:disabled) {
    background:#F26805 !important;
    border-color:#F26805 !important;
    color:#FFFFFF !important;
}

/* Botão amarelo */

body.dark-theme .fm-btn-yellow {
    background:#A87517 !important;
    border:1px solid #A87517 !important;
    color:#FFFFFF !important;
}

body.dark-theme .fm-btn-yellow:hover:not(:disabled) {
    background:#895C0E !important;
    border-color:#895C0E !important;
    color:#FFFFFF !important;
}

/* Botões desabilitados */

body.dark-theme .fm-btn:disabled,
body.dark-theme .fm-btn:disabled:hover,
body.dark-theme .fm-btn[disabled],
body.dark-theme .fm-btn[disabled]:hover {
    background:#17345A !important;
    border-color:#29496F !important;
    color:#8298B6 !important;
    opacity:1;
    cursor:not-allowed;
}

/* Ícones dos botões */

body.dark-theme .fm-btn i {
    color:inherit;
}

/* Barra de ferramentas */

body.dark-theme .fm-toolbar {
    background:#071F46;
    border-color:#153D70;
}

/* Busca */

body.dark-theme .fm-search {
    background:#061B3D;
    border-color:#28558A;
    color:#D5E2F4;
}

body.dark-theme .fm-search i {
    color:#9ACBFF;
}

body.dark-theme .fm-search input {
    background:transparent;
    border:0;
    color:#F1F6FF;
}

body.dark-theme .fm-search input::placeholder {
    color:#AFC3DF;
    opacity:1;
}

body.dark-theme .fm-search:focus-within {
    border-color:#087FEF;
    box-shadow:0 0 0 2px #123F70;
}

/* Sidebar */

body.dark-theme .fm-sidebar {
    background:#071F46;
    border-color:#153D70;
}

body.dark-theme .fm-sidebar-title {
    background:transparent !important;
    border:0 !important;
    box-shadow:none !important;
}

body.dark-theme .fm-sidebar-title span {
    color:#F1F6FF;
    font-weight:600;
}

body.dark-theme .fm-sidebar-title button {
    background:#12345F;
    border:1px solid #35618F;
    border-radius:5px;
    color:#9ACBFF;
}

body.dark-theme .fm-sidebar-title button:hover {
    background:#1B4779;
    border-color:#5686B8;
    color:#FFFFFF;
}

/* Links da navegação lateral */

body.dark-theme .fm-folder-link {
    background:transparent;
    border:1px solid transparent;
    border-radius:6px;
    color:#D5E2F4;
}

body.dark-theme .fm-folder-link i {
    color:#9ACBFF;
}

body.dark-theme .fm-folder-link:hover {
    background:#153D70;
    border-color:#28558A;
    color:#FFFFFF;
}

body.dark-theme .fm-folder-link:hover i {
    color:#FFFFFF;
}

body.dark-theme .fm-folder-link.active {
    background:#087FEF;
    border-color:#087FEF;
    color:#FFFFFF;
    font-weight:600;
}

body.dark-theme .fm-folder-link.active i {
    color:#FFFFFF;
}

body.dark-theme .intranet-perm-section-title .form-check-input,
body.dark-theme .user-perm-section-title .form-check-input {
    background-color:#087FEF !important;
    border:1px solid #087FEF !important;
    box-shadow:none !important;
    cursor:pointer;
}

body.dark-theme .intranet-perm-section-title .form-check-input:checked,
body.dark-theme .user-perm-section-title .form-check-input:checked {
    background-color:#087FEF !important;
    border-color:#087FEF !important;
}

body.dark-theme .intranet-perm-section-title .form-check-input:focus,
body.dark-theme .user-perm-section-title .form-check-input:focus {
    border-color:#087FEF !important;
    box-shadow:0 0 0 3px rgba(8,127,239,.25) !important;
}

body.dark-theme .intranet-perm-section-title .form-check-input:not(:checked),
body.dark-theme .user-perm-section-title .form-check-input:not(:checked) {
    background-color:#087FEF !important;
    border-color:#087FEF !important;
    background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e") !important;
}

body.dark-theme .modal .btn-close {
    filter:none !important;
    opacity:1 !important;
    background-color:#C92F4B !important;
    border-radius:6px;
}

body.dark-theme .modal .btn-close:hover {
    background-color:#A91F3A !important;
}