/* Fælles visningskontroller; mørkt tema ændrer farver uden at flytte funktioner. */
#display-settings-toggle{position:fixed;left:18px;right:auto;top:auto;bottom:calc(18px + env(safe-area-inset-bottom,0px));z-index:1070;width:38px;height:38px;padding:0;border:1px solid #bfd2c5;border-radius:9px;background:#fff;color:#285640;font:22px system-ui;box-shadow:0 2px 8px #163b2915;cursor:pointer}#live-dispatch-strip{right:18px!important;max-width:calc(100vw - 36px)!important}
#display-settings-dialog{position:fixed;inset:auto auto calc(64px + env(safe-area-inset-bottom,0px)) 18px;margin:0;width:360px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 100px);overflow:auto;border:1px solid #c7d8cc;border-radius:13px;background:#fff;color:#294c39;padding:20px;box-shadow:0 15px 50px #0003;font:14px/1.5 system-ui}#display-settings-dialog::backdrop{background:#10251a55}.display-dialog-heading{display:flex;justify-content:space-between;align-items:center;margin:0 0 16px}.display-dialog-heading h2{font:650 19px system-ui;margin:0}.display-dialog-heading button{font-size:25px!important;border:0!important;background:transparent!important;padding:0 5px!important;color:inherit!important}#display-settings-dialog fieldset{border:0;padding:0;margin:0 0 20px}#display-settings-dialog legend,#display-settings-dialog label{display:block;font:650 13px system-ui;margin:0 0 9px;color:inherit;border:0}.display-choice,.display-font-controls{display:flex;align-items:center;gap:8px}#display-settings-dialog button,#display-settings-dialog select{min-height:38px;margin:0;padding:7px 11px;border:1px solid #bdcec2;border-radius:7px;background:#f2f6f2;color:#285640;box-shadow:none;font:600 13px system-ui;cursor:pointer}#display-settings-dialog button[aria-pressed=true]{background:#285640;color:#fff;border-color:#285640}.display-language-form{display:flex;flex-wrap:wrap;gap:8px}.display-language-form label{flex-basis:100%}.display-language-form select{flex:1}#display-font-percent{color:inherit;font-weight:650;min-width:46px;text-align:center}#display-save-status{font-size:12px;color:inherit;margin:12px 0 0;min-height:18px}#display-settings-dialog button:focus-visible,#display-settings-toggle:focus-visible{outline:3px solid #8bb59c;outline-offset:2px}
@media screen{
html[data-theme=dark]{color-scheme:dark;--mh-paper:#14211b;--mh-panel:#1e3027;--mh-line:#3c5145;--mh-text:#edf4ef;--mh-muted:#b5c9bc;--mh-soft:#273c30;--paper:#14211b;--line:#3c5145;--text:#edf4ef;--green:#9dcbb0}
html[data-theme=dark] :is(body,.wrapper,.main-panel,.main,.content,.shell,.login-main){background-color:#14211b!important;color:#e4eee7!important}
html[data-theme=dark] :is(.card,.card-content,.modal-content,.modal-body,.modal-footer,.modal-header,dialog,.dropdown-menu,.dataTables_wrapper,.member-detail-summary,.member-waiting-transfer,.member-history-upload,.member-saved-documents,.member-editor-tabs,.login-shell,.login-form-panel,.member-file-card,.member-doc-date-group,.member-doc-file,.notice,.member-table-tools,#display-settings-toggle,#display-settings-dialog,#live-dispatch-strip){background-color:#1e3027!important;border-color:#435e4d!important;color:#e4eee7!important}
html[data-theme=dark] :is(h1,h2,h3,h4,h5,h6,label,legend,.card-title,.modal-title,.member-detail-facts strong,.member-detail-facts span,.member-detail-eyebrow,.member-form-help,.muted,small,.dataTables_info,.login-description,.login-language label){color:#d5e7da!important}
html[data-theme=dark] :is(input:not([type=checkbox]):not([type=radio]),select,textarea,.form-control,.bootstrap-select>.dropdown-toggle,.member-house-toggle,.login-language select){background-color:#16261e!important;border-color:#557562!important;color:#edf6ef!important}html[data-theme=dark] ::placeholder{color:#adc4b5!important;opacity:1}
html[data-theme=dark] :is(table,.table,tbody,tbody tr,tbody td){background-color:#1e3027!important;border-color:#3a5444!important;color:#e0ece3!important}html[data-theme=dark] tbody tr:nth-child(even)>td{background-color:#23382c!important}html[data-theme=dark] tbody tr:hover>td{background-color:#2c4937!important}html[data-theme=dark] :is(thead th,.table thead th){background-color:#285640!important;color:#fff!important}html[data-theme=dark] :is(tr.bg-selected,tr.selected,tr.invoice-row-selected,tr.member-moved-destination)>td{background-color:#355c43!important;color:#fff!important}
html[data-theme=dark] :is(a:not(.btn):not(.navlink),.dropdown-menu li a,.member-payment-menu li a,.add-user-nav a,.member-detail-tabs button){color:#b4dec1!important}html[data-theme=dark] :is(.dropdown-menu li a:hover,.member-detail-tabs button.active,.add-user-nav .active a){background-color:#355b43!important;color:#fff!important}
html[data-theme=dark] :is(.btn-default,.btn-info,.btn.secondary,.secondary,#display-settings-dialog button,#display-settings-dialog select,.waiting-row-handle,.waiting-position-edit){background-color:#2b4635!important;border-color:#5b8068!important;color:#e4f3e9!important}html[data-theme=dark] #display-settings-dialog button[aria-pressed=true]{background-color:#3b7552!important;color:#fff!important}html[data-theme=dark] :is(.btn-success,.btn-rose,.login-submit,button.logout){background-color:#326647!important;color:#fff!important;border-color:#4c805e!important}
html[data-theme=dark] :is(.member-detail-avatar,.stat-icon,.member-invoice-action-feedback,.waiting-move-notice){background-color:#2c4937!important;color:#d6efdf!important}html[data-theme=dark] :is(.sidebar,.side){background-color:#10271c!important}html[data-theme=dark] .login-intro{background-color:#173d2a!important;color:#edf7f0!important}html[data-theme=dark] .login-intro :is(h2,p){color:#edf7f0!important}
html[data-theme=dark] :is(.mh-datepicker,.minhave-datepicker,.ui-datepicker,.bootstrap-datetimepicker-widget){background-color:#1e3027!important;color:#e4eee7!important;border-color:#557562!important}
}
@media print{#display-settings-toggle,#display-settings-dialog{display:none!important}:root{--mh-ui-font-scale:1!important}}
@media screen{
html[data-theme=dark] :is(.card,.card-content,.modal-content,.member-detail-summary,.member-waiting-transfer,.member-file-card,.member-table-tools,.notice){background-image:none!important}
html[data-theme=dark] :is(.dashboard-heading p,.legend,.status-line span,.metric-breakdown,.eyebrow,.chart-title p,.metric .amount,.recent-posting,.dispatch-count,.member-detail-section-title){color:#d9e9df!important}
html[data-theme=dark] :is(.metric-breakdown span,.recent-posting,.chart-title,.dashboard-heading,.member-detail-tabbar){border-color:#48604f!important}
html[data-theme=dark] :is(.dashboard-customize-actions button,.dashboard-widget-toolbar button,.metric button,.chart-title button){background:#2d523b!important;border-color:#64836e!important;color:#e4f3e9!important}
html[data-theme=dark] :is(.metric-breakdown,.status-track,.badge,.help,.panel,.bs-searchbox,.mh-calendar-header){background:#2b4334!important;color:#e4f3e9!important}
html[data-theme=dark] :is(#datatable,#invoiceDatatable) :is(tbody td,tbody tr){background-color:#1e3027!important;color:#e0ece3!important;border-color:#3a5444!important}
html[data-theme=dark] :is(#datatable,#invoiceDatatable) tbody tr:nth-child(even)>td{background-color:#23382c!important}
html[data-theme=dark] :is(#datatable,#invoiceDatatable) tbody tr:hover>td{background-color:#2c4937!important}
html[data-theme=dark] :is(#datatable,#invoiceDatatable) tbody tr:is(.bg-selected,.selected,.member-moved-destination,.invoice-row-selected)>td{background-color:#355c43!important}
html[data-theme=dark] .mh-datepicker-panel{background:#1e3027!important;border-color:#557562!important;color:#e4eee7!important}
}
@media screen{
html[data-theme=dark] .dashboard-panels svg polyline[stroke="#356650"]{stroke:#8bc8a0}html[data-theme=dark] .dashboard-panels svg polyline[stroke="#d47840"]{stroke:#efac72}html[data-theme=dark] .dashboard-panels svg text{fill:#bfd3c6}html[data-theme=dark] .dashboard-panels svg line{stroke:#486451}html[data-theme=dark] .legend span:first-child{color:#8bc8a0!important}
html[data-theme=dark] .dashboard-move button{background:#2b4635!important;border-color:#63806d!important;color:#e0eee5!important}
html[data-theme=dark] .mh-datepicker{background:#1e3027!important;color:#e4eee7!important;border-color:#557562!important}html[data-theme=dark] .mh-datepicker :is(button,select){background:#1e3027!important;color:#e4eee7!important;border-color:#557562!important}html[data-theme=dark] .mh-datepicker button:hover{background:#355640!important}html[data-theme=dark] .mh-datepicker .selected{background:#4b805d!important;color:white!important}html[data-theme=dark] .mh-date-weekday{color:#c0d2c6!important}
html[data-theme=dark] .mce-panel,html[data-theme=dark] .mce-btn{background:#24392d!important;border-color:#536c5b!important}html[data-theme=dark] .mce-btn :is(button,span,i){color:#dcece1!important}
}
@media screen{
html[data-theme=dark]{--ui-border:#435e4d;--ui-muted:#b5c9bc;--ui-soft:#2b4635}
html[data-theme=dark] :is(.account-filters,.account-balance-item,.account-balance-total,.holdings-summary,.holding-card,.holding-card.inactive,.posting-filters,.table-tools,.table-filter-bar,.invoice-line-help,.member-doc-heading,.dt-button-collection){background:#21372a!important;background-image:none!important;border-color:#476552!important;color:#e4eee7!important}
html[data-theme=dark] :is(.account-balance-item>strong,.account-balance-label,.account-balance-breakdown,.holding-icon,.holding-card-footer button,.holding-card .amount){color:#dceee2!important}html[data-theme=dark] .balance-negative{color:#f2a497!important}
html[data-theme=dark] :is(.dt-button,.dt-button-collection .dt-button,.account-actions>.btn){background:#2c4c37!important;border-color:#5f806a!important;color:#e5f1e9!important}
html[data-theme=dark] .dt-button-collection .dt-button.active{background:#416c4e!important;color:#fff!important}
html[data-theme=dark] :is(.main,.main-panel) .card :is(table.table,table.dataTable) :is(tbody td,tfoot th,tfoot td){background:#1e3027!important;color:#e0ece3!important;border-color:#3a5444!important}
html[data-theme=dark] :is(.main,.main-panel) .card :is(table.table,table.dataTable) tbody tr:nth-child(even)>td{background:#23382c!important}
html[data-theme=dark] :is(.main,.main-panel) .card :is(table.table,table.dataTable) tbody tr:hover>td{background:#2c4937!important}
html[data-theme=dark] :is(.main,.main-panel) .card :is(table.table,table.dataTable) tbody tr:is(.bg-selected,.selected,.member-moved-destination,.invoice-row-selected)>td{background:#355c43!important}
html[data-theme=dark] :is(.main,.main-panel) .card :is(table.table,table.dataTable) thead th{background:#285640!important;color:#fff!important}
}
#live-dispatch-strip{top:var(--mh-controls-top,40px)!important}#display-settings-dialog{top:auto;max-height:calc(100dvh - 92px - env(safe-area-inset-bottom,0px))}body:has(>.preview-banner){padding-top:var(--mh-banner-height,36px)}
@media(max-width:600px){html:is([data-text-size="130"],[data-text-size="140"],[data-text-size="150"]) :is(.account-balance-grid,.dashboard-stats){grid-template-columns:1fr!important}}
@media screen{
html[data-theme=dark] :is(.payment-tabs,.report-tabs){border-color:#486451!important}html[data-theme=dark] :is(.payment-tabs,.report-tabs) button{color:#bfd5c6!important}html[data-theme=dark] :is(.payment-tabs,.report-tabs) button[aria-selected=true]{background:#355f44!important;color:#fff!important}
html[data-theme=dark] #payment-register .allocation-input{background:#16261e!important;border-color:#557562!important}html[data-theme=dark] #payment-register .allocation-input span{color:#bfd5c6!important}
}
/* Bevarer læsbare faner og overskrifter, også når en demobjælke er fastgjort over formularen. */
html body .modal .modal-dialog{margin-top:var(--mh-controls-top,30px)!important}
@media screen{
html[data-theme=dark] :is(#addModal,#editModal) .add-user-nav li:not(.active) a{background:#2b4635!important;color:#d9ece0!important}
html[data-theme=dark] .member-document-date-group>summary{background:#284131!important;color:#d9ece0!important}
html[data-theme=dark] .member-file-name,html[data-theme=dark] .member-file-card small{color:#d9ece0!important}
}
/* Kontodetaljer og ukonterede bilag deler filter- og værktøjslinjen. */
@media screen {
    html[data-theme=dark] body .account-detail-page .detail-filters,
    html[data-theme=dark] body .detail-filters {
        background: #21372a !important;
        border-color: #476552 !important;
        color: #e4eee7 !important;
    }
    html[data-theme=dark] body .main-panel .detail-table-tools .dt-buttons > .dt-button,
    html[data-theme=dark] body .main-panel .dataTables_wrapper .dt-buttons > .dt-button,
    html[data-theme=dark] body .dt-button-collection .dt-button {
        background: #2c4c37 !important;
        border-color: #5f806a !important;
        color: #e5f1e9 !important;
    }
    html[data-theme=dark] body .main-panel #minimizeSidebar {
        background: #2c4c37 !important;
        color: #e5f1e9 !important;
    }
    html[data-theme=dark] .account-detail-page .detail-subtitle {
        color: #b5c9bc !important;
    }
}
/* Posteringsvinduets bilagsområde og felter bruger samme mørke panel som resten af dialogen. */
@media screen {
    html[data-theme=dark] body .posting-preview-panel,
    html[data-theme=dark] body .posting-file-preview {
        background: #192b21 !important;
        border-color: #476552 !important;
        color: #dcece1 !important;
    }
    html[data-theme=dark] :is(#editModal,#addModal,#addInvoiceRowModal,#invoiceModal,#mailModal) .modal-body label,
    html[data-theme=dark] :is(#editModal,#addModal) .posting-preview-panel h3,
    html[data-theme=dark] :is(#editModal,#addModal) .posting-file-preview p {
        color: #d5e7da !important;
    }
    html[data-theme=dark] .posting-preview-panel :is(small,.help-block,.material-icons) {
        color: #afc9b8 !important;
    }
}
/* Resterende fælles rammer fra kategorier, bilag og fakturaopsætning. */
@media screen {
    html[data-theme=dark] body .category-section .dataTables_filter,
    html[data-theme=dark] body .invoice-design-preview,
    html[data-theme=dark] body .invoice-logo-box > div:first-child,
    html[data-theme=dark] body .dashboard-panels .card .tablewrap,
    html[data-theme=dark] body section#own .tablewrap,
    html[data-theme=dark] body .fileinput-new.thumbnail {
        background: #21372a !important;
        border-color: #476552 !important;
        color: #e4eee7 !important;
    }
    html[data-theme=dark] body .members-page #sendmail_btn.disabled {
        background: #2b3e31 !important;
        border-color: #526b5b !important;
        color: #b9cdbf !important;
    }
    html[data-theme=dark] body .posting-attachment {
        background: #2c4c37 !important;
        border-color: #5f806a !important;
        color: #e5f1e9 !important;
    }
}
/* Afdæmpet ikonflade med tydeligt symbol på beholdningskort i mørkt tema. */
@media screen {
    html[data-theme=dark] .holding-card-header .holding-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
        padding: 9px;
        background: #2c4937 !important;
        border: 1px solid #52755e;
        border-radius: 10px;
        color: #c1e4cd !important;
        font-size: 22px;
        line-height: 1;
        box-shadow: none;
    }
    html[data-theme=dark] .holding-card.inactive .holding-icon {
        background: #2b3931 !important;
        border-color: #485b4f;
        color: #a8bdb0 !important;
    }
}
/* Platformens standardknapper skal have mørk grøn flade, også når palettens linkfarve er lys. */
@media screen {
    html[data-theme=dark] body .main :is(button,.button):not(.danger):not([role=tab]) {
        background: #315b40 !important;
        border-color: #668470 !important;
        color: #ffffff !important;
    }
    html[data-theme=dark] body .main :is(button,.button):not(.danger):not([role=tab]):hover {
        background: #3c6b4b !important;
        color: #ffffff !important;
    }
    html[data-theme=dark] body .main :is(button.secondary,.button.secondary,.holding-card-footer button) {
        background: #233c2c !important;
        border-color: #668470 !important;
        color: #e2f0e7 !important;
    }
    html[data-theme=dark] body .main :is(button.danger,.button.danger) {
        background: #843c32 !important;
        border-color: #c17a6d !important;
        color: #ffffff !important;
    }
}
/* Medlemsdetaljer har egne tabelregler; temaet skal også gælde de dynamisk indlæste rækker. */
@media screen {
    html[data-theme=dark] #invoicepopupModal #invoiceDatatable,
    html[data-theme=dark] #invoicepopupModal #invoiceDatatable tbody tr,
    html[data-theme=dark] #invoicepopupModal #invoiceDatatable tbody tr td {
        background: #1e3027 !important;
        border-color: #405a49 !important;
        color: #e0ece3 !important;
    }
    html[data-theme=dark] #invoicepopupModal #invoiceDatatable tbody tr:nth-child(even) > td {
        background: #243a2d !important;
    }
    html[data-theme=dark] #invoicepopupModal #invoiceDatatable tbody tr:hover > td {
        background: #2e4b38 !important;
    }
    html[data-theme=dark] #invoicepopupModal #invoiceDatatable tbody tr.invoice-row-selected > td {
        background: #375e44 !important;
    }
    html[data-theme=dark] #invoicepopupModal #invoiceDatatable a.changestatus {
        background: #304538 !important;
        border-color: #5c7765 !important;
        color: #e2eee5 !important;
    }
    html[data-theme=dark] #invoicepopupModal #invoiceDatatable a.changestatus[data-status="0"] {
        background: #423d2e !important;
        border-color: #776748 !important;
        color: #f1dfb8 !important;
    }
    html[data-theme=dark] #invoicepopupModal #invoiceDatatable a.changestatus[data-status="1"] {
        background: #294455 !important;
        border-color: #547b92 !important;
        color: #d0e9f6 !important;
    }
    html[data-theme=dark] #invoicepopupModal #invoiceDatatable a.changestatus[data-status="2"] {
        background: #254d35 !important;
        border-color: #568267 !important;
        color: #c9efd4 !important;
    }
    html[data-theme=dark] #invoicepopupModal .member-detail-tabs button > span {
        background: #3a5845 !important;
        color: #e5f3e9 !important;
    }
    html[data-theme=dark] #invoicepopupModal .member-detail-tabs button.active > span {
        background: #50725b !important;
        color: #ffffff !important;
    }
    html[data-theme=dark] #invoicepopupModal .member-payment-menu > li > a.member-payment-item.disabled,
    html[data-theme=dark] #invoicepopupModal .member-payment-menu > li > a.member-payment-item.disabled:hover {
        background: #263b2e !important;
        color: #b7c9bd !important;
    }
    html[data-theme=dark] #invoicepopupModal .member-payment-menu > li > a.member-payment-item:not(.disabled):hover {
        background: #355c43 !important;
        color: #ffffff !important;
    }
    html[data-theme=dark] #invoicepopupModal .member-detail-tabbar,
    html[data-theme=dark] #invoicepopupModal .member-detail-facts,
    html[data-theme=dark] #invoicepopupModal .table-responsive {
        border-color: #405a49 !important;
    }
    html[data-theme=dark] #invoicepopupModal .modal-header > .close {
        color: #cfdfd4 !important;
    }
    html[data-theme=dark] #invoicepopupModal #member-invoice-action-feedback {
        background: #284331 !important;
        border-color: #5a8065 !important;
        color: #e0f0e6 !important;
    }
}
@media screen {
    html[data-theme=dark] #invoicepopupModal #member-invoice-action-feedback.is-error {
        background: #4d2c27 !important;
        border-color: #a4695d !important;
        color: #ffe0d8 !important;
    }
}
/* Fælles kontrastfarver for beløb, status og sekundære oplysninger i mørkt tema. */
@media screen {
    html[data-theme=dark] body :is(.color-green,.green) {
        color: #9ad9ae !important;
    }
    html[data-theme=dark] body :is(.color-red,.red) {
        color: #f3a396 !important;
    }
    html[data-theme=dark] body :is(.detail-description,.holdings-count,.holdings-count strong,.metric-breakdown strong) {
        color: #bfd5c6 !important;
    }
    html[data-theme=dark] .invoice-settings-tabs button {
        color: #bfd5c6 !important;
    }
    html[data-theme=dark] .invoice-settings-tabs button[aria-selected=true] {
        background: #355f44 !important;
        color: #ffffff !important;
    }
    html[data-theme=dark] .legend span:nth-of-type(2) {
        color: #efac72 !important;
    }
}
/* Leverandørformularens opslag og felttekster følger den mørke palet. */
@media screen {
    html[data-theme=dark] #addContactModal .supplier-cvr-panel,
    html[data-theme=dark] #supplier-suggestions {
        background: #23382c !important;
        border-color: #557562 !important;
        color: #e4eee7 !important;
    }
    html[data-theme=dark] #addContactModal label,
    html[data-theme=dark] #editCompanyModal label,
    html[data-theme=dark] #supplier-cvr-status {
        color: #d5e7da !important;
    }
}


/* Fælles faner: understregning frem for knapflader, også i indlæste dialoger. */
html body .access-page-tabs,
html body .invoice-settings-tabs,
html body .case-popup-tabs,
html body .report-tabs,
html body .payment-tabs,
html body .member-detail-tabs,
html body .access-tabs,
html body #editModal .add-user-nav,
html body #addModal .add-user-nav,
html body .nav-pills{display:flex!important;flex-wrap:wrap;gap:20px!important;list-style:none;padding:0!important;border-bottom:1px solid #dce5dc!important;background:transparent!important;box-shadow:none!important;border-radius:0!important}
html body .access-page-tabs > button,
html body .access-page-tabs > a,
html body .access-page-tabs > li > a,
html body .invoice-settings-tabs > button,
html body .invoice-settings-tabs > a,
html body .invoice-settings-tabs > li > a,
html body .case-popup-tabs > button,
html body .case-popup-tabs > a,
html body .case-popup-tabs > li > a,
html body .report-tabs > button,
html body .report-tabs > a,
html body .report-tabs > li > a,
html body .payment-tabs > button,
html body .payment-tabs > a,
html body .payment-tabs > li > a,
html body .member-detail-tabs > button,
html body .member-detail-tabs > a,
html body .member-detail-tabs > li > a,
html body .access-tabs > button,
html body .access-tabs > a,
html body .access-tabs > li > a,
html body #editModal .add-user-nav > button,
html body #editModal .add-user-nav > a,
html body #editModal .add-user-nav > li > a,
html body #addModal .add-user-nav > button,
html body #addModal .add-user-nav > a,
html body #addModal .add-user-nav > li > a,
html body .nav-pills > button,
html body .nav-pills > a,
html body .nav-pills > li > a{display:inline-flex!important;align-items:center;gap:8px;position:relative;margin:0 0 -1px!important;padding:12px 8px!important;border:0!important;border-bottom:3px solid transparent!important;border-radius:0!important;background:transparent!important;color:#63736a!important;box-shadow:none!important;text-decoration:none!important;font-weight:600;cursor:pointer}
html body .access-page-tabs > button:hover,
html body .access-page-tabs > a:hover,
html body .access-page-tabs > li > a:hover,
html body .invoice-settings-tabs > button:hover,
html body .invoice-settings-tabs > a:hover,
html body .invoice-settings-tabs > li > a:hover,
html body .case-popup-tabs > button:hover,
html body .case-popup-tabs > a:hover,
html body .case-popup-tabs > li > a:hover,
html body .report-tabs > button:hover,
html body .report-tabs > a:hover,
html body .report-tabs > li > a:hover,
html body .payment-tabs > button:hover,
html body .payment-tabs > a:hover,
html body .payment-tabs > li > a:hover,
html body .member-detail-tabs > button:hover,
html body .member-detail-tabs > a:hover,
html body .member-detail-tabs > li > a:hover,
html body .access-tabs > button:hover,
html body .access-tabs > a:hover,
html body .access-tabs > li > a:hover,
html body #editModal .add-user-nav > button:hover,
html body #editModal .add-user-nav > a:hover,
html body #editModal .add-user-nav > li > a:hover,
html body #addModal .add-user-nav > button:hover,
html body #addModal .add-user-nav > a:hover,
html body #addModal .add-user-nav > li > a:hover,
html body .nav-pills > button:hover,
html body .nav-pills > a:hover,
html body .nav-pills > li > a:hover{background:transparent!important;color:#295743!important}
html body .access-page-tabs > button.active,
html body .access-page-tabs > button[aria-selected=true],
html body .access-page-tabs > a[aria-current=page],
html body .access-page-tabs > li.active > a,
html body .invoice-settings-tabs > button.active,
html body .invoice-settings-tabs > button[aria-selected=true],
html body .invoice-settings-tabs > a[aria-current=page],
html body .invoice-settings-tabs > li.active > a,
html body .case-popup-tabs > button.active,
html body .case-popup-tabs > button[aria-selected=true],
html body .case-popup-tabs > a[aria-current=page],
html body .case-popup-tabs > li.active > a,
html body .report-tabs > button.active,
html body .report-tabs > button[aria-selected=true],
html body .report-tabs > a[aria-current=page],
html body .report-tabs > li.active > a,
html body .payment-tabs > button.active,
html body .payment-tabs > button[aria-selected=true],
html body .payment-tabs > a[aria-current=page],
html body .payment-tabs > li.active > a,
html body .member-detail-tabs > button.active,
html body .member-detail-tabs > button[aria-selected=true],
html body .member-detail-tabs > a[aria-current=page],
html body .member-detail-tabs > li.active > a,
html body .access-tabs > button.active,
html body .access-tabs > button[aria-selected=true],
html body .access-tabs > a[aria-current=page],
html body .access-tabs > li.active > a,
html body #editModal .add-user-nav > button.active,
html body #editModal .add-user-nav > button[aria-selected=true],
html body #editModal .add-user-nav > a[aria-current=page],
html body #editModal .add-user-nav > li.active > a,
html body #addModal .add-user-nav > button.active,
html body #addModal .add-user-nav > button[aria-selected=true],
html body #addModal .add-user-nav > a[aria-current=page],
html body #addModal .add-user-nav > li.active > a,
html body .nav-pills > button.active,
html body .nav-pills > button[aria-selected=true],
html body .nav-pills > a[aria-current=page],
html body .nav-pills > li.active > a{background:transparent!important;color:#295743!important;border-bottom-color:#295743!important}
html body .access-page-tabs > button:focus-visible,
html body .access-page-tabs > a:focus-visible,
html body .access-page-tabs > li > a:focus-visible,
html body .invoice-settings-tabs > button:focus-visible,
html body .invoice-settings-tabs > a:focus-visible,
html body .invoice-settings-tabs > li > a:focus-visible,
html body .case-popup-tabs > button:focus-visible,
html body .case-popup-tabs > a:focus-visible,
html body .case-popup-tabs > li > a:focus-visible,
html body .report-tabs > button:focus-visible,
html body .report-tabs > a:focus-visible,
html body .report-tabs > li > a:focus-visible,
html body .payment-tabs > button:focus-visible,
html body .payment-tabs > a:focus-visible,
html body .payment-tabs > li > a:focus-visible,
html body .member-detail-tabs > button:focus-visible,
html body .member-detail-tabs > a:focus-visible,
html body .member-detail-tabs > li > a:focus-visible,
html body .access-tabs > button:focus-visible,
html body .access-tabs > a:focus-visible,
html body .access-tabs > li > a:focus-visible,
html body #editModal .add-user-nav > button:focus-visible,
html body #editModal .add-user-nav > a:focus-visible,
html body #editModal .add-user-nav > li > a:focus-visible,
html body #addModal .add-user-nav > button:focus-visible,
html body #addModal .add-user-nav > a:focus-visible,
html body #addModal .add-user-nav > li > a:focus-visible,
html body .nav-pills > button:focus-visible,
html body .nav-pills > a:focus-visible,
html body .nav-pills > li > a:focus-visible{outline:2px solid #619777!important;outline-offset:2px}
html[data-theme=dark] body .access-page-tabs,
html[data-theme=dark] body .invoice-settings-tabs,
html[data-theme=dark] body .case-popup-tabs,
html[data-theme=dark] body .report-tabs,
html[data-theme=dark] body .payment-tabs,
html[data-theme=dark] body .member-detail-tabs,
html[data-theme=dark] body .access-tabs,
html[data-theme=dark] body #editModal .add-user-nav,
html[data-theme=dark] body #addModal .add-user-nav,
html[data-theme=dark] body .nav-pills{border-bottom-color:#405a49!important}
html[data-theme=dark] body .access-page-tabs > button,
html[data-theme=dark] body .access-page-tabs > a,
html[data-theme=dark] body .access-page-tabs > li > a,
html[data-theme=dark] body .invoice-settings-tabs > button,
html[data-theme=dark] body .invoice-settings-tabs > a,
html[data-theme=dark] body .invoice-settings-tabs > li > a,
html[data-theme=dark] body .case-popup-tabs > button,
html[data-theme=dark] body .case-popup-tabs > a,
html[data-theme=dark] body .case-popup-tabs > li > a,
html[data-theme=dark] body .report-tabs > button,
html[data-theme=dark] body .report-tabs > a,
html[data-theme=dark] body .report-tabs > li > a,
html[data-theme=dark] body .payment-tabs > button,
html[data-theme=dark] body .payment-tabs > a,
html[data-theme=dark] body .payment-tabs > li > a,
html[data-theme=dark] body .member-detail-tabs > button,
html[data-theme=dark] body .member-detail-tabs > a,
html[data-theme=dark] body .member-detail-tabs > li > a,
html[data-theme=dark] body .access-tabs > button,
html[data-theme=dark] body .access-tabs > a,
html[data-theme=dark] body .access-tabs > li > a,
html[data-theme=dark] body #editModal .add-user-nav > button,
html[data-theme=dark] body #editModal .add-user-nav > a,
html[data-theme=dark] body #editModal .add-user-nav > li > a,
html[data-theme=dark] body #addModal .add-user-nav > button,
html[data-theme=dark] body #addModal .add-user-nav > a,
html[data-theme=dark] body #addModal .add-user-nav > li > a,
html[data-theme=dark] body .nav-pills > button,
html[data-theme=dark] body .nav-pills > a,
html[data-theme=dark] body .nav-pills > li > a{background:transparent!important;color:#b5c7bc!important}
html[data-theme=dark] body .access-page-tabs > button:hover,
html[data-theme=dark] body .access-page-tabs > a:hover,
html[data-theme=dark] body .access-page-tabs > li > a:hover,
html[data-theme=dark] body .invoice-settings-tabs > button:hover,
html[data-theme=dark] body .invoice-settings-tabs > a:hover,
html[data-theme=dark] body .invoice-settings-tabs > li > a:hover,
html[data-theme=dark] body .case-popup-tabs > button:hover,
html[data-theme=dark] body .case-popup-tabs > a:hover,
html[data-theme=dark] body .case-popup-tabs > li > a:hover,
html[data-theme=dark] body .report-tabs > button:hover,
html[data-theme=dark] body .report-tabs > a:hover,
html[data-theme=dark] body .report-tabs > li > a:hover,
html[data-theme=dark] body .payment-tabs > button:hover,
html[data-theme=dark] body .payment-tabs > a:hover,
html[data-theme=dark] body .payment-tabs > li > a:hover,
html[data-theme=dark] body .member-detail-tabs > button:hover,
html[data-theme=dark] body .member-detail-tabs > a:hover,
html[data-theme=dark] body .member-detail-tabs > li > a:hover,
html[data-theme=dark] body .access-tabs > button:hover,
html[data-theme=dark] body .access-tabs > a:hover,
html[data-theme=dark] body .access-tabs > li > a:hover,
html[data-theme=dark] body #editModal .add-user-nav > button:hover,
html[data-theme=dark] body #editModal .add-user-nav > a:hover,
html[data-theme=dark] body #editModal .add-user-nav > li > a:hover,
html[data-theme=dark] body #addModal .add-user-nav > button:hover,
html[data-theme=dark] body #addModal .add-user-nav > a:hover,
html[data-theme=dark] body #addModal .add-user-nav > li > a:hover,
html[data-theme=dark] body .nav-pills > button:hover,
html[data-theme=dark] body .nav-pills > a:hover,
html[data-theme=dark] body .nav-pills > li > a:hover,
html[data-theme=dark] body .access-page-tabs > button.active,
html[data-theme=dark] body .access-page-tabs > button[aria-selected=true],
html[data-theme=dark] body .access-page-tabs > a[aria-current=page],
html[data-theme=dark] body .access-page-tabs > li.active > a,
html[data-theme=dark] body .invoice-settings-tabs > button.active,
html[data-theme=dark] body .invoice-settings-tabs > button[aria-selected=true],
html[data-theme=dark] body .invoice-settings-tabs > a[aria-current=page],
html[data-theme=dark] body .invoice-settings-tabs > li.active > a,
html[data-theme=dark] body .case-popup-tabs > button.active,
html[data-theme=dark] body .case-popup-tabs > button[aria-selected=true],
html[data-theme=dark] body .case-popup-tabs > a[aria-current=page],
html[data-theme=dark] body .case-popup-tabs > li.active > a,
html[data-theme=dark] body .report-tabs > button.active,
html[data-theme=dark] body .report-tabs > button[aria-selected=true],
html[data-theme=dark] body .report-tabs > a[aria-current=page],
html[data-theme=dark] body .report-tabs > li.active > a,
html[data-theme=dark] body .payment-tabs > button.active,
html[data-theme=dark] body .payment-tabs > button[aria-selected=true],
html[data-theme=dark] body .payment-tabs > a[aria-current=page],
html[data-theme=dark] body .payment-tabs > li.active > a,
html[data-theme=dark] body .member-detail-tabs > button.active,
html[data-theme=dark] body .member-detail-tabs > button[aria-selected=true],
html[data-theme=dark] body .member-detail-tabs > a[aria-current=page],
html[data-theme=dark] body .member-detail-tabs > li.active > a,
html[data-theme=dark] body .access-tabs > button.active,
html[data-theme=dark] body .access-tabs > button[aria-selected=true],
html[data-theme=dark] body .access-tabs > a[aria-current=page],
html[data-theme=dark] body .access-tabs > li.active > a,
html[data-theme=dark] body #editModal .add-user-nav > button.active,
html[data-theme=dark] body #editModal .add-user-nav > button[aria-selected=true],
html[data-theme=dark] body #editModal .add-user-nav > a[aria-current=page],
html[data-theme=dark] body #editModal .add-user-nav > li.active > a,
html[data-theme=dark] body #addModal .add-user-nav > button.active,
html[data-theme=dark] body #addModal .add-user-nav > button[aria-selected=true],
html[data-theme=dark] body #addModal .add-user-nav > a[aria-current=page],
html[data-theme=dark] body #addModal .add-user-nav > li.active > a,
html[data-theme=dark] body .nav-pills > button.active,
html[data-theme=dark] body .nav-pills > button[aria-selected=true],
html[data-theme=dark] body .nav-pills > a[aria-current=page],
html[data-theme=dark] body .nav-pills > li.active > a{background:transparent!important;color:#b6e4c7!important}
html[data-theme=dark] body .access-page-tabs > button.active,
html[data-theme=dark] body .access-page-tabs > button[aria-selected=true],
html[data-theme=dark] body .access-page-tabs > a[aria-current=page],
html[data-theme=dark] body .access-page-tabs > li.active > a,
html[data-theme=dark] body .invoice-settings-tabs > button.active,
html[data-theme=dark] body .invoice-settings-tabs > button[aria-selected=true],
html[data-theme=dark] body .invoice-settings-tabs > a[aria-current=page],
html[data-theme=dark] body .invoice-settings-tabs > li.active > a,
html[data-theme=dark] body .case-popup-tabs > button.active,
html[data-theme=dark] body .case-popup-tabs > button[aria-selected=true],
html[data-theme=dark] body .case-popup-tabs > a[aria-current=page],
html[data-theme=dark] body .case-popup-tabs > li.active > a,
html[data-theme=dark] body .report-tabs > button.active,
html[data-theme=dark] body .report-tabs > button[aria-selected=true],
html[data-theme=dark] body .report-tabs > a[aria-current=page],
html[data-theme=dark] body .report-tabs > li.active > a,
html[data-theme=dark] body .payment-tabs > button.active,
html[data-theme=dark] body .payment-tabs > button[aria-selected=true],
html[data-theme=dark] body .payment-tabs > a[aria-current=page],
html[data-theme=dark] body .payment-tabs > li.active > a,
html[data-theme=dark] body .member-detail-tabs > button.active,
html[data-theme=dark] body .member-detail-tabs > button[aria-selected=true],
html[data-theme=dark] body .member-detail-tabs > a[aria-current=page],
html[data-theme=dark] body .member-detail-tabs > li.active > a,
html[data-theme=dark] body .access-tabs > button.active,
html[data-theme=dark] body .access-tabs > button[aria-selected=true],
html[data-theme=dark] body .access-tabs > a[aria-current=page],
html[data-theme=dark] body .access-tabs > li.active > a,
html[data-theme=dark] body #editModal .add-user-nav > button.active,
html[data-theme=dark] body #editModal .add-user-nav > button[aria-selected=true],
html[data-theme=dark] body #editModal .add-user-nav > a[aria-current=page],
html[data-theme=dark] body #editModal .add-user-nav > li.active > a,
html[data-theme=dark] body #addModal .add-user-nav > button.active,
html[data-theme=dark] body #addModal .add-user-nav > button[aria-selected=true],
html[data-theme=dark] body #addModal .add-user-nav > a[aria-current=page],
html[data-theme=dark] body #addModal .add-user-nav > li.active > a,
html[data-theme=dark] body .nav-pills > button.active,
html[data-theme=dark] body .nav-pills > button[aria-selected=true],
html[data-theme=dark] body .nav-pills > a[aria-current=page],
html[data-theme=dark] body .nav-pills > li.active > a{border-bottom-color:#8bc9a3!important}

/* Fælles placering af tabellers øverste handlingsrække; dialogernes egne knapper bevares. */
html body .card:has(>.card-content>.btn-group>.top-btn),
html body .card:has(>.card-content>.top-action),
html body .table-edge-card{position:relative;overflow:visible;margin-top:32px!important}
html body .card>.card-content>.btn-group:has(>.top-btn),
html body .card>.card-content>.top-action,
html body .table-edge-actions{position:absolute!important;top:0!important;right:24px!important;transform:translateY(-50%)!important;display:flex!important;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;float:none!important;margin:0!important;z-index:3}
html body .card>.card-content>.btn-group>.top-btn,
html body .card>.card-content>.top-action>.btn{position:static!important;float:none!important;margin:0!important;transform:none!important}
html body .card>.card-content:has(>.btn-group>.top-btn)>.card-title,
html body .card>.card-content:has(>.top-action)>.card-title{float:none!important;display:block;clear:both;padding-top:14px}
html body .table-edge-heading{display:flex;align-items:center;gap:12px;margin-bottom:18px;padding-top:12px}
@media(max-width:1000px){
html body .card>.card-content>.btn-group:has(>.top-btn),html body .card>.card-content>.top-action,html body .table-edge-actions{position:relative!important;top:auto!important;right:auto!important;transform:none!important;width:100%;margin:0 0 18px!important}
}

/* Røde popupknapper har altid hvid tekst og hvide ikoner, uanset ældre tema- og formularregler. */
html body :is(#editModal,#addModal,#invoicepopupModal,.modal,dialog,.swal2-modal) :is(.btn-danger,button.danger,a.button.danger,.swal2-confirm.btn-danger,.swal2-cancel.btn-danger){background:#a7493b!important;background-image:none!important;border:1px solid #a7493b!important;color:#fff!important;-webkit-text-fill-color:#fff!important;text-shadow:none!important}
html body :is(#editModal,#addModal,#invoicepopupModal,.modal,dialog,.swal2-modal) :is(.btn-danger,button.danger,a.button.danger) :is(span,i,strong,small){color:inherit!important;-webkit-text-fill-color:inherit!important}
html body :is(#editModal,#addModal,#invoicepopupModal,.modal,dialog,.swal2-modal) :is(.btn-danger,button.danger,a.button.danger):is(:hover,:focus-visible){background:#913d32!important;border-color:#913d32!important;color:#fff!important}
html body :is(#editModal,#addModal,#invoicepopupModal,.modal,dialog,.swal2-modal) :is(.btn-danger,button.danger,a.button.danger):focus-visible{outline:3px solid #dba399;outline-offset:2px}
html body :is(#editModal,#addModal,#invoicepopupModal,.modal,dialog,.swal2-modal) :is(.btn-danger,button.danger,a.button.danger):is(:disabled,.disabled){color:#fff!important;-webkit-text-fill-color:#fff!important;opacity:.7}

/* Standard for sletning: tydelig rød tekst, ingen lille papirkurv eller knapflade. */
html body .standard-delete-action{display:inline-flex;align-items:center;justify-content:center;gap:0;background:transparent!important;background-image:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;color:#ad4337!important;-webkit-text-fill-color:#ad4337!important;text-decoration:underline!important;text-underline-offset:2px;font:600 13px/1.4 system-ui,sans-serif;min-width:0!important;min-height:0!important;padding:7px 4px!important;cursor:pointer}
html body .standard-delete-action span{color:inherit!important;-webkit-text-fill-color:inherit!important}
html body .standard-delete-action:hover{color:#8e3329!important;-webkit-text-fill-color:#8e3329!important;background:transparent!important}
html body .standard-delete-action:focus-visible{outline:2px solid #ad4337;outline-offset:3px}
html[data-theme=dark] body .standard-delete-action{color:#f3a79d!important;-webkit-text-fill-color:#f3a79d!important}
html[data-theme=dark] body .standard-delete-action:hover{color:#ffc6bd!important;-webkit-text-fill-color:#ffc6bd!important}

/* Popuphandlinger samles til højre; sletning er første handling uden at ændre skjulte knappers synlighed. */
html body :is(#editModal,#addModal,#editCompanyModal,#editAccountDetailModal,.modal,dialog) .modal-footer:has(.dataDelete,.standard-delete-action,#house-delete-button){display:flex!important;flex-direction:row!important;align-items:center;justify-content:flex-end!important;flex-wrap:wrap;gap:10px}
html body :is(#editModal,#addModal,#editCompanyModal,#editAccountDetailModal,.modal,dialog) .modal-footer :is(.dataDelete,.standard-delete-action,#house-delete-button){order:-1;float:none!important;margin:0!important}
html body :is(#editModal,#addModal,#editCompanyModal,#editAccountDetailModal,.modal,dialog) .modal-footer>.btn{margin:0!important}
html body :is(.standard-delete-action,.dataDelete,#house-delete-button)[hidden]{display:none!important}
