/* ================================= [ RESET & FONTS ] ================================= */
* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

@font-face {
    font-family: "yekan";
    font-style: normal;
    font-weight: normal;
    src: url('../fonts/yekan-regular.eot') format("embedded-opentype"), url('../fonts/yekan-regular.woff') format("woff"), url('../fonts/yekan-regular.ttf') format("truetype");
}

html, body, #app {
    height: 100% !important;
    min-height: 100vh;
    font-family: 'yekan', 'dana', Helvetica, Arial, sans-serif;
    background-color: #e9eaeb;
    overflow-x: hidden !important;
    overscroll-behavior-y: auto;
    margin: 0;
}

/* ================================= [ GLOBAL UTILS ] ================================= */
a {
    font-family: inherit;
    font-size: 14px;
    line-height: 1.7;
    color: #666666;
    margin: 0px;
    transition: all 0.4s;
    text-decoration: none;
}

    a:hover {
        text-decoration: none;
        color: #333333;
    }

h1, h2, h3, h4, h5, h6 {
    margin: 0px;
}

p {
    font-family: inherit;
    font-size: 14px;
    line-height: 1.7;
    color: #666666;
    margin: 0px;
}

ul, li {
    margin: 0px;
    list-style-type: none;
}

input, textarea {
    outline: none;
    border: none;
}

    input:focus, textarea:focus {
        border-color: transparent !important;
    }

button {
    outline: none !important;
    border: none;
    background: transparent;
    cursor: pointer;
}

.br-15 {
    border-radius: 15px;
}

.font-size-xl {
    font-size: 25px;
}

.font-size-lg {
    font-size: 15px;
}

.font-size-md {
    font-size: 12px;
}

.font-size-sm {
    font-size: 10px;
}

.text-gray {
    color: #888a8b;
}

.font-weight-bold {
    font-weight: bold;
}

.border-radius-8px {
    border-radius: 8px;
}

.overflow-x-hidden {
    overflow-x: hidden !important;
}

.fit-content {
    width: fit-content;
}

/* ================================= [ COMPONENTS ] ================================= */
.Z_Component {
    padding-top: 10px;
    padding-bottom: 10px;
}

    .Z_Component input {
        caret-color: red;
    }

.Z_Component_Open {
    background-color: #ebf5e8 !important;
}

.Z_Component_Save {
    background-color: #fccbcb !important;
}

.Z_Component_Reload {
    background-color: #ffecbf !important;
}

.Z_Form_Title {
    text-align: center;
    font-weight: bold;
    border-radius: 10px;
    border: solid 1px #c4c4c4;
    margin-bottom: 0px;
}

    .Z_Form_Title:hover {
        border: solid 1px black;
    }

.Z_CustomModal {
    max-width: 800px;
    width: 90%;
}

.Z_CustomModal_Wide {
    max-width: 1150px !important;
}
.Z_Setting {
    position: absolute;
    top: 2px;
    left: 2px;
    z-index: 1050;
}

/* استایل دکمه */
.settings-btn {
    position: relative; /* برای اینکه آیکون داخل آن سنتر شود */
    background-color: #ffffff;
    color: #64748b;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    width: 36px;
    height: 36px;
    padding: 0 !important; /* حذف هرگونه پدینگ */
    margin: 0 !important;
    box-sizing: border-box;
    transition: all 0.25s ease-in-out;
    outline: none !important;
    box-shadow: none !important;
}

    .settings-btn:hover {
        background-color: #eff6ff;
        color: #3b82f6;
        border-color: #bfdbfe;
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15) !important;
    }

    /* 🔴 سنتر کردن دقیق آیکون با موقعیت مطلق */
    .settings-btn i {
        position: absolute;
        top: 50%;
        left: 50%;
        /* ترکیب حرکت به مرکز و چرخش */
        transform: translate(-50%, -50%);
        font-size: 1.1rem;
        margin: 0;
        padding: 0;
        line-height: 1;
        transition: all 0.3s ease;
    }

    /* افکت هاور (چرخش ۹۰ درجه با حفظ مرکزیت) */
    .settings-btn:hover i {
        transform: translate(-65%, -60%) rotate(90deg);
    }

    /* حذف سایه و کادر فوکوس بوت‌استرپ هنگام کلیک */
    .settings-btn:focus,
    .settings-btn:active {
        box-shadow: none !important;
        outline: none !important;
        border-color: #cbd5e1;
    }

.component-label {
    position: absolute;
    top: -13px;
    right: 12px;
    z-index: 50;
    padding: 1px 5px;
    background-color: white;
    font-size: 12px;
    display: inline-block;
    color: #100901;
    border-radius: 11px !important;
}

