/* Painel central: composição responsiva dos componentes operacionais reais. */
#app>.shell:has(.central-dashboard){display:flex;height:calc(100dvh - 82px - 116px);padding-top:clamp(8px,1.5dvh,20px);padding-bottom:0;padding-inline:var(--nf-content-left,calc(18px + (clamp(153px,calc(var(--nf-viewport-width,100vw) - 1560px),256px) - 153px)/2)) var(--nf-content-right,calc(18px + (clamp(59px,calc(var(--nf-viewport-width,100vw) - 1560px),256px) - 59px)/2))}
.central-dashboard{display:flex;flex:1;flex-direction:column;gap:clamp(10px,1.4dvh,20px);width:100%;min-width:0;min-height:0}
.central-dashboard .central-heading{display:flex;align-items:baseline;gap:14px;text-align:left;margin:0;padding:0 3px;min-width:0}
.central-dashboard .central-heading span{color:#52636b;font-size:11px;font-weight:800;letter-spacing:.12em;white-space:nowrap}
.central-dashboard .central-heading h1{font-size:clamp(19px,1.7vw,27px);font-weight:750;line-height:1.15;letter-spacing:-.025em;margin:0}
#app .central-dashboard .central-heading.novais-page-header{display:grid;grid-template-columns:minmax(0,1fr) auto 34px;align-items:center;gap:12px;min-height:54px;padding:7px 14px;margin:0;border:2px solid #181a1c;background:#fffdf8;text-align:left}
#app .central-dashboard .central-heading.novais-page-header>.novais-title-copy{grid-column:1;grid-row:1;text-align:left}
#app .central-dashboard .central-heading.novais-page-header>.novais-title-copy h1{text-align:left;font-size:clamp(19px,1.7vw,27px);line-height:1.1;margin:0}
#app .central-dashboard .central-heading.novais-page-header>.novais-header-actions{grid-column:2;grid-row:1;justify-self:end;width:auto;white-space:nowrap;font-size:10px}
#app .central-dashboard .central-heading.novais-page-header>img.novais-page-n{grid-column:3;grid-row:1;width:34px;height:32px}
.central-productions{background:#fffdf8;border:2px solid #181a1c;border-radius:14px;padding:clamp(12px,1.2vw,20px);min-width:0;box-shadow:0 5px 16px #2737410a}
.central-productions-actions{display:flex;justify-content:flex-end;gap:6px;flex-wrap:wrap;margin-bottom:10px}
.central-productions-actions button{padding:6px 9px;font-size:11px;font-weight:700;background:#f3f6f7}
.central-production-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(8px,1vw,16px);min-width:0}
.central-production-grid:has(> :nth-child(5)){grid-template-columns:repeat(6,minmax(0,1fr))}
.central-production-card{display:flex;flex-direction:column;min-width:0;min-height:clamp(145px,19.5dvh,254px);padding:clamp(9px,1.05vw,17px);text-align:left;background:#f7fafb;border:2px solid #181a1c;border-radius:11px;box-shadow:none;overflow:hidden;color:#263139}
.central-production-card:hover{background:#fff;border-color:#181a1c;box-shadow:0 6px 16px #263e481b;transform:translateY(-2px)}
.central-production-card.is-empty{background:#f2f5f5;color:#75838a;border-style:dashed;cursor:default}
.central-production-card.is-empty:hover{transform:none;box-shadow:none}
.central-card-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;width:100%}
.central-card-head>strong{font-size:clamp(12px,1vw,15px);font-weight:750;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.central-line-energy{--energy-base:#c1cbd0;--energy-glow:#f2f7f8;position:relative;display:block;flex:1 1 40px;min-width:28px;height:10px;border:2px solid #191d20;border-radius:999px;background:var(--energy-base);overflow:hidden}
.central-line-energy::after{content:"";position:absolute;top:0;bottom:0;left:-42%;width:42%;background:linear-gradient(90deg,transparent,var(--energy-glow),transparent);animation:central-energy-sweep 2.6s linear infinite}
.central-line-energy.is-running{--energy-base:var(--nf-green,#397653);--energy-glow:#b9e8c8}
.central-line-energy.is-stopped{--energy-base:var(--nf-red,#a03c45);--energy-glow:#ffc5c9}
.central-line-energy.is-delayed{--energy-base:#e5ae24;--energy-glow:#fff4ba}
.central-line-energy.is-interval{--energy-base:#7956a4;--energy-glow:#e1ccff}
.central-line-energy.is-idle::after{animation-duration:4.3s;opacity:.7}
@keyframes central-energy-sweep{to{left:100%}}
.central-state{display:inline-flex;align-items:center;gap:5px;max-width:55%;font-size:10px;font-weight:680;color:#56666d;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.central-state i{display:inline-block;flex:0 0 7px;width:7px;height:7px;border-radius:50%;background:#9ea9ad}
.central-state.is-live i{background:#168a53;box-shadow:0 0 0 3px #168a531b}
.central-brand-row{display:flex;align-items:center;min-width:0;height:clamp(32px,4.7dvh,53px);margin:5px 0 2px;overflow:hidden}
.central-brand{display:inline-flex;align-items:center;min-width:0;max-width:100%;height:100%;color:#49616b;font-size:12px;font-weight:700;overflow:hidden}
.central-brand>span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.central-brand:has(.company-logo)>span{display:none}
.central-brand .company-logo{display:block;width:auto;height:auto;max-width:min(100%,155px);max-height:100%;object-fit:contain;object-position:left center;padding:2px;background:transparent;border-radius:0;flex:0 1 auto}
.central-brand-placeholder{display:flex;align-items:center;height:clamp(32px,4.7dvh,53px);font-size:11px;font-weight:650;color:#839097}
.central-production-card h3{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;min-height:2.45em;max-width:100%;margin:0 0 auto;overflow:hidden;overflow-wrap:anywhere;color:#263139;font-size:clamp(13px,1.02vw,17px);font-weight:760;line-height:1.22}
.central-production-card.is-empty h3{color:#78878d}
.central-production-numbers{display:flex;align-items:baseline;gap:4px;margin-top:8px;min-width:0;font-variant-numeric:tabular-nums;white-space:nowrap}
.central-production-numbers b{font-size:clamp(20px,1.75vw,29px);font-weight:750;letter-spacing:-.04em;line-height:1}
.central-production-numbers span{color:#586971;font-size:clamp(10px,.8vw,13px);overflow:hidden;text-overflow:ellipsis}
.central-progress{height:6px;flex:0 0 6px;width:100%;margin:8px 0 5px;background:#dce4e7;border-radius:5px;overflow:hidden}
.central-progress i{display:block;height:100%;background:#177c57;border-radius:5px}
.central-production-card.is-empty .central-progress i{width:0!important}
.central-production-foot{display:flex;align-items:center;justify-content:space-between;gap:6px;width:100%;font-size:10px;font-weight:650;color:#52636b;white-space:nowrap}
.central-production-foot span{min-width:0;overflow:hidden;text-overflow:ellipsis}
.central-production-foot span:first-child{color:var(--nf-green,#397653);font-size:clamp(13px,1vw,16px);font-weight:800}
.central-production-card.is-empty .central-production-foot span:first-child{color:#77858a}
.central-summary{display:flex;align-items:center;gap:16px;min-width:0;margin-top:9px;border-top:1px solid #d0d8db;padding-top:8px;color:#29383e}
.central-summary>strong{flex:0 0 auto;font-size:12px;font-weight:800}
.central-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;flex:1;min-width:0}
.central-summary-grid>div{display:flex;align-items:center;gap:7px;min-width:0;padding:4px 7px;border:1px solid #d2dcdf;border-radius:6px;background:#f7faf9;font-size:10px;white-space:nowrap}
.central-summary-grid>div>b{margin-right:auto;font-size:10px;overflow:hidden;text-overflow:ellipsis}
.central-summary-grid>div>span{color:#53646c}
.central-summary-grid>div>span>strong{color:#263139;font-size:11px;font-variant-numeric:tabular-nums}
.central-lower{display:grid;flex:1;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(10px,1vw,18px);height:auto;min-height:0;min-width:0}
.central-lower>div{min-width:0;min-height:0}
.central-lower :is(.workplace-hub,.personal-todos,.central-unavailable){height:100%;min-width:0;margin:0;padding:0;background:#fffdf9;border:2px solid #181a1c;border-radius:13px;overflow:hidden}
.central-lower :is(.workplace-hub,.personal-todos){position:relative}
.central-lower .central-unavailable{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:6px;padding:20px;text-align:center}
.central-lower .central-unavailable h2{font-size:16px;font-weight:750;margin:0}
.central-lower .central-unavailable p{font-size:12px;margin:0}
.central-lower .central-section-toggle{height:100%;min-height:0}
.central-lower .central-section-title{display:flex;align-items:center;gap:12px;min-height:52px;padding:9px 15px;padding-right:275px;background:#e7eff2;border-bottom:2px solid #181a1c}
.central-lower .personal-todos .central-section-title{background:#e8f2ed}
.central-lower .central-section-title strong{display:block;color:#243740;font-size:16px;line-height:1.1}
.central-lower .central-section-title small{display:block;color:#566870;font-size:10px;margin-top:4px}
.central-lower .central-section-body{display:flex;flex-direction:column;gap:8px;height:calc(100% - 52px);min-height:0;padding:10px 13px 12px}
.central-lower .panel-heading{margin:0;gap:5px;min-height:0}
.central-lower .panel-heading{position:absolute;top:8px;right:42px;z-index:2}
.central-lower .panel-heading>div:first-child{display:none}
.central-lower .panel-heading .actions{width:100%;justify-content:flex-end}
.central-lower .panel-heading button{padding:6px 9px;font-size:11px;font-weight:700}
.central-lower .work-urgent-banner{margin:0;padding:6px 9px;font-size:10px;line-height:1.2}
.central-lower .work-urgent-banner strong{min-width:20px;min-height:20px;font-size:12px}
.central-lower .work-hub-tabs{display:flex;flex-wrap:nowrap;gap:5px;overflow-x:auto;margin:0;scrollbar-width:thin}
.central-lower .work-hub-tabs button{min-height:31px;flex:0 0 auto;padding:5px 8px;font-size:10px;white-space:nowrap}
body #app .central-dashboard .work-hub-tabs.nf-module-tabs>button:not([data-ui-action]){display:inline-flex;flex:0 0 auto;flex-direction:row;align-items:center;min-height:31px;padding:5px 8px;font-size:10px;gap:5px;white-space:nowrap}
.central-lower :is(.work-central-list,.todo-list){display:flex;flex-direction:column;flex:1;min-height:0;max-height:none;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:2px 4px 3px 0}
.central-lower .work-central-list{max-height:calc(8 * 76px + 7 * 7px + 5px)}
.central-lower .todo-list{max-height:calc(8 * 62px + 7 * 7px + 5px)}
.central-lower .work-item-list{gap:7px}
.central-lower .work-item,.central-lower .personal-todos .todo-row{display:flex;align-items:center;gap:8px;min-width:0;padding:9px 10px;margin:0;border:1px solid #bfccd1;border-radius:8px;background:#f9fbfb;box-shadow:none}
.central-lower .work-central-list>.central-topic{min-height:76px}
.central-lower .todo-list>.todo-row{min-height:62px}
.central-lower .central-topic,.central-lower .personal-todos .todo-row.central-topic{display:block;flex:0 0 auto;height:auto;min-width:0}
.central-lower .central-topic>summary{display:block;min-width:0;list-style:none;cursor:pointer;position:relative;padding-right:14px}
.central-lower .central-topic>summary::-webkit-details-marker{display:none}
.central-lower .central-topic>summary:after{content:'⌄';position:absolute;right:0;top:0;font-size:16px;font-weight:700;color:#536770;transition:transform .18s}
.central-lower .central-topic:not([open])>summary:after{transform:rotate(-90deg)}
.central-lower .central-topic .work-item-actions{margin-top:8px;padding-top:8px;border-top:1px solid #dce4e7;justify-content:flex-start}
.central-lower .central-topic .work-item-content{width:100%}
.central-lower .central-topic .todo-title{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;gap:6px}
.central-lower .central-topic .todo-content{width:100%;padding-top:6px}
.central-lower .central-topic-meta{display:block;margin-top:3px;color:#687980;font-size:10px}
.central-lower .central-topic .todo-actions{margin-top:8px;padding-top:8px;border-top:1px solid #dce4e7;justify-content:flex-start}
.central-lower .central-topic .todo-updates{max-height:120px;overflow:auto}
/* Show the latest update as a short preview; the full sequence remains in Histórico. */
.central-lower .personal-todos .todo-row.central-topic .todo-content{min-width:0;padding-top:3px}
.central-lower .personal-todos .todo-row.central-topic .todo-content>small{display:none}
.central-lower .personal-todos .todo-row.central-topic .todo-updates{max-height:none;min-width:0;margin:3px 0;padding:0;overflow:hidden}
.central-lower .personal-todos .todo-row.central-topic .todo-updates>div{box-sizing:border-box;flex:1 1 auto;max-width:100%;height:52px;min-height:0;padding:5px 8px;overflow:hidden}
.central-lower .personal-todos .todo-row.central-topic .todo-updates>div:not(:last-child){display:none}
.central-lower .personal-todos .todo-row.central-topic .todo-updates .todo-notes{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;max-height:2.5em;margin:2px 0 0;overflow:hidden;font-size:10px;line-height:1.25}
.central-lower .personal-todos .todo-row.central-topic .todo-actions{margin-top:4px;padding-top:4px}
.central-lower .personal-todos .todo-row.central-topic .todo-actions button{min-height:27px;padding:3px 6px;line-height:1.2}
.central-lower .personal-todos .todo-row+.todo-row{margin-top:7px}
.central-lower .work-item-tags{gap:5px;margin:0 0 4px}
.central-lower .work-item-title{font-size:13px;line-height:1.25;margin:0 0 3px}
.central-lower .work-item-meta{font-size:10px}
.central-lower .work-item-actions button,.central-lower .todo-actions button{padding:5px 7px;font-size:10px}
.central-lower .work-hub-links{flex:0 0 auto;margin:0!important;gap:5px}
.central-lower .work-hub-links button{padding:5px 7px;font-size:10px}
.central-lower .todo-counts{display:flex;gap:6px;margin:0;flex-wrap:nowrap}
.central-lower .todo-counts>div,.central-lower .todo-counts>button{min-width:0;flex:1;padding:5px 7px;gap:6px;border-radius:8px}
.central-lower .todo-counts strong{font-size:20px}
.central-lower .todo-counts span{font-size:10px;line-height:1.1}
.central-lower .todo-counts>small{display:none}
.central-lower .todo-list-frame{display:flex;flex:1;min-height:0;margin:0}
.central-lower .todo-list{width:100%;height:auto!important}
.central-lower .todo-list-frame.has-preview:after{display:none}
.central-lower .personal-todos>.central-section-toggle>.central-section-body>.actions{gap:5px}
.central-lower .personal-todos [aria-pressed]{padding:5px 8px;font-size:10px}
.central-lower .todo-title{gap:4px}
.central-lower .todo-title strong{font-size:13px;line-height:1.2}
.central-lower .todo-urgency{padding:3px 6px;font-size:10px}
.central-lower .todo-content>small{font-size:10px;margin-top:3px}
.central-lower .todo-notes{font-size:11px;line-height:1.35;margin:4px 0;max-height:3em;overflow:hidden}
.central-lower .todo-actions{gap:4px}
.central-lower .todo-pagination{margin:0}
.central-lower .work-empty{padding:10px;font-size:12px;color:#596a72}
@media(max-width:1050px){.central-production-grid,.central-production-grid:has(> :nth-child(5)){grid-template-columns:repeat(2,minmax(0,1fr))}.central-lower{height:auto;min-height:0}.central-lower :is(.workplace-hub,.personal-todos){height:clamp(260px,42dvh,650px)}}
@media(max-width:1050px){.central-summary{align-items:flex-start;flex-direction:column;gap:6px}.central-summary-grid{width:100%;grid-template-columns:1fr}}
@media(max-width:740px){.central-dashboard .central-heading{align-items:flex-start;flex-direction:column;gap:2px}.central-lower{grid-template-columns:1fr}.central-production-card{min-height:174px}.central-lower :is(.workplace-hub,.personal-todos){height:clamp(290px,48dvh,650px)}}
@media(max-width:740px){.central-lower .panel-heading{position:static}.central-lower .central-section-title{padding-right:15px}}
@media(max-width:480px){.central-production-grid{gap:7px}.central-production-card{padding:8px;min-height:168px}.central-card-head{align-items:flex-start;flex-direction:column;gap:2px}.central-state{max-width:100%}.central-production-foot{flex-wrap:wrap;white-space:normal}}
@media(max-height:800px) and (min-width:1051px){.central-production-card{min-height:145px}.central-brand-row,.central-brand-placeholder{height:28px}.central-production-card h3{min-height:2.2em}.central-production-numbers{margin-top:5px}.central-production-numbers b{font-size:20px}.central-progress{margin:5px 0 4px}.central-productions{padding:11px 14px}.central-dashboard{gap:9px}}
@media(max-height:800px) and (min-width:1051px){.central-production-grid:has(> :nth-child(5)){grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:calc((100% - 3 * clamp(8px,1vw,16px))/4);overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scroll-snap-type:x mandatory}.central-production-grid:has(> :nth-child(5))>.central-production-card{scroll-snap-align:start}}
@media(min-width:1051px) and (max-width:1280px){#app>.shell:has(.central-dashboard){height:calc(100dvh - 82px - 172px)}}
@media(max-height:800px) and (min-width:1051px){#app>.shell:has(.central-dashboard){height:auto;min-height:calc(100dvh - 82px - 172px);padding-bottom:var(--nf-dock-clearance,172px)}.central-lower{flex:none;height:360px;min-height:360px}}
@media(max-width:1050px){#app>.shell:has(.central-dashboard){display:block;height:auto;padding-bottom:var(--nf-dock-clearance,130px)}}
@media(max-width:600px){#app .central-dashboard .central-heading.novais-page-header{grid-template-columns:minmax(0,1fr) 30px;gap:5px;padding:8px 10px}#app .central-dashboard .central-heading.novais-page-header>.novais-header-actions{display:none}#app .central-dashboard .central-heading.novais-page-header>img.novais-page-n{grid-column:2;width:30px;height:28px}}
/* O limite de oito linhas é uma altura mínima real, não apenas um max-height:
   o flex do painel não pode esconder os pedidos antes de chegar à oitava linha. */
@media(min-width:1500px) and (max-height:1000px){
  .central-dashboard{gap:10px}
  .central-productions{padding:10px 14px}
  .central-production-card{min-height:156px;padding:9px 12px}
  .central-brand-row,.central-brand-placeholder{height:30px;margin:3px 0 1px}
  .central-production-card h3{min-height:1.22em;-webkit-line-clamp:1;line-clamp:1;font-size:14px}
  .central-production-numbers{margin-top:4px}
  .central-production-numbers b{font-size:23px}
  .central-progress{margin:4px 0 3px}
  .central-summary{margin-top:6px;padding-top:5px}
}
@media(min-width:1500px){
  .central-lower{min-height:385px}
  .central-lower .central-section-body{padding:8px 13px 10px}
  .central-lower .work-urgent-banner{height:28px;min-height:28px;padding:3px 8px}
  .central-lower :is(.work-central-list,.todo-list){display:flex;flex-direction:column;gap:5px}
  .central-lower .work-central-list,.central-lower .todo-list{max-height:419px}
  .central-lower .work-central-list>.central-topic,.central-lower .todo-list>.todo-row{min-height:48px;padding:5px 7px}
  .central-lower .personal-todos .todo-row+.todo-row{margin-top:0}
  .central-lower .work-central-list>.central-topic .work-item-content{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:17px 16px;align-items:center;column-gap:4px;row-gap:1px}
  .central-lower .work-item-tags{grid-column:1;grid-row:1;min-width:0;margin:0;overflow:hidden;white-space:nowrap}
  .central-lower .work-item-tags :is(.work-priority,.status){padding:2px 5px;font-size:9px;line-height:1.1}
  .central-lower .work-item-title{grid-column:1 / -1;grid-row:2;font-size:12px;line-height:1.1;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .central-lower .work-item-meta{grid-column:2;grid-row:1;display:block;max-width:110px;margin:0;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .central-lower .work-item-meta span:first-child{display:none}
  .central-lower .todo-title{flex-wrap:nowrap}
  .central-lower .todo-title strong{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .central-lower .personal-todos .todo-row.central-topic>summary{display:flex;align-items:center;gap:8px}
  .central-lower .personal-todos .todo-row.central-topic>summary .todo-title{min-width:0}
  .central-lower .personal-todos .todo-row.central-topic>summary .central-topic-meta{flex:0 0 auto;margin:0}
  .central-lower .personal-todos .todo-row.central-topic .todo-content{display:flex;align-items:center;gap:8px}
  .central-lower .personal-todos .todo-row.central-topic .todo-content>.todo-notes,
  .central-lower .personal-todos .todo-row.central-topic .todo-content>.todo-updates{flex:1 1 0;min-width:0}
}
@media(max-width:1499px) and (min-width:1051px){
  #app>.shell:has(.central-dashboard){height:auto;min-height:calc(100dvh - 82px - 116px);padding-bottom:var(--nf-dock-clearance,172px)}
  .central-lower{flex:none;height:auto;min-height:0}
  .central-lower :is(.workplace-hub,.personal-todos){height:100%;min-height:755px}
  .central-lower .central-section-body{height:auto;min-height:calc(755px - 52px)}
  .central-lower :is(.work-central-list,.todo-list){flex:none;max-height:none;height:auto!important}
  .central-lower .work-central-list{height:calc(8 * 76px + 7 * 7px + 5px)!important;max-height:calc(8 * 76px + 7 * 7px + 5px)}
  .central-lower .todo-list{height:calc(8 * 62px + 7 * 7px + 5px)!important;max-height:calc(8 * 62px + 7 * 7px + 5px)}
}
@media(max-height:800px) and (min-width:1500px){
  .central-lower{flex:none;height:414px;min-height:414px}
}
@media(prefers-reduced-motion:reduce){.central-lower .central-chevron,.central-production-card{transition:none}.central-line-energy::after{animation:none;left:30%}}

/* The workstation can grow beyond the viewport; the last controls must scroll above the dock. */
#app>.shell:has(.central-dashboard){display:block;height:auto;min-height:calc(var(--nf-viewport-height,100dvh) - 82px - 116px);padding-bottom:var(--nf-dock-clearance,172px)}
@media(min-width:1500px){.central-lower{flex:none;height:414px;min-height:414px}}
