﻿﻿@font-face {
    font-family: yekan;
    font-style: normal;
    font-weight: normal;
    src: url('../font/woff2/IRANYekanX-Regular.woff2') format('woff2'),  /* FF39+,Chrome36+, Opera24+*/
    url('../font/woff/IRANYekanX-Regular.woff') format('woff');  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
}
@font-face {
    font-family: yekan;
    font-style: normal;
    font-weight: bold;
    src: url('../font/woff2/IRANYekanX-Bold.woff2') format('woff2'),  /* FF39+,Chrome36+, Opera24+*/
    url('../font/woff/IRANYekanX-Bold.woff') format('woff');  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
}

@font-face {
    font-family: yekan-fu-num;
    font-style: normal;
    font-weight: normal;
    src: url('../font/fa-num/woff2/IRANYekanXFaNum-Regular.woff2') format('woff2'),  /* FF39+,Chrome36+, Opera24+*/
    url('../font/fa-num/woff/IRANYekanXFaNum-Regular.woff') format('woff');  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
}
@font-face {
    font-family: yekan-fu-num;
    font-style: normal;
    font-weight: bold;
    src: url('../font/fa-num/woff2/IRANYekanXFaNum-Bold.woff2') format('woff2'),  /* FF39+,Chrome36+, Opera24+*/
    url('../font/fa-num/woff/IRANYekanXFaNum-Bold.woff') format('woff');  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
}

:root {
    --primary-color: #3a78c9;
    --accent-color: #2b5995;
    --border-color: #d3cce4;
    --focus-color: #9fb0e4;
    --text-color: #495057;
    --label-color: #6c757d;
    --background-color: #fff;
    --placeholder-color: #adb5bd;
    --border-radius: 8px;
    --transition-duration: 0.3s;
    --default-font-family: "yekan", sans-serif;
}

.mud-typography,
.mud-typography-default,
.mud-typography-body1,
.mud-typography-body2,
.mud-typography-button,
.mud-typography-caption,
.mud-typography-subtitle1,
.mud-typography-subtitle2,
.mud-typography-h1,
.mud-typography-h2,
.mud-typography-h3,
.mud-typography-h4,
.mud-typography-h5,
.mud-typography-h6 {
    font-family: var(--default-font-family) !important;
}

body{
    position: initial !important;
}

.validation-message {
    color: #d9534f;
    font-size: 0.8em;
    position: absolute;
    bottom: -10px;
    left: 10px;
}

.invalid {
    border: 1px dotted #d9534f !important;
    color: #d9534f !important;
}

.re-input-group {
    display: flex;
    flex-direction: column;
    padding: 5px 0;
    position: relative;
    margin-bottom: 5px;
}

.re-input-label {
    margin-bottom: 8px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--label-color);
    transition: color var(--transition-duration) ease;
}

.re-input-field {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    outline: none;
    transition: border-color var(--transition-duration) ease, box-shadow var(--transition-duration) ease;
}

    .re-input-field::placeholder {
        color: var(--placeholder-color);
        opacity: 1;
    }

    .re-input-field:hover {
        border-color: var(--accent-color);
    }

    .re-input-field:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    }

        .re-input-field:focus + .re-input-label {
            color: var(--primary-color);
        }

.re-input-group:focus-within .re-input-label {
    color: var(--primary-color);
}

.re-checkbox-container {
    display: flex;
    align-items: center;
}

.re-checkbox-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
}

.re-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    font-size: 1rem;
    color: var(--text-color);
}

.re-custom-checkbox {
    display: inline-block;
    width: 15px;
    height: 16px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    margin-left: 12px;
    background-color: var(--background-color);
    transition: all var(--transition-duration) ease;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.re-checkbox-input:checked + .re-checkbox-label .re-custom-checkbox {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

    .re-checkbox-input:checked + .re-checkbox-label .re-custom-checkbox::after {
        content: '';
        width: 3px;
        height: 7px;
        border: solid white;
        border-width: 0 3px 3px 0;
        transform: rotate(45deg);
        transition: transform var(--transition-duration) ease-in-out;
    }

.re-checkbox-label:hover .re-custom-checkbox {
    border-color: var(--accent-color);
}

.re-checkbox-input:focus + .re-checkbox-label .re-custom-checkbox {
    box-shadow: 0 0 0 3px var(--focus-color);
    border-color: var(--primary-color);
}

.re-input-error p {
    color: #d9534f !important;
}
.re-input-error input {
    border: 1px solid #d9534f !important;
}

.mud-disabled, .mud-radio .mud-disabled, .mud-radio .mud-disabled:hover {
    background-color: #f3f6f8 !important;
}

.horizontal-logo {
    padding: 0.25rem 0rem;
}

.re-md-block {
    display: none !important;
    visibility: hidden !important;
}
.re-md-none {
    display: inherit !important;
    visibility: visible !important;
}

[data-nav-layout=horizontal] .app-content {
    margin-top: 70px !important;
    min-height: calc(100vh - 575px);
}

.mud-badge.mud-badge-top.right {
    inset: auto auto auto auto !important;
}

[dir=rtl] .mud-table-pagination-actions .mud-button-root svg {
    rotate: 0deg !important;
}

@media (min-width: 992px) {
    .re-md-block {
        display: inherit !important;
        visibility: visible !important;
    }
    .re-md-none {
        display: none !important;
        visibility: hidden !important;
    }
    ol{
        margin-right: 15px;
    }
    .mud-toolbar.mud-toolbar-gutters.mud-table-pagination-toolbar.mud-tablepager-right.re-table-footer {
        justify-self: left;
    }

    .re-table-footer .mud-table-pagination-display {
        flex-direction: row !important
    }
}

@media (max-width: 991.98px) {
}

#components-reconnect-modal.reconnect-modal-shell {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(3px);
    padding: 16px;
    font-family: "yekan", sans-serif;
}

#components-reconnect-modal.components-reconnect-show,
#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-rejected {
    display: flex;
}

