@font-face {
    font-family: 'Speda';
    src: local('Speda'), local('Arabic Transparent');
}

body {
    font-family: 'Speda', 'Tahoma', sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    padding: 0;
    direction: rtl;
    color: #2c3e50;
}

.fixed-header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.top-info-bar {
    background: linear-gradient(90deg, #1a2a3a, #2c3e50);
    color: #fff;
    padding: 10px 40px;
    font-size: 14px;
    border-bottom: 4px solid #3498db;
}

.dev-info {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.header-main-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 40px;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.logo-box { width: 65px; height: 65px; }

.title-box h1 { margin: 0; font-size: 26px; color: #1a2a3a; }

.navigation-tabs { display: flex; gap: 12px; margin-bottom: 15px; }

.tab-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid #ecf0f1;
    background: #f8f9fa;
    font-family: 'Speda';
    cursor: pointer;
    border-radius: 8px;
}

.tab-btn.active { background: #3498db; color: white; border-color: #3498db; }

.selection-container {
    background: #f9f9f9;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

select { font-family: 'Speda'; padding: 6px 20px; border-radius: 6px; border: 1px solid #3498db; }

.btn-save { background: #3498db; color: white; border: none; padding: 10px 20px; border-radius: 6px; cursor: pointer; font-family: 'Speda'; }

.container {
    max-width: 1200px;
    margin: 330px auto 40px auto; 
    background: #fff;
    padding: 30px 40px;
    border-radius: 12px;
}

.section-block { display: none; }
.section-block.active { display: block; }

.section-title h2 { background: #34495e; color: white; padding: 15px 25px; border-radius: 8px; }

table { width: 100%; border-collapse: collapse; margin-top: 10px; }
th, td { border: 1px solid #bdc3c7; padding: 8px; text-align: center; }
th { background-color: #f1f3f5; font-weight: bold; }

input[type="text"] { width: 95%; padding: 5px; border: 1px solid #ddd; border-radius: 4px; font-family: 'Speda'; text-align: center; }

.print-only-header { display: none; }
.print-footer { display: none; justify-content: space-between; margin-top: 50px; }
.sig-box { width: 220px; border-top: 2px solid #2c3e50; text-align: center; padding-top: 5px; font-weight: bold; }

/* ڕێکخستنی تایبەت بە کاتی چاپکردن */
@media print {
    @page {
        size: A4;
        margin: 10mm;
    }
    
    .no-print, .fixed-header-wrapper { display: none !important; }
    
    body { background: white !important; }
    
    .container { 
        margin: 0 !important; 
        padding: 0 !important; 
        width: 100% !important;
        box-shadow: none !important;
    }

    .print-only-header { 
        display: block !important; 
        text-align: center;
        margin-bottom: 20px;
    }

    .print-header-top {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 20px;
    }

    table { 
        width: 100% !important; 
        table-layout: fixed; /* ڕێگری دەکات لە تێكچوونی پانی خشتەکە */
    }

    th, td { 
        font-size: 11px !important; /* قەبارەی فۆنتەکە بچووک دەکەینەوە تا جێگەی ببێتەوە */
        padding: 5px !important;
        word-wrap: break-word;
    }

    input[type="text"] {
        border: none !important; /* لە چاپدا چوارچێوەکە لادەبەین */
        background: transparent !important;
    }

    select {
        border: none !important;
        appearance: none;
        -webkit-appearance: none;
    }

    .section-title h2 {
        background: #eee !important;
        color: black !important;
        border: 1px solid #ccc;
    }

    .print-footer { 
        display: flex !important; 
        position: fixed;

        width: 60%;
    }
}