/* BECO U4 v1.7.4 / refinement of interactive components, not a separate theme engine.
   Scope: Gantt, activity column sizing, money ledger, dialogs and theme contrast.
   No API/SQL modifications. Loaded LAST, after Tailwind and legacy modules. */
:root[data-u4-theme="dark"]{
 --v174-surface:#1b2e43;--v174-surface-hi:#223a51;--v174-field:#15283c;
 --v174-overlay:#1a3045;--v174-outline:#385369;--v174-muted:#aac2d3;
 --v174-text:#edf5fa;--v174-track:#263d52;--v174-accent:#68c7ba;
 --v174-quiet:#92aabd;--v174-elevated:#20384f;
}
:root[data-u4-theme="light"]{
 --v174-surface:#dde7ec;--v174-surface-hi:#d0dfe6;--v174-field:#d4e2e9;
 --v174-overlay:#e5edf1;--v174-outline:#b3c7d2;--v174-muted:#486779;
 --v174-text:#193748;--v174-track:#bfced6;--v174-accent:#197e80;
 --v174-quiet:#587587;--v174-elevated:#d7e4eb;
 --v170-canvas:#d9e4e9;--v170-surface:#e7eef1;--v170-panel:#dce8ed;
 --v170-shade:#cedee6;--v170-border:#afc4d0;--v170-muted:#516f7c;
 --u4-surface:#e2ebef;--u4-canvas:#d7e3ea;--u4-line:#b5c9d4;
}
/* Shared UI controls: proper foreground and background, including hover, focus and option lists */
html[data-u4-theme] body :is(.dep-panel,.ws-editor,.baseline-panel,.trash-panel,.u4-col-menu,.u4-row-context-menu,.row-menu,.money-drawer,.drawer,.modal,.move-modal,.an-cut-panel){color:var(--v174-text)!important;border-color:var(--v174-outline)!important}
html[data-u4-theme] body :is(.dep-panel,.ws-editor,.baseline-panel,.trash-panel,.u4-col-menu,.u4-row-context-menu,.row-menu,.money-drawer,.drawer,.modal,.move-modal){background:var(--v174-overlay)!important}
html[data-u4-theme] body :is(.dep-head,.ws-editor-head,.trash-head,.baseline-panel-header,.money-drawer-head,.drawer-head,.modal-head){background:var(--v174-surface-hi)!important;color:var(--v174-text)!important;border-color:var(--v174-outline)!important}
html[data-u4-theme] body :is(.dep-head,.ws-editor-head,.trash-head,.baseline-panel-header,.money-drawer-head,.modal-head) :is(h2,h3,h4,strong,small,.eyebrow),
html[data-u4-theme] body :is(.dep-panel,.ws-editor,.baseline-panel,.trash-panel,.u4-col-menu,.u4-row-context-menu,.row-menu,.money-drawer,.drawer,.modal,.move-modal) :is(h2,h3,h4,strong){color:var(--v174-text)!important}
html[data-u4-theme] body :is(.dep-panel,.ws-editor,.baseline-panel,.trash-panel,.u4-col-menu,.money-drawer,.drawer,.modal,.move-modal) :is(p,small,label,.hint,.ws-color-tip,.dep-help,.dep-form label){color:var(--v174-muted)!important}
html[data-u4-theme] body :is(.dep-panel,.ws-editor,.baseline-panel,.trash-panel,.u4-col-menu,.u4-row-context-menu,.row-menu,.money-drawer,.drawer,.modal,.move-modal) :is(input,select,textarea){background:var(--v174-field)!important;color:var(--v174-text)!important;border:1px solid var(--v174-outline)!important;outline-color:var(--v174-accent)!important}
html[data-u4-theme] body :is(.dep-panel,.ws-editor,.baseline-panel,.trash-panel,.u4-col-menu,.money-drawer,.drawer,.modal,.move-modal) :is(input,select,textarea):focus-visible{outline:2px solid var(--v174-accent)!important;outline-offset:1px!important}
html[data-u4-theme] body select option{background:var(--v174-overlay);color:var(--v174-text)}
html[data-u4-theme] body :is(.dep-panel,.ws-editor,.baseline-panel,.trash-panel,.u4-col-menu,.u4-row-context-menu,.row-menu,.money-drawer,.drawer,.modal,.move-modal) :is(button:not(.primary),.action.subtle){background:var(--v174-surface-hi)!important;border-color:var(--v174-outline)!important;color:var(--v174-text)!important}
html[data-u4-theme] body :is(.dep-panel,.ws-editor,.baseline-panel,.trash-panel,.u4-col-menu,.u4-row-context-menu,.row-menu,.money-drawer,.drawer,.modal,.move-modal) :is(button:not(.primary),.action.subtle):hover{background:var(--v174-elevated)!important;color:var(--v174-text)!important}
html[data-u4-theme] body :is(.dep-panel,.ws-editor,.baseline-panel,.trash-panel,.u4-col-menu,.money-drawer,.drawer,.modal,.move-modal) :is(.dep-submit,button.primary,.action.primary){background:#217e7a!important;color:white!important;border-color:#217e7a!important}
html[data-u4-theme] body .dep-panel{top:52px;bottom:12px;padding:0 17px 20px!important;scrollbar-color:var(--v174-outline) var(--v174-surface)}
html[data-u4-theme] body .dep-head{position:sticky;top:0;z-index:2;min-height:90px;padding:15px 17px!important;margin:0 -17px 0!important}
html[data-u4-theme] body .dep-head h3{font-size:16px!important;line-height:1.3!important;margin:5px 0!important;white-space:normal!important}
html[data-u4-theme] body .dep-head small{color:var(--v174-muted)!important}
html[data-u4-theme] body .dep-dates>*{background:var(--v174-surface-hi)!important;color:var(--v174-text)!important;border-color:var(--v174-outline)!important}
html[data-u4-theme] body .dep-dates :is(small,span){color:var(--v174-muted)!important}
html[data-u4-theme] body .dep-group{border-color:var(--v174-outline)!important}
html[data-u4-theme] body .dep-group h4{color:var(--v174-text)!important}
html[data-u4-theme] body .dep-form :is(select,input){min-height:33px!important}
html[data-u4-theme] body .dep-panel :is(.dep-pred-list,.dep-succ-list,.dep-list) {background:transparent!important}
html[data-u4-theme] body .baseline-panel-header{position:sticky;top:0;z-index:2}
html[data-u4-theme] body .baseline-panel :is(.baseline-explainer,.baseline-consent,.baseline-empty,.baseline-compare,.baseline-row),
html[data-u4-theme] body .ws-preview{background:var(--v174-surface-hi)!important;border-color:var(--v174-outline)!important;color:var(--v174-text)!important}
html[data-u4-theme] body .u4-col-menu [data-u4-view].active{background:var(--v174-accent)!important;color:white!important;border-color:var(--v174-accent)!important}
html[data-u4-theme] body .u4-row-context-menu button.is-danger,html[data-u4-theme] body .row-menu button:last-child{color:#ee9f9f!important}
html[data-u4-theme] body :is(.u4-col-menu,.u4-row-context-menu,.row-menu,.ws-editor,.trash-panel,.baseline-panel,.dep-panel){max-height:100dvh;overscroll-behavior:contain;scrollbar-width:thin}
/* Fix dark menus opened by the toolbar (some legacy components apply white inline backgrounds). */
html[data-u4-theme="dark"] body :is(.u4-col-menu,.u4-row-context-menu,.row-menu,.dep-panel,.ws-editor,.baseline-panel,.trash-panel) :is(.section-name,.dep-head,.baseline-panel-header,.ws-editor-head,.trash-head){background:var(--v174-surface-hi)!important;color:var(--v174-text)!important}
/* --- GANTT: thicker readable bars with distinct status semantics.
   Field-specific classes generated by assets/app.js keep progress and dependencies intact. */
html body #detail.schedule-mode .gantt-layout{--label-width:398px!important}
html body #detail.schedule-mode .gantt-heading{height:52px!important;min-height:52px!important;background:var(--v174-surface-hi)!important}
html body #detail.schedule-mode .gantt-heading :is(.gantt-label,.gantt-months){height:52px!important;min-height:52px!important}
html body #detail.schedule-mode .gantt-months span{font-size:10px!important;letter-spacing:.04em!important;font-weight:750!important;color:var(--v174-muted)!important}
html body #detail.schedule-mode .gantt-heading .gantt-label{background:var(--v174-surface-hi)!important}
html body #detail.schedule-mode .gantt-row.gantt-task,html body #detail.schedule-mode .gantt-row.gantt-subtask{height:47px!important;min-height:47px!important}
html body #detail.schedule-mode .gantt-row.gantt-task :is(.gantt-track,.gantt-label),html body #detail.schedule-mode .gantt-row.gantt-subtask :is(.gantt-track,.gantt-label){height:47px!important;min-height:47px!important}
html body #detail.schedule-mode .gantt-row.gantt-workstream{height:57px!important;min-height:57px!important}
html body #detail.schedule-mode .gantt-workstream :is(.gantt-track,.gantt-label){height:57px!important;min-height:57px!important}
html body #detail.schedule-mode .gantt-row.gantt-section{height:50px!important;min-height:50px!important}
html body #detail.schedule-mode .gantt-section :is(.gantt-track,.gantt-label){height:50px!important;min-height:50px!important}
html body #detail.schedule-mode .gantt-label{gap:7px!important}
html body #detail.schedule-mode .v173-gantt-task-copy{gap:8px!important}
html body #detail.schedule-mode .v173-gantt-task-title{font-size:12px!important;letter-spacing:.006em!important;font-weight:600!important}
html body #detail.schedule-mode .gantt-group-name{font-size:12.5px!important}
html body #detail.schedule-mode .gantt-task .gantt-track,html body #detail.schedule-mode .gantt-subtask .gantt-track{background-image:repeating-linear-gradient(to right,transparent 0,transparent calc(100% / var(--months) - 1px),color-mix(in srgb,var(--v174-outline) 24%,transparent) calc(100% / var(--months) - 1px),color-mix(in srgb,var(--v174-outline) 24%,transparent) calc(100% / var(--months)))!important}
html body #detail.schedule-mode .gantt-bar.gantt-progress-bar{
 top:12px!important;height:23px!important;min-height:23px!important;min-width:7px!important;
 border-radius:8px!important;border:1px solid rgba(206,234,239,.2)!important;opacity:1!important;
 --v174-bar:#3188a1;
 background:color-mix(in srgb,var(--v174-bar) 38%,var(--v174-track))!important;
 box-shadow:0 3px 9px rgba(4,23,34,.2),inset 0 1px 1px rgba(255,255,255,.14)!important;
 transition:filter .16s ease,transform .16s ease!important;
}
html body #detail.schedule-mode .gantt-bar.gantt-progress-bar .gantt-physical{background:var(--v174-bar)!important;height:100%;min-width:0;border-radius:7px!important;box-shadow:inset 0 -3px 4px rgba(8,36,49,.15)!important}
html body #detail.schedule-mode .gantt-progress-bar.gantt-phase-current{--v174-bar:#258ea9}
html body #detail.schedule-mode .gantt-progress-bar.gantt-phase-future{--v174-bar:#7b9cad}
html body #detail.schedule-mode .gantt-progress-bar.gantt-phase-complete{--v174-bar:#32a58e}
html body #detail.schedule-mode .gantt-progress-bar.gantt-phase-late{--v174-bar:#d47b65}
html body #detail.schedule-mode .gantt-progress-bar.gantt-phase-hold{--v174-bar:#b99b60}
html body #detail.schedule-mode .gantt-progress-bar:hover{filter:brightness(1.15)!important;transform:translateY(-1px)!important}
html body #detail.schedule-mode .v174-bar-label{position:absolute;right:8px;top:50%;transform:translateY(-50%);font-size:9px;color:#fff;font-weight:850;z-index:2;line-height:1;pointer-events:none;text-shadow:0 1px 3px #0007}
html body #detail.schedule-mode .gantt-bar.gantt-group-bar{top:20px!important;height:17px!important;min-height:17px!important;min-width:6px!important;opacity:1!important;border-radius:8px!important;
 background:color-mix(in srgb,var(--front-color) 52%,var(--v174-surface-hi))!important;
 border:1px solid color-mix(in srgb,var(--front-color) 45%,var(--v174-outline))!important;
 box-shadow:inset 0 2px 1px rgba(255,255,255,.16),0 2px 7px rgba(8,28,47,.15)!important}
