:root {
    --dt-primary: #1f6feb;
    --dt-primary-strong: #1557b0;
    --dt-bg: #f4f6f9;
    --dt-surface: #ffffff;
    --dt-surface-muted: #f8f9fa;
    --dt-border: #dfe3e8;
    --dt-text: #212529;
    --dt-text-muted: #6c757d;
    --dt-input-bg: #ffffff;
    --dt-input-disabled: #e9ecef;
    --dt-focus: rgba(31, 111, 235, .25);
}

body.dark-mode {
    --dt-primary: #4dabf7;
    --dt-primary-strong: #74c0fc;
    --dt-bg: #101722;
    --dt-surface: #182231;
    --dt-surface-elevated: #202d3f;
    --dt-surface-muted: #253449;
    --dt-surface-hover: #2a3b52;
    --dt-border: #3a4a60;
    --dt-text: #f8fafc;
    --dt-text-muted: #cbd5e1;
    --dt-text-soft: #94a3b8;
    --dt-input-bg: #111827;
    --dt-input-disabled: #263142;
    --dt-focus: rgba(77, 171, 247, .32);
}

html,
body,
html body {
    background-color: var(--dt-bg);
    color: var(--dt-text);
}

.teste-ambiente-banner {
    display: none;
    margin: 0;
    padding: 10px 16px;
    background: #b91c1c;
    color: #fff;
    text-align: center;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    position: fixed !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 1060 !important;
}

body[data-environment="test"] .teste-ambiente-banner {
    display: block;
}

body[data-environment="test"] {
    padding-bottom: 42px;
}

.main-header.navbar {
    border-bottom: 1px solid var(--dt-border);
}

.dt-navbar-brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: .35rem;
    padding-top: 0;
    padding-bottom: 0;
}

.brand-logo {
    background: var(--dt-primary);
    color: #fff;
    flex: 0 0 30px;
}

.brand-link .brand-logo {
    margin-left: .55rem;
}

.dt-theme-toggle {
    border: 0;
    line-height: 1.5;
}

.dt-theme-toggle:focus {
    box-shadow: 0 0 0 .2rem var(--dt-focus);
}

.dt-theme-toggle-login {
    position: fixed;
    top: 14px;
    right: 18px;
    z-index: 1050;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--dt-border);
    border-radius: 50%;
    background-color: var(--dt-surface);
    color: var(--dt-text);
    box-shadow: 0 12px 28px rgba(17, 24, 39, .18);
}

body.dark-mode .dt-theme-toggle-login {
    background-color: var(--dt-surface);
    color: var(--dt-text);
    border-color: var(--dt-border);
}

body.dark-mode.login-page.builder-template-login,
body.dark-mode.builder-template-login {
    background: var(--dt-bg) !important;
}

body.dark-mode #login-wrapper .auth-login-panel,
body.dark-mode #login-wrapper .auth-login-form-side,
body.dark-mode #login-wrapper .auth-reset-panel {
    background: var(--dt-surface) !important;
    border-color: var(--dt-border) !important;
    color: var(--dt-text) !important;
    box-shadow: 0 22px 55px rgba(0, 0, 0, .32) !important;
}

body.dark-mode #login-wrapper .auth-login-aside {
    background: linear-gradient(135deg, #0f172a 0%, #1f2937 58%, #0f766e 100%) !important;
}

body.dark-mode #login-wrapper .auth-brand-mark {
    background: rgba(255, 255, 255, .12) !important;
    color: #ffffff !important;
}

body.dark-mode #login-wrapper .auth-form-card > .panel-heading,
body.dark-mode #login-wrapper .auth-form-card > .card-header,
body.dark-mode #login-wrapper .auth-reset-card > .panel-heading,
body.dark-mode #login-wrapper .auth-reset-card > .card-header,
body.dark-mode #login-wrapper .auth-form-card .panel-title,
body.dark-mode #login-wrapper .auth-form-card .card-title {
    color: var(--dt-text) !important;
}

