@import url('https://fonts.googleapis.com/css2?family=Montserrat&family=Playfair+Display:wght@400;600&display=swap');
@import "article.css";
@import "modal.css";

* {
    margin: 0;
    padding: 0;    
}

[hidden] {
    display: none !important;
}

body{
    height: 100%;
}

.wrapper {
    font-family: 'Montserrat';
}

.header {
    /*width: 100%;*/
    /*height: 200px;*/
    background-color: #1D2D5D;
    padding: 1em;
}

.container {
    width: 90%;
    margin: 0 auto;
    padding: 1rem;
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    }

.header__title {
    font-weight: bold;
    font-size: 2em;
    max-width: 740px;
    color: #ffffff;
    display: flex;
    gap: 20px;
    align-items: center;
}

.header__link a {
    font-size: 1.375em;
    color: #ffffff;
    font-weight: bold;
    text-decoration: none;
}

.center-text {
    width: 100%;
    height: calc(100vh - 160px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-text a {
    font-size: 2.25em;
    font-weight: 600;
    color: #1D2D5D;
    text-decoration: none;
}

/* MODAL WINDOW */

.active {
    display: block;
}

.label {
    font-size: 18px;
    font-weight: light;
    margin-right: 25px;
}

.type-btn {
    padding: 0 1em;
    height: 2em;
    border-radius: 0.5em;
    background: rgba(29, 45, 93, 0.73);
    flex-shrink: 0;
    color: #FFF;
    font-size: 1.5em;
    font-weight: 500;
    border: 0;
    text-align: center;
    cursor: pointer;
}

textarea {
    border: 1px solid #E8E8E8;
}

.type-input::onfocus {
    border: 1px solid #E8E8E8
}

.srochno-label {
    display: inline;
    margin-bottom: 0;
}

.srochno-input {
    width: 20px;
    height: 20px;
}

.srochno-el {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.header__title-articles {
    margin-bottom: 50px;
}

.articles-categorie a {
    color: #FFF;
    font-size: 24px;
    font-weight: 600;
    text-decoration: none;
}

.selected-categorie a {
    text-decoration: underline;
}

.articles-main {
    margin-top: 20px;
}

.article-el {
    width: 100%;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #E8E8E8;
    padding: 0.25em 0;
}

.article-info {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
}

.article-info div {
    font-size: 1.25em;
    /*font-weight: 600;*/
}

.aricle-info-active div {
    font-weight: bold;
}

.id-art {
    width: 80px;
}

.name-art {
    width: 200px;
    text-align: center;
}

.location-art {
    width: 250px;
    text-align: center;
}

.cabinet-art {
    width: 60px;
    text-align: center;
}

.srochno {
    width: 150px;
    text-align: center;
}

textarea {
    font-size: 1.25em;
}

.article-el a {
    text-decoration: none;
    font-size: 20px;
    text-align: center;
    line-height: 40px;
}

.comments .container {
    border: 1px solid #E8E8E8;
    padding: 10px;
}

.comments__title {
    font-size: 30px;
    font-weight: 400;
    margin-bottom: 20px;
}

.comments-input {
    width: 100%;
    height: 100px;
}

.comments-btn {
    margin-top: 5px;
}

.comments-of-articles {
    width: 100%;
    margin-top: 50px;
}

.comment-el {
    width: 100%;
    margin-bottom: 20px;
}

.avatar {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
}

.avatar-img img {
    border-radius: 50px;
}

.avatar-name {
    font-size: 20px;;
    font-weight: 400;
}

.cabinet-art-f, .location-art-f, .name-art-f, .id-art-f, .description-f {
    color: #E8E8E8;
}

.cabinet-art, .location-art, .name-art, .id-art {
    color: #000;
}

.article-info-f div {
    color: #9EA09D;
}

.date {
    width: 120px;
    height: 40px;
    border-radius: 10px;
    background-color: #E8E8E8;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #9EA09D;
    margin-top: 25px;
}

.finished-btn {
    text-decoration: none;
    font-size: 22px;
    padding: 5px 10px;
    
}

.mt-30 {
    display: block;
    margin-top: 30px;
}

.input-file {
	position: relative;
	display: inline-block;
}
.input-file span {
	position: relative;
	display: inline-block;
	cursor: pointer;
	outline: none;
	text-decoration: none;
	font-size: 14px;
	vertical-align: middle;
	color: rgb(255 255 255);
	text-align: center;
	border-radius: 4px;
	background-color: #419152;
	line-height: 22px;
	height: 40px;
	padding: 10px 20px;
	box-sizing: border-box;
	border: none;
	margin: 0;
	transition: background-color 0.2s;
}

.input-file input[type=file] {
	position: absolute;
	z-index: -1;
	opacity: 0;
	display: block;
	width: 0;
	height: 0;
}
 
/* Focus */
.input-file input[type=file]:focus + span {
	box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}
 
/* Hover/active */
.input-file:hover span {
	background-color: #59be6e;
}
.input-file:active span {
	background-color: #2E703A;
}
 
/* Disabled */
.input-file input[type=file]:disabled + span {
	background-color: #eee;
}

.form-search-box {
    margin-top: 20px;
}

.type-a {
    padding: 5px 10px;
    text-decoration: none;
}

.form-row-search {
    align-items: center;
}

.add-btn {
    background-color: rgba(29, 45, 93, 0.73);
    border-radius: 10px;
    color: #ffffff;
    text-decoration: none;
    padding: 5px 10px;
    font-size: 22px;
    margin-top: 30px;
}

.description {
    width: 200px;
}

.worker-finish {
    display: none;
}

.active{
    display: block;
}

.w-100 {
    width: 100px;
}

.first-header {
    display: flex;
}

.header__logo {
    width: 100px;
    border-radius: 50%;
}

.seen-article .article-info div {
    font-weight: 400;
}

.header__worker-name {
    font-size: 22px;
    color: #ffffff;
    font-weight: 500;
    position: relative;
    bottom: 30px;
}

.files-label {
    font-size: 20px;
    max-width: 300px;
}

.cabinet-el {
    position: relative;
    bottom: 0;
    display: block;
}

.disactive {
    display: none;
}

.rating-content{
    display: flex;
    flex-direction: row;
}

.rating-table{
    margin: 0.5em;
    display: flex;
    flex-direction: column;
    /*flex-grow: 1;*/
}

.rating-table-left{
    flex-basis: 30%;
}

.rating-table-right{
    flex-basis: 70%;
}

.rating-header, .rating-row{
    display: flex;
    flex-direction: row;
}

.rating-header{
    color: white;
    background-color: rgba(29, 45, 93, 0.75);
    border-radius: .375em .375em 0 0; 
}

.rating-row{
    color: white;
    background-color: rgba(29, 45, 93, 0.5);
    justify-content: space-between;
}

.rating-cell{
    flex: 1;
    padding: 0.5em;
    text-align: center;
}

.rating-cell-left{
    padding: 0.5em;
    text-align: center;
}

.rating-date-container{
    color: white;
    background-color: rgba(29, 45, 93, 1);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 0 2em;
}

form.rating-date-form {
    display: flex;
    justify-content: center;
    margin: 0.5em;
    flex-wrap: wrap;
}

div.rating-date-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0.5em;
}

.rating-date {
    font-size: 1em;
    margin: 0.5em;
}

div.rating-date-period{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-basis: 50%;
    align-items: center;
    margin: 0.5em;
    gap: 1rem;
    flex-wrap: wrap;
}

.rating-date-submit {
    padding: .375em 1em;
    color: white; 
    background: rgba(255, 255, 255, 0.25); 
    border:0 none;
    cursor:pointer;
    -webkit-border-radius: .375em;
    border-radius: .375em; 
}

.rating-date-container.fixed-bottom {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
}

.admin-table{
    display: flex;
    flex-direction: column;
}

.admin-row {
    display: flex;
    flex-wrap: wrap;
}

.admin-cell {
    flex: 1;
    padding: 0.5em;
    border-bottom: .125em solid #ccc;
    text-align: center;
}

.number-cell{
    flex: 0.1;
    text-align: left;
}

@media (max-width: 550px) {
    .header{
        height: 100%;
    }
    .header__container{
        flex-direction: column;
        padding-bottom: 2em;
        gap: 1em;
    }
    .header__link a {
        font-size: 1em;
    }
    .header__worker-name{
        bottom: 0;
    }
    .main-text a {
        font-size: 1.5em;
    }
    .header__title{
        font-size: 1em;
    }
    .cabinet-el {
        position: relative;
        bottom: 0;
    }
    .rating-content{
        flex-wrap: wrap;
}

#cabinet_num-desc {
    font-size: 14px;
}

}
