/* Catalog presentation only. Route scopes keep the other admin workspaces intact. */
:is([data-page="produtos"], [data-page^="produtos/"]) .va-products-table .va-col-product {
  text-align:left;
}
:is([data-page="produtos"], [data-page^="produtos/"]) .prd-product-main {
  justify-content:flex-start; align-items:center; gap:12px; width:100%;
}
:is([data-page="produtos"], [data-page^="produtos/"]) .prd-product-main-copy strong {
  display:block; white-space:normal; overflow:visible; overflow-wrap:anywhere;
  max-width:none; -webkit-line-clamp:unset; text-align:left;
}
:is([data-page="produtos/categorias"], [data-page="produtos/complementos"], [data-page="produtos/combos"]) {
  --admin-primary:#2563eb; --primary:#2563eb; --admin-text:#14213d;
  color:#14213d; background:#f7f9fc;
}
/* Stock history: the summary is a single panel separate from the movement list. */
:is([data-page="estoque"], [data-page="estoque/historico"]) .stock-page-head {
  padding:8px 0; border:0; border-radius:0; background:transparent; box-shadow:none;
}
:is([data-page="estoque"], [data-page="estoque/historico"]) .stock-page-head-copy .va-page-title {color:#14213d;font-size:28px}
:is([data-page="estoque"], [data-page="estoque/historico"]) .stock-head-actions .btn-primary {background:#2563eb;border-color:#2563eb;box-shadow:none}
:is([data-page="estoque"], [data-page="estoque/historico"]) #stock-history-control-notice {background:#fffaf3;min-height:64px;margin:20px 0;padding:12px 20px}
:is([data-page="estoque"], [data-page="estoque/historico"]) #mv-kpis {
  display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:0;
  padding:26px 12px;margin:24px 0 20px;border:1px solid #dfe7f2;border-radius:12px;background:#fff;
}
:is([data-page="estoque"], [data-page="estoque/historico"]) .stock-kpi-card {
  position:relative;min-width:0;min-height:72px;padding:0 12px;display:flex;justify-content:center;
  border:0;border-right:1px solid #dfe7f2;border-radius:0;background:transparent;box-shadow:none;transform:none;
}
:is([data-page="estoque"], [data-page="estoque/historico"]) .stock-kpi-card:last-child {border-right:0}
:is([data-page="estoque"], [data-page="estoque/historico"]) .stock-kpi-card>div {flex-direction:column-reverse;gap:12px;align-items:center}
:is([data-page="estoque"], [data-page="estoque/historico"]) .stock-kpi-card small {font-size:13px;white-space:normal;text-align:center;color:#64748b}
:is([data-page="estoque"], [data-page="estoque/historico"]) .stock-kpi-card strong {font-size:32px;color:#14213d;font-weight:650}
:is([data-page="estoque"], [data-page="estoque/historico"]) .stock-kpi-icon {display:none}
:is([data-page="estoque"], [data-page="estoque/historico"]) .stock-history-card {padding:20px!important;border:1px solid #dfe7f2;border-radius:12px!important;box-shadow:none!important}
:is([data-page="estoque"], [data-page="estoque/historico"]) .stock-table-toolbar>div>strong {font-size:21px;color:#14213d}
:is([data-page="estoque"], [data-page="estoque/historico"]) .stock-history-card .va-table-wrap {overflow:visible;border-radius:10px}
:is([data-page="estoque"], [data-page="estoque/historico"]) .stock-history-card .va-stock-mov-table {width:100%;min-width:0;table-layout:fixed;color:#14213d}
:is([data-page="estoque"], [data-page="estoque/historico"]) .va-stock-mov-table :is(th,td) {white-space:normal;overflow-wrap:anywhere;padding:12px 9px;height:auto}
:is([data-page="estoque"], [data-page="estoque/historico"]) .va-stock-mov-table th {font-size:10px;letter-spacing:0;background:#f6f8fb}
:is([data-page="estoque"], [data-page="estoque/historico"]) .va-stock-mov-table th:nth-child(1) {width:11%}
:is([data-page="estoque"], [data-page="estoque/historico"]) .va-stock-mov-table th:nth-child(2) {width:16%}
:is([data-page="estoque"], [data-page="estoque/historico"]) .va-stock-mov-table th:nth-child(3) {width:8%}
:is([data-page="estoque"], [data-page="estoque/historico"]) .va-stock-mov-table th:nth-child(4) {width:9%}
:is([data-page="estoque"], [data-page="estoque/historico"]) .va-stock-mov-table th:nth-child(5) {width:10%}
:is([data-page="estoque"], [data-page="estoque/historico"]) .va-stock-mov-table th:nth-child(6) {width:12%}
:is([data-page="estoque"], [data-page="estoque/historico"]) .va-stock-mov-table th:nth-child(7) {width:21%}
:is([data-page="estoque"], [data-page="estoque/historico"]) .va-stock-mov-table th:nth-child(8) {width:13%}
:is([data-page="estoque"], [data-page="estoque/historico"]) :is(.stock-cell-clamp,.stock-truncate) {display:block;white-space:normal;overflow:visible;max-width:none;-webkit-line-clamp:unset;overflow-wrap:anywhere}
.stock-history-card .stock-balance-delta {display:block;margin-top:4px;font-size:12px}
.stock-history-card .stock-reason-origin {display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0}
.stock-history-card .stock-user-with-action {display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.stock-history-card .stock-user-cell {min-width:0;flex:1}
@media(max-width:760px) {
  :is([data-page="estoque"], [data-page="estoque/historico"]) #mv-kpis {grid-template-columns:repeat(2,minmax(0,1fr));padding:12px;gap:16px 0}
  :is([data-page="estoque"], [data-page="estoque/historico"]) .stock-kpi-card:nth-child(2n) {border-right:0}
  :is([data-page="estoque"], [data-page="estoque/historico"]) .stock-history-card {padding:14px!important}
  [data-page^="produtos/"] .prd-subpage-toolbar__top {align-items:stretch;flex-direction:column}
}
:is([data-page="estoque"], [data-page="estoque/historico"]) .stock-history-title-icon {width:58px;height:58px;flex:0 0 58px;display:grid;place-items:center;border:1px solid #dbe7ff;border-radius:12px;background:#f2f7ff;color:#2563eb}
:is([data-page="estoque"], [data-page="estoque/historico"]) .stock-page-head-copy {flex:1;min-width:0}
:is([data-page="estoque"], [data-page="estoque/historico"]) .stock-kpi-card:is(.stock-kpi-card--green,.stock-kpi-card--orange) .stock-kpi-icon {display:grid;position:absolute;bottom:0;left:calc(50% - 48px);width:24px;height:32px;background:transparent;color:#16a34a}
:is([data-page="estoque"], [data-page="estoque/historico"]) .stock-kpi-card--orange .stock-kpi-icon {color:#ef4444!important}
@media(max-width:760px) {
  :is([data-page="estoque"], [data-page="estoque/historico"]) .stock-history-title-icon {display:none}
}
:is([data-page="estoque"], [data-page="estoque/historico"], [data-page="produtos/categorias"], [data-page="produtos/complementos"], [data-page="produtos/combos"]) {
  --admin-button-primary:#2563eb; --admin-button-primary-hover:#1d4ed8; --admin-button-primary-active:#1e40af;
  --admin-primary:#2563eb; --admin-primary-hover:#1d4ed8; --admin-text:#14213d;
}
@media(min-width:769px) and (max-width:1200px) {
  [data-page^="produtos/"] .prd-subpage-toolbar__top {flex-wrap:wrap}
  [data-page^="produtos/"] .prd-subpage-toolbar__search {flex:1 0 100%;width:100%}
  [data-page^="produtos/"] .prd-subpage-toolbar__actions {flex-wrap:wrap;justify-content:flex-end;width:100%}
}
/* Keep the product name aligned when the shared workspace adds its own table rules. */
:is([data-page="produtos"], [data-page="produtos/categorias"], [data-page="produtos/complementos"], [data-page="produtos/combos"]).prd-workspace .va-products-table .va-col-product {text-align:left}
:is([data-page="produtos"], [data-page="produtos/categorias"], [data-page="produtos/complementos"], [data-page="produtos/combos"]).prd-workspace .va-products-table .prd-product-main {flex-direction:row;justify-content:flex-start;align-items:center;gap:12px}
:is([data-page="produtos"], [data-page="produtos/categorias"], [data-page="produtos/complementos"], [data-page="produtos/combos"]).prd-workspace .prd-product-main-copy {text-align:left}