#components-reconnect-modal.components-reconnect-show {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    animation: reconnect-overlay-delay 0s linear 5s forwards;
}

#components-reconnect-modal.components-reconnect-show .reconnect-card {
    opacity: 0;
    transform: translateY(8px);
    animation: reconnect-card-delay .25s ease-out 5s forwards;
}

#components-reconnect-modal .reconnect-card {
    width: min(100%, 430px);
    background: #fff;
    border: 1px solid #dbe5f2;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(16, 24, 40, 0.25);
    padding: 24px 22px 18px;
    text-align: center;
    animation: reconnect-pop .25s ease-out;
}

#components-reconnect-modal .reconnect-icon-wrap {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #1d4ed8;
    background: rgba(29, 78, 216, 0.12);
}

#components-reconnect-modal .reconnect-icon-wrap i {
    font-size: 24px;
}

#components-reconnect-modal h3 {
    margin: 0 0 8px;
    font-size: 22px;
    color: #0f172a;
}

#components-reconnect-modal .reconnect-state {
    margin: 0 0 12px;
    color: #475569;
    font-size: 14px;
    line-height: 1.9;
    display: none;
}

#components-reconnect-modal.components-reconnect-show .reconnect-state-disconnected {
    display: block;
}

#components-reconnect-modal.components-reconnect-failed .reconnect-state-failed {
    display: block;
}

#components-reconnect-modal.components-reconnect-rejected .reconnect-state-rejected {
    display: block;
}

#components-reconnect-modal .reconnect-attempts {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    margin: 0 0 14px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1e40af;
    font-size: 13px;
}

#components-reconnect-modal.components-reconnect-rejected .reconnect-attempts {
    display: none;
}

#components-reconnect-modal .reconnect-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#components-reconnect-modal .reconnect-actions button {
    border: 0;
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
}

#components-reconnect-retry-button {
    background: #1d4ed8;
    color: #fff;
}

#components-reconnect-dismiss-button {
    background: #e2e8f0;
    color: #334155;
}

#components-reconnect-modal.components-reconnect-show #components-reconnect-retry-button,
#components-reconnect-modal.components-reconnect-show #components-reconnect-dismiss-button {
    display: none;
}

#components-reconnect-modal.components-reconnect-failed #components-reconnect-retry-button,
#components-reconnect-modal.components-reconnect-failed #components-reconnect-dismiss-button {
    display: inline-block;
}

#components-reconnect-modal.components-reconnect-rejected #components-reconnect-retry-button {
    display: none;
}

#components-reconnect-modal.components-reconnect-rejected #components-reconnect-dismiss-button {
    display: inline-block;
}

