* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    list-style: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    border: 0;
    padding: 0;
    white-space: nowrap;
    clip-path: inset(100%);
    clip: rect(0 0 0 0);
    overflow: hidden;
}

html {
    height: 100%;
}

body {
    position: relative;
    height: 100%;
    font-family: 'Roboto', sans-serif;
    background: rgb(248, 248, 248);
}

.warning {
    width: 100vw;
    height: 100vh;
    position: absolute;
    background-color: bisque;
    z-index: 999;
}

.warning p {
    font-size: 3rem;
    color: rgb(58, 36, 36);
}

.header {
    width: 100%;
    padding: 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    align-self: flex-start;
}

.account {
    user-select: none;
    cursor: pointer;
    width: 200px;
    padding: 10px 5px;
    display: flex;
    justify-content: space-around;
    border-radius: 10px;
    border: 2px solid rgb(116, 114, 114);
    background-color: rgb(220, 220, 220)
}

.accout-photo {
    border-radius: 50%;
}

.account-info {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.account-name {
    font-size: 20px;
    align-self: center;
}

.account-position {
    font-size: 15px;
    color: rgba(0, 0, 0, 0.7);
}

.authentication {
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    z-index: 999;
    background: rgba(0, 0, 0, 0.05); 
    backdrop-filter: blur(8px);
    position: absolute;
    width: 100%;
    height: 100%;
    padding-bottom: 71%;
}

.authentication--disabled {
    display: none;
}

.accounts-list {
    position: relative;
    display: block;
    margin-top: 110px;
    width: 40%;
    background-color: #ffffff;
    border-radius: 10px;
    padding: 10px 24px;
    border: 2px solid rgba(0, 0, 0, 0.2);
}

@media screen and (min-width: 768px) {
    .accounts-list {
        width: 40%;
    }
}

@media screen and (min-width: 1024px) {
    .accounts-list {
        width: 30%;
        margin-top: 110px;
    }
}

@media screen and (min-width: 1230px) {
    .accounts-list {
        width: 25%;
        max-width: 320px;
        margin-top: 110px;
    }
} 

.accouts-photo {
    border-radius: 50%;
}

.accounts-item {
    display: flex;
    flex-direction: column;
}

.accounts-wrapper {
    display: flex;
    user-select: none;
    padding: 10px 0px;
}

.accounts-login {
    width: 30px;
    height: 30px;
    align-self: center;
    margin-left: auto;
    border-radius: 50%;
    background-color: transparent;
    cursor: pointer;
    background-image: url('./img/login.svg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 18px;
}

.accounts-password {
    display: none;
    gap: 10px;
    padding-bottom: 10px;
}

.accounts-password input {
    text-align: center;
    width: 70%;
    height: 25px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 2px;
    padding: 0 3px;
}

.accounts-password input:focus {
    outline: none;
}

.accounts-password button {
    user-select: none;
    padding: 0 5px;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 2px;
    color: rgba(0, 0, 0, 0.7);
}

.accounts-password button:hover {
    opacity: 0.6;
}

.accounts-password button:active {
    opacity: 0.3;
}

.accounts-item:not(:first-child) {
    border-top: 1px solid rgba(0, 0, 0, 0.2);
}

.accounts-info {
    margin-left: 30px;
    align-self: center;
    display: flex;
    flex-direction: column;
}

.accounts-name {
    display: inline-block;
    margin-right: 30px;
    margin-bottom: 5px;
    font-size: 18px;
    font-weight: 500;
}

.accounts-position {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.7);
}

.close-button {
    cursor: pointer;
    background-color: #000;
    position: absolute;
    width: 30px;
    height: 30px;
    top: 5px;
    right: 5px;
    background-color: transparent;
    border: none;
    background-image: url('./img/cross.svg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 30px 30px;
}

@media screen and (min-width: 768px) {
    .warning {
        display: none;
    }

    html {
        background-color: transparent;
    }
}
  
.container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding-bottom: 40px;
}

@media screen and (min-width: 1024px) {
    .container {
        width: 100%;
        max-width: 1290px;
        padding: 0 30px 100px 0;
        margin: 0 auto;
    }
}

.dates {
    display: flex;
    justify-content: space-between;
    margin-top: 70px;
    margin-bottom: 20px;
    width: 100%;
}

.suppliers {
    display: none;
    margin-top: 100px;
}

.suppliers-wrapper {
    display: flex;
    margin-bottom: 20px;
}

.selects-wrapper {
    display: flex;
}

.dates-select,
.suppliers-select {
    display: inline-block;
    position: relative;
    box-sizing: content-box;
    width: 120px;
    height: 30px;
    display: block;
    margin-right: 20px;
    border: 1.5px solid black;
    border-radius: 10px;
    font-size: 16px;
    padding: 5px 10px;
    -webkit-appearance: none;
    -moz-appearance: none;
    text-indent: 1px;
    text-overflow: '';  
    background-image: url('./img/select-icon.svg');
    background-position: center right 5px;
    background-repeat: no-repeat;
    background-size: 30px 30px;
}


.suppliers-table {
    border-collapse: collapse;
    min-width: 800px;
}

.suppliers-table th {
    padding: 10px 15px;
}

.suppliers-table td {
    padding: 5px 0px;
}

.suppliers-table input[type="number"] {
    text-align: center;
    border: none;
    padding: 8px 0px;
    font-size: 17px;
}

.suppliers-table input[type="number"]:focus, 
.suppliers-table input[type="date"]:focus {
    outline: none;
    border: none;
}

.suppliers-table input[type="date"] {
    padding: 0 10px;
}

.suppliers-sum {
    text-align: center;
    padding: 10px 0px;
}

.dates-select--years {
    padding: 5px 10px;
}

.dates-select--days {
    width: 60px;
}

.buttons-wrapper {
    display: flex;
    position: absolute;
    bottom: 92px;
}

.info-button {
    cursor: pointer;
    box-sizing: content-box;
    margin-left: auto;
    width: 100px;
    height: 30px;
    border-radius: 10px;
    background-color: transparent;
    font-size: 17px;
    padding: 5px 10px;
    font-weight: 500;
}

.info-button:hover {
    opacity: 0.6;
}

.info-button:active {
    opacity: 0.3;
}

.buttons-wrapper_error {
    width: 150px;
    color: red;
    position: absolute;
    top: 50px;
}    

.buttons-wrapper_success {
    width: 150px;
    color: green;
    position: absolute;
    top: 50px;
}   
  
.table {
    font-size: 0.8rem;
    width: 100%;
    border: 1.5px solid black;
    border-collapse: collapse;
    margin: 0 auto;
}

@media screen and (min-width: 1024px) {
    .table {
        width: 90%;
    }
}

@media screen and (min-width: 1340px) {
    .table {
        width: 100%;
    }
}
  
th {
    background-color: rgba(128, 128, 128, 1);
}

.table th {
    width: 100.5%;
}

td, th {
    border: 1px solid black;
}
  
.thead tr,
.tbody tr {
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
}
  
.tbody td {
    text-align: center;
    padding: 10px 0px;
}

.thead {
    position: sticky;
    top: 0;
    z-index: 998;
}
  
.thead th {
    padding: 10px 0px;
    place-content: center;
}
  
input[type=date] {
    width: 61px;
    border: none;
    background-color: rgb(248, 248, 248);
}
  
input[type=date]::-webkit-datetime-edit-text {
    -webkit-appearance: none;
}

input[type=date]::-webkit-datetime-edit-month-field{
    -webkit-appearance: none;
}
  
input[type=date]::-webkit-datetime-edit-day-field {
    -webkit-appearance: none;
}
  
input[type=date]::-webkit-datetime-edit-year-field {
    -webkit-appearance: none;
}
  
@media screen and (min-width: 425px) {
    input[type=date] {
        width: 83px;
    }

    .thead th {
        padding: 10px 4px;
    }
}
  
@media screen and (min-width: 768px) {
    input[type=date] {
      width: auto;
      font-size: 1.1rem;
    }

    .thead th {
        font-size: 1rem;
    }
}

@media screen and (min-width: 1024px) {
    .thead th {
        padding: 15px 5px;
        font-size: 1.2rem;
    }

    .tbody td {
        padding: 13px 0px;
    }
}
 
.number-input {
    width: 100%;
    border: none;
    padding: 0px 3px;
    font-size: 0.9rem;
    text-align: center;
    background-color: rgba(248, 248, 248);
}
  
.number-input:focus {
    outline: none;
}

@media screen and (min-width: 768px){
    .number-input {
        font-size: 1rem;
    }
}

@media screen and (min-width: 1024px){
    .number-input {
        font-size: 1.2rem;
    }
}

.select {
    border: none;
    width: 100%;
    background-color: rgb(248, 248, 248);
}

.select:focus {
    outline: none;
}

.products-select-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.select--product {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: none;
    /* padding-right: 1em; */
    border: none;
    text-align: center;
    font-size: 16px;
    width: 40%;
}

.select--product:focus {
    outline: none;
}

.product-quantity {
    width: 30px;
    text-align: center;
    border: none;
    outline: none;
    padding: 3px;
    background-color: transparent;
}

@media screen and (min-width: 425px) {
    .select {
        width: 80%;
    }
}

@media screen and (min-width: 768px) {
    .select {
        width: 108px;
        font-size: 1rem;
    }
}

@media screen and (min-width: 1024px) {
    .select {
        width: 106px;
    }

    .select--product {
        width: 91px;
    }

    .product-quantity {
        width: 35px;
    }
}

.tbody-stroke {
    position: relative;
}

.tbody-stroke--first {
    position: absolute;
    opacity: 0;
    z-index: -1;
}

.edit-button-wrapper,
.remove-button-wrapper {
    display: none;
    position: absolute;
    bottom: 22px; 
    right: -50px;
    width: 30px;
    height: 30px;
    border: none;
}

.remove-button-wrapper {
    right: -90px;
}

.edit-button,
.remove-button {
    cursor: pointer;
    width: 30px;
    height: 30px;
    background: none;
    border-radius: 50%;
    background-size: 15px 15px;
    background-repeat: no-repeat;
    background-position: center center;
}

.edit-button--save {
    background-image: url('./img/checkmark.svg');
}

.edit-button--edit {
    background-image: url('./img/edit-svg.svg');
}

.remove-button {
    background-size: 17px 17px;
    background-image: url('./img/remove.svg');
}

@media screen and (min-width: 1024px) {
    .edit-button-wrapper,
    .remove-button-wrapper {
        display: block;
    }
}

.addline-wrapper {
    display: flex;
    position: fixed;
    bottom: 0;
    right: 0;
    padding: 20px;
    width: 205px;
    justify-content: space-between;
}

.addline-label {
    display: flex;
    flex-direction: column;
    align-self: center;
}

.addline-span {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
}

.addline-input {
    width: 80px;
    text-align: center;
}

.addline-button {
    background: transparent;
    position: relative;
    display: block;
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.addline-button:hover {
    opacity: 0.6;
}

.addline-button:active {
    opacity: 0.3;
}

.addline-button::after,
.addline-button::before {
    content: '';
    position: absolute;
    background-color: #000;
    width: 34px;
    height: 2px;
    right: 50%;
    transform: translateX(50%);
}

.addline-button::before {
    transform: rotate(90deg);
    left: 20%;
}

@media screen and (min-width: 768px) {

    .addline-wrapper {
        width: 225px;
    }

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

    .addline-input {
        width: 95px;
        height: 28px;
    }
}

@media screen and (min-width: 1440px) {
    .addline-wrapper {
        padding: 24px 27px;
        width: 230px;
    }
}

.pageup-button {
    width: 50px;
    height: 50px;
    background: transparent;
    border: 2px solid black;
    position: fixed;
    bottom: 104px;
    right: 32px;
    border-radius: 50%;
    background-image: url('./img/up.svg');
    background-position: center 13px;
    background-size: 25px 25px;
    background-repeat: no-repeat;
    cursor: pointer;
}

.pageup-button:hover {
    opacity: 0.6
}

.pageup-button:active {
    opacity: 0.3;
}

.statistics-table {
    border-collapse: collapse;
}

.statistics-table th {
    padding: 10px 20px;
    width: 150px;
}

.statistics-table_body td {
    padding: 5px 15px;
    text-align: center;
    min-width: 100px;
}

.statistics-table_body td span {
    display: block;
    width: 100%;
    padding: 3px 0;
}

.statistics-table_body td span:first-child {
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.result {
    padding-right: 10px;
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    font-size: 21px;
}

.result-name {
    margin-right: 36px;
}
