html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
    margin-bottom: 60px;
    font-size: 1rem;
    overflow-x: hidden;
    max-height: 100vh !important;
    overflow: hidden;
}

.body-content-holder {
    padding-top: 3.35rem;
}

.body-content {
    max-height: calc(100vh - 3.45rem);
    overflow-y: auto;
    padding-top: 0;
}

.footer {
    position: relative !important;
    background: #fff;
}

main {
    min-height: calc(100vh - 7.75rem);
}

main .container-fluid {
    padding-top: 1rem;
}

.mh80 {
    min-height: 80vh;
}

.lock_page_div {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 100%;
    height: 100%;
    display: none;
    opacity: 0.25;
    background-color: black;
}

.navbar-nav li.active {
    background-color: grey;
}

.navbar .navbar-nav .nav-link {
    font-weight: 400;
    padding: 0.9rem 0.75rem;
    line-height: auto!important;
    margin-bottom:0!important;
}

.navbar-toggler {
    margin: 0.35rem 0.75rem;
}

header {
    position: fixed;
    width: 100%;
    z-index: 9;
}

.gray-text {
    background-color: gray;
    font-weight: bold;
}

.green-text {
    background-color: green;
    font-weight: bold;
}

.orange-text {
    background-color: orange;
    font-weight: bold;
}

.invoice-second-row {
    font-size: 1.2rem;
}

.currency-number {
    font-weight: bold;
}

.form-row select, .form-row input[type="text"], .form-row select {
    min-height: 30px;
    min-width: 189px;
}

.userEditForm input:read-only {
    border: none;
}

.align-right {
    text-align:right;
}

.auth-validation {
    text-align:center;
}

.auth-validation li {
    list-style-type: none;
}

.truncate {
    width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.truncate-keep-width {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.invoice-holder {
    max-width: 1270px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 5fr 2fr;
}
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 5fr 2fr;
}

.invoice-holder .display-name {
    padding-right : 1rem;
}

.invoice-holder .billing-details .display-name {
    padding-left: 1rem;
}

.invoice-holder .actions-holder {
    width: 12.25rem;
}

.invoice-holder .btn {
   width:100%;
}

.invoice-holder .table-bordered {
    border-color : black;
}

.btn-light {
    background-color: #dde0e2;
    border-color: #dde0e2;
}

#editInvoiceVendorForm .form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin: 0.75rem 0;
}

.notification-holder {
    position: relative;
}

.cancellation-notification {
    position: absolute;
    background: #fff;
    border: 2px solid #dee2e6 !important;
    border-radius: .25rem !important;
    top: calc(100% + 5px);
    right: 0;
    width: 12.5rem;
    padding: 10px 20px;
    font-size: .825rem;
    z-index: 99999;
}

.cancellation-notification:before {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 15px solid #fff;
    position: absolute;
    top: -14px;
    right: 5px;
}
 
.cancellation-notification .notification-text {
    margin-bottom: 10px;
}

.cancellation-notification button.btn {
    font-size: .825rem;
    padding: .25rem .5rem;
}

#editInvoiceVendorForm .form-actions-row {
   width:50%;
   margin-left: 50%;
}

#editInvoiceVendorForm input {
    text-align: center;
    min-width: 100%;
    display: block;
}

.js-add-new-company input:not([type="submit"],[type="reset"]),
.js-add-new-user input:not([type="submit"],[type="reset"]),
.js-add-new-user select,
.userEditForm select {
    display: block;
    width: 100%;
}

.small-text {
    font-size: 0.85rem;
}

.link-simple {
    color: #222;
    text-decoration: none;
}

.link-simple:hover {
    color: #222;
    text-decoration: underline;
}

.link-simple:focus {
    box-shadow: none;
}

.scroll-display {
    display: block;
    overflow-x: auto; 
    overflow-y: hidden;
}

.col-md {
    width: 10rem;
    min-width: 10rem;
}

.col-lg {
    width: 15rem;
    min-width: 15rem;
}

.col-xxl {
    min-width: 27.5rem;
}

.col-company-logo {
    width: 18rem;
    min-width: 18rem;
    display:flex;
}

.col-company-email {
    max-width: calc((100% - 18rem) / 5);
}

.col-vendor-email {
    max-width: calc(100% / 9);
}

.sending-date {
    min-width: 8.25rem;
}

#request-counter-holder {
    background: #dc3545;
    border-radius: 50%;
    height: 1.5rem;
    display: inline-flex;
    width: 1.5rem;
    align-items: center;
    justify-content: center;
}

#request-counter {
    line-height: 0.96rem;
    font-size: 0.96rem;
    margin-bottom: 0.15rem;
    margin-left: 0.07rem;
    padding: 0;
    height: 0.96rem;
}

.hide {
    visibility: hidden !important;
    max-width: 0;
    max-height:0;
    overflow: hidden;
}

.red-text {
    color: #dc3545;
}

.one-size-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    grid-gap: 1.5rem;
}

.one-size-row div {
    overflow-wrap: break-word;
}

.one-size-header {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    grid-gap: 1rem;
}

.filter-form-holder {
    background: #ececec;
    padding-bottom: 0.5rem;
    padding-top: 0.5rem;
    margin: 0.25rem !important;
}