@keyframes reconnect-pop {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes reconnect-overlay-delay {
    to {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}

@keyframes reconnect-card-delay {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mud-popover.mud-popover-open.re-invite-dialog {
    z-index: 1401 !important;
}

.mud-popover.mud-popover-open.re-calendar-popover {
    z-index: 1401 !important;
}

/* Mobile responsiveness hardening for app layout, sidebar and table footer */
@media (max-width: 991.98px) {
    html,
    body {
        overflow-x: hidden;
    }

    .app-header {
        padding-inline-start: 0 !important;
    }

    .app-content,
    .main-content {
        margin-inline-start: 0 !important;
        max-width: 100vw;
        overflow-x: clip;
    }

    .app-content .mud-container {
        max-width: 100%;
        padding-inline: 10px !important;
    }

    .app-sidebar {
        width: min(84vw, 15rem) !important;
        max-width: 15rem;
        z-index: 1101;
    }

    [dir="ltr"][data-toggled="close"] .app-sidebar {
        transform: translateX(-100%) !important;
    }

    [dir="rtl"][data-toggled="close"] .app-sidebar {
        transform: translateX(100%) !important;
    }

    [data-toggled="open"] .app-sidebar {
        transform: translateX(0) !important;
    }

    #responsive-overlay {
        inset: 0;
        z-index: 1100;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.2s ease, visibility 0.2s ease;
    }

    [data-toggled="open"] #responsive-overlay {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .main-menu-container .slide-left,
    .main-menu-container .slide-right {
        display: none !important;
    }

    [data-nav-layout="horizontal"] .app-sidebar {
        height: 100vh !important;
        inset-block-start: 0 !important;
        border-inline-end: 1px solid var(--menu-border-color) !important;
    }

    [data-nav-layout="horizontal"] .app-sidebar .main-sidebar {
        height: 100vh !important;
        padding-block-end: 0 !important;
    }

    .mud-table-pagination-toolbar,
    .mud-table-pagination-toolbar.re-table-footer {
        height: auto !important;
        min-height: 0 !important;
        padding-top: 8px !important;
        padding-bottom: 8px !important;
        padding-inline: 8px !important;
        flex-wrap: wrap !important;
        row-gap: 8px;
        justify-content: center !important;
        align-content: center;
        max-width: 100%;
    }

    .mud-table-pagination-toolbar > * {
        min-width: 0;
        max-width: 100%;
    }

    .mud-table-pagination-spacer,
    .mud-table-pagination-display {
        width: 100%;
        justify-content: center !important;
        text-align: center;
    }

    .mud-table-pagination-display,
    .mud-table-pagination-information,
    .mud-table-page-number-information,
    .mud-table-pagination-caption {
        white-space: normal !important;
        overflow-wrap: anywhere;
    }

    .mud-table-pagination-actions {
        margin-inline: auto;
    }

    .mud-table-pagination {
        overflow: hidden;
        max-width: 100%;
    }

    .mud-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Global dark-mode contrast fixes */
[data-theme-mode="dark"] {
    --st-dark-text: #e6edf8;
    --st-dark-muted: #aebbd1;
    --st-dark-surface: #111c2d;
    --st-dark-surface-2: #15243a;
    --st-dark-border: #2b3f5f;
}

[data-theme-mode="dark"] .mud-dark-text,
[data-theme-mode="dark"] .text-dark {
    color: var(--st-dark-text) !important;
}

[data-theme-mode="dark"] .text-muted {
    color: var(--st-dark-muted) !important;
}

[data-theme-mode="dark"] .mud-icon-button-color-dark,
[data-theme-mode="dark"] .mud-button-text-dark,
[data-theme-mode="dark"] .mud-button-text-dark .mud-button-label,
[data-theme-mode="dark"] .mud-button-outlined-dark,
[data-theme-mode="dark"] .mud-button-outlined-dark .mud-button-label,
[data-theme-mode="dark"] .mud-button-filled-dark,
[data-theme-mode="dark"] .mud-button-filled-dark .mud-button-label,
[data-theme-mode="dark"] .mud-chip-text-dark,
[data-theme-mode="dark"] .mud-link.mud-link-underline-hover.mud-typography.mud-dark-text,
[data-theme-mode="dark"] .header-link-icon {
    color: var(--st-dark-text) !important;
}

[data-theme-mode="dark"] .mud-button-outlined-dark {
    border-color: var(--st-dark-border) !important;
    background-color: transparent !important;
}

[data-theme-mode="dark"] .mud-button-filled-dark {
    background-color: #223654 !important;
    border-color: #223654 !important;
}

[data-theme-mode="dark"] .bg-white,
[data-theme-mode="dark"] .bg-light,
[data-theme-mode="dark"] .card,
[data-theme-mode="dark"] .card.custom-card,
[data-theme-mode="dark"] .mud-paper,
[data-theme-mode="dark"] .mud-card {
    background-color: var(--st-dark-surface) !important;
    color: var(--st-dark-text) !important;
    border-color: var(--st-dark-border) !important;
}

[data-theme-mode="dark"] .form-control,
[data-theme-mode="dark"] .re-input-field,
[data-theme-mode="dark"] .mud-input > input,
[data-theme-mode="dark"] .mud-input-slot {
    background: var(--st-dark-surface-2) !important;
    color: var(--st-dark-text) !important;
    border-color: var(--st-dark-border) !important;
}

[data-theme-mode="dark"] .re-input-label,
[data-theme-mode="dark"] .form-label,
[data-theme-mode="dark"] .mud-input-label-inputcontrol {
    color: var(--st-dark-muted) !important;
}

[data-theme-mode="dark"] .public-layout-shell,
[data-theme-mode="dark"] .landing-page,
[data-theme-mode="dark"] .about-page,
[data-theme-mode="dark"] .contact-page-re,
[data-theme-mode="dark"] .policies-page {
    background: linear-gradient(180deg, #0b1525 0%, #101b2e 45%, #132038 100%) !important;
    color: var(--st-dark-text) !important;
}

[data-theme-mode="dark"] .landing-nav,
[data-theme-mode="dark"] .landing-footer,
[data-theme-mode="dark"] .about-point-card,
[data-theme-mode="dark"] .contact-cards a,
[data-theme-mode="dark"] .contact-address-re,
[data-theme-mode="dark"] .policy-summary-card,
[data-theme-mode="dark"] .policy-section-card,
[data-theme-mode="dark"] .feature-card,
[data-theme-mode="dark"] .policy-card,
[data-theme-mode="dark"] .tender-live-card,
[data-theme-mode="dark"] .tender-live-section,
[data-theme-mode="dark"] .hero-metrics div,
[data-theme-mode="dark"] .process-copy li,
[data-theme-mode="dark"] .contact-chip {
    background: var(--st-dark-surface) !important;
    color: var(--st-dark-text) !important;
    border-color: var(--st-dark-border) !important;
    box-shadow: none !important;
}

[data-theme-mode="dark"] .landing-brand,
[data-theme-mode="dark"] .landing-menu a,
[data-theme-mode="dark"] .section-heading h2,
[data-theme-mode="dark"] .feature-card h3,
[data-theme-mode="dark"] .policy-card h3,
[data-theme-mode="dark"] .tender-live-card h3,
[data-theme-mode="dark"] .profile-headline h3,
[data-theme-mode="dark"] .card-title {
    color: #f1f6ff !important;
}

[data-theme-mode="dark"] .landing-brand span,
[data-theme-mode="dark"] .section-heading p,
[data-theme-mode="dark"] .feature-card p,
[data-theme-mode="dark"] .policy-card p,
[data-theme-mode="dark"] .tender-live-card p,
[data-theme-mode="dark"] .tender-live-business,
[data-theme-mode="dark"] .tender-live-meta span,
[data-theme-mode="dark"] .profile-headline p {
    color: var(--st-dark-muted) !important;
}

[data-theme-mode="dark"] .auth-outline,
[data-theme-mode="dark"] .cta-link,
[data-theme-mode="dark"] .auth-method-btn-neutral,
[data-theme-mode="dark"] .email-auth-tab,
[data-theme-mode="dark"] .auth-methods-box,
[data-theme-mode="dark"] .auth-support-panel {
    background: var(--st-dark-surface) !important;
    color: var(--st-dark-text) !important;
    border-color: var(--st-dark-border) !important;
}

[data-theme-mode="dark"] .auth-support-title-inner {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.18) 0%, rgba(30, 64, 175, 0.12) 100%) !important;
    border-color: rgba(59, 130, 246, 0.35) !important;
    box-shadow: none !important;
}

[data-theme-mode="dark"] .auth-support-hint {
    color: var(--st-dark-muted) !important;
}

[data-theme-mode="dark"] .auth-support-title-text {
    color: var(--st-dark-text) !important;
}

[data-theme-mode="dark"] .auth-support-icon,
[data-theme-mode="dark"] .auth-support-title-inner .mud-icon-root {
    color: #8ab4e8 !important;
}

[data-theme-mode="dark"] .auth-support-icon-btn.mud-link {
    background: var(--st-dark-surface-2, #152234) !important;
    color: var(--st-dark-text) !important;
    border-color: var(--st-dark-border) !important;
}

[data-theme-mode="dark"] .auth-support-icon-only .mud-icon-root {
    color: #8ab4e8 !important;
}

[data-theme-mode="dark"] .auth-support-icon-btn:hover {
    border-color: rgba(59, 130, 246, 0.45) !important;
    background: rgba(37, 99, 235, 0.12) !important;
}

[data-theme-mode="dark"] .auth-method-subtitle,
[data-theme-mode="dark"] .auth-method-arrow {
    color: var(--st-dark-muted) !important;
}

[data-theme-mode="dark"] .profile-cover-card,
[data-theme-mode="dark"] .profile-card-content,
[data-theme-mode="dark"] .profile-card-header,
[data-theme-mode="dark"] .avatar-shell,
[data-theme-mode="dark"] .profile-input,
[data-theme-mode="dark"] .profile-action-btn,
[data-theme-mode="dark"] .profile-btn {
    background: var(--st-dark-surface) !important;
    color: var(--st-dark-text) !important;
    border-color: var(--st-dark-border) !important;
}

[data-theme-mode="dark"] .profile-action-btn .mud-button-start-icon .mud-icon-root {
    background: #1e304b !important;
    border-color: var(--st-dark-border) !important;
}

[data-theme-mode="dark"] .re-tag.mud-chip,
[data-theme-mode="dark"] .mud-chip.mud-chip-color-dark {
    color: var(--st-dark-text) !important;
    border-color: var(--st-dark-border) !important;
}

[data-theme-mode="dark"] .mud-chip,
[data-theme-mode="dark"] .mud-chip .mud-chip-content,
[data-theme-mode="dark"] .mud-chip .mud-icon-root {
    color: var(--st-dark-text) !important;
}

[data-theme-mode="dark"] .mud-chip.mud-chip-outlined,
[data-theme-mode="dark"] .mud-chip.mud-chip-outlined .mud-chip-content {
    color: var(--st-dark-text) !important;
}

[data-theme-mode="dark"] .re-tag.mud-chip.mud-chip-outlined {
    background: #1a2a42 !important;
}

[data-theme-mode="dark"] .re-tag .mud-chip-content,
[data-theme-mode="dark"] .re-tag .mud-icon-root {
    color: var(--st-dark-text) !important;
}

[data-theme-mode="dark"] .mud-chip.mud-chip-color-dark {
    background: #274060 !important;
}

[data-theme-mode="dark"] .about-point-card h3,
[data-theme-mode="dark"] .contact-cards strong,
[data-theme-mode="dark"] .contact-address-re strong,
[data-theme-mode="dark"] .policy-summary-card h3,
[data-theme-mode="dark"] .policy-section-card .card-title {
    color: #f3f7ff !important;
}

[data-theme-mode="dark"] .contact-cards span,
[data-theme-mode="dark"] .contact-address-re span,
[data-theme-mode="dark"] .policy-summary-card p,
[data-theme-mode="dark"] .policy-section-card .mud-typography {
    color: var(--st-dark-muted) !important;
}

[data-theme-mode="dark"] #components-reconnect-modal .reconnect-card {
    background: var(--st-dark-surface);
    border-color: var(--st-dark-border);
}

[data-theme-mode="dark"] #components-reconnect-modal h3,
[data-theme-mode="dark"] #components-reconnect-modal .reconnect-state {
    color: var(--st-dark-text);
}

[data-theme-mode="dark"] #components-reconnect-dismiss-button {
    background: #263a58;
    color: var(--st-dark-text);
}

