body {
    background-color: #f5f5f5;
}

.navbar-brand {
    font-weight: bold;
}

.card {
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: none;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
}

.table thead th {
    background-color: #f8f9fa;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
}

#itemsTable input,
#itemsTable select {
    min-width: 60px;
}

.row-subtotal {
    font-weight: 600;
    color: #0d6efd;
}

.quotation-preview {
    background: #fff;
    padding: 40px;
    border: 1px solid #ddd;
}

.preview-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #333;
}

.preview-title {
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 8px;
}

.preview-table {
    width: 100%;
    border-collapse: collapse;
    border: 2px solid #333;
}

.preview-table th {
    background: #f5f5f5;
    border: 1px solid #333;
    padding: 12px 8px;
    font-weight: 600;
    text-align: center;
    font-size: 14px;
}

.preview-table td {
    border: 1px solid #999;
    padding: 10px 8px;
    font-size: 13px;
}

.preview-table tfoot td {
    border-top: 2px solid #333;
    padding: 12px 8px;
}

.total-row td {
    background: #f0f8ff;
}

.total-amount {
    font-size: 16px;
    color: #c00000;
}

.amount {
    font-family: 'Courier New', monospace;
}

.summary-label {
    font-weight: 600;
    padding-right: 20px;
}

.preview-footer {
    margin-top: 40px;
}

.sign-area {
    width: 280px;
}

.sign-line {
    border-bottom: 1px solid #333;
    height: 60px;
    margin-top: 8px;
}

.sign-area p {
    margin-bottom: 0;
    font-size: 14px;
}

@media print {
    .print-hide,
    .navbar,
    .btn,
    form .text-end,
    .modal-header,
    .modal-footer {
        display: none !important;
    }
    
    body {
        background: #fff !important;
        padding: 0 !important;
    }
    
    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    .quotation-preview {
        border: none;
        padding: 20px;
    }
    
    .preview-table {
        border: 2px solid #333;
    }
    
    .card {
        box-shadow: none;
        border: none;
    }
    
    .modal {
        position: static !important;
        display: block !important;
        opacity: 1 !important;
    }
    
    .modal-dialog {
        margin: 0 !important;
        max-width: 100% !important;
    }
    
    .modal-content {
        border: none !important;
        box-shadow: none !important;
    }
}
