﻿/*===================SPINNER=================*/
.e-spinner-pane.e-custom-spinner.e-spin-overlay {
    background-color: transparent;
}

#poup-voucher-detail {
    height: 100%;
    display: grid;
    grid-template-rows: auto 1fr;
}

.body-container {
    display: grid;
    grid-template-rows: auto 1fr auto;
    overflow-y:auto;
}

.main-information, .tab-detail, .summary {
    /*    height:100%;*/
    width: 100%;
    min-width: 0;
}

/*==============SUMMARY=============*/
.summary {
    display: grid;
    grid-template-columns: 25% 25% 25% 25%;
    bottom: 0;
    padding: 8px 8px 10px 8px;
    background: #b9dbff42;
}

    .summary label {
        display: flex;
        align-items: center;
        white-space: nowrap;
        text-overflow: ellipsis;
        font-weight: 700;
    }

    .summary .smart-form-row {
        display: grid;
        grid-template-columns: 110px 1fr 1fr;
        gap: 6px;
    }

.summary-value, .summary-foreign-currency-value {
    display: flex;
    flex-direction: row-reverse;
    font-weight: 500;
    /*width: 160px;*/
}

/*==============MAIN-INFO=============*/
.main-information {
    background-color: aliceblue;
    padding: 0px 8px 8px 8px;
    display: flex;
    align-items: flex-start;
    gap: 4px;
}

    .main-information .row {
        margin-right: 0px;
        margin-left: 0px;
    }

    .main-information label,
    .tab-header-extend label {
        display: flex;
        align-items: center;
        height: 26px;
        font-weight: 400;
    }

    .main-information .smart-form-row,
    .tab-header-extend .smart-form-row {
        display: grid;
        padding: 2px;
        grid-template-columns: 130px auto;
        align-items: center;
    }
.smart-form-row-sort {
    display: grid;
    padding: 2px;
    grid-template-columns: 70px auto;
    align-items: center;
}
    .main-information .smart-form-row-defaul {
        display: grid;
        padding: 2px;
        grid-template-columns: auto;
    }

    .main-information .smart-form-button-row {
        display: grid;
        padding: 2px;
        /*    grid-template-columns: 125px auto;*/
        grid-template-columns: auto 1fr;
    }

.main-infomation__right {
    flex-basis: 35%
}

.main-infomation__left {
    flex-basis: 65%
}

.tab-header-extend {
    align-items: center;
    gap: 5px;
}

/*==============TAB-CONTENT=============*/

.tab-detail {
    display: flex;
    flex-direction: column;
    gap:4px;
}

.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 0 0 auto;
    padding: 6px 6px 0 6px;
}

.tab-header-button {
    gap: 4px
}

.tab-content {
    flex: 1 1 450px;
    width: 100%;
    min-height: 0;
}

    .tab-content .smart-grid {
        height: 100%;
        width: 100%;
    }


.top-header {
    display: flex;
/*    padding: 8px 8px 6px 8px;*/
    justify-content: space-between;
}

    .top-header .header-title,
    .top-header .header-action,
    .top-header .header-button {
        display: flex;
        align-items: center;
        gap: 4px;
    }

        .top-header .header-title .icon {
            width: 32px;
            height: 32px;
            font-size: 28px;
            color: gainsboro;
        }

        .top-header .header-title .title {
            font-weight: 700;
            font-size: 1.2rem;
            top: -7px;
            left: 20px;
            color: #111;
            white-space: nowrap;
            /*overflow: hidden;*/
            text-overflow: ellipsis;
        }

.content-voucher__container {
    height: 100%;
}

.content-voucher__detail {
    height: calc(100% - 48px);
}

    .content-voucher__detail div:first-child {
        height: 100%;
    }


.toggle-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.arrow-expand > i {
    transition: all ease .3s;
}

.arrow-expand.expanded > i {
    transform: rotate(90deg);
}

.toggle-box {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 0;
    gap: 16px;
}

.toggle-box__item {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 16px;
}

.toggle-box__highlight {
    color: #FFAAAA;
}


.e-grid .e-focused:not(.e-menu-item):not(.e-editedbatchcell) {
    box-shadow: none;
}


.filter-voucher {
    padding: 16px;
}

.filter-voucher__title {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
    display: inline-block;
}

.filter-voucher__action {
    display: flex;
    justify-content: space-between;
}
.timeline-warning .e-dot {
    background-color: orange;
}

.timeline-success .e-dot {
    background-color: green;
}

.timeline-danger .e-dot {
    background-color: red;
}

.timeline-default .e-dot {
    background-color: gray;
}

.timeline-warning.e-timeline-item.e-connector::after {
    border-color: orange !important;
}

.timeline-success.e-timeline-item.e-connector::after {
    border-color: green !important;
}

.timeline-danger.e-timeline-item.e-connector::after {
    border-color: red !important;
}

.timeline-default.e-timeline-item.e-connector::after {
    border-color: gray !important;
}

smart-grid-cell.smart-add-new-row .smart-label {
    font-size: 0 !important;
    position: relative;
    display: flex;
    align-items: center;
}
    smart-grid-cell.smart-add-new-row .smart-label::after {
        content: "Thêm sản phẩm"; 
        font-size: 13px !important; 
        color: #007bff !important; 
        font-weight: 500;
        margin-left: 35px; 
        cursor: pointer;
    }

    smart-grid-cell.smart-add-new-row .smart-label * {
        font-size: 14px !important;
    }