[data-theme-mode="dark"] .re-tender-create-page .re-tender-create-surface,
[data-theme-mode="dark"] .re-tender-create-page .mud-stepper {
    background: var(--st-dark-surface) !important;
    border-color: var(--st-dark-border) !important;
    color: var(--st-dark-text) !important;
}

[data-theme-mode="dark"] .re-tender-create-page .mud-step-label,
[data-theme-mode="dark"] .re-tender-create-page .mud-step-label-content,
[data-theme-mode="dark"] .re-tender-create-page .mud-step-label-content-title,
[data-theme-mode="dark"] .re-tender-create-page .mud-stepper-content,
[data-theme-mode="dark"] .re-tender-create-page .mud-stepper-actions,
[data-theme-mode="dark"] .re-tender-create-page .mud-stepper .mud-typography {
    color: var(--st-dark-text) !important;
}

[data-theme-mode="dark"] .re-tender-create-page .mud-alert,
[data-theme-mode="dark"] .re-tender-create-page .mud-alert-message {
    color: var(--st-dark-text) !important;
}

[data-theme-mode="dark"] .re-tender-create-page .input-group-text {
    background: #1c2e49 !important;
    color: var(--st-dark-text) !important;
    border-color: var(--st-dark-border) !important;
}

[data-theme-mode="dark"] .re-tender-create-page .mud-table-root,
[data-theme-mode="dark"] .re-tender-create-page .mud-table-container,
[data-theme-mode="dark"] .re-tender-create-page .mud-table-head .mud-table-cell,
[data-theme-mode="dark"] .re-tender-create-page .mud-table-body .mud-table-cell,
[data-theme-mode="dark"] .re-tender-create-page .mud-table-footer .mud-table-cell {
    background: var(--st-dark-surface) !important;
    color: var(--st-dark-text) !important;
    border-color: var(--st-dark-border) !important;
}