body.dark-mode #login-wrapper .auth-form-card input.tfield,
body.dark-mode #login-wrapper .auth-form-card select.tcombo {
    background-color: var(--dt-input-bg) !important;
    border-color: var(--dt-border) !important;
    color: var(--dt-text) !important;
}

body.dark-mode #login-wrapper .auth-form-card input.tfield::placeholder {
    color: var(--dt-text-muted) !important;
}

body.dark-mode #login-wrapper .auth-form-card .input-inner-icon,
body.dark-mode #login-wrapper .auth-form-card .tentry-toggle-visibility {
    color: var(--dt-text-muted) !important;
}

body.dark-mode #login-wrapper .auth-forgot-link,
body.dark-mode .login-public-links a {
    color: var(--dt-primary-strong) !important;
}

body.dark-mode .main-header.navbar,
body.dark-mode .main-footer,
body.dark-mode .content-wrapper,
body.dark-mode .right-panel,
body.dark-mode .modal-content,
body.dark-mode .dropdown-menu,
body.dark-mode .popover,
body.dark-mode .ui-dialog,
body.dark-mode .ui-dialog .ui-dialog-titlebar {
    background-color: var(--dt-surface);
    color: var(--dt-text);
    border-color: var(--dt-border);
}

body.dark-mode .main-header.navbar,
body.dark-mode .main-footer {
    background-color: #172131 !important;
}

body.dark-mode .main-header.navbar {
    box-shadow: 0 1px 0 rgba(148, 163, 184, .14);
}

body.dark-mode .brand-link {
    background-color: #111827 !important;
    border-bottom-color: var(--dt-border) !important;
}

body.dark-mode .main-sidebar.sidebar-light-primary,
body.dark-mode .main-sidebar.sidebar-light-info {
    background-color: #121c2a !important;
}

body.dark-mode .brand-link,
body.dark-mode .sidebar a,
body.dark-mode .user-panel .info a,
body.dark-mode .nav-sidebar .nav-link,
body.dark-mode .navbar-light .navbar-nav .nav-link,
body.dark-mode .dt-navbar-brand,
body.dark-mode .dropdown-item,
body.dark-mode .dropdown-menu li a,
body.dark-mode label,
body.dark-mode .control-label,
body.dark-mode .col-form-label {
    color: var(--dt-text);
}

body.dark-mode .nav-sidebar .nav-link:hover,
body.dark-mode .nav-sidebar .nav-link:focus,
body.dark-mode .nav-sidebar .nav-link.active,
body.dark-mode .dropdown-item:hover,
body.dark-mode .dropdown-item:focus,
body.dark-mode .dropdown-menu li a:hover,
body.dark-mode .dropdown-menu li a:focus {
    background-color: var(--dt-surface-muted);
    color: #fff;
}

body.dark-mode .nav-sidebar .nav-link {
    border-radius: 8px;
    margin: 2px 8px;
}

body.dark-mode .nav-sidebar .nav-icon,
body.dark-mode .navbar-nav .nav-link > i {
    color: #cbd5e1;
}

body.dark-mode .nav-sidebar .nav-link.active {
    background: linear-gradient(90deg, rgba(77, 171, 247, .22), rgba(77, 171, 247, .08)) !important;
    box-shadow: inset 3px 0 0 var(--dt-primary);
}

body.dark-mode .sidebar .user-panel,
body.dark-mode .main-sidebar,
body.dark-mode .main-sidebar::before {
    border-color: var(--dt-border) !important;
}

.panel,
.card,
.card-item,
.chart,
.tnotebook .frame.tab-content,
.tform > table,
.table,
.table-fixed-header thead,
.table-fixed-header thead th,
.table-fixed-header thead tr {
    background-color: var(--dt-surface);
    color: var(--dt-text);
    border-color: var(--dt-border);
}

