/*@import url('open.iconic/font/css/open-iconic-bootstrap.min.css');*/
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css");

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

html, body {
    height: 100%;
    overflow: hidden;
}

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

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.button-link {
    text-decoration: unset;
}

#blazor-error-ui {
    background: maroon;
    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;
        color: bisque
    }

.empty-data-area-template {
    display: flex;
    -o-justify-content: center;
    -webkit-justify-content: center;
    justify-content: center;
    -ms-align-items: center;
    -o-align-items: center;
    -webkit-align-items: center;
    align-items: center;
    width: 100%;
    height: 150px;
    padding: 2rem 0;
}


* {
    /* ReSharper disable CssNotResolved */
    /*    user-select: none;
    user-drag: none;*/
    app-region: no-drag;
    -webkit-tap-highlight-color: transparent;
}

    *:not(input) {
        user-select: none;
        -webkit-user-select: none;
    }

@supports (-webkit-touch-callout: none) {
    body {
        padding-top: env(safe-area-inset-top);
        padding-right: env(safe-area-inset-right);
        padding-bottom: env(safe-area-inset-bottom);
        padding-left: env(safe-area-inset-left);
    }
}

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

.dxbl-modal > .dxbl-modal-root {
    overflow: hidden;
}

/* ==================== REQUIRED FIELD INDICATOR ==================== */
/* Red asterisk color for required fields - applied inline in Caption */
.required-caption {
    color: #dc3545;
}

/* Simpler validation message styling */
.validation-message {
    font-size: 0.65rem;
    color: #dc3545;
}

/* ==================== FORM LAYOUT SPACING ==================== */
/* Compact spacing for mobile phones */
@media (max-width: 576px) {
    .dx-form-layout {
        margin: 0;
    }

    /* Reduce padding on form layout items */
    .dx-form-layout-item {
        margin-bottom: 0.5rem !important;
    }

    /* Reduce padding on input containers */
    .dx-form-layout-item-content {
        padding: 0 !important;
    }
}

/* ==================== MODAL OPTIMIZATION FOR MOBILE ==================== */
@media (max-width: 768px) {
    /* DxFormLayout in modals should be more compact */
    .dxbl-modal .dx-form-layout-item {
        margin-bottom: 0.5rem !important;
    }

    /* Reduce padding inside modal content */
    .dxbl-modal .dx-form-layout {
        padding: 0.5rem 0;
    }
}

@media (max-width: 576px) {
    /* Even more compact for small phones */
    .dxbl-modal .dx-form-layout-item {
        margin-bottom: 0.25rem !important;
    }

    .dxbl-modal .dx-form-layout {
        padding: 0.25rem 0;
    }

    /* Reduce padding on form layout groups */
    .dx-form-layout-item-caption {
        padding-bottom: 0.25rem !important;
    }
}

/* ==================== BUTTON STYLING FOR MOBILE ==================== */
@media (max-width: 576px) {
    /* Stack buttons on very small screens or keep them side by side but smaller */
    .dxbl-modal .dx-form-layout-item .btn {
        font-size: 0.875rem;
        padding: 0.375rem 0.75rem;
    }
}

/* ==================== BORDER STYLING ==================== */
.border-top {
    border-top: 1px solid #dee2e6;
    padding-top: 0.75rem !important;
}

@media (max-width: 576px) {
    .border-top {
        padding-top: 0.5rem !important;
    }
}

