
.section {
    text-align: center;
    margin: 0 auto;
    padding: 50px 20px;
}
/* Desktop */
.servicegroup-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* Tablet */
@media (max-width: 992px) {
    .servicegroup-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

/* Mobile */
@media (max-width: 600px) {
    .servicegroup-grid {
        grid-template-columns: 1fr;
    }
}
.servicegroup-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    padding: 15px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    transition: all .3s ease;
}

    .servicegroup-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 26px rgba(0,0,0,0.12);
    }

    .servicegroup-card img {
        width: 100%;
        height: 220px;
        object-fit: cover;
        border-radius: 12px;
        margin-bottom: 12px;
    }
.service-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    display: block;
    margin-top: 6px;
    transition: color var(--duration-fast);
}

    .service-title:hover {
        color: var(--color-primary-dark);
    }

.servicegroup h3 a {
    font-size: 20px;
    font-weight:bold;
    text-decoration: none;
    color: var(--color-primary);
}

/*.swiper-container {
    width: 100%;
    height: auto;
    padding: 50px;

}*/
.dateControl {
    width: 200px !important;
    margin-left: auto;
    margin-right: auto;
}


.mySwiper .swiper-slide {
    width: 60px !important;
    display: flex;
    justify-content: center;
}

.mySwiper {
    padding: 0 50px !important; /* فاصله از چپ و راست */
}
    /* دکمه‌های بعدی/قبلی دقیقاً در میانه عمودی */
    .mySwiper::part(button-next),
    .mySwiper::part(button-prev) {
        top: 50% !important;
        transform: translateY(-50%) !important;
    }

    /* دکمه فلش بعدی */
    .mySwiper::part(button-next) {
        right: -5px !important; /* فاصله منفی = بیرون */
    }

    /* دکمه فلش چپ */
    .mySwiper::part(button-prev) {
        left: -5px !important; /* فاصله منفی = بیرون */
    }

.btnSchedule {
    flex: 0 0 auto;
    min-width: 40px;
    white-space: nowrap;
    border-radius: 8px;
    padding: 5px 15px;
    font-size: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 60px;
    border: 1px solid rgb(211, 211, 211);
    background-color: #fff;
    color: #000;
}
/*
.employee-swiper .swiper-slide {
    width: 90px !important;
    text-align: center;
}
*/
/* target the internal wrapper exposed via part="wrapper" */
swiper-container::part(wrapper) {
    display: flex !important;
    align-items: center !important;
}

.employee-swiper .swiper-slide {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    box-sizing: border-box;
    width: auto !important;
    max-width: 115px;
    min-width: 96px;
    padding: 6px 4px;
}



.employee-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.employee-name {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 6px;
}

.employee-initial {
    font-size: 22px;
    font-weight: bold;
    color: #555;
}




/* ====== Layout for each slide ====== */
/* (canonical slide sizing defined with swiper wrapper rules above) */

/* wrapper to ensure consistent spacing between card and name */
/*.employee-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;*/ /* فاصله بین آیکون و متن */
    /*width: 100%;
}*/

/* ====== Circle card (single, canonical definition) ====== */
.employee-card {
    width: 64px; /* به اندازه‌ی عرض و طول */
    height: 64px;
    min-width: 64px;
    min-height: 64px;
    border-radius: 50%;
    background: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    transition: transform .12s ease, border-color .12s ease, background .12s ease;
    box-sizing: border-box;
    border: 3px solid transparent;
}

    /* selected state */
    .employee-card.selected {
        border-color: var(--color-primary);
        background: var(--color-primary-light);
        transform: translateY(-2px);
    }

/* ====== image and initial ====== */
.employee-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.employee-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 22px;
    font-weight: 700;
    color: #444;
    line-height: 1;
    user-select: none;
}