body.dark-mode .panel,
body.dark-mode .card,
body.dark-mode .card-item,
body.dark-mode .chart,
body.dark-mode .callout,
body.dark-mode .small-box,
body.dark-mode .info-box,
body.dark-mode .tnotebook .frame.tab-content,
body.dark-mode .tform > table {
    background-color: var(--dt-surface) !important;
    color: var(--dt-text) !important;
    border-color: var(--dt-border) !important;
}

body.dark-mode .panel-heading,
body.dark-mode .card-header,
body.dark-mode .panel-footer,
body.dark-mode .card-footer,
body.dark-mode #adianti_right_panel > div > div.panel > div.panel-heading,
body.dark-mode .note-editor.note-frame .note-statusbar,
body.dark-mode .note-popover .popover-content,
body.dark-mode .card-header.note-toolbar,
body.dark-mode .modal-header,
body.dark-mode .modal-footer {
    background-color: var(--dt-surface-muted);
    border-color: var(--dt-border);
    color: var(--dt-text);
}

body.dark-mode .card-title,
body.dark-mode .panel-title,
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6,
body.dark-mode strong,
body.dark-mode .text-dark {
    color: var(--dt-text) !important;
}

body.dark-mode .text-muted,
body.dark-mode small,
body.dark-mode .small,
body.dark-mode .description-text,
body.dark-mode .breadcrumb,
body.dark-mode .breadcrumb a,
body.dark-mode .breadcrumb-item,
body.dark-mode .breadcrumb-item.active {
    color: var(--dt-text-muted) !important;
}

.table > thead > tr > th,
.table > tbody > tr > th,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > tbody > tr > td,
.table > tfoot > tr > td,
table.tdatagrid_table,
.tdatagrid_head tr td,
.tdatagrid_body tr td {
    border-color: var(--dt-border);
}

body.dark-mode .table,
body.dark-mode table.table,
body.dark-mode table.tdatagrid_table,
body.dark-mode .tdatagrid_table {
    background-color: var(--dt-surface) !important;
    color: var(--dt-text) !important;
}

body.dark-mode .table thead th,
body.dark-mode .table thead td,
body.dark-mode table.dataTable thead th,
body.dark-mode table.dataTable thead td,
body.dark-mode .tdatagrid_head tr td,
body.dark-mode .tdatagrid_table thead th,
body.dark-mode .tdatagrid_table thead td {
    background-color: #223047 !important;
    border-color: var(--dt-border) !important;
    color: #e2e8f0 !important;
}

body.dark-mode .table tbody tr,
body.dark-mode .table tbody td,
body.dark-mode .tdatagrid_body tr,
body.dark-mode .tdatagrid_body tr td {
    background-color: var(--dt-surface) !important;
    border-color: var(--dt-border) !important;
    color: var(--dt-text) !important;
}

body.dark-mode .table tbody tr:nth-of-type(even) td,
body.dark-mode .tdatagrid_body tr:nth-of-type(even) td {
    background-color: #1c293a !important;
}

body.dark-mode .table-hover tbody tr:hover,
body.dark-mode .table-striped tbody tr:nth-of-type(odd),
body.dark-mode .tdatagrid_body tr:hover {
    background-color: var(--dt-surface-muted) !important;
    color: var(--dt-text) !important;
}

select.tcombo,
input.tfield,
textarea.tfield,
.form-control,
.custom-select,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple,
.select2-dropdown,
.select2-search__field,
.tdate-group-addon,
.input-group-addon,
.input-group.spinner .input-group-addon,
div.color-div .pickr,
.note-editor.note-frame {
    background-color: var(--dt-input-bg);
    border-color: var(--dt-border);
    color: var(--dt-text);
}

