﻿.layout-main {
    display: flex;
    flex-direction: column;
    height: calc(100% - 50px);
    overflow-y: auto !important;
}

.my-card {
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2);
    border: none;
}

.my-card-header {
    padding-bottom: 10px;
    padding-top: 10px;
}

.my-content {
    flex: 1;
    overflow-y: auto;
}

.my-grid {
    max-height: calc(100vh - 230px);
}

.my-edit-popup {
    max-width: 1200px !important;
    width: 70% !important;
}

@media(max-width: 576px) {
    .my-edit-popup {
        width: 90% !important;
    }
}

@media (max-width: 768px) and (min-width:576px) {
    .my-edit-popup {
        width: 80% !important;
    }
}

.validation-message {
    margin-top: 6px !important;
    color: #DC3545;
}

.my-edit-form {
    max-height: calc(90vh - 110px);
    overflow: auto;
}

    .my-edit-form .dxbl-row {
        width: 100%;
    }


.layout {
    --bb-layout-sidebar-width: 300px;
    --bb-layout-header-background: #fff;
    --bb-layout-headerbar-border-color: black;
    --bb-layout-headerbar-color: black;
    --bb-layout-headerbar-background: #fff;
    --bb-layout-sidebar-background: #f5f5f5;
    --bb-layout-header-height: 56px;
}

.layout-header-bar {
    border: none !important;
}

.layout-header {
    border-bottom: none !important;
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
}

.layout .layout-header .layout-header-bar .fa-bars {
    font-size: larger;
}

.dxbl-popover:has(.user-menu) {
    border-radius: 12px;
}

.dxbl-flyout-body:has(.user-menu) {
    padding: unset !important;
}

.required-caption:after {
    content: "*";
    color: #DC3545;
}

/* Loading Panel */
.loading-panel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.loading-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-panel-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e0e0e0;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 14px;
    color: #666;
}
