:root{

    --primary:#1976ff;
    --primary-light:#eef5ff;

    --green:#18c37e;
    --orange:#ff9800;
    --red:#ff5d73;

    --text:#172133;
    --muted:#6f7b91;

    --card:#ffffff;
    --border:#e7eef8;

    --shadow:0 12px 30px rgba(0,0,0,.08);

}

*{

    margin:0;
    padding:0;
    box-sizing:border-box;

}

body{

    direction:rtl;

    font-family:Vazirmatn,sans-serif;

    background:#f4f8fd;

    color:var(--text);

}

button{

    font-family:inherit;

    border:none;

    cursor:pointer;

}

.seller-page{

    width:100%;
    max-width:700px;

    margin:auto;

    padding:18px;

    padding-bottom:120px;

}






/*==========================
Header
==========================*/

.seller-header{

    margin-bottom:20px;

}

.header-top{

    display:flex;

    justify-content:space-between;

    align-items:center;

}

.header-top h1{

    font-size:22px;

    margin-bottom:4px;

}

.header-top span{

    color:var(--muted);

    font-size:14px;

}

#settingsButton{

    width:46px;

    height:46px;

    border-radius:16px;

    background:#fff;

    box-shadow:var(--shadow);

    font-size:22px;

}






/*==========================
Stats
==========================*/

.stats-grid{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:12px;

    margin-bottom:22px;

}

.stat-card{

    background:#fff;

    border-radius:18px;

    padding:16px 8px;

    text-align:center;

    box-shadow:var(--shadow);

}

.stat-card strong{

    display:block;

    color:var(--primary);

    font-size:24px;

    margin-bottom:6px;

}

.stat-card span{

    font-size:13px;

    color:var(--muted);

}






/*==========================
Filter
==========================*/

.booking-filter{

    display:flex;

    gap:10px;

    overflow:auto;

    margin-bottom:20px;

}

.booking-filter::-webkit-scrollbar{

    display:none;

}

.filter{

    white-space:nowrap;

    padding:11px 18px;

    border-radius:40px;

    background:#fff;

    color:var(--text);

    box-shadow:var(--shadow);

}

.filter.active{

    background:var(--primary);

    color:#fff;

}







/*==========================
Booking Card
==========================*/

.booking-list{

    display:flex;

    flex-direction:column;

    gap:16px;

}

.booking-card{

    background:#fff;

    border-radius:22px;

    padding:18px;

    box-shadow:var(--shadow);

    transition:.25s;

}

.booking-card:active{

    transform:scale(.98);

}

.booking-top{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:12px;

}

.booking-user{

    font-size:18px;

    font-weight:700;

}

.booking-status{

    padding:6px 12px;

    border-radius:40px;

    font-size:12px;

}

.status-pending{

    background:#fff4df;

    color:#ff9800;

}

.status-confirmed{

    background:#e8fff3;

    color:#18c37e;

}

.status-done{

    background:#eef5ff;

    color:#1976ff;

}

.status-cancel{

    background:#ffe9ed;

    color:#ff5d73;

}

.booking-info{

    display:flex;

    flex-direction:column;

    gap:8px;

    color:var(--muted);

    font-size:14px;

}

.booking-info div{

    display:flex;

    align-items:center;

    gap:8px;

}







/*==========================
Bottom Sheet
==========================*/

.bottom-sheet {

    position: fixed;

    inset: 0;

    background: rgba(0,0,0,.35);

    display: none;

    align-items: flex-end;

    justify-content: center;

    z-index: 100;

    padding: 0;

}

.bottom-sheet.active {

    display: flex;

}

.sheet-box {

    position: relative;

    width: 100%;

    max-width: 700px;

    margin: 0 auto;

    background: #fff;

    border-radius:28px 28px 0 0;

    padding: 24px;

    max-height: 85vh;


    overflow-y: auto;

    overflow-x: hidden;

    animation: sheetUp .25s ease;

}

/*==========================
Bottom Sheet Close Button
==========================*/
.sheet-close{
    position:absolute;

    top:12px;
    left:50%;

    transform:translateX(-50%);

    width:40px;
    height:40px;

    padding:0;
    margin:0;

    border-radius:50%;

    background:#f1f4f8;
    color:#596579;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:18px;
    line-height:1;

    z-index:20;

    box-shadow:none;

    transition:
        background .2s ease,
        color .2s ease,
        transform .15s ease;
}

