@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html,
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a,
.btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* .content {
    padding-top: 1.1rem;
} */

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: #fff4e5;
    /* zacht oranje-achtig */
    color: #663c00;
    /* donkere tekst voor contrast */
    border: 1px solid #ffcc80;
    border-radius: 8px;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
    display: none;
    padding: 1rem 2.5rem 1rem 1.25rem;
    position: fixed;
    width: 90%;
    max-width: 600px;
    z-index: 1000;
    font-family: "Segoe UI", Roboto, sans-serif;
    font-size: 0.95rem;
    animation: slideUp 0.3s ease-out;
}

/* Dismiss button (X) */
#blazor-error-ui .dismiss {
    text-decoration: none;
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 0.8rem;
    font-size: 1.2rem;
    color: #a65b00;
    transition: color 0.2s;
}

#blazor-error-ui .dismiss:hover {
    color: #e65100;
}

/* Animatie voor binnenkomen */
@keyframes slideUp {
    from {
        transform: translate(-50%, 150%);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbm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NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.blazored-toast-container {
    z-index: 9999 !important;
}

.mt-0 {
    margin-top: 0px;
}

.mr-1 {
    margin-right: 4px;
}

.mr-2 {
    margin-right: 8px;
}

.mr-3 {
    margin-right: 12px;
}

.mr-4 {
    margin-right: 16px;
}

.mr-5 {
    margin-right: 20px;
}

.maxh-100 {
    max-height: 100%;
}

.popup-image {
    /*max-width: 80% !important;*/
    /*width: auto !important;*/
    text-align: center;
}

.popup-image-img {
    max-width: 100% !important;
    height: 100%;
    /*max-height: 65vh !important;*/
    vertical-align: middle;
    object-fit: contain;
}

.expense-pdf-iframe {
    width: 100%;
    /*height: 100%;*/

    height: calc(100% - 36px);
    /*    max-height: 80vh;
*/
}

.popup-pdf-iframe {
    width: 80vw;
    height: 80vh;
}

.maxvh30 {
    max-height: 30vh;
}

.maxvh60 {
    max-height: 60vh;
}

.maxvh70 {
    max-height: 70vh;
}

.maxvh80 {
    max-height: 80vh;
}

.maxvh90 {
    max-height: 90vh;
}

.max-height300px {
    max-height: 300px;
}

.max-height400px {
    max-height: 400px;
}

.button-tile {
    height: 100px;
    width: 300px;
    margin-right: 10px;
    margin-bottom: 10px;
}

.button-tile-small-screen {
    height: 80px;
    width: 100%;
    margin-bottom: 10px;
}

/*
    Disable double tap zoom on mobile devices!
    Enable panning and pinch zoom gestures, but disable additional non-standard gestures such as double-tap to zoom.
    https://stackoverflow.com/a/54207844
*/
* {
    touch-action: manipulation;
}

.hide-overflow {
    overflow: hidden;
}

/*
    Hide the uploaded files box since we use our own.
    This does mean that we see no upload progress. Leave it as is?
*/
div.dxuc-button-container>div.col:has(table.dxuc-file-view) {
    display: none;
}

.password-container {
    position: relative;
}

.show-password-icon {
    position: absolute;
    top: 50%;
    right: 10px;
    /* Adjust the right margin as needed */
    transform: translateY(-50%);
    cursor: pointer;
}

.show-password-icon>span {
    top: unset;
    vertical-align: middle;
}

/*Allow use stop use more space on top and bottom of a popup by hiding the col divs */
div.dxbl-modal-body div.col {
    display: none;
}

@media (max-width: 767px) {
    dxbl-grid.HideHeaderOnMobile tr.dxbl-grid-header-row {
        display: none;
    }
}

dxbl-modal-dialog.IniPopup {
    /*max-height: 100% !important;*/
    /*max-width: 1400px !important;*/
    width: fit-content !important;
    margin: 0px !important;
    /* Default is 28px, too much on mobile.*/
    overflow-y: auto;
    /* Needed so scrollbar shows */
    word-wrap: break-word;
    height: 100vh !important;
}

@media (max-width: 767px) {
    dxbl-modal-dialog.IniPopup {
        height: 100% !important;
    }

    dxbl-modal-dialog.IniPopup>div.dxbl-modal-content {
        max-height: 100% !important;
    }
}

.AutoXOverflowBreakWord {
    overflow-x: auto;
    word-wrap: break-word;
}

.sidebar-element-icon {
    font-size: 20px !important;
    width: 3.6rem !important;
    text-align: center !important;
}

.dxbl-btn.dxbl-menu-item-mute-selection {
    padding-left: 0px;
    background-color: transparent;
}

.dxbl-menu-item-text {
    font-size: 18px;
}

.dxbl-menu {
    background-color: transparent !important;
}

.logo {
    margin: auto;
    padding: 0 20px;
}

.logoheader {
    /* content: url('/images/logo_initeam_RGB-blue.svg'); */
    content: url('/images/logo-inidocs-fullblue.svg');
    max-width: 150px;
    margin-left: 20px;
}

.bg-img {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-image: url('/images/Initeam-ERP-software.png');
    position: absolute;
    filter: brightness(0.5);
    /* White-out effect */
    z-index: -1;
}

.h-100 {
    height: 100% !important
}

.w-100 {
    width: 100% !important
}

.content-group {
    width: 100%;
    max-width: 450px;
}

.form-group {
    background-color: rgba(255, 255, 255, 0.8);
    /* Semi-transparent white background */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 1s;
    width: 100%;
    margin-top: 20px;
}

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: transparent;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #FFFFFF;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
    color: #FFFFFF;
    content: var(--blazor-load-percentage-text, "Loading");
}

.loading-container-linear {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-progress-linear {
    width: 100%;
    /* Adjust the width as needed */
    height: 1.5rem;
    background-color: #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.loading-progress-linear-bar {
    height: 100%;
    background-color: #6ba3fc;
    /* Bar color */
    width: var(--blazor-load-percentage, 0%);
    /* Controlled by updating the style attribute */
    transition: width 0.3s ease;
    border-radius: 8px;
}

.loading-progress-linear-text {
    position: absolute;
    top: 0rem;
    /* Adjust the position based on your design needs */
    text-align: center;
    width: 100%;
    color: #FFFFFF;
    /* Text color */
    font-weight: bold;
}

.loading-progress-linear-text:after {
    content: var(--blazor-load-percentage-text, "Loading...");
}

.loading-progress-linear-text.no-after::after {
    content: none !important;
}

.app-sidebar-top {}

.app-sidebar-end {
    position: sticky;
    top: 100%;
    /*margin-bottom: 5px;*/
}

.dxbl-menu-list-item {
    height: 40px;
}


.drop-zone {
    transition: border linear 0.2s;
    height: 100%;
}

.drop-zone.hover {
    border: dashed 2px darkorange;
}

.customFileUpload {
    background-color: #4CAF50;
    /* Green background */
    border: none;
    /* Remove borders */
    color: white;
    /* White text */
    padding: 5px 24px;
    /* Some padding */
    text-align: center;
    /* Center the text (if necessary) */
    text-decoration: none;
    /* No underline */
    display: inline-block;
    /* Use inline-block */
    font-size: 14px;
    /* Set font size */
    margin: 2px 2px;
    /* Some margin */
    cursor: pointer;
    /* Pointer/hand icon */
    border-radius: 3px;
    /* Rounded corners */
    transition-duration: 0.4s;
    /* Smooth transition for hover effect */
}

.customFileUpload:hover {
    background-color: #45a049;
    /* Darker shade of green */
}

.preview-image-img {
    max-width: 100% !important;
    max-height: 100%;
    /*max-height: 65vh !important;*/
    vertical-align: middle;
    object-fit: scale-down;

    display: block;
    margin: 0 auto;
}

.email-body {
    border: 1px solid rgb(210, 210, 210);
    text-align: left;
    padding: 7px;
}


.email-attachments {
    border: 1px solid rgb(210, 210, 210);
    text-align: left;
    padding: 7px;
}

.showfilteronhover {
    -webkit-transition: opacity 0.5s ease-in-out;
    transition: opacity 0.5s ease-in-out;
    padding: 0px;
    overflow: hidden;
    float: left;
    width: 0;
    opacity: 0;
    z-index: 1 !important;
    position: absolute;

    /*text edit properties*/
    font-size: 0.875rem;
    line-height: 1.4285;
    background-color: #fff;
    color: #212529;
    border-color: #d2d2d2;
    border-style: none;
    border-width: 1px;
    border-radius: 0.1875rem;
}

.filterhoverzone:hover .showfilteronhover {
    opacity: 1;
    width: inherit;
    /*text edit properties*/
    font-size: 0.875rem;
    line-height: 1.4285;
    background-color: #fff;
    color: #212529;
    border-color: #d2d2d2;
    border-style: solid;
    border-width: 1px;
    border-radius: 0.1875rem;
    height: 30px;
    padding: 4px 6px 4px 6px;
    margin-left: 5px;
}

.rotateonhover {
    -webkit-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;
}

.filterhoverzone:hover .rotateonhover {
    /*rotate: 360deg;*/
}

.documentsGridSearchBox {
    width: 250px;
    float: right;
}

.gradient-background {
    background: linear-gradient(241deg, #6ba3fc, #295ba7, #ffffff);
    background-size: 180% 180%;
    animation: gradient-animation 27s ease infinite;
    /* position: absolute; */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    padding: 20px;
}

.dxGridColumnWrap {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dxbl-tabs-content-panel {
    height: 100% !important;
}

@keyframes gradient-animation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.navbar-toggle-btn {
    height: 100% !important;
    border-radius: 0 !important;
    width: 3.6rem !important;
}

.dxbl-toolbar-dropdown-item>.dxbl-toolbar-menu-item>.dxbl-toolbar-item-tmpl {
    width: 100%;
}

.tab-content-dashboard {
    border-left: 1px solid #DEE2E6;
    border-right: 1px solid #DEE2E6;
    border-bottom: 1px solid #DEE2E6;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;

    padding-top: 15px;
    padding-bottom: 15px;
    padding-left: 15px;
    padding-right: 15px;

    background-color: #fff;
}

/* When upgrading devexpress v23 to v24 this appeared under all lists. Seems the only way to hide this is with css. */
.dxbl-a11y-status-helper {
    display: none;
}

/* Extra Tags - Placed here to CSS isolation on the respective pages*/
.header-navbar-menuitem {
    margin-top: 3px;
}

.sidebar-title .sidebar-element-icon {
    font-size: 24px !important;
    width: 3.6rem !important;
    opacity: 1 !important;
}

.sidebar-title .dxbl-menu-item-text {
    font-size: 24px;
    font-weight: 600;
}

.sidebar-title .dxbl-btn.dxbl-disabled {
    opacity: 1;
}

.sidebar-title {
    height: 50px !important;
    background: linear-gradient(180deg, #ffffff00, #ffffff00, rgb(237 237 237));
    /* border-left: #6f42c1 solid 3px; */
}

.app-sidebar-end .sidebar-element {
    border-top: #d2d2d2 solid 1px;
    height: 45px;
}

.tab-pane.fade.show.active {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

@media (max-width: 576px) {
    .tab-pane.fade.show.active.center {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .dxbl-group-header.dxbl-fl-group-header-tmpl {
        display: flex;
        flex-wrap: wrap;
    }
}

@media (min-width: 992px) {
    .w-lg-100 {
        width: 100%;
    }
}

.searchbox {
    width: 35%;
    display: flex;
    align-items: baseline;
    padding: 5px;
    margin-left: auto;
}

@media (max-width: 768px) {
    .searchbox {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .text-xs-center {
        text-align: center;
    }

    .hiddenHeaderTable {
        display: none;
    }

    .w-xs-full {
        width: 100%;
    }
}

.floating {
    position: absolute;
    bottom: 1rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    z-index: 999;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.floating-left {
    left: 1rem;
}

.floating-right {
    right: 1rem;
}

.floating-small {
    position: absolute;
    bottom: 4.5rem;
    right: 1rem;
    z-index: 998;
    display: flex;
    flex-direction: column;
    align-items: end;
    gap: 0.5rem;
}

.floating-active {
    transform: rotate(45deg);
}

.floating-fit {
    font-size: 1rem;
    border-radius: 0;
    border-top-left-radius: 3rem;
    border-bottom-left-radius: 3rem;
    right: 0;
    overflow: hidden;
    white-space: nowrap;
    width: fit-content;
    .dxbl-btn-caption {
        display: inline-block;
        opacity: 0;
        max-width: 0;
        overflow: hidden;
        transition: opacity 0.3s ease, max-width 0.3s ease;
        padding-left: 0;
    }
    &:hover {
        .dxbl-btn-caption {
            opacity: 1;
            max-width: 300px;
        }
    }
}


.font-15 {
    font-size: 1.5rem;
}

.floatingitem {
    background-color: white;
    border-radius: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.floating-badge {
    width: 1.2rem;
    height: 1.2rem;
    font-size: 0.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 3rem;
    bottom: 3rem;
    z-index: 999;
}

.pl-8 {
    padding-left: 2.5rem;
}

.version-item {
  border-left: solid 3px transparent;
}

.current-version-item {
  border-left: solid 3px;
  border-left-color: var(--bs-primary) !important;
  font-weight: bold;
}
