@font-face {
    font-family: 'Speda';
    src: url('fonts/Speda.ttf');
}

* { box-sizing: border-box; -webkit-print-color-adjust: exact; margin: 0; padding: 0; }

body {
    background: #f0f2f5;
    font-family: 'Speda', Tahoma, sans-serif;
    direction: rtl;
    color: #333;
}



.a4-page {
    width: 210mm;
    min-height: 297mm;
    background: white;
    margin: 10px auto;
    padding: 12mm 15mm;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    position: relative;
}

/* Header */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #2e1a47;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.header-right h1 { color: #2e1a47; font-size: 26px; margin: 0; }
.sub-title { font-size: 13px; color: #666; font-family: Speda; }

.logo-wrapper { text-align: center; }
.logo { width: 55px; }
.brand-text { display: block; font-family: Speda; font-size: 13px; font-weight: bold; color: #f39c12; }

/* Instructions */
.instructions {
    background: #f8f9fa;
    border-right: 4px solid #2e1a47;
    padding: 10px 15px;
    font-size: 12px;
    margin-bottom: 12px;
}
.instructions h3 { font-size: 14px; color: #2e1a47; margin-bottom: 3px; }
.instructions ol { margin-right: 20px; }

/* Titles */
.section-title {
    background: #2e1a47;
    color: white;
    padding: 6px 15px;
    font-size: 13px;
    font-weight: bold;
    margin-top: 8px;
    border-radius: 4px 4px 0 0;
}
.purple-bg { background: #4a336e; }

/* Tables */
.data-grid { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
.data-grid td { border: 1px solid #ddd; padding: 8px; font-size: 13px; }
.no-border td { border: none !important; }

.label { background: #f0f7f9; font-weight: bold; width: 140px; color: #2e1a47; }
.label-bg { background: #f0f7f9; font-weight: bold; width: 120px; text-align: center; }
.fixed-val { font-weight: bold; color: #d35400; background: #fffcf2; }

/* Inputs & Selects */
.clean-select, input {
    width: 100%;
    border: none;
    outline: none;
    font-family: 'Speda';
    font-size: 13px;
    background: transparent;
}
.en-num { font-family: 'Arial' !important; direction: ltr; text-align: right; }
.bold { font-weight: bold; font-size: 15px; color: #2c3e50; }

.radio-container { margin-left: 20px; cursor: pointer; font-weight: bold; display: inline-flex; align-items: center; gap: 5px; }

.reason-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 12px;
    border: 1px solid #ddd;
    border-top: none;
    font-size: 12px;
    margin-bottom: 10px;
}

.confirmation-box { border: 1px solid #ddd; margin-top: 5px; margin-bottom: 10px; }
.confirm-head { background: #f8f9fa; padding: 6px; border-bottom: 1px solid #ddd; font-weight: bold; font-size: 12px; }

.decision-section { border: 1px solid #ddd; margin-top: auto; border-radius: 4px; overflow: hidden; }
.approval-checks { display: flex; gap: 40px; padding: 12px; justify-content: center; font-weight: bold; background: #fcfcfc; }
.approve { color: #27ae60; }
.reject { color: #c0392b; }

.sig-line { border-bottom: 1px solid #999; height: 25px; width: 100%; margin-top: 5px; }

/* Print Control */
.print-btn {
    
	background: #2e1a47;
	padding: 10px;
	position: sticky; top: 0;
    bottom: 30px;
    left: 30px;
    padding: 10px;
    color: white;
    border: none;
   
    cursor: pointer;
	text-align: center;
    font-family: 'Speda';
    font-size: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 1000;
}





@media print {
    @page {
        size: A4;
        margin: 0;
    }
    body { background: white; margin: 0; padding: 0; }
    .a4-page {
        margin: 0;
        box-shadow: none;
        border: none;
        width: 210mm;
        height: 297mm;
        padding: 10mm 15mm;
        overflow: hidden;
    }
    .print-btn { display: none; }
    /* دڵنیابوونەوە لەوەی ڕەنگەکان لە چاپ دەردەکەون */
    .section-title { -webkit-print-color-adjust: exact; background-color: #2e1a47 !important; color: white !important; }
    .label, .label-bg { background-color: #f0f7f9 !important; -webkit-print-color-adjust: exact; }
}

.clean-select {
    appearance: none; /* بۆ لابردنی تیرە ستانداردەکە */
    -webkit-appearance: none; /* بۆ کرۆم و سافاری */
    -moz-appearance: none; /* بۆ فایەرفۆکس */
    background: transparent;
    border: none;
    outline: none;
    width: 100%;
    cursor: pointer;
}

#current-date {
    display: block;        /* وا دەکات هەموو پانی خانەکە بگرێت */
    text-align: center;    /* دەقەکە دەخاتە ناوەڕاست */
    font-weight: bold;
    width: 100%;
}

/* دڵنیابوونەوە لەوەی خانەی خشتەکەش هەموو شتێک دەخاتە ناوەڕاست */
.data-grid td {
    vertical-align: middle; /* بۆ ناوەڕاستی ستوونی */
}

.date-select-clean {
    border: none;
    background: transparent;
    font-family: 'Arial' !important;
    font-weight: bold;
    cursor: pointer;
    appearance: none; /* تیرە لادەبات */
    -webkit-appearance: none;
    text-align: center;
}

@media print {
    .date-select-clean {
        appearance: none !important;
        -webkit-appearance: none !important;
        border: none !important;
    }
}