﻿html, body {
    height: 100%;
    font-family: 'Roboto', sans-serif !important;
}

app {
    display: block;
    height: 100%;
}
.header-logo {
    background-image: url(../images/logo.svg);
    width: 180px;
    height: 24px;
    /* ... */
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}
.loading-image {
    width: 80px;
    height: auto;
}


#blazor-error-ui {
    background: inherit;
    bottom: 0;
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 100001;
}

.custom-action-button {
    background-color: green !important; /* Màu cam đỏ */
    color: white !important;
    
}
.custom-action-button-2 {
    background-color: orangered !important; /* Màu cam đỏ */
    color: white !important;
}

/* Responsive cho điện thoại */

/* Dashboard */
.border.full-height {
    height: 100%;
    display: flex;
    flex-direction: row; /* Mặc định ngang trên máy tính */
}

.gray-pane {
    background-color: #f0f0f0 !important;
    border: 1px solid #d0d0d0;
    flex-grow: 1;
}

/* DxSplitter */
html, body, .dxbl-main, .dxbl-splitter, .dxbl-splitter-pane {
    height: 100% !important;
    min-height: 100vh;
}

.pane-title {
    font-weight: 600;
    margin-bottom: 0.125rem;
}

/* Card container */
.card-container {
    border: 2px solid #ddd !important;
    border-radius: 8px;
    margin: 2px;
    padding: 5px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    min-width: 250px; /* Giữ nguyên trên máy tính */
    flex: 1;
}

.d-flex.flex-wrap {
    justify-content: center;
    gap: 10px;
}

/* Media query cho điện thoại (màn hình nhỏ hơn 768px) */

/* Dashboard */
.border.full-height {
    height: 100%;
    display: flex;
    flex-direction: row; /* Mặc định ngang trên máy tính */
}

.gray-pane {
    background-color: #f0f0f0 !important;
    border: 1px solid #d0d0d0;
    flex-grow: 1;
}

/* DxSplitter */
html, body, .dxbl-main, .dxbl-splitter, .dxbl-splitter-pane {
    height: 100% !important;
    min-height: 100vh;
}

.pane-title {
    font-weight: 600;
    margin-bottom: 0.125rem;
}

/* Card container */
.card-container {
    border: 2px solid #ddd !important;
    border-radius: 8px;
    margin: 2px;
    padding: 5px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    min-width: 250px; /* Giữ nguyên trên máy tính */
    flex: 1;
}

.d-flex.flex-wrap {
    justify-content: center;
    gap: 10px;
}

/* Media query cho điện thoại (màn hình nhỏ hơn 768px) */
@media (max-width: 768px) {
    .border.full-height {
        flex-direction: column !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
    }

    .dxbl-splitter {
        display: block !important;
        height: auto !important;
        width: 100% !important;
        min-height: 0 !important;
        overflow: visible !important;
    }

    .dxbl-splitter-pane {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    /* Phần Thống kê */
    .gray-pane {
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
        width: 100% !important;
        padding: 10px !important;
        background-color: #f0f0f0 !important;
        border: 1px solid #d0d0d0 !important;
    }

    /* Phần Hoạt động gần đây */
    .recent-activities {
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
        width: 100% !important;
        padding: 10px !important;
        background-color: #fff !important;
        border: 1px solid #d0d0d0 !important;
        margin: 0 !important;
    }

        .recent-activities .timeline {
            height: auto !important;
            max-height: none !important;
            overflow: visible !important;
            width: 100% !important;
            padding: 0 !important;
            margin: 0 !important;
        }

        .recent-activities .timeline-content {
            height: auto !important;
            max-height: none !important;
            overflow: visible !important;
            width: 100% !important;
            margin-bottom: 5px !important;
            padding: 0 !important;
        }

        .recent-activities .dxbl-card {
            height: auto !important;
            max-height: none !important;
            overflow: visible !important;
            width: 100% !important;
            margin-bottom: 5px !important;
            padding: 5px !important;
            border: 2px solid #ddd !important;
            border-radius: 8px !important;
            box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1) !important;
            background-color: #fff !important;
        }

        .recent-activities .dxbl-card-body {
            height: auto !important;
            max-height: none !important;
            overflow: visible !important;
            width: 100% !important;
            padding: 5px !important;
            margin: 0 !important;
            white-space: normal !important;
            word-break: break-word !important;
        }

            .recent-activities .dxbl-card-body p,
            .recent-activities .dxbl-card-body a {
                height: auto !important;
                max-height: none !important;
                overflow: visible !important;
                margin: 2px 0 !important;
            }

        .recent-activities hr.timeline-divider {
            width: 100% !important;
            margin: 5px 0 !important;
        }

    .card-container {
        min-width: 100% !important;
        margin: 5px 0 !important;
        height: auto !important;
    }

    .dxbl-splitter .dxbl-splitter-bar {
        display: none !important;
    }

    .p-3, .p-2 {
        padding: 10px !important;
    }
}
/*Background login*/


/*CSS ô số lượng bán hàng*/
.so-luong-nho {
    max-width: 150px; /* Hoặc điều chỉnh phù hợp */
    font-size: 0.9rem;
    padding: 0.25rem;
}
/*Highlight sản phẩm mới thêm vào danh sách*/
.highlight {
    background-color: #fff9c4; /* màu vàng nhạt */
    animation: fadeout 0.5s ease-out 2.5s forwards;
}

@keyframes fadeout {
    to {
        background-color: inherit;
    }
}