/* ====== name below the circle ====== */
/*.employee-name {
    display: block;
    width: 100%;
    text-align: center;
    margin: 0;*/ /* remove default small margins */
    /*margin-top: 6px;
    font-size: 13px;
    line-height: 1.15;*/ /* ارتفاع خط کمی فشرده */
    /*white-space: nowrap;*/ /* متن را در یک خط نگه می‌دارد */
    /*overflow: hidden;
    text-overflow: ellipsis;*/ /* متن بلند را با نقطه کوتاه کن */
/*}*/

.employee-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 150px;
    text-align: center;
    width: 100%; /* این کارت باید تمام‌عرض در ستون بگیرد */
    padding: 5px;
}

.employee-name {
    margin-top: 6px;
    font-size: 14px;
    text-align: center;
}

.employee-availability {
    margin-top: auto;
    font-size: 12px;
    text-align: center;
}
/********BreadCrumb*********/
.breadcrumb {
    font-size: 14px;
}

    .breadcrumb a {
        text-decoration: none;
        color: #007bff;
    }

    .breadcrumb span {
        color: #555;
    }
/********************Profile*******************/
.pr-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.pr-header {
    margin-bottom: 1.75rem;
}

.pr-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #3E342E;
}

.pr-subtitle {
    font-size: .82rem;
    color: #9ca3af;
    margin-top: 3px;
}

.pr-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.pr-stat {
    background: #fff;
    border: 0.5px solid #ece4dc;
    border-radius: 12px;
    padding: 1.1rem 1.25rem;
}

.pr-stat-val {
    font-size: 1.4rem;
    font-weight: 700;
    color: #3E342E;
}

.pr-stat-label {
    font-size: .78rem;
    color: #9ca3af;
    margin-top: 2px;
}

.pr-filter {
    background: #fff;
    border: 0.5px solid #ece4dc;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.pr-filter-group {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    flex: 1;
    min-width: 160px;
}

.pr-label {
    font-size: .78rem;
    font-weight: 600;
    color: #6B6055;
}

.pr-input {
    border: 0.5px solid #e5e7eb;
    border-radius: 8px;
    padding: .5rem .75rem;
    font-size: .88rem;
    color: #3E342E;
    outline: none;
    background: #FAF7F3;
    font-family: inherit;
    width: 100%;
}

    .pr-input:focus {
        border-color: var(--color-primary);
        box-shadow: 0 0 0 3px rgba(201,125,79,.1);
    }

.btn-pr-search {
    background: #2B2520;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: .55rem 1.5rem;
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: background .15s;
}

    .btn-pr-search:hover {
        background: #443c33;
    }

.pr-card {
    background: #fff;
    border: 0.5px solid #ece4dc;
    border-radius: 12px;
    overflow: hidden;
}

.pr-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .86rem;
}

    .pr-table thead tr {
        background: #FAF7F3;
        border-bottom: 0.5px solid #ece4dc;
    }

    .pr-table thead th {
        padding: .75rem 1rem;
        font-size: .72rem;
        font-weight: 600;
        letter-spacing: .05em;
        text-transform: uppercase;
        color: #9ca3af;
        text-align: start;
    }

    .pr-table tbody tr {
        border-bottom: 0.5px solid #f5f0eb;
        transition: background .1s;
    }

        .pr-table tbody tr:last-child {
            border-bottom: none;
        }

        .pr-table tbody tr:hover {
            background: #FAF7F3;
        }

    .pr-table tbody td {
        padding: .85rem 1rem;
        color: #3E342E;
        text-align: start;
    }

.pr-badge {
    display: inline-block;
    font-size: .72rem;
    font-weight: 600;
    padding: .2rem .65rem;
    border-radius: 20px;
}

.pr-badge-paid {
    background: #f0fdf4;
    color: var(--color-success);
    border: 0.5px solid #bbf7d0;
}

.pr-badge-partial {
    background: #fffbeb;
    color: #d97706;
    border: 0.5px solid #fde68a;
}

.pr-badge-unpaid {
    background: var(--color-danger-light);
    color: var(--color-danger);
    border: 0.5px solid var(--color-danger-border);
}