[data-theme-mode="dark"] .re-tender-create-page .mud-table-row:hover .mud-table-cell {
    background: #1a2b45 !important;
}

[data-theme-mode="dark"] .re-tender-create-page .mud-divider {
    border-color: var(--st-dark-border) !important;
}

/* Persian datepicker dark-mode overrides */
[data-theme-mode="dark"] .datepicker-plot-area {
    background-color: #0b0f14 !important;
    border-color: #1c2430 !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6) !important;
}

[data-theme-mode="dark"] .datepicker-plot-area * {
    color: #d7dde6 !important;
}

[data-theme-mode="dark"] .datepicker-plot-area .datepicker-time-view {
    background: #111821 !important;
    border-top-color: #1c2430 !important;
}

[data-theme-mode="dark"] .datepicker-plot-area .datepicker-day-view .month-grid-box .header .header-row-cell {
    color: #c8d0dc !important;
}

[data-theme-mode="dark"] .datepicker-plot-area .datepicker-day-view .table-days td span,
[data-theme-mode="dark"] .datepicker-plot-area .datepicker-year-view .year-item,
[data-theme-mode="dark"] .datepicker-plot-area .datepicker-month-view .month-item {
    background-color: #0f141a !important;
    color: #d7dde6 !important;
}

[data-theme-mode="dark"] .datepicker-plot-area .datepicker-day-view .table-days td.disabled span,
[data-theme-mode="dark"] .datepicker-plot-area .datepicker-year-view .year-item-disable,
[data-theme-mode="dark"] .datepicker-plot-area .datepicker-month-view .month-item-disable {
    background-color: #0c1016 !important;
    color: #596477 !important;
}

