:root {
	--gray-base: #202430;
	--gray-shade-60: #13161D;
	--gray-tint-30: #63666E;
	--gray-tint-50: #909298;
	--gray-tint-80: #D2D3D6;
	--gray-alpha-80: rgb(32 36 48 / .8); 
	--gray-tint-90: #E9E9EA;
	--main-bg_dark: #333;
	--color-hover: #0e4bf1;
	--user-info-1: hsla(174, 62%, 80%, 0.5);
	--user-info-2: hsla(160, 3%, 18%, 0.5);
	--main-bg_light: #e4e3e3;
	--white-base: #fff;
	--primary-base: #358FE6;
	--extras-sun: #FFD371;
	--extras-moon: #7190FF;
	--extras-black-alpha-64: rgb(0 0 0 / .64);
	--extras-white-alpha-64: rgb(255 255 255 / .64);
}
.hop__wrapper {
    margin: 0 auto;
    padding: 0 20px;
}

.hop__container {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    max-width: 100%;
    overflow-x: hidden;
}

.hop__panel--left,
.hop__panel--right {
    width: 50%;
    padding: 20px;
    border: 1px solid #63666E;
    background-color: #fafafa;
    border-radius: 10px;
    box-sizing: border-box;
    max-width: 100%;
}
.hop__panel--right {
	display: flex;
	justify-content: center;
    align-items: center;
}
.hop__form-group {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.hop__label {
    width: 40%;
    font-weight: bold;
    color: var(#909298);
    font-size: 17px;
}
.hop__input {
	padding: 5px 10px 5px 10px;
	width: 60%;
    border-radius: 5px;
    background: #fff;
    color: #13161D;
    border: 1px solid #ddd;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease; 
}

.hop__select {
    width: 60%;
    padding: 0 10px 0 10px;
    border-radius: 5px;
    background: #fff;
    color: #13161D;
    border: 1px solid #ddd;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease; 
}

.hop__input:hover,
.hop__select:hover {
    border-color: #1976d2;
    box-shadow: 0 0 5px rgba(25, 118, 210, 0.3); 
}


.checkbox-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 40%;
    margin-right: 0;
    margin-bottom: 5px;
    white-space: nowrap;
}
.checkbox-select-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 40%;
}
.hop__checkbox {
    border: 1px solid #ccc;
    border-radius: 4px;
}

.hop__checkbox:checked {
    background-color: #1976d2;
    border-color: #1976d2;
}

.hop__label--highlight {
    color: red;
    font-size: 18px;
}

.hop__input--highlight {
    color: red;
    font-weight: 600;
}

.hop__canvas {
    min-width: 350px;
	padding: 1rem;
}

.hop__card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 1rem;
    margin-bottom: 1rem;
    max-width: 100%;
}

.hop__card {
    position: relative;
    padding: 0 1rem 0 1rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    color: #909298;
    background-color: #fff;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
}

.hop__card-content-wrapper {
    margin-left: 0;
}

.hop__card-title {
    margin: 0.5rem 0 0.5rem 0;
    font-size: 18px;
}

.hop__card-content {
    margin: 5px 0;
}

.hop__card-button {
    align-self: stretch; /* Để nút bấm chiếm đủ chiều rộng */
    padding: 10px 15px;
    border: none;
    background-color: #1976d2;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.hop__card-button:hover {
    background-color: #155a9a;
}

.hop__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.hop__card--selected {
    border-color: #1976d2;
    background-color: #e3f2fd;
}

.hop__button {
    width: 100%;
    padding: 20px;
    background-color: #009688;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.hop__button:hover {
    background-color: #00796b;
}

