.data-entry-container {
    display: flex;
    gap: 20px;
    max-width: 100%;
    height: calc(100vh - 100px);
    position: relative;
}

.form-section {
    flex: 1;
    overflow-y: auto;
    padding-right: 20px;
    transition: none;
    min-width: 20px;
}

.pdf-viewer-section {
    flex: 0 0 45%;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #ddd;
    padding-left: 20px;
    transition: none;
    position: relative;
    overflow: visible;
    min-width: 20px;
}

.pdf-viewer-section.collapsed {
    flex: 0 0 10px;
    overflow: visible;
}

.toggle-pdf-viewer {
    position: absolute;
    left: -20px;
    top: 20px;
    transform: none;
    width: auto;
    padding: 0 10px;
    height: 36px;
    border-radius: 18px;
    background: #7E942D;
    color: white;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: bold;
}

.toggle-pdf-viewer:hover {
    background: #96AF37;
    transform: scale(1.05);
}

.collapsed .toggle-pdf-viewer::after {
    content: "→";
}

.toggle-pdf-viewer::after {
    content: "←";
}

.pdf-viewer-section.collapsed .pdf-selector,
.pdf-viewer-section.collapsed .pdf-display {
    opacity: 0;
}

.pdf-selector {
    margin-bottom: 15px;
    position: relative;
}

.pdf-selector select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.7em top 50%;
    background-size: 1em auto;
    padding-right: 2.5em;
    width: 100%;
    padding: 8px 35px 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.pdf-selector select:hover {
    border-color: #96AF37;
}

.pdf-display {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.pdf-display iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.no-pdf-message {
    text-align: center;
    padding: 20px;
    color: #666;
}

/* Add resizer styles */
.resizer {
    position: absolute;
    left: -10px;
    top: 0;
    height: 100%;
    width: 20px;
    cursor: col-resize;
    user-select: none;
    z-index: 100;
}

.resizer::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    height: 100%;
    width: 4px;
    transform: translateX(-50%);
    background-color: transparent;
    transition: background-color 0.3s;
}

.resizer:hover::after {
    background-color: #7E942D;
}

.resizer.active::after {
    background-color: #7E942D;
}