@charset "utf-8";

[data-bs-theme=ml] {
    --bs-border-color: #aaaaaa;
}

body {
    margin: 0;
    padding: 0;
    color: #555;
    font: normal 10pt Tahoma, Geneva, sans-serif /*Trebuchet MS*/
    /*Arial,Helvetica,sans-serif*/;
    background: #EFEFEF;
}

#page {
    /*margin-top: 5px;
    margin-bottom: 5px;
    background: white;
    border: 1px solid #C9E0ED;*/
    min-width: 940px;
}

#header {
    /*margin: 0;
    padding: 0;
    border-top: 3px solid #C9E0ED;*/

    overflow: auto;
    height: 104px;
    background-color: #004883;
    color: #FFF;
}

#header .logo {
    float: left;
    padding-left: 2%;
    width: 30%;
}

#header .logo a img {
    width: 220px;
}

#header a {
    color: #FFF;
    text-decoration: underline;
    font-weight: bold;
}

#header a:hover {
    color: #30A1E6;
    text-decoration: none;
}

#header .htitle {
    float: left;
    width: 40%;
    margin-top: 32px;
    text-align: center;
    font-weight: bold;
    font-size: 13pt;
}

#header .auth {
    float: right;
    padding-right: 2%;
    margin-top: 0;
    text-align: right;
    width: 30%;
}

.container-name-exit p {
    display: inline-block;
}

.container-name-exit p:first-child {
    width: 90%;
}

.container-name-exit p:last-child {
    width: 8%;
    padding-left: 5px;
}

.line1 {
    /*overflow: auto;*/
    height: 3px;
    background-color: #FFF;
    width: 100%;
}

.line2 {
    /*overflow: auto;*/
    height: 3px;
    background-color: #E00041;
    width: 100%;
}

#content {
    padding: 20px;
    min-height: 300px;
}

#sidebar {
    padding: 20px 20px 20px 0;
    min-height: 300px;
}

.block-left {
    width: 18%;
    float: left;
}

.block-right {
    float: left;
    width: 80%;
    max-width: 80%;
    margin-top: 25px;
    min-height: 70vh;
}

#footer {
    /*padding: 10px;
    margin: 10px 20px;
    font-size: 0.8em;
    text-align: center;
    border-top: 1px solid #C9E0ED;*/

    clear: left;
    overflow: auto;
    background-color: #065080;
    min-height: 50px;
    font-size: 8pt;
    font-weight: bold;
    color: #FFF;
    padding-left: 5px;
    vertical-align: middle;
    line-height: 50px;
    padding-right: 10px;
}

#footer .copyright {
    float: left;
    font-weight: normal;
}

#footer .manual {
    font-size: 10pt;
    float: right;
}

#footer .manual a {
    color: #FFF;
    text-decoration: none;
    border-bottom: dotted 1px #FFF;
}

#footer .manual a:hover {
    color: #30A1E6;
    border-bottom: none;
}

/*#logo
{
	padding: 10px 20px;
	font-size: 200%;
}*/

#mainmenu {
    background: white url(bg.gif) repeat-x left top;
}

#mainmenu ul {
    padding: 6px 20px 5px 20px;
    margin: 0px;
}

#mainmenu ul li {
    display: inline;
}

#mainmenu ul li a {
    color: #ffffff;
    background-color: transparent;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    padding: 5px 8px;
}

#mainmenu ul li a:hover, #mainmenu ul li.active a {
    color: #6399cd;
    background-color: #065080;
    text-decoration: none;
}

div.flash-error, div.flash-notice, div.flash-success {
    padding: .8em;
    margin-bottom: 1em;
    margin-top: 25px;
    border: 2px solid #ddd;
}

div.flash-error {
    background: #FBE3E4;
    color: #8a1f11;
    border-color: #FBC2C4;
}

div.flash-notice {
    background: #FFF6BF;
    color: #514721;
    border-color: #FFD324;
}

