.fito-theme-switch{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:10px 12px;margin:0;cursor:pointer;white-space:nowrap;color:inherit}
.fito-theme-switch input{position:absolute;opacity:0;width:1px;height:1px}
.fito-theme-track{position:relative;width:46px;height:26px;flex-shrink:0;border-radius:20px;background:#8b9590;transition:background .25s}
.fito-theme-track::after{content:'';position:absolute;width:20px;height:20px;top:3px;left:3px;border-radius:50%;background:white;box-shadow:0 2px 5px #0004;transition:transform .25s}
.fito-theme-switch input:checked+.fito-theme-track{background:#159565}
.fito-theme-switch input:checked+.fito-theme-track::after{transform:translateX(20px)}
.fito-theme-switch input:focus-visible+.fito-theme-track{outline:3px solid #71cba4;outline-offset:3px}
html.dark-theme{color-scheme:dark;--auth-green-950:#e7f3ec;--auth-green-900:#0d5a3f;--auth-green-800:#10744f;--auth-green-700:#37bf8b;--auth-gold:#d6a93b;--auth-ink:#e7f3ec;--auth-muted:#b2c4ba;--auth-line:#ffffff24;--fito-ink:#e7f3ec;--fito-muted:#b2c4ba;--fito-green-950:#e7f3ec;--fito-green-900:#0d5a3f;--fito-green-800:#10744f;--fito-green-700:#37bf8b;--fito-header-green-950:#e7f3ec;--fito-header-green-900:#0d5a3f;--fito-header-green-800:#10744f;--fito-header-green-700:#37bf8b}
html.dark-theme body,html.dark-theme body.auth-page{background:radial-gradient(ellipse at 12% 0%,#35524738,transparent 60%),linear-gradient(160deg,#252e2a 0%,#202724 60%,#242c28 100%)!important;color:#e7f0eb!important;background-attachment:fixed!important}
html.dark-theme body :is(h1,h2,h3,h4,h5,label,legend,.auth-modal-title,.auth-feature strong){color:#e7f0eb!important}
html.dark-theme body .navbar.navbar-light.bg-light{background:linear-gradient(120deg,#0b513beF,#147451ed)!important;border:1px solid #ffffff20;border-radius:16px;box-shadow:inset 0 1px #ffffff1a,0 12px 32px #0004;backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px)}
html.dark-theme body :is(.container,.login-card,.claim-filter-shell,.auth-hero,.auth-liquid,.auth-feature,.auth-modal-card,.modal-content,.modal-body-centered,.informer,.edit-card){background:linear-gradient(135deg,#2d413680,#1b2922dd)!important;color:#e7f0eb!important;border:1px solid #a9d1bc26!important;border-radius:16px!important;box-shadow:inset 0 1px #ffffff12,0 18px 48px #0003!important;backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px)}
html.dark-theme body .container-fluid{background:transparent!important}
html.dark-theme body form{background:linear-gradient(135deg,#20382ba8,#17261ed9)!important;border-color:#a9d1bc26!important;border-radius:14px;box-shadow:inset 0 1px #ffffff0d!important}
html.dark-theme body .auth-form,html.dark-theme body .table form{background:transparent!important;border:0!important;box-shadow:none!important}
html.dark-theme body .auth-liquid::before{background:linear-gradient(120deg,#ffffff08,transparent)!important}
html.dark-theme body :is(.auth-description,.auth-lead,.text-muted,.auth-feature small,.breadcrumb-item){color:#b7c9bf!important}
html.dark-theme body :is(.form-group .text-right,.form-group .col-md-2,.claim-filter-header strong){color:#c9dbd1!important}
html.dark-theme body :is(.form-control,.custom-select,select.form-control,select option,.select2-container--default .select2-selection--single,.select2-container--default .select2-selection--multiple,.select2-dropdown,.select2-search__field){background:#111e17!important;color:#e7f0eb!important;border-color:#a9d1bc38!important;border-radius:9px}
html.dark-theme body .form-control:focus{border-color:#51ba8d!important;box-shadow:0 0 0 3px #37bf8b24!important}
html.dark-theme body input:-webkit-autofill{-webkit-text-fill-color:#e7f0eb!important;-webkit-box-shadow:0 0 0 1000px #17291e inset!important}
html.dark-theme body :is(.btn-primary,.auth-primary-button,.auth-card-icon,.card-header,.page-item.active .page-link){background:linear-gradient(135deg,#0c6848,#159565)!important;border-color:#40b88770!important;color:#fff!important;box-shadow:inset 0 1px #ffffff1c,0 5px 16px #0002!important}
html.dark-theme body :is(.btn-primary:hover,.btn-primary:focus,.btn-primary:not(:disabled):not(.disabled):active,.auth-primary-button:hover){background:linear-gradient(135deg,#10835a,#1aac77)!important;border-color:#6cd6a8!important}
html.dark-theme body .btn{border-radius:9px}
html.dark-theme body .btn-secondary{background:#36473d!important;color:#e7f0eb!important;border-color:#647b6b!important}
html.dark-theme body :is(.breadcrumb,.page-link,.auth-secondary-link){background:#21372baa!important;color:#ace2c8!important;border-color:#a9d1bc30!important;border-radius:10px}
html.dark-theme body :is(a:not(.btn):not(.nav-link),.table td a,.auth-eyebrow,.select2-selection__rendered){color:#8fe0b9!important}
html.dark-theme body .navbar .dropdown-menu{background:linear-gradient(135deg,#243b2ff5,#17271ff5)!important;border-color:#a9d1bc30!important;border-radius:14px;box-shadow:0 18px 44px #0006!important;backdrop-filter:blur(24px)}
html.dark-theme body .navbar .dropdown-item{padding:9px 12px;color:#d4eadd!important;font-weight:500}
html.dark-theme body .navbar .dropdown-item:hover{background:#ffffff0d!important;color:white!important}
html.dark-theme body :is(.dropdown-divider,.claim-filter-header){border-color:#ffffff18}
html.dark-theme body .table{background:#19261f!important;border-radius:12px;overflow:hidden;box-shadow:0 10px 28px #0003}
html.dark-theme body .table th{background:linear-gradient(135deg,#0d5a3f,#14744f)!important;color:white!important;border-color:#ffffff20!important}
html.dark-theme body .table tbody tr td{background:#19261f!important;color:#dfebe4!important;border-color:#ffffff12!important}
html.dark-theme body .table tbody tr:nth-child(even) td{background:#203027!important}
html.dark-theme body .table tbody tr:hover td{background:#2b4535!important}
html.dark-theme body .table tbody tr.table-danger td{background:#422b30!important;color:#f5d4da!important}
html.dark-theme body .table tbody tr.table-primary td{background:#263d45!important}
html.dark-theme body .page-item.disabled .page-link{background:#19261f!important;color:#80988a!important}
html.dark-theme body .claim-metric{border:1px solid #ffffff1c;border-radius:14px;box-shadow:inset 0 1px #ffffff12,0 6px 16px #0002}
html.dark-theme body .claim-metric strong,html.dark-theme body .claim-metric span{color:inherit!important}
html.dark-theme body .metric-work{background:#293b33;color:#d4e5db}
html.dark-theme body .metric-on-time{background:#1c4833;color:#bcebd0}
html.dark-theme body .metric-risk{background:#443b23;color:#f4dda1}
html.dark-theme body .metric-critical{background:#492525;color:#f3b9b9}
html.dark-theme body :is(.metric-overdue,.metric-late){background:#3c2020;color:#f3b9b9}
html.dark-theme body .metric-today{background:#24413d;color:#bde7de}
html.dark-theme body .claim-metric.is-active{outline-color:#51ba8d}
html.dark-theme body .claim-filter-toggle{color:#a5dfbf;border-color:#579572;border-radius:9px}
html.dark-theme body .auth-note,html.dark-theme body .alert-warning{color:#ffe1a3!important;background:#362f20!important;border-color:#ad874944!important}
html.dark-theme body :is(.alert-success,.alert-info){color:#bcebd0!important;background:#1c3c2b!important}
html.dark-theme body .alert-danger{color:#f5c4c4!important;background:#3c2020!important}
html.dark-theme body .auth-modal{background:#050b08aa}
html.dark-theme body .auth-ornament::before{border-color:#37bf8b}
html.dark-theme body .auth-ornament::after{border-color:#d6a93b}
html.dark-theme body .auth-brand-mark,html.dark-theme body .navbar-brand img{filter:none}
html.dark-theme body .site-footer{color:#a8bdb0;border-top:1px solid #ffffff18;padding:14px 0 0;margin-top:24px;background:transparent;text-align:center}
html.dark-theme body .auth-alert-success{background:#1c3c2b!important;color:#bcebd0!important;border-color:#478c6566!important}
html.dark-theme body .auth-alert-danger{background:#3c2020!important;color:#f5c4c4!important;border-color:#a6565666!important}
html.dark-theme body .auth-alert-warning{background:#39331f!important;color:#f1dfa3!important;border-color:#9d854766!important}
html.dark-theme body .table tbody tr.table-danger td{background:#3c2424!important;color:#f3cccc!important}
html.dark-theme body .table tbody tr.table-danger:hover td{background:#4b2c2c!important}
html.dark-theme body .table :is(.badge,.status-badge){background:#2d4437;color:#d0e5d8;border:1px solid #87af9638;box-shadow:none}
html.dark-theme body .table :is(.badge-danger,.badge-warning,.text-danger,.text-warning){color:#f0a6a6!important}
html.dark-theme body .table :is(.badge-danger,.badge-warning){background:#3c2424!important;border-color:#a6565666}
html.dark-theme body .table [style*="color: #e67e22"],html.dark-theme body .table [style*="color: red"]{color:#f0a6a6!important}
html.dark-theme body .table [style*="color: green"]{color:#8cdbb2!important}
/* Remove light frames and white corner bleed around journal tables. */
html.dark-theme body .table-responsive{background:transparent!important;border-color:transparent!important;box-shadow:none!important}
html.dark-theme body :is(.table,.table-bordered){border-color:transparent!important;outline:none;background:#19261f!important}
html.dark-theme body .table thead,html.dark-theme body .table tbody{border-color:#34483b!important;background:transparent!important}
html.dark-theme body .table thead tr th,html.dark-theme body .table tbody tr td{border-color:#34483b!important}
html.dark-theme body .card{background:#19261f!important;border-color:#34483b!important;box-shadow:none!important}
html.dark-theme body .card > .card-body{background:transparent!important;color:#e7f0eb!important}
html.dark-theme body .card:has(.table-responsive){background:transparent!important;border:0!important;overflow:hidden;border-radius:12px}
/* Shared dialogs, including the custom claim editor portal. */
html.dark-theme body :is(.modal,#fitoEditModalWindow,.auth-modal) .modal-content{background:#1c2c23!important;color:#e7f0eb!important;border:1px solid #42634f!important;border-radius:16px!important;overflow:hidden;box-shadow:0 24px 72px #0007!important}
html.dark-theme body :is(.modal,#fitoEditModalWindow,.auth-modal) .modal-body{background:#1c2c23!important;color:#e7f0eb!important}
html.dark-theme body :is(.modal,#fitoEditModalWindow,.auth-modal) .modal-footer{background:#19271f!important;border-color:#385140!important;color:#d4e6dc!important}
html.dark-theme body :is(.modal,#fitoEditModalWindow,.auth-modal) .modal-header{background:linear-gradient(135deg,#0d5a3f,#14744f)!important;border-color:#385140!important;color:#fff!important}
html.dark-theme body :is(.modal,#fitoEditModalWindow) .modal-header.bg-danger{background:#642e2e!important}
html.dark-theme body :is(.modal,#fitoEditModalWindow) .modal-title{color:#fff!important}
html.dark-theme body :is(.modal,#fitoEditModalWindow) .close{color:#fff!important;text-shadow:none!important;opacity:.9}
html.dark-theme body :is(.modal,#fitoEditModalWindow) .input-group-text{background:#2b4033!important;color:#cce1d4!important;border-color:#496451!important}
html.dark-theme body :is(.modal,#fitoEditModalWindow) :is(.btn-outline-primary,.btn-outline-secondary){background:transparent!important;color:#a7dfbf!important;border-color:#5a8d70!important}
html.dark-theme body fieldset,html.dark-theme body fieldset fieldset{background:linear-gradient(135deg,#243b2cb8,#1b2c21d9)!important;color:#d4e6dc!important;border:1px solid #42634f!important;border-radius:12px!important;box-shadow:none!important}
/* Solid menu surfaces keep page content from showing through the labels. */
html.dark-theme body .navbar .dropdown-menu{background:#1b3025!important;backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px)}
html.dark-theme body .navbar .dropdown-menu .dropdown-item,
html.dark-theme body .navbar .dropdown-menu .dropdown-item :is(span,i),
html.dark-theme body .navbar .dropdown-menu a:not(.btn):not(.nav-link){color:#f2f7f4!important}
html.dark-theme body .navbar .dropdown-menu .dropdown-item:hover,
html.dark-theme body .navbar .dropdown-menu .dropdown-item:focus{background:#30503d!important;color:#fff!important}
html.dark-theme body .input-group-text{background:#2b4033!important;color:#e7f0eb!important;border-color:#496451!important}
html.dark-theme body .nav-tabs{border-color:#42634f!important}
html.dark-theme body .nav-tabs .nav-link{color:#d5e7dc!important;border-color:transparent}
html.dark-theme body .nav-tabs .nav-link.active,
html.dark-theme body .nav-tabs .nav-item.show .nav-link{background:#27513b!important;color:#fff!important;border-color:#50795f!important}
html.dark-theme body .table thead th{background-clip:padding-box}
/* Saturated traffic-light rows, including striped and hovered tables. */
html.dark-theme body .table tbody tr.table-success td{background:#145536!important;color:#e2ffed!important}
html.dark-theme body .table tbody tr.table-primary td,
html.dark-theme body .table tbody tr.table-info td{background:#164e6b!important;color:#e5f6ff!important}
html.dark-theme body .table tbody tr.table-warning td{background:#695017!important;color:#fff5d6!important}
html.dark-theme body .table tbody tr.table-danger td{background:#702b2b!important;color:#ffe8e8!important}
html.dark-theme body .table tbody tr.table-dark-danger td{background:#651c25!important;color:#ffe8e8!important}
html.dark-theme body .table tbody tr.table-success:hover td{background:#1c6944!important}
html.dark-theme body .table tbody tr.table-primary:hover td,
html.dark-theme body .table tbody tr.table-info:hover td{background:#1b6082!important}
html.dark-theme body .table tbody tr.table-warning:hover td{background:#7b601e!important}
html.dark-theme body .table tbody tr.table-danger:hover td{background:#843535!important}
html.dark-theme body .table tbody tr.table-dark-danger:hover td{background:#7a2530!important}
html.dark-theme body .table tbody tr:is(.table-success,.table-primary,.table-info,.table-warning,.table-danger,.table-dark-danger) td a{color:#d2ffe9!important}
html.dark-theme body .metric-on-time{background:#145536;color:#e2ffed}
html.dark-theme body .metric-risk{background:#695017;color:#fff5d6}
html.dark-theme body .metric-critical{background:#702b2b;color:#ffe8e8}
html.dark-theme body :is(.metric-overdue,.metric-late){background:#651c25;color:#ffe8e8}
html.dark-theme body .metric-today{background:#16584f;color:#dffff8}
/* Form-row hover must not inherit the light informer highlight. */
html.dark-theme body .informer .row:hover,
html.dark-theme body form .row:hover,
html.dark-theme body form .form-row:hover,
html.dark-theme body form .form-group:hover{background-color:rgba(104,174,136,.07)!important}
html.dark-theme body :is(.btn-outline-secondary,.btn-outline-primary){color:#bbd9c9!important;border-color:#597867!important}
html.dark-theme body :is(.btn-outline-secondary,.btn-outline-primary):hover{background:#2d4a39!important;color:#fff!important;border-color:#78af90!important}
/* Detail pages inherit the shared system palette as well as form colors. */
html.dark-theme{--system-ink:#e7f0eb;--system-muted:#bbcec2;--system-green-950:#e7f0eb;--system-green-900:#a5dfbf}
html.dark-theme body .informer .row > [class*="col-"]{color:#e7f0eb!important}
html.dark-theme body .informer .row > .text-right,
html.dark-theme body .informer .row > [class*="col-"].text-right{color:#bbcec2!important}
html.dark-theme body .informer .font-weight-bold{color:#e7f0eb!important}
html.dark-theme body :is(.text-muted,small.form-text){color:#b2c7ba!important;opacity:1}
html.dark-theme body .text-dark{color:#e7f0eb!important}
html.dark-theme body :is(.lab-doc-filter,.applicant-search-shell,.lab-doc-table-shell){background:#1c2c23!important;color:#e7f0eb!important;border:1px solid #385140;border-radius:14px;box-shadow:0 10px 28px #0002}
html.dark-theme body :is(.lab-doc-filter-head,.applicant-search-head){background:#21372b;border-color:#385140!important}
html.dark-theme body :is(.lab-doc-filter-head,.applicant-search-head) strong{color:#e7f0eb!important}
html.dark-theme body :is(.lab-doc-filter-body,.applicant-search-body){background:#1c2c23}
html.dark-theme body .lab-doc-filter-toggle{background:transparent;color:#bcebd0;border-color:#578568;border-radius:8px}
html.dark-theme body .lab-doc-filter-toggle:hover{background:#2d4a39;color:#fff}
html.dark-theme body .lab-doc-summary{color:#b2c7ba}
html.dark-theme body :is(.lab-doc-filter,.applicant-search-shell) form{background:#1b2d22!important;box-shadow:none!important}
/* Laboratory transport panels are shared by card view/create/edit pages. */
html.dark-theme body .tp-wrapper{background:linear-gradient(135deg,#243b2c,#1b2c21)!important;color:#e7f0eb!important;border:1px solid #42634f!important;border-radius:12px;box-shadow:none}
html.dark-theme body :is(.tp-title,.tp-products-title){color:#e7f0eb!important}
html.dark-theme body .tp-muted{color:#b2c7ba!important}
html.dark-theme body .lab-form-wrapper .card-body,
html.dark-theme body .lab-form-wrapper .card-body :is(p,[class*="col-md-"],.form-control-plaintext){color:#e7f0eb!important}
html.dark-theme body .lab-form-wrapper .lab-card-label{color:#bbcec2!important}
html.dark-theme body .lab-form-wrapper .card-body .text-muted{color:#b2c7ba!important}
html.dark-theme body .bg-white,html.dark-theme body .bg-light{background-color:#1c2c23!important}
html.dark-theme body .table td a[href^="/agent/"],
html.dark-theme body .table td a[href^="/agent/"] .icon-file,
html.dark-theme body .table td a[href^="/agent/"] .icon-file::before{color:#fff!important;-webkit-text-fill-color:#fff;opacity:1}
/* Common action buttons share the same saturated green treatment. */
html.dark-theme body :is(button,a,input).btn:is(.btn-primary,.btn-success,.btn-secondary,.btn-light,.btn-default,.btn-outline-primary,.btn-outline-secondary,.btn-outline-success){
background:linear-gradient(135deg,#0c6848,#159565)!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:#40b88770!important;box-shadow:inset 0 1px #ffffff1c,0 4px 12px #0002!important}
html.dark-theme body :is(button,a,input).btn:is(.btn-primary,.btn-success,.btn-secondary,.btn-light,.btn-default,.btn-outline-primary,.btn-outline-secondary,.btn-outline-success):is(:hover,:focus-visible){
background:linear-gradient(135deg,#10835a,#1aac77)!important;color:#fff!important;border-color:#6cd6a8!important}
html.dark-theme body :is(button,a,input).btn:disabled,
html.dark-theme body :is(button,a,input).btn.disabled{opacity:.5;box-shadow:none!important}
html.dark-theme body .claim-reject-cause-list{background:#14231a!important;border-color:#42634f!important;scrollbar-color:#587c65 #14231a}
html.dark-theme body .claim-reject-cause-item{color:#e7f0eb!important}
html.dark-theme body .claim-reject-cause-item:hover{background:#274332!important}
html.dark-theme body .claim-reject-cause-item:has(input:checked){background:#24543b!important;box-shadow:inset 3px 0 #49c18b}
html.dark-theme body .claim-reject-cause-item input[type="radio"]{accent-color:#37bf8b}
html.dark-theme body .claim-reject-cause-item:focus-within{outline:2px solid #71cba4;outline-offset:-2px}
