/* Общо за всички таблици */
table
{
	border: 2px solid black;
	border-collapse: collapse;
	clear: both;
	font-family: "Text";
	font-style: normal;
	font-weight: 400;
	hyphens: manual;
	margin-bottom: 0.5em;
	margin-top: 0.5em;
}

ins table	{ font-weight: var(--light); font-style: italic; }

td > table:first-child, th > table:first-child	{ margin-top: 0; }

table.simple-list, aside > table:first-child,
ol.simple-list > li > table, ul.simple-list > li > table	{ margin-top: 0; }

th > ol:not(:first-child), td > ol:not(:first-child),
th > ul:not(:first-child), td > ul:not(:first-child)		{ margin-top: 0.5em; }

th > ol:last-child, td > ol:last-child,
th > ul:last-child, td > ul:last-child						{ margin-bottom: 0; }

table > thead > tr > td										{ hyphens: manual; -moz-hyphens: manual; }
table > thead > tr:not(:last-child) > *[colspan]			{ border-bottom:1px solid black; text-align: center !important; }
th:dir(ltr)													{ font-weight:var(--normal); text-align: left; }
th:dir(rtl)													{ font-weight:var(--normal); text-align: right; }
ins table th												{ font-weight:var(--light); }
th, td														{ vertical-align: top; padding-left: 4px; padding-right: 4px; }
*[colspan='0']												{ display: none; }

tr > *:not(:empty)											{ height: 100%; }

table.rtl													{ direction: rtl; }
table.rtl > * > tr > *										{ direction: ltr; }

/*table.row-borders > tbody:not(:first-child) > tr:first-child > *, */
table.row-borders-at-ids > thead:not(:last-child) > tr:last-child > *,
table.row-borders > tbody:not(:last-of-type) > tr:last-child > *,
table.row-borders > thead:not(:last-child) > tr:last-child > *,
table.row-borders-at-ids > tbody:not(:last-of-type) > tr:last-child > *																								{ border-bottom: 2px solid black; }

table.row-borders > tfoot:not(:first-child) > tr:first-child > *,
table.row-borders-at-ids > tfoot:not(:first-child) > tr:first-child > *																								{ border-top: 2px solid black; }

table:not(.plain):not(.row-borders):not(.row-borders-at-ids):not(.bitmap):not(.no-thead-border) > thead:not(:last-child) > tr:nth-last-child(2) > *[rowspan='2'],
table:not(.plain):not(.row-borders):not(.row-borders-at-ids):not(.bitmap):not(.no-thead-border) > thead:not(:last-child) > tr:nth-last-child(3) > *[rowspan='3'],
table:not(.plain):not(.row-borders):not(.row-borders-at-ids):not(.bitmap):not(.no-thead-border) > thead:not(:last-child) > tr:last-child > *,
table:not(.plain):not(.row-borders):not(.row-borders-at-ids):not(.bitmap):not(.no-thead-border) > tbody:not(:first-of-type):not(:last-of-type) > tr:last-child > *	{ border-bottom: 1px solid black; }
table:not(.plain):not(.row-borders):not(.row-borders-at-ids):not(.bitmap):not(.no-thead-border) > tfoot:not(:first-child) > tr:first-child > *						{ border-top: 1px solid black; }

th > div:only-child,
td > div:only-child																		{ margin-bottom: 0; }

table.column-borders:dir(ltr) > * > tr > th + td,
table.column-borders:dir(ltr) > * > tr > td.th,
table.column-borders:dir(ltr) > * > tr > td.cell1:not(:first-child)						{ border-left: 2px solid black; }

table:not(.plain):not(.column-borders):dir(ltr) > * > tr > th + td						{ border-left: 1px solid black; }

table.column-borders:dir(ltr) > * > tr > td + th	    								{ border-left: 5px double black; }
table:not(.column-borders):dir(ltr) > * > tr > td + th	    							{ border-left: 3px double black; }

table:not(.plain):not(.bitmap):not(.column-borders):dir(ltr) > * > tr > td + th,
table:not(.plain):not(.bitmap):not(.column-borders):dir(ltr) > * > tr > td + td.cell1  	{ border-left: 3px double black; }

table.column-borders:dir(ltr) > * > tr > td:not(.tf) + td.tf							{ border-left: 2px solid black; }
table:not(.plain):not(.column-borders):dir(ltr) > * > tr > td:not(.tf) + td.tf			{ border-left: 1px solid black; }

table.column-borders:dir(rtl) > * > tr > th + td,
table.column-borders:dir(rtl) > * > tr > td.th,
table.column-borders:dir(rtl) > * > tr > td.cell1:not(:first-child)						{ border-right: 2px solid black; }

table:not(.plain):not(.column-borders):dir(rtl) > * > tr > th + td						{ border-right: 1px solid black; }

table.column-borders:dir(rtl) > * > tr > td + th	    								{ border-right: 5px double black; }
table:not(.column-borders):dir(rtl) > * > tr > td + th	    							{ border-right: 3px double black; }

