:root {
    --primary-color: #2f6d93;
    --primary-dark: #1e5070;
    --primary-light: #e8f1f6;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --bg-color: #f1f5f9;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(31, 41, 55, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(31, 41, 55, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(31, 41, 55, 0.1);
    --radius: 8px;
}

.card-header h4 {
    font-size: 20px;
    line-height: 30px;
    font-weight: 500;
    color: var(--text-primary);
}

.card-body.nid-card-body, .card-body.basicinfo-card-body{
    height: 240px;
}

.card-body .row .col-4,
.card-body .row .col-4 p {
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.col-lg-6 .card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}
.col-lg-6 .card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}
.col-lg-6 .card-header {
    background-color: var(--primary-light);
    border: none;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    color: var(--primary-color);
    font-weight: 600;
}

.card-body .row .col-lg-8,
.card-body .row .col-lg-8 p {
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.table-card .dashboard-card-header {
    padding: 0;
    border-bottom: 2px solid var(--border-color);
}

.dashboard-card .dashboard-card-header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    gap: 15px;
    border-bottom: 1px solid var(--border-color);
}

.add-employee-progress ul {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.add-employee-progress li.active {
    color: var(--primary-color);
}
.add-employee-progress li.active p {
    background-color: var(--primary-color);
}

.add-employee-progress li {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    text-transform: capitalize;
    color: var(--text-primary);
    /* position: relative; */
    font-weight: 500;
    letter-spacing: 1px;
    /* padding: 8px 35px 8px 20px; */
    padding-right: 16px;
    padding-bottom: 5px;
    /* clip-path: polygon(95% 0, 100% 50%, 95% 100%, 0% 100%, 5% 50%, 0% 0%); */
}
.add-employee-progress li p {
    width: 25px;
    height: 25px;
    line-height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    background-color: var(--text-muted);
    margin-right: 8px;
    font-size: 16px;
    font-weight: 600;
}

.add-employee-progress li span {
    margin-left: 8px;
}

.add-employee-progress li.active::before {
    width: 100%;
}

.add-employee-progress ul li {
    margin-bottom: 10px;
}

.info-right button {
    padding: 10px 16px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.info-right button:hover {
    background-color: var(--primary-color);
    color: white;
}

.idcard-btn {
    padding: 10px 16px;
    border: 1px solid #0d9aff;
    color: #0d9aff;
    border-radius: 8px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.py-13 {
    padding-top: 13px !important;
    padding-bottom: 13px !important;
}
.mb-20 {
    margin-bottom: 20px !important;
}
.custom-pb-4 {
    padding-bottom: 4px !important;
}

.custom-percent-border {
    border: 1px solid var(--border-color);
}
.custom-percent-input {
    border: 0px !important;
}

.custom-percent-btn,
.custom-percent-btn:hover {
    background-color: var(--bg-color);
}

.custom-percent-select {
    background-color: transparent;
    color: var(--text-secondary);
}

.custom-percent-select:focus-visible {
    border: none !important;
    box-shadow: none;
}

/* id card */
.col-lg-5 .card .card-header {
    height: 62px;
    display: flex;
    align-items: center;
}
.nid-card {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
}
.id-card {
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-md);
    background-color: var(--white);
    overflow: hidden;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.id-card .shape-one {
    position: relative;
}
.id-card .shape-one .title {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.id-card .title {
    font-size: 13px;
    font-weight: 600;
    width: 100%;
    color: #fff;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
}

.id-card .info .card-subtitle {
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    padding-top: 5px;
}
.id-card .info .designation {
    font-size: 8px;
    font-weight: 400;
    line-height: 16px;
}

.id-card h4 {
    font-size: 10px;
    font-weight: 600;
    line-height: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.id-card p {
    font-size: 10px;
    font-weight: 600;
    line-height: 12px;
}

.nid-card .id-card .address {
    padding: 0 10px;
    text-align: center;
}
.nid-card .id-card .address h4 {
    margin-top: -10px !important;
    color: #101828;
    font-weight: 600;
    text-align: center;
    margin-top: 10px;
}
.nid-card .id-card .address p {
    font-size: 5px;
    line-height: 9px;
    font-weight: 700;
}
.nid-card .id-card .address p:last-child {
    font-weight: 400;
    margin: 5px 0;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 45px;
}

.id-card .details-info {
    display: grid;
    grid-template-columns: 23px auto;
    padding: 0 10px;
}
.id-card .details-info.date {
    display: grid;
    grid-template-columns: 35px auto;
    padding: 0 10px;
    margin-bottom: -1px;
}
.id-card .details-info p:first-child {
    /* width: 32px; */
    font-size: 6px;
    line-height: 10px;
    color: #7c8593;
}
.id-card .details-info p:last-child {
    font-size: 6px;
    font-weight: 600;
}

.id-card .profile-imgs {
    width: 37px;
    height: 37px;
    line-height: 37px;
    border: 1px solid #0d9aff;
}
.col-md-2.mb-3 .user-image {
    position: relative;
    border-radius: 5px;
}
.col-md-2.mb-3 .user-image .profile-img {
    max-height: 300px;
    width: 100%;
    object-fit: contain;
}
.col-md-2.mb-3 .user-image .camera-img {
    position: absolute;
    top: 10px;
    right: 10px;
}
.nid-card .user-signature {
    width: 30px !important;
    border-bottom: 1px dashed #686868;
}

@media (min-width: 1335px) and (max-width: 1400px) {
    .nid-card .id-card .address p {
        font-size: 5px;
        line-height: 10px !important;
        font-weight: 700;
    }
    .card-body .row .col-4,
    .card-body .row .col-4 p {
        font-size: 12px;
        margin-bottom: 6px !important;
    }
}
@media (min-width: 1200px) and (max-width: 1400px) {
    .nid-card {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
    }
    .card-body .row .col-4,
    .card-body .row .col-4 p {
        font-size: 12px;
        margin-bottom: 5px;
    }

    .nid-card .id-card .address p {
        font-size: 5px;
        line-height: 7px;
        font-weight: 700;
    }
    .nid-card .id-card .address p:last-child {
        height: 40px;
    }
    .id-card .details-info p:last-child {
        font-size: 5px;
        font-weight: 600;
    }
}
@media (min-width: 1400px) and (max-width: 1650px) {
    .nid-card .id-card .address p:last-child {
        height: 35px;
    }

    .id-card .details-info.date {
        display: grid;
        grid-template-columns: 30px auto;
    }
    .id-card .details-info.date p {
        font-size: 5px;
    }
}
@media (min-width: 1400px) and (max-width: 1600px) {
    .custom-pb-4 {
        padding-bottom: 3.1px !important;
    }

    .id-card .details-info {
        padding: 0 7px;
    }
    .card-body .row .col-4,
    .card-body .row .col-4 p {
        margin-bottom: 5.1px;
    }
}
@media (max-width: 550px) {
    .nid-card {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }
}
@media (min-width: 992px) {
    .min-h-lg-618 {
        min-height: 618px;
    }
    .min-h-lg-450 {
        min-height: 450px;
    }
    .min-h-lg-392 {
        min-height: 392px;
    }
}