select.tcombo[readonly],
select.tcombo:disabled,
select.tcombo.tcombo_disabled,
input.tfield:disabled,
input.tfield[readonly],
.form-control.tcombo_disabled,
.form-control:disabled,
.form-control[readonly] {
    background-color: var(--dt-input-disabled);
    color: var(--dt-text-muted);
}

select.tcombo:focus,
input.tfield:focus,
textarea.tfield:focus,
.form-control:focus,
.custom-select:focus,
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default .select2-selection--single:focus {
    border-color: var(--dt-primary);
    box-shadow: 0 0 0 .2rem var(--dt-focus);
    color: var(--dt-text);
}

body.dark-mode select[widget="tcombo"] {
    background-image: url("data:image/svg+xml;utf8,<svg version='1.1' xmlns='http://www.w3.org/2000/svg' width='17' height='17' viewBox='0 0 24 24'><path fill='%23f3f4f6' d='M7.406 7.828l4.594 4.594 4.594-4.594 1.406 1.406-6 6-6-6z'></path></svg>") !important;
}

body.dark-mode .select2-container--default .select2-selection--single .select2-selection__rendered,
body.dark-mode .select2-container--default .select2-results__option,
body.dark-mode .select2-container--default .select2-search--dropdown .select2-search__field {
    color: var(--dt-text);
}

body.dark-mode .select2-container--default .select2-results__option--highlighted[aria-selected],
body.dark-mode .select2-container--default .select2-results__option[aria-selected=true] {
    background-color: var(--dt-primary);
    color: #fff;
}

body > .select2-container--open,
body > .select2-container--open .select2-dropdown {
    z-index: 1201;
}

body.dark-mode .datepicker,
body.dark-mode .datetimepicker,
body.dark-mode .datepicker.dropdown-menu,
body.dark-mode .datetimepicker.dropdown-menu,
body.dark-mode .datepicker table,
body.dark-mode .datetimepicker table {
    background-color: var(--dt-surface);
    color: var(--dt-text);
    border-color: var(--dt-border);
}

body.dark-mode td.today {
    background: #7c5f19 !important;
    color: #fff;
}

body.dark-mode .datepicker table tbody td.day:hover,
body.dark-mode .datetimepicker table tbody td:hover,
body.dark-mode .datetimepicker table tbody td span:hover {
    background-color: var(--dt-surface-muted) !important;
    color: #fff;
}

body.dark-mode input[type="checkbox"].filled-in + label:not(.tswitch):before,
body.dark-mode input[type="radio"].filled-in + label:not(.tswitch):before {
    border-color: #64748b;
    background-color: var(--dt-input-bg);
}

body.dark-mode input[type="checkbox"].filled-in:checked + label:not(.tswitch):before,
body.dark-mode input[type="radio"].filled-in:checked + label:not(.tswitch):before {
    background-color: var(--dt-primary);
    border-color: var(--dt-primary);
}

#adianti_content .adianti_tabs_container,
#adianti_tab_content,
#adianti_tab_content .adianti-tab {
    background-color: var(--dt-surface);
    color: var(--dt-text-muted);
    border-color: var(--dt-border);
}

#adianti_tab_content .adianti-tab.active {
    color: var(--dt-text);
    border-bottom: 2px solid var(--dt-primary);
}

#adianti_content .tab-arrow {
    color: var(--dt-text-muted);
    border-color: var(--dt-border);
}

#adianti_content .tab-arrow:hover {
    background: var(--dt-surface-muted);
    color: var(--dt-text);
}

body.dark-mode .btn-default,
body.dark-mode .btn-light {
    background-color: #253449 !important;
    border-color: #46566d !important;
    color: var(--dt-text) !important;
}

body.dark-mode .btn-default:hover,
body.dark-mode .btn-light:hover {
    background-color: #33465f !important;
    color: #fff !important;
}

body.dark-mode .dropdown-menu {
    box-shadow: 0 18px 44px rgba(0, 0, 0, .36);
}

