:root {
    --small-input-size: 5em;
    --smaller-input-size: 4.5em;
    --medium-input-size: 250px;
    --large-input-size: 500px;
    --peach: #FFCDB5;
    --blue: #B5B7FF;
    --lightgreen: #C8FFB4;
    --darkgreen: #8CAA81;
    --brown: #805C4B;
    --verylightgray: #eeeeee;
    --lightgray: #dddddd;
    --gray: #cccccc;
    --darkgray: #bbbbbb;
    --mustard: #eeeecc;
}

h1 {
    margin: 15px 0 15px;
}

#big-table{
    display: none;
}

#spinner,
#spinner:after {
    border-radius: 50%;
    width: 10em;
    height: 10em;
}

#spinner {
    margin: -1px;
    font-size: 14px;
    position: relative;
    text-indent: -9999em;
    border-top: 1.1em solid white;
    border-right: 1.1em solid white;
    border-bottom: 1.1em solid white;
    border-left: 1.1em solid black;
    -ms-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-animation: load 1.1s infinite linear;
    animation: load 1.1s infinite linear;
}

#spinner-wrap {
    z-index: 1000;
    display: none;
    position: fixed;
    top: 35%;
    left: 45%;
    border: 6px solid var(--peach);
    border-radius: 50%;
}

#spinner-inner {
    border: 5px solid var(--peach);
    border-radius: 50%;
    width: 100%;
    height: 100%;
    margin: -5px;
}

@-webkit-keyframes load {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
@keyframes load {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

textarea{
    min-height: 3em;
    min-width: 15em;
}

div {
    margin: 5px 0;
}

div.inline {
    float: left;
}

input:invalid, select:invalid {
    background-color: red;
}

select:invalid option{
    background-color: white;
}

h3 {
    margin: 10px 0 0 0;
}

textarea{
    vertical-align: middle;
}

#pageContent {
    min-width: 65%;
    width: fit-content;
    margin: auto;
}


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

#printTitle {
    font-weight: normal;
}

#inputTable, #inputTable tr, #inputTable tr td {
    border: 1px solid black;
    border-collapse: collapse;
    padding: 5px;
    max-width: 700px;
}

#inputTable tr {
    page-break-inside: avoid;
}

#footer {
    position: fixed;
    left: -5px;
    bottom: -5px;
    width: 100%;
    background-color: burlywood;
}

#footerButtons {
    width: fit-content;
    margin: auto;
}

.table{
    border-collapse: separate;
    table-layout: fixed;
    border-spacing: 0;
}

.table-wrap .table{
    table-layout: initial !important;
}

.table th:nth-child(odd){
    background: rgba(212, 212, 212, 1);
}

.table th:nth-child(even){
    background-color: rgba(226, 226, 226, 1);
}

.table-fixed-column{
    width: 0;
    white-space: nowrap;
}

.table th {
    /* Apply both top and bottom borders to the <th> */
    border-top: 1px solid black;
    border-bottom: 1px solid black;
    border-right: 1px solid black;
    padding: 7px;
}

.table td {
    /* For cells, apply the border to one of each side only (right but not left, bottom but not top) */
    border-bottom: 1px solid black;
    border-right: 1px solid black;
    padding: 2px 6px;
}

.table th:first-child,
.table td:first-child {
    border-left: 1px solid black;
}

.table thead tr:first-child th {
    position: sticky;
    top: 0; !important;
    background-color: #edecec;
    z-index: 10;
}

.table thead tr th {
    position: sticky;
    top: 33px;
    background-color: #edecec;
    z-index: 10;
}

.new-table td {
    border-bottom: 0 !important;
}

.new-table tr:first-child th {
    border-top: 0 !important;
}

.new-table tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.15);
}

.new-table tr:first-child th:first-child,
.new-table td:first-child {
    border-left:0;
}

.new-table th:last-child,
.new-table td:last-child {
    border-right:0;
}

.new-table td {
    border-bottom: 1px solid black;
    border-right: 1px solid black;
    /*padding: 0.7em 0.4em;*/
    padding: 5px 6px;
}

.bottom-border {
    border: none !important;
    border-bottom: 1px solid black !important;
}

.sticky{
    position: sticky;
    top: 0;
    background: lightgray;
}