html body #detail.schedule-mode .gantt-section .gantt-bar.gantt-group-bar{top:18px!important;height:14px!important;min-height:14px!important;opacity:.9!important}
html body #detail.schedule-mode .gantt-bar.gantt-group-bar:before,html body #detail.schedule-mode .gantt-bar.gantt-group-bar:after{content:"";position:absolute;top:-1px;bottom:-1px;width:5px;background:var(--front-color);border-radius:6px}
html body #detail.schedule-mode .gantt-bar.gantt-group-bar:before{left:0}html body #detail.schedule-mode .gantt-bar.gantt-group-bar:after{right:0}
html body #detail.schedule-mode .gantt-milestone{top:15px!important;transform:scale(1.13)!important}
html body #detail.schedule-mode .gantt-today{border-left:2px dashed #ea7463!important;opacity:.9}
html body #detail.schedule-mode .dependency-lines{top:52px!important;pointer-events:none}
html body #detail.schedule-mode .gantt-legend{display:flex!important;align-items:center!important;gap:16px!important;padding:12px 15px!important;font-size:10px!important}
html body #detail.schedule-mode .gantt-legend .legend-dot{height:10px!important;width:10px!important;border-radius:3px!important}
html body #detail.schedule-mode .gantt-workstream .gantt-label{box-shadow:inset 4px 0 var(--front-color)!important}
html body #detail.schedule-mode .gantt-section .gantt-label{box-shadow:inset 2px 0 color-mix(in srgb,var(--front-color) 75%,var(--v174-surface-hi))!important}
/* --- COMPACT COLUMNS: do not expand a four-column view across a 1600px panel. */
html body #activityTable.activity-table.u4-custom-columns{width:var(--u4-compact-width,860px)!important;min-width:var(--u4-column-min-width,560px)!important;max-width:100%!important;table-layout:fixed!important}
html body #detail:not(.schedule-mode) #activityTable .task-title-cell{width:auto!important;min-width:0!important;vertical-align:middle}
html body #detail:not(.schedule-mode) #activityTable .v171-activity-cell{display:block!important;min-width:0!important;width:100%!important}
html body #detail:not(.schedule-mode) #activityTable .task-name{display:flex!important;min-width:0!important;width:100%!important;gap:5px!important}
html body #detail:not(.schedule-mode) #activityTable .task-name .grid-title{display:block!important;flex:1 1 auto!important;min-width:0!important;max-width:none!important;width:100%!important;
 font-size:11.5px!important;font-weight:610!important;line-height:1.25!important;height:auto!important;min-height:27px!important;max-height:52px!important;
 field-sizing:content;white-space:pre-wrap!important;overflow-wrap:break-word!important;overflow-y:auto!important;resize:vertical!important;padding:5px 4px!important}
