/* AUTORO – čisté CSS, bez frameworku */
:root {
  --bg: #f3f5fa;
  --card: #ffffff;
  --text: #1f2a44;
  --muted: #7a86a3;
  --line: #e4e8f1;
  --navy: #0d2a5c;
  --navy-2: #163c7a;
  --blue: #2f5fd1;
  --green: #2fb57c;
  --green-bg: #e8f7f0;
  --red: #e2456b;
  --red-bg: #fdecf1;
  --gold: #d9a441;
  --gold-bg: #fbf3e2;
  --violet: #7f8bd3;
  --shadow: 0 2px 10px rgba(20, 40, 90, .06);
  --radius: 12px;
  --sidebar: 104px;
  --header: 80px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: "Nunito", "Segoe UI", system-ui, sans-serif; background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.45; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.right { text-align: right; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.flex { display: flex; align-items: center; gap: 12px; }
.flex.between { justify-content: space-between; }
.flex.wrap { flex-wrap: wrap; }
.grow { flex: 1; }
.mt { margin-top: 16px; }
.mb { margin-bottom: 16px; }
.pos { color: var(--green); }
.neg { color: var(--red); }

/* ---------- layout ---------- */
.sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: var(--sidebar); background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; padding: 14px 8px; z-index: 20; }
.sidebar .logo { display: flex; flex-direction: column; align-items: center; margin-bottom: 20px; color: var(--navy); text-decoration: none; }
.sidebar .logo img { width: 44px; height: 50px; }
.sidebar .logo span { font-weight: 800; font-size: 13px; letter-spacing: 1.5px; margin-top: 6px; color: #3f4046; }
.sidebar .logo span b { color: var(--blue); }
.nav { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 84px; border-radius: 12px; color: var(--navy); font-size: 12px; text-align: center; padding: 6px 4px; text-decoration: none; line-height: 1.15; }
.nav a svg { width: 32px; height: 32px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.nav a:hover { background: var(--bg); }
.nav a.active { background: var(--navy); color: #fff; box-shadow: 0 6px 16px rgba(13, 42, 92, .25); }
.main { margin-left: var(--sidebar); min-height: 100vh; }
.header { height: var(--header); display: flex; align-items: center; gap: 16px; padding: 0 28px 0 32px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 15; }
.header h1 { font-size: 24px; font-weight: 400; color: var(--text); flex: 1; }
.health { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 6px 14px; background: #fff; }
.health .label { font-size: 10px; letter-spacing: .5px; color: var(--muted); text-transform: uppercase; }
.health .vals { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 14px; }
.health .vals small { color: var(--muted); font-weight: 400; font-size: 11px; }
.health .vals .sep { color: var(--line); }
.bell { position: relative; width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--navy); border: 1px solid var(--line); }
.bell .badge { position: absolute; top: -4px; right: -4px; background: var(--red); color: #fff; font-size: 10px; min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--navy); font-weight: 600; font-size: 18px; background: #fff; cursor: pointer; }
.usermenu { position: relative; }
.usermenu .dropdown { display: none; position: absolute; right: 0; top: 56px; width: 270px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(20, 40, 90, .14); padding: 8px; }
.usermenu.open .dropdown { display: block; }
.usermenu .group { font-size: 12px; font-weight: 700; color: var(--text); background: var(--bg); padding: 8px 12px; border-radius: 8px; margin: 6px 0 4px; }
.usermenu .dropdown a { display: flex; align-items: center; gap: 10px; padding: 7px 12px; color: var(--text); border-radius: 8px; font-size: 13px; }
.usermenu .dropdown a:hover { background: var(--bg); text-decoration: none; }
.usermenu .dropdown a svg { width: 16px; height: 16px; stroke: var(--navy); fill: none; stroke-width: 1.8; }
.content { padding: 24px 28px 48px 32px; }

/* ---------- karty, dlaždice ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; }
.card + .card { margin-top: 16px; }
.card-title { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }
.tile { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 20px; }
.tile-link { display: block; color: inherit; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: border-color .15s, transform .15s; }
.tile-link:hover, .tile-link:focus { border-color: var(--red); transform: translateY(-1px); text-decoration: none; outline: none; }
.tile-link, .tile-link:hover, .tile-link * { text-decoration: none !important; }
.tile-link.active { border-color: var(--red); background: #fff6f6; }
.tile .t { font-weight: 700; font-size: 15px; }
.tile .v { color: var(--green); font-size: 26px; font-weight: 800; line-height: 1.1; margin: 4px 0 2px; }
.tile .v.navy { color: var(--navy); }
.tile .v.red { color: var(--red); }
.tile .d { color: var(--muted); font-size: 12px; }

/* ---------- filtry ---------- */
.filters { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.filters.four { grid-template-columns: repeat(4, 1fr); }
.filter { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 16px; display: flex; gap: 14px; align-items: center; position: relative; cursor: pointer; }
.filter .ico { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; }
.filter .ico svg { width: 40px; height: 40px; stroke-width: 1.5; fill: none; }
.filter .body { flex: 1; min-width: 0; }
.filter .label { font-size: 12px; letter-spacing: .4px; text-transform: uppercase; color: var(--text); display: flex; justify-content: space-between; }
.filter .label .cnt { color: var(--muted); font-weight: 400; }
.filter .value { color: var(--muted); font-size: 13px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; justify-content: space-between; align-items: center; }
.filter .value.set { color: var(--navy); font-weight: 600; }
.filter .value svg { width: 16px; height: 16px; stroke: var(--navy); fill: none; stroke-width: 2; flex: none; }
.filter .menu { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 30px rgba(20, 40, 90, .14); z-index: 30; padding: 6px; }
.filter.open .menu { display: block; }
.filter .menu input { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font: inherit; margin-bottom: 4px; }
.filter .menu .list { max-height: 260px; overflow: auto; }
.filter .menu .opt { padding: 7px 10px; border-radius: 6px; font-size: 13px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.filter .menu .opt:hover { background: var(--bg); }
.filter .menu .opt.sel { background: var(--navy); color: #fff; }
.filter .menu .opt.chk { display: flex; align-items: center; gap: 8px; }
.filter .menu .opt.chk::before { content: ""; width: 14px; height: 14px; border: 1.5px solid var(--line); border-radius: 4px; flex: none; background: #fff; }
.filter .menu .opt.chk.sel { background: var(--bg); color: var(--navy); font-weight: 600; }
.filter .menu .opt.chk.sel::before { background: var(--navy); border-color: var(--navy); box-shadow: inset 0 0 0 2.5px #fff; }
.filter .menu .foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 4px 2px; border-top: 1px solid var(--line); margin-top: 4px; font-size: 12px; }
.filter .menu .foot a { color: var(--navy); cursor: pointer; text-decoration: none; }
.filter .menu .foot a:hover { text-decoration: underline; }
.filter.purple .ico svg { stroke: #6b4fbb; }
.filters.five { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1100px) { .filters.five, .filters.four { grid-template-columns: repeat(2, 1fr); } }
.filter.green .ico svg { stroke: var(--green); } .filter.red .ico svg { stroke: var(--red); } .filter.navy .ico svg { stroke: var(--navy); } .filter.gold .ico svg { stroke: var(--gold); }

/* chips (Replenishment) */
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 7px 12px; font-size: 12px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.chip b { text-transform: uppercase; font-size: 11px; letter-spacing: .4px; }
.chip select, .chip input { border: none; font: inherit; font-size: 12px; color: var(--navy); background: transparent; outline: none; }
.chip.active { border-color: var(--navy); }

/* ---------- tabulky ---------- */
.table-wrap { overflow: auto; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
table.grid { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12.5px; }
table.grid th { position: sticky; top: 0; background: #fff; text-align: left; font-size: 10.5px; letter-spacing: .4px; text-transform: uppercase; color: var(--text); font-weight: 700; padding: 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; user-select: none; }
table.grid th.sortable { cursor: pointer; }
table.grid th.sortable:hover { color: var(--blue); }
table.grid th .arrow { color: var(--muted); font-size: 10px; margin-left: 4px; }
table.grid th.sorted .arrow { color: var(--blue); }
table.grid td { padding: 8px 10px; border-bottom: 1px solid #eef1f7; white-space: nowrap; vertical-align: middle; }
table.grid tr:last-child td { border-bottom: none; }
table.grid tr:hover td { background: #f8f9fd; }
table.grid td.num, table.grid th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.grid td.ellipsis { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
table.grid tr.selected td { background: #eef3ff; }
table.grid .empty { text-align: center; color: var(--muted); padding: 32px; }
.seg { font-size: 10.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; }
.seg.WINNERS { color: var(--gold); } .seg.CHASERS { color: var(--navy); } .seg.LOSERS { color: var(--text); } .seg.NEW_PRODUCTS { color: var(--green); }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 2px; font-size: 12px; color: var(--muted); }
.pager .btns { display: flex; gap: 4px; }
.pager button { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 4px 10px; cursor: pointer; font-size: 12px; }
.pager button:disabled { opacity: .4; cursor: default; }
.pager button.cur { background: var(--navy); color: #fff; border-color: var(--navy); }
.urgent { color: var(--red); font-weight: 700; }
.qty-input { width: 84px; text-align: right; border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px; font: inherit; background: #f8f9fd; }
.qty-input.edited { border-color: var(--gold); background: var(--gold-bg); }
.icon-btn { border: none; background: transparent; cursor: pointer; color: var(--green); padding: 2px; display: inline-flex; vertical-align: middle; }
.icon-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.icon-btn:hover { color: var(--blue); }

/* ---------- tlačítka, formuláře ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; color: var(--text); border-radius: 8px; padding: 8px 14px; font-size: 13px; cursor: pointer; text-decoration: none; }
.btn:hover { border-color: var(--navy); text-decoration: none; }
.btn.primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn.primary:hover { background: var(--navy-2); }
.btn.green { background: var(--green); color: #fff; border-color: var(--green); }
.btn.danger { color: var(--red); }
.btn.danger:hover { border-color: var(--red); }
.btn.ghost { border-color: transparent; color: var(--green); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.btn.sm { padding: 5px 10px; font-size: 12px; }
.form-row { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.form-row label { font-size: 12px; color: var(--muted); font-weight: 600; }
.form-row input, .form-row select, .form-row textarea { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font: inherit; background: #fff; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: 2px solid rgba(47, 95, 209, .25); border-color: var(--blue); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; }
.inline-input { border: 1px solid var(--line); border-radius: 6px; padding: 5px 8px; font: inherit; font-size: 12.5px; width: 80px; text-align: right; background: #f8f9fd; }
.inline-input.wide { width: 160px; text-align: left; }
.switch { position: relative; display: inline-block; width: 40px; height: 22px; vertical-align: middle; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .sl { position: absolute; inset: 0; background: #d6dbe7; border-radius: 22px; transition: .2s; cursor: pointer; }
.switch .sl:before { content: ""; position: absolute; width: 18px; height: 18px; left: 2px; top: 2px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + .sl { background: var(--green); }
.switch input:checked + .sl:before { transform: translateX(18px); }
.check { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; background: #fff; }
.check.on { background: var(--green); border-color: var(--green); color: #fff; font-size: 11px; }
.toast { position: fixed; right: 24px; bottom: 24px; background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.2); z-index: 100; font-size: 13px; max-width: 420px; opacity: 0; transform: translateY(10px); transition: .25s; }
.toast.show { opacity: 1; transform: none; }
.toast.err { background: var(--red); }
.tabs { display: flex; gap: 4px; margin-top: 18px; }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px 8px 14px; font-size: 12.5px; font-weight: 600; color: var(--navy); background: #e9edf6; border-radius: 10px 10px 0 0; cursor: pointer; text-decoration: none; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 100%, 0 100%); padding-right: 26px; }
.tab.active { background: var(--navy); color: #fff; }
.tab .cnt { background: #fff; color: var(--navy); border-radius: 10px; padding: 0 7px; font-size: 11px; min-width: 22px; text-align: center; }
.tab.active .cnt { background: var(--blue); color: #fff; }
.tab:hover { text-decoration: none; }
.tab svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.tabpanel { background: #fff; border-radius: 0 12px 12px 12px; box-shadow: var(--shadow); padding: 12px; }

/* ---------- segmenty (Winners and losers) ---------- */
.segment { display: grid; grid-template-columns: 150px 1fr 1fr; gap: 20px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.segment:last-child { border-bottom: none; }
.segment .ident { text-align: center; }
.segment .ident svg { width: 64px; height: 64px; }
.segment .ident .name { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; margin-top: 8px; font-weight: 700; }
.segment .ident .cnt { color: var(--muted); font-size: 12px; }
.segment .desc { background: #fafbfe; border: 1px solid var(--line); border-radius: 10px; padding: 16px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.segment .desc b { color: var(--text); }
.bars .bar { display: grid; grid-template-columns: 110px 1fr 58px; gap: 10px; align-items: center; margin-bottom: 10px; font-size: 11px; letter-spacing: .5px; text-transform: uppercase; }
.bars .bar .track { height: 5px; background: #e9edf6; border-radius: 3px; overflow: hidden; }
.bars .bar .fill { height: 100%; border-radius: 3px; }
.bars .bar.profit .fill { background: var(--green); } .bars .bar.revenue .fill { background: var(--navy); } .bars .bar.stock .fill { background: var(--red); }
.bars .bar .val { text-align: right; color: var(--muted); text-transform: none; font-size: 12px; }
.bars .bar svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; vertical-align: -3px; margin-right: 4px; }
.segment-table { grid-column: 1 / -1; }
.showall { text-align: right; margin-top: 6px; }

/* ---------- forecast ---------- */
.fc-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fc-summary { display: grid; grid-template-columns: 110px 1fr; gap: 10px 20px; font-size: 14px; align-self: center; padding: 10px 0; }
.fc-summary .k { color: var(--muted); letter-spacing: .6px; font-size: 12px; text-transform: uppercase; }
.fc-summary .v { color: var(--navy); font-weight: 600; }
.fc-main { display: grid; grid-template-columns: 1fr 2fr; gap: 16px; margin-top: 18px; }
.tips .tip { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; display: grid; grid-template-columns: 110px 1fr; gap: 14px; margin-bottom: 14px; align-items: center; }
.tips .tip .big { font-size: 46px; font-weight: 800; color: var(--navy); line-height: 1; }
.tips .tip .big small { font-size: 22px; color: var(--muted); }
.tips .tip p { margin: 0; color: var(--muted); font-size: 13px; }
.tips .tip .link { text-align: right; margin-top: 8px; font-size: 12px; }
.chart-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.chart-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.chart-head h2 { font-size: 17px; font-weight: 500; flex: 1; }
.chart-box { position: relative; height: 420px; }
.legend { display: flex; justify-content: center; gap: 20px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.legend label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.legend .sw { width: 12px; height: 12px; border-radius: 2px; display: inline-block; }
.adj-badge { background: var(--bg); color: var(--muted); border-radius: 6px; padding: 1px 7px; font-size: 11px; position: relative; }
.adj-badge .dot { position: absolute; top: -6px; right: -8px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }

/* ---------- modal ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(13, 42, 92, .45); display: none; align-items: center; justify-content: center; z-index: 90; padding: 20px; }
.modal-bg.open { display: flex; }
.modal { background: #fff; border-radius: 14px; width: min(960px, 100%); max-height: 92vh; overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.modal.sm { width: min(560px, 100%); }
.modal .mh { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal .mh h3 { font-size: 16px; }
.modal .mb { padding: 18px 20px; }
.modal .mf { padding: 12px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }
.modal .close { border: none; background: transparent; font-size: 22px; cursor: pointer; color: var(--muted); }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 16px; font-size: 12.5px; }
.kv div { background: var(--bg); border-radius: 8px; padding: 8px 10px; }
.kv .k { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .4px; }
.kv .v { font-weight: 600; }

/* ---------- reporty ---------- */
.report-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.report { background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 24px; display: flex; flex-direction: column; min-height: 300px; }
.report .cat { color: var(--green); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; font-weight: 700; }
.report h3 { font-size: 22px; margin-top: 10px; }
.report .sub { font-size: 16px; color: var(--text); font-weight: 300; }
.report p { color: var(--muted); font-size: 13px; flex: 1; }
.report .dl { display: flex; gap: 8px; flex-wrap: wrap; }
.hero h1 { font-size: 34px; color: var(--navy); font-weight: 800; }
.hero h2 { font-size: 26px; color: var(--navy); font-weight: 300; margin-bottom: 24px; }

/* ---------- edit arena ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { background: var(--navy); color: #fff; border-radius: 6px; padding: 5px 10px; font-size: 11.5px; font-weight: 600; cursor: pointer; border: none; }
.pill.green { background: var(--green); }
.pill.gray { background: #e9edf6; color: var(--text); }
.pill .x { margin-left: 6px; opacity: .7; }
.rule { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; font-size: 13px; }
.notice { background: var(--gold-bg); border: 1px solid #f0dca8; border-radius: 8px; padding: 10px 14px; font-size: 13px; }
.notice.info { background: #eaf1ff; border-color: #c9d8f7; }
.notice.ok { background: var(--green-bg); border-color: #bfe8d5; }
.progress { height: 8px; background: #e9edf6; border-radius: 4px; overflow: hidden; }
.progress .fill { height: 100%; background: var(--green); transition: width .4s; }
pre.log { background: #0f1b33; color: #cfe3ff; padding: 12px; border-radius: 8px; font-size: 11.5px; max-height: 320px; overflow: auto; white-space: pre-wrap; }
.strategy-row { display: flex; gap: 40px; align-items: center; justify-content: center; padding: 16px 0 8px; flex-wrap: wrap; }
.strategy-row label { display: flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .6px; text-transform: uppercase; font-weight: 600; cursor: pointer; }

/* login */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #0d2a5c 0%, #2f5fd1 100%); }
.login { background: #fff; border-radius: 16px; padding: 36px 40px; width: 380px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.login h1 { font-size: 22px; margin: 14px 0 20px; color: var(--navy); text-align: center; }
.login .error { background: var(--red-bg); color: var(--red); border-radius: 8px; padding: 8px 12px; font-size: 13px; margin-bottom: 12px; }
.login .btn { width: 100%; justify-content: center; padding: 11px; font-size: 14px; }

@media (max-width: 1200px) {
  .tiles, .filters.four { grid-template-columns: repeat(2, 1fr); }
  .fc-main { grid-template-columns: 1fr; }
  .report-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  :root { --sidebar: 72px; }
  .nav a span { display: none; }
  .nav a { height: 56px; }
  .content { padding: 16px; }
  .header { padding: 0 16px; }
  .health { display: none; }
  .filters, .filters.four, .tiles, .report-grid, .fc-layout { grid-template-columns: 1fr; }
  .segment { grid-template-columns: 1fr; }
}

/* ---------- přepínač jazyka ---------- */
.langsw { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.langsw a { padding: 6px 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .5px; color: var(--muted); text-decoration: none; }
.langsw a + a { border-left: 1px solid var(--line); }
.langsw a:hover { background: var(--bg); text-decoration: none; }
.langsw a.active { background: var(--navy); color: #fff; }
.login { position: relative; }
.login-lang { position: absolute; top: 14px; right: 14px; }