.component-input {
    min-height: 40px;
    font-size: 15px;
    color: #888;
    font-weight: bolder;
}

.component-radius-right {
    border-radius: 0px 8px 8px 0px !important;
}

.component-radius-left {
    border-radius: 8px 0 0 8px !important;
}

.form-control:focus, .form-select:focus {
    box-shadow: none !important;
    border: 1px solid #2264e5 !important;
}

.form-switch .form-check-input {
    border-color: #2264e5 !important;
}

/* ============================================================
   RTL FIX — چک‌باکس / رادیو / سوییچ باید «قبل از گزینه» (سمت راست) باشد.
   بوت‌استرپbundled شده نسخه LTR است (float:left) و باعث می‌شد تیک گزینه‌ها
   (مثلاً فیلد «انتخابی پیشرفته») سمت چپ گزینه بیفتد.
   ============================================================ */
.form-check {
    padding-left: 0;
    padding-right: 1.5em;
}

.form-check .form-check-input {
    float: right;
    margin-left: 0;
    margin-right: -1.5em;
}

.form-switch {
    padding-left: 0;
    padding-right: 2.5em;
}

.form-switch .form-check-input {
    margin-left: 0;
    margin-right: -2.5em;
    background-position: right center;
}

.form-switch .form-check-input:checked {
    background-position: left center;
}

.input-group-text {
    background-color: white !important;
}

/* ================================= [ TABLES & GRIDS ] ================================= */
.table-container {
    max-height: calc(100vh - 300px);
    overflow-y: auto;
    overflow-x: auto;
}

.compact-table td, .compact-table th {
    padding: 4px 8px !important;
    line-height: 2.2 !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
}

/* ============================================================
   جلوگیری از هم‌پوشانی متن ستون‌ها با ستون مجاور هنگام تغییر اندازهٔ صفحه.
   متن بلند در همان خانه بریده می‌شود (…) و کامل آن در tooltip (title) هست.
   ============================================================ */
.compact-table {
    table-layout: auto;
}

    .compact-table td, .compact-table th {
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 420px;
    }

    /* ستون عملیات نباید بریده شود */
    .compact-table td.sticky-action-col,
    .compact-table th.sticky-action-col {
        max-width: none;
        overflow: visible;
        text-overflow: clip;
    }

.compact-table .form-check-input {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.sticky-action-col {
    position: sticky !important;
    left: 0 !important;
    z-index: 5 !important;
    background-color: #f8f9fa !important;
    border-right: 1px solid #dee2e6 !important;
    box-shadow: 4px 0 6px -2px rgba(0,0,0,0.08) !important;
    width: 140px !important;
    min-width: 140px !important;
    max-width: 140px !important;
    white-space: nowrap !important;
}

thead .sticky-action-col {
    z-index: 10 !important;
    background-color: #e9ecef !important;
}

tr:hover .sticky-action-col {
    background-color: #e2e6ea !important;
}

.table-striped tbody tr:nth-of-type(odd) .sticky-action-col {
    background-color: #f1f3f5 !important;
}

.grid-action-btn {
    width: 32px !important;
    height: 32px !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease-in-out !important;
    cursor: pointer !important;
    padding: 0 !important;
}

    .grid-action-btn i {
        font-size: 1.2rem !important;
    }

    .grid-action-btn:hover {
        transform: scale(1.15) !important;
    }

    .grid-action-btn.edit {
        color: #0d6efd !important;
    }

        .grid-action-btn.edit:hover {
            background-color: #e7f1ff !important;
        }

    .grid-action-btn.delete {
        color: #dc3545 !important;
    }

        .grid-action-btn.delete:hover {
            background-color: #ffe8e8 !important;
        }

    .grid-action-btn.print {
        color: #0dcaf0 !important;
    }

        .grid-action-btn.print:hover {
            background-color: #e0f8fc !important;
        }

    .grid-action-btn.settings {
        color: #6c757d !important;
    }

        .grid-action-btn.settings:hover {
            background-color: #f1f3f5 !important;
        }

    .grid-action-btn.select {
        color: #198754 !important;
    }

        .grid-action-btn.select:hover {
            background-color: #e8f5e9 !important;
        }

/* ================================= [ MAIN LAYOUT & SIDEBAR ] ================================= */
html, body, #app {
    height: 100vh !important;
    margin: 0;
    overflow: hidden; /* جلوگیری از اسکرول کل صفحه */
}