.filter-form-holder input:not([type="submit"],[type="reset"]), .filter-form-holder select {
    width: 100%;
    border: none !important;
    border-radius: 0.25rem !important;
    min-height: 1.8rem;
}

.filter-form-holder .btn {
    min-width: 6.25rem;
}

.central-logo {
    width: 190px;
    text-align: center;
    margin: 0 auto;
    margin-bottom: 3rem;
}

.central-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.x-wide {
    min-width: 21rem;
}

.invoice-errors {
    background-color: #fcd4dc;
    color: #ff0000;
    line-height: 1.25;
    border-radius: .65rem !important;
    padding: 10px;
    width: 500px;
    margin: 20px auto;
    align-content: center;
}

.invoice-errors-block {    
    margin: 20px;
    align-content: center;
}

.v-aligned-btn {
    min-width: 5.25rem;
}

.page-link {
    color: #6c757d!important;
}

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

.page-link:focus {
    box-shadow: 0 0 0 0.25rem rgb(79 83 88 / 25%);
}

.content-row {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    margin: .25rem !important;
}

.grouped-buttons-row {
    padding-bottom: 0.45rem;
}

.title-row {
    margin: 0.25rem;
    margin-top: 1.25rem !important;
}

.form-title-row {
    margin: 0.25rem;
}

.btn-small-link {
    font-size: 0.825rem;
    padding: 0;
    color: #000;
    text-decoration:underline;
}

.editable-logo-image {
    margin-right: 0.5rem;
}

.bordered-invoice {
    border: 1px solid #989898;
    padding: 3.75rem;
}

.filter-buttons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: end;
}

.filter-buttons .btn {
    margin-top: 0.15rem;
    margin-bottom: 0.15rem;
}

.grouped-buttons .btn {
    margin-bottom: 0.3rem;
}

.page-loader {
    background: #0000002e;
    width: 100vw;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999999;
    text-align: center;
}

.loader-text {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.removable-input-block {
    position:relative;
    margin-top:0.5rem;
}

.js-email-address-row:first-child .removable-input-block{
    margin-top: 0;
}

.x-btn {
    position: absolute;
    width: 1.6rem !important;
    max-width: 1.6rem !important;
    top: 0;
    right: 0.75rem;
    height: 1.75rem;
    text-align: center;
    padding: 0;
    text-decoration: none;
    font-weight: 800;
    font-size: 1rem;
    background: #ececec;
    border-radius: 0;
    margin: 1px;
}

.removable-input-block input {
    padding-right: calc(1.6 rem + 2px);
}

.x-btn:focus {
    outline: 0;
    box-shadow: 0 0 0 0.25rem #dc354557;
}

.breakable {
    overflow-wrap: break-word;
}

input[type="file"]:hover {
    cursor:pointer;
}

#editMiscForm input {
    width: 100%;
}

.pagination {
    overflow-x: auto;
    margin-top: 1rem;
}

th.table-title {
    background-color: #ececec;
    font-weight: 700;
}

.text-bold {
    font-weight: 700;
}

.misc-description {
    padding: 0.5rem;
    text-align: center;
    font-weight: 700;
    font-style: italic;
    margin-top: 1.5rem;
}

.equal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0.5rem;
}

.billing-header {
    background: #ececec;
    width: 50%;
    font-weight: 700;
    padding: 0.5rem;
    border: 1px solid #000;
    margin-top: 2rem;
}

.responsive-label{
    display:none;
}

.new-off-ends {
    background-color: #fff;
    border-color: transparent;
    color: #999;
}

.row-wrap-gap {
    display: flex;
    flex-flow: row wrap;
    padding: 0.75rem;
    gap: 0.75rem;
}

@media (max-width: 768px) {
    .col, .col-4, .col-5 {
        width: 50%;
        flex: auto;
        margin: 0.25rem 0;
    }

    .col-xxl, .col-company-email, .col-vendor-email {
        min-width: 50% !important;
        max-width: 50%;
    }

    .responsive-label {
        font-weight: 600;
        display: block;
    }

    .form-title-row, .title-row {
        display: none;
    }

    .invoice-holder {
        padding: 4rem 1rem;
    }

    .bordered-invoice {
        padding: 2.5rem;
    }

    .one-size-header {
        display: block;
        width: 50%;
        min-width: 50%;
    }

    .one-size-header .col{
        width: 100%;
        min-width: 100%;
    }
}

@media (max-width: 576px) {
    .col, .col-4, .col-5 {
        width: 100%;
        flex: auto;
        margin: 0.25rem 0;
    }

    .col-xxl, .col-company-email, .col-vendor-email {
        min-width: 100% !important;
        max-width: 100%;
    }

    .invoice-holder {
        padding: 2rem 0;
        grid-template-columns: 1fr;
    }

    .invoice-holder .actions-holder {
        width: 100%;
        margin-top: 1rem;
    }

    .one-size-header {
        display: grid;
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        grid-gap: 0;
    }

    .responsive-label {
        font-weight: 600;
        display: block;
    }

    .form-title-row, .title-row {
        display: none;
    }
}