.sticky-row-2{
    position: sticky;
    top: 33px !important;
}

.table-wrap{
    width: fit-content;
    margin: 15px auto;
}

.table-buttons{
    width: fit-content;
}

.pagination{
    float: right;
}

a.navigation {
    display: inline-block;
    text-decoration: none;
    color: brown;
    border: 2px solid;
    border-radius: 7px;
    padding: 2px 5px;
    /*background-color: cornsilk;*/
    font-size: 1.2em;
    background: linear-gradient(000deg, LightGoldenrodYellow, Beige);
}

a.navigation:hover {
    cursor: pointer;
    /*border: 3px solid saddlebrown;*/
    /*padding: 1px 4px;*/
    background: linear-gradient(180deg, LightGoldenrodYellow, BurlyWood);
}

div.navigation {
    margin: 0;
    z-index: 11;
}

.editInput {
    background-color: lightgreen;
    width: 100%;
    height: 100%;
    color: black;
}

input.deleteButton {
    background-color: lightcoral;
    width: 100%;
    height: 100%;
    color: black;
}

.nom_group {
    text-decoration: none;
    color: brown;
    font-size: 22px;
}

.nom_group:visited {
    text-decoration: none;
    color: brown;
    font-size: 22px;
}

.divFilter {
    margin-top: 10px;
}

.edit-buttons{
    display: block;
    text-align: center;
    text-decoration: none;
    color: black;
    padding: 1px;
    border: 1px solid black;
    margin: 1px;
}

a.edit-buttons{
    width: 96px;
    height: 18px;
}

button.edit-buttons{
    width: 100px;
    height: 20px;
}

.delete-button {
    background-color: lightcoral;
}

.edit-button {
    background-color: lightgreen;
}

.confirmButton {
    background-color: lightgray;
}

.edit-buttons-wrapper{
    padding: 5px;
    white-space: nowrap;
}

.edit-buttons-wrapper-link{
    position: relative;
    display: inline-block;
    cursor: pointer;
    padding: 5px;
    width: fit-content;
}

.edit-buttons-wrapper-link::after{
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left:0;
}

.edit-buttons-svg{
    width: 25px;
    height: 25px;
}

.edit-buttons-wrapper-link:hover .edit-buttons-svg{
    height: 37px;
    width: 37px;
    margin: -7px;
    padding: 1px;
}

.edit-buttons-wrapper-table, .edit-buttons-wrapper-table tr, .edit-buttons-wrapper-table td{
    border: none !important;
}

.sum, .massa, .massaSum {
    min-width: 50px;
}

.link{
    color: mediumblue;
    text-decoration: none;
    cursor: pointer;
}

.deliveryInfo-print {
    font-size: larger;
    font-weight: bolder;
}

.tableNumbers{
    text-align: right;
}

input[type=date]::-webkit-calendar-picker-indicator {
    -webkit-appearance: none;
    margin: 0;
}

.planDay{
    background-color: lightgreen;
    display: inline-block;
    width: 200px;
    vertical-align: top;
}

.planDate{
    text-align: center;
}

.plan{
    background-color: white;
}

.delPlan{
    float: right;
}

.planText{
    display: inline-block;
    width: 190px;
    margin: 3px 0;
    word-break: break-all;
}

.printTableHeader, .printTableSmallText{
    font-size: 0.8rem;
}

.deductionRow{
    background-color: orange;
}

.illuminated-row{
    background-color: lightblue !important;
}

.financesRowBalance{
    background-color: springgreen;
}

.buttonUp{
    position: fixed;
    right: 200px;
    top: 300px;
}

.buttonUpImg{
    -ms-transform: rotate(90deg);
    transform: rotate(90deg);
}

.buttonDown{
    position: fixed;
    right: 200px;
    top: 600px;
}

.buttonDownImg{
    -ms-transform: rotate(270deg);
    transform: rotate(270deg);
}

.overlay{
    margin: 0;
    padding: 10px;
    position: fixed;
    display: none;
    min-width: 10%;
    min-height: 10%;
    top: 15%;
    left: 27%;
    background-color: #FFFDDE;
    border: 10px solid rgba(238,228,188,255);
    border-radius: 5px;
    z-index: 20;
    max-height: 90%;
    overflow-y: auto;
}

