:root{--ui-bg:#f8f9fc;--ui-surface:#fff;--ui-raised:#f1f3f8;--ui-text:#343a49;--ui-muted:#626c7c;--ui-border:#d9dfeb;--ui-link:#325bca;--ui-focus:#416de1}:root[data-theme=dark]{--ui-bg:#101827;--ui-surface:#192538;--ui-raised:#243249;--ui-text:#e3eaf5;--ui-muted:#b3bfd2;--ui-border:#42516a;--ui-link:#9bbdff;--ui-focus:#abc8ff}
.ui-preferences{display:flex;align-items:center;gap:6px;margin:0 8px;flex-shrink:0}.ui-icon-button{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;border:1px solid var(--ui-border);border-radius:8px;background:var(--ui-surface);color:var(--ui-text);cursor:pointer;font-size:23px;margin:0;list-style:none}.ui-icon-button::-webkit-details-marker{display:none}.ui-icon-button svg{width:22px;height:22px;display:block}.ui-icon-button[hidden]{display:none}.ui-icon-button:hover{background:var(--ui-raised)}.ui-icon-button:focus-visible,.ui-language-options button:focus-visible{outline:3px solid var(--ui-focus);outline-offset:2px}.ui-language{position:relative}.ui-language-options{position:absolute;right:0;top:50px;z-index:1100;padding:6px;min-width:155px;background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:8px;box-shadow:0 6px 18px #0004}.header-top .ui-language-options{left:0;right:auto}.ui-language-options button{display:block;width:100%;min-height:44px;text-align:left;background:transparent;border:0;border-radius:4px;color:var(--ui-text);padding:8px}.ui-language-options button:hover,.ui-language-options button[aria-pressed=true]{background:var(--ui-raised)}
html[data-theme=dark] :is(body,#content-wrapper,.main-content,.wrapper){background:var(--ui-bg)!important;color:var(--ui-text)}
html[data-theme=dark] :is(.card,.card-header,.card-footer,.modal-content,.modal-header,.modal-footer,.dropdown-menu,.collapse-inner,.navbar,.navbar-nav,.header-top,.app-sidebar,.sidebar-content,.footer,.sticky-footer,.bg-white,.bg-light,.bg-gray-100,.bg-gray-200,.list-group-item,.jumbotron,.breadcrumb,.popover,.popover-header,.popover-body,.select2-dropdown,.select2-selection,.datepicker,.dt-button-collection,.swal2-popup,.swal-modal,.leaflet-popup-content-wrapper,.leaflet-popup-tip,.leaflet-bar a){background:var(--ui-surface)!important;color:var(--ui-text)!important;border-color:var(--ui-border)!important}
html[data-theme=dark] :is(h1,h2,h3,h4,h5,h6,label,.text-dark,.text-gray-800,.text-gray-900,.dropdown-item,.collapse-item,.nav-link,.select2-selection__rendered,.swal2-title,.swal2-html-container,.swal-title,.swal-text){color:var(--ui-text)!important}
html[data-theme=dark] :is(.text-muted,.text-secondary,.text-gray-500,.text-gray-600,.text-gray-700,small,.form-text){color:var(--ui-muted)!important}html[data-theme=dark] a:not(.btn):not(.badge):not(.nav-link):not(.dropdown-item):not(.collapse-item){color:var(--ui-link)}
html[data-theme=dark] :is(.table,table,.table td,.table th,.table thead th,.table tfoot th,hr,.border,.border-top,.border-bottom,.border-left,.border-right){border-color:var(--ui-border)!important;color:var(--ui-text)}html[data-theme=dark] :is(.table,table){background:var(--ui-surface)}html[data-theme=dark] :is(.table-striped tbody tr:nth-of-type(odd),.table-hover tbody tr:hover,.table-light,.table .thead-light th,.dropdown-item:hover,.collapse-item:hover,.list-group-item:hover){background:var(--ui-raised)!important;color:var(--ui-text)!important}
html[data-theme=dark] :is(.form-control,.custom-select,.input-group-text,input:not([type=checkbox]):not([type=radio]):not([type=submit]),select,textarea,.dataTables_wrapper input,.dataTables_wrapper select){background:var(--ui-surface)!important;color:var(--ui-text)!important;border-color:var(--ui-border)!important}html[data-theme=dark] :is(input,textarea)::placeholder{color:var(--ui-muted)!important}html[data-theme=dark] :is(.form-control:disabled,.form-control[readonly]){background:var(--ui-raised)!important}
html[data-theme=dark] :is(.page-link,.btn-light,.btn-default,.dt-button){background:var(--ui-raised)!important;color:var(--ui-text)!important;border-color:var(--ui-border)!important}html[data-theme=dark] .page-item.active .page-link{background:#315ab7!important;color:#fff!important}html[data-theme=dark] .page-item.disabled .page-link{color:var(--ui-muted)!important}
html[data-theme=dark] :is(.sidebar,.bg-gradient-primary,.bg-gradient-dark){background:#142138!important}html[data-theme=dark] :is(.sidebar .nav-item .nav-link,.sidebar .nav-item .nav-link i,.sidebar-heading,.app-sidebar .nav-item a,.app-sidebar .nav-item i){color:var(--ui-text)!important}html[data-theme=dark] :is(.submenu-content,.sidebar .collapse-inner,.app-sidebar .submenu-content){background:var(--ui-raised)!important}
html[data-theme=dark] .alert-success{background:#143c30;color:#a4f1c5;border-color:#3b9e6c}html[data-theme=dark] .alert-warning{background:#42361b;color:#ffe39c;border-color:#b4973f}html[data-theme=dark] .alert-danger{background:#49232e;color:#ffc3cc;border-color:#c9697a}html[data-theme=dark] :is(.alert-info,.alert-primary){background:#1b3654;color:#bbdcff;border-color:#5387b7}html[data-theme=dark] .text-success{color:#75dba6!important}html[data-theme=dark] .text-warning{color:#f9d779!important}html[data-theme=dark] .text-danger{color:#ff9eae!important}html[data-theme=dark] :is(.text-primary,.text-info){color:#9bcaff!important}
html[data-theme=dark] .close{color:var(--ui-text);text-shadow:none}html[data-theme=dark] .leaflet-container{background:#243249}html[data-theme=dark] .leaflet-tile-pane{filter:brightness(.72) saturate(.8)}html[data-theme=dark] .leaflet-control-attribution{background:var(--ui-surface)!important;color:var(--ui-muted)}html[data-theme=dark] .select2-results__option[aria-selected=true]{background:var(--ui-raised)}html[data-theme=dark] .tooltip-inner{background:#e3eaf5;color:#101827}
@media print{:root[data-theme]{color-scheme:light;--ui-bg:#fff;--ui-surface:#fff;--ui-raised:#f1f3f8;--ui-text:#111;--ui-muted:#444;--ui-border:#ccc;--ui-link:#222}.ui-preferences{display:none!important}html[data-theme=dark] body{background:#fff!important;color:#111!important}}
.ui-language svg{width:26px;height:18px;vertical-align:middle;border-radius:2px;box-shadow:0 0 0 1px #8885}.ui-language-options svg{margin-right:6px}
html[data-theme=dark] :is([style*="color:black"],[style*="color: black"],[style*="color:#000"],[style*="color: #000"],[color=black],[color="#000000"]){color:var(--ui-text)!important}html[data-theme=dark] :is([style*="color:red"],[style*="color: red"],[color=red]){color:#ff9eae!important}
html[data-theme=dark] :is(.progress,.badge-light){background:var(--ui-raised);color:var(--ui-text)}
html[data-theme=dark] :is(table thead th,.dataTables_scrollHead th,.nav-tabs .nav-link.active,.stock-ui .job-content-tabs .nav-link.active){background:var(--ui-raised)!important;color:var(--ui-text)!important;border-color:var(--ui-border)!important}
html[data-theme=dark] [data-down-line]{stroke:#75bbff}html[data-theme=dark] [data-up-line]{stroke:#ffb977}html[data-theme=dark] [data-down-dot]{fill:#75bbff}html[data-theme=dark] [data-up-dot]{fill:#ffb977}html[data-theme=dark] [data-measurement] span[style*="#1769aa"]{color:#75bbff!important}html[data-theme=dark] [data-measurement] span[style*="#ad4b00"]{color:#ffb977!important}
html[data-theme=dark] :is(.page,.subpage,.invoice,.invoice-box,.well,.panel,.panel-body,.panel-heading){background:var(--ui-surface)!important;color:var(--ui-text)!important;border-color:var(--ui-border)!important}
html[data-theme] :is(.btn-warning,.badge-warning,.bg-warning){color:#342807!important}html[data-theme] .btn-success{background-color:#13744e;border-color:#13744e;color:#fff}html[data-theme] .btn-info{background-color:#08788e;border-color:#08788e;color:#fff}html[data-theme] .btn-danger{background-color:#c33343;border-color:#c33343;color:#fff}
html[data-theme=dark] .btn-outline-primary{color:#aac5ff;border-color:#83a7f1}html[data-theme=dark] .btn-outline-success{color:#86e5b3;border-color:#5fc895}html[data-theme=dark] .btn-outline-danger{color:#ffb0bd;border-color:#e48192}html[data-theme=dark] .btn-outline-warning{color:#ffe39c;border-color:#d5b758}
.ui-theme-feedback:not(.sr-only){position:fixed;top:76px;right:16px;max-width:280px;padding:12px;z-index:2000;background:var(--ui-surface);color:var(--ui-text);border:1px solid var(--ui-border);border-radius:8px}
html[data-theme=dark] #container{background:var(--ui-surface)!important;color:var(--ui-text)!important;border-color:var(--ui-border)!important}
html[data-theme=dark] :is(.is-invalid,.border-danger,.border-left-danger){border-color:#e48192!important}html[data-theme=dark] :is(.invalid-feedback,.invalid-tooltip){color:#ffb0bd}html[data-theme=dark] :is(.is-valid,.border-success,.border-left-success){border-color:#5fc895!important}html[data-theme=dark] .valid-feedback{color:#86e5b3}html[data-theme=dark] :is(.border-warning,.border-left-warning){border-color:#d5b758!important}html[data-theme=dark] :is(.border-info,.border-left-info,.border-primary,.border-left-primary){border-color:#83a7f1!important}html[data-theme=dark] :is(.collapse-item.active,.app-sidebar .nav-item.active>a){background:var(--ui-raised)!important;color:var(--ui-link)!important;box-shadow:inset 3px 0 var(--ui-link)}
@media print{html[data-theme=dark] :is(.text-danger,[style*="color:red"],[style*="color: red"],[color=red]){color:#b42335!important}html[data-theme=dark] .text-success{color:#13744e!important}html[data-theme=dark] .text-warning{color:#785d00!important}}
html[data-theme=dark] :is(table tfoot th,.dataTables_scrollFoot th){background:var(--ui-raised)!important;color:var(--ui-text)!important;border-color:var(--ui-border)!important}
html[data-theme=dark] :is(.dtr-modal-display,.dtr-modal-content,.dtr-modal-close,.dataTables_processing,.dt-processing,.dt-button-info,.daterangepicker,.ui-datepicker,.ui-autocomplete){background:var(--ui-surface)!important;color:var(--ui-text)!important;border-color:var(--ui-border)!important}
html[data-theme=dark] :is(.table-success,.table-success>td,.table-success>th){background:#143c30!important;color:#a4f1c5!important}html[data-theme=dark] :is(.table-warning,.table-warning>td,.table-warning>th){background:#42361b!important;color:#ffe39c!important}html[data-theme=dark] :is(.table-danger,.table-danger>td,.table-danger>th){background:#49232e!important;color:#ffc3cc!important}html[data-theme=dark] :is(.table-info,.table-info>td,.table-info>th){background:#1b3654!important;color:#bbdcff!important}
html[data-theme] .badge-success{background:#13744e;color:#fff}html[data-theme] .badge-danger{background:#c33343;color:#fff}html[data-theme] .badge-info{background:#08788e;color:#fff}
