/* T-OFFICE-ARCHIVE: «Office files» page and its two windows (office-archive.js). */
.td-office-title { align-items: flex-start; gap: 16px; }
.td-office-title p { max-width: 760px; }
.td-office-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.td-office-panel { margin-top: 8px; }
.td-office-dialog { width: min(680px, calc(100vw - 24px)); padding-bottom: 18px; }
/* The window's content sits inside the same side margins as its header (the text was flush with the left edge). */
.td-office-dialog > :not(header) { margin-left: 19px; margin-right: 19px; }
.td-office-dialog > header + * { margin-top: 14px; }
.td-office-dialog .dialog-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.td-office-note { color: #475569; font-size: 14px; line-height: 1.5; margin: 0 0 12px; }
.td-office-list { max-height: min(52vh, 460px); overflow: auto; border: 1px solid #dce4ed; border-radius: 12px; }
.td-office-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid #eef2f6; cursor: pointer; }
.td-office-row:last-child { border-bottom: 0; }
.td-office-row > span { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.td-office-row strong { overflow-wrap: anywhere; }
.td-office-row small { color: #64748b; }
.td-office-row.blocked { opacity: .6; cursor: not-allowed; }
.td-office-row em { color: #b45309; font-style: normal; }
.td-office-row.moved { opacity: .75; }
.td-office-row.moved em { color: #15803d; }
.td-office-row input[type=checkbox] { width: 18px; height: 18px; flex: none; }
.td-office-status { min-height: 1.4em; margin-top: 10px; font-size: 14px; color: #0f172a; }
.td-office-progress { margin: 0 0 6px; font-weight: 600; }
.td-office-progress:empty { display: none; }
.td-office-results { list-style: none; margin: 0; padding: 0; max-height: 30vh; overflow: auto; border: 1px solid #eef2f6; border-radius: 10px; }
.td-office-results:empty { display: none; }
.td-office-result { display: flex; gap: 10px; align-items: flex-start; padding: 7px 12px; border-bottom: 1px solid #eef2f6; }
.td-office-result:last-child { border-bottom: 0; }
.td-office-result > span:first-child { font-weight: 800; width: 1.2em; flex: none; text-align: center; }
.td-office-result > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.td-office-result small { color: #64748b; overflow-wrap: anywhere; }
.td-office-result.ok > span:first-child { color: #15803d; }
.td-office-result.err > span:first-child, .td-office-result.err small { color: #b42318; }
.td-office-lock { margin-left: auto; }
.td-office-lock.on { border-color: #f59e0b; color: #92400e; background: #fffbeb; }
@media (max-width: 720px) {
  .td-office-title { flex-direction: column; }
  .td-office-actions { width: 100%; justify-content: stretch; }
  .td-office-actions .btn { flex: 1; }
}
