.pl-settings{display:flex;flex-wrap:wrap;align-items:end;gap:10px;margin:10px 0 22px;font-family:inherit}.pl-settings label{display:flex;flex-direction:column;gap:5px;font-size:11px;font-weight:650;color:var(--pl-label,#537162);margin:0}.pl-settings select{min-width:115px;height:36px;padding:0 10px;border-radius:9px;border:1px solid var(--pl-border,#dce7df);background:var(--pl-surface,#fff);color:var(--pl-text,#173b2c);font:inherit;font-size:12px;cursor:pointer}.pl-settings small{font-size:10px;color:var(--pl-muted,#71877b);align-self:center}.top .pl-settings{margin:0 0 0 auto}.top .pl-settings select{height:32px}
html[data-pl-theme=light]{--pl-bg:#f6f9f7;--pl-surface:#fff;--pl-text:#173b2c;--pl-muted:#647d70;--pl-border:#dce7df;--pl-label:#527363}html[data-pl-theme=dark]{--pl-bg:#101c19;--pl-surface:#1a2a24;--pl-text:#ecf8ef;--pl-muted:#a6bcaf;--pl-border:#395247;--pl-label:#b4d4c0;color-scheme:dark}
html[data-pl-theme=dark] body,html[data-pl-theme=dark] .main{background:var(--pl-bg);color:var(--pl-text)}html[data-pl-theme=dark] .card{background:var(--pl-surface);color:var(--pl-text);border-color:var(--pl-border)}html[data-pl-theme=dark] .top,html[data-pl-theme=dark] .top h1,html[data-pl-theme=dark] h1,html[data-pl-theme=dark] h2{color:var(--pl-text)}html[data-pl-theme=dark] .muted{color:var(--pl-muted)}html[data-pl-theme=dark] .sidebar{background:#10261e;color:#e5f4eb}html[data-pl-theme=dark] .sidebar .nav{color:#d5e6db}html[data-pl-theme=dark] .sidebar .nav.active{background:#22533a;color:#aaf0c7}html[data-pl-theme=dark] .sidebar .nav:hover{background:#204534;color:#fff}html[data-pl-theme=dark] input,html[data-pl-theme=dark] select,html[data-pl-theme=dark] textarea{background:var(--pl-surface);color:var(--pl-text);border-color:var(--pl-border)}html[data-pl-theme=dark] th{background:#233a30;color:#e3f3e8}html[data-pl-theme=dark] td{border-color:var(--pl-border);color:var(--pl-text)}html[data-pl-theme=dark] .pl-form-panel{background:#111d19}html[data-pl-theme=dark] .pl-form h1,html[data-pl-theme=dark] .pl-form label,html[data-pl-theme=dark] .pl-form .login-logo{color:#e8f8ed}html[data-pl-theme=dark] .pl-form .pl-description{color:#acc4b6}html[data-pl-theme=dark] .pl-form .input{background:#1c3027;border-color:#3b5747;color:#f2fff6}html[data-pl-theme=dark] .pl-form .input::placeholder{color:#a1b8a9}html[data-pl-theme=dark] .pl-form .login-submit{background:#00a86b;color:white}html[data-pl-theme=dark] .pl-form .pl-security{color:#b2cbb9}html[data-pl-theme=light] .pl-form-panel{background:#f8fbf9}
@media(max-width:750px){.top .pl-settings{width:100%;justify-content:flex-start;margin-top:12px}.top{flex-wrap:wrap}.pl-settings small{display:none}}
/* Additional contrast coverage for ERP dashboard and mobile navigation. */
html[data-pl-theme=dark]{--bg:#101c19;--dark:#edf8f0;--muted:#acc1b3;--line:#345044;--shadow:0 8px 25px rgba(0,0,0,.14)}
html[data-pl-theme=dark] .sidebar{border-right-color:#345044}
html[data-pl-theme=dark] .brand,html[data-pl-theme=dark] .mobile-head,html[data-pl-theme=dark] .field label{color:#d8f3e3}
html[data-pl-theme=dark] .menu-title,html[data-pl-theme=dark] .brand small,html[data-pl-theme=dark] .profile-text small{color:#a6bcaf}
html[data-pl-theme=dark] .sidebar-bottom{border-top-color:#345044}
html[data-pl-theme=dark] .stat{color:#c0f5d7}
html[data-pl-theme=dark] tbody tr:hover{background:#203c30}
html[data-pl-theme=dark] .btn.secondary{background:#234c37;color:#bcf3d4}
html[data-pl-theme=dark] .btn.secondary:hover{background:#2d6348}
html[data-pl-theme=dark] .menu-toggle{background:#1c3328;border-color:#345044;color:#d4f8e2}
html[data-pl-theme=dark] .pl-form .login-footer{color:#a8bcb0}
html[data-pl-theme=dark] .alert{background:#442c28;color:#ffd6c9;border-color:#755048}
html[data-pl-theme=dark] .good{color:#72e8a8}
html[data-pl-theme=dark] .bad{color:#ff9292}
html[data-pl-theme=dark] .pl-settings select{background:#1d3228;color:#e8f8ed;border-color:#45634f}
html[data-pl-theme=dark] .pl-settings label,html[data-pl-theme=dark] .pl-settings small{color:#b8d4c2}
.pl-form .pl-settings{margin:0 0 24px;justify-content:flex-start}
.pl-settings select{width:auto;max-width:100%;min-width:125px}
@media(max-width:850px){.pl-form .pl-settings{gap:8px}.pl-form .pl-settings select{min-width:110px}}


/* Premium preferences: compact toolbar trigger + accessible popover. */
.pl-settings.pl-settings-premium{position:relative;display:block;flex:0 0 auto;margin:0 0 0 auto;z-index:50;font-family:inherit}
.pl-pref-wrap{position:relative}
.pl-pref-trigger{display:inline-flex;align-items:center;gap:9px;min-height:42px;padding:7px 12px;border:1px solid var(--pl-border,#dce7df);border-radius:14px;background:var(--pl-surface,#fff);color:var(--pl-text,#173b2c);font:600 12px/1.3 inherit;box-shadow:0 3px 13px rgba(13,54,37,.055);cursor:pointer;transition:border-color .2s,box-shadow .2s,transform .2s}
.pl-pref-trigger:hover{border-color:#2eb87b;box-shadow:0 7px 20px rgba(16,120,78,.12);transform:translateY(-1px)}
.pl-pref-trigger:focus-visible,.pl-pref-segments button:focus-visible{outline:3px solid #4adba1;outline-offset:2px}
.pl-pref-trigger-icon{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:linear-gradient(145deg,#d7fce7,#eaf9ef);color:#008b59;font-size:18px}
.pl-pref-current{color:var(--pl-muted,#647d70);font-size:12px}.pl-pref-chevron{color:var(--pl-muted,#647d70);font-size:19px}
.pl-pref-popover{position:absolute;right:0;top:calc(100% + 12px);width:min(350px,calc(100vw - 32px));box-sizing:border-box;padding:17px;border:1px solid var(--pl-border,#dce7df);border-radius:20px;background:var(--pl-surface,#fff);color:var(--pl-text,#173b2c);box-shadow:0 24px 65px rgba(12,46,33,.19);z-index:100;animation:pl-pref-in .18s ease-out}
.pl-pref-popover[hidden]{display:none!important}
.pl-pref-heading{display:flex;align-items:center;gap:11px;padding-bottom:15px;border-bottom:1px solid var(--pl-border,#dce7df)}
.pl-pref-heading-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:13px;background:linear-gradient(135deg,#00b873,#008e70);color:white;font-size:20px}
.pl-pref-heading strong{display:block;font-size:15px}.pl-pref-heading small{display:block;margin-top:3px;color:var(--pl-muted,#647d70);font-size:11px}
.pl-pref-section{margin-top:17px}.pl-pref-section-label{display:flex;align-items:center;gap:8px;margin-bottom:9px;color:var(--pl-text,#173b2c);font-size:12px}
.pl-pref-section-label span{font-size:17px}.pl-pref-segments{display:flex;gap:5px;padding:5px;border-radius:13px;background:var(--pl-bg,#f4f8f5);border:1px solid var(--pl-border,#dce7df)}
.pl-pref-segments button{flex:1;min-width:0;min-height:38px;padding:7px 5px;border:1px solid transparent;border-radius:9px;background:transparent;color:var(--pl-muted,#647d70);font:600 12px/1.3 inherit;cursor:pointer;white-space:nowrap;transition:background .2s,color .2s,box-shadow .2s}
.pl-pref-segments button:hover{color:var(--pl-text,#173b2c)}.pl-pref-segments button.is-active{background:var(--pl-surface,#fff);border-color:var(--pl-border,#dce7df);color:#00945e;box-shadow:0 2px 8px rgba(0,0,0,.06)}
.pl-pref-description{margin:10px 1px 0;font-size:11px;color:var(--pl-muted,#647d70);line-height:1.5}
html[data-pl-theme=dark] .pl-pref-trigger-icon{background:#244d3b;color:#6be2a8}
html[data-pl-theme=dark] .pl-pref-segments button.is-active{color:#73edb2;background:#284638}
@keyframes pl-pref-in{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:750px){.top .pl-settings.pl-settings-premium{width:auto;margin:10px 0 0 auto}.pl-pref-trigger-text{display:none}.pl-pref-popover{right:0}}
@media(prefers-reduced-motion:reduce){.pl-pref-popover{animation:none}.pl-pref-trigger{transition:none}}

/* Layout correction: consistent button dimensions, typography and spacing. */
.top .pl-settings.pl-settings-premium{width:auto!important;min-width:0;flex:0 0 auto;align-self:center;margin:0 0 0 auto!important;}
.pl-pref-wrap{display:block;line-height:normal;}
.pl-pref-trigger{box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:12px!important;width:auto!important;min-width:166px!important;height:46px!important;min-height:46px!important;margin:0!important;padding:6px 13px 6px 7px!important;border-radius:15px!important;white-space:nowrap!important;font-family:Inter,ui-sans-serif,system-ui,Arial,sans-serif!important;font-size:13px!important;font-weight:650!important;line-height:1!important;letter-spacing:0!important;}
.pl-pref-trigger-icon{box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 32px!important;width:32px!important;height:32px!important;font-size:19px!important;line-height:1!important;}
.pl-pref-trigger-text{display:inline-block!important;flex:1 1 auto!important;min-width:0!important;font-size:13px!important;line-height:1.2!important;text-align:left!important;white-space:nowrap!important;}
.pl-pref-chevron{display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 14px!important;width:14px!important;font-size:20px!important;line-height:1!important;margin-left:2px!important;}
.pl-pref-popover{font-family:Inter,ui-sans-serif,system-ui,Arial,sans-serif!important;}
.pl-pref-segments button{font-family:inherit!important;font-size:12px!important;font-weight:650!important;line-height:1.3!important;}
@media(max-width:750px){.top .pl-settings.pl-settings-premium{width:auto!important;margin:10px 0 0 auto!important}.pl-pref-trigger{min-width:148px!important}.pl-pref-trigger-text{display:inline-block!important}}
