body {
    background-color: #f5f5f5;
}

.bg-custom {
    height: calc(100vh - 170px);
    background: url('../img/bg.svg');
    background-size: cover;
}

@media (max-width: 575.98px) {
    .footer-bar {
        flex-direction: column;
        align-items: center;
    }
}

.bg-custom-main {
    height: calc(100vh - 170px);
    background: url('../img/bg_main.svg');
    background-size: cover;
}

#bg-footer {
    background-color: #212529!important;
    color: white;
}

#bg-footer > div > div > a:hover {
    color: rgba(255,255,255,.75) !important;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out;
}

.cookies {
    font-size: 0.7rem;
    text-align: center;
}

.nav-link {
    color: white;
}
.nav-link:hover {
    color: gray;
}
.nav-link:focus {
    color: gray;
}

#buyer_add {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

#panel-grid-left {
    display: flex;
}

@media (max-width: 1399.98px){
    /*#settings {*/
    /*    grid-template-columns: 1fr;*/
    /*}*/
    #panel-grid-left {
        justify-content: space-around;
    }
}

@media (min-width: 1400px) {
    #panel-grid {
        display: grid;
        grid-template-columns: 15% 85%;
    }
    #panel-grid-left {
        min-height: 100vh;
    }
}

#panel-grid-left {
    background-color: #212529;
    gap: 1rem;
    flex-direction: column;
    padding: 1rem;
    color: white;
}

.panel-grid-left-logo {
    text-align: center;
}

.panel-grid-left-links {
    display: grid;
    gap: 0.5rem;
}

@media (max-width: 575.98px) {
    .container-reg-log {
        justify-content: center !important;
    }
}

@media (max-width: 767.98px) and (min-width: 1399.98px) {
    .panel-grid-left-links {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .panel-grid-left-links {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .panel-grid-left-links {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
    .panel-grid-left-links {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

#panel-grid-left > a {
    text-decoration: none;
    color: white;
    text-align: center;
}

.panel-grid-left-logo > a {
    color: white;
    text-decoration: none;
    font-size: 22px;
}

@media (max-width: 1399.98px) {
    .panel-grid-left-link {
        justify-content: center;
    }
}

.panel-grid-left-link {
    display: flex;
    gap: 1rem;
}

.panel-grid-left-link > a {
    color: white;
    text-decoration: none;
}

.panel-grid-left-link > a:hover {
    color: gray;
}

#panel-grid-right {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
}

fieldset {
    border: 1px lightgray solid;
    border-radius: 10px;
    padding: 1rem;
    background-color: white;
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075)!important;
}

.news {
    border: 1px lightgray solid;
    border-radius: 10px;
    padding: 1rem;
    background-color: white;
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075)!important;
}

#news {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    /*background-color: rgba(0,0,0,.03);*/
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e5e5e5;
    font-size: 18px;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.divider::after,
.divider::before {
    content: "";
    border: 1px solid lightgrey;
    font-weight: lighter;
    flex: 1;
    opacity: 0.25;
}

.divider:not(:empty)::before {
    margin-right: 0.25em;
}

.divider:not(:empty)::after {
    margin-left: 0.25em;
}

#addProduct {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#addInvoice {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/*.addInvoice8 {*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*    gap: 1rem;*/
/*}*/

@media (min-width: 992px) {
    /*#addInvoice {*/
    /*    display: grid;*/
    /*    grid-template-columns: repeat(3, 1fr);*/
    /*    gap: 1rem;*/
    /*}*/

    /*.addInvoice1 { grid-area: 1 / 1 / 2 / 2; }*/
    /*.addInvoice2 { grid-area: 1 / 2 / 2 / 3; }*/
    /*.addInvoice3 { grid-area: 1 / 3 / 2 / 4; }*/
    /*.addInvoice4 { grid-area: 2 / 1 / 3 / 2; }*/
    /*.addInvoice5 { grid-area: 2 / 2 / 3 / 3; }*/
    /*.addInvoice6 { grid-area: 2 / 3 / 3 / 4; }*/
    /*.addInvoice7 { grid-area: 3 / 1 / 4 / 2; }*/
    /*.addInvoice8 { grid-area: 3 / 2 / 4 / 3; }*/
    /*.addInvoice9 { grid-area: 3 / 3 / 4 / 4; }*/
    /*.addInvoice10 { grid-area: 4 / 1 / 5 / 4; }*/
    /*.addInvoice11 { grid-area: 5 / 1 / 6 / 4; }*/

    #addInvoice {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .addInvoice1 { grid-area: 1 / 1 / 2 / 2; }
    .addInvoice2 { grid-area: 1 / 2 / 2 / 3; }
    .addInvoice3 { grid-area: 1 / 3 / 2 / 4; }
    .addInvoice4 { grid-area: 2 / 1 / 3 / 2; }
    .addInvoice5 { grid-area: 2 / 2 / 3 / 3; }
    .addInvoice6 { grid-area: 2 / 3 / 3 / 4; }
    .addInvoice7 { grid-area: 3 / 1 / 4 / 2; }
    .addInvoice8 { grid-area: 3 / 2 / 4 / 3; }
    .addInvoice9 { grid-area: 3 / 3 / 4 / 4; }
    .addInvoice10 { grid-area: 4 / 1 / 5 / 4; }
    .addInvoice11 { grid-area: 5 / 1 / 6 / 4; }
    .addInvoice12 { grid-area: 6 / 1 / 7 / 4; }
}

#addBuyer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.addBuyer1 { grid-area: 1 / 1 / 2 / 3; }
.addBuyer2 { grid-area: 1 / 3 / 2 / 4; }
.addBuyer3 { grid-area: 2 / 1 / 3 / 2; }
.addBuyer4 { grid-area: 2 / 2 / 3 / 3; }
.addBuyer5 { grid-area: 2 / 3 / 3 / 4; }
.addBuyer6 { grid-area: 3 / 1 / 4 / 4; }


/* SETTINGS */
#settings {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#editDataNip {
    display: grid;
    gap: 1rem;
}

