/* The Appraisal tab inside a Bitrix24 record (appraisals/pages.js tabPage). */

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: #fff; color: #333; font: 14px/1.45 -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif; }
.tab { padding: 16px 20px 32px; }
h1 { font-size: 18px; margin: 0 0 4px; }
h2 { font-size: 15px; margin: 0 0 6px; }
p { margin: 0 0 8px; }
.muted { color: #6a737f; }
.small { font-size: 12px; }
.error { color: #c0392b; font-weight: 600; }
.ok { color: #1e7a3a; }
.progress { color: #23407f; font-weight: 600; }
.error:empty { display: none; }

.btn { display: inline-flex; align-items: center; font: inherit; font-weight: 600; padding: 7px 14px; border-radius: 4px; border: 1px solid #c6cdd3; background: #fff; color: #333; cursor: pointer; white-space: nowrap; }
.btn.primary { background: #2fc6f6; border-color: #2fc6f6; color: #fff; }
.btn.primary:hover { background: #3eddff; }
.btn:disabled { opacity: 0.45; cursor: default; }

.notice, .run, .pdfs { border: 1px solid #e1e5e8; border-radius: 6px; padding: 14px 16px; margin-bottom: 16px; background: #fafbfc; }
.pdfs:empty { display: none; }
label { display: block; font-weight: 600; margin: 8px 0 3px; }
.field { width: 100%; font: 14px Consolas, monospace; padding: 6px 8px; border: 1px solid #c6cdd3; border-radius: 4px; background: #fff; }
.field:disabled { background: #f0f2f4; color: #6a737f; }
.run .btn { margin: 12px 0 8px; }

/* Running and PDFs on the left, the values on the right; stacked (run first) when narrow. */
.columns { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 28px; align-items: start; }
.side { position: sticky; top: 16px; }
@media (max-width: 760px) {
  .columns { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .side { position: static; margin-bottom: 16px; }
}

.group { margin: 16px 0 0; max-width: 560px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 5px 8px; border-bottom: 1px solid #eef0f2; text-align: left; vertical-align: top; }
th { font-weight: 400; color: #525c69; width: 60%; }
td { font-variant-numeric: tabular-nums; font-weight: 600; }
.summary { white-space: pre-wrap; font: 13px/1.5 Consolas, monospace; background: #fafbfc; border: 1px solid #e1e5e8; border-radius: 6px; padding: 12px; }

.files { list-style: none; margin: 0; padding: 0; }
.files li { padding: 4px 0; }
.files a { color: #2067b0; }
.btn.link { border: 0; background: none; padding: 0; color: #2067b0; font-weight: 400; text-decoration: underline; margin: 0; }
.shot { max-width: 100%; border: 1px solid #e1e5e8; border-radius: 6px; margin-top: 8px; }
