/* =====================
   Variables
====================== */
:root {
    --primary-color: #2e8741;
    --secondary-color: #37a74f;
    --z-index-high: 2000 !important;
    --font-europa-bold: "europa-bold";
    --font-europa-regular: "europa-regular";
    --default-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
    --rz-primary: #2e8741 !important; /* Primary color */
    --rz-secondary: #37a74f !important; /* Secondary color */
    --rz-secondary-lighter: #e6ebe7 !important; /* Secondary color */
    --rz-success: #28a745 !important; /* Success color */
    --rz-danger: #dc3545 !important; /* Danger color */
    --rz-warning: #ffc107 !important; /* Warning color */
    --rz-info: #37a74f !important; /* Info color */
    --rz-light: #f8f9fa !important; /* Light color */
    --rz-dark: #000000 !important; /* Dark color */
    --rz-tertiary: #6c757d !important; /* Tertiary color */
    --rz-dialog-zindex: 2000 !important; /* Dialog z-index */
    --rz-card-flat-background-color: #e6ebe7 !important;
    --rz-menu-top-item-hover-background-color: #e6ebe7 !important;
    --rz-menu-item-hover-background-color: #e6ebe7 !important;
    --rz-on-primary-lighter: #37a74f !important;
    /*--rz-text-tertiary-color: #37a74f !important;*/
    --rz-menu-item-icon-color: #37a74f !important;
    --rz-menu-top-item-icon-hover-color: #2e8741 !important;
    --rz-menu-top-item-border-radius: 10px !important;
    --rz-menu-item-hover-color: #37a74f !important;
    --rz-menu-top-item-hover-color: #37a74f !important;
    --rz-on-info-lighter: #FFFFFF !important;
    --rz-info-lighter: rgba(55, 167, 79, 0.73) !important;
    --rz-paginator-numeric-button-selected-background-color: rgba(55, 167, 79, 0.29) !important;
}

/* =====================
   Font Import
====================== */
@import url("open-iconic/font/css/open-iconic-bootstrap.min.css");

/* =====================
   Font Faces
====================== */
@font-face {
    font-family: "arquitectaoffice-regular";
    src: url("../fonts/arquitectaoffice-regular.woff");
}

@font-face {
    font-family: "arquitectaoffice-bold";
    src: url("../fonts/arquitectaoffice-bold.woff");
}

/* Europa fonts */
@font-face {
    font-family: "europa-light";
    src: url("../fonts/europa-light.woff");
}

@font-face {
    font-family: "europa-lightitalic";
    src: url("../fonts/europa-lightitalic.woff");
}

@font-face {
    font-family: "europa-regular";
    src: url("../fonts/europa-regular.woff");
}

@font-face {
    font-family: "europa-regularitalic";
    src: url("../fonts/europa-regularitalic.woff");
}

@font-face {
    font-family: "europa-bold";
    src: url("../fonts/europa-bold.woff");
}

@font-face {
    font-family: "europa-bolditalic";
    src: url("../fonts/europa-bolditalic.woff");
}

/* =====================
   Global Styles
====================== */
html,
body {
    font-family: var(--default-font);
    height: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
    background: #f7f7f7 !important;
}

/* Headings */
.h1,
h1,
.h2,
h2,
.h3,
h3,
.h4,
h4,
.h5,
h5 {
    font-family: var(--font-europa-bold);
}

.h6,
h6 {
    font-family: var(--font-europa-regular);
}

.h1,
h1 {
    font-size: 2rem;
}

/* Navbar */
/*.navbar {
    background-image: linear-gradient(to right, #343a40, #407149);
}*/

/* Links and Buttons */
a,
.btn-link {
    color: #28482c;
}

