@media (min-width: 768px) {
    .masta-logged-in h5 {
        position: relative;
    }

    .masta-logged-in h5:before {
        position: absolute;
        right: 0;
        top: 4px;
        font-family: 'masta' !important;
        font-size: 10px;
        color: var(--masta-cool-grey-6C);
        content: '\e97d';
        transition: 0.5s all ease;
    }
}

.masta-logged-in:hover h5:before {
    color: var(--masta-sea-blue-100);
}

.masta-profile-wrapper {
    background: #f9fafb;
}

.masta-profile-wrapper .card {
    border-radius: 8px;
    /* box-shadow: 0 0 10px rgba(0, 0, 0, 0.05); */
    border: 1px solid var(--masta-sea-blue-20);
}

.masta-profile-block {
    background-color: rgb(0 130 202 / 5%);
}

.profile-image,
.masta-avater-profile {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: var(--masta-sea-blue-100);
    background: var(--masta-sky-blue-40);
    border-radius: 50%;
    object-fit: cover;
}

.masta-avater-profile span {
    font-size: 36px;
    font-weight: 600;
}

/* .masta-portfolio-list-wrapper p strong {
  width: 105px;
  display: block;
  flex: none;
} */

.masta-portfolio-list-wrapper p small {
    display: block;
    flex: none;
    color: #999999;
    font-weight: 300;
}

.masta-portfolio-list-wrapper p {
    font-weight: 500;
}

.masta-profile-tabs.nav-pills .nav-link {
    padding: var(--bs-nav-link-padding-y) var(--bs-nav-link-padding-x);
    height: 40px;
    color: var(--masta-sea-blue-100);
}

.masta-profile-tabs.nav-pills {
    display: flex;
    gap: 8px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
}

.masta-profile-tabs.nav-pills .nav-link.active {
    padding: var(--bs-nav-link-padding-y) var(--bs-nav-link-padding-x);
    min-height: auto;
    color: var(--masta-cool-grey-na);
    background-color: var(--masta-sea-blue-100);
    border-color: var(--masta-sea-blue-100);
}

.timeline {
    padding-right: 5px;
    max-height: 350px;
    overflow-y: auto;
}

.masta-vac-history-wrapper {
    padding-right: 5px;
    max-height: 350px;
    overflow-y: auto;
}

.timeline-step {
    position: relative;
    margin-left: 35px;
    margin-bottom: 30px;
    display: grid;
    align-items: start;
    grid-template-columns: 138px 1fr 150px 156px;
    gap: 20px;
    padding: 24px 20px;
    background: rgb(0 130 202 / 5%);
    border-radius: 8px;
    border: 1px solid #dcecf3;
}

.masta-vac-history-wrapper .timeline-step {
    grid-template-columns: 138px 336px 1fr 156px;
}

