.color-proj-tam-dung {
    color: #7E8080;
}

.color-proj-dang-thuc-hien {
    color: #FD7215;
}

.color-proj-hoan-thanh {
    color: #42A207;
}

.color-proj-san-sang {
    color: #27DBE1;
}

.bg-proj-tam-dung {
    background-color: #7E8080;
}

.bg-proj-dang-thuc-hien {
    background-color: #FD7215;
}

.bg-proj-hoan-thanh {
    background-color: #42A207;
}

.bg-proj-san-sang {
    background-color: #27DBE1;
}

.dashboard-panel {
    padding: 1rem;
}

.dashboard-panel-wrapper {
    background-color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 1rem;
}

.dashboard-panel-body {
    flex: 1;
}

.dashboard-panel-header {
    gap: 0.15rem;
    display: flex;
    flex-direction: row;
}

.dashboard-panel-title {
    color: #6C7EE1;
    font-size: 1rem;
    margin-left: 1rem;
    height: 2rem;
    line-height: 2rem;
}

.dashboard-panel-summary {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dashboard-panel-summary-value {
    color: #FFFFFF;
    font-size: 1.2rem;
    font-weight: 700;
    flex: 1;
    align-self: center;
}

.dashboard-panel-summary-title {
    color: #FFFFFF;
    font-size: 0.8rem;
    align-self: center;
    text-align: center;
}

svg {
    width: 100%;
    height: auto;
    display: block;
}

#gaugeContainer {
    margin: auto;
}

/*Hoan thanh dung han*/
.on-time-complete-container {
    display: flex;
    flex-direction: column;
    margin: 1rem;
    flex: 1;
    gap: 1rem;
}

.on-time-complete-item {
    display: flex;
    flex-direction: column;
}

.on-time-complete-item-progress {
    width: 100%;
    height: 2rem;
    background-color: #C60B0B;
}

.on-time-complete-item-progress-bar {
    background-color: #42A207;
}

.on-time-complete-item-desc {
    display: flex;
    gap: 0.5rem;
    flex-direction: row;
    align-items: center;
}

.on-time-complete-item-desc-name {
    font-size: 0.8rem;
    color: #6C7EE1;
}

.on-time-complete-item-desc-value {
    font-size: 1rem;
    color: #6C7EE1;
}

/*du an theo tinh trang*/
.dashboard-prj-stt-row-container {
    min-height: 40px;
}

#dashboard-prj-stt-chart {
    border-bottom-color: #6C7EE1;
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-left-color: #6C7EE1;
    border-left-width: 1px;
    border-left-style: solid;
}

.dashboard-prj-stt-col-pause {
    background-color: #EEEEEE;
}

.dashboard-prj-stt-col-ready {
    background-color: #D4F8F9;
}

.dashboard-prj-stt-col-doing {
    background-color: #FFE3D0;
}

.dashboard-prj-stt-col-finish {
    background-color: #D9ECCD;
}

.dashboard-prj-stt-col-overdue {
    background-color: #F19483;
}

.dashboard-prj-stt-col-due {
    background-color: #F8C471;
}

.dashboard-prj-stt-col-upcoming {
    background-color: #F9E79F;
}

.dashboard-prj-stt-col-not-due {
    background-color: #A2DED0;
}

.dashboard-prj-stt-cell {
    position: relative;
    border: 1px solid white;
    min-height: 50px;
}

.dashboard-prj-stt-point {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
    opacity: 0.9;
    cursor: pointer;
    border: .5px solid #fff;
}

.dashboard-prj-stt-y-labels-wrapper {
    display: flex;
    justify-content: center;
}

.dashboard-prj-stt-y-labels {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: right;
    font-weight: bold;
    margin-right: 0.25rem;
    width: 3rem;
}

.dashboard-prj-stt-y-label {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-size: 0.65rem;
}

.dashboard-prj-stt-x-labels {
    margin-left: 3.25rem;
}

.dashboard-prj-stt-x-label {
    flex: 1;
    display: flex;
    align-items: center;
    font-size: 0.65rem;
    text-align: center;
    justify-content: center;
}

.color-red {
    color: red;
}

.color-pink {
    color: hotpink;
}

.color-green {
    color: green;
}

.color-purple {
    color: mediumpurple;
}

.color-orange {
    color: darkorange;
}

.color-blue {
    color: deepskyblue;
}

.color-gray {
    color: gray;
}

#dashboard-prj-stt-tooltip {
    z-index: 9999;
    font-size: 14px;
}

@media (max-width: 767px) {

    .dashboard-prj-stt-y-labels,
    .dashboard-prj-stt-x-labels {
        display: none !important;
    }
}

/*Top nhan su theo du an*/
.top-item {
    margin-bottom: 15px;
}

.bar-container {
    position: relative;
    display: flex;
    height: 22px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background: #eaeaea;
}

.bar {
    height: 100%;
    width: 0;
    transition: width 0.8s ease;
    position: relative;
    text-align: center;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    line-height: 22px;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.4);
}

.not-started {
    background: #1AB9D2;
}

.in-progress {
    background: #FD7215;
}

.completed {
    background: #42A207;
}

.closed {
    background: #A9A9A9;
}

.user-info {
    color: #5A6ACF;
    margin-top: 4px;
}

/* Tooltip */
.tooltip {
    position: fixed; /* dùng fixed để tránh bị giới hạn bởi container */
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.4;
    white-space: pre-line;
    z-index: 9999; /* đảm bảo luôn hiển thị trên cùng */
    display: none;
    max-width: 300px;
    pointer-events: none; /* không chặn hover */
}

@media screen and (max-width: 600px) {
    .staff-bar {
        height: 30px;
    }

    .segment {
        font-size: 12px;
        line-height: 30px;
        padding: 0 6px;
        min-width: 30px;
    }

    .staff-bar-label {
        font-size: 13px;
    }
}

/* Cảnh báo tiến độ dự án */
.project-progress-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.project-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
    gap: 5px;
}

.project-name {
    flex: 1;
    color: #111;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    white-space: normal;
    word-break: break-word;
    cursor: default;
}

.project-status {
    text-align: right;
    font-weight: 600;
}

.project-progress {
    width: 50px;
    height: 50px;
    position: relative;
    flex-shrink: 0;
}

.project-progress svg {
    transform: rotate(-90deg);
}

.project-progress circle {
    transition: stroke-dashoffset 0.5s ease;
}

.project-progress .percent-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: sans-serif;
    font-size: 10px;
    font-weight: bold;
    color: #333;
}

.apexcharts-legend {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    overflow: visible !important;
}

/*Button xem them*/
.btn-view-more {
    background: linear-gradient(to right, #6C7EE1 20%, #27DBE1 100%);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    margin-left: 2rem;
    margin-right: 2rem;
    border-radius: 1rem;
    transition: background 0.6s ease-in-out, color 0.3s ease, box-shadow 0.4s ease;
}

.btn-view-more:hover {
    background: linear-gradient(to left, #6C7EE1 20%, #27DBE1 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(108, 126, 225, 0.4);
}