/* Global Modal Layout System */

.modal-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: calc(90vh - 40px);
    /* 40px account for radzen dialog padding/margins */
    position: relative;
    background: #fff;
    border-radius: 8px;
    overflow: visible;
    /* Allow date picker popups to escape */
}

.modal-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
}

.modal-title-modern {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
}

.modal-content-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    /* Padding handled by tab-content-wrapper */
    min-height: 0;
    /* Important for flex-shrink/grow in chrome */
}

.tab-content-wrapper {
    padding: 20px 24px;
}

.modal-sticky-footer {
    display: flex;
    justify-content: end;
    gap: 12px;
    padding: 16px 24px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    flex-shrink: 0;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.02);
}




/* Custom Scrollbar for Premium Feel */
.modal-content-body::-webkit-scrollbar {
    width: 6px;
}

.modal-content-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.modal-content-body::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.modal-content-body::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}