.content-box {
    background-color: #fff;
    border-radius: 15px;
    padding: 20px;
    min-height: 100%;
    box-shadow: 0 0 10px rgba(0,0,0,0.02);
}


/* ================================= [ LANDING PAGE (FULL SCREEN) ] ================================= */
.intro-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 99999 !important;
    background: url('../images/loginright.webp') center center / cover no-repeat !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 30px !important;
    overflow-y: auto !important;
}

.intro-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1100px;
    text-align: center;
    z-index: 2;
}

    .intro-content-wrapper h1 {
        margin-top: 20px;
        margin-bottom: 10px;
        font-weight: 800;
        color: #2c3e50;
        font-size: 2rem;
    }

    .intro-content-wrapper p {
        margin-bottom: 40px;
        color: #555;
        font-size: 1.1rem;
    }

.intro-cards-row {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: stretch !important;
    gap: 25px !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    margin-bottom: 50px !important;
}

.intro-card {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    width: 280px !important;
    height: 250px !important;
    padding: 20px !important;
    border-radius: 16px !important;
    text-decoration: none !important;
    color: white !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15) !important;
}

    .intro-card:hover {
        transform: translateY(-8px) !important;
        box-shadow: 0 15px 30px rgba(0,0,0,0.25) !important;
    }

    .intro-card i {
        font-size: 2.5rem !important;
        margin-bottom: 15px !important;
    }

    .intro-card h5 {
        font-size: 1.15rem !important;
        font-weight: bold !important;
        margin-bottom: 10px !important;
        color: white !important;
    }

    .intro-card p {
        font-size: 0.85rem !important;
        color: rgba(255,255,255,0.9) !important;
        margin: 0 !important;
        line-height: 1.5 !important;
        text-align: center !important;
    }

.home-footer {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.65) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 20px !important;
    padding: 20px 60px !important;
    width: auto !important;
    max-width: 800px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05) !important;
    border: 1px solid rgba(255,255,255,0.8) !important;
    z-index: 2 !important;
}

    .home-footer h3, .home-footer h4, .home-footer h5 {
        color: #333;
        margin: 5px 0;
        font-weight: bold;
    }

/* ================================= [ OTHER COMPONENTS ] ================================= */
.Z_Calendar_Header, .Z_Calendar_Body {
    display: flex;
    flex-flow: column;
    align-items: center;
    background: radial-gradient( circle, rgba(238, 174, 202, 1) 0%, rgba(148, 187, 233, 1) 100% );
}

    .Z_Calendar_Header ul, .Z_Calendar_Body ul {
        direction: rtl;
        display: grid;
        grid-template-columns: repeat(7,1fr);
        flex-wrap: wrap;
        list-style: none;
    }

    .Z_Calendar_Header li {
        display: flex;
        width: 7rem;
        height: 2rem;
        margin: 0.20rem;
        flex-flow: column;
        padding: 0.3rem;
        text-align: center;
        border: solid #50505050 1px;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.3);
    }

    .Z_Calendar_Body li {
        direction: ltr;
        display: flex;
        width: 7rem;
        height: 7rem;
        margin: 0.15rem;
        flex-flow: column;
        border-radius: 0.2rem;
        padding: 0.3rem;
        font-weight: 300;
        font-size: 0.8rem;
        box-sizing: border-box;
        background: rgba(255, 255, 255, 0.25);
        box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
        backdrop-filter: blur(4px);
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.18);
    }

.Chat_Page {
    position: relative;
}

.Chat_Body {
    background-color: #e9eaeb;
    height: 69vh;
    width: 100%;
    border-radius: 5px;
    overflow-y: scroll;
}

.Chat_Class_Me {
    border-radius: 20px 20px 00px 20px;
    text-align: right;
    background-color: #b892d0;
}

.Chat_Class_NotMe {
    border-radius: 20px 20px 20px 00px;
    text-align: left;
    background-color: #b76d6d;
}


/* ================================= [ SIDEBAR INTERNAL STYLES ] ================================= */

/* استایل بخش جستجو */
.top-sidebar {
    background-color: #fff;
    border-bottom: 1px solid #eee;
}

.search-input {
    border: 1px solid #dee2e6;
    border-right: none;
}

    .search-input:focus {
        border-color: #0d6efd;
        box-shadow: none;
    }

.search-btn {
    border: 1px solid #dee2e6;
    border-left: none;
}

/* استایل آیتم‌های منو */
.sidebar-link {
    transition: all .3s ease;
    border-radius: 8px;
    margin-bottom: 2px;
}

    .sidebar-link:hover {
        background-color: #edf4ff;
        transform: translateX(-3px);
    }

