/* Colori scuri delle componenti esistenti, senza cambiare geometria o calcoli. */
html[data-theme=dark] .accessi-matrix th,html[data-theme=dark] .accessi-matrix td{border-bottom:1px solid #3e5748!important}
html[data-theme=dark] .accessi-matrix th:first-child{background:#20372b!important}
html[data-theme=dark] .accessi-matrix thead th{background:#294331!important}
html[data-theme=dark] .accessi-readonly{border:1px solid #3e5748!important}
@media(max-width:650px){}
@media(max-width:650px){html[data-theme=dark] .accessi-nav>summary{color:#e2ece5!important}}
html[data-theme=dark] .sidebar{color:#e2ece5!important}
html[data-theme=dark] .brand-icon{background:#294331!important;color:#a6e2bb!important}
html[data-theme=dark] .brand small{color:#b6c7bc!important}
html[data-theme=dark] .nav-label{color:#b6c7bc!important}
html[data-theme=dark] .side-bottom{color:#e2ece5!important}
html[data-theme=dark] .side-bottom p{color:#b6c7bc!important}
html[data-theme=dark] .dot{background:#294331!important}
html[data-theme=dark] .primary{color:#e2ece5!important}
html[data-theme=dark] .secondary{background:#20372b!important}
html[data-theme=dark] .card{background:var(--#20372b)!important}
html[data-theme=dark] label{color:#b6c7bc!important}
html[data-theme=dark] input,html[data-theme=dark] select,html[data-theme=dark] textarea{border:1px solid #3e5748!important;background:#20372b!important}
html[data-theme=dark] input:disabled,html[data-theme=dark] select:disabled{background:#294331!important}
html[data-theme=dark] th{background:#294331!important}
html[data-theme=dark] td{border-bottom:1px solid #3e5748!important}
html[data-theme=dark] tr:hover td{background:#294331!important}
html[data-theme=dark] .positive{color:#a6e2bb!important}
html[data-theme=dark] .tag{background:#294331!important;color:#e2ece5!important}
html[data-theme=dark] .danger{color:#ffad9f!important}
html[data-theme=dark] .success{background:#294331!important;color:#a6e2bb!important}
html[data-theme=dark] .error{background:#472e25!important;color:#ffad9f!important}
@media(min-width:1600px){}
@media(max-width:1150px){}
@media(max-width:740px){}
@media(max-width:740px){}
html[data-theme=dark] .batch-tools{border:1px solid #3e5748!important;background:#20372b!important}
html[data-theme=dark] .batch-tools p{color:#b6c7bc!important}
html[data-theme=dark] .batch-tools button,html[data-theme=dark] .batch-one{border:1px solid #3e5748!important;background:#20372b!important;color:#a6e2bb!important}
html[data-theme=dark] .batch-action[data-action="annulla"],html[data-theme=dark] .batch-one[data-action="annulla"]{color:#ffad9f!important;border-color:#3e5748!important}
html[data-theme=dark] #batch-panel{border-top:1px solid #3e5748!important}
html[data-theme=dark] #batch-confirm{color:#e2ece5!important}
html[data-theme=dark] .export-tools{background:#294331!important}
html[data-theme=dark] .export-tools p{color:#b6c7bc!important}
html[data-theme=dark] .history-table th{background:#294331!important}
html[data-theme=dark] .history-table tbody th{background:#294331!important}
html[data-theme=dark] .history-balance:hover{background:#294331!important}
html[data-theme=dark] .history-current{background:#294331!important}
html[data-theme=dark] .budget-scroll{border:1px solid #3e5748!important}
html[data-theme=dark] .budget-scroll th{background:#294331!important}
html[data-theme=dark] .budget-scroll details[open]{background:#294331!important}
html[data-theme=dark] #budget-edit-status{color:#e2ece5!important}
@media(max-width:850px){}
html[data-theme=dark] .budget-simple .budget-scroll small{color:#b6c7bc!important}
html[data-theme=dark] .budget-surplus{color:#a6e2bb!important}
html[data-theme=dark] .budget-overrun{color:#ffad9f!important;background-color:#472e25!important}

html[data-theme=dark] .grid140 .grid-scroll td:first-child,html[data-theme=dark] .grid140 .grid-scroll thead th:first-child{background:#294331!important}
html[data-theme=dark] .grid140 .grid-scroll tbody th,html[data-theme=dark] .grid140 .grid-scroll thead th:nth-child(2){background:#294331!important}
html[data-theme=dark] .avviso136{color:#b6c7bc!important}
html[data-theme=dark] .griglia136{border:1px solid #3e5748!important;background:#20372b!important}
html[data-theme=dark] .griglia136 table{color:#a6e2bb!important}
html[data-theme=dark] .griglia136 th,html[data-theme=dark] .griglia136 td{border-right:1px solid #3e5748!important;border-bottom:1px solid #3e5748!important}
html[data-theme=dark] .griglia136 th{color:#e2ece5!important}
html[data-theme=dark] .griglia136 th a{color:#e2ece5!important}
html[data-theme=dark] .griglia136 thead tr:nth-child(2) th{background:#294331!important}
html[data-theme=dark] .griglia136 tbody tr:nth-child(even){background:#294331!important}
html[data-theme=dark] .griglia136 tbody tr:hover{background:#294331!important}
html[data-theme=dark] .griglia136 .negativo136{color:#ffad9f!important}
html[data-theme=dark] .griglia136 .contabilizzato136{background:#294331!important}
html[data-theme=dark] .testi136{background:#20372b!important;border:2px solid #3e5748!important}
html[data-theme=dark] .c137 .sub137{color:#b6c7bc!important}
html[data-theme=dark] .scroll137{border:1px solid #3e5748!important}
html[data-theme=dark] .scroll137 th{color:#e2ece5!important}
html[data-theme=dark] .scroll137 td{border-bottom:1px solid #3e5748!important}
html[data-theme=dark] .scroll137 tbody tr:nth-child(even){background:#294331!important}
html[data-theme=dark] .scroll137 tbody tr:hover{background:#294331!important}
html[data-theme=dark] .scroll137 td a{color:#a6e2bb!important}
html[data-theme=dark] .scroll137 .minus137{color:#ffad9f!important}
@media(max-width:650px){}
html[data-theme=dark] .doubt-reason{color:#ffad9f!important}
html[data-theme=dark] .dubbi-help{background:#20372b!important;border:1px solid #3e5748!important}
html[data-theme=dark] .grid-scroll textarea[data-field^="fin_"]{background:#294331!important}
html[data-theme=dark] .grid-scroll textarea.changed{background:#294331!important}
html[data-theme=dark] .export-tools{background:#294331!important}
html[data-theme=dark] .estratti-separatore{border-top:1px solid #3e5748!important}
@media(min-width:741px){}
html[data-theme=dark] .grid-scroll{border:1px solid #3e5748!important;background:#20372b!important}
html[data-theme=dark] .grid-scroll thead th{background:#294331!important}
html[data-theme=dark] .grid-scroll th,html[data-theme=dark] .grid-scroll td{border-right:1px solid #3e5748!important;border-bottom:1px solid #3e5748!important}
html[data-theme=dark] .grid-scroll tbody th{background:#294331!important}
html[data-theme=dark] .grid-scroll textarea{color:#a6e2bb!important}
html[data-theme=dark] .grid-scroll textarea:focus{background:#20372b!important}
html[data-theme=dark] .grid-scroll textarea.changed{background:#294331!important;border-color:#3e5748!important}
html[data-theme=dark] #grid-preview{border:2px solid #3e5748!important;background:#20372b!important}
html[data-theme=dark] #grid-tools{background:#294331!important}
html[data-theme=dark] #grid-tools button,html[data-theme=dark] #grid-preview button,html[data-theme=dark] .grid-filters button{border:1px solid #3e5748!important;background:#20372b!important;color:#a6e2bb!important}
html[data-theme=dark] #preview,html[data-theme=dark] #apply,html[data-theme=dark] .grid-filters button{color:#e2ece5!important}
html[data-theme=dark] .grid-filters{border:1px solid #3e5748!important;background:#20372b!important}
html[data-theme=dark] .grid-scroll tr[data-new="1"]{background:#294331!important}
html[data-theme=dark] .grid-scroll tr[data-new="1"] th{background:#294331!important}
html[data-theme=dark] #rate-dialog{border:1px solid #3e5748!important}
html[data-theme=dark] .grid142 .summary142{background:#294331!important}
html[data-theme=dark] .i144nav>a{background:#20372b!important}
html[data-theme=dark] .i144nav>a.active{color:#e2ece5!important}
html[data-theme=dark] .i144metrics>section{background:#294331!important;border:1px solid #3e5748!important}
html[data-theme=dark] .i144metrics .i144gain{background:#294331!important;border-color:#3e5748!important}
html[data-theme=dark] .i144metrics .i144gain:has(.ineg){background:#472e25!important;border-color:#3e5748!important}
html[data-theme=dark] .ipos{color:#a6e2bb!important}
html[data-theme=dark] .ineg{color:#ffad9f!important}
html[data-theme=dark] .i144panel table tbody tr:nth-child(even){background:#294331!important}
html[data-theme=dark] .investment-home144{background:#294331!important}
@media(max-width:750px){}
@media(max-width:450px){}
html[data-theme=dark] .metric-link:hover{border-color:#3e5748!important}
html[data-theme=dark] .chart-legend li+li{border-top:1px solid #3e5748!important}
html[data-theme=dark] .chart-legend small{color:#b6c7bc!important}
@media(max-width:1200px){}
@media(max-width:520px){}
html[data-theme=dark] .mark143{background:#294331!important;color:#a6e2bb!important}
html[data-theme=dark] .homeback143{background:#20372b!important}
html[data-theme=dark] .home-group143{border:1px solid #3e5748!important;background:#294331!important}
html[data-theme=dark] .home-group143.bank143{background:#294331!important}
html[data-theme=dark] .home-tiles143 a{border:1px solid #3e5748!important;background:#20372b!important}
html[data-theme=dark] .home-tiles143 a:hover{background:#294331!important}
html[data-theme=dark] .home-tiles143 a span{color:#b6c7bc!important}
html[data-theme=dark] .edit143 .movement143,html[data-theme=dark] .edit143 .classification143,html[data-theme=dark] .edit143 .details143{background:#294331!important}
html[data-theme=dark] .app143 .pos141{color:#a6e2bb!important}
html[data-theme=dark] .app143 .neg141{color:#ffad9f!important}
@media(max-width:900px){}
@media(max-width:650px){}
html[data-theme=dark] .tabs138 button{background:#20372b!important}
html[data-theme=dark] .tabs138 button[aria-selected=true]{color:#e2ece5!important;border-color:#3e5748!important}
html[data-theme=dark] .pivot138 tbody tr:nth-child(even){background:#294331!important}
html[data-theme=dark] .pivot138 .note138{color:#a6e2bb!important}
html[data-theme=dark] .budget138 .caption138,html[data-theme=dark] .saving138 .caption138{color:#b6c7bc!important}
html[data-theme=dark] .notes-dialog138{border:1px solid #3e5748!important}
html[data-theme=dark] .budget130 .dormiente138{color:#b6c7bc!important}
@media(max-width:760px){}
html[data-theme=dark] .pos141{color:#a6e2bb!important}
html[data-theme=dark] .neg141{color:#ffad9f!important}
html[data-theme=dark] .doubts141 .reason141{color:#b6c7bc!important}
@media(max-width:650px){}
html[data-theme=dark]{--ink:#e2ece5;--muted:#b6c7bc;--green:#a8d5bd;--line:#3e5748;--paper:#15251e;--white:#20372b;--warm:#294331;color-scheme:dark}
html[data-theme=dark] body{background:#15251e!important;color:#e2ece5!important}
html[data-theme=dark] body :is(.card,.editor,.filters,.home-tiles143 a,.homeback143,.i144panel,.i144metrics section,.report-card,.metric-card,.chart-card,.movement143,.classification143,.details143){background:#20372b!important;color:#e2ece5!important;border-color:#3e5748!important}
html[data-theme=dark] body :is(.home-group143,.home-group143.bank143,.home-group144,.home-admin143,.context-card,.export-tools,.notice:not(.error):not(.success),.i144caption,.i144toolbar,.filter-panel){background:#294331!important;color:#e2ece5!important;border-color:#3e5748!important}
html[data-theme=dark] body :is(table,thead,tbody,tr,td,th,.grid-cell,.cell-input){border-color:#3e5748!important;color:#e2ece5}
html[data-theme=dark] body :is(th,thead td,.grid-id,.row-id,.protected,.grid-sticky,.sticky){background:#2b4535!important;color:#bccdc2!important}
html[data-theme=dark] body td{background:#20372b!important}
html[data-theme=dark] body tr:nth-child(even) td{background:#233c2e!important}
html[data-theme=dark] body tr:hover td{background:#304d3a!important}
html[data-theme=dark] body :is(input,select,textarea){background:#1b3025!important;color:#e2ece5!important;border-color:#526f5c!important}
html[data-theme=dark] body :is(input,select,textarea):disabled{background:#2b3d30!important;color:#b6c7bc!important}
html[data-theme=dark] body ::placeholder{color:#a3b6a8!important;opacity:1}
html[data-theme=dark] body :is(label,.muted,.eyebrow,small,footer,.snapshot-note,.i144caption,.pagination,.table-title span){color:#b6c7bc!important}
html[data-theme=dark] body :is(.secondary,.home-tiles143 a,.homeback143,button:not(.primary):not(.danger):not(.text-button)){background:#263f30;color:#e2ece5;border-color:#526f5c}
html[data-theme=dark] body :is(.primary,button.primary,a.primary){background:#a8d5bd!important;color:#153326!important;border-color:#a8d5bd!important}
html[data-theme=dark] body :is(a:hover,.secondary:hover){color:#bcebd0}
html[data-theme=dark] body .primary:hover{background:#bcebd0!important;color:#153326!important}
html[data-theme=dark] body :is(.error,.notice.error){background:#472e25!important;color:#ffd1bd!important}
html[data-theme=dark] body :is(.success,.notice.success){background:#24482f!important;color:#c2e8c9!important}
html[data-theme=dark] body :is(.danger,.cancel-button,.neg141,.ineg,.negative,.amount-negative){color:#ffad9f!important}
html[data-theme=dark] body :is(.positive,.pos141,.ipos,.amount-positive){color:#a6e2bb!important}
html[data-theme=dark] body .tag{background:#52482a!important;color:#ffdf9e!important}
html[data-theme=dark] body :is(.current-month,.in-progress){background:#35492b!important}
html[data-theme=dark] body :is(pre,code){background:#1b3025;color:#d6e6da;overflow-wrap:anywhere}
html[data-theme=dark] body :is(details,summary){color:#c4dbcb}
html[data-theme=dark] body svg text{fill:#d6e6da!important}
html[data-theme=dark] body :is(.mark143,.brand-icon){background:#415b3f;color:#e2ece5}
html[data-theme=dark] body .grid-scroll :is(input,textarea),html[data-theme=dark] body :is(.grid-table,.dubbi-table) :is(input,textarea){background:transparent!important}
@media print{html[data-theme=dark] body{background:white!important;color:black!important}#theme148{display:none}}
