/* V22.2.5 — Persistência de projetos e clientes.
   Escopo restrito ao Dashboard, diálogo do projeto e faixas de autopreenchimento. */
#dashboardView .dashboard-new-project{
  width:max-content;max-width:100%;display:inline-flex;align-items:center;gap:10px;
  margin:12px 0 16px;padding:9px 14px 9px 10px;border:1px solid #34363b;border-radius:14px;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:36px;height:36px;border-radius:10px;display:grid;place-items:center;background:var(--yellow,#ffd400);color:#111;font-size:1.25rem;font-weight:800;flex:0 0 auto}
#dashboardView .dashboard-new-project strong{font-size:.94rem;line-height:1;white-space:nowrap}
#dashboardJobs.dashboard-jobs-scroll{max-height:222px;overflow-y:auto;overscroll-behavior:contain;padding-right:5px;scrollbar-gutter:stable}
#dashboardJobs.dashboard-jobs-scroll::-webkit-scrollbar{width:7px}
#dashboardJobs.dashboard-jobs-scroll::-webkit-scrollbar-thumb{background:#3d3f44;border-radius:999px}
#dashboardJobs.dashboard-jobs-scroll::-webkit-scrollbar-track{background:transparent}
#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-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-client-reuse{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;margin-bottom:14px;padding:12px;border:1px solid #303238;border-radius:13px;background:#0d0e11}
.project-client-reuse label{margin:0}.project-client-reuse small{color:#8f918c;font-size:.69rem;line-height:1.35}
.project-hub-section.client-section{background:#111216}.project-hub-section.work-section{background:#0d0e11}
.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{gap:8px;padding:8px 12px 8px 8px;margin:10px 0 12px;border-radius:12px}
  #dashboardView .dashboard-new-project-icon{width:34px;height:34px;border-radius:9px;font-size:1.18rem}
  #dashboardView .dashboard-new-project strong{font-size:.9rem}
  #dashboardJobs.dashboard-jobs-scroll{max-height:255px;padding-right:3px}
  #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-section{padding:16px 15px}.project-hub-section .form-grid{grid-template-columns:1fr;gap:9px}.project-hub-section-title{margin-bottom:12px}
  .project-client-reuse{grid-template-columns:1fr;gap:6px;padding:10px}
  .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%}
}
