/* Wint Income Report panel */

.wir-panel {
  background: #fff;
  border: 1px solid #ebe5de;
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(18, 50, 79, .06);
  margin: 20px 0 28px;
  overflow: hidden;
}

.wir-head {
  padding: 20px 22px;
  border-bottom: 1px solid #ebe5de;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}

.wir-eyebrow {
  color: #9a9d99;
  font-size: 12px;
  letter-spacing: .12em;
  font-weight: 950;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.wir-title {
  color: #102f4e;
  font-size: 24px;
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -.035em;
}

.wir-subtitle {
  color: #858b91;
  margin-top: 7px;
  font-size: 14px;
  line-height: 1.45;
  max-width: 860px;
}

.wir-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #dff6ff;
  color: #087db8;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.wir-error {
  margin: 18px 22px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #ffc7d5;
  border-left: 5px solid #dc3b62;
  background: #ffe4ec;
  color: #991b1b;
  font-weight: 800;
}

.wir-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid #ebe5de;
}

.wir-metric {
  border: 1px solid #ebe5de;
  border-radius: 14px;
  padding: 15px;
  background: #fbfaf8;
}

.wir-metric-label {
  color: #8f928f;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 5px;
}

.wir-metric-value {
  color: #102f4e;
  font-size: 25px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -.04em;
}

.wir-body {
  padding: 18px 22px 22px;
}

.wir-table-wrap {
  overflow-x: auto;
  border: 1px solid #ebe5de;
  border-radius: 14px;
}

.wir-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  background: #fff;
}

.wir-table th {
  text-align: left;
  color: #8f928f;
  font-size: 12px;
  font-weight: 950;
  padding: 13px 14px;
  border-bottom: 2px solid #29b6f6;
  background: #fff;
}

.wir-table td {
  color: #26384a;
  font-size: 13px;
  font-weight: 750;
  padding: 14px;
  border-bottom: 1px solid #ebe5de;
  vertical-align: top;
}

.wir-table tr:last-child td {
  border-bottom: 0;
}

.wir-customer {
  color: #102f4e;
  font-size: 14px;
  font-weight: 950;
}

.wir-meta {
  color: #7d8791;
  font-size: 12px;
  margin-top: 4px;
  line-height: 1.35;
}

.wir-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 9px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.wir-status.paid {
  background: #defbea;
  color: #10844d;
}

.wir-status.unpaid {
  background: #fff4cf;
  color: #8a6200;
}

.wir-status.review {
  background: #ffe4ec;
  color: #dc3b62;
}

.wir-note {
  margin-top: 14px;
  border-left: 5px solid #29b6f6;
  background: #f8fcfe;
  border-radius: 12px;
  padding: 13px 15px;
  color: #26384a;
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .wir-head {
    display: block;
  }

  .wir-head .wir-badge {
    margin-top: 12px;
  }

  .wir-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .wir-metrics {
    grid-template-columns: 1fr;
  }
}
