/* Registro institucional de atividades, independente do cadastro de empresas */
.ag-page{max-width:1640px;margin:0 auto;padding:12px 4px 40px;color:var(--text,#1c3346)}
.ag-page-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:22px}
.ag-page-head h1{font:600 clamp(27px,3vw,34px) 'IBM Plex Sans',sans-serif;margin:5px 0 2px;letter-spacing:-.025em}
.ag-page-head p,.ag-sheet-heading p,.ag-history-heading p{margin:0;color:var(--muted,#718397);font-size:13px}
.ag-eyebrow{letter-spacing:.11em;font-size:10px;font-weight:700;color:#537d86}
.ag-live-badge{border:1px solid #d3e5e5;color:#48797c;background:#f4faf9;border-radius:28px;padding:9px 14px;font-size:11px;white-space:nowrap}
.ag-workspace{display:grid;grid-template-columns:minmax(260px,330px) minmax(0,1fr);gap:18px;align-items:start}
.ag-index,.ag-sheet{background:#fff;border:1px solid #dfe8eb;border-radius:16px;overflow:hidden;box-shadow:0 4px 20px rgba(18,49,64,.04)}
.ag-index{position:sticky;top:12px}
.ag-index-head{padding:19px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #edf1f3}
.ag-index-head>div{display:flex;flex-direction:column;gap:4px}.ag-index-head strong{font-size:15px}
.ag-btn{border:1px solid #cadae1;background:#fff;color:#243f53;border-radius:9px;padding:10px 14px;font-size:12px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:7px;cursor:pointer}
.ag-btn:hover{background:#f2f7fa}.ag-btn:disabled{opacity:.55;cursor:default}
.ag-btn-primary{background:#1e5d63;border-color:#1e5d63;color:white}.ag-btn-primary:hover{background:#164c52;color:white}
.ag-list-filters{padding:13px 15px;display:grid;gap:9px;border-bottom:1px solid #edf1f3}
.ag-list-filters input,.ag-list-filters select{width:100%;box-sizing:border-box;min-height:38px;padding:9px 11px;border:1px solid #d9e3e8;border-radius:8px;background:#fbfcfd;font-size:12px;color:#2b4757}
.ag-index-list{max-height:clamp(330px,calc(100vh - 290px),750px);overflow:auto}
.ag-index-item{display:flex;flex-direction:column;width:100%;text-align:left;gap:8px;border:0;background:#fff;border-bottom:1px solid #edf1f3;padding:17px 18px;cursor:pointer;color:#234053}
.ag-index-item:hover{background:#f6fafb}.ag-index-item.is-selected{background:#f0f7f7;border-left:4px solid #2b7d82;padding-left:14px}
.ag-index-item strong{font-size:13px;line-height:1.45}.ag-index-item small{font-size:11px;color:#728798;line-height:1.5}
.ag-index-top{display:flex;justify-content:space-between;align-items:center;gap:5px;font-size:10px;color:#708495}
.ag-state{padding:3px 8px;border-radius:20px;background:#edf3f5;color:#456574}
.ag-list-empty,.ag-empty-history{color:#7c8c9a;font-size:12px;padding:25px;line-height:1.6;text-align:center}
.ag-sheet-strip{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:13px 29px;background:#1d4954;color:#e9f4f3;font-size:10px;letter-spacing:.1em;font-weight:700}
.ag-sheet-heading{padding:29px 34px 23px;display:flex;justify-content:space-between;gap:10px;border-bottom:1px solid #e9eff2}
.ag-sheet-heading h2{font-size:23px;margin:8px 0;letter-spacing:-.025em;line-height:1.35}
.ag-sheet-symbol{height:51px;width:51px;display:grid;place-items:center;border-radius:13px;background:#edf7f5;color:#277477;font-size:26px;flex:none}
.ag-form{padding:27px 34px 10px;display:grid;gap:18px}
.ag-form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.ag-field{display:grid;gap:8px;font-size:12px;font-weight:600;color:#456477}
.ag-field b{color:#ca5555}.ag-field input,.ag-field select,.ag-field textarea,.ag-note-form textarea{box-sizing:border-box;width:100%;min-height:41px;padding:12px 13px;border:1px solid #d6e1e6;border-radius:9px;font:400 13px/1.6 'IBM Plex Sans',sans-serif;color:#223d4d;background:#fbfcfd}
.ag-field textarea{resize:vertical;min-height:124px;line-height:1.75}.ag-field textarea[name="description"]{min-height:185px}
.ag-field input:focus,.ag-field textarea:focus,.ag-field select:focus,.ag-note-form textarea:focus{outline:2px solid #8cbdbd;outline-offset:1px}
.ag-section-label{display:flex;align-items:center;gap:13px;margin-top:14px;border-top:1px solid #e9eef1;padding-top:23px}
.ag-section-label>span{font-size:12px;font-weight:700;color:#287579;background:#eaf5f3;border-radius:9px;padding:10px}
.ag-section-label strong{font-size:14px}.ag-section-label p{margin:4px 0 0;font-size:11px;color:#79909c}
.ag-sheet-footer{margin-top:10px;padding:20px 0 24px;border-top:1px solid #e9eef1;display:flex;align-items:center;justify-content:space-between;gap:14px}
.ag-sheet-footer>div{display:flex;flex-direction:column;gap:6px;font-size:10px;color:#82929d}
.ag-history-heading{border-top:5px solid #f1f5f6;padding:25px 34px 14px}.ag-history-heading h3{margin:7px 0;font-size:20px}
.ag-note-form{display:grid;gap:9px;padding:0 34px 27px}.ag-note-form label{font-size:12px;font-weight:700;color:#4a6878}.ag-note-form textarea{min-height:100px;resize:vertical}.ag-note-form button{justify-self:end}
.ag-timeline{padding:0 35px 36px 48px}.ag-timeline-event{border-left:2px solid #d9e8e9;padding:0 0 25px 23px;position:relative;display:flex;flex-direction:column;gap:8px}
.ag-timeline-event:last-child{border-color:transparent;padding-bottom:4px}.ag-timeline-dot{position:absolute;width:12px;height:12px;border-radius:50%;background:#368187;border:3px solid #fff;left:-9px;top:0;box-shadow:0 0 0 1px #9ec6c7}
.ag-timeline-date{font-size:11px;color:#728899}.ag-timeline-event strong{font-size:13px;color:#345462}.ag-timeline-event p{white-space:pre-wrap;overflow-wrap:anywhere;margin:0;color:#546b7a;font-size:13px;line-height:1.7}
.ag-warning{border:1px solid #f0cfa4;border-radius:11px;background:#fffcf7;color:#765335;padding:16px 19px;margin-bottom:17px;font-size:12px;line-height:1.6}.ag-warning p{margin:5px 0}
@media(max-width:900px){.ag-workspace{grid-template-columns:1fr}.ag-index{position:static}.ag-index-list{max-height:230px}.ag-page-head{align-items:flex-start}.ag-live-badge{display:none}}
@media(max-width:600px){.ag-form-row{grid-template-columns:1fr}.ag-form{padding:21px 18px}.ag-sheet-heading,.ag-history-heading{padding-left:18px;padding-right:18px}.ag-note-form{padding-left:18px;padding-right:18px}.ag-sheet-strip{padding:11px 17px}.ag-sheet-footer{flex-direction:column;align-items:stretch}}

.ag-field :disabled{background:#f4f7f8;color:#546878;cursor:default;opacity:1}