html body #detail:not(.schedule-mode) #activityTable .row-more{flex:none!important}
html body #detail:not(.schedule-mode) #activityTable .task-row td{padding:4px 6px!important}
html body #detail:not(.schedule-mode) #activityTable .task-row:hover td{background:color-mix(in srgb,var(--v174-accent) 5%,var(--v174-surface))!important}
html body #detail:not(.schedule-mode) #activityTable .task-row .grid-title:hover{background:var(--v174-surface-hi)!important}
/* --- BUDGET JOURNAL: soft cards, grouping, and minimal chrome in editable cells. */
html[data-u4-theme] body.u4-v164-budget .workspace,html[data-u4-theme] body.u4-v164-budget .workspace>main{background:var(--v174-surface)!important}
html[data-u4-theme] body.u4-v164-budget .metrics .metric{background:var(--v174-overlay)!important;border:1px solid var(--v174-outline)!important;border-radius:11px!important;padding:11px 14px!important}
html[data-u4-theme] body.u4-v164-budget .u4-v164-budget-panel{background:var(--v174-overlay)!important;border:1px solid var(--v174-outline)!important;border-radius:12px!important;padding:0!important;overflow:hidden!important}
html[data-u4-theme] body.u4-v164-budget .budget-toolbar{background:var(--v174-surface-hi)!important;border-color:var(--v174-outline)!important}
html[data-u4-theme] body.u4-v164-budget .u4-v164-budget-scroll{background:var(--v174-overlay)!important}
html[data-u4-theme] body.u4-v164-budget .data-table{border-collapse:separate!important;border-spacing:0!important;background:var(--v174-overlay)!important;color:var(--v174-text)!important}
html[data-u4-theme] body.u4-v164-budget .data-table thead th{background:var(--v174-surface-hi)!important;color:var(--v174-muted)!important;border-right:0!important;border-bottom:1px solid var(--v174-outline)!important;padding:10px 11px!important;height:36px!important;font-size:10px!important}
html[data-u4-theme] body.u4-v164-budget .data-table thead .sort{text-transform:none!important;letter-spacing:.015em!important;font-size:10px!important;color:var(--v174-muted)!important}
html[data-u4-theme] body.u4-v164-budget .data-table tbody tr:not(.group-row):not(.section-add-row) td{background:var(--v174-overlay)!important;border-right:none!important;border-bottom:1px solid color-mix(in srgb,var(--v174-outline) 45%,transparent)!important;height:42px!important;padding:7px 10px!important;font-size:11px!important}
html[data-u4-theme] body.u4-v164-budget .data-table tbody tr:nth-child(even):not(.group-row):not(.section-add-row) td{background:color-mix(in srgb,var(--v174-overlay) 88%,var(--v174-surface-hi))!important}
html[data-u4-theme] body.u4-v164-budget .data-table tbody tr:not(.group-row):hover td{background:var(--v174-surface-hi)!important}
html[data-u4-theme] body.u4-v164-budget .data-table tbody tr.group-row td{background:var(--v174-surface-hi)!important;border-top:9px solid var(--v174-overlay)!important;border-bottom:1px solid var(--v174-outline)!important;
 height:53px!important;color:var(--v174-text)!important;font-weight:800!important;padding:10px!important}
