﻿
/*For All*/

/*For MudScrollToTop*/
.scrollable-content {
    /* Optional: Add a fixed height and overflow-y to make the MudPaper scrollable internally */
    /* height: 500px;
        overflow-y: auto; */
    position: relative; /* Needed to position the scroll-to-top button relative to this container if desired */
}

.scroll-to-top {
    position: fixed; /* Fix the button to the viewport */
    bottom: 20px; /* Adjust as needed */
    right: 20px; /* Adjust as needed */
    z-index: 1000; /* Ensure it's above other content */
}

body {
    margin: 0;
    padding: 0;
}

.text-center {
    text-align: center;
}

/* Additional styling for dark mode compatibility */
.mud-dark-mode .dropdown-header {
    border-bottom-color: var(--mud-palette-divider);
}

/*For List Page*/

.main-div-list-page {
    margin-bottom: 50px;
    margin-top: -20px;
}

.div-mud-progress-circular {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 600px;
}

.span-style {
    margin-top: 16px;
    font-size: 16px;
    color: #666;
}

.div-no-record {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    height: 100%;
    padding: 16px;
}

.div-actions {
    width: 100%;
    text-align: center;
    font-weight: bold;
}

.div-actions-buttons {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.invisible {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.visible {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.user-profile-menu .mud-menu-activator {
    padding: 8px;
}

.cursor-pointer {
    cursor: pointer;
}

.dropdown-header {
    border-bottom: 1px solid var(--mud-palette-divider);
}

.mud-divider {
    margin: 4px 0;
}

.mud-table-container {
    width: 100% !important;
}

/* Sticky Footer List Page*/
.sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Ensure the footer is on top of other content */
    box-sizing: border-box; /* Include padding in the element's total width and height */
}

.mud-paper-for-create-new-button {
    padding-left: 0px;
    box-shadow: none;
    margin-top: -10px;
    margin-bottom: 20px;
}


/*For Data Entry Page*/


.mudcontainer-data-entry-page {
    margin-bottom: 50px
}

.mudcard-data-entry-page {
    border: 1px solid #DDDDDD;
    box-shadow: 0 0 8px rgba(0,0,0,0.08);
}

/* Enhanced styling for disabled fields to look like enabled fields */
.normal-disabled .mud-input-label {
    color: rgba(0, 0, 0, 0.87) !important; /* Same as enabled label color */
    opacity: 1 !important;
    font-weight: 400 !important;
}

.normal-disabled .mud-input-root {
    cursor: text !important;
    opacity: 1 !important;
}

.normal-disabled .mud-input-slot {
    color: rgba(0, 0, 0, 0.87) !important; /* Same as enabled text color */
    opacity: 1 !important;
}

.normal-disabled .mud-input {
    color: rgba(0, 0, 0, 0.87) !important;
    opacity: 1 !important;
    background-color: transparent !important;
}

.normal-disabled .mud-input-underline:before {
    border-bottom-color: rgba(0, 0, 0, 0.42) !important; /* Same as enabled underline */
    opacity: 1 !important;
}

.normal-disabled .mud-input-underline:after {
    border-bottom-color: var(--mud-palette-primary) !important;
}

/* For filled variant if you're using it */
.normal-disabled .mud-input-filled {
    background-color: rgba(0, 0, 0, 0.04) !important;
    opacity: 1 !important;
}

/* For outlined variant if you're using it */
.normal-disabled .mud-input-outlined .mud-input-outlined-border {
    border-color: rgba(0, 0, 0, 0.42) !important;
    opacity: 1 !important;
}

/* Dark mode support */
.mud-theme-dark .normal-disabled .mud-input-label {
    color: rgba(255, 255, 255, 0.87) !important;
}

.mud-theme-dark .normal-disabled .mud-input-slot,
.mud-theme-dark .normal-disabled .mud-input {
    color: rgba(255, 255, 255, 0.87) !important;
}

.mud-theme-dark .normal-disabled .mud-input-underline:before {
    border-bottom-color: rgba(255, 255, 255, 0.42) !important;
}

.mud-theme-dark .normal-disabled .mud-input-filled {
    background-color: rgba(255, 255, 255, 0.04) !important;
}

.mud-theme-dark .normal-disabled .mud-input-outlined .mud-input-outlined-border {
    border-color: rgba(255, 255, 255, 0.42) !important;
}



/* Optional: Fix label */
.normal-disabled .mud-input-label {
    color: rgba(0, 0, 0, 0.6) !important;
    opacity: 1 !important;
}

/* Optional: make the field feel interactive */
.normal-disabled .mud-input-root {
    cursor: text !important;
}


/* For Footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-top: 1px solid var(--mud-palette-lines-default);
    background: var(--mud-palette-background);
}

/*For List Common Components - Such as CityListComponent, CurrencyListComponent, .. */

.titile-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-dialog-title {
    font-size: 1rem;
}

.main-div-list-page-component {
    margin-bottom: 50px;
    border: 1px solid lightgrey;
}

.fullscreen-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(4px) !important;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000000 !important;
}