body.dark-mode .sweet-alert,
body.dark-mode .sweet-alert h2,
body.dark-mode .sweet-alert p {
    background-color: var(--dt-surface);
    color: var(--dt-text);
}

body.dark-mode .timeline:before {
    background: var(--dt-border);
}

body.dark-mode .timeline > li > .timeline-item,
body.dark-mode .timeline > .time-label > span,
body.dark-mode .timeline-inverse > li > .timeline-item {
    background: var(--dt-surface);
    color: var(--dt-text);
    border-color: var(--dt-border);
}

body.dark-mode .eventos-page {
    color: var(--dt-text) !important;
}

body.dark-mode .content-wrapper {
    background: linear-gradient(180deg, #101722 0%, #121b29 100%) !important;
}

body.dark-mode .eventos-header-title,
body.dark-mode .eventos-stat,
body.dark-mode .eventos-filter-bar,
body.dark-mode .eventos-table-panel,
body.dark-mode .eventos-table-panel .panel,
body.dark-mode .eventos-table-panel .card {
    background: var(--dt-surface) !important;
    border-color: var(--dt-border) !important;
    color: var(--dt-text) !important;
}

body.dark-mode .eventos-header-title,
body.dark-mode .eventos-stat,
body.dark-mode .eventos-filter-bar,
body.dark-mode .eventos-table-panel {
    box-shadow: 0 14px 34px rgba(0, 0, 0, .18);
}

body.dark-mode .eventos-header-title {
    background: linear-gradient(135deg, #1b2636 0%, #162132 100%) !important;
}

body.dark-mode .eventos-header-title .eyebrow {
    color: var(--dt-primary-strong) !important;
}

body.dark-mode .eventos-header-title h3,
body.dark-mode .eventos-stat-value,
body.dark-mode .eventos-table-panel .panel-heading,
body.dark-mode .eventos-table-panel .card-header,
body.dark-mode .eventos-title-cell strong {
    color: var(--dt-text) !important;
}

body.dark-mode .eventos-header-title p,
body.dark-mode .eventos-stat-label,
body.dark-mode .eventos-client,
body.dark-mode .eventos-muted,
body.dark-mode .eventos-sales-count,
body.dark-mode .eventos-empty-diarios {
    color: var(--dt-text-muted) !important;
}

body.dark-mode .eventos-filter-label {
    color: #dbeafe !important;
}

body.dark-mode .eventos-stat {
    background: linear-gradient(180deg, #1f2d40 0%, #192538 100%) !important;
}

body.dark-mode .eventos-stat i {
    box-shadow: 0 8px 18px rgba(0, 0, 0, .22);
}

body.dark-mode .eventos-stat-primary i {
    background: #3b82f6 !important;
}

body.dark-mode .eventos-stat-success i {
    background: #22c55e !important;
}

body.dark-mode .eventos-stat-warning i {
    background: #f59e0b !important;
}

body.dark-mode .eventos-filter-bar input.tfield,
body.dark-mode .eventos-filter-bar .form-control,
body.dark-mode .eventos-filter-bar select.tcombo {
    background-color: var(--dt-input-bg) !important;
    border-color: #4b5c73 !important;
    color: var(--dt-text) !important;
}

body.dark-mode .eventos-filter-bar input.tfield::placeholder,
body.dark-mode .eventos-filter-bar .form-control::placeholder {
    color: #9ca3af !important;
}

body.dark-mode .eventos-filter-bar input.tfield:focus,
body.dark-mode .eventos-filter-bar .form-control:focus,
body.dark-mode .eventos-filter-bar select.tcombo:focus {
    border-color: var(--dt-primary) !important;
    box-shadow: 0 0 0 .18rem rgba(77, 171, 247, .22) !important;
}

body.dark-mode .eventos-table-panel .panel-heading,
body.dark-mode .eventos-table-panel .card-header {
    background: var(--dt-surface-elevated) !important;
    border-bottom-color: var(--dt-border) !important;
}

body.dark-mode .eventos-table-wrap table {
    background: var(--dt-surface) !important;
}

body.dark-mode .eventos-table-wrap thead th,
body.dark-mode .eventos-table-wrap thead td {
    background: #223047 !important;
    border-bottom-color: var(--dt-border) !important;
    color: #e2e8f0 !important;
}

body.dark-mode .eventos-table-wrap tbody tr td {
    background: var(--dt-surface) !important;
    border-color: var(--dt-border) !important;
    color: var(--dt-text) !important;
    transition: background-color .15s ease, color .15s ease;
}

body.dark-mode .eventos-table-wrap tbody tr:nth-of-type(even) td {
    background: #1a2637 !important;
}

body.dark-mode .eventos-table-wrap tbody tr:hover td,
body.dark-mode .eventos-row-permanente.has-diarios.is-open td,
body.dark-mode .eventos-row-diario.is-open td {
    background: var(--dt-surface-hover) !important;
}

body.dark-mode .eventos-event-thumb {
    background: #0f172a !important;
    border-color: #475569 !important;
}

body.dark-mode .eventos-client i,
body.dark-mode .eventos-date i {
    color: var(--dt-text-soft) !important;
}

body.dark-mode .eventos-date,
body.dark-mode .eventos-diarios-toggle {
    background: rgba(59, 130, 246, .16) !important;
    border-color: rgba(147, 197, 253, .42) !important;
    color: #bfdbfe !important;
}

body.dark-mode .eventos-chip-info,
body.dark-mode .eventos-chip-daily,
body.dark-mode .eventos-chip-neutral,
body.dark-mode .eventos-chip-restaurant,
body.dark-mode .eventos-sales-yes,
body.dark-mode .eventos-sales-no {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .08);
}

body.dark-mode .eventos-chip {
    border: 1px solid transparent;
}

body.dark-mode .eventos-chip-info {
    background: rgba(14, 165, 233, .16) !important;
    border-color: rgba(125, 211, 252, .32) !important;
    color: #bae6fd !important;
}

body.dark-mode .eventos-chip-daily {
    background: rgba(34, 197, 94, .14) !important;
    border-color: rgba(134, 239, 172, .30) !important;
    color: #bbf7d0 !important;
}

body.dark-mode .eventos-chip-neutral {
    background: rgba(148, 163, 184, .16) !important;
    border-color: rgba(203, 213, 225, .26) !important;
    color: #e2e8f0 !important;
}

body.dark-mode .eventos-chip-restaurant {
    background: rgba(245, 158, 11, .15) !important;
    border-color: rgba(253, 230, 138, .30) !important;
    color: #fde68a !important;
}

body.dark-mode .eventos-sales-yes {
    background: rgba(245, 158, 11, .16) !important;
    border-color: rgba(253, 230, 138, .32) !important;
    color: #fde68a !important;
}

body.dark-mode .eventos-sales-no {
    background: rgba(148, 163, 184, .14) !important;
    border-color: rgba(203, 213, 225, .24) !important;
    color: #cbd5e1 !important;
}

body.dark-mode .eventos-status.badge-success,
body.dark-mode .badge.badge-success {
    background-color: #16a34a !important;
    color: #ffffff !important;
}

body.dark-mode .eventos-diarios-toggle:hover {
    background: rgba(59, 130, 246, .24) !important;
    color: #dbeafe !important;
}

body.dark-mode .eventos-table-wrap .tdatagrid_cell.action .dropdown-menu {
    background: var(--dt-surface-elevated) !important;
    border-color: var(--dt-border) !important;
}

body.dark-mode .eventos-table-wrap .tdatagrid_cell.action .dropdown-menu > li > a {
    color: var(--dt-text) !important;
}

body.dark-mode .eventos-table-wrap .tdatagrid_cell.action .dropdown-menu > li > a:hover,
body.dark-mode .eventos-table-wrap .tdatagrid_cell.action .dropdown-menu > li > a:focus {
    background: var(--dt-surface-muted) !important;
    color: #ffffff !important;
}

body.dark-mode .eventos-table-wrap .tdatagrid_cell.action .dropdown-menu .dropdown-header {
    color: var(--dt-text-muted) !important;
}

body.dark-mode .eventos-table-wrap .tdatagrid_cell.action .dropdown-menu .dropdown-divider {
    border-top-color: var(--dt-border) !important;
}

body.dark-mode .eventos-page .dropdown-toggle,
body.dark-mode .eventos-table-wrap .tdatagrid_cell.action .btn {
    background: #26364c !important;
    border-color: #46566d !important;
    color: #f8fafc !important;
}

body.dark-mode .eventos-page .dropdown-toggle:hover,
body.dark-mode .eventos-table-wrap .tdatagrid_cell.action .btn:hover {
    background: #33465f !important;
    border-color: #5b6b82 !important;
}

body.dark-mode .eventos-table-wrap tbody tr {
    background: var(--dt-surface) !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .18);
}

body.dark-mode .eventos-table-wrap tbody tr:nth-of-type(even) td {
    background: var(--dt-surface) !important;
}

body.dark-mode .evt-location {
    color: var(--dt-text-muted) !important;
}

body.dark-mode .evt-location i {
    color: var(--dt-text-soft) !important;
}

body.dark-mode .evt-parent-chip {
    color: #86efac !important;
}

body.dark-mode .evt-date-tile {
    background: rgba(45, 212, 191, .14) !important;
    border-color: rgba(94, 234, 212, .32) !important;
}

body.dark-mode .evt-date-tile strong {
    color: #5eead4 !important;
}

body.dark-mode .evt-date-tile small {
    color: #99f6e4 !important;
}

body.dark-mode .evt-date-arrow,
body.dark-mode .evt-date-empty {
    color: var(--dt-text-muted) !important;
}

body.dark-mode .eventos-row-diario {
    border-color: rgba(134, 239, 172, .30) !important;
}

body.dark-mode .eventos-row-permanente.has-diarios.is-open {
    box-shadow: 0 0 0 2px rgba(94, 234, 212, .35) !important;
}

body.dark-mode .eventos-table-wrap .tdatagrid_cell.action .dropdown-menu > li.dropdown-header:not(:has(~ li.dropdown-header)) {
    color: #fca5a5 !important;
}

body.dark-mode .eventos-table-wrap .tdatagrid_cell.action .dropdown-menu > li.dropdown-header:not(:has(~ li.dropdown-header)) ~ li:not(.dropdown-divider) > a {
    color: #fecaca !important;
}

body.dark-mode .eventos-table-wrap .tdatagrid_cell.action .dropdown-menu > li.dropdown-header:not(:has(~ li.dropdown-header)) ~ li:not(.dropdown-divider) > a:hover {
    background: rgba(248, 113, 113, .14) !important;
    color: #fee2e2 !important;
}

@media (max-width: 767.98px) {
    .dt-navbar-brand .brand-text,
    .brand-link .brand-text {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    #adianti_tab_content + #adianti_div_content {
        padding: 8px 0;
    }
}

html[data-bs-theme="dark"] {
    --dt-primary: #4dabf7;
    --dt-primary-strong: #74c0fc;
    --dt-bg: #101722;
    --dt-surface: #182231;
    --dt-surface-elevated: #202d3f;
    --dt-surface-muted: #253449;
    --dt-surface-hover: #2a3b52;
    --dt-border: #3a4a60;
    --dt-text: #f8fafc;
    --dt-text-muted: #cbd5e1;
    --dt-text-soft: #94a3b8;
    --dt-input-bg: #111827;
    --dt-input-disabled: #263142;
    --dt-focus: rgba(77, 171, 247, .32);
}

.app-wrapper {
    min-height: 100vh;
}

.app-header.main-header {
    min-height: 56px;
    border-bottom: 1px solid var(--dt-border);
    box-shadow: 0 1px 0 rgba(15, 23, 42, .06);
}

.app-header .container-fluid {
    gap: .5rem;
}

.app-sidebar.main-sidebar {
    border-right: 1px solid rgba(148, 163, 184, .18);
}

.app-sidebar .sidebar-brand {
    min-height: 56px;
    display: flex;
    align-items: center;
    padding: .5rem .75rem;
    border-bottom: 1px solid rgba(148, 163, 184, .18);
}

.app-sidebar .brand-link,
.dt-navbar-brand {
    color: inherit;
    min-width: 0;
}

.app-sidebar .brand-link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    width: 100%;
}