div.flash-success {
    background: #E6EFC2;
    color: #264409;
    border-color: #C6D880;
}

div.flash-error a {
    color: #8a1f11;
}

div.flash-notice a {
    color: #514721;
}

div.flash-success a {
    color: #264409;
}

div.form .rememberMe label {
    display: inline;
}

div.view {
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #C9E0ED;
}

div.breadcrumbs {
    font-size: 0.9em;
    padding: 5px 20px;
}

div.breadcrumbs span {
    font-weight: bold;
}

div.search-form {
    padding: 10px;
    margin: 10px 0;
    background: #eee;
}

div.test-mode {
    color: red;
}

.portlet {

}

.portlet-decoration {
    padding: 3px 8px;
    background: #B7D6E7;
    border-left: 5px solid #6FACCF;
}

.portlet-title {
    font-size: 12px;
    font-weight: bold;
    padding: 0;
    margin: 0;
    color: #298dcd;
}

.portlet-content {
    font-size: 0.9em;
    margin: 0 0 15px 0;
    padding: 5px 8px;
    /*background: #EFFDFF;*/
}

.portlet-content ul {
    list-style-image: none;
    list-style-position: outside;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.portlet-content li {
    padding: 2px 0 4px 0px;
}

.operations {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.operations li {
    padding-bottom: 2px;
    border: 1px solid #0066A4;
    margin-bottom: 3px;
    text-align: center;
    border-radius: 4px;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    background: #e0eeee;
}

.operations li a:focus {
    color: #0099FF;
}

.operations li:focus-within,
.operations li:hover {
    background: #d3e7e7;
    border: 1px solid #0099FF;
}

.operations li.hr {
    background: none;
    padding: 0;
    border: none;
}

.operations li > ul {
    position: absolute;
    display: none;
    width: 15em;
}

.operations li:focus-within > ul,
.operations li:hover > ul {
    display: block;
    left: 100%;
    z-index: 1000;
    background: rgba(239, 239, 239, 0.7);
    padding: 4.3em 0.3em;
}
.operations li > ul {
    bottom: -16em;
}
.operations li > .short +  ul {
    bottom: -8em;
}

.operations li:hover > ul {
    z-index: 1001;
}

.operations li {
    position: relative;
}

.operations > li.parent:after {
    content: ' ';
    position: absolute;
    right: 0;
    top: 0.5em;
    border: solid 0.5em transparent;
    border-left: solid 0.75em #0b3e6f;
}

.op-current {
    background: #d3e7e7 !important;
    border: 1px solid #0099FF !important;
}

.op-current > a {
    color: #0099FF !important;
}

.operations li a {
    font: bold 12px Arial;
    color: #065080;
    display: block;
    padding: 2px 0 2px 8px;
    line-height: 15px;
    text-decoration: none;
}

.operations li > span {
    font: bold 12px Arial;
    color: #555555;
    display: block;
    padding: 2px 0 2px 8px;
    line-height: 15px;
    text-decoration: none;
}

/*.operations li a:visited {
    color: #0066A4;
}*/

.operations li a:hover {
    color: #0099FF;
}

.mb0 {
    margin-bottom: 0px !important;
}

/* Затемнения экрана */
#bg_black_join_loader {
    display: none;
}

#bg_black {
    /*
        position: fixed;
        top: 0px;
        left: 0px;
        margin: 0px;
        padding: 0px;
        width: 100%;
        height: 100%;
        background: black;
        filter: alpha(opacity=40);
        opacity: 0.4;
        background-color: #CCCCCC;
    */
    z-index: 10000;
    /*display: none;*/
}

#bg_black_loader {
    position: fixed;
    /*display: none;*/
    top: 40%;
    left: 47%;
    height: 100px;
    width: 100px;
    z-index: 10001;
    border: 1px solid #999999;
    background: url(../images/bg_black_loader.gif) no-repeat -40px 0;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
}

/* стилизация блоков*/

