/* Документы темы 16. Оформление собственных шаблонов resolution / documentsMore
   и резервных универсальных шаблонов goskg-* (в конце файла). */
.theme16-documents,
.theme16-document {
	margin-bottom: 60px;
	color: var(--header-ink, #152238);
	font-family: var(--theme16-font-body, Arial, sans-serif);
	line-height: 1.5;
}

.theme16-document-page .breadcrumbs-more {
	flex-wrap: wrap;
	row-gap: 8px;
}

.theme16-document-page .breadcrumbs-more li {
	min-width: 0;
	max-width: 100%;
	overflow-wrap: anywhere;
}

.theme16-documents-page .document-breadcrumbs .breadcrumbs {
	padding: 0;
	list-style: none;
}

.theme16-documents-page .document-breadcrumbs li {
	display: inline-flex;
	align-items: center;
}

.theme16-documents-page .document-breadcrumbs li + li::before {
	content: "/" / "";
	flex: none;
	margin: 0 5px;
	color: #11316e;
	font-size: 14px;
	font-weight: 700;
}

.theme16-documents-page .document-breadcrumbs a:hover {
	text-decoration-color: currentColor;
}

.theme16-documents-page .document-breadcrumbs a:focus-visible {
	outline: 2px solid #2586d1;
	outline-offset: 3px;
}

.theme16-documents-page .theme16-documents {
	margin-top: 60px;
}

.theme16-documents #document-categories {
	margin-bottom: 1rem;
}