[data-theme-mode="dark"] .datepicker-plot-area .datepicker-day-view .table-days td.today span {
    background-color: #223046 !important;
    color: #f1f5f9 !important;
}

[data-theme-mode="dark"] .datepicker-plot-area .datepicker-day-view .table-days td.selected span,
[data-theme-mode="dark"] .datepicker-plot-area .datepicker-year-view .year-item.selected,
[data-theme-mode="dark"] .datepicker-plot-area .datepicker-month-view .month-item.selected {
    background-color: #2a3a53 !important;
    color: #f8fafc !important;
    text-shadow: none !important;
}

[data-theme-mode="dark"] .datepicker-plot-area .datepicker-day-view .table-days td:hover,
[data-theme-mode="dark"] .datepicker-plot-area .datepicker-day-view .table-days td span:hover,
[data-theme-mode="dark"] .datepicker-plot-area .datepicker-year-view .year-item:hover,
[data-theme-mode="dark"] .datepicker-plot-area .datepicker-month-view .month-item:hover {
    background-color: #1f2936 !important;
    color: #f1f5f9 !important;
}

[data-theme-mode="dark"] .datepicker-plot-area .datepicker-navigator .pwt-btn-next,
[data-theme-mode="dark"] .datepicker-plot-area .datepicker-navigator .pwt-btn-switch,
[data-theme-mode="dark"] .datepicker-plot-area .datepicker-navigator .pwt-btn-prev,
[data-theme-mode="dark"] .datepicker-plot-area .toolbox .pwt-btn-submit,
[data-theme-mode="dark"] .datepicker-plot-area .toolbox .pwt-btn-calendar,
[data-theme-mode="dark"] .datepicker-plot-area .toolbox .pwt-btn-today {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #d7dde6 !important;
    border: 1px solid #2a3544 !important;
}

[data-theme-mode="dark"] .datepicker-plot-area .datepicker-navigator .pwt-btn-next:hover,
[data-theme-mode="dark"] .datepicker-plot-area .datepicker-navigator .pwt-btn-switch:hover,
[data-theme-mode="dark"] .datepicker-plot-area .datepicker-navigator .pwt-btn-prev:hover,
[data-theme-mode="dark"] .datepicker-plot-area .toolbox .pwt-btn-submit:hover,
[data-theme-mode="dark"] .datepicker-plot-area .toolbox .pwt-btn-calendar:hover,
[data-theme-mode="dark"] .datepicker-plot-area .toolbox .pwt-btn-today:hover {
    background-color: rgba(255, 255, 255, 0.12) !important;
    border-color: #3a4a60 !important;
}

[data-theme-mode="dark"] .datepicker-plot-area .toolbox .pwt-btn-calendar {
    background-color: #1a2230 !important;
    color: #eef2f7 !important;
    border-color: #3a4a60 !important;
}

[data-theme-mode="dark"] .datepicker-plot-area .datepicker-time-view .down-btn,
[data-theme-mode="dark"] .datepicker-plot-area .datepicker-time-view .up-btn {
    color: #7a879a !important;
}

[data-theme-mode="dark"] .datepicker-plot-area .datepicker-day-view .table-days td .alter-calendar-day {
    color: #2a3442 !important;
}

/* Tender bid page dark-mode hardening */
[data-theme-mode="dark"] .bid-page {
    color: var(--st-dark-text) !important;
}

[data-theme-mode="dark"] .bid-shell {
    background: linear-gradient(135deg, #111c2d 0%, #15243a 100%) !important;
    border-color: var(--st-dark-border) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28) !important;
}

[data-theme-mode="dark"] .bid-shell-bg {
    background: radial-gradient(520px 200px at 0% 0%, rgba(59, 130, 246, 0.22), transparent 55%),
    radial-gradient(420px 180px at 100% 20%, rgba(99, 102, 241, 0.16), transparent 50%) !important;
}

