/* [AUTOMATED_WORKER] Correct populated financial presentation; data and column controllers stay intact. */
.app-shell.tm-ui-full .page-intro {
  flex-wrap:wrap;
  align-items:flex-start;
}
.app-shell.tm-ui-full .page-intro > div:first-child {
  flex:1 1 24rem;
  min-width:min(100%,22rem);
  max-width:100%;
}
.app-shell.tm-ui-full .page-intro .intro-actions {
  flex:1 1 42rem;
  min-width:0;
  max-width:100%;
  justify-content:flex-start;
  flex-wrap:wrap;
}
.app-shell.tm-ui-full .panel-head {
  flex-wrap:wrap;
  align-items:flex-start;
}
.app-shell.tm-ui-full .panel-head > div:first-child {
  flex:1 1 22rem;
  min-width:0;
}
.app-shell.tm-ui-full .payroll-export-actions {
  flex:0 1 auto;
  min-width:0;
  max-width:100%;
  flex-wrap:wrap;
  justify-content:flex-start;
}
.app-shell.tm-ui-full :is(.btn.success,.button.success) {
  background:var(--green);
  color:var(--tm-ui-on-accent);
  border-color:var(--green);
  box-shadow:none;
}
.app-shell.tm-ui-full :is(.btn.success,.button.success):hover:not(:disabled) {
  color:var(--tm-ui-on-accent);
}
.app-shell.tm-ui-full :is(.btn,.button):disabled {
  opacity:1;
  color:var(--tm-ui-muted);
  background:var(--tm-ui-bg);
  border-color:var(--tm-ui-line-strong);
  border-style:dashed;
  box-shadow:none;
  cursor:not-allowed;
}
.app-shell.tm-ui-full .payroll-table {
  min-width:0;
  max-width:100%;
  overflow-x:auto;
  overscroll-behavior-x:contain;
}
.app-shell.tm-ui-full .payroll-table :is(th,td) {
  white-space:normal;
  overflow-wrap:normal;
  word-break:normal;
  min-width:10ch;
  vertical-align:top;
  padding:.875rem .75rem;
}
.app-shell.tm-ui-full .payroll-table td :where(*) {
  white-space:normal;
  overflow-wrap:normal;
  word-break:normal;
  max-width:100%;
}
/* Saved column widths remain preferences. Content minimums keep monetary
   values legible even when an earlier session saved a 72px column. */
