.petty-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.petty-stats article {
  padding: 20px;
  background: #fff;
  border: 1px solid #dfe7f2;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(27, 59, 104, 0.06);
}

.petty-stats small {
  display: block;
  margin-bottom: 10px;
  color: #65738b;
}

.petty-stats strong {
  color: #14213d;
  font-size: 24px;
}

.petty-filters {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 14px;
}

.petty-filter-panel label {
  margin: 0;
}

.petty-amount-in {
  color: #159a6b;
  font-weight: 800;
}

.petty-amount-out {
  color: #d86b14;
  font-weight: 800;
}

.petty-type {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.petty-type.in {
  color: #13795b;
  background: #def7ed;
}

.petty-type.out {
  color: #b4540d;
  background: #fff0df;
}

.petty-empty {
  padding: 45px;
  color: #71809a;
  text-align: center;
  border: 1px dashed #ccd8e8;
  border-radius: 12px;
}

.petty-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  color: #64728a;
}

.petty-summary b {
  color: #17233e;
}

.petty-table-wrap {
  overflow: auto;
}

.petty-table-wrap table {
  min-width: 1050px;
}

.petty-actions {
  white-space: nowrap;
}

.petty-actions button {
  margin-right: 5px;
}

.petty-negative {
  color: #db3d4d !important;
}

@media (max-width: 1000px) {
  .petty-stats,
  .petty-filters {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .petty-stats,
  .petty-filters {
    grid-template-columns: 1fr;
  }
}
