.card1 {
    background-image: linear-gradient(45deg, #3d8efe, #c1dbfe);
}

.card2 {
    background-image: linear-gradient(45deg, #29cb93, #a5edd0);
}

.card3 {
    background-image: linear-gradient(45deg, #feb151, #feda94);
}

.card4 {
    background-image: linear-gradient(45deg, #fe5f60, #feb8ba);
}

.newCardHeader {}

.cardImage {
    position: absolute;
    right: 10px;
    bottom: 10px;
}

.cardImage img {
    height: 100px;
    opacity: 80%;
}


/* progress bar */

.progress-card {}

.progress-card .progress-row {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    gap: 18px;
}

.progress-card .title {
    width: 110px;
    font-size: 16px;
    font-weight: 600;
    color: #2b2d42;
}

.progress-card .progress {
    flex: 1;
    height: 8px;
    border-radius: 20px;
    background: #eceff5;
    overflow: hidden;
}

.progress-card .progress-bar {
    width: 0;
    border-radius: 20px;
    transition: width 2s ease-in-out;
}

.progress-card .percent {
    width: 55px;
    text-align: right;
    font-size: 16px;
    font-weight: 700;
    color: #2b2d42;
}

.progress-card .progress-bar {
    background-size: 200% 100%;
    animation: loading 2s linear infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.offcanvas.offcanvas-end.masters {
    --bs-offcanvas-width: 25vw;
}


/* Main Card */

.document-card {
    position: relative;
    min-height: 160px;
    border-radius: 18px;
    padding: 22px 24px;
    overflow: hidden;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .4);
    box-shadow: 0 10px 25px rgba(31, 41, 55, .08), inset 0 1px 0 rgba(255, 255, 255, .35);
    transition: all .3s ease;
}

.document-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 35px rgba(31, 41, 55, .15), inset 0 1px 0 rgba(255, 255, 255, .45);
}


/* Gradients */

.card-blue {
    background: linear-gradient(45deg, #1d75db 0%, #3577c9 45%, #9ccaff 100%);
}

.card-green {
    background: linear-gradient(45deg, #209f7a 0%, #299d77 50%, #8ae5c6 100%);
}

.card-orange {
    background: linear-gradient(45deg, #d18f29 0%, #e19623 55%, #ffd07c 100%);
}

.card-red {
    background: linear-gradient(45deg, #cd3f49 0%, #e7313d 50%, #ff9ca3 100%);
}


/* Icon box */

.card-icon {
    width: 68px;
    height: 68px;
    min-width: 58px;
    border-radius: 15px;
    background: rgba(255, 255, 255, .95);
    color: #1677ee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, .06);
}

.green-icon {
    color: #12a66c;
}

.orange-icon {
    color: #ff7500;
}

.red-icon {
    color: #e92838;
}


/* Text */

.card-label {
    font-size: 16px;
    /* font-weight: 700; */
    letter-spacing: .3px;
    text-transform: uppercase;
    margin-bottom: 3px;
    opacity: .95;
}

.card-number {
    font-size: 32px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: .2px;
    margin-bottom: 7px;
}

.card-description {
    font-size: 14px;
    /* font-weight: 500; */
    opacity: .95;
}


/* Bottom badge */

.card-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 16px;
    padding: 6px 11px;
    border-radius: 7px;
    background: rgb(0 0 0 / 16%);
    color: white;
    font-size: 13px;
    letter-spacing: 0.6px;
    font-weight: 400;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .08);
}

.green-badge {
    background: rgb(0 0 0 / 16%);
}

.orange-badge {
    background: rgb(0 0 0 / 16%);
}

.red-badge {
    background: rgb(0 0 0 / 16%);
}


/* Decorative illustration */

.decoration {
    position: absolute;
    right: -5px;
    bottom: -15px;
    width: 115px;
    height: 115px;
    opacity: .18;
    pointer-events: none;
}


/* Document illustration */

.document-shape {
    position: absolute;
    width: 58px;
    height: 75px;
    border: 2px solid rgba(255, 255, 255, .8);
    border-radius: 9px;
    transform: rotate(3deg);
}

.document-shape:before,
.document-shape:after {
    content: "";
    position: absolute;
    left: 14px;
    right: 12px;
    height: 4px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .85);
}

.document-shape:before {
    top: 25px;
}

.document-shape:after {
    top: 39px;
    width: 30px;
}

.document-shape.second {
    left: 15px;
    top: 15px;
    opacity: .65;
}

.document-shape.first {
    left: 32px;
    top: 3px;
}


/* Shield */

.shield {
    position: absolute;
    right: 22px;
    bottom: 10px;
    width: 70px;
    height: 82px;
    background: rgba(255, 255, 255, .35);
    clip-path: polygon( 50% 0%, 91% 18%, 84% 67%, 50% 100%, 16% 67%, 9% 18%);
}

.shield-check {
    position: absolute;
    top: 30px;
    left: 23px;
    width: 27px;
    height: 15px;
    border-left: 6px solid rgba(255, 255, 255, .65);
    border-bottom: 6px solid rgba(255, 255, 255, .65);
    transform: rotate(-45deg);
}


/* Hourglass */

.hourglass {
    position: absolute;
    right: 25px;
    bottom: 5px;
    width: 55px;
    height: 80px;
    opacity: .55;
}

.hourglass:before,
.hourglass:after {
    content: "";
    position: absolute;
    left: 3px;
    width: 49px;
    height: 9px;
    background: rgba(255, 255, 255, .8);
    border-radius: 8px;
}

.hourglass:before {
    top: 3px;
}

.hourglass:after {
    bottom: 3px;
}

.hourglass-middle {
    position: absolute;
    top: 10px;
    left: 8px;
    width: 40px;
    height: 62px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 27px solid rgba(255, 255, 255, .65);
    border-bottom: 27px solid rgba(255, 255, 255, .65);
}


/* Expired document decoration */

.expired-document {
    position: absolute;
    right: 15px;
    bottom: 8px;
    width: 65px;
    height: 80px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .18);
    border: 2px solid rgba(255, 255, 255, .28);
}

.expired-document:before,
.expired-document:after {
    content: "";
    position: absolute;
    left: 13px;
    height: 5px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .45);
}

.expired-document:before {
    top: 25px;
    width: 38px;
}

.expired-document:after {
    top: 39px;
    width: 25px;
}

.x-circle {
    position: absolute;
    right: -10px;
    bottom: -8px;
    width: 43px;
    height: 43px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, .45);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: rgba(255, 255, 255, .65);
}


/* Responsive */

@media (max-width: 767px) {
    .dashboard-wrapper {
        padding: 20px 15px;
    }
    .document-card {
        min-height: 165px;
        padding: 20px;
    }
    .card-number {
        font-size: 26px;
    }
    .card-icon {
        width: 53px;
        height: 53px;
        min-width: 53px;
        font-size: 25px;
    }
}

@media (max-width: 400px) {
    .document-card {
        min-height: 155px;
    }
    .card-label {
        font-size: 10px;
    }
    .card-number {
        font-size: 24px;
    }
    .card-description {
        font-size: 11px;
    }
    .decoration {
        transform: scale(.8);
        transform-origin: bottom right;
    }
}

.chart-card {
    background: #ffffff;
    border: 1px solid #edf0f5;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(30, 50, 80, 0.08);
    padding: 22px 24px;
}

.chart-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.title-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #7c3aed;
    box-shadow: 0 2px 6px rgba(124, 58, 237, .35);
}

