/* ===== JOURNAL MODE ===== */
#app.journal-mode {
    display: block;
    min-height: 100vh;
    padding: 0;
    align-items: stretch;
}

body.journal-body {
    background: #f5f5f5;
    padding: 0;
    margin: 0;
    overflow: hidden;
    height: 100vh;
}

.journal-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}
.sidebar-overlay.active { opacity: 1; visibility: visible; }

/* Sidebar */
.journal-sidebar {
    width: 260px;
    background: white;
    border-right: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 50;
    overflow-y: auto;
}
.journal-sidebar-header {
    padding: 20px 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}
.journal-sidebar-logo {
    display: flex; align-items: center; gap: 10px;
}
.journal-sidebar-logo img { width: 28px; height: 28px; border-radius: 6px; }
.journal-sidebar-project-name { font-size: 16px; font-weight: 600; }
.journal-sidebar-menu { flex: 1; padding: 16px 8px; }
.journal-menu-section { margin-bottom: 8px; }
.journal-menu-title {
    font-size: 12px; font-weight: 600; color: #999;
    text-transform: uppercase; letter-spacing: 0.5px;
    padding: 0 12px; margin-bottom: 8px;
}
.journal-menu-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; border-radius: 8px;
    color: #1a1a1a; text-decoration: none;
    font-size: 14px; font-weight: 500;
    transition: all 0.2s; margin-bottom: 2px;
    cursor: pointer; border: none; background: none;
    width: 100%; text-align: left; font-family: inherit;
}
.journal-menu-item:hover { background: #f5f5f5; }
.journal-menu-item.active {
    background: linear-gradient(135deg, #dd1847, #c1163d);
    color: white;
}
.journal-menu-item.active img {
    filter: brightness(0) invert(1) !important;
}
.journal-menu-item svg { width: 20px; height: 20px; flex-shrink: 0; }
.journal-menu-item.active svg { stroke: white; }

/* Main */
.journal-main {
    flex: 1;
    margin-left: 260px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: calc(100vw - 260px);
    max-width: calc(100vw - 260px);
    overflow-x: hidden;
}

/* Header */
.journal-header {
    background: white;
    border-bottom: 1px solid #f0f0f0;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 40;
}
.journal-header-left { display: flex; align-items: center; gap: 16px; }
.journal-header-right { display: flex; align-items: center; gap: 16px; }
.journal-menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.journal-project-name { font-size: 18px; font-weight: 600; color: #1a1a1a; }
.journal-icon-btn {
    background: none; border: none; cursor: pointer;
    padding: 4px; display: flex; align-items: center; justify-content: center;
    color: #1a1a1a;
}

.journal-content {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: 100% !important;
}
/* Ограничение ширины для контентных страниц */
.analytics-page,
.reviews-container,
.access-content,
.clients-content,
.employees-content,
.services-content,
.resources-content,
.notifications-container,
.profile-page {
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* Фикс канваса графика выручки */
.analytics-revenue-chart canvas {
    width: 300px !important;
    height: 80px !important;
}
/* ===== ИСПРАВЛЕНИЯ СКРОЛЛА ДЛЯ СТРАНИЦ ЖУРНАЛА ===== */
.journal-content {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: auto !important;
    max-height: none !important;
    flex: 1 1 auto !important;
}

.journal-main {
    overflow: visible !important;
    height: auto !important;
    min-height: 100vh;
}

/* Режим журнала */
#app.journal-mode {
    overflow: visible !important;
    height: auto !important;
    min-height: 100vh;
    
}

body.journal-body {
    overflow: auto !important;
    height: auto !important;
}

/* Ограничение ширины для страниц */
.analytics-page,
.reviews-container,
.access-content,
.clients-content,
.employees-content,
.services-content,
.resources-content,
.notifications-container,
.profile-page {
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* Фикс канвасов аналитики */
.analytics-gauge canvas {
    max-width: 300px !important;
    height: auto !important;
}

.analytics-revenue-chart {
    max-width: 300px !important;
    flex: 0 0 auto !important;
}

.analytics-revenue-chart canvas {
    width: 100% !important;
    height: auto !important;
}

.analytics-pie-chart canvas {
    width: 200px !important;
    height: 200px !important;
}

/* Tabs */
.journal-tabs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
    padding: 16px 20px 0 20px;
}
.journal-tabs {
    margin-bottom: 10px !important;
    padding-bottom: 6px !important;
    border-bottom: 1px solid #f0f0f0 !important;
}
.tabs-group { display: flex; gap: 4px; background: white; padding: 4px; border-radius: 12px; }
.tab-btn {
    padding: 8px 20px; border: none; background: transparent;
    font-size: 14px; font-weight: 500; color: #666;
    border-radius: 8px; cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.tab-btn.active { background: #dd1847; color: white; }
.filter-icon-btn {
    background: white; border: none; width: 40px; height: 40px;
    border-radius: 12px; display: flex; align-items: center;
    justify-content: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Selected date */
.journal-selected-date {
    margin: 16px 20px;
    font-size: 16px;
    font-weight: 500;
    color: #1a1a1a;
    text-align: center;
}

/* Mobile */
@media (max-width: 767px) {
    .journal-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
        z-index: 100;
        width: 280px;
    }
    .journal-sidebar.active { transform: translateX(0); }
    .journal-main { margin-left: 0; width: 100vw; max-width: 100vw; }
    .journal-menu-toggle { display: block; }
}
/* ===== DATE CAROUSEL ===== */
.journal-calendar-strip {
    display: flex;
    align-items: center;
    gap: 0;
    background: white;
    padding: 12px 0 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    border-top: 1px solid #f0f0f0;
    width: 100%;
}

.journal-calendar-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 8px;
    color: #666;
}

.journal-dates-scroll {
    display: flex;
    gap: 4px;
    flex: 1;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-right: 8px;
}

.journal-dates-scroll::-webkit-scrollbar { display: none; }

.journal-date-item {
    min-width: 65px;
    width: 65px;
    padding: 8px 4px;
    text-align: center;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
    user-select: none;
}

.journal-date-item:hover:not(.active) { background: #f5f5f5; }
.journal-date-item.active { background: #dd1847; color: white; }
.journal-date-item.weekend .journal-date-top { color: #dd1847; }
.journal-date-item.active .journal-date-top { color: white; }
.journal-date-item.today { border: 2px solid #ddd; }

.journal-date-top { font-size: 15px; font-weight: 500; white-space: nowrap; }
.journal-date-month { font-size: 11px; opacity: 0.7; text-transform: lowercase; }

/* ===== DAY VIEW (таблица) ===== */
.journal-grid-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
    min-height: 0;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.journal-grid-body {
    flex: 1;
    display: flex;
    min-height: 0;
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 100%;
}

.journal-table-wrapper {
    flex: 1;
    overflow: auto;
    position: relative;
    width: 100%;
    min-height: 0;
    height: 100%;
}

.journal-schedule-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    min-width: max-content;
}

.journal-schedule-table thead {
    position: sticky;
    top: 0;
    z-index: 20;
    background: white;
}

.journal-schedule-table thead th {
    padding: 16px 12px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    border-right: 1px solid #f0f0f0;
    background: white;
    font-weight: 500;
    vertical-align: middle;
}

.journal-schedule-table thead th:last-child { border-right: none; }

.journal-time-header { width: 70px; min-width: 70px; }
.journal-employee-header { min-width: 220px; }

.journal-schedule-table tbody tr { height: 36px; }

.journal-schedule-table tbody td {
    border-bottom: 1px solid #f5f5f5;
    border-right: 1px solid #f0f0f0;
    padding: 0;
    vertical-align: top;
    position: relative;
}

.journal-schedule-table tbody tr.hour-mark td {
    border-top: 2px solid #e0e0e0;
}

.journal-time-cell {
    width: 70px;
    min-width: 70px;
    text-align: right;
    padding-right: 12px !important;
    font-size: 11px;
    color: #999;
    font-weight: 500;
    vertical-align: middle !important;
    background: white;
}

.hour-mark .journal-time-cell {
    font-size: 13px;
    font-weight: 700;
    color: #666;
}

.journal-employee-cell {
    position: relative;
    min-width: 220px;
    cursor: pointer;
    transition: background 0.15s;
}

.journal-employee-cell:hover {
    background: rgba(221, 24, 71, 0.05);
}

.journal-employee-cell.non-working {
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 3px,
        rgba(0, 0, 0, 0.06) 3px,
        rgba(0, 0, 0, 0.06) 4px
    );
    cursor: default;
}

/* Аватар сотрудника */
.journal-employee-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0 auto 8px;
}

.journal-employee-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.journal-employee-name {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
}

/* Карточка записи */
.journal-booking-record {
    position: absolute;
    left: 4px;
    right: 4px;
    background: linear-gradient(135deg, #dd1847, #c1163d);
    color: white;
    border-radius: 8px;
    padding: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(221, 24, 71, 0.2);
    z-index: 10;
}

.journal-record-time { font-weight: 600; margin-bottom: 4px; font-size: 11px; opacity: 0.9; }
.journal-record-client { font-weight: 600; margin-bottom: 2px; }
.journal-record-service { font-size: 11px; opacity: 0.9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.journal-record-phone { font-size: 11px; opacity: 0.8; margin-top: 2px; }

/* Загрузка */
.journal-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 100;
}

.journal-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f0f0f0;
    border-top-color: #dd1847;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Mobile */
@media (max-width: 767px) {
    .journal-calendar-strip {
        top: 57px;
        padding: 8px 0 8px 8px;
    }
    .journal-date-item { min-width: 60px; width: 60px; }
    .journal-time-header { width: 55px; min-width: 55px; }
    .journal-time-cell { width: 55px; min-width: 55px; }
    .journal-employee-header { min-width: 180px; }
    .journal-employee-cell { min-width: 180px; }
    .journal-booking-record { left: 2px; right: 2px; padding: 4px; font-size: 10px; }
}
/* ===== SIDEBAR DROPDOWN ===== */
.journal-project-dropdown {
    border-top: 1px solid #f0f0f0;
    margin-top: 12px;
    padding-top: 8px;
    max-height: 400px;
    overflow-y: auto;
}

.journal-project-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.journal-project-item:hover { background: #f5f5f5; }
.journal-project-item.active { background: #fdf2f5; }
/* ===== ACCESS PAGE ===== */
.access-content {
    padding: 24px;
    max-width: 800px;
}

.access-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.access-title {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.access-add-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #dd1847, #c1163d);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.access-add-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(221,24,71,0.3);
}

.access-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.access-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.2s;
}

.access-card:hover {
    border-color: #e0e0e0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.access-card-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.access-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.access-card-info {
    flex: 1;
    min-width: 0;
}

.access-card-name {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
}

.access-card-role {
    font-size: 13px;
    color: #888;
    margin-bottom: 4px;
}

.access-card-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    font-size: 12px;
    color: #999;
}

.access-card-contact-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.access-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    font-size: 11px;
    color: #22b100;
}

.access-card-arrow {
    flex-shrink: 0;
}

/* Скелетоны */
.access-skeleton-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid #f0f0f0;
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
}

.skeleton-line-name { width: 50%; height: 16px; }
.skeleton-line-role { width: 35%; }
.skeleton-line-contact { width: 60%; }

/* Пусто */
.access-empty {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
}

.access-empty-icon {
    margin-bottom: 16px;
    opacity: 0.3;
}

.access-empty-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.access-empty-desc {
    color: #888;
    margin-bottom: 24px;
}

.access-empty-btn {
    padding: 12px 24px;
    background: #dd1847;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

/* Ошибка */
.access-error {
    text-align: center;
    padding: 40px;
    color: #f44336;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
}

@media (max-width: 767px) {
    .access-content { padding: 16px; }
    .access-title { font-size: 20px; }
    .access-add-text { display: none; }
    .access-card-contacts { flex-direction: column; gap: 2px; }
}
/* ===== CLIENTS PAGE ===== */
.clients-content { padding: 24px; max-width: 1400px; margin: 0 auto; }
.clients-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; gap: 12px; flex-wrap: wrap; }
.clients-title { font-size: 24px; font-weight: 600; color: #1a1a1a; margin: 0; }
.clients-header-right { display: flex; align-items: center; gap: 10px; flex: 1; max-width: 500px; min-width: 0; }
.clients-search { position: relative; flex: 1; min-width: 0; }
.clients-search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); stroke: #999; pointer-events: none; }
.clients-search input { width: 100%; padding: 10px 14px 10px 38px; border: 1px solid #e0e0e0; border-radius: 12px; font-size: 14px; background: #fff; outline: none; font-family: inherit; box-sizing: border-box; }
.clients-search input:focus { border-color: #dd1847; }
.clients-add-btn { display: flex; align-items: center; gap: 6px; padding: 10px 16px; background: linear-gradient(135deg, #dd1847, #c1163d); color: #fff; border: none; border-radius: 12px; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; flex-shrink: 0; font-family: inherit; }
.clients-add-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(221,24,71,0.3); }

.clients-skeletons { display: flex; flex-direction: column; gap: 12px; }
.client-skeleton-card { background: #fff; border-radius: 16px; padding: 16px; display: flex; align-items: center; gap: 14px; border: 1px solid #f0f0f0; }
.skeleton-avatar { width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0; }
.skeleton-line-name { width: 40%; height: 16px; }
.skeleton-line-meta { width: 60%; }

.clients-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-bottom: 24px; }
.client-group-card { background: #fff; border-radius: 14px; padding: 14px 16px; cursor: pointer; transition: all 0.2s; border: 1px solid #f0f0f0; }
.client-group-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); border-color: #e0e0e0; }
.client-group-card.active { border-color: #dd1847; background: #fdf2f5; }
.client-group-count { font-size: 28px; font-weight: 700; color: #1a1a1a; margin-bottom: 2px; }
.client-group-card.active .client-group-count { color: #dd1847; }
.client-group-title { font-size: 14px; font-weight: 600; color: #1a1a1a; margin-bottom: 2px; }
.client-group-desc { font-size: 12px; color: #888; }

.clients-list { display: flex; flex-direction: column; gap: 12px; }
.client-card { background: #fff; border-radius: 16px; padding: 16px; display: flex; align-items: center; gap: 14px; border: 1px solid #f0f0f0; cursor: pointer; transition: all 0.2s; }
.client-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); border-color: #e0e0e0; }
.client-avatar { width: 56px; height: 56px; border-radius: 50%; background: #f8f8f8; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; font-size: 20px; font-weight: 600; color: #dd1847; }
.client-avatar img { width: 100%; height: 100%; object-fit: cover; }
.client-info { flex: 1; min-width: 0; }
.client-name { font-size: 16px; font-weight: 600; color: #1a1a1a; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.client-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: #666; }
.client-meta-item { display: flex; align-items: center; gap: 4px; }
.client-arrow { flex-shrink: 0; }

.clients-empty { text-align: center; padding: 60px 20px; background: #fff; border-radius: 16px; border: 1px solid #f0f0f0; }
.clients-empty-icon { margin-bottom: 12px; opacity: 0.3; }
.clients-empty-title { font-size: 18px; font-weight: 600; color: #1a1a1a; margin-bottom: 8px; }
.clients-empty-desc { color: #888; margin-bottom: 24px; }
.clients-empty-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; background: linear-gradient(135deg, #dd1847, #c1163d); color: #fff; border: none; border-radius: 12px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; }

.clients-error { text-align: center; padding: 40px; background: #fff; border-radius: 16px; border: 1px solid #f0f0f0; color: #f44336; }
.clients-error button { margin-top: 12px; padding: 8px 16px; background: #f5f5f5; border: none; border-radius: 8px; cursor: pointer; font-family: inherit; }

@media (max-width: 767px) {
    .clients-content { padding: 16px; }
    .clients-title { font-size: 20px; }
    .clients-add-text { display: none; }
    .clients-groups { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .client-meta { flex-direction: column; gap: 2px; }
}
/* ===== EMPLOYEES PAGE ===== */
.employees-content { padding: 24px; max-width: 1400px; margin: 0 auto; }
.employees-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.employees-title { font-size: 24px; font-weight: 600; color: #1a1a1a; margin: 0; }
.employees-add-btn { display: flex; align-items: center; gap: 6px; padding: 10px 16px; background: linear-gradient(135deg, #dd1847, #c1163d); color: #fff; border: none; border-radius: 12px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; }
.employees-add-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(221,24,71,0.3); }
.employees-list { display: flex; flex-direction: column; gap: 12px; }

.employee-card { background: #fff; border-radius: 16px; padding: 16px; display: flex; align-items: center; gap: 14px; border: 1px solid #f0f0f0; cursor: pointer; transition: all 0.2s; }
.employee-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); border-color: #e0e0e0; }
.employee-card-avatar { width: 56px; height: 56px; border-radius: 50%; background: #f8f8f8; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.employee-card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.employee-card-info { flex: 1; min-width: 0; }
.employee-card-name { font-size: 16px; font-weight: 600; color: #1a1a1a; margin-bottom: 4px; }
.employee-card-role { display: inline-block; padding: 3px 10px; background: #f0f0f0; border-radius: 20px; font-size: 12px; font-weight: 500; color: #666; margin-bottom: 8px; }
.employee-card-contacts { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: #666; }
.employee-card-contact { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.employee-card-arrow { flex-shrink: 0; }

.employees-empty { text-align: center; padding: 60px 20px; background: #fff; border-radius: 16px; border: 1px solid #f0f0f0; }
.employees-empty-icon { margin-bottom: 16px; opacity: 0.3; }
.employees-empty-title { font-size: 18px; font-weight: 600; color: #1a1a1a; margin-bottom: 8px; }
.employees-empty-desc { color: #888; margin-bottom: 24px; }
.employees-empty-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; background: linear-gradient(135deg, #dd1847, #c1163d); color: #fff; border: none; border-radius: 12px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; }

@media (max-width: 767px) {
    .employees-content { padding: 16px; }
    .employees-title { font-size: 20px; }
    .employees-add-text { display: none; }
    .employee-card-contacts { flex-direction: column; gap: 2px; }
}
/* ===== ONLINE SETTINGS PAGE ===== */
.online-booking-page { flex: 1; overflow-y: auto; background: #f5f5f5; }
.ob-content { padding: 24px 32px; max-width: 1400px; margin: 0 auto; }

.ob-status-banner { padding: 24px 32px; }
.ob-status-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 20px; }
.ob-status-icon { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ob-status-icon span { font-size: 24px; color: #fff; font-weight: bold; }
.ob-status-info { flex: 1; }
.ob-status-label { font-size: 11px; font-weight: 600; color: #6b7280; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 4px; }
.ob-status-title { font-size: 24px; font-weight: 700; color: #1f2937; margin-bottom: 2px; line-height: 1.2; }
.ob-status-subtitle { font-size: 13px; font-weight: 500; }

.ob-rejection-card { margin-bottom: 24px; padding: 24px; background: #fff; border-radius: 20px; border: 1px solid #fee2e2; }
.ob-rejection-title { font-size: 11px; font-weight: 600; color: #dc2626; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.ob-rejection-items { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.ob-rejection-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #fafafa; border-radius: 12px; }
.ob-rejection-dot { width: 6px; height: 6px; border-radius: 50%; background: #dc2626; flex-shrink: 0; }
.ob-rejection-label { font-size: 13px; color: #374151; flex: 1; }
.ob-rejection-fix { margin-left: auto; font-size: 11px; color: #dc2626; text-decoration: none; font-weight: 500; padding: 3px 10px; border-radius: 20px; background: #fef2f2; white-space: nowrap; }
.ob-rejection-comment { padding: 10px 14px; background: #fef2f2; border-radius: 10px; font-size: 12px; color: #991b1b; line-height: 1.5; }

.ob-url-card { background: #fff; border-radius: 16px; padding: 20px; margin-bottom: 20px; }
.ob-url-title { font-size: 14px; font-weight: 600; color: #1a1a1a; margin-bottom: 12px; }
.ob-url-row { display: flex; align-items: center; gap: 8px; }
.ob-url-input { flex: 1; padding: 12px; border: 1px solid #e0e0e0; border-radius: 10px; font-size: 14px; background: #f8f8f8; color: #374151; font-family: inherit; }
.ob-url-copy-btn { height: 44px; width: 44px; border: 1px solid #e0e0e0; border-radius: 10px; background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; position: relative; }
.ob-url-copy-btn:hover { background: #f9fafb; border-color: #d1d5db; }
.ob-copy-tooltip { position: absolute; top: -28px; left: 50%; transform: translateX(-50%); background: #1a1a1a; color: #fff; padding: 4px 10px; border-radius: 6px; font-size: 11px; white-space: nowrap; display: none; }

.ob-settings-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.ob-settings-item { background: #fff; border-radius: 14px; padding: 16px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-size: 14px; font-weight: 500; }

.ob-requirements-card { background: #fff; border-radius: 16px; padding: 20px; margin-bottom: 20px; }
.ob-requirements-title { font-size: 14px; font-weight: 600; color: #1a1a1a; margin-bottom: 16px; }
.ob-requirements-list { display: flex; flex-direction: column; gap: 12px; }
.ob-requirement-item { display: flex; align-items: center; gap: 10px; padding: 12px; background: #f8f8f8; border-radius: 10px; }
.ob-requirement-clickable { cursor: pointer; }
.ob-requirement-clickable:hover { background: #f0f0f0; }
.ob-requirement-icon { flex-shrink: 0; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; }
.ob-requirement-info { flex: 1; min-width: 0; }
.ob-requirement-name { font-size: 14px; font-weight: 500; color: #1a1a1a; }
.ob-requirement-status { font-size: 12px; font-weight: 500; }
.ob-status-ok { color: #4CAF50; }
.ob-status-error { color: #f44336; }
.ob-status-warning { color: #FF9800; }
.ob-requirement-hint { font-size: 11px; color: #999; margin-top: 2px; }
.ob-requirement-arrow { flex-shrink: 0; stroke: #ccc; }

.ob-submit-btn { width: 100%; padding: 16px; color: #fff; border: none; border-radius: 12px; font-size: 16px; font-weight: 600; cursor: pointer; margin-top: 20px; font-family: inherit; }
.ob-submit-primary { background: #dd1847; }
.ob-submit-warning { background: #FF9800; }

@media (max-width: 767px) {
    .ob-content { padding: 16px; }
    .ob-status-banner { padding: 16px; }
    .ob-status-title { font-size: 20px; }
}
/* ===== SERVICES PAGE ===== */
.services-content { padding: 24px; max-width: 1400px; margin: 0 auto; }
.services-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.services-title { font-size: 24px; font-weight: 600; color: #1a1a1a; margin: 0; }
.services-add-btn { display: flex; align-items: center; gap: 6px; padding: 10px 16px; background: linear-gradient(135deg, #dd1847, #c1163d); color: #fff; border: none; border-radius: 12px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; }
.services-add-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(221,24,71,0.3); }

.services-categories { display: flex; gap: 8px; margin-bottom: 20px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 4px; }
.services-categories::-webkit-scrollbar { display: none; }
.services-category-tab { display: inline-flex; align-items: center; padding: 8px 16px; background: #f5f5f5; color: #666; border-radius: 20px; font-size: 13px; font-weight: 500; border: none; white-space: nowrap; cursor: pointer; flex-shrink: 0; font-family: inherit; }
.services-category-tab:hover { background: #eee; }
.services-category-tab.active { background: #dd1847; color: #fff; }

.services-list { display: flex; flex-direction: column; gap: 12px; }

.service-card { background: #fff; border-radius: 16px; padding: 16px; display: flex; align-items: center; gap: 14px; border: 1px solid #f0f0f0; cursor: pointer; transition: all 0.2s; }
.service-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); border-color: #e0e0e0; }
.service-card-icon { width: 52px; height: 52px; background: #f8f8f8; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.service-card-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.service-card-icon-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: #f8f8f8; border-radius: 12px; }
.service-card-icon-label { font-size: 9px; color: #999; }
.service-card-info { flex: 1; min-width: 0; }
.service-card-name { font-size: 16px; font-weight: 600; color: #1a1a1a; margin-bottom: 4px; }
.service-card-details { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13px; color: #666; }
.service-card-employees { display: flex; align-items: center; gap: 3px; }
.service-card-arrow { flex-shrink: 0; }

.services-empty { text-align: center; padding: 60px 20px; background: #fff; border-radius: 16px; border: 1px solid #f0f0f0; }
.services-empty-icon { margin-bottom: 16px; opacity: 0.3; }
.services-empty-title { font-size: 18px; font-weight: 600; color: #1a1a1a; margin-bottom: 8px; }
.services-empty-desc { color: #888; margin-bottom: 24px; }
.services-empty-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; background: linear-gradient(135deg, #dd1847, #c1163d); color: #fff; border: none; border-radius: 12px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; }

@media (max-width: 767px) {
    .services-content { padding: 16px; }
    .services-title { font-size: 20px; }
    .services-add-text { display: none; }
    .service-card-icon { width: 44px; height: 44px; }
}
/* ===== ANALYTICS PAGE ===== */
.analytics-page { width: 100%; max-width: 100%; padding: 20px 16px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: #1a1a1a; }
.analytics-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; gap: 12px; }
.analytics-header h1 { font-size: 24px; font-weight: 700; margin: 0; }
.analytics-period-selector { position: relative; }
.analytics-period-btn { display: flex; align-items: center; gap: 8px; padding: 8px 14px; background: #fff; border: 1px solid #e0e0e0; border-radius: 10px; cursor: pointer; font: inherit; font-size: 14px; color: #1a1a1a; }
.analytics-period-btn:hover { border-color: #ccc; }
.analytics-period-date { font-size: 12px; color: #999; }
.analytics-period-dropdown { position: absolute; top: calc(100% + 4px); right: 0; background: #fff; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12); min-width: 180px; z-index: 100; overflow: hidden; }
.analytics-period-item { padding: 10px 14px; cursor: pointer; font-size: 14px; transition: background 0.15s; }
.analytics-period-item:hover { background: #f5f5f5; }
.analytics-custom-period { margin-bottom: 20px; padding: 14px; background: #f9f9f9; border-radius: 10px; }
.analytics-custom-row { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.analytics-custom-field { display: flex; flex-direction: column; gap: 3px; }
.analytics-custom-field label { font-size: 11px; color: #999; font-weight: 600; text-transform: uppercase; }
.analytics-custom-field input { padding: 8px 10px; border: 1px solid #e0e0e0; border-radius: 8px; font: inherit; font-size: 14px; background: #fff; }
.analytics-apply-btn { padding: 8px 16px; background: #dd1847; color: #fff; border: none; border-radius: 8px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; font-family: inherit; }
.analytics-apply-btn:hover { background: #c4153e; }
.analytics-cards-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.analytics-card { background: #fff; border: 1px solid #f0f0f0; border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.analytics-card-title { font-size: 13px; font-weight: 600; color: #1a1a1a; }
.analytics-card-value { font-size: 22px; font-weight: 700; line-height: 1; }
.analytics-card-label { font-size: 12px; color: #888; }
.analytics-revenue-card { margin-bottom: 12px; }
.analytics-revenue-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.analytics-revenue-info { display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; }
.analytics-revenue-chart { flex: 1; min-width: 120px; max-width: 350px; }
.analytics-revenue-chart canvas { display: block; width: 100%; height: auto; }
.analytics-big-number { font-size: 28px; font-weight: 800; color: #dd1847; }
.analytics-big-sub { font-size: 12px; color: #999; }
.analytics-gauge-card { margin-bottom: 12px; }
.analytics-gauge { position: relative; display: flex; justify-content: center; align-items: center; padding: 10px 0 0; }
.analytics-gauge canvas { display: block; max-width: 100%; height: auto; }
.analytics-gauge-value { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); font-size: 36px; font-weight: 800; color: #1a1a1a; }
.analytics-pie-card { margin-bottom: 12px; }
.analytics-pie-container { display: flex; align-items: center; gap: 24px; padding: 8px 0; }
.analytics-pie-chart { position: relative; flex-shrink: 0; }
.analytics-pie-chart canvas { display: block; }
.analytics-pie-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; }
.analytics-pie-total { font-size: 28px; font-weight: 800; line-height: 1; color: #1a1a1a; }
.analytics-pie-label { font-size: 11px; color: #999; margin-top: 2px; }
.analytics-pie-legend { display: flex; flex-direction: column; gap: 16px; flex: 1; }
.analytics-pie-legend-item { display: flex; align-items: flex-start; gap: 12px; }
.analytics-pie-legend-color { width: 12px; height: 12px; border-radius: 3px; margin-top: 4px; flex-shrink: 0; }
.analytics-pie-legend-info { display: flex; flex-direction: column; gap: 2px; }
.analytics-pie-legend-name { font-size: 13px; font-weight: 600; color: #1a1a1a; }
.analytics-pie-legend-value { font-size: 20px; font-weight: 700; line-height: 1; }
.analytics-pie-legend-percent { font-size: 12px; color: #888; }

.skeleton-loading { animation: skeletonPulse 1.5s ease-in-out infinite; color: #ccc !important; }
.skeleton-done { animation: none; color: inherit !important; }

@keyframes skeletonPulse { 0% { opacity: 0.6; } 50% { opacity: 0.3; } 100% { opacity: 0.6; } }

@media (max-width: 600px) {
    .analytics-page { padding: 12px; }
    .analytics-header h1 { font-size: 20px; }
    .analytics-cards-row { grid-template-columns: 1fr 1fr; gap: 8px; }
    .analytics-card-value { font-size: 20px; }
    .analytics-gauge-value { font-size: 28px; bottom: 8px; }
    .analytics-revenue-header { flex-direction: column; align-items: flex-start; }
    .analytics-revenue-chart { max-width: 100%; width: 100%; }
    .analytics-big-number { font-size: 24px; }
    .analytics-pie-container { flex-direction: column; align-items: center; gap: 16px; }
    .analytics-pie-legend { flex-direction: row; gap: 20px; }
    .analytics-pie-legend-item { flex-direction: column; align-items: center; text-align: center; gap: 6px; }
}

@media (max-width: 400px) {
    .analytics-cards-row { grid-template-columns: 1fr; }
    .analytics-header { flex-direction: column; align-items: flex-start; }
}
/* ===== REVIEWS PAGE ===== */
.reviews-container { padding: 24px; max-width: 1400px; margin: 0 auto; position: relative; }
.reviews-header h1 { font-size: 24px; font-weight: 700; margin: 0 0 20px; }
.reviews-rating-card { background: linear-gradient(135deg, #dd1847, #c1163d); color: #fff; border-radius: 20px; padding: 24px; text-align: center; margin-bottom: 16px; min-height: 160px; }
.rating-period { font-size: 14px; opacity: 0.85; margin-bottom: 4px; }
.rating-big { font-size: 48px; font-weight: 800; line-height: 1; }
.rating-stars { font-size: 24px; margin: 8px 0; letter-spacing: 4px; }
.rating-count { font-size: 14px; opacity: 0.8; }
.reviews-filters-wrapper { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 20px; position: relative; }
.reviews-filters { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.filter-pill-group { display: flex; gap: 0; background: #fff; border-radius: 12px; padding: 4px; border: 1px solid #e8e8e8; }
.filter-pill { padding: 8px 12px; border: none; background: transparent; border-radius: 10px; font-size: 13px; cursor: pointer; color: #888; font-weight: 500; transition: all 0.2s; white-space: nowrap; font-family: inherit; }
.filter-pill.active { background: #f5f5f5; color: #1a1a1a; font-weight: 600; }
.filter-buttons-group { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-btn { padding: 8px 12px; background: #fff; border: 1px solid #e8e8e8; border-radius: 10px; font-size: 13px; cursor: pointer; color: #666; white-space: nowrap; font-family: inherit; }
.filter-btn.active { background: #fdf2f5; border-color: #dd1847; color: #dd1847; }
.filter-sort-btn { padding: 8px; background: #fff; border: 1px solid #e8e8e8; border-radius: 10px; cursor: pointer; width: 38px; height: 38px; flex-shrink: 0; }
.sort-dropdown { position: absolute; right: 24px; top: 170px; background: #fff; border: 1px solid #e8e8e8; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.1); z-index: 50; min-width: 260px; padding: 8px; }
.sort-dropdown-item { padding: 12px 16px; font-size: 14px; color: #333; cursor: pointer; border-radius: 8px; }
.sort-dropdown-item:hover { background: #f5f5f5; }
.sort-dropdown-item.active { background: #fdf2f5; color: #dd1847; font-weight: 600; }
.review-card { background: #fff; border-radius: 16px; padding: 20px; margin-bottom: 12px; border: 1px solid #f0f0f0; position: relative; }
.review-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review-avatar { width: 44px; height: 44px; border-radius: 50%; background: #f0f0f0; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; color: #dd1847; overflow: hidden; flex-shrink: 0; }
.review-avatar img { width: 100%; height: 100%; object-fit: cover; }
.review-author { font-size: 15px; font-weight: 600; }
.review-date { font-size: 12px; color: #999; margin-top: 2px; }
.review-rating { color: #f5a623; font-size: 16px; margin-bottom: 8px; letter-spacing: 2px; }
.review-comment { font-size: 14px; color: #333; line-height: 1.6; }
.review-employee { position: absolute; top: 20px; right: 20px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; background: #fff; border-radius: 20px; border: 1px solid #e0e0e0; box-shadow: 0 2px 8px rgba(0,0,0,0.08); z-index: 2; white-space: nowrap; cursor: pointer; }
.review-employee:hover { background: #f9f9f9; }
.employee-avatar-small { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.employee-name-small { font-size: 13px; font-weight: 500; color: #555; }
.review-reply-btn { position: absolute; bottom: 12px; right: 12px; background: none; border: 1px solid #e0e0e0; border-radius: 8px; padding: 6px 12px; font-size: 12px; cursor: pointer; color: #666; font-family: inherit; }
.review-reply-btn:hover { background: #f5f5f5; border-color: #dd1847; color: #dd1847; }
.review-reply-block { background: #f8f8f8; border-radius: 10px; padding: 12px; margin-top: 12px; font-size: 13px; color: #555; }
.review-reply-block .reply-label { font-weight: 600; color: #888; margin-bottom: 4px; }
.review-empty { text-align: center; padding: 60px; color: #999; }
.bv-sub-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 2100; display: flex; align-items: flex-end; justify-content: center; }
.bv-sub-popup { background: #fff; border-radius: 20px 20px 0 0; width: 100%; max-width: 500px; max-height: 80vh; display: flex; flex-direction: column; }
.bv-sub-header { display: flex; align-items: center; justify-content: space-between; padding: 20px; border-bottom: 1px solid #f0f0f0; }
.bv-sub-header h3 { margin: 0; font-size: 18px; font-weight: 600; }
.bv-sub-body { flex: 1; overflow-y: auto; padding: 20px; }
.reply-textarea { width: 100%; min-height: 120px; border: 1px solid #e0e0e0; border-radius: 12px; padding: 14px; font-size: 14px; font-family: inherit; resize: vertical; outline: none; }
.reply-textarea:focus { border-color: #dd1847; }
.reply-counter { text-align: right; font-size: 12px; color: #999; margin-top: 4px; }
.reply-submit-btn { width: 100%; padding: 16px; background: #dd1847; color: #fff; border: none; border-radius: 14px; font-size: 16px; font-weight: 600; cursor: pointer; font-family: inherit; }
.consent-modal-footer { padding: 16px 20px 20px; }

@media (max-width: 767px) {
    .reviews-container { padding: 16px; }
    .rating-big { font-size: 36px; }
    .sort-dropdown { right: 16px; top: 155px; }
}
/* ===== RESOURCES PAGE ===== */
.resources-content { padding: 24px; max-width: 1400px; margin: 0 auto; }
.resources-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.resources-header h1 { font-size: 24px; font-weight: 600; color: #1a1a1a; margin: 0; }
.resources-add-btn { display: flex; align-items: center; gap: 6px; padding: 10px 16px; background: linear-gradient(135deg, #dd1847, #c1163d); color: #fff; border: none; border-radius: 12px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; }
.resources-add-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(221,24,71,0.3); }
.resources-list { display: flex; flex-direction: column; gap: 12px; }

.res-skeleton-item { display: flex; align-items: center; gap: 12px; padding: 14px; background: #fff; border: 1px solid #f0f0f0; border-radius: 14px; }
.res-skeleton-icon { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%); background-size: 400px 100%; animation: shimmer 1.5s infinite; flex-shrink: 0; }
.res-skeleton-lines { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.res-skeleton-line { height: 14px; border-radius: 7px; background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%); background-size: 400px 100%; animation: shimmer 1.5s infinite; }
.res-skeleton-line--name { width: 55%; }
.res-skeleton-line--desc { width: 40%; height: 11px; }
.res-skeleton-status { width: 70px; height: 24px; border-radius: 20px; background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%); background-size: 400px 100%; animation: shimmer 1.5s infinite; flex-shrink: 0; }
.res-skeleton-arrow { width: 16px; height: 16px; border-radius: 4px; background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%); background-size: 400px 100%; animation: shimmer 1.5s infinite; flex-shrink: 0; }

.res-item { display: flex; align-items: center; gap: 12px; padding: 14px; background: #fff; border: 1px solid #f0f0f0; border-radius: 14px; cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; }
.res-item:hover { border-color: #e0e0e0; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.res-item-icon { width: 44px; height: 44px; border-radius: 12px; background: #f5f5f5; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.res-item-icon img { width: 24px; height: 24px; opacity: 0.5; }
.res-item-info { flex: 1; min-width: 0; }
.res-item-name { font-size: 14px; font-weight: 600; color: #1a1a1a; }
.res-item-desc { font-size: 12px; color: #888; margin-top: 2px; }
.res-item-status { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 20px; flex-shrink: 0; }
.res-item-status--on { background: #e8f5e9; color: #2e7d32; }
.res-item-status--off { background: #f5f5f5; color: #999; }
.res-item-arrow { color: #ccc; flex-shrink: 0; }

.res-empty { text-align: center; padding: 60px 20px; background: #fff; border-radius: 16px; border: 1px solid #f0f0f0; }
.res-empty-icon { margin-bottom: 12px; opacity: 0.3; }
.res-empty-text { font-size: 14px; color: #999; margin-bottom: 16px; }
.res-create-btn { display: inline-flex; align-items: center; gap: 6px; padding: 12px 20px; background: #dd1847; color: #fff; border: none; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; }

.res-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 1800; display: flex; align-items: flex-end; justify-content: center; }
.res-popup { background: #fff; border-radius: 20px 20px 0 0; width: 100%; max-width: 500px; max-height: 85vh; display: flex; flex-direction: column; }
.res-popup-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #f0f0f0; flex-shrink: 0; }
.res-popup-header h2 { margin: 0; font-size: 18px; font-weight: 600; }
.res-popup-back { background: none; border: none; padding: 4px; cursor: pointer; color: #666; display: flex; }
.res-popup-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.res-popup-footer { padding: 16px 20px; border-top: 1px solid #f0f0f0; flex-shrink: 0; }
.res-field { margin-bottom: 20px; }
.res-label { display: block; font-size: 13px; font-weight: 600; color: #888; margin-bottom: 8px; text-transform: uppercase; }
.res-input { width: 100%; padding: 12px 14px; border: 1px solid #e0e0e0; border-radius: 12px; font-size: 14px; background: #f8f8f8; box-sizing: border-box; font-family: inherit; }
.res-input:focus { outline: none; border-color: #dd1847; background: #fff; }
.res-toggle { position: relative; display: inline-block; width: 48px; height: 26px; }
.res-toggle input { opacity: 0; width: 0; height: 0; }
.res-toggle-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: 0.3s; border-radius: 26px; }
.res-toggle-slider:before { position: absolute; content: ""; height: 22px; width: 22px; left: 2px; bottom: 2px; background-color: white; transition: 0.3s; border-radius: 50%; }
.res-toggle input:checked + .res-toggle-slider { background-color: #dd1847; }
.res-toggle input:checked + .res-toggle-slider:before { transform: translateX(22px); }
.res-services-link { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: #f8f8f8; border-radius: 12px; cursor: pointer; font-size: 14px; color: #1a1a1a; }
.res-services-link:hover { background: #f0f0f0; }
.res-delete-btn { width: 100%; padding: 14px; background: #fff; border: 1px solid #f44336; color: #f44336; border-radius: 12px; font-size: 14px; font-weight: 500; cursor: pointer; margin-top: 8px; font-family: inherit; }
.res-delete-btn:hover { background: #fff5f5; }
.res-save-btn { width: 100%; padding: 16px; background: #dd1847; color: #fff; border: none; border-radius: 12px; font-size: 16px; font-weight: 600; cursor: pointer; font-family: inherit; }
.res-save-btn:hover { background: #c4153e; }
.res-service-item { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid #f0f0f0; border-radius: 12px; margin-bottom: 6px; cursor: pointer; transition: all 0.15s; }
.res-service-item.selected { border-color: #dd1847; background: #fdf2f5; }
.res-service-photo { width: 48px; height: 48px; border-radius: 10px; background: #f5f5f5; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.res-service-photo img { width: 100%; height: 100%; object-fit: cover; }
.res-service-info { flex: 1; min-width: 0; }
.res-service-name { font-size: 14px; font-weight: 600; color: #1a1a1a; }
.res-service-meta { font-size: 12px; color: #888; margin-top: 2px; }
.res-service-check { width: 24px; height: 24px; border: 2px solid #ccc; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.res-service-item.selected .res-service-check { border-color: #dd1847; background: #dd1847; }
.res-service-item.selected .res-service-check:after { content: ''; display: block; width: 6px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); margin-top: -2px; }

@media (min-width: 768px) {
    .res-overlay { align-items: center; }
    .res-popup { border-radius: 20px; max-height: 75vh; }
}
/* ===== SCHEDULE PAGE ===== */
.schedule-view-container { flex: 1; display: flex; flex-direction: column; background: white; overflow: hidden; width: 100%; }
.schedule-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #f0f0f0; background: white; flex-shrink: 0; }
.schedule-header h2 { font-size: 18px; font-weight: 600; color: #1a1a1a; margin: 0; }
.schedule-config-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; background: #f8f8f8; border: 1px solid #e8e8e8; border-radius: 10px; color: #666; font-size: 13px; font-weight: 500; cursor: pointer; font-family: inherit; }
.schedule-config-btn:hover { background: #f0f0f0; }
.schedule-content-area { flex: 1; position: relative; overflow: hidden; }
.schedule-skeleton { position: absolute; inset: 0; padding: 20px; z-index: 1; transition: opacity 0.25s; }
.schedule-skeleton.fade-out { opacity: 0; pointer-events: none; }
.skeleton-header-row, .skeleton-row { display: flex; gap: 8px; margin-bottom: 12px; align-items: center; }
.skeleton-cell { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.skeleton-fixed-cell { min-width: 100px; width: 100px; }
.skeleton-block { width: 40px; height: 40px; border-radius: 50%; }
.skeleton-date-cell { min-width: 85px; width: 85px; height: 60px; border-radius: 8px; }
.skeleton-avatar-small { width: 36px; height: 36px; border-radius: 50%; }
.skeleton-text { width: 70px; height: 12px; border-radius: 6px; }
.skeleton-time-block { width: 76px; height: 46px; border-radius: 8px; }
.shimmer { background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; }

.schedule-table-wrapper { position: absolute; inset: 0; overflow: auto; -webkit-overflow-scrolling: touch; cursor: grab; user-select: none; z-index: 2; transition: opacity 0.25s; opacity: 0; }
.schedule-table-wrapper.fade-in { opacity: 1; }
.schedule-table-wrapper:active { cursor: grabbing; }
.schedule-table { display: table; width: max-content; min-width: 100%; border-collapse: collapse; }
.schedule-row { display: table-row; }
.schedule-cell { display: table-cell; min-width: 85px; width: 85px; padding: 10px 4px; text-align: center; border-right: 1px solid #f5f5f5; border-bottom: 1px solid #f5f5f5; background: white; cursor: pointer; }
.schedule-cell:hover { background: #fafafa; }
.schedule-fixed-cell { display: table-cell; min-width: 100px; width: 100px; padding: 12px 8px; border-right: 1px solid #f0f0f0; border-bottom: 1px solid #f5f5f5; background: white; position: sticky; left: 0; z-index: 5; }
.schedule-header-cell { background: white; position: sticky; top: 0; z-index: 4; font-weight: 600; cursor: default; }
.schedule-header-cell:hover { background: white; }
.schedule-fixed-header { background: white; position: sticky; left: 0; top: 0; z-index: 10; }
.schedule-date-weekday { font-size: 13px; color: #888; margin-bottom: 2px; }
.schedule-cell.weekend .schedule-date-weekday { color: #dd1847; }
.schedule-date-day { font-size: 16px; font-weight: 600; color: #1a1a1a; }
.schedule-date-month { font-size: 11px; color: #888; margin-top: 2px; }
.schedule-time { display: inline-flex; align-items: center; justify-content: center; padding: 6px 4px; width: 76px; height: 46px; background: #f5f5f5; border-radius: 8px; font-size: 11px; font-weight: 500; color: #1a1a1a; }
.schedule-time:empty { background: #e8e8e8; }
.schedule-time.weekend { background: #fdf2f5; color: #dd1847; }
.schedule-time.selected { background: #dd1847; color: white; }

.employee-avatar-small { width: 36px; height: 36px; border-radius: 50%; background: #f0f0f0; display: flex; align-items: center; justify-content: center; overflow: hidden; margin: 0 auto 4px; }
.employee-avatar-small img { width: 100%; height: 100%; object-fit: cover; }
.employee-name-short { font-size: 13px; font-weight: 500; color: #1a1a1a; text-align: center; }
.month-calendar-icon { background: none; border: none; cursor: pointer; padding: 8px; display: flex; align-items: center; justify-content: center; border-radius: 8px; margin: 0 auto; }

.schedule-selection-panel { position: fixed; bottom: 0; left: 0; right: 0; background: white; border-top: 1px solid #f0f0f0; box-shadow: 0 -4px 12px rgba(0,0,0,0.08); padding: 12px 20px; z-index: 100; animation: slideUpPanel 0.3s ease; }
@keyframes slideUpPanel { from { transform: translateY(100%); } to { transform: translateY(0); } }
.selection-panel-content { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.selection-info { font-size: 14px; color: #666; }
.selection-info span { font-weight: 600; color: #dd1847; }
.selection-actions { display: flex; gap: 8px; }
.selection-btn { padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 500; cursor: pointer; border: none; font-family: inherit; }
.selection-btn-primary { background: #dd1847; color: white; }
.selection-btn-secondary { background: #f5f5f5; color: #666; }

/* Попап месяца */
.month-picker-modal { position: fixed; inset: 0; z-index: 10001; visibility: hidden; }
.month-picker-modal.active { visibility: visible; }
.month-picker-content { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #fff; border-radius: 20px; width: 90%; max-width: 340px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.month-picker-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #f0f0f0; }
.month-picker-header h3 { font-size: 16px; font-weight: 600; margin: 0; }
.month-picker-close { background: none; border: none; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; color: #666; display: flex; align-items: center; justify-content: center; }
.month-picker-body { padding: 20px; }
.year-selector { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 20px; }
.year-selector span { font-size: 18px; font-weight: 600; }
.year-nav-btn { background: none; border: none; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 18px; color: #666; }
.month-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.month-btn { padding: 12px 8px; border: 2px solid #f0f0f0; border-radius: 10px; background: #fff; cursor: pointer; font-size: 14px; font-weight: 500; color: #1a1a1a; font-family: inherit; }
.month-btn:hover { background: #f9f9f9; }
.month-btn.active { background: #dd1847; color: #fff; border-color: #dd1847; }
.month-btn.current:not(.active) { border-color: #f8a5b9; color: #dd1847; background: #fff5f7; }
/* ===== NOTIFICATIONS PAGE ===== */
.notifications-container { padding: 24px; max-width: 100%; height: 100%; overflow-y: auto; }
.notifications-header h1 { font-size: 24px; font-weight: 600; color: #1a1a1a; margin: 0 0 20px; }
.notifications-tabs { display: flex; gap: 4px; background: #f5f5f5; border-radius: 14px; padding: 4px; margin-bottom: 24px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.notif-tab { flex: 1; padding: 12px 16px; border: none; background: transparent; font-size: 14px; font-weight: 500; color: #666; border-radius: 12px; cursor: pointer; white-space: nowrap; transition: all 0.2s; font-family: inherit; }
.notif-tab.active { background: #fff; color: #1a1a1a; font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.notif-tab:hover:not(.active) { color: #1a1a1a; }
.notifications-content { width: 100%; }

@media (max-width: 767px) {
    .notifications-container { padding: 16px; }
    .notif-tab { font-size: 12px; padding: 10px 12px; }
}
#app.journal-mode {
    padding: 0 !important;
}

.schedule-cell { position: relative; }
.schedule-online-closed {
    position: absolute;
    top: 3px;
    right: 4px;
    color: #DD1847;
    opacity: 0.55;
    pointer-events: none;
}
