/* Generic elements */

html, body {
    height: 100%;
    width: 100%;
    --main-color: rgba(192, 31, 66, 1);
    --main-color-light: rgba(192, 31, 66, 0.25);
    --main-color-lighter: rgba(192, 31, 66, 0.03);
    --main-border-color: rgba(0, 0, 0, 0.175);
    --main-card-shadow: 0 0.125rem .25rem rgba(1, 1, 1, .075);
    --main-color-hover-color: #d14905;
}

body {
    font-family: sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
}

/* Needed for sticky footer */
.body-wrapper {
    min-height: 100%;
    position: relative;
}

:root {
    /* Height of footer 180 px + 65px*/
    --footer-height: 245px;
}

.body-container {
    padding-bottom: calc(var(--footer-height) + 2em);
}

* {
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--main-color);
    font-weight: bold;
    line-height: 1.0;
}

h3 {
    font-size: medium;
}

p {
    line-height: 1.5;
}

a {
    color: var(--main-color-hover-color);
    transition: color .25s ease;
    text-decoration: none;
}

a:hover {
    color: #c01f42;
}

li {
    margin-bottom: 0.5em;
}

[data-href] {
    cursor: pointer;
}

.form-control {
    border-radius: 0;
}

.form-select {
    border-radius: 0;
}

.form-control:focus, .form-select:focus {
    border: 1px solid transparent;
    box-shadow: 0 0 0 0.25rem rgba(192, 31, 66, 0.25);
}

.card {
    border-radius: 0;
    box-shadow: var(--main-card-shadow);
}

.card-header {
    border-radius: 0;
    background-color: #fff;
}

/*.form-control:hover   {*/
/*box-shadow: 0 -3px 0 #c01f42;*/
/*-webkit-box-shadow: 0 -3px 0 #c01f42;*/
/*-moz-box-shadow: 0 -3px 0 #c01f42;*/
/*}*/

/* Topbar / main navigation */
.nav-item {
    margin-bottom: 0;
}

.nav-link {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 70px;
    padding: 0 0.5em;
    border-top: 3px solid transparent;
    white-space: nowrap;
    color: inherit;
    transition: color .2s ease,
    border-color .2s ease;
}

.nav-link:hover {
    border-top-width: 3px;
    border-top-color: var(--main-color);
    color: var(--main-color);
    background-color: var(--main-color-lighter);
}

.navbar-toggler {
    border-color: var(--main-color-light);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem var(--main-color-light);
}

.topbar {
    position: relative;
    height: auto;
    box-shadow: rgba(0, 0, 0, .12) 0 1px 3px;
    z-index: 5;
}

.topbar > .container {
    display: flex;
    align-items: center;
    height: 100%;
}

.topbar-logo {
    width: auto;
    height: 55px;
    margin-right: 0.5rem;
}

.topbar-nav {
    align-self: stretch;
    display: flex;
    flex-wrap: wrap;
}

.topbar-nav a {
    display: flex;
    height: 65px;
    flex-direction: column;
    justify-content: center;
    padding: 0 0.5em;
    border-top: 3px solid rgba(192, 31, 66, 0);
    border-bottom: 3px solid transparent;
    text-decoration: none;
    white-space: nowrap;
    color: inherit;
    transition: color .2s ease,
    border-color .2s ease;
}

.topbar-nav a:hover {
    border-top-color: #c01f42;
    color: #c01f42;
}


/* Footer */

.bottom-bar-container {
    position: absolute;
    width: 100%;
    bottom: 0;
    left: 0;
}

@media (max-width: 768px) {
    .bottom-bar-container {
        position: unset;
    }
}

.social-medias-container {
    position: relative;
    display: flex;
    height: 180px;
    left: 0;
    bottom: 0;
    width: 100%;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #c01f42;
}

.address-container {
    position: relative;
    display: flex;
    height: 65px;
    left: 0;
    bottom: 0;
    width: 100%;
    justify-content: center;
    align-items: center;
    text-align: center;
    line-height: 1.5;
    background-color: #9b0a30;
    color: #fff;
}


/* Status messages */

.status-messages {
    display: flex;
    flex-direction: column-reverse;
}

.status-message {
    padding: 1em 0;
    background-color: #ffdfe6;
    box-shadow: rgba(0, 0, 0, .12) 0 1px 3px;
}

.status-message .container {
    text-align: center;
}


/* Responsiveness */

.container {
    max-width: 1140px;
    margin: 0 auto;
}

