/**
 * PWA Кабинет: Мои объявления (Авито-Стиль)
 * Путь: core/cabinet/pwa-crm-styles.css
 * 
 * ПОЛНЫЙ ФЕНШУЙ: Внедрен липкий скролл шапки и табов, 
 * Авито-цвета статусов и адаптивная геометрия без инлайн-мусора.
 */

#lzPwaDashboardContainer {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #000000 !important;
    color: #ffffff;
    min-height: 100vh;
    box-sizing: border-box;
}

/* 📌 ЛИПКАЯ ШАПКА КАБИНЕТА С КНОПКОЙ ЗАКРЫТЬ/НАЗАД (Прилипает сверху при скролле) */
.pwa-dashboard-sticky-header-top {
    position: sticky !important;
    top: 0;
    background-color: #000000 !important;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 16px;
    padding-top: env(safe-area-inset-top);
    border-bottom: 1px solid #1c1c1e;
}

.pwa-dashboard-close-btn-anchor {
    font-size: 24px;
    color: #8e8e93;
    text-decoration: none;
    cursor: pointer;
    padding: 4px;
    -webkit-tap-highlight-color: transparent;
}

.pwa-dashboard-main-header-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.pwa-dashboard-header-right-stub {
    width: 32px;
}

/* 📌 ЛИПКИЙ СКРОЛЛЕР ТАБОВ (Прилипает сразу под шапкой, не уезжает при скролле) */
.pwa-status-tabs-sticky-holder {
    position: sticky !important;
    top: calc(56px + env(safe-area-inset-top));
    background-color: #000000 !important;
    z-index: 1900;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 16px;
    border-bottom: 1px solid #1c1c1e;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
}

.pwa-status-tabs-sticky-holder::-webkit-scrollbar {
    display: none !important;
}

