body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f4f4f6;
  color: #222;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

header {
  margin-bottom: 24px;
}

h1, h2, h3 {
  color: #1d3557;
}

.card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
  padding: 20px;
  margin-bottom: 24px;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

input[type="text"],
input[type="number"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 14px;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  box-sizing: border-box;
}

button {
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  background: #457b9d;
  color: white;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  background: #33658a;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 18px;
}

thead {
  background: #f1f5f9;
}

td, th {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid #e2e8f0;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  background: #e0f2fe;
  color: #0369a1;
}

.status-income {
  color: #166534;
}

.status-expense {
  color: #b91c1c;
}

.notice {
  background: #fffbeb;
  border: 1px solid #facc15;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 16px;
}

.small {
  font-size: 0.95rem;
  color: #475569;
}

.summary {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.summary-card {
  flex: 1 1 220px;
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}

.summary-card strong {
  display: block;
  margin-bottom: 8px;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 6px;
  background: #457b9d;
  color: white;
  text-decoration: none;
  font-weight: 700;
}

.button-link:hover {
  background: #33658a;
}

.player-report {
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}

.player-report h2 {
  margin-top: 0;
}

.player-report table {
  margin-bottom: 16px;
}

@media print {
  body {
    background: white;
    color: black;
  }
  .container {
    box-shadow: none;
    margin: 0;
    padding: 0;
  }
  .card, .notice, .button, .button-link {
    box-shadow: none;
    border: none;
  }
  .player-report {
    page-break-after: always;
  }
  .player-report:last-child {
    page-break-after: auto;
  }
  header,
  .print-hide,
  .button-link,
  .button {
    display: none !important;
  }
}

.toggle-row {
  cursor: pointer;
}

.toggle-row:hover {
  background: #f8fafc;
}

.details-row.hidden {
  display: none;
}

.inline-form {
  display: inline-block;
  margin: 0;
}

.inline-form button {
  background: #ef4444;
}
