* {
    border: 0;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: rgba(236, 240, 241, 0.7);
    overflow: hidden;
}

.login-form {
    display: flex;
    background: #fff;
    justify-content: space-between;
    width: 70%;
    border-radius: 15px;
    overflow: hidden;
}

.login-form .login-right {
    width: 45%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
}

.login-tabs {
    display: flex;
    justify-content: space-around;
    width: 100%;
}

.login-tabs a.active-ltab {
    background: linear-gradient(45deg, #ff9900, #ff810082);
    color: #fff;
}

.login-tabs a {
    background: #ebebeb66;
    color: #303030;
    width: 48%;
    border-radius: 10px;
    padding: 10px;
}

.login-form .login-right form {
    margin-top: 30px;
    width: 100%;
}

.login-form .login-right form .only-admin {
    color: #f00;
    font-family: AnjomanBold, sans-serif;
    text-align: center;
    width: 100%;
    display: block;
    margin-top: 20px;
    font-size: 18px;
}

.login-form .login-left {
    width: 54%;
}

@font-face {
    font-family: "yekanregular";
    src: url("fonts/iranyekanwebregularfanum.woff");
}

@font-face {
    font-family: "yekanbold";
    src: url("fonts/iranyekanwebboldfanum.woff");
}

@font-face {
    font-family: "yekanblack";
    src: url("fonts/iranyekanwebblackfanum.woff");
}

html {
    scroll-behavior: smooth;
}

a, button {
    text-decoration: none;
    transition: .2s all ease-in-out;
}

.disabled-only {
    cursor: default;
    user-select: none;
    color: #ddd !important;
}

.disabled-only svg {
    fill: #b1b1b1 !important;
}

img {
    max-width: 100%;
}

li {
    list-style: none;
}

.field-half {
    width: 49% !important;
}

input[type=number] {
    -moz-appearance: textfield !important;
    appearance: none;
}

input, button, select, option, textarea {
    font-family: yekanregular, sans-serif;
}

.required {
    font-family: yekanBlack, sans-serif;
    color: #f00;
    margin-top: -3px;
}

.disabled {
    background: #ecf0f1 !important;
    color: #9e9e9e !important;
    border: 2px solid #d7d7d7 !important;
    pointer-events: none;
    user-select: none;
    padding: 7px 7px !important;
    font-size: 13px;
}

.info-msg {
    padding: 10px;
    width: 100%;
    background: #00a8ff;
    color: #fff;
    font-weight: bold;
    border-radius: 5px;
    margin-bottom: 15px;
    text-align: center;
}

.success-msg {
    padding: 10px;
    width: 100%;
    background: #5caf21;
    color: #fff;
    font-weight: bold;
    border-radius: 5px;
    margin-bottom: 15px;
    text-align: center;
}

.error-msg {
    padding: 10px;
    width: 100%;
    background: #f00000;
    color: #fff;
    font-weight: bold;
    border-radius: 5px;
    margin-bottom: 15px;
    text-align: center;
}

.button-info {
    background: #00a6ff !important;
}

.button-danger {
    background: #f00000 !important;
}

.button-success {
    background: #5caf21 !important;
}

.button-danger-panel {
    color: #f00;
    border: 1px solid #f00;
    padding: 7px 15px;
    border-radius: 5px;
}

.button-danger-panel:hover {
    background: #f00;
    color: #fff;
}

.button-success-panel {
    color: #5caf21;
    border: 1px solid #5caf21;
    padding: 7px 15px;
    border-radius: 5px;
}

.button-success-panel:hover {
    background: #5caf21;
    color: #fff;
}

.button-info-panel {
    color: #00a6ff;
    border: 1px solid #00a6ff;
    padding: 7px 15px;
    border-radius: 5px;
}

.button-info-panel:hover {
    background: #00a6ff;
    color: #fff;
}

.container {
    max-width: 1280px;
    margin: auto;
}

body {
    font-family: yekanregular, sans-serif;
    font-size: 16px;
    color: #303030;
    background: #f5f5f5;
}


body.index-page {
    background: #000;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    height: 100vh;
}

input, select, textarea {
    width: 100%;
    text-align: right;
    padding: 10px;
    border: 1px solid #ddd;
    box-shadow: 0 0 12px #ddd inset;
    border-radius: 5px;
    margin: 15px 0;
    outline: none;
}

input[type=checkbox] {
    width: auto;
    border: none;
    box-shadow: none;
}

.login-form input:focus {
    box-shadow: 0 0 15px #ddd;
}

.login-form button, .button {
    width: 100%;
    padding: 10px 0;
    border-radius: 5px;
    background: #000;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
    display: block;
    margin-top: 6px;
}

.top-toolbar {
    background: #3600a9;
    color: #fff;
    padding: 15px 20% 15px 15px;
    position: fixed;
    width: 100%;
    z-index: 4;
}

.top-toolbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 20px;
}

