.monthly-closing-panel {
  margin-bottom: 22px;
  padding: 26px;
}

.monthly-closing-header {
  margin-bottom: 20px;
}

.monthly-closing-status {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #aecdff;
  background: rgba(58, 134, 255, 0.08);
  font-size: 0.78rem;
  font-weight: 700;
}

.monthly-closing-status.is-closed {
  color: #90e8c5;
  border-color: rgba(0, 255, 156, 0.2);
  background: rgba(0, 255, 156, 0.07);
}

.monthly-closing-changed {
  margin-bottom: 18px;
  padding: 12px 14px;
  color: #ffe6a6;
  background: rgba(255, 209, 102, 0.07);
  border: 1px solid rgba(255, 209, 102, 0.2);
  border-radius: 12px;
  font-size: 0.82rem;
}

.monthly-closing-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}

.monthly-closing-summary article {
  padding: 18px;
  border-right: 1px solid var(--line);
}

.monthly-closing-summary article:first-child {
  padding-left: 0;
}

.monthly-closing-summary article:last-child {
  padding-right: 0;
  border-right: 0;
}

.monthly-closing-summary span,
.monthly-closing-summary strong {
  display: block;
}

.monthly-closing-summary span {
  color: var(--muted);
  font-size: 0.78rem;
}

.monthly-closing-summary strong {
  margin-top: 8px;
  font-size: 1.12rem;
}

.monthly-closing-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-top: 20px;
}

.monthly-closing-notes {
  flex: 1 1 420px;
}

.monthly-closing-notes input {
  width: 100%;
  padding: 11px 12px;
  color: var(--text);
  background: rgba(5, 12, 25, 0.78);
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
}

.monthly-closing-notes small {
  color: var(--muted);
}

.monthly-closing-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 880px) {
  .monthly-closing-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .monthly-closing-summary article:nth-child(2) {
    border-right: 0;
  }

  .monthly-closing-summary article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .monthly-closing-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .monthly-closing-notes {
    flex-basis: auto;
  }
}

@media (max-width: 520px) {
  .monthly-closing-summary {
    grid-template-columns: 1fr;
  }

  .monthly-closing-summary article {
    padding: 14px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .monthly-closing-actions > button {
    width: 100%;
  }
}
