/* Cores por produto e fornecedor. Escopo explícito impede que estilos antigos da tabela sobrescrevam os estados. */
#produtosView :is(#prodCatalog,#prodPage,#prodDrawer) .ca-section{min-width:0;color:var(--ink,#25212a);font:400 13px/1.5 var(--font-ui,"Outfit",sans-serif)}
#produtosView :is(#prodCatalog,#prodPage,#prodDrawer) .ca-section h2{margin:0;font-size:19px;font-weight:600;line-height:1.3}
#produtosView :is(#prodCatalog,#prodPage,#prodDrawer) .ca-section p{margin:0}
#produtosView :is(#prodCatalog,#prodPage,#prodDrawer) .ca-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;flex-wrap:wrap;margin-bottom:18px}
#produtosView :is(#prodCatalog,#prodPage,#prodDrawer) .ca-head>div:first-child>p{margin-top:5px;color:var(--muted,#655f6b);font-size:12px}
#produtosView :is(#prodCatalog,#prodPage,#prodDrawer) .ca-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
#produtosView :is(#prodCatalog,#prodPage,#prodDrawer) .ca-section button{font:500 12px/1.4 var(--font-ui,"Outfit",sans-serif);color:inherit;cursor:pointer;min-height:40px;padding:9px 13px;border:1px solid var(--line,#e4dfe8);border-radius:8px;background:#fff;box-shadow:none}
#produtosView :is(#prodCatalog,#prodPage,#prodDrawer) .ca-section button:hover:not(:disabled){background:var(--brand-soft,#f1eaff);border-color:#c8b5e7;color:var(--brand-strong,#5920ba)}
#produtosView :is(#prodCatalog,#prodPage,#prodDrawer) .ca-section button:disabled{cursor:default}
#produtosView :is(#prodCatalog,#prodPage,#prodDrawer) .ca-section button:focus-visible,#produtosView :is(#prodCatalog,#prodPage,#prodDrawer) .ca-section input:focus-visible,#produtosView :is(#prodCatalog,#prodPage,#prodDrawer) .ca-section summary:focus-visible,#produtosView :is(#prodCatalog,#prodPage,#prodDrawer) .ca-scroll:focus-visible{outline:3px solid var(--brand,#7b2fff);outline-offset:3px}
#produtosView :is(#prodCatalog,#prodPage,#prodDrawer) .ca-section .ca-primary{background:var(--brand,#7b2fff);border-color:var(--brand,#7b2fff);color:#fff}
#produtosView :is(#prodCatalog,#prodPage,#prodDrawer) .ca-section .ca-primary:hover:not(:disabled){background:var(--brand-strong,#5920ba);color:#fff}
#produtosView :is(#prodCatalog,#prodPage,#prodDrawer) .ca-section .ca-primary:disabled{opacity:.5}
#produtosView :is(#prodCatalog,#prodPage,#prodDrawer) .ca-product-state{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:0 0 16px;padding:14px 16px;border:1px solid var(--line,#e4dfe8);border-radius:10px;background:#faf9fc}
#produtosView :is(#prodCatalog,#prodPage,#prodDrawer) .ca-product-state>div:first-child{display:flex;flex-direction:column;gap:3px}
#produtosView :is(#prodCatalog,#prodPage,#prodDrawer) .ca-product-state strong{font-size:13px;font-weight:500}
#produtosView :is(#prodCatalog,#prodPage,#prodDrawer) .ca-product-state span,#produtosView :is(#prodCatalog,#prodPage,#prodDrawer) .ca-muted{font-size:12px;color:var(--muted,#655f6b)}
#produtosView :is(#prodCatalog,#prodPage,#prodDrawer) .ca-scroll{width:100%;max-width:100%;overflow-x:auto;border:1px solid var(--line,#e4dfe8);border-radius:10px;scrollbar-color:#b7a6cc #f1edf6;scrollbar-width:auto}
#produtosView :is(#prodCatalog,#prodPage,#prodDrawer) .ca-table{width:100%;min-width:570px;border-collapse:collapse;table-layout:auto;margin:0;background:#fff}
#produtosView :is(#prodCatalog,#prodPage,#prodDrawer) .ca-table :is(th,td){padding:9px 14px;border:0;border-bottom:1px solid var(--line,#e4dfe8);text-align:left;vertical-align:middle;font-size:12px;line-height:1.45}
#produtosView :is(#prodCatalog,#prodPage,#prodDrawer) .ca-table thead th{padding-top:14px;padding-bottom:13px;background:#faf9fc;white-space:normal;font-weight:500}
#produtosView :is(#prodCatalog,#prodPage,#prodDrawer) .ca-table th:first-child{min-width:160px}
#produtosView :is(#prodCatalog,#prodPage,#prodDrawer) .ca-table tbody th{font-weight:400}
#produtosView :is(#prodCatalog,#prodPage,#prodDrawer) .ca-table tbody tr:last-child>:is(th,td){border-bottom:0}
#produtosView :is(#prodCatalog,#prodPage,#prodDrawer) .ca-table td{min-width:202px}
#produtosView :is(#prodCatalog,#prodPage,#prodDrawer) .ca-supplier-name{display:block;margin-bottom:3px;font-size:13px;font-weight:500}
#produtosView :is(#prodCatalog,#prodPage,#prodDrawer) .ca-supplier-status{display:block;margin-bottom:9px;font-size:11px;color:var(--muted,#655f6b);font-weight:400}
#produtosView :is(#prodCatalog,#prodPage,#prodDrawer) .ca-choice{display:flex;gap:5px;align-items:center}
#produtosView :is(#prodCatalog,#prodPage,#prodDrawer) .ca-choice button{min-width:76px;min-height:34px;padding:6px 9px;border:1px solid transparent;border-radius:7px;white-space:nowrap;font-size:11px;font-weight:400;background:#f5f3f7;color:#655f6b}
#produtosView :is(#prodCatalog,#prodPage,#prodDrawer) .ca-choice button[aria-pressed=true]{border-color:#ad85e0;background:var(--brand-soft,#f1eaff);color:var(--brand-strong,#5920ba);font-weight:600}
#produtosView :is(#prodCatalog,#prodPage,#prodDrawer) .ca-choice button:disabled{opacity:1}
#produtosView :is(#prodCatalog,#prodPage,#prodDrawer) .ca-section:has(.ca-form) .ca-choice button:disabled{opacity:.75}
#produtosView :is(#prodCatalog,#prodPage,#prodDrawer) .ca-color{display:flex;align-items:center;gap:10px;white-space:nowrap}
#produtosView :is(#prodCatalog,#prodPage,#prodDrawer) .ca-swatch{display:block;width:23px;height:23px;flex:0 0 23px;border:1px solid #a49aaf;border-radius:5px}
#produtosView :is(#prodCatalog,#prodPage,#prodDrawer) .ca-foot{display:flex;flex-direction:column;gap:5px;margin-top:12px;color:var(--muted,#655f6b);font-size:11px}
#produtosView :is(#prodCatalog,#prodPage,#prodDrawer) .ca-note,#produtosView :is(#prodCatalog,#prodPage,#prodDrawer) .ca-error{padding:11px 13px;border-radius:8px;font-size:12px;margin:0 0 14px!important;overflow-wrap:anywhere}
#produtosView :is(#prodCatalog,#prodPage,#prodDrawer) .ca-note{border:1px solid var(--line,#e4dfe8);background:#faf9fc;color:var(--muted,#655f6b)}
#produtosView :is(#prodCatalog,#prodPage,#prodDrawer) .ca-error{border:1px solid #e2bcbc;background:#fff4f4;color:#822d2d}
#produtosView :is(#prodCatalog,#prodPage,#prodDrawer) .ca-form{margin-top:20px;padding:18px;border:1px solid var(--line,#e4dfe8);border-radius:10px;background:#faf9fc}
#produtosView :is(#prodCatalog,#prodPage,#prodDrawer) .ca-form fieldset{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;min-width:0;margin:0;padding:0;border:0}
#produtosView :is(#prodCatalog,#prodPage,#prodDrawer) .ca-form legend{padding:0;margin:0 0 12px;font-size:13px;font-weight:500}
#produtosView :is(#prodCatalog,#prodPage,#prodDrawer) .ca-form label{display:flex;flex-direction:column;gap:6px;min-width:0;color:var(--muted,#655f6b);font-size:12px}
#produtosView :is(#prodCatalog,#prodPage,#prodDrawer) .ca-form input{width:100%;min-width:0;height:42px;padding:9px 11px;border:1px solid var(--line,#e4dfe8);border-radius:8px;background:#fff;color:var(--ink,#25212a);font:400 13px var(--font-ui,"Outfit",sans-serif)}
#produtosView :is(#prodCatalog,#prodPage,#prodDrawer) .ca-form fieldset:disabled{opacity:.7}
#produtosView :is(#prodCatalog,#prodPage,#prodDrawer) .ca-draft-state{margin:14px 0 10px!important;color:var(--muted,#655f6b);font-size:12px}
#produtosView :is(#prodCatalog,#prodPage,#prodDrawer) .ca-save-actions{padding-top:4px}
#produtosView :is(#prodCatalog,#prodPage,#prodDrawer) .ca-history{margin-top:18px;border-top:1px solid var(--line,#e4dfe8);padding-top:4px}
#produtosView :is(#prodCatalog,#prodPage,#prodDrawer) .ca-history>summary{min-height:44px;padding:12px 0;cursor:pointer;color:var(--muted,#655f6b);font-size:12px}
#produtosView :is(#prodCatalog,#prodPage,#prodDrawer) .ca-history-entry{padding:12px 0;border-top:1px solid var(--line,#e4dfe8);overflow-wrap:anywhere}
#produtosView :is(#prodCatalog,#prodPage,#prodDrawer) .ca-history-entry strong{font-weight:500;font-size:12px}
#produtosView :is(#prodCatalog,#prodPage,#prodDrawer) .ca-history-entry p{font-size:11px;color:var(--muted,#655f6b);margin-top:4px}
@media(pointer:coarse){
#produtosView :is(#prodCatalog,#prodPage,#prodDrawer) .ca-section button,#produtosView :is(#prodCatalog,#prodPage,#prodDrawer) .ca-choice button{min-height:44px}}
@media(max-width:650px){
#produtosView :is(#prodCatalog,#prodPage,#prodDrawer) .ca-head{gap:12px}
#produtosView :is(#prodCatalog,#prodPage,#prodDrawer) .ca-head h2{font-size:18px}
#produtosView :is(#prodCatalog,#prodPage,#prodDrawer) .ca-form{padding:14px}
#produtosView :is(#prodCatalog,#prodPage,#prodDrawer) .ca-form fieldset{grid-template-columns:1fr}
#produtosView :is(#prodCatalog,#prodPage,#prodDrawer) .ca-form input{font-size:16px;min-height:44px}
#produtosView :is(#prodCatalog,#prodPage,#prodDrawer) .ca-table :is(th,td){padding-left:12px;padding-right:12px}
#produtosView :is(#prodCatalog,#prodPage,#prodDrawer) .ca-product-state{padding:12px}
#produtosView :is(#prodCatalog,#prodPage,#prodDrawer) .ca-section button{min-height:44px}
}
#produtosView :is(#prodCatalog,#prodPage,#prodDrawer) .ci-product-colors-control .ci-color-source{display:block;font-size:10px;line-height:1.4;color:var(--muted,#655f6b);margin:2px 0 4px}
#produtosView :is(#prodCatalog,#prodPage,#prodDrawer) .ci-product-colors-control [data-colors-preview]{display:flex;gap:7px;flex-wrap:wrap}
#produtosView :is(#prodCatalog,#prodPage,#prodDrawer) .ci-product-colors-control [data-colors-preview][hidden]{display:none}
#produtosView :is(#prodCatalog,#prodPage,#prodDrawer) .ci-color-name{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
#produtosView :is(#prodCatalog,#prodPage,#prodDrawer) .ci-color-swatch{display:inline-block;width:11px;height:11px;border-radius:3px;border:1px solid #ada4b6;flex:0 0 11px}