.top-toolbar h2 {
    font-size: 2em;
}

/* Admin Panel */
.admin-panel {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.panel-content {
    width: 78%;
    margin: 6% 0 0 20px;
}

.panel-table {
    width: 100%;
    border: 1px solid #ddd;
    margin-top: 20px;
    border-radius: 20px;
}

.panel-table thead {
    background: #1b1447;
    color: #fff;
    border-radius: 20px 20px 0 0;
    display: block;
}

.panel-table tr th {
    width: 100%;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
}

.panel-table tr th a {
    position: relative;
}

.panel-table tr th a span {
    background: #303030;
    color: #fff;
    pointer-events: none;
    display: inline-block;
    position: absolute;
    border-radius: 5px;
    padding: 9px 0;
    width: 120px;
    left: -50px;
    top: -20px;
    transition: all 0.3s ease-in-out;
    opacity: 0;
    visibility: hidden;
    font-size: 14px;
    text-align: center;
}

.panel-table tr th a:hover span {
    visibility: visible;
    opacity: 1;
    top: -45px;
}


.panel-table tr {
    display: flex;
    justify-content: space-between;
}

.panel-content .heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pishnahad-page {
    background: #f4f4f4;
    padding: 20px;
    position: relative;
}

.pishnahad-page h2 {
    font-size: 30px;
    font-family: yekanbold, sans-serif;
    color: #000000;
    margin-bottom: 20px;
}

.pishnahad-page .pish-heading {
    font-family: yekanbold, sans-serif;
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    font-size: 18px;
}

.pishnahad-page::after {
    content: "";
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: #e5e5e5;
    clip-path: polygon(
            0% 0%,
            2% 100%,
            4% 0%,
            6% 100%,
            8% 0%,
            10% 100%,
            12% 0%,
            14% 100%,
            16% 0%,
            18% 100%,
            20% 0%,
            22% 100%,
            24% 0%,
            26% 100%,
            28% 0%,
            30% 100%,
            32% 0%,
            34% 100%,
            36% 0%,
            38% 100%,
            40% 0%,
            42% 100%,
            44% 0%,
            46% 100%,
            48% 0%,
            50% 100%,
            52% 0%,
            54% 100%,
            56% 0%,
            58% 100%,
            60% 0%,
            62% 100%,
            64% 0%,
            66% 100%,
            68% 0%,
            70% 100%,
            72% 0%,
            74% 100%,
            76% 0%,
            78% 100%,
            80% 0%,
            82% 100%,
            84% 0%,
            86% 100%,
            88% 0%,
            90% 100%,
            92% 0%,
            94% 100%,
            96% 0%,
            98% 100%,
            100% 0%
    );
}

.pishnahad-page::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: #e5e5e5;
    clip-path: polygon(
            0% 100%,
            2% 0%,
            4% 100%,
            6% 0%,
            8% 100%,
            10% 0%,
            12% 100%,
            14% 0%,
            16% 100%,
            18% 0%,
            20% 100%,
            22% 0%,
            24% 100%,
            26% 0%,
            28% 100%,
            30% 0%,
            32% 100%,
            34% 0%,
            36% 100%,
            38% 0%,
            40% 100%,
            42% 0%,
            44% 100%,
            46% 0%,
            48% 100%,
            50% 0%,
            52% 100%,
            54% 0%,
            56% 100%,
            58% 0%,
            60% 100%,
            62% 0%,
            64% 100%,
            66% 0%,
            68% 100%,
            70% 0%,
            72% 100%,
            74% 0%,
            76% 100%,
            78% 0%,
            80% 100%,
            82% 0%,
            84% 100%,
            86% 0%,
            88% 100%,
            90% 0%,
            92% 100%,
            94% 0%,
            96% 100%,
            98% 0%,
            100% 100%
    );
}

.menu-panel-new {
    background: #fff;
    width: 300px;
    padding: 15px;
    border-left: 2px dashed #ddd;
    overflow: auto;
    z-index: 9;
}

.menu-panel-new .panel-menu-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.menu-panel-new .panel-menu-heading span {
    margin-top: 20px;
    display: inline-block;
    color: #445a74;
    background: #e9edf5c2;
    border-radius: 50px;
    padding: 8px 17px;
    font-weight: bold;
    font-size: 21px;
}