.sheet-close i{
    font-size:17px;
    line-height:1;
    pointer-events:none;
}

.sheet-close:hover{
    background:#e8eef7;
    color:var(--text);

    transform:translateX(-50%);
}

.sheet-close:active{
    transform:translateX(-50%) scale(.92);
}

@keyframes sheetUp {

    from {

        transform: translateY(100%);

    }

    to {

        transform: translateY(0);

    }

}




/*==========================
Settings Buttons
==========================*/

#settingsSheet > .sheet-box > button:not(.sheet-close){

    width:100%;

    display:flex;

    align-items:center;

    gap:14px;

    padding:18px;

    margin-top:10px;

    border-radius:18px;

    background:#f6f9fe;

    font-size:15px;

}

#settingsSheet > .sheet-box > button:not(.sheet-close) i{

    font-size:20px;

    color:var(--primary);

}






/*==========================
Responsive
==========================*/

@media(max-width:480px){

    .stats-grid{

        grid-template-columns:repeat(2,1fr);

    }

}

.status-cancelled{
    background:#ffe9ed;
    color:#ff5d73;
}

/*==========================
Services
==========================*/

.services-header{

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:12px;

    margin-bottom:20px;

}

.services-header h2{

    font-size:20px;

}



.add-service-btn{

    display:flex;

    align-items:center;

    gap:6px;

    background:var(--primary);

    color:#fff;

    padding:11px 15px;

    border-radius:14px;

    font-size:13px;

}



.services-list{

    display:flex;

    flex-direction:column;

    gap:12px;

}



.service-card{

    background:#f7f9fc;

    border:1px solid var(--border);

    border-radius:20px;

    padding:16px;

}



.service-main{

    display:flex;

    flex-direction:column;

    gap:7px;

}



.service-main strong{

    font-size:17px;

}



.service-main > span{

    color:var(--muted);

    font-size:13px;

    line-height:1.8;

}



.service-meta{

    display:flex;

    flex-wrap:wrap;

    gap:16px;

    margin-top:5px;

    color:var(--muted);

    font-size:13px;

}



.service-meta span{

    display:flex;

    align-items:center;

    gap:5px;

}



.service-meta i{

    color:var(--primary);

}



.service-actions{

    display:flex;

    gap:8px;

    margin-top:15px;

}



.service-actions button{

    flex:1;

    padding:11px;

    border-radius:13px;

    font-size:13px;

    display:flex;

    align-items:center;

    justify-content:center;

    gap:6px;

}



.edit-service-btn{

    background:var(--primary-light);

    color:var(--primary);

}



.delete-service-btn{

    background:#fff0f2;

    color:var(--red);

}



.services-empty{

    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:center;

    text-align:center;

    padding:40px 20px;

    color:var(--muted);

}



.services-empty i{

    font-size:42px;

    color:var(--primary);

    margin-bottom:14px;

}



.services-empty span{

    font-size:14px;

    margin-bottom:18px;

}



.services-empty button{

    background:var(--primary);

    color:#fff;

    padding:12px 20px;

    border-radius:14px;

}



/*==========================
Service Form
==========================*/

.form-title{

    font-size:20px;

    margin-bottom:22px;

}



.service-form{

    display:flex;

    flex-direction:column;

    gap:10px;

}



.service-form label{

    font-size:13px;

    color:var(--muted);

    margin-top:5px;

}



.service-form input,
.service-form textarea{

    width:100%;

    border:1px solid var(--border);

    background:#f7f9fc;

    border-radius:15px;

    padding:14px;

    font-family:inherit;

    font-size:14px;

    outline:none;

}



.service-form input:focus,
.service-form textarea:focus{

    border-color:var(--primary);

    background:#fff;

}



.service-form textarea{

    min-height:90px;

    resize:vertical;

}



.duration-input{

    display:flex;

    align-items:center;

    gap:10px;

}



.duration-input input{

    flex:1;

}



.duration-input span{

    color:var(--muted);

    font-size:13px;

}



.save-service-btn{

    margin-top:15px;

    width:100%;

    padding:15px;

    border-radius:16px;

    background:var(--primary);

    color:#fff;

    font-size:15px;

    display:flex;

    align-items:center;

    justify-content:center;

    gap:7px;

}



.close-form-btn{

    width:100%;

    padding:14px;

    border-radius:16px;

    background:#f1f4f8;

    color:var(--text);

    font-size:14px;

}