.app-sidebar .sidebar-wrapper {
    height: calc(100vh - 56px);
    overflow-y: auto;
    padding-bottom: 1rem;
}

.app-sidebar .user-panel {
    border-bottom: 1px solid rgba(148, 163, 184, .20);
    margin-left: .75rem;
    margin-right: .75rem;
}

.app-sidebar .user-panel .image img {
    width: 34px;
    height: 34px;
    object-fit: cover;
}

.app-sidebar .user-panel .info {
    min-width: 0;
    line-height: 1.2;
}

.app-sidebar .user-panel small {
    color: rgba(255, 255, 255, .68);
    display: block;
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#side-menu.sidebar-menu {
    gap: 2px;
    padding: 0 .5rem;
}

#side-menu.sidebar-menu .nav-link {
    border-radius: 6px;
    min-height: 38px;
}

#side-menu.sidebar-menu .nav-link p {
    margin: 0;
}

#side-menu.sidebar-menu .nav-arrow,
#side-menu.sidebar-menu .right {
    margin-left: auto;
    transition: transform .18s ease;
}

#side-menu.sidebar-menu .menu-open > .nav-link .nav-arrow,
#side-menu.sidebar-menu .menu-open > .nav-link .right,
#side-menu.sidebar-menu .nav-item.menu-open > .nav-link .nav-arrow,
#side-menu.sidebar-menu .nav-item.menu-open > .nav-link .right {
    transform: rotate(90deg);
}

