/* Estimativa orçamental and calendarização sheets (src/static/estimativa.js) */
.est{margin:3.6rem 0 0}
.est+.est{margin-top:3rem}
.est-cal .est-body{grid-template-columns:minmax(0,6fr) minmax(0,6fr)}
.est-page>.rows{margin-top:3rem}
.est-body{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr)}
.est-form{background:var(--wash);border-right:1px solid var(--ink);padding:1.5rem 1.6rem 1.7rem;min-width:0}
.est-out{padding:1.5rem 1.6rem 1.7rem;min-width:0}
.est-out>:first-child{margin-top:0}
.est-out>:last-child{margin-bottom:0}
.est-field{border:0;margin:0 0 1.2rem;padding:0;min-width:0}
.est-field:last-child{margin-bottom:0}
.est-field>label,.est-field>legend{display:block;font-weight:600;font-size:.88rem;margin:0 0 .45rem;padding:0}
.est-field>select,.est-field>input{width:100%}
.est-one{margin:0 0 1.2rem;font-weight:600;font-size:1.05rem}
.est-one a{font-weight:400;font-size:.82rem;margin-left:.6rem}
.est-in{margin:0 0 .7rem}
.est-in label{display:block;font-size:.88rem;line-height:1.35;margin:0 0 .3rem}
.est-in small{display:block;font:400 .72rem/1.4 var(--mono);color:var(--muted)}
.est-num{display:flex;align-items:center;gap:.5rem}
.est-num input{width:9rem;text-align:right;font-variant-numeric:tabular-nums}
.est-num span{font-size:.82rem;color:var(--muted)}
input.bad{border-color:var(--red);box-shadow:inset 0 0 0 1px var(--red)}
.est-help{font-size:.82rem;line-height:1.45;color:var(--ink2);margin:0 0 .8rem}
.est-empty{color:var(--ink2);font-size:.94rem;max-width:34rem}
.est-rule{font-size:.88rem;line-height:1.45;margin:0 0 .4rem;color:var(--ink2)}
.est-rule b{color:var(--ink)}
.est-note{font-size:.88rem;line-height:1.45;border-left:3px solid var(--yellow);padding:.1rem 0 .1rem .8rem;margin:.9rem 0;max-width:38rem}
.est-res td,.est-res th{font-size:.88rem}
.est-res .n,.est-uses .n{text-align:right;padding-right:0;padding-left:1.1rem;white-space:nowrap}
.est-ax span{color:var(--muted)}
.est-res tfoot th{font-size:.94rem;color:var(--ink);border-bottom:0;border-top:1px solid var(--ink);padding-top:.7rem}
.est-res tfoot td{font-weight:600;font-size:1.25rem;font-stretch:88%;border-bottom:0;border-top:1px solid var(--ink);padding-top:.6rem}
.est-text{font:400 .76rem/1.5 var(--mono);background:var(--wash);border:1px solid var(--hair);padding:.8rem .9rem;margin:1rem 0 0;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--ink2)}
.est-copied{font-size:.82rem;color:var(--ok);margin:.5rem 0 0}
.est-out .actions{margin-top:1rem}
.est-q{border-left:2px solid var(--ink);padding:.05rem 0 .05rem .9rem;font-size:.94rem;line-height:1.5}
.est-act{font-size:.94rem}
.est-src{font-size:.82rem;color:var(--muted)}
.est-uses{max-width:41rem}
.est-uses thead .n{white-space:normal;hyphens:manual;-webkit-hyphens:manual}
.est-zones{font-size:.88rem}
.est-anexo td{font-size:.88rem}
.est-anexo td:first-child{padding-right:1.2rem}
.est-names{list-style:none;margin:.4rem 0 1.4rem;padding:0;columns:3 12rem;column-gap:1.6rem;max-width:none}
.est-names li{padding:.28rem 0;break-inside:avoid;font-size:.94rem}
.est-names a{font-weight:600}
.est-nc li{color:var(--ink2)}
.cal-phases{list-style:none;margin:0 0 .8rem;padding:0;counter-reset:ph}
.cal-phases li{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:.4rem;align-items:center;margin:0 0 .45rem}
.cal-phases .cal-l{width:100%;font-size:.88rem;padding:.5rem .6rem}
.cal-phases .est-num input{width:3.6rem;padding:.5rem .5rem}
.cal-x{font:inherit;font-size:.76rem;color:var(--muted);background:none;border:0;padding:.5rem .2rem;cursor:pointer;text-decoration:underline;text-decoration-color:var(--line)}
.cal-x:hover{color:var(--ink)}
.cal-bars{list-style:none;margin:0;padding:0}
.cal-bars li{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr) 4.2rem;gap:.8rem;align-items:center;padding:.42rem 0;border-top:1px solid var(--hair);font-size:.82rem;line-height:1.3}
.cal-bars li:first-child{border-top:0}
.cal-track{display:block;height:.75rem;background:var(--wash)}
.cal-bar{display:block;height:100%;background:var(--ink)}
.cal-when{font:400 .72rem/1.3 var(--mono);color:var(--muted);text-align:right;white-space:nowrap}
.cal-sum{margin:1rem 0 0;font-size:.94rem}
@media (max-width:1000px){
  .est-body,.est-cal .est-body{grid-template-columns:1fr}
  .est-form{border-right:0;border-bottom:1px solid var(--ink)}
}
@media (max-width:700px){
  .est{margin-top:2.4rem}
  .est-form,.est-out{padding:1.1rem 1rem 1.2rem}
  .est-num input{width:7.5rem}
  .cal-phases li{grid-template-columns:minmax(0,1fr) auto;row-gap:.3rem;margin-bottom:.8rem}
  .cal-phases .cal-l{grid-column:1/-1}
  .cal-bars li{grid-template-columns:minmax(0,1fr) 3.6rem}
  .cal-bars .cal-track{grid-column:1/-1;grid-row:2}
  .est-res td,.est-res th{font-size:.82rem}
  .est-res .est-ax,.est-res th.n{white-space:normal}
  .est-res tfoot td{font-size:1.05rem}
  .est-res td:first-child{overflow-wrap:anywhere}
  .est-uses td,.est-uses th{font-size:.84rem}
  .est-uses td:first-child{overflow-wrap:anywhere}
  .est-uses .n{padding-left:.7rem}
  .est-ax span{display:block}
  .est-ax span{color:var(--muted)}
.est-res tfoot th{font-size:.88rem}
  .est-anexo td,.est-anexo th{font-size:.82rem}
}