/* =========================================================
   WORKING HOURS + EXCEPTIONS
   ========================================================= */


/* =========================================================
   HOURS HEADER
   ========================================================= */

.hours-header {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 22px;
    padding: 0 3px;
}

.hours-header h2,
.exceptions-header h2 {
    margin: 0;
    font-size: 21px;
    font-weight: 800;
    color: #172033;
}

.hours-header span,
.exceptions-header span {
    font-size: 13px;
    color: #8791a3;
    font-weight: 400;
}


/* =========================================================
   HOURS LIST
   ========================================================= */

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


/* =========================================================
   HOURS ROW
   ========================================================= */

.hours-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    width: 100%;
    padding: 14px;

    background: #ffffff;

    border: 1px solid #e9eef5;
    border-radius: 16px;

    box-shadow:
        0 3px 12px rgba(25, 55, 90, 0.045);

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.hours-row:focus-within {
    border-color: #b9d5ff;

    box-shadow:
        0 5px 18px rgba(30, 112, 220, 0.09);
}


/* =========================================================
   DAY
   ========================================================= */

.hours-day {
    min-width: 82px;

    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hours-day strong {
    font-size: 14px;
    font-weight: 700;
    color: #202b3c;
}

.hours-day span {
    font-size: 11px;
    color: #8b95a6;
}


/* =========================================================
   TIME INPUTS
   ========================================================= */

.hours-inputs {
    display: flex;
    align-items: center;
    gap: 7px;
}

.hours-inputs span {
    font-size: 12px;
    color: #929bab;
    font-weight: 500;
}


/* =========================================================
   TIME INPUT
   ========================================================= */

.hours-inputs input[type="time"] {
    width: 82px;
    height: 40px;

    padding: 0 8px;

    border: 1px solid #e1e7ef;
    border-radius: 11px;

    background: #f8fafc;

    color: #263246;

    font-family: "Vazirmatn", sans-serif;
    font-size: 12px;
    font-weight: 600;

    outline: none;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.hours-inputs input[type="time"]:focus {
    background: #ffffff;

    border-color: #3785e8;

    box-shadow:
        0 0 0 3px rgba(55, 133, 232, 0.10);
}


/* =========================================================
   SAVE HOURS BUTTON
   ========================================================= */

.save-hours-btn {
    width: 100%;
    height: 50px;

    margin-top: 18px;

    border: none;
    border-radius: 14px;

    background: linear-gradient(
        135deg,
        #1677e8,
        #286fe0
    );

    color: #ffffff;

    font-family: "Vazirmatn", sans-serif;
    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    box-shadow:
        0 7px 18px rgba(35, 113, 221, 0.18);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}

.save-hours-btn i {
    font-size: 17px;
}

.save-hours-btn:active {
    transform: scale(0.98);
}

.save-hours-btn:hover {
    box-shadow:
        0 9px 22px rgba(35, 113, 221, 0.25);
}


/* =========================================================
   EXCEPTIONS HEADER
   ========================================================= */

.exceptions-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-bottom: 20px;
}

.exceptions-header > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.add-exception-btn {
    flex-shrink: 0;

    height: 40px;

    padding: 0 13px;

    border: none;
    border-radius: 11px;

    background: #edf5ff;
    color: #1671dc;

    font-family: "Vazirmatn", sans-serif;
    font-size: 12px;
    font-weight: 700;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.add-exception-btn i {
    font-size: 15px;
}

.add-exception-btn:active {
    transform: scale(0.96);
}

.add-exception-btn:hover {
    background: #e2efff;
}


/* =========================================================
   EXCEPTIONS LIST
   ========================================================= */

.exceptions-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


/* =========================================================
   EXCEPTION CARD
   ========================================================= */

.exception-card {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    padding: 15px;

    background: #ffffff;

    border: 1px solid #e8edf4;
    border-radius: 16px;

    box-shadow:
        0 3px 12px rgba(25, 55, 90, 0.045);

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.exception-card:hover {
    border-color: #d7e4f4;

    box-shadow:
        0 5px 17px rgba(25, 55, 90, 0.07);
}


/* =========================================================
   EXCEPTION INFO
   ========================================================= */

.exception-info {
    min-width: 0;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 5px;
}

.exception-info strong {
    color: #202b3c;

    font-size: 14px;
    font-weight: 800;
}

.exception-info span {
    display: inline-flex;
    align-items: center;

    min-height: 25px;

    padding: 3px 9px;

    border-radius: 8px;

    background: #fff3f3;
    color: #dc4c4c;

    font-size: 11px;
    font-weight: 600;
}

.exception-info small {
    max-width: 100%;

    color: #8a94a4;

    font-size: 11px;
    line-height: 1.8;

    white-space: normal;
    overflow-wrap: anywhere;
}


/* =========================================================
   EXCEPTION DELETE BUTTON
   ========================================================= */

.delete-exception-btn {
    flex-shrink: 0;

    width: 38px;
    height: 38px;

    border: none;
    border-radius: 11px;

    background: #fff3f3;
    color: #e05252;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.delete-exception-btn i {
    font-size: 16px;
}

.delete-exception-btn:hover {
    background: #ffe5e5;
    color: #d83d3d;
}

.delete-exception-btn:active {
    transform: scale(0.92);
}


/* =========================================================
   EMPTY EXCEPTIONS
   ========================================================= */

.exceptions-empty {
    min-height: 180px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 10px;

    padding: 25px;

    border: 1px dashed #dce5ef;
    border-radius: 18px;

    background: #fafcff;

    text-align: center;
}

.exceptions-empty i {
    width: 52px;
    height: 52px;

    border-radius: 15px;

    background: #edf5ff;
    color: #3785e8;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 23px;
}

.exceptions-empty span {
    color: #8993a3;

    font-size: 12px;
}


/* =========================================================
   EXCEPTION FORM
   ========================================================= */

.exception-form {
    display: flex;
    flex-direction: column;
    gap: 9px;

    padding-top: 5px;
}

.exception-form label {
    margin-top: 8px;

    color: #344054;

    font-size: 12px;
    font-weight: 600;
}

.exception-form input,
.exception-form select,
.exception-form textarea {
    width: 100%;

    border: 1px solid #e1e7ef;
    border-radius: 12px;

    background: #f9fbfd;

    color: #273244;

    font-family: "Vazirmatn", sans-serif;
    font-size: 13px;

    outline: none;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.exception-form input,
.exception-form select {
    height: 45px;

    padding: 0 12px;
}

.exception-form textarea {
    min-height: 90px;

    padding: 11px 12px;

    resize: vertical;

    line-height: 1.8;
}

.exception-form input:focus,
.exception-form select:focus,
.exception-form textarea:focus {
    background: #ffffff;

    border-color: #3785e8;

    box-shadow:
        0 0 0 3px rgba(55, 133, 232, 0.09);
}


/* =========================================================
   EXCEPTION FORM BUTTON
   ========================================================= */

.save-exception-btn {
    width: 100%;
    height: 49px;

    margin-top: 12px;

    border: none;
    border-radius: 13px;

    background: linear-gradient(
        135deg,
        #1677e8,
        #286fe0
    );

    color: #ffffff;

    font-family: "Vazirmatn", sans-serif;
    font-size: 13px;
    font-weight: 700;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    cursor: pointer;

    box-shadow:
        0 7px 18px rgba(35, 113, 221, 0.17);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.save-exception-btn i {
    font-size: 17px;
}

.save-exception-btn:active {
    transform: scale(0.98);
}


/* =========================================================
   FORM CANCEL BUTTON
   ========================================================= */

.close-form-btn {
    width: 100%;
    height: 45px;

    margin-top: 2px;

    border: 1px solid #e5eaf1;
    border-radius: 12px;

    background: #f8fafc;
    color: #697586;

    font-family: "Vazirmatn", sans-serif;
    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.close-form-btn:hover {
    background: #f1f4f8;
    color: #4d5969;
}


/* =========================================================
   MOBILE OPTIMIZATION
   ========================================================= */

@media (max-width: 430px) {

    .hours-row {
        padding: 12px 10px;
        gap: 7px;
    }

    .hours-day {
        min-width: 70px;
    }

    .hours-day strong {
        font-size: 13px;
    }

    .hours-day span {
        font-size: 10px;
    }

    .hours-inputs {
        gap: 5px;
    }

    .hours-inputs input[type="time"] {
        width: 73px;
        height: 38px;

        padding: 0 5px;

        font-size: 11px;
    }

    .hours-inputs span {
        font-size: 10px;
    }

    .exceptions-header h2,
    .hours-header h2 {
        font-size: 19px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 360px) {

    .hours-row {
        flex-direction: column;
        align-items: stretch;
    }

    .hours-day {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;

        width: 100%;
    }

    .hours-inputs {
        width: 100%;
    }

    .hours-inputs input[type="time"] {
        flex: 1;
        width: auto;
    }

    .exceptions-header {
        align-items: flex-start;
    }

    .add-exception-btn {
        height: 36px;
        padding: 0 10px;
    }

}

/* =========================================================
   PROFESSIONAL TIME PICKER
   ========================================================= */

.hours-time-picker {
    display: flex;
    align-items: center;
    gap: 7px;
}


/* =========================
   TIME FIELD
   ========================= */

.time-field {
    position: relative;

    width: 100px;
    height: 43px;
}


.time-field i {
    position: absolute;

    right: 10px;
    top: 50%;

    transform: translateY(-50%);

    z-index: 2;

    color: #4389df;

    font-size: 15px;

    pointer-events: none;
}


.time-field select {
    appearance: none;
    -webkit-appearance: none;

    width: 100%;
    height: 100%;

    padding: 0 32px 0 25px;

    border: 1px solid #dfe7f1;
    border-radius: 12px;

    background:
        #f8faff
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23808da1' stroke-width='1.5'/%3E%3C/svg%3E")
        no-repeat left 10px center;

    color: #27364a;

    font-family: "Vazirmatn", sans-serif;

    font-size: 12px;
    font-weight: 700;

    text-align: center;

    direction: rtl;

    outline: none;

    cursor: pointer;

    transition:
        border-color .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}


.time-field select:hover {
    border-color: #bfd5ef;
}


.time-field select:focus {
    background-color: #ffffff;

    border-color: #3985e3;

    box-shadow:
        0 0 0 3px rgba(57, 133, 227, .10);
}


/* =========================
   BETWEEN
   ========================= */

.time-separator {
    flex-shrink: 0;

    color: #8b96a7;

    font-size: 11px;
    font-weight: 600;
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 430px) {

    .hours-time-picker {
        gap: 5px;
    }

    .time-field {
        width: 91px;
        height: 41px;
    }

    .time-field select {
        font-size: 11px;

        padding-right: 29px;
        padding-left: 22px;
    }

    .time-field i {
        right: 8px;
        font-size: 14px;
    }

    .time-separator {
        font-size: 10px;
    }

}

/* =========================================================
   JALALI DATE PICKER
   ========================================================= */

.jalali-date-picker {
    position: relative;
    width: 100%;
}


/* =========================================================
   DATE INPUT
   ========================================================= */

.date-input-box {
    width: 100%;
    height: 48px;

    padding: 0 13px;

    border: 1px solid #dfe6ef;
    border-radius: 13px;

    background: #f9fbfd;

    display: flex;
    align-items: center;
    gap: 10px;

    cursor: pointer;

    color: #344054;

    font-family: "Vazirmatn", sans-serif;

    transition:
        border-color .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}


.date-input-box:hover {
    border-color: #c6d8ec;
}


.date-input-box i:first-child {
    color: #3785e8;
    font-size: 17px;
}


#selectedDateText {
    flex: 1;

    font-size: 13px;
    font-weight: 600;

    color: #344054;

    text-align: right;
}


.date-arrow {
    color: #8995a7 !important;
    font-size: 12px !important;

    transition:
        transform .2s ease;
}


.jalali-date-picker:has(
    .jalali-calendar.active
)
.date-arrow {
    transform: rotate(180deg);
}


/* =========================================================
   CALENDAR
   ========================================================= */

.jalali-calendar {
    position: absolute;

    top: calc(100% + 9px);
    right: 0;

    z-index: 1000;

    width: 100%;

    padding: 15px;

    background: #ffffff;

    border: 1px solid #e4eaf1;
    border-radius: 18px;

    box-shadow:
        0 15px 45px rgba(20, 48, 80, .13);

    opacity: 0;
    visibility: hidden;

    transform:
        translateY(-7px)
        scale(.98);

    transform-origin: top center;

    transition:
        opacity .18s ease,
        visibility .18s ease,
        transform .18s ease;
}


.jalali-calendar.active {
    opacity: 1;
    visibility: visible;

    transform:
        translateY(0)
        scale(1);
}


/* =========================================================
   CALENDAR HEADER
   ========================================================= */

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 17px;
}


.calendar-title {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 2px;
}


.calendar-title strong {
    font-size: 15px;
    font-weight: 800;

    color: #1d2939;
}


.calendar-title span {
    font-size: 11px;
    font-weight: 500;

    color: #8a96a7;
}


.calendar-nav {
    width: 34px;
    height: 34px;

    border: none;
    border-radius: 10px;

    background: #f2f6fb;

    color: #3d7fd1;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    transition:
        background .2s ease,
        transform .2s ease;
}


.calendar-nav:hover {
    background: #e7f1ff;
}


.calendar-nav:active {
    transform: scale(.92);
}


/* =========================================================
   WEEKDAYS
   ========================================================= */

.calendar-weekdays {
    display: grid;

    grid-template-columns:
        repeat(7, 1fr);

    margin-bottom: 7px;
}


.calendar-weekdays span {
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #8a96a7;

    font-size: 10px;
    font-weight: 700;
}


/* =========================================================
   DAYS
   ========================================================= */

.calendar-days {
    display: grid;

    grid-template-columns:
        repeat(7, 1fr);

    gap: 4px;
}


.calendar-day {
    width: 100%;
    aspect-ratio: 1 / 1;

    padding: 0;

    border: none;
    border-radius: 10px;

    background: transparent;

    color: #344054;

    font-family: "Vazirmatn", sans-serif;

    font-size: 12px;
    font-weight: 600;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    transition:
        background .15s ease,
        color .15s ease,
        transform .15s ease;
}


.calendar-day:hover {
    background: #edf5ff;

    color: #2173d5;
}


.calendar-day:active {
    transform: scale(.9);
}


/* =========================================================
   EMPTY
   ========================================================= */

.calendar-day.empty {
    cursor: default;

    pointer-events: none;

    background: transparent;
}


/* =========================================================
   TODAY
   ========================================================= */

.calendar-day.today {
    position: relative;

    color: #2575d4;

    font-weight: 800;
}


.calendar-day.today::after {
    content: "";

    position: absolute;

    bottom: 4px;

    width: 4px;
    height: 4px;

    border-radius: 50%;

    background: #3785e8;
}


/* =========================================================
   SELECTED
   ========================================================= */

.calendar-day.selected {
    background: #3785e8;

    color: #ffffff;

    font-weight: 800;

    box-shadow:
        0 5px 12px rgba(55, 133, 232, .22);
}


.calendar-day.selected::after {
    display: none;
}


.calendar-day.selected:hover {
    background: #2d78d7;

    color: #ffffff;
}


/* =========================================================
   TODAY BUTTON
   ========================================================= */

.calendar-today-btn {
    width: 100%;
    height: 39px;

    margin-top: 13px;

    border: 1px solid #dce9f8;
    border-radius: 11px;

    background: #f4f8fe;

    color: #2877d3;

    font-family: "Vazirmatn", sans-serif;

    font-size: 11px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background .2s ease,
        border-color .2s ease;
}


.calendar-today-btn:hover {
    background: #eaf3ff;

    border-color: #c9ddf5;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 430px) {

    .jalali-calendar {
        padding: 13px;

        border-radius: 17px;
    }

    .calendar-day {
        font-size: 11px;

        border-radius: 9px;
    }

    .calendar-nav {
        width: 32px;
        height: 32px;
    }

}

/* =====================================
   BOOKING ACTIONS
===================================== */

.booking-actions {

    display: flex;

    flex-direction: column;

    gap: 10px;

    margin-top: 22px;

}


.booking-actions button {

    width: 100%;

    min-height: 52px;

    border: none;

    border-radius: 14px;

    font-family: inherit;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    transition:
        transform .15s ease,
        opacity .15s ease,
        box-shadow .15s ease;

}


.booking-actions button:active {

    transform: scale(.98);

}


/* تایید */

.confirm-btn {

    background: #e8f7ee;

    color: #16834b;

    box-shadow:
        0 4px 12px rgba(22, 131, 75, .08);

}


/* انجام شد */

.done-btn {

    background: #eaf2ff;

    color: #1769d2;

    box-shadow:
        0 4px 12px rgba(23, 105, 210, .08);

}


/* لغو */

.cancel-btn {

    background: #fff0f0;

    color: #d93636;

    box-shadow:
        0 4px 12px rgba(217, 54, 54, .08);

}


.booking-actions button:hover {

    opacity: .9;

}

/* =========================================================
   MANUAL BOOKING FORM
========================================================= */

.manual-booking-form {
    display: flex;
    flex-direction: column;
    gap: 9px;
    direction: rtl;
    padding-bottom: 20px;
}


/* ---------- LABEL ---------- */

.manual-booking-form label {
    display: flex;
    align-items: center;
    gap: 6px;

    margin-top: 8px;

    font-size: 13px;
    font-weight: 700;
    color: #26364a;
}


/* ---------- OPTIONAL ---------- */

.optional-label {
    font-size: 11px;
    font-weight: 500;

    color: #8b98a8;

    background: #f1f4f8;

    padding: 3px 7px;

    border-radius: 7px;
}


/* ---------- INPUT / SELECT ---------- */

.manual-booking-form input,
.manual-booking-form select,
.manual-booking-form textarea {
    width: 100%;
    box-sizing: border-box;

    border: 1px solid #dfe7f0;

    background: #fff;

    border-radius: 13px;

    padding: 12px 13px;

    font-family: inherit;
    font-size: 13px;

    color: #26364a;

    outline: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}


.manual-booking-form input:focus,
.manual-booking-form select:focus,
.manual-booking-form textarea:focus {
    border-color: #1976d2;

    box-shadow:
        0 0 0 3px rgba(25, 118, 210, .08);
}


/* ---------- SELECT ---------- */

.manual-booking-form select {
    height: 46px;

    appearance: none;

    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%238795a5' viewBox='0 0 16 16'%3E%3Cpath d='M3.2 6.2a.7.7 0 0 1 1 0L8 10l3.8-3.8a.7.7 0 1 1 1 1l-4.3 4.3a.7.7 0 0 1-1 0L3.2 7.2a.7.7 0 0 1 0-1z'/%3E%3C/svg%3E");

    background-repeat: no-repeat;

    background-position:
        left 13px center;

    padding-left: 38px;

    cursor: pointer;
}


/* =========================================================
   DATE PICKER
========================================================= */

.manual-booking-form .jalali-date-picker {
    position: relative;

    width: 100%;
}


/* ---------- DATE INPUT ---------- */

.manual-booking-form .date-input-box {
    width: 100%;
    height: 46px;

    box-sizing: border-box;

    display: flex;
    align-items: center;

    gap: 10px;

    padding: 0 13px;

    background: #fff;

    border: 1px solid #dfe7f0;

    border-radius: 13px;

    cursor: pointer;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}


.manual-booking-form .date-input-box:hover {
    border-color: #b9cde2;
}


.manual-booking-form .date-input-box > i:first-child {
    color: #1976d2;

    font-size: 17px;
}


.manual-booking-form .date-input-box span {
    flex: 1;

    font-size: 13px;

    color: #6f7e8f;
}


.manual-booking-form .date-input-box span:not(:empty) {
    color: #26364a;
}


.manual-booking-form .date-arrow {
    font-size: 12px;

    color: #8997a7;
}


/* =========================================================
   MANUAL CALENDAR
========================================================= */

#manualJalaliCalendar {
    position: absolute;

    top: calc(100% + 7px);

    right: 0;

    width: 100%;

    z-index: 1000;

    background: #fff;

    border: 1px solid #e2e9f1;

    border-radius: 17px;

    padding: 13px;

    box-sizing: border-box;

    box-shadow:
        0 12px 35px rgba(31, 58, 88, .14);

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(-5px);

    transition:
        opacity .18s ease,
        visibility .18s ease,
        transform .18s ease;
}


#manualJalaliCalendar.active {
    opacity: 1;

    visibility: visible;

    transform:
        translateY(0);
}


/* ---------- CALENDAR HEADER ---------- */

#manualJalaliCalendar .calendar-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 12px;
}


#manualJalaliCalendar .calendar-title {
    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 2px;
}


#manualJalaliCalendar .calendar-title strong {
    font-size: 14px;

    color: #26364a;
}


