.monthly-dialog { width: 1080px; max-width: calc(100vw - 20px); background: #fff; color: #202522; letter-spacing: 0; }
.monthly-dialog .dialog-head { background: #29342f; }
.monthly-dialog .dialog-body { min-width: 0; }
.monthly-toolbar { display: grid; grid-template-columns: 180px minmax(180px, 1fr) auto; gap: 12px; align-items: end; }
.monthly-toolbar label { display: grid; gap: 6px; font-size: 13px; }
.monthly-dialog input[type=month] { width: 100%; min-width: 0; min-height: 44px; box-sizing: border-box; }
.monthly-meta { color: #555f59; font-size: 13px; line-height: 1.6; margin: 14px 0; overflow-wrap: anywhere; }
.monthly-tools { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 280px); align-items: center; gap: 12px; margin-bottom: 12px; }
.monthly-tools input[type=search] { max-width: 280px; min-width: 0; }
.monthly-check { display: flex; align-items: center; gap: 8px; min-height: 44px; white-space: nowrap; }
.monthly-dialog input[type=checkbox] { width: 18px; height: 18px; min-height: 0; margin: 0; accent-color: #315747; }
.monthly-table-wrap { width: 100%; overflow: auto; border-top: 1px solid #b7c0ba; border-bottom: 1px solid #b7c0ba; }
.monthly-table { width: 100%; min-width: 790px; border-collapse: collapse; font-size: 13px; }
.monthly-table th { background: #f1f3f2; color: #303b35; font-weight: 600; text-align: left; padding: 12px 10px; white-space: nowrap; }
.monthly-table td { padding: 6px 10px; border-bottom: 1px solid #e1e5e2; vertical-align: middle; height: 48px; }
.monthly-table tr:last-child td { border-bottom: 0; }
.monthly-table td:nth-child(2) { min-width: 160px; max-width: 280px; overflow-wrap: anywhere; }
.monthly-table .monthly-number { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.monthly-table .table-button { min-height: 44px; white-space: nowrap; }
.monthly-inactive { color: #6e736f; font-size: 12px; }
.monthly-output { margin-top: 24px; }
.monthly-output-head { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.monthly-output h4 { margin: 0; font-size: 15px; }
#monthly-summary { font-size: 13px; font-variant-numeric: tabular-nums; }
.monthly-file-table { min-width: 650px; }
.monthly-actions { white-space: nowrap; }
.monthly-actions button + button { margin-left: 8px; }
.monthly-footer, .monthly-detail-footer { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: 16px; }
.monthly-footer { position: sticky; bottom: -14px; background: #fff; padding: 12px 0; border-top: 1px solid #d1d8d3; }
.monthly-footer button { min-height: 44px; }
.monthly-empty { color: #657069; padding: 18px 0; margin: 0; }
.monthly-lines { min-width: 1400px; }
.monthly-lines td { overflow-wrap: anywhere; max-width: 240px; }
.monthly-dialog .form-error:empty { display: none; }
@media (max-width: 600px) {
  .monthly-toolbar { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .monthly-toolbar button { justify-self: start; min-height: 44px; }
  .monthly-tools { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .monthly-tools input[type=search] { width: 100%; max-width: none; }
  .monthly-footer { bottom: -12px; }
  .monthly-table td { height: 52px; }
  .monthly-detail-footer { align-items: flex-start; }
}
