.attestation-enter { max-width: 480px; }
.attestation-enter__card { padding: 32px 28px; }
.attestation-enter__title { font-size: 26px; font-weight: 700; margin: 6px 0 4px; }
.attestation-enter__text { color: var(--text-muted); margin: 0 0 20px; }
.attestation-enter__label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.attestation-enter__input { width: 100%; font: inherit; font-size: 24px; letter-spacing: .25em; text-align: center; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.attestation-enter__input:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 3px var(--green-100); }
.attestation-enter__input.is-invalid { border-color: #c0392b; }
.attestation-enter__error { color: #c0392b; font-size: 13px; margin: 8px 0 0; }
.attestation-enter__submit { width: 100%; margin-top: 18px; }

/* ===== Таблица «Аттестация құжаттары» (оформление прототипа view.html) ===== */
.attestation { max-width: 1040px; margin: 0 auto; font-family: 'Times New Roman', Times, serif; color: #222; }
.att-title { margin: 6px 0 14px; font-size: 26px; font-weight: 700; color: #555; }
.att-scroll { overflow-x: auto; }
table.att { width: 100%; min-width: 560px; border-collapse: separate; border-spacing: 3px; font-size: 16.5px; line-height: 1.35; }
.att th { background: var(--green-800); color: #fff; font-weight: 700; padding: 10px 8px; text-align: center; }
.att td { border: 1px solid #e3e3e3; padding: 8px 10px; background: #fff; vertical-align: middle; }
.att tr.att-row:nth-child(even) td { background: #f7f7f7; }
.att tr.att-sec td { font-weight: 700; text-align: center; padding: 10px 8px; font-size: 18px; }
.att tr.att-sec td.att-year { font-size: 14px; }
.att .att-num { width: 46px; text-align: center; }
.att .att-year { width: 92px; text-align: center; }
.att .att-link { text-align: center; }
.att a.att-doc { color: #1a0dab; font-size: 18px; text-decoration: underline; cursor: pointer; }
.att a.att-doc:hover { color: var(--green-600); }

.attestation__foot { display: flex; justify-content: space-between; align-items: center; color: var(--text-muted); font-family: var(--font-base); font-size: 12px; margin-top: 16px; }
.attestation__exit { font: inherit; color: inherit; background: none; border: none; cursor: pointer; text-decoration: underline; padding: 0; }

/* ===== Попапы: список папок/файлов ячейки и сам документ поверх него ===== */
.att-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 12px; background: rgba(15, 23, 42, .5); font-family: var(--font-base); color: #0f172a; }
.att-modal--file { z-index: 1010; }
.att-modal__panel { display: flex; flex-direction: column; width: 100%; max-width: 1024px; height: 88vh; overflow: hidden; background: #fff; border-radius: 16px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25); animation: att-modal-in .14s ease-out; }
.att-modal--file .att-modal__panel { max-width: 1152px; height: 94vh; }
.att-modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid #f1f5f9; }
.att-modal__head-main { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.att-modal__title { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.35; color: #0f172a; }
.att-modal--file .att-modal__title { font-size: 16px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.att-modal__sub { margin: 4px 0 0; font-size: 13px; color: #94a3b8; }
.att-modal__close { flex: none; padding: 8px; border: 0; border-radius: 8px; background: none; color: #94a3b8; cursor: pointer; transition: background .15s, color .15s; }
.att-modal__close:hover { background: #f1f5f9; color: #475569; }
.att-modal__close .icon { width: 20px; height: 20px; }
.att-modal__download { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 8px 14px; border: 0; border-radius: 8px; background: var(--green-800); color: #fff; font: inherit; font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer; }
.att-modal__download:hover { background: var(--green-900); }
.att-modal__download .icon { width: 16px; height: 16px; }
.att-modal__body { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow-y: auto; padding: 12px; }
.att-modal--file .att-modal__body { padding: 0; background: #f1f5f9; align-items: center; justify-content: center; }
.att-modal__frame { width: 100%; height: 100%; border: 0; background: #fff; }
.att-modal__empty { padding: 64px 12px; text-align: center; font-size: 15px; color: #94a3b8; }
.att-crumb { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin: 0 0 8px; padding: 6px 8px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 14px; color: #64748b; cursor: pointer; max-width: 100%; }
.att-crumb:hover { background: #f1f5f9; }
.att-crumb .icon { width: 16px; height: 16px; flex: none; }
.att-crumb span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.att-list { overflow: hidden; border: 1px solid #e2e8f0; border-radius: 12px; }
.att-list__row { display: flex; align-items: center; gap: 16px; width: 100%; padding: 12px 16px; border: 0; border-bottom: 1px solid #e2e8f0; background: #fff; font: inherit; text-align: left; cursor: pointer; transition: background .15s; }
.att-list__row:last-child { border-bottom: 0; }
.att-list__row:hover { background: #f1f5f9; }
.att-list__icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none; }
.att-list__icon svg { flex: none; }
.att-list__text { flex: 1; min-width: 0; }
.att-list__name { display: block; font-size: 15.5px; font-weight: 500; color: #1e293b; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.att-list__meta { display: block; font-size: 13px; color: #94a3b8; }
.att-list__chev { flex: none; color: #cbd5e1; }
.att-list__chev .icon { width: 16px; height: 16px; }
@keyframes att-modal-in { from { opacity: 0; transform: translateY(4px) scale(.98); } to { opacity: 1; transform: none; } }

@media (max-width: 720px) {
  .att-modal { padding: 8px; }
  .att-modal__panel, .att-modal--file .att-modal__panel { height: 92vh; }
}
