/*  Стили для страницы авторизации */
.site-login {
    width: 450px;
    margin: 0 auto ;
    margin-top: 50px;
    padding: 16px 24px 6px 24px;
    border: 2px solid slategray;
    box-shadow: 10px 15px 25px #555555;
    background-color: #dbdbdb;
}

.site-login form {
    padding: 16px 16px 0 16px;
}

.site-login h1 {
    margin-top: 16px;
    margin-bottom: 8px;


    text-align: center;
}

#loginform-password,
#loginform-username {
    border-radius: 0;
}

.field-loginform-password,
.field-loginform-username {
    display: flex;
    flex-wrap: wrap;
}

.field-loginform-password label,
.field-loginform-username label {
    background-color: #eeeeee;
    width: 32px;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: 50%;
    border: 1px solid silver;
}

.field-loginform-username label {
    background-image: url("../images/user.svg");
 }

.field-loginform-password label {
    background-image: url("../images/lock-open.svg");
}

.field-loginform-password div,
.field-loginform-username div {
    padding-left: 0;
}

.login-input {
    width: 344px;
}

.login-btn {
    padding-left: 0;
    padding-right: 0;
    width: 100%;
}

/* Копия с бутстрапа 4.3.1*/

.btn-dark {
    color: #fff;
    background-color: #343a40;
    border-color: #343a40;
}

.btn-dark:hover {
    color: #fff;
    background-color: #23272b;
    border-color: #1d2124;
}

.btn-dark:focus, .btn-dark.focus {
    box-shadow: 0 0 0 0.2rem rgba(82, 88, 93, 0.5);
}

.btn-dark.disabled, .btn-dark:disabled {
    color: #fff;
    background-color: #343a40;
    border-color: #343a40;
}

.btn-dark:not(:disabled):not(.disabled):active, .btn-dark:not(:disabled):not(.disabled).active,
.show > .btn-dark.dropdown-toggle {
    color: #fff;
    background-color: #1d2124;
    border-color: #171a1d;
}

.btn-dark:not(:disabled):not(.disabled):active:focus, .btn-dark:not(:disabled):not(.disabled).active:focus,
.show > .btn-dark.dropdown-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(82, 88, 93, 0.5);
}

/* тут копия заканчивается*/


.btn-dlg {
    width: 100px;
    margin-left: 8px;
}

/* стили формы редактирования справочника пользователей */

.user-form form {
    width: 98%;
    margin: 0 auto;
}

.user-form-content, .password-block, .contact-block, .user-right-group {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.user-form .user-form-fieldset {
    width: 48%;
    margin-top: 16px;
    border-bottom: 2px ridge lightgrey;
}

.field-user-inpassword,
.field-user-repassword,
.field-user-phone,
.field-user-email,
.field-user-status {
    width: 49%;
}

.form-group {
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 24px;
}

.field-user-id {
    display: none;
}

.button-group {
    margin-top: 24px;
    text-align: center;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    padding-top: 16px;
}

.modal-buttons .btn:first-child{
    margin-right: 8px;
}

/* Классы для раскраски справочника пользователей */
.user-inactive {
    /* Неактивный пользователь */
    color: darkgrey;
    font-style: italic;
    text-decoration: line-through;
}

.user-admin {
    /* Администратор*/
    color: maroon;
    font-weight: bolder;
    background-color: oldlace;
    text-shadow: 0px 0px 16px yellow;
}

.user-director {
    /* Руководитель */
    color: navy;
    font-weight: bolder;
}

.user-catalog {
    /* Редактор НСИ */
    color: navy;
}

/* стили шапки шаблона */
.caption {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 8px;
    margin-left: 16px;
    /*align-items: center;*/
}

.navbar-brand img{
    max-height: 22px;
    width: auto;
}

.caption-text {
    display: inline-block;
    margin-left: 10px;
    margin-top: 4px;
    font-family: Arial;
    font-weight: bolder;
    font-size: 22px;
}

.caption-pagetitle{
    /*margin-top: 7px;
    padding: 0 32px;*/
    font-family: Arial;
    font-weight: bolder;
    font-size: 24px;
    color: navy;
    text-align: center;
}

.navbar-header {
    float: none;
}

.navbar-collapse {
    padding-left: 0px;
}

#mainMenu {
    margin: 0;
    padding: 0;
}

