﻿/*==================== Variables ====================*/
:root {
    --hover-grid: #ffdfdf;
    --color-sf-secondary-bg-color-hover: white;
    --color-sf-content-bg-color-alt1: white;
    /*--color-sf-primary-text-color: white;*/
    --smart-zindex-popup: 1050;
}

/*==================== General Styles ====================*/
.modal-body {
    overflow-y: auto;
    max-height: calc(100vh - 200px);
}

.total-sum,
.validation-message {
    color: red !important;
}

.validation-message {
    font-size: smaller;
    margin: 5px 0;
    padding-left: 10px;
}

.btn-css {
    width: 100px;
    zoom: 0.9;
    font-weight: 500;
}

.btn_paddding {
    margin: 0 3px;
}

.table-column-code {
    width: 150px;
    white-space: nowrap;
    overflow: hidden;
}

.table-column-name {
    width: calc(100% - 150px);
    white-space: nowrap;
    overflow: hidden;
}

.level-1 {
    font-weight: 600;
}

.level-2 {
    font-weight: 500;
    font-style: italic;
}

.level-3 {
    font-weight: 400;
}

.level-4 {
    font-weight: 300;
    font-style: italic;
}

/*==================== General Styles END ====================*/


/*==================== Grid Styles ====================*/
.grid-custom.e-grid .e-content {
    height: calc(90vh - 165px);
}

.grid-custom-group.e-grid .e-content {
    height: calc(67vh - 150px);
}


.grid-custom-split.e-grid .e-content {
    height: calc(88vh - 150px);
}

.e-grid .e-dialog.e-ccdlg {
    /*top: 25% !important;*/
    left: 80% !important;
}

.e-grid .e-headercell,
.e-grid .e-detailheadercell {
    height: 30px;
    text-transform: none;
    font-size: 14px;
    font-weight: 500;
    color: black;
    background-color: #ebe8e9;
}

.e-headercelldiv,
.e-stackedheadercelldiv {
    text-align: center !important;
}

.e-headertext {
    text-transform: none;
    font-size: 13px;
    font-weight: 500;
    color: black;
}

.e-grid .e-rowcell {
    font-size: 13px;
    line-height: 19px;
    padding: 4px;
}

.e-grid .e-groupcaption {
    position: sticky;
    left: 30px;
    background-color: #f8f9fa;
    z-index: 10;
    overflow: visible;
    white-space: nowrap;
    font-weight: 600;
}

.e-grid .e-altrow {
    background-color: #F2F2F2 !important;
}

.e-grid .e-row:hover .e-rowcell {
    cursor: pointer;
}

.e-grid .e-rowcell.e-selectionbackground {
    font-weight: 500;
    /*background: #F47920 !important;*/
    background: #ea8b1f !important;
    color: #FFF !important;
}

.e-grid td.e-active {
    /*background:unset;*/
}

.e-pager .e-pagerexternalmsg {
    display: none;
}

.e-grid .e-pager {
    zoom: 0.9;
    color: black !important;
}
.e-grid .e-gridheader .e-sortfilter .e-rightalign .e-headercelldiv, .e-grid .e-gridheader .e-rightalign .e-stackedheadercelldiv {
    padding: 0 4px;
}





/*==================== Toolbar Styles ====================*/

.e-toolbar {
}

    .e-toolbar .e-toolbar-item .e-tbar-btn {
        border: 1px solid transparent;
    }

        .e-toolbar .e-toolbar-item .e-tbar-btn:hover {
            border: 1px solid #ED1C24;
        }

            .e-toolbar .e-toolbar-item .e-tbar-btn:hover span,
            .e-toolbar .e-toolbar-item .e-tbar-btn:hover .e-tbar-btn-text {
                color: #ED1C24;
            }

        .e-toolbar .e-toolbar-item .e-tbar-btn:active {
            outline: none;
            background-color: unset;
        }

            .e-toolbar .e-toolbar-item .e-tbar-btn:active .e-tbar-btn-text {
                background-color: none !important;
                color: #ED1C24 !important;
            }

            .e-toolbar .e-toolbar-item .e-tbar-btn:active span {
                color: #ED1C24;
            }

        .e-toolbar .e-toolbar-item .e-tbar-btn .e-tbar-btn-text {
            font-size: 0.8rem;
            padding: 0;
        }

        .e-toolbar .e-toolbar-item .e-tbar-btn:focus {
            box-shadow: unset;
            border: 1px solid #ED1C24;
        }

            .e-toolbar .e-toolbar-item .e-tbar-btn:focus span,
            .e-toolbar .e-toolbar-item .e-tbar-btn:focus .e-tbar-btn-text {
                color: #ED1C24;
            }


