﻿body {
    font: var(--global-font);
}

﻿.ivs-button {
    padding: 8px 18px;
    border-radius: 4px;
    border-width: 1px;
    border-style: solid;
    cursor: pointer;
    text-align: center;
    vertical-align: middle;
    max-width: 100%;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
    display: inline-block;
    margin-right: 5px;
}

#dgcProductionOrder {
    margin-top: 25px !important;
}

.search-table {
    border: none;
    display: table;
}

.search-table > td {
    border: none;
    padding: 5px;
}
.search-table .col-label {
    white-space: nowrap;
    margin-right: 5px !important;
}
.breadcrumb-item {
    display: inline-block;
    max-width: 100px;
    margin-right: 5px;
    background-color: #f5f5f5;
}

.tab-pane {
}

.tab-content {
    height: auto !important;
}

ul {
    padding: 0px;
    margin: 0px;
    margin-bottom: 15px;
}

.panel-default > .panel-heading {
    min-height: 30px;
}

label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #333;
    cursor: default;
    font-weight: normal !important;
}

div[dx-select-box], div[dx-date-box], div[dx-text-box], div[dx-text-area] {
    background: #fff;
    border: 2px solid #00ffff;
    border-radius: 4px;
}

div[dx-check-box] {
    background: #fff;
    border-radius: 4px;
    max-width: 30px;
    width: 30px;
    border: 2px solid #00ffff;
}

    div[dx-check-box].dx-checkbox {
        border: 0px solid #00ffff;
    }

div[dx-radio-group] {
    background: #fff;
    border-radius: 4px;
    border: 2px solid #00ffff;
}

.dx-radiogroup {
    border: none !important;
}

ul.nav {
    height: 30px;
}

.col-label {
    padding-left: 10px !important;
}

    .col-label.l-required label {
        color: red !important;
    }

.col-value {
}

.panel-body {
    padding: 0px;
    padding-top: 5px;
    padding-bottom: 10px;
}

.last-col {
}

.dx-checkbox-text {
    display: inline-block;
    width: auto;
}

.dx-checkbox-container {
    overflow: no-content;
    width: auto;
}

.split-container td {
    vertical-align: top;
}

.split-container tr {
    vertical-align: top;
}

.split-container {
    height: 100%;
}

.split-panel {
    vertical-align: top !important;
}

.MdiForm {
    width: 100%;
    height: 100%;
    border: none;
    padding: 0;
    margin: 0;
}

body > div:first-child {
    display: none !important;
}

.dx-overlay-wrapper {
    /* display:normal !important; */
}

#tabPanel .dx-icon-close {
    position: absolute;
    right: 5px !important;
    top: 5px;
    color: #000 !important;
    opacity: 1;
    background-color: transparent !important;
}

#tabPanel .dx-tab {
    position: relative;
}

    #tabPanel .dx-tab a {
        opacity: 1 !important;
        background-color: transparent !important;
    }

#tabPanel .dx-icon-close::before {
    content: ""
}

#tabPanel .dx-tab .dx-icon-close {
    top: -995px;
}

#tabPanel .dx-tab-selected .dx-icon-close {
    top: 5px !important;
}

.search-table > tbody > tr > td {
    padding: 4px 0px 4px 0px !important;
}

.l-required {
    color: red
}

.p-1 {
    padding: 1px
}

.w-fit {
    width: fit-content
}

.d-hidden {
    display: none
}

#ASPxSplitter1_plhDetail_splitContainerControl1_tabControl_gvReports_DXHeaderTable {
    width: 100% !important;
}

#ASPxSplitter1_plhDetail_splitContainerControl1_tabControl_gvReports {
    width: 100% !important;
}

.dxgvHeader_IvsYouthful td {
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
}

#popFormDetail_ASPxSplitter1_0_CC {
    height: 350px !important;
}

.dxeDisabled_IvsYouthful :disabled {
    background-color: #dedede !important;
    pointer-events: none;
}

.dxeDisabled_IvsYouthful .dxeButtonEditButton_IvsYouthful {
    display: none;
}

.dxeDisabled_IvsYouthful {
    background-color: #dedede !important;
    /*border-radius: 5px !important;*/
    padding: 1px;
}

    .dxeDisabled_IvsYouthful > td {
        background-color: #dedede !important;
        border-radius: 5px !important;
    }

