/* Документы и версии. Файлы стилей подключаются в templates/base.html по порядку. */

/* ===== Документ ===== */
.current-version { display: flex; align-items: center; gap: 18px; border-left: 4px solid var(--accent); }
.version-number {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 20px;
  font-weight: 750;
  flex: none;
}
.current-version .info { flex: 1; }
.label-caps { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.current-version .line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.current-version .comment-text { color: var(--text-2); margin-top: 6px; }
.doc-layout { display: grid; grid-template-columns: 1fr 360px; gap: 20px; align-items: start; }
.version-label { font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
tr.current-row td { background: #FFFCE5; }
.row-actions { white-space: nowrap; text-align: right; }
.row-actions .inline { display: inline-flex; gap: 4px; align-items: center; }
.row-actions form { margin: 0; }
.row-actions .button, .row-actions button { height: 30px; font-size: 13px; padding: 0 10px; }
.row-actions .icon-only { width: 30px; padding: 0; }
.file-missing { display: inline-flex; align-items: center; gap: 5px; color: var(--danger); font-weight: 550; }
.file-name { color: var(--muted); font-size: 12.5px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== Страница «Google Диск» ===== */
.drive-status { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; margin-bottom: 14px; }
.drive-status.ok { background: var(--ok-soft); color: var(--ok); }
.drive-status.bad { background: var(--danger-soft); color: var(--danger); }
.drive-details { grid-template-columns: 1fr 1fr; }

/* ===== Загрузка перетаскиванием (dropzone.js) ===== */
.drop-hint { display: flex; align-items: center; gap: 6px; margin: -4px 0 12px; }
.drop-hint .icon { width: 15px; height: 15px; }
.drop-area { position: relative; min-height: 120px; }
.drop-area.drop-active::after, .drop-area.drop-uploading::after {
  content: attr(data-drop-label);
  position: absolute; inset: -8px; z-index: 30;
  display: grid; place-items: center;
  border: 2px dashed var(--accent-border); border-radius: var(--radius);
  background: rgba(255, 248, 196, .88);
  color: var(--accent-ink); font-size: 17px; font-weight: 650;
  pointer-events: none;
}
.drop-area.drop-uploading::after { content: attr(data-uploading); }

/* ===== Оформление в духе Notion (27.10.2026) — уточняет правила выше ===== */
/* Подписи над числами — обычными буквами, как свойства в Notion */
.label-caps { font-size: 13px; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted); }