#mainMenu li {
    padding-right: 20px;
    display: inline-block;
}

#mainMenu > li > a {
    float: left;
    padding-bottom: 2px;
    border-bottom: 1px solid #c00;
    line-height: 30px;
}

.dropdown-menu > li {
    margin-bottom: 15px;
}

.dropdown-menu > li > a {
    margin-left: 3px;
    border-left: 1px solid #c00;
}

#mainMenu a:hover {
    color: black ;
    background-color: skyblue;
}

.active {
    color: white ;
    font-weight: bolder;
    background-color: darkgrey;
}

/* Группы номенклатуры */
.parent-path {
    display: flex;
    justify-content: space-between ;
}

.parent-step-cont {
    display: flex;
}

.parent-step {
    display: flex;
    align-items: center;
    padding-right: 16px;
    cursor: pointer;
}

.parent-step-text {
    display: inline-block;
}

.parent-step-arrow {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 6px;
    border-top: 7px solid transparent;
    border-left: 14px solid;
    border-bottom: 7px solid transparent;
}

.parent-step:last-child .parent-step-arrow {
    display: none;
}

.parent-path button {
    float: right;
}

.tree-container {
    height:  150px;
    overflow: scroll;
}

/*
    Стили кнопок
 */

.toolbar {
    display: flex;
    /*height: 32px;*/
    align-items: flex-start;
    margin-top: 8px;
    margin-bottom: 12px;
}

.btn-begin-group {
    margin-left: 24px;
}

.dbtn {
    position: relative;
    width: 32px;
    height: 32px;
    margin-bottom: 0px;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    border-radius: 4px;
    background-color: white;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat ;
}

.dbtn::after {
    content: attr(data-title);
    position: absolute;
    left: 0;
    bottom: -32px;
    background: rgba(255, 255, 150, .85);
    color: #cc0000;
    overflow: visible;
    white-space: nowrap;
    text-align: center;
    border: 2px solid rgba(255, 255, 50, .85);
    border-radius: 8px;
    padding: 8px 8px;
    z-index: 100;
    opacity: 0;
    transition: all 0.6s ease-in-out;
}

.dbtn:hover:after {
    opacity: 1;
}

.dbtn-create {
    background-image: url("/images/create.svg");
}

.dbtn-copy {
    background-image: url("/images/copy2.svg");
}

.dbtn-edit {
    background-image: url("/images/edit.svg");
}

.dbtn-delete {
    background-image: url("/images/delete.svg");
}

.dbtn-search {
    background-image: url("/images/binoculars.svg");
}

.dbtn-list {
    background-image: url("/images/list.svg");
}

.dbtn-tree {
    background-image: url("/images/tree.svg");
}

.dbtn-import {
    background-image: url("/images/import.svg");
}

.toolbar label {
    margin-top: 4px;
    margin-right: 4px;
}

.find-group {
/*    display: inline-block ;*/
    height: 33px;
/*    position: absolute;*/
    margin-left: 24px;
    padding-top: 4px;
}

/** Контролы для модального сообщения */
.mdbgrd {
    display: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    margin: 0;
    position: absolute;
    background-color: darkgrey;
    border: 3px groove black;
    opacity: 0.9;
    z-index: 100;
}

.mdfrm {
    width: 50%;
    margin: 0 auto;
    margin-top: 5%;
    padding: 24px;
    background-color: #faf2cc;
    border: 3px groove black;
    box-shadow: 10px 10px 30px black;
    opacity: 1;
    z-index: 110;
}

.mdmsg {
    font-weight: bolder;
    font-size: 20px;
    text-align: center;
    margin-bottom: 16px;
}

.control-group {
    display: flex;
}

.form-group {
    margin-bottom: 4px !important;
}

.field-doc-idmanager, .field-doc-idaccepter {
    width: 410px;
}

.field-doc-idfirm, .field-doc-note {
    width: 840px;
}

.dkc-panel {
  width: 50%;
  min-height: 100px;
  padding: 4px;
  background-color: lavender;
  border: 1px solid darkgray;
}

@media (max-width: 1520px) {
  .caption-text {
      display: none;
    }

  .jumbotron {
    padding: 0;
  }
}
