.sa-estimator-wrapper {
    max-width: 1300px;
    margin: 20px auto;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    font-family: 'Segoe UI', 'Tahoma', 'Arial', sans-serif;
    direction: rtl;
}
/* Arabic name styles for form */
.item-name-ar {
    font-weight: bold;
    color: #2c3e50;
    font-size: 14px;
    margin-bottom: 3px;
}

.item-name-en {
    font-size: 11px;
    color: #7f8c8d;
    direction: ltr;
}

.estimator-table td {
    vertical-align: middle;
}
.company-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #8B0000;
}

.company-logo-area {
    text-align: center;
    margin-bottom: 15px;
}

.form-logo {
    max-height: 80px;
    max-width: 200px;
    object-fit: contain;
}

.company-header h2 {
    color: #8B0000;
    margin: 5px 0;
    font-size: 20px;
}

.company-header h3 {
    color: #2c3e50;
    margin: 5px 0;
    font-size: 16px;
}

.tagline {
    color: #555;
    font-size: 12px;
    margin: 5px 0;
    font-weight: bold;
}

.reg-numbers {
    color: #777;
    font-size: 11px;
    margin: 5px 0;
}

.sa-estimator-wrapper h4 {
    color: #8B0000;
    text-align: center;
    margin-bottom: 5px;
    font-size: 24px;
}

.sa-estimator-wrapper h5 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 10px;
    font-size: 16px;
}

.description {
    text-align: center;
    color: #555;
    margin-bottom: 25px;
    font-size: 14px;
}

.estimator-controls {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.estimator-controls label {
    font-weight: bold;
    font-size: 16px;
    color: #2c3e50;
}

.area-input {
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    width: 200px;
    transition: border-color 0.3s;
}

.area-input:focus {
    outline: none;
    border-color: #8B0000;
}

.calculate-btn {
    background: #8B0000;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s;
}

.calculate-btn:hover {
    background: #6B0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139,0,0,0.3);
}

.table-container {
    overflow-x: auto;
    background: white;
    border-radius: 10px;
    padding: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.estimator-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.estimator-table th {
    background: #2c3e50;
    color: white;
    padding: 12px;
    text-align: center;
    border: 1px solid #1a252f;
    font-weight: bold;
}

.estimator-table td {
    padding: 10px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.estimator-table tr:hover {
    background: #f8f9fa;
}

.item-name {
    font-weight: 500;
    color: #2c3e50;
}

.subtotal-row, .vat-row, .total-row {
    background: #ecf0f1;
    font-weight: bold;
}

.vat-row {
    background: #f9e79f;
}

.total-row {
    background: #8B0000;
    color: white;
}

.total-row td:last-child {
    font-size: 18px;
    font-weight: bold;
}

.text-right {
    text-align: right !important;
}

.download-section {
    text-align: center;
    margin-top: 30px;
}

.download-pdf-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 14px 35px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.download-pdf-btn:hover {
    background: #219a52;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(39,174,96,0.3);
}

@media (max-width: 768px) {
    .sa-estimator-wrapper {
        padding: 15px;
    }
    
    .estimator-table {
        font-size: 11px;
    }
    
    .estimator-table th,
    .estimator-table td {
        padding: 6px 3px;
    }
    
    .calculate-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .company-header h2 {
        font-size: 16px;
    }
    
    .company-header h3 {
        font-size: 14px;
    }
}

@media print {
    .estimator-controls,
    .download-section {
        display: none;
    }
}