/* Google Stitch reports e9237830, sales f444de93, purchasing 21b0313a.
   Source billing remains distinct from posted accounting and cash settlement. */
.tv-stitch-reports .workspace-hero {display:flex;justify-content:space-between;gap:24px;align-items:start;margin-bottom:24px;}
.tv-stitch-reports .workspace-hero h2 {font-size:28px;letter-spacing:-.03em;margin:0 0 8px;}
.tv-stitch-reports .workspace-hero p {color:var(--tv-text-muted,#4d6178);line-height:1.6;max-width:78ch;margin:8px 0;}
.tv-stitch-reports .tv-route-context {font-size:12px;color:var(--tv-text-muted,#4d6178);}
.tv-stitch-reports .workspace-stats {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px;}
.tv-stitch-reports .workspace-stat {display:grid;gap:8px;background:#fff;padding:20px;border:1px solid var(--tv-border,#c7d4e2);border-radius:12px;min-width:0;}
.tv-stitch-reports .workspace-stat strong {font-size:23px;letter-spacing:-.02em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;}
.tv-stitch-reports .workspace-stat :is(span,small) {color:var(--tv-text-muted,#4d6178);font-size:12px;line-height:1.5;}
.tv-stitch-reports .tv-route-summary-toggle {grid-column:1/-1;justify-self:end;}
.tv-stitch-reports label {display:grid;gap:6px;min-width:0;font-size:12px;color:var(--tv-text-muted,#4d6178);}
.tv-stitch-reports td>div {display:grid;gap:5px;}
.tv-stitch-reports td small {color:var(--tv-text-muted,#4d6178);}
.tv-stitch-reports summary {padding:12px 0;cursor:pointer;}
.tv-stitch-reports summary span {font-weight:400;color:var(--tv-text-muted,#4d6178);margin-left:12px;}
.tv-stitch-reports .financial-report-family-nav {display:flex;gap:8px;flex-wrap:wrap;padding:12px 0;}
.tv-stitch-reports {
  padding: 24px;
  min-width: 0;
  color: var(--tv-text,#122c46);
  background: #f5f7fa;
}
.tv-stitch-reports .workspace-main,
.tv-stitch-reports .sales-register-main,
.tv-stitch-reports .financial-statement-main,
.tv-stitch-reports .sales-analysis-main,
.tv-stitch-reports .commercial-analysis-main {
  display: grid;
  gap: 24px;
  min-width: 0;
}
.tv-stitch-reports .financial-statement-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.tv-stitch-reports .financial-statement-tabs button {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  padding: 20px;
  border: 1px solid var(--tv-border,#c7d4e2);
  border-radius: 12px;
  background: #fff;
  color: var(--tv-text,#122c46);
  min-height: 128px;
}
.tv-stitch-reports .financial-statement-tabs button strong {
  font-size: 16px;
}
.tv-stitch-reports .financial-statement-tabs button span {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--tv-text-muted,#4d6178);
}
.tv-stitch-reports .financial-statement-tabs button.active {
  border-color: var(--tv-brand,#006cba);
  box-shadow: inset 0 3px var(--tv-brand,#006cba);
  background: #f0f7ff;
}
.tv-stitch-reports .financial-report-interpretation,
.tv-stitch-reports .sales-analysis-control-state,
.tv-stitch-reports .commercial-analysis-control-state {
  padding: 16px 20px;
  border: 1px solid var(--tv-border,#c7d4e2);
  border-radius: 10px;
  background: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.tv-stitch-reports .financial-report-interpretation p {
  margin: 0;
  line-height: 1.55;
}
.tv-stitch-reports .financial-statement-filters,
.tv-stitch-reports .sales-register-filters,
.tv-stitch-reports .sales-analysis-filters,
.tv-stitch-reports .commercial-analysis-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--tv-border,#c7d4e2);
  border-radius: 10px;
}
.tv-stitch-reports .financial-statement-register,
.tv-stitch-reports .sales-register-table,
.tv-stitch-reports .sales-analysis-register,
.tv-stitch-reports .commercial-analysis-register {
  min-width: 0;
  overflow-x: auto;
  background: white;
  border: 1px solid var(--tv-border,#c7d4e2);
  border-radius: 12px;
}
.tv-stitch-reports table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}
.tv-stitch-reports th {
  background: #f4f6f9;
  color: var(--tv-text-muted,#4d6178);
  font-size: 12px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-align: left;
  padding: 14px 16px;
}
.tv-stitch-reports td {
  padding: 16px;
  border-bottom: 1px solid var(--tv-border,#c7d4e2);
  vertical-align: top;
  font-variant-numeric: tabular-nums;
}
.tv-stitch-reports tbody tr:hover {
  background: #f2f7fc;
}
.tv-stitch-reports .ledger-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px;
}
.tv-stitch-report-inspection {
  border: 1px solid var(--tv-border,#c7d4e2);
  border-top: 3px solid var(--tv-brand,#006cba);
  border-radius: 12px;
  background: #fff;
  padding: 24px;
  min-width: 0;
}
.tv-stitch-report-inspection > header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.tv-stitch-report-inspection h3 {
  margin: 0 0 8px;
  font-size: 17px;
}
.tv-stitch-report-inspection p {
  color: var(--tv-text-muted,#4d6178);
  line-height: 1.5;
}
.tv-stitch-report-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.tv-stitch-report-inspection .detail-shell {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.tv-stitch-report-inspection .panel {
  padding: 16px;
  border: 1px solid var(--tv-border,#c7d4e2);
  border-radius: 8px;
  min-width: 0;
}
.tv-stitch-report-inspection .info-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid #eef1f5;
  overflow-wrap: anywhere;
}
@media (max-width: 1150px) {
  .tv-stitch-reports .workspace-hero {flex-direction:column;}
  .tv-stitch-reports .financial-statement-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .tv-stitch-reports .workspace-stats {grid-template-columns:repeat(2,minmax(0,1fr));}
  .tv-stitch-reports {
    padding: 12px;
  }
  .tv-stitch-reports .financial-statement-tabs,
  .tv-stitch-report-inspection .detail-shell {
    grid-template-columns: 1fr;
  }
  .tv-stitch-report-inspection {
    padding: 16px;
  }
  .tv-stitch-reports .ledger-pagination {
    flex-wrap: wrap;
  }
}
.tv-stitch-reports:is(
  [data-stitch-screen="e92378300f05400bb76475b30a5f61ad"], [data-stitch-route-screen="e92378300f05400bb76475b30a5f61ad"],
  [data-stitch-screen="f444de93172d4162ab6bd7e8254d48de"], [data-stitch-route-screen="f444de93172d4162ab6bd7e8254d48de"],
  [data-stitch-screen="21b0313ad1c841f283fc06248edf825d"], [data-stitch-route-screen="21b0313ad1c841f283fc06248edf825d"],
  [data-stitch-screen="bf790dd8557d4680bf1438f51a1aeada"], [data-stitch-route-screen="bf790dd8557d4680bf1438f51a1aeada"]
) > .tv-route-frame {display:grid;gap:18px;max-width:1600px;margin-inline:auto;}
.tv-stitch-reports:is(
  [data-stitch-screen="e92378300f05400bb76475b30a5f61ad"], [data-stitch-route-screen="e92378300f05400bb76475b30a5f61ad"],
  [data-stitch-screen="f444de93172d4162ab6bd7e8254d48de"], [data-stitch-route-screen="f444de93172d4162ab6bd7e8254d48de"],
  [data-stitch-screen="21b0313ad1c841f283fc06248edf825d"], [data-stitch-route-screen="21b0313ad1c841f283fc06248edf825d"],
  [data-stitch-screen="bf790dd8557d4680bf1438f51a1aeada"], [data-stitch-route-screen="bf790dd8557d4680bf1438f51a1aeada"]
) .workspace-stats {gap:12px;margin-block:0;}