@media (max-width: 1199px) {
    .container {
        max-width: 960px;
        padding: 0 20px;
    }

    .body-container {
        padding-bottom: var(--footer-height);
    }
}

@media (max-width: 575px) {
    .container {
        padding: 0 10px;
    }

    .body-container {
        padding-bottom: var(--footer-height);
    }
}

/* Index */
.index-parent {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.index-sidebar {
    flex-basis: 15rem;
    flex-grow: 1;
}

.index-main-content {
    flex-basis: 0;
    flex-grow: 999;
    min-width: 70%;
}

.index-announcements {
}

.index-announcements p {
    flex-basis: 0;
    flex-grow: 999;
    /*overflow-wrap: reak-word;*/
}

.index-sidebar-button {
    background-color: #9b0a30;
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    display: inline-block;
    font-size: 18px;
    font-weight: bold;
    margin: 4px 2px;
    cursor: pointer;
    width: 100%;
}

.index-sidebar-button:hover {
    color: white;
    background-color: var(--main-color-hover-color);
}

/* Forms */
input,
textarea,
select {
    padding: 7px;
}

.bordered-form-wrapper {
    /*border-left: 3px solid var(--main-color);*/
    padding: 5px 5px 7px 5px;
    margin-bottom: 15px;
    border-left: 4px solid lightgrey;
    /*transition: border-left .1s ease;*/
}

.bordered-form-wrapper:hover {
    border-left: 4px solid var(--main-color);
}

.borderless-form-wrapper {
    margin-top: 20px;
}

.form-desktop-row {
    display: flex;
}

@media (max-width: 768px) {
    .bordered-form-wrapper {
        margin-bottom: 36px;
    }

    .form-desktop-row {
        flex-direction: column;
    }
}

.form-desktop-row .form-control {
    flex-grow: 1;
}

.form-mobile-row {
    display: flex;
    flex-grow: 1;
}

.form-control {
    padding: 5px;
}

.form-control label {
    display: block;
    white-space: nowrap;
}

.form-control input,
.form-control textarea,
.form-control select {
    width: 100%;
    padding: 7px;
    font-size: 1em;
    font-family: sans-serif;
}

@media (max-width: 768px) {
    .form-control input,
    .form-control textarea,
    .form-control select {
        padding: 14px;
    }
}

.form-control input[type="file"] {
    padding: 0;
}

.form-control input[type="checkbox"] {
    width: auto;
    margin-left: 0;
}

.form-control input[type="checkbox"] + label {
    display: inline;
}

form [readonly] {
    border-width: 1px;
    border-color: var(--main-color-light);
    background: rgba(255, 238, 153, 0.5);
    /*background: var(--main-color-lighter);*/
}

select[readonly] option,
select[readonly] optgroup {
    display: none;
}

.field-info {
    font-size: 85%;
    font-weight: bold;
}

label + .field-info {
    margin-top: 0.5em;
}

.form-radio-list ul {
    padding-left: 0.5em;
    list-style: none;
}

.form-file-attach::-webkit-file-upload-button {
    color: var(--main-color);
    background: white;
    border: solid;
    border-width: 1px;
    padding: 7px 15px;
    border-radius: 3px;
    font-size: 16px;
    cursor: pointer;
}

.form-file-attach::file-selector-button {
    color: var(--main-color);
    background: white;
    border: solid;
    border-width: 1px;
    padding: 7px 15px;
    border-radius: 3px;
    font-size: 16px;
    cursor: pointer;
}

.form-file-attach::file-selector-button:hover .form-file-attach::-webkit-file-upload-button:hover {
    color: var(--main-color-hover-color);
}

.primary-button {
    background-color: var(--main-color);
    border: none;
    color: white;
    padding: 12px 12px;
    text-align: center;
    font-size: 15px;
    font-weight: bold;
    margin: 4px 2px;
    cursor: pointer;
}

.primary-button:hover {
    color: white;
    background-color: var(--main-color-hover-color);
}

/*.form-button {*/
/*    background-color: white;*/
/*    color: #9b0a30;*/
/*    border-radius: 1px;*/
/*    border-color: lightslategray;*/
/*    padding: 15px 32px;*/
/*    text-align: center;*/
/*    display: inline-block;*/
/*    font-size: 18px;*/
/*    margin: 4px 2px;*/
/*    cursor: pointer;*/
/*}*/

.form-borderless-button {
    border: none;
    background: none;
    text-align: center;
    color: #9b0a30;
    font-size: 18px;
    cursor: pointer;
}

.form-submit-button {
    background-color: #9b0a30;
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    display: inline-block;
    font-size: 18px;
    margin: 4px 2px;
    cursor: pointer;
}

.form-submit-button:hover {
    color: white;
}

.row-actions {
    position: absolute;
    display: flex;
    bottom: -9px;
    right: 0;
    z-index: 1;
}

.row-actions button {
    border: 0;
    margin: 0 0.5em;
    padding: 0 5px;
    color: #c01f42;
    background: #fff;
    cursor: pointer;
    font-size: 18px;
}

@media (max-width: 768px) {
    .row-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .row-actions button.remove-row-button {
        margin-right: auto;
    }
}

.form-buttons-wrapper .button:not(:last-child) {
    margin-right: 1em;
}

@media (max-width: 768px) {
    .form-submit-button.form-submit-button {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }

    .form-buttons-wrapper .button:not(:last-child) {
        margin-right: 0;
        margin-bottom: 1em;
    }
}

.custom-radio-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.custom-radio-list label {
    width: 50px;
}


.errorlist {
    color: #ff0000;
}

.align-right {
    --align-right-margin: auto;
    margin-left: var(--align-right-margin);
}

.align-right ~ .align-right {
    /* The original margin is unknown and may vary, so we use an invalid */
    /* CSS variable to reset only the margin-right: auto; from the rule above. */
    --align-right-margin: ;
}

/* Hide HTML5 up/down arrows */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}