@media (max-width: 767.98px) {
    #editDataNip {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) {
    #editDataNip {
        grid-template-columns: 1fr 1fr;
    }
}

#editData {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 992px) {
    #editData {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 1fr);
    }
    .editData1 { grid-area: 1 / 1 / 2 / 2; }
    .editData2 { grid-area: 1 / 2 / 2 / 3; }
    .editData3 { grid-area: 2 / 1 / 3 / 2; }
    .editData4 { grid-area: 2 / 2 / 3 / 3; }
    .editData5 { grid-area: 3 / 1 / 4 / 2; }
    .editData6 { grid-area: 3 / 2 / 4 / 3; }
    .editData7 { grid-area: 4 / 1 / 5 / 2; }
    .editData8 { grid-area: 4 / 2 / 5 / 3; }
    .editData9 { grid-area: 5 / 1 / 6 / 3; }
}



.page-link, .page-link:hover, .page-link:focus {
    color: black;
}

.page-link:focus {
    box-shadow: 0 0 0 0.25rem rgb(108 117 125 / 25%);
}

.page-item.active .page-link {
    color: #fff !important;
    background: #6c757d !important;
    border-color: #6c757d !important;
}




#one {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#two {
    display: flex;
    justify-content: center;
}


/* dropdown bootstrap table */
.table-responsive .dropdown,
.table-responsive .btn-group,
.table-responsive .btn-group-vertical {
    position: static;
}

@media (max-width: 767.98px) {
    .table-products > thead > tr > th,
    .table-products > tbody > tr,
    .table-buyers > thead > tr > th,
    .table-buyers > tbody > tr
    {
        white-space: nowrap;
    }
}

@media (max-width: 991.98px) {
    .table-invoices > thead > tr > th,
    .table-invoices > tbody > tr
    {
        white-space: nowrap;
    }
}

@media (max-width: 575.98px) {
    .g-recaptcha {
        transform:scale(0.77);
        transform-origin:0 0;
    }
}