.dxeEditArea_IvsYouthful {
    border: 1px solid #e5eecf;
    border-radius: 5px;
    -webkit-border-radius: 5px;
}

.dxeDisabled_IvsYouthful {
    color: #000 !important;
}

.dxeEditArea_IvsYouthful.dxeDisabled_IvsYouthful {
    color: #000 !important;
}

.required {
    color: red !important;
}

.error-box {
    display: none;
}

.dxic {
    position: static !important;
}

.enable-sticky {
    position: sticky !important;
    left: auto;
}

.form-detail .dxpc-footer {
    background-color: #e9e9e900 !important;
    text-align: left;
    border-top: double 2px #29618E !important;
}

.form-detail .dxpcLite_IvsYouthful .dxpc-footer, .form-detail .dxdpLite_IvsYouthful .dxpc-footer {
    text-align: left;
}

#popFormDetail_PWC-1 {
    padding: 0 0 20px 0 !important;
}

    #popFormDetail_PWC-1 .sitemap {
        padding: 5px;
        padding-left: 10px;
        background: #e9e9e900;
        border-bottom: double 2px #ccc !important;
        margin-bottom: 10px;
        color: #333;
    }

div {
    scrollbar-width: thin; /* mảnh */
    scrollbar-color: #29618E transparent; /* thumb xám, track trong suốt */
}

    /* Chrome, Edge, Safari áp dụng cho tất cả div */
    div::-webkit-scrollbar {
        width: 6px; /* chiều rộng scrollbar dọc */
        height: 6px; /* chiều cao scrollbar ngang */
    }

    div::-webkit-scrollbar-track {
        background: transparent; /* nền track trong suốt */
    }

    div::-webkit-scrollbar-thumb {
        background: #29618E; /* màu thanh kéo */
        border-radius: 10px; /* bo tròn cho mềm mại */
        transition: background 0.3s ease; /* hover mượt */
    }

        div::-webkit-scrollbar-thumb:hover {
            background: #29618E; /* hover đậm hơn */
        }

.detail-container {
    padding: 5px !important;
}

li.dxtcLiteDisabled_IvsYouthful {
    position: relative;
    opacity: 1; /* giữ màu nền rõ */
    pointer-events: none; /* tạm thời không click được */
    padding-right: 15px;
}

    li.dxtcLiteDisabled_IvsYouthful::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 10;
        border-radius: 2px;
    }
    /* Spinner hiển thị trong tab */
    li.dxtcLiteDisabled_IvsYouthful::after {
        content: "";
        position: absolute;
        top: 50%;
        right: 8px;
        width: 16px;
        height: 16px;
        border: 2px solid rgba(255,255,255,0.6);
        border-top: 2px solid #ff0; /* xoay vàng nổi bật */
        border-radius: 50%;
        animation: spin 1s linear infinite;
        transform: translate(-50%, -50%);
        z-index: 11;
    }

@keyframes spin {
    0% {
        transform: translateY(-50%) rotate(0deg);
    }

    100% {
        transform: translateY(-50%) rotate(360deg);
    }
}

.slide-out-right {
    animation: slideRight 0.4s forwards;
}

