/* Quick Order Entry Modal Styles */
.qoe-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
}

.qoe-modal-overlay.active {
    display: block;
}

.qoe-modal {
    position: fixed;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    min-width: 600px;
    min-height: 400px;
    max-width: 95vw;
    max-height: 95vh;
}

.qoe-modal-header {
    background: #5f0507;
    color: white;
    padding: 12px 16px;
    border-radius: 8px 8px 0 0;
    cursor: move;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.qoe-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.qoe-modal-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.qoe-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.qoe-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.qoe-modal-footer {
    padding: 12px 16px;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.qoe-modal-resize-handle {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    cursor: nwse-resize;
    background: linear-gradient(135deg, transparent 50%, #ccc 50%);
}

/* Compact form styling for modal */
.qoe-modal .form-label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.qoe-modal .form-control,
.qoe-modal .form-select {
    font-size: 0.9rem;
    padding: 0.375rem 0.5rem;
}

.qoe-modal .row {
    margin-bottom: 0.5rem;
}

.qoe-modal .section-header {
    font-size: 0.95rem;
    font-weight: bold;
    padding: 0.5rem;
    margin: 0.5rem 0 0.25rem 0;
    border-radius: 4px;
}

.qoe-modal .section-header.bg-primary {
    background-color: #0d6efd !important;
    color: white;
}

.qoe-modal .section-header.bg-success {
    background-color: #198754 !important;
    color: white;
}

.qoe-modal .section-header.bg-warning {
    background-color: #ffc107 !important;
    color: #000;
}

.qoe-modal .section-header.bg-info {
    background-color: #0dcaf0 !important;
    color: #000;
}
