.capp-theme-toggle { width: 40px; height: 40px; padding: 0; flex: 0 0 40px; }
.capp-logo-dark, .capp-sidebar-brand img.capp-logo-dark { display: none; }
[data-bs-theme="dark"] .capp-logo-light { display: none; }
[data-bs-theme="dark"] .capp-logo-dark { display: inline-block; }
[data-bs-theme="dark"] .capp-sidebar-brand img.capp-logo-dark { display: block; }
html[data-bs-theme="dark"] {
    color-scheme: dark;
    --mds-ink: #f0f1f2;
    --bs-body-bg: #18191b;
    --bs-body-color: #e1e3e5;
    --bs-body-color-rgb: 225, 227, 229;
    --bs-border-color: #424549;
    --bs-secondary-color: #aeb4bb;
    --bs-link-color: #78c9ee;
    --bs-link-color-rgb: 120, 201, 238;
    --bs-link-hover-color: #b5e5fa;
    --bs-link-hover-color-rgb: 181, 229, 250;
    --capp-surface: #222426;
}
[data-bs-theme="dark"] body { background: var(--bs-body-bg); }
[data-bs-theme="dark"] #page { color: var(--bs-body-color); }
[data-bs-theme="dark"] .capp-sidebar { background: var(--capp-surface) !important; }
[data-bs-theme="dark"] :is(.capp-topbar, .capp-footer, .card-header, .thumbnail) { background: var(--capp-surface); }
[data-bs-theme="dark"] :is(.capp-topbar-title, .capp-sidebar-caption, .capp-sidebar-status, .capp-footer, .form-text, .help-text) { color: #aeb4bb; }
[data-bs-theme="dark"] :is(.capp-sidebar-status strong, .capp-footer a, .capp-account, .capp-sidebar .nav-link) { color: #e1e3e5; }
[data-bs-theme="dark"] .capp-sidebar .nav-link .glyphicon { color: #aeb4bb; }
[data-bs-theme="dark"] .capp-sidebar .nav-link:hover { background: #303539; color: #78c9ee; }
[data-bs-theme="dark"] .capp-sidebar .nav-link.active { background: #3a2c1e; color: #ffb66b; }
[data-bs-theme="dark"] .capp-sidebar .nav-link.active .glyphicon { color: #ffb66b; }
[data-bs-theme="dark"] :is(.capp-nav-group + .capp-nav-group, hr, .thumbnail) { border-color: var(--bs-border-color); }
[data-bs-theme="dark"] .btn-outline-secondary { --bs-btn-color: #e1e3e5; --bs-btn-bg: #222426; --bs-btn-border-color: #555a60; --bs-btn-hover-bg: #383c40; --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: #7b8289; --bs-btn-active-bg: #383c40; --bs-btn-active-color: #fff; }
[data-bs-theme="dark"] :is(.form-control, .form-select) { background-color: #1c1e20; border-color: #555a60; color: #e1e3e5; }
[data-bs-theme="dark"] :is(.form-control, .form-select):disabled { background-color: #303236; color: #aeb4bb; }
[data-bs-theme="dark"] .dropdown-menu { --bs-dropdown-bg: #292b2e; --bs-dropdown-color: #e1e3e5; --bs-dropdown-link-color: #e1e3e5; --bs-dropdown-link-hover-color: #fff; --bs-dropdown-link-hover-bg: #383c40; }
[data-bs-theme="dark"] #content .table { background: #222426; --bs-table-color: #e1e3e5; --bs-table-bg: #222426; --bs-table-striped-bg: #292b2e; --bs-table-striped-color: #e1e3e5; --bs-table-hover-bg: #32373b; --bs-table-hover-color: #fff; --bs-table-border-color: #424549; }
[data-bs-theme="dark"] #content .table > thead { border-color: #555a60; }
[data-bs-theme="dark"] #content .table > thead > tr > th { background: #303236; color: #e1e3e5; }
[data-bs-theme="dark"] #content .table > thead a { color: #e1e3e5; }
[data-bs-theme="dark"] #content .table .is_copied td { background: #3b3421; }
[data-bs-theme="dark"] .table .success { --bs-table-bg: #203b2c; }
[data-bs-theme="dark"] .table .warning { --bs-table-bg: #3b3421; }
[data-bs-theme="dark"] .table .danger { --bs-table-bg: #46292d; }
[data-bs-theme="dark"] .pagination { --bs-pagination-color: #78c9ee; --bs-pagination-bg: #222426; --bs-pagination-border-color: #424549; --bs-pagination-hover-bg: #383c40; --bs-pagination-hover-color: #fff; --bs-pagination-disabled-bg: #222426; --bs-pagination-disabled-color: #90969c; }
[data-bs-theme="dark"] :is(.selectize-input, .selectize-input.full, .selectize-input.input-active, .selectize-dropdown) { color: #e1e3e5; background: #1c1e20; border-color: #555a60; box-shadow: none; }
[data-bs-theme="dark"] .selectize-input input { color: #e1e3e5; }
[data-bs-theme="dark"] .selectize-dropdown .active { color: #fff; background: #383c40; }
[data-bs-theme="dark"] .selectize-control.multi .selectize-input > div { color: #e1e3e5; background: #383c40; border-color: #555a60; }
[data-bs-theme="dark"] .selectize-control.single .selectize-input:after { border-top-color: #aeb4bb; }
[data-bs-theme="dark"] #content :is(.produto-cadastro-bloco, .produto-especificacoes, .produto-galeria) { background: #222426; border-bottom-color: #424549; }
[data-bs-theme="dark"] #content :is(.produto-cadastro-bloco, .produto-especificacoes, .produto-galeria) h3,
[data-bs-theme="dark"] #content :is(.produto-cadastro-bloco, .produto-especificacoes) .form-label { color: #e1e3e5; }
[data-bs-theme="dark"] #content .produto-especificacoes .form-control { background: #1c1e20; }
[data-bs-theme="dark"] :is(.produto-especificacoes-letra, .produto-galeria-ordem) { color: #ffb66b; background: #3a2c1e; border-color: #555a60; }
[data-bs-theme="dark"] :is(.produto-galeria-item, .produto-galeria-envio input[type=file]) { background: #1c1e20; border-color: #424549; }
[data-bs-theme="dark"] :is(.produto-galeria-nome, .produto-galeria-acoes .btn) { color: #e1e3e5; }
[data-bs-theme="dark"] :is(.produto-galeria-total, .produto-galeria-limites, .produto-galeria-remover, .produto-galeria-vazia),
[data-bs-theme="dark"] #content .produto-especificacoes summary { color: #aeb4bb; }
[data-bs-theme="dark"] :is(.produto-galeria-subtitulo, .produto-galeria-titulo > .glyphicon) { color: #ffb66b; }
[data-bs-theme="dark"] :is(.produto-galeria-acoes, .produto-galeria-info, .produto-galeria-vazia),
[data-bs-theme="dark"] #content .produto-especificacoes details { border-color: #424549; }
[data-bs-theme="dark"] .produto-galeria-item.is-removing { background: #46292d; }
[data-bs-theme="dark"] .produto-galeria-item.is-removing .produto-galeria-remover { color: #ffb3b3; }
[data-bs-theme="dark"] #accessJumperMenu:focus-within { background: #222426; }
/* Preserva o fundo branco das fotos para inspecao das pecas. */
@media (max-width: 480px) {
    .capp-account { max-width: 105px; }
    .capp-topbar-title { font-size: 12px; }
}
@media print {
    [data-bs-theme="dark"] body, [data-bs-theme="dark"] #page { color: #000; background: #fff; }
    .capp-theme-toggle { display: none; }
}
