/* global */
@import "materialize.css";
@import "variables.css";
@import "null.css";
@import "font.css";
@import 'logo.css';

.wrapper {
    overflow: hidden;
    display: flex;
    flex-direction: row;
    min-height: 100%;
    max-width: 100%;
    margin: 0 auto;
    font-family: "Exo2-Regular", sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* ########     ЛЕВЫЙ САЙДБАР     ########## */

.sidebar_container_left {
    width: 350px;
    height: 100%;
    flex-shrink: 0;
    flex-grow: 0;
    position: fixed; /*Fixed Sidebar (stay in place on scroll) */
    z-index: 1; /* Stay on top */
    top: 0; /*Stay at the top*/
    left: 0;
    overflow-x: hidden; /*Disable horizontal scroll */
    font-size: 16px;
    background-color: var(--basic-white);
    box-shadow: 5px 0px 7px -2px rgba(9, 12, 15, 0.2);
}

.header__logo {
    display: flex;
    flex-wrap: wrap;
    flex-shrink: 0;
    width: 350px;
    height: 90px;
    margin: 0;
    padding: 0;
    background-color: var(--basic-dark-grey);
    color: var(--basic-white);
}

.header__logo-image {
    flex: 0 1 95px;
    height: 90px;
}

.logo-image {
    width: 84px;
    height: 84px;
    margin: 3px;
}

.header__logo-name {
    flex: 0 1 70.31%;
    height: 90px;
}

.header__logo-title {
    letter-spacing: 0.02em;
    font-family: "MagicC-Bold", sans-serif;
    height: 40px;
    font-size: 23px;
    margin: 0;
    padding-top: 18px;
}

.header__logo-subtitle {
    font-family: "MagicC", sans-serif;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0;
    padding-top: 20px;
}

.sidebar__left-title {
    text-align: center;
    margin: 12px 0;
}

.viewport {
    overflow: hidden;
    position: absolute;
    left: 0;
    right: 11px;
    top: 90px;
    bottom: 2px;
    width: 350px;
}

.content-box {
    height: 98%;
    position: absolute;
    left: 0;
    right: -16px;
    overflow-y: scroll;
    padding: 0 20px 2px 10px;
}
.scrollbar,
.scroller {
    width: 8px;
    position: absolute;
    top: 0;
}

.scrollbar {
    right: 0;
    bottom: 0;
}
.scroller {
    left: 0;
    border-radius: 4px;
    background:  #d7d9e0;
    cursor: pointer;
}

.name-sort {
    margin-bottom: 10px;
    height: 46px;
    background-color: #d7d9e0;
    color: var(--basic-blue);
    font-family: "Alumni", sans-serif;
    font-size: 34px;
    text-align: center;
    padding-top: 4px;
    border-radius: 5px;
}

.tip-sorta {
    text-align: center;
    font-style: italic;
}

/* Рейтинг куста */

.rating-kust {
    height: 24px;
    margin: 10px 0 8px 0;
    display: flex;
    justify-content: center;
}

.rating-balls {
    font-family: "Alumni", sans-serif;
    margin: 15px 0;
    color: var(--basic-blue);
    text-align: center;
    font-size: 24px;

}
.star-icon {
    fill: var(--bg-color);
    width: 28px;
    height: 28px;
}

.star-icon.active {
    fill: var(--orange);
}

/* Информация о кусте */

.info-kust__title {
    text-transform: uppercase;
    margin: 14px 0;
    overflow: hidden;
    text-align: center;
    font-size: 18px;
}

.info-kust__title span {
    display: inline-block;
    vertical-align: middle;

}
.info-kust__title:before,
.info-kust__title:after {
    content: "";
    display: inline-block;
    vertical-align: middle;
    width: 100%;
    height: 1px;
    background-color: var(--pale-text);
    position: relative;
}

.info-kust__title:before {
    margin-left: -100%;
    left: -7px;
}

.info-kust__title:after {
    margin-right: -100%;
    right: -7px;
}

.info-kust {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
}

/* ############## MAIN ############# */

.main {
    margin-left: 350px;  
    width: 1553px;
    display: flex;
    flex-direction: column;
}

/* header */

.header {
    position: fixed;
    top: 0;
    left: 350px;
    margin-bottom: 20px;
    display: flex;
    width: 1553px;
    color: var(--basic-white); 
    height: 130px;
    flex-direction: column;
    z-index: 2;
}

/* menu */

.header__center-menu {
    display: flex;
    width: 1553px;
    background-color: var(--basic-dark-grey);       
}

.menu_block {
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: center;
}

.header__userinfo-login {
   width: 300px;
   height: 60px;
   padding-top: 20px;
   padding-left: 40px;
   background: linear-gradient(170deg, #282a33 40%, #4b4b4d);
   border-left: 1px solid #5a5b5d;
}

.header__center-status {
    width: 100%;
    background: linear-gradient(#404767, 15%, var(--basic-blue));
    height: 30px;
    padding: 5px 263px 0 0 ;
    text-align: center;
}

.cap_row {
    height: 40px;
    display: flex;
    justify-content: start;
    padding-top: 6px;
    padding-right: 253px;
    background-color: var(--bg-color);
    margin-left: 12px;
}

.num_row {
    position: relative;
    height: 40px;
    color: var(--text-color);
    width: 170px;
    text-align: center;
    margin: 0 5px;
}

.triangle {
    position: absolute;
    top: 22px;
    left: 80px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid var(--text-color);
}

.menu__list {
    list-style: none;
    font-size: 17px;
    display: flex;
    align-items: center;
}

.menu__item {
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-right: 50px;
}

.menu__link {
    color: var(--basic-white);
    text-decoration: none;
    position: relative;
    white-space: nowrap;
}
.menu__link::after {
    content: " ";
    width: 40px;
    height: 2px;
    background-color: var(--basic-blue);
    position: absolute;
    display: block;
    bottom: -8px;
    opacity: 0;
}

.menu__link:hover {
    color: var(--basic-blue);
    transition: color 0.2s linear;
}
.menu__link.active {
    color: var(--basic-blue);
}

.menu__link.active::after,
.menu__link:hover::after {
    opacity: 1;
}

/* площадь виноградника */

.sub_main {
    display: flex;
    margin-top: 140px;
    justify-content: space-between;
 }

.area {
    display: flex;
    padding: 0 15px;
    width: 1290px;
}

/* Ряды кустов */

.card-column {
    width: 170px;
    margin: 0 5px 0 5px;
    display: flex;
    flex-direction: column;
    justify-content: end;
}

/* ############## ПРАВЫЙ САЙДБАР ############# */

.sidebar-right {
    margin-right: 10px;
    width: 253px;
    display: flex;
    flex-direction: column;
}

@media (max-width: 1710px) {
    .sidebar-right {
        display: none;
    }
}

.sidebar-right__window {
    width: 242px;
    background-color: var(--basic-white);
    margin: 0px auto 20px;
    box-shadow: 2px 2px 10px -1px rgba(75, 129, 171, 0.2);
    padding-bottom: 6px;
}

.sidebar-right__window--item {
    height: 30px;
    padding: 0 10px;
    display: flex;
    align-items: center;
}

.caption {
    height: 32px;
    background-color: var(--card-grey);
    border-bottom: 1px solid var(--basic-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-family: "Exo2-Regular", sans-serif;
}

/* Кнопка наверх */

.btn-up {
    text-align: center;
    width: 150px;
    margin: 15px 0 15px 570px;
    height: 35px;
}
.btn-up__link {
    width: 100px;
    border: 1px solid var(--basic-blue);
    border-radius: 5px;
    background-color: var(--basic-white);
    text-align: center;
    padding: 5px 10px;
    color: var(--basic-dark-grey);
}

.list-task {
    font-family: "Neucha-Regular", sans-serif;
    padding: 5px 0 5px 10px;
}
.list-task__item {
    padding: 5px 5px;
    color: var(--basic-blue);
}

/* ================================================================ */
/* ------ КАРТОЧКИ ------- */

.card-grape {
    border-top-left-radius: 20px;
    border-top-right-radius: 0px;
    border-bottom-right-radius: 20px;
    border-bottom-left-radius: 0px;
    display: flex;
    flex-direction: column;
    width: 170px;
    margin-bottom: 10px;
    position: relative;
}

/* размеры карточек */

.card-30 {
    height: 30px;
}

.card-242 {
    height: 242px;
}

.card-368 {
    height: 368px;
}

.card-452 {
    height: 452px;
}

.card-494 {
    height: 494px;
}

/* Оформление карточек */

.card-void {
    visibility: hidden;
}

.card-free {
    background-color: transparent;
    border: 1px solid var(--card-grey);
}

.card-sick {
    background-color: var(--card-pink-pale);
    border: 1px solid var(--card-pink);
}

.card-busy {
    background-color: var(--basic-white);
    border: 1px solid var(--pale-text);   
}

.card-sick:hover {
    box-shadow: 0px 0px 14px -1px rgba(240, 10, 70, 0.62);
    scale: 102%;
    transition: box-shadow 0.3s linear;
    transition: scale 0.3s linear;
}

.card-busy:hover {
    background-color: var(--basic-white);
    border: 1px solid var(--basic-blue);
    scale: 102%;
    box-shadow: 0px 0px 14px -1px rgba(26, 46, 62, 0.62);
    transition: box-shadow 0.3s linear;
    transition: scale 0.3s linear;
}

.card-busy:active {
    background-color: var(--basic-white);
    border: 2px solid var(--basic-blue);
}
.card-sick:active {
    transition: box-shadow 0.4s linear;
    transition: scale 0.4s linear;
    border: 2px solid var(--card-pink);
}

/* Блок карточки: НОМЕР карточки */

.number-card {
    width: 33px;
    height: 33px;
    position: absolute;
    top: 4px;
    left: 4px;
    border-radius: 50%;
    text-align: center;
    padding-top: 7px;
    font-size: 16px;
    font-family: "Oswald-Medium", sans-serif;
}

.nmb-card-busy {
    background-color: var(--card-grey-pale);
    color: var(--basic-blue);
}

.card-busy:hover .nmb-card-busy {
    background-color: var(--basic-blue);
    color: var(--basic-white);
}

.nmb-card-void {
    visibility: hidden;
}

.nmb-card-free {
    background-color: var(--card-grey-pale);
    color: var(--card-pale-blue);
}

.nmb-card-sick {
    background-color: var(--card-pink);
    color: var(--basic-white);
}

/* блок карточки: имя сорта  */


.card-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    margin-bottom: 34px;
}

.card__name {
    display: block;
/*     justify-content: center; */
    width: 170px;
    align-items: center;
    text-align: center;
    padding: 0px 10px;
    background-color: chartreuse;
}


.name-busy {
    height: 58px;
    color: var(--middle-grey);
    font-family: "Alumni", sans-serif;
    overflow-wrap: break-word;
    font-size: 25px;
    font-weight: bold;
    margin-top: 40px;
}

.name-free {
    height: 28px;
    border-radius: 15px;
    background-color: var(--card-grey);
    font-size: 22px;
    font-family: "Alumni";
    color: var(--card-text);
    margin: 80px 10px 0px 10px;
    width: 150px;   
 }

/* блок карточки: урожай */

.card-harvest-panel {
    display: flex;
    justify-content: center;
    flex: 2 1 auto;
}

.harvest-item-ripe {
    height: 65px;
    width: 75px;
    position: relative;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
}

.harvest-item-unripe {
    visibility: hidden;
}

.harvest-num {
    top: 42px;
    left: 58px;
    width: 20px;
    height: 20px;
    font-family: "Neucha-Regular";
    position: absolute;
    font-weight: 700;
    font-size: 20px;
    color: var(--pale-text);
}

.ripe-blue {
    background-image: url(../img/card/grape_ripe_blue.svg);
}
.ripe-pink {
    background-image: url(../img/card/grape_ripe_pink.svg);
}
.ripe-yellow {
    background-image: url(../img/card/grape_ripe_yellow.svg);
}
.ripe-collected {
    background-image: url(../img/card/grape_collected.svg);
}


/* блок карточки: болезни */

.panel-card-disease {
    display: flex; 
    flex-direction: row;
    justify-content: space-evenly;
    padding: 0px 10px 2px 10px;
    height: 35px;
}

.pict_disease {
    width: 32px;
    height: 32px;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
}

.bg-fungus {
    background-image: url(../img/card/fungus.svg);
}

.bg-mite {
    background-image: url(../img/card/mite.svg);
}

.bg-null {
    visibility: hidden; 
}
/* блок карточки: нижняя панель */

.bottom-card-panel {
    display: flex;
    justify-content: space-between;
    padding: 5px 10px 5px 5px;
    height: 34px;
    border-bottom-right-radius: 20px;
    margin-top: 10px;
    background-color: darkorange;
}

.bottom-btn {
    width: 26px;
    height: 26px;
/*     align-items: center; */
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    display: block;
}

.add-free {
    background: url(../img/button_ctrl/add_empty.svg);
}

.add-void {
    visibility: hidden; 
}

.add-busy {
    visibility: hidden; 
}

.add-sick {
    visibility: hidden; 
}

.add:hover {
    background: url(../img/button_ctrl/add.svg);
}

.del-busy {
    background: url(../img/button_ctrl/delete_empty.svg);
}

.del-sick {
    background: url(../img/button_ctrl/delete_empty.svg);
}

.del-void  {
    visibility: hidden; 
}

.del-free  {
    visibility: hidden; 
}


.del:hover {
    background: url(../img/button_ctrl/delete.svg);
}


.insert-sick{
    background: url(../img/button_ctrl/insert_empty.svg);
}

.insert-busy {
    background: url(../img/button_ctrl/insert_empty.svg);
}

.insert-free {
    visibility: hidden; 
}

.insert-void  {
    visibility: hidden; 
}

.insert:hover {
    background: url(../img/button_ctrl/insert.svg);
}

/* Футер */

.footer {
    background: var(--basic-dark-grey);
}

.footer__row {
    display: flex;
    justify-content: center;
    width: 100%;
    height: 50px;
    padding: 20px;
    align-items: center;
}

.footer__text {
    font-family: "Exo2-Regular";
    color: var(--basic-white);
    font-size: 18px;
}