/* стили результата сохранения полиса */
.policytable {
    width: 100%;
    margin-top: 15px;
    overflow: auto;
}

.policytable .policytable_name {
    float: left;
    width: 20%;
    text-align: left;
    font-weight: bold;
    margin-bottom: 10px;
}

.policytable .policytable_data {
    float: left;
    width: 65%;
    padding-left: 10px;
    margin-bottom: 10px;
}

h2.error {
    color: red;
}

.register_error_text {
    font-size: 10pt;
    color: red;
}

/* ================================== */

/* div-other-error-blank сторонние ошибки для excel, pdf и всего что открывается в новом окне со своими заголовками */
.div-other-error-blank {
    margin: 25px;
    text-align: center;
}

/* ====================================*/

/* Стили дефолтного окна ошибки (до авторизации) */
.default-error {
    text-align: center;
    margin-top: 20%;
}

.default-error-block {
    border-radius: 4px;
    border: 1px solid #bb0000;
    padding: 5px;
    background: #FBC2C4;
    display: inline-block;
    text-align: left;
}

.default-error-block h2 {
    color: #bb0000;
}

.default-error-block .error {
    color: #555;
}

/* =============== hide left block menu ====================== */
#block-left-hider {
    position: absolute;
    opacity: 0;
    left: 0;
}

#block-left-hider ~ label[for=block-left-hider]:after {
    left: 0;
    position: absolute;
    content: 'Скрыть меню';
    background: none;
    color: #005500;
    border: solid 2px #005500;
    padding: 0.25em;
    border-radius: 0 .5em .5em 0;
    cursor: pointer;
    font-weight: 600;
    z-index: 100;
    font-size: 80%;
}
#block-left-hider ~ label[for=block-left-hider]:hover:after ,
#block-left-hider:focus ~ label[for=block-left-hider]:after {
    color: #ffffff;
    background: #005500;
}

#block-left-hider:checked ~ label[for=block-left-hider]:after {
    content: 'Меню';
}

#block-left-hider:checked ~ .block-left #sidebar {
    display: block;
    width: 17vw;
    opacity: 0.5;
    margin-left: 3em;
}

#block-left-hider:checked ~ .block-left {
    display: block;
    width: 1.5em;
    overflow: hidden;
    background: #dFdFdF;
}

#block-left-hider:checked ~ .block-right.last {
    width: 95%;
    max-width: 95%;
    max-width: calc( 100% - 1.5em );
}

/* ===================================== */

/* ===============SessionTimeout=========>>>>>*/
.ui-dialog .ui-dialog-buttonpane button {
    margin: 0;
    padding: 0;
}

#session-timeout {
    padding: 15px 0 10px 15px;
}

/* ===============SessionTimeout=========<<<<<*/

.for_branch_select:after {
    content: "Сменить подразделение";
    font-size: 75%;
    font-weight: 100;
    display: inline-block;
    color: rgb(255, 255, 255);
    user-select: none;
    z-index: 100;
    width: 12em;
    background: rgb(6, 128, 80);
    padding: 0.3em 0.6em;
    border-width: initial;
    border-style: none;
    border-color: initial;
    border-image: initial;
    border-radius: 0.1em;
}

/*Bootstrap fix*/
legend {
    width: auto;
}

/*RulesMain.php*/
#header {
    display: flex;
    justify-content: space-between;
    height: auto;
    align-items: center;
    overflow: hidden;
}

#header .htitle {
    margin-top: -15px;
}

.test-mode {
    position: absolute;
    left: 12em;
    top: 1em;
}

.branch_select {
    display: none;
}

#branch_select {
    opacity: 0;
    position: absolute;
    cursor: pointer;
}

.for_branch_select {
    position: relative;
    cursor: pointer;
}

.for_branch_select > div {
    display: inline-block;
    min-height: 1em;
}