.overlay-border {
    background-color: #FFFDDE;
    border: 10px solid rgba(238,228,188,255);
    border-radius: 5px;
}

.overlayHeader{
    margin: 8px;
    text-align: center;
}

.overlay-title {
    margin: 0 0 15px 0;
    text-align: center;
}

#overlayTable{
    margin: 10px 0 10px 0;
}

.overlay-excel-filter-value{
    margin-right: 4px;
}

.opt-discount-wrapper{
    display: none;
}

.navigation-reports-links{
    visibility: hidden;
    opacity: 0;
    position: absolute;
    z-index: 1;
    width: fit-content;
    background-color: lightblue;
    top: 90%;
    left: -25px;
    -webkit-transition: visibility 0.5s, opacity 0.5s;
    -moz-transition: visibility 0.5s, opacity 0.5s;
    -o-transition: visibility 0.5s, opacity 0.5s;
    transition: visibility 0.5s, opacity 0.5s;
    border-radius: 10px;
    padding: 0 5px 7px 5px;
}

.navigation-reports-links a{
    display: block;
    margin-top: 5px;
    white-space: nowrap;
}

.navigation-reports-header{
    position: relative;
}

.navigation-reports-header:hover .navigation-reports-links{
    visibility: visible;
    opacity: 100%;
    -webkit-transition: visibility 0s, opacity 0s;
    -moz-transition: visibility 0s, opacity 0s;
    -o-transition: visibility 0s, opacity 0s;
    transition: visibility 0s, opacity 0s;
    min-width: 100%;
}

.reports-buyers-eligible{
    background-color: lightgreen;
}

.reports-ostatki-small-text{
    font-size: 0.8em;
}

#service-create-overlay{
    z-index: 12;
    text-align: center;
}

.service-create-close-wrap{
    margin-top: 25px;
}

.overlay-error-message{
    color: red;
}

@media print {
    .page-title{
        display: none!important;
    }

    .navigation-wrapper{
        display: none!important;
    }

    .noPrint {
        display: none!important;
    }

    .force-print{
        display: block !important;
    }

    .page-break {
        page-break-after: always;
    }

    button {
        display: none!important;
    }

    .packaging-navigation {
        display: none!important;
    }
}

.selling-print-button{
    border: 1px solid black;
    font-size: 30px;
    text-decoration: none;
    color: black;
    padding: 7px;
    cursor: pointer;
    background-color: #dddddd;
}

.selling-print-button:hover{
    background-color: moccasin;
}

.notification{
    visibility: hidden;
    opacity: 0;
    margin: 0;
    padding: 10px;
    position: fixed;
    z-index: 50;
    min-width: 200px;
    max-width: 600px;
    min-height: 70px;
    top: 15%;
    left: 27%;
    background-color: #FFFDDE;
    border: 8px solid #CDE1FF;
    border-radius: 20px;
    text-align: center;
}

.fading-out-notification:hover{
    cursor: pointer;
    visibility: visible;
    opacity: 100%;
    transition: 0s;
}

.fading-out-notification{
    visibility: hidden;
    opacity: 0;
    transition: ease 2s;
    transition-delay: 5s;
}

.fading-in-notification{
    visibility: visible;
    opacity: 100%;
    transition: opacity 200ms;
}

.reports-columns-name{
    width: 200px;
}

.reports-columns-color{
    width: 144px;
}

.reports-columns-article-seller{
    width: 144px;
}

.reports-columns-on-way{
    width: 100px;
}

.reports-columns-sum-buy{
    width: 100px;
}

.reports-columns-sum-sell{
    width: 110px;
}

.checkbox-label{
    margin: 0 1em 0 0;
    padding: 0 1px;
    display: inline-block;
    vertical-align: middle;
}

.checkbox-label:hover{
    background-color: var(--peach);
    border-radius: 5px;
}

.checkbox-label > input {
    display: inline-block;
    vertical-align: middle;
}

.fancy-table{
    border-collapse: collapse;
    margin: auto;
}

.fancy-table td {
    /*border-top: 3px solid white;*/
    /*border-bottom: 3px solid white;*/
    border-left: 1px solid black;
    text-align: center;
}

