.d-none {
    display: none !important;
}

.position-relative {
    position: relative;
}

.w-full {
 width: 100%;
}

.w-half {
    width: 50%;
}

.w-40 {
    width: 40%;
}

.w-49 {
    width: 49%;
}

.w-56 {
    width: 56%;
}

.h-80p {
    height: 80px;
}

.inline-block {
    display: inline-block;
}

.dashboard-container {
    position: relative;
    display: block;
    width: 100%;
    padding: 4rem;
    padding-bottom: 0;
}

.flex {
    position: relative;
    display: flex;
    gap: 2rem;
}

.flex-1 {
    flex: 1;
}

.flex-2 {
    flex: 2;
}

.flex-3 {
    flex: 3;
}

.flex-4 {
    flex: 4;
}

.flex-5 {
    flex: 5;
}

.flex-6 {
    flex: 6;
}


/*  마진 */
.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}


.mb-3 {
    margin-bottom: 3rem;
}

.mb-4 {
    margin-bottom: 4rem;
}




/* 백그라운드 */

.bg-red {
    background-color: red;
}

.bg-blue {
    background-color: blue;
}

.bg-green {
    background-color: green;
}

.bg-purple {
    background-color: purple;
}

.bg-orange {
    background-color: orange;
}


.dashboard-box-row1 {
    margin-bottom: 2rem;
}

.sales-container {
    position: relative;
    display: block;
}

.sales-box {
    width: 100%;
    background-color: rgba(23, 23, 28, 0.1);
    border-radius: 1rem;
}

#sales-1.sales-box {
    aspect-ratio: 1/1;
}

#sales-2.sales-box {
    aspect-ratio: 3/2;
}

#sales-3.sales-box,
#sales-5.sales-box {
    position: relative;
    aspect-ratio: 1/1;
    padding-top: 4rem;
}

#sales-4.sales-box {
    position: relative;
    aspect-ratio: 3/2;
    padding-top: 4rem;
}


#sales-1.sales-box canvas {
    position: absolute;
    display: block;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 80px) !important;
    height: auto !important;
    aspect-ratio: 1/1;
}

#sales-2.sales-box canvas {
    position: absolute;
    display: block;
    bottom: calc(2rem + 20px);
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 180px) !important;
    height: auto !important;
    aspect-ratio: 3/2;
}

.sales-box .chart-label {
    position: absolute;
    display: block; 
    top: 2rem;
    left: 4rem;
    width: calc(100% - 200px - 8rem);
}

.sales-box .chart-label > div {
    position: relative;
    display: inline-block;
    font-size: 1.6rem;
    line-height: 2.4rem;
    padding: 0.5rem 2rem;
    font-weight: 700;
    background-color: blue;
    color: #333;
    border-radius: 1rem;
margin-right: 2rem;
}

.sales-box .dropdown {
    position: absolute;
    display: block;
    top: 2rem;
    right: 4rem;
    width: 200px;
    border-radius: 1rem;
    color: #17171C;
    font-size: 1.6rem;
    line-height: 2rem;
    font-weight: 600;
    text-align: center;
}

#sales-3.sales-box .chart-area,
#sales-5.sales-box .chart-area {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: calc(100% - 10rem);
    padding: 2rem 2rem 4rem 2rem;
}

.sales-box .chart-title {
    position: relative;
    display: block;
    text-align: center;
    font-size: 2.4rem;
    line-height: 2.4rem;
    padding: 0.3rem 1.2rem;
    color: #333;
    border-radius: 1.2rem;
    font-weight: 700;
}

.bar-item {
    position: relative;
    display: flex;
    width: 100%;
    align-items: center;
    padding-right: 0.8rem;
}

.bar-label {
    width: 30%;
    font-size: 1.6rem;
    color: #333;
    font-weight: 700;
    text-align: center;
}

.bar-container {
    position: relative;
    flex: 1;
    height: 36px;
    background-color: #999;
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.8s ease-in-out;
    position: relative;
}

.bar-value {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    font-weight: bold;
    color: #fff;
}