#manualJalaliCalendar .calendar-title span {
    font-size: 11px;

    color: #8a98a8;
}


#manualJalaliCalendar .calendar-nav {
    width: 34px;
    height: 34px;

    border: none;

    border-radius: 10px;

    background: #f2f6fa;

    color: #51667d;

    display: flex;

    align-items: center;

    justify-content: center;

    cursor: pointer;
}


#manualJalaliCalendar .calendar-nav:active {
    transform: scale(.94);
}


/* ---------- WEEKDAYS ---------- */

#manualJalaliCalendar .calendar-weekdays {
    display: grid;

    grid-template-columns:
        repeat(7, 1fr);

    gap: 4px;

    margin-bottom: 5px;
}


#manualJalaliCalendar .calendar-weekdays span {
    height: 28px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 11px;

    font-weight: 700;

    color: #8b98a8;
}


/* ---------- DAYS ---------- */

#manualJalaliCalendar .calendar-days {
    display: grid;

    grid-template-columns:
        repeat(7, 1fr);

    gap: 4px;
}


#manualJalaliCalendar .calendar-day {
    width: 100%;
    aspect-ratio: 1;

    border: none;

    border-radius: 9px;

    background: transparent;

    font-family: inherit;

    font-size: 12px;

    color: #34495e;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;
}


