body.ts2 #sentOrdersSection { font-family: var(--ts-font) !important; }
body.ts2 #sentOrdersSection .orders-page-header { margin: 0 0 24px !important; align-items: center !important; }
body.ts2 #sentOrdersSection h1 { font: 650 28px/1.25 var(--ts-font) !important; letter-spacing: 0 !important; }
body.ts2 #sentOrdersSection .subtitle { display: none !important; }
body.ts2 #sentOrdersSection .orders-page-surface { padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
body.ts2 #sentOrdersSection .orders-filter-panel { padding: 0 0 16px !important; margin: 0 !important; background: transparent !important; border: 0 !important; box-shadow: none !important; }
.ts-order-toolbar { display: flex; align-items: end; gap: 8px; flex-wrap: wrap; }
.ts-order-toolbar .orders-filter-search { flex: 1 1 240px; margin: 0 !important; }
.ts-order-toolbar .orders-filter-search label { display: none !important; }
body.ts2 .ts-order-toolbar input, body.ts2 .ts-order-toolbar select { height: 40px !important; min-height: 40px !important; padding: 8px 12px !important; font: 400 13px/1.4 var(--ts-font) !important; border: 1px solid var(--ts-border) !important; border-radius: 6px !important; background: var(--ts-surface) !important; box-shadow: none !important; }
.ts-order-toolbar .orders-sort-control { margin: 0; min-width: 170px; }
.ts-order-toolbar .orders-sort-control small { display: none; }
body.ts2 #sentOrdersSection .btn { min-height: 40px !important; padding: 8px 14px !important; font: 600 13px/1.4 var(--ts-font) !important; border-radius: 6px !important; box-shadow: none !important; }
body.ts2 #createOrderFromList { background: var(--ts-brand) !important; color: #fff !important; border-color: var(--ts-brand) !important; }
body.ts2.can-create-orders #createOrderFromList { display: inline-flex !important; }
body.ts2 #ordersExportBtn { background: var(--ts-surface) !important; color: var(--ts-text) !important; border: 1px solid var(--ts-border) !important; }
body.ts2 #sentOrdersSection .orders-table-scroll { border: 1px solid var(--ts-border) !important; border-radius: 8px !important; margin: 0 !important; background: var(--ts-surface) !important; overflow-x: auto; }
body.ts2 #sentOrdersSection .orders-table { width: 100% !important; min-width: 840px !important; table-layout: auto !important; }
body.ts2 #sentOrdersSection .orders-table th { padding: 12px !important; font: 600 11px/1.4 var(--ts-font) !important; letter-spacing: 0 !important; text-transform: none !important; background: var(--ts-subtle) !important; color: var(--ts-muted) !important; white-space: nowrap; }
body.ts2 #sentOrdersSection .orders-table td { padding: 14px 12px !important; font: 400 12px/1.45 var(--ts-font) !important; border-bottom: 1px solid var(--ts-border) !important; max-width: 220px; overflow-wrap: anywhere; }
body.ts2 #sentOrdersSection .orders-table strong { font-size: 12px !important; font-weight: 600 !important; }
body.ts2 #sentOrdersSection .orders-table small { font-size: 11px !important; color: var(--ts-muted) !important; }
body.ts2 #sentOrdersSection .orders-table tbody tr:last-child td { border-bottom: 0 !important; }
body.ts2 #sentOrdersSection .orders-amount { white-space: nowrap; font-variant-numeric: tabular-nums; }
body.ts2 #sentOrdersSection .orders-status-badge, body.ts2 #sentOrdersSection .orders-payment-badge { font: 600 11px/1.35 var(--ts-font) !important; letter-spacing: 0 !important; border-radius: 4px !important; padding: 4px 6px !important; }
body.ts2 #sentOrdersSection .orders-status-badge.correction { color: var(--ts-warning) !important; background: var(--ts-warning-tint) !important; }
body.ts2 #sentOrdersSection .orders-table :is(th, td):last-child { width: 144px !important; min-width: 144px !important; }
body.ts2 #sentOrdersSection .orders-row-actions-inline { display: flex !important; align-items: center; justify-content: flex-start; gap: 8px !important; width: max-content !important; max-width: 100%; }
body.ts2 #sentOrdersSection .orders-row-actions-inline button { flex: 0 0 auto; width: 32px !important; min-width: 32px !important; min-height: 36px !important; padding: 6px !important; font-size: 12px !important; border-radius: 4px !important; box-shadow: none !important; }
body.ts2 #sentOrdersSection td[data-label="Acciones"] .orders-row-actions-inline .orders-view-btn { width: auto !important; min-width: 48px !important; padding-inline: 12px !important; }
body.ts2 #sentOrdersSection .orders-table .ts-column-hidden { display: none !important; }
.ts-order-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ts-order-chips:empty { display: none; }
.ts-filter-chip { font-size: 12px !important; min-height: 32px; margin-top: 12px; }
.ts-order-filters .orders-filter-grid { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 16px !important; }
.ts-order-filters .field { margin: 0 !important; min-width: 0; }
.ts-order-filters label { font: 500 13px/1.5 var(--ts-font) !important; color: var(--ts-text) !important; }
.ts-order-filters select, .ts-order-filters input { width: 100%; font: 400 14px/1.5 var(--ts-font) !important; min-height: 44px !important; border: 1px solid var(--ts-border) !important; border-radius: 6px !important; }
body.ts2 .ts-order-filters #paidFilter { color: var(--ts-text) !important; font-size: 14px !important; opacity: 1 !important; text-indent: 0 !important; }
.ts-column-options { display: grid; gap: 12px; }
.ts-column-options label { display: flex; align-items: center; gap: 12px; min-height: 36px; font-size: 14px; font-weight: 400; cursor: pointer; }
.ts-column-options input { width: 18px; height: 18px; accent-color: var(--ts-brand); }
body.ts2 .review-side { min-width: 0 !important; overflow-wrap: anywhere; }
body.ts2 .attachment-item { min-width: 0 !important; max-width: 100% !important; overflow: hidden; }
body.ts2 .attachment-item img { display: block !important; width: 100% !important; max-width: 100% !important; height: auto !important; max-height: 220px !important; object-fit: contain !important; }
body.ts2 .file-preview-list img { max-width: 100% !important; max-height: 220px !important; width: auto !important; height: auto !important; object-fit: contain !important; }
@media (max-width: 767px) {
  body.ts2 #sentOrdersSection h1 { font-size: 24px !important; }
  body.ts2 #sentOrdersSection .orders-page-header { align-items: flex-start !important; gap: 12px !important; flex-wrap: wrap !important; }
  body.ts2 #sentOrdersSection .orders-page-header > div:first-child { width: auto !important; flex: 1 1 auto !important; }
  body.ts2 #sentOrdersSection .orders-header-actions { display: flex !important; gap: 8px !important; width: auto !important; flex: 0 1 auto !important; }
  body.ts2 #sentOrdersSection .orders-header-actions .btn { width: auto !important; flex: none !important; }
  body.ts2 #sentOrdersSection .btn { min-height: 44px !important; }
  .ts-order-toolbar .orders-filter-search { flex-basis: 100%; }
  .ts-order-toolbar .orders-sort-control { flex: 1; }
  body.ts2 .ts-order-toolbar input, body.ts2 .ts-order-toolbar select { height: 44px !important; font-size: 16px !important; }
  .ts-columns-button { display: none; }
  .ts-order-filters .orders-filter-grid { grid-template-columns: 1fr !important; }
  body.ts2 #sentOrdersSection .orders-table-scroll { border: 0 !important; background: transparent !important; overflow: visible !important; }
  body.ts2 #sentOrdersSection .orders-table { min-width: 0 !important; display: block !important; }
  body.ts2 #sentOrdersSection .orders-table thead { display: none !important; }
  body.ts2 #sentOrdersSection .orders-table tbody { display: grid !important; gap: 12px !important; padding: 0 !important; }
  body.ts2 #sentOrdersSection .orders-table tbody tr { display: grid !important; grid-template-columns: minmax(0, 1fr) auto !important; gap: 8px 12px !important; padding: 16px !important; margin: 0 !important; border: 1px solid var(--ts-border) !important; border-radius: 8px !important; background: var(--ts-surface) !important; box-shadow: none !important; }
  body.ts2 #sentOrdersSection .orders-table tbody td { max-width: none !important; min-width: 0 !important; display: block !important; border: 0 !important; padding: 0 !important; font-size: 13px !important; }
  body.ts2 #sentOrdersSection .orders-table tbody td:last-child { width: auto !important; min-width: 0 !important; }
  body.ts2 #sentOrdersSection .orders-table td::before { display: none !important; }
  body.ts2 #sentOrdersSection .orders-table td[data-label="Orden"] { grid-column: 1; grid-row: 1; }
  body.ts2 #sentOrdersSection .orders-table td[data-label="Monto"] { grid-column: 2; grid-row: 1; text-align: right; }
  body.ts2 #sentOrdersSection .orders-table td[data-label="Proveedor"] { grid-column: 1 / -1; grid-row: 2; font-weight: 600 !important; }
  body.ts2 #sentOrdersSection .orders-table td[data-label="Fideicomiso"] { grid-column: 1 / -1; grid-row: 3; color: var(--ts-muted); }
  body.ts2 #sentOrdersSection .orders-table td[data-label="Estado"] { grid-column: 1; grid-row: 4; align-self: center; }
  body.ts2 #sentOrdersSection .orders-table td[data-label="Acciones"] { grid-column: 2; grid-row: 4; }
  body.ts2 #sentOrdersSection .orders-table td[data-label="Rubro"], body.ts2 #sentOrdersSection .orders-table td[data-label="PDF"],
  body.ts2 #sentOrdersSection .orders-table td[data-label="Administración"], body.ts2 #sentOrdersSection .orders-table td[data-label="Civile"],
  body.ts2 #sentOrdersSection .orders-table td[data-label="Pago"], body.ts2 #sentOrdersSection .orders-table td[data-label="Fecha"] { display: none !important; }
  body.ts2 #sentOrdersSection .orders-order-cell { display: block !important; gap: 0 !important; }
  body.ts2 #sentOrdersSection .orders-order-cell strong { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; overflow-wrap: anywhere; }
  body.ts2 #sentOrdersSection .orders-order-cell small { white-space: nowrap !important; margin-top: 6px; }
  body.ts2 #sentOrdersSection .orders-favorite-btn { display: none !important; }
  body.ts2 #sentOrdersSection .orders-row-actions-inline button { min-width: 44px !important; width: 44px !important; min-height: 44px !important; }
  body.ts2 #sentOrdersSection .orders-download-btn { display: none !important; }
  body.ts2 #sentOrdersSection .orders-pagination { flex-wrap: wrap; gap: 12px; }
}
