/* Экосеть КМВ — матрица ЦПП (2D/3D, этап 2). Деловой стиль (Виктор 20.10). */
.rd-eco-matrix { position: relative; margin: 18px 0; }
.rd-eco-hint { color: #14181c; font-size: 15px; font-weight: 500; background: #f2f5f8; border: 1px solid #dbe2e9; border-radius: 8px; padding: 10px 14px; margin: 10px 2px; line-height: 1.45; }
.rd-eco-reset { margin: 6px 2px; border: 1px solid #c9d4e0; background: #fff; color: #3d5a80; border-radius: 8px; padding: 4px 12px; font-size: 12px; cursor: pointer; }
.rd-eco-reset:hover { background: #eef2f7; }
.rd-eco-note { padding: 12px 14px; background: #eef2f7; border: 1px solid #c9d4e0; border-radius: 10px; color: #3d5a80; font-size: 14px; }
.rd-eco-card { position: absolute; top: 14px; right: 14px; width: min(360px, 88%); z-index: 20; }
.rd-eco-card-in { position: relative; background: rgba(252, 253, 254, 0.98); border: 1px solid #c9d4e0; border-top: 4px solid #3d5a80; border-radius: 12px; padding: 16px 18px 14px; box-shadow: 0 10px 30px rgba(31, 45, 61, 0.18); font-size: 14px; color: #26364a; max-height: 60vh; overflow-y: auto; }
.rd-eco-card-in h4 { margin: 0 0 10px; font-family: 'Segoe UI', Arial, sans-serif; color: #1f2d3d; font-size: 17px; }
.rd-eco-card-x { position: absolute; top: 8px; right: 8px; border: none; background: #dde5ee; color: #3d5a80; border-radius: 8px; width: 26px; height: 26px; cursor: pointer; font-size: 13px; }
.rd-eco-card-x:hover { background: #c9d4e0; }
.rd-eco-duty { margin: 8px 0; line-height: 1.5; white-space: normal; }
.rd-eco-fv { margin: 4px 0; color: #3f4a56; }
.rd-eco-fv span { color: #3d5a80; font-weight: 600; }
.rd-eco-member-link { display: inline-block; color: #3d5a80; font-weight: 600; text-decoration: none; border-bottom: 1px dashed #3d5a80; }
.rd-eco-member-link:hover { color: #26364a; }
.rd-eco-share-box { background: #eef2f7; border-radius: 8px; padding: 8px 10px; margin: 6px 0; }
.rd-eco-share-box span { color: #3d5a80; font-weight: 600; }
.rd-eco-pay-btn { display: inline-block; background: #3d5a80; color: #fff; border-radius: 8px; padding: 6px 14px; text-decoration: none; font-size: 13px; font-weight: 600; }
.rd-eco-pay-btn:hover { background: #26364a; color: #fff; }

/* Личный кабинет [rd_eco_account]. */
.rd-eco-acc-card { background: #fcfdfe; border: 1px solid #c9d4e0; border-radius: 14px; padding: 18px 20px; margin-bottom: 18px; }
.rd-eco-acc-card h3 { margin: 0 0 8px; font-family: 'Segoe UI', Arial, sans-serif; color: #1f2d3d; }
.rd-eco-acc-card h4 { margin: 16px 0 8px; font-size: 14px; color: #3d5a80; text-transform: uppercase; letter-spacing: 0.04em; }
.rd-eco-acc-sum { font-size: 17px; color: #26364a; }
.rd-eco-acc-sum strong { color: #3d5a80; font-size: 20px; }
.rd-eco-acc-note { color: #67717c; font-size: 13px; }
.rd-eco-acc-form { background: #f3f6f9; border-radius: 10px; padding: 10px 14px; }
.rd-eco-acc-tx { border-collapse: collapse; width: 100%; font-size: 13px; }
.rd-eco-acc-tx th { text-align: left; color: #3d5a80; border-bottom: 2px solid #c9d4e0; padding: 6px 8px; }
.rd-eco-acc-tx td { border-bottom: 1px solid #e3e8ee; padding: 6px 8px; }
.rd-eco-acc-tx select, .rd-eco-acc-form input, .rd-eco-acc-form select { padding: 4px 6px; border: 1px solid #c9d4e0; border-radius: 6px; }

/* Модальное окно договора (квадрат-книга): полный текст, прокрутка. */
.rd-eco-modal { position: fixed; inset: 0; background: rgba(24, 34, 46, 0.55); z-index: 10060; display: flex; align-items: center; justify-content: center; padding: 20px; }
.rd-eco-modal-box { position: relative; background: #fcfdfe; border: 1px solid #c9d4e0; border-top: 5px solid #3d5a80; border-radius: 14px; padding: 22px 24px 18px; max-width: 640px; width: 100%; max-height: 85vh; overflow-y: auto; overflow-x: hidden; box-shadow: 0 18px 60px rgba(15, 24, 34, 0.35); font-size: 14px; color: #26364a; }
.rd-eco-modal-box::-webkit-scrollbar { width: 10px; }
.rd-eco-modal-box::-webkit-scrollbar-thumb { background: #c9d4e0; border-radius: 6px; }
.rd-eco-modal-box h4 { margin: 0 0 12px; font-family: 'Segoe UI', Arial, sans-serif; color: #1f2d3d; font-size: 18px; }
.rd-eco-terms { max-height: none; white-space: normal; overflow-wrap: break-word; line-height: 1.6; }

/* Переключатель слоёв (Деловая Кооперация/родство) + панель блоков (0.9.1). */
.rd-eco-layers { display: flex; gap: 8px; margin: 10px 2px 2px; flex-wrap: wrap; }
.rd-eco-blocks { margin-top: 2px; }
.rd-eco-blocks .rd-eco-layer-btn { border-color: #b9c9d9; }
.rd-eco-layer-btn { border: 1px solid #c9d4e0; background: #fff; color: #3d5a80; border-radius: 8px; padding: 6px 14px; font-size: 13px; cursor: pointer; }
.rd-eco-layer-btn:hover { background: #eef2f7; }
.rd-eco-layer-btn.is-active { background: #3d5a80; color: #fff; border-color: #3d5a80; }
.rd-eco-blocks .rd-eco-layer-btn.is-active { background: #1a4e2a; border-color: #1a4e2a; }
/* Кнопка полного документа (Яндекс.Диск) в модалке. */
.rd-eco-doc-btn { display: inline-block; margin-top: 14px; padding: 10px 22px; background: #1a4e2a; color: #fff; border-radius: 20px; font-size: 14px; font-weight: 600; text-decoration: none; }
.rd-eco-doc-btn:hover { background: #226038; }