.app-shell.tm-ui-full .payroll-table table {
  table-layout:auto !important;
}
.app-shell.tm-ui-full .payroll-table :is(th,td):first-child {
  min-width:22ch;
  overflow-wrap:anywhere;
}
.app-shell.tm-ui-full .payroll-table td:first-child :where(*) {
  overflow-wrap:anywhere;
}
.app-shell.tm-ui-full #payroll-results-view td:is(:nth-child(5),:nth-child(9),:nth-child(10),:nth-child(11),:nth-child(12),:nth-child(13),:nth-child(14)) > strong,
.app-shell.tm-ui-full #payroll-results-view td:is(:nth-child(6),:nth-child(7)),
.app-shell.tm-ui-full .payroll-table table:has(> thead > tr > th:last-child:nth-child(5)) td:nth-child(4) > strong {
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
}
.app-shell.tm-ui-full .payroll-table td :is(strong,small) {
  display:block;
  line-height:1.5;
}
.app-shell.tm-ui-full .payroll-table td small {
  margin-top:.375rem;
  font-size:.875rem;
  color:var(--tm-ui-muted);
}
.app-shell.tm-ui-full .payroll-table th {
  font-size:.875rem;
  line-height:1.45;
}
.app-shell.tm-ui-full.tm-ui-full-large .payroll-table :is(th,td,td small) {
  font-size:1.125rem;
}
.app-shell.tm-ui-full .payroll-tonnage-control {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  align-items:start;
  gap:1rem;
  background:var(--tm-ui-surface);
  color:var(--tm-ui-text);
  border-color:var(--tm-ui-line);
}
.app-shell.tm-ui-full :is(.payroll-tonnage-heading,.payroll-tonnage-site) strong {
  color:var(--tm-ui-text);
  font-size:1rem;
  line-height:1.5;
}
.app-shell.tm-ui-full :is(.payroll-tonnage-heading,.payroll-tonnage-site) small {
  color:var(--tm-ui-muted);
  font-size:.875rem;
  line-height:1.6;
  white-space:normal;
}
.app-shell.tm-ui-full .payroll-tonnage-heading { max-width:75ch; }
.app-shell.tm-ui-full :is(.payroll-period-tools,.payroll-tonnage-form) {
  display:flex;
  flex-wrap:wrap;
  gap:.75rem;
  min-width:0;
}
.app-shell.tm-ui-full :is(.payroll-period-tools,.payroll-tonnage-form) label {
  min-width:0;
  font-size:.875rem;
  color:var(--tm-ui-muted);
}
.app-shell.tm-ui-full .payroll-tonnage-sites {
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:1rem;
}
.app-shell.tm-ui-full .payroll-tonnage-site {
  background:var(--tm-ui-bg);
  color:var(--tm-ui-text);
  border-color:var(--tm-ui-line);
}
.app-shell.tm-ui-full .payroll-tonnage-site :is(input,.btn) { flex:1 1 9rem; }
.app-shell.tm-ui-full .payroll-tonnage-form label { flex:1 1 12rem; }
.app-shell.tm-ui-full .payroll-tonnage-site input { width:100%; }
.app-shell.tm-ui-full :is(.payroll-site-filter,.payroll-view-controls) {
  min-width:0;
  background:var(--tm-ui-bg);
  color:var(--tm-ui-text);
  border-color:var(--tm-ui-line);
}
.app-shell.tm-ui-full .payroll-site-filter > div:first-child strong {
  font-size:1rem;
  color:var(--tm-ui-text);
}
.app-shell.tm-ui-full .payroll-site-filter > div:first-child small {
  font-size:.875rem;
  line-height:1.6;
  color:var(--tm-ui-muted);
}
.app-shell.tm-ui-full :is(.payroll-site-filter-options,.payroll-view-mode) button {
  min-width:0;
  background:var(--tm-ui-surface);
  color:var(--tm-ui-text);
  border-color:var(--tm-ui-line-strong);
}
.app-shell.tm-ui-full :is(.payroll-site-filter-options,.payroll-view-mode) button.active {
  background:var(--tm-ui-soft);
  color:var(--tm-ui-text);
  border-color:var(--tm-ui-accent);
  box-shadow:none;
}
.app-shell.tm-ui-full :is(.payroll-site-filter-options,.payroll-view-mode) button > strong {
  color:inherit;
  font-size:.9375rem;
  line-height:1.5;
}
.app-shell.tm-ui-full :is(.payroll-site-filter-options,.payroll-view-mode) button > small {
  color:inherit;
  font-size:.875rem;
  line-height:1.5;
}
.app-shell.tm-ui-full :is(.payroll-site-filter-options,.payroll-view-mode) button > span {
  color:var(--tm-ui-accent);
  background:var(--tm-ui-soft);
}
/* The accountant renders these as static summaries, not filter buttons. */
.app-shell.tm-ui-full .payroll-site-filter-options > div.active {
  display:grid;
  grid-template-columns:2rem minmax(0,1fr);
  column-gap:.75rem;
  row-gap:.25rem;
  flex:1 1 12rem;
  min-width:0;
  padding:.875rem;
  border:1px solid var(--tm-ui-line-strong);
  border-radius:.5rem;
  background:var(--tm-ui-surface);
  color:var(--tm-ui-text);
}
.app-shell.tm-ui-full .payroll-site-filter-options > div.active > span {
  display:grid;
  place-items:center;
  grid-row:1 / span 2;
  width:2rem;
  height:2rem;
  background:var(--tm-ui-soft);
  color:var(--tm-ui-accent);
  border-radius:.375rem;
  font-size:.75rem;
}
.app-shell.tm-ui-full .payroll-site-filter-options > div.active > :is(strong,small) {
  display:block;
  margin:0;
  color:var(--tm-ui-text);
  font-size:.9375rem;
  line-height:1.5;
  white-space:normal;
  overflow-wrap:normal;
}
.app-shell.tm-ui-full.tm-ui-full-large :is(.payroll-tonnage-heading,.payroll-tonnage-site,.payroll-site-filter,.payroll-view-mode) :is(strong,small,label) {
  font-size:1.125rem;
}
@media (max-width:1100px) {
  .app-shell.tm-ui-full .payroll-site-filter { grid-template-columns:minmax(0,1fr); }
}
@media (max-width:760px) {
  .app-shell.tm-ui-full .page-intro > div:first-child,
  .app-shell.tm-ui-full .page-intro .intro-actions {
    flex:0 1 auto;
    min-width:0;
    width:100%;
  }
  .app-shell.tm-ui-full .panel-head > div:first-child { flex:1 1 100%; }
  .app-shell.tm-ui-full .payroll-tonnage-sites { grid-template-columns:minmax(0,1fr); }
  .app-shell.tm-ui-full .payroll-export-actions { width:100%; }
  .app-shell.tm-ui-full .payroll-period-tools > :is(.btn,label) {
    flex:0 1 auto;
    width:100%;
    min-height:3rem;
  }
}
