.assistant-section#agreementTrackingSection [hidden] { display: none !important; }
.agreement-occurrences { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 14px; margin: 16px 0; }
.agreement-occurrence { border: 1px solid #d8e0da; border-left: 5px solid #c58d28; border-radius: 12px; padding: 16px; background: #fff; overflow: hidden; }
.agreement-occurrence.overdue { border-left-color: #b42318; }
.agreement-occurrence.completed { border-left-color: #20704c; background: #f4faf5; }
.agreement-occurrence.cancelled { border-left-color: #6b7280; background: #f4f4f4; }
.agreement-occurrence:focus { outline: 3px solid #4386b7; outline-offset: 3px; }
.agreement-occurrence h4 { margin: 0; font-size: 17px; }
.agreement-occurrence p { white-space: pre-wrap; overflow-wrap: anywhere; }
.agreement-stage-summary { display: grid; gap: 4px; border-top: 1px solid #e6eae7; padding: 9px 0; font-size: 13px; }
.agreement-stage-summary p { margin: 0; }
.agreement-proofs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; margin: 6px 0; overflow-wrap: anywhere; }
.agreement-proofs a { text-decoration: underline; }
.agreement-proofs strong { flex-basis: 100%; }
.agreement-card-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 10px; }
.agreement-config-grid { margin: 16px 0; }
.agreement-date-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 10px; margin-top: 14px; }
.agreement-date-row { background: #f3f6f4; border: 1px solid #d8e0da; border-radius: 8px; padding: 10px; }
.agreement-date-row small { font-weight: 400; }
.agreement-financial-template { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; border: 1px solid #d8e0da; border-radius: 8px; margin: 16px 0; padding: 14px; }
.agreement-financial-template input[type="checkbox"], .agreement-dialog input[type="checkbox"] { width: auto; display: inline-block; }
.agreement-progress-counts { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.agreement-progress-counts span { border-radius: 6px; background: #eef3ef; padding: 7px 10px; }
.agreement-dialog { border: 1px solid #c9d6cc; border-radius: 14px; padding: 22px; width: min(780px, calc(100vw - 32px)); max-height: 90vh; overflow: auto; color: #17261e; background: #fff; }
.agreement-dialog::backdrop { background: rgba(12, 26, 18, .55); }
.agreement-dialog label { display: grid; gap: 6px; margin-bottom: 12px; }
.agreement-dialog input, .agreement-dialog select, .agreement-dialog textarea { box-sizing: border-box; max-width: 100%; width: 100%; padding: 9px; border: 1px solid #cad3cc; border-radius: 6px; font: inherit; }
.agreement-dialog input[type="checkbox"] { width: auto; }
.agreement-financial-edit, #agreementUploadFields { border: 1px solid #d8e0da; border-radius: 8px; padding: 14px; margin: 14px 0; }
.agreement-financial-edit > div + div { border-top: 1px solid #d8e0da; margin-top: 12px; }
.agreement-change-table pre, .agreement-history-item pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; background: #f1f4f2; padding: 10px; border-radius: 6px; }
.agreement-error { border: 1px solid #f1b4af; background: #fff0ef; color: #8f2118; padding: 12px; margin: 12px 0; border-radius: 8px; }
.agreement-history-item { padding: 10px 0; border-bottom: 1px solid #e6eae7; }
.calendar-entry.agreement-entry .calendar-entry-actions { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 600px) { .agreement-dialog { padding: 14px; }.agreement-dialog .two-columns { grid-template-columns: 1fr; }.agreement-config-grid { grid-template-columns: 1fr 1fr; }.agreement-date-grid { grid-template-columns: 1fr 1fr; }.agreement-occurrences { grid-template-columns: 1fr; } }
