/* WorkLinkX-V2.2-Adaptive 2.2 — all visual differences are theme-only.
   No changes to core FormTools, form field dates, or stored records. */
:root { --wlx-v22-fontsize:13px; --wlx-v22-cell-y:7px; --wlx-v22-control-y:7px; }
body[data-wlx-font='small'] { --wlx-v22-fontsize:12px; }
body[data-wlx-font='normal'] { --wlx-v22-fontsize:13px; }
body[data-wlx-font='large'] { --wlx-v22-fontsize:15px; }
body[data-wlx-density='compact'] { --wlx-v22-cell-y:2px; --wlx-v22-control-y:5px; }
body[data-wlx-density='normal'] { --wlx-v22-cell-y:5px; --wlx-v22-control-y:7px; }
body[data-wlx-density='comfortable'] { --wlx-v22-cell-y:9px; --wlx-v22-control-y:10px; }

/* Brand palettes: distinct backgrounds, typography, navigation and controls. */
body[data-wlx-skin='sys'] {
 --wlx-theme-font:'Segoe UI',Arial,sans-serif; --wlx-theme-bg:#eaf1f6;
 --wlx-theme-panel:#fff; --wlx-theme-side:#e4f1fa; --wlx-theme-sidehead:#d4eaf5;
 --wlx-theme-ink:#183950; --wlx-theme-muted:#54748a; --wlx-theme-head1:#073d65;
 --wlx-theme-head2:#0a8bab; --wlx-theme-accent:#087ca0; --wlx-theme-field:#f9fcfe;
 --wlx-theme-border:#c9dce8; --wlx-theme-row:#f2f8fb; --wlx-theme-radius:8px;
 --wlx-theme-shadow:0 9px 28px rgba(7,59,96,.11); --wlx-theme-cap:.02em;
}
body[data-wlx-skin='support'] {
 --wlx-theme-font:Tahoma,Verdana,Arial,sans-serif; --wlx-theme-bg:#dfe8ec;
 --wlx-theme-panel:#fdfefe; --wlx-theme-side:#e1ecec; --wlx-theme-sidehead:#cbdedf;
 --wlx-theme-ink:#1b3539; --wlx-theme-muted:#456971; --wlx-theme-head1:#123b4b;
 --wlx-theme-head2:#077b85; --wlx-theme-accent:#00717b; --wlx-theme-field:#f6fbfb;
 --wlx-theme-border:#b6ced1; --wlx-theme-row:#eaf3f3; --wlx-theme-radius:3px;
 --wlx-theme-shadow:0 3px 14px rgba(8,64,65,.11); --wlx-theme-cap:0;
}
body[data-wlx-skin='fluent'] {
 --wlx-theme-font:'Segoe UI',Arial,sans-serif; --wlx-theme-bg:#e6effa;
 --wlx-theme-panel:#fff; --wlx-theme-side:#edf3ff; --wlx-theme-sidehead:#dce8fd;
 --wlx-theme-ink:#273d5c; --wlx-theme-muted:#607391; --wlx-theme-head1:#143767;
 --wlx-theme-head2:#487bd7; --wlx-theme-accent:#2863c0; --wlx-theme-field:#f8fbff;
 --wlx-theme-border:#c9d8ef; --wlx-theme-row:#f0f5fd; --wlx-theme-radius:11px;
 --wlx-theme-shadow:0 12px 30px rgba(32,70,143,.14); --wlx-theme-cap:.015em;
}
body[data-wlx-skin='material'] {
 --wlx-theme-font:Arial,Roboto,sans-serif; --wlx-theme-bg:#f3eef9;
 --wlx-theme-panel:#fffefc; --wlx-theme-side:#f4eafa; --wlx-theme-sidehead:#ebdaf4;
 --wlx-theme-ink:#41354f; --wlx-theme-muted:#7a6687; --wlx-theme-head1:#49336f;
 --wlx-theme-head2:#926ac0; --wlx-theme-accent:#7652a4; --wlx-theme-field:#fcf9ff;
 --wlx-theme-border:#e1d4e9; --wlx-theme-row:#faf4fc; --wlx-theme-radius:15px;
 --wlx-theme-shadow:0 12px 27px rgba(76,52,113,.13); --wlx-theme-cap:.022em;
}
body[data-wlx-skin='minimal'] {
 --wlx-theme-font:-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; --wlx-theme-bg:#f2f3f5;
 --wlx-theme-panel:#fff; --wlx-theme-side:#fbfbfc; --wlx-theme-sidehead:#f0f0f1;
 --wlx-theme-ink:#202328; --wlx-theme-muted:#697079; --wlx-theme-head1:#24292e;
 --wlx-theme-head2:#4b5661; --wlx-theme-accent:#374151; --wlx-theme-field:#fff;
 --wlx-theme-border:#dadddf; --wlx-theme-row:#f7f8f9; --wlx-theme-radius:12px;
 --wlx-theme-shadow:0 11px 33px rgba(0,0,0,.06); --wlx-theme-cap:0;
}
/* Distinct application shell — not a colour-only skin. */
body[data-wlx-skin] {
 background:var(--wlx-theme-bg)!important;
 color:var(--wlx-theme-ink)!important;
 font-family:var(--wlx-theme-font)!important;
}
body[data-wlx-skin] #container,
body[data-wlx-skin] #container.admin_container {
 background-color:var(--wlx-theme-panel)!important;
 box-shadow:var(--wlx-theme-shadow)!important;
 border-radius:var(--wlx-theme-radius)!important;
}
body[data-wlx-skin] #header {
 background:linear-gradient(105deg,var(--wlx-theme-head1),var(--wlx-theme-head2))!important;
 border-bottom:3px solid var(--wlx-theme-accent)!important;
}
body[data-wlx-skin='minimal'] #header {
 background:linear-gradient(102deg,#2b3540,#59636d)!important;
}
body[data-wlx-skin='material'] #header {border-bottom-width:5px!important;}
body[data-wlx-skin] .wlx-sidebar-cell,
body[data-wlx-skin] #left {
 background:var(--wlx-theme-side)!important;
 border-right:1px solid var(--wlx-theme-border)!important;
}
body[data-wlx-skin] #left_nav_top,
body[data-wlx-skin] #left .nav_heading {
 background:var(--wlx-theme-sidehead)!important;
 border-left:3px solid var(--wlx-theme-accent)!important;
 color:var(--wlx-theme-ink)!important;
 letter-spacing:var(--wlx-theme-cap)!important;
 font:700 var(--wlx-v22-fontsize)/1.4 var(--wlx-theme-font)!important;
 padding:7px 8px!important;
 height:auto!important;
 box-sizing:border-box!important;
}
body[data-wlx-skin] #left a,
body[data-wlx-skin] #left li,
body[data-wlx-skin] #left .nav_link,
body[data-wlx-skin] #left .nav_link_submenu {
 font-family:var(--wlx-theme-font)!important;
 font-size:var(--wlx-v22-fontsize)!important;
 color:var(--wlx-theme-ink)!important;
 line-height:1.4!important;
}
body[data-wlx-skin] #left a:hover,
body[data-wlx-skin] #left .nav_link_selected a {
 background:var(--wlx-theme-row)!important;
 color:var(--wlx-theme-accent)!important;
 border-radius:var(--wlx-theme-radius)!important;
}
body[data-wlx-skin] #page_content {
 background:var(--wlx-theme-panel)!important;
 color:var(--wlx-theme-ink)!important;
 font-family:var(--wlx-theme-font)!important;
}
body[data-wlx-skin] #page_content td,
body[data-wlx-skin] #page_content th,
body[data-wlx-skin] #page_content p,
body[data-wlx-skin] #page_content label,
body[data-wlx-skin] #page_content a,
body[data-wlx-skin] #page_content select,
body[data-wlx-skin] #page_content input,
body[data-wlx-skin] #page_content textarea,
body[data-wlx-skin] #page_content .list_table {
 font-family:var(--wlx-theme-font)!important;
 font-size:var(--wlx-v22-fontsize)!important;
}
body[data-wlx-skin] #page_content h1,
body[data-wlx-skin] #page_content h2,
body[data-wlx-skin] #page_content h3,
body[data-wlx-skin] #page_content .page_heading {
 font-family:var(--wlx-theme-font)!important;
 color:var(--wlx-theme-ink)!important;
 letter-spacing:var(--wlx-theme-cap)!important;
}
body[data-wlx-skin] #page_content .list_table,
body[data-wlx-skin] #page_content table.list_table {
 border:1px solid var(--wlx-theme-border)!important;
 border-radius:var(--wlx-theme-radius)!important;
}
body[data-wlx-skin] #page_content .list_table th,
body[data-wlx-skin] #page_content table.list_table th {
 background:var(--wlx-theme-sidehead)!important;
 color:var(--wlx-theme-ink)!important;
 border-bottom:2px solid var(--wlx-theme-border)!important;
 font-weight:700!important;
}
body[data-wlx-skin] #page_content .list_table td,
body[data-wlx-skin] #page_content .list_table th {
 padding-top:var(--wlx-v22-cell-y)!important;
 padding-bottom:var(--wlx-v22-cell-y)!important;
}
body[data-wlx-skin] #page_content .list_table tr:nth-child(even):not(.selected):not(.highlight) > td {
 background-color:var(--wlx-theme-row);
}
body[data-wlx-skin] #page_content .list_table tr:hover > td {
 box-shadow:inset 0 1px var(--wlx-theme-border),inset 0 -1px var(--wlx-theme-border);
}
/* Keep the checkbox/edit/delete controls and table dragging logic unchanged. */
body[data-wlx-skin] #page_content input[type='text'],
body[data-wlx-skin] #page_content input[type='password'],
body[data-wlx-skin] #page_content select,
body[data-wlx-skin] #page_content textarea {
 background:var(--wlx-theme-field)!important;
 border:1px solid var(--wlx-theme-border)!important;
 border-radius:calc(var(--wlx-theme-radius) * .55)!important;
 color:var(--wlx-theme-ink)!important;
 min-height:27px;
 padding-top:var(--wlx-v22-control-y)!important;
 padding-bottom:var(--wlx-v22-control-y)!important;
}
body[data-wlx-skin] #page_content input[type='submit'],
body[data-wlx-skin] #page_content input[type='button'],
body[data-wlx-skin] #page_content button:not(.wlx-date-launch) {
 background:var(--wlx-theme-accent)!important;
 color:#fff!important;
 border:1px solid var(--wlx-theme-accent)!important;
 border-radius:calc(var(--wlx-theme-radius) * .7)!important;
 padding:var(--wlx-v22-control-y) 12px!important;
 font-weight:600!important;
}
body[data-wlx-skin] #page_content input:focus-visible,
body[data-wlx-skin] #page_content select:focus-visible,
body[data-wlx-skin] #page_content textarea:focus-visible,
body[data-wlx-skin] #page_content button:focus-visible {
 outline:2px solid var(--wlx-theme-accent)!important;
 outline-offset:2px!important;
}
body[data-wlx-skin] #page_content .tab_content,
body[data-wlx-skin] #page_content .sortable_group {
 border-color:var(--wlx-theme-border)!important;
}
body[data-wlx-skin] #page_content .main_tabset li,
body[data-wlx-skin] #page_content .tabset li {
 border-radius:var(--wlx-theme-radius) var(--wlx-theme-radius) 0 0!important;
}
body[data-wlx-skin] .wlx-card {
 border:1px solid var(--wlx-theme-border)!important;
 background:var(--wlx-theme-panel)!important;
 box-shadow:var(--wlx-theme-shadow)!important;
 border-radius:var(--wlx-theme-radius)!important;
}
body[data-wlx-skin] .wlx-card-top {
 background:var(--wlx-theme-sidehead)!important;
 border-bottom:1px solid var(--wlx-theme-border)!important;
}
body[data-wlx-skin] .wlx-card-title {color:var(--wlx-theme-ink)!important;font-family:var(--wlx-theme-font)!important;}
body[data-wlx-skin] .wlx-date-launch,
body[data-wlx-skin] .wlx-primary {
 background:var(--wlx-theme-accent)!important;
 border-color:var(--wlx-theme-accent)!important;
 color:#fff!important;
 border-radius:var(--wlx-theme-radius)!important;
}
body[data-wlx-skin] .wlx-date-modal {
 border:1px solid var(--wlx-theme-border)!important;
 border-radius:calc(var(--wlx-theme-radius) + 4px)!important;
 font-family:var(--wlx-theme-font)!important;
}
/* Header preferences are stronger than the underlying theme's original colours. */
body[data-wlx-skin] #wlx-mode-bar {font-family:var(--wlx-theme-font)!important;}
body[data-wlx-skin] #wlx-mode-bar select,
body[data-wlx-skin] #wlx-mode-bar button {
 border-color:rgba(255,255,255,.65)!important;
 background:rgba(0,0,0,.20)!important;
 color:#fff!important;
 border-radius:var(--wlx-theme-radius)!important;
}
body[data-wlx-skin] #wlx-mode-bar select option {background:#fff!important;color:#202d36!important;}
body[data-wlx-skin] #wlx-style-panel {
 width:230px!important;
 background:var(--wlx-theme-panel)!important;
 border:1px solid var(--wlx-theme-border)!important;
 border-radius:var(--wlx-theme-radius)!important;
 box-shadow:var(--wlx-theme-shadow)!important;
 padding:15px!important;
}
body[data-wlx-skin] #wlx-style-panel label {
 display:block!important;
 color:var(--wlx-theme-ink)!important;
 font-size:12px!important;
 margin-top:13px!important;
 margin-bottom:5px!important;
}
body[data-wlx-skin] #wlx-style-panel label:first-child {margin-top:0!important;}
body[data-wlx-skin] #wlx-style-panel select {
 background:var(--wlx-theme-field)!important;
 border:1px solid var(--wlx-theme-border)!important;
 border-radius:var(--wlx-theme-radius)!important;
 color:var(--wlx-theme-ink)!important;
 min-height:34px!important;
}
.wlx-style-hint {font-size:11px!important;line-height:1.4!important;color:#6d7884!important;margin:12px 0 0!important;}
body[data-wlx-skin] #footer {color:var(--wlx-theme-muted)!important;}
/* Never colour the logo; WorkLinkX identity stays consistent across styles. */
#header img[src*='header_logo'] {filter:none!important;}
/* On small screens, keep the dense UI responsive and prevent fixed-width panels. */
@media(max-width:700px) {
 body[data-wlx-skin] #page_content {padding:10px!important;}
 body[data-wlx-skin] #left .nav_heading {padding:8px 10px!important;}
 body[data-wlx-skin] #page_content .list_table td,
 body[data-wlx-skin] #page_content .list_table th {
   padding-top:max(3px,var(--wlx-v22-cell-y))!important;
   padding-bottom:max(3px,var(--wlx-v22-cell-y))!important;
 }
 body[data-wlx-skin] .wlx-date-modal {max-height:calc(100dvh - 16px)!important;}
}
@media(prefers-reduced-motion:reduce) {
 body[data-wlx-skin] * {transition-duration:0.01ms!important;}
}