[data-theme-mode="dark"] .bid-shell-title,
[data-theme-mode="dark"] .bid-panel-head,
[data-theme-mode="dark"] .bid-summary-value,
[data-theme-mode="dark"] .bid-contact-desc-text,
[data-theme-mode="dark"] .bid-term-card-text,
[data-theme-mode="dark"] .bid-terms-note-text,
[data-theme-mode="dark"] .bid-item-acc-name,
[data-theme-mode="dark"] .bid-file-chip-name {
    color: var(--st-dark-text) !important;
}

[data-theme-mode="dark"] .bid-panel,
[data-theme-mode="dark"] .bid-terms-note-block,
[data-theme-mode="dark"] .bid-file-chip-row,
[data-theme-mode="dark"] .bid-item-card {
    background: var(--st-dark-surface) !important;
    border-color: var(--st-dark-border) !important;
    color: var(--st-dark-text) !important;
}

[data-theme-mode="dark"] .bid-panel-terms-notes,
[data-theme-mode="dark"] .bid-form-footer,
[data-theme-mode="dark"] .bid-main--submitted {
    background: var(--st-dark-surface) !important;
    color: var(--st-dark-text) !important;
}

[data-theme-mode="dark"] .bid-panel-summary .bid-summary-row,
[data-theme-mode="dark"] .bid-panel-contacts .bid-contact-row,
[data-theme-mode="dark"] .bid-item-card .bid-item-acc-body,
[data-theme-mode="dark"] .bid-terms-section--rules {
    border-color: var(--st-dark-border) !important;
}

[data-theme-mode="dark"] .bid-desc-body,
[data-theme-mode="dark"] .bid-contact-desc-title,
[data-theme-mode="dark"] .bid-contact-no-phone,
[data-theme-mode="dark"] .bid-file-chip-label {
    color: var(--st-dark-muted) !important;
}

[data-theme-mode="dark"] .bid-panel-contacts .bid-contact-phone,
[data-theme-mode="dark"] .bid-input .mud-input-slot,
[data-theme-mode="dark"] .bid-file-chip-icon,
[data-theme-mode="dark"] .bid-total-summary,
[data-theme-mode="dark"] .bid-item-head-price,
[data-theme-mode="dark"] .re-upload .mud-paper {
    background: var(--st-dark-surface-2) !important;
    border-color: var(--st-dark-border) !important;
    color: var(--st-dark-text) !important;
}

[data-theme-mode="dark"] .bid-panel-contacts .bid-contact-phone:hover,
[data-theme-mode="dark"] .bid-input .mud-input-slot:focus-within {
    background: #1a2b45 !important;
    border-color: rgba(59, 130, 246, 0.55) !important;
}

[data-theme-mode="dark"] .bid-panel-terms .bid-term-card,
[data-theme-mode="dark"] .bid-panel-terms .bid-term-card--rule,
[data-theme-mode="dark"] .bid-item-head-price--total,
[data-theme-mode="dark"] .bid-item-acc-total-box {
    background: var(--st-dark-surface-2) !important;
    border-color: var(--st-dark-border) !important;
    color: var(--st-dark-text) !important;
    box-shadow: none !important;
}

[data-theme-mode="dark"] .bid-panel-summary .bid-summary-label,
[data-theme-mode="dark"] .bid-panel-contacts .bid-contact-name,
[data-theme-mode="dark"] .bid-total-summary__label,
[data-theme-mode="dark"] .bid-item-head-price > span,
[data-theme-mode="dark"] .bid-item-acc-num {
    box-shadow: none !important;
}

[data-theme-mode="dark"] .bid-panel-summary .bid-summary-value--accent {
    color: #fca5a5 !important;
}

[data-theme-mode="dark"] .bid-file-chip-dl {
    box-shadow: none !important;
}

[data-theme-mode="dark"] .bid-ended-banner,
[data-theme-mode="dark"] .bid-alert,
[data-theme-mode="dark"] .bid-panel-error {
    border-color: var(--st-dark-border) !important;
    color: var(--st-dark-text) !important;
}

[data-theme-mode="dark"] .mud-table-root,
[data-theme-mode="dark"] .mud-table-container,
[data-theme-mode="dark"] .mud-table,
[data-theme-mode="dark"] .mud-table-root table,
[data-theme-mode="dark"] .mud-table-head,
[data-theme-mode="dark"] .mud-table-body,
[data-theme-mode="dark"] .mud-table-foot,
[data-theme-mode="dark"] .mud-table-row,
[data-theme-mode="dark"] .mud-table-head .mud-table-cell,
[data-theme-mode="dark"] .mud-table-body .mud-table-cell,
[data-theme-mode="dark"] .mud-table-footer .mud-table-cell,
[data-theme-mode="dark"] .mud-table-pagination-toolbar,
[data-theme-mode="dark"] .mud-table-pagination,
[data-theme-mode="dark"] .mud-simple-table table,
[data-theme-mode="dark"] .mud-simple-table th,
[data-theme-mode="dark"] .mud-simple-table td {
    background-color: var(--st-dark-surface) !important;
    color: var(--st-dark-text) !important;
    border-color: var(--st-dark-border) !important;
}