table:not(.plain):not(.bitmap):not(.column-borders):dir(rtl) > * > tr > td + th,
table:not(.plain):not(.bitmap):not(.column-borders):dir(rtl) > * > tr > td + td.cell1  	{ border-right: 3px double black; }

table.column-borders:dir(rtl) > * > tr > td:not(.tf) + td.tf							{ border-right: 2px solid black; }
table:not(.plain):not(.column-borders):dir(rtl) > * > tr > td:not(.tf) + td.tf			{ border-right: 1px solid black; }

table.floating-right, table.floating-left
{
	font-size: smaller;
	margin-top: 0;
	margin-bottom: 0.5em;
	max-width: 40%;
}

table.floating-right
{
	float: right;
	margin-left: 12pt;
	margin-right: 0.5ex;
}

table.floating-left
{
	float: left;
	margin-left: 0.5ex;
	margin-right: 12pt;
}

table.no-border															{ border: 2px solid transparent; }
td > table:first-child, th > table:first-child							{ border: none; }
table.no-border:not(.centered1):not(.centered-all) > * > tr > *:first-child	{ padding-inline-start: 0; }
table.no-border > * > tr > *:last-child									{ padding-inline-end: 0; }
table.column-borders > * > tr > td + td									{ border-left: 1px solid black; }
table.column-borders > * > tr > th + th									{ border-left: 1px solid black; }

table.row-borders > * > tr:not(:first-of-type) > *						{ border-top: 1px solid black; }
table.grey.row-borders > * > tr:not(:first-of-type) > *					{ border-top: 1px solid silver; }

table.row-borders > thead > tr:last-of-type > *:not([rowspan])			{ border-bottom: 2px solid black; }
table.row-borders > thead > tr:nth-last-of-type(2) > *[rowspan='2']		{ border-bottom: 2px solid black; }
table.row-borders > thead > tr:nth-last-of-type(3) > *[rowspan='3']		{ border-bottom: 2px solid black; }
table.row-borders > thead > tr:nth-last-of-type(4) > *[rowspan='4']		{ border-bottom: 2px solid black; }

table.row-borders-at-ids > * > tr[id|="id"] > *							{ border-top: 1px solid black; }
table.row-borders-at-ids > * > tr[id|="id-id"] > *						{ border-top: 2px solid black; }
table.row-borders-at-ids > * > tr[id|="id-id-id"] > *					{ border-top: 6px double black; }
table.grey.row-borders.row-borders-at-ids > * > tr[id|="id"] > *		{ border-top: 1px solid black; }
table:not(.grey).row-borders.row-borders-at-ids > * > tr[id|="id"] > *	{ border-top: 2px solid black; }
table.header-dots > thead > tr > td[colspan]							{ border-bottom: 1px dotted black; text-align: center; }

table.small													{ font-size: smaller; }

table.row-borders-at-ids:not(.no-border)					{ border: 2px solid black; }
table.row-borders-at-ids.row-borders:not(.no-border)		{ border: 3px solid black; }

table.row-borders-at-ids > tbody:not(:first-child) > tr:first-child > *,
table.row-borders-at-ids > tfoot > tr:first-child > *		{ border-top: 2px solid black; }

table.row-borders-at-ids.row-borders > tbody:not(:first-child) > tr:first-child > *,
table.row-borders-at-ids.row-borders > tfoot > tr:first-child > *		{ border-top: 3px solid black; }

table.cell-top-border-at-ids > * > tr > *[id^='id-']		{ border-top: 1px solid black; }


table.strips > tbody > tr.even,
table.strips-at-ids > tbody > tr.even						{ background-color: transparent; }

table.strips-at-ids > tbody > tr.odd,
table.strips > tbody > tr.odd								{ background-color: rgba(192,192,192,0.5); }

table.rev-strips-at-ids > tbody > tr.odd,
table.rev-strips > tbody > tr.odd							{ background-color: transparent; }

table.rev-strips-at-ids > tbody > tr.even,
table.rev-strips > tbody > tr.even							{ background-color: rgba(192,192,192,0.5); }

table.rev-strips:not(.row-borders):not(.no-span-borders) > tbody > tr.even + tr.even > *,
table.rev-strips:not(.row-borders):not(.no-span-borders) > tbody > tr.odd + tr.odd > *,
table.strips:not(.row-borders):not(.no-span-borders) > tbody > tr.even + tr.even > *,
table.strips:not(.row-borders):not(.no-span-borders) > tbody > tr.odd + tr.odd > *,
table.strips-at-ids:not(.row-borders):not(.no-span-borders) > tbody > tr.even + tr.even > *,
table.strips-at-ids:not(.row-borders):not(.no-span-borders) > tbody > tr.odd + tr.odd > *
{
	border-top: 1px solid rgba(160,160,160,0.75);
}