.chart-title h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #172033;
}

.document-card {
    border: 1px solid #e5edf8;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(35, 80, 130, 0.08);
    overflow: hidden;
}

.document-header {
    padding: 16px 18px 10px;
}

.document-title {
    font-size: 15px;
    font-weight: 700;
    color: #17213c;
    margin: 0;
}

.document-title-icon {
    width: 18px;
    height: 18px;
    color: #198cff;
}

.menu-icon {
    font-size: 20px;
    color: #111827;
    line-height: 1;
}

.document-table-wrapper {
    padding: 0 10px;
}

.document-table {
    margin-bottom: 0;
    vertical-align: middle;
    font-size: 14px;
}

.document-table thead th {
    background: #eef5fc;
    color: #17213c;
    font-weight: 700;
    border: 0;
    padding: 5px 8px;
    white-space: nowrap;
}


/* .document-table thead th:first-child {
                                border-radius: 10px 0 0 0;
                            }
                            
                            .document-table thead th:last-child {
                                border-radius: 0 10px 0 0;
                            } */

.table.document-table.table-borderless:not(.table-sm)>thead>*>* {
    padding-block: .8rem;
}

.document-table tbody td {
    padding: 8px 12px;
    border-color: #edf1f6;
    color: #29334d;
    height: 36px;
}

.document-table tbody tr:last-child td {
    border-bottom: 0;
}

.document-name {
    font-weight: 600;
    color: #27314a;
}

.priority {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    padding: 5px 12px;
    border-radius: 20px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.priority-critical {
    background: #ff3b3b;
}

.priority-high {
    background: #ff8a1f;
}

.priority-medium {
    background: #ffbd20;
}

.priority-low {
    background: #65c98b;
}

.renew-btn {
    min-width: 70px;
    padding: 4px 12px;
    border-radius: 7px;
    border: 1px solid #c5dcfb;
    background: #eef6ff;
    color: #1674e8;
    font-size: 12px;
    font-weight: 600;
}

.renew-btn:hover {
    background: #dceeff;
    color: #0965d8;
}

.view-all {
    padding: 9px;
    text-align: center;
    background: #f1f7fd;
}

.view-all a {
    color: #1674e8;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.view-all a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .document-table-wrapper {
        overflow-x: auto;
    }
    .document-table {
        min-width: 750px;
    }
}

