:root {
  --bg: #f3f6f8;
  --panel: #ffffff;
  --text: #111111;
  --muted: #4f5b66;
  --grid: #d9e2ec;
  --line: #1f1f1f;
  --primary: #00b050;
  --primary-dark: #006100;
  --soft: #e2f0d9;
  --danger: #c00000;
  --success: #008000;
  --warning: #9c6500;
  --excel-fxo: #c6e0b4;
  --excel-deposit: #bdd7ee;
  --excel-bonus: #00b0f0;
  --excel-withdrawal: #7030a0;
  --excel-betting: #ff0000;
  --excel-winning: #00b050;
  --excel-percent: #ffff00;
  --excel-next: #ffd966;
  --excel-usdt: #70ad47;
  --excel-date: #f4b183;
  --excel-eta: #ff99ff;
  --excel-black: #000000;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  --radius: 8px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Calibri, Carlito, Arial, sans-serif;
  color: var(--text);
  background:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    var(--bg);
  background-size: 74px 24px, 74px 24px, auto;
}

button, input { font: inherit; }

.topbar {
  max-width: 1480px;
  margin: 0 auto;
  padding: 26px 20px 14px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 5px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary-dark);
  font-size: 12px;
}

h1, h2, p { margin-top: 0; }

h1 {
  margin-bottom: 8px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1;
}

h2 {
  margin-bottom: 5px;
  font-size: 21px;
}

.subtitle,
.panel-title p,
.hint,
.footer {
  color: var(--muted);
}

.actions,
.inline-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  border: 2px solid var(--line);
  border-radius: 4px;
  padding: 10px 15px;
  cursor: pointer;
  font-weight: 900;
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}

