.icon-group {
    display: flex;
    align-items: center;
}

.icon-group .fa {
    margin-left: 10px;
    font-size: 1.2em;
    cursor: pointer;
}

.circular-chart {
    display: block;
    margin: 10px auto;
    max-width: 80%;
    max-height: 250px;
}

.circle-bg {
    fill: none;
    stroke: #eee;
    stroke-width: 4;
}

.circle {
    fill: none;
}

.card-container {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.progress-circle {
    display: flex;
    align-items: center;
    justify-content: center;
}

.Black-800 {
    color: #4f4f4f
}

.Black-400 {
    color: #EFEFEF
}

.fs-16 {
    font-size: 16px;
}

.fs-21 {
    font-size: 21px;
}

.fs-24 {
    font-size: 24px;
}

.fs-28 {
    font-size: 28px;

}

.fw-500 {
    font-weight: 500;
}

.fw-400 {
    font-weight: 400;
}

.fw-600 {
    font-weight: 600;
}

.alert-custom {
    position: fixed;
    top: 20px;
    right: 20px;
    height: 80px;
    background-color: #77B843;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1050;
}

.alert-custom .btn-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    margin-left: 10px;
}

.alert-custom.fade-out {
    animation: fadeOut 0.5s forwards;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.hl-1,
.hl-2,
.hl-3,
.hl-4 {
    height: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border-radius: 3px;
    padding: 2px 4px;
    font-size: 1rem;
    text-align: center;
    margin-left: 16px;
    font-weight: 500;
}

.hl-1 {
    background-color: #f0f8ff;
    color: #53AAFC;
    border: 1px solid #53AAFC;
}

.hl-2 {
    background-color: #ECE9FF;
    color: #B0A8F6;
    border: 1px solid #B0A8F6;
}

.hl-3 {
    background-color: #F7FCEC;
    color: #77B843;
    border: 1px solid #DFF7B8;
}

.hl-4 {
    background-color: #FAF8F8;
    color: #2D6A15;
    border: 1px solid #5B9E30;
}

@media (min-width: 1024px) {

    .hl-1,
    .hl-2,
    .hl-3,
    .hl-4 {
        width: 3.681vw;
        height: 27px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {

    .hl-1,
    .hl-2,
    .hl-3,
    .hl-4 {
        width: 80px;
        height: auto;
        font-size: 0.9rem;
        padding: 4px 8px;
    }
}

@media (max-width: 767px) {

    .hl-1,
    .hl-2,
    .hl-3,
    .hl-4 {
        width: 70px;
        height: auto;
        font-size: 0.8rem;
        padding: 4px 8px;
    }
}

@media (min-width: 576px) {
    #documentModal .modal-dialog {
        max-width: 1000px;
        margin: 1.75rem auto;
    }
}

#searchInput::placeholder {
    color: #8A8A8A !important;
}

.custom-link{
    /* color: #87CEEB !important; */
    color: red !important;
}

.form-control[readonly]:focus {
    background-color: #eceeef !important;
    opacity: 1 !important;
}

.form-control[readonly] {
    background-color: #eceeef !important;
    opacity: 0.7 !important;
}

.badge-primary {
    background-color: red !important;
}

.btn-primary {
    border-color: red !important;
    background-color: red !important;
}

/* Auto add red asterisk to required fields - label comes before input */
.form-group label:has(~ input[required])::after,
.form-group label:has(~ select[required])::after,
.form-group label:has(~ textarea[required])::after {
    content: " *";
    color: red;
}

/* Custom validation styling for size inputs */
.size-input.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

/* Platform sync buttons (Lazada / Shopee) */
.btn-sync-platform {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 8px;
    border: 2px solid transparent;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
    transition: box-shadow 0.2s ease, transform 0.15s ease, background-color 0.2s ease;
}

.btn-sync-platform:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.btn-sync-platform .sync-platform-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

.btn-sync-platform .sync-platform-icon {
    font-size: 14px;
    opacity: 0.9;
}

.btn-sync-lazada {
    background-color: #e8ebff !important;
    border-color: #0f146d !important;
    color: #0f146d !important;
}

.btn-sync-lazada:hover,
.btn-sync-lazada:focus {
    background-color: #d0d6ff !important;
    border-color: #0f146d !important;
    color: #0f146d !important;
}

.btn-sync-lazada .sync-platform-icon {
    color: #0f146d !important;
}

.btn-sync-shopee {
    background-color: #ffe8e3 !important;
    border-color: #ee4d2d !important;
    color: #c7351a !important;
}

.btn-sync-shopee:hover,
.btn-sync-shopee:focus {
    background-color: #ffd0c4 !important;
    border-color: #ee4d2d !important;
    color: #c7351a !important;
}

.btn-sync-shopee .sync-platform-icon {
    color: #ee4d2d !important;
}