/**
 * Игровой хром таблиц для статей библиотеки (комплекты и т.п.).
 * Вынесено из style/main.css — на /library.php полный main.css не подключают.
 * Пути к картинкам — абсолютные /images/...
 */

.mrg-top {
    margin-top: 7px;
}

.tbl-sts_bg-light {
    background-image: url('/images/tbl-usi_bg-light.gif');
    background-repeat: repeat;
    font-family: Tahoma, Geneva, sans-serif;
    font-size: 11px;
}

.tbl-shp-red {
    color: #8d2616;
}

.tbl-shp_sml-bottom {
    background-image: url('/images/tbl-shp_sml-bottom.gif');
    background-repeat: repeat-x;
    height: 18px;
    font-size: 1px;
}

.tbl-shp_sml-top {
    background-image: url('/images/tbl-shp_sml-top.gif');
    background-repeat: repeat-x;
    background-position: left top;
    height: 22px;
    font-size: 1px;
}

table.tbl-shp-frame {
    border-collapse: separate !important;
    border-spacing: 0;
}

.tbl-shp_menu-center-noact,
.tbl-shp_menu-center-inact,
.tbl-shp_menu-center-act {
    background-repeat: repeat-x;
    height: 19px;
    font-family: Tahoma, Geneva, sans-serif;
    font-size: 11px;
    font-weight: bold;
    text-decoration: none;
    padding-left: 4px;
    padding-right: 4px;
    padding-bottom: 2px;
}

.tbl-shp_menu-center-noact {
    background-image: url('/images/tbl-shp_menu-center-noact.gif');
}

.tbl-shp_menu-center-inact {
    background-image: url('/images/tbl-shp_menu-center-inact.gif');
}

.tbl-shp_menu-center-act {
    background-image: url('/images/tbl-shp_menu-center-act.gif');
    color: #ffe9ba;
    width: auto;
}

.tbl-shp_menu-link_noact {
    color: #000 !important;
    text-decoration: none;
}

.tbl-shp_menu-link_inact {
    color: #461c0b !important;
    text-decoration: none;
}

.tbl-shp_menu-link_act {
    color: #ffe9ba !important;
    text-decoration: none;
}

.tbl-usi_label-center {
    background-image: url('/images/tbl-usi_label-center.gif');
    background-repeat: repeat-x;
    height: 22px;
    font-family: Tahoma, Geneva, sans-serif;
    font-weight: bold;
    font-size: 11px;
    color: #fcf5b7;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 0;
    line-height: 18px;
    vertical-align: middle;
}

.tbl-usi_label-center p,
.tbl-usi_label-center strong,
.tbl-usi_label-center span {
    margin: 0;
    color: #fcf5b7 !important;
    font-family: Tahoma, Geneva, sans-serif !important;
    font-size: 11px !important;
    font-weight: bold;
    line-height: 16px;
}

.tbl-sts_header-center {
    background-image: url('/images/tbl-sts_header-center.gif');
    background-repeat: repeat-x;
    height: 24px;
    font-family: Tahoma, Geneva, sans-serif;
    font-weight: bold;
    font-size: 11px;
    color: #fcf5b7;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 5px;
}

.tbl-sts_header-center-png {
    background: url('/images/common-header-small.png') 50% -39px repeat-x;
    height: 24px;
    font-family: Tahoma, Geneva, sans-serif;
    font-weight: bold;
    font-size: 11px;
    color: #fcf5b7;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 5px;
}

.tbl-sts_header-left {
    width: 87px;
    background: url('/images/common-header-small.png') 0 0 no-repeat;
}

.tbl-sts_header-right {
    width: 87px;
    background: url('/images/common-header-small.png') 100% -39px no-repeat;
}

.common-header__small {
    position: relative;
    top: 11px;
    z-index: 1;
    height: 39px;
    padding: 0 0 0 87px;
    background: url('/images/common-header-small.png') 0 0 no-repeat;
}

.common-header__small .h-inner {
    height: 39px;
    padding: 0 97px 0 10px;
    background: url('/images/common-header-small.png') 100% -39px no-repeat;
    color: #fcf5b7;
    font: bold 12px/30px Tahoma, Geneva, sans-serif;
}

.tbl-usi_label-link_inact {
    color: #fcf5b7 !important;
    text-decoration: none;
}

.tbl-usi_label-link_act {
    color: red !important;
    text-decoration: none;
}

.tbl-usi_left {
    background-image: url('/images/tbl-usi_left.gif');
    background-repeat: repeat-y;
    background-position: right;
    width: 20px;
}

.tbl-usi_right {
    background-image: url('/images/tbl-usi_right.gif');
    background-repeat: repeat-y;
    width: 20px;
}

.tbl-usi_bg {
    background-image: url('/images/tbl-usi_bg.gif');
    background-repeat: repeat;
}

.tbl-usi_bg-light {
    background-image: url('/images/tbl-usi_bg-light.gif');
    background-repeat: repeat;
}

.tbl-usi_brd-bottom {
    border-bottom: 1px solid #db9f73;
}

.tbl-ati_redline-right {
    background-repeat: repeat-y;
    background-image: url('/images/tbl-ati_redline-right.gif');
    width: 63px;
}

.tbl-ati_redline-left {
    background-repeat: repeat-y;
    background-image: url('/images/tbl-ati_redline-left.gif');
    width: 63px;
}

