
* {
	margin: 0px;
	padding: 0px;
}

body,
html {
	font-family:'Bai Jamjuree',  'Myriad Pro', 'Roboto', sans-serif;
    font-size: 1rem;
	background-color: var(--erp-bg-main);
	color: var(--erp-text-main);
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
	line-height: 1.5;
}

@media (max-width:576px) {
    body,
    html {
        font-family:'Bai Jamjuree',  'Myriad Pro', 'Roboto', sans-serif;
        font-size: 0.875rem;;
        background-color: var(--erp-bg-main);
        color: var(--erp-text-main);
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        line-height: 1.35;
    }
}

#OpenMenuLeft {
    width: 0;
    transition: 0.3s ease;
    overflow: hidden;
    display: none;
}

#OpenMenuLeft.active {
    width: 350px;
    top: 54px;
    display: block;
    border-right: 1px solid rgba(190,190,190,1);
    position: fixed;
    z-index: 1040;
}

/* Sidebar nền */
#OpenMenuLeft {
    background: rgb(248, 249, 250);
    overflow-y: auto;
	overflow-x: hidden;
}

#mini-erp-warrper{
    margin-top: 54px;
    height: calc(100vh - 54px);
    max-height: calc(100vh - 54px);
    overflow-y: auto;
	overflow-x: hidden;

}

.erp-h2 {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--erp-color-2);
}

.erp-height {
    height: calc(100vh - 55px - 2.5rem);
    max-height: calc(100vh - 55px - 2.5rem);
    overflow-y: auto;
	overflow-x: hidden;
}

.erp-height-scroll {
    /* height: calc(100vh - 115px - 3.5rem); */
    max-height: calc(100vh - 115px - 3.5rem);
    overflow-y: auto;
	overflow-x: hidden;
}

.erp-height-card {
    height: calc(100vh - 55px - 2.5rem);
    max-height: calc(100vh - 55px - 2.5rem);
    overflow-y: auto;
	overflow-x: hidden;
}

/* Item bình thường */
.accordion-button {
    color: #333;
    border-radius: 0;
}


/* Hover */
.accordion-button:hover {
    background: #e9ecef;
}

/* Khi mở */
/* .accordion-button:not(.collapsed) {
    background: #e9ecef;
    font-weight: 800;
    border-left: 5px solid rgb(252, 175, 23) ;
} */

hr {
    border-bottom: 1px solid rgb(200, 200, 200);
}
.erp-fw-300 { font-weight: 300;} .erp-fw-400 { font-weight: 400;} .erp-fw-500 { font-weight: 500;} .erp-fw-600 { font-weight: 600;}
.erp-color-1 {color: var(--erp-color-1);}           .erp-bg-1 {background-color: var(--erp-color-1);} 
.erp-color-2 {color: var(--erp-color-2);}           .erp-bg-2 {background-color: var(--erp-color-2);} 
.erp-color-3 {color: var(--erp-color-3);}           .erp-bg-3 {background-color: var(--erp-color-3);} 
.erp-color-4 {color: var(--erp-color-4);}           .erp-bg-4 {background-color: var(--erp-color-4);} 
.erp-color-5 {color: var(--erp-color-5);}           .erp-bg-5 {background-color: var(--erp-color-5);} 
.erp-color-6 {color: var(--erp-color-6);}           .erp-bg-6 {background-color: var(--erp-color-6);} 

.hai-text-1 { color: rgb(252, 175, 23) !important;}     .hai-bg-1 {background-color: rgb(252, 175, 23) !important;} 
.hai-text-2 { color: rgb(29, 52, 85) !important; }      .hai-bg-2 {background-color: rgb(29, 52, 85) !important;}
.hai-text-3 { color: rgb(18, 143, 12) !important; }     .hai-bg-3 {background-color: rgb(18, 143, 12) !important;}              .hai-bg-3:hover {background-color: rgb(252, 175, 23) !important;}
.hai-text-4 { color: rgb(200, 100, 80) !important; }    .hai-bg-4 {background-color: rgb(200, 100, 80) !important;}
.hai-text-5 { color: rgb(15, 108, 50) !important; }     .hai-bg-5 {background-color: rgb(15, 108, 50) !important;}
.hai-text-6 { color: rgb(250, 220, 200) !important; }   .hai-bg-6 {background-color: rgb(250, 220, 200) !important;}
.hai-text-7 { color: rgb(200, 100, 80) !important; }    .hai-bg-7 {background-color: rgb(231, 139, 72) !important;}
.hai-text-8 { color: rgb(200, 100, 80) !important; }    .hai-bg-8 {background-color: rgb(245, 196, 94) !important;}
.hai-text-9 { color: rgb(190, 61, 42) !important; }     .hai-bg-9 {background-color: rgb(190, 61, 42) !important;}              .hai-bg-9:hover {background-color: rgb(18, 143, 12) !important;}
.hai-text-10 { color: rgb(252, 217, 178) !important; }  .hai-bg-10 {background-color: rgb(252, 217, 178) !important;}
.hai-text-11 { color: rgb(112, 211, 107) !important; }  .hai-bg-11 {background-color: rgb(112, 211, 107) !important;}
.hai-text-12 { color: rgb(255, 240, 190) !important; }  .hai-bg-12 {background-color: rgb(255, 240, 190) !important; }
.hai-text-13 { color: rgb(255, 240, 190) !important; }  .hai-bg-13 {background-color: rgb(255, 240, 190) !important; }
.hai-text-14 { color: rgb(255, 240, 190) !important; }  .hai-bg-14 {background-color: rgb(255, 240, 190) !important; }
.hai-text-15 { color: rgb(250, 0, 250) !important; }    .hai-bg-15 {background-color: rgb(250, 0, 250) !important; }
.hai-text-16 { color: rgb(255, 255, 255) !important; }  .hai-bg-16 {background-color: rgb(255, 255, 255) !important; }

