body {
    font-family: 'Inter', sans-serif;
    background-color: #F9FAFB;
}

.hidden-section {
    display: none;
}

.active-nav {
    background-color: #EFF6FF;
    color: #1D4ED8;
    border-right: 3px solid #2563EB;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.custom-scroll::-webkit-scrollbar {
    width: 6px;
}

.custom-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.custom-scroll::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.toggle-checkbox:checked {
    right: 0;
    border-color: #2563EB;
}

.toggle-checkbox:checked+.toggle-label {
    background-color: #2563EB;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fade-in-up 0.3s ease-out;
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fade-in 0.3s ease-out;
}

@media print {
    header,
    aside,
    .no-print,
    button,
    .hidden-print {
        display: none !important;
    }

    #app-content {
        overflow: visible !important;
        height: auto !important;
    }

    body {
        overflow: visible !important;
        background: white !important;
    }

    .shadow-lg,
    .shadow-xl,
    .shadow-sm {
        box-shadow: none !important;
    }

    .flex.items-center.gap-2 button {
        display: none !important;
    }

    body::before {
        content: "CallScore.ai Export Report";
        display: block;
        font-size: 24px;
        font-weight: bold;
        margin-bottom: 20px;
        text-align: center;
        color: black;
    }
}

#org-selector-container {
    height: 56px;
    display: flex;
    align-items: center;
}

#global-org-switcher {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 14px;
    transition: all 0.2s;
}

#global-org-switcher:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.org-selector-section {
    padding: 0 12px;
    margin-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 16px;
}

#sidebar-org-switcher {
    font-size: 13px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background-color: #f9fafb;
    transition: all 0.2s;
    width: 100%;
    padding: 8px 12px;
}

#sidebar-org-switcher:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
}

#sidebar-org-switcher:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background-color: white;
}

/* Адаптация для узкого сайдбара */
@media (max-width: 1024px) {
    .org-selector-section {
        padding: 0 8px;
        margin-bottom: 16px;
        padding-bottom: 12px;
    }

    #sidebar-org-switcher {
        font-size: 12px;
        padding: 6px 8px;
    }
}

.org-selector-section {
    padding: 0 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.org-selector-section label {
    color: #6b7280; /* gray-500 */
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

#sidebar-org-switcher {
    width: 100%;
    font-size: 13px;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background-color: #f9fafb;
    color: #374151; /* gray-700 */
    transition: all 0.2s;
}

#sidebar-org-switcher:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
}

#sidebar-org-switcher:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background-color: white;
}

/* Стили для заголовков секций */
.sidebar-section-title {
    padding: 0 12px;
    color: #9ca3af; /* gray-400 */
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 16px;
    margin-bottom: 8px;
}
/* Стили для бейджа "Soon" в сайдбаре */
.nav-item .absolute.right-3 {
    transition: all 0.2s ease;
}

.nav-item:hover .absolute.right-3 {
    background-color: #e5e7eb;
    color: #1f2937;
}

/* Анимация для заглушки */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.coming-soon-icon {
    animation: float 3s ease-in-out infinite;
}

/* Градиентный текст для заглушки */
.gradient-text {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
/* Стили для бета-бейджа */
.beta-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.3);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
    }
}

/* Стили для тултипа */
.tooltip-beta {
    position: relative;
}

.tooltip-beta:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 8px;
    width: 200px;
    background: #1f2937;
    color: white;
    font-size: 11px;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
    z-index: 50;
    white-space: normal;
    line-height: 1.5;
    text-align: left;
}

.tooltip-beta:hover::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 100%;
    margin-top: 2px;
    width: 8px;
    height: 8px;
    background: #1f2937;
    transform: rotate(45deg);
    z-index: 51;
}
/* Стили для чекбоксов и выделения строк */
.call-checkbox {
    cursor: pointer;
}

tr.bg-blue-50\/30 {
    background-color: rgba(239, 246, 255, 0.3);
}

/* Стили для выпадающего списка с поиском */
#client-select, #bulk-client-select {
    min-height: 120px;
}

#client-select option, #bulk-client-select option {
    padding: 8px 12px;
    cursor: pointer;
}

#client-select option:hover, #bulk-client-select option:hover {
    background-color: #f3f4f6;
}

#client-select option:checked, #bulk-client-select option:checked {
    background-color: #3b82f6;
    color: white;
}
/* Стили для модального окна подтверждения оферты */
#offer-confirmation-modal {
    animation: fadeIn 0.3s ease-out;
}

#offer-confirmation-modal .bg-white {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Стили для чекбокса */
#offer-agree-checkbox {
    transition: all 0.2s;
}

#offer-agree-checkbox:checked {
    background-color: #2563eb;
    border-color: #2563eb;
}

/* Стили для ссылки на оферту */
a[href*="Публичная_оферта"] {
    position: relative;
    text-decoration: none;
    border-bottom: 1px dashed currentColor;
}

a[href*="Публичная_оферта"]:hover {
    border-bottom-style: solid;
}

/* Индикация загрузки при формировании счета */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}
.offer-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

.offer-table th {
    background: #f1f5f9;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border: 1px solid #e2e8f0;
}

.offer-table td {
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
}

.offer-table tr:nth-child(even) {
    background: #f8fafc;
}