html {
  font-size: 15px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin-bottom: 72px;
  background: #f6f7f9;
  color: #1d2733;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem #fff, 0 0 0 0.25rem rgba(13, 110, 253, 0.2);
}

.app-container {
  max-width: 980px;
}

.navbar {
  box-shadow: 0 1px 8px rgba(20, 30, 40, 0.04);
}

.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px;
  background: #fff;
}

.auth-shell {
  min-height: calc(100vh - 170px);
  display: grid;
  place-items: center;
  padding: 24px 0;
}

.auth-panel {
  width: min(100%, 430px);
  background: #fff;
  border: 1px solid #e5e9ef;
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 18px 50px rgba(20, 30, 40, 0.08);
}

.auth-panel h1,
.page-heading h1 {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 700;
}

.auth-panel p,
.page-heading p {
  margin: 6px 0 0;
  color: #667085;
}

.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 8px 0 22px;
}

.receipt-form,
.filter-bar,
.report-bar,
.summary-box,
.receipt-item,
.empty-state {
  background: #fff;
  border: 1px solid #e5e9ef;
  border-radius: 8px;
}

.receipt-form {
  padding: 22px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 22px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(120px, 160px) minmax(140px, 1fr) auto;
  align-items: end;
  gap: 12px;
  padding: 16px;
  margin-bottom: 12px;
}

.report-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  margin-bottom: 16px;
}

.report-bar strong,
.report-bar span {
  display: block;
}

.report-bar span {
  color: #667085;
  font-size: 0.92rem;
  margin-top: 2px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.summary-box {
  padding: 16px;
}

.summary-box span {
  display: block;
  color: #667085;
  font-size: 0.9rem;
}

.summary-box strong {
  display: block;
  margin-top: 4px;
  font-size: 1.25rem;
}

.receipt-list {
  display: grid;
  gap: 10px;
}

.receipt-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 18px;
  padding: 16px;
}

.receipt-title {
  font-weight: 700;
}

.receipt-meta,
.receipt-note,
.receipt-money span {
  color: #667085;
  font-size: 0.92rem;
}

.receipt-note {
  margin-top: 4px;
}

.receipt-money {
  text-align: right;
  min-width: 150px;
}

.receipt-money strong,
.receipt-money span {
  display: block;
}

.receipt-actions {
  display: flex;
  gap: 8px;
}

.empty-state {
  padding: 32px;
  text-align: center;
  color: #667085;
}

@media (max-width: 700px) {
  .page-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .page-heading .btn,
  .form-actions .btn {
    width: 100%;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }

  .report-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .report-bar .btn {
    width: 100%;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .receipt-item {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .receipt-money {
    text-align: left;
  }

  .receipt-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .receipt-actions .btn,
  .receipt-actions form {
    width: 100%;
  }

  .receipt-actions .btn {
    display: block;
  }
}