.app-main.content-wrapper {
    background: var(--dt-bg);
    min-height: calc(100vh - 56px);
}

.app-content.content {
    padding-top: 16px;
    padding-bottom: 24px;
}

.app-content > .container-fluid {
    max-width: none;
}

.app-footer.main-footer {
    min-height: 48px;
    border-top: 1px solid var(--dt-border);
    background: var(--dt-surface);
    color: var(--dt-text-muted);
}

.dt-footer-admin-link {
    color: var(--dt-primary-strong);
}

.menu-user .user-header {
    height: auto;
    padding: 1rem;
    text-align: center;
}

.menu-user .user-header img {
    width: 72px;
    height: 72px;
    object-fit: cover;
}

.menu-user .user-header p {
    margin: .75rem 0 0;
}

.menu-user .user-header a {
    display: block;
    font-size: 12px;
}

body.dark-mode .app-header.main-header,
body.dark-mode .app-footer.main-footer,
body.dark-mode .app-main.content-wrapper {
    background-color: var(--dt-surface) !important;
    color: var(--dt-text);
    border-color: var(--dt-border);
}

body.dark-mode .app-sidebar.main-sidebar {
    background-color: #121c2a !important;
}

body.dark-mode #side-menu.sidebar-menu .nav-link.active {
    background: linear-gradient(90deg, rgba(77, 171, 247, .22), rgba(77, 171, 247, .08)) !important;
    color: #fff;
}

body.dark-mode #side-menu.sidebar-menu .nav-link:hover,
body.dark-mode #side-menu.sidebar-menu .nav-link:focus {
    background: var(--dt-surface-muted);
    color: #fff;
}