#manualJalaliCalendar .calendar-day:hover {
    background: #edf5fd;
}


#manualJalaliCalendar .calendar-day.today {
    background: #e8f2fc;

    color: #1976d2;

    font-weight: 700;
}


#manualJalaliCalendar .calendar-day.selected {
    background: #1976d2;

    color: #fff;

    font-weight: 700;
}


#manualJalaliCalendar .calendar-day.empty {
    cursor: default;

    pointer-events: none;

    background: transparent;
}


/* ---------- TODAY BUTTON ---------- */

#manualJalaliCalendar .calendar-today-btn {
    width: 100%;

    height: 38px;

    margin-top: 11px;

    border: 1px solid #dce7f2;

    border-radius: 10px;

    background: #f7faff;

    color: #1976d2;

    font-family: inherit;

    font-size: 12px;

    font-weight: 700;

    cursor: pointer;
}


#manualJalaliCalendar .calendar-today-btn:active {
    transform: scale(.98);
}


/* =========================================================
   TIME SELECT
========================================================= */

#manualBookingTime {
    direction: rtl;
}


/* =========================================================
   CUSTOMER INPUTS
========================================================= */

#manualCustomerName,
#manualCustomerPhone {
    height: 46px;
}


#manualCustomerPhone {
    direction: ltr;

    text-align: right;
}


