/* NATUREBA GESTÃO 1.6.5 — ajustes da tela da escala, do simulador, menu lateral e balões de explicação.
   Carregado por último. */

/* ---------- coluna dos nomes com largura fixa: os dias ficam com o resto ---------- */
html[data-theme][data-effective-theme] .scale-main .roster-head,html[data-theme][data-effective-theme] .scale-main .roster-row{grid-template-columns:minmax(200px,250px) repeat(7,minmax(44px,1fr)) 58px}
html[data-theme][data-effective-theme] .scale-main .sector-block.is-editing .roster-head,html[data-theme][data-effective-theme] .scale-main .sector-block.is-editing .roster-row{grid-template-columns:minmax(280px,320px) repeat(7,minmax(44px,1fr)) 58px}
html[data-theme][data-effective-theme] .sim-roster .roster-head,html[data-theme][data-effective-theme] .sim-roster .roster-row{grid-template-columns:minmax(200px,250px) repeat(7,minmax(40px,1fr)) 58px}

/* "Organizar" logo depois do texto */
.ng-orderhead>div{margin-left:0}
.ng-orderhead{gap:8px}

/* ---------- dia de hoje: dia em cima, data embaixo, coluna com fundo leve ---------- */
html[data-theme][data-effective-theme] .roster-head button.is-today{background:var(--sel);color:var(--green);border-bottom-color:var(--primary)}
html[data-theme][data-effective-theme] .roster-head button.is-today small{display:block;min-width:0;padding:0;margin-top:2px;border-radius:0;background:transparent;color:var(--green);font-size:inherit;font-weight:800}
html[data-theme][data-effective-theme] .roster-row .cell.is-today{background:var(--sel)}
html[data-theme][data-effective-theme] .roster-head button[data-action="day-detail"]{display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1.25}

/* ---------- barra da legenda com a navegação ---------- */
.ng-toolbar{gap:6px 8px;padding:6px 8px}
.ng-toolbar .ng-legend{flex:0 1 auto;display:flex;flex-wrap:wrap;gap:3px 7px;font-size:11px}
.ng-toolbar .ng-legend>span{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}
html[data-theme][data-effective-theme] .ng-toolbar .ng-legend .dot{width:auto;min-width:17px;height:17px;padding:0 3px;box-sizing:border-box;font-size:9px;line-height:17px;display:inline-flex;align-items:center;justify-content:center;border-radius:4px}
.ng-nav{display:flex;flex-wrap:wrap;align-items:center;gap:5px;margin-left:auto}
.ng-nav .ng-weekbox strong{font-size:12.5px}
.ng-toolbar .ng-tools{margin-left:0}
.ng-nav .ng-weekbox{height:32px}
.ng-nav .ng-weekbox button{width:28px;height:28px}
.ng-nav .ng-seg button{height:26px}
html[data-theme][data-effective-theme] .ng-nav .btn{min-height:32px}
html[data-theme][data-effective-theme] button.btn.ng-iconbtn{width:30px;min-height:30px;padding:0}

/* ---------- auditoria: "O que fazer" ---------- */
.ng-fix{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:7px}
.ng-fix>span{font-size:11.5px;font-weight:700;color:var(--text2)}
html[data-theme][data-effective-theme] .audit-reasons li{line-height:1.5;margin-bottom:10px}

/* ---------- balão de explicação (data-tip) ---------- */
.ng-ftip{position:fixed;z-index:2000;max-width:280px;box-sizing:border-box;padding:8px 11px;border-radius:9px;background:var(--tip-bg);border:1px solid var(--tip-line);color:var(--tip-text);font-size:12px;line-height:1.45;box-shadow:var(--shadow-md);pointer-events:none;animation:ngPop .12s ease-out}
[data-tip]{cursor:help}
button[data-tip],a[data-tip],select[data-tip]{cursor:pointer}
@media (prefers-reduced-motion:reduce){.ng-ftip{animation:none}}

