﻿.fullscreen-content {
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    background: linear-gradient(75deg, rgb(3 106 196 / 15%), transparent) !important;
}

.custom-paper-background {
    background: transparent;
}

.selected-content {
    background: linear-gradient(75deg, rgb(255 195 0 / 75%), transparent) !important;
}

.background-content {
    background: linear-gradient(75deg, rgb(3 106 196 / 15%), transparent) !important;
    transition: background 0.3s ease;
}

    .background-content:hover {
        animation: gradient-shift 3s infinite alternate ease-in-out;
    }

.main-content {
    height: 80vh !important;
}

.column-header {
    font-weight: bold !important;
}

.mud-input-control.mud-input-required >
.mud-input-control-input-container >
.mud-input-Page::after {
    color: red;
}

.action-column {
    width: 1%;
    white-space: nowrap;
}

.text-truncate {
    white-space: nowrap; /* Prevent text from wrapping to the next line */
    overflow: hidden; /* Hide overflowed text */
    text-overflow: ellipsis; /* Show ellipsis (...) for overflowed text */
    width: 20%;
}

/*.text-end * {
    text-align: right !important;
}

.text-center * {
    text-align: center !important;
}*/

.hover-effect {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

    .hover-effect::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        height: 4px; /* Thickness of the line */
        width: 0; /* Start with no width */
        background: linear-gradient(90deg, rgba(3, 106, 196, 0.4), rgba(3, 106, 196, 1));
        transition: width 0.3s ease; /* Smooth width expansion */
        z-index: 0; /* Keeps the line behind other elements */
    }

    .hover-effect:hover {
        transform: scale(1.05); /* Slight scaling on hover */
    }

        .hover-effect:hover::before {
            width: 100%; /* Expands line to full width on hover */
        }

    .hover-effect img {
        transition: transform 0.3s ease;
        position: relative;
        z-index: 1; /* Keeps the image above the gradient line */
    }

    .hover-effect:hover img {
        transform: scale(1.1); /* Slight zoom-in on the image */
    }

    .hover-effect p {
        transition: color 0.3s ease, padding 0.3s ease;
        position: relative;
        z-index: 1; /* Keeps text above the gradient line */
    }

    .hover-effect:hover p {
        padding-top: 2px;
        font-weight: bolder;
        color: #007bff; /* Change text color on hover */
    }

/* GlobalLoading.razor.css */
.global-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-indicator {
    text-align: center;
    padding: 20px;
    color: white;
}

/**/
.table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    margin-bottom: 30px;
}

    .table th,
    .table td {
        padding: 6px;
        border: 1px solid #ddd;
    }

    .table th {
        background-color: #f4f4f4;
        font-weight: bold;
    }

    .table tr:nth-child(even) {
        background-color: #f9f9f9;
    }

    .table tr:hover {
        background-color: #eaeaea;
    }

@media print {
    body {
        background-color: white;
        color: black;
    }

    /* Hide elements that shouldn't be printed */
    .no-print {
        display: none;
    }
}

hr.dot {
    border-top: 1px dotted !important;
    margin: 10px !important;
}

/**/
/* Wrapper div to create scrollable area */
.table-wrapper {
    position: relative;
    max-height: 400px; /* Set the max height for the scrollable area */
    overflow-y: auto; /* Enable vertical scrolling */
    overflow-x: auto; /* Enable horizontal scrolling, if needed */
    border: 1px solid #dee2e6; /* Optional: Add border around the table */
    padding: 0; /* Remove extra spacing */
}

/* Sticky header row */
.sticky-header th {
    position: sticky;
    top: 0;
    z-index: 2; /* Keep the header above other rows */
    background-color: #f8f9fa; /* Header background color */
}

/* Sticky summary row */
.sticky-top-row {
    position: sticky;
    top: 37px; /* Adjust this to match the header row height */
    z-index: 1; /* Keep the summary row above the content rows but below the header */
    background-color: #e9ecef; /* Summary row background color */
}

    /* Add border and text styles */
    .sticky-header th,
    .sticky-top-row th {
        border: 1px solid #dee2e6;
        padding: 8px; /* Adjust padding to your liking */
        text-align: left; /* Align text in the header */
    }

.table td,
.table th {
    text-align: left;
    vertical-align: middle;
}

.centered-div {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Skeleton loading style */
.skeleton {
    display: inline-block;
    width: 100%; /* Adjust width for your layout */
    height: 1em; /* Adjust height for your layout */
    background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    animation: shimmer 1.5s infinite;
}

/* Skeleton loading animation */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Add spacing for stacked skeletons */
.skeleton-stack > .skeleton {
    margin-top: 0.8em;
    margin-bottom: 0.8em; /* Space between skeleton items */
}

    .skeleton-stack > .skeleton:last-child {
        margin-bottom: 0; /* Remove margin from the last skeleton item */
    }

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    z-index: 1000; /* Ensure it sits above the content */
    pointer-events: all; /* Ensures it's non-interactive */
    cursor: not-allowed;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-baseline {
    align-items: baseline;
}

.bottom-end-button {
    position: absolute;
    bottom: 16px;
    right: 16px;
}

.mud-table-dense * .mud-table-row .mud-table-cell {
    padding: 5px 5px 5px 10px !important;
    padding-inline-start: 10px !important;
    padding-inline-end: 10px !important;
}

/* ✅ Bo tròn Editor */
.mudItem {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.ql-toolbar {
    border-radius: 4px 4px 0 0;
    background: #f8f8f8;
    border-bottom: 1px solid #ccc; /* Viền ngăn cách toolbar với nội dung */
}

.ql-container {
    border-radius: 0 0 4px 4px;
}