﻿html {
  font-size: 14px;
  direction: rtl !important;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
    direction: rtl !important;
}

body {
    margin-bottom: 60px;
    direction: rtl !important;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/*@font-face {
    font-family: Tanha;
    src: url('../font/tanha-font-v0.9/tanha.eot');
    src: url('../font/tanha-font-v0.9/tanha.eot?#iefix') format('Tanha-opentype'), url('../font/tanha-font-v0.9/tanha.woff') format('woff'), 
        url('../font/tanha-font-v0.9/tanha.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}*/
@font-face {
    font-family: samim;
    src: url('../font/samim-font-v2.0.1/samim.eot');
    src: url('../font/samim-font-v2.0.1/samim.eot?#iefix') format('samim-opentype'), url('../font/samim-font-v2.0.1/samim.woff') format('woff'), url('../font/samim-font-v2.0.1/samim.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: IRANSans;
    font-style: normal;
    src: url('../font/IRANSans/eot/IRANSansWeb.eot');
    src: url('../font/IRANSans/eot/IRANSansWeb.eot?#iefix') format('embedded-opentype'), /* IE6-8 */
    url('../font/IRANSans/woff2/IRANSansWeb.woff2') format('woff2'), /* FF39+,Chrome36+, Opera24+*/
    url('../font/IRANSans/woff/IRANSansWeb.woff') format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
    url('../font/IRANSans/ttf/IRANSansWeb.ttf') format('truetype');
}


@font-face {
    font-family: IRANSansFaNum;
    font-style: normal;
    src: url('../font/IRANSans/eot/IRANSansWeb(FaNum).eot');
    src: url('../font/IRANSans/eot/IRANSansWeb(FaNum).eot?#iefix') format('embedded-opentype'), /* IE6-8 */
    url('../font/IRANSans/woff2/IRANSansWeb(FaNum).woff2') format('woff2'), /* FF39+,Chrome36+, Opera24+*/
    url('../font/IRANSans/woff/IRANSansWeb(FaNum).woff') format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
    url('../font/IRANSans/ttf/IRANSansWeb(FaNum).ttf') format('truetype');
}

html, body {
    font-family: IRANSansFaNum,IRANSans !important;
}

.gridjs {
    direction: rtl;
    text-align: right;
}

.gridjs-pagination .gridjs-pages button:last-child {
    border-bottom-left-radius: 6px !important;
    border-left: 1px solid #d2d6dc !important;
    border-top-left-radius: 6px !important;
}

.gridjs-pagination .gridjs-pages button:first-child {
    border-bottom-right-radius: 6px !important;
    border-top-right-radius: 6px !important;
}

.ui-menu-item {
    padding: 10px;
    cursor: pointer;
}

.ui-autocomplete {
    max-height: 250px;
    overflow-y: auto;
    /* زیباسازی صندوق */
    border-radius: 0.375rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.15);
    border: 1px solid #ced4da;
    background-color: #fff;
    font-size: 1rem;
    padding: 0;
}


/* لینک آیتم‌ها */
.ui-menu-item-wrapper {
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    color: #212529;
}

    /* حالت انتخاب شده (هاور یا کیبورد) */
    .ui-menu-item-wrapper.ui-state-active {
        background-color: #0d6efd; /* آبی بوت‌استرپ */
        color: #fff;
        font-weight: 600;
    }

    /* هایلایت کردن بخشی از متن جستجو */
    .ui-menu-item-wrapper .highlight {
        font-weight: 700;
        background-color: #ffc107; /* زرد بوت‌استرپ */
        color: #212529;
    }

.datepicker-plot-area
{
    font-family: samim !important;
}