/*
main color: #0e66b0 rgba(14, 102, 176, 1)
dark color: #0a4a80 rgba(10, 74, 128, 1)
light color: #36c3d9
main-grey: #6687a3 rgba(102, 135, 163, 1)
light-grey: #bed4e8 rgba(190, 212, 232, 1)
red color: #91274a rgba(145, 39, 74, 1)
orange color: #f79341 rgba(247, 147, 65, 0.8)
green color:  rgba(22, 168, 65, 0.6); 
*/

:root {
    /*colors*/
    --main-color: rgba(14, 102, 176, 1);
    --dark-color: rgba(10, 74, 128, 1);
    --light-color: rgba(54, 195, 217, 1);
    --main-grey-color: rgba(102, 135, 163, 1);
    --light-grey-color: rgba(190, 212, 232, 1);
    --red-color: rgba(145, 39, 74, 1);
    --orange-color: rgba(247, 147, 65, 0.8);
    --green-color: rgba(22, 168, 65, 0.6);
    --white-color: #ffffff;
    --shadow-color: rgba(10, 74, 128, 0.6);
    --table-border-color: rgba(102, 135, 163, 1);
    --table-th-first-bg-color: rgba(14, 102, 176, 0.7);
    --table-th-second-bg-color: rgba(14, 102, 176, 0.4);
    --tip-div-color: #ffffff;
    /*fonts*/
    --main-font: 'Montserrat', sans-serif;
    --main-font-size: 14px;
    --medium-font-size: 16px;
    --large-font-size: 20px;
    --semi-bold-weight: 550;
    /*borders and shadows*/
    --button-border: 1px solid rgba(102, 135, 163, 0.4);
    --button-shadow: 5px 5px 5px rgba(10, 74, 128, 0.6);
}