/* Tables */

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    text-align: left;
    border-bottom: 1px solid #aaa;
}

.table th,
.table td {
    padding: 0.5em;
}

.table tbody tr:nth-child(even) {
    background-color: #eee;
}

.table .stretch-cell {
    width: 100%;
}

/* View - login */

.login-form-row {
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-form-column1 {
    display: flex;
    flex: 50%;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    /*height: 100vh;*/
    padding: 25px;
}

.login-form-column2 {
    background: #ffffff;
    display: flex;
    flex: 50%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    /*height: 100vh;*/
}

/* Register */
.register-form-row {
    display: flex;
    justify-content: center;
    align-items: center;
}

.register-form-column1 {
    justify-content: space-evenly;
    align-items: center;
    background: #eee;
    display: flex;
    flex: 50%;
    flex-direction: column;
    height: 100vh;
    padding: 25px;
}

.register-form-column2 {
    background: #ffffff;
    display: flex;
    flex: 50%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
}

#testimony-image {
    position: relative;
    bottom: 100px;
    left: 75px;
    object-fit: cover;
}

.register-testimony {
    margin-top: 0px;
    padding: 0 20px;
    width: 400px;
    border-radius: 10px;
    /*box-shadow: 2px 5px 10px #ccc;*/
    background: white;
}


/* login on Mobile */
@media (max-width: 768px) {
    .login-form-row {
        flex-flow: column-reverse;
        flex: 100%;
    }
    .register-form-row {
        flex-flow: column-reverse;
        flex: 100%;
    }

    .login-form-column1 {
        display: flex;
        flex-direction: row;
        flex: 100%;
    }

    .register-form-column1 {
        padding-top: 100px;
        display: flex;
        flex-direction: column-reverse;
        flex: 100%;
        width: 100%;
    }

    .login-form-column2 {
        flex: 100%;
    }

    .login-form-wrapper {
        margin: 0 0 50px;
    }
}


.login-form-wrapper {
    position: relative;
    background: #ffffff;
    /*margin: 50% auto 50px;*/
    padding: 25px;
    text-align: center;
    /*min-width: 512px;*/
    /*box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2), 0 5px 5px 0 rgba(0, 0, 0, 0.24);*/
}

.register-form-wrapper .login-form-advert {
    padding: 20px;
    text-align: center;
}

.login-form-wrapper input:not([type=checkbox]) {
    font-family: "Roboto", sans-serif;
    outline: 0;
    background: #f2f2f2;
    width: 100%;
    border: 1px;
    margin: 0 0 15px;
    padding: 15px;
    box-sizing: border-box;
    font-size: 14px;
    border-top: 3px solid rgba(192, 31, 66, 0);
    transition: color .2s ease,
    border-color .2s ease;
}

.login-form-wrapper input:not([type=checkbox]):focus {
    border-top-color: #c01f42;

}

.login-form-wrapper input:not([type=checkbox]):hover {
    border-top-color: #c01f42;
}

.login-form-wrapper label {
    outline: 0;
    /*width: 100%;*/
    border: 0;
    margin: 0 0 15px;
    font-size: 15px;
}

