.portal{background:#f4f6f1;color:#192e24}.portal #shell{display:grid;grid-template-columns:260px minmax(0,1fr);min-height:100dvh}.portal aside{background:#103a29;color:white;padding:30px 18px;display:flex;flex-direction:column;gap:25px}.brand{display:flex;align-items:center;gap:12px}.brand b{font:700 3rem/1 Georgia;color:#ffdb65}.brand span{font-size:.85rem;line-height:1.2}.tools{border-top:1px solid #ffffff35;padding:16px 10px 0;font-weight:700}.portal nav#side{position:static;display:grid;gap:4px;padding:0;background:none}.portal nav#side a{white-space:normal;color:#e8f0e9;padding:10px 14px;border-radius:7px;font-size:.97rem}.portal nav#side a[aria-current],.portal nav#side a:hover{background:#315b46;color:white}.foot{margin-top:auto;display:grid;gap:12px}.foot button,.tools button{color:white;background:transparent;border:0;text-align:left;padding:0}.portal:not(.signed) .foot button,.tools button{display:none}.portal main{min-width:0}.portal main>header{padding:19px clamp(18px,4vw,65px);border-bottom:1px solid #dde5dc;background:white;display:flex;justify-content:space-between;align-items:center;gap:12px}.portal header span{letter-spacing:.12em;font-size:.78rem;font-weight:800}.portal header small{color:#486345}.page{max-width:1120px;margin:auto;padding:clamp(22px,4vw,65px)}.page h1{font-size:clamp(2rem,4vw,3.4rem);margin-bottom:27px}.page h2{margin:30px 0 12px;font-size:1.4rem}.overview{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,165px),1fr));gap:15px}.overview article,.page .form-grid,.page .record{padding:20px;border:1px solid #dbe3d9;border-radius:12px;background:white}.overview small,.overview strong{display:block}.overview strong{font-size:1.65rem;color:#19492f;margin-top:8px}.page .record{margin:0 0 8px}.page .form-grid{margin:16px 0}.page .record form{border:none;padding:0}.portal:not(.signed) .page{max-width:700px}.page .workspace-nav{display:none}.portal:not(.signed) aside{background:linear-gradient(#103a29e8,#103a29b8),url(img/horta.webp) center/cover}.portal:not(.signed) .form-grid{grid-template-columns:1fr}.page .button{margin:3px}.page select{min-width:0}
@media(max-width:800px){.portal #shell{display:block}.portal aside{padding:14px 18px;display:grid;grid-template-columns:1fr auto;gap:10px}.brand b{font-size:2rem}.brand span{font-size:.75rem}.tools{padding:0;border:0;display:flex;align-items:center;gap:12px}.signed .tools button{display:block;border:1px solid #ffffff65;border-radius:6px;padding:7px 10px}.portal nav#side,.portal .foot{display:none}.portal .expanded nav#side,.portal .expanded .foot{display:grid;grid-column:1/-1}.page .form-grid{grid-template-columns:1fr}.portal main>header{padding:12px 18px}}
@media print{.portal aside,.portal main>header,.portal button{display:none}.portal #shell{display:block}.page{padding:0}}
.portal main>header{background:linear-gradient(100deg,#f5f6ec,#e3eddb);border-bottom:3px solid #d1ae53;min-height:84px}.identity{display:flex;align-items:center;gap:12px}.identity img{width:59px;height:44px;object-fit:contain;mix-blend-mode:multiply}.identity strong,.identity span{display:block}.identity strong{font-size:1.3rem;letter-spacing:-.035em}.portal header .identity span{letter-spacing:0;font-weight:500;color:#45614c}.portal header small{border:1px solid #b5c7ae;padding:4px 10px;border-radius:20px}.portal aside{position:sticky;top:0;height:100dvh;overflow:auto}.portal nav#side a{display:flex;align-items:center;gap:12px}.nav-icon{width:21px;height:21px;flex:none}.nav-icon svg{display:block;width:100%}.short-label{display:none}.portal .list-search{width:min(100%,460px);padding:12px 15px;border:1px solid #a9b8aa;border-radius:9px;margin:12px 0;background:white;font:inherit}.overview article{border-top:3px solid #4a7953}.page .record:has(form){border-left:3px solid #719763}.portal #toggle{display:none}
@media print{.portal.signed #shell{display:block}.portal.signed aside,.list-search{display:none}}

/* Cabeçalho de ponta a ponta e navegação contínua à esquerda. */
@media screen {
  .portal.signed #shell { grid-template-rows: auto 1fr; align-items: start; }
  .portal.signed main { display: contents; }
  .portal.signed main > header {
    grid-column: 1 / -1; grid-row: 1; width: 100%;
    background: linear-gradient(110deg,#fff,#e0f0f8 85%);
    border-bottom: 3px solid #edcc73;
  }
  .portal.signed aside { grid-column: 1; grid-row: 2; align-self: start; }
  .portal.signed .page {
    grid-column: 2; grid-row: 2; width: 100%; min-width: 0;
    min-height: calc(100dvh - 84px); margin-block: 0;
  }
  .portal nav#side a[aria-current="page"] { box-shadow: inset 3px 0 #ffda75; }
  .portal .overview article { border-top-color: #55826a; }
  .portal .list-search:focus-visible { outline-color: #246581; }
}
#body table{border-collapse:collapse;width:100%;font-size:14px}#body th,#body td{padding:10px;border:1px solid #dce3db;text-align:left;overflow-wrap:anywhere}#body th{background:#e8efe5}#body form{margin:20px 0}#body select[multiple]{min-height:130px}

.location-hint{display:block;color:#486345;font-size:.78rem;font-weight:400;margin-top:5px}.form-grid input:disabled{background:#edf1eb;cursor:not-allowed}

.portal .back-site{display:inline-flex;align-items:center;flex-shrink:0;border:1px solid #abc0a8;padding:9px 14px;border-radius:8px;color:#153f2b;background:white;font-weight:700;font-size:.9rem}.portal .back-site:hover{background:#e5eddf}.portal .identity{min-width:0;text-decoration:none}.portal .identity:hover strong{text-decoration:underline}@media(max-width:800px){.portal:not(.signed) aside{position:static;height:auto}.portal main>header{flex-wrap:wrap}.portal .back-site{font-size:.82rem;padding:7px 10px}}
@media print{.portal aside,.portal header,.portal button,.portal nav{display:none!important}.portal #shell{display:block}.portal main{margin:0}.portal .page{box-shadow:none;border:0;padding:0}.portal table{width:100%}}

.entry-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:12px;margin-top:20px}.entry-grid button,.entry-back{font:inherit;color:#193d2a;background:white;border:1px solid #afc2ac;border-radius:10px;padding:16px;text-align:left;cursor:pointer;font-weight:650}.entry-grid .entry-new{background:#ffda59;border-color:#e7c249}.entry-grid button:hover,.entry-back:hover{border-color:#28573b}.entry-back{padding:8px 14px;margin:6px}
.page h1{letter-spacing:-.04em;line-height:1.08}.page .record dl{margin:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(180px,100%),1fr));gap:14px 20px}.record dt{color:#526a5b;font-size:.83rem}.record dd{font-weight:650;margin:3px 0 0;overflow-wrap:anywhere}.portal:not(.signed) .page{max-width:980px}.page .interesses,.page .form-grid>h2,.page .form-grid>p{grid-column:1/-1}.interesses{min-width:0;border:1px solid #c3d2c4;border-radius:10px;padding:15px}.interesses>div{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(185px,100%),1fr));gap:6px;margin-top:10px}.interesses label{display:flex;align-items:center;gap:8px;padding:8px;cursor:pointer;border-radius:6px}.interesses label:has(:checked){background:#def0dc;color:#174c30}.interesses input[type=checkbox]{width:1.1rem;height:1.1rem;min-height:0;accent-color:#185533}.page form{align-items:end}.page input,.page select,.page textarea{max-width:100%;min-width:0}.overview article{border-top:4px solid #377e48}.overview article:nth-child(2){border-top-color:#deb84d}.page .empty{padding:1rem;background:#eef2ec;border-radius:8px}.page .entry-back{margin:0 0 12px}.page .form-grid button{justify-self:start}.page .form-grid{gap:16px}.page #msg:not(:empty){padding:12px;border-left:3px solid #b28a2c;background:#fff8df}
.record summary{cursor:pointer;font-weight:700;line-height:1.5}.record summary b{display:inline-block;background:#e7efdf;color:#235238;font-size:.78rem;border-radius:99px;padding:3px 9px}.record[open]>article.record{border:0;padding:14px 0}.page #filter{width:min(100%,38rem);display:block;padding:12px;border:1px solid #a6b6aa;border-radius:8px;margin:7px 0}.page [data-action=csv]{border:1px solid #bac8bc;background:white;border-radius:8px;padding:9px 13px;margin:4px 0 12px;font:inherit}.page .empty{border-radius:10px;background:#edf1e8;padding:16px}.page .form-grid h2{margin:8px 0}.page .form-grid label{align-content:start}.portal:not(.signed) .page .entry-back{margin-bottom:16px}

.edit-box{margin:16px 0;padding:15px 18px;border:1px solid #adc2b3;background:#fff;border-radius:12px}.edit-box summary{cursor:pointer;color:#174c30;font-weight:700}.ficha-top{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;background:#174532;color:white;border-radius:14px;padding:20px;margin-bottom:12px}.ficha-top h2{margin:3px 0;color:white}.ficha-top strong{border-radius:100px;background:#dcebd4;color:#234b31;padding:5px 12px}
@media screen and (max-width:800px){
 .portal.signed #shell{display:flex;flex-direction:column;min-height:100dvh}
 .portal.signed main{display:block;width:100%;min-width:0}
 .portal.signed main>header{display:none}
 .portal.signed aside{position:static;height:auto;width:100%;box-sizing:border-box;overflow:visible;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px 12px;padding:12px 16px}
 .portal.signed .brand{justify-content:flex-start}.portal.signed .brand span{display:none}
 .portal.signed .tools{display:flex;align-items:center;gap:10px;min-width:0;padding:0}.portal.signed #toggle{display:block;min-height:44px;color:white;border:1px solid #a7c2ae;border-radius:9px;padding:6px 14px;font:inherit;cursor:pointer}
 .portal.signed nav#side,.portal.signed .foot{display:none}
 .portal.signed #shell.expanded nav#side,.portal.signed #shell.expanded .foot{display:grid;grid-column:1/-1;width:100%;gap:4px}
 .portal.signed nav#side a,.portal.signed .foot a,.portal.signed .foot button{display:flex;align-items:center;min-height:44px;padding:8px 12px;line-height:1.3;text-align:left}
 .portal.signed .foot{margin:0;padding-top:4px;border-top:1px solid #ffffff35}
 .portal.signed .page{width:100%;max-width:100%;min-height:0;margin:0;padding:18px 14px;box-sizing:border-box}
 .portal .page .form-grid{display:grid;grid-template-columns:minmax(0,1fr)}.portal .page .form-grid>*{min-width:0}
 .portal .page .form-grid input:not([type=checkbox]),.portal .page select,.portal .page textarea{width:100%;max-width:100%;box-sizing:border-box}
}

.portal [hidden], .edit-box:not([open]) > :not(summary){display:none!important}.portal .entry-grid a{margin:0;display:block}.portal .entry-grid{margin-bottom:12px}
#recolher{display:none}.portal .icone-area{display:block;flex:none;width:21px;height:21px}.portal.signed nav#side a{display:flex;align-items:center;gap:12px}
@media screen and (max-width:800px){
 .portal.signed #shell{--rail:56px;display:block;padding-inline-start:var(--rail);min-height:100dvh}
 .portal.signed #shell>aside{position:fixed;inset:0 auto 0 0;z-index:20;width:var(--rail);height:100dvh;overflow-y:auto;overflow-x:hidden;padding:8px 5px;display:flex;flex-direction:column;align-items:stretch;gap:8px;box-sizing:border-box}
 .portal.signed #shell .brand{display:none}.portal.signed #shell .tools{display:flex;justify-content:center;align-items:center;flex:none;padding:0;gap:8px}.portal.signed #role{display:none}
 .portal.signed #toggle{width:44px;height:44px;font:22px/1 sans-serif;padding:0;text-align:center}
 .portal.signed #shell nav#side{display:grid;position:static;width:100%;gap:4px;margin:0;padding:0}
 .portal.signed #shell nav#side a{padding:0;min-height:44px;justify-content:center;border-radius:8px}.portal.signed #shell nav#side a span{display:none}
 .portal.signed #shell.expanded>aside{width:min(264px,84vw);padding:12px;box-shadow:4px 0 20px #15291c30}
 .portal.signed #shell.expanded #role,.portal.signed #shell.expanded nav#side a span{display:block}
 .portal.signed #shell.expanded .tools{justify-content:space-between}
 .portal.signed #shell.expanded nav#side a{justify-content:flex-start;padding:8px 12px}
 .portal.signed #shell.expanded #recolher{display:block;position:fixed;inset:0;z-index:19;background:#112d213b;border:0;border-radius:0;margin:0;width:100%;height:100dvh}
 .portal.signed .page{padding:16px 10px}
 .portal.signed .page input,.portal.signed .page select,.portal.signed .page textarea{min-width:0}
}

/* Painel móvel aprovado: 30% de navegação, 70% de conteúdo.
   Em telas muito estreitas, ícones acima dos rótulos; menu ampliável opcional. */
.mobile-welcome{display:none}
@media screen and (max-width:800px){
 .portal.signed #shell{--rail:30%;padding-inline-start:var(--rail);width:100%;box-sizing:border-box;background:#f5f3eb}
 .portal.signed #shell>aside{width:30%;padding:10px clamp(4px,1.35vw,12px);gap:10px;background:linear-gradient(180deg,#fffdf4 0%,#faf6e9 82%,#e0ebd4 100%);color:#103a29;border-right:1px solid #d9dfd1;box-shadow:2px 0 7px #163b2920;overscroll-behavior:contain;padding-bottom:max(12px,env(safe-area-inset-bottom))}
 .portal.signed #shell .brand{display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;min-width:0;color:#15492e;line-height:1.15}
 .portal.signed #shell .brand::before{content:'';width:min(100%,64px);aspect-ratio:1;background:url(img/icone.png) center/contain no-repeat}
 .portal.signed #shell .brand b{font:800 clamp(14px,4vw,25px)/1.1 system-ui;color:#15492e}
 .portal.signed #shell .brand span{display:block;font-size:clamp(9px,2.6vw,12px);overflow-wrap:anywhere}
 .portal.signed #shell .tools{flex-direction:column;gap:4px;border:0;color:#15492e}
 .portal.signed #shell #role{display:block;font-size:clamp(10px,2.7vw,13px);text-align:center;overflow-wrap:anywhere;max-width:100%}
 .portal.signed #toggle{color:#15492e;border:1px solid #aec5a7;background:#fffdf4;width:100%;min-height:44px;height:44px;border-radius:8px}
 .portal.signed #shell nav#side{display:grid;align-items:stretch;gap:3px}
 .portal.signed #shell nav#side a{color:#193b28;display:flex;flex-direction:column;gap:3px;align-items:center;justify-content:center;text-align:center;min-height:52px;padding:6px 2px;border-bottom:1px solid #e1dfd3;border-radius:7px;line-height:1.18;font-size:clamp(11px,3vw,14px);font-weight:650;min-width:0;overflow-wrap:anywhere}
 .portal.signed #shell nav#side a span{display:block;max-width:100%;white-space:normal}
 .portal.signed #shell nav#side a .icone-area{width:21px;height:21px;color:#286a39;background:#e3eed1;border-radius:5px;padding:2px;box-sizing:content-box}
 .portal.signed #shell nav#side a[aria-current],.portal.signed #shell nav#side a:hover{background:#135c34;color:#fff;box-shadow:inset 3px 0 #dfc35c}
 .portal.signed #shell nav#side a[aria-current] .icone-area,.portal.signed #shell nav#side a:hover .icone-area{color:white;background:#ffffff24}
 .portal.signed #shell .foot{display:grid;gap:5px;margin-top:auto;padding-top:12px;border-top:1px solid #cfdbc7;width:100%;color:#164a2d}
 .portal.signed #shell .foot a,.portal.signed #shell .foot button{display:flex;justify-content:center;text-align:center;align-items:center;min-height:44px;padding:6px 2px;border-radius:7px;font-size:clamp(11px,3vw,14px);line-height:1.2;overflow-wrap:anywhere;color:#164a2d;background:#fffdf4;border:1px solid #c8d4bf;white-space:normal}
 .portal.signed #shell .foot button{color:#a6241c;font-weight:700}
 .portal.signed #shell.expanded>aside{width:min(280px,84vw);padding:12px;box-shadow:4px 0 20px #15291c40}
 .portal.signed #shell.expanded nav#side a{flex-direction:row;justify-content:flex-start;text-align:left;gap:10px;padding:8px;min-height:44px;font-size:14px}
 .portal.signed #shell.expanded .tools{flex-direction:row}
 .portal.signed #shell.expanded #toggle{width:44px;flex:none}
 .portal.signed #shell.expanded #recolher{display:block}
 .portal.signed main{width:100%;min-width:0;max-width:100%;overflow-wrap:anywhere}
 .portal.signed .page{padding:clamp(8px,2.5vw,20px);max-width:100%;min-width:0}
 .portal.signed .page h1{font-size:clamp(21px,5.8vw,34px);margin:10px 0 16px;line-height:1.14}
 .portal.signed .page h2{font-size:clamp(17px,4.5vw,24px);margin:20px 0 10px;line-height:1.25}
 .portal.signed .page>p:first-child{font-size:11px;color:#526b5b}
 .portal.signed .page .overview,.portal.signed .page .entry-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,110px),1fr));gap:8px}
 .portal.signed .page .overview article,.portal.signed .page .record,.portal.signed .page .form-grid{min-width:0;padding:clamp(9px,2.7vw,16px);border-radius:10px}
 .portal.signed .page .overview strong{font-size:clamp(17px,4.8vw,26px)}
 .portal.signed .page .entry-grid a{padding:10px 8px;min-height:44px;font-size:clamp(12px,3.5vw,15px);background:#fffdf4;display:flex;align-items:center}
 .portal.signed .page :is(input,select,textarea,button,fieldset,article,details,dl,dd,section,div){min-width:0;max-width:100%;box-sizing:border-box}
 .portal.signed .page :is(input,select,textarea){font-size:16px}
 .portal.signed .page :is(button,.button,.entry-back){white-space:normal;overflow-wrap:anywhere;min-height:44px}
 .portal.signed .page img,.portal.signed .page video{max-width:100%;height:auto}
 .portal.signed #body table{display:block;overflow-x:auto;max-width:100%}
 .portal.signed .mobile-welcome{display:block;border-radius:12px;padding:16px 12px;color:#fff;background:linear-gradient(90deg,#103a29ef,#103a29bb),url(img/horta.webp) center/cover;border-bottom:4px solid #dfc35c;margin-bottom:14px}
 .portal.signed .mobile-welcome strong{display:block;font-size:clamp(18px,5vw,27px);line-height:1.2;margin-bottom:6px}
 .portal.signed .mobile-welcome p{margin:0;font-size:clamp(12px,3.4vw,15px)}
}
@media screen and (min-width:480px) and (max-width:800px){
 .portal.signed #shell nav#side a{flex-direction:row;text-align:left;justify-content:flex-start;padding:8px 5px;gap:5px}
}

/* Gestão: controles consistentes para todos os perfis, sem mudar a navegação. */
.portal.signed #body{display:grid;gap:14px;min-width:0}
.portal.signed #body :is(label){display:grid;gap:7px;font-weight:650;font-size:.92rem;min-width:0;color:#254432}
.portal.signed #body :is(input:not([type=checkbox]):not([type=radio]),select,textarea){display:block;width:100%;min-width:0;max-width:100%;min-height:44px;border:1px solid #aabdaf;border-radius:9px;padding:10px 12px;background:#fff;color:#173a28;font:inherit;box-sizing:border-box}
.portal.signed #body textarea{min-height:105px;resize:vertical}
.portal.signed #body :is(input,select,textarea,button,a):focus-visible{outline:2px solid #28784c;outline-offset:3px}
.portal.signed #body :is(.mod-form,.form-grid){display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:16px;padding:20px;background:white;border:1px solid #d7e2d6;border-radius:14px;margin:12px 0;min-width:0}
.portal.signed #body :is(.wide,.mod-form label:has(textarea),.mod-form label:has(input[type=file])){grid-column:1/-1}
.portal.signed #body :is(.entry-back,.button){display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 15px;border-radius:9px;font-weight:650;white-space:normal;text-align:center;box-sizing:border-box}
.portal.signed #body .button.gold,.portal.signed #body #novo-item{background:#175b35;color:white;border:1px solid #175b35}
.portal.signed #body .record{border:1px solid #dbe4d8;border-radius:13px;background:#fff;padding:18px;overflow-wrap:anywhere;box-shadow:0 2px 6px #173a2808}
.portal.signed #body .record p{margin:6px 0}.portal.signed #body .record h3{margin:0 0 8px;color:#174b2e}.portal.signed #body .record summary{cursor:pointer;font-weight:700;padding:8px 0}
.portal.signed #body .record dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:12px}.portal.signed #body .record dt{font-size:.8rem;color:#526b59;font-weight:650}.portal.signed #body .record dd{margin:4px 0 0}
.portal.signed #body .empty,.portal.signed #body .management-empty{padding:24px;background:#fff;border:1px dashed #b5c9b6;border-radius:12px;color:#53695a}
.portal.signed #body .management-toolbar{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:14px;padding:16px;border:1px solid #dbe4d8;background:#fff;border-radius:12px;align-items:end;margin-bottom:16px}
.portal.signed #body .management-list{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr))}
.portal.signed #body .management-actions{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.portal.signed #body .publication-cover{display:block;width:100%;max-height:220px;object-fit:cover;border-radius:10px;margin:10px 0}
.portal.signed #body .management-state{color:#175b35;font-weight:650;font-size:.85rem}.portal.signed #body .media-field{border:1px dashed #a9c1a9;padding:15px;border-radius:12px;background:#f5f8f1}
.portal.signed #body [role=status]:not(:empty){padding:12px;background:#edf4e8;border-radius:8px;overflow-wrap:anywhere}
@media(max-width:800px){.portal.signed #body :is(.mod-form,.form-grid,.record,.management-toolbar){padding:10px;grid-template-columns:1fr}.portal.signed #body .management-list{grid-template-columns:1fr}.portal.signed #body .entry-back{max-width:100%}}

/* Cadastro assistido — interface local de teste */
.cad-assist{margin:1rem 0;padding:clamp(.65rem,2vw,1.4rem);border:1px solid #cbd8c7;border-radius:14px;background:#fff;min-width:0}.cad-assist h2{color:#164b30;font-size:clamp(1.1rem,2.6vw,1.55rem)}.doc-warning{background:#fff6dc;border-left:4px solid #ba8b26;padding:.8rem;font-size:.88rem}.doc-list{display:grid;gap:.65rem;margin:.8rem 0}.doc-card{padding:.8rem;border:1px solid #d6e1d2;border-radius:10px;min-width:0;background:#f8faf6}.doc-card h3{font-size:1rem;margin:0 0 .25rem}.doc-card small{color:#49664d}.doc-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:.5rem}.doc-actions input{width:100%;min-width:0;font-size:.8rem}.doc-check{display:flex!important;align-items:center;gap:.5rem}.doc-check input{width:auto!important}.doc-file{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem;margin:.4rem 0}.doc-file span{overflow-wrap:anywhere;flex:1;min-width:70px}.doc-draft{display:block;width:100%;text-align:left;margin:.6rem 0}.cad-assist .wide{grid-column:1/-1}.cad-assist form{min-width:0}.cad-assist button:disabled{opacity:.5;cursor:not-allowed}

/* Ajustes finais – parceiros, modalidades e financeiro */
.sub-actions{display:flex;gap:.75rem;flex-wrap:wrap;justify-content:flex-end}
.sub-actions a{padding:.6rem .85rem;border:1px solid #ffffff33;border-radius:999px;background:#ffffff12;text-decoration:none}
.sub-actions a:hover{background:#ffffff1f}

.finance-hero{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:16px;margin:8px 0 20px}
.finance-card{background:#fff;border:1px solid #d8e2d5;border-top:4px solid #2b7a4a;border-radius:16px;padding:18px;box-shadow:0 8px 22px #173a280f;display:grid;gap:6px}
.finance-card.warn{border-top-color:#d2a634}
.finance-card.neutral{border-top-color:#78907a}
.finance-card small{font-size:.82rem;color:#4d6556;font-weight:700;letter-spacing:.03em}
.finance-card strong{font-size:clamp(1.55rem,3.2vw,2.4rem);color:#133b28;line-height:1.1}
.finance-card span{color:#567161;line-height:1.45}
.finance-panel{background:#fff;border:1px solid #dbe4d8;border-radius:16px;padding:18px;box-shadow:0 6px 18px #173a2808;margin:18px 0}
.finance-panel-head{display:grid;gap:4px;margin-bottom:10px}
.finance-panel-head h2{margin:0;color:#163d2a}
.finance-panel-head p{margin:0;color:#587263}
#lancamento:empty{display:none}
@media(max-width:700px){.sub-actions{width:100%;justify-content:flex-start}.sub-actions a{width:100%;justify-content:center}.finance-panel,.finance-card{padding:14px}}

/* Fluxo de admissão: ações separadas e dados legíveis */
.admission-card summary{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between;list-style:none}.admission-card summary::before{content:'▸';color:#175b35}.admission-card[open] summary::before{content:'▾'}.admission-state{font-size:.82rem;color:#28583c;background:#edf3e8;padding:5px 9px;border-radius:8px}.admission-data{margin:14px 0;padding:14px;background:#f8faf6;border-radius:10px}.admission-protocol{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.admission-protocol code{font-size:.85rem;overflow-wrap:anywhere;min-width:0}.admission-actions{display:flex;flex-wrap:wrap;gap:8px}.admission-danger{color:#a12d24!important}.admission-final{border-top:1px solid #d8e2d5;padding-top:12px}.admission-final button:disabled{opacity:.55;cursor:not-allowed}.admission-card [role=status]{overflow-wrap:anywhere}@media(max-width:800px){.admission-actions>*{width:100%}.admission-data{grid-template-columns:1fr!important}.admission-card summary{justify-content:flex-start}}

.cad-assist button:not(.button),.notify-wa{border:1px solid #a9c0ae;border-radius:9px;padding:10px 14px;background:#fff;color:#164b30;font-weight:700;min-height:42px}.cad-assist button[data-save],.cad-assist button[data-approve]{background:#175b35;color:#fff;border-color:#175b35}.doc-actions input::file-selector-button{border:1px solid #c4d3c6;border-radius:7px;padding:8px;color:#164b30;background:#fff}.notify-wa{display:inline-flex;margin:10px 0;background:#175b35;color:white}.admission-actions{flex-wrap:wrap}

.notify-panel{padding:18px;border:1px solid #b5ceba;border-radius:14px;background:#edf5ec;margin:16px 0;display:grid;gap:10px}.notify-panel textarea{min-height:100px}.notify-panel button{justify-self:start}.notify-panel h3{margin:0}.notify-panel [role=status]:empty{display:none}

.remove-panel{margin:12px 0 18px;padding:16px;border:1px solid #cddbd0;border-radius:12px;background:#f7faf6}.remove-panel h3{margin:0 0 10px}.remove-panel p{margin:8px 0 0;font-size:.9rem}.remove-panel button[data-remove="excluir"]{color:#a82020;border-color:#bd7777}.remove-panel button:disabled{opacity:.55;cursor:not-allowed}#central-feedback:not(:empty){padding:12px;background:#edf3e8;border-radius:8px}

/* Consolidação: área administrativa */
.portal .page .doc-card,.portal .page .doc-file{min-width:0;overflow-wrap:anywhere}.portal .page .doc-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,140px),1fr));gap:8px}.portal .page .admission-actions{display:flex;flex-wrap:wrap;gap:8px}.portal .page .admission-actions button{flex:1 1 150px;min-width:0}.portal .page .record dd{overflow-wrap:anywhere}.portal .page button:disabled{opacity:.55;cursor:not-allowed}


/* Ajustes 28/11/2026 — gestão de agenda e avisos */
.publish-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:18px;align-items:start}
.publish-panel{background:#fff;border:1px solid #dbe4d8;border-radius:16px;padding:18px;box-shadow:0 4px 14px #173a2808}
.publish-panel h2,.publish-panel h3{margin:0 0 8px;color:#163d2a}
.publish-panel p{margin:0 0 12px;color:#587263}
.publish-list{display:grid;gap:12px;margin:14px 0}
.publish-card{border:1px solid #d9e3d8;border-radius:14px;padding:14px;background:#f8fbf7;display:grid;gap:7px}
.publish-card strong{color:#163d2a;font-size:1rem}
.publish-card small{color:#5a7463;font-weight:700}
.publish-card p{margin:0;white-space:pre-line}
.publish-card ul{margin:0;padding-left:18px;color:#567062}
.inline-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:end}
.inline-actions form{margin:0}
.helper-note{font-size:.9rem;color:#5e7465}
@media(max-width:950px){.publish-grid{grid-template-columns:1fr}}
/* Publicações compactas: uma área por vez */
.portal.signed #body .publish-grid{display:block;min-width:0}
.portal.signed #body .publish-panel{padding:clamp(12px,2vw,22px)}
.portal.signed #body .publish-list{grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));align-items:start;gap:12px}
.portal.signed #body .pub-tabs{display:flex;gap:8px;flex-wrap:wrap}
.portal.signed #body .pub-tabs button{border:1px solid #a9c0ae;border-radius:10px;padding:10px 16px;min-height:44px;background:white;color:#175b35;font-weight:700;flex:1}
.portal.signed #body .pub-tabs button[aria-selected=true]{background:#175b35;color:white}
.portal.signed #body .pub-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
.portal.signed #body .pub-actions button{flex:1;padding:8px 10px;font-size:.85rem}
.portal.signed #body .pub-danger{color:#a12d24;border-color:#caa29e}
.portal.signed #body .pub-new{margin-bottom:14px}
.portal.signed #body .pub-editor{padding:12px;background:#f4f8f1;border-radius:12px;margin:0 0 16px}
.portal.signed #body [hidden]{display:none!important}
@media(max-width:800px){.portal.signed #body .publish-list{grid-template-columns:1fr}.portal.signed #body .pub-tabs button{font-size:.84rem;padding:8px}.portal.signed #body .pub-editor{padding:8px}}

.crop-editor{padding:14px;border:1px solid #d6dfd3;border-radius:12px;min-width:0}.crop-editor canvas{display:block;width:auto;max-width:100%;max-height:55vh;object-fit:contain;background:#eee;margin:10px auto;touch-action:none;cursor:grab}.crop-editor [data-controls] label{display:block;margin:10px 0}.crop-editor input[type=range]{width:100%;min-height:30px}.crop-actions{display:flex;flex-wrap:wrap;gap:8px}.crop-editor [hidden]{display:none!important}#login input[type=checkbox]{width:auto;min-height:0;margin-right:8px}
.portal.signed #body .rede-admin-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,245px),1fr));gap:14px;align-items:start}.rede-admin-list>#rede-new{grid-column:1/-1;justify-self:start}.partner-admin-thumb{display:block;max-width:100%;width:auto;height:auto;max-height:180px;object-fit:contain;margin:0 auto 12px;border-radius:9px}.portal.signed #body #rede-editor .wide{grid-column:1/-1}.portal.signed #body #rede-editor .rede-edit-img{display:none}.crop-editor{grid-column:1/-1;background:#f4f7f1}.crop-editor canvas{max-height:440px;max-width:100%;height:auto}.crop-editor [data-controls] label{max-width:100%}.crop-actions button{border:1px solid #a6b8a8;border-radius:8px;padding:10px;background:white;color:#173e2b}.crop-editor input[type=range]{padding:0;accent-color:#176238}.portal.signed #body .rede-admin-list[hidden]{display:none!important}