.color:hover, .color:active {
    color: #2264e5 !important;
}

/* استایل آکاردئون‌های چند سطحی */
.myaccordion-body {
    padding: 0;
}

.myaccordion-l1 {
    background-color: #aedef7 !important;
    color: #333 !important;
    border-radius: 5px;
    margin-bottom: 5px;
}

.myaccordion-l2 {
    background-color: #c9dfff !important;
    color: #333 !important;
    border-radius: 5px;
    margin-bottom: 5px;
}

.myaccordion-l3 {
    background-color: #dbe9fe !important;
    color: #333 !important;
    border-radius: 5px;
    margin-bottom: 5px;
}

.myaccordion-l4 {
    background-color: #f8f9fa !important;
    border: 1px solid #eee;
    border-radius: 5px;
    color: #555 !important;
}

/* حذف خطوط اضافی آکاردئون بوت استرپ */
.accordion-button::after {
    margin-right: auto !important;
    margin-left: 0 !important;
}

.accordion-button:not(.collapsed) {
    box-shadow: none;
}

.accordion-item {
    background-color: transparent;
}

/* خط راهنمای سمت راست منو */
.border-right-a:after {
    content: "";
    display: block;
    position: absolute;
    right: 0.28rem;
    top: -17px;
    bottom: -29px;
    border-right: 1px dashed lightgray;
}
.loading_Content {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999 !important; /* بالاتر از z-index مودال (1050) */
    background-color: rgba(255, 255, 255, 0.7); /* یا هر رنگ پس‌زمینه‌ای که دارید */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ####################################### Z_DateBox Calender #######################################*/
.Z_Calender {
    background-color: #80808085;
    width: 100vw;
    height: 100%;
    position: fixed;
    z-index: 499;
    left: 0;
    top: 0;
    min-height: 100vw;
    min-width: 100vh;
}

.Z_Calender-Body {
    background-color: white;
    width: 300px;
    position: absolute;
    z-index: 500;
    left: 83px;
    top: 40px;
    border-radius: 10px !important;
}

.Z_Calender-Month {
    border-top-left-radius: 5px !important;
    border-top-right-radius: 5px !important;
    background-color: #90a3ff;
    color: #334e68;
    text-align: center;
    font-weight: 500;
    height: 40px;
    padding-top: 7px;
}

.Z_Calender-Weeks {
    height: 30px;
    background-color: #e3edff;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    font-size: 0.8em;
    color: #829ab1;
    text-align: center;
    padding-top: 5px;
}

.Z_Calender-Grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin: 0.5em;
    gap: 4px;
}

.Z_Calender-Day {
    position: relative;
    border: 0;
    width: 4.5ch;
    height: 4.5ch;
    border-radius: 10%;
    background-color: #c2d3d1;
    color: #486581;
}

    .Z_Calender-Day:hover {
        outline: none;
        background-color: #9ba8a6;
        color: #334e68;
    }

    .Z_Calender-Day:active,
    .Z_Calender-Day.is-selected {
        background-color: #c6f7e2;
        color: #102a43;
    }

/* ####################################### Z_DateBox Calender #######################################*/

.options-modal {
    padding: 0.25rem 0.25rem 0.5rem;
}

.options-hint {
    margin: 0 0 0.6rem;
    font-size: 0.8rem;
    color: #6b7280;
}

.options-empty {
    padding: 1.5rem 0.5rem;
    text-align: center;
    color: #6b7280;
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: min(60vh, 420px);
    overflow-y: auto;
    padding: 0.15rem;
}

.option-action {
    --accent: #0d6efd;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    min-height: 3.4rem;
    padding: 0.6rem 0.8rem 0.6rem 0.9rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-inline-start: 3px solid var(--accent);
    border-radius: 0.8rem;
    color: #111827;
    text-align: start;
    line-height: 1.6;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s, border-color 0.15s;
}

    .option-action:hover {
        background: #f9fafb;
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    }

    .option-action:active {
        transform: translateY(1px);
    }

    .option-action:focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: 2px;
    }