html[data-u4-theme] body.u4-v164-budget .data-table .group-row td:first-child{box-shadow:inset 3px 0 var(--v174-accent)!important}
html[data-u4-theme] body.u4-v164-budget .data-table .code-open{border-radius:6px!important;background:var(--v174-field)!important;color:var(--v174-text)!important;font-size:10px!important}
html[data-u4-theme] body.u4-v164-budget .data-table .item-name .indent{display:flex;align-items:center;gap:6px;min-width:0!important;width:100%!important}
html[data-u4-theme] body.u4-v164-budget .data-table .item-name .field-title{flex:1!important;min-width:0!important;width:100%!important;font-weight:650!important;font-size:11.5px!important}
html[data-u4-theme] body.u4-v164-budget .data-table :is(.inline-cell,.field-title){background:transparent!important;color:var(--v174-text)!important;border:1px solid transparent!important;box-shadow:none!important;border-radius:6px!important}
html[data-u4-theme] body.u4-v164-budget .data-table :is(.inline-cell,.field-title):hover,html[data-u4-theme] body.u4-v164-budget .data-table :is(.inline-cell,.field-title):focus{background:var(--v174-field)!important;border:1px solid var(--v174-accent)!important}
html[data-u4-theme] body.u4-v164-budget .data-table .money-col{font-variant-numeric:tabular-nums!important;text-align:right!important}
html[data-u4-theme] body.u4-v164-budget .data-table .money-display{grid-template-columns:0 1fr!important;gap:0!important}
html[data-u4-theme] body.u4-v164-budget .data-table .money-display .money-label{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
html[data-u4-theme] body.u4-v164-budget .data-table .money-figure{font-size:11.5px!important;color:var(--v174-text)!important;letter-spacing:.005em!important}
html[data-u4-theme] body.u4-v164-budget .data-table .money-input{grid-template-columns:0 1fr!important;gap:0!important}
html[data-u4-theme] body.u4-v164-budget .data-table .money-input .money-unit{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
html[data-u4-theme] body.u4-v164-budget .data-table :is(.money-display,.money-input){padding:0 3px!important}
html[data-u4-theme] body.u4-v164-budget .data-table .row-menu{background:var(--v174-overlay)!important;border-color:var(--v174-outline)!important}
html[data-u4-theme] body.u4-v164-budget .data-table .row-menu button{color:var(--v174-text)!important}
/* Light mode should feel matte: budget and analytics tables are blue-grey, not paper white. */
html[data-u4-theme="light"] body.u4-v164-budget :is(.workspace,.panel,.data-table,.table-scroll),html[data-u4-theme="light"] body.u4-v164-analytics :is(.workspace,.panel,.an-card,.an-table,.an-kpi,.an-title){background:#dce7ed!important;border-color:#b1c6d0!important}
html[data-u4-theme="light"] body.u4-v164-budget .data-table tbody tr:not(.group-row) td{background:#e3ecf0!important}
html[data-u4-theme="light"] body.u4-v164-budget .data-table tbody tr:nth-child(even):not(.group-row) td{background:#dce7ec!important}
html[data-u4-theme="light"] body.u4-v164-budget .data-table tbody tr.group-row td{background:#cbdde6!important}
html[data-u4-theme="light"] body.u4-v164-analytics :is(.an-card,.an-kpi,.an-title,.an-tile){background:#dce7eb!important;border-color:#b4c8d2!important}
html[data-u4-theme="light"] body.u4-v164-analytics :is(.an-table th,.cut-list th,.comparison-table th){background:#ccdce4!important;color:#28495d!important}
html[data-u4-theme="light"] body.u4-v164-analytics :is(.an-table td,.cut-list td,.comparison-table td){background:#e3ebef!important;border-color:#b8cad4!important;color:#234154!important}
@media(max-width:1000px){html body #detail.schedule-mode .gantt-layout{--label-width:310px!important}}
@media(max-width:650px){html body #detail.schedule-mode .gantt-layout{--label-width:255px!important}html body #detail.schedule-mode .gantt-activity-link{display:none!important}}

/* Values inside monetary cells need their own flex width; a zero-size grid track
   would collapse figures and inputs in the former CSS. */
html[data-u4-theme] body.u4-v164-budget .data-table .money-display,
html[data-u4-theme] body.u4-v164-budget .data-table .money-input{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:0!important;width:100%!important;min-width:0!important;max-width:100%!important;overflow:visible!important}
html[data-u4-theme] body.u4-v164-budget .data-table .money-display .money-figure{display:block!important;flex:1 1 auto!important;width:100%!important;min-width:0!important;max-width:none!important;overflow:visible!important;white-space:nowrap!important;text-align:right!important}
html[data-u4-theme] body.u4-v164-budget .data-table .money-input .inline-cell{display:block!important;flex:1 1 auto!important;min-width:0!important;width:100%!important;max-width:100%!important;text-align:right!important;overflow:visible!important}
/* Matte Gantt surface in light mode — no white/blue striped sheet effect. */
html[data-u4-theme="light"] body #detail.schedule-mode .gantt-row :is(.gantt-label,.gantt-track){background-color:#e0e9ee!important;border-bottom-color:#c4d3dc!important}
html[data-u4-theme="light"] body #detail.schedule-mode .gantt-row.gantt-task:nth-child(odd) :is(.gantt-label,.gantt-track),
html[data-u4-theme="light"] body #detail.schedule-mode .gantt-row.gantt-subtask:nth-child(odd) :is(.gantt-label,.gantt-track){background-color:#d5e2e9!important}
html[data-u4-theme="light"] body #detail.schedule-mode .gantt-row.gantt-workstream :is(.gantt-label,.gantt-track){background-color:#cadbe5!important}
html[data-u4-theme="light"] body #detail.schedule-mode .gantt-row.gantt-section :is(.gantt-label,.gantt-track){background-color:#d1dfe8!important}
/* Explicit toolbar/nav colors: some old button utilities were retaining light fills
   while the surrounding budget shell was dark. */
html[data-u4-theme="dark"] body.u4-v164-budget .u4-v164-budget-toolbar :is(.action:not(.primary),.tabs button,.table-actions button:not(.primary),.budget-secondary-actions button:not(.primary)),
html[data-u4-theme="dark"] body.u4-v164-budget .data-table :is(.sort,.code-open,.collapse,.more,.section-add-button),
html[data-u4-theme="dark"] body.u4-v164-budget .top .icon-btn{
 background:#253e54!important;color:#e5f0f8!important;border-color:#3b586e!important;box-shadow:none!important;
}
html[data-u4-theme="dark"] body.u4-v164-budget .u4-v164-budget-toolbar :is(.action:not(.primary),.tabs button):hover,
html[data-u4-theme="dark"] body.u4-v164-budget .data-table :is(.sort,.code-open,.collapse,.more,.section-add-button):hover{
 background:#305068!important;color:#ffffff!important;border-color:#4e778a!important;
}
html[data-u4-theme="dark"] body.u4-v164-budget .data-table :is(.sort,.code-open,.collapse,.more,.section-add-button) span{color:#b2c8d5!important}
html[data-u4-theme="dark"] body.u4-v164-budget .u4-v164-budget-toolbar .tabs button.active{background:#25636b!important;color:#f5ffff!important;border:1px solid #3fa69f!important}
html[data-u4-theme="dark"] body.u4-v164-budget :is(.budget-toolbar,.budget-toolbar .filters input,.budget-toolbar .filters select){color:#e3f0f6!important;border-color:#365368!important}
html[data-u4-theme="dark"] body.u4-v164-budget :is(.code-open,.group-chip,.money-col .inline-cell,.item-name .inline-cell){color:#ecf4f9!important}
html[data-u4-theme="dark"] body.u4-v164-budget .section-add-row :is(td,button){background:#1a3045!important;color:#aecedb!important}
html[data-u4-theme="dark"] body .u4-unified-side :is(.side-link.current,.side-link.active){background:#1d555b!important;border-color:#3f9294!important;color:#f2fffe!important}
html[data-u4-theme="dark"] body .u4-unified-side :is(.side-link.current,.side-link.active):hover{background:#27686b!important;color:#fff!important}
html[data-u4-theme="light"] body.u4-v164-budget .u4-v164-budget-toolbar :is(.action:not(.primary),.tabs button),
html[data-u4-theme="light"] body.u4-v164-budget .data-table :is(.sort,.code-open,.collapse,.more){background:#d1e1e8!important;color:#264a5c!important;border-color:#b4cad6!important}
html[data-u4-theme="light"] body.u4-v164-budget .u4-v164-budget-toolbar .tabs button.active{background:#b9d7d9!important;color:#134d50!important;border:1px solid #77acb2!important}