/*==================== Dialog Styles ====================*/
.e-dialog {
    border-radius: 4px;
}

    .e-dialog.e-ccdlg.e-device.e-popup.e-control.e-popup-open {
        top: 14vh !important;
    }

.e-dlg-center-center {
    z-index: 1045 !important;
}

.e-dialog .e-dlg-header-content {
    padding: 8px 16px;
    border-bottom: 0;
}

.e-dialog .e-dlg-header {
    font-size: 1.4rem;
    color: #111;
    font-weight: 600;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.e-dialog .e-dlg-content {
    padding-top: 0;
}

.e-dialog .e-footer-content {
    border-top: 0;
}

.e-dialog .e-icon-dlg-close {
    content: "\e7e7";
    position: relative;
    color: red;
    font-size: 26px;
    font-weight: 600;
}

.e-dialog .e-btn .e-btn-icon.e-icon-dlg-close:hover {
    color: white !important;
    background-color: #C82333;
    padding: 2px;
}

button.e-btn.e-dlg-closeicon-btn .e-btn-icon.e-icon-dlg-close {
    color: red !important;
}

/*==================== Card Styles ====================*/
.e-card {
    justify-content: normal;
    height: 100%;
}

    .e-card:hover {
        background-color: transparent;
    }

    .e-card .e-card-header {
        padding: 3px 10px 7px 4px;
    }

        .e-card .e-card-header .e-card-header-caption {
            flex-direction: row;
        }

            .e-card .e-card-header .e-card-header-caption .e-card-header-title {
                font-weight: bold;
            }

    .e-card .e-card-content {
        padding: 0 8px 5px 10px;
    }

/*==================== Checkbox Styles ====================*/
.e-checkbox-wrapper .e-frame.e-check,
.e-checkbox-wrapper.e-checkbox-disabled .e-frame.e-check,
.e-checkbox-wrapper:active .e-frame.e-check,
.e-checkbox-wrapper .e-checkbox:focus + .e-frame.e-check {
    border-color: #818cf8;
    color: #6F84C7;
    background-color: white;
}
 
.e-checkbox-wrapper .e-frame, .e-css.e-checkbox-wrapper .e-frame {
    border-radius: 5px;
    height: 20px;
    line-height: 18px;
    width: 20px;
}


.e-checkbox-wrapper .e-check, .e-css.e-checkbox-wrapper .e-check {
    font-size: 14px;
}

.e-checkbox-wrapper.e-checkbox-disabled .e-frame.e-check, .e-css.e-checkbox-wrapper.e-checkbox-disabled .e-frame.e-check {
    background-color: unset;
    border-color: var(--color-sf-primary);
    color: var(--color-sf-content-bg-color-selected);
}
/*==================== Tab Styles ====================*/
.e-tab .e-tab-header .e-toolbar-item .e-tab-text {
    text-transform: none;
    color: black;
}

.sticky-header.e-tab .e-tab-header {
    background: white;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.e-tab .e-tab-header {
    background: #f1f3f4; /* Nền header tab giống Chrome */
    border-bottom: 1px solid #ccc;
}

    .e-tab .e-tab-header .e-toolbar-item {
        background: #e0e0e0;
        border-bottom: none;
        border-radius: 8px 8px 0 0;
        margin: 4px 4px 0 4px;
        padding: 8px 16px;
        transition: background 0.3s, border 0.3s;
        cursor: pointer;
    }


    .e-tab .e-tab-header .e-toolbar-items {
        gap: 0.5rem
    }

    .e-tab .e-tab-header .e-toolbar-item:hover {
        background: #d5d5d5;
        border-color: #aaa;
    }

    .e-tab .e-tab-header .e-toolbar-item.e-active {
        background: #ffffff;
        border: 1px solid #aaa;
        border-bottom: 1px solid white; /* loại bỏ đường viền dưới tab đang chọn */
        border-radius: 8px 8px 0 0;
        font-weight: bold;
        color: black;
    }

.e-tab .e-tab-content {
    border: 1px solid #aaa;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 16px;
    background: white;
}


/*==================== Button Styles ====================*/
.e-split-btn,
.e-dropdown-btn {
    background: #28a745;
    border: 1px solid #28a745;
    border-radius: 7px;
}

.e-dropdown-btn {
    border-left-color: white;
}

    .e-split-btn:hover,
    .e-dropdown-btn:hover,
    .e-dropdown-btn:active,
    .e-dropdown-btn.e-active {
        background: #1e7e34;
        border: 1px solid #28a745;
    }

    .e-dropdown-btn:hover,
    .e-dropdown-btn.e-active {
        border-left-color: white;
    }

    .e-dropdown-btn.e-active {
        color: #fff !important;
    }

.e-dropdown-popup ul .e-item:hover {
    background: #28a745;
    color: white;
}

    .e-dropdown-popup ul .e-item:hover .e-menu-icon {
        color: white;
    }

/*==================== Input Styles ====================*/
.e-input-group.e-input-focus:not(.e-success):not(.e-warning):not(.e-error),
.e-input-group.e-control-wrapper.e-input-focus:not(.e-success):not(.e-warning):not(.e-error) {
    box-shadow: 0 0 0 2px rgba(var(--color-sf-primary-shadow), 0.25) !important;
}

/*==================== Carousel Styles ====================*/
.e-carousel .e-carousel-indicators.e-default .e-indicator-bars {
    margin-top: 22px;
}

/*==================== Context Menu Styles ====================*/
.e-contextmenu-container ul .e-menu-item .e-menu-icon::before {
    font-size: 11px;
}

/*==================== Spinner Styles ====================*/
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

/*==================== Responsive Styles ====================*/
@media (max-width: 768px) {
    .e-grid *,
    .e-grid .e-headercelldiv {
        font-size: 12px !important;
    }

    .e-grid .e-headertext {
        font-size: 10px !important;
    }
}
/*==================== DateRange Styles ====================*/
.e-daterangepicker.e-popup.e-preset-wrapper {
    min-width: 625px;
    right: 10%;
    left: 10% !important;
}
/*==================== Tooltip Styles ====================*/
.e-tooltip-wrap .e-tip-content {
    color: black;
    font-size: 12px;
    font-weight: 400;
}

.e-tooltip-wrap.e-popup {
    background-color: #c8c5c5;
    border: 1px solid #c8c5c5;
}

.e-tooltip-wrap .e-arrow-tip {
    display: none
}

.menu-text {
    text-wrap: auto;
}

.below-30 {
    background-color: #ccffcc;
    width: 30px;
    color: #007d00 !important;
}

.below-80 {
    background-color: yellow;
    width: 30px;
}

.above-80 {
    background-color: #ffd7cc;
    width: 30px;
    color: #c40000 !important;
}

/*set hight các cột được tạo strong grid smart*/
.smart-grid-cell-editor > * {
    height: 100% !important;
}

.smart-grid smart-grid-column {
    height: 30px;
    text-transform: none;
    font-size: 14px;
    font-weight: 400;
    color: black;
    background-color: #ebe8e9;
}
.ExistsCode {
    background-color: #ccffcc;
    width: 30px;
    color: #007d00 !important;
}
 

.ExistsIDNumber {
    background-color: #ffd7cc;
    width: 30px;
    color: #c40000 !important;
}
.cell-error {
    background-color: #3f81ff !important;
    color: #ffffff !important;
}