.timeline-step .masta-notes {
    grid-column: 1 / -1;
    padding: 7px 15px;
    border-radius: 8px;
    color: var(--info);
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.timeline-step::before {
    position: absolute;
    left: -25px;
    top: 50%;
    z-index: 2;
    width: 12px;
    height: 12px;
    background: var(--masta-sea-blue-100);
    border: 2px solid white;
    border-radius: 50%;
    transform: translateY(-50%);
    content: '';
}

.timeline .timeline-step::after {
    content: '';
    position: absolute;
    top: -30px;
    left: -20px;
    bottom: 0;
    z-index: 0;
    width: 2px;
    height: calc(100% + 30px);
    background: #f3f3f3;
}

.timeline-step .small span {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
}

.timeline-step .small {
    display: flex;
    align-items: flex-start;
    gap: 5px;
}

.timeline-step .small i {
    margin-top: 4px;
}

.masta-appointment-title-desc small {
    display: block;
    color: #818181;
    font-weight: 300;
}

.masta-appointment-cta {
    text-align: right;
    display: inline-flex;
    flex-direction: column;
    width: 100%;
    /* align-items: end; */
    justify-content: center;
    gap: 6px;
}

.masta-appointment-cta a.theme-btn {
    padding: 8px 12px;
    font-size: 0.75rem;
}

.masta-appointment-cta a.theme-btn i {
    font-size: 12px;
    line-height: 1.4;
}

.masta-appointment-cta a.theme-btn.btn-outline {
    padding: 8px 12px;
}

.masta-notes small {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
}

.masta-notes small strong {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.timeline-step .masta-notes i {
    margin-top: -1px;
}

.masta-appointment-cta small {
    display: block;
    color: #818181;
    font-weight: 300;
}

.masta-appointment-cta .badge {
    border-radius: 4px;
    border: 1px solid #ccc;
    font-weight: 400;
}

.masta-appointment-cta .badge.badge-danger {
    color: #fff;
    background-color: rgb(229 61 61 / 73%);
    border-color: var(--danger);
}

.masta-appointment-cta .badge.badge-success {
    color: #323232;
    background: rgb(122 208 58 / 50%);
    border-color: #7ad03a;
}

.masta-vac-history-wrapper .timeline-step {
    margin-left: 0;
    margin-bottom: 16px;
}

.masta-vac-history-wrapper .timeline-step:last-child {
    margin-bottom: 0;
}

.masta-vac-history-wrapper .timeline-step:before {
    content: none;
}

/* Docu */
.masta-profile-docu-wrapper {
    min-height: 402px;
}

.masta-profile-docu-wrapper .theme-btn {
    padding: 8px 12px;
    font-size: 0.75rem;
}

.masta-profile-docu-wrapper .theme-btn i {
    font-size: 0.75rem !important;
}

.masta-profile-heading {
    margin-bottom: 0.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgb(204 204 204 / 27%);
}

.document-icon {
    width: 15px;
    margin-top: 2px;
    margin-right: 8px;
    color: var(--masta-sea-blue-80);
}

.masta-docu-list-wrapper {
    max-height: 891px;
    padding-right: 5px;
    overflow-y: auto;
}

.masta-docu-list-wrapper li {
    position: relative;
    padding: 12px;
    font-size: 0.875em;
    border: 1px solid rgb(204 204 204 / 46%);
    border-radius: 8px;
    overflow: hidden;
}

.masta-docu-list-wrapper .masta-doc-text-content {
    line-height: normal;
}

.masta-docu-list-wrapper .masta-doc-text-content > span {
    margin-bottom: 5px;
    display: block;
    font-size: 0.875em;
    line-height: normal;
}

.masta-docu-list-wrapper
    .masta-doc-text-content
    .masta-doc-date
    .icon-masta-appointment-date-check {
    font-size: 0.75rem;
}

.masta-docu-list-wrapper .masta-doc-text-content .masta-doc-date span {
    font-size: 0.75rem;
    line-height: 1.4;
}

.masta-docu-list-wrapper li .masta-profile-docu-cta {
    position: absolute;
    right: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 8px 3px;
    background-color: #fff;
    border-radius: 4px;
    opacity: 0;
    transform: translateY(-8px);
    transition: 0.5s all ease;
}

.masta-docu-list-wrapper li:hover .masta-profile-docu-cta {
    transform: translateY(-2px);
    opacity: 1;
}

.masta-docu-list-wrapper li .masta-profile-docu-cta svg {
    width: 12px;
}

.masta-docu-list-wrapper .doc-name {
    flex: 1;
    margin-right: 80px; /* ensures text does not overlap */
}

.masta-profile-docu-cta a i {
    font-size: 0.85rem;
}

.masta-profile-docu-cta a.btn-download {
    color: var(--masta-sea-blue-100);
}

.masta-profile-docu-cta a.btn-delete {
    color: var(--danger);
}

/* File Upload */
.upload-label {
    width: 100%;
    padding: 46px 30px;
    margin-bottom: 4px;
    text-align: center;
    border: 2px dashed var(--masta-sea-blue-40);
    border-radius: 10px;
    background-color: rgba(0, 130, 202, 0.04);
    position: relative;
    color: #5e5e5e;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.upload-label:hover {
    border-color: var(--masta-sea-blue-80);
}

.upload-label .icon {
    width: 36px;
    height: 36px;
    background-color: white;
    border-radius: 50%;
    border: 1px solid var(--masta-sea-blue-80);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 10px auto;
}

.upload-label .icon::before {
    font-size: 18px;
}

.upload-label span {
    color: var(--masta-sea-blue-80);
    font-weight: 600;
}

.upload-label p {
    margin: 5px 0 0 0;
    font-size: 14px;
    color: #888;
}

.upload-input {
    display: none;
}

.file-list {
    margin-top: 0;
    margin-bottom: 1rem;
    width: 100%;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px 15px;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-list .file-name {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.file-list .file-name .file-icon {
    width: 35px;
    height: 35px;
    padding: 4px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: var(--masta-sea-blue-100);
    background: var(--masta-sky-blue-20);
    border-radius: 50%;
}

.file-list .default-file-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: calc(100% - 100px);
    font-size: 14px;
    line-height: 1.4;
}

.file-list .remove-btn {
    border: none;
    color: #d11a2a;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
    background: rgb(204 204 204 / 20%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s all ease;
}

.file-list .remove-btn:hover {
    background: rgb(204 204 204 / 50%);
}

.masta-offcanvas-form-fields form {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: calc(100% - 108px);
}

.masata-delete-modal .btn-danger {
    padding: 0.576rem 0.75rem;
    font-size: 16px;
    font-weight: 500;
}

/* Edit form */

.masta-datepicker-wrapper .icon-masta-calendar-o {
    margin-left: 0 !important;
}

.masta-datepicker-wrapper label {
    margin: 0 0 9px;
}

.masta-datepicker-wrapper input {
    padding: 6px 0;
}

.edit-profile-wrapper label.masta-label-custom {
    margin: 0 0 12px;
}

.edit-profile-wrapper .custom-select {
    min-height: 46px;
    padding-top: 9px;
}

.masta-info-block-wrapper {
    width: 100%;
    padding: 18px 20px;
    margin-bottom: 2rem;
    background: #f9fafb;
    border: 1px solid #f0f2f5 !important;
    border-radius: 8px;
}

@media (max-width: 1399px) {
    .timeline-step {
        grid-template-columns: 138px 1fr 150px 156px;
        gap: 15px;
    }

    .masta-vac-history-wrapper .timeline-step {
        grid-template-columns: 138px 236px 1fr 156px;
    }

    .btn-profile-edit i {
        display: none;
    }
}

@media (max-width: 1199px) {
    .timeline-step {
        grid-template-columns: 138px 1fr 150px 156px;
    }

    .masta-vac-history-wrapper .timeline-step {
        grid-template-columns: 138px 236px 1fr 156px;
    }

    .btn-profile-edit i {
        display: inline-block;
    }
}

@media (max-width: 991px) {
    .timeline-step {
        grid-template-columns: 138px 1fr 146px 150px;
        gap: 5px;
    }

    .masta-vac-history-wrapper .timeline-step {
        grid-template-columns: 138px 170px 1fr 150px;
    }

    .masta-profile-tabs-header .masta-profile-tabs li {
        width: 100%;
    }

    .edit-profile-wrapper {
        padding: 0;
    }
}

@media (max-width: 767px) {
    .timeline-step,
    .masta-vac-history-wrapper .timeline-step {
        grid-template-columns: 1fr;
    }

    .masta-profiled-cta-wrapper {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .timeline-step {
        margin-left: 25px;
    }

    .masta-notes small {
        align-items: flex-start;
        gap: 2px;
        flex-direction: column;
    }
}

@media (max-width: 575px) {
    .timeline-step {
        padding: 12px 14px;
    }

    .masta-services_block-section
        .card-wrapper
        .card-list
        .card-footer
        .masta-service-base-cta {
        gap: 1rem !important;
    }

    .masta-services_block-section
        .card-wrapper
        .card-list
        .card-footer
        .masta-service-base-cta
        a,
    .masta-services_block-section
        .card-wrapper
        .card-list
        .card-footer
        .masta-service-base-cta
        button {
        width: 100%;
    }
}

@media (max-width: 400px) {
    .masta-services_block-section
        .card-wrapper
        .card-list
        .card-footer
        .masta-service-base-cta {
        gap: 6px !important;
        grid-template-columns: 1fr;
    }
}