.btn-primary {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

    .btn-primary:hover,
    .btn-primary:active {
        color: #fff;
        background-color: var(--secondary-color);
        border-color: var(--secondary-color);
    }

    .btn-primary:disabled {
        color: #fff;
        opacity: 0.6;
        background-color: #28482c;
        border-color: #28482c;
        cursor: not-allowed;
    }

/* Content and Labels */
.content {
}

.statuslabel {
    color: white;
    padding: 8px;
}

.success {
    background-color: #04aa6d;
}

.info {
    background-color: #2196f3;
}

.warning {
    background-color: #ff9800;
}

.danger {
    background-color: #f44336;
}

.other {
    background-color: #e7e7e7;
    color: black;
}

/* Validation */
.valid.modified:not([type="checkbox"]) {
    outline: 1px solid #28482c;
}

.invalid,
.validation-message {
    color: red;
    outline: 1px solid red;
}

/* =====================
   Animated Effects
====================== */
@keyframes rainbow {
    0% {
        color: red;
    }

    14% {
        color: orange;
    }

    28% {
        color: yellow;
    }

    42% {
        color: green;
    }

    57% {
        color: blue;
    }

    71% {
        color: indigo;
    }

    85% {
        color: violet;
    }

    100% {
        color: red;
    }
}

.rainbow-icon {
    animation: rainbow 3s linear infinite;
}

.selected-automation::after {
    content: '\279C';
    font-size: 2.5em;
    color: #4CAF50;
    margin-left: 10px;
    animation: pulse 1s infinite ease-in-out;
}

.pulse {
    animation: pulse 1s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* =====================
   Media Queries
====================== */
@media screen and (max-width: 600px) {
    .statuslabel,
    .container,
    .mobileTextbox {
        font-size: smaller;
        max-width: 85% !important;
        width: 100% !important;
    }

    .hideMobile {
        visibility: hidden;
        display: none;
    }
}

@media (min-width: 1200px) {
    .fix-lg-col-padding-right {
        padding-right: 0px;
    }
}

@media (max-width: 1200px) {
    .fix-sm-col-padding-bottom {
        padding-bottom: 16px;
    }
}

@media only screen and (max-width: 480px) {
    .tablemobile {
        overflow-x: auto;
        display: block;
    }
}

@media screen and (max-width: 600px) {
    table.style1 thead {
        display: none;
    }

    table.style1 td {
        display: flex;
        width: 100% !important;
    }

        table.style1 td::before {
            content: attr(label);
            font-weight: bold;
            width: 120px;
            min-width: 120px;
        }

    .responsive-td {
        width: 100% !important;
        max-width: none !important;
    }
}

@media screen and (max-width: 1500px) {
    table.style2 thead {
        display: none;
    }

    table.style2 tr {
        line-height: 1;
    }

    table.style2 td {
        display: block;
        width: 100%;
        padding: 0px;
        margin: 0px;
    }

        table.style2 td::before {
            content: attr(label);
            font-weight: bold;
            width: 120px;
            min-width: 120px;
            padding: 0px;
            margin: 0px;
            vertical-align: middle;
        }

    .responsive-td {
        width: 100% !important;
        max-width: none !important;
    }

    .responsive-section-padding {
        padding-top: 20px !important;
    }

    .remove-responsive-section-padding {
        padding-top: 0px !important;
    }
}

@media (min-width: 2000px) {
    .custom-row .col-xxl-3 {
        flex: 0 0 25%;
        max-width: 25%;
        padding-bottom: 20px;
    }
}

@media (max-width: 2000px) {
    .customer-input-container {
        flex-wrap: wrap;
    }

    .input-id,
    .input-name {
        flex: 1 0 100%; /* Full width on smaller screens */
    }
}

@media (max-width: 768px) {
    .custom-column-job-datetimes {
        padding-right: 0;
        padding-left: 0;
    }
}

.conditional-break {
    display: none;
}

@media (max-width: 600px) {
    .conditional-break {
        display: inline;
    }
}

@media (max-width: 600px) {
    .item-content {
        flex-direction: column;
        align-items: start;
    }

    .backup-name {
        margin-bottom: 10px; /* Spacing between name and buttons on small screens */
    }
}

/* =====================
   Accordion Styles
====================== */
/* Accordion */
.e-accordion .e-acrdn-item.e-select > .e-acrdn-header {
    justify-content: center;
    text-align: center;
    font-weight: bold !important;
    background: #f7f7f8;
}

.e-accordion {
    margin-bottom: 10px;
}

    .e-accordion .e-acrdn-item.e-selected > .e-acrdn-header > .e-toggle-icon,
    .e-accordion
    .e-acrdn-item.e-selected > .e-acrdn-header > .e-acrdn-header-content {
        font-weight: bold;
        color: #0d6efd;
        background-color: #f7f7f8;
    }

    .e-accordion .e-acrdn-item.e-select.e-active > .e-acrdn-header,
    .e-accordion .e-acrdn-item.e-select.e-item-focus > .e-acrdn-header {
        background-color: #f7f7f8 !important;
    }

/* =====================
   Component Re-Style
====================== */

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.radzenDialog {
    border-radius: 10px !important;
}

.mud-card {
    border-radius: 10px !important;
    z-index: 10;
}

.mud-card-content {
    padding: 0px 16px 16px 16px !important;
}

.mud-card-header {
    padding-bottom: 0px !important;
}

.mud-layout {
    height: auto !important;
}

.mud-tabs.mud-tabs-rounded {
    border-radius: 10px !important;
    background: #ffffff;
}

    .mud-tabs.mud-tabs-rounded .mud-tabs-toolbar {
        border-radius: 10px !important;
    }

.mud-tab {
    font-weight: bolder !important;
    font-size: 1.5rem !important;
    text-transform: none !important;
    font-family: "europa-bold" !important;
}

.mud-popover {
    z-index: 3000 !important;
}

#mud-snackbar-container {
    z-index: 3000 !important;
}

/* Modals */
.blazored-modal,
.blazored-modal-container,
.rz-dialog-wrapper .rz-dialog,
.custom-modal-overlay,
.custom-modal-overlay-blurry,
.custom-modal-position,
.modal {
    z-index: var(--z-index-high) !important;
}

.custom-modal-overlay-blurry {
    backdrop-filter: blur(10px);
}

.custom-modal-position {
    height: auto;
    width: auto;
    overflow-y: auto;
    align-items: normal;
    margin-right: 1%;
    margin-left: 1%;
}

.blazored-modal-content {
    height: auto;
    width: auto;
    overflow-y: auto;
    margin-right: 1%;
    margin-left: 1%;
    align-items: normal;
    max-height: 70vh;
}

.rz-state-highlight {
    background-color: #28482c;
}


/* =====================
   Other Styles
====================== */

/* Spinner */
.spinner {
    border: 16px solid silver;
    border-top: 16px solid var(--primary-color);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    animation: spin 700ms linear infinite;
    position: absolute;
    z-index: 10;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Table */
table {
    table-layout: fixed;
    width: 100%;
}

td {
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
}

.fa fa-sort-up {
    color: black;
}

.fa fa-sort-down {
    color: black;
}

.sort-link {
    cursor: pointer;
    color: black;
    text-decoration: underline;
}

/* =====================
   Footer Circles
====================== */

/* CTA Circles */
#bottom-cta-circle-one,
#bottom-cta-circle-two {
    position: absolute;
    border-radius: 50%;
}

#bottom-cta-circle-one {
    background: var(--primary-color);
    width: 200px;
    height: 200px;
    left: -90px;
}