.login-form-wrapper .errorlist {
    /*list-style-type: none;*/
    padding: 0;
    margin-top: 0;
    color: #ff0000;
}

.login-form-wrapper button {
    background-color: #9b0a30;
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    display: inline-block;
    font-size: 18px;
    font-weight: bold;
    margin: 16px 2px;
    cursor: pointer;
    width: 80%;
}

.login-form-wrapper button:hover {
    background-color: var(--main-color-hover-color);
}

.login-form-wrapper .flag-holder {
    height: 1000px;
    width: 100px;
    justify-content: center;
    padding: 0 20px;
    border-top: 3px solid rgba(192, 31, 66, 0);
    border-bottom: 3px solid transparent;
    text-decoration: none;
    transition: color .2s ease,
    border-color .2s ease;
}

.login-form-wrapper .flag-holder:hover {
    border-top-color: #c01f42;
    color: #c01f42;
}

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

.login-flag {
    height: 42px;
    width: auto;
    padding: 10px 10px;
    border-top: 3px solid rgba(192, 31, 66, 0);
    transition: color .2s ease,
    border-color .2s ease;
}

.login-flag:hover {
    border-top-color: #c01f42;
}

.login-form-column1 .login-logo {
    margin: 0;
    padding: 0;
    width: auto;
    height: 75px;
}
.register-form-column1 .login-logo {
    margin: 0;
    padding: 0;
    width: auto;
    height: 75px;
}

/* View - billing order */

.form-additional-information {
    height: 100px;
}


.billing-order-form .field-e-invoice-address {
    width: 600px;
}


.billing-order-form .field-start-date,
.billing-order-form .field-end-date {
    width: 120px;
}

.billing-order-form .travel-expense-summary .total-sum {
    font-weight: bold;
}

.billing-order-form .product-form:first-of-type:last-of-type .remove-row-button {
    display: none;
}

.billing-order-delete-button {
    position: relative;
}

.billing-order-delete-button button {
    position: absolute;
    right: 0;
    cursor: pointer;
}

.billing-order-delete-button-mobile {
    margin-top: 4em;
}

@media (max-width: 768px) {
    .billing-order-delete-button {
        display: none;
    }
}

@media (min-width: 769px) {
    .billing-order-delete-button-mobile {
        display: none;
    }
}


/* View - dashboard */

.billingorder-list {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 20px;
}

.billingorder-list th {
    padding: 0.5em 1em;
    text-align: left;
    color: #c01f42;
}

.billingorder-list td {
    padding: 1em;
}

.billingorder-list .billingorder-dates {
    white-space: nowrap;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
}

.billingorder-list tr {
    box-shadow: 0 2px 10px rgba(0, 0, 0, .2), inset 3px 0 0 rgba(192, 31, 66, 0);
    transition: color .2s ease, box-shadow .2s ease;
}

.billingorder-list tr[data-href]:hover {
    color: #c01f42;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .2), inset 3px 0 0 #c01f42;
}

.billingorder-list .billingorder-status {
    width: 50%;
    text-align: right;
}

.billingorder-list .billingorder-name {
    width: 50%;
}

.billingorder-list .billingorder-status {
    transition: opacity 1s ease;
    opacity: 1;
}

.billingorder-list .loading .billingorder-status {
    opacity: 0.3;
}

.billingorder-list .billingorder-sum {
    text-align: right;
}

.billingorder-dates .label {
}

@media (max-width: 768px) {
    .billingorder-list {
        display: block;
    }

    .billingorder-list thead {
        display: none;
    }

    .billingorder-list tbody {
        display: block;
    }

    .billingorder-list tr {
        display: grid;
        grid-template-columns: auto auto auto;
        grid-template-rows: auto auto auto;
        grid-column-gap: 0px;
        grid-row-gap: 0px;
        grid-template-areas:
      "topleft     topleft     topright   "
      "midleft     midleft     .          "
      "bottomleft  bottomleft  bottomright";
        padding: 1em;
        margin-bottom: 1em;
    }

    .billingorder-list.billingorder-list td {
        display: block;
        width: auto;
        padding: 0.2em;
    }

    .billingorder-name {
        grid-area: topleft;
    }

    .billingorder-sum {
        grid-area: topright;
    }

    .billingorder-dates {
        grid-area: midleft-start / midleft-start / bottomleft-end / bottomleft-end;
    }

    .billingorder-status {
        grid-area: bottomright;
    }
}


/* View - invoice detail */

