/* V22.2.3 — Projetos integrados.
   Escopo restrito ao Dashboard, diálogo do projeto e faixas de autopreenchimento. */
#dashboardView .dashboard-new-project{
  width:100%;display:grid;grid-template-columns:54px minmax(0,1fr) 34px;align-items:center;gap:14px;
  margin:0 0 16px;padding:14px 16px;border:1px solid #34363b;border-radius:16px;background:#111216;color:#f6f6f2;
  text-align:left;cursor:pointer;transition:border-color .16s,transform .16s,background .16s
}
#dashboardView .dashboard-new-project:hover{transform:translateY(-1px);border-color:#665a14;background:#151617}
#dashboardView .dashboard-new-project-icon{width:46px;height:46px;border-radius:13px;display:grid;place-items:center;background:var(--yellow,#ffd400);color:#111;font-size:1.55rem;font-weight:800}
#dashboardView .dashboard-new-project-copy{display:grid;gap:3px;min-width:0}
#dashboardView .dashboard-new-project-copy strong{font-size:1rem;line-height:1.2}
#dashboardView .dashboard-new-project-copy small{font-size:.76rem;line-height:1.35;color:#aeb0aa;white-space:normal}
#dashboardView .dashboard-new-project-arrow{font-size:1.3rem;color:#ffd400;text-align:center}
#dashboardView .dashboard-stats-final{grid-template-columns:repeat(2,minmax(0,1fr))}

.project-hub-dialog{width:min(960px,calc(100vw - 28px));max-width:960px;border:0;padding:0;background:transparent}
.project-hub-dialog::backdrop{background:rgba(0,0,0,.76);backdrop-filter:blur(5px)}
.project-hub-card{width:100%;max-height:min(88vh,900px);overflow:auto;padding:0;border:1px solid #34363b;border-radius:20px;background:#101114}
.project-hub-head{position:sticky;top:0;z-index:3;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:start;padding:22px 24px 18px;background:#111216;border-bottom:1px solid #303238}
.project-hub-head h3{margin:3px 0 6px;font-size:1.48rem}.project-hub-head p{margin:0;color:#aeb0aa;line-height:1.45;max-width:70ch}
.project-hub-existing{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end;padding:14px 24px;background:#0d0e11;border-bottom:1px solid #292b30}
.project-hub-existing label{margin:0}.project-hub-existing .btn{min-height:44px}
.project-hub-section{padding:20px 24px;border-bottom:1px solid #2b2d32}.project-hub-section.dark{background:#0d0e11}
.project-hub-section-title{display:flex;gap:12px;align-items:center;margin-bottom:14px}.project-hub-section-title>span{width:31px;height:31px;display:grid;place-items:center;border-radius:9px;background:#ffd400;color:#111;font-weight:800;font-size:.74rem}.project-hub-section-title div{display:grid;gap:2px}.project-hub-section-title strong{font-size:.94rem}.project-hub-section-title small{font-size:.72rem;color:#a3a59f}
.project-hub-section .form-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.project-hub-section label{min-width:0}.project-hub-section input,.project-hub-section select,.project-hub-section textarea{width:100%}
.project-hub-footer{position:sticky;bottom:0;z-index:3;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 24px;background:#111216;border-top:1px solid #34363b}
.project-hub-footer-main{display:flex;align-items:center;justify-content:flex-end;gap:14px;margin-left:auto}.project-hub-footer-main span{font-size:.72rem;color:#999b95;max-width:420px;text-align:right}.project-hub-footer .btn{min-height:44px}

.project-autofill-strip{display:grid;grid-template-columns:minmax(180px,.8fr) minmax(320px,1.2fr);gap:16px;align-items:center;margin:0 0 16px;padding:13px 14px;border:1px solid #34363b;border-radius:14px;background:#111216}
.project-autofill-strip>div:first-child{display:grid;gap:2px}.project-autofill-label{font-size:.61rem;font-weight:800;letter-spacing:.12em;color:#ffd400}.project-autofill-strip strong{font-size:.82rem;line-height:1.3}
.project-autofill-controls{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}.project-autofill-controls select{min-height:42px;min-width:0}.project-autofill-controls .btn{min-height:42px;white-space:nowrap}
.project-autofill-strip.compact{margin-bottom:14px;padding:11px 12px}.quote-project-autofill{margin:0 0 14px}

@media(max-width:760px){
  #dashboardView .dashboard-new-project{grid-template-columns:46px minmax(0,1fr) 24px;gap:10px;padding:12px;margin-bottom:12px;border-radius:14px}
  #dashboardView .dashboard-new-project-icon{width:40px;height:40px;border-radius:11px;font-size:1.3rem}
  #dashboardView .dashboard-new-project-copy strong{font-size:.92rem}#dashboardView .dashboard-new-project-copy small{font-size:.7rem}
  #dashboardView .dashboard-stats-final{grid-template-columns:1fr 1fr;gap:9px}
  .project-hub-dialog{width:calc(100vw - 16px)}.project-hub-card{max-height:94vh;border-radius:16px}
  .project-hub-head{padding:16px 15px 13px}.project-hub-head h3{font-size:1.25rem}.project-hub-head p{font-size:.78rem}
  .project-hub-existing{grid-template-columns:1fr;padding:12px 15px}.project-hub-existing .btn{width:100%}
  .project-hub-section{padding:16px 15px}.project-hub-section .form-grid{grid-template-columns:1fr;gap:9px}.project-hub-section-title{margin-bottom:12px}
  .project-hub-footer{align-items:stretch;flex-direction:column-reverse;padding:12px 15px}.project-hub-footer-main{width:100%;display:grid;grid-template-columns:1fr}.project-hub-footer-main span{text-align:left;max-width:none}.project-hub-footer .btn{width:100%}
  .project-autofill-strip,.project-autofill-strip.compact{grid-template-columns:1fr;gap:9px;padding:11px;margin-bottom:12px}.project-autofill-controls{grid-template-columns:1fr}.project-autofill-controls .btn{width:100%}
}