.theme16-documents-scroll {
	overflow: auto;
	border: 1px solid var(--header-line, #dce4ee);
	border-radius: 12px;
}

.theme16-documents-table {
	width: 100%;
	min-width: 1000px;
	border-collapse: collapse;
	text-align: left;
	font-size: 14px;
}

.theme16-documents-table th,
.theme16-documents-table td {
	padding: 14px 12px;
	border: 0;
	border-bottom: 1px solid var(--header-line, #dce4ee);
	vertical-align: top;
}

.theme16-documents-table th {
	background: #11316e;
	color: #fff;
	font-weight: 600;
}

.theme16-documents-table tr:last-child td {
	border-bottom: 0;
}

.theme16-documents-table tbody tr:nth-child(even) {
	background: var(--header-soft, #f5f8fc);
}

.theme16-documents-table [data-field="title"] {
	width: 30%;
	min-width: 250px;
}

.theme16-documents-table a,
.theme16-document-file-link {
	color: #11316e;
	font: inherit;
	font-weight: 600;
	overflow-wrap: anywhere;
}

.theme16-documents-table a:hover,
.theme16-document-file-link:hover {
	text-decoration: underline;
}

.theme16-documents-empty {
	padding: 24px;
	border: 1px solid var(--header-line, #dce4ee);
	border-radius: 12px;
	background: var(--header-soft, #f5f8fc);
}

.theme16-documents-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 28px;
}

.theme16-documents-pagination a,
.theme16-documents-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	min-height: 40px;
	padding: 6px 10px;
	border: 1px solid var(--header-line, #dce4ee);
	border-radius: 6px;
	font: inherit;
	color: #11316e;
}

.theme16-documents-pagination .theme16-documents-current {
	border-color: #11316e;
	background: #11316e;
	color: #fff;
}

.theme16-document .document-more__title {
	font-family: var(--theme16-font-heading, Arial, sans-serif);
	font-size: clamp(24px, 3vw, 32px);
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.theme16-document-meta {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px 24px;
	margin: 30px 0;
	padding: 24px;
	border: 1px solid var(--header-line, #dce4ee);
	border-radius: 12px;
	background: var(--header-soft, #f5f8fc);
	text-align: left;
}

.theme16-document-meta dt {
	margin-bottom: 5px;
	color: var(--header-muted, #56667c);
	font-size: 13px;
}

.theme16-document-meta dd {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	overflow-wrap: anywhere;
}

.theme16-document-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-bottom: 30px;
}

.theme16-document-download,
.theme16-document-copy {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 18px;
	border: 1px solid #11316e;
	border-radius: 6px;
	background: #fff;
	color: #11316e;
	font: inherit;
	font-size: 14px;
	cursor: pointer;
}

.theme16-document-download {
	background: #11316e;
	color: #fff;
}

.theme16-document-copy:hover,
.theme16-document-download:hover {
	background: #e9eff7;
	color: #11316e;
}

.theme16-document-actions :focus-visible,
.theme16-documents a:focus-visible {
	outline: 3px solid #e3b45f;
	outline-offset: 3px;
}

.theme16-document-preview-frame {
	display: block;
	margin: 0 auto;
	border: 1px solid var(--header-line, #dce4ee);
	border-radius: 12px;
}

.theme16-document-preview-image {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
}

.theme16-document-docx,
.theme16-document-file-card {
	padding: 28px;
	border: 1px solid var(--header-line, #dce4ee);
	border-radius: 12px;
	background: #fff;
	text-align: left;
	overflow-wrap: anywhere;
}

.theme16-document-file-format {
	display: block;
	margin-bottom: 12px;
	color: var(--header-muted, #56667c);
}

.theme16-document-docx-content {
	line-height: 1.7;
}

.theme16-document-docx-content[hidden] {
	display: none;
}

.theme16-document-docx-content p + p {
	margin-top: 12px;
}

.theme16-document-docx-content img {
	max-width: 100%;
	height: auto;
}

.theme16-document-docx-content table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
}

.theme16-document-docx-content td,
.theme16-document-docx-content th {
	padding: 8px;
	border: 1px solid var(--header-line, #dce4ee);
}

.theme16-document-docx-error {
	color: #a32020;
}

@media (max-width: 920px) {
	.theme16-documents-scroll {
		max-height: none;
		overflow: visible;
		border: 0;
	}

	.theme16-documents-table,
	.theme16-documents-table tbody {
		display: block;
		min-width: 0;
	}

	.theme16-documents-table thead {
		display: none;
	}

	.theme16-documents-row {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		margin-bottom: 18px;
		padding: 12px;
		border: 1px solid var(--header-line, #dce4ee);
		border-radius: 12px;
	}

	.theme16-documents-table td {
		min-width: 0;
		padding: 8px;
		border: 0;
		overflow-wrap: anywhere;
	}

	.theme16-documents-table td::before {
		display: block;
		margin-bottom: 4px;
		color: var(--header-muted, #56667c);
		font-size: 12px;
		content: attr(data-label);
	}

	.theme16-documents-table [data-field="title"] {
		grid-column: 1 / -1;
		order: -1;
		width: auto;
		min-width: 0;
		font-size: 17px;
	}

	.theme16-documents-table [data-field="title"]::before {
		display: none;
	}

	.theme16-document-meta {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.theme16-document-meta,
	.theme16-document-docx,
	.theme16-document-file-card {
		padding: 18px;
	}

	.theme16-document-preview-frame {
		height: 65vh;
		min-height: 360px;
	}

	.theme16-document-actions > * {
		width: 100%;
	}
}


/* Оформление резервного универсального шаблона: styles_documents.css. */

.goskg-documents
{
    color: inherit;
}

.goskg-documents__title
{
    color: inherit;
}

.goskg-documents__list
{
    border: 1px solid var(--goskg-documents-border, #d9dee5);
    border-radius: 8px;
    background: var(--goskg-documents-background, #ffffff);
}

.goskg-documents__head
{
    background: var(--goskg-documents-muted-background, #f3f5f7);
    border-bottom: 1px solid var(--goskg-documents-border, #d9dee5);
}

.goskg-documents__head > span,
.goskg-documents__cell
{
    border-right: 1px solid var(--goskg-documents-row-border, #e4e8ed);
}

.goskg-documents__head > span:last-child,
.goskg-documents__cell:last-child
{
    border-right: 0;
}

.goskg-documents__item
{
    border-bottom: 1px solid var(--goskg-documents-row-border, #e4e8ed);
    background: var(--goskg-documents-background, #ffffff);
}

.goskg-documents__item:last-child
{
    border-bottom: 0;
}

.goskg-documents__link
{
    color: inherit;
}

.goskg-documents__link:focus-visible
{
    border-radius: 2px;
}

.goskg-documents__empty
{
    border: 1px solid var(--goskg-documents-border, #d9dee5);
    border-radius: 8px;
}

.goskg-documents-pagination__link,
.goskg-documents-pagination__current
{
    border: 1px solid var(--goskg-documents-border, #d9dee5);
    border-radius: 6px;
}

.goskg-documents-pagination__link
{
    color: inherit;
    background: var(--goskg-documents-background, #ffffff);
}

.goskg-documents-pagination__link:hover
{
    background: var(--goskg-documents-muted-background, #f3f5f7);
}

.goskg-documents-pagination__current
{
    border-color: currentColor;
}

@media (max-width: 1100px)
{
.goskg-documents__list
{
    border: 0;
    border-radius: 0;
    background: transparent;
}

.goskg-documents__item
{
    border: 1px solid var(--goskg-documents-border, #d9dee5);
    border-radius: 8px;
}

.goskg-documents__cell
{
    border-right: 0;
    border-bottom: 1px solid var(--goskg-documents-row-border, #e4e8ed);
}

.goskg-documents__cell:last-child
{
    border-bottom: 0;
}

.goskg-documents__cell::before
{
    background: var(--goskg-documents-muted-background, #f3f5f7);
}

}


/* Оформление резервного универсального шаблона: styles_document_more.css. */

.goskg-document
{
    --goskg-document-text: #20252b;
    --goskg-document-muted: #68717d;
    --goskg-document-border: #dde2e7;
    --goskg-document-surface: #ffffff;
    --goskg-document-soft: #f6f7f8;
    --goskg-document-accent: #1769aa;
    --goskg-document-accent-hover: #0f568e;
    color: var(--goskg-document-text);
}

.goskg-document-meta
{
    border: 1px solid var(--goskg-document-border);
    border-radius: 10px;
    background: var(--goskg-document-soft);
}

.goskg-document-meta-label
{
    color: var(--goskg-document-muted);
}

.goskg-document-copy-button
{
    border: 1px solid var(--goskg-document-border);
    border-radius: 8px;
    background: var(--goskg-document-surface);
    color: var(--goskg-document-text);
}

.goskg-document-copy-button:hover,
.goskg-document-copy-button:focus-visible
{
    border-color: var(--goskg-document-accent);
    color: var(--goskg-document-accent);
}

.goskg-document-download
{
    border-radius: 8px;
    background: var(--goskg-document-accent);
    color: #ffffff;
}

.goskg-document-download:hover,
.goskg-document-download:focus-visible
{
    background: var(--goskg-document-accent-hover);
    color: #ffffff;
}

.goskg-document-preview-frame
{
    border: 1px solid var(--goskg-document-border);
    border-radius: 10px;
    background: var(--goskg-document-soft);
}

.goskg-document-preview-image
{
    border-radius: 10px;
}

.goskg-document-file-card
{
    border: 1px solid var(--goskg-document-border);
    border-radius: 10px;
    background: var(--goskg-document-soft);
}

.goskg-document-file-format
{
    border-radius: 6px;
    background: var(--goskg-document-text);
    color: #ffffff;
}

.goskg-document-file-link
{
    color: var(--goskg-document-accent);
}

.goskg-document-docx
{
    border: 1px solid var(--goskg-document-border);
    border-radius: 10px;
    background: var(--goskg-document-surface);
}

.goskg-document-docx-status
{
    color: var(--goskg-document-muted);
}

.goskg-document-docx-status-error
{
    color: #a12b2b;
}

.goskg-document-docx-content
{
    color: var(--goskg-document-text);
}

.goskg-document-docx-content h1,
.goskg-document-docx-content h2,
.goskg-document-docx-content h3,
.goskg-document-docx-content h4,
.goskg-document-docx-content h5,
.goskg-document-docx-content h6
{
    color: inherit;
}

.goskg-document-docx-content a
{
    color: var(--goskg-document-accent);
}

.goskg-document-docx-content th,
.goskg-document-docx-content td
{
    border: 1px solid var(--goskg-document-border);
}

.goskg-document-docx-content th
{
    background: var(--goskg-document-soft);
}

.goskg-document-docx-content blockquote
{
    border-left: 3px solid var(--goskg-document-border);
    color: var(--goskg-document-muted);
}

.goskg-document-docx-fallback
{
    border-top: 1px solid var(--goskg-document-border);
}