.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 0 rgba(0,0,0,.12); }
.btn:active { transform: translateY(0); opacity: .86; }
.btn-primary { background: var(--excel-winning); color: white; }
.btn-soft { background: var(--excel-next); color: #000; }

.layout {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 20px 34px;
  display: grid;
  gap: 16px;
}

.panel,
.kpi {
  background: rgba(255, 255, 255, .96);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel { padding: 18px; }
.xls-panel { background: rgba(255,255,255,.98); }

.panel-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  border: 2px solid var(--line);
  border-radius: 4px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 900;
  color: #000;
  background: var(--excel-percent);
  white-space: nowrap;
}

.status-pill.error { color: #fff; background: var(--danger); }
.status-pill.ok { color: #fff; background: var(--excel-winning); }
.status-pill.warn { color: #000; background: var(--excel-next); }

.form-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(130px, 1fr));
  gap: 10px;
}

.compact-grid label {
  border: 2px solid var(--line);
  background: #fff;
  padding: 8px;
}

label span {
  display: block;
  font-size: 12px;
  color: #000;
  font-weight: 900;
  margin-bottom: 6px;
  text-transform: uppercase;
}

input {
  width: 100%;
  border: 1px solid #7f7f7f;
  border-radius: 2px;
  padding: 8px 9px;
  color: #000;
  background: #fff;
  outline: none;
}

input:focus {
  border-color: #000;
  box-shadow: 0 0 0 3px rgba(255, 255, 0, .38);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(130px, 1fr));
  gap: 10px;
}

.kpi {
  padding: 0;
  min-height: 116px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.kpi span {
  display: block;
  padding: 8px 10px;
  color: #000;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
  border-bottom: 2px solid var(--line);
  letter-spacing: .02em;
  background: rgba(255,255,255,.65);
}

.kpi strong {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 10px;
  font-size: clamp(20px, 2vw, 29px);
  line-height: 1;
  letter-spacing: -.02em;
  text-align: center;
}

.kpi small {
  display: block;
  padding: 7px 10px;
  border-top: 1px solid rgba(0,0,0,.35);
  color: #000;
  text-align: center;
  font-size: 12px;
  background: rgba(255,255,255,.55);
}

.xls-fxo { background: var(--excel-fxo); }
.xls-deposit { background: var(--excel-deposit); }
.xls-bonus { background: var(--excel-bonus); }
.xls-withdrawal { background: var(--excel-withdrawal); color: #fff; }
.xls-withdrawal span, .xls-withdrawal small, .xls-withdrawal dt, .xls-withdrawal dd, .xls-withdrawal b { color: #fff; }
.xls-betting { background: var(--excel-betting); color: #fff; }
.xls-betting span, .xls-betting small { color: #fff; }
.xls-winning { background: var(--excel-winning); color: #fff; }
.xls-winning span, .xls-winning small { color: #fff; }
.xls-next { background: var(--excel-next); }
.xls-eta { background: var(--excel-eta); }
.xls-usdt { background: var(--excel-usdt); }
.xls-start { background: var(--excel-date); }
.xls-after { background: #5b9bd5; color: #000; }
.xls-net { background: #404040; color: #00b050; }
.xls-net dt, .xls-net dd { color: #00b050 !important; }

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.money-cols { align-items: start; }

.table-wrap {
  overflow: auto;
  border: 2px solid var(--line);
  border-radius: 0;
  background: white;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 620px;
  background: white;
}

th, td {
  padding: 0;
  text-align: left;
  border: 1px solid var(--line);
  vertical-align: middle;
  height: 34px;
}

th {
  background: #d9d9d9;
  color: #000;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .01em;
  text-align: center;
  padding: 7px 8px;
}

td { background: #fff; }

td input {
  min-width: 120px;
  border: 0;
  border-radius: 0;
  min-height: 34px;
  background: transparent;
}

td input:focus {
  box-shadow: inset 0 0 0 2px #000;
}

.deposit-list th:nth-child(2), .deposit-amount, .deposit-amount input { background: var(--excel-deposit); }
.bonus-list th:nth-child(2), .bonus-amount, .bonus-amount input { background: var(--excel-bonus); }
.bet-list th:nth-child(2), .bet-amount, .bet-amount input { background: #fff; color: #ff0000; }
.bet-list th:nth-child(3), .win-amount, .win-amount input { background: #fff; color: #00b050; }
.bet-list th:nth-child(4), .percent-cell { background: var(--excel-percent); color: #000; }
.bet-list tfoot th:nth-child(2) { color: #ff0000; }
.bet-list tfoot th:nth-child(3) { color: #00b050; }
.bet-list tfoot th:nth-child(4) { background: var(--excel-percent); }

.bet-amount input, .win-amount input { font-weight: 800; }

td.action-cell {
  width: 52px;
  text-align: center;
  background: #f2f2f2;
}

.icon-btn {
  border: 2px solid var(--line);
  background: #ffc7ce;
  color: var(--danger);
  border-radius: 2px;
  width: 30px;
  height: 28px;
  cursor: pointer;
  font-weight: 900;
  line-height: 1;
}

.percent-cell {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  text-align: center;
  padding: 7px 8px;
}

.mini-summary {
  margin: 0;
  display: grid;
  gap: 0;
  border: 2px solid var(--line);
}

.mini-summary div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-bottom: 2px solid var(--line);
}

.mini-summary div:last-child { border-bottom: 0; }
.mini-summary dt { color: #000; font-weight: 900; text-transform: uppercase; }
.mini-summary dd { margin: 0; font-size: 21px; font-weight: 900; }
.hint { margin: 14px 0 0; font-size: 13px; line-height: 1.5; }
code { background: #f2f2f2; padding: 2px 5px; border: 1px solid #bfbfbf; border-radius: 2px; }

.excel-note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  border: 2px solid var(--line);
}

.excel-note-grid div {
  min-height: 95px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 12px;
}

.excel-note-grid b {
  font-size: 13px;
  text-transform: uppercase;
}

.excel-note-grid span {
  margin-top: 7px;
  font-size: 24px;
  font-weight: 900;
}

#forecastChart {
  width: 100%;
  max-height: 320px;
  border: 2px solid var(--line);
  border-radius: 0;
  background: white;
  margin-bottom: 12px;
}

.schedule-wrap { max-height: 520px; }
.schedule-wrap table { min-width: 720px; }
.schedule-list th:nth-child(2) { background: #f4b183; }
.schedule-list th:nth-child(4) { background: #d9d9d9; }
.schedule-list td { padding: 7px 8px; text-align: right; }
.schedule-list td:first-child { text-align: left; }
.schedule-row-zero td { background: #e2f0d9; font-weight: 900; color: var(--success); border-top: 3px solid #ff0000; }
.schedule-row-negative td { color: var(--danger); }

.footer {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 20px 32px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 13px;
}

.link-button {
  border: 0;
  padding: 0;
  background: none;
  color: var(--primary-dark);
  font-weight: 900;
  cursor: pointer;
  text-decoration: underline;
}

@media (max-width: 1180px) {
  .form-grid { grid-template-columns: repeat(3, minmax(160px, 1fr)); }
  .kpi-grid { grid-template-columns: repeat(4, minmax(160px, 1fr)); }
}

@media (max-width: 860px) {
  .topbar { flex-direction: column; align-items: stretch; padding-top: 22px; }
  .actions .btn { flex: 1; }
  .layout { padding-left: 12px; padding-right: 12px; }
  .form-grid, .kpi-grid, .two-col { grid-template-columns: 1fr; }
  .panel { padding: 12px; }
  .panel-title { flex-direction: column; }
  table { min-width: 560px; }
  .footer { padding-left: 12px; padding-right: 12px; }
}

/* Auth / installer additions - κρατάμε το Excel-like ύφος */
a.btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.btn-danger { background: var(--danger); color: #fff; }
.user-pill {
  border: 2px solid var(--line);
  background: var(--excel-fxo);
  color: #000;
  font-weight: 900;
  padding: 10px 12px;
  border-radius: 4px;
}
.flash {
  max-width: 1480px;
  margin: 0 auto 14px;
  border: 2px solid var(--line);
  padding: 12px 16px;
  font-weight: 900;
  background: var(--excel-next);
  box-shadow: var(--shadow);
}
.flash-ok { background: var(--excel-winning); color: #fff; }
.flash-error { background: var(--danger); color: #fff; }
.flash-warn { background: var(--excel-next); color: #000; }
.auth-layout { max-width: 1180px; }
.auth-card { max-width: 560px; margin: 0 auto; width: 100%; }
.wide-card { max-width: 1180px; }
.auth-form { display: grid; gap: 12px; }
.auth-form label, .setup-grid label {
  border: 2px solid var(--line);
  background: #fff;
  padding: 8px;
}
.auth-form button { width: 100%; }
.auth-switch { margin: 14px 0 0; text-align: center; font-weight: 700; }
.auth-switch a { color: var(--primary-dark); font-weight: 900; }
.auth-actions-row { display: flex; justify-content: space-between; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.setup-form { max-width: 1180px; margin: 0 auto; width: 100%; }
.setup-grid { grid-template-columns: repeat(4, minmax(160px, 1fr)); }
.section-gap { margin-top: 26px; }
.form-actions { margin-top: 18px; }
.inline-form { margin-top: 12px; }
.check-line { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-weight: 900; }
.check-line input { width: auto; }
select {
  width: 100%;
  border: 1px solid #7f7f7f;
  border-radius: 2px;
  padding: 8px 9px;
  color: #000;
  background: #fff;
  outline: none;
  font: inherit;
}
.totp-box {
  border: 2px solid var(--line);
  background: var(--excel-percent);
  padding: 10px;
  margin: 8px 0;
  overflow-wrap: anywhere;
}
.totp-box code { display: block; margin-top: 6px; font-size: 13px; background: #fff; padding: 8px; border: 1px solid #111; }
.compact-auth { margin-top: 12px; }
.grid-auth { grid-template-columns: repeat(4, 1fr); align-items: end; }
.grid-auth button { height: 42px; }
.app-topbar .actions { justify-content: flex-end; }

@media (max-width: 980px) {
  .setup-grid, .grid-auth { grid-template-columns: repeat(2, minmax(160px, 1fr)); }
}
@media (max-width: 640px) {
  .setup-grid, .grid-auth { grid-template-columns: 1fr; }
  .auth-card { max-width: none; }
}

/* Import/export + QR additions */
textarea {
  width: 100%;
  border: 1px solid #7f7f7f;
  border-radius: 2px;
  padding: 9px;
  color: #000;
  background: #fff;
  outline: none;
  font: inherit;
  resize: vertical;
  min-height: 160px;
}
textarea:focus { border-color: #000; box-shadow: 0 0 0 3px rgba(255,255,0,.38); }
.impex-layout { max-width: 1180px; }
.impex-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.table-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 10px;
}
.table-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 8px;
  align-items: center;
  border: 2px solid var(--line);
  background: var(--excel-fxo);
  padding: 10px;
  font-weight: 900;
}
.table-check input { width: auto; }
.table-check span { margin: 0; font-size: 14px; text-transform: none; }
.table-check small { grid-column: 2; color: #333; font-weight: 700; }
.sql-note {
  margin-top: 14px;
  border: 2px solid var(--line);
  background: var(--excel-next);
  padding: 12px;
}
.sql-note h3 { margin: 0 0 8px; }
.sql-note p { margin: 0; color: #000; }
.qr-wrap {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 14px;
  align-items: start;
}
.totp-qr {
  width: 260px;
  height: 260px;
  border: 2px solid var(--line);
  background: #fff;
  padding: 10px;
  display: block;
}
.totp-details {
  margin-top: 10px;
  border: 2px solid var(--line);
  background: #fff;
  padding: 10px;
  overflow-wrap: anywhere;
}
.totp-details summary { cursor: pointer; font-weight: 900; color: var(--primary-dark); }
.totp-details code { display: block; margin-top: 8px; }
@media (max-width: 900px) {
  .table-checkbox-grid { grid-template-columns: 1fr; }
  .qr-wrap { grid-template-columns: 1fr; }
}

/* Security additions */
.auth-hint {
  margin: 0;
  padding: 8px 10px;
  border: 2px solid var(--line);
  background: var(--excel-next);
  color: #000;
  font-weight: 800;
}
.recovery-alert h3 {
  margin: 0 0 8px;
  color: #000;
}
.recovery-alert p {
  color: #000;
  margin-bottom: 10px;
}
.recovery-code-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 8px;
}
.recovery-code-grid code {
  display: block;
  border: 2px solid var(--line);
  background: #fff;
  padding: 10px;
  text-align: center;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .06em;
}
@media (max-width: 900px) {
  .recovery-code-grid { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
}
@media (max-width: 520px) {
  .recovery-code-grid { grid-template-columns: 1fr; }
}

/* v3.3 profile + dismissible messages */
.flash {
  position: relative;
  padding-right: 54px;
  line-height: 1.45;
  transition: opacity .16s ease, transform .16s ease, max-height .16s ease, margin .16s ease, padding .16s ease;
}
.flash h3 { margin: 0 0 8px; }
.flash p { margin: 0; }
.flash-hiding {
  opacity: 0;
  transform: translateY(-6px);
  max-height: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  overflow: hidden;
}
.flash-close {
  position: absolute;
  top: 9px;
  right: 10px;
  width: 32px;
  height: 30px;
  border: 2px solid var(--line);
  border-radius: 3px;
  background: rgba(255,255,255,.9);
  color: #000;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}
.flash-error .flash-close,
.flash-ok .flash-close { background: #fff; color: #000; }
.flash-close:hover { transform: translateY(-1px); box-shadow: 0 4px 0 rgba(0,0,0,.12); }

.profile-layout { max-width: 1180px; }
.profile-summary-card { overflow: hidden; }
.profile-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 0;
  border: 2px solid var(--line);
  background: #fff;
}
.profile-status-cell {
  min-height: 82px;
  border-right: 2px solid var(--line);
  padding: 12px;
  background: #d9d9d9;
}
.profile-status-cell:last-child { border-right: 0; }
.profile-status-cell b {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  text-transform: uppercase;
}
.profile-status-cell span {
  display: block;
  font-size: 15px;
  font-weight: 900;
}
.profile-status-cell.is-active { background: var(--excel-fxo); }
.profile-status-cell.needs-attention { background: #ffc7ce; }
.mode-card { position: relative; overflow: hidden; }
.mode-card::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 7px;
  background: #d9d9d9;
  border-bottom: 2px solid var(--line);
}
.mode-card.mode-active::before { background: var(--excel-winning); }
.profile-callout {
  border: 2px solid var(--line);
  padding: 10px 12px;
  margin: 0 0 12px;
  font-weight: 800;
}
.ok-callout { background: var(--excel-fxo); }
.warn-callout { background: var(--excel-next); }
.totp-setup-box {
  display: block;
  border: 2px solid var(--line);
  background: #fff;
  padding: 12px;
  margin: 12px 0;
}
.totp-setup-box summary {
  cursor: pointer;
  font-weight: 900;
  text-transform: uppercase;
}
.totp-setup-box[open] summary { margin-bottom: 12px; }
.qr-wrap {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.totp-qr {
  width: 260px;
  max-width: 100%;
  background: #fff;
  border: 2px solid var(--line);
  padding: 8px;
}
.totp-details {
  margin-top: 10px;
  overflow-wrap: anywhere;
}
.recovery-alert-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-right: 26px;
}
.copy-btn {
  white-space: nowrap;
  color: #000 !important;
}
.copy-btn.copy-ok { background: var(--excel-winning); color: #fff !important; }
.recovery-code-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.recovery-code-grid code {
  display: block;
  padding: 9px;
  text-align: center;
  color: #000;
  background: #fff;
  border: 2px solid var(--line);
  font-weight: 900;
}

@media (max-width: 980px) {
  .profile-status-grid { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
  .profile-status-cell:nth-child(2) { border-right: 0; }
  .profile-status-cell:nth-child(-n+2) { border-bottom: 2px solid var(--line); }
  .qr-wrap { grid-template-columns: 1fr; }
  .recovery-code-grid { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
  .recovery-alert-head { flex-direction: column; }
}
@media (max-width: 560px) {
  .profile-status-grid, .recovery-code-grid { grid-template-columns: 1fr; }
  .profile-status-cell { border-right: 0; border-bottom: 2px solid var(--line); }
  .profile-status-cell:last-child { border-bottom: 0; }
}

/* v3.4 security/mobile polish */
.installed-lock-card code { overflow-wrap: anywhere; }

@media (max-width: 720px) {
  body {
    background-size: 42px 22px, 42px 22px, auto;
  }
  .topbar {
    padding: 16px 10px 10px;
    gap: 12px;
  }
  .topbar h1 {
    font-size: clamp(28px, 10vw, 38px);
  }
  .subtitle {
    font-size: 14px;
    line-height: 1.35;
  }
  .actions,
  .inline-actions,
  .auth-actions-row,
  .form-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .actions .btn,
  .inline-actions .btn,
  .form-actions .btn,
  .actions a.btn {
    width: 100%;
    min-height: 42px;
  }
  .user-pill {
    text-align: center;
    width: 100%;
  }
  .layout {
    padding-left: 8px;
    padding-right: 8px;
    gap: 10px;
  }
  .panel,
  .auth-form label,
  .setup-grid label {
    border-width: 2px;
  }
  .panel-title {
    gap: 8px;
    margin-bottom: 10px;
  }
  .panel-title h2 {
    font-size: 19px;
  }
  .btn {
    padding: 9px 12px;
  }
  .kpi {
    min-height: 92px;
  }
  .kpi span {
    font-size: 12px;
    padding: 7px;
  }
  .kpi strong {
    font-size: clamp(21px, 8vw, 28px);
  }
  .excel-note-grid {
    grid-template-columns: 1fr;
  }
  #forecastChart {
    height: 230px;
    max-height: 230px;
  }
}

@media (max-width: 640px) {
  .mobile-card-table {
    overflow: visible;
    border: 0;
    background: transparent;
  }
  .mobile-card-table table,
  .mobile-card-table thead,
  .mobile-card-table tbody,
  .mobile-card-table tfoot,
  .mobile-card-table tr,
  .mobile-card-table th,
  .mobile-card-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }
  .mobile-card-table table {
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
  }
  .mobile-card-table thead {
    display: none;
  }
  .mobile-card-table tbody tr,
  .mobile-card-table tfoot tr {
    margin: 0 0 10px;
    border: 2px solid var(--line);
    background: #fff;
    box-shadow: 0 6px 0 rgba(0,0,0,.08);
  }
  .mobile-card-table td,
  .mobile-card-table tfoot th {
    min-height: 42px;
    height: auto;
    display: grid;
    grid-template-columns: minmax(110px, 42%) minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 0;
    border-bottom: 1px solid var(--line);
    text-align: right;
  }
  .mobile-card-table td:last-child,
  .mobile-card-table tfoot th:last-child {
    border-bottom: 0;
  }
  .mobile-card-table td::before {
    content: attr(data-label);
    color: #000;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    text-align: left;
  }
  .mobile-card-table td input {
    min-width: 0;
    width: 100%;
    border: 1px solid #7f7f7f;
    background: #fff;
  }
  .mobile-card-table .action-cell {
    width: 100%;
    text-align: right;
  }
  .mobile-card-table .icon-btn {
    justify-self: end;
  }
  .mobile-card-table tfoot th {
    background: #d9d9d9;
    text-align: right;
  }
  .bet-list tfoot th:nth-child(1)::before { content: 'Σύνολο'; }
  .bet-list tfoot th:nth-child(2)::before { content: 'Betting'; color: #000; }
  .bet-list tfoot th:nth-child(3)::before { content: 'Winning'; color: #000; }
  .bet-list tfoot th:nth-child(4)::before { content: '% winnings'; color: #000; }
  .bet-list tfoot th:nth-child(5) { display: none; }
  .bet-list tfoot th::before {
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    text-align: left;
  }
  .schedule-list td {
    text-align: right;
  }
  .schedule-list td:first-child {
    text-align: right;
  }
}

@media (max-width: 420px) {
  .layout { padding-left: 6px; padding-right: 6px; }
  .panel { padding: 9px; }
  .mobile-card-table td,
  .mobile-card-table tfoot th {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .mobile-card-table td::before,
  .mobile-card-table tfoot th::before {
    margin-bottom: 2px;
  }
  .mobile-card-table .icon-btn {
    justify-self: start;
  }
  .flash {
    margin-left: 8px;
    margin-right: 8px;
  }
}
