/* ===============================
   FONT & RESET
================================ */
@font-face {
    font-family: 'Speda';
    src: local('Speda'), url('fonts/Speda.ttf');
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Speda', sans-serif;
}

body {
    background: #e0e0e0;
    direction: rtl;
    color: #000;
}



/* ===============================
   TOOLBAR (NO PRINT)
================================ */
.no-print {
    background: #02162a;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 999;
}

.toolbar-inner {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: #163013;
    font-weight: bold;
}

.print {
    background: #d4d8dc;
    border-bottom: 4px solid #fff289;
}

/* ===============================
   PAGE LAYOUT
================================ */
.contract-wrapper {
    width: 210mm;
    margin: 20px auto;
}

.page {
    background: #fff;
    width: 210mm;
    height: 297mm;
    padding: 10mm;
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    page-break-after: always;
}

/* ===============================
   MAIN BORDER
================================ */
.main-border {
    border: 4px double #000;
    padding: 10mm;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* ===============================
   OFFICIAL HEADER
================================ */
.official-header {
    border: 2px solid #000;
    padding: 15px;
    margin-bottom: 20px;
    background: #fdfdfd;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.h-side {
    width: 35%;
    font-size: 14px;
    line-height: 1.6;
    font-weight: bold;
    text-align: center;
}

.h-side.en {
    direction: ltr;
    text-align: center;
}

.h-center img {
    width: 85px;
}

/* ===============================
   META & TITLES
================================ */
.meta-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: bold;
}

.contract-title {
    text-align: center;
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: bold;

}

/* ===============================
   PARTIES SECTION
================================ */
.parties-section {
    border-right: 6px solid #000;
    padding: 15px;
    margin-bottom: 20px;
    background: #f9f9f9;
}

.row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 17px;
}

/* ===============================
   CLAUSES
================================ */
.clauses {
    font-size: 16.5px;
    line-height: 2.1;
    text-align: justify;
}

.clause-item {
    margin-bottom: 15px;
}

.num {
    font-weight: bold;
    color: #d00a0a;
    margin-left: 5px;
}

/* ===============================
   INPUTS & SELECTS
================================ */
.input-box {
    display: inline-block;
    border-bottom: 1px solid #888;
    padding: 0 8px;
    min-height: 28px;
    color: #051c45;
    outline: none;
border: none !important; /* لابردنی هەموو جۆرە چوارچێوەیەک */
    border-bottom: none !important; /* دڵنیابوونەوە لە نەمانی هێڵی ژێرەوە */
}

.modern-select {
    border: 1px solid #ccc;
    color: #200b43;
    font-weight: bold;
    font-size: 16px;
    font-family: 'Speda';
}

/* WIDTH HELPERS */
.w-50  { width: 50px; }
.w-80  { width: 80px; }
.w-100 { width: 100px; }
.w-150 { width: 150px; }
.flex-1 { flex: 1; }

/* ===============================
   FOOTER & SIGNATURE
================================ */
.contract-footer {
    margin-top: auto;
    padding-top: 30px;
    border-top: 2px solid #000;
}

.sig-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.sig-box {
    text-align: center;
    font-size: 17px;
    font-weight: bold;
}

.stamp-area {
    width: 130px;
    height: 90px;
    border: 2px dashed #bbb;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
}

/* ===============================
   AGREEMENT DATE LINE
================================ */
.agreement-date-line {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    margin-top: 40px;
    margin-bottom: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.red-text {
    color: #84180d !important;
    border-bottom: 2px solid #84180d !important;
}

/* ===============================
   PRINT SETTINGS
================================ */
@media print {
    body {
        background: #fff;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }



    .no-print {
        display: none;
    }

    .contract-wrapper {
        width: 100%;
        margin: 0;
    }

    .page {
        margin: 0;
        box-shadow: none;
        border: none;
    }

    @page {
        size: A4;
        margin: 0;
    }

    .red-text {
        color: red !important;
        border-bottom-color: red !important;
    }
}

@media print {
    .modern-select {
        /* لادانی هەموو شێوازێکی وێبگەڕ (تیر و چوارگۆشە) */
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        
        border: none !important;
        background: transparent !important;
        outline: none !important;
        width: auto !important;
        font-family: 'Speda', sans-serif !important;
        font-size: 16.5px !important;
        font-weight: bold !important;
        color: black !important;
        padding: 0 !important;
        margin: 0 !important;
        cursor: default;
    }

    /* لابردنی تیری زیادە لە وێبگەڕی Internet Explorer */
    .modern-select::-ms-expand {
        display: none;
    }
}

.pv-text {
    color: #1a0978 !important; /* ڕەنگی سووری تۆخ */
    font-weight: bold;
}

@media print {
    .pv-text {
        color: #1a0978 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

.phone-field {
    direction: ltr !important;    /* ئاراستەی نووسین لە چەپ بۆ ڕاست */
    display: inline-block;
    unicode-bidi: embed;         /* دڵنیابوونەوە لە جێگیربوونی ئاراستەکە */
    font-family: Arial, sans-serif; /* فۆنتی ئینگلیزی ژمارەکان جوانتر نیشان دەدات */
    letter-spacing: 1px;         /* کەمێک مەودای نێوان ژمارەکان */
}



@media print {
    .phone-field {
        border: none !important;
        color: black !important;
    }
}

.date-lease-header {
    border: 2px solid #343434;
    padding: 4px;
    margin-bottom: 3px;
    background: #fdfdfd;
}

/* دروستکردنی چینێکی تایبەت بۆ لۆگۆی پشتەوە */
.page {
    position: relative;
    overflow: hidden;
}

.contract-watermark-overlay {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%) ;
    width: 500px; /* قەبارەی لۆگۆکە */
    height: 500px;
    background-image: url('icon/nazcity.png') !important;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.1; /* ڕێژەی کاڵی - دەتوانیت زیادی بکەیت بۆ 0.12 ئەگەر دیار نەبوو */
    z-index: 0; /* دەچێتە پشت هەموو شتێک */
    pointer-events: none; /* بۆ ئەوەی ڕێگری لە نووسین و کلیک نەکات */
}

/* دڵنیابوونەوە لەوەی پاشبنەمای پەرەکان ڕێگری لە بینینی واتەرمارکەکە ناکەن */
.main-border {
    position: relative;
    z-index: 1;
    background: transparent !important;
}

/* ڕێکخستنی تایبەت بۆ کاتی چاپکردن */
@media print {
    body {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    .contract-watermark-overlay {
        display: block !important;
        opacity: 0.08 !important;
    }
}

.stamp-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.stamp-names {
    border: none !important;
    background: transparent !important;
    font-family: 'Speda', sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    text-align: center;
    appearance: none; /* لادانی تیرەکە */
    -webkit-appearance: none;
    width: auto;
}

/* ستایڵی تایبەت بۆ کاتی چاپ */
@media print {
    .stamp-names {
        color: black !important;
        font-size: 14px !important;
        appearance: none;
        border: none !important;
    }
}