table.rev-strips > tbody > tr.even dl:not(.plain) > dt > span,
table.strips > tbody > tr.odd dl:not(.plain) > dt > span		{ background-color: #D0D0D0; }

table.numbered-rows																{ counter-reset: table-numbered-rows; }
table.numbered-rows:not(.in-header) > tbody > tr > th:first-child				{ text-align: right; }
table.numbered-rows:not(.in-header) > tbody > tr > th:first-child:before		{ content: counter(table-numbered-rows); counter-increment: table-numbered-rows; }
table.numbered-rows.in-header > tbody > tr > th:first-child:before				{ content: counter(table-numbered-rows) ". "; counter-increment: table-numbered-rows; }

table.checks > * > tr > td:not(.tf)								{ text-align:center; }

table.numbers													{  }
table.numbers > thead > tr > td									{ text-align: center; }
table.numbers > tbody > tr > td									{ text-align: right; }

table.dot-trailer												{ border: hidden; }
table.dot-trailer > * > tr > th + td							{ border-left: none; }
table.dot-trailer > * > tr > td + th > span						{ padding-left: 0.5ex; }
section#body > table.dot-trailer								{ width: calc(100% - 12pt); }
table.dot-trailer > tbody > tr > *.cell1,
*:not(table).dot-trailer										{ background-color: white; background-image:url("/$/images/dots.gif"); background-position: 0 0.6em;  background-repeat: repeat-x; padding-left: 0; padding-right: 16px; }
table.dot-trailer > tbody > tr > *.cell1:empty					{ background: none; }
table.dot-trailer > tbody > tr > *.cell1 > span,
*:not(table).dot-trailer > *					 				{ background-color: white; padding-right: 4px; }

table.dot-trailer.D4ex > tbody > tr > *.cell1					{ width: 4ex; }
table.dot-trailer.D11EX > tbody > tr > *.cell1					{ width: 12ex; }
table.dot-trailer.D50P > tbody > tr > *.cell1					{ width: 50%; }
table.dot-trailer.D25P > tbody > tr > *.cell1					{ width: 25%; }
table.dot-trailer.D15P > tbody > tr > *.cell1					{ width: 15%; }

table.all-left > * > tr > td									{ text-align: left; }
table.all-center > * > tr > td									{ text-align: center; }
table.all-right > * > tr > td									{ text-align: right; }

tbody > ins														{ display: table-row; }

tr:target														{ outline: 2px solid red; }

table.counted-rows > tbody										{ counter-reset: table-row-counter; }
table.counted-rows > tbody > tr > *:first-child:before			{ counter-increment: table-row-counter; content: counter(table-row-counter) ". "; }

table.counted > tbody > tr:nth-of-type(1) > *:first-child:before			{ content: "\2460\A0"; }
table.counted > tbody > tr:nth-of-type(2) > *:first-child:before			{ content: "\2461\A0"; }
table.counted > tbody > tr:nth-of-type(3) > *:first-child:before			{ content: "\2462\A0"; }
table.counted > tbody > tr:nth-of-type(4) > *:first-child:before			{ content: "\2463\A0"; }
table.counted > tbody > tr:nth-of-type(5) > *:first-child:before			{ content: "\2464\A0"; }
table.counted > tbody > tr:nth-of-type(6) > *:first-child:before			{ content: "\2465\A0"; }
table.counted > tbody > tr:nth-of-type(7) > *:first-child:before			{ content: "\2466\A0"; }
table.counted > tbody > tr:nth-of-type(8) > *:first-child:before			{ content: "\2467\A0"; }
table.counted > tbody > tr:nth-of-type(9) > *:first-child:before			{ content: "\2468\A0"; }
table.counted > tbody > tr:nth-of-type(10) > *:first-child:before			{ content: "\2469\A0"; }
table.counted > tbody > tr:nth-of-type(11) > *:first-child:before			{ content: "\246A\A0"; }
table.counted > tbody > tr:nth-of-type(12) > *:first-child:before			{ content: "\246B\A0"; }
table.counted > tbody > tr:nth-of-type(13) > *:first-child:before			{ content: "\246C\A0"; }
table.counted > tbody > tr:nth-of-type(14) > *:first-child:before			{ content: "\246D\A0"; }
table.counted > tbody > tr:nth-of-type(15) > *:first-child:before			{ content: "\246E\A0"; }
table.counted > tbody > tr:nth-of-type(16) > *:first-child:before			{ content: "\246F\A0"; }
table.counted > tbody > tr:nth-of-type(17) > *:first-child:before			{ content: "\2470\A0"; }
table.counted > tbody > tr:nth-of-type(18) > *:first-child:before			{ content: "\2471\A0"; }
table.counted > tbody > tr:nth-of-type(19) > *:first-child:before			{ content: "\2472\A0"; }
table.counted > tbody > tr:nth-of-type(20) > *:first-child:before			{ content: "\2473\A0"; }



table.vert-foot > tfoot > tr > td:not(.tf)						{ writing-mode: vertical-lr; writing-mode: sideways-lr; }

table.memory-layout .inline-fraction							{ font-size: 65%; }
table.inline													{ display: inline-table; margin-right: 2ex; }

table > caption													{ white-space: nowrap; font-weight: var(--semi-bold); }
table.highlight-hover > tbody > tr:hover						{ background-color: lightgoldenrodyellow; }

:is(td,th) > span.vert-range									{ display: inline-block; }
:is(td,th) > span.vert-range > span								{ display: block; text-align: center; }