.monthly-page-head { margin: 0 0 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.monthly-import { padding: 20px; margin-bottom: 24px; border: 1px solid var(--line-strong); border-radius: var(--radius-card); background: var(--surface); overflow-wrap: anywhere; }
.monthly-import h3, .monthly-import h4 { margin: 0 0 12px; }
.monthly-import-help { color: var(--muted); font-size: 14px; line-height: 1.6; }
.monthly-import form { display: grid; gap: 10px; }
.monthly-import input[type="file"] { width: 100%; max-width: 100%; min-width: 0; height: auto; padding: 10px; }
.monthly-import form > button { justify-self: start; }
.monthly-import-status { color: var(--ink-soft); }
.monthly-import-review { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 18px; }
.monthly-import details { margin-bottom: 12px; }
.monthly-import summary { cursor: pointer; min-height: 44px; padding-block: 10px; font-weight: 700; }
.monthly-import-identity { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0; line-height: 1.6; }
.monthly-import-identity input { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 3px; }
.monthly-import-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.monthly-eyebrow { color: var(--primary); font-size: 12px; font-weight: 800; }
.monthly-page-head h2 { margin: 4px 0 8px; font: 32px/1.4 var(--font-editorial); }
.monthly-card { --month-col: 110px; --frozen: 5; overflow: visible; margin-top: 0; margin-bottom: 28px; }
.monthly-card > .report-head { border-radius: var(--radius-card) var(--radius-card) 0 0; }
.monthly-card h3 { margin: 0 0 4px; color: var(--ink); font: 26px/1.3 var(--font-editorial); }
.monthly-filters { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(150px, .7fr) auto auto; align-items: end; gap: 12px; padding: 0 20px 14px; }
.monthly-filters label { display: grid; gap: 6px; }
.monthly-filters label span { color: var(--muted); font-size: 12px; font-weight: 700; }
.monthly-content .primary { min-height: 44px; padding: 8px 16px; border-radius: var(--radius-control); font-weight: 700; }
.monthly-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px 20px; }
.monthly-toolbar strong { color: var(--primary); margin-right: auto; }
.monthly-help, .monthly-status { margin: 0 20px 12px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.monthly-status { min-height: 18px; color: var(--ink-soft); }
.monthly-preview { padding: 4px 20px 16px; background: var(--surface-subtle); }
.monthly-preview h4 { margin: 14px 0; font-size: 16px; }
.monthly-preview ul { padding-left: 24px; overflow-wrap: anywhere; }
.monthly-preview .monthly-toolbar { padding: 8px 0; }
.monthly-check { margin: 0 20px 14px; }
.monthly-scroll { width: 100%; overflow: auto; max-height: none; overscroll-behavior-x: contain; overscroll-behavior-y: auto; scroll-padding-inline-start: calc(var(--month-col) * var(--frozen) + 6px); }
.monthly-scroll:focus-visible { outline-offset: -3px; }
.monthly-table { table-layout: fixed; width: calc(var(--month-col) * 36); }
.monthly-table col { width: var(--month-col); }
.monthly-table th, .monthly-table td { min-width: 0; width: var(--month-col); height: 50px; padding: 12px 10px; white-space: normal; overflow-wrap: anywhere; text-align: right; color: var(--ink); }
.monthly-table tbody td, .monthly-table tbody tr:nth-child(even) td { background: var(--canvas); }
.monthly-table tbody td:nth-child(3) { font-weight: 600; }
.monthly-table tbody tr:hover td { background: var(--surface-subtle); }
.monthly-table thead th { position: static; text-align: center; height: 56px; font-weight: 500; border-bottom-color: var(--line); }
.monthly-table :is(th, td):nth-child(-n+5) { position: sticky; left: calc(var(--month-col) * var(--col)); z-index: 2; }
.monthly-table :is(th, td):first-child, .monthly-table :is(th, td):nth-child(2) { text-align: left; }
.monthly-table :is(th, td):nth-child(5) { box-shadow: 8px 0 10px -10px rgba(36,56,84,.45); }
.monthly-table thead th:nth-child(-n+5) { background: var(--surface-subtle); text-align: center; }
.monthly-table tfoot :is(th, td) { position: static; color: var(--ink); font-weight: 600; background: var(--primary-soft); border-top: 1px solid var(--line-strong); border-bottom: 0; }
.monthly-table tfoot :is(th, td):nth-child(-n+5) { position: sticky; }
.monthly-table input { height: 38px; padding: 4px 6px; border-radius: 4px; font-size: 13px; text-align: right; scroll-margin-block: 68px; }
.monthly-table td:nth-child(-n+2) input { text-align: left; }
.monthly-table input[aria-invalid="true"] { border: 2px solid var(--danger); background: var(--danger-soft); }
.monthly-table input:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: -2px; }
.monthly-sticky { position: sticky; top: 0; height: 0; z-index: 8; pointer-events: none; visibility: hidden; }
.monthly-sticky.visible { visibility: visible; }
.monthly-header-clip { overflow: hidden; box-shadow: 0 3px 8px rgba(16,33,61,.12); }
.monthly-empty { margin: 0; padding: 28px 20px; color: var(--muted); text-align: center; }
@media (max-width: 1120px) {
  /* Five frozen monthly columns need the full tablet width. */
  body[data-h5-page="business"] .shell { padding: 16px 16px 30px; }
  body[data-h5-page="business"] .brand { position: static; width: auto; }
  body[data-h5-page="business"] .brand::before, body[data-h5-page="business"] .shell-breadcrumb { display: none; }
  body[data-h5-page="business"] .sidebar { display: flex; width: auto; padding: 8px; margin-bottom: 22px; overflow-x: auto; border: 0; }
  body[data-h5-page="business"] .sidebar-title { display: none; }
  .monthly-filters { grid-template-columns: 1fr 1fr; }
  body[data-h5-page="business"] .workspace { grid-template-columns: minmax(0, 1fr); }
  body[data-h5-page="business"] .sidebar { position: static; }
  body[data-h5-page="business"] .side-menu { display: flex; flex-wrap: nowrap; }
  body[data-h5-page="business"] .side-link { flex-shrink: 0; white-space: nowrap; }
  body[data-h5-page="business"] #adminNavigation { flex-shrink: 0; }
}
@media (max-width: 760px) {
  body[data-h5-page="business"] .side-menu { flex: 0 0 auto; flex-wrap: nowrap; }
  .monthly-card { --frozen: 1; }
  .monthly-table :is(th, td):nth-child(n+2):nth-child(-n+5) { position: static; }
  .monthly-table thead th:nth-child(n+2):nth-child(-n+5) { background: var(--surface-subtle); }
  .monthly-table :is(th, td):first-child { box-shadow: 8px 0 10px -10px rgba(36,56,84,.45); }
  .monthly-table :is(th, td):nth-child(5) { box-shadow: none; }
  .monthly-card h3 { font-size: 18px; }
  .monthly-filters, .monthly-toolbar { padding-inline: 14px; }
  .monthly-help, .monthly-status { margin-inline: 14px; }
  .monthly-table input { height: 44px; font-size: 16px; }
}
@media (max-width: 480px) { .monthly-filters { grid-template-columns: 1fr 1fr; } .monthly-filters label { grid-column: 1 / -1; } }
