/* Same list/reader geometry as the other TIC views. */
.work-search-stack .work-tabs:has(.tic-commerce-tab){grid-template-columns:repeat(3,minmax(0,1fr)) minmax(104px,1.3fr)}
.tic-commerce-tab-group{border-right:0}.tic-commerce-tab{width:100%;height:100%;border-right:0}.tic-commerce-tab .work-tab-label{white-space:normal;text-wrap:balance}
.tic-service-list{display:flex;flex-direction:column;min-width:0}
.tic-service-choice{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:7px;width:100%;min-width:0;min-height:96px;padding:14px 18px;border:0;border-bottom:1px solid var(--line);border-left:3px solid transparent;border-radius:0;background:var(--surface);color:var(--ink);text-align:left}
.tic-service-choice:hover{background:var(--soft)}.tic-service-choice[aria-selected=true]{background:var(--soft);border-left-color:var(--primary)}.tic-service-choice:focus-visible{outline:2px solid var(--primary);outline-offset:-3px}
.tic-service-choice .commerce-brand{height:auto;min-height:44px;justify-content:flex-start;max-width:100%;font-size:15px;overflow-wrap:anywhere}
.tic-service-choice .commerce-brand>span{min-width:0}.tic-service-choice .commerce-brand-amazon{min-height:48px;justify-content:center}
.tic-service-choice .commerce-brand img.commerce-openai,.tic-service-choice .commerce-symbol{width:44px;height:44px}.tic-service-choice .commerce-symbol img{width:26px;height:26px}
.tic-service-choice .commerce-tab-caption{text-align:left;max-width:none;font-size:12px;line-height:1.4}
.tic-commerce-add{margin:0;padding:12px 18px;border-top:1px solid var(--line);min-width:0}.tic-commerce-add>summary{min-height:44px;font-size:13px;font-weight:600;cursor:pointer}
.tic-commerce-add form{padding:6px 0 12px;min-width:0}.tic-commerce-add label{display:block;font-size:12px;margin:10px 0 6px}.tic-commerce-add :is(input,select){width:100%;max-width:100%;min-width:0;min-height:44px;font-size:13px}
.tic-commerce-add .check{display:flex;align-items:center;gap:8px;line-height:1.5;margin:14px 0}.tic-commerce-add .check input{width:18px;height:18px;min-height:18px;padding:0;flex:0 0 18px;margin:0}
.tic-commerce-add .button{min-height:44px}.tic-commerce-add #tic-service-error{font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.tic-commerce-reader{container:commerce-reader/inline-size;min-width:0}.tic-commerce-reader .commerce-service-heading.reader-heading{display:block;margin:0 0 18px}.tic-commerce-reader .commerce-service-heading h2{margin:0 0 6px}
.tic-commerce-reader .commerce-history>.section-heading>h3,.tic-commerce-reader .commerce-orders>h3{font:900 14px/1.4 'Segoe UI Black','Arial Black','Segoe UI',sans-serif;letter-spacing:.03em;text-transform:uppercase}
.tic-services-back{display:none}.tic-commerce-reader :is(.commerce-history,.commerce-orders){padding:0;border:0;box-shadow:none;background:transparent}
.tic-commerce-reader .commerce-history-head{display:none}.tic-commerce-reader .commerce-invoice>summary{grid-template-columns:repeat(2,minmax(0,1fr)) 18px;gap:12px;padding:16px 0}
.tic-commerce-reader .commerce-invoice>summary>[data-label]::before{content:attr(data-label);display:block;margin-bottom:4px;font-size:11px;color:var(--muted);font-weight:400}
.tic-commerce-reader .commerce-invoice>summary strong{font-size:16px;white-space:normal}.tic-commerce-reader .commerce-invoice-chevron{grid-column:3;grid-row:1/4;align-self:center}.tic-commerce-reader .commerce-invoice-details{padding-left:0;padding-right:0}
.product-value{margin:12px 0 18px}.product-value .product-price{margin:0 0 7px}.tic-commerce-reader .product-price{font-size:20px}
.product-line-total{margin:8px 0 0;font-size:17px;line-height:1.4}.product-line-total>span,.product-line-total>small{display:block;font-size:12px;color:var(--muted);font-weight:400;margin-top:4px}
.product-price-source{font-size:12px;min-height:44px;max-width:100%;text-align:left}.product-price-unknown{margin:14px 0}.commerce-order[open]>summary{border-bottom:1px solid var(--line)}
.tic-commerce-refresh{display:block;min-height:44px;text-align:left;margin:0 0 12px;font-size:12px}
@media(min-width:1001px){.tic-commerce-filters{min-height:98px}}
@container commerce-reader (max-width:600px){
 .ledger-product{grid-template-columns:64px minmax(0,1fr);gap:14px}.product-thumbnail,.product-placeholder{width:64px;height:64px}.product-content .section-heading{align-items:flex-start;flex-direction:column}
 .invoice-fields,.ledger-dates{grid-template-columns:minmax(0,1fr)}.commerce-chart text{display:none}.commerce-chart-range{display:flex;justify-content:space-between;gap:12px;font-size:11px;color:var(--muted)}.commerce-chart-range>span{max-width:48%;overflow-wrap:anywhere}
 .commerce-overview{grid-template-columns:repeat(2,minmax(0,1fr))}.commerce-overview>div{padding:12px;border-bottom:1px solid var(--line)}.commerce-overview strong{font-size:19px}
 .invoice-bottom{flex-wrap:wrap}.commerce-chart{padding:14px 12px 8px}.commerce-order>summary{flex-wrap:wrap}
}
@container commerce-reader (max-width:420px){
 .commerce-invoice>summary{grid-template-columns:minmax(0,1fr) minmax(72px,1fr) 16px;gap:9px}
 .commerce-invoice>summary>[data-label="Emisión"]{display:none}.commerce-invoice>summary>.commerce-invoice-ref{grid-column:1;grid-row:1;font-size:12px}.commerce-invoice>summary>strong{grid-column:2;grid-row:1;text-align:right}
 .commerce-invoice>summary>[data-label="Período"]{grid-column:1/3;grid-row:2}.commerce-invoice>summary>.commerce-invoice-change{grid-column:1/3;grid-row:3}.commerce-invoice>summary>.commerce-invoice-change[data-has-change=false]{display:none}
 .commerce-invoice>summary>.commerce-invoice-ref::before,.commerce-invoice>summary>strong::before{display:none}.commerce-invoice>summary>.commerce-invoice-change::before{content:'Variación · ';display:inline}.commerce-invoice-chevron{grid-row:1/3}
}
@media(max-width:1000px){
 .tic-commerce-browser>.tic-commerce-reader{display:block;position:static;max-height:none;margin:0}
 .tic-commerce-browser[data-mobile-panel=services]>#case-reader{display:none}.tic-commerce-browser[data-mobile-panel=detail]>#case-results{display:none}
 .tic-commerce-reader .tic-services-back{display:inline-flex;align-items:center;gap:8px;margin:0 0 18px;min-height:44px}.tic-services-back svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6}
}
@media(max-width:700px){.work-search-stack .work-tabs:has(.tic-commerce-tab){grid-template-columns:repeat(2,minmax(0,1fr))}.work-tabs:has(.tic-commerce-tab)>.work-tab-group:nth-child(n+3){border-top:1px solid var(--line)}.work-tabs:has(.tic-commerce-tab)>.work-tab-group:nth-child(2){border-right:0}.tic-commerce-tab{min-height:58px}}
@media(forced-colors:active){.tic-service-choice[aria-selected=true]{outline:2px solid Highlight;outline-offset:-3px}}