/* 각 막대별 색상 */
.bar-1 .bar-fill {
    background-color: #FF0000;
}

.bar-2 .bar-fill {
    background-color: #FFC000;
}

.bar-3 .bar-fill,
.bar-4 .bar-fill,
.bar-5 .bar-fill {
    background-color: #575757;
}

/* 애니메이션 효과 */
.bar-fill {
    width: 0;
}

.bar-fill.animate {
    width: var(--width);
}

#sales-4.sales-box .chart-area{
    position: absolute;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: calc(100% - 10rem);
    padding: 0 2rem 4rem 2rem;
}

.vertical .bar-column {
    position: relative;
    display: flex;
    height: 100%;
    flex-direction: column;
    align-items: center;
}

.vertical .bar-percentage {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
    min-height: 20px;
}

.vertical .bar-container {
    width: 60px;
    background-color: transparent;
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: all 0.8s ease-in-out;
}

.vertical .bar-fill {
    position: absolute;
    bottom: 0;
    width: 100%;
    border-radius: 4px 4px 0 0;
    transition: height 0.8s ease-in-out;
    height: 0;
}

.vertical .bar-fill.animate {
    height: var(--height);
}

.vertical .bar-label {
    width: 100%;
    margin-top: 10px;
    padding: 0;
    color: #333;
    font-weight: 700;
    text-align: center;
}

/* 각 막대별 색상 */
.vertical .bar-1 .bar-fill {
    background-color: #FF0000;
}

.vertical .bar-1 .bar-percentage {
    color: #FF0000;
}   

.vertical .bar-2 .bar-fill {
    background-color: #FFC000;
}

.vertical .bar-2 .bar-percentage {
    color: #FFC000;
}

.vertical .bar-3 .bar-fill,
.vertical .bar-4 .bar-fill,
.vertical .bar-5 .bar-fill {
    background-color: #575757;
}

.vertical .bar-3 .bar-percentage,
.vertical .bar-4 .bar-percentage,
.vertical .bar-5 .bar-percentage {
}

/* 상위 2개 막대는 평균선 위에 퍼센트 표시 */
.vertical .bar-1 .bar-percentage,
.vertical .bar-2 .bar-percentage {
    color: #039848;
}

.vertical .average-line {
    position: absolute;
    bottom: var(--average-position);
    left: 0;
    right: 0;
    height: 2px;
    background-color: #fcfcfc;
    z-index: 10;
}

.average-text-top {
    position: absolute;
    width: 100%;
    text-align: center;
    bottom: 3px;
    color: #fcfcfc;
    font-size: 1rem;
}

.average-text-bottom {
    position: absolute;
    width: 100%;
    text-align: center;
    top: 3px; /* 선 아래쪽에 "17%" */
    color: #fcfcfc;
    font-size: 1rem;
    font-weight: bold;
}

.sales-table-container {
    position: relative;
    display: block;
    padding: 2rem 4rem;
    padding-bottom: 0;

}

.sales-table-box {
    position: relative;
    display: flex;
    gap: 2rem;
    width: 100%;
    padding: 3.6rem;
    background-color: rgba(23, 23, 28, 0.1);
    border-radius: 1rem;
}

.sales-table-title {
    font-size: 2.4rem;
    line-height: 3rem;
    font-weight: bold;
    width: 120px;
    color: #333;
}

.sales-table-box table {
    width: 100%;
    text-align: center;
}

.sales-table-box table th,
.sales-table-box table td {
    border: 1px solid #ccc;
    padding: 5px 7px;
}

.sales-table-box table th{
    background-color: #575757;
    color: #fcfcfc;
}

.sales-table-box table td{
    background-color: #fcfcfc;
    color: #333;
}

.sales-table-box table td.empty,
.sales-table-box table th.empty {
    background-color: transparent;
    border: none;
    width: 2%;
}

.sales-box .chart-label .monthly-trend,
.sales-box .chart-label .daily-call-trend {
    background-color: rgba(51, 51, 51, 0.5);
    color: #fff;
}

.sales-box .chart-label .monthly-trend.on {
    background-color: #FF0000;
}