.tbl-ati_brd-all {
    border: 1px solid #db9f73;
    font-family: Tahoma, Geneva, sans-serif;
    font-size: 11px;
    color: #201610;
    font-weight: normal;
    padding-left: 4px;
    padding-top: 2px;
    padding-bottom: 3px;
}

.tbl-ati_item-link {
    font-size: 11px;
    color: #a00;
    text-decoration: none;
    font-weight: bold;
}

.tbl-ati_regular {
    font-family: Tahoma, Geneva, sans-serif;
    font-size: 11px;
    color: #000;
    padding-left: 5px;
    font-weight: normal;
}

.tbl-shp_item-ico {
    margin-left: 0;
    margin-right: 6px;
    border: 0;
}

.tbl_red {
    font-size: 11px;
    color: #ba0000;
    font-family: Tahoma, Geneva, sans-serif;
    text-decoration: none;
}

.tbl-shp_money {
    font-size: 11px;
    color: #a00;
    text-decoration: none;
    font-weight: bold;
    margin-left: 0;
    margin-top: 2px;
    padding-left: 15px;
}

a.tbl-shp_menu-center-inact,
a.tbl-shp_menu-center-inact span,
a.tbl-shp_menu-center-act,
a.tbl-shp_menu-center-act span {
    display: inline-block;
    height: 19px;
    margin: 0 0 0 -3px;
    padding: 0 0 0 16px;
    text-decoration: none;
    cursor: pointer;
}

a.tbl-shp_menu-center-inact:hover,
a.tbl-shp_menu-center-act:hover {
    text-decoration: underline;
}

a.tbl-shp_menu-center-inact,
a.tbl-shp_menu-center-inact span {
    color: #461c0b;
    background: url('/images/tbl-shp_menu-inact_2.gif') 0 0 no-repeat;
}

a.tbl-shp_menu-center-act,
a.tbl-shp_menu-center-act span {
    color: #ffe9ba;
    background: url('/images/tbl-shp_menu-act_2.gif') 0 0 no-repeat;
}

a.tbl-shp_menu-center-inact span,
a.tbl-shp_menu-center-act span {
    padding: 0 20px 0 8px;
    font-weight: bold;
    line-height: 16px;
    background-position: 100% -19px;
}

/* Внутри статей библиотеки — стык шапки/углов/боков без зазоров */
.lib-page .library-article center > table,
.lib-page .library-article table.mrg-top,
.lib-page .library-article table.tbl-shp-frame,
.leg-news-body table.mrg-top,
.leg-news-body table.tbl-shp-frame {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    margin: 8px auto;
    font-family: Tahoma, Geneva, sans-serif;
    font-size: 11px;
    color: #201610;
    line-height: 1.35;
    width: auto !important;
    max-width: 100%;
}

.lib-page .library-article center > table > tbody > tr > td,
.lib-page .library-article table.mrg-top > tbody > tr > td,
.lib-page .library-article table.tbl-shp-frame > tbody > tr > td,
.leg-news-body table.mrg-top > tbody > tr > td {
    padding: 0 !important;
    border: 0 !important;
}

.lib-page .library-article center > table > tbody > tr:first-child,
.lib-page .library-article table.mrg-top > tbody > tr:first-child {
    height: 22px !important;
}

.lib-page .library-article center > table > tbody > tr:first-child > td,
.lib-page .library-article table.mrg-top > tbody > tr:first-child > td {
    vertical-align: bottom !important;
    padding: 0 !important;
    height: 22px !important;
    max-height: 22px !important;
    overflow: hidden !important;
}

.lib-page .library-article center > table > tbody > tr:first-child > td:not(.tbl-shp_sml-top),
.lib-page .library-article table.mrg-top > tbody > tr:first-child > td:not(.tbl-shp_sml-top) {
    line-height: 0 !important;
    font-size: 1px !important;
}

.lib-page .library-article .tbl-shp_sml-top {
    overflow: hidden !important;
    max-height: 22px !important;
}

.lib-page .library-article img[src*="tbl-shp_sml-corner"],
.lib-page .library-article img[src*="tbl-usi_label-left"],
.lib-page .library-article img[src*="tbl-usi_label-right"],
.leg-news-body img[src*="tbl-shp_sml-corner"],
.leg-news-body img[src*="tbl-usi_label-left"],
.leg-news-body img[src*="tbl-usi_label-right"] {
    display: block !important;
    margin: 0 !important;
}

.lib-page .library-article .tbl-ati_brd-all,
.leg-news-body .tbl-ati_brd-all {
    padding-left: 4px;
    padding-top: 2px;
    padding-bottom: 3px;
}

.lib-page .library-article img[src*="tbl-"],
.lib-page .library-article img[src*="tbl-shp"],
.lib-page .library-article img[src*="tbl-usi"],
.leg-news-body img[src*="tbl-"] {
    border-radius: 0 !important;
    box-shadow: none !important;
    max-width: none;
}

.lib-page .library-article .tbl-usi_label-center,
.lib-page .library-article .tbl-usi_bg,
.lib-page .library-article .tbl-sts_bg-light,
.leg-news-body .tbl-usi_label-center,
.leg-news-body .tbl-usi_bg,
.leg-news-body .tbl-sts_bg-light {
    font-family: Tahoma, Geneva, sans-serif !important;
}