/*p.title:after{*/
/*content: 'Сменить';*/
/*font-size: 75%;*/
/*font-weight: 100;*/
/*position: absolute;*/
/*background: #068050;*/
/*color: #FFFFFF;*/
/*margin-left: 1em;*/
/*padding: 0.3em 0.6em;*/
/*border: 1px solid #FFFFFF;*/
/*border: none;*/
/*border-radius: 0.1em;*/
/*user-select: none;*/
/*z-index: 100;*/
/*cursor: pointer;*/
/*}*/
#branch_select:checked ~ label {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
}

.branch_select {
    z-index: 100;
    position: fixed;
    top: 50vh;
    left: 50vw;
    width: 30em;
    height: 7em;
    margin-left: -15em;
    margin-top: -3.5em;
    top: 6em;
    margin-top: 0;
    background: #ffffff;
    box-shadow: 1em 1em 1em .5em rgba(0, 0, 0, .2);
}

#branch_select:checked ~ .branch_select {
    display: block;
    border: solid 1px #000000;
    border-radius: 0.1em;
    padding: 0;
    height: auto;
}

.branch_select .title {
    width: 100%;
    background: #333377;
    color: #ffffff;
    border-bottom: solid 1px #000000;
}

.branch_select .title label {
    display: block;
    float: right;
    width: 1.5em;
    background: #333333;
    border-left: solid 1px #000000;
    cursor: pointer;
}

.branch_select label div {
    width: 20%;
    color: #000000;
    float: left;
    font-size: 70%;
    margin: 0.5em;
}

.branch_select label select {
    width: 75%;
    float: left;
    margin: 0.5em;
}

.branch_select button {
    position: relative;
    display: inline-block;
    width: 10em;
    height: 2em;
    line-height: 24px;
    margin: 10px auto;
    vertical-align: middle;
    text-align: center;
    text-decoration: none;
    user-select: none;
    color: rgb(0, 0, 0);
    cursor: pointer;
    outline: none;
    bottom: 3px;
    border: 1px solid rgba(0, 0, 0, .4);
    border-top-color: rgba(0, 0, 0, .3);
    border-radius: 2px;
    background: linear-gradient(rgb(255, 255, 255), rgb(240, 240, 240));
    box-shadow: 0 0 3px rgba(0, 0, 0, 0) inset, 0 1px 1px 1px rgba(255, 255, 255, .2), 0 -1px 1px 1px rgba(0, 0, 0, 0);
    transition: .2s ease-in-out;
}

.branch_select button:active {
    background: linear-gradient(rgb(250, 250, 250), rgb(235, 235, 235));
    box-shadow: 0 0 3px rgba(0, 0, 0, .5) inset, 0 1px 1px 1px rgba(255, 255, 255, .4), 0 -1px 1px 1px rgba(0, 0, 0, .1);
}

.branch_select button:hover:not(:active) {
    box-shadow: 0 0 3px rgba(0, 0, 0, 0) inset, 0 1px 1px 1px rgb(74, 135, 175), 0 -1px 1px 1px rgb(100, 194, 255);
}

@media screen and (max-width: 1280px) {
    #header .logo {
        width: 30%;
    }

    #header .htitle {
        width: 40%;
        font-size: 16px;
    }

    #header .auth {
        width: 30%;
    }
}

/* ======================= Уведомление пользователя ========================= */

#b2b-main-alert {
    position: fixed;
    right: 2em;
    top: 2em;
    z-index: 10000;
    overflow-y: hidden;
    max-height: 50vh;
}

#b2b-main-alert .alert {
    box-shadow: #0a0a0a 0.25em 0.25em 1em; /*1em;*/
    position: relative;
    display: block;
    white-space: pre-wrap;
    max-width: 30vw;
}

@media (min-width: 1200px){
    #b2b-main-alert .alert {
        max-width: 20em;
    }
}

#b2b-main-alert .alert div{
    position: absolute;
    top: 0;
    right: 0;
    width: 1em;
    height: 1em;
    text-align: center;
    display: block;
    cursor: pointer;
}
