/* Component adaptations only; colours and type inherit the shared CRM theme. */
.admin-production{margin-top:24px;color:var(--gt-heading,#173f31);font-variant-numeric:tabular-nums;--production-soft:var(--crm-soft,var(--gt-surface,#fafaf7))}
.admin-production[hidden]{display:none}
#app-view.app-shell #commercial-home[data-admin-production="true"]>.operator-dashboard,#app-view.app-shell #commercial-home[data-admin-production="true"]>.home-hero-grid{display:none!important}
.admin-production-head,.admin-production-controls{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}
.admin-production-head{padding:24px 28px;background:#fff;border:1px solid var(--gt-line,#dce5df);border-radius:var(--crm-radius,14px);box-shadow:none}
.admin-production-head h1{margin:4px 0 8px;font-size:clamp(1.5rem,2.2vw,1.9rem);letter-spacing:-.035em;line-height:1.2}
.admin-production-head p{margin:4px 0;color:var(--gt-sent-text,#58636a)}
.admin-production-head .eyebrow{color:var(--gt-heading,#173f31);font-size:.875rem;font-weight:700;letter-spacing:.06em}
.admin-production-controls{gap:16px;align-items:flex-end}
.admin-production-controls label{display:grid;gap:8px;font-size:.875rem;font-weight:600;min-width:210px}
.admin-production-controls label:has([data-admin-month]){min-width:300px}
.admin-production-controls select{width:100%;min-height:44px;border-radius:12px}
.admin-production-controls .portal-month-stepper{display:flex;gap:8px;min-width:280px}
.admin-production-controls .portal-month-stepper select{min-width:0;flex:1}
.admin-production-controls select[data-admin-month]{background:var(--selection-surface,#eaf6c5);font-weight:650}
.admin-production-controls select[data-selection-active="true"]{background:var(--selection-surface,#eaf6c5)}
.admin-production-section{margin-top:20px;padding:24px;border:1px solid var(--gt-line,#dce5df);border-radius:var(--crm-radius,14px);background:#fff;min-width:0;box-shadow:none}
.admin-production-section h2{font-size:1.125rem;line-height:1.4;letter-spacing:-.02em;margin:0 0 16px}
.admin-production-section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.admin-production-section-head h2{margin-bottom:0}
.admin-production-section-head p{margin:0;padding:8px 12px;border-radius:10px;background:var(--production-soft)}
.admin-production-section-head p,.admin-production-caption{font-size:.875rem;color:var(--gt-sent-text,#58636a);line-height:1.5}
.admin-production-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:16px}
.admin-production-grid.energy{grid-template-columns:repeat(2,minmax(0,1fr))}
.admin-production-card{padding:20px;border:1px solid var(--gt-line,#dce5df);border-radius:16px;background:#fff;min-width:0}
.admin-production-grid.energy>.admin-production-card{background:#fff;border-color:var(--crm-line,var(--gt-line,#dce5df));padding:20px}
.admin-production-grid.energy .admin-production-value{font-size:2.25rem}
.admin-production-card h3{font-size:1rem;margin:0 0 12px;line-height:1.4}
.admin-production-card p{font-size:.875rem;margin:6px 0 14px;color:var(--gt-sent-text,#58636a)}
.admin-production .admin-production-number{display:inline;padding:2px 4px;min-height:0;border:0;border-radius:5px;background:transparent;color:inherit;font:inherit;font-weight:700;box-shadow:none;cursor:pointer;text-decoration:none}
.admin-production .admin-production-number:hover,.admin-production-link:hover{background:var(--selection-surface,#eaf6c5);text-decoration:underline}
.admin-production .admin-production-number:focus-visible,.admin-production-link:focus-visible{outline:2px solid var(--selection-border,#9bc52b);outline-offset:3px}
.admin-production-value{font-size:2.25rem;line-height:1.15;letter-spacing:-.04em;color:var(--gt-heading,#173f31)}
.admin-production-outcomes{display:flex;gap:8px 12px;flex-wrap:wrap;font-size:.875rem;margin-top:12px;line-height:1.5}
.admin-production-outcomes>span{display:inline-flex;gap:4px;align-items:center}
.admin-production-card>.admin-production-outcomes{border-top:1px solid var(--gt-line,#dce5df);padding-top:12px}
.admin-production-outcomes>span:first-child{color:var(--gt-completed-text,#00875f)}
.admin-production-outcomes+small{display:block;margin-top:8px;font-size:.875rem;color:var(--gt-sent-text,#58636a)}
.admin-production-agents{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:18px}
.admin-production-agents article{padding:16px 18px;border:1px solid var(--gt-line,#e4ebe5);border-radius:14px;min-width:0;background:#fff;transition:border-color .15s,background-color .15s}
.admin-production-agents article:hover{background:var(--production-soft);border-color:var(--selection-border,#9bc52b)}
.admin-production-agents .admin-production-outcomes{gap:8px 14px;margin-top:6px}
.admin-production-agent-line{display:grid;grid-template-columns:minmax(0,1fr) 56px;gap:8px 16px;align-items:center}
.admin-production-agent-line>.admin-production-link{font-weight:650;overflow-wrap:anywhere}
.admin-production-agent-line>strong{grid-column:2;grid-row:1;font-size:1.5rem;letter-spacing:-.025em}
.admin-production-agent-line>progress{grid-column:1 / -1;grid-row:2}
.admin-production-link{padding:4px 0;background:none;border:0;color:inherit;font:inherit;min-height:32px;text-align:left;cursor:pointer;box-shadow:none}
.admin-production-agent-line>strong{text-align:right}
.admin-production-agent-line progress{width:100%;height:5px;border:0;border-radius:8px;overflow:hidden;accent-color:var(--gt-completed-text,#00875f)}
.admin-production-agent-line progress::-webkit-progress-bar{background:#e9eeeb;border-radius:8px}
.admin-production-agent-line progress::-webkit-progress-value{background:var(--gt-completed-text,#00875f);border-radius:8px}
.admin-production-columns{display:grid;grid-template-columns:1fr;gap:0;align-items:start}
.admin-production-table{overflow-x:auto;border:1px solid var(--gt-line,#e4ebe5);border-radius:12px;margin-top:16px}
.admin-production tbody tr:last-child>*,.admin-production-dialog tbody tr:last-child>*{border-bottom:0}
.admin-production tbody tr:hover{background:var(--production-soft)}
.admin-production table th{line-height:1.45;overflow-wrap:normal;word-break:normal}
.admin-production td{font-variant-numeric:tabular-nums}
.admin-production table td:last-child{font-weight:700}
.admin-production table .admin-production-number{min-width:28px;min-height:32px}
.admin-production table,.admin-production-dialog table{border-collapse:collapse;width:100%;font-size:.875rem}
.admin-production th,.admin-production td,.admin-production-dialog th,.admin-production-dialog td{padding:12px 10px;text-align:right;border-bottom:1px solid var(--gt-line,#e4ebe5)}
.admin-production th:first-child,.admin-production td:first-child,.admin-production-dialog th,.admin-production-dialog td{text-align:left}
.admin-production thead th{background:var(--gt-surface,#fafaf7);font-weight:650}
.admin-production tbody th{font-weight:500}
.admin-production-grid.conditions{align-items:start}
.admin-production-grid.conditions>.admin-production-section{margin-top:4px;padding:20px}
.admin-production-dialog{padding:0;width:min(1100px,94vw);max-height:85vh;border:1px solid var(--gt-line,#dce5df);border-radius:var(--crm-radius,14px);color:var(--gt-heading,#173f31);background:#fff}
.admin-production-dialog::backdrop{background:rgba(15,35,25,.35)}
.admin-production-dialog[open]{display:flex;flex-direction:column}
.admin-production-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 24px;border-bottom:1px solid var(--gt-line,#dce5df);flex:none}
.admin-production-dialog h2{margin:0;font-size:1.2rem}
.admin-production-dialog header p{font-size:.875rem;margin:6px 0 0}
.admin-production-detail{overflow:auto;padding:0 16px 20px}
.admin-production-detail small{display:block;font-size:.875rem;margin-top:5px;overflow-wrap:anywhere}
.admin-production-loading{padding:24px;background:#fff;border-radius:16px}
@media(max-width:1100px){.admin-production-grid.conditions,.admin-production-columns{grid-template-columns:1fr}.admin-production-controls{flex:1}.admin-production-controls label{flex:1;min-width:180px}.admin-production-head{padding:22px}}
@media(max-width:750px){.admin-production-agents{grid-template-columns:1fr}}
@media(max-width:650px){.admin-production-head,.admin-production-controls{display:grid;width:100%;gap:16px}.admin-production-head{padding:20px}.admin-production-controls label,.admin-production-controls label:has([data-admin-month]){min-width:0}.admin-production-controls .portal-month-stepper{min-width:0}.admin-production-grid,.admin-production-grid.energy{grid-template-columns:1fr}.admin-production-section{padding:18px}.admin-production-section-head{align-items:flex-start}.admin-production-section-head p{width:100%}.admin-production-grid.energy>.admin-production-card{padding:20px}.admin-production-agent-line{grid-template-columns:1fr 50px;gap:8px}.admin-production-dialog>header{padding:16px}.admin-production-dialog h2{font-size:1rem}}
@media(prefers-reduced-motion:reduce){.admin-production-agents article{transition:none}}

/* Production uses the canonical CRM surfaces and status tokens. */
#app-view.app-shell .admin-production :is(.admin-production-head,.admin-production-section,.admin-production-card,.admin-production-agents article){border-color:var(--crm-line,var(--gt-line,#dce5df));border-radius:var(--crm-radius,14px);box-shadow:none}
#app-view.app-shell .admin-production .admin-production-outcomes{gap:8px;font-size:.875rem}
#app-view.app-shell .admin-production .admin-production-outcomes>span{padding:4px 8px;border-radius:8px;line-height:1.5;background:var(--production-soft);color:var(--crm-ink,var(--gt-heading,#173f31))}
#app-view.app-shell .admin-production .admin-production-outcomes>span:first-child{background:var(--gt-completed-bg,#edf7f1);color:var(--gt-completed-text,#00875f)}
#app-view.app-shell .admin-production .admin-production-outcomes>span:nth-child(2){background:var(--gt-cancelled-bg,#f5f3ef);color:var(--gt-cancelled-text,#655e54)}
#app-view.app-shell .admin-production .admin-production-outcomes>span:nth-child(3){background:var(--gt-ko-bg,#fcf1f0);color:var(--gt-ko-text,#a63f36)}
#app-view.app-shell .admin-production .admin-production-outcomes .admin-production-number{padding:0 3px}
#app-view.app-shell .admin-production .admin-production-agent-line>.admin-production-link{min-height:44px}
#app-view.app-shell .admin-production .admin-production-agent-line>strong{font-size:1.35rem}
#app-view.app-shell .admin-production .admin-production-agents article:hover{background:var(--production-soft);border-color:var(--crm-line,var(--gt-line,#dce5df))}
@media(max-width:650px){#app-view.app-shell .admin-production .admin-production-section{padding:16px}#app-view.app-shell .admin-production .admin-production-agents article{padding:14px}#app-view.app-shell .admin-production .admin-production-outcomes{gap:6px}}

/* Restrained GreenTech lime accents, inherited from the CRM selection palette. */

#app-view.app-shell .admin-production .admin-production-agent-line progress{accent-color:var(--selection-surface,#b9f12b)}
#app-view.app-shell .admin-production .admin-production-agent-line progress::-webkit-progress-value{background:var(--selection-surface,#b9f12b)}
#app-view.app-shell .admin-production .admin-production-agent-line progress::-moz-progress-bar{background:var(--selection-surface,#b9f12b);border-radius:8px}
#app-view.app-shell .admin-production .admin-production-agents article:hover{border-color:var(--selection-border,#9bc52b)}

/* Balanced CRM workspace: one heading accent and consistent component rhythm. */
#app-view.app-shell .admin-production .admin-production-section{padding:22px 24px}
#app-view.app-shell .admin-production .admin-production-section h2{display:flex;align-items:center;gap:10px;font-size:1.125rem;line-height:1.4}
#app-view.app-shell .admin-production .admin-production-section h2::before{content:"";flex:0 0 4px;align-self:stretch;min-height:20px;border-radius:4px;background:var(--selection-surface,#b9f12b)}
#app-view.app-shell .admin-production .admin-production-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 16px;align-content:start;padding:18px 20px;background:var(--production-soft)}
#app-view.app-shell .admin-production .admin-production-card h3{align-self:center;margin:0;font-size:1rem;line-height:1.4}
#app-view.app-shell .admin-production .admin-production-card .admin-production-value{grid-column:2;grid-row:1 / 3;align-self:center;font-size:2rem;line-height:1.15}
#app-view.app-shell .admin-production .admin-production-card>p{grid-column:1;margin:0;font-size:.875rem;line-height:1.5}
#app-view.app-shell .admin-production .admin-production-card>.admin-production-outcomes{grid-column:1 / -1;margin-top:8px;padding-top:12px}
#app-view.app-shell .admin-production .admin-production-card>small{grid-column:1 / -1;min-height:24px;margin:0;font-size:.875rem;line-height:1.5}
#app-view.app-shell .admin-production .admin-production-card:not(:has(>small))::after{content:"";grid-column:1 / -1;height:24px}
#app-view.app-shell .admin-production .admin-production-agents{gap:14px}
#app-view.app-shell .admin-production .admin-production-agents article{display:flex;flex-direction:column;gap:10px;padding:16px 18px}
#app-view.app-shell .admin-production .admin-production-agents .admin-production-outcomes{margin-top:0}
#app-view.app-shell .admin-production .admin-production-agents article>small{margin:0;line-height:1.5;font-size:.875rem}
#app-view.app-shell .admin-production .admin-production-section-head p{background:#edf8d4;color:var(--crm-ink,#173f31)}
#app-view.app-shell .admin-production .admin-production-table table{min-width:480px;table-layout:auto}
#app-view.app-shell .admin-production .admin-production-columns .admin-production-table table{min-width:640px}
#app-view.app-shell .admin-production .admin-production-table :is(th,td){padding:10px 14px;line-height:1.5;word-break:normal;overflow-wrap:normal}
#app-view.app-shell .admin-production .admin-production-table thead th{background:var(--crm-soft,#f8fbf9);font-size:.875rem}
#app-view.app-shell .admin-production .admin-production-table :is(th,td):not(:first-child){white-space:nowrap}
#app-view.app-shell .admin-production .admin-production-table :is(th,td):first-child{width:46%;text-align:left}
#app-view.app-shell .admin-production .admin-production-table .admin-production-number{min-height:36px}
#app-view.app-shell .admin-production .admin-production-grid.conditions{grid-template-columns:repeat(2,minmax(0,1fr))}
#app-view.app-shell .admin-production .admin-production-grid.conditions>.admin-production-section:last-child{grid-column:1 / -1}
#app-view.app-shell .admin-production .admin-production-grid.conditions .admin-production-table table{min-width:360px}
@media(max-width:1000px){#app-view.app-shell .admin-production .admin-production-grid:not(.energy):not(.conditions){grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:750px){#app-view.app-shell .admin-production .admin-production-grid.conditions{grid-template-columns:1fr}}
@media(max-width:650px){#app-view.app-shell .admin-production .admin-production-section{padding:16px}#app-view.app-shell .admin-production .admin-production-grid:not(.conditions){grid-template-columns:1fr}#app-view.app-shell .admin-production .admin-production-card{padding:16px}#app-view.app-shell .admin-production .admin-production-section-head p{box-sizing:border-box;width:100%}#app-view.app-shell .admin-production .admin-production-table :is(th,td){padding:10px}}

/* Final spacing pass: subdued totals, complete product rows, compact agent summaries. */
#app-view.app-shell .admin-production .admin-production-products{display:flex;flex-wrap:wrap;gap:14px}
#app-view.app-shell .admin-production .admin-production-products>.admin-production-card{box-sizing:border-box;flex:1 1 calc((100% - 28px)/3);min-width:0}
#app-view.app-shell .admin-production .admin-production-products>.admin-production-card:last-child:nth-child(3n + 1){flex-basis:100%;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:6px 20px}
#app-view.app-shell .admin-production .admin-production-products>.admin-production-card:last-child:nth-child(3n + 1)>.admin-production-outcomes{grid-column:3;grid-row:1 / 3;border-top:0;padding-top:0;margin-top:0}
#app-view.app-shell .admin-production .admin-production-products>.admin-production-card:last-child:nth-child(3n + 1)>small{grid-column:1 / -1}
#app-view.app-shell .admin-production .admin-production-card[data-empty="true"]{background:#fff}
#app-view.app-shell .admin-production .admin-production-card[data-empty="true"] .admin-production-value{font-size:1.5rem;color:var(--crm-muted,#687e71)}
#app-view.app-shell .admin-production .admin-production-card[data-empty="true"] .admin-production-outcomes>span{background:var(--production-soft);color:var(--gt-sent-text,#58636a)}
#app-view.app-shell .admin-production .admin-production-agents{gap:10px}
#app-view.app-shell .admin-production .admin-production-agents article{padding:10px 16px;gap:6px}
#app-view.app-shell .admin-production .admin-production-agents .admin-production-outcomes>span{padding:3px 7px}
#app-view.app-shell .admin-production .admin-production-agents article>small{font-size:.875rem}
@media(max-width:1000px){#app-view.app-shell .admin-production .admin-production-products>.admin-production-card{flex-basis:calc((100% - 14px)/2)}#app-view.app-shell .admin-production .admin-production-products>.admin-production-card:last-child:nth-child(3n + 1){grid-template-columns:minmax(0,1fr) auto}#app-view.app-shell .admin-production .admin-production-products>.admin-production-card:last-child:nth-child(3n + 1)>.admin-production-outcomes{grid-column:1 / -1;grid-row:auto;border-top:1px solid var(--crm-line,#dce5df);padding-top:12px;margin-top:8px}}
@media(max-width:650px){#app-view.app-shell .admin-production .admin-production-products>.admin-production-card{flex-basis:100%}#app-view.app-shell .admin-production .admin-production-agents article{padding:12px 14px}}

/* The individual workspace replaces the previous personal summary only. */
#app-view.app-shell #commercial-home[data-personal-production="true"]>:is(.agent-production,.operator-dashboard,.home-hero-grid){display:none!important}
@media(max-width:650px){#app-view.app-shell #commercial-home[data-personal-production="true"] .admin-production-controls{display:block}#app-view.app-shell #commercial-home[data-personal-production="true"] .admin-production-controls label{width:100%;box-sizing:border-box}}

/* Names are the primary links; table quantities remain plain values. */
#app-view.app-shell .admin-production button.admin-production-label{display:inline-block;max-width:100%;padding:5px 0;border:0;background:transparent;color:var(--crm-ink,#173f31);font:inherit;font-weight:600;text-align:left;line-height:1.45;cursor:pointer;box-shadow:none;text-decoration:none;text-underline-offset:4px}
#app-view.app-shell .admin-production button.admin-production-label:hover{color:var(--gt-completed-text,#00875f);text-decoration:underline;background:transparent}
#app-view.app-shell .admin-production button.admin-production-label:focus-visible{outline:3px solid var(--selection-border,#b3d271);outline-offset:4px;border-radius:3px}
#app-view.app-shell .admin-production .admin-production-table tbody tr:has(.admin-production-label:hover){background:var(--selection-surface-soft,#f1f7e5)}
html body dialog.admin-production-dialog[open]{overflow:hidden!important;min-height:0;max-height:calc(100dvh - 40px);padding:0;isolation:isolate}
.admin-production-dialog .admin-production-detail{flex:1;min-height:0;overflow:auto;padding:0 20px 16px}
.admin-production-dialog .admin-production-detail table{table-layout:auto;font-size:.875rem;line-height:1.5}
.admin-production-dialog .admin-production-detail thead th{position:sticky;top:0;z-index:1;background:var(--crm-soft,#fafaf7);padding:12px 14px;font-size:.75rem;font-weight:650;color:var(--crm-muted,#63766b);white-space:nowrap}
.admin-production-dialog .admin-production-detail td{padding:14px;border-color:var(--crm-line,#e2e9e3);vertical-align:top}
.admin-production-dialog .admin-production-detail tbody tr:hover{background:var(--crm-soft,#fafaf7)}
.admin-production-dialog .production-customer-link{font-weight:650;line-height:1.45;padding:0;color:var(--gt-completed-text,#00875f);min-height:30px;text-decoration:underline;text-decoration-color:transparent;text-underline-offset:4px}
.admin-production-dialog .production-customer-link:hover{text-decoration-color:currentColor;background:transparent}
.admin-production-dialog .admin-production-detail small{margin-top:3px;font-size:.75rem;color:var(--crm-muted,#63766b);line-height:1.5}
.production-product-badge{display:inline-block;font-size:.8rem;font-weight:600}
.production-state{display:inline-flex;align-items:center;padding:4px 9px;border-radius:7px;background:var(--gt-sent-bg,#f0f3ef);color:var(--gt-sent-text,#52655b);font-size:.75rem;font-weight:600;white-space:nowrap}
.production-state[data-state="inserita"]{background:var(--gt-completed-bg,#edf7f1);color:var(--gt-completed-text,#00875f)}
.production-state[data-state="ko"]{background:var(--gt-ko-bg,#fcf1f0);color:var(--gt-ko-text,#a63f36)}
.production-state[data-state="annullata"]{background:var(--gt-cancelled-bg,#f5f3ef);color:var(--gt-cancelled-text,#655e54)}
.production-detail-filters{display:flex;flex-wrap:wrap;gap:8px;flex:none;padding:12px 20px;border-bottom:1px solid var(--crm-line,#e2e9e3);background:#fff}
.production-detail-filters button{min-height:36px;padding:6px 10px;border:1px solid var(--crm-line,#dce5df);border-radius:9px;background:#fff;color:var(--crm-ink,#173f31);font:inherit;font-size:.8rem;cursor:pointer;box-shadow:none}
.production-detail-filters button span{font-weight:700;margin-left:5px;font-variant-numeric:tabular-nums}
.production-detail-filters button[aria-pressed="true"]{background:var(--selection-surface-soft,#eff7dd);border-color:var(--selection-border,#b3d271);font-weight:650}
.production-detail-empty{text-align:center!important;padding:28px!important;color:var(--crm-muted,#63766b)}
@media(max-width:650px){.admin-production-dialog .admin-production-detail{padding:0 14px 14px}.production-detail-filters{padding:10px 14px;gap:6px}.admin-production-dialog .admin-production-detail table,.admin-production-dialog .admin-production-detail tbody{display:block}.admin-production-dialog .admin-production-detail thead{display:none}.admin-production-dialog .admin-production-detail tbody tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;padding:14px 0;border-bottom:1px solid var(--crm-line,#e2e9e3)}.admin-production-dialog .admin-production-detail td{display:block;padding:0;border:0;min-width:0;overflow-wrap:anywhere}.admin-production-dialog .admin-production-detail td:first-child{grid-column:1 / -1}.admin-production-dialog .admin-production-detail td::before{content:attr(data-label);display:block;font-size:.7rem;color:var(--crm-muted,#63766b);margin-bottom:4px}.admin-production-dialog .admin-production-detail td:first-child::before{display:none}.admin-production-dialog .production-customer-link{min-height:36px;text-align:left}.admin-production-dialog .production-state{white-space:normal}.admin-production-dialog .production-detail-empty{grid-column:1 / -1}}

/* One GreenTech outline for the whole active row, never for its inner link. */
html body :is(.admin-production-table,.admin-production-detail) tbody tr:is(:hover,:focus-within){
 background:var(--selection-surface-soft,#f1f7e5)!important;outline:1px solid var(--selection-border,#9bc52b);outline-offset:-1px;
}
html body :is(.admin-production-table,.admin-production-detail) tbody tr:is(:hover,:focus-within)>:is(th,td){background:transparent!important}
html body :is(.admin-production-table,.admin-production-detail) tbody tr :is(button,a):is(:hover,:focus,:focus-visible){
 background:transparent!important;border-color:transparent!important;outline:none!important;box-shadow:none!important;border-radius:0!important;
}
#app-view.app-shell .admin-production .admin-production-table tbody tr:has(.admin-production-label:hover){background:var(--selection-surface-soft,#f1f7e5)}

/* Keep row labels visually unchanged in every pointer and keyboard state. */
html body #app-view.app-shell #commercial-home .admin-production .admin-production-table tbody tr button.admin-production-label,
html body #app-view.app-shell #commercial-home .admin-production .admin-production-table tbody tr button.admin-production-label:is(:hover,:focus,:focus-visible,:active){
 appearance:none!important;background:transparent!important;background-image:none!important;border:0!important;border-radius:0!important;outline:0!important;box-shadow:none!important;text-decoration:none!important;font-weight:500!important;color:inherit!important;transform:none!important;filter:none!important;
}
html body #app-view.app-shell #commercial-home .admin-production .admin-production-table tbody tr button.admin-production-label::before,
html body #app-view.app-shell #commercial-home .admin-production .admin-production-table tbody tr button.admin-production-label::after{content:none!important;display:none!important}

html body :is(.admin-production-table,.admin-production-detail) tbody tr.production-clickable-row{cursor:pointer}

/* Compact product list: one shared white surface, no nested cards. */
#app-view.app-shell #commercial-home .admin-production .admin-production-product-list{display:grid;gap:0}
#app-view.app-shell #commercial-home .admin-production .admin-production-product-row{padding:16px 18px;border:1px solid transparent;border-bottom-color:var(--crm-line,#e2e9e3);border-radius:0;background:#fff;cursor:pointer}
#app-view.app-shell #commercial-home .admin-production .admin-production-product-row:last-child{border-bottom-color:transparent}
#app-view.app-shell #commercial-home .admin-production .admin-production-product-row:is(:hover,:focus-within){border-color:var(--selection-border,#9bc52b);border-radius:12px;background:var(--selection-surface-soft,#f1f7e5)}
#app-view.app-shell #commercial-home .production-product-line{display:grid;grid-template-columns:minmax(0,1fr) minmax(80px,180px) 42px 14px;gap:16px;align-items:center}
#app-view.app-shell #commercial-home .production-product-line h3{margin:0;font-size:1rem;line-height:1.5}
#app-view.app-shell #commercial-home .production-product-line strong{text-align:right;font-size:1.25rem;font-weight:650;font-variant-numeric:tabular-nums}
#app-view.app-shell #commercial-home .production-product-chevron{font-size:1.25rem;color:var(--crm-muted,#63766b);text-align:right}
#app-view.app-shell #commercial-home .production-product-line progress{appearance:none;width:100%;height:8px;border:0;border-radius:8px;overflow:hidden;background:#edf1ea}
#app-view.app-shell #commercial-home .production-product-line progress::-webkit-progress-bar{background:#edf1ea;border-radius:8px}
#app-view.app-shell #commercial-home .production-product-line progress::-webkit-progress-value{background:var(--selection-surface,#b9f12b);border-radius:8px}
#app-view.app-shell #commercial-home .production-product-line progress::-moz-progress-bar{background:var(--selection-surface,#b9f12b);border-radius:8px}
#app-view.app-shell #commercial-home .production-product-meta{display:flex;align-items:center;gap:12px 20px;flex-wrap:wrap;margin-top:6px;font-size:.8rem;color:var(--crm-muted,#63766b)}
#app-view.app-shell #commercial-home .production-product-meta .admin-production-outcomes{margin:0;padding:0;border:0;font-size:.8rem}
#app-view.app-shell #commercial-home .admin-production-product-row[data-empty="true"] .production-product-line strong{color:var(--crm-muted,#63766b);font-weight:500}
/* The whole container carries selection; its text and count buttons stay plain. */
html body #app-view.app-shell #commercial-home .admin-production :is(.admin-production-link,.admin-production-label,.admin-production-number),
html body #app-view.app-shell #commercial-home .admin-production :is(.admin-production-link,.admin-production-label,.admin-production-number):is(:hover,:focus,:focus-visible,:active){
 background:transparent!important;background-image:none!important;border:0!important;border-radius:0!important;outline:0!important;box-shadow:none!important;text-decoration:none!important;color:inherit!important;transform:none!important;filter:none!important;
}
html body #app-view.app-shell #commercial-home .admin-production :is(.admin-production-link,.admin-production-label,.admin-production-number)::before,
html body #app-view.app-shell #commercial-home .admin-production :is(.admin-production-link,.admin-production-label,.admin-production-number)::after{content:none!important;display:none!important}
#app-view.app-shell #commercial-home .admin-production-card:focus-within{border-color:var(--selection-border,#9bc52b)}
#app-view.app-shell #commercial-home .admin-production-outcomes>span:focus-within{outline:1px solid var(--selection-border,#9bc52b)}
@media(max-width:650px){
 #app-view.app-shell #commercial-home .admin-production .admin-production-product-row{padding:14px 10px}
 #app-view.app-shell #commercial-home .production-product-line{grid-template-columns:minmax(0,1fr) 62px 30px 10px;gap:8px}
 #app-view.app-shell #commercial-home .production-product-meta{gap:6px 12px}
 #app-view.app-shell #commercial-home .production-product-meta .admin-production-outcomes{gap:5px}
}

/* Keep every product in its own card, using the compact line within it. */
#app-view.app-shell #commercial-home .admin-production .admin-production-product-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
#app-view.app-shell #commercial-home .admin-production .admin-production-product-row{min-width:0;padding:20px;border:1px solid var(--crm-line,#dce5df);border-radius:14px;background:#fff}
#app-view.app-shell #commercial-home .admin-production .admin-production-product-row:last-child{border-bottom-color:var(--crm-line,#dce5df)}
#app-view.app-shell #commercial-home .admin-production .admin-production-product-row:last-child:nth-child(3n + 1){grid-column:1 / -1}
#app-view.app-shell #commercial-home .admin-production-product-row .production-product-line{grid-template-columns:minmax(0,1fr) 64px 30px 10px;gap:10px}
#app-view.app-shell #commercial-home .admin-production-product-row .production-product-meta{display:grid;gap:12px;margin-top:8px}
#app-view.app-shell #commercial-home .admin-production-product-row .admin-production-outcomes{border-top:1px solid var(--crm-line,#e2e9e3);padding-top:12px;margin-top:2px}
#app-view.app-shell #commercial-home .admin-production .admin-production-product-row:is(:hover,:focus-within){border-color:var(--selection-border,#9bc52b);border-radius:14px}
@media(max-width:1100px){
 #app-view.app-shell #commercial-home .admin-production .admin-production-product-list{grid-template-columns:repeat(2,minmax(0,1fr))}
 #app-view.app-shell #commercial-home .admin-production .admin-production-product-row:last-child:nth-child(3n + 1){grid-column:auto}
 #app-view.app-shell #commercial-home .admin-production .admin-production-product-row:last-child:nth-child(2n + 1){grid-column:1 / -1}
}
@media(max-width:650px){
 #app-view.app-shell #commercial-home .admin-production .admin-production-product-list{grid-template-columns:1fr}
 #app-view.app-shell #commercial-home .admin-production .admin-production-product-row{padding:18px}
}