::-webkit-scrollbar {
	width: 5px;
}

::-webkit-scrollbar-thumb {
	border-radius: 5px;
	background: rgba(255, 175, 25, 0.7);
}

::-webkit-scrollbar-track {
	border-radius: 5px;
}

.navbar .img-40 {
    position: relative;
    display:inline-flex;          /* thêm dòng này */
    align-items: center;        /* căn giữa dọc */
    justify-content: center;    /* căn giữa ngang */
    width: 40px;
    height: 40px;
    border: 2px solid rgba(217, 217, 217, 1);
    border-radius: 50%;
}
.navbar a{
    display:inline-flex; 
    align-items: center;
    justify-content: center;  
    padding: 0 !important;
    font-size: 25px;
    line-height: 1;
}
.navbar .navbar-brand i {
    display:inline-flex; 
    align-items: center;
    vertical-align: middle;
    font-size: 25px;
}
.navbar .navbar-brand{
    position: relative;
    display:inline-flex;        /* thêm dòng này */
    align-items: center;        /* căn giữa dọc */
    justify-content: center;    /* căn giữa ngang */
    vertical-align: middle;
    padding: 0 !important;
}

.navbar .navbar-brand:focus,
.navbar .navbar-brand:hover{
    color: var(--erp-color-5);
}

.toggle{
    cursor: pointer;
    margin-right: 5px;
    font-weight: bold;
}

.level-0 td{
    font-weight: bold;
}

.level-1{
    background: #fafafa;
}

@keyframes erpToastShow{
    to{
        opacity: 1;
        transform: translateY(0);
    }
}

/* Trang Login*/