.option-action__icon {
    flex: 0 0 2.5rem;
    width: 2.5rem;
    height: 2.5rem;
    display: grid;
    place-items: center;
    border-radius: 0.7rem;
    background: #f3f4f6;
    background: color-mix(in srgb, var(--accent) 12%, #ffffff);
    color: var(--accent);
    font-size: 1.15rem;
}

.option-action__body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.option-action__title {
    font-size: 0.92rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.option-action__desc {
    margin-top: 0.15rem;
    font-size: 0.72rem;
    color: #6b7280;
    overflow-wrap: anywhere;
}

.option-action__arrow {
    flex: 0 0 auto;
    color: #9ca3af;
    font-size: 0.8rem;
}

/* ================================================================
   بازیابی استایل‌های از دست رفته در جابه‌جایی فایل‌های CSS
   منبع: نسخه قبلی همین پروژه -> Publish/wwwroot/css/Eshare.css
   ================================================================ */
.Z_Component_Kartex_Label {
    background-color: #c5c5c5;
    padding: 8px;
}

.Z_Component_Kartex_Title {
    background-color: black;
    color: white;
    padding: 8px;
    width: 200px;
}

/* کارتکس: فیلدها به‌قدر کافی پهن باشند تا اعداد بریده نشوند */
.Z_Kartex_Row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.25rem;
}

    .Z_Kartex_Row .Z_Component_Kartex_Title {
        width: auto;
        min-width: 140px;
        max-width: 240px;
        flex: 0 1 auto;
        display: flex;
        align-items: center;
    }

    .Z_Kartex_Row .Z_Component_Kartex_Label {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        white-space: nowrap;
    }

    .Z_Kartex_Row input.form-control {
        text-align: center;
        font-variant-numeric: tabular-nums;
    }

    .Z_Kartex_Row .Z_Kartex_Count {
        flex: 0 0 72px;
        min-width: 64px;
        max-width: 90px;
    }

    .Z_Kartex_Row .Z_Kartex_Sum {
        flex: 1 1 130px;
        min-width: 130px;
    }

    .Z_Kartex_Row .Z_Kartex_Last {
        flex: 0 0 112px;
        min-width: 100px;
        max-width: 135px;
    }

.Z_Cursor_pointer {
    cursor: pointer;
}

.Z_Form_Body {
    margin-top: 20px;
}

.Z_Scrollable {
    touch-action: auto;
}

.rounded-full {
    border-radius: 50%;
}

.Z_List_Options_BTN {
    font-size: 20px;
    font-family: 'dana';
    margin: 5px;
    background-color: DodgerBlue;
}

.Z_List_Options_BTN:hover {
    background-color: RoyalBlue;
}

.admin-index-item-list {
    padding-top: 10px;
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.Z_Input {
    padding: 10px;
    border: none;
    border-radius: 4px;
    font: inherit;
    color: black;
    outline: 2px solid #fff;
    line-height: 1.2;
    display: block;
    width: 100%;
    height: 52px;
    border-bottom: 2px solid #d9d9d9;
}

.Z_Input:hover {
    border-bottom: 2px solid blue;
}

.Z_Input:focus + .Z_Input-label, .Z_Input:valid + .Z_Input-label {
    transform: translate(20px,-14px) scale(.8);
    color: #d1c5fc;
    padding-inline: 10px;
}

.Z_Slider-Title {
    background-color: white;
    align-items: center !important;
    justify-content: space-between !important;
    display: flex !important;
    padding: 0.5rem 1rem;
    margin: 0px 10px 0px 10px;
    border-bottom: 1px solid rgba(0,0,0,.125);
    border-radius: 10px 10px 0px 0px;
    box-shadow: 0 0 10px rgb(0 0 0 / 20%);
}

.Z_Slider-Title:hover {
    background-color: floralwhite;
}

.Z_Picture-Component {
    position: relative;
    background-color: #e2e2e2;
    padding: 0px;
    margin: 5px;
    height: 220px;
    width: 100%;
    border-radius: 10px;
    outline: 2px dashed #bababa;
}

.Z_Picture-Component-img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    border-radius: 10px;
}

.Z_Picture-Component-btn {
    outline: 1px solid white;
    background-color: white;
    position: absolute;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    bottom: -7px;
    right: -7px;
    transition: transform all 1s ease;
}

.Z_Picture-Component-add {
    color: green;
}

.Z_Picture-Component-add:hover {
    color: #003b0a;
    transform: scale(1.02);
    cursor: pointer;
}

.Z_Picture-Component-del {
    color: red;
}

.Z_Picture-Component-del:hover {
    color: #450000;
    transform: scale(1.02);
    cursor: pointer;
}

.Z_Picture-Component-status {
    outline: 1px solid black;
    background-color: white;
    position: absolute;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    top: -7px;
    right: -7px;
    transition: transform all 1s ease;
    opacity: 0.6;
}

.Z_Picture-Component-status-ok {
    color: green;
}

.Z_Picture-Component-status-timer {
    color: gray;
}

.Z_Picture-Component-status-no {
    color: red;
}

.Z_RoundBTN {
    transition: transform all 1s ease;
    position: relative;
}

.Z_RoundBTN:hover {
    color: #003b0a;
    transform: scale(1.02);
}

.Z_RoundBTN-BTN {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #e2e2e2;
    margin: 8px;
    outline: 4px solid #f98b74;
    text-align: center;
}

.Z_RoundBTN-BTN:hover {
    cursor: pointer;
}

.Z_RoundBTN-alarm {
    outline: 1px solid white;
    background-color: white;
    position: absolute;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    top: 80px;
    right: 5px;
}

.Z_RoundBTN-alarm-OK {
    color: #003b0a;
}

.Z_RoundBTN-alarm-No {
    color: #450000;
}

.Z_RoundBTN-Caption {
    color: #464646;
    text-align: center;
    padding-bottom: 30px;
}

.Z_X_RadioBox_Value {
    padding: 5px 15px 5px 15px;
    margin: 10px;
    border-radius: 20px !important;
    background-color: #ceced0;
    transition: transform all 1s ease;
}

.Z_X_RadioBox_Value:hover {
    opacity: 0.8;
    cursor: pointer;
    transform: scale(1.02);
}

.Examination-Title {
    background-color: #63599EE0;
    color: white;
    align-items: center !important;
    justify-content: space-between !important;
    display: flex !important;
    padding: 0.5rem 1rem;
    margin: 0px 10px 0px 10px;
    border-bottom: 1px solid rgba(0,0,0,.125);
    border-radius: 10px 10px 0px 0px;
    box-shadow: 0 0 10px rgb(0 0 0 / 20%);
}

.Examination-Title:hover {
    opacity: 0.95;
}

.Examination-Body {
    padding: 10px;
    margin: 0px 10px 0px 10px;
    border-radius: 0px 0px 10px 10px;
    background-color: #dcdcdc;
    box-shadow: 0 0 10px rgb(0 0 0 / 10%);
    margin-bottom: 20px;
}

.Examination-Body button {
    background-color: #f3f3f3;
}

.Examination-Page {
    border-radius: 10px;
    background-color: #d1d1d191;
    margin: 10px;
    padding-right: 10px;
    color: maroon;
}

.Examination-Switch {
    border: 1px solid rgba(0,0,0,.125);
    background-color: white;
    padding-left: 50px;
    border-radius: 20px;
    margin-top: 10px;
}

.Examination-Switch:hover {
    border: 1px solid rgba(5,50,50,.125);
    background-color: #ededed;
    cursor: pointer;
}

.Z_Calender_Header {
    display: flex;
    flex-flow: column;
    align-items: center;
    font-family: "Poppins", serif;
    background: rgb(238, 174, 202);
    background: radial-gradient( circle, rgba(238, 174, 202, 1) 0%, rgba(148, 187, 233, 1) 100% );
}

.Z_Calender_Header ul {
    direction: rtl;
    display: grid;
    grid-template-columns: repeat(7,1fr);
    flex-wrap: wrap;
    list-style: none;
}

.Z_Calender_Header li {
    display: flex;
    width: 7rem;
    height: 2rem;
    margin: 0.20rem;
    flex-flow: column;
    padding: 0.3rem;
    text-align: center;
    border: solid #50505050 1px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.3);
}

.Z_Calender_Body {
    display: flex;
    flex-flow: column;
    align-items: center;
    font-family: "Poppins", serif;
    background: rgb(238, 174, 202);
    background: radial-gradient( circle, rgba(238, 174, 202, 1) 0%, rgba(148, 187, 233, 1) 100% );
}

.Z_Calender_Body ul {
    direction: rtl;
    display: grid;
    grid-template-columns: repeat(7,1fr);
    flex-wrap: wrap;
    list-style: none;
}

.Z_Calender_Body li {
    direction: ltr;
    display: flex;
    width: 7rem;
    height: 7rem;
    margin: 0.15rem;
    flex-flow: column;
    border-radius: 0.2rem;
    padding: 0.3rem;
    font-weight: 300;
    font-size: 0.8rem;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.Z_Calender_Body time {
    font-size: 2rem;
    margin: 0 0 1rem 0;
    font-weight: 500;
}

.Z_Calender_Body .today {
    font-weight: 800;
    background: #ffffff70;
}

.Z_TableListHead {
    border-radius: 10px 10px 0px 0px;
    background-color: lightgray;
    padding: 5px;
    font-family: 'dana';
    font-weight: bold;
}

.MyLabelCaption {
    min-width: 210px;
    color: gray;
}

.MyLabelData {
    font-family: "VazirBold";
}

.MyLabelEnd {
    color: gray;
}

/* ----------------------------------------------------------------
   قواعد منتقل‌شده از فایل قبلی style.css (آن فایل حذف شد؛
   این قواعد به Eshare.css منتقل شده‌اند تا وابستگی باقی نماند)
   ---------------------------------------------------------------- */
.font-weight-bolder {
    font-weight: bolder;
}

.hover-icon-success {
}

.hover-icon-success:hover {
    color: green;
    transform: rotate(20deg);
    transition: .4s all;
}

.hover-icon-warning {
    color: gray;
}

.hover-icon-warning:hover {
    color: #ffc107;
    transform: rotate(20deg);
    transition: .4s all;
}

/* ----------------------------------------------------------------
   بازیابی تکمیلی از بکاپ کامل پروژه
   G:\Back_Files\Back_Project\PWA\PWA.ERP\wwwroot\css
   ---------------------------------------------------------------- */
.Z_Component_h30 {
    height: 30px !important;
    min-height: 30px !important;
}

.rotate-180 {
    transform: rotate(180deg);
}

/* ==================================================================
   استایل‌های تکمیلی — کلاس‌هایی که در پروژه تعریف نشده بودند
   (هم‌رنگ با متغیرهای Colors.css)
   ================================================================== */

/* ---------- چیدمان کلی ---------- */
.layout-client-wrapper {
    min-height: 100vh;
    background-color: var(--bg-page, #faf6f0);
}

.layout-wrapper {
    position: relative;
    min-height: 100vh;
}

.content-wrapper {
    width: 100%;
    min-width: 0;
}

.control-section {
    padding: 0;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    width: 100%;
}

.sidebar-bottom-actions {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: .75rem 0;
    border-top: 1px solid rgba(0, 0, 0, .06);
}

/* ---------- منوی راست‌کلیک ---------- */
.custom-context-menu {
    direction: rtl;
    font-size: .9rem;
    color: var(--text-primary, #212529);
}

.context-menu-item {
    transition: background-color .15s ease;
}

.context-menu-item:hover {
    background-color: var(--bg-card-subtle, #f1f5f9);
}

/* ---------- درخت چک‌باکس ---------- */
.z-tree-check {
    border-color: var(--border-color, #dee2e6);
}

.z-tree-row {
    border-radius: 6px;
    transition: background-color .15s ease;
}

.z-tree-row:hover {
    background-color: var(--bg-card-subtle, #f1f3f5);
}

/* ---------- کارت‌ها و پورتال ---------- */
.custom-card {
    transition: transform .2s ease, box-shadow .2s ease;
}

.custom-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .14) !important;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    width: 100%;
}

.field-item,
.item-field {
    min-width: 0;
}

.field-actions {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.item-action {
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert-message {
    font-weight: 600;
    line-height: 1.8;
}

.icon-gear {
    display: inline-block;
    font-size: 1.05rem;
    line-height: 1;
}

/* ---------- صفحهٔ ورود ---------- */
.login-brand-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    color: #fff;
    text-decoration: none;
    transition: color .2s ease;
}

.login-brand-link:hover {
    color: #fde68a;
    text-decoration: none;
}

.form-footer-tip {
    color: #6c757d;
    font-size: .85rem;
}

/* ---------- اسلایدر ---------- */
.slider-header {
    padding-bottom: .5rem;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.slider-header-placeholder {
    display: flex;
    align-items: center;
    gap: .5rem;
}

/* ---------- تلفن تحت وب ---------- */
.webphone-card {
    background-color: var(--bg-card, #fff);
}

.incoming-box {
    animation: zIncomingPulse 1.6s ease-in-out infinite;
}

@keyframes zIncomingPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(13, 110, 253, .28); }
    50%      { box-shadow: 0 0 0 12px rgba(13, 110, 253, 0); }
}

/* ---------- دکمه‌ها ---------- */
.Z_Component_BTN {
    padding: .2rem .5rem;
    font-size: .8rem;
    line-height: 1;
}

.Z_BTN_Calculation {
    min-width: 130px;
    font-weight: 600;
}

.btn-white {
    background-color: #fff;
    border: 1px solid #dee2e6;
    color: #212529;
}

.btn-white:hover {
    background-color: #f8f9fa;
    color: #000;
}

/* ---------- آیکون کارت‌های صفحهٔ اصلی ---------- */
.admin-icon,
.collector-icon,
.donor-icon,
.covered-icon {
    border-radius: 50%;
    transition: transform .2s ease;
}

.admin-icon     { box-shadow: 0 0 0 8px rgba(217, 119, 6, .16); }
.collector-icon { box-shadow: 0 0 0 8px rgba(234, 88, 12, .16); }
.donor-icon     { box-shadow: 0 0 0 8px rgba(225, 29, 72, .16); }
.covered-icon   { box-shadow: 0 0 0 8px rgba(13, 148, 136, .16); }

.portal-card:hover .admin-icon,
.portal-card:hover .collector-icon,
.portal-card:hover .donor-icon,
.portal-card:hover .covered-icon {
    transform: scale(1.04);
}

/* ---------- فیلدها ---------- */
.custom-textarea {
    min-height: 120px;
    resize: vertical;
}

.empty-op-placeholder {
    display: inline-block;
    min-width: 60px;
    height: 1.5rem;
}

/* ---------- یوتیلیتی‌های حذف‌شده ---------- */
.rounded-4 {
    border-radius: 1rem !important;
}

.overflow-y-auto {
    overflow-y: auto !important;
}

.object-fit-cover {
    object-fit: cover;
}

/* ==========================================================================
   Z_ContactBox - خلاصهٔ اطلاعات مخاطب (چیپ‌های خوانا)
   ========================================================================== */
.contact-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem;
    margin-top: .45rem;
    padding: .35rem .25rem;
}
.contact-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .2rem .6rem;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: .78rem;
    line-height: 1.7;
    white-space: nowrap;
    max-width: 100%;
}
.contact-chip i { font-size: .85rem; color: #0284c7; }
.contact-chip .k { color: #64748b; font-weight: 600; }
.contact-chip .v { font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.contact-chip.contact-status.is-active { background: #dcfce7; border-color: #bbf7d0; color: #15803d; }
.contact-chip.contact-status.is-active i { color: #16a34a; }
.contact-chip.contact-status.is-inactive { background: #fee2e2; border-color: #fecaca; color: #b91c1c; }
.contact-chip.contact-status.is-inactive i { color: #dc2626; }
.contact-call-btn {
    border-radius: 999px;
    padding: .2rem .55rem;
    line-height: 1;
}
.contact-phones {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    margin-top: .4rem;
}
.contact-phone-row {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: .3rem .55rem;
    border-radius: 10px;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    max-width: 320px;
}
.contact-phone-row .bi-sim { color: #0284c7; }
.contact-phone-row span { flex: 1; font-weight: 700; letter-spacing: .4px; }
.contact-phone-row .btn { padding: .15rem .45rem; border-radius: 8px; line-height: 1; }

/* ==========================================================================
   سوییچ سفارشی Z_CheckBox (تم روشن/تیره)
   ========================================================================== */
.z-switch-control {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .32rem .6rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
}
.z-switch {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin: 0;
    cursor: pointer;
    user-select: none;
}
.z-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}
.z-switch-track {
    position: relative;
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background: #cbd5e1;
    transition: background .18s ease;
    flex: 0 0 auto;
}
.z-switch-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .3);
    transition: transform .18s ease;
}
.z-switch input:checked + .z-switch-track {
    background: #f59e0b;
}
.z-switch input:checked + .z-switch-track .z-switch-knob {
    transform: translateX(20px);
}
.z-switch input:disabled + .z-switch-track {
    opacity: .55;
}
.z-switch input:focus-visible + .z-switch-track {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}
.z-switch-text {
    font-size: .86rem;
    font-weight: 600;
    color: #334155;
}
.z-switch-help {
    color: #94a3b8;
    font-size: .9rem;
    line-height: 1;
}
.z-switch-action {
    border: none;
    background: #f1f5f9;
    color: #475569;
    border-radius: 8px;
    padding: .22rem .45rem;
    line-height: 1;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.z-switch-action:hover { background: #e2e8f0; }
.z-switch-action.save:hover { background: #22c55e; color: #fff; }
.z-switch-action.reload:hover { background: #f59e0b; color: #fff; }

/* آپلود فایل سفارشی */
.z-upload-control {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}
.z-upload-input {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}
.z-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .42rem .9rem;
    border-radius: 10px;
    background: #f59e0b;
    color: #fff;
    font-weight: 700;
    font-size: .84rem;
    cursor: pointer;
    margin: 0;
    transition: background .15s ease, transform .15s ease;
}
.z-upload-btn:hover { background: #d97706; }
.z-upload-btn:active { transform: scale(.97); }
.z-upload-btn i { font-size: 1rem; }
.z-upload-filename {
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .8rem;
    font-weight: 700;
    color: #15803d;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    padding: .18rem .6rem;
    direction: ltr;
}
.z-upload-hint {
    font-size: .78rem;
    color: #94a3b8;
}