.timeline.Activity_log .timeline-item .timeline-event h6 {
    font-size: 14px;
}

.timeline.Activity_log .timeline-item .timeline-event span {
    font-size: 12px;
}

.timeline .timeline-item .timeline-event {
    min-block-size: 3rem !important;
}

.timeline.Activity_log {
    block-size: inherit;
}

.Branch_sec .text-heading {
    font-weight: 600;
    font-size: 13px;
}

.Branch_sec small {
    color: #202020;
}

.timeline.Activity_log li:last-child {
    border-inline-start: none;
}


/* Department rows */

.department-list {
    padding: 5px 18px 12px;
}

.department-row {
    display: flex;
    align-items: center;
    height: 36px;
    margin-bottom: 4px;
}

.department-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

.department-name {
    width: 105px;
    padding-left: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #202942;
}


/* Progress */

.progress-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

#bulkUploadTable .progress{
    height: 16px;
}

.progress {
    height: 6px;
    flex: 1;
    background-color: #edf0f5;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    border-radius: 10px;
}

.percentage {
    width: 42px;
    text-align: right;
    font-size: 12px;
    font-weight: 600;
    color: #202020;
}


/* Icon colors */

.icon-green {
    color: #26a94b;
    background: #eaf9ef;
}

.icon-blue {
    color: #2778e8;
    background: #edf5ff;
}

.icon-orange {
    color: #ff8411;
    background: #fff1e5;
}


/* Progress colors */

.bar-green {
    background-color: #45b85a;
}

.bar-yellow {
    background-color: #ffc21a;
}

.bar-orange {
    background-color: #ff8515;
}


/* Full calendar */

.calendar-wrapper {
    max-width: 1400px;
    margin: 40px auto;
}

.calendar-card {
    background: #fff;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .08);
    overflow: hidden;
}

.calendar-sidebar {
    background: #fff;
    border-right: 1px solid #e5e5e5;
    padding: 25px;
}

.calendar-main {
    padding: 25px;
}

.calendar-title {
    font-size: 22px;
    font-weight: 600;
    color: #384551;
}

.event-list-title {
    font-size: 14px;
    font-weight: 600;
    color: #566a7f;
    margin-bottom: 15px;
}

.event-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #566a7f;
}

.event-filter input {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: #696cff;
    border-color: #696cff;
}

.btn-primary:hover {
    background: #5f61e6;
    border-color: #5f61e6;
}


/* FullCalendar */

.fc {
    font-size: 14px;
}

.fc .fc-toolbar-title {
    font-size: 20px;
    font-weight: 600;
    color: #566a7f;
}

.fc .fc-button {
    background: #696cff;
    border-color: #696cff;
    text-transform: capitalize;
}

.fc .fc-button:hover {
    background: #5f61e6;
    border-color: #5f61e6;
}

.fc .fc-button-active {
    background: #5f61e6 !important;
    border-color: #5f61e6 !important;
}

.fc .fc-daygrid-day-number {
    color: #566a7f;
    text-decoration: none;
}

.fc .fc-col-header-cell-cushion {
    color: #566a7f;
    text-decoration: none;
    font-weight: 600;
}

.fc-event {
    border: 0;
    border-radius: 5px;
    padding: 3px 6px;
    cursor: pointer;
}

.fc-event-title {
    font-weight: 500;
}

.fc-day-today {
    background: rgba(105, 108, 255, .08) !important;
}

.form-check-label {
    cursor: pointer;
}


/* Mobile */

@media(max-width: 767px) {
    .calendar-wrapper {
        margin: 15px;
    }
    .calendar-sidebar {
        border-right: 0;
        border-bottom: 1px solid #e5e5e5;
    }
    .calendar-main {
        padding: 15px;
    }
    .fc .fc-toolbar {
        flex-direction: column;
        gap: 10px;
    }
    .fc .fc-toolbar-title {
        font-size: 18px;
    }
}


/* tagify */

.tagify:focus,
.tagify--focus {
    color: var(--bs-heading-color);
    background-color: rgba(0, 0, 0, 0);
    border-color: var(--bs-primary);
    outline: 0;
    box-shadow: 0 .125rem .25rem 0 rgba(var(--bs-primary-rgb), 0.4);
    border-width: 2px !important;
    /* padding-block: calc(.543rem - 2px);
    padding-inline: calc(.9375rem - 2px); */
}

.tagify {
    --tags-border-color: #d0d5dd;
    --tags-hover-border-color: #98a2b3;
    --tags-focus-border-color: #635bff !important;
    border-radius: 5px;
    min-height: 30px;
    font-size: 13px;
    padding: 2px 5px;
    width: 100%;
}

.tagify__tag>div {
    border-radius: 3px;
    background: #eef0f2;
    /* padding: 5px 8px !important; */
}

.tagify__tag__removeBtn {
    color: #98a2b3;
}

.tagify--focus {
    border-color: #635bff;
}

.tag-user {
    display: flex;
    align-items: center;
    gap: 5px;
}