/* Layout from saved Stitch tax-dashboard and sales-taxes exports.
   Tax rates, statutory deadlines and actions come only from existing APIs. */
.tv-stitch-tax{padding:24px;background:var(--tv-surface-muted,#f3f7fb);color:var(--tv-text,#122c46)}
.tv-stitch-tax .workspace-hero{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;margin-bottom:24px}
.tv-stitch-tax .workspace-hero h2{font-size:28px;letter-spacing:-.03em;margin:0 0 8px}
.tv-stitch-tax .workspace-hero p{color:var(--tv-text-muted,#4d6178);line-height:1.6;max-width:75ch}
.tv-stitch-tax .workspace-hero-actions,.tv-stitch-tax-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:flex-start}
.tv-stitch-tax .workspace-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:24px 0}
.tv-stitch-tax .workspace-stat{display:grid;gap:8px;padding:20px;background:white;border:1px solid var(--tv-border,#c7d4e2);border-radius:12px;min-width:0}
.tv-stitch-tax .workspace-stat strong{font-size:24px}
.tv-stitch-tax .workspace-stat :is(span,small){font-size:12px;color:var(--tv-text-muted,#4d6178);line-height:1.5}
.tv-stitch-tax-grid{display:grid;grid-template-columns:minmax(0,3fr) minmax(300px,2fr);gap:24px;align-items:start}
.tv-stitch-tax-grid > div{min-width:0;display:grid;gap:16px}
.tv-stitch-tax :is(.table-card,.tv-stitch-tax-inspection){background:white;border:1px solid var(--tv-border,#c7d4e2);border-radius:12px;min-width:0;overflow-x:auto}
.tv-stitch-tax-inspection{padding:20px}
.tv-stitch-tax-inspection h3{margin:0 0 12px;font-size:18px}
.tv-stitch-tax-inspection p{color:var(--tv-text-muted,#4d6178);line-height:1.6;overflow-wrap:anywhere}
.tv-stitch-tax .tv-inspector-section{border-top:1px solid var(--tv-border,#c7d4e2);padding:16px 0}
.tv-stitch-tax .tv-inspector-section h3{font-size:14px}
.tv-stitch-tax .info-line{display:flex;justify-content:space-between;gap:16px;padding:6px 0;overflow-wrap:anywhere}
.tv-stitch-tax :is(.filters,.filter-row){display:flex;flex-wrap:wrap;gap:12px;align-items:end;padding:16px;background:white;border:1px solid var(--tv-border,#c7d4e2);border-radius:12px}
.tv-stitch-tax :is(.filters,.filter-row) > label{display:grid;gap:6px;flex:1 1 130px;min-width:0}
.tv-stitch-tax table{min-width:650px}
.tv-stitch-tax .table-card h2{padding:16px;font-size:16px;margin:0}
.tv-stitch-tax td > div{display:grid;gap:6px}
.tv-stitch-tax tbody tr:hover{background:var(--tv-brand-soft,#e8f3fc)}
.tv-stitch-tax :is(.pagination,.register-pagination){display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.tv-stitch-tax .register-pager,.tv-stitch-tax .pager-actions{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;align-items:center}
.tv-stitch-tax.country-packs-route .workspace-body{display:grid;gap:24px}
.tv-stitch-tax.country-packs-route .panel{padding:20px;background:white;border:1px solid var(--tv-border,#c7d4e2);border-radius:12px}
.tv-stitch-tax .country-pack-drawer{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.tv-stitch-tax .country-pack-drawer .panel{padding:12px;border:0;border-top:1px solid var(--tv-border,#c7d4e2);border-radius:0;min-width:0;overflow-wrap:anywhere}
.tv-stitch-tax .country-pack-drawer .info-line{display:grid;gap:4px}
.tv-stitch-tax .tax-return-workbench .workspace-body{display:grid;gap:24px;align-items:start}
.tv-stitch-tax .tax-return-workbench .workspace-body > *{min-width:0;display:grid;gap:16px}
.tv-stitch-tax .tax-return-panel{padding:20px;background:white;border:1px solid var(--tv-border,#c7d4e2);border-radius:12px;min-width:0}
.tv-stitch-tax .tax-return-panel h3{font-size:15px;margin:0 0 12px}
.tv-stitch-tax .tax-return-info{display:flex;justify-content:space-between;gap:16px;padding:8px 0;overflow-wrap:anywhere;border-bottom:1px solid var(--tv-surface-muted,#f3f7fb)}
.tv-stitch-tax .tax-return-info strong{text-align:right}
.tv-stitch-tax .tax-return-context{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:16px;background:white;border:1px solid var(--tv-border,#c7d4e2);border-radius:12px}
.tv-stitch-tax .tax-return-context > div{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.tv-stitch-tax :is(.tax-return-pager,.pagination-controls){display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:16px}
.tv-stitch-tax .tax-return-drawer-body{display:grid;gap:16px}
.tv-stitch-tax .tax-return-register table{min-width:1050px}
.tv-stitch-tax .tax-return-register td{white-space:nowrap}
.tv-stitch-tax .tax-return-register td:first-child{min-width:150px}
.tv-stitch-tax .tax-withholding-register table{min-width:900px}
.tv-stitch-tax .tax-withholding-register td{white-space:nowrap}
.tv-stitch-withholding .tv-stitch-tax-inspection .tax-return-drawer-body{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:1150px){.tv-stitch-tax .tax-return-workbench .workspace-body{grid-template-columns:1fr}}
@media(max-width:700px){.tv-stitch-withholding .tv-stitch-tax-inspection .tax-return-drawer-body{grid-template-columns:1fr}}
@media(max-width:1100px){.tv-stitch-tax .country-pack-drawer{grid-template-columns:1fr}}
@media(max-width:1150px){.tv-stitch-tax-grid{grid-template-columns:1fr}}
@media(max-width:900px){.tv-stitch-tax .workspace-hero{flex-direction:column}.tv-stitch-tax .workspace-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:540px){.tv-stitch-tax{padding:12px}.tv-stitch-tax .workspace-stat{padding:12px}.tv-stitch-tax-inspection{padding:16px}}

/* Saved tax designs are individually owned by their current, authorized
   workbenches; long filing tables remain scrollable instead of being clipped. */
.tv-stitch-tax:is(
  [data-stitch-screen="50a9868785de468c833c34f105d9113c"], [data-stitch-route-screen="50a9868785de468c833c34f105d9113c"],
  [data-stitch-screen="4650307058b740c2bf382fd67aec3213"], [data-stitch-route-screen="4650307058b740c2bf382fd67aec3213"],
  [data-stitch-screen="90484346cada40419200647cbb58dc8d"], [data-stitch-route-screen="90484346cada40419200647cbb58dc8d"],
  [data-stitch-screen="b0eea21232c54b158a8568bb6b3b31c6"], [data-stitch-route-screen="b0eea21232c54b158a8568bb6b3b31c6"],
  [data-stitch-screen="43e195d6ce4a4726ad09f4dd58f3bd8a"], [data-stitch-route-screen="43e195d6ce4a4726ad09f4dd58f3bd8a"]
) > .tv-route-frame {
  display:grid;
  gap:18px;
  max-width:1600px;
  margin-inline:auto;
}
.tv-stitch-tax:is(
  [data-stitch-screen="50a9868785de468c833c34f105d9113c"], [data-stitch-route-screen="50a9868785de468c833c34f105d9113c"],
  [data-stitch-screen="90484346cada40419200647cbb58dc8d"], [data-stitch-route-screen="90484346cada40419200647cbb58dc8d"]
) .tv-stitch-tax-grid {gap:16px;}
.tv-stitch-tax:is(
  [data-stitch-screen="b0eea21232c54b158a8568bb6b3b31c6"], [data-stitch-route-screen="b0eea21232c54b158a8568bb6b3b31c6"],
  [data-stitch-screen="43e195d6ce4a4726ad09f4dd58f3bd8a"], [data-stitch-route-screen="43e195d6ce4a4726ad09f4dd58f3bd8a"]
) .tax-return-context {align-items:center;}
.tv-stitch-tax:is(
  [data-stitch-screen="b0eea21232c54b158a8568bb6b3b31c6"], [data-stitch-route-screen="b0eea21232c54b158a8568bb6b3b31c6"],
  [data-stitch-screen="43e195d6ce4a4726ad09f4dd58f3bd8a"], [data-stitch-route-screen="43e195d6ce4a4726ad09f4dd58f3bd8a"]
) .table-card {max-width:100%;overflow:auto;}
