:root {
  --bg: #f4f6fb;
  --card: #ffffff;
  --text: #1d2433;
  --muted: #667085;
  --line: #d9e0ec;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --danger: #b42318;
  --success: #067647;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 22px;
  background: #111827;
  color: #fff;
  flex-wrap: wrap;
}
.brand { font-weight: 800; letter-spacing: .2px; }
.topbar nav { display: flex; gap: 10px; flex-wrap: wrap; }
.topbar nav a {
  color: #fff;
  padding: 7px 9px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
}
.topbar nav a:hover { background: rgba(255,255,255,.16); text-decoration: none; }
.container { width: min(1400px, calc(100% - 28px)); margin: 24px auto; }
h1 { margin: 0 0 18px; font-size: 28px; }
h2, h3 { margin-top: 0; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(17,24,39,.06);
  margin-bottom: 18px;
}
.note { color: var(--muted); }
.success { border-color: #abefc6; background: #ecfdf3; color: var(--success); }
.alert {
  background: #fef3f2;
  border: 1px solid #fecdca;
  color: var(--danger);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.search-form { display: flex; gap: 8px; flex: 1; min-width: 280px; }
.search-form input { flex: 1; }
input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
}
label { display: grid; gap: 6px; font-weight: 650; color: #344054; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.form-grid.two-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wide { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 10px; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { background: var(--primary-dark); text-decoration: none; }
.btn.secondary { background: #eef2ff; color: #1e3a8a; }
.btn.secondary:hover { background: #dbe4ff; }
.btn.success-btn { background: #067647; color: #fff; }
.btn.success-btn:hover { background: #05603a; }
.table-responsive { overflow-x: auto; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}
.data-table th, .data-table td {
  padding: 10px 9px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}
.data-table th {
  background: #f8fafc;
  color: #344054;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.data-table tr:hover td { background: #fbfdff; }
.data-table.compact th, .data-table.compact td { padding: 8px; }
.num { text-align: right !important; font-variant-numeric: tabular-nums; }
.empty { text-align: center; color: var(--muted); padding: 28px !important; }
.actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.actions form { display: inline; }
.link-button, .danger-link {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  color: var(--primary);
  cursor: pointer;
  font-weight: 800;
}
.danger-link { color: var(--danger); }
.member-name-link {
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.member-name-link:hover { color: var(--primary-dark); }

.badge {
  background: #eef4ff;
  border: 1px solid #c7d7fe;
  color: #1d4ed8;
  padding: 8px 10px;
  border-radius: 999px;
  font-weight: 800;
}
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, .62);
  padding: 24px;
  overflow: auto;
}
.modal.is-open { display: block; }
.modal-content {
  position: relative;
  background: #fff;
  border-radius: 18px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px;
  box-shadow: 0 24px 80px rgba(0,0,0,.25);
}
.modal-close {
  position: absolute;
  right: 14px;
  top: 10px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: #f2f4f7;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}
.popup-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding-right: 42px;
  margin-bottom: 12px;
}
.popup-header p { margin: 4px 0 0; color: var(--muted); }
.popup-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.details-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.details-grid div, .summary-cards div {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
}
.details-grid span, .summary-cards span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 3px; }
.details-grid strong, .summary-cards strong { overflow-wrap: anywhere; }
.summary-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 20px;
}
.check-row { display: flex; flex-direction: row; gap: 10px; align-items: center; font-weight: 600; }
.check-row input { width: auto; }
.login-card { max-width: 420px; }
@media (max-width: 800px) {
  .form-grid.two-cols, .details-grid, .summary-cards { grid-template-columns: 1fr; }
  .popup-header { flex-direction: column; }
  .search-form { flex-direction: column; }
}
@media print {
  body { background: #fff; }
  .topbar, .modal-close, .popup-actions { display: none !important; }
  .modal { position: static; display: block; background: #fff; padding: 0; }
  .modal-content { box-shadow: none; border-radius: 0; padding: 0; }
  .container { width: 100%; margin: 0; }
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.report-card {
  display: grid;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(17,24,39,.06);
  color: var(--text);
  min-height: 170px;
}
.report-card:hover { text-decoration: none; border-color: #b8c7ff; transform: translateY(-1px); }
.report-card span {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eef2ff;
  color: #1e3a8a;
  font-weight: 900;
}
.report-card strong { font-size: 20px; }
.report-card em { color: var(--muted); font-style: normal; line-height: 1.45; }
.report-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.report-heading h2 { margin: 0; }
.report-heading p { margin: 4px 0 0; color: var(--muted); }
.data-table tfoot th {
  background: #f8fafc;
  border-top: 2px solid var(--line);
}
.members-catalog { min-width: 1200px; }
.member-card-print .print-card-title { padding-right: 0; }

@media (max-width: 900px) {
  .report-grid { grid-template-columns: 1fr; }
  .report-heading { flex-direction: column; }
}

@media print {
  @page { size: A4 landscape; margin: 10mm; }
  body { background: #fff; color: #000; font-size: 11px; }
  .no-print, .topbar, .modal-close, .popup-actions, .actions { display: none !important; }
  .container { width: 100%; margin: 0; }
  h1 { font-size: 18px; margin-bottom: 8px; }
  h2 { font-size: 16px; }
  h3 { font-size: 14px; }
  .card, .report-print {
    border: 0;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
  }
  .table-responsive { overflow: visible; }
  .data-table { min-width: 0; font-size: 10px; }
  .data-table th, .data-table td { padding: 4px 5px; border-bottom: 1px solid #999; }
  .data-table th { background: #eee !important; color: #000; }
  .details-grid, .summary-cards { break-inside: avoid; }
  .details-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .summary-cards { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .details-grid div, .summary-cards div { padding: 6px; border-color: #999; background: #fff; }
  .modal { position: static; display: block; background: #fff; padding: 0; }
  .modal-content { box-shadow: none; border-radius: 0; padding: 0; }
}

/* Απαλό θέμα με χρώματα εμπνευσμένα από το λογότυπο */
:root {
  --bg: #eef8fc;
  --bg-soft: #f7fbfd;
  --card: rgba(255, 255, 255, .92);
  --text: #203047;
  --muted: #66788f;
  --line: #d8ebf4;
  --primary: #1586c7;
  --primary-dark: #0f6fa8;
  --primary-soft: #e7f5fc;
  --accent: #b4d331;
  --danger: #b42318;
  --success: #087f5b;
}
body {
  background:
    radial-gradient(circle at top left, rgba(180, 211, 49, .16), transparent 28rem),
    radial-gradient(circle at top right, rgba(21, 134, 199, .16), transparent 34rem),
    linear-gradient(180deg, #f8fdff 0%, var(--bg) 48%, #f7fbfd 100%);
  color: var(--text);
}
a { color: var(--primary-dark); }
.topbar {
  background: rgba(255, 255, 255, .82);
  color: var(--text);
  border-bottom: 1px solid rgba(216, 235, 244, .95);
  box-shadow: 0 10px 30px rgba(20, 102, 153, .08);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #17496a;
  font-weight: 900;
  letter-spacing: .1px;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(21, 134, 199, .18);
}
.topbar nav a {
  color: #23516d;
  background: #eff8fc;
  border: 1px solid #d5ecf7;
  font-weight: 750;
}
.topbar nav a:hover {
  background: #dff2fb;
  border-color: #b9dff0;
  color: #0f5f91;
}
.container { margin-top: 22px; }
h1 { color: #17496a; }
.card, .report-card {
  background: var(--card);
  border-color: rgba(216, 235, 244, .95);
  box-shadow: 0 16px 40px rgba(20, 102, 153, .08);
}
.index-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 26px;
  margin-bottom: 18px;
  border: 1px solid rgba(190, 225, 240, .95);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(232,247,253,.92)),
    radial-gradient(circle at 90% 10%, rgba(180,211,49,.22), transparent 16rem);
  box-shadow: 0 18px 50px rgba(20, 102, 153, .10);
  overflow: hidden;
  position: relative;
}
.index-hero::after {
  content: '';
  position: absolute;
  right: -80px;
  bottom: -100px;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: rgba(180, 211, 49, .12);
  pointer-events: none;
}
.index-hero-logo,
.index-hero-text,
.index-hero-stats { position: relative; z-index: 1; }
.index-hero-logo {
  width: 120px;
  height: 120px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 999px;
  border: 1px solid #d8ebf4;
  box-shadow: 0 14px 34px rgba(21, 134, 199, .14);
}
.index-hero-logo img {
  width: 104px;
  height: 104px;
  object-fit: contain;
}
.eyebrow {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  color: #0f6fa8;
  background: #e7f5fc;
  border: 1px solid #c8e6f4;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.index-hero h2 {
  margin: 10px 0 6px;
  color: #17496a;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
}
.index-hero p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.index-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: 10px;
}
.index-hero-stats div {
  background: rgba(255,255,255,.88);
  border: 1px solid #d8ebf4;
  border-radius: 18px;
  padding: 12px 14px;
  min-width: 115px;
}
.index-hero-stats span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}
.index-hero-stats strong {
  display: block;
  color: #17496a;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}
input, select, textarea {
  border-color: #cfe5f0;
  background: rgba(255,255,255,.96);
}
input:focus, select:focus, textarea:focus {
  outline: 3px solid rgba(21, 134, 199, .14);
  border-color: #8ecbe8;
}
.btn {
  background: linear-gradient(135deg, #1586c7, #0f73ad);
  box-shadow: 0 8px 18px rgba(21, 134, 199, .18);
}
.btn:hover { background: linear-gradient(135deg, #0f73ad, #0b628f); }
.btn.secondary {
  background: #eef8fc;
  color: #0f5f91;
  border: 1px solid #cfe5f0;
  box-shadow: none;
}
.btn.secondary:hover { background: #dff2fb; }
.data-table th {
  background: #eef8fc;
  color: #23516d;
}
.data-table tr:hover td { background: #f6fbfe; }
.badge, .report-card span {
  background: #e7f5fc;
  border-color: #c8e6f4;
  color: #0f6fa8;
}
.modal-content {
  border: 1px solid #d8ebf4;
  box-shadow: 0 26px 80px rgba(20, 102, 153, .24);
}
.modal-close { background: #eef8fc; color: #23516d; }

@media (max-width: 1100px) {
  .index-hero { grid-template-columns: auto 1fr; }
  .index-hero-stats { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .topbar { align-items: flex-start; }
  .brand img { width: 44px; height: 44px; }
  .index-hero { grid-template-columns: 1fr; text-align: center; }
  .index-hero-logo { margin: 0 auto; }
  .index-hero p { margin-left: auto; margin-right: auto; }
  .index-hero-stats { grid-template-columns: 1fr; }
}
@media print {
  .index-hero { display: none !important; }
}

/* Κεντραρισμένη κεφαλίδα και λογότυπο σε όλες τις σελίδες */
.topbar {
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  padding: 18px 20px 16px;
}
.brand {
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  gap: 8px;
  font-size: 19px;
}
.brand img {
  width: 76px;
  height: 76px;
}
.topbar nav {
  width: 100%;
  justify-content: center;
  align-items: center;
  margin-top: 8px;
}
.container > h1 {
  text-align: center;
  margin-bottom: 24px;
  font-size: clamp(26px, 3vw, 36px);
}
.index-hero {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  padding: 30px 24px;
}
.index-hero-logo { margin: 0 auto; }
.index-hero-text { max-width: 820px; }
.index-hero p { margin-left: auto; margin-right: auto; }
.index-hero-stats {
  justify-content: center;
  width: min(760px, 100%);
}
.report-heading {
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
}
.popup-header.print-card-title {
  justify-content: center;
  text-align: center;
}

/* Βελτιωμένο μενού εκτυπώσεων */
.reports-hero {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 10px;
  padding: 30px 24px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.97), rgba(232,247,253,.94)),
    radial-gradient(circle at 50% 0%, rgba(180, 211, 49, .18), transparent 18rem);
}
.reports-hero img {
  width: 112px;
  height: 112px;
  object-fit: contain;
  border-radius: 999px;
  padding: 6px;
  background: #fff;
  border: 1px solid #d8ebf4;
  box-shadow: 0 14px 34px rgba(21, 134, 199, .14);
}
.reports-hero h2 {
  margin: 4px 0 0;
  color: #17496a;
  font-size: clamp(22px, 2.7vw, 32px);
  line-height: 1.15;
}
.reports-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.report-menu-grid {
  max-width: 1180px;
  margin: 0 auto;
}
.report-menu-card {
  justify-items: center;
  align-items: center;
  text-align: center;
  min-height: 245px;
  padding: 26px 22px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(246,251,254,.94));
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.report-menu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(20, 102, 153, .14);
  border-color: #a9d8ee;
}
.report-menu-card span {
  width: 54px;
  height: 54px;
  font-size: 20px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.65);
}
.report-menu-card strong {
  display: block;
  margin-bottom: 8px;
  color: #17496a;
  font-size: 22px;
}
.report-menu-card em {
  display: block;
  max-width: 310px;
  margin: 0 auto;
}
.report-menu-card b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef8fc;
  border: 1px solid #cfe5f0;
  color: #0f5f91;
  font-size: 13px;
}
.report-toolbar {
  justify-content: center;
}

@media (max-width: 900px) {
  .topbar { padding: 16px 12px; }
  .topbar nav { gap: 8px; }
  .topbar nav a { padding: 8px 10px; }
  .brand img { width: 66px; height: 66px; }
  .report-menu-card { min-height: 210px; }
}
@media (max-width: 760px) {
  .topbar { align-items: center; }
  .brand { font-size: 17px; }
  .index-hero-stats { grid-template-columns: 1fr; }
}
@media print {
  .brand img, .reports-hero { display: none !important; }
  .container > h1, .report-heading { text-align: center; }
}

/* Εκτύπωση καρτέλας σωματείου: μόνο επωνυμία και σύνολα επάνω */
.print-member-summary {
  display: grid;
  grid-template-columns: minmax(280px, 1.4fr) minmax(360px, 2fr);
  gap: 14px;
  align-items: stretch;
  margin: 16px 0 22px;
}
.print-member-name,
.print-member-totals div {
  background: #f8fcfe;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
}
.print-member-name {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}
.print-member-name span,
.print-member-totals span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
}
.print-member-name h2 {
  margin: 0;
  color: #17496a;
  line-height: 1.25;
}
.print-member-totals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.print-member-totals div {
  text-align: center;
}
.print-member-totals strong {
  color: #17496a;
  font-size: 18px;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .print-member-summary { grid-template-columns: 1fr; }
  .print-member-name { text-align: center; }
  .print-member-totals { grid-template-columns: 1fr; }
}
@media print {
  .print-member-summary {
    grid-template-columns: 1.25fr 2fr;
    gap: 8px;
    margin: 8px 0 12px;
    break-inside: avoid;
  }
  .print-member-name,
  .print-member-totals div {
    border-color: #999;
    background: #fff;
    border-radius: 0;
    padding: 6px 8px;
  }
  .print-member-name h2 { font-size: 15px; }
  .print-member-name span,
  .print-member-totals span { font-size: 10px; color: #333; }
  .print-member-totals { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .print-member-totals strong { font-size: 12px; color: #000; }
}