.invoice-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2em;
}

.invoice-detail {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: minmax(300px, auto) minmax(40px, auto) auto auto minmax(300px, auto) auto;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    grid-template-areas:
    "a a b b"
    "c c c c"
    "d d d d"
    ". . e e"
    ". . . ."
    "f f f f";
}

.invoice-detail .customer {
    grid-area: a;
    padding-bottom: 3em;
}

.invoice-detail .invoice {
    grid-area: b;
    padding-bottom: 3em;
}

.invoice-detail .additional-info {
    grid-area: c;
    padding-bottom: 1em;
}

.invoice-detail .additional-info-mobile {
    display: none;
}

.invoice-detail .product-rows-desktop {
    grid-area: d;
    padding-bottom: 2em;
}

.invoice-detail .summary {
    grid-area: e;
}

.invoice-detail .invoice table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.invoice-detail .product-rows-mobile {
    display: none;
}

.invoice-detail .product-rows-desktop table {
    width: 100%;
    border-collapse: collapse;
}

.invoice-detail .product-rows-desktop th {
    text-align: left;
    border-bottom: 1px solid #000;
    white-space: nowrap;
}

.invoice-detail .product-rows-desktop th,
.invoice-detail .product-rows-desktop td {
    padding: 0.1em 1em 0.3em 1em;
    vertical-align: top;
}

.invoice-detail .product-rows-desktop th:first-of-type,
.invoice-detail .product-rows-desktop td:first-of-type {
    padding-left: 0;
}

.invoice-detail .product-rows-desktop th:last-of-type,
.invoice-detail .product-rows-desktop td:last-of-type {
    padding-right: 0;
}

.invoice-detail .product-rows-desktop .numeric {
    text-align: right;
}

.invoice-detail .product-rows-mobile {
    margin-top: 1em;
}

.invoice-detail .product-rows-mobile table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    margin: 0.5em 0 1em 0;
}

.invoice-detail .product-rows-mobile th {
    text-align: left;
    font-weight: bold;
}

.invoice-detail .product-rows-mobile td {
    padding: 0.3em 0.5em;
}

.invoice-detail .product-rows-mobile summary {
    margin-left: -10px;
    margin-right: -10px;
    padding: 1em 7em 1em 10px;
    background: #eee;
    border-top: 1px solid #aaa;
    cursor: pointer;
}

.invoice-detail .product-rows-mobile summary > span:first-of-type {
    position: absolute;
    right: 10px;
}

.invoice-detail .summary table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.invoice-detail .biller-details {
    grid-area: f;
    display: flex;
    width: 100%;
    justify-content: space-between;
}

.invoice-detail h4 {
    display: none;
}

@media screen and (max-width: 768px) {
    .invoice-title {
        flex-direction: column-reverse;
        margin: 2em 0;
    }

    .invoice-detail h4 {
        display: block;
    }

    .invoice-detail {
        display: block;
    }

    .invoice-detail .customer {
        padding-bottom: 0;
    }

    .invoice-detail .customer > div {
        padding: 0.3em 0;
    }

    .invoice-detail .customer > div:first-of-type {
        font-weight: bold;
    }

    .invoice-detail .invoice {
        padding-bottom: 0;
    }

    .invoice-detail .invoice td {
        padding: 0.3em 0;
        vertical-align: top;
    }

    .invoice-detail .invoice td:first-of-type {
        font-weight: bold;
    }

    .invoice-detail .additional-info {
        display: none;
    }

    .invoice-detail .additional-info-mobile {
        display: table-row;
    }

    .invoice-detail .product-rows-desktop {
        display: none;
    }

    .invoice-detail .product-rows-mobile {
        display: block;
    }

    .invoice-detail .summary {
        margin-left: -10px;
        margin-right: -10px;
    }

    .invoice-detail .summary table {
        table-layout: auto;
    }

    .invoice-detail .summary tr {
        background: #eee;
        border-top: 1px solid #aaa;
    }

    .invoice-detail .summary td {
        padding: 0.7em 10px;
    }

    .invoice-detail .summary td:last-of-type {
        text-align: right;
    }

    .invoice-detail .biller-details {
        font-size: 80%;
        flex-direction: column;
    }

    .invoice-detail .biller-details > div {
        margin-top: 1em;
    }

    .invoice-detail .biller-details > div:first-of-type {
        margin-top: 4em;
    }
}

@media print {
    header,
    footer,
    .body-wrapper ~ *,
    .invoice-title {
        display: none !important;
    }
}