:root {
  --ink: #10282D; --mute: #4F6468; --line: #D5E2E3; --soft: #F3F8F8;
  --ground: #EEF3F3; --dark: #0B2B31; --dark2: #133E46; --teal: #00A3AD;
  --teal-d: #00727A; --deep: #0B4F59; --warn-bg: #FFF6E5; --warn: #6B4A00;
  --bad: #B42318; --amber: #8A5A00; --white: #FFFFFF;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink);
  font-family: 'Commissioner', system-ui, sans-serif;
  font-variant-numeric: tabular-nums; }
a { color: var(--teal-d); } a:hover { color: #004E54; }
button { font-family: inherit; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.top { background: var(--dark); color: var(--white); }
.top-in { display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 12px; padding: 14px 16px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 34px; }
.brand div { display: flex; flex-direction: column; gap: 2px; }
.brand span { font-size: 12px; color: #A9C6C9; }
[hidden] { display: none !important; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.switch { position: relative; }
.company { min-height: 44px; padding: 0 14px; background: var(--dark2);
  color: var(--white); border: 1px solid #2A5961; border-radius: 10px;
  font-size: 14px; cursor: pointer; display: flex; gap: 10px; align-items: center; }
.company small { color: #A9C6C9; font-size: 13px; }
.menu { position: absolute; right: 0; top: 52px; z-index: 5; width: 300px;
  background: var(--white); color: var(--ink); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(11,43,49,.22); padding: 8px; }
.menu button { width: 100%; text-align: left; min-height: 44px; border: 0;
  border-radius: 8px; background: transparent; padding: 8px 10px; cursor: pointer;
  display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.menu button[aria-current="true"] { background: #E3F2F3; }
.menu small { color: var(--mute); font-size: 12px; }
.link { min-height: 44px; padding: 0 12px; background: transparent; border: 0;
  color: #CFE3E5; font-size: 14px; cursor: pointer; }
main { padding-top: 28px; padding-bottom: 40px; display: flex;
  flex-direction: column; gap: 20px; }
.loading { color: var(--mute); text-align: center; padding: 40px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 13px; color: var(--mute); border-top: 1px solid var(--line);
  padding-top: 16px; padding-bottom: 32px; }

/* σύνδεση */
.auth { max-width: 420px; margin: 24px auto; background: var(--white);
  border: 1px solid var(--line); border-radius: 16px; padding: 28px;
  display: flex; flex-direction: column; gap: 16px; }
.auth h1 { margin: 0; font-size: 24px; }
.auth p { margin: 0; line-height: 1.55; color: var(--mute); font-size: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field input { min-height: 46px; padding: 0 14px; border: 1px solid #B8CFD1;
  border-radius: 10px; font-size: 15px; font-family: inherit; }
.field input:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
.btn { min-height: 46px; padding: 0 18px; border-radius: 10px; border: 0;
  background: var(--dark); color: var(--white); font-size: 15px; font-weight: 600;
  cursor: pointer; }
.btn.ghost { background: var(--white); color: var(--deep);
  border: 1px solid #B8CFD1; font-weight: 500; }
.btn:disabled { opacity: .6; cursor: progress; }
.error { color: var(--bad); font-size: 14px; min-height: 1em; }
.okmsg { color: var(--deep); font-size: 14px; }
.field .chk { display: flex; gap: 10px; align-items: flex-start; font-weight: 400;
  font-size: 14px; color: var(--mute); line-height: 1.4; cursor: pointer; }
.field .chk input { min-height: 0; width: 18px; height: 18px; margin: 1px 0 0;
  flex: none; accent-color: var(--deep); }

/* πίνακας ελέγχου */
.head { display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 16px; }
.head small { font-size: 13px; color: var(--mute); }
.head h1 { margin: 4px 0 0; font-size: 30px; letter-spacing: -.01em; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; background: var(--white);
  padding: 5px; border-radius: 12px; border: 1px solid var(--line); }
.tabs button { min-height: 44px; padding: 0 16px; border-radius: 9px; border: 0;
  background: transparent; color: var(--mute); font-size: 14px; cursor: pointer; }
.tabs button[aria-pressed="true"] { background: #E3F2F3; color: var(--deep); font-weight: 700; }
.periods { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.periods > span { font-size: 13px; color: var(--mute); margin-right: 4px; }
.periods button { min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid #C9DADC; background: var(--white); color: var(--ink);
  font-size: 14px; cursor: pointer; }
.periods button[aria-pressed="true"] { background: var(--dark); color: var(--white);
  border-color: var(--dark); font-weight: 600; }
.banner { display: flex; flex-wrap: wrap; gap: 10px; background: var(--warn-bg);
  border: 1px solid #E9C98A; color: var(--warn); border-radius: 10px;
  padding: 10px 14px; font-size: 14px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.card { background: var(--white); border-radius: 14px; border: 1px solid var(--line);
  padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.card .k { font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--mute); }
.card .v { font-size: 26px; font-weight: 700; }
.card .d { font-size: 13px; color: var(--mute); }
.card .c { font-size: 12px; color: var(--mute); border-top: 1px solid #E6EEEF; padding-top: 8px; }
.up { color: #135C2E; } .down { color: var(--bad); }
.neg { color: var(--bad); }
.panel { background: var(--white); border-radius: 14px; border: 1px solid var(--line);
  padding: 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.panel h2 { margin: 0; font-size: 18px; }
.panel .ph { display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px; flex-wrap: wrap; }
.tag { font-size: 12px; color: var(--teal-d); font-weight: 600; }
.row { display: flex; flex-wrap: wrap; gap: 20px; }
.row > .grow { flex: 999 1 560px; }
.row > .side { flex: 1 1 340px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; }
.comment p { margin: 0; font-size: 15px; line-height: 1.6; padding-left: 14px;
  border-left: 3px solid #BFE3E5; }
.tax { background: var(--dark); color: var(--white); border: 0; }
.tax .amount { font-size: 34px; font-weight: 700; }
.tax .sub { font-size: 13px; color: #A9C6C9; }
.tax .lines div { display: flex; justify-content: space-between; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid #1C4A52; font-size: 14px; }
.tax .lines span:first-child { color: #CFE3E5; }
.tax .badge { font-size: 12px; color: #F2C66D; font-weight: 600; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--mute); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px;
  margin-right: 6px; vertical-align: -1px; }
.bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px;
  height: 200px; align-items: end; border-bottom: 1px solid var(--line); }
.bars .m { display: flex; align-items: flex-end; justify-content: center; gap: 3px; height: 100%; }
.bars .m div { width: 40%; max-width: 22px; border-radius: 4px 4px 0 0; }
.months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px;
  font-size: 12px; color: var(--mute); text-align: center; }
.share .t { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.share .t b { white-space: nowrap; }
.share .t small { color: var(--mute); margin-left: 10px; font-size: 14px; }
.track { height: 8px; background: #E6EEEF; border-radius: 4px; margin-top: 6px; }
.track div { height: 8px; border-radius: 4px; }
.item { display: flex; justify-content: space-between; gap: 12px; padding: 12px;
  background: var(--soft); border-radius: 8px; font-size: 14px; }
.chart svg { width: 100%; height: 190px; display: block; }
.axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--mute); }
.glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.ratio { display: flex; flex-direction: column; gap: 8px; padding: 16px;
  background: var(--soft); border-radius: 10px; }
.ratio .n { font-size: 14px; font-weight: 600; color: var(--deep); }
.ratio .v { font-size: 26px; font-weight: 700; }
.ratio .v.na { color: #8FA5A8; }
.ratio .m { font-size: 14px; line-height: 1.55; }
.ratio .f { font-size: 12px; color: var(--mute); }
.ratio .s { font-size: 12px; color: var(--amber); }
.ratio .vt { font-size: 14px; line-height: 1.5; font-weight: 500; }
.ratio .tr { font-size: 12px; color: var(--mute); }
.vb { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 3px 9px;
  border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0; }
.vb.good { background: #E3F4E8; color: #135C2E; }
.vb.ok { background: #FFF3D6; color: #7A5200; }
.vb.warn { background: #FDE8E6; color: var(--bad); }
.tablebox { overflow-x: auto; }
table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--mute); font-size: 12px; letter-spacing: .06em;
  padding: 10px 8px; border-bottom: 1px solid var(--line); font-weight: 600; }
td { padding: 9px 8px; border-bottom: 1px solid #E6EEEF; }
td.n, th.n { text-align: right; }
tr.strong td { font-weight: 700; background: var(--soft); }
td.est { font-size: 12px; color: var(--amber); }
.doc { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 14px; background: var(--soft); border-radius: 10px; }
.doc b { font-size: 15px; } .doc small { display: block; font-size: 13px; color: var(--mute); }
.doc .acts { display: flex; gap: 8px; }
.doc .acts button { min-height: 44px; }
.cal { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; padding: 12px 14px;
  background: var(--soft); border-radius: 10px; }
.cal .date { min-width: 120px; font-weight: 700; color: var(--teal-d); }
.cal .what { flex: 1 1 240px; }
.cal small { font-size: 13px; color: var(--mute); }
.cal.past { opacity: .55; }
.empty { color: var(--mute); font-size: 14px; }
.months b, .axis b { font-weight: 400; }
.months .s, .axis .s { display: none; }
@media (max-width: 560px) {
  .months .l, .axis .l { display: none; }
  .months .s, .axis .s { display: inline; }
  .head h1 { font-size: 24px; }
  .card .v { font-size: 22px; }
  .brand span { display: none; }
}

/* πληρωμές, κουμπαράς, νεκρό σημείο, έγγραφα */
.cal .amt { margin-left: auto; white-space: nowrap; font-size: 15px; }
.cal .what { display: flex; flex-direction: column; gap: 2px; }
small.blk { display: block; font-size: 12px; color: var(--mute); }
.piggy { background: #E6F5F6; border-color: #BFE3E5; }
.piggy .amount, .bigv { font-size: 30px; font-weight: 700; }
.piggy .amount small, .bigv small { font-size: 14px; font-weight: 500; color: var(--mute); }
.piggy .sub { font-size: 14px; line-height: 1.5; color: var(--ink); }
.piggy .badge { font-size: 12px; color: var(--teal-d); font-weight: 600; }
.piggy .lines div { display: flex; justify-content: space-between; gap: 12px;
  padding: 8px 0; border-bottom: 1px solid #CFE6E8; font-size: 14px; }
.piggy .lines span:first-child { color: var(--mute); }
.panel .txt { font-size: 14px; line-height: 1.55; }
.bigv.neg { color: var(--bad); }
h3.yr { margin: 6px 0 0; font-size: 14px; color: var(--mute); font-weight: 600; letter-spacing: .02em; }
@media (max-width: 560px) {
  .cal { gap: 6px 14px; }
  .cal .amt { margin-left: 0; }
}
.side.stack { display: flex; flex-direction: column; gap: 20px; }
.health .counts { display: flex; flex-wrap: wrap; gap: 8px; }
.health .counts .vb { margin-left: 0; font-size: 14px; padding: 6px 12px; }
.mydata .k { font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--mute); }
.mydata .amount { font-size: 30px; font-weight: 700; }
.mydata .amount small { font-size: 14px; font-weight: 500; color: var(--mute); }
.mydata .sub { font-size: 14px; color: var(--ink); }
.mydata .mrow { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px;
  padding: 10px 12px; background: var(--soft); border-radius: 8px; font-size: 13px; }
.mydata .mrow span:first-child { font-weight: 600; }
.mydata .mrow span:nth-child(2) { color: var(--mute); }

/* 2.0: «Η χρονιά σε αριθμούς», γραφήματα, σενάριο, εκτύπωση */
.headr { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn.print { min-height: 44px; font-size: 14px; }
.printhead { display: none; }
.chip { display: inline-flex; align-items: center; gap: 4px; width: fit-content;
  padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.chip.good { background: #E3F4E8; color: #135C2E; }
.chip.bad { background: #FDE8E6; color: var(--bad); }
.hero { background: linear-gradient(135deg, #0B2B31 0%, #0B4F59 60%, #00727A 100%);
  color: var(--white); border-radius: 16px; padding: 24px; display: flex;
  flex-direction: column; gap: 8px; }
.hero .eyebrow { font-size: 12px; letter-spacing: .12em; color: #A9C6C9; font-weight: 600; }
.hero h2 { margin: 0; font-size: 26px; }
.hero .hs { font-size: 13px; color: #CFE3E5; }
.hero .hl { margin-top: 8px; font-size: 14px; color: #CFE3E5; }
.hero .hv { font-size: 40px; font-weight: 700; line-height: 1.1; }
.hero .hv.neg { color: #FFB4AB; }
.hero > .chip.good { background: rgba(227,244,232,.16); color: #9BE5B4; }
.hero > .chip.bad { background: rgba(253,232,230,.16); color: #FFB4AB; }
.ygrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px; margin-top: 10px; }
.ycard { background: var(--white); color: var(--ink); border-radius: 12px; padding: 14px;
  display: flex; flex-direction: column; gap: 6px; border-top: 3px solid var(--teal); }
.ycard .yk { font-size: 13px; color: var(--mute); display: flex; align-items: center; gap: 8px; }
.ycard .yk i { font-style: normal; display: inline-flex; width: 24px; height: 24px;
  align-items: center; justify-content: center; border-radius: 6px; background: #E3F2F3;
  color: var(--teal-d); font-size: 12px; font-weight: 700; }
.ycard .yv { font-size: 24px; font-weight: 700; }
.ycard .yp { font-size: 12px; color: var(--mute); }
svg.svgc { width: 100%; height: auto; display: block; }
svg .ax { font-size: 11px; fill: #6B8285; font-family: inherit; }
.hbars { display: flex; flex-direction: column; gap: 10px; }
.hb { display: grid; grid-template-columns: minmax(120px, 210px) 1fr minmax(120px, auto);
  gap: 12px; align-items: center; font-size: 14px; }
.hb .hv { display: flex; flex-direction: column; gap: 3px; }
.hb .hp { height: 9px; border-radius: 4px; min-width: 2px; }
.hb .ha { text-align: right; display: flex; flex-direction: column; gap: 2px; }
.hb .ha small { font-size: 12px; color: var(--mute); }
.hb .ha .chip { font-size: 11px; padding: 1px 7px; margin-left: auto; }
.scen .slgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px 28px; background: var(--soft); border-radius: 12px; padding: 18px; }
.sl .slh { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.sl .slh b { font-size: 18px; }
.sl input[type=range] { width: 100%; accent-color: var(--teal); min-height: 32px; }
.sl input[type=range]:disabled { opacity: .55; }
.sl .slf { display: flex; justify-content: space-between; font-size: 12px; color: var(--mute); }
.slopt { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14px; }
.slopt label { display: flex; gap: 8px; align-items: center; min-height: 32px; }
.slopt input { width: 18px; height: 18px; accent-color: var(--teal); }
table.sct td.sc, table.sct th.sc { background: #EEF6F7; }
.eb { display: grid; grid-template-columns: minmax(130px, 1fr) 1.2fr auto; gap: 12px;
  align-items: center; font-size: 14px; }
.eb small { font-size: 12px; color: var(--mute); }
@media (max-width: 560px) {
  .hero .hv { font-size: 32px; }
  .hb { grid-template-columns: 1fr auto; }
  .hb .hv { grid-column: 1 / -1; order: 3; }
  .eb { grid-template-columns: 1fr auto; }
  .eb .track { grid-column: 1 / -1; order: 3; }
  .headr { width: 100%; }
}
@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff; }
  .top, .foot, .tabs, .periods, .btn, .slopt input, #scReset { display: none !important; }
  .printhead { display: block; font-size: 12px; color: var(--mute); margin-bottom: 6px; }
  main { padding-top: 0; gap: 12px; }
  .panel, .card, .hero, .ycard { break-inside: avoid; box-shadow: none; }
  .hero { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .tax, .chip, .vb, .track div, .hp, .bars div { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  input[type=range] { display: none; }
  /* 2.3: πιο πυκνή εκτύπωση — όλα σε μία γραμμή όπου χωράνε, δύο στήλες
     όπου η οθόνη έχει δύο, ελαφρώς μικρότερη κλίμακα. */
  body { zoom: .82; }
  .wrap { max-width: none; padding: 0; }
  .cards { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
  .ygrid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .row { flex-wrap: nowrap; gap: 14px; }
  .row > .grow { flex: 3 1 0; min-width: 0; }
  .row > .side { flex: 2 1 0; min-width: 0; }
  .panel { padding: 14px 16px; }
  main { gap: 10px; padding-bottom: 0; }
  /* ποσά καρτών σε μία γραμμή (μαζί με το €) */
  .card .v, #scCards .card .v { font-size: 19px; white-space: nowrap; }
  .ycard .yv { white-space: nowrap; }
  /* σενάριο: ο πίνακας χωρά ολόκληρος, χωρίς κύλιση */
  .tablebox { overflow: visible; }
  table.sct { min-width: 0 !important; width: 100%; font-size: 11.5px; }
  table.sct td, table.sct th { padding: 5px 6px; }
}
.item > b { white-space: nowrap; }
#scCards { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
@media (max-width: 560px) {
  table.sct { min-width: 0; font-size: 13px; }
  table.sct td, table.sct th { padding: 8px 4px; }
  .scen .slgrid { padding: 12px; grid-template-columns: 1fr; }
  #scCards .card { padding: 14px; }
  #scCards .card .v { font-size: 20px; }
}
table.sct td.n, table.sct th.n { white-space: nowrap; }

/* 2.2: ποσά στα γραφήματα και πίνακας μηνών */
svg .bv { font-size: 10px; fill: #2E4A4D; font-family: inherit; font-weight: 600; }
.mtab { overflow-x: auto; margin-top: 8px; -webkit-overflow-scrolling: touch; }
.mtab table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 12px; font-variant-numeric: tabular-nums; }
.mtab th, .mtab td { padding: 5px 6px; text-align: right; white-space: nowrap; border-bottom: 1px solid #EEF3F3; }
.mtab thead th { color: var(--mute); font-weight: 600; }
.mtab tbody th { text-align: left; font-weight: 600; color: var(--ink); position: sticky; left: 0; background: #fff; }
.mtab tbody th i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; vertical-align: 0; }
.mtab tr.st td { font-weight: 700; color: var(--ink); }
.mtab .dim { opacity: .4; }
.mtab td.neg, .mtab tr.st td.neg { color: #A3262A; }
.chart2 { min-width: 0; }
@media print { .mtab { overflow: visible; } .mtab table { min-width: 0; font-size: 9px; } }

/* 2.2: πεδίο ποσού στο σενάριο */
.scin { display: inline-flex; align-items: center; gap: 4px; }
.scin input { width: 118px; text-align: right; font: inherit; font-weight: 700; font-size: 15px; color: var(--ink);
  border: 1px solid #CFDDDF; border-radius: 8px; padding: 4px 8px; background: #fff; }
.scin input:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: transparent; }
.scin input:disabled { background: #F2F6F6; color: var(--mute); }
.scin i { font-style: normal; color: var(--mute); }
@media print { .scin input { border: none; padding: 0; width: auto; } }