.menu-panel-new .panel-menu-content {
    display: flex;
    flex-direction: column;
    margin-top: 35px;
}

.menu-panel-new .panel-menu-content li a {
    color: #283849;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-radius: 10px;
    font-size: 17px;
}

.menu-panel-new .panel-menu-content li a.activate svg {
    transform: rotate(180deg);
}

.menu-panel-new .panel-menu-content li ul {
    background: #ebebeb;
    font-weight: 600;
    border-radius: 10px;
    display: none;
}


.menu-panel-new .panel-menu-content li ul a {
    font-size: 14px;
}

.menu-panel-new .panel-menu-content > li > a:hover {
    background: #ff9505;
    color: #fff;
}

.login-form .form-login {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.login-form .form-login div {
    width: 32%;
}

.login-form form div.captcha-main {
    width: 100%;
}

.show-form {
    width: 100% !important;
    display: block;
}

.show-info {
    border: 1px solid #bcdffb;
    background: #fbfcff;
    padding: 10px 15px;
    border-radius: 10px;
}

.show-info .tabs {
    display: flex;
    justify-content: space-evenly;
}

.show-info .tabs a {
    color: #1a03ab;
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 16px;
}

.show-info .tabs a span {
    background: #1b1447;
    color: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: bold;
}

.show-info .info {
    margin-top: 50px;
}

.show-info .info .user-info h4 {
    font-size: 18px;
    margin-bottom: 20px;
}

.overlay {
    position: relative;
}

.overlay:hover::before {
    visibility: visible;
    opacity: 1;
}

.overlay::before {
    content: '';
    z-index: 9;
    width: 100%;
    height: auto;
    background: rgba(0, 0, 0, 0.35);
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 20px;
    visibility: hidden;
    opacity: 0;
    transition: .3s all ease-in-out;
}

.hidden {
    display: none !important;
}

.page-sim {
    background: #ececec;
    padding: 20px 30px;
    user-select: none;
}

.page-sim .page-head {
    display: flex;
    align-items: center;
    gap: 20px;
}

.page-sim .head-right {
    width: 32%;
    display: flex;
    align-items: center;
    gap: 15px;
}

.page-sim .head-right img {
    width: 30%;
}

.page-sim .head-center {
    width: 45%;
}

.page-sim .head-center svg {
    max-width: 100%;
}

.page-sim .head-left span {
    display: block;
    width: 100%;
    margin: 10px 0;
    font-weight: bold;
    font-size: 18px;
}

.page-body {
    margin-top: 50px;
}

.contract-table {
    background: #fff;
    width: 100%;
    border: 1px solid #ddd;
    padding: 10px;
    margin-top: 10px;
}

.contract-table tr {
    display: flex;
    gap: 5px;
    margin-bottom: 5px;
}

.contract-table tr th {
    border: 1px solid #ddd;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contract-table tbody tr th {
    font-weight: normal !important;
}

.heading.heading-nerkh {
    justify-content: normal;
    gap: 20px;
}

.s-ajax-box, .search-results-container {
    position: absolute;
    background: #fff;
    max-height: 140px;
    overflow: auto;
    z-index: 1;
    width: 100% !important;
    top: 80px;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 10px;
    display: none;
}

.s-ajax-box .r-ajax-search, .search-result-item {
    display: flex;
    gap: 10px;
    width: 100% !important;
    border-bottom: 1px solid #ddd;
    margin-bottom: 10px;
    padding-bottom: 10px;
    align-items: center;
}

.s-ajax-box .r-ajax-search:last-child, .search-result-item:last-child {
    border: 0 !important;
}

button[disabled] {
    opacity: .5;
    cursor: not-allowed;
}

/* در فایل CSS */
@media print {
    .top-toolbar,
    .menu-panel-new, button,
    .no-print {
        display: none !important;
    }

    .panel-content {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* صفحه‌بندی */
    .page-break {
        page-break-before: always;
        margin-top: 20px;
    }

    /* استایل‌های جدول برای چاپ */
    .contract-table {
        width: 100% !important;
        border-collapse: collapse !important;
        margin: 8px 0 !important;
        font-size: 9pt !important;
    }

    .contract-table th,
    .contract-table td {
        border: 1px solid #000 !important;
        padding: 4px !important;
        text-align: center !important;
    }

    /* استایل‌های هدر */
    .page-head {
        margin-bottom: 10px !important;
        padding: 8px !important;
        border-bottom: 1px solid #000 !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .head-right {
        width: 20%;
    }

    .head-right img {
        max-width: 60px !important;
        height: auto !important;
    }

    .head-center {
        text-align: center !important;
        flex-grow: 1 !important;

        display: flex;
        justify-content: center;
    }

    .head-left span {
        font-size: 9pt !important;
    }

    .contract-table tfoot tr th {
        font-size: 12px !important;
    }

    /* استایل‌های متن */
    h3 {
        font-size: 11pt !important;
        margin: 8px 0 !important;
        color: #000 !important;
        border-bottom: 1px solid #ccc !important;
        padding-bottom: 4px !important;
    }

    p {
        font-size: 9pt !important;
        line-height: 1.4 !important;
        margin: 6px 0 !important;
        text-align: justify !important;
    }

    b {
        font-weight: bold !important;
    }

    /* کاهش فاصله‌ها */
    .page-body {
        padding: 0 !important;
        margin: 0 !important;
    }

    /* تنظیم حاشیه صفحات */
    @page {
        margin: 0;
    }

    /* کاهش سایز فونت برای مفاد قرارداد */
    .contract-terms {
        font-size: 8pt !important;
        line-height: 1.3 !important;
    }

    .contract-terms p {
        font-size: 8pt !important;
        margin: 4px 0 !important;
    }

    .page-sim .head-right {
        width: 20%;
    }

    .page-sim .head-right img {
        width: 40%;
    }

    .page-sim .head-center {
        display: none !important;
    }

    .page-sim .head-center2 {
        display: inline-block !important;
    }

    .page-sim .signature {
        display: flex !important;
        font-size: 11pt !important;
    }
}

.page-sim-license {
    background: #5caf211c;
}

.personnel-boxes {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-between;
    row-gap: 30px;
    margin-top: 25px;
}

.personnel-boxes .box {
    display: flex;
    width: 32%;
    background: #ddd;
    padding: 10px;
    align-items: center;
    gap: 15px;
    border-radius: 15px;
    justify-content: space-evenly;
}

.personnel-boxes .box img {
    width: 150px;
    border-radius: 77px
}

.personnel-boxes .box .detail-box {
    display: flex;
    flex-direction: column;
    gap: 13px;
    font-weight: bold;
    font-size: 18px;
}

@media print {
    .personnel-boxes .box img {
        width: 85px;
    }

    .personnel-boxes .box .detail-box {
        font-size: 10pt;
        gap: 0 !important;
    }

    .personnel-boxes .box {
        border: 1px solid #ddd !important;
    }

    .personnel-boxes .box .detail-box span.naghsh {
        font-size: 8pt !important;
    }

    img.qrcode {
        display: inline-block !important;
        width: 40% !important;
    }

    .license-correct img {
        width: 60%;
    }

    .license-correct {
        align-items: center !important;
        flex-direction: row !important;
        text-align: center !important;
        justify-content: space-between;
    }

    .license-correct div {
        width: 49%;
        align-items: center !important;
        text-align: center !important;
    }

    .terms {
        display: block !important;
    }
}

.success-tab {
    display: inline-flex;
    gap: 8px;
    color: #5caf21;
    align-items: center;
    background: #5caf2121;
    padding: 7px 10px;
    border-radius: 5px;
}

.danger-tab {
    display: inline-flex;
    gap: 8px;
    color: #f00000;
    align-items: center;
    background: #ff000021;
    padding: 7px 10px;
    border-radius: 5px;
}

.warning-tab {
    display: inline-flex;
    gap: 8px;
    color: #d35400;
    align-items: center;
    background: #d3540021;
    padding: 7px 10px;
    border-radius: 5px;
}

.info-tab {
    display: inline-flex;
    gap: 8px;
    color: #00a8ff;
    align-items: center;
    background: #00a8ff21;
    padding: 7px 10px;
    border-radius: 5px;
}

.number-wait {
    background: #f00;
    color: #fff;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 5px;
    font-size: 15px;
    width: 25px;
    height: 25px;
}

.login-form form a {
    display: block;
    margin-top: 20px;
    color: #2d00af;
    font-weight: 900;
}

.user-card-add {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: rgba(236, 240, 241, 0.7);
    overflow: hidden;
}

.add-user {
    width: 1366px !important;
    padding: 20px;
}

.card-page {
    position: relative;
    display: flex;
    justify-content: center;
}

.card-page .details {
    position: absolute;
    top: 62%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card-page .details img {
    max-width: 100%;
}

.card-page .personal-image {
    position: absolute;
    top: 19%;
    width: 280px;
    right: 40.6%;
}

.input-valid {
    border-color: #28a745 !important;
}

.input-invalid {
    border-color: #dc3545 !important;
}

.hidden {
    display: none;
}