[data-theme-mode="dark"] .invitations-table,
[data-theme-mode="dark"] .invitations-table .mud-table-root,
[data-theme-mode="dark"] .invitations-table .mud-table-container,
[data-theme-mode="dark"] .invitations-table .mud-table-root table,
[data-theme-mode="dark"] .invitations-table .mud-table-head,
[data-theme-mode="dark"] .invitations-table .mud-table-body,
[data-theme-mode="dark"] .invitations-table .mud-table-row,
[data-theme-mode="dark"] .invitations-table .mud-table-cell,
[data-theme-mode="dark"] .invitations-table .mud-table-empty-row,
[data-theme-mode="dark"] .invitations-table .mud-table-empty-row td,
[data-theme-mode="dark"] .custom-card .mud-table-root,
[data-theme-mode="dark"] .custom-card .mud-table-container,
[data-theme-mode="dark"] .custom-card .mud-table-root table {
    background-color: var(--st-dark-surface) !important;
    color: var(--st-dark-text) !important;
    border-color: var(--st-dark-border) !important;
}

[data-theme-mode="dark"] .mud-table-row:hover .mud-table-cell,
[data-theme-mode="dark"] .mud-simple-table tr:hover td {
    background-color: #1a2b45 !important;
}

[data-theme-mode="dark"] .invitations-card,
[data-theme-mode="dark"] .invitations-page,
[data-theme-mode="dark"] .system-notifications-toolbar,
[data-theme-mode="dark"] .system-notification-card {
    background: var(--st-dark-surface) !important;
    border-color: var(--st-dark-border) !important;
    color: var(--st-dark-text) !important;
    box-shadow: none !important;
}

[data-theme-mode="dark"] .system-notification-card--unread {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), var(--st-dark-surface)) !important;
    border-color: rgba(59, 130, 246, 0.45) !important;
}

[data-theme-mode="dark"] .system-notification-icon {
    background: rgba(59, 130, 246, 0.18) !important;
    color: #93c5fd !important;
}

[data-theme-mode="dark"] .system-notification-meta,
[data-theme-mode="dark"] .mud-table-pagination-caption,
[data-theme-mode="dark"] .mud-table-pagination-display,
[data-theme-mode="dark"] .mud-table-pagination-information,
[data-theme-mode="dark"] .mud-table-page-number-information {
    color: var(--st-dark-muted) !important;
}

[data-theme-mode="dark"] .mud-dialog,
[data-theme-mode="dark"] .mud-dialog .mud-dialog-title,
[data-theme-mode="dark"] .mud-dialog .mud-dialog-content,
[data-theme-mode="dark"] .mud-dialog .mud-dialog-actions,
[data-theme-mode="dark"] .mud-popover,
[data-theme-mode="dark"] .mud-popover .mud-list,
[data-theme-mode="dark"] .mud-popover .mud-list-item {
    background-color: var(--st-dark-surface) !important;
    color: var(--st-dark-text) !important;
    border-color: var(--st-dark-border) !important;
}

[data-theme-mode="dark"] .mud-dialog .mud-dialog-close-button,
[data-theme-mode="dark"] .mud-dialog .mud-icon-button,
[data-theme-mode="dark"] .mud-popover .mud-icon-button,
[data-theme-mode="dark"] button[aria-label="Close"],
[data-theme-mode="dark"] button[aria-label="close"],
[data-theme-mode="dark"] button[aria-label="بستن"] {
    background-color: transparent !important;
    border-color: var(--st-dark-border) !important;
    color: var(--st-dark-text) !important;
}

[data-theme-mode="dark"] .mud-dialog .mud-dialog-close-button:hover,
[data-theme-mode="dark"] .mud-dialog .mud-icon-button:hover,
[data-theme-mode="dark"] .mud-popover .mud-icon-button:hover,
[data-theme-mode="dark"] button[aria-label="Close"]:hover,
[data-theme-mode="dark"] button[aria-label="close"]:hover,
[data-theme-mode="dark"] button[aria-label="بستن"]:hover {
    background-color: var(--st-dark-surface-2) !important;
    color: #ffffff !important;
}

[data-theme-mode="dark"] .mud-dialog .mud-dialog-close-button .mud-icon-root,
[data-theme-mode="dark"] .mud-dialog .mud-icon-button .mud-icon-root,
[data-theme-mode="dark"] .mud-popover .mud-icon-button .mud-icon-root,
[data-theme-mode="dark"] button[aria-label="Close"] .mud-icon-root,
[data-theme-mode="dark"] button[aria-label="close"] .mud-icon-root,
[data-theme-mode="dark"] button[aria-label="بستن"] .mud-icon-root {
    color: currentColor !important;
}
