/* Базовые стили для кастомного offcanvas */
.custom-graph-offcanvas {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    z-index: 1080;
    visibility: hidden;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.custom-graph-offcanvas.custom-graph-show {
    visibility: visible;
}

.custom-graph-container {
    width: 1120px;
    height: 100%;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.custom-graph-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
		padding-left: 57px;
}

.custom-graph-body {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
		width: 850px;
		margin-left: 50px;
		padding-right: 50px;
}

/* Стили для бэкдропа */
.custom-graph-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1080;
    height: 100vh;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-graph-backdrop.custom-graph-show {
    display: block;
    opacity: 1;
}

/* Кастомные элементы UI */
.custom-graph-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.custom-graph-close-icon {
    display: block;
    width: 1em;
    height: 1em;
    line-height: 1;
}

.custom-graph-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.custom-graph-spinner {
    width: 3rem;
    height: 3rem;
    border: 0.25rem solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #007bff;
    animation: custom-graph-spin 1s linear infinite;
}

.custom-graph-error {
    padding: 1rem;
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
    border-radius: 0.25rem;
}

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