/* =========================================================
   آلونک – Admin Availability Calendar
   ========================================================= */

.alonak-avail-wrap {
    direction: rtl;
    text-align: right;
    display: flex;
    gap: 20px;
    padding: 20px;
}
.alonak-avail-section.weekdays {
    width: 30%;
}
.alonak-avail-section.calendar {
    width: 70%;
    display: flex;
    justify-content: space-around;
    flex-direction: column;
    align-items: center;
}
/* ── Sections ────────────────────────────────────────────── */
.alonak-avail-section {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 18px;
}

.alonak-avail-section h4 {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

.alonak-avail-hint {
    font-size: 12px;
    color: #9ca3af;
    margin: 0 0 14px;
}

/* ── Weekday chips ───────────────────────────────────────── */
.alonak-weekday-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex-direction: column;
}

.alonak-weekday-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all .15s;
    user-select: none;
}

.alonak-weekday-chip input { display: none; }

.alonak-weekday-chip:hover {
    border-color: #e11d48;
    color: #e11d48;
}

.alonak-weekday-chip.blocked {
    background: #fff1f2;
    border-color: #e11d48;
    color: #e11d48;
}

/* ── Calendar nav ────────────────────────────────────────── */
.alonak-avail-calendar-container {
    min-width: 480px;
}

.alonak-cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    background: #1e6f50;
    border-radius: 8px;
    padding: 8px 12px;
    color: #fff;
}

.alonak-cal-nav__title {
    font-size: 14px;
    font-weight: 700;
    flex: 1;
    text-align: center;
}

.alonak-cal-nav__btn, .alonak-cal-nav__btn [type="button"] {
    background: none !important;
    border: none !important;
    color: #fff !important;
    font-size: 22px !important;
    cursor: pointer !important;
    line-height: 1 !important;
    padding: 0 6px !important;
    opacity: .85 !important;
    transition: opacity .1s !important;
    transform: scaleX(-1) !important;
}
.alonak-cal-nav__btn:hover { opacity: 1; }

/* ── Weekday headers ─────────────────────────────────────── */
.alonak-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    margin-bottom: 4px;
}

.alonak-cal-weekdays span {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    padding: 4px 0;
}

/* last column = Friday = red */
.alonak-cal-weekdays span:last-child { color: #dc2626; }

/* ── Grid cells ──────────────────────────────────────────── */
.alonak-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}
/* روزهای گذشته - غیرفعال */
.alonak-cal-cell.past-date {
    opacity: 0.4;
    background-color: #f0f0f0;
    cursor: not-allowed;
    pointer-events: none;
}

.alonak-cal-cell.past-date:hover {
    background-color: #f0f0f0;
    transform: none;
}
.alonak-cal-cell {
    position: relative;
    aspect-ratio: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    color: #374151;
    transition: background .12s, border-color .12s;
    user-select: none;
}

.alonak-cal-cell:hover:not(.alonak-cal-cell--empty):not(.blocked-weekday) {
    background: #fef2f2;
    border-color: #f87171;
}

.alonak-cal-cell--empty {
    background: transparent;
    border-color: transparent;
    cursor: default;
}

.alonak-cal-cell.today {
    border-color: #1e6f50;
    color: #1e6f50;
    font-weight: 800;
}

.alonak-cal-cell.blocked-date {
    background: #fee2e2;
    border-color: #ef4444;
    color: #b91c1c;
}

.alonak-cal-cell.blocked-weekday {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #92400e;
    cursor: not-allowed;
    opacity: .8;
}

/* both blocked */
.alonak-cal-cell.blocked-date.blocked-weekday {
    background: #fee2e2;
    border-color: #ef4444;
}

.alonak-dot {
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #ef4444;
}

/* ── Summary bar ─────────────────────────────────────────── */
.alonak-avail-summary {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
}

.alonak-avail-summary #alonak-blocked-count {
    font-weight: 800;
    color: #ef4444;
    font-size: 15px;
}

.alonak-clear-btn {
    margin-right: auto;
    background: none;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 12px;
    color: #6b7280;
    cursor: pointer;
    transition: all .12s;
}

.alonak-clear-btn:hover {
    border-color: #ef4444;
    color: #ef4444;
}

/* ── Legend ──────────────────────────────────────────────── */
.alonak-cal-legend {
    display: flex;
    gap: 14px;
    margin-top: 10px;
    font-size: 11px;
    color: #6b7280;
}

.alonak-cal-legend span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    flex-shrink: 0;
}

.legend-dot--blocked  { background: #fee2e2; border: 1.5px solid #ef4444; }
.legend-dot--weekday  { background: #fef3c7; border: 1.5px solid #f59e0b; }
.legend-dot--today    { border: 2px solid #1e6f50; }

.alonak-landscape-checkboxes {
    display: grid;
    gap: 5px;
    margin-top: 8px;
    grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 480px) {
	
.alonak-avail-wrap {
flex-direction: column;
align-items: center;
}

.alonak-avail-calendar-container {
    min-width: 100%;
}
.alonak-avail-section.weekdays, .alonak-avail-section.calendar {
    width: 100%;
}
.alonak-cal-cell {
    aspect-ratio: 1.1;
}
.alonak-landscape-checkboxes {
    grid-template-columns: repeat(2, 1fr);
}
.alonak-checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
}
.alonak-cal-weekdays span {
    max-width: 38px;
	aspect-ratio: 1.2 !important;
}
}