#quoteModal .modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

#quoteModal .modal-header {
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 1.5rem;
}

#quoteModal .modal-footer {
    border-top: 1px solid #e5e7eb;
    padding: 1rem 1.5rem;
}

#quoteModal .modal-body {
    padding: 1.5rem;
}

#quoteModal .form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#quoteModal .form-label {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

#quoteModal .form-control {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
}

#quoteModal textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

#quote-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.quote-upload-area {
    border-style: dashed !important;
    border-color: #d1d5db !important;
    transition: border-color 0.2s, background-color 0.2s;
}

.quote-upload-area:hover {
    border-color: #3b82f6 !important;
    background-color: #f8fafc;
}

.quote-file-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.quote-file-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.8125rem;
}

.quote-file-info {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.quote-file-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quote-file-remove {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #dc2626;
    cursor: pointer;
    padding: 0 2px;
    font-size: 1rem;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.quote-file-remove:hover {
    opacity: 1;
}

[data-quote-products] {
    max-height: 300px;
    overflow-y: auto;
}

.quote-product-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.15s;
}

.quote-product-item:last-child {
    border-bottom: none;
}

.quote-product-item:hover {
    background-color: #f9fafb;
}

.quote-product-image {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    flex-shrink: 0;
    overflow: hidden;
    background: #f3f4f6;
}

.quote-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.quote-product-image-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #9ca3af;
    font-size: 0.75rem;
}

.quote-product-info {
    flex: 1;
    min-width: 0;
}

.quote-product-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1f2937;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 0;
}

.quote-product-name a {
    color: #1f2937;
    text-decoration: none;
}

.quote-product-name a:hover {
    color: #2563eb;
    text-decoration: underline;
}

.quote-product-part {
    font-size: 0.75rem;
    color: #6b7280;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 2px 0 0 0;
}

.quote-product-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.quote-product-qty {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.quote-product-qty button {
    width: 28px;
    height: 28px;
    border: 1px solid #d1d5db;
    background: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.875rem;
    color: #374151;
    transition: border-color 0.15s, background-color 0.15s;
    padding: 0;
    line-height: 1;
}

.quote-product-qty button:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.quote-product-qty input {
    width: 48px;
    height: 28px;
    text-align: center;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.8125rem;
    padding: 0;
    -moz-appearance: textfield;
}

.quote-product-qty input::-webkit-inner-spin-button,
.quote-product-qty input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quote-product-remove {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    font-size: 1rem;
    line-height: 1;
    transition: color 0.15s;
}

.quote-product-remove:hover {
    color: #dc2626;
}

.quote-form-message {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 0.875rem;
    display: none;
}

.quote-form-message.is-error {
    display: block;
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.quote-form-message.is-success {
    display: block;
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.quote-form-message.is-info {
    display: block;
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

@media (max-width: 575.98px) {
    #quoteModal .modal-dialog {
        margin: 0.5rem;
    }

    .quote-product-item {
        flex-wrap: wrap;
    }

    .quote-product-controls {
        order: 10;
        width: 100%;
        justify-content: flex-end;
        margin-top: 4px;
    }
}
