/* EPLA Kursy Walut – front */
.ekw{--ekw-accent:#6b7a12;--ekw-text:#1d1d1b;--ekw-muted:#6b6b6b;--ekw-line:#e4e4df;--ekw-up:#2e7d32;--ekw-down:#c62828;color:var(--ekw-text);font-size:15px;line-height:1.45}
.ekw *{box-sizing:border-box}
.ekw,.ekw-results,.ekw-scroll{max-width:100%;min-width:0;position:relative}
.ekw-sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.ekw-info,.ekw-note{font-size:13px;color:var(--ekw-muted);margin:0 0 8px}
.ekw-note{margin-top:10px}
.ekw-empty{padding:16px;background:#f6f6f2;border-left:4px solid var(--ekw-accent)}
.ekw-more a{color:var(--ekw-accent);font-weight:600}

.ekw-table{width:100%;border-collapse:collapse;margin:0;border:0}
.ekw-table th,.ekw-table td{border:0;padding:8px 10px;text-align:right;vertical-align:middle;background:none}
.ekw-table thead th{background:var(--ekw-accent);color:#fff;font-weight:700;font-size:13px;white-space:nowrap}
.ekw-table tbody th{text-align:left;font-weight:400}
.ekw-table .ekw-sec th{padding-top:14px;text-align:left;font-weight:400;text-decoration:underline;text-underline-offset:3px}
.ekw-cur{display:flex;align-items:center;gap:8px}
.ekw-flag{width:30px;height:30px;border-radius:50%;flex:0 0 30px;box-shadow:0 0 0 1px rgba(0,0,0,.08);vertical-align:middle}
.ekw-current td{font-variant-numeric:tabular-nums;width:26%}

/* Archiwum */
.ekw-form{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end;padding:16px;background:#f6f6f2;border-radius:6px;margin-bottom:8px}
.ekw-field{display:flex;flex-direction:column;gap:4px;min-width:150px;flex:1 1 150px}
.ekw-field label{font-size:13px;font-weight:600}
.ekw-field input,.ekw-field select{height:42px;padding:6px 10px;border:1px solid #bdbdb5;border-radius:4px;background:#fff;font:inherit;color:inherit;width:100%}
.ekw-field input:focus,.ekw-field select:focus,.ekw-form button:focus{outline:3px solid var(--ekw-accent);outline-offset:1px}
.ekw-field--btn{flex:0 0 auto;min-width:0}
.ekw-form button{height:42px;padding:0 22px;border:0;border-radius:4px;background:var(--ekw-accent);color:#fff;font:inherit;font-weight:700;cursor:pointer}
.ekw-form button:hover{filter:brightness(.9)}
.ekw-quick{font-size:13px;margin:0 0 18px}
.ekw-quick span{color:var(--ekw-muted);margin-right:4px}
.ekw-quick a{color:var(--ekw-accent);margin-right:10px;font-weight:600}
.ekw-results-title{font-size:20px;margin:0 0 12px}
.ekw-results-title small{font-size:14px;font-weight:400;color:var(--ekw-muted)}
.ekw-stats{display:flex;flex-wrap:wrap;gap:12px;margin:0 0 14px}
.ekw-stats>div{flex:1 1 160px;padding:10px 14px;border:1px solid var(--ekw-line);border-radius:6px}
.ekw-stats dt{font-size:12px;color:var(--ekw-muted)}
.ekw-stats dd{margin:2px 0 0;font-weight:700;font-variant-numeric:tabular-nums}
.ekw-chart{margin:0 0 18px;padding:12px;border:1px solid var(--ekw-line);border-radius:6px}
.ekw-chart svg{display:block;width:100%;height:auto}
.ekw-grid{stroke:var(--ekw-line);stroke-width:1}
.ekw-axis{font-size:11px;fill:var(--ekw-muted);font-family:inherit}
.ekw-line{fill:none;stroke-width:2.5;stroke-linejoin:round}
.ekw-line--buy{stroke:var(--ekw-accent)}
.ekw-line--sell{stroke:#3a3a36;stroke-dasharray:6 4}
.ekw-legend{font-size:13px;color:var(--ekw-muted);margin-top:6px}
.ekw-key{display:inline-block;width:22px;height:0;border-top:3px solid var(--ekw-accent);vertical-align:middle;margin:0 4px 0 10px}
.ekw-key--sell{border-top:3px dashed #3a3a36}
.ekw-scroll{overflow:auto;max-height:620px;border:1px solid var(--ekw-line);border-radius:6px}
.ekw-table--history thead th{position:sticky;top:0;z-index:1}
.ekw-table--history thead tr:nth-child(2) th{top:37px;font-weight:400}
.ekw-table--history td{border-top:1px solid var(--ekw-line);white-space:nowrap;font-variant-numeric:tabular-nums}
.ekw-table--history td:first-child,.ekw-table--history td:nth-child(2),.ekw-table--history thead tr:first-child th:nth-child(-n+2){text-align:left}
.ekw-table--history .ekw-cur-head{text-align:center}
.ekw-table--history .ekw-cur-head .ekw-flag{width:20px;height:20px;margin-right:4px}
.ekw-carried td{background:#fafaf6}
.ekw-carried small{color:var(--ekw-muted)}
.ekw-trend{font-size:10px}
.ekw-trend--up{color:var(--ekw-up)}
.ekw-trend--down{color:var(--ekw-down)}
@media (max-width:600px){.ekw-table--history td:first-child{white-space:normal;min-width:96px}.ekw-table--history{font-size:14px}.ekw-table th,.ekw-table td{padding:7px 6px}.ekw-field{flex-basis:100%}.ekw-field--btn button{width:100%}.ekw-field--btn{flex-basis:100%}}
