.lineage-content {
    position: absolute;
    right: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    z-index: 99;
}

.lineage-sidebar {
    position: fixed;
    right: -350px;
    top: 0;
    width: 350px;
    height: 100%;
    padding: 10px;
    z-index: 999;
    background-color: #fff;
}

.right-350 {
    right: 0;
    transition: right 200ms ease-in-out !important;
}

.lineageWindow {
    height: calc(100dvh - 0px);
}

#vis {
    width: 100%;
    margin-top: -30%;
}

#myDiagramDiv canvas {
    outline: 0;
}

#lineage_slider {
    display: none;
}

#chequeSelector {
    min-width: 280px;
    border-radius: 0.25rem;
}

.diagram-controls {
    margin-bottom: 10px;
}

#chequeSelector:hover {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.status-successful {
    color: #28a745 !important;
}

.status-failed {
    color: #dc3545 !important;
}

.grp-go-js-evt {
    display: none !important;
}

.cheque-sidebar-image {
    width: 100%;
    max-width: 100%;
    margin-bottom: 10px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    transition: all 0.3s ease;
}

.cheque-sidebar-image svg {
    width: 100%;
    height: auto;
    display: block;
}

.cheque-sidebar-image:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.cart_area {
    display: none !important;
}

.cheque-sidebar-image {
    position: relative;
    cursor: pointer;
}

.zoom-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cheque-sidebar-image:hover .zoom-indicator {
    opacity: 1;
}

.zoomed-cheque-container {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.zoomed-cheque-container svg {
    width: 100%;
    height: auto;
    display: block;
}

#chequeZoomModal .modal-content {
    border-radius: 8px;
    overflow: hidden;
}

#chequeZoomModal .modal-header {
    border-bottom: 1px solid #dee2e6;
    background-color: #f8f9fa;
}

#chequeZoomModal .modal-title.text-success {
    color: #28a745 !important;
}

#chequeZoomModal .modal-title.text-danger {
    color: #dc3545 !important;
}

.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: scale(0.95);
}

.modal.show .modal-dialog {
    transform: scale(1);
}

@media (max-width: 768px) {
    #chequeZoomModal .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
}
