/*
Theme Name: Astra Child
Theme URI: http://example.com/astra-child
Description: قالب فرزند برای قالب آسترا
Author: Your Name
Author URI: http://example.com
Template: astra
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
*/

@font-face {
    font-family: 'iransans';
    src: url('/wp-content/fonts/IRANSansWeb.eot'); /* IE9 Compat Modes */
    src: url('/wp-content/fonts/IRANSansWeb.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('/wp-content/fonts/IRANSansWeb.woff2') format('woff2'), /* Super Modern Browsers */
         url('/wp-content/fonts/IRANSansWeb.woff') format('woff'), /* Modern Browsers */
         url('/wp-content/fonts/IRANSansWeb.ttf') format('truetype'); /* Safari, Android, iOS */
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* باعث می‌شود سایتتان سریع‌تر نمایش داده شود */
}

/* اعمال فونت به تمام متن‌های سایت */
body, p, h1, h2, h3, h4, h5, h6, .ast-container, .site-content, .entry-content {
    font-family: 'iransans' !important;
}

            /* کادر پیام موفقیت اختصاصی ما */
            .shat-success-notice {
                background: #EDF7ED !important;
                border-right: 5px solid #2ECC71 !important;
                border-radius: 8px !important;
                padding: 16px 20px !important;
                color: #1E4620 !important;
                font-size: 15px !important;
                font-weight: bold !important;
                margin-bottom: 25px !important;
                display: flex !important;
                align-items: center;
                box-shadow: 0 4px 10px rgba(46, 204, 113, 0.08) !important;
                will-change: transform, opacity; /* بهینه‌سازی رندر سخت‌افزاری در مرورگر */
            }
            .shat-success-notice::before {
                content: "✅" !important;
                margin-left: 10px !important;
                font-size: 18px !important;
            }

            .acf-notice.-success {
                background: #EDF7ED !important;
                border: none !important;
                border-right: 5px solid #2ECC71 !important;
                border-radius: 8px !important;
                padding: 16px 20px !important;
                color: #1E4620 !important;
                font-size: 15px !important;
                font-weight: bold !important;
                margin-bottom: 25px !important;
            }
            .acf-notice.-success p { margin: 0 !important; }
            .acf-form-submit + p { display: none !important; }
            
            /* هماهنگ‌سازی دکمه ثبت فرم با رنگ سازمانی */
            .acf-form-submit .acf-button {
                background: #2B3B82 !important;
                color: #fff !important;
                border: none !important;
                padding: 12px 30px !important;
                border-radius: 6px !important;
                font-weight: bold !important;
                cursor: pointer;
                transition: background 0.15s ease;
                width: 100%;
                font-size: 15px !important;
            }
            .acf-form-submit .acf-button:hover { background: #1F295E !important; }

            /* --- باکس آپلود لوکس فرانت‌سایت --- */
            .acf-basic-uploader {
                position: relative;
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                background: #F8FAFC !important;
                border: 2px dashed #CBD5E1 !important;
                padding: 30px 20px !important;
                text-align: center !important;
                border-radius: 10px !important;
                cursor: pointer;
                transition: all 0.15s ease-in-out;
                will-change: border-color, background;
            }
            .acf-basic-uploader:hover {
                border-color: #2B3B82 !important;
                background: #F1F5F9 !important;
            }

            /* نمایش هوشمند نام فایل آپلود شده با استایل سازمان‌یافته */
            .acf-basic-uploader input[type="file"] {
                display: block !important;
                opacity: 1 !important;
                margin-top: 15px !important;
                color: #2B3B82 !important;
                font-weight: bold !important;
                font-size: 13px !important;
                cursor: pointer;
                text-align: center;
            }

            /* کاستومایز کردن متن دکمه خام مرورگر */
            .acf-basic-uploader input[type="file"]::file-selector-button {
                display: none !important;
            }

            /* ساخت متن و دکمه جدید فارسی با استفاده از سودوالمنت‌ها */
            .acf-basic-uploader::before {
                content: "📁 انتخاب و بارگذاری فیش حقوقی (PDF)";
                display: inline-block;
                background: #2B3B82;
                color: #fff;
                padding: 8px 20px;
                border-radius: 6px;
                font-size: 13px;
                font-weight: bold;
                margin-bottom: 8px;
                transition: background 0.15s ease;
            }
            .acf-basic-uploader:hover::before {
                background: #1F295E;
            }
            
            .acf-basic-uploader::after {
                content: "کلیک کنید یا فایل PDF را به این کادر بکشید";
                display: block;
                color: #64748B;
                font-size: 12px;
                font-weight: 500;
            }
 

            #shat-emp-search {
                width: 100%; padding: 12px 20px; border: 2px solid #E2E8F0; border-radius: 10px; 
                font-size: 14px; outline: none; transition: border 0.2s;
            }
            #shat-emp-search:focus { border-color: #2B3B82; }
            
            .emp-row {
                background:#fff; border-radius:12px; box-shadow:0 4px 12px rgba(0,0,0,0.03); 
                margin-bottom:12px; overflow:hidden; border: 1px solid #E2E8F0;
                will-change: transform, opacity;
            }
            
            .emp-header {
                padding:18px; display:flex; justify-content:space-between; align-items:center; 
                cursor:pointer; background:#F8FAFC; transition:background 0.15s ease;
            }
            .emp-header:hover { background: #F1F5F9; }
            
            .emp-content {
                display:none; padding:15px; background:#fff; border-top:1px solid #F1F5F9;
            }
            
            /* دکمه‌های عملیاتی بهینه با کلاس‌های المنتور */
            .shat-btn-action {
                width: 35px; height: 35px; border-radius: 8px; display: inline-flex; 
                align-items: center; justify-content: center; text-decoration: none; 
                border: none; cursor: pointer; font-size: 14px; transition: all 0.15s ease;
            }
            .shat-btn-view { background: #E0E7FF; color: #4F46E5; }
            .shat-btn-view:hover { background: #C7D2FE; }
            .shat-btn-delete { background: #FEE2E2; color: #EF4444; }
            .shat-btn-delete:hover { background: #FCA5A5; }
            
            .emp-header i { color: #64748B; font-size: 16px; }
            .arrow-icon { transition: transform 0.15s ease; color: #2B3B82; font-size: 12px; }


        .employee-dashboard-wrapper {
            background:#fff; padding:25px; border-radius:12px; 
            box-shadow:0 4px 15px rgba(43, 59, 130, 0.05); direction: rtl; position: relative;
        }
        .shat-dashboard-header {
            display: flex; justify-content: space-between; align-items: center; 
            flex-wrap: wrap; gap: 15px; margin-bottom: 20px; border-bottom: 2px solid #F1F5F9; padding-bottom: 12px;
        }
        .shat-search-form { display: flex; gap: 8px; width: 100%; max-width: 350px; }
        .shat-search-input {
            flex-grow: 1; border: 1px solid #E2E8F0; border-radius: 8px;
            padding: 8px 14px; font-size: 13px; outline: none; transition: border 0.15s;
        }
        .shat-search-input:focus { border-color: #2B3B82; }
        
        .shat-emp-table { width:100%; border-collapse: collapse; text-align:right; font-size:14px; }
        .shat-emp-table thead tr { background:#F8FAFC; color:#2B3B82; }
        .shat-emp-table th { padding:15px; border-bottom:2px solid #E2E8F0; text-align:center; }
        .shat-emp-table tbody tr { border-bottom:1px solid #F1F5F9; transition: background 0.15s ease; }
        .shat-emp-table tbody tr:hover { background-color: #F8FAFC; }
        .shat-emp-table td { padding:15px; text-align:center; }
        
        .shat-btn-print {
            background:#2B3B82; color:#fff; padding:8px 20px; text-decoration:none; 
            border-radius:6px; font-weight:bold; font-size:13px; display:inline-block; 
            box-shadow:0 2px 5px rgba(43,59,130,0.15); transition: background 0.15s ease;
        }
        .shat-btn-print:hover { background: #1F295E; }

        /* لودینگ شیک ایجکس */
        .shat-table-overlay {
            display: none; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(255,255,255,0.7); z-index: 5; border-radius: 12px;
            align-items: center; justify-content: center; font-weight: bold; color: #2B3B82;
        }

        .shat-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 25px; direction: ltr; }
        .shat-pagination a, .shat-pagination span {
            padding: 6px 14px; border: 1px solid #E2E8F0; border-radius: 6px;
            text-decoration: none; color: #4b5563; font-size: 13px; font-weight: bold; cursor: pointer; transition: all 0.15s;
        }
        .shat-pagination a:hover, .shat-pagination span.current { background: #2B3B82; color: #fff; border-color: #2B3B82; }



        .shat-welcome-box {
            display: flex; align-items: center; background: #ffffff;
            border-right: 5px solid #2B3B82; border-radius: 12px; padding: 24px; margin-bottom: 30px;
            box-shadow: 0 4px 15px rgba(43, 59, 130, 0.05); direction: rtl; text-align: right;
        }
        .shat-icon-wrapper {
            background-color: #2ECC71; width: 50px; height: 50px; border-radius: 50%;
            display: flex; align-items: center; justify-content: center; font-size: 18px;
            margin-left: 20px; flex-shrink: 0; box-shadow: 0 4px 10px rgba(46, 204, 113, 0.2); color: #fff;
        }
        .shat-text-wrapper h2 { font-size: 18px; color: #2B3B82; font-weight: 800; margin: 0 0 4px 0; }
        .shat-text-wrapper p { font-size: 15px; color: #4b5563; margin: 0; font-weight: 500; }

        @media (max-width: 576px) {
            .shat-welcome-box { flex-direction: column; text-align: center; padding: 20px; justify-content: center; border-right: none; border-top: 5px solid #2B3B82; }
            .shat-icon-wrapper { margin-left: 0; margin-bottom: 15px; }
        }


        .shat-accountant-header {
            display: flex; justify-content: space-between; align-items: center; background: #ffffff;
            border-top: 4px solid #2B3B82; border-radius: 12px; padding: 24px; margin-bottom: 35px;
            box-shadow: 0 4px 20px rgba(43, 59, 130, 0.04); direction: rtl;
        }
        .shat-acc-welcome { display: flex; align-items: center; }
        .shat-acc-avatar {
            background-color: #f0f4f8; width: 55px; height: 55px; border-radius: 10px;
            display: flex; align-items: center; justify-content: center; font-size: 20px;
            margin-left: 18px; border: 1px solid #e2e8f0; color: #2B3B82;
        }
        .shat-acc-text h2 { font-size: 19px; color: #1F2937; font-weight: 800; margin: 0 0 4px 0; }
        .shat-acc-text .acc-name { color: #2B3B82; font-weight: 900; }
        .shat-acc-text p { font-size: 13px; color: #6b7280; margin: 0; font-weight: 500; }
        .shat-acc-meta { display: flex; gap: 15px; }
        .meta-item {
            background: #F8FAFC; border: 1px solid #E2E8F0; padding: 8px 16px; border-radius: 8px;
            display: flex; align-items: center; font-size: 13px; font-weight: 700; color: #4b5563;
        }
        .meta-icon { margin-left: 8px; color: #2B3B82; }
        .time-item { border-right: 3px solid #2ECC71; }
        .time-item .meta-icon { color: #2ECC71; }

        @media (max-width: 768px) {
            .shat-accountant-header { flex-direction: column; text-align: center; gap: 20px; }
            .shat-acc-welcome { flex-direction: column; justify-content: center; }
            .shat-acc-avatar { margin-left: 0; margin-bottom: 12px; }
            .shat-acc-meta { width: 100%; justify-content: center; flex-wrap: wrap; }
        }
