/* A document inside Office — read, fill in, edit, approve (29 Sep 2026) */
.dr-entry { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 12px; padding: 12px 14px; border: 1px solid var(--border-strong, #c5ccd4); border-radius: 11px; background: var(--surface, #fff); }
.dr-entry-body { min-width: 0; flex: 1 1 240px; }
.dr-entry-t { font-weight: 600; font-size: 13px; }
.dr-entry-m { font-size: 12px; color: var(--text-subtle); margin-top: 2px; }

.vd-filed { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 12px; }
.vd-filed-l { font-size: 12px; color: var(--text-subtle); margin-right: 2px; }
.vd-filed-chip { font-size: 11.5px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border, #d9dee4); background: var(--bg-subtle, #f6f7f9); color: var(--text, #1d2530); cursor: pointer; }
.vd-filed-chip:hover, .vd-filed-chip.is-on { border-color: var(--brand, #2f7d74); color: var(--brand, #2f7d74); }
.vd-suggest { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 8px; font-size: 12px; }

.dr-scrim { z-index: 60; }
.dr-shell { position: fixed; z-index: 61; inset: 24px max(24px, calc(50vw - 520px)); display: flex; flex-direction: column; background: var(--surface, #fff); border-radius: 14px; box-shadow: 0 18px 60px rgba(0,0,0,.18); overflow: hidden; }
.dr-head { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; padding: 16px 20px; border-bottom: 1px solid var(--border, #e3e7ec); }
.dr-status { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.dr-pill { font-size: 11.5px; padding: 2px 8px; border-radius: 999px; background: var(--bg-subtle, #f1f3f5); }
.dr-pill--ok { background: #e6f4ee; color: #1d6b4a; }
.dr-pill--todo { background: #fdf1e2; color: #8a5413; }
.dr-body { flex: 1; overflow: auto; padding: 16px 20px 24px; }
.dr-small { font-size: 12px; }
.dr-questions { border: 1px solid #f0d9b5; background: #fffaf2; border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; }
.dr-questions-h { font-weight: 600; font-size: 13px; margin-bottom: 2px; }
.dr-q { margin-top: 10px; }
.dr-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; margin-top: 10px; }
.dr-doc { max-width: 760px; margin: 0 auto; font-size: 14px; line-height: 1.55; }
.dr-summary { color: var(--text-subtle); font-style: italic; }
.dr-section { margin: 18px 0; }
.dr-h { font-size: 15px; font-weight: 600; margin: 0 0 6px; }
.dr-note { border-left: 3px solid #8a9bae; padding-left: 10px; font-style: italic; color: var(--text-subtle); }
.dr-list { padding-left: 22px; }
.dr-list li { margin: 3px 0; }
.dr-fields, .dr-table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 6px 0; }
.dr-fields th, .dr-fields td, .dr-table th, .dr-table td { border: 1px solid var(--border, #d9dee4); padding: 5px 8px; text-align: left; vertical-align: top; }
.dr-fields th, .dr-table th { background: #eef1f4; width: 38%; font-weight: 600; }
.dr-table th { width: auto; }
.dr-table-wrap { overflow-x: auto; }
.dr-blankrows { font-style: italic; }
.dr-blank { background: #fff2cc; color: #8a5413; border-radius: 3px; padding: 0 4px; font-size: 12px; }
.dr-changed { background: #eef7f5; border-radius: 4px; }
.dr-edit-btn { margin-left: 6px; font-size: 11px; border: 0; background: none; color: var(--brand, #2f7d74); cursor: pointer; opacity: .55; }
.dr-edit-btn:hover, .dr-edit-btn:focus { opacity: 1; text-decoration: underline; }
.dr-edit textarea { width: 100%; font: inherit; }
.dr-edit-btns { display: flex; gap: 6px; justify-content: flex-end; margin-top: 4px; }
.dr-foot { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 12px 20px; border-top: 1px solid var(--border, #e3e7ec); }
.dr-foot .dr-actions { margin-top: 0; }
.dr-note-in { width: 200px; }
@media (max-width: 700px) { .dr-shell { inset: 0; border-radius: 0; } }
