/* WS40 public chart explorer ([ws40_charts]). */
.ws40x{--x-g:#05704b;--x-ink:#14231b;--x-mut:#4f6157;--x-line:#d6e2d8;--x-soft:#f3f7f3;color:var(--x-ink);font-size:15px;line-height:1.45;display:flex;flex-direction:column;gap:14px}
.ws40x *,.ws40x *::before,.ws40x *::after{box-sizing:border-box}
.ws40x-loading,.ws40x-missing{color:var(--x-mut)}
.ws40x-bar{display:flex;flex-direction:column;gap:14px;background:#fff;border:1px solid var(--x-line);border-radius:14px;padding:14px 16px}
.ws40x-bar-top{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px}
.ws40x-ctrls{display:flex;flex-wrap:wrap;align-items:flex-start;gap:12px 22px;padding-top:12px;border-top:1px solid var(--x-soft)}
.ws40x-periodf{gap:6px}
.ws40x-periodf .ws40x-custom{margin-top:2px}
.ws40x-ybox{display:flex;flex-wrap:wrap;gap:12px 22px;align-items:flex-start}
.ws40x-tabs{display:inline-flex;flex-wrap:wrap;gap:4px;background:#e3ece5;border-radius:12px;padding:4px}
.ws40x-tab{border:0;border-radius:9px;padding:0 16px;min-height:40px;font:600 14px/1 inherit;font-family:inherit;background:transparent;color:var(--x-mut);cursor:pointer}
.ws40x-tab[aria-selected="true"]{background:#fff;color:var(--x-g);box-shadow:0 1px 3px rgba(1,35,23,.12)}
.ws40x-field{display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--x-mut);margin:0}
.ws40x-chips{display:flex;flex-wrap:wrap;gap:6px}
.ws40x-chip{border:1px solid var(--x-line);background:#fff;color:var(--x-ink);border-radius:999px;padding:0 14px;min-height:38px;font:500 14px inherit;font-family:inherit;cursor:pointer}
.ws40x-chip[aria-pressed="true"]{background:var(--x-g);border-color:var(--x-g);color:#fff}
.ws40x-select,.ws40x-date,.ws40x-name{min-height:38px;border:1px solid var(--x-line);border-radius:9px;padding:0 10px;font:500 14px inherit;font-family:inherit;color:var(--x-ink);background:#fff}
.ws40x-custom{display:flex;align-items:center;gap:6px}
.ws40x-custom[hidden]{display:none}
.ws40x-acts{margin-left:auto;display:flex;gap:8px}
.ws40x-btn{border:1px solid var(--x-line);background:#fff;color:var(--x-ink);border-radius:9px;padding:0 14px;min-height:38px;font:500 14px inherit;font-family:inherit;cursor:pointer}
.ws40x-btn:hover{border-color:var(--x-g);color:var(--x-g)}
.ws40x-btn--primary{background:var(--x-g);border-color:var(--x-g);color:#fff}
.ws40x-btn--primary:hover{background:#034a32;color:#fff}
.ws40x-btn[hidden]{display:none}
.ws40x-btn--danger{color:#a32d2d;border-color:#e9c6c6}
.ws40x-btn--danger:hover{border-color:#a32d2d;color:#a32d2d}
.ws40x-btn--danger.is-armed{background:#a32d2d;border-color:#a32d2d;color:#fff}
.ws40x-body{display:flex;flex-wrap:wrap;gap:14px;align-items:flex-start}
.ws40x-series{flex:1 1 230px;max-width:280px;background:#fff;border:1px solid var(--x-line);border-radius:14px;padding:10px;font-size:14px}
.ws40x-series-head{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:2px 6px 6px;cursor:pointer;list-style:none}
.ws40x-series-head::-webkit-details-marker{display:none}
.ws40x-series-head::after{content:'';width:7px;height:7px;border-right:2px solid var(--x-mut);border-bottom:2px solid var(--x-mut);transform:rotate(45deg);margin:0 2px 3px 4px}
.ws40x-series-head .ws40x-count{margin-left:auto}
.ws40x-series[open]>.ws40x-series-head::after{transform:rotate(-135deg);margin-bottom:-3px}
.ws40x-opt.is-empty{opacity:.45}
.ws40x-count{font-size:12px;color:var(--x-mut)}
.ws40x-group{border:0;margin:0;padding:0 0 4px}
.ws40x-group legend{font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--x-mut);padding:8px 6px 2px}
.ws40x-opt{display:flex;align-items:center;gap:8px;padding:6px;border-radius:8px;min-height:36px;cursor:pointer}
.ws40x-opt:hover{background:var(--x-soft)}
.ws40x-opt input{width:16px;height:16px;margin:0;accent-color:var(--x-g)}
.ws40x-opt span:nth-of-type(2){flex:1}
.ws40x-opt small{color:var(--x-mut);font-size:12px}
.ws40x-dot{width:10px;height:10px;border-radius:3px;flex:none}
.ws40x-calcs{padding:0 6px 0 30px}
.ws40x-calcs:empty,.ws40x-series.is-raw .ws40x-calcs{display:none}
.ws40x-calc-row{display:flex;align-items:center;gap:6px;margin:0 0 4px}
.ws40x-calc{flex:1;min-width:0;height:28px;font-size:12.5px;padding:0 6px;border:1px solid var(--x-line);border-radius:7px;background:#fff;color:inherit}
.ws40x-calc-x{width:26px;height:26px;border:1px solid var(--x-line);border-radius:7px;background:#fff;color:var(--x-mut);cursor:pointer;line-height:1}
.ws40x-calc-add{border:0;background:none;color:var(--x-g);font-size:12px;padding:2px 0 6px;cursor:pointer}
.ws40x-main{flex:999 1 560px;min-width:0;background:#fff;border:1px solid var(--x-line);border-radius:14px;padding:14px 12px 10px}
.ws40x--fixed .ws40x-main{flex-basis:100%}
.ws40x-wind{min-height:200px}
.ws40x-rose{max-width:560px;margin:0 auto}
.ws40x-rose-ec{height:470px;background:#fff;border:1px solid #dcdcde;border-radius:10px}
@media (max-width:480px){.ws40x-rose-ec{height:400px}}
/* DT-237: wind summary next to the rose. */
.ws40x-windwrap{display:flex;flex-wrap:wrap;gap:16px 24px;align-items:flex-start;justify-content:center}
.ws40x-windwrap .ws40x-rose{flex:1 1 360px;margin:0}
.ws40x-sum{flex:1 1 380px;min-width:0;max-width:560px}
.ws40x-sum-t{margin:4px 0 8px;font-weight:600;font-size:15px}
.ws40x-sum-t span{font-weight:400;color:var(--x-mut);font-size:13px}
.ws40x-stable{width:100%;border-collapse:collapse;font-size:14px;font-variant-numeric:tabular-nums}
.ws40x-stable th,.ws40x-stable td{padding:8px 6px;border-bottom:1px solid var(--x-soft);text-align:right;white-space:nowrap}
.ws40x-stable thead th{font-size:12px;font-weight:500;color:var(--x-mut);border-bottom:1px solid var(--x-line)}
.ws40x-stable th:first-child{text-align:left}
.ws40x-stable tbody th{font-weight:600}
.ws40x-stable tbody th small{display:block;font-weight:400;font-size:11px;color:var(--x-mut)}
.ws40x-srow{cursor:pointer}
.ws40x-srow:hover td,.ws40x-srow:hover th{background:#f6f8f6;box-shadow:inset 0 -1px 0 var(--x-line)}
.ws40x-srow.is-on th{box-shadow:inset 3px 0 0 var(--x-g)}
.ws40x-srow:focus-visible{outline:2px solid var(--x-g);outline-offset:-2px}
.ws40x-srow.is-on td,.ws40x-srow.is-on th{background:#e3f4ec;color:#034a32}
.ws40x-srow.is-thin td,.ws40x-srow.is-thin th{color:#5f6e65;font-style:italic}
.ws40x-srow.is-thin.is-on td,.ws40x-srow.is-thin.is-on th{color:#034a32}
@media (max-width:600px){.ws40x-stable .ws40x-sx{display:none}.ws40x-stable{font-size:13px}.ws40x-stable th,.ws40x-stable td{padding:7px 4px}.ws40x-stable thead th{white-space:normal;line-height:1.2;vertical-align:bottom;hyphens:auto}}
.ws40x-rose-empty{text-align:center;padding:48px 12px}
.ws40x-chip:disabled{opacity:.45;cursor:not-allowed}
.ws40x [hidden]{display:none!important}
.ws40x-msg{margin:0 0 8px;color:var(--x-mut)}
.ws40x-msg[hidden]{display:none}
.ws40x-chart{width:100%}
.ws40x-stats{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.ws40x-stat{background:var(--x-soft);border-radius:10px;padding:8px 12px;min-width:150px}
.ws40x-stat-l{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--x-mut)}
.ws40x-stat-l i{width:8px;height:8px;border-radius:2px;display:inline-block}
.ws40x-stat-v{font-weight:600;font-size:17px;font-variant-numeric:tabular-nums}
.ws40x-stat-s{font-size:12px;color:var(--x-mut)}
.ws40x-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:8px}
.ws40x-title{margin:0}
.ws40x-admin{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:10px 14px;border:1.5px dashed #b7791f;background:#fff8eb;border-radius:12px}
.ws40x-badge{font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:#8a5a10}
.ws40x-name{min-width:220px}
.ws40x-admin .ws40x-pickbox{flex-direction:row;align-items:center;gap:8px}
.ws40x-pick{max-width:260px}
.ws40x-codebox{display:inline-flex;align-items:center;gap:6px;margin-left:auto}
.ws40x-code{background:#fff;border:1px solid #e3cfa7;border-radius:8px;padding:8px 10px;font-size:13px}
.ws40x-note{font-size:13px;color:#8a5a10;flex-basis:100%}
.ws40x-note:empty{display:none}
.ws40x-tip{min-width:200px}
.ws40x-tip-t{font-weight:600;margin-bottom:4px}
.ws40x-tip-row{display:flex;justify-content:space-between;gap:16px}
.ws40x-tip-row i{display:inline-block;width:8px;height:8px;border-radius:2px;margin-right:6px}
@media (max-width:700px){.ws40x-series{max-width:none;flex-basis:100%}.ws40x-acts{margin-left:0}.ws40x-codebox{margin-left:0}}
.ws40x-mdpair{display:inline-flex;gap:4px}
.ws40x-md{padding:0 6px}
.ws40x-yearsf{flex:1 1 100%}
.ws40x-chip--mean{border-style:dashed}
.ws40x-chip--mean[aria-pressed="true"]{background:#14231b;border-color:#14231b;color:#fff;border-style:solid}
/* DT-241: inside wp-admin the tool keeps the native select arrow (WP admin removes it). */
.wp-admin .ws40x .ws40x-select{-webkit-appearance:auto;appearance:auto;background-image:none;padding-right:10px;max-width:none;line-height:normal}