.status-tab-item {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 8px 16px;
    background: #1c1c1e;
    border: 1px solid #2c2c2e;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    color: #aeaeb2;
    transition: all 0.2s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.status-tab-item.active {
    background: #2c2c2e;
    border-color: #3a3a3c;
    color: #ffffff;
}

.tab-count-num {
    font-size: 11px;
    margin-left: 4px;
    font-weight: 800;
    color: #8e8e93;
}

.status-tab-item.active .tab-count-num {
    color: #30d158;
}

/* Поисковая панель */
.pwa-dashboard-search-container {
    padding: 16px 16px 8px 16px;
}

.pwa-dash-search-input {
    width: 100%;
    padding: 12px 14px;
    background: #1c1c1e;
    border: 1px solid #2c2c2e;
    color: #ffffff;
    border-radius: 10px;
    font-size: 15px;
    box-sizing: border-box;
    outline: none;
}

/* 📰 МАТОВЫЙ РЕКЛАМНЫЙ ИНФО-БАННЕР (По умолчанию скрыт, будится только на Активных) */
.lz-pwa-crm-info-banner-block {
    display: none;
    background: linear-gradient(135deg, #1c1c1e 0%, #2c2c2e 100%);
    border: 1px solid #3a3a3c;
    border-radius: 12px;
    padding: 14px;
    margin: 4px 16px 12px 16px;
    text-align: left;
    box-sizing: border-box;
}

.lz-pwa-crm-banner-title {
    font-size: 14px;
    font-weight: 800;
    color: #30d158;
    margin: 0 0 4px 0;
}

.lz-pwa-crm-banner-desc {
    font-size: 12px;
    color: #d1d1d6;
    line-height: 1.4;
    margin: 0;
}

/* 🛑 МИКРО-ПОДСКАЗКА ПОД ПОИСКОМ (Будится только на Неактивных) */
.lz-pwa-crm-expired-notice-lbl {
    display: none;
    font-size: 12px;
    color: #8e8e93;
    text-align: left;
    padding: 0 16px;
    margin: -4px 0 12px 0;
    font-weight: 500;
}

/* 🏠 Сетка карточек Авито-style */
.pwa-dashboard-cards-list {
    padding: 4px 16px 140px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* УПРАВЛЕНИЕ СКЕЛЕТОНАМИ: надежный переключатель видимости */
.pwa-real-cards-async-container {
    display: none;
    flex-direction: column;
    gap: 12px;
}

.pwa-is-loading #pwaCrmSkeleton { display: flex !important; }
.pwa-is-loading #pwaRealCardsBox { display: none !important; }

.pwa-skeleton-card,
.pwa-crm-card {
    display: flex;
    gap: 14px;
    background: #1c1c1e;
    border: 1px solid #2c2c2e;
    border-radius: 14px;
    padding: 12px;
    align-items: center;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

.pwa-crm-card {
    transition: background 0.2s;
}

/* Прогрессивные темные пульсирующие лоадеры */
.skeleton-img-stub { width: 84px; height: 84px; background: #2c2c2e; border-radius: 10px; animation: pwa-pulse-dark 1.5s infinite ease-in-out; flex-shrink: 0; }
.skeleton-info-block { flex-grow: 1; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.skeleton-line-title { width: 75%; height: 14px; background: #2c2c2e; border-radius: 4px; animation: pwa-pulse-dark 1.5s infinite ease-in-out; }
.skeleton-line-price { width: 40%; height: 12px; background: #2c2c2e; border-radius: 4px; animation: pwa-pulse-dark 1.5s infinite ease-in-out; }
@keyframes pwa-pulse-dark { 0% { opacity: 0.6; } 50% { opacity: 0.3; } 100% { opacity: 0.6; } }

.pwa-crm-card-img-box {
    width: 84px;
    height: 84px;
    background: #2c2c2e;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    aspect-ratio: 1/1;
}

.pwa-crm-card-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.crm-img-stub {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2c2c2e;
    color: #8e8e93;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.pwa-crm-card-info-box {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    text-align: left;
}

/* 📏 ИДЕАЛЬНАЯ АНАТОМИЯ 4-Х СТРОК АВИТО-КАРТОЧКИ */
.crm-card-line-1-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 2px 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Ровное обрезание в три точки ... */
}

.crm-card-line-2-price {
    font-size: 15px;
    font-weight: 800;
    color: #30d158;
    line-height: 1.2;
}

.crm-price-period {
    font-size: 11px;
    color: #aeaeb2;
    font-weight: normal;
    margin-left: 2px;
}

.crm-card-line-3-lifecycle {
    font-size: 11px;
    color: #ff9500;
    margin-top: 3px;
    font-weight: 600;
    line-height: 1.2;
}

.crm-card-line-3-lifecycle.expired-meta {
    color: #ff453a;
}

.crm-card-line-4-metrics-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: #8e8e93;
    margin-top: 5px;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.crm-card-line-4-metrics-row::-webkit-scrollbar {
    display: none !important;
}

.crm-metric-item {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    gap: 3px;
}

/* Изящные матовые бейджи статусов в одну линейку */
.pwa-status-badge {
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: bold;
    text-transform: uppercase;
    white-space: nowrap;
}

.pwa-status-badge.badge-crm-active { background: rgba(48, 209, 88, 0.15); color: #30d158; }
.pwa-status-badge.badge-crm-draft { background: rgba(255, 149, 0, 0.15); color: #ff9500; }
.pwa-status-badge.badge-crm-pending { background: rgba(142, 142, 147, 0.15); color: #8e8e93; }
.pwa-status-badge.badge-crm-archive { background: #2c2c2e; color: #aeaeb2; }
.pwa-status-badge.badge-crm-rejected { background: rgba(255, 69, 58, 0.15); color: #ff453a; }
.pwa-status-badge.badge-crm-deleted { background: rgba(255, 69, 58, 0.25); color: #ff453a; font-weight: 800; }
.pwa-status-badge.badge-hot-deal { background: #ff453a; color: #ffffff; font-weight: 800; }

/* Изолированный правый блок кнопки-карандаша */
.pwa-crm-card-actions-aside-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding-left: 4px;
}

.pwa-crm-aside-action-btn-item {
    text-decoration: none;
    font-size: 13px;
    background: #2c2c2e;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border: 1px solid #3a3a3c;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* Навигационный таб-бар и нативная красная точка уведомлений Чата */
.bottom-bar { position: fixed !important; bottom: 0; left: 0; width: 100%; height: 64px; background: #1c1c1e; border-top: 1px solid #2c2c2e; display: flex; justify-content: space-around; align-items: center; z-index: 99999; box-sizing: border-box; padding-bottom: env(safe-area-inset-bottom); }
.bottom-item { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: #8e8e93; font-size: 10px; font-weight: bold; gap: 4px; -webkit-tap-highlight-color: transparent; position: relative; }
.bottom-item.active { color: #30d158; }
.bottom-item svg { width: 22px; height: 22px; fill: currentColor; }

.pwa-chat-unread-badge-dot {
    position: absolute;
    top: -2px;
    right: 4px;
    width: 8px;
    height: 8px;
    background-color: #ff453a;
    border-radius: 50%;
    border: 1px solid #1c1c1e;
}

.pwa-fixed-add-ad-sticky-btn { position: fixed !important; bottom: 82px !important; left: 0 !important; right: 0 !important; width: calc(100% - 32px) !important; height: 50px !important; margin: 0 auto !important; background: #ffffff !important; color: #111111 !important; border-radius: 14px !important; display: flex !important; align-items: center !important; justify-content: center !important; font-size: 15px !important; font-weight: 800 !important; text-decoration: none !important; box-shadow: 0 4px 16px rgba(0,0,0,0.4) !important; z-index: 99998 !important; border: 1px solid rgba(255,255,255,0.1) !important; }
/* =========================================================================
   🎨 ДОПОЛНЕНИЕ ДЛЯ СТРАНИЦЫ CRM-УПРАВЛЕНИЯ ЛОТОМ (TEMPLATE-MANAGE-AD.PHP)
   ========================================================================= */

/* Аппаратный прогресс-бар Индекса качества лота */
.pwa-crm-progress-track-bar { 
    width: 100%; 
    height: 8px; 
    background: #2c2c2e; 
    border-radius: 4px; 
    overflow: hidden; 
    margin-top: 8px; 
    position: relative; 
}

.pwa-crm-progress-fill-line { 
    height: 100%; 
    background: linear-gradient(90deg, #ff453a 0%, #ff9500 50%, #30d158 100%); 
    width: 0%; 
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1); 
}

.pwa-crm-task-item-todo { 
    display: flex; 
    align-items: flex-start; 
    gap: 8px; 
    font-size: 13px; 
    color: #aeaeb2; 
    margin-top: 8px; 
    border-bottom: 1px dashed #2c2c2e; 
    padding-bottom: 6px; 
}

.pwa-crm-task-pts-badge { 
    background: rgba(255,149,0,0.15); 
    color: #ff9500; 
    font-size: 10px; 
    font-weight: 800; 
    padding: 2px 6px; 
    border-radius: 6px; 
    white-space: nowrap; 
}

/* Нативный Скрытый Блокнот заметок автора лота */
.pwa-crm-author-notepad-area { 
    width: 100%; 
    min-height: 80px; 
    background: #1c1c1e; 
    border: 1px dashed #3a3a3c; 
    border-radius: 12px; 
    color: #e5e5ea; 
    padding: 12px; 
    font-size: 14px; 
    box-sizing: border-box; 
    outline: none; 
    resize: vertical; 
    transition: border-color 0.2s; 
}

.pwa-crm-author-notepad-area:focus { 
    border-color: #ff9500; 
}

/* Instagram Dots-индикаторы на карусели картинок */
.pwa-single-photo-slider-container .pwa-swiper-instagram-dots { 
    position: absolute; 
    bottom: 12px; 
    left: 50%; 
    transform: translateX(-50%); 
    display: flex; 
    gap: 6px; 
    z-index: 5; 
}

.pwa-swiper-dot-item { 
    width: 6px; 
    height: 6px; 
    background: rgba(255,255,255,0.4); 
    border-radius: 50%; 
    transition: all 0.2s; 
}

.pwa-swiper-dot-item.is-active { 
    background: #ffffff; 
    transform: scale(1.3); 
}

/* Нативная выезжающая снизу шторка Action Sheet меню ••• */
#pwaCrmActionSheetOverlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.5); 
    z-index: 9999; 
    display: none; 
}

#pwaCrmActionSheetMenu { 
    position: fixed; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    background: #1c1c1e; 
    border-top: 1px solid #2c2c2e; 
    border-radius: 20px 20px 0 0; 
    z-index: 10000; 
    transform: translateY(100%); 
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1); 
    box-sizing: border-box; 
    padding: 16px; 
    padding-bottom: calc(16px + env(safe-area-inset-bottom)); 
}
/* =========================================================================
   💎 PWA CRM ЛАЗАДРОМ: СТИЛИ ДЛЯ ШАБЛОНА УПРАВЛЕНИЯ ЛОТОМ (TEMPLATE-MANAGE-AD.PHP)
   ========================================================================= */

/* Статусы в шапке пульта */
.pwa-dashboard-sticky-header-top .pwa-status-badge {
    font-size: 13px;
    font-weight: 700;
    background: transparent !important;
    padding: 0;
}

/* Карусель фотографий 4:3 */
.pwa-crm-slider-outer-box {
    position: relative;
    background: #1c1c1e;
    overflow: hidden;
    aspect-ratio: 4/3;
    width: 100%;
}

.pwa-crm-slider-viewport-track {
    display: flex;
    height: 100%;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.pwa-crm-slide-frame-item {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
}

.pwa-crm-slide-frame-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Виджет суточной аналитики трафика */
.pwa-crm-live-traffic-card-box {
    background: #1c1c1e;
    border: 1px solid #2c2c2e;
    border-radius: 12px;
    padding: 14px;
    font-size: 13px;
    color: #8e8e93;
    text-align: left;
    line-height: 1.5;
}

.pwa-crm-live-traffic-card-box span {
    display: block;
}

.pwa-crm-live-traffic-card-box .traffic-delta-green {
    color: #30d158;
    font-weight: 800;
    margin-left: 2px;
}

.pwa-crm-live-traffic-card-box .traffic-bold-white {
    color: #ffffff;
    font-weight: bold;
}

/* ⚡ МОЩНЫЙ ИНЛАЙН-ПУЛЬТ КНОПОК ДЕЙСТВИЯ (РАЗМЕР 1:1 КАК У ПОДАЧИ) */
.pwa-crm-action-buttons-inline-pulse-row {
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

/* Оранжевая кнопка Бемпа в ТОП */
.pwa-crm-btn-orange-bump {
    width: 100% !important;
    height: 50px !important;
    background: #ff9500 !important;
    color: #000000 !important;
    border-radius: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    border: none;
    box-shadow: 0 4px 14px rgba(255,149,0,0.25);
    cursor: pointer;
    transition: transform 0.1s;
}

/* Зеленая кнопка Управления Календарем */
.pwa-crm-btn-green-calendar {
    width: 100% !important;
    height: 50px !important;
    background: #30d158 !important;
    color: #ffffff !important;
    border-radius: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    border: none;
    box-shadow: 0 4px 14px rgba(48,209,88,0.25);
    cursor: pointer;
    transition: transform 0.1s;
}

.pwa-crm-btn-orange-bump:active,
.pwa-crm-btn-green-calendar:active {
    transform: scale(0.98);
}

/* Виджет качества и блокнота */
.pwa-crm-gami-quality-card-block {
    background: #1c1c1e;
    border: 1px solid #2c2c2e;
    border-radius: 14px;
    padding: 14px;
    text-align: left;
}

.pwa-crm-quality-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pwa-crm-quality-lbl-txt {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
}

.pwa-crm-quality-percent-num {
    font-size: 16px;
    font-weight: 900;
}

.pwa-crm-tasks-list-caption {
    margin-top: 12px;
    font-size: 11px;
    text-transform: uppercase;
    color: #8e8e93;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.pwa-crm-quality-max-success-lbl {
    margin-top: 10px;
    font-size: 13px;
    color: #30d158;
    font-weight: 600;
}

/* Финансовый учет */
.pwa-crm-finance-pulse-gradient-box {
    background: linear-gradient(135deg, #1c2e24 0%, #0c1912 100%);
    border: 1px solid #2e7d32;
    border-radius: 14px;
    padding: 14px;
    text-align: left;
}

.pwa-crm-fin-caption-txt {
    font-size: 11px;
    text-transform: uppercase;
    color: #a3e2ab;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.pwa-crm-fin-amount-sum-val {
    display: block;
    font-size: 24px;
    font-weight: 900;
    color: #30d158;
    margin-top: 4px;
    line-height: 1;
}

.pwa-crm-fin-sub-hint {
    display: block;
    font-size: 12px;
    color: #81c784;
    margin-top: 4px;
}

/* Блокнот */
.pwa-crm-private-notebook-container-card {
    background: #1c1c1e;
    border: 1px solid #2c2c2e;
    border-radius: 14px;
    padding: 14px;
    text-align: left;
}

.pwa-crm-notepad-main-lbl {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}

.pwa-crm-notepad-sub-desc-txt {
    display: block;
    font-size: 11px;
    color: #8e8e93;
    margin-bottom: 8px;
}

#lzNotepadSaveIndicator {
    font-size: 11px;
    color: #30d158;
    text-align: right;
    margin-top: 4px;
    display: none;
    font-weight: 600;
}

/* Контентная часть и характеристики */
.pwa-crm-manage-ad-content-grid {
    padding: 0 16px;
    text-align: left;
}

.pwa-crm-details-price-row {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 4px;
}

.pwa-crm-details-price-row .crm-price-period {
    font-size: 14px;
    color: #8e8e93;
    font-weight: normal;
}

.pwa-crm-details-title-line-1 {
    font-size: 20px;
    font-weight: 800;
    white-space: normal;
    overflow: visible;
    line-height: 1.4;
    margin-bottom: 8px;
}

.pwa-crm-details-geo-sub-lbl {
    font-size: 14px;
    color: #aeaeb2;
    margin-bottom: 16px;
}

.pwa-crm-section-headline-title {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 10px;
}

.pwa-crm-chars-table-holder {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #1c1c1e;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #2c2c2e;
}

.pwa-crm-char-row-item-flex {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    border-bottom: 1px solid #2c2c2e;
    padding-bottom: 6px;
}

.pwa-crm-char-row-item-flex .char-label-name {
    color: #8e8e93;
}

.pwa-crm-char-row-item-flex .char-value-data {
    color: #fff;
    font-weight: 600;
}

/* Описание под кат */
#pwaDescBody {
    font-size: 14px;
    color: #d1d1d6;
    line-height: 1.5;
    max-height: 90px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#pwaTriggerDesc {
    background: none;
    border: none;
    color: #30d158;
    font-size: 14px;
    font-weight: bold;
    padding: 8px 0;
    cursor: pointer;
    outline: none;
}

.pwa-crm-technical-meta-footer-txt {
    font-size: 11px;
    color: #8e8e93;
    line-height: 1.5;
    text-align: left;
    padding-bottom: 40px;
}

/* Элементы шторки Action Sheet */
.pwa-action-sheet-btn-edit {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    background: #2c2c2e;
    color: #fff;
    border-radius: 12px;
    text-decoration: none;
    font-size: 15px;
    font-weight: bold;
    -webkit-tap-highlight-color: transparent;
}

.pwa-action-sheet-btn-delete {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    background: rgba(255,69,58,0.15);
    color: #ff453a;
    border-radius: 12px;
    border: none;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.pwa-action-sheet-btn-cancel {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    background: #3a3a3c;
    color: #fff;
    border-radius: 12px;
    border: none;
    font-size: 15px;
    font-weight: bold;
    margin-top: 8px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
/* =========================================================================
   📅 КАНOНИЧЕСКАЯ GRID-СЕТКА 12 МЕСЯЦЕВ КАЛЕНДАРЯ ПАРТНЕРА (AVITO-UX)
   ========================================================================= */

/*notice надпись-инструкция сверху календаря */
.pwa-calendar-notice-text {
    font-size: 13px !important;
    color: #8e8e93 !important;
    line-height: 1.4 !important;
    margin: 4px 16px 16px 16px !important;
    text-align: left !important;
}

/* Блок одного месяца */
.pwa-calendar-month-block {
    background: #1c1c1e !important;
    border: 1px solid #2c2c2e !important;
    border-radius: 14px !important;
    padding: 16px !important;
    margin: 0 16px 16px 16px !important;
    box-sizing: border-box !important;
}

.pwa-calendar-month-title {
    display: block !important;
    text-align: center !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin-bottom: 12px !important;
}

/* Шапка дней недели (Пн-Вс) */
.pwa-calendar-weekday-header {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    text-align: center !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #8e8e93 !important;
    margin-bottom: 8px !important;
}

.pwa-calendar-weekday-header .sun-day {
    color: #ff453a !important; /* Выделяем воскресенье красным */
}

/* 🔥 ГЛАВНЫЙ ФИКС СЕТКИ: Выстраиваем ячейки дней строго по 7 штук в один ряд */
.pwa-calendar-days-grid {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 6px !important;
}

/* Пустые заглушки для выравнивания начала месяца */
.calendar-day-empty {
    height: 44px !important;
    background: transparent !important;
}

/* Рабочая интерактивная ячейка дня */
.calendar-day-cell {
    height: 46px !important;
    background: #2c2c2e !important;
    border: 1px solid #3a3a3c !important;
    border-radius: 8px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    transition: all 0.15s ease !important;
    cursor: pointer !important;
}

/* Прошедшие даты (Маскируем и блокируем тапы) */
.calendar-day-cell.cell-past {
    background: #121212 !important;
    border-color: #1c1c1e !important;
    color: #3a3a3c !important;
    opacity: 0.4 !important;
    pointer-events: none !important;
}

.calendar-day-cell .day-number-text {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    line-height: 1.1 !important;
}

/* Рендерер цены под цифрой числа */
.calendar-day-cell .day-cell-price-render {
    font-size: 9px !important;
    color: #30d158 !important; /* Зеленый сочный ценник в ячейке */
    margin-top: 3px !important;
    font-weight: 600 !important;
}

/* Тактильный отклик при зажатии пальцем */
.calendar-day-cell.lz-partner-day-cell:active {
    transform: scale(0.92) !important;
    background: #3a3a3c !important;
}

/* Фиксированная нижняя плашка шторки календаря */
.pwa-calendar-fixed-bottom-bar {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background: #1c1c1e !important;
    border-top: 1px solid #2c2c2e !important;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)) 16px !important;
    box-sizing: border-box !important;
    z-index: 10100 !important;
}

.pwa-calendar-main-btn {
    width: 100% !important;
    height: 48px !important;
    background: #fff !important;
    color: #000 !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
}