/* ---------- simulador ---------- */
.sim-sector .sector-line{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-right:10px}
.sim-order-tools{display:flex;gap:4px}
.sim-row .person-ident{display:flex;align-items:center;gap:8px}
.sim-remove-vacancy{margin-left:auto;flex:none}
html[data-theme][data-effective-theme] .sim-work-row{background:var(--tableHead)}
.sim-work{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:22px;padding:0 6px;border-radius:11px;font-size:11.5px;font-weight:700;font-variant-numeric:tabular-nums;color:var(--green);background:var(--greenbg)}
.sim-work.bad{color:var(--on-solid);background:var(--bad-solid)}

/* ---------- menu lateral (opcional) ---------- */
.shell.ng-side .ng-body{display:flex;flex:1;min-height:0;align-items:stretch}
.shell.ng-side .ng-body>.main{flex:1;min-width:0}
html[data-theme][data-effective-theme] .nav.ng-sidenav{position:sticky;top:0;align-self:flex-start;display:flex;flex-direction:column;gap:2px;width:228px;flex:none;box-sizing:border-box;height:calc(100vh - 82px);overflow-y:auto;padding:10px 8px;background:var(--chrome);border-right:1px solid var(--chrome-line)}
html[data-theme][data-effective-theme] .nav.ng-sidenav.is-collapsed{width:60px;padding:10px 6px}
.ng-sgroup{display:flex;flex-direction:column;gap:2px;margin-bottom:8px}
.ng-shead{padding:6px 10px 4px;font-size:10.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.ng-srow{display:flex;align-items:stretch;border-radius:8px}
.ng-sitem.active>.ng-srow{background:var(--primary-soft)}
html[data-theme][data-effective-theme] .nav.ng-sidenav button{border:0;font:inherit;text-align:left;cursor:pointer;background:transparent}
html[data-theme][data-effective-theme] .nav.ng-sidenav .ng-sbtn{flex:1;display:flex;align-items:center;gap:10px;min-height:36px;padding:0 10px;border-radius:8px;color:var(--text2);font-size:13px;font-weight:550}
html[data-theme][data-effective-theme] .nav.ng-sidenav.is-collapsed .ng-sbtn{justify-content:center;padding:0;position:relative}
html[data-theme][data-effective-theme] .nav.ng-sidenav .ng-sbtn:hover,html[data-theme][data-effective-theme] .nav.ng-sidenav .ng-sexp:hover{background:var(--hover);color:var(--ink)}
html[data-theme][data-effective-theme] .nav.ng-sidenav .ng-sitem.active .ng-sbtn{color:var(--green);font-weight:700}
.ng-slab{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ng-sidenav .ng-count{position:static;box-shadow:none}
.ng-sidenav.is-collapsed .ng-count{position:absolute;top:2px;right:4px;min-width:15px;height:15px;line-height:15px;font-size:9px}
html[data-theme][data-effective-theme] .nav.ng-sidenav .ng-sexp{width:30px;display:flex;align-items:center;justify-content:center;border-radius:8px;color:var(--muted)}
.ng-ssub{display:flex;flex-direction:column;gap:1px;margin:2px 0 6px 18px;padding-left:10px;border-left:1px solid var(--line)}
.ng-ssubhead{padding:6px 8px 2px;font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
html[data-theme][data-effective-theme] .nav.ng-sidenav .ng-ssubbtn{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:30px;padding:0 8px;border-radius:7px;color:var(--text2);font-size:12.5px}
html[data-theme][data-effective-theme] .nav.ng-sidenav .ng-ssubbtn:hover{background:var(--hover);color:var(--ink)}
html[data-theme][data-effective-theme] .nav.ng-sidenav .ng-ssubbtn.danger{color:var(--red)}
.ng-ssubbtn .ico-svg{color:var(--green)}
html[data-theme][data-effective-theme] .nav.ng-sidenav .ng-scollapse{margin-top:auto;display:flex;align-items:center;gap:8px;min-height:34px;padding:0 10px;border-radius:8px;color:var(--muted);font-size:12px}
html[data-theme][data-effective-theme] .nav.ng-sidenav.is-collapsed .ng-scollapse{justify-content:center;padding:0}
html[data-theme][data-effective-theme] .nav.ng-sidenav .ng-scollapse:hover{background:var(--hover);color:var(--ink)}
@media print{.ng-sidenav{display:none!important}}
@media (max-width:760px){.ng-head [data-action="layout-toggle"]{display:none}}