.fancy-table td:first-child{
    border-left: none;
}

.fancy-table tr{
    height: 45px;
}

.set-table input[type=number]{
    width: 6em;
}

.number-input{
    width: 80px;
}

.expand-arrow{
    transform: rotate(180deg);
    transition-duration: 500ms;
}

.expand-arrow-td{
    cursor: pointer;
    color: royalblue;
    font-weight: bold;
}

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

.zeroPrice{
    width: 28px;
    height: 28px;
}

.thikk-checkbox{
    margin: 0;
    width: 25px;
    height: 25px;
}

.thikk-checkbox-2 {
    margin: 8px;
    width: 32px;
    height: 32px;
}

#parameters-overlay{
    font-size: 1.2em;
}

#parameters-overlay input, #parameters-overlay select{
    font-size: 0.8em;
}

#parameters-overlay label{
    margin-top: 5px;
}

body{
    font-family: sans-serif, Arial;
}

form input, form select, form textarea, form button{
    font-size: inherit;
}

.recursive-input-label {
    display: flex;
    align-items: center;
    width: fit-content;
    gap: 7px;
}

tr.recursive-input-label {
    display: table-row;
}
tr.recursive-input-label > td {
    padding: 0.5em;
}

textarea:invalid {
    background-color: red;
}

textarea:valid {
    background-color: #ffffff;
}

.recursive-element-template-container{
    display: none;
}

.green-button {
    background: #C8FFB4;
}

.green-button:hover {
    background: #B9EEA9;
}

.green-button:active {
    background: #AFE1A0;
}

.gray-button {
    background: #F0F0F0;
}

.gray-button:hover {
    background: #E1E1E1;
}

.gray-button:active {
    background: #D2D2D2;
}

.orange-button {
    background: #FFCDB5;
}

.orange-button:hover {
    background: #F1C2AB;
}

.orange-button:active {
    background: #E6BAA4;
}

.fancy-input {
    font-size: 1em;
    border-radius: 3px;
    padding: 5px 7px;
    border: 1px solid black;
    /*margin: 6px;*/
}

button.fancy-input {
    padding: 0.3em 1em;
}

.fancy-button {
    /*font-size: 1.1em;*/
    border: 1px solid rgb(180 180 180);
    border-radius: 6px;
    padding: 0.4em 0.8em;
}

button.fancy-input:hover {
    background: lightgray;
    cursor: pointer;
}

button.fancy-input:active {
    background: #eeeeee;
}

.form-border {
    border: 2px solid #686868;
    border-radius: 0.5em;
    position: relative;
    margin: 15px auto 5px;
    padding: 5px 15px;
    width: fit-content;
    background: white;
}

.flex-form-row {
    display: flex;
    flex-direction: row;
    gap: 2em;
    background: inherit;
}

.flex-form-column {
    margin: 0;
    gap: 0.65em;
    display: grid;
    grid-auto-flow: row dense;
    grid-template-columns: repeat(2, auto);
    background: inherit;
    padding: 10px 0;
    align-items: center;
    width: fit-content;
}

.form-header {
    position: absolute;
    margin: 0;
    padding: 0 0.2em;
    top: -10px;
    left: 2em;
    background: inherit;
    font-size: 1.2em;
}

.flex-form-column > label {
    border: 1px solid transparent;
    padding-top: 0.2em;
    text-align: left;
    align-self: center;
}

.settings-overlay {
    font-size: 1.2em;
}

.flex-form-column > input, .flex-form-column > select, .flex-form-column > textarea {
    width: var(--medium-input-size);
    box-sizing:content-box;
}

.sum-info {
    visibility: hidden;
    position: absolute;
    z-index: 1;
    border: 6px solid rgba(238,228,188,255);
    border-radius: 8px;
    background: #FFFDDE;
    padding: 1em;
    display: grid;
    height: fit-content;
    grid-template-columns: repeat(2, auto);
    column-gap: 2em;
    row-gap: 0.7em;
    top: 90%;
    left: 0;
}

.sum-info > span {
    text-wrap: nowrap;
}

.final-sum {
    font-weight: bold;
    font-size: 1.1em;
}

.sum-info-cell:hover .sum-info, .sum-info:has(input:focus-visible) {
    visibility: visible;
}