.hop__card-icon {
    position: absolute; /* Đặt icon ở góc */
    top: 10px;
    right: 10px;
    font-size: 20px;
    color: white;
    background-color: red; 
    border-radius: 50%; 
    padding: 5px; 
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.hop__card-icon:hover {
    transform: scale(1.4);
}

.hop__card-info {
    display: none;
    position: absolute;
    top: -25px;
    right: 10px;
    background-color: #009688;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 10; 
}
.hop__card-icon:hover + .hop__card-info {
    display: block;
}

.hop__card-label {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 12px;
    color: red;
    font-weight: bold;
    background-color: rgba(255, 235, 59, 0.8);
    padding: 2px 8px;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    z-index: 9; /* Đảm bảo phần này cũng nổi */
}
/* Modal */
        .custom-modal {
            display: none; /* Ẩn modal mặc định */
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.4);
            justify-content: center;
            align-items: center;
        }

        /* Nội dung modal */
        .custom-modal-content {
            background-color: #fff;
            border-radius: 10px;
            padding: 20px;
            width: 500px;
            max-width: 90%;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            position: relative;
            border: 1px solid #ccc;
        }

        /* Tiêu đề modal */
        .custom-modal-content .title {
            background-color: #009688;
            color: white;
            margin: -20px -20px 20px -20px;
            padding: 15px;
            border-top-left-radius: 10px;
            border-top-right-radius: 10px;
            text-align: center;
        }

        /* Nút đóng modal */
        .close-button {
            position: absolute;
            top: 10px;
            right: 10px;
            font-size: 18px;
            font-weight: bold;
            color: #333;
            background-color: #fff;
            border: 1px solid #ccc;
            border-radius: 50%;
            width: 35px;
            height: 35px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }

        .close-button:hover {
            background-color: #fafafa;
            color: rgb(255, 0, 0);
        }

        /* Các nút trong modal */
        .custom-modal-buttons {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            margin-top: 20px;
        }

        .custom-modal-buttons .btn {
            padding: 12px 20px;
            font-size: 16px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            flex: 1 1 calc(50% - 10px);
            margin-bottom: 10px;
        }

        .custom-modal-buttons .btn:not(:last-child) {
            margin-right: 20px;
        }

        .custom-modal-buttons .btn:hover {
            opacity: 0.9;
        }

        .custom-modal-buttons .cancel {
            background-color: #f44336;
            color: white;
        }

        .custom-modal-buttons .btn.cancel:hover {
            background-color: #d32f2f;
        }

        .custom-modal-buttons .btn.confirm {
            background-color: #4CAF50;
            color: white;
        }

        .custom-modal-buttons .btn.confirm:hover {
            background-color: #45a049;
        }

        /* Tooltip */
        .custom-tooltip {
            position: absolute;
            background-color: #f44336;
            color: white;
            padding: 6px 10px;
            border-radius: 5px;
            font-size: 12px;
            z-index: 1000;
            opacity: 0;
            transition: opacity 0.3s ease;
            white-space: nowrap;
        }

        .custom-tooltip.visible {
            opacity: 1;
        }

        .custom-tooltip.hidden {
            opacity: 0;
        }

        /* Định vị tooltip cho bố cục label bên trái */
        .custom-form-group .tooltip {
            top: 100%;
            left: calc(30% + 10px); /* Điều chỉnh theo độ rộng của label và margin */
            margin-top: 5px;
        }

        /* Mũi tên cho tooltip */
        .custom-tooltip::before {
            content: "";
            position: absolute;
            top: -5px;
            left: 10px;
            border-width: 5px;
            border-style: solid;
            border-color: transparent transparent #f44336 transparent;
        }
		.button-inhoadon {
            width: 100%;
            padding: 12px;
            background-color: #009688;
            color: #fff;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 18px;
            transition: background-color 0.3s ease;
            margin-top: 10px;
        }

        /* Hiệu ứng hover cho nút */
        .button-inhoadon:hover {
            background-color: #00796b;
        }
@media (max-width: 768px) {
	#main-content__container {
		padding: .5rem;
	}
	#main-content {
		padding: .5rem;
		background-color: var(--main-bg);
	}
    .projects {
        grid-template-columns: 1fr; 
		gap: 1rem;
    }
	.projects__card {
		width: 100%;
		max-width: 45%;
		transition: transform 0.3s ease-in-out;
		margin: 0 auto; 
	}
    .task__badge,
    .task__meta-list {
        display: none;
    }
    .task__card {
        grid-template-columns: 1fr;
        padding: 0.5rem;
    }
    .task__card-content {
        display: flex;
        align-items: center;
        text-align: left;
    }
    .material-symbols-rounded.icon {
        font-size: 20px;
        margin-right: 8px;
    }
    .task__label {
        font-size: 0.875rem;
    }
	.user-info {
		gap: 0;
		padding: 0.5rem;
	}
	.thong-ke {
		grid-template-columns: 1fr; 
	  }
	.thong-ke__revenue-list {
	grid-template-columns: 1fr;
	}
	.thong-ke__revenue-list::after {
	display: none; 
	}
	.thong-ke__icon {
	font-size: 20px; 
	}
	.thong-ke__progress-data,
	.thong-ke__revenue-data {
	font-size: 1rem;
	}
	.hop__container {
        flex-direction: column;
        gap: 20px;
    }

    .hop__panel--left,
    .hop__panel--right {
        width: 100%;
    }

    .hop__label {
        font-size: 15px;
    }

    .hop__card-container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .hop__button {
        font-size: 16px;
        padding: 15px;
    }
}
@media (max-width: 480px) {
    .hop__wrapper {
        padding: 0 10px;
    }

    .hop__panel--left,
    .hop__panel--right {
        width: 100%;
    }

    .hop__input,
    .hop__select,
    .hop__button {
        width: 100%;
        font-size: 14px;
        box-sizing: border-box;
    }

    .hop__label {
        font-size: 14px;
    }

    .hop__card-container {
        grid-template-columns: 1fr;
    }
}