body {
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.bg-color-white {
    background-color: #FFFFFF;
}

.bg-color-main {
    background-color: #0e66b0;
}

.bg-color-dark {
    background-color: #0a4a80;
}

.bg-color-light {
    background-color: #36c3d9;
}

.bg-color-red {
    background-color: #91274a;
}

.bg-color-green {
    background-color: #16a841;
}

.bg-color-greyblue {
    background-color: #6687a3;
}

.font-family-monsterrat {
    font-family: 'Montserrat', sans-serif;
}

.font-size-16 {
    font-size: 16px;
}

.font-weight-bold {
    font-weight: bold;
}

.font-weight-light {
    font-weight: lighter;
}

.font-weight-normal {
    font-weight: normal;
}

.text-decoration-none {
    text-decoration: none;
}

.text-color-main {
    color: #0e66b0;
}

.text-color-dark {
    color: #0a4a80;
}

.text-color-light {
    color: #36c3d9;
}

.text-color-white {
    color: #ffffff;
}

.text-color-red {
    color: #91274a;
}

.text-align-center {
    text-align: center;
}

.text-align-left {
    text-align: left;
}

.text-align-right {
    text-align: right;
}

.border-solid {
    border-style: solid;
}

.border-width-1 {
    border-width: 1px;
}

.border-width-2 {
    border-width: 2px;
}

.border-color-main {
    border-color: #0e66b0;
}

.border-color-dark {
    border-color: #0a4a80;
}

.border-color-light {
    border-color: #36c3d9;
}

.border-color-white {
    border-color: #ffffff;
}

.central-aligin {
    display: block;
    margin: 0px auto;
}

.height-50 {
    height: 49px;
}

.margin-0 {
    margin: 0;
}

.padding-0 {
    padding: 0;
}

.padding-5 {
    padding: 5px;
}

.padding-10 {
    padding: 10px;
}

.padding-15 {
    padding: 15px;
}

.padding-20 {
    padding: 20px;
}

.padding-30 {
    padding: 30px;
}

.padding-50 {
    padding: 50px;
}

.display-block {
    display: block;
}

.display-inline-block {
    display: inline-block;
}

.display-flex {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.width-1300 {
    width: 80%;
    max-width: 1300px;
}

/* Главное меню */

li.main-menu {
    list-style: none;
    display: inline-flex;
    width: 724px;
    margin-left: 30%;
    margin-right: 30%;
}

ul.main-menu {
    width: 181px;
    height: 59px;
    border-right: 1px solid #0a4a80;
    margin: 0;
    list-style: none;
}

ul.main-menu:hover {
    background-color: #0a4a80;
}

ul.main-menu:first-child {
    border-left: 1px solid #0a4a80;
}

a.main-menu {
    height: 100%;
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

li.second-level-menu {
    display: none;
    background-color: #0a4a80;
    z-index: 100;
    padding: 0px;
    position: absolute;
    top: 139px;
    margin-left: -1px;
}

li.second-level-menu  ul {
    border-top: 1px solid #0e66b0;
    width: 200px;
    height: 59px;
    font-size: 16px;
}

li.second-level-menu  ul:hover {
    background-color: #0e66b0;
}

ul.main-menu:hover li.second-level-menu {
    display: block;
}

/* Таблицы */

.def-table {

}


table.def-table {
    width: 100%;
    border-collapse: collapse;
}

th.def-table {
    color: white;
    background-color: #0e66b0;
    border: 1px solid #0a4a80;
    padding: 5px;
}

th.em-table {
    width: 20%;
}

td.def-table {
    border-right: 1px solid lightgrey;
    border-left: 1px solid lightgrey;
    padding: 5px;
    text-align: right;
}

td.def-table:first-child {
    border-left-color: #0e66b0;
    text-align: left;
}

td.def-table:last-child {
    border-right-color: #0e66b0;
}

tr.def-table {
    border-bottom: 1px solid lightgrey;
}

tr.def-table:first-child {
    border-top: 1px solid #0e66b0;
}

tr.def-table:last-child {
    border-bottom: 1px solid #0e66b0;
}

td.def-table:has(div.checkbox-border) {
    text-align: center;
    vertical-align: middle;
}

.def-table input[type="checkbox"] {

}

div.checkbox-border {
    display: inline-block;
    border: 1px solid #0e66b0;
    border-radius: 3px;
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

.def-table input[type="checkbox"]:disabled {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    margin: 4px;
}

.def-table input[type="checkbox"]:disabled:checked {
    background-color: #0e66b0;
    border-radius: 2px;
}

th.salary-table {
    width: 16.6%;
}

table.schedule-table {
    border: 1px solid #0e66b0;
}

tr.schedule-table {

}

tr.schedule-table:first-child {
    color: #FFFFFF;
    font-weight: bold;
    background-color: #0e66b0;
    border: 1px solid #0a4a80;
}

tr.schedule-table:first-child td {
    border: 1px solid #0a4a80;
}

tr.schedule-table:nth-child(2){
    color: #FFFFFF;
    font-weight: bold;
    background-color: #6687a3;
    border: 1px solid #0a4a80;

}

tr.schedule-table:nth-child(2) td {
    border: 1px solid #0a4a80;
}

td.schedule-table {
    text-align: center;
}

td.schedule-table:first-child {
    text-align: left;
}

th.posts-table {
    width: 33%;
}

th.worktime-table {
    width: 25%;
}

th.readers-table {
    width: 25%;
}

th.users-table {
    width: 33%;
}

th.marks-by-day-table {
    width: 25%;
}

th.marks-by-day-table:first-child {
    width: 150px;
}

td.marks-by-day-table:first-child {
    width: 150px;
    text-align: center;
}

td.marks-by-day-table:nth-child(2) {
    text-align: left;
}
    
/* Формы */

.datepicker {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #FFFFFF;
    font-weight: bold;
}

form.datepicker {
    width: 325px;
    margin: 0 auto;
}

button.datepicker {
    padding: 10px;
    background-color: #0e66b0;
    border: 3px solid #0e66b0;
    border-radius: 7px;
    margin-left: 0px;
}

button.datepicker:hover {
    background-color: #0a4a80;
    border-color: #0a4a80;  
}

input[type="month" i] {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: bold;
    padding: 10px;
    border: 2px solid #0e66b0;
    border-radius: 7px;
    color: #FFFFFF;
    background-color: #0e66b0;
}

input[type="date" i] {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: bold;
    padding: 10px;
    border: 2px solid #0e66b0;
    border-radius: 7px;
    color: #FFFFFF;
    background-color: #0e66b0;
}

::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

:-webkit-calendar-picker-indicator:hover {
    border-color: #0e66b0;
}
/*
input[type="month" i]:hover {
    background-color: #0a4a80;
    border-color: #0a4a80;
}

input[type="date" i]:hover {
    background-color: #0a4a80;
    border-color: #0a4a80;
} */

/* Окно логина */

.login-background-panel {
    display: block;
    background-color: #FFFFFF;
    max-width: 400px;
    margin: 10% auto 0 auto;
    border-color: #0e66b0;
    border-width: 2px;
    border-style: solid;
    border-radius: 20px;
    padding: 50px 0;
}

.login-logo-panel {
    display: block;
}

img.login-logo-panel {
    width: 350px;
    margin: 50px auto;
}

.login-form-panel {
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    display: block;
    margin: 0 auto;
}

div.login-form-panel {
    padding: 5px;
}

input[type = "text" i].login-form-panel {
    color: #0a4a80;
    display: block;
    margin: 0, auto;
    height: 25px;
    text-align: center;
    width: 60%;
    border: 1px solid #0e66b0;
    border-radius: 7px;
}

input[type = "text" i].login-form-panel:focus {
    border-width: 2px;
    border-color: #0e66b0;
}

input[type = "password" i].login-form-panel {
    color: #0a4a80;
    display: block;
    margin: 0, auto;
    height: 25px;
    text-align: center;
    width: 60%;
    border: 1px solid #0e66b0;
    border-radius: 7px;
}

input[type = "password" i].login-form-panel:focus {
    border-width: 2px;
    border-color: #0e66b0;
}

button.login-form-panel {
    color: #FFFFFF;
    font-weight: bold;
    display: block;
    margin: 15px auto 0px;
    height: 35px;
    width: 30%;
    border: 1px solid #0e66b0;
    border-radius: 7px;
    background-color: #0e66b0;  
}

button.login-form-panel:hover {
    background-color: #0a4a80;
    border-color: #0a4a80;  
}

/* Кнопки */
button.def-button {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #FFFFFF;
    font-weight: bold;
    display: block;
    margin: 15px auto 0px;
    width: 120px;
    border: 1px solid #0e66b0;
    border-radius: 7px;
    background-color: #0e66b0;
    cursor: pointer;
    padding: 10px;
    vertical-align: middle;
}

button.def-button:hover {
    background-color: #0a4a80;
    border-color: #0a4a80;
    cursor: pointer;  
}

details.def-details {
    display: block;
    margin: 0 auto;
    width: 40%;
}

summary.def-details {
    width: 120px;
    margin: 0 auto;
    background-color: #0e66b0;
    border: 1px solid #0e66b0;
    color: #FFFFFF;
    font-weight: bold;
    padding: 10px;
    text-align: center;
    vertical-align: middle;
    border-radius: 7px;
    list-style: none;
    cursor: pointer;
}

summary.def-details:hover {
    background-color: #0a4a80;
    border-color: #0a4a80;
    cursor: pointer;
}

details[open].def-details > summary {
    background-color: #6687a3;
    border-color: #6687a3;
    color: #0a4a80;
}

form.add-form {
    border-radius: 15px;
    border: 2px solid #0e66b0;
    width: 480px;
    margin: 20px auto;
}

figcaption.add-form {
    display: block;
    margin: 0 auto;
    width: 380px;
    font-weight: bold;
    font-size: 16px;
    padding-bottom: 10px;
}

.add-form {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 500;
}

div.add-form {
    display: block;
    margin: 0 auto;
    padding: 8px;
    width: 400px;
}

input.add-form,select.add-form,option.add-form {
    width: 400px;
    display: block;
    margin: 0 auto;
    height: 30px;
    color: #0a4a80;
    background-color: #bed4e8;
    border: 0px solid #6687a3;
    border-radius: 3px;
    padding: 0px;
    padding-left: 5px;
    text-align: center;
}

select.add-form {
    width: 405px;
}

label.add-form {
    display: block;
    margin-bottom: 10px;
}

p.note-tip {
    font-size: 12px;
    margin: 0 auto;
    padding-left: 5px;
}

p.err-tip {
    text-align: center;
    font-weight: bold;
    margin: 0 auto;
    color: #91274a;
}

/* Прогресс регистрации */


p.first-login-progress {
    display: block;
    height: 30px;
    width: 30px;
    text-align: center;
    margin: auto;
    padding-top: 10px;
}

div.round {
    display: block;
    width: 22px;
    height: 22px;
    font-size: 18px;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    align-items: center;
    border: 1px solid #0e66b0;
    padding: 0;
    margin: 0;
    position: relative;
    border-radius: 20px;
}

div.not-ready {
    background-color: #ffffff;
}

div.out-not-ready {
    background-color: #6687a3;
    border: 1px solid #6687a3;
}

div.ready {
    background-color: #0e66b0;
}

div.round:first-child {
    margin-left: 0;
}

div.round-inner {
    width: 10px;
    height: 10px;
    border-radius: 7px;
    margin: 4px;
    border: 2px solid #ffffff;
}


div.line {
    margin: 0;
    display: inline-flex;
    height: 10px;
    width: 200px;
    background-color: #0e66b0;
    align-items: center;
    padding: 0;
    margin: 0;
    
}

div.first-login-progress-container {
    display: flex;
    height: 41px;
    padding: 0;
    margin: 0;
    justify-content: space-between;
}

progress.first-login-progress {
    -webkit-appearance: none;
    display: block;
    margin: 0 10px;
    width: 98%;
    height: 8px;
}

progress.first-login-progress::-webkit-progress-bar {
    background-color: #6687a3;
    height: 8px;
}

progress.first-login-progress::-webkit-progress-value {
    background-color: #0e66b0;
    height: 8px;
}

div.first-login-progress-bar {
    display: block;
    position: relative;
    top: 16px;
}

.first-login-form {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
}

div.first-login-form {
    display: flex;
    padding: 30px 40px 0px;
    align-items: center;
    justify-content: space-between;
}

form.first-login-form {
    width: 500px;
    margin: 0 auto;
    border: 3px solid #0e66b0;
    border-radius: 12px;
    
}

form.first-login-form[name="add-employee"] {
    width: 700px;
}

form.first-login-form[name="add-employee"] label{
    width: 260px;
}

form.first-login-form[name="add-employee"] select.first-login-form {
    width: 320px;
}

form.first-login-form[name="add-workrange"] {
    width: 560px;
}

form.first-login-form[name="add-workrange"] label{
    width: 200px;
}

form.first-login-form[name="add-department"] {
    width: 700px;
}

form.first-login-form[name="add-department"] label {
    width: 260px;
}

form.first-login-form[name="add-department"] select.first-login-form {
    width: 320px;
}

form.first-login-form input[type="text" i], input[type="password"] {
    display: block;
    color: #0a4a80;
    padding: 4px;
    border: 1px solid #0e66b0;
    border-radius: 5px;
    width: 50%;
    text-align: center;
    outline: none;
}

form.first-login-form input::-webkit-input-placeholder {
    color: #6687a3;
}

form.first-login-form input:-webkit-autofill {
    border: 2px solid #0a4a80;
    color: #0a4a80;
    background-color: #6687a3;
}

form.first-login-form input:-webkit-autofill:active {
    border: 3px solid #0a4a80;
    color: #0a4a80;
}

form.first-login-form label {
    font-weight: bolder;
    width: 160px;
}

form.first-login-form button {
    color: #ffffff;
    font-weight: bold;
    background-color: #0e66b0;
    height: 30px;
    width: 100px;
    margin: 0 auto;
    border: 1px solid #0e66b0;
    border-radius: 5px;
    margin-bottom: 30px;
    text-transform: uppercase;
}

form.first-login-form button:hover {
    background-color: #0a4a80;
    border: 1px solid #0a4a80;
}

input[type="checkbox"].first-login-form {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    margin: 4px;
    cursor: pointer;
}

input[type="checkbox"].first-login-form:checked {
    background-color: #0a4a80;
    border-radius: 2px;
}

div.checkbox-border:has(input[type="checkbox"].first-login-form) {
    display: block;
    margin: 0 auto;
}

div.tip-button {
    background-color: #0a4a80;
    color: #ffffff;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
}

div.tip-button p {
    text-align: center;
    margin: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    cursor: help;
}

div.tip-button p.tip-label {
    display: none;
    position: absolute;
    z-index: 50;
    background-color: #6687a3;
    opacity: 0.95;
    padding: 10px;
    width: auto;
    height: auto;
    border-radius: 7px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: normal;
    color: #ffffff;
    max-width: 200px;
    text-align: left;
}

div.tip-button p:hover ~ p.tip-label {
    display: block;
}

div.first-login-form-checkbox-container {
    width: 319px;
}

input[type="time"].first-login-form {
    -webkit-appearance: none;
    width: 245px;
    height: 18px;
    text-align: center;
    border: 1px solid #0e66b0;
    border-radius: 5px;
    padding: 4px;
    padding-right: 0;
    color: #0e66b0;
    outline: none;
}
/*
input[type='time']::-webkit-calendar-picker-indicator {
    background-color: #f79341;
    filter: invert(1);
    height: 21px;
    width: 21px;
}

input[type='time']::-webkit-calendar-picker-indicator:hover {
    background-color: #f8b883;
}
*/

input[type="number"].first-login-form {
    width: 50%;
    border: 1px solid #0e66b0;
    border-radius: 5px;
    padding: 4px;
    color:#0e66b0;
    text-align: center;
    outline: none;
}


select.first-login-form {
    width: 220px;
    height: 28px;
    border: 1px solid #0e66b0;
    border-radius: 5px;
    padding: 4px;
    color: #0e66b0;
    text-align: center;
    outline: none;
    cursor: pointer;
}

div.first-login-final-stage {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;

}

form.first-login-final-stage {
    width: 45%;
    color: #0a4a80;
    border: 1px solid #6687a3;
    padding-bottom: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
}

form.first-login-final-stage input:disabled {
    width: 50%;
    text-align: center;
    padding: 4px;
    border-radius: 5px;
    border: 1px solid #6687a3;
    color: #6687a3;
}

form.first-login-final-stage input[type="checkbox"]:disabled {
    border-width: 0;
}

form.first-login-final-stage input[type="checkbox"]:disabled:checked {
    width: 12px;
    height: 12px;
    margin: 4px;
    border-width: 0;
    background-color: #6687a3;
    border-radius: 2px;
}

form.first-login-final-stage select:disabled {
    width: 51.5%;
    text-align: center;
    border: 1px solid #6687a3;
    color: #6687a3;
    opacity: 1;
}

form.first-login-final-stage label {
    width: 40%;
    font-weight: bolder;
}

form.first-login-final-stage div.first-login-form-checkbox-container {
    width: 51.5%;
}

button.first-login-final-stage {
    color: #ffffff;
    font-weight: bold;
    background-color: #0e66b0;
    height: 30px;
    width: 100px;
    margin: 0 auto;
    border: 1px solid #0e66b0;
    border-radius: 5px;
    margin-bottom: 30px;
    text-transform: uppercase;
}

div.first-login-form:has(button.first-login-final-stage) {
    padding: 0px;
}

button.first-login-final-stage:hover {
    border-color: #0a4a80;
    background-color: #0a4a80;
}

input[type="text"][id="final"].first-login-final-stage {
    display: none;
}

div.add-user-form {
    padding-left: 30px;
    padding-right: 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    color: #0a4a80;
}

fieldset.first-login-form {
    border: 0px;
    margin: 0;
    padding: 0;
}

form.first-login-form:has(fieldset.first-login-form:disabled) {
    background-color: #6687a3;
    border-color: #6687a3;
}

form.first-login-form:has(fieldset.first-login-form:disabled) button {
    color: #6687a3;
}


form.first-login-form:has(fieldset.first-login-form:disabled) button:hover {
    background-color: #0e66b0;
    border-color: #0e66b0;
}

form.first-login-form:has(fieldset.first-login-form:disabled) div.tip-button p:hover ~ p.tip-label {
    display: none;
} 

div.add-user-form form.first-login-form {
    width: 45%;
    min-width: 500px;
    margin-bottom: 30px;
}

div.first-login-form select.stripped {
    width: 51.35%;
}

div.add-form-select-container {
    width: 51.35%;
    display: flex;
    margin: 0;
}

div.add-user-form div.first-login-form-checkbox-container {
    width: 51.35%;
}

div.add-user-form label.first-login-form {
    width: 42%;
}

div.add-user-form input[type="checkbox"].first-login-form {
    margin: 0 auto;
    margin-top: 4.5px;
}

div.add-form-select-container button.show-other-forms-button {
    margin: 0;
    height: 28px;
    width: 28px;
    font-weight: bold;
    font-size: 22px;
    font-family: 'Montserrat', sans-serif;
    padding: 0;
    text-align: center;
    border-radius: 0 5px 5px 0px;
}

div.add-form-select-container select.stripped {
    width: 95%;
    border-radius: 5px 0 0 5px;
    outline: none;
}

form.first-login-form input[type='text'].hidden-form-title {
    display: none;
}

@keyframes hover-animation {
    from {
        transform: scale(1.025);
    }
    50% {
        transform: scale(1.0375);
    }
    to {
        transform: scale(1.05);
    }
}

a.download-file {
    font-family: 'Montserrat', sans-serif;
    color: #0e66b0;
    text-transform: uppercase;
    font-weight: 600;
    text-decoration: none;
    text-align: center;

    background-color: #ffffff;

    border-width: 0;
    border-top: 1px solid rgba(102, 135, 163, 0.4);
    border-left: 1px solid rgba(102, 135, 163, 0.4);
    border-radius: 7px;
    
    padding: 10px;

    outline: none;
    box-shadow: 5px 5px 5px rgba(10, 74, 128, 0.6);
    cursor: pointer;

    max-width: 150px;
}

a.download-file:hover {
    animation-name: hover-animation;
    animation-duration: 100ms;
    transform: scale(1.05);
}


::-webkit-scrollbar {
	width: 6px;
    height: 6px;
} 
::-webkit-scrollbar-track {
    background-color: #ffffff;
} 
::-webkit-scrollbar-thumb {
    background-color: rgba(102, 135, 163, 1); 
    border-radius: 7px 7px 7px 7px;
}