﻿body, html {
    margin: 0;
    min-height: 100%;
    height: 100%;
    width:100%;
}

hr {
    border: none;
    height: 1px;
    color: #333;  
    margin: 10px 0 10px 0;
    background-color: #333;
}

.parent-container {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
}

.app-main-wrapper {
    grid-column: 1 / -1;
}


#app-side-nav-outer-toolbar {
    flex-direction: column;
    display: flex; 
    height: 100%;
    width: 100%;
}

.layout-header {
    flex: 0 0 auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    position: relative;
    z-index: 1501;
}

.dx-toolbar .dx-toolbar-item.menu-button {
    width: 60px;
    text-align: center;
    padding: 0;
}

.dx-toolbar .dx-toolbar-item.menu-button > .dx-toolbar-item-content .dx-icon {
    color: #ff5722;
}

.dx-card {
    box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.24);
    border-radius: 4px;
    background-color: #fff;
    margin: 2px 2px 3px;
}

.dx-card.wide-card {
    border-radius: 0;
    margin-left: 0;
    margin-right: 0;
    border-right: 0;
    border-left: 0;
}

.with-footer > div > div > .dx-scrollable-content {
    height: 100%;
}

.with-footer > div > div > .dx-scrollable-content > .dx-scrollview-content {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.layout-body {
    background-color: #f2f2f2;
    flex: 1;
    height: 100%;
    min-height: 0;
}

.layout-body .menu-container {
    height: 100%;
    width: 250px;
}

.layout-body .content {
    flex-grow: 1;
    height: 100%;
    line-height: 1.5;
}

    .layout-body .content h2 {
        /*font-size: 30px;*/
        font-size: 24px;
        font-weight: 300;
        letter-spacing: -.5px;
    }

.layout-body .content-block {
    margin-left: 20px;
    margin-right: 20px;
    margin-top: 20px;
}

.layout-body .content-footer {
    display: block;
    color: rgba(0,0,0,.609);
    border-top: 1px solid rgba(0,0,0,.1);
    padding-top: 20px;
    padding-bottom: 24px;
}

.layout-body .responsive-paddings {
    padding: 20px;
}

.layout-body-hidden {
    visibility: hidden;
}

@media screen and (min-width: 600px) {
    .layout-body .content-block {
        margin-left: 40px;
        margin-right: 40px;
    }
}

@media screen and (min-width: 1280px) {
    .layout-body .responsive-paddings {
        padding: 40px;
    }
}

.menu-container .dx-widget {
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    font-family: Roboto,RobotoFallback,Helvetica,Arial,sans-serif;
    line-height: 24px;
}

.menu-container .dx-treeview {
    white-space: nowrap;
}

.menu-container .dx-treeview .dx-treeview-item {
    padding-left: 0;
    padding-right: 0;
}

.menu-container .dx-treeview .dx-treeview-item .dx-icon {
    width: 60px !important;
    margin: 0 !important;
}

.menu-container .dx-treeview .dx-treeview-node {
    padding: 0 0 !important;
}

.menu-container .dx-treeview .dx-treeview-toggle-item-visibility {
    right: 10px;
    left: auto;
}

.menu-container .dx-treeview .dx-rtl .dx-treeview-toggle-item-visibility {
    left: 10px;
    right: auto;
}

.menu-container .dx-treeview .dx-treeview-node[aria-level="1"] {
    font-weight: bold;
    border-bottom: 1px solid #515159;
}

.menu-container .dx-treeview .dx-treeview-node[aria-level="2"] .dx-treeview-item-content {
    font-weight: normal;
    padding: 0 60px;
}

.menu-container .dx-treeview .dx-treeview-node-container .dx-treeview-node.dx-state-selected:not(.dx-state-focused) > .dx-treeview-item {
    background: transparent;
}

.menu-container .dx-treeview .dx-treeview-node-container .dx-treeview-node.dx-state-selected > .dx-treeview-item * {
    color: #FF5722;
}

.menu-container .dx-treeview .dx-treeview-node-container .dx-treeview-node:not(.dx-state-focused) > .dx-treeview-item.dx-state-hover {
    background-color: #3F3F4B;
}


.h7 {
    color: #111111;
    font-size: 11px;
    text-transform: uppercase;
}





row > .col-xs-3 {
    display: flex;
    flex: 0 0 25%;
    max-width: 25%
}

.flex-nowrap {
    -webkit-flex-wrap: nowrap !important;
    -ms-flex-wrap: nowrap !important;
    flex-wrap: nowrap !important;
}

.flex-row {
    display: flex;
    -webkit-box-orient: horizontal !important;
    -webkit-box-direction: normal !important;
    -webkit-flex-direction: row !important;
    -ms-flex-direction: row !important;
    flex-direction: row !important;
}

.form-label{
    font-size:13px;
}

.spm-cell-light-red{
    background-color:red;
}

.spm-cell-light-gray {
    background-color: red;
}

.deactive {
    text-decoration: line-through #ff0000;
}

:root {
    --dark-gray-color: #3A3838;
    --light-gray-color: #757171;
    --dark-blue-color: #305496;
    --light-blue-color: #8EA9DB;
    --dark-brown-color: #833C0C;
    --light-brown-color: #C65911;
    --dark-green1-color: #375623;
    --light-green1-color: #548235;
    --dark-green2-color: #00B050;
    --light-green2-color: #A9D08E;
    --dark-yellow-color: #BF8F00;
    --light-yellow-color: #FFD966;
    --dark-orange-color: #ED7D31;
    --light-orange-color: #F4B084;
    --dark-red-color: #C00000;
    --light-red-color: #FF2525;
    --dark-cool-gray-color: #44546A;
    --light-cool-gray-color: #D6DCE4;
}

.status {
    border-radius: 6px;
    color: white;
    text-align: center;
    padding: 4px;
}

.status-red {
    border-radius: 6px;
    color: red;
    font-weight:bold;
    padding: 2px;
}
.status-0 {
    border-radius: 6px;
    color: white;
    text-align: center;
    padding: 4px;
    background-image: linear-gradient(45deg,var(--dark-gray-color),var(--light-gray-color));
}

.status-91,
.status-1 {
    border-radius: 6px;
    color: white;
    text-align: center;
    padding: 4px;
    background-image: linear-gradient(45deg,var(--dark-cool-gray-color),var(--light-cool-gray-color));
}
.status-12,
.status-15 {
    border-radius: 6px;
    color: white;
    text-align: center;
    padding: 4px;
    background-image: linear-gradient(45deg,var(--dark-blue-color),var(--light-blue-color));
}

.status-2 {
    border-radius: 6px;
    color: white;
    text-align: center;
    padding: 4px;
    background-image: linear-gradient(45deg,var(--dark-brown-color),var(--light-brown-color));
}

.status-18,
.status-3,
.status-17,
.status-7 {
    border-radius: 6px;
    color: white;
    text-align: center;
    padding: 4px;
    background-image: linear-gradient(45deg,var(--dark-green1-color),var(--light-green1-color));
}

.status-99,
.status-8,
.status-4 {
    border-radius: 6px;
    color: white;
    text-align: center;
    padding: 4px;
    background-image: linear-gradient(45deg,var(--dark-red-color),var(--light-red-color));
}

.status-16,
.status-90,
.status-6,
.status-10,
.status-13,
.status-88{
    border-radius: 8px;
    color: white;
    text-align: center;
    padding: 6px;
    background-image: linear-gradient(45deg,var(--dark-yellow-color),var(--light-yellow-color));
}


.status-9,
.status-5,
.status-11,
.status-14,
.status-82 {
    border-radius: 8px;
    color: white;
    text-align: center;
    padding: 6px;
    background-image: linear-gradient(45deg,var(--dark-green2-color),var(--light-green2-color));
}


.status-97,
.status-98,
.status-83{
    border-radius: 8px;
    color: white;
    text-align: center;
    padding: 6px;
    background-image: linear-gradient(45deg,var(--dark-orange-color),var(--light-orange-color));
}

.status-92,
.status-80,
.status-89{
    border-radius: 8px;
    color: white;
    text-align: center;
    padding: 6px;
    background-image: linear-gradient(45deg,var(--dark-orange-color),var(--light-red-color));
}

.status-81 {
    border-radius: 8px;
    color: white;
    text-align: center;
    padding: 6px;
    background-image: linear-gradient(45deg,var(--dark-blue-color),var(--light-green2-color));
}

/*Trạng thái*/

.state {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 9999px;
    border: 1.2px solid;
    font-weight: 600;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    color: #6b7280;
    background: #f3f4f6;
    border-color: #d1d5db;
}

    .state:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

.state-5021 {
    color: #1e40af;
    background: #e0e7ff;
    border-color: #c7d2fe;
}

.state-5022 {
    color: #065f46;
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.state-5023 {
    color: #6b7280;
    background: #f3f4f6;
    border-color: #d1d5db;
}

.state-5024 {
    color: #9f1239;
    background: #fff1f2;
    border-color: #fecdd3;
}

.state-5025 {
    color: #92400e;
    background: #fef3c7;
    border-color: #fde68a;
}

.state-5026 {
    color: #374151;
    background: #e5e7eb;
    border-color: #d1d5db;
}

.state-5027 {
    color: #075985;
    background: #e0f2fe;
    border-color: #bae6fd;
}

.state-5028 {
    color: #7c2d12;
    background: #ffedd5;
    border-color: #fed7aa;
}

.state-5029 {
    color: #b91c1c;
    background: #fee2e2;
    border-color: #fecaca;
}

.state-5030 {
    color: #4b5563;
    background: #f9fafb;
    border-color: #e5e7eb;
}

.command-I {
    border-radius: 8px;
    color: white;
    text-align: center;
    padding: 6px;
    background-image: linear-gradient(45deg,var(--dark-green2-color),var(--light-green2-color));
}

.command-U {
    border-radius: 8px;
    color: white;
    text-align: center;
    padding: 6px;
    background-image: linear-gradient(45deg,var(--dark-orange-color),var(--light-orange-color));
}

.command-D {
    border-radius: 6px;
    color: white;
    text-align: center;
    padding: 4px;
    background-image: linear-gradient(45deg,var(--dark-red-color),var(--light-red-color));
}

.row-style-red {
    color: red;
}

.bravoitem {
    padding-top: 10px;
    padding-bottom: 10px;
    margin-bottom: 10px;
    background-color: white;
    border-radius: 5px;
}

.word-wrap-column {
    /* Đảm bảo văn bản xuống dòng   white-space: normal !important;*/
    word-wrap: break-word; /* Tự động ngắt dòng khi văn bản quá dài */
    white-space: pre-line;
}

/*============================Alert==========================*/


/*.dx-dialog {
    height: auto !important;
    max-height: 90vh;*/ /* đảm bảo không vượt quá màn hình */
    /*overflow: visible !important;
}

.dx-overlay-content {
    height: auto !important;
    max-height: 90vh;
    overflow: visible;
}*/
/*
.custom-dialog-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 5px 5px 0;
    line-height: 1.6;
    flex-wrap: wrap;
}

.custom-dialog-icon {
    font-size: 22px;
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.custom-icon-info {
    background-color: #e0f3ff;
    color: #007bff;
}

.custom-icon-error {
    background-color: #fdecea;
    color: #e3342f;
}

.custom-icon-warning {
    background-color: #fff8e1;
    color: #f6993f;
}

.custom-icon-success {
    background-color: #e6ffed;
    color: #38c172;
}

.custom-icon-confirm {
    background-color: #e2e3ff;
    color: #5856d6;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
*/

.custom-dialog-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    padding: 10px 5px 5px 0;
    line-height: 1.6;
    animation: fadeIn 0.3s ease-in-out;
}

.custom-dialog-icon {
    font-size: 18px;
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.custom-icon-info {
    background-color: #e6f0ff;
    color: #007bff;
}

.custom-icon-error {
    background-color: #fcebea;
    color: #e3342f;
}

.custom-icon-warning {
    background-color: #fff3cd;
    color: #ff9800;
}

.custom-icon-success {
    background-color: #d4edda;
    color: #28a745;
}

.custom-icon-confirm {
    background-color: #ede7f6;
    color: #5e35b1;
}

.dx-dialog .dx-dialog-button {
    margin-top: 6px;
    margin-left: 10px;
    margin-bottom:20px;
    padding: 2px 10px 2px 10px;
    font-weight: 500;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.dx-dialog .dx-dialog-button.dx-button-mode-contained:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.login-banner {
    max-height: 140px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}


.split-container {
    display: flex;
    gap: 10px;
    height: calc(100vh - 60px);
}

.main-grid-container {
    flex: 0 0 60%;
    min-width: 0;
}

.detail-grid-container {
    flex: 0 0 calc(40% - 10px);
    border-left: 2px solid #ddd;
    padding-left: 10px;
    display: none;
    height: 100%;
    overflow: hidden;
}

    .detail-grid-container.active {
        display: block;
    }

.main-grid-container.with-detail {
    flex: 0 0 60%;
}

.detail-header {
    padding: 10px;
    background-color: #f5f5f5;
    border-bottom: 2px solid #4CAF50;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .detail-header h6 {
        margin: 0;
        color: #333;
        font-size: 16px;
    }

.close-detail {
    cursor: pointer;
    color: #999;
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
}

    .close-detail:hover {
        color: #333;
    }

.old-value {
    color: #d32f2f;
    text-decoration: line-through;
}

.new-value {
    color: #388e3c;
    font-weight: bold;
}