.erp-login-wrapper{
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url("../../../img/login_bg.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top left;
}

.erp-login-box{
    position: absolute;
    background-color: rgba(0,0,0,0.25);
    height: 100%;
    width: 450px;
    right:0
}

.erp-login-logo{
    position:relative;
    height:180px;
    width:100%;
    display:inline-flex;        /* thêm dòng này */
    align-items: center;        /* căn giữa dọc */
    justify-content: center;    /* căn giữa ngang */
    /* background-color: aqua; */
   
}

/* ====== FORM GROUP ====== */
.g-group {
    position: relative;
    margin-bottom: 24px;
    padding: 0 1rem;
}

/* ====== INPUT BASE ====== */
.g-input
{
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid rgb(150, 150, 150);
    border-radius: 5px;
    color:rgb(15, 108, 50);
    outline: none;
    transition: all 0.2s ease;
}

.g-input:focus{
    transition: all 0.3s ease;
}

.g-group label {
    position: absolute;
    left: 16px;
    top: 10px;
    font-size: 16px;
    color:rgb(15, 108, 50);
    background: none;
    padding: 0 10px;
    transition: all 0.2s ease;
    pointer-events: none;
}

/* Floating */
.g-input:focus + label,
.g-input:not(:placeholder-shown) + label
{
    top: -25px;
    left: 10px;
    font-size: 16px;
    color: var(--erp-color-7);
    font-weight: 600;
}

.g-group i {
    padding-top: 12px;
    margin-left: -40px;
    font-size: 25px;
    color: white;
    cursor: pointer;
}
.erp-hidden{
    display: none;
}

.permission-group {margin-bottom:20px; border:1px solid #ddd; border-radius:8px;}
.permission-header {padding:10px; background:#f5f5f5; font-weight:bold;}
.permission-item {padding:10px; border-top:1px solid #eee;}
.permission-actions {margin-left:20px;}
.permission-group {
    border: 1px solid #ddd;
    margin-bottom: 10px;
    border-radius: 6px;
}

.permission-header {
    background: #f5f5f5;
    padding: 8px;
    font-weight: bold;
}

.permission-item {
    padding: 8px 16px;
}

.permission-actions {
    padding-left: 20px;
}

.tree-group {
    border: 1px solid #ddd;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 6px;
}

.tree-item {
    padding-left: 20px;
    margin-top: 5px;
}

.check-group {
    margin-right: 5px;
}

.group { border:1px solid #ddd; margin-bottom:10px; border-radius:6px; }
.group-header { background: var(--erp-color-8); padding:8px; cursor:pointer; }
.group-body {  background: rgb(248, 249, 250);  padding:10px; }
.item { margin-bottom:6px; }
.actions { margin-left:20px; }

.group .group-body {
    display: block;
}

.group.collapsed .group-body {
    display: none;
}

.toggle {
    cursor: pointer;
    display: inline-block;
    transition: 0.2s;
}

.group.collapsed .toggle {
    transform: rotate(-90deg);
    transition: 0.2s;
}

/* ===== GROUP ===== */
.group {
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

/* header layout */
.group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background: var(--erp-color-8);
}

/* body */
.group .group-body {
    padding: 10px;
    display: block;
}

.group.collapsed .group-body {
    display: none;
}

/* ===== TOGGLE ===== */
.toggle {
    cursor: pointer;
    transition: 0.2s;
    font-size: 14px;
}

.group.collapsed .toggle {
    transform: rotate(-90deg);
}

/* ===== CHECKBOX + LABEL ===== */
.group-label,
.item > label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* ===== CHECKBOX SIZE ===== */
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

input[type="checkbox"] {
    accent-color: #4CAF50;
}

input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid #022403;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    background: #fff;
}

/* khi checked */
input[type="checkbox"]:checked {
    background: #4CAF50;
    border: 1px solid #4CAF50;
}

/* dấu tick */
/* input[type="checkbox"]:checked::after {
    content: "✔";
    font-size: 12px;
    color: #fff;
    position: absolute;
    top: -2px;
    left: 2px;
} */

input[type="checkbox"]:checked::after {
    content: "";
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    position: absolute;
    top: 1px;
    left: 5px;
    transform: rotate(45deg);
}


/* 
input[type="radio"]:hover {
    outline: 3px solid rgba(76, 175, 80, 0.2);
    border-radius: 50%;
} */

/* ===== ITEM ===== */
.item {
    margin-bottom: 8px;
}

/* ===== ACTION ===== */
.actions {
    margin-left: 28px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ===== WRAPPER ===== */
#carouselExampleIndicators {
    position: relative;
}

/* ===== INNER ===== */
#carouselExampleIndicators .carousel-inner {
    padding-bottom: 35px;
}

/* ===== ITEM - giữ nguyên logic Bootstrap */
#carouselExampleIndicators .carousel-item {
    min-height: 180px;
}

/* CHỈ flex khi active */
#carouselExampleIndicators .carousel-item.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== CONTENT ===== */
#carouselExampleIndicators .carousel-item > div {
    width: 100%;
    max-width: 900px;
    display: flex;
    align-items: center;
}

/* ===== AVATAR ===== */
.img-anhthe-bao-150 {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid var(--erp-border-strong);
    overflow: hidden;
    flex-shrink: 0;
}

.img-anhthe-150 {
    width: 100%;
    height: 100%;
    background-size: cover !important;
    background-position: center !important;
}

/* ===== TEXT ===== */
#carouselExampleIndicators .text-black {
    margin-left: 20px;
    font-weight: 600;
}

.text-tim {
    color: var(--erp-color-7);
    font-size: 18px;
}

/* ===== NEXT BUTTON ===== */
#carouselExampleIndicators .carousel-control-next {
    width: auto;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

/* ===== INDICATORS ===== */
#carouselExampleIndicators .carousel-indicators {
    bottom: 15px;
    margin-bottom: 0;
}

#carouselExampleIndicators .carousel-item:not(.active) {
    display: none;
}

#carouselExampleIndicators .carousel-indicators .active {
   background-color: var(--erp-color-7);
}

.erp-table-inner-cogioi table {
    table-layout: fixed; /* Bắt buộc */
    width: 100%;
    border-collapse: collapse;
}

.erp-table-inner-cogioi td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap; /* Tránh dòng bị nhảy rowHeight do rớt chữ */
}

@font-face {
    font-family: 'Material Symbols Outlined';
    font-style: normal;
    font-weight: 300;
    src: url('../../fonts/MaterialSymbolsOutlined.woff2') format('woff2');
}

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    display: inline-block;
    line-height: 1;
    white-space: nowrap;
}