.btn-pr-pay {
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: .3rem .85rem;
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background .12s;
}

    .btn-pr-pay:hover {
        background: #a8622d;
        color: #fff;
    }

.pr-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: #9ca3af;
}

.pr-empty-icon {
    font-size: 2rem;
    margin-bottom: .75rem;
}

.pr-time {
    font-size: .8rem;
    color: #9ca3af;
    font-family: monospace;
}

.dl-loading {
    text-align: center;
    padding: 3rem;
    color: #9ca3af;
    font-size: .9rem;
}

.dl-spinner {
    width: 28px;
    height: 28px;
    border: 2px solid #ece4dc;
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin .7s linear infinite;
    margin: 0 auto .75rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ---- Employee booking page (moved from Employee.razor inline style) ---- */
.bk-page {
    padding: 1.5rem 1rem 6rem;
    background: var(--bg-light);
}

.bk-container {
    max-width: 900px;
    margin: 0 auto;
}

/* ---- Steps ---- */
.bk-steps {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin: 1.5rem 0 2rem;
}

.bk-step {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .82rem;
    font-weight: 600;
    color: var(--text-light);
}

.bk-step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--border);
    color: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .74rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: background .2s, color .2s;
}

.bk-step.active .bk-step-num {
    background: var(--primary);
    color: #fff;
}

.bk-step.active {
    color: var(--text-dark);
}

.bk-step.done .bk-step-num {
    background: var(--green);
    color: #fff;
}

.bk-step-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    max-width: 60px;
}

/* ---- Date section ---- */
.bk-date-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .75rem;
}

.bk-section-label {
    font-size: .9rem;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: .4rem;
}

.bk-cal-toggle {
    background: none;
    border: none;
    color: var(--primary);
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

    .bk-cal-toggle:hover {
        text-decoration: underline;
    }

.bk-date-chips {
    display: flex;
    gap: .55rem;
    overflow-x: auto;
    padding-bottom: .5rem;
    margin-bottom: 1.75rem;
    scrollbar-width: thin;
}

.bk-date-chip {
    flex-shrink: 0;
    min-width: 62px;
    border: 0.5px solid var(--border);
    background: var(--surface);
    border-radius: var(--radius);
    padding: .6rem .5rem;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s, background .15s, transform .1s;
}

    .bk-date-chip:active {
        transform: scale(.97);
    }

    .bk-date-chip.active {
        background: var(--primary);
        border-color: var(--primary);
    }

.bk-date-chip-day {
    display: block;
    font-size: .72rem;
    color: var(--text-light);
    margin-bottom: .3rem;
}

.bk-date-chip.active .bk-date-chip-day {
    color: rgba(255,255,255,.8);
}

.bk-date-chip-num {
    display: block;
    font-size: .95rem;
    font-weight: 700;
    color: var(--text-dark);
}

.bk-date-chip.active .bk-date-chip-num {
    color: #fff;
}

.bk-full-calendar {
    background: var(--surface);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1.75rem;
}

/* ---- Employees ---- */
.employee-swiper {
    margin-bottom: 2rem;
    padding-bottom: .5rem !important;
}

.employee-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    width: 96px;
}

.employee-card {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    border: 2px solid var(--border);
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--border-light);
    transition: border-color .2s, box-shadow .2s;
}

    .employee-card.selected {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px var(--primary-light);
    }

.employee-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.employee-initial {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-light);
}

.employee-name {
    font-size: .8rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
}

.employee-availability {
    text-align: center;
}

.avail-badge {
    display: inline-block;
    font-size: .68rem;
    font-weight: 600;
    padding: .18rem .5rem;
    border-radius: 20px;
    white-space: nowrap;
}

    .avail-badge.ok {
        background: var(--green-light);
        color: var(--green-dark);
        border: 0.5px solid var(--green-border);
    }

    .avail-badge.none {
        background: var(--border-light);
        color: var(--text-light);
        border: 0.5px solid var(--border);
    }

