/* Structure */
html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
}

html,
body,
div,
p,
select,
input,
textarea {
    font-family: 'Lato', sans-serif !important;
    color: #303030 !important;
}

h4, .h4 {
    color: #303030 !important;
}

.header {
    height: 109px;
    display: flex;
    align-items: center;
    background-color: #ffffff;
}

    .header .container {
        display: flex;
        align-items: center;
        padding: 0 20px;
    }

.brand-logo {
    height: 80px;
    width: auto;
}

.header-bar {
    height: 50px;
    min-height: 50px;
    width: 100%;
    margin-top: 10px;
    background-color: rgb(25, 25, 25);
    background-image: linear-gradient(rgb(48, 48, 48), rgb(25, 25, 25));
    border-bottom-color: rgb(25, 25, 25);
}

.content {
    flex: 1;
    padding: 20px;
}

.footer {
    height: 200px;
    background-color: #303030;
    display: flex;
    align-items: center;
    padding-top: 20px;
    padding-bottom: 20px;
}

    .footer .container {
        display: flex;
        justify-content: flex-end;
        padding: 0 20px;
    }

.footer-logo {
    height: 100px;
    width: auto;
}

.private-mode-banner {
    display: none;
}

form:has(> main) {
    display: flex;
    margin-bottom: 20px;
    flex: 1 0 auto;
    flex-direction: column;
}

/* Undo PP defaults */

.wrapper-body {
    min-height: calc(100% - 300px);
    margin-bottom: 0px;
}

.columnBlockLayout {
    margin-top: 10px !important;
    margin-bottom: 10px !important;
    padding: 0 !important;
}

p, .p, .page_section p, .section-diagonal-left p, .section-diagonal-right p, p.form-text span {
    font-family: unset !important;
    font-weight: unset !important;
    font-size: unset !important;
    color: unset !important;
}

h2, .h2, .section-landing .row > div .section-landing-sub-heading, .page_section h2, .color-inverse h2, h2 p {
    font-family: 'Lato', sans-serif !important;
}

/* H levels */
h1 {
    font-size: 2em !important;
    margin-bottom: 12px !important;
    color: #303030 !important;
}

/* Buttons and links */
.submit-btn {
    background-color: #303030 !important;
    color: #ffffff !important;
    border-color: #303030 !important;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    width: fit-content !important;
    border-bottom-left-radius: 6px !important;
    border-bottom-right-radius: 6px !important;
    border-top-left-radius: 6px !important;
    border-top-right-radius: 6px !important;
}

    .submit-btn:hover,
    .submit-btn:focus,
    .submit-btn:active {
        background-color: #BE2D1A !important;
        border-color: #BE2D1A !important;
        color: #ffffff !important;
    }

    .submit-btn:disabled {
        background-color: #6c757d !important;
        border-color: #6c757d !important;
        color: #ffffff !important;
    }


.btn-dmo-primary {
    background-color: #303030;
    color: #ffffff !important;
    border-color: #303030;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    width: fit-content;
}

    .btn-dmo-primary:hover,
    .btn-dmo-primary:focus,
    .btn-dmo-primary:active {
        background-color: #BE2D1A;
        border-color: #BE2D1A;
        color: #ffffff !important;
    }

    .btn-dmo-primary:disabled {
        background-color: #6c757d;
        border-color: #6c757d;
        color: #ffffff !important;
    }

a.btn.btn-primary.create-action {
    background-color: #303030;
    color: #ffffff !important;
    border-color: #303030;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    width: fit-content;
    border-bottom-left-radius: 6px !important;
    border-bottom-right-radius: 6px !important;
    border-top-left-radius: 6px !important;
    border-top-right-radius: 6px !important;
}

    a.btn.btn-primary.create-action:hover,
    a.btn.btn-primary.create-action:focus,
    a.btn.btn-primary.create-action:active {
        background-color: #BE2D1A;
        border-color: #BE2D1A;
        color: #ffffff !important;
    }

    a.btn.btn-primary.create-action:disabled {
        background-color: #6c757d;
        border-color: #6c757d;
        color: #ffffff !important;
    }

.link-dmo {
    color: #BE2D1A;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

    .link-dmo:hover,
    .link-dmo:focus {
        color: #303030;
        text-decoration: underline;
    }

.btn-entitylist-filter-submit {
    background-color: #303030 !important;
    color: #ffffff !important;
    border-color: #303030 !important;
    transition: background-color 0.3s ease, border-color 0.3s ease !important;
    width: fit-content !important;
    border-bottom-left-radius: 6px !important;
    border-bottom-right-radius: 6px !important;
    border-top-left-radius: 6px !important;
    border-top-right-radius: 6px !important;
}

    .btn-entitylist-filter-submit:hover,
    .btn-entitylist-filter-submit:focus,
    .btn-entitylist-filter-submit:active {
        background-color: #BE2D1A !important;
        border-color: #BE2D1A !important;
        color: #ffffff !important;
    }

    .btn-entitylist-filter-submit:disabled {
        background-color: #6c757d !important;
        border-color: #6c757d !important;
        color: #ffffff !important;
    }

    .dmo-button-fix {
        border-radius: 6px!important;
    }

/* Alerts and messages */
.dmo-warning {
    padding: 10px;
    font-weight: bold;
}

.validation-summary .validation-header {
    color: #303030;
}

.validation-summary a {
    color: #303030 !important;
}

/* Forms */
.crmEntityFormView table tr td.cell:first-child {
    padding-left: 0;
}

.crmEntityFormView .actions {
    border: none;
}

.crmEntityFormView {
    border: none !important;
}

.modal-header {
    background-color: #303030;
}

.modal-title {
    color: #ffffff !important;
}

.form-close {
    color: #ffffff !important;
}

    .form-close:hover {
        color: #ffffff !important;
    }

.tab-title {
    color: #303030;
    border-bottom: 2px solid #BE2D1A !important;
}

.actions {
    border-top: 2px #303030 solid !important;
}

.grid-actions {
    border-bottom: none !important;
}

div .view-grid {
    border-top: none !important;
    border-bottom: none !important;
}

.view-empty.message {
    padding: 20px;
    background-color: #f5f5f5;
}

.day.disabled {
    background-color: #f5f5f5 !important;
}

.bootstrap-datetimepicker-widget .day.disabled button {
    background-color: #f5f5f5 !important;
    background: 0 0 !important;
    color: #777 !important;
    cursor: not-allowed !important;
}

.control .text-muted[aria-hidden="true"] {
    display: none !important;
}

.input-group-text {
    display: none;
}

    .input-group-text.dmo-input-group-text {
        display: inherit;
    }

/* Banner Messages */
.carousel-inner {
    min-height: 50px;
}

.carousel-item {
    min-height: 50px;
    padding: 10px;
}


.carousel-control-prev,
.carousel-control-next {
    filter: invert(1);
}

.dmo-banner-message-std {
    background-color: #E9ECEF;
    min-height: inherit;
    text-align: center;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.dmo-banner-message-info {
    background-color: #E3F8FF;
    min-height: inherit;
    text-align: center;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.dmo-banner-message-warning {
    background-color: #F5E6E4;
    min-height: inherit;
    text-align: center;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

html[dir=ltr] li a {
    margin-left: 0 !important;
}

.entity-grid .view-grid {
    min-height: 200px;
}