
:root{--black:#0b0c0c;--gold:#c9972f;--gold2:#e5bd60;--paper:#f5f2ec;--ink:#171717;--line:#e5dfd5;--green:#67ad50;--blue:#5792d2;--shadow:0 15px 40px rgba(0,0,0,.10)}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Arial,sans-serif;color:var(--ink);background:var(--paper)}a{text-decoration:none;color:inherit}button,input{font:inherit}
.app-shell{min-height:100vh;display:grid;grid-template-columns:270px 1fr}.sidebar{height:100vh;position:sticky;top:0;background:linear-gradient(180deg,#080909,#141515);color:#fff;padding:26px 16px;display:flex;flex-direction:column;gap:20px}.brand{display:flex;align-items:center;gap:12px;padding:4px 12px 18px}.brand-mark{width:43px;height:43px;background:linear-gradient(135deg,var(--gold2),#886215);clip-path:polygon(50% 0,100% 100%,80% 100%,50% 35%,20% 100%,0 100%)}.brand strong{font-size:20px;letter-spacing:1px}.brand small{display:block;color:#aaa;font-size:8px;letter-spacing:2px;margin-top:4px}
.nav{display:grid;gap:6px}.nav a{padding:14px 16px;border-radius:9px;color:#ddd;display:flex;gap:13px;align-items:center}.nav a.active,.nav a:hover{background:linear-gradient(90deg,rgba(201,151,47,.28),rgba(201,151,47,.04));color:#fff}.ico{width:22px;text-align:center;color:var(--gold2);font-size:18px}.help{margin-top:auto;border:1px solid #2d2d2d;border-radius:11px;padding:17px;text-align:center;background:#171818}.help p{font-size:12px;color:#aaa}.gold-btn{border:0;border-radius:6px;background:linear-gradient(135deg,#8c6518,var(--gold2));color:#fff;padding:9px 15px;font-weight:bold}
.main{padding:28px 34px 50px;min-width:0;background:radial-gradient(circle at 90% 0,#fff 0,#f7f4ee 45%,#f1ede5 100%)}.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.hello h1{margin:0 0 5px;font-size:28px}.hello p{margin:0;color:#555}.tools{display:flex;gap:12px;align-items:center}.circle,.avatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#fff;border:1px solid var(--line)}.avatar{background:#222;color:#fff;font-weight:bold}
.hero{display:grid;grid-template-columns:290px 1fr 290px;border-radius:14px;overflow:hidden;background:linear-gradient(110deg,#181919,#0c0d0d);color:#fff;box-shadow:var(--shadow)}.hero-image{min-height:290px;background:url("../assets/project-house.jpg") center/cover;position:relative}.hero-image:after{content:"Projeto Principal";position:absolute;top:18px;left:18px;background:rgba(20,20,20,.72);padding:7px 10px;border-radius:4px;font-size:12px}.hero-center{padding:34px 27px}.hero-center h2{margin:0 0 7px;font-size:23px}.hero-center>p{margin:0 0 27px;color:#bbb}.project-grid{display:grid;grid-template-columns:125px 1fr;gap:25px;align-items:center}.ring{width:120px;height:120px;border-radius:50%;background:conic-gradient(var(--gold2) 0 72%,#303131 72%);display:grid;place-items:center;position:relative}.ring:after{content:"";position:absolute;inset:9px;border-radius:50%;background:#171818}.ring div{z-index:1;font-size:29px;text-align:center}.ring small{display:block;font-size:9px;color:#bbb}.meta{display:grid;gap:15px}.meta small{display:block;color:var(--gold2);text-transform:uppercase;font-size:9px;margin-bottom:4px}.meta span{font-size:13px}.next{border-left:1px solid #303131;padding:32px 23px}.next h3{margin:0 0 22px}.next-item{display:grid;grid-template-columns:36px 1fr;gap:11px;margin-bottom:20px}.next-icon{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#2a2611;color:var(--gold2)}.next-item b{font-size:13px}.next-item small{display:block;color:#aaa;font-size:11px;margin-top:4px}.gold-link{color:var(--gold2);font-size:11px;font-weight:bold}
.quick{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:16px}.quick-card{background:rgba(255,255,255,.82);border:1px solid var(--line);border-radius:11px;padding:17px;min-height:165px;box-shadow:0 8px 24px rgba(0,0,0,.04)}.quick-icon{width:46px;height:46px;border-radius:8px;background:#111;color:var(--gold2);display:grid;place-items:center;font-size:21px}.quick-card h3{font-size:15px;margin:13px 0 8px}.quick-card p{font-size:12px;color:#555;line-height:1.5;min-height:38px}.quick-card a{font-size:11px;color:#8b6519;font-weight:bold}
.panel{margin-top:18px;background:#0e0f0f;border-radius:11px;padding:10px;box-shadow:var(--shadow)}.panel-title{color:#fff;font-weight:bold;padding:7px 7px 14px}.panel-inner{background:#fbfaf7;border-radius:7px;padding:17px}.tabs{display:flex;gap:28px;font-size:10px;border-bottom:1px solid var(--line);margin-bottom:8px}.tabs span{padding:8px 4px}.tabs .active{border-bottom:2px solid var(--gold);color:#8a6418}.row{display:grid;grid-template-columns:22px 1fr 110px 100px;gap:10px;align-items:center;padding:12px 4px;border-bottom:1px solid #ebe6dd;font-size:11px}.dot{width:18px;height:18px;border-radius:50%;display:grid;place-items:center;color:#fff;background:#bbb}.done{background:var(--green)}.doing{background:var(--gold)}.pill{justify-self:end;padding:5px 8px;border-radius:4px;background:#eee;color:#777}.green{background:#edf7e8;color:#4c9639}.yellow{background:#fff3d6;color:#9e721b}.blue{background:#eaf3fd;color:#3678bd}.file-row{display:grid;grid-template-columns:28px 1fr 50px;gap:10px;padding:13px 4px;border-bottom:1px solid #ebe6dd;font-size:11px}.file-row small{display:block;color:#888;margin-top:4px}
.login-page{min-height:100vh;display:grid;place-items:center;padding:24px;background:linear-gradient(rgba(0,0,0,.18),rgba(0,0,0,.38)),url("../assets/login-office.png") center/cover fixed}.login-card{width:min(430px,94vw);padding:38px;background:rgba(10,11,11,.88);color:#fff;border:1px solid rgba(255,255,255,.12);border-radius:18px;box-shadow:0 30px 80px rgba(0,0,0,.35);backdrop-filter:blur(18px)}.login-card input{width:100%;padding:14px;margin-top:12px;border-radius:7px;border:1px solid #3b3b3b;background:rgba(0,0,0,.15);color:#fff}.login-card button{width:100%;padding:14px;margin-top:18px}
@media(max-width:1100px){.hero{grid-template-columns:250px 1fr}.next{grid-column:1/-1;border-left:0;border-top:1px solid #303131}.quick{grid-template-columns:1fr 1fr}}
@media(max-width:780px){.app-shell{display:block}.sidebar{height:auto;position:relative}.nav{grid-template-columns:repeat(4,1fr);overflow:auto}.nav a{font-size:0;justify-content:center}.nav .ico{font-size:20px}.help{display:none}.main{padding:20px 14px}.tools .circle{display:none}.hero{grid-template-columns:1fr}.hero-image{min-height:220px}.quick{grid-template-columns:1fr 1fr}.row{grid-template-columns:22px 1fr}.row>*:nth-child(3),.row>*:nth-child(4){grid-column:2}}


/* =========================
   ADMIN — versão mais legível
   ========================= */
.admin-body{
  background:#f4f5f7;
  color:#1e2329;
}
.admin-shell{
  min-height:100vh;
  display:grid;
  grid-template-columns:250px minmax(0,1fr);
}
.admin-sidebar{
  position:sticky;
  top:0;
  height:100vh;
  background:#111313;
  color:#fff;
  padding:24px 18px;
  display:flex;
  flex-direction:column;
  border-right:1px solid #242727;
}
.admin-brand{
  display:flex;
  align-items:center;
  gap:12px;
  padding:2px 8px 24px;
  border-bottom:1px solid #292c2c;
}
.admin-logo{
  width:42px;height:42px;border-radius:10px;
  display:grid;place-items:center;
  background:linear-gradient(145deg,#d8a837,#9d6e12);
  color:#fff;font-size:22px;font-weight:800;
}
.admin-brand strong{display:block;font-size:16px;letter-spacing:.8px}
.admin-brand small{display:block;font-size:10px;color:#9ca1a1;margin-top:4px;letter-spacing:1px}
.admin-user{
  display:flex;align-items:center;gap:11px;
  padding:20px 8px 16px;
}
.admin-user-avatar{
  width:38px;height:38px;border-radius:50%;
  display:grid;place-items:center;
  background:#2a2d2d;color:#e7bd5c;font-weight:800;
  border:1px solid #3c3f3f;
}
.admin-user strong{display:block;font-size:13px}
.admin-user small{display:block;color:#929797;font-size:11px;margin-top:3px}
.admin-menu-label{
  margin:12px 8px 8px;
  font-size:10px;color:#777e7e;letter-spacing:1.6px;font-weight:700;
}
.admin-menu{display:grid;gap:6px}
.admin-menu .nav-btn{
  width:100%;border:0;background:transparent;color:#bfc3c3;
  padding:13px 14px;border-radius:9px;
  display:flex;align-items:center;gap:12px;text-align:left;
  font-size:13px;
}
.admin-menu .nav-btn span{width:20px;text-align:center;color:#d8a837;font-size:17px}
.admin-menu .nav-btn:hover,.admin-menu .nav-btn.active{
  background:#232626;color:#fff;
}
.admin-menu .nav-btn.active{
  box-shadow:inset 3px 0 #d3a43b;
}
.admin-sidebar-bottom{margin-top:auto}
.admin-support{
  padding:15px;border:1px solid #303434;border-radius:10px;
  background:#191b1b;margin-bottom:10px;
}
.admin-support strong{font-size:12px}
.admin-support p{margin:7px 0 0;color:#989d9d;font-size:11px;line-height:1.5}
.admin-logout{
  width:100%;padding:11px;border-radius:8px;
  background:transparent;color:#c5c8c8;border:1px solid #333737;
}
.admin-logout:hover{background:#202323;color:#fff}

.admin-main{padding:30px 38px 50px;min-width:0}
.admin-topbar{
  display:flex;justify-content:space-between;gap:24px;align-items:flex-start;
  margin-bottom:30px;
}
.admin-eyebrow{margin:0 0 7px;color:#9a741d;font-size:10px;letter-spacing:1.8px;font-weight:800}
.admin-topbar h1{margin:0;font-size:30px;line-height:1.1;letter-spacing:-.4px}
.admin-subtitle{margin:8px 0 0;color:#687079;font-size:14px}
.admin-status{
  background:#fff;border:1px solid #dfe3e7;border-radius:999px;
  padding:9px 13px;font-size:11px;color:#535b62;white-space:nowrap;
  box-shadow:0 3px 12px rgba(0,0,0,.03);
}
.admin-status span{
  display:inline-block;width:8px;height:8px;border-radius:50%;
  background:#68aa55;margin-right:7px;
}
.page-section{display:none}
.page-section.active{display:block}
.admin-section-head{
  display:flex;justify-content:space-between;align-items:flex-end;
  margin-bottom:18px;
}
.admin-section-head h2{font-size:22px;margin:0 0 5px}
.admin-section-head p{margin:0;color:#727a82;font-size:13px}

.admin-stats-readable{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;margin-bottom:20px;
}
.admin-stats-readable article{
  background:#fff;border:1px solid #dfe3e7;border-radius:12px;
  padding:19px 20px;display:flex;align-items:center;gap:14px;
  min-height:104px;box-shadow:0 4px 14px rgba(23,31,38,.035);
}
.stat-ico{
  width:48px;height:48px;border-radius:11px;
  background:#f4eee0;color:#9c7118;
  display:grid;place-items:center;font-size:21px;flex:0 0 auto;
}
.admin-stats-readable span{display:block;font-size:12px;color:#6d757c;margin-bottom:5px}
.admin-stats-readable strong{font-size:30px;line-height:1}

.admin-card{
  background:#fff;border:1px solid #dfe3e7;border-radius:13px;
  box-shadow:0 5px 18px rgba(20,28,35,.04);
  overflow:hidden;
}
.admin-card + .admin-card{margin-top:18px}
.admin-card-head{
  min-height:73px;padding:18px 20px;
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  border-bottom:1px solid #e8ebee;
}
.admin-card-head h3{font-size:16px;margin:0 0 5px}
.admin-card-head p{font-size:12px;color:#757d84;margin:0}
.admin-secondary{
  border:1px solid #d8dde1;background:#fff;color:#343b41;
  border-radius:8px;padding:9px 13px;font-size:12px;font-weight:700;
}
.admin-secondary:hover{background:#f6f7f8}
.admin-project-list{padding:8px 20px 16px}
.admin-project-list .list-card{
  display:flex;align-items:center;justify-content:space-between;
  padding:15px 4px;border-bottom:1px solid #edf0f2;
}
.admin-project-list .list-card:last-child{border-bottom:0}
.admin-project-list .list-card strong{font-size:13px;color:#22282e}
.admin-project-list .list-card p{font-size:11px;color:#7d858c;margin:5px 0 0}
.admin-empty{
  padding:26px 8px;color:#848c92;font-size:12px;text-align:center;
}

.admin-grid-2{
  display:grid;grid-template-columns:minmax(320px,.85fr) minmax(380px,1.15fr);
  gap:18px;align-items:start;
}
.admin-form{
  padding:20px;
  display:grid;gap:16px;
}
.admin-form label{
  display:grid;gap:7px;
  font-size:11px;font-weight:700;color:#4e565d;
}
.admin-form input,.admin-form select,.admin-form textarea{
  width:100%;border:1px solid #d7dce0;background:#fff;
  border-radius:8px;padding:11px 12px;color:#20262b;
  outline:none;font-size:13px;
}
.admin-form input:focus,.admin-form select:focus,.admin-form textarea:focus{
  border-color:#b78a2e;
  box-shadow:0 0 0 3px rgba(183,138,46,.10);
}
.admin-form textarea{resize:vertical;min-height:110px}
.admin-primary{
  border:0;border-radius:8px;padding:12px 16px;
  background:#171919;color:#fff;font-weight:800;font-size:12px;
}
.admin-primary:hover{background:#292c2c}
.project-form-readable{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.admin-span-2{grid-column:1/-1}
.admin-input-suffix{display:grid;grid-template-columns:1fr 36px}
.admin-input-suffix input{border-radius:8px 0 0 8px}
.admin-input-suffix span{
  display:grid;place-items:center;
  border:1px solid #d7dce0;border-left:0;border-radius:0 8px 8px 0;
  background:#f4f5f6;color:#626a70;font-size:12px;
}
.form-actions{
  padding-top:3px;display:flex;justify-content:flex-end;
}
.form-actions .admin-primary{min-width:150px}

@media(max-width:980px){
  .admin-shell{grid-template-columns:210px minmax(0,1fr)}
  .admin-main{padding:26px 22px 40px}
  .admin-stats-readable{grid-template-columns:1fr}
  .admin-grid-2{grid-template-columns:1fr}
}
@media(max-width:720px){
  .admin-shell{display:block}
  .admin-sidebar{position:relative;height:auto;padding:14px}
  .admin-brand{padding-bottom:13px}
  .admin-user,.admin-support{display:none}
  .admin-menu-label{display:none}
  .admin-menu{grid-template-columns:repeat(3,1fr);margin-top:12px}
  .admin-menu .nav-btn{justify-content:center;padding:10px 8px}
  .admin-menu .nav-btn b{font-size:11px}
  .admin-menu .nav-btn.active{box-shadow:inset 0 -3px #d3a43b}
  .admin-sidebar-bottom{margin-top:10px}
  .admin-logout{padding:9px}
  .admin-main{padding:20px 14px 36px}
  .admin-topbar{display:block}
  .admin-status{display:inline-block;margin-top:14px}
  .admin-topbar h1{font-size:25px}
  .project-form-readable{grid-template-columns:1fr}
  .admin-span-2{grid-column:auto}
  .admin-card-head{align-items:flex-start}
}

.client-badge{font-size:10px;font-weight:800;color:#4f8b3f;background:#edf6e9;border:1px solid #dcebd6;padding:5px 8px;border-radius:999px}
.admin-primary:disabled{opacity:.55;cursor:wait}

.client-summary-card{
  margin-top:16px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:12px;
  padding:20px 22px;
  box-shadow:0 8px 24px rgba(0,0,0,.035)
}
.client-summary-label{
  margin:0 0 5px;
  font-size:9px;
  font-weight:800;
  letter-spacing:1.6px;
  color:#9a711b
}
.client-summary-card h3{
  margin:0 0 8px;
  font-size:17px
}
.client-summary-card p:last-child{
  margin:0;
  color:#646b70;
  font-size:13px;
  line-height:1.65
}

.checkbox-label{
  display:flex!important;
  grid-template-columns:none!important;
  align-items:center;
  gap:9px!important;
  font-weight:600!important;
}
.checkbox-label input{
  width:16px!important;
  height:16px!important;
  padding:0!important;
}

.client-user-menu{
  display:flex;
  align-items:center;
  gap:10px;
}
.client-user-menu b{
  max-width:180px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:13px;
}
.client-logout-btn{
  border:1px solid #ddd7cc;
  background:#fff;
  color:#4e5357;
  border-radius:7px;
  padding:8px 11px;
  font-size:11px;
  font-weight:700;
  cursor:pointer;
}
.client-logout-btn:hover{
  background:#171919;
  border-color:#171919;
  color:#fff;
}
.client-logout-btn:disabled{opacity:.6;cursor:wait}
@media(max-width:780px){
  .client-user-menu b{display:none}
  .client-logout-btn{padding:8px 10px}
}

@media(max-width:720px){
  .admin-menu{grid-template-columns:repeat(4,1fr)!important}
}

.step-admin-card{display:grid;grid-template-columns:72px minmax(0,1fr) auto;gap:14px;align-items:center;padding:16px 4px;border-bottom:1px solid #edf0f2}
.step-admin-card:last-child{border-bottom:0}
.step-order-box{display:flex;align-items:center;gap:8px}
.step-order-number{width:30px;height:30px;border-radius:8px;display:grid;place-items:center;background:#f2eee5;color:#8d691a;font-size:12px;font-weight:800}
.step-order-buttons{display:grid;gap:3px}
.step-mini-btn{width:26px;height:22px;border:1px solid #d9dde0;background:#fff;color:#41474d;border-radius:5px;font-size:12px}
.step-mini-btn:hover:not(:disabled){background:#171919;color:#fff;border-color:#171919}
.step-mini-btn:disabled{opacity:.3;cursor:not-allowed}
.step-admin-info strong{font-size:13px;color:#22282e}
.step-admin-info p{margin:5px 0 0;color:#747d84;font-size:11px}
.step-admin-info small{display:block;margin-top:6px;color:#92999f;font-size:11px}
.step-admin-actions{display:flex;align-items:center;gap:7px}
.step-delete-btn{border:1px solid #ead2d2;background:#fff;color:#a54848;border-radius:8px;padding:9px 12px;font-size:11px;font-weight:700}
.step-delete-btn:hover{background:#a54848;color:#fff;border-color:#a54848}
.step-form-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
@media(max-width:720px){.step-admin-card{grid-template-columns:58px minmax(0,1fr)}.step-admin-actions{grid-column:2;justify-content:flex-start;margin-top:4px}}

.field-help{font-size:10px;color:#858c91;font-weight:400;margin-top:2px}
.upload-status{min-height:18px;font-size:11px;color:#55704a}
.admin-file-card{
  display:grid;
  grid-template-columns:44px minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  padding:14px 4px;
  border-bottom:1px solid #edf0f2;
}
.admin-file-card:last-child{border-bottom:0}
.admin-file-icon{
  width:40px;height:40px;border-radius:9px;
  display:grid;place-items:center;
  background:#f3efe6;font-size:19px;
}
.admin-file-info strong{display:block;font-size:12px;color:#22282e}
.admin-file-info p{margin:5px 0 0;font-size:10px;color:#747d84}
.admin-file-info small{display:block;margin-top:5px;font-size:10px;color:#9a741d}
.admin-file-actions{display:flex;gap:7px}
.client-file-row{
  display:grid;
  grid-template-columns:42px minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  padding:13px 4px;
  border-bottom:1px solid #ebe6dd;
}
.client-file-row:last-child{border-bottom:0}
.client-file-icon{
  width:38px;height:38px;border-radius:8px;
  display:grid;place-items:center;
  background:#f3efe5;
  font-size:18px;
}
.client-file-info strong{display:block;font-size:12px;color:#272b2f}
.client-file-info small{display:block;margin-top:4px;font-size:10px;color:#858b90}
.client-download-btn{
  border:1px solid #d9d4ca;
  background:#fff;
  color:#755616;
  border-radius:7px;
  padding:8px 11px;
  font-size:10px;
  font-weight:800;
}
.client-download-btn:hover{background:#171919;color:#fff;border-color:#171919}
@media(max-width:720px){
  .admin-menu{grid-template-columns:repeat(5,1fr)!important}
  .admin-file-card{grid-template-columns:42px minmax(0,1fr)}
  .admin-file-actions{grid-column:2}
  .client-file-row{grid-template-columns:38px minmax(0,1fr)}
  .client-download-btn{grid-column:2;justify-self:start}
}

.approval-admin-card{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:14px;
  align-items:start;
  padding:15px 4px;
  border-bottom:1px solid #edf0f2;
}
.approval-main strong{font-size:13px}
.approval-main p{font-size:11px;color:#747d84;margin:5px 0}
.approval-main small{display:block;font-size:11px;color:#8c9398;line-height:1.5}
.approval-pill{display:inline-block;padding:4px 7px;border-radius:999px;font-size:9px;font-weight:800;background:#eee;color:#666}
.approval-pill.green{background:#edf7e8;color:#4e913c}
.approval-pill.yellow{background:#fff3d6;color:#966d19}
.approval-pill.red{background:#fdecec;color:#a84b4b}
.approval-comment{margin-top:9px;padding:9px 10px;border-radius:8px;background:#f7f7f6;font-size:10px;color:#666;line-height:1.5}
.client-approval-card{border:1px solid #e5dfd5;border-radius:10px;padding:15px;margin-bottom:10px;background:#fff}
.client-approval-head strong{font-size:13px}
.client-approval-head p{font-size:10px;color:#7b8287;margin:5px 0}
.client-approval-desc{font-size:11px;color:#60676c;line-height:1.55;margin:10px 0}
.client-approval-textarea{width:100%;min-height:76px;border:1px solid #ddd8ce;border-radius:8px;padding:10px;font:inherit;font-size:11px;margin-top:10px;resize:vertical}
.client-approval-actions{display:flex;gap:8px;margin-top:9px;flex-wrap:wrap}
.approval-approve-btn,.approval-change-btn{border:0;border-radius:7px;padding:9px 12px;font-size:10px;font-weight:800}
.approval-approve-btn{background:#171919;color:#fff}
.approval-change-btn{background:#fff3d6;color:#8b6417;border:1px solid #ecd79c}
@media(max-width:720px){.admin-menu{grid-template-columns:repeat(6,1fr)!important}.approval-admin-card{grid-template-columns:1fr}.client-approval-actions{display:grid;grid-template-columns:1fr}}

.admin-response-box{
  margin-top:9px;
  padding:10px 11px;
  border-radius:8px;
  background:#f3efe5;
  border-left:3px solid #b88a2c;
  font-size:10px;
  color:#5f6263;
  line-height:1.55;
}
.admin-response-box small{
  display:block;
  margin-top:6px;
  color:#92979a;
  font-size:9px;
}
.admin-response-box.client{
  margin-top:10px;
  background:#f5f1e8;
}
.admin-response-form{
  margin-top:10px;
  display:grid;
  gap:8px;
}
.admin-response-form textarea{
  width:100%;
  min-height:78px;
  border:1px solid #d8dce0;
  border-radius:8px;
  padding:10px;
  resize:vertical;
  font:inherit;
  font-size:11px;
}
.admin-response-form .admin-primary{
  justify-self:start;
}

.client-approval-actions button{min-width:150px}
.approval-change-btn{font-weight:800}

.summary-approval-row{
  display:grid;
  grid-template-columns:42px minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  padding:14px 4px;
  border-bottom:1px solid #edf0f2;
}
.summary-approval-row:last-child{border-bottom:0}
.summary-approval-icon{
  width:38px;height:38px;border-radius:9px;
  display:grid;place-items:center;
  background:#fff3d6;color:#9a7018;font-weight:900;
}
.summary-approval-info strong{display:block;font-size:12px;color:#252b30}
.summary-approval-info p{margin:5px 0 0;font-size:10px;color:#7b8389}
.summary-approval-meta{
  display:flex;align-items:center;gap:10px;
}
.summary-approval-meta span{font-size:10px;color:#71787e;white-space:nowrap}
@media(max-width:720px){
  .summary-approval-row{grid-template-columns:38px minmax(0,1fr)}
  .summary-approval-meta{grid-column:2;justify-content:space-between;margin-top:3px}
}

.project-manage-card{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:14px;
  align-items:center;
  padding:15px 4px;
  border-bottom:1px solid #edf0f2;
}
.project-manage-card:last-child{border-bottom:0}
.project-manage-main strong{display:block;font-size:13px;color:#22282e}
.project-manage-main p{margin:5px 0 0;font-size:10px;color:#747d84}
.project-manage-main small{display:block;margin-top:5px;font-size:10px;color:#9a741d}
.project-manage-actions{display:flex;gap:7px}
.project-archive-btn,.project-reactivate-btn{
  border-radius:8px;padding:9px 12px;font-size:11px;font-weight:800;
}
.project-archive-btn{border:1px solid #e7d6b3;background:#fff9ec;color:#8a651d}
.project-reactivate-btn{border:1px solid #cfe3c8;background:#eff8ec;color:#4d8b3b}
@media(max-width:720px){
  .project-manage-card{grid-template-columns:1fr}
  .project-manage-actions{justify-content:flex-start}
}

.activity-row{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:11px;align-items:center;padding:12px 4px;border-bottom:1px solid #edf0f2}
.activity-row:last-child{border-bottom:0}
.activity-icon{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#f3efe5;color:#8c671a;font-weight:900;font-size:12px}
.activity-info strong{display:block;font-size:11px;color:#262c30}
.activity-info p{margin:4px 0 0;font-size:10px;color:#7a8287}
.activity-row time{font-size:9px;color:#969da1;white-space:nowrap}
.activity-row.client{border-color:#ebe6dd}
@media(max-width:720px){.activity-row{grid-template-columns:34px minmax(0,1fr)}.activity-row time{grid-column:2}}

.next-group-label{margin:4px 0 8px;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.08em;color:#9a741d}
.next-group-label:not(:first-child){margin-top:18px}
.real-next-card{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:11px;align-items:center;padding:13px;border:1px solid #e7e1d6;border-radius:10px;background:#fff;margin-bottom:8px}
.real-next-icon{width:36px;height:36px;border-radius:9px;display:grid;place-items:center;background:#f3efe5;color:#8c671a;font-weight:900}
.real-next-content strong{display:block;font-size:12px;color:#272c30}
.real-next-content p{margin:4px 0 0;font-size:10px;color:#777f84}
.real-next-content small{display:block;margin-top:5px;font-size:10px;color:#92989c;line-height:1.45}
.approval-next{border-left:3px solid #c79a3a}
.schedule-next{border-left:3px solid #777}
.next-complete-state{padding:14px;border-radius:10px;background:#f5f6f4;border:1px solid #e2e5df}
.next-complete-state strong{font-size:11px;color:#4f6550}
.next-complete-state p{font-size:10px;color:#7f8781;margin:5px 0 0}
.approval-focus{box-shadow:0 0 0 3px rgba(184,138,44,.2);transition:box-shadow .25s}
@media(max-width:720px){.real-next-card{grid-template-columns:36px minmax(0,1fr)}.real-next-card .client-download-btn{grid-column:2;justify-self:start}}


/* =========================
   CLIENT DASHBOARD — REFINE
   ========================= */
body:not(.admin-body) .main{
  max-width:1480px;
  margin:0 auto;
}
.client-overview-strip{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:24px;
  align-items:center;
  margin:0 0 18px;
  padding:18px 20px;
  border:1px solid #e3ddd2;
  border-radius:12px;
  background:rgba(255,255,255,.72);
  box-shadow:0 6px 20px rgba(0,0,0,.035);
}
.overview-kicker,
.client-section-header span{
  display:block;
  margin-bottom:5px;
  font-size:9px;
  font-weight:900;
  letter-spacing:1.7px;
  color:#9a711b;
}
.overview-copy strong{
  display:block;
  font-size:17px;
  color:#202426;
}
.overview-copy small{
  display:block;
  margin-top:5px;
  color:#777e82;
  font-size:11px;
}
.overview-mini-stats{
  display:grid;
  grid-template-columns:repeat(2,minmax(110px,1fr));
  gap:10px;
}
.overview-mini-stats>div{
  min-width:120px;
  padding:11px 14px;
  border-radius:9px;
  background:#f5f2eb;
  border:1px solid #ebe3d6;
}
.overview-mini-stats span{
  display:block;
  font-size:9px;
  color:#858b8f;
  margin-bottom:5px;
}
.overview-mini-stats strong{
  font-size:15px;
  color:#222729;
}
.client-section-header{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  margin:28px 2px 10px;
}
.client-section-header h2{
  margin:0;
  font-size:19px;
  letter-spacing:-.2px;
  color:#222729;
}
.quick-header{
  margin-top:22px;
}
body:not(.admin-body) .hero{
  margin-top:0;
  min-height:270px;
}
body:not(.admin-body) .hero-center{
  padding:30px 28px;
}
body:not(.admin-body) .next{
  padding:28px 23px;
}
body:not(.admin-body) .quick{
  gap:14px;
}
body:not(.admin-body) .quick-card{
  min-height:150px;
  padding:18px;
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
body:not(.admin-body) .quick-card:hover{
  transform:translateY(-2px);
  border-color:#d8cfbe;
  box-shadow:0 11px 25px rgba(0,0,0,.065);
}
body:not(.admin-body) .panel{
  margin-top:0;
  border-radius:12px;
  background:#121313;
}
body:not(.admin-body) .panel-title{
  padding:9px 10px 13px;
  font-size:13px;
}
body:not(.admin-body) .panel-inner{
  padding:18px 20px;
}
.client-summary-card{
  margin-top:16px;
}
#proximos-passos .panel-inner{
  background:linear-gradient(180deg,#fbfaf7,#f7f4ee);
}
#realNextSteps{
  display:grid;
  gap:8px;
}
.real-next-card{
  box-shadow:0 4px 14px rgba(0,0,0,.025);
}
#clientApprovalList,
#clientFileList,
#clientActivityList,
#clientTimeline{
  max-width:100%;
}
.client-file-row,
.activity-row.client,
.client-approval-card{
  transition:background .15s ease,border-color .15s ease;
}
.client-file-row:hover,
.activity-row.client:hover{
  background:#fbfaf7;
}
.client-approval-card:hover{
  border-color:#d7cdbd;
}
@media(max-width:1100px){
  .client-overview-strip{
    grid-template-columns:1fr;
  }
  .overview-mini-stats{
    grid-template-columns:1fr 1fr;
  }
}
@media(max-width:780px){
  body:not(.admin-body) .main{
    padding-top:16px;
  }
  .hello h1{
    font-size:23px;
  }
  .hello p{
    font-size:12px;
  }
  .client-overview-strip{
    padding:15px;
    gap:14px;
    margin-bottom:14px;
  }
  .overview-copy strong{
    font-size:15px;
  }
  .overview-mini-stats{
    gap:8px;
  }
  .overview-mini-stats>div{
    min-width:0;
    padding:10px 11px;
  }
  .overview-mini-stats strong{
    font-size:13px;
  }
  .client-section-header{
    margin-top:22px;
    margin-bottom:8px;
  }
  .client-section-header h2{
    font-size:17px;
  }
  body:not(.admin-body) .hero{
    border-radius:12px;
  }
  body:not(.admin-body) .hero-center{
    padding:22px 18px;
  }
  body:not(.admin-body) .quick{
    grid-template-columns:1fr;
  }
  body:not(.admin-body) .quick-card{
    min-height:0;
    display:grid;
    grid-template-columns:48px minmax(0,1fr) auto;
    grid-template-areas:
      "icon title link"
      "icon text link";
    column-gap:12px;
    align-items:center;
    padding:14px;
  }
  body:not(.admin-body) .quick-icon{
    grid-area:icon;
    margin:0;
  }
  body:not(.admin-body) .quick-card h3{
    grid-area:title;
    margin:0 0 3px;
  }
  body:not(.admin-body) .quick-card p{
    grid-area:text;
    min-height:0;
    margin:0;
  }
  body:not(.admin-body) .quick-card a{
    grid-area:link;
    align-self:center;
  }
  body:not(.admin-body) .panel-inner{
    padding:14px;
  }
}
@media(max-width:520px){
  .overview-mini-stats{
    grid-template-columns:1fr;
  }
  body:not(.admin-body) .quick-card{
    grid-template-columns:44px minmax(0,1fr);
    grid-template-areas:
      "icon title"
      "icon text"
      ". link";
  }
  .client-section-header h2{
    font-size:16px;
  }
}


/* Próximos Passos dinâmico dentro do quadro original */
.next .next-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  margin-bottom:14px;
}
.next .next-head>span{
  font-size:10px;
  font-weight:900;
  letter-spacing:1.4px;
  color:#d1a64a;
}
.next .next-head>small{
  font-size:8px;
  color:#83898b;
}
.hero-real-next{
  display:grid;
  gap:8px;
}
.next-loading{
  padding:8px 0;
  font-size:10px;
  color:#919799;
}
.next .next-group-label{
  margin:4px 0 3px;
  font-size:8px;
  font-weight:900;
  letter-spacing:1.2px;
  color:#b78b33;
}
.next .next-group-label:not(:first-child){
  margin-top:11px;
}
.next .real-next-card{
  display:grid;
  grid-template-columns:32px minmax(0,1fr);
  gap:9px;
  align-items:center;
  padding:10px 0;
  margin:0;
  border:0;
  border-top:1px solid rgba(255,255,255,.08);
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.next .real-next-card:first-of-type{
  border-top:0;
}
.next .real-next-icon{
  width:30px;
  height:30px;
  border-radius:7px;
  background:#282a2a;
  color:#d6ad53;
}
.next .real-next-content strong{
  color:#fff;
  font-size:11px;
}
.next .real-next-content p{
  color:#aeb3b5;
  font-size:9px;
}
.next .real-next-content small{
  color:#818789;
  font-size:9px;
}
.next .client-download-btn{
  grid-column:2;
  justify-self:start;
  margin-top:2px;
  background:transparent;
  color:#d7b76d;
  border-color:#6d6148;
}
.next .next-complete-state{
  padding:10px;
  border-radius:8px;
  background:#242626;
  border:1px solid #333636;
}
.next .next-complete-state strong{
  color:#d8dcda;
}
.next .next-complete-state p{
  color:#888f8b;
}

.team-contact-clickable{cursor:pointer;transition:transform .16s ease,box-shadow .16s ease}
.team-contact-clickable:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(0,0,0,.08)}
.team-contact-clickable:focus-visible{outline:2px solid #b88a2c;outline-offset:3px}

/* Remove controles decorativos sem função no topo do portal do cliente */
.top-actions .icon-btn,
.header-actions .icon-btn,
.user-actions .icon-btn{
  display:none !important;
}

.project-cover-manager{margin-top:22px;padding-top:20px;border-top:1px solid #edf0f2}
.cover-preview-wrap{min-height:150px;border:1px dashed #d7dce0;border-radius:10px;display:grid;place-items:center;overflow:hidden;background:#f8f8f7}
#coverPreview{width:100%;height:220px;object-fit:cover;display:block}
#projectCoverImage{width:100%;height:100%;object-fit:cover}

#projectCoverBlock{
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}

/* Logo do Portal do Cliente */
.brand{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:86px;
  padding:10px 12px 18px !important;
  overflow:hidden;
}
.client-brand-logo{
  display:block;
  width:100%;
  max-width:205px;
  height:auto;
  max-height:72px;
  object-fit:contain;
  object-position:center;
}
@media(max-width:780px){
  .brand{min-height:70px;padding:8px 10px !important}
  .client-brand-logo{max-width:165px;max-height:56px}
}

.admin-logo-block{
  display:flex !important;
  align-items:center;
  justify-content:center;
  min-height:86px;
  padding:10px 12px 18px !important;
  overflow:hidden;
}
.admin-brand-logo{
  display:block;
  width:100%;
  max-width:205px;
  max-height:72px;
  height:auto;
  object-fit:contain;
  object-position:center;
}
@media(max-width:780px){
  .admin-logo-block{min-height:70px;padding:8px 10px !important}
  .admin-brand-logo{max-width:165px;max-height:56px}
}


/* ==================================================
   LOGIN — estética Kanban / vidro arquitetônico
   ================================================== */
.kanban-login-page{
  min-height:100vh;
  margin:0;
  position:relative;
  overflow:hidden;
  background:
    linear-gradient(115deg,rgba(7,10,11,.62),rgba(7,10,11,.28)),
    url("../assets/login-office.png") center/cover no-repeat fixed;
}
.kanban-login-page::before{
  content:"";
  position:fixed;
  inset:0;
  background:
    radial-gradient(circle at 18% 20%,rgba(255,255,255,.08),transparent 28%),
    linear-gradient(180deg,rgba(0,0,0,.04),rgba(0,0,0,.25));
  pointer-events:none;
}
.kanban-login-wrap{
  position:relative;
  z-index:1;
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:36px 22px;
}
.kanban-login-card{
  width:min(420px,92vw);
  padding:34px 34px 30px;
  border-radius:22px;
  border:1px solid rgba(255,255,255,.20);
  background:linear-gradient(145deg,rgba(20,22,22,.56),rgba(8,10,10,.42));
  box-shadow:
    0 30px 80px rgba(0,0,0,.38),
    inset 0 1px 0 rgba(255,255,255,.10);
  backdrop-filter:blur(22px) saturate(125%);
  -webkit-backdrop-filter:blur(22px) saturate(125%);
  color:#fff;
}
.kanban-login-brand{
  display:flex;
  justify-content:center;
  margin-bottom:22px;
}
.kanban-login-brand img{
  display:block;
  width:min(220px,78%);
  max-height:82px;
  object-fit:contain;
}
.kanban-login-copy{
  text-align:center;
  margin-bottom:24px;
}
.kanban-login-copy span{
  display:block;
  margin-bottom:8px;
  color:#d2ad5b;
  font-size:9px;
  font-weight:800;
  letter-spacing:2.2px;
}
.kanban-login-copy h1{
  margin:0;
  font-size:29px;
  font-weight:700;
  letter-spacing:-.4px;
}
.kanban-login-copy p{
  margin:9px 0 0;
  color:rgba(255,255,255,.66);
  font-size:12px;
  line-height:1.5;
}
.kanban-login-form{
  display:grid;
  gap:9px;
}
.kanban-login-form label{
  margin-top:6px;
  color:rgba(255,255,255,.76);
  font-size:10px;
  font-weight:700;
}
.kanban-input-wrap{
  position:relative;
}
.kanban-input-wrap input{
  width:100%;
  height:48px;
  border-radius:11px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.075);
  color:#fff;
  padding:0 14px;
  outline:none;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
}
.kanban-input-wrap input::placeholder{
  color:rgba(255,255,255,.38);
}
.kanban-input-wrap input:focus{
  border-color:rgba(214,174,83,.75);
  background:rgba(255,255,255,.10);
  box-shadow:0 0 0 3px rgba(203,157,54,.13);
}
.kanban-login-button{
  width:100%;
  height:48px;
  margin-top:10px;
  border:0;
  border-radius:11px;
  background:linear-gradient(135deg,#c89a39,#9a6e18);
  color:#fff;
  font-weight:800;
  font-size:12px;
  letter-spacing:.3px;
  box-shadow:0 10px 25px rgba(0,0,0,.22);
}
.kanban-login-button:hover{
  filter:brightness(1.07);
  transform:translateY(-1px);
}
.kanban-first-access{
  width:100%;
  border:0;
  background:transparent;
  color:#d8b966;
  padding:9px 4px 2px;
  font-size:10px;
  font-weight:700;
}
.kanban-first-access:hover{
  color:#f0d488;
}
.kanban-login-message{
  min-height:17px;
  margin:3px 0 0;
  color:#f1d6a1;
  text-align:center;
  font-size:10px;
  line-height:1.4;
}
.kanban-login-footer{
  position:fixed;
  left:0;
  right:0;
  bottom:15px;
  text-align:center;
  color:rgba(255,255,255,.44);
  font-size:9px;
  letter-spacing:.6px;
}
@media(max-width:600px){
  .kanban-login-wrap{
    padding:24px 14px;
  }
  .kanban-login-card{
    width:min(390px,94vw);
    padding:28px 22px 24px;
    border-radius:18px;
  }
  .kanban-login-brand img{
    width:min(200px,78%);
  }
  .kanban-login-copy h1{
    font-size:25px;
  }
}

.team-permission-block,.team-project-block{
  border:1px solid #e1e5e8;
  border-radius:10px;
  overflow:hidden;
}
.team-permission-title{
  padding:12px 14px;
  background:#f7f8f8;
  border-bottom:1px solid #e5e8ea;
}
.team-permission-title strong{display:block;font-size:12px;color:#333a40}
.team-permission-title small{display:block;margin-top:4px;font-size:10px;color:#7f878d}
.team-permission-table{padding:5px 14px 10px}
.perm-head,.perm-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) 80px 80px;
  gap:8px;
  align-items:center;
}
.perm-head{
  padding:9px 0 7px;
  font-size:9px;
  font-weight:900;
  color:#8b9296;
  text-transform:uppercase;
  letter-spacing:.6px;
}
.perm-head span:not(:first-child){text-align:center}
.perm-row{
  padding:9px 0;
  border-top:1px solid #eef0f1;
  font-size:11px!important;
  font-weight:700!important;
}
.perm-row input{width:16px!important;height:16px!important;margin:auto}
.perm-na{text-align:center;color:#a8adaf}
.team-project-checklist{
  max-height:220px;
  overflow:auto;
  padding:9px 14px;
}
.team-project-option{
  display:flex!important;
  grid-template-columns:none!important;
  align-items:center;
  gap:9px!important;
  padding:8px 0;
  border-bottom:1px solid #eef0f1;
}
.team-project-option:last-child{border-bottom:0}
.team-project-option input{width:16px!important;height:16px!important}
.team-project-option span{font-size:11px;color:#444b50}
.team-member-card{
  display:grid;
  grid-template-columns:42px minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  padding:14px 4px;
  border-bottom:1px solid #edf0f2;
}
.team-member-card:last-child{border-bottom:0}
.team-member-avatar{
  width:38px;height:38px;border-radius:50%;
  display:grid;place-items:center;
  background:#f2ede2;color:#8e6818;
  font-size:11px;font-weight:900;
}
.team-member-main strong{display:block;font-size:12px}
.team-member-main p{margin:4px 0 0;font-size:10px;color:#777f84}
.team-member-main small{display:block;margin-top:4px;font-size:9px;color:#989ea2}
@media(max-width:720px){
  .perm-head,.perm-row{grid-template-columns:minmax(0,1fr) 65px 65px}
  .team-member-card{grid-template-columns:38px minmax(0,1fr)}
  .team-member-card>.admin-secondary{grid-column:2;justify-self:start}
}

#adminTeam{display:none}
#adminTeam.active{display:block!important}

#adminTeam{display:none}
#adminTeam.active{display:block!important}

.team-permission-block,
.team-project-block{
  border:1px solid #e1e5e8;
  border-radius:10px;
  overflow:hidden;
}

.team-permission-title{
  padding:12px 14px;
  background:#f7f8f8;
  border-bottom:1px solid #e5e8ea;
}

.team-permission-title strong{
  display:block;
  font-size:12px;
  color:#333a40;
}

.team-permission-title small{
  display:block;
  margin-top:4px;
  font-size:10px;
  color:#7f878d;
}

.team-permission-table{
  padding:5px 14px 10px;
}

.perm-head,
.perm-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) 80px 80px;
  gap:8px;
  align-items:center;
}

.perm-head{
  padding:9px 0 7px;
  font-size:9px;
  font-weight:900;
  color:#8b9296;
  text-transform:uppercase;
}

.perm-head span:not(:first-child){
  text-align:center;
}

.perm-row{
  padding:9px 0;
  border-top:1px solid #eef0f1;
  font-size:11px!important;
  font-weight:700!important;
}

.perm-row input{
  width:16px!important;
  height:16px!important;
  margin:auto;
}

.perm-na{
  text-align:center;
  color:#a8adaf;
}

.team-project-checklist{
  max-height:220px;
  overflow:auto;
  padding:9px 14px;
}

.team-project-option{
  display:flex!important;
  align-items:center;
  gap:9px!important;
  padding:8px 0;
  border-bottom:1px solid #eef0f1;
}

.team-project-option:last-child{
  border-bottom:0;
}

.team-project-option input{
  width:16px!important;
  height:16px!important;
}

.team-project-option span{
  font-size:11px;
  color:#444b50;
}

.team-member-card{
  display:grid;
  grid-template-columns:42px minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  padding:14px 4px;
  border-bottom:1px solid #edf0f2;
}

.team-member-card:last-child{
  border-bottom:0;
}

.team-member-avatar{
  width:38px;
  height:38px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#f2ede2;
  color:#8e6818;
  font-size:11px;
  font-weight:900;
}

.team-member-main strong{
  display:block;
  font-size:12px;
}

.team-member-main p{
  margin:4px 0 0;
  font-size:10px;
  color:#777f84;
}

.team-member-main small{
  display:block;
  margin-top:4px;
  font-size:9px;
  color:#989ea2;
}

#adminTrainings,
#teamTrainings{display:none}
#adminTrainings.active,
#teamTrainings.active{display:block!important}

.training-admin-card{
  display:grid;
  grid-template-columns:42px minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  padding:14px 4px;
  border-bottom:1px solid #edf0f2;
}
.training-admin-card:last-child{border-bottom:0}
.training-admin-icon{
  width:38px;height:38px;border-radius:9px;
  display:grid;place-items:center;
  background:#f2ede2;color:#8e6818;
  font-size:12px;font-weight:900;
}
.training-admin-main strong{display:block;font-size:12px}
.training-admin-main p{margin:4px 0 0;font-size:10px;color:#777f84}
.training-admin-main small{display:block;margin-top:4px;font-size:9px;color:#989ea2}
.training-admin-actions{display:flex;gap:7px}

.team-training-toolbar{
  display:grid;
  grid-template-columns:minmax(0,1fr) 320px;
  gap:20px;
  align-items:center;
  padding:16px 18px;
  background:#fff;
  border:1px solid #dfe3e7;
  border-radius:12px;
  margin-bottom:18px;
}
.team-training-toolbar strong{display:block;font-size:13px}
.team-training-toolbar small{display:block;margin-top:4px;font-size:10px;color:#838b90}
.team-training-progressbar{
  height:8px;
  border-radius:999px;
  overflow:hidden;
  background:#eceff1;
}
.team-training-progressbar span{
  display:block;
  height:100%;
  background:#c69735;
  border-radius:999px;
  transition:width .25s ease;
}

.training-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}
.training-card{
  background:#fff;
  border:1px solid #dfe3e7;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 5px 18px rgba(20,28,35,.04);
}
.training-card.completed{
  border-color:#cfe1ca;
}
.training-video-wrap{
  aspect-ratio:16/9;
  background:#111;
}
.training-video-wrap iframe{
  width:100%;
  height:100%;
  border:0;
  display:block;
}
.training-card-body{
  padding:16px;
}
.training-card-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
}
.training-category{
  font-size:9px;
  font-weight:900;
  letter-spacing:.7px;
  text-transform:uppercase;
  color:#9a741d;
}
.training-complete-badge{
  padding:4px 7px;
  border-radius:999px;
  background:#edf7e8;
  color:#4e913c;
  font-size:9px;
  font-weight:800;
}
.training-card h3{
  margin:9px 0 7px;
  font-size:15px;
}
.training-card p{
  margin:0 0 14px;
  font-size:11px;
  color:#6f777d;
  line-height:1.55;
}
.training-undo-btn{
  border:1px solid #d8dde1;
  background:#fff;
  color:#555d62;
  border-radius:8px;
  padding:10px 12px;
  font-size:10px;
  font-weight:800;
}

@media(max-width:900px){
  .training-grid{grid-template-columns:1fr}
  .team-training-toolbar{grid-template-columns:1fr}
}
@media(max-width:720px){
  .training-admin-card{grid-template-columns:38px minmax(0,1fr)}
  .training-admin-actions{grid-column:2}
}

#portalKanban{display:none}#portalKanban.active{display:block!important}.kanban-head-actions,.kanban-toolbar{display:flex;gap:8px;align-items:center;justify-content:space-between}.kanban-head-actions select{padding:10px;border:1px solid #ddd;border-radius:8px;min-width:200px}.kanban-columns{display:flex;gap:14px;overflow-x:auto;min-height:500px;padding:15px 0}.kanban-column{flex:0 0 290px;background:#f3f4f4;border:1px solid #e0e4e6;border-radius:12px;padding:10px}.kanban-column-head{display:flex;justify-content:space-between;padding:5px}.kanban-column-head button{border:0;background:none;font-size:16px}.kanban-card-list{min-height:50px}.kanban-card{background:white;border:1px solid #e1e4e6;border-radius:9px;padding:12px;margin:8px 0;cursor:pointer}.kanban-card h4{margin:7px 0;font-size:11px}.kanban-card p{font-size:9px;color:#777}.kanban-card footer{display:flex;justify-content:space-between;align-items:center}.kanban-tag{font-size:8px;background:#f5eedc;color:#906a18;padding:4px 6px;border-radius:5px}.kanban-avatar{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#eae2d0;color:#806018;font-size:7px;font-weight:bold;margin-right:-4px}.kanban-add-card{border:0;background:none;padding:8px;color:#777;font-weight:bold}.kanban-empty{min-height:250px;display:grid;place-items:center;align-content:center;gap:10px}.kanban-modal{position:fixed;inset:0;background:rgba(10,15,18,.58);z-index:9999;place-items:center;padding:20px}.kanban-modal-card{position:relative;background:#fff;border-radius:14px;padding:22px;width:min(620px,95vw);max-height:90vh;overflow:auto}.kanban-modal-card.small{width:min(430px,95vw)}.kanban-x{position:absolute;right:14px;top:12px;border:0;background:#eee;border-radius:50%;width:30px;height:30px;font-size:18px}.kanban-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}@media(max-width:700px){.kanban-form-grid{grid-template-columns:1fr}.kanban-head-actions{flex-wrap:wrap}}

.kanban-filterbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:14px 0 0;padding:11px;background:#f7f8f8;border:1px solid #e1e5e7;border-radius:10px}
.kanban-filterbar input,.kanban-filterbar select{height:36px;border:1px solid #d9dee1;background:#fff;border-radius:7px;padding:0 10px;font-size:9.5px;color:#555e63}
.kanban-filterbar input{min-width:190px;flex:1}.kanban-filterbar select{min-width:140px}
#kanbanMyTasksBtn.active{background:#a77b22;color:#fff;border-color:#a77b22}
.kanban-clear-filter{border:0;background:transparent;color:#8a9094;font-size:9px;font-weight:800;cursor:pointer}
.kanban-card-labels{display:flex;align-items:center;justify-content:space-between;gap:6px}
.kanban-priority{font-size:7.5px;font-weight:900;text-transform:uppercase;letter-spacing:.35px;padding:4px 6px;border-radius:5px}
.kanban-priority.priority-low{background:#edf1f2;color:#718087}.kanban-priority.priority-normal{background:#eef0e7;color:#727852}.kanban-priority.priority-high{background:#fff0d9;color:#a06c18}.kanban-priority.priority-urgent{background:#fbe5e2;color:#ad4338}
.kanban-card.priority-urgent{border-left:3px solid #c75b50}.kanban-card.priority-high{border-left:3px solid #d9a13b}
.kanban-count{margin-left:auto;margin-right:5px;font-size:8px;background:#e2e5e6;padding:2px 6px;border-radius:999px;color:#737b80}
@media(max-width:700px){.kanban-filterbar>*{width:100%!important;min-width:0!important}}

.kanban-view-toggle{display:flex;gap:3px;margin:14px 0 0;width:max-content;padding:3px;background:#eceff0;border-radius:8px}
.kanban-view-toggle button{border:0;background:transparent;border-radius:6px;padding:7px 11px;font-size:9px;font-weight:800;color:#747c81;cursor:pointer}
.kanban-view-toggle button.active{background:#fff;color:#8d6718;box-shadow:0 1px 5px rgba(0,0,0,.08)}
.kanban-card.dragging{opacity:.4}.kanban-card.drag-over{border-top:3px solid #b4872b}
.kanban-calendar-view{margin-top:15px;background:#fff;border:1px solid #dfe3e5;border-radius:12px;overflow:hidden}
.kanban-calendar-head{display:grid;grid-template-columns:40px 1fr 40px;align-items:center;padding:14px 16px;border-bottom:1px solid #e6e9ea;text-align:center}
.kanban-calendar-head strong{font-size:13px}.kanban-calendar-head button{border:0;background:#f2f4f4;border-radius:7px;width:30px;height:30px;font-size:18px;color:#666;cursor:pointer}
.kanban-calendar-weekdays,.kanban-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
.kanban-calendar-weekdays{background:#f7f8f8;border-bottom:1px solid #e5e8e9}.kanban-calendar-weekdays span{text-align:center;padding:8px;font-size:8px;font-weight:900;text-transform:uppercase;color:#858d92}
.kanban-calendar-day{min-height:125px;border-right:1px solid #edf0f1;border-bottom:1px solid #edf0f1;padding:7px;background:#fff}.kanban-calendar-day:nth-child(7n){border-right:0}.kanban-calendar-day.outside{background:#fafafa}.kanban-calendar-day.today{background:#fffaf0}
.kanban-calendar-date{font-size:9px;font-weight:800;color:#697176;margin-bottom:5px}.kanban-calendar-day.today .kanban-calendar-date{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#a77b22;color:#fff}
.kanban-calendar-events{display:grid;gap:4px}.kanban-calendar-event{border:0;border-left:3px solid #b6bec2;background:#f3f5f5;border-radius:5px;padding:5px 6px;text-align:left;cursor:pointer;overflow:hidden}.kanban-calendar-event strong{display:block;font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#454c50}.kanban-calendar-event small{display:block;margin-top:2px;font-size:7px;color:#81898e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kanban-calendar-event.priority-urgent{border-left-color:#c75b50;background:#fff2f0}.kanban-calendar-event.priority-high{border-left-color:#d9a13b;background:#fff8e9}.kanban-calendar-event.priority-low{border-left-color:#9aabb2}
@media(max-width:800px){.kanban-calendar-view{overflow-x:auto}.kanban-calendar-weekdays,.kanban-calendar-grid{min-width:760px}}

/* Reordenação das colunas do Kanban */
.kanban-column{
  cursor:grab;
  transition:transform .15s ease,opacity .15s ease,box-shadow .15s ease,border-color .15s ease;
}
.kanban-column:active{
  cursor:grabbing;
}
.kanban-column.column-dragging{
  opacity:.45;
  transform:scale(.985);
}
.kanban-column.column-drop-target{
  border-color:#b4872b;
  box-shadow:0 0 0 2px rgba(180,135,43,.18);
}
.kanban-column-head{
  gap:6px;
}
.kanban-column-handle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#9aa0a3;
  font-size:14px;
  line-height:1;
  cursor:grab;
  user-select:none;
  letter-spacing:-4px;
  margin-right:2px;
}
.kanban-column-handle:active{
  cursor:grabbing;
}
.kanban-card{
  cursor:pointer;
}


.kanban-responsible-names{
  display:flex;
  flex-wrap:wrap;
  gap:4px;
  min-width:0;
}
.kanban-responsible-name{
  display:inline-block;
  max-width:145px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  padding:4px 6px;
  border-radius:5px;
  background:#eee8db;
  color:#73591f;
  font-size:7.5px;
  font-weight:800;
}

/* Drag isolado: cards e colunas não competem entre si */
.kanban-column{
  cursor:default!important;
}
.kanban-column-handle{
  cursor:grab!important;
}
.kanban-column-handle:active{
  cursor:grabbing!important;
}
.kanban-card{
  cursor:grab;
}
.kanban-card:active{
  cursor:grabbing;
}
.kanban-card-list{
  min-height:80px;
}

/* Sidebar compacta */
.sidebar .nav{
  gap:2px!important;
}
.sidebar .nav-btn{
  min-height:36px!important;
  padding:7px 10px!important;
  border-radius:7px!important;
}
.sidebar .nav-btn span{
  width:20px!important;
  min-width:20px!important;
  font-size:12px!important;
}
.sidebar .nav-btn b{
  font-size:9.5px!important;
}
.sidebar{
  overflow-y:auto;
}
.sidebar::-webkit-scrollbar{
  width:4px;
}
.sidebar::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,.14);
  border-radius:999px;
}

/* Marketing */
#marketingArea{display:none}
#marketingArea.active{display:block!important}

.marketing-stats{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin:14px 0;
}
.marketing-stats>div{
  background:#fff;
  border:1px solid #e1e5e7;
  border-radius:10px;
  padding:13px 14px;
}
.marketing-stats small{
  display:block;
  color:#81898d;
  font-size:8px;
  text-transform:uppercase;
  font-weight:800;
}
.marketing-stats strong{
  display:block;
  font-size:22px;
  margin-top:5px;
  color:#343a3d;
}

.marketing-tabs{
  display:flex;
  gap:3px;
  width:max-content;
  padding:3px;
  background:#eceff0;
  border-radius:8px;
  margin:12px 0;
}
.marketing-tabs button{
  border:0;
  background:transparent;
  border-radius:6px;
  padding:7px 12px;
  font-size:9px;
  font-weight:800;
  color:#747c81;
  cursor:pointer;
}
.marketing-tabs button.active{
  background:#fff;
  color:#8d6718;
  box-shadow:0 1px 5px rgba(0,0,0,.08);
}

.marketing-calendar{
  background:#fff;
  border:1px solid #dfe3e5;
  border-radius:12px;
  overflow:hidden;
}
.marketing-calendar-head{
  display:grid;
  grid-template-columns:40px 1fr 40px;
  align-items:center;
  text-align:center;
  padding:13px 15px;
  border-bottom:1px solid #e6e9ea;
}
.marketing-calendar-head button{
  border:0;
  background:#f2f4f4;
  border-radius:7px;
  width:30px;
  height:30px;
  font-size:18px;
  cursor:pointer;
}
.marketing-calendar-head strong{
  font-size:13px;
}
.marketing-weekdays,
.marketing-calendar-grid{
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
}
.marketing-weekdays{
  background:#f7f8f8;
  border-bottom:1px solid #e5e8e9;
}
.marketing-weekdays span{
  text-align:center;
  padding:8px;
  font-size:8px;
  font-weight:900;
  text-transform:uppercase;
  color:#858d92;
}
.marketing-calendar-day{
  min-height:120px;
  border-right:1px solid #edf0f1;
  border-bottom:1px solid #edf0f1;
  padding:7px;
  background:#fff;
}
.marketing-calendar-day:nth-child(7n){
  border-right:0;
}
.marketing-calendar-day.outside{
  background:#fafafa;
}
.marketing-calendar-date{
  font-size:9px;
  font-weight:800;
  color:#697176;
  margin-bottom:5px;
}
.marketing-calendar-events{
  display:grid;
  gap:4px;
}
.marketing-cal-event{
  width:100%;
  border:0;
  border-left:3px solid #aaa;
  background:#f3f5f5;
  border-radius:5px;
  padding:5px 6px;
  text-align:left;
  cursor:pointer;
}
.marketing-cal-event strong,
.marketing-cal-event small{
  display:block;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.marketing-cal-event strong{
  font-size:8px;
  color:#454c50;
}
.marketing-cal-event small{
  font-size:7px;
  color:#7c8589;
  margin-top:2px;
}

.marketing-filters{
  display:flex;
  gap:8px;
  margin:12px 0;
}
.marketing-filters input,
.marketing-filters select{
  border:1px solid #dce1e3;
  border-radius:8px;
  padding:10px;
  background:#fff;
  font-size:10px;
}
.marketing-filters input{
  flex:1;
}

.marketing-content-list{
  display:grid;
  gap:8px;
}
.marketing-content-card{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  background:#fff;
  border:1px solid #e1e5e7;
  border-radius:9px;
  padding:12px 14px;
  cursor:pointer;
}
.marketing-content-card h4{
  margin:6px 0 3px;
  font-size:11px;
}
.marketing-content-card p,
.marketing-content-card time{
  font-size:8px;
  color:#7d8589;
}
.marketing-status{
  font-size:7px;
  font-weight:900;
  text-transform:uppercase;
  padding:4px 6px;
  border-radius:5px;
}
.status-idea{background:#edf0f1;color:#69767c}
.status-production{background:#fff1d9;color:#98691c}
.status-review{background:#eee8f8;color:#70568e}
.status-approved{background:#e5f2e9;color:#4f795c}
.status-published{background:#e1eff4;color:#477481}

.marketing-cal-event.status-production{
  border-left-color:#d6a13b;
  background:#fff8e9;
}
.marketing-cal-event.status-review{
  border-left-color:#8a6ba7;
  background:#f8f3fc;
}
.marketing-cal-event.status-approved{
  border-left-color:#6f9d7c;
  background:#f0f8f2;
}
.marketing-cal-event.status-published{
  border-left-color:#6393a4;
  background:#eff7fa;
}

@media(max-width:800px){
  .marketing-stats{
    grid-template-columns:1fr 1fr;
  }
  .marketing-calendar{
    overflow-x:auto;
  }
  .marketing-weekdays,
  .marketing-calendar-grid{
    min-width:760px;
  }
  .marketing-filters{
    flex-direction:column;
  }
}

/* =========================================================
   PORTAL DA EQUIPE — MOBILE
   Escopo exclusivo de team.html. Desktop permanece intacto.
   ========================================================= */
.team-mobile-menu-btn,
.team-mobile-overlay{
  display:none;
}

@media (max-width:780px){

  body.team-mobile-ready{
    overflow-x:hidden;
  }

  body.team-mobile-ready .team-mobile-menu-btn{
    display:flex;
    position:fixed;
    top:14px;
    left:14px;
    z-index:10003;
    width:40px;
    height:40px;
    border:1px solid rgba(255,255,255,.12);
    border-radius:10px;
    background:#1e2020;
    box-shadow:0 8px 20px rgba(0,0,0,.18);
    align-items:center;
    justify-content:center;
    flex-direction:column;
    gap:4px;
    cursor:pointer;
  }

  body.team-mobile-ready .team-mobile-menu-btn span{
    display:block;
    width:17px;
    height:2px;
    border-radius:999px;
    background:#d1a64a;
    transition:transform .2s ease,opacity .2s ease;
  }

  body.team-mobile-ready.team-mobile-menu-open .team-mobile-menu-btn span:nth-child(1){
    transform:translateY(6px) rotate(45deg);
  }
  body.team-mobile-ready.team-mobile-menu-open .team-mobile-menu-btn span:nth-child(2){
    opacity:0;
  }
  body.team-mobile-ready.team-mobile-menu-open .team-mobile-menu-btn span:nth-child(3){
    transform:translateY(-6px) rotate(-45deg);
  }

  body.team-mobile-ready .team-mobile-overlay{
    display:block;
    position:fixed;
    inset:0;
    z-index:9998;
    background:rgba(10,13,14,.48);
    backdrop-filter:blur(2px);
    opacity:0;
    pointer-events:none;
    transition:opacity .2s ease;
  }

  body.team-mobile-ready.team-mobile-menu-open .team-mobile-overlay{
    opacity:1;
    pointer-events:auto;
  }

  /* Sidebar vira drawer */
  body.team-mobile-ready .sidebar{
    position:fixed !important;
    top:0;
    left:0;
    bottom:0;
    z-index:9999;
    width:min(82vw,290px) !important;
    max-width:290px;
    height:100dvh;
    transform:translateX(-105%);
    transition:transform .22s ease;
    overflow-y:auto;
    box-shadow:18px 0 42px rgba(0,0,0,.22);
  }

  body.team-mobile-ready.team-mobile-menu-open .sidebar{
    transform:translateX(0);
  }

  /* Conteúdo ocupa 100% da tela */
  body.team-mobile-ready main,
  body.team-mobile-ready .main,
  body.team-mobile-ready .admin-main,
  body.team-mobile-ready .content,
  body.team-mobile-ready .page-content{
    margin-left:0 !important;
    width:100% !important;
    max-width:none !important;
  }

  body.team-mobile-ready .topbar,
  body.team-mobile-ready header{
    padding-left:64px !important;
  }

  body.team-mobile-ready .page-section{
    padding-left:14px !important;
    padding-right:14px !important;
  }

  body.team-mobile-ready .admin-section-head{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:10px;
  }

  body.team-mobile-ready .admin-section-head h2{
    font-size:20px;
  }

  body.team-mobile-ready .admin-section-head p{
    font-size:10px;
    line-height:1.45;
  }

  body.team-mobile-ready .admin-section-head > button,
  body.team-mobile-ready .admin-section-head .admin-primary{
    width:100%;
    justify-content:center;
  }

  /* Cards e grids */
  body.team-mobile-ready .admin-grid-2,
  body.team-mobile-ready .admin-grid-3,
  body.team-mobile-ready .dashboard-grid,
  body.team-mobile-ready .stats-grid,
  body.team-mobile-ready .marketing-stats{
    grid-template-columns:1fr !important;
  }

  body.team-mobile-ready .admin-card{
    border-radius:10px;
  }

  body.team-mobile-ready .admin-card-head{
    align-items:flex-start;
  }

  /* Formulários */
  body.team-mobile-ready .admin-form,
  body.team-mobile-ready .kanban-form-grid{
    grid-template-columns:1fr !important;
  }

  body.team-mobile-ready .admin-form input,
  body.team-mobile-ready .admin-form select,
  body.team-mobile-ready .admin-form textarea,
  body.team-mobile-ready .marketing-filters input,
  body.team-mobile-ready .marketing-filters select{
    width:100%;
    min-height:42px;
    font-size:16px; /* evita zoom automático no iPhone */
  }

  body.team-mobile-ready .step-form-actions{
    display:grid;
    grid-template-columns:1fr;
    gap:8px;
  }

  body.team-mobile-ready .step-form-actions > *{
    width:100%;
    justify-content:center;
  }

  /* Kanban em tela pequena */
  body.team-mobile-ready .kanban-page-head{
    align-items:stretch;
  }

  body.team-mobile-ready .kanban-head-actions{
    display:grid !important;
    grid-template-columns:1fr 1fr;
    width:100%;
  }

  body.team-mobile-ready .kanban-head-actions select{
    grid-column:1 / -1;
    width:100%;
    min-width:0 !important;
  }

  body.team-mobile-ready .kanban-filterbar{
    display:grid !important;
    grid-template-columns:1fr 1fr;
  }

  body.team-mobile-ready .kanban-filterbar input{
    grid-column:1 / -1;
  }

  body.team-mobile-ready .kanban-filterbar select,
  body.team-mobile-ready .kanban-filterbar button{
    width:100%;
    min-width:0 !important;
  }

  body.team-mobile-ready .kanban-view-toggle{
    width:100%;
  }

  body.team-mobile-ready .kanban-view-toggle button{
    flex:1;
  }

  body.team-mobile-ready .kanban-columns{
    scroll-snap-type:x proximity;
    padding-bottom:14px;
    gap:10px;
  }

  body.team-mobile-ready .kanban-column{
    flex:0 0 84vw !important;
    max-width:330px;
    scroll-snap-align:start;
  }

  body.team-mobile-ready .kanban-card{
    padding:12px;
  }

  body.team-mobile-ready .kanban-responsible-name{
    max-width:100%;
    font-size:8px;
  }

  /* Calendários com scroll horizontal controlado */
  body.team-mobile-ready .kanban-calendar-view,
  body.team-mobile-ready .marketing-calendar{
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }

  body.team-mobile-ready .kanban-calendar-weekdays,
  body.team-mobile-ready .kanban-calendar-grid,
  body.team-mobile-ready .marketing-weekdays,
  body.team-mobile-ready .marketing-calendar-grid{
    min-width:720px;
  }

  /* Treinamentos */
  body.team-mobile-ready .training-grid{
    grid-template-columns:1fr !important;
  }

  body.team-mobile-ready .team-training-toolbar{
    grid-template-columns:1fr !important;
  }

  /* Marketing */
  body.team-mobile-ready .marketing-tabs{
    width:100%;
  }

  body.team-mobile-ready .marketing-tabs button{
    flex:1;
  }

  body.team-mobile-ready .marketing-filters{
    flex-direction:column;
  }

  body.team-mobile-ready .marketing-content-card{
    align-items:flex-start;
    gap:8px;
  }

  /* Modais */
  body.team-mobile-ready .kanban-modal{
    align-items:flex-end;
    padding:0;
  }

  body.team-mobile-ready .kanban-modal-card{
    width:100% !important;
    max-width:none !important;
    max-height:92dvh;
    border-radius:16px 16px 0 0;
    padding:18px 14px calc(18px + env(safe-area-inset-bottom));
  }

  body.team-mobile-ready .kanban-x{
    width:34px;
    height:34px;
  }

  /* Usuário no topo */
  body.team-mobile-ready .admin-user{
    max-width:calc(100vw - 80px);
  }

  body.team-mobile-ready .admin-user strong{
    max-width:130px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
}

@media (max-width:420px){
  body.team-mobile-ready .kanban-head-actions,
  body.team-mobile-ready .kanban-filterbar{
    grid-template-columns:1fr;
  }

  body.team-mobile-ready .kanban-head-actions select,
  body.team-mobile-ready .kanban-filterbar input{
    grid-column:auto;
  }

  body.team-mobile-ready .kanban-column{
    flex-basis:88vw !important;
  }
}

/* Correção do menu mobile da Equipe */
@media (max-width:780px){

  body.team-mobile-ready .team-mobile-menu-btn{
    display:flex !important;
    pointer-events:auto !important;
    touch-action:manipulation;
  }

  body.team-mobile-ready .team-mobile-overlay{
    display:block !important;
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:opacity .2s ease, visibility .2s ease;
  }

  body.team-mobile-ready .team-mobile-overlay.show,
  body.team-mobile-ready.team-mobile-menu-open .team-mobile-overlay{
    opacity:1 !important;
    visibility:visible !important;
    pointer-events:auto !important;
  }

  body.team-mobile-ready .team-mobile-sidebar,
  body.team-mobile-ready .sidebar{
    position:fixed !important;
    top:0 !important;
    left:0 !important;
    bottom:0 !important;
    width:min(82vw,290px) !important;
    max-width:290px !important;
    height:100dvh !important;
    z-index:10001 !important;
    transform:translateX(-105%) !important;
    transition:transform .22s ease !important;
    margin:0 !important;
  }

  body.team-mobile-ready .team-mobile-sidebar.mobile-open,
  body.team-mobile-ready.team-mobile-menu-open .team-mobile-sidebar,
  body.team-mobile-ready.team-mobile-menu-open .sidebar{
    transform:translateX(0) !important;
  }

  body.team-mobile-ready .team-mobile-menu-btn{
    z-index:10003 !important;
  }

  body.team-mobile-ready .team-mobile-overlay{
    z-index:10000 !important;
  }
}

/* Equipe mobile: opções do menu sempre em uma coluna */
@media (max-width:780px){
  body.team-mobile-ready .sidebar .nav,
  body.team-mobile-ready .sidebar nav,
  body.team-mobile-ready .team-mobile-sidebar .nav,
  body.team-mobile-ready .team-mobile-sidebar nav{
    display:flex !important;
    flex-direction:column !important;
    flex-wrap:nowrap !important;
    align-items:stretch !important;
    width:100% !important;
    gap:3px !important;
  }

  body.team-mobile-ready .sidebar .nav-btn,
  body.team-mobile-ready .team-mobile-sidebar .nav-btn{
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    justify-content:flex-start !important;
    width:100% !important;
    min-width:0 !important;
    flex:0 0 auto !important;
    margin:0 !important;
  }

  body.team-mobile-ready .sidebar .nav-btn span,
  body.team-mobile-ready .team-mobile-sidebar .nav-btn span{
    flex:0 0 22px !important;
  }

  body.team-mobile-ready .sidebar .nav-btn b,
  body.team-mobile-ready .team-mobile-sidebar .nav-btn b{
    display:block !important;
    flex:1 !important;
    text-align:left !important;
  }
}

/* =========================================================
   PORTAL DO ADMINISTRADOR — MOBILE
   Exclusivo de admin.html; desktop permanece intacto.
   ========================================================= */
.admin-mobile-menu-btn,.admin-mobile-overlay{display:none}

@media(max-width:780px){
 body.admin-mobile-ready{overflow-x:hidden}

 body.admin-mobile-ready .admin-mobile-menu-btn{
  display:flex!important;position:fixed;top:14px;left:14px;z-index:10003;
  width:40px;height:40px;border:1px solid rgba(255,255,255,.12);border-radius:10px;
  background:#1e2020;box-shadow:0 8px 20px rgba(0,0,0,.18);
  align-items:center;justify-content:center;flex-direction:column;gap:4px;
  cursor:pointer;pointer-events:auto!important;touch-action:manipulation
 }
 body.admin-mobile-ready .admin-mobile-menu-btn span{
  display:block;width:17px;height:2px;border-radius:999px;background:#d1a64a;
  transition:transform .2s ease,opacity .2s ease
 }
 body.admin-mobile-ready.admin-mobile-menu-open .admin-mobile-menu-btn span:nth-child(1){transform:translateY(6px) rotate(45deg)}
 body.admin-mobile-ready.admin-mobile-menu-open .admin-mobile-menu-btn span:nth-child(2){opacity:0}
 body.admin-mobile-ready.admin-mobile-menu-open .admin-mobile-menu-btn span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}

 body.admin-mobile-ready .admin-mobile-overlay{
  display:block!important;position:fixed;inset:0;z-index:10000;background:rgba(10,13,14,.48);
  backdrop-filter:blur(2px);opacity:0;visibility:hidden;pointer-events:none;
  transition:opacity .2s ease,visibility .2s ease
 }
 body.admin-mobile-ready .admin-mobile-overlay.show,
 body.admin-mobile-ready.admin-mobile-menu-open .admin-mobile-overlay{
  opacity:1!important;visibility:visible!important;pointer-events:auto!important
 }

 body.admin-mobile-ready .admin-mobile-sidebar,
 body.admin-mobile-ready .sidebar{
  position:fixed!important;top:0!important;left:0!important;bottom:0!important;
  z-index:10001!important;width:min(82vw,290px)!important;max-width:290px!important;
  height:100dvh!important;transform:translateX(-105%)!important;
  transition:transform .22s ease!important;margin:0!important;overflow-y:auto!important;
  box-shadow:18px 0 42px rgba(0,0,0,.22)
 }
 body.admin-mobile-ready .admin-mobile-sidebar.mobile-open,
 body.admin-mobile-ready.admin-mobile-menu-open .admin-mobile-sidebar,
 body.admin-mobile-ready.admin-mobile-menu-open .sidebar{transform:translateX(0)!important}

 /* Menu vertical */
 body.admin-mobile-ready .sidebar .nav,
 body.admin-mobile-ready .sidebar nav,
 body.admin-mobile-ready .admin-mobile-sidebar .nav,
 body.admin-mobile-ready .admin-mobile-sidebar nav{
  display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;
  align-items:stretch!important;width:100%!important;gap:3px!important
 }
 body.admin-mobile-ready .sidebar .nav-btn,
 body.admin-mobile-ready .admin-mobile-sidebar .nav-btn{
  display:flex!important;flex-direction:row!important;align-items:center!important;
  justify-content:flex-start!important;width:100%!important;min-width:0!important;
  flex:0 0 auto!important;margin:0!important
 }
 body.admin-mobile-ready .sidebar .nav-btn span,
 body.admin-mobile-ready .admin-mobile-sidebar .nav-btn span{flex:0 0 22px!important}
 body.admin-mobile-ready .sidebar .nav-btn b,
 body.admin-mobile-ready .admin-mobile-sidebar .nav-btn b{
  display:block!important;flex:1!important;text-align:left!important
 }

 /* Conteúdo */
 body.admin-mobile-ready main,
 body.admin-mobile-ready .main,
 body.admin-mobile-ready .admin-main,
 body.admin-mobile-ready .content,
 body.admin-mobile-ready .page-content{
  margin-left:0!important;width:100%!important;max-width:none!important
 }
 body.admin-mobile-ready .topbar,
 body.admin-mobile-ready header{padding-left:64px!important}
 body.admin-mobile-ready .page-section{padding-left:14px!important;padding-right:14px!important}
 body.admin-mobile-ready .admin-section-head{
  display:flex;flex-direction:column;align-items:stretch;gap:10px
 }
 body.admin-mobile-ready .admin-section-head h2{font-size:20px}
 body.admin-mobile-ready .admin-section-head p{font-size:10px;line-height:1.45}
 body.admin-mobile-ready .admin-section-head>button,
 body.admin-mobile-ready .admin-section-head .admin-primary{width:100%;justify-content:center}

 /* Grids e formulários */
 body.admin-mobile-ready .admin-grid-2,
 body.admin-mobile-ready .admin-grid-3,
 body.admin-mobile-ready .dashboard-grid,
 body.admin-mobile-ready .stats-grid,
 body.admin-mobile-ready .marketing-stats{grid-template-columns:1fr!important}
 body.admin-mobile-ready .admin-form,
 body.admin-mobile-ready .kanban-form-grid{grid-template-columns:1fr!important}
 body.admin-mobile-ready .admin-form input,
 body.admin-mobile-ready .admin-form select,
 body.admin-mobile-ready .admin-form textarea,
 body.admin-mobile-ready .marketing-filters input,
 body.admin-mobile-ready .marketing-filters select{
  width:100%;min-height:42px;font-size:16px
 }
 body.admin-mobile-ready .step-form-actions{display:grid;grid-template-columns:1fr;gap:8px}
 body.admin-mobile-ready .step-form-actions>*{width:100%;justify-content:center}

 /* Kanban */
 body.admin-mobile-ready .kanban-head-actions{display:grid!important;grid-template-columns:1fr 1fr;width:100%}
 body.admin-mobile-ready .kanban-head-actions select{grid-column:1/-1;width:100%;min-width:0!important}
 body.admin-mobile-ready .kanban-filterbar{display:grid!important;grid-template-columns:1fr 1fr}
 body.admin-mobile-ready .kanban-filterbar input{grid-column:1/-1}
 body.admin-mobile-ready .kanban-filterbar select,
 body.admin-mobile-ready .kanban-filterbar button{width:100%;min-width:0!important}
 body.admin-mobile-ready .kanban-view-toggle{width:100%}
 body.admin-mobile-ready .kanban-view-toggle button{flex:1}
 body.admin-mobile-ready .kanban-columns{
  scroll-snap-type:x proximity;padding-bottom:14px;gap:10px
 }
 body.admin-mobile-ready .kanban-column{
  flex:0 0 84vw!important;max-width:330px;scroll-snap-align:start
 }
 body.admin-mobile-ready .kanban-calendar-view,
 body.admin-mobile-ready .marketing-calendar{overflow-x:auto;-webkit-overflow-scrolling:touch}
 body.admin-mobile-ready .kanban-calendar-weekdays,
 body.admin-mobile-ready .kanban-calendar-grid,
 body.admin-mobile-ready .marketing-weekdays,
 body.admin-mobile-ready .marketing-calendar-grid{min-width:720px}

 /* Marketing, treinamentos e modais */
 body.admin-mobile-ready .training-grid{grid-template-columns:1fr!important}
 body.admin-mobile-ready .marketing-tabs{width:100%}
 body.admin-mobile-ready .marketing-tabs button{flex:1}
 body.admin-mobile-ready .marketing-filters{flex-direction:column}
 body.admin-mobile-ready .kanban-modal{align-items:flex-end;padding:0}
 body.admin-mobile-ready .kanban-modal-card{
  width:100%!important;max-width:none!important;max-height:92dvh;
  border-radius:16px 16px 0 0;padding:18px 14px calc(18px + env(safe-area-inset-bottom))
 }
 body.admin-mobile-ready .admin-user{max-width:calc(100vw - 80px)}
 body.admin-mobile-ready .admin-user strong{
  max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap
 }
}

@media(max-width:420px){
 body.admin-mobile-ready .kanban-head-actions,
 body.admin-mobile-ready .kanban-filterbar{grid-template-columns:1fr}
 body.admin-mobile-ready .kanban-head-actions select,
 body.admin-mobile-ready .kanban-filterbar input{grid-column:auto}
 body.admin-mobile-ready .kanban-column{flex-basis:88vw!important}
}

/* Login mobile: centralização vertical e horizontal */
@media (max-width:780px){
  body:has(.login-card),
  body:has(.login-box),
  body:has(.auth-card),
  body:has(.login-container){
    min-height:100dvh !important;
  }

  .login-page,
  .login-wrapper,
  .auth-wrapper,
  .login-container{
    min-height:100dvh !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    padding:
      max(20px, env(safe-area-inset-top))
      18px
      max(20px, env(safe-area-inset-bottom)) !important;
    box-sizing:border-box !important;
  }

  .login-card,
  .login-box,
  .auth-card{
    width:min(100%,390px) !important;
    max-width:390px !important;
    margin:auto !important;
    box-sizing:border-box !important;
  }
}

/* Kanban — anexos e links */
.kb-card-extras{
  display:grid;
  gap:14px;
  margin-top:4px;
  padding-top:14px;
  border-top:1px solid #e5e8e9;
}
.kb-extra-section{display:grid;gap:8px}
.kb-extra-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.kb-extra-head strong{font-size:10px;color:#3e464a}
.kb-file-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid #d7dcde;
  background:#fff;
  border-radius:7px;
  padding:7px 9px;
  font-size:8px;
  font-weight:800;
  cursor:pointer;
}
.kb-extra-note,.kb-extra-empty{
  font-size:8px;
  color:#92999c;
}
.kb-extra-list{display:grid;gap:5px}
.kb-extra-row{
  display:flex;
  align-items:center;
  gap:5px;
  padding:5px 6px;
  border:1px solid #e5e8e9;
  border-radius:7px;
  background:#f7f8f8;
}
.kb-extra-main{
  flex:1;
  min-width:0;
  display:flex;
  align-items:center;
  gap:7px;
  border:0;
  background:transparent;
  color:#41494d;
  text-decoration:none;
  text-align:left;
  cursor:pointer;
  padding:3px;
}
.kb-extra-main b{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:8px;
}
.kb-extra-delete{
  border:0;
  background:transparent;
  color:#9a6262;
  font-size:16px;
  cursor:pointer;
  padding:2px 6px;
}
.kb-link-form{
  display:grid;
  grid-template-columns:1fr 1.4fr auto;
  gap:6px;
}
.kb-link-form input{
  min-width:0;
  border:1px solid #dce1e3;
  border-radius:7px;
  padding:8px;
  font-size:9px;
}
@media(max-width:780px){
  .kb-link-form{grid-template-columns:1fr}
  .kb-link-form input{font-size:16px;min-height:42px}
  .kb-file-button{min-height:38px}
}

.mkt-card-extras{display:grid;gap:14px;margin-top:4px;padding-top:14px;border-top:1px solid #e5e8e9}.mkt-link-form{display:grid;grid-template-columns:1fr 1.4fr auto;gap:6px}.mkt-link-form input{min-width:0;border:1px solid #dce1e3;border-radius:7px;padding:8px;font-size:9px}@media(max-width:780px){.mkt-link-form{grid-template-columns:1fr}.mkt-link-form input{font-size:16px;min-height:42px}}

/* Botão de notificações Push */
.avantegarde-push-btn{
  margin-top:5px!important;
  border:1px solid rgba(255,255,255,.08)!important;
}
.avantegarde-push-btn.active{
  background:rgba(196,151,53,.16)!important;
  color:#d8b461!important;
  border-color:rgba(209,166,74,.28)!important;
}
.avantegarde-push-btn.active span{
  filter:none!important;
}

/* Notificações — botão menor e discreto */
.avantegarde-push-btn{width:auto!important;min-height:28px!important;margin:7px 10px 2px!important;padding:5px 8px!important;gap:6px!important;border-radius:7px!important;border:1px solid rgba(255,255,255,.055)!important;background:transparent!important;opacity:.72;font-size:8px!important}
.avantegarde-push-btn span{font-size:10px!important;width:auto!important;min-width:0!important}
.avantegarde-push-btn b{font-size:8px!important;font-weight:600!important;letter-spacing:0!important}
.avantegarde-push-btn:hover{opacity:1;background:rgba(255,255,255,.045)!important}
.avantegarde-push-btn.active{opacity:.9;background:rgba(196,151,53,.07)!important;color:#c9aa67!important;border-color:rgba(209,166,74,.14)!important}
@media(max-width:780px){.avantegarde-push-btn{min-height:30px!important;margin:5px 7px!important;padding:5px 7px!important}.sidebar.collapsed .avantegarde-push-btn b{display:none!important}}

/* Notificações — somente sino branco */
.avantegarde-push-btn{
  width:30px!important;
  height:30px!important;
  min-height:30px!important;
  padding:0!important;
  margin:7px 10px 2px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:transparent!important;
  border:0!important;
  opacity:.82!important;
}
.avantegarde-push-btn b{display:none!important}
.avantegarde-push-btn .push-bell-icon{
  display:block!important;
  width:auto!important;
  min-width:0!important;
  font-size:15px!important;
  line-height:1!important;
  color:#fff!important;
  filter:grayscale(1) brightness(0) invert(1)!important;
}
.avantegarde-push-btn.active{
  background:transparent!important;
  border:0!important;
  color:#fff!important;
  opacity:1!important;
}
.avantegarde-push-btn:hover{background:rgba(255,255,255,.05)!important;opacity:1!important}
@media(max-width:780px){
  .avantegarde-push-btn{width:30px!important;height:30px!important;margin:5px 7px!important}
}

/* Notificações — sino menor alinhado à direita da barra */
.avantegarde-push-btn{
  width:24px!important;
  height:24px!important;
  min-height:24px!important;
  padding:0!important;
  margin:6px 8px 2px auto!important;
  align-self:flex-end!important;
}
.avantegarde-push-btn .push-bell-icon{
  font-size:12px!important;
  line-height:1!important;
}
@media(max-width:780px){
  .avantegarde-push-btn{
    width:24px!important;
    height:24px!important;
    min-height:24px!important;
    margin:5px 7px 2px auto!important;
  }
  .avantegarde-push-btn .push-bell-icon{font-size:12px!important}
}

/* Mobile — sino definitivamente na extremidade direita */
@media(max-width:780px){
  .sidebar nav,
  .sidebar .nav{
    position:relative!important;
  }
  .avantegarde-push-btn,
  .sidebar:not(.collapsed) .avantegarde-push-btn,
  .sidebar.collapsed .avantegarde-push-btn{
    width:24px!important;
    height:24px!important;
    min-width:24px!important;
    min-height:24px!important;
    margin:5px 6px 2px auto!important;
    margin-left:auto!important;
    margin-right:6px!important;
    align-self:flex-end!important;
    justify-self:end!important;
    transform:none!important;
  }
}

/* =========================================================
   SINO MOBILE — POSIÇÃO DEFINITIVA À DIREITA, SEM TEXTO
   ========================================================= */
.avantegarde-push-btn b,
.avantegarde-push-btn .push-label{
  display:none!important;
}

@media(max-width:780px){
  body.team-mobile-ready .sidebar nav,
  body.team-mobile-ready .sidebar .nav,
  body.admin-mobile-ready .sidebar nav,
  body.admin-mobile-ready .sidebar .nav,
  .team-mobile-sidebar nav,
  .team-mobile-sidebar .nav,
  .admin-mobile-sidebar nav,
  .admin-mobile-sidebar .nav{
    position:relative!important;
  }

  body.team-mobile-ready .avantegarde-push-btn,
  body.admin-mobile-ready .avantegarde-push-btn,
  .team-mobile-sidebar .avantegarde-push-btn,
  .admin-mobile-sidebar .avantegarde-push-btn,
  .sidebar .avantegarde-push-btn{
    position:absolute!important;
    top:6px!important;
    right:8px!important;
    left:auto!important;

    width:22px!important;
    height:22px!important;
    min-width:22px!important;
    min-height:22px!important;
    max-width:22px!important;
    max-height:22px!important;

    margin:0!important;
    padding:0!important;
    flex:none!important;
    align-self:auto!important;
    justify-self:auto!important;

    display:flex!important;
    align-items:center!important;
    justify-content:center!important;

    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    opacity:.9!important;
    z-index:20!important;
  }

  body.team-mobile-ready .avantegarde-push-btn b,
  body.admin-mobile-ready .avantegarde-push-btn b,
  .team-mobile-sidebar .avantegarde-push-btn b,
  .admin-mobile-sidebar .avantegarde-push-btn b,
  .sidebar .avantegarde-push-btn b{
    display:none!important;
  }

  .avantegarde-push-btn .push-bell-icon{
    display:block!important;
    width:auto!important;
    min-width:0!important;
    font-size:11px!important;
    line-height:1!important;
    color:#fff!important;
    filter:grayscale(1) brightness(0) invert(1)!important;
  }
}

.drive-link-divider{display:flex;align-items:center;gap:10px;margin:5px 18px;color:#9aa1a4;font-size:9px}.drive-link-divider:before,.drive-link-divider:after{content:"";height:1px;background:#e5e8e9;flex:1}.drive-link-form{border-top:0!important;padding-top:4px!important}.drive-link-form h4{margin:0 0 5px;font-size:11px;color:#424a4e}

.finance-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:14px}.finance-kpi{background:#fff;border:1px solid #e4e7e8;border-radius:10px;padding:14px}.finance-kpi small{display:block;font-size:8px;text-transform:uppercase;color:#858d90;margin-bottom:7px}.finance-kpi strong{font-size:18px;color:#343b3e}.finance-project-picker{margin-bottom:14px}.finance-project-title{display:flex;justify-content:space-between;align-items:center;margin:5px 0 14px}.finance-project-title h3{margin:0}.finance-project-title p{margin:3px 0 0;color:#899093;font-size:9px}.finance-project-title>strong{font-size:13px}.finance-detail-list{padding:10px 18px 18px}.finance-detail-list>div{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid #edf0f1;font-size:9px}.finance-detail-list .finance-highlight{font-size:11px}.finance-list{padding:0 15px 15px}.finance-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto auto;gap:8px;align-items:center;border-top:1px solid #edf0f1;padding:9px 0;font-size:9px}.finance-row div{display:flex;flex-direction:column;gap:2px}.finance-row small{color:#969da0}.finance-row button{border:0;background:transparent;cursor:pointer}.finance-row .fin-receive{background:#eef3ef;border-radius:6px;padding:5px 7px;font-size:8px}.finance-status{font-size:7px;padding:4px 6px;border-radius:10px}.finance-status.paid{background:#e8f3eb}.finance-status.pending{background:#f1f1ef}.finance-status.overdue{background:#f7e9e7}.finance-inline-form{padding-bottom:10px!important}@media(max-width:780px){.finance-summary{grid-template-columns:1fr 1fr}.finance-kpi strong{font-size:14px}.finance-project-title{align-items:flex-start;gap:8px}.finance-row{grid-template-columns:minmax(0,1fr) auto}.finance-row .finance-status,.finance-row .fin-receive{grid-row:auto}.finance-row>button:last-child{position:absolute;right:10px}.finance-row{position:relative;padding-right:22px}}

/* Desktop — menu lateral rolável sem mover cabeçalho/rodapé */
@media(min-width:781px){
  .admin-sidebar{
    height:100vh!important;
    max-height:100vh!important;
    overflow:hidden!important;
    display:flex!important;
    flex-direction:column!important;
  }
  .admin-sidebar .admin-menu{
    flex:1 1 auto!important;
    min-height:0!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior:contain;
    scrollbar-width:thin;
    padding-right:3px;
  }
  .admin-sidebar .admin-menu::-webkit-scrollbar{width:4px}
  .admin-sidebar .admin-menu::-webkit-scrollbar-track{background:transparent}
  .admin-sidebar .admin-menu::-webkit-scrollbar-thumb{
    background:rgba(255,255,255,.16);
    border-radius:10px;
  }
  .admin-sidebar .admin-sidebar-bottom{
    flex:0 0 auto!important;
  }
}

.finance-row .fin-edit{
  background:#f1f3f3!important;
  border-radius:6px!important;
  padding:5px 7px!important;
  font-size:8px!important;
  color:#555d61!important;
}
.finance-edit-modal-card{
  width:min(92vw,520px)!important;
}
@media(max-width:780px){
  .finance-edit-modal-card{
    width:100%!important;
  }
}

.finance-history-card{margin-top:14px}.finance-history{padding:2px 18px 16px}.finance-history-row{display:grid;grid-template-columns:12px 70px minmax(0,1fr) auto;gap:9px;align-items:center;min-height:46px;border-bottom:1px solid #edf0f1;font-size:9px}.finance-history-dot{width:7px;height:7px;border-radius:50%;background:#9aa1a4}.finance-history-row.contract .finance-history-dot{background:#555d61}.finance-history-row.additional .finance-history-dot{background:#b49a61}.finance-history-row.received .finance-history-dot{background:#73927a}.finance-history-row.installment .finance-history-dot{background:#a98b87}.finance-history-date{color:#8e9699;font-size:8px}.finance-history-info{display:flex;flex-direction:column;gap:2px}.finance-history-info small{color:#949b9e;font-size:8px}.finance-history-row>strong{font-size:10px}@media(max-width:780px){.finance-history-row{grid-template-columns:10px 58px minmax(0,1fr);gap:6px}.finance-history-row>strong{grid-column:3;margin-top:-5px;padding-bottom:5px}.finance-history{padding-left:12px;padding-right:12px}}

/* =========================================================
   FINANCEIRO — NOVA ORGANIZAÇÃO VISUAL
   ========================================================= */
.finance-page-head{margin-bottom:14px}

.finance-summary-main{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin-bottom:16px;
}
.finance-summary-main .finance-kpi{
  display:flex;
  align-items:center;
  gap:12px;
  min-height:82px;
  padding:16px;
  border:1px solid #e2e6e8;
  border-radius:12px;
  background:#fff;
}
.finance-summary-main .finance-kpi-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  flex:0 0 34px;
  border-radius:9px;
  background:#f2f4f4;
  color:#666f73;
  font-size:10px;
  font-weight:900;
}
.finance-summary-main .finance-kpi small{
  display:block;
  margin-bottom:4px;
  color:#8c9498;
  font-size:7px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.finance-summary-main .finance-kpi strong{
  display:block;
  font-size:17px;
  color:#30373a;
}
.finance-summary-main .finance-kpi-alert .finance-kpi-icon{
  background:#f8ecea;
  color:#a46b64;
}

.finance-toolbar-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:13px 15px;
  margin-bottom:16px;
  border:1px solid #e2e6e8;
  border-radius:11px;
  background:#fff;
}
.finance-toolbar-label{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.finance-toolbar-label small{
  color:#949b9e;
  font-size:7px;
  font-weight:800;
}
.finance-toolbar-label strong{
  color:#444c50;
  font-size:10px;
}
.finance-toolbar-card select{
  min-width:280px;
  border:1px solid #dce1e3;
  border-radius:8px;
  padding:9px 10px;
  background:#fff;
  font-size:10px;
}

.finance-project-hero{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:18px 20px;
  margin-bottom:14px;
  border-radius:12px;
  background:#252828;
  color:#fff;
}
.finance-project-hero h3{
  margin:4px 0 3px;
  font-size:19px;
}
.finance-project-hero p{
  margin:0;
  color:rgba(255,255,255,.68);
  font-size:9px;
}
.finance-eyebrow{
  display:block;
  font-size:7px;
  font-weight:900;
  letter-spacing:.08em;
  color:#b8bdbe;
}
.finance-project-balance-box{
  text-align:right;
}
.finance-project-balance-box small{
  display:block;
  margin-bottom:4px;
  color:rgba(255,255,255,.62);
  font-size:7px;
  text-transform:uppercase;
}
.finance-project-balance-box strong{
  font-size:15px;
  color:#d7b56d;
}

.finance-main-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:14px;
  margin-bottom:18px;
}
.finance-contract-card,
.finance-resume-card,
.finance-operation-card,
.finance-history-emphasis{
  border-radius:12px!important;
}
.finance-section-tag{
  display:inline-block;
  margin-bottom:5px;
  padding:3px 6px;
  border-radius:5px;
  background:#f0f2f2;
  color:#7d8588;
  font-size:7px;
  font-weight:900;
  letter-spacing:.05em;
}
.finance-resume-card .finance-detail-list{
  padding-top:2px;
}
.finance-detail-list>div{
  padding:10px 0;
}
.finance-detail-list .finance-highlight{
  margin-top:3px;
  padding:12px 10px!important;
  border:0!important;
  border-radius:8px;
  background:#f5f0e6;
}
.finance-detail-list .finance-highlight span,
.finance-detail-list .finance-highlight b{
  color:#806520;
  font-weight:900;
}

.finance-section-title{
  display:flex;
  justify-content:space-between;
  align-items:end;
  margin:18px 0 10px;
}
.finance-section-title h3{
  margin:3px 0 0;
  font-size:14px;
  color:#3a4144;
}

.finance-transactions-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:14px;
}
.finance-operation-card{
  overflow:hidden;
}
.finance-operation-card .finance-inline-form{
  display:grid;
  grid-template-columns:1.3fr .75fr .8fr;
  gap:8px;
  padding-bottom:12px!important;
}
.finance-operation-card .finance-add-action{
  grid-column:1 / -1;
  width:100%;
  justify-content:center;
}
.finance-operation-card .finance-list{
  padding:0 16px 15px;
}
.finance-operation-card .finance-row{
  padding:10px 0;
}

.finance-history-emphasis{
  margin-top:14px;
}
.finance-history-emphasis .admin-card-head{
  border-bottom:1px solid #edf0f1;
}
.finance-history{
  padding:8px 18px 18px;
}
.finance-history-row{
  min-height:50px;
}
.finance-history-row:last-child{
  border-bottom:0;
}

@media(max-width:1000px){
  .finance-summary-main{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .finance-main-grid,
  .finance-transactions-grid{
    grid-template-columns:1fr;
  }
}

@media(max-width:780px){
  .finance-summary-main{
    grid-template-columns:1fr 1fr;
    gap:8px;
  }
  .finance-summary-main .finance-kpi{
    min-height:72px;
    padding:12px;
    gap:8px;
  }
  .finance-summary-main .finance-kpi-icon{
    width:28px;
    height:28px;
    flex-basis:28px;
  }
  .finance-summary-main .finance-kpi strong{
    font-size:13px;
  }

  .finance-toolbar-card{
    flex-direction:column;
    align-items:stretch;
    gap:9px;
  }
  .finance-toolbar-card select{
    width:100%;
    min-width:0;
    font-size:16px;
  }

  .finance-project-hero{
    flex-direction:column;
    align-items:flex-start;
    padding:15px;
  }
  .finance-project-balance-box{
    width:100%;
    text-align:left;
    padding-top:11px;
    border-top:1px solid rgba(255,255,255,.12);
  }

  .finance-operation-card .finance-inline-form{
    grid-template-columns:1fr;
  }
  .finance-operation-card .finance-add-action{
    grid-column:auto;
  }
}

.finance-receipt-box{border:1px solid #e2e6e8;border-radius:9px;padding:11px;background:#fafbfb}.finance-receipt-box .drive-link-divider{margin:7px 0}.finance-receipt-current{display:flex;align-items:center;gap:8px;margin-top:7px}.finance-receipt-current small{color:#8e9699;font-size:8px}.fin-receipt-link{display:inline-block!important;width:max-content!important;margin-top:3px!important;padding:0!important;background:transparent!important;color:#806520!important;text-decoration:underline;font-size:7px!important}

.finance-delete-receipt{
  margin-top:8px!important;
  width:max-content!important;
}
@media(max-width:780px){
  .finance-delete-receipt{
    width:100%!important;
    justify-content:center!important;
  }
}

/* Painel de vencimentos */
.finance-due-dashboard{margin-bottom:16px;border:1px solid #e2e6e8;border-radius:12px;background:#fff;overflow:hidden}
.finance-due-head{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:15px 17px;border-bottom:1px solid #edf0f1}
.finance-due-head h3{margin:3px 0 2px;font-size:13px;color:#383f42}.finance-due-head p{margin:0;color:#8b9396;font-size:8px}.finance-due-refresh{font-size:8px!important}
.finance-due-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:0;border-bottom:1px solid #edf0f1}
.finance-due-tab{display:flex;align-items:center;justify-content:center;gap:8px;padding:12px 10px;border:0;border-right:1px solid #edf0f1;background:#fafbfb;color:#747c80;cursor:pointer;font-size:8px}.finance-due-tab:last-child{border-right:0}.finance-due-tab strong{display:flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:#e9ecec;color:#555d61;font-size:8px}.finance-due-tab.active{background:#fff;color:#343b3e;box-shadow:inset 0 -2px 0 #6f777a}.finance-due-tab.overdue.active{box-shadow:inset 0 -2px 0 #a46b64}.finance-due-tab.today.active{box-shadow:inset 0 -2px 0 #b49a61}.finance-due-tab.upcoming.active{box-shadow:inset 0 -2px 0 #73927a}
.finance-due-total{display:flex;align-items:center;justify-content:space-between;padding:10px 17px;background:#fafbfb;border-bottom:1px solid #edf0f1;font-size:8px;color:#7d8588}.finance-due-total strong{font-size:12px;color:#3d4548}
.finance-due-list{padding:0 17px 8px}.finance-due-row{display:grid;grid-template-columns:8px minmax(0,1.4fr) minmax(95px,.8fr) auto auto;align-items:center;gap:10px;min-height:54px;border-bottom:1px solid #edf0f1;font-size:9px}.finance-due-row:last-child{border-bottom:0}.finance-due-status{width:7px;height:7px;border-radius:50%}.finance-due-status.overdue{background:#a46b64}.finance-due-status.today{background:#b49a61}.finance-due-status.upcoming{background:#73927a}.finance-due-info,.finance-due-date{display:flex;flex-direction:column;gap:2px}.finance-due-info small,.finance-due-date small{font-size:7px;color:#939a9d}.finance-due-date span{font-size:8px;color:#555d61}.finance-due-row>strong{font-size:10px}.finance-due-open{border:1px solid #dde1e2;background:#fff;border-radius:6px;padding:5px 8px;cursor:pointer;font-size:7px;color:#555d61}
@media(max-width:780px){.finance-due-head{align-items:flex-start}.finance-due-tabs{grid-template-columns:1fr}.finance-due-tab{justify-content:space-between;border-right:0;border-bottom:1px solid #edf0f1}.finance-due-tab:last-child{border-bottom:0}.finance-due-row{grid-template-columns:8px minmax(0,1fr) auto;padding:10px 0;gap:7px}.finance-due-date{grid-column:2}.finance-due-row>strong{grid-column:3;grid-row:1}.finance-due-open{grid-column:3;grid-row:2}.finance-due-list{padding-left:12px;padding-right:12px}}

.client-finance-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:14px}.client-finance-summary>div{padding:13px;border:1px solid #e5e8e9;border-radius:9px;background:#fafbfb}.client-finance-summary span{display:block;font-size:8px;color:#8b9396;margin-bottom:5px}.client-finance-summary strong{font-size:14px}.client-finance-notice{padding:11px 13px;border-radius:8px;margin-bottom:14px;font-size:9px}.client-finance-notice.overdue{background:#f7e9e7;color:#80504b}.client-finance-notice.upcoming{background:#f5f0e6;color:#806520}.client-finance-title{margin:10px 0}.client-finance-title h3{margin:0 0 3px}.client-finance-title p{margin:0;color:#8e9699;font-size:8px}.client-finance-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;gap:10px;align-items:center;padding:12px 0;border-bottom:1px solid #edf0f1;font-size:9px}.client-finance-row-main{display:flex;flex-direction:column;gap:3px}.client-finance-row-main small{color:#8e9699}.client-fin-status{font-size:7px;padding:5px 7px;border-radius:10px}.client-fin-status.paid{background:#e8f3eb}.client-fin-status.submitted{background:#f5f0e6}.client-fin-status.overdue{background:#f7e9e7}.client-fin-status.pending{background:#f0f2f2}.client-receipt-btn{font-size:8px!important;padding:7px 9px!important}.client-receipt-caption{font-size:9px;color:#7d8588}.finance-client-receipt-box{border:1px solid #dbc994;background:#fbf8f0;border-radius:9px;padding:11px}.finance-client-receipt-box #finClientReceiptInfo{display:flex;flex-direction:column;gap:3px;margin-bottom:8px}.finance-client-receipt-box small{font-size:8px;color:#817761}.finance-client-receipt-actions{display:flex;gap:7px}@media(max-width:780px){.client-finance-summary{grid-template-columns:1fr}.client-finance-row{grid-template-columns:1fr auto}.client-fin-status{grid-column:1}.client-receipt-btn{grid-column:2;grid-row:2}.finance-client-receipt-actions{flex-direction:column}}

.finance-drive-connect{display:flex;flex-direction:column;align-items:flex-end;gap:4px}.finance-drive-connect button{display:inline-flex;align-items:center;gap:7px}.finance-drive-connect small{font-size:7px;color:#8e9699}.finance-drive-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#a7adaf}.finance-drive-dot.connected{background:#73927a}.finance-drive-connect button.connected{border-color:#bfd0c2;background:#f2f7f3;color:#536e58}@media(max-width:780px){.finance-page-head{align-items:flex-start!important}.finance-drive-connect{align-items:flex-start;width:100%;margin-top:9px}.finance-drive-connect button{width:100%;justify-content:center}}

/* Separação visual entre Financeiro e Histórico */
.client-finance-panel{
  margin-top:18px!important;
  margin-bottom:22px!important;
  position:relative;
}
.client-section-separator{
  height:1px;
  margin:6px 0 22px;
  background:#e5e8e9;
}
#atualizacoes{
  clear:both;
  margin-top:0!important;
}
@media(max-width:780px){
  .client-finance-panel{margin-top:14px!important;margin-bottom:18px!important}
  .client-section-separator{margin-bottom:18px}
}

.client-finance-heading{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:3px!important}
.client-finance-heading span{font-size:7px!important;letter-spacing:1.2px!important;color:#9a9fa1!important;font-weight:600!important}
.client-finance-heading strong{font-size:13px!important;color:#353b3e!important}
.client-finance-content{display:block!important}
#financeiro{display:block!important;clear:both!important}
#atualizacoes{display:block!important;clear:both!important}

.step-contract-help{display:block;margin:-5px 0 8px 25px}.timeline-not-contracted{opacity:.72;background:#faf9f6!important;border:1px dashed #d7c99e!important}.timeline-not-contracted:hover{opacity:1}.timeline-step-name{display:flex;flex-direction:column;gap:2px;min-width:0}.timeline-step-name small{font-size:7px;color:#8f9290;font-weight:400}.pill.optional{background:#f1eee7!important;color:#8b7750!important;border:1px solid #d9ccb0!important}.dot.optional{background:#f1eee7!important;color:#9a8356!important;border-color:#cdbd99!important}.timeline-step-action{display:flex;align-items:center;gap:7px;justify-content:flex-end}.timeline-interest-btn{border:1px solid #b99b56;background:#fff;color:#8a6d2e;border-radius:6px;padding:5px 8px;font-size:7px;font-weight:600;cursor:pointer;white-space:nowrap}.timeline-interest-btn:hover{background:#b99b56;color:#fff}.timeline-interest-btn.requested{border-color:#d7d7d3;color:#909391;background:#f4f4f2;cursor:default}@media(max-width:780px){.timeline-step-action{align-items:flex-end;flex-direction:column}.timeline-not-contracted{padding-top:10px!important;padding-bottom:10px!important}}

/* Descrição dos produtos/etapas não contratados - maior legibilidade no portal do cliente */
.timeline-not-contracted .timeline-step-name small{
  font-size:10px!important;
  line-height:1.45!important;
  color:#686d6b!important;
  margin-top:4px!important;
}
@media(max-width:780px){
  .timeline-not-contracted .timeline-step-name small{
    font-size:11px!important;
    line-height:1.5!important;
  }
}

/* CTA de contratação mais visível no portal do cliente */
.timeline-interest-btn{
  padding:9px 15px!important;
  min-height:34px!important;
  border-width:1.5px!important;
  border-radius:8px!important;
  background:#9b7b37!important;
  color:#fff!important;
  font-size:9px!important;
  font-weight:700!important;
  letter-spacing:.15px!important;
  box-shadow:0 2px 7px rgba(0,0,0,.12)!important;
}
.timeline-interest-btn:hover{
  background:#806329!important;
  color:#fff!important;
  transform:translateY(-1px);
}
.timeline-interest-btn.requested{
  background:#f1f2f0!important;
  color:#777d79!important;
  border-color:#d1d5d2!important;
  box-shadow:none!important;
  transform:none!important;
}
@media(max-width:780px){
  .timeline-interest-btn{
    font-size:11px!important;
    padding:11px 17px!important;
    min-height:40px!important;
    width:100%!important;
    max-width:170px;
  }
}

.schedule-interest-card{margin-top:18px}.schedule-interest-card .admin-card-head{display:flex;align-items:center;justify-content:space-between}.interest-count-badge{display:grid;place-items:center;min-width:24px;height:24px;padding:0 7px;border-radius:20px;background:#9b7b37;color:#fff;font-size:9px;font-weight:700}.interest-admin-item{padding:14px;border-bottom:1px solid #eceeed}.interest-admin-item:last-child{border-bottom:0}.interest-admin-main{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.interest-admin-main b{font-size:10px}.interest-admin-main p{margin:4px 0 2px;font-size:8px;color:#747b78}.interest-admin-main small{font-size:7px;color:#9a9f9d}.interest-admin-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:11px}.interest-admin-actions button{font-size:8px!important;padding:7px 10px!important}.danger-soft{color:#9a5f5f!important;border-color:#dfcaca!important}.interest-admin-item.accepted,.interest-admin-item.declined{opacity:.68}@media(max-width:780px){.interest-admin-main{flex-direction:column}.interest-admin-actions{display:grid;grid-template-columns:1fr}.interest-admin-actions button{width:100%}}

/* Badge de novos interesses no menu Cronograma */
.nav-btn[data-target="adminSchedule"]{
  position:relative!important;
}
.nav-interest-badge{
  margin-left:auto!important;
  min-width:18px!important;
  height:18px!important;
  padding:0 5px!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:999px!important;
  background:#b58a35!important;
  color:#fff!important;
  font-size:8px!important;
  font-weight:800!important;
  line-height:1!important;
  box-shadow:0 1px 4px rgba(0,0,0,.18)!important;
}
@media(max-width:780px){
  .nav-interest-badge{
    min-width:16px!important;
    height:16px!important;
    font-size:7px!important;
    padding:0 4px!important;
  }
  .sidebar.collapsed .nav-btn[data-target="adminSchedule"] .nav-interest-badge{
    position:absolute!important;
    top:2px!important;
    right:2px!important;
    margin:0!important;
  }
}

.client-phone-display{
  display:block;
  margin-top:3px;
  font-size:8px;
  color:#8d9491;
}

.client-list-card{align-items:center!important}
.client-list-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.client-phone-display{display:block;margin-top:4px;font-size:8px;color:#737b78}
.client-phone-display.muted{color:#a1a6a3}
.client-edit-modal-card{width:min(92vw,500px)!important}
@media(max-width:780px){
  .client-list-actions{width:100%;justify-content:flex-start;margin-top:8px}
  .client-edit-modal-card{width:100%!important}
}

.contract-convert-modal-card{width:min(94vw,540px)!important}
.contract-convert-head{margin-bottom:12px}.contract-convert-head h3{margin:4px 0 3px}.contract-convert-head p{margin:0;color:#858d89;font-size:9px}
.contract-convert-preview{margin:2px 0 7px;padding:11px;border:1px solid #e3e6e5;border-radius:9px;background:#fafbfa}
.contract-convert-preview>small{font-size:8px;color:#8e9692}
.contract-preview-total{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.contract-preview-total span{font-size:8px;color:#858d89}.contract-preview-total strong{font-size:13px;color:#3b423f}
.contract-preview-installments{display:grid;gap:4px;max-height:128px;overflow-y:auto}.contract-preview-installments span{font-size:8px;color:#666e6a;padding:4px 0;border-top:1px solid #edf0ee}
@media(max-width:780px){.contract-convert-modal-card{width:100%!important}.contract-preview-installments{max-height:150px}}

.sensitive-permission-row{background:#fbfaf6}
.sensitive-permission-row>span:first-child{font-weight:700;color:#5c5546}
body.team-finance-readonly #adminFinance .finance-contract-card .admin-form,
body.team-finance-readonly #adminFinance .finance-inline-form,
body.team-finance-readonly #adminFinance .fin-edit,
body.team-finance-readonly #adminFinance .fin-receive,
body.team-finance-readonly #adminFinance .finance-row>button:not(.fin-receipt-link),
body.team-finance-readonly #adminFinance #financeSaveContract,
body.team-finance-readonly #adminFinance #finAddBtn,
body.team-finance-readonly #adminFinance #finInstBtn{
  display:none!important;
}
body.team-finance-readonly #adminFinance .finance-contract-card .admin-card-head p:after{
  content:" • Somente visualização";
  font-weight:700;
}
body.team-marketing-readonly #marketingArea #marketingNewBtn{display:none!important}