#bottom-cta-circle-two {
    background: #28482c;
    width: 70px;
    height: 70px;
    right: -33px;
    bottom: 50px;
}

#bottom-cta {
    text-align: center;
    overflow: hidden;
    height: 115px;
    position: relative;
    left: 0;
    width: 100%;
    bottom: 0;
}

/* WOW Animations */
.wow {
    visibility: hidden;
}

.zoomIn {
    animation-name: zoomIn;
}

/* Languages Grid */
#languagesGrid {
    display: grid;
    grid-gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

@media (max-width: 600px) { /* Small screens */
    #languagesGrid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (min-width: 601px) and (max-width: 992px) { /* Medium screens */
    #languagesGrid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 993px) { /* Large screens */
    #languagesGrid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* =====================
   Base App Error Styling
====================== */

.error-ui {
    display: flex;
    align-items: center;
    position: fixed;
    bottom: 10px;
    right: 10px;
    background-color: #f4f4f4; /* light gray */
    color: #333; /* dark gray */
    padding: 8px 12px;
    border-radius: 5px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000; /* make sure it's on top */
    display: flex;
    align-items: center;
    font-size: 14px;
}

    .error-ui i {
        margin-right: 8px;
        color: #ffffff;
    }

    .error-ui a {
        margin-left: 10px;
        color: #007bff; /* link color */
        text-decoration: underline;
    }

.exclamation-animation {
    display: inline-flex;
    align-items: flex-end;
    margin-right: 10px;
    height: 20px;
}

.exclamation {
    font-size: 20px;
    position: relative;
    bottom: 0;
    align-self: flex-end;
    animation: popUp 0.5s ease forwards, bobbing 2s ease-in-out infinite;
    animation-delay: 0s, 0.5s;
}

@keyframes popUp {
    0%, 100% {
        transform: translateY(100%);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes bobbing {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20%);
    }
}


/* =====================
   Footer and Layout
====================== */

#footer {
    bottom: 0;
    width: 100%;
    /* background: #343a40;
    color: white;
    text-align: center;
    padding: 1rem; */
}

#page-container {
    position: relative;
    background-color: #f7f9fb;
}

#content-wrap-center {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 85vh;
    text-align: left;
}

/* =====================
   End of CSS
====================== */
