* {
  box-sizing: border-box;
}

body {
  font-family: system-ui, sans-serif;
  margin: 1rem;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
  background: #fff;
}

h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  padding-left: 0.5rem;
}

.filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 0 0.5rem;
}

.filter-form label {
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
}

.filter-form input,
.filter-form button {
  padding: 6px 10px;
  font-size: 0.9rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.filter-form button {
  background-color: #007BFF;
  color: #fff;
  border: none;
  cursor: pointer;
}

.filter-form button:hover {
  background-color: #0056b3;
}

.pnl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: #fefefe;
  margin-bottom: 3rem;
}

.pnl-table td {
  padding: 10px 6px;
  border-bottom: 1px solid #ddd;
  text-align: right;
}

.pnl-table td:first-child {
  text-align: left;
  padding-left: 1rem;
}

.pnl-table tr.bold td {
  font-weight: bold;
  background: #f8f9fa;
}

.pnl-table tr.total td {
  font-size: 1.1rem;
  background: #e0f3e0;
  color: #000;
}

@media (max-width: 600px) {
  .filter-form {
    flex-direction: column;
    align-items: stretch;
  }

  .pnl-table {
    font-size: 0.85rem;
  }

  .pnl-table td {
    padding: 8px 4px;
  }
}
.pnl-table tr.total td {
  background: #dff0d8;
  border-top: 2px solid #bbb;
}
@media (max-width: 600px) {
  body {
    padding: 0.5rem;
  }
}
.export-btn {
  display: inline-block;
  margin: 1rem 0;
  padding: 8px 14px;
  background: #28a745;
  color: white;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.9rem;
}

.export-btn:hover {
  background: #218838;
}