.table-variant-3 {
    border-collapse: separate;
    border-spacing: 0;
}

.table-variant-3 th {
    border-right: 2px solid black;
    border-bottom: 2px solid black;
    padding: 0.4em;
    font-weight: normal;
    font-size: 1.25em;
    background: cornsilk;
}


.table-variant-3 td {
    border-right: 1px solid black;
    padding: 0.4em;
}

.table-variant-3 td[rowspan] {
    padding: 0.8em 0.4em;
}

.table-variant-3 th:last-child,
.table-variant-3 td:last-child
{
    border-right: 0;
}

.table-variant-3 tbody:nth-child(odd) {
    background: cornsilk;
}

.table-variant-3 tbody:nth-child(even) {
    background: #dddddd;
}

.table-variant-3 thead {
    position: sticky;
    top: 0;
    background: #dddddd;
    z-index: 1;
}

.low-price-cell {
    background: rgba(181, 183, 255, 0.7);
}

.table-variant-4 {
    border-collapse: collapse;
}

.table-variant-4 th {
    background-color: var(--gray);
    border: 1px solid black;
    padding: 0.5em 0.3em
}

.table-variant-4 tbody:nth-child(even) {
    background-color: var(--mustard);
}

.table-variant-4 tbody:nth-child(even).illuminated-row {
    background-color: lightskyblue !important;
}

.table-variant-4-light tr:nth-child(even) {
    background-color: var(--mustard);
}

.table-variant-4-light tbody {
    background-color: inherit !important;
}

.table-variant-4-light tr:nth-child(even).illuminated-row {
    background-color: lightskyblue !important;
}

.table-variant-4 td {
    border: 1px solid black;
    padding: 8px 5px
}

a.row-link::after {
    position: absolute;
    content: "";
    top:0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
}

a.row-link {
    color: black;
    text-decoration: none;
}

a.row-link:visited{
    color:black;
}

tr.row-link{
    position: relative;
}

tr.row-link:hover{
    background-color: var(--peach) !important;
}

.center-fit {
    margin: auto;
    width: fit-content;
}

.center-fit-padded {
    margin: 0 auto 10px;
    width: fit-content;
}

.clickable {
    cursor: pointer;
    color: blue;
    text-decoration: underline;
}

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

.clear-table th {
    border-bottom: 1px solid black;
    font-size: 1.1em;
    padding: 7px 8px;
}

.clear-table td {
    border-bottom: 1px solid black;
    padding: 7px 8px;
}

.big-button {
    position: absolute;
    right: 200px;
    top: 50%;
    font-size: 1.5em;
    height: 2em;
}

.clear-row td{
    background: white !important;
}

.centered-table {
    display: block;
    width: fit-content;
    margin: auto;
}

tr[data-confirm="1"] .confirm-button {
    display: none;
}

tr[data-confirm="0"] .unconfirm-button {
    display: none;
}

.journal-buttons > * {
    display: inline-block;
    width: 40px;
    height: 40px;
    margin: 0 !important;
    padding: 0 !important;
    color: black;
    border: none;
    background-repeat: no-repeat;
    background-color: #f2f2f2;
}

.journal-buttons > *:hover {
    cursor: pointer;
    background-color: #e6e6e6;
}

.journal-buttons > *:active {
    background-color: #cccccc;
}

.delete-button-journal {
    background-image: url('/content/svg/cross.svg');
}

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

.copy-button-journal {
    background-image: url('/content/svg/copy.svg');
}

.confirm-button-journal {
    background-image: url('/content/svg/check.svg');
}

.unconfirm-button-journal {
    background-image: url('/content/svg/return.svg');
}

.print-button-journal {
    background-image: url('/content/svg/print.svg');
}

.table-totals {
    font-size: 1.3em;
    font-weight: bold;
}

.journal-buttons {
    display: flex;
    gap: 10px;
}

.table-variant-4 thead {
    position: sticky;
    top: 0;
}

.article, .articleSeller {
    text-wrap: nowrap;
}

.clickable-header {
    cursor: pointer;
    color: blue;
}

.small-table-input {
    width: 40px;
    display: block;
    margin: auto;
}

.pending-input {
    background: cornsilk;
    border-width: 3px;
}