@keyframes slideRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.fade-out {
    animation: fadeOut 0.5s forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.popup-message {
    display: grid;
    grid-template-columns: 50px 1fr;
    max-height: 300px;
    overflow-y: auto !important;
    position: relative; /* để sticky tính toán trong khung này */
}

.popup-icon {
    display: flex;
    align-items: center; /* icon luôn giữa chiều cao */
    justify-content: center;
    position: sticky;
    left: 0;
}

.default > .popup-icon {
    display: flex !important;
    align-items: center !important; /* icon luôn giữa chiều cao */
    justify-content: center !important;
    position: sticky !important;
    left: 0 !important;
}

.default > .popup-icon-placeholder {
    display: none;
}

.more > .popup-icon {
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important; /* luôn giữa popup */
    width: 50px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.popup-content {
    overflow-y: auto; /* scroll khi nội dung dài */
    padding: 8px;
    width: 100%; /* chiếm toàn bộ phần còn lại */
    box-sizing: border-box;
}

.dxgvControl_IvsYouthful {
    width: 100% !important;
}

.report-filter .sitemap {
    display: none !important
}

.report-filter .detail {
    padding-left: 15px !important;
    padding-top: 15px !important;
}

.report-filter .dxpc-footer {
    text-align: right !important;
    padding-right: 10px !important;
}
.report-filter .btn-ok{
    min-width: 60px !important;
}
}
.notification-list {
    scrollbar-width: thin; /* mảnh */
    scrollbar-color: #29618E transparent; /* thumb xám, track trong suốt */
}

/* Chrome, Edge, Safari áp dụng cho tất cả div */
.notification-list::-webkit-scrollbar {
    width: 6px; /* chiều rộng scrollbar dọc */
    height: 6px; /* chiều cao scrollbar ngang */
}

.notification-list::-webkit-scrollbar-track {
    background: transparent; /* nền track trong suốt */
}

.notification-list::-webkit-scrollbar-thumb {
    background: #29618E; /* màu thanh kéo */
    border-radius: 10px; /* bo tròn cho mềm mại */
    transition: background 0.3s ease; /* hover mượt */
}

    .notification-list::-webkit-scrollbar-thumb:hover {
        background: #29618E; /* hover đậm hơn */
    }
.notification-box {
background-color: #ffffff;
z-index: 1000;
display: flex;
flex-direction: column;
max-height: 90vh;
}

.box-header {
padding: 10px 15px;
border-bottom: 1px solid #eee;
font-weight: bold;
background-color: #f7f7f7;
border-radius: 8px 8px 0 0;
color: #333;
}

.notification-list {
overflow-y: auto;
padding: 0px 0px;
flex-grow: 1;
}
/* ---------------------------------------------------- */
/* CSS CẬP NHẬT: Nền trắng, Viền màu */
/* ---------------------------------------------------- */
.notification {
padding: 10px;
margin-bottom: 8px;
border-radius: 4px;
position: relative;
opacity: 1;
transition: opacity 0.5s ease-out, transform 0.5s ease-out;
/* Nền sáng và chữ tối */
background-color: #fcfcfc;
border: 1px solid #ddd;
color: #333;
}

/* Thông báo Info: Viền Xanh */
.notification.info {
    border: 1px solid #2196F3;
    border-left: 5px solid #2196F3;
}

/* Thông báo Error: Viền Đỏ */
.notification.error {
    border: 1px solid #f44336;
    border-left: 5px solid #f44336;
}

/* Thông báo Warning: Viền Cam */
.notification.warning {
    border: 1px solid #ff9800;
    border-left: 5px solid #ff9800;
}

.notification-close {
position: absolute;
top: 5px;
right: 10px;
color: #333;
font-weight: bold;
cursor: pointer;
font-size: 1.2em;
}
/* ---------------------------------------------------- */
/* Hết CSS Cập nhật */
/* ---------------------------------------------------- */

.controls {
margin-bottom: 20px;
padding: 15px;
border: 1px solid #ccc;
border-radius: 4px;
}

.controls button {
    padding: 10px 15px;
    margin-right: 10px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    font-weight: bold;
}

    .controls button.add-info {
        background-color: #2196F3;
        color: white;
    }

    .controls button.add-error {
        background-color: #f44336;
        color: white;
    }

    .controls button.add-warning {
        background-color: #ff9800;
        color: white;
    }

.list-enter-active, .list-leave-active {
transition: all 0.5s ease;
}

.list-enter-from, .list-leave-to {
opacity: 0;
transform: translateX(30px);
}
.dxgvFocusedRow_IvsYouthful > td {
    background-color: orange !important
}

/* ===== TEXT ===== */
table.col1-text td:nth-child(1),
table.col2-text td:nth-child(2),
table.col3-text td:nth-child(3) {
    text-align: left !important;
}

/* ===== NUMBER ===== */
table.col1-number td:nth-child(1),
table.col2-number td:nth-child(2),
table.col3-number td:nth-child(3) {
    text-align: right !important;
}

/* ===== DATE (YYYY-MM) ===== */
table.col1-date td:nth-child(1),
table.col2-date td:nth-child(2),
table.col3-date td:nth-child(3) {
    text-align: center !important;
}

.dd-wrapper.selection-0.center-yyyy-mm .tag-input {
    text-align: center !important;
}