/* Force RTL only when language is fa */
article.doc-body section > h2,
article.doc-body section > .h2,
html[lang="fa"] body {
    direction: rtl;
    text-align: right;
    font-family: IRANSans !important;
}

/* You may also adjust specific elements: */
a,
html[lang="fa"] .o_main_toc ul li > a,
html[lang="fa"] .o_page_toc_nav ul li > a,
html[lang="fa"] .wy-nav-content,
html[lang="fa"] ul,
html[lang="fa"] ol {
    direction: rtl !important;
    text-align: right !important;
}

html[lang="fa"] pre,
html[lang="fa"] code {
    direction: ltr;
    text-align: left;
}

@media (min-width: 992px) {
html[lang="fa"] .o_side_nav .o_side_nav-inner{
  right: 0;
  left: auto;
}
}

header .o_main_header .o_search_wrapper .o_search .btn {
    right: auto;
    left: 0;
}

header .btn.btn-primary.fw_bold.ms-auto.d-none.d-lg-inline-block {
    display: none !important;
}

footer .o_get_help {
    padding-top: 3rem;
    padding-bottom: 3rem;
    background: #f2f2f2;
}

@media (min-width: 992px) {
    footer .o_get_help {
        padding-left: none;
        padding-right: calc(350px + 3rem);
    }
}

footer .o_get_help h4,
footer .o_get_help .h4 {
    margin-bottom: 1rem;
    color: #714b67;
    font-weight: 700;
}

@media (min-width: 1200px) {
    header .o_subheader {
        padding: 0 0 0 3rem;
    }
}

.o_subheader.border-bottom.d-flex .d-flex.justify-content-end.ms-auto {
    margin-right: auto !important;
    margin-left: 0px !important;
}

.o_main_toc ul,
.o_page_toc_nav ul {
    padding-left: 0px;
    padding-right: 0.5rem;
}

.i-chevron-right {
    transform: rotateY(180deg);
}

pre, code, kbd, samp {
    direction: ltr /* rtl:ignore */;
    unicode-bidi: normal  !important; 
    font-family: IRANSans !important;
}

.o_index .o_content_fw_banner {
  background: #1B4854;
  background: linear-gradient(99deg, #1B4854 10%, #1B4854 90%); }
}

.alert-secondary {
    color: #1B4854;
    background-color: #d1ebf2;
    border-color: #1B4854;
}

footer .o_get_help h4, footer .o_get_help .h4 {
    color: #1B4854;
}

@media (min-width: 992px) {
    header .o_main_header .o_logo img {
        height: 48px;
    }
}


@media (min-width: 992px) {
    header .o_main_header .o_logo_wrapper
 {
        margin-right: 0;
        margin-left: 3rem;
    }
}

.alert{
  border-width: 0 3px 0 0 !important;
}