/* ---- Time slots ---- */
.bk-slots-panel {
    background: var(--surface);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.bk-slot-group-title {
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--text-light);
    margin: 1rem 0 .6rem;
}

    .bk-slot-group-title:first-child {
        margin-top: 0;
    }

.bk-slot-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.btnSchedule {
    border: 0.5px solid var(--border);
    background: var(--bg-light);
    color: var(--text-dark);
    border-radius: 20px;
    padding: .5rem 1.1rem;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
}

    .btnSchedule:hover:not(:disabled) {
        border-color: var(--primary);
        background: var(--primary-light);
    }

    .btnSchedule.picked {
        background: var(--primary);
        border-color: var(--primary);
        color: #fff;
    }

    .btnSchedule:disabled {
        background: var(--border-light);
        color: var(--text-light);
        text-decoration: line-through;
        cursor: not-allowed;
    }

.bk-empty-slots {
    background: #FFFBEB;
    border: 0.5px solid #FDE68A;
    color: #D97706;
    border-radius: var(--radius);
    padding: .75rem 1rem;
    font-size: .85rem;
}

/* ---- Sticky confirm bar ---- */
.bk-sticky-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--surface);
    border-top: 0.5px solid var(--border);
    box-shadow: 0 -8px 24px rgba(28,25,23,.08);
    padding: .85rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    z-index: 40;
    animation: bk-slide-up .2s ease;
}

@keyframes bk-slide-up {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.bk-sticky-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.bk-sticky-name {
    font-size: .82rem;
    font-weight: 700;
    color: var(--text-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bk-sticky-time {
    font-size: .76rem;
    color: var(--text-light);
}

.btn-confirm {
    background: var(--green);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: .65rem 1.5rem;
    font-size: .85rem;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .15s;
}

    .btn-confirm:hover {
        background: var(--green-dark);
    }

.bk-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: bk-spin .7s linear infinite;
    margin: 0 auto;
}

.employee-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    width: 96px;
}

.employee-name {
    font-size: .8rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 96px;
}

.employee-availability {
    text-align: center;
    width: 100%;
}

.avail-badge {
    display: inline-block;
    font-size: .62rem; /* کوچیک‌تر تا جا بشه */
    font-weight: 600;
    padding: .18rem .4rem;
    border-radius: 20px;
    white-space: nowrap;
    max-width: 96px;
    overflow: hidden;
    text-overflow: ellipsis;
}

@keyframes bk-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ---- Responsive: profile / booking flow ---- */
.pr-card {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pr-stats {
    grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr));
}

.dateControl {
    width: 100% !important;
    max-width: 200px !important;
}

.mySwiper {
    padding-inline: clamp(0.5rem, 4vw, 3.125rem) !important;
}

@media (max-width: 767.98px) {
    .pr-wrap {
        padding-inline: 0.75rem;
    }

    .pr-filter {
        flex-direction: column;
        align-items: stretch;
    }

    .pr-filter-group {
        min-width: 0;
        width: 100%;
    }

    .pr-table {
        min-width: 36rem;
    }

    .bk-page {
        padding: 1rem 0.75rem 7rem;
    }

    .bk-steps {
        gap: 0.35rem;
        margin: 1rem 0 1.25rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.25rem;
    }

    .bk-step {
        font-size: 0.72rem;
        flex-shrink: 0;
    }

    .bk-step-line {
        max-width: 1.5rem;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .bk-step span:not(.bk-step-num) {
        display: none;
    }

    .bk-sticky-bar {
        flex-wrap: wrap;
        padding: 0.75rem 1rem;
    }

    .bk-sticky-info {
        flex: 1 1 100%;
    }

    .bk-sticky-name,
    .bk-sticky-time {
        white-space: normal;
    }

    .btn-confirm {
        width: 100%;
    }

    .pr-stats {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .pr-stat {
        padding: 0.85rem 1rem;
    }

    .pr-stat-val {
        font-size: 1.15rem;
    }
}