/* =========================================================
   SAVE BUTTON
========================================================= */

.manual-booking-form .save-service-btn {
    width: 100%;

    min-height: 48px;

    margin-top: 14px;

    border: none;

    border-radius: 13px;

    background: #1976d2;

    color: #fff;

    font-family: inherit;

    font-size: 13px;

    font-weight: 700;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    cursor: pointer;

    box-shadow:
        0 6px 15px rgba(25, 118, 210, .18);

    transition:
        transform .15s ease,
        box-shadow .15s ease,
        background .15s ease;
}


.manual-booking-form .save-service-btn:hover {
    background: #1565c0;
}


.manual-booking-form .save-service-btn:active {
    transform: scale(.98);

    box-shadow:
        0 3px 8px rgba(25, 118, 210, .15);
}


.manual-booking-form .save-service-btn i {
    font-size: 16px;
}


/* =========================================================
   CANCEL BUTTON
========================================================= */

.manual-booking-form .close-form-btn {
    width: 100%;

    min-height: 45px;

    margin-top: 1px;

    border: 1px solid #e1e7ee;

    border-radius: 13px;

    background: #f8fafc;

    color: #68788a;

    font-family: inherit;

    font-size: 13px;

    font-weight: 600;

    cursor: pointer;
}


.manual-booking-form .close-form-btn:active {
    transform: scale(.98);
}


/* =========================================================
   FORM SHEET
========================================================= */

#formSheet {
    overflow-y: auto;
}


#formSheet #formContent {
    width: 100%;

    box-sizing: border-box;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 480px) {

    .manual-booking-form {
        gap: 8px;
    }

    .manual-booking-form label {
        font-size: 12px;
    }

    .manual-booking-form input,
    .manual-booking-form select {
        font-size: 13px;
    }

    #manualJalaliCalendar {
        padding: 11px;
    }

}


/* =========================================================
   VERY SMALL SCREENS
========================================================= */

@media (max-width: 360px) {

    #manualJalaliCalendar .calendar-day {
        font-size: 11px;
    }

    #manualJalaliCalendar .calendar-nav {
        width: 31px;
        height: 31px;
    }

}

.hours-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}


.closed-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #555;
    user-select: none;
}


.closed-toggle input {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: #2563eb;
}


.hours-status {
    transition: 0.2s;
}


.hours-start:disabled,
.hours-end:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f3f4f6;
}