.sales-box .chart-label .daily-call-trend.on {
    background-color: #FFC000;
}

.sales-info-transter{
    position: absolute;
    display: block;
    top: 10px;
    right: 0;
    font-size: 18px;
    line-height: 26px;
    padding: 12px 18px;
    background: linear-gradient(to bottom, #6767A7, #7A7ABA);
    border-radius: 8px;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    &:hover {
        background-color: #6868a5;
    }
}


.move-to-client {
    position: absolute;
    display: block;
    top: 10px;
    right: 0;
    font-size: 18px;
    line-height: 26px;
    padding: 12px 18px;
    background: linear-gradient(to bottom, #67a5a7, #7abab5);
    border-radius: 8px;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    &:hover {
        background-color: #68a598;
    }
}




.modal-container {
    display: none; 
    position: fixed; 
    width: 640px;
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    background: #fff; 
    padding: 20px; 
    border: 1px solid #ccc; 
    border-radius: 1rem;
    z-index: 10000; 
}

.modal-overlay {
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.5); 
    z-index: 9999; 
}

.modal-container textarea {
    position: relative;
    flex: 1;
    height: 17rem;
    font-size: 1.6rem;
    line-height: 2.4rem;
    padding: 1.2rem;
    border-radius: 1rem;
    border: 1px solid #ccc;
    resize: none;
}

.modal-container .listBox {
    flex: 2;
    position: relative;
    height: 17rem;
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid #ccc;
}

.modal-container .listBox .listBoxTitle {
    position: relative;
    display: inline-block;
    vertical-align: top;
    font-size: 0;
    margin-bottom: 0.6rem;
}

.modal-container .listBox .listBoxTitle span {
    display: inline-block;
    vertical-align: top;
    font-size: 1.4rem;
    line-height: 2rem;
    padding: 0.2rem 0.8rem;
    color: #fff;
    font-weight: bold;
}

.modal-container .listBox .listBoxTitle span:first-child {
    padding-right: 0.6rem;
    background-color: #1e5b94;
    border-radius: 1rem 0 0 1rem;
}

.modal-container .listBox .listBoxTitle span:last-child {
    padding-left: 0.6rem;
    background-color: #4d515f;
    border-radius: 0 1rem 1rem 0;
}

.modal-container .depositorList {
    position: relative;
    height: 12rem;
    overflow-y: auto;
    padding: 0 0.6rem;
    margin-bottom: 0;
}

.modal-container .depositorList li .depositorItem {
    position: relative;
    display: flex;
    justify-content: space-between;
}

.modal-container .depositorList li {
    position: relative;
    display: block;
    height: 3rem;
}

.modal-container .depositorList li span {
    display: inline-block;
    vertical-align: top;
    font-size: 1.6rem;
    line-height: calc(2rem - 1px);
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #ccc;
}






.modal-container .preview {
    flex: 2;
    position: relative;
    /* display: flex; */
    display: none;
    flex-direction: column;
    justify-content: space-between;
    height: 17rem;
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid #ccc;
}

.modal-container .preview div {
    flex: 1;
    margin-top: 0.4rem;
    padding-left: 0.4rem;
}

.modal-container .preview div span{
    position: relative;
    display: inline-block;
    vertical-align: top;
    line-height: 1.6rem;
}

.modal-container .preview .label {
    background-color: #1e5b94;
    border-radius: 1rem;
    padding: 0.4rem 1rem;
    margin: 0.2rem 0;
    color: #fff;
}

.modal-container .preview .detail {
    font-size: 2rem;
    line-height: 2.8rem;
    font-weight: bold;
    padding-left: 0.8rem;
}

.btn {
    padding: 0.8rem 1.2rem;
    background: #1e5b94;
    color: #fff;
    border: none;
    cursor: pointer;
}

.modal-container #closeModal {
    position: absolute;
    right: 20px;
    font-size: 1.2rem;
    line-height: 2.2rem;
    padding: 0.2rem 0.8rem;
    height: auto;
    cursor: pointer;
}

