/* Saved Stitch expense-claims, mileage-expenses and direct-expenses exports.
   Visual composition only; original authorized workflow handlers remain owners. */
.tv-stitch-expenses {padding:24px;background:var(--tv-surface-muted,#f3f7fb);border-radius:12px;}
.tv-stitch-expenses .workspace-hero {display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:24px;}
.tv-stitch-expenses .workspace-hero h2 {font-size:28px;letter-spacing:-.035em;margin:0 0 8px;}
.tv-stitch-expenses .workspace-hero p {font-size:14px;color:var(--tv-text-muted,#4d6178);line-height:1.6;margin:0;max-width:85ch;}
.tv-stitch-expenses .workspace-hero-actions {display:flex;gap:8px;flex-wrap:wrap;}
.tv-stitch-expenses .tv-route-context {display:flex;gap:8px;flex-wrap:wrap;font-size:12px;color:var(--tv-text-muted,#4d6178);margin-top:12px;}
.tv-stitch-expenses .tv-route-summary-toggle {display:none;}
.tv-stitch-expenses .workspace-stats {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:24px 0;}
.tv-stitch-expenses .workspace-stat {padding:20px;background:#fff;border:1px solid var(--tv-border,#c7d4e2);border-radius:12px;display:grid;gap:10px;min-width:0;}
.tv-stitch-expenses .workspace-stat strong {font-size:24px;font-variant-numeric:tabular-nums;}
.tv-stitch-expenses .workspace-stat :is(span,small) {font-size:12px;color:var(--tv-text-muted,#4d6178);}
.tv-stitch-expenses :is(.expense-claim-register-stack,.tv-route-main) {display:grid;gap:20px;min-width:0;}
.tv-stitch-expenses :is(.expense-claim-filters,.filter-row) {display:flex;align-items:end;gap:12px;flex-wrap:wrap;padding:16px;border:1px solid var(--tv-border,#c7d4e2);border-radius:12px;background:#fff;}
.tv-stitch-expenses :is(.expense-claim-filters,.filter-row) > label {display:grid;gap:8px;flex:1;min-width:150px;}
.tv-stitch-expenses :is(.expense-claim-filters,.filter-row) > label:first-child {flex:2;}
.tv-stitch-expenses :is(.expense-claim-filters,.filter-row) :is(input,select) {width:100%;}
.tv-stitch-expenses .table-card {overflow-x:auto;border:1px solid var(--tv-border,#c7d4e2);border-radius:12px;background:#fff;min-width:0;}
.tv-stitch-expenses table {min-width:820px;}
.tv-stitch-expenses td {vertical-align:top;padding:16px;}
.tv-stitch-expenses td > div {display:grid;gap:6px;}
.tv-stitch-expenses td small {color:var(--tv-text-muted,#4d6178);font-size:12px;}
.tv-stitch-expenses tbody tr:hover {background:var(--tv-brand-soft,#e8f3fc);}
.tv-stitch-expenses :is(.register-pager,.pagination) {display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:16px;background:#fff;}
.tv-stitch-expenses .pager-actions {display:flex;gap:8px;}
.tv-stitch-expenses :is(.tv-register-empty-state,.empty-state) {padding:28px;border:1px solid var(--tv-border,#c7d4e2);border-radius:12px;background:white;}
.tv-stitch-expense-detail {display:grid;gap:20px;background:var(--tv-surface-muted,#f3f7fb);padding:20px;}
.tv-stitch-expense-detail .panel {padding:20px;border:1px solid var(--tv-border,#c7d4e2);border-radius:12px;background:#fff;min-width:0;overflow-x:auto;}
.tv-stitch-expense-detail .panel h3 {font-size:16px;margin:0 0 16px;}
.tv-stitch-expense-detail .info-line {display:flex;justify-content:space-between;gap:20px;padding:8px 0;border-bottom:1px solid var(--tv-surface-muted,#f3f7fb);overflow-wrap:anywhere;}
.tv-stitch-expense-detail .info-line > :first-child {color:var(--tv-text-muted,#4d6178);}
.tv-stitch-expense-detail .info-line > :last-child {text-align:right;}
.tv-stitch-expense-detail :is(.button-row,.drawer-actions) {display:flex;flex-wrap:wrap;gap:8px;}
.tv-stitch-expense-detail :is(.helper-copy,.empty-copy) {color:var(--tv-text-muted,#4d6178);line-height:1.6;}
.tv-stitch-expense-detail table {min-width:640px;}
.tv-stitch-expense-detail .form-errors {padding:12px;background:#fff1f2;color:#9f1239;border:1px solid #fecdd3;border-radius:8px;}
.tv-stitch-expenses .panel {min-width:0;padding:20px;background:#fff;border:1px solid var(--tv-border,#c7d4e2);border-radius:12px;margin-bottom:16px;}
.tv-stitch-expenses .panel h3 {font-size:16px;margin:0 0 12px;}
.tv-stitch-expenses .table-wrap {overflow-x:auto;min-width:0;}
.tv-stitch-expenses .tv-table-row-opener {margin-top:8px;font-size:12px;padding:6px 10px;}
.tv-stitch-expenses .helper-copy {color:var(--tv-text-muted,#4d6178);font-size:13px;line-height:1.6;}
.tv-stitch-expenses .billable-expense-pager {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:16px 0;}
.tv-stitch-expenses .billable-expense-pager-actions {display:flex;gap:8px;}
/* Receipt Inbox export: a seven/five-column document queue and review workspace.
   Retain the existing protected-document controller, not the export's demo data. */
.tv-stitch-receipt-grid {display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:24px;align-items:start;}
.tv-stitch-receipt-queue {display:grid;gap:16px;min-width:0;}
.tv-stitch-receipt-inspection {min-width:0;padding:20px;background:#fff;border:1px solid var(--tv-border,#c7d4e2);border-radius:12px;}
.tv-stitch-receipt-inspection > h3 {margin:0 0 12px;font-size:16px;overflow-wrap:anywhere;}
.tv-stitch-receipt-inspection > p {color:var(--tv-text-muted,#4d6178);font-size:14px;line-height:1.6;}
.tv-stitch-receipt-inspection .tv-stitch-expense-detail {padding:0;background:transparent;}
.tv-stitch-receipt-inspection .receipt-detail-layout {display:grid;grid-template-columns:minmax(0,1fr);gap:20px;}
.tv-stitch-receipt-inspection .receipt-detail-workbench {display:grid;gap:16px;min-width:0;}
.tv-stitch-receipt-inspection .panel {margin:0;padding:16px;}
.tv-stitch-receipt-inspection .receipt-review-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.tv-stitch-receipt-inspection .field {display:grid;gap:6px;margin-bottom:12px;min-width:0;}
.tv-stitch-receipt-inspection .field :is(input,select,textarea) {width:100%;min-width:0;}
.tv-stitch-receipt-inspection .receipt-preview-stage {min-height:180px;padding:20px;background:var(--tv-surface-muted,#f3f7fb);display:grid;place-items:center;border-radius:8px;}
.tv-stitch-receipt-inspection .receipt-preview-stage :is(img,iframe) {max-width:100%;width:100%;border:0;object-fit:contain;}
.tv-stitch-receipt-inspection .receipt-preview-empty {display:grid;justify-items:center;gap:12px;text-align:center;color:var(--tv-text-muted,#4d6178);font-size:13px;}
.tv-stitch-receipt-inspection .receipt-preview-empty svg {width:32px;height:32px;}
.tv-stitch-receipt-inspection .receipt-preview-meta {padding:12px 0;display:flex;gap:12px;flex-wrap:wrap;overflow-wrap:anywhere;}
.tv-stitch-receipt-inspection .receipt-preview-meta small {display:block;margin-top:6px;color:var(--tv-text-muted,#4d6178);}
.tv-stitch-receipt-inspection .receipt-control-note {display:grid;gap:6px;padding:12px;background:var(--tv-brand-soft,#e8f3fc);border-radius:8px;font-size:13px;line-height:1.5;}
.tv-stitch-receipt-inspection .receipt-detail-status {display:flex;gap:8px;flex-wrap:wrap;margin:12px 0;}
@media(max-width:1100px){.tv-stitch-receipt-grid{grid-template-columns:minmax(0,1fr);}}
@media(max-width:540px){.tv-stitch-receipt-inspection{padding:12px;}.tv-stitch-receipt-inspection .receipt-review-grid{grid-template-columns:minmax(0,1fr);}}
@media(max-width:900px){.tv-stitch-expenses .workspace-stats{grid-template-columns:repeat(2,minmax(0,1fr));}.tv-stitch-expenses .workspace-hero{flex-direction:column;}}
@media(max-width:540px){.tv-stitch-expenses,.tv-stitch-expense-detail{padding:12px;}.tv-stitch-expenses .workspace-stat{padding:12px;}.tv-stitch-expenses :is(.register-pager,.pagination){align-items:flex-start;flex-direction:column;}.tv-stitch-expense-detail .info-line{display:grid;gap:4px;}.tv-stitch-expense-detail .info-line > :last-child{text-align:left;}}

/* Exact Stitch route ownership for expense intake, claims, mileage, direct and
   billable costs. Layout-only: amounts, evidence and eligibility stay live. */
.tv-stitch-expenses:is(
  [data-stitch-screen="07625eae311244dfaa9cd6d421a8e918"], [data-stitch-route-screen="07625eae311244dfaa9cd6d421a8e918"],
  [data-stitch-screen="ec08fff70f364fc6ac8a6608cbaf0c11"], [data-stitch-route-screen="ec08fff70f364fc6ac8a6608cbaf0c11"],
  [data-stitch-screen="44bb6b9b55c34b00a3af60cc44c7dd78"], [data-stitch-route-screen="44bb6b9b55c34b00a3af60cc44c7dd78"],
  [data-stitch-screen="fd03f5cb51d84261b62e5db281aa0be2"], [data-stitch-route-screen="fd03f5cb51d84261b62e5db281aa0be2"],
  [data-stitch-screen="a2ab9e705090408e8b299f9434a13db5"], [data-stitch-route-screen="a2ab9e705090408e8b299f9434a13db5"]
) > .tv-route-frame {display:grid;gap:18px;max-width:1600px;margin-inline:auto;}
.tv-stitch-expenses:is(
  [data-stitch-screen="ec08fff70f364fc6ac8a6608cbaf0c11"], [data-stitch-route-screen="ec08fff70f364fc6ac8a6608cbaf0c11"],
  [data-stitch-screen="44bb6b9b55c34b00a3af60cc44c7dd78"], [data-stitch-route-screen="44bb6b9b55c34b00a3af60cc44c7dd78"],
  [data-stitch-screen="fd03f5cb51d84261b62e5db281aa0be2"], [data-stitch-route-screen="fd03f5cb51d84261b62e5db281aa0be2"],
  [data-stitch-screen="a2ab9e705090408e8b299f9434a13db5"], [data-stitch-route-screen="a2ab9e705090408e8b299f9434a13db5"]
) .workspace-stats {gap:12px;margin-block:0;}
.tv-stitch-expenses:is(
  [data-stitch-screen="ec08fff70f364fc6ac8a6608cbaf0c11"], [data-stitch-route-screen="ec08fff70f364fc6ac8a6608cbaf0c11"],
  [data-stitch-screen="44bb6b9b55c34b00a3af60cc44c7dd78"], [data-stitch-route-screen="44bb6b9b55c34b00a3af60cc44c7dd78"],
  [data-stitch-screen="fd03f5cb51d84261b62e5db281aa0be2"], [data-stitch-route-screen="fd03f5cb51d84261b62e5db281aa0be2"],
  [data-stitch-screen="a2ab9e705090408e8b299f9434a13db5"], [data-stitch-route-screen="a2ab9e705090408e8b299f9434a13db5"]
) .table-card {box-shadow:0 1px 2px rgb(18 44 70 / 5%);}
