.month-sales-reporting { min-width: 0; color: #252b2b; }
.month-sales-reporting * { box-sizing: border-box; letter-spacing: 0; }
.month-sales-reporting [hidden] { display: none !important; }
.ms-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-bottom: 20px; }
.ms-toolbar h3 { margin: 0 0 6px; font-size: 18px; overflow-wrap: anywhere; }
.ms-meta, .ms-table small { color: #66726c; font-size: 12px; }
.ms-mode { position: relative; display: grid; gap: 6px; font-size: 13px; min-width: 0; max-width: 100%; }
.ms-mode > strong { display: flex; align-items: center; min-height: 44px; font-size: 14px; overflow-wrap: anywhere; }
.ms-select-wrap { display: block; position: relative; min-width: 0; width: 100%; }
.month-sales-reporting select, .reporting-top-controls select { appearance: none; display: block; width: 100%; max-width: 100%; min-height: 44px!important; padding: 8px 44px 8px 12px!important; border: 1px solid #ccd3ce; border-radius: 4px; background: #fff; color: #252b2b; font: inherit; font-size: 14px; line-height: 20px; }
.ms-select-wrap::after, .ms-mode:has(> select)::after, .reporting-top-controls > label:has(> select)::after { content: ''; position: absolute; width: 7px; height: 7px; right: 17px; border-right: 2px solid #53675d; border-bottom: 2px solid #53675d; transform: rotate(45deg); pointer-events: none; }
.ms-select-wrap::after { top: calc(50% - 6px); }
.ms-mode:has(> select)::after, .reporting-top-controls > label:has(> select)::after { bottom: 20px; }
.month-sales-reporting select:focus-visible, .reporting-top-controls select:focus-visible, .reporting-top-controls input:focus-visible { outline: 2px solid #59866a!important; outline-offset: 2px; }
.month-sales-reporting select:disabled, .reporting-top-controls select:disabled { opacity: .65; cursor: wait; }
.ms-summary { display: flex; flex-wrap: wrap; gap: 24px; padding: 18px 0; border-top: 1px solid #ccd3ce; border-bottom: 1px solid #ccd3ce; margin-bottom: 18px; }
.ms-summary > div { display: grid; grid-template-rows: 32px minmax(24px,auto) 18px; align-content: start; gap: 6px; min-width: 0; }
.ms-summary span { color: #66726c; font-size: 12px; }
.ms-summary strong { font-size: 18px; line-height: 24px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; text-align: right; }
.ms-summary-note { display: block; min-height: 18px; color: #53675d; font-size: 12px; line-height: 18px; text-align: right; }
.ms-table-wrap { overflow-x: auto; max-width: 100%; container-type: inline-size; container-name: month-board; }
.ms-table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 20px; font-variant-numeric: tabular-nums; }
.ms-month-table { table-layout: fixed; }
.ms-month-table col:first-child { width: 13%!important; }
.ms-month-table col:nth-child(3) { width: 17%!important; }
.ms-month-table col:nth-child(7), .ms-month-table col:nth-child(8) { width: 9%!important; }
.ms-table th, .ms-table td { padding: 8px; font-size: 13px!important; line-height: 20px; text-align: right; vertical-align: middle; border-bottom: 1px solid #dfe3df; overflow-wrap: anywhere; }
.ms-table th:first-child, .ms-table th:nth-child(4), .ms-table th:last-child, .ms-table td:last-child, .ms-branch-table td:nth-child(3) { text-align: left; }
.ms-table thead th { background: #f1f3f1; font-size: 12px!important; }
.ms-table small { display: block; margin-top: 2px; font-size: 11px; line-height: 16px; }
.ms-table .ms-missing-reason { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; word-break: normal; }
.ms-table select { margin: 0; width: 100%; padding-left: 10px!important; padding-right: 40px!important; }
.ms-table .ms-day-source { text-align: left; }
.ms-table .ms-effective { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; word-break: normal; min-height: 16px; }
.ms-source-value { display: flex; align-items: center; min-height: 44px; font-size: 13px; line-height: 20px; }
.ms-submission { display: inline-block; font-size: 10px; font-weight: 600; line-height: 16px; color: #53675d; }
.ms-submission[data-status=CLOSED], .ms-submission[data-status=VERIFIED] { color: #265e42; }
.ms-selected { font-weight: 700; }
.ms-selected small { font-weight: 400; }
.ms-source { display: inline-block; padding: 4px 6px; border-radius: 3px; font-size: 10px; font-weight: 700; }
.ms-source.staff { color: #265e42; background: #e8f2eb; }
.ms-source.manual { color: #6a3d6d; background: #f1eaf1; }
.ms-source.mixed { color: #4d566d; background: #edf0f7; }
.ms-source.closed { color: #53675d; background: #f1f3f1; }
.ms-submission[data-status=NOT_REQUIRED] { color: #66726c; }
.ms-expected-unavailable { font-weight: 400; color: #66726c; }
.ms-expected-unavailable small { white-space: normal; overflow-wrap: anywhere; }
.ms-expected-partial { color: #8c5a26; }
.ms-daily-expected { display: grid; gap: 6px; margin-bottom: 16px; font-size: 13px; }
.ms-daily-expected strong { font-size: 18px; }
.ms-close-confirm { width: 480px; max-width: calc(100% - 32px); padding: 24px; border: 1px solid #ccd3ce; border-radius: 6px; color: #252b2b; background: #fff; }
.ms-close-confirm::backdrop { background: #0006; }
.ms-close-confirm h3 { margin: 0 0 16px; font-size: 18px; }
.ms-close-confirm p { margin: 0 0 20px; line-height: 1.5; }
.ms-close-confirm > div { display: flex; justify-content: end; gap: 12px; flex-wrap: wrap; }
.ms-close-confirm button { min-height: 44px; }
.ms-missing { display: inline-flex; flex-wrap: wrap; gap: 5px; font-weight: 400; }
.ms-missing > span { font-size: inherit; font-weight: 400; }
.ms-month-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
.ms-month-metrics > div { justify-items: center; text-align: center; min-height: 86px; }
.ms-month-metrics > div > * { width: 100%; text-align: center; }
.ms-month-metrics .money, .ms-month-metrics .num { text-align: center; }
.ms-overview-controls { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-bottom: 20px; }
.ms-overview-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; padding: 18px 0; border-top: 1px solid #ccd3ce; border-bottom: 1px solid #ccd3ce; }
.ms-overview-metrics > div { display: grid; gap: 8px; min-width: 0; }
.ms-overview-metrics strong { font-size: 21px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.ms-overview-metrics > div > span:first-child, .ms-overview-metrics small { font-size: 12px; color: #66726c; }
.ms-overview-metrics .ms-source { justify-self: start; }
.ms-section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 26px 0 14px; }
.ms-section-title h3 { font-size: 16px; margin: 0; }
.ms-branch-table { min-width: 600px; }
.ms-payment-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.ms-payment-grid > div { display: grid; gap: 8px; padding: 12px 0; border-bottom: 1px solid #dfe3df; }
.ms-payment-grid span { font-size: 12px; color: #66726c; }
.ms-payment-grid strong { font-size: 16px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.ms-daily-comparison { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; padding: 16px 0; border-top: 1px solid #ccd3ce; }
.ms-daily-comparison > div { display: grid; gap: 8px; }
.ms-daily-comparison span, .ms-daily-comparison small { font-size: 12px; color: #66726c; }
.ms-daily-comparison strong { font-size: 18px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.ms-daily-source-control { width: 240px; margin-bottom: 18px; }
.ms-used { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 18px 0; margin-bottom: 28px; border-bottom: 1px solid #ccd3ce; }
.ms-used > span:first-child { width: 100%; font-size: 11px; color: #66726c; }
.ms-used > strong { font-size: 23px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tbc-app-topbar .reporting-top-controls { display: grid; width: 620px; max-width: 100%; align-items: end; grid-template-columns: minmax(180px,1fr) minmax(170px,1fr) minmax(210px,1.15fr); gap: 12px; overflow: visible; }
.reporting-top-controls label { position: relative; display: grid; gap: 6px; font-size: 12px; font-weight: 400; line-height: 16px; min-width: 0; letter-spacing: 0; }
.reporting-top-controls input, .reporting-top-controls select { box-sizing: border-box; display: block; width: 100%; max-width: 100%; height: 44px!important; min-height: 44px!important; border: 1px solid #ccd3ce; border-radius: 4px; background: #fff; color: #252b2b; font-size: 14px; line-height: 20px; }
.reporting-top-controls input { padding: 8px 12px!important; }
.reporting-top-controls input::-webkit-calendar-picker-indicator { width: 18px; height: 18px; padding: 0; margin-left: 12px; margin-right: 4px; }
.tbc-app-topbar:has(.reporting-top-controls) .tbc-app-topbar-context { max-width: 100%; }
.tbc-app-topbar:has(.reporting-top-controls) .tbc-app-topbar-actions { align-self: end; align-items: center; --header-action-size: 44px; }
@media(min-width:1200px) { .tbc-app-topbar:has(.reporting-top-controls) .tbc-app-topbar-inner { grid-template-columns: minmax(100px,1fr) minmax(0,620px) auto; align-items: end; } }
@media(min-width:769px) and (max-width:1199px) { .tbc-app-topbar .reporting-top-controls { width: 100%; grid-template-columns: minmax(0,1fr) minmax(0,1fr); } .reporting-top-controls > [data-sales-source-control] { grid-column: 1 / -1; } }
.ms-missing { color: #8c5a26; }
.ms-error { color: #9d3a36; }
.ms-audit { margin-top: 24px; font-size: 13px; }
.ms-audit summary { cursor: pointer; min-height: 44px; padding: 12px 0; }
.ms-audit > div { display: grid; gap: 6px; padding: 12px 0; border-bottom: 1px solid #dfe3df; overflow-wrap: anywhere; }
.ms-audit time { color: #66726c; font-size: 12px; }
.staff-monthly-evidence { margin-top: 28px; }
.staff-monthly-evidence > summary { min-height: 44px; padding: 12px 0; cursor: pointer; font-size: 13px; }
@container month-board (max-width:930px) {
  .ms-month-table, .ms-month-table tbody { display: block; }
  .ms-month-table colgroup, .ms-month-table thead { display: none; }
  .ms-month-table tr { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 18px; padding: 16px 0; border-bottom: 1px solid #ccd3ce; }
  .ms-month-table th, .ms-month-table td { display: block; padding: 0; text-align: right; border: 0; min-width: 0; }
  .ms-month-table th { grid-column: 1 / -1; text-align: left; font-size: 14px; }
  .ms-month-table td::before { content: attr(data-label); display: block; margin-bottom: 4px; font-size: 11px; font-weight: 400; color: #66726c; text-align: left; }
  .ms-month-table .ms-selected { grid-column: 1 / -1; grid-row: 2; }
  .ms-month-table .ms-day-source { grid-column: 1 / -1; grid-row: 3; text-align: left; }
  .ms-month-table td:last-child { text-align: left; }
}
@media(max-width:768px) {
  .ms-overview-controls { grid-template-columns: minmax(0,1fr); }
  .ms-overview-metrics { grid-template-columns: minmax(0,1fr); }
  .ms-month-metrics, .ms-payment-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ms-daily-comparison { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .tbc-app-topbar .reporting-top-controls { grid-template-columns: minmax(0,1fr) !important; }
  .tbc-app-topbar .reporting-top-controls > * { grid-column: 1 !important; width: 100%; min-width: 0; }
  .reporting-top-controls input, .reporting-top-controls select, .month-sales-reporting select { font-size: 16px; }
  .ms-mode { width: 100%; }
  .ms-summary { gap: 18px; }
  .ms-table-wrap { overflow: visible; }
  .ms-table { display: block; min-width: 0; }
  .ms-table colgroup, .ms-table thead { display: none; }
  .ms-table tbody { display: block; }
  .ms-table tr { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 18px; padding: 16px 0; border-bottom: 1px solid #ccd3ce; }
  .ms-table th, .ms-table td { display: block; padding: 0; text-align: right; border: 0; min-width: 0; overflow-wrap: anywhere; }
  .ms-table th { grid-column: 1 / -1; font-size: 15px; }
  .ms-table td::before { content: attr(data-label); display: block; margin-bottom: 4px; font-size: 11px; font-weight: 400; color: #66726c; text-align: left; }
  .ms-month-table .ms-selected { grid-column: 1 / -1; grid-row: 2; }
  .ms-month-table .ms-day-source { grid-column: 1 / -1; grid-row: 3; text-align: left; }
  .ms-table td:last-child { text-align: left; }
  .ms-table select { width: 100%; }
}
