/*  add fonts */
@font-face {
	font-family: IRANSans;
	font-style: normal;
	font-weight: 900;
	src: url('fonts/IRANSans/eot/IRANSansWeb(NoEn)_Black.eot');
	src: url('fonts/IRANSans/eot/IRANSansWeb(NoEn)_Black.eot?#iefix') format('embedded-opentype'),  /* IE6-8 */
		 url('fonts/IRANSans/woff2/IRANSansWeb(NoEn)_Black.woff2') format('woff2'),  /* FF39+,Chrome36+, Opera24+*/
		 url('fonts/IRANSans/woff/IRANSansWeb(NoEn)_Black.woff') format('woff'),  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
		 url('fonts/IRANSans/ttf/IRANSansWeb(NoEn)_Black.ttf') format('truetype');
}

@font-face {
	font-family: IRANSans;
	font-style: normal;
	font-weight: bold;
	src: url('fonts/IRANSans/eot/IRANSansWeb(NoEn)_Bold.eot');
	src: url('fonts/IRANSans/eot/IRANSansWeb(NoEn)_Bold.eot?#iefix') format('embedded-opentype'),  /* IE6-8 */
		 url('fonts/IRANSans/woff2/IRANSansWeb(NoEn)_Bold.woff2') format('woff2'),  /* FF39+,Chrome36+, Opera24+*/
		 url('fonts/IRANSans/woff/IRANSansWeb(NoEn)_Bold.woff') format('woff'),  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
		 url('fonts/IRANSans/ttf/IRANSansWeb(NoEn)_Bold.ttf') format('truetype');
}

@font-face {
	font-family: IRANSans;
	font-style: normal;
	font-weight: 500;
	src: url('fonts/IRANSans/eot/IRANSansWeb(NoEn)_Medium.eot');
	src: url('fonts/IRANSans/eot/IRANSansWeb(NoEn)_Medium.eot?#iefix') format('embedded-opentype'),  /* IE6-8 */
		 url('fonts/IRANSans/woff2/IRANSansWeb(NoEn)_Medium.woff2') format('woff2'),  /* FF39+,Chrome36+, Opera24+*/
		 url('fonts/IRANSans/woff/IRANSansWeb(NoEn)_Medium.woff') format('woff'),  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
		 url('fonts/IRANSans/ttf/IRANSansWeb(NoEn)_Medium.ttf') format('truetype');
}

@font-face {
	font-family: IRANSans;
	font-style: normal;
	font-weight: 300;
	src: url('fonts/IRANSans/eot/IRANSansWeb(NoEn)_Light.eot');
	src: url('fonts/IRANSans/eot/IRANSansWeb(NoEn)_Light.eot?#iefix') format('embedded-opentype'),  /* IE6-8 */
		 url('fonts/IRANSans/woff2/IRANSansWeb(NoEn)_Light.woff2') format('woff2'),  /* FF39+,Chrome36+, Opera24+*/
		 url('fonts/IRANSans/woff/IRANSansWeb(NoEn)_Light.woff') format('woff'),  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
		 url('fonts/IRANSans/ttf/IRANSansWeb(NoEn)_Light.ttf') format('truetype');
}

@font-face {
	font-family: IRANSans;
	font-style: normal;
	font-weight: 200;
	src: url('fonts/IRANSans/eot/IRANSansWeb(NoEn)_UltraLight.eot');
	src: url('fonts/IRANSans/eot/IRANSansWeb(NoEn)_UltraLight.eot?#iefix') format('embedded-opentype'),  /* IE6-8 */
		 url('fonts/IRANSans/woff2/IRANSansWeb(NoEn)_UltraLight.woff2') format('woff2'),  /* FF39+,Chrome36+, Opera24+*/
		 url('fonts/IRANSans/woff/IRANSansWeb(NoEn)_UltraLight.woff') format('woff'),  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
		 url('fonts/IRANSans/ttf/IRANSansWeb(NoEn)_UltraLight.ttf') format('truetype');
}

@font-face {
	font-family: IRANSans;
	font-style: normal;
	font-weight: normal;
	src: url('fonts/IRANSans/eot/IRANSansWeb(NoEn).eot');
	src: url('fonts/IRANSans/eot/IRANSansWeb(NoEn).eot?#iefix') format('embedded-opentype'),  /* IE6-8 */
		 url('fonts/IRANSans/woff2/IRANSansWeb(NoEn).woff2') format('woff2'),  /* FF39+,Chrome36+, Opera24+*/
		 url('fonts/IRANSans/woff/IRANSansWeb(NoEn).woff') format('woff'),  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
		 url('fonts/IRANSans/ttf/IRANSansWeb(NoEn).ttf') format('truetype');
}

@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto/eot/Roboto-Bold.eot');
    src: local('Roboto Bold'), local('Roboto-Bold'),
        url('fonts/Roboto/eot/Roboto-Bold.eot?#iefix') format('embedded-opentype'),
        url('fonts/Roboto/woff2/Roboto-Bold.woff2') format('woff2'),
        url('fonts/Roboto/woff/Roboto-Bold.woff') format('woff'),
        url('fonts/Roboto/ttf/Roboto-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto/eot/Roboto-Regular.eot');
    src: local('Roboto'), local('Roboto-Regular'),
        url('fonts/Roboto/eot/Roboto-Regular.eot?#iefix') format('embedded-opentype'),
        url('fonts/Roboto/woff2/Roboto-Regular.woff2') format('woff2'),
        url('fonts/Roboto/woff/Roboto-Regular.woff') format('woff'),
        url('fonts/Roboto/ttf/Roboto-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto/eot/Roboto-Black.eot');
    src: local('Roboto Black'), local('Roboto-Black'),
        url('fonts/Roboto/eot/Roboto-Black.eot?#iefix') format('embedded-opentype'),
        url('fonts/Roboto/woff2/Roboto-Black.woff2') format('woff2'),
        url('fonts/Roboto/woff/Roboto-Black.woff') format('woff'),
        url('fonts/Roboto/ttf/Roboto-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto/eot/Roboto-Thin.eot');
    src: local('Roboto Thin'), local('Roboto-Thin'),
        url('fonts/Roboto/eot/Roboto-Thin.eot?#iefix') format('embedded-opentype'),
        url('fonts/Roboto/woff2/Roboto-Thin.woff2') format('woff2'),
        url('fonts/Roboto/woff/Roboto-Thin.woff') format('woff'),
        url('fonts/Roboto/ttf/Roboto-Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto/eot/Roboto-Light.eot');
    src: local('Roboto Light'), local('Roboto-Light'),
        url('fonts/Roboto/eot/Roboto-Light.eot?#iefix') format('embedded-opentype'),
        url('fonts/Roboto/woff2/Roboto-Light.woff2') format('woff2'),
        url('fonts/Roboto/woff/Roboto-Light.woff') format('woff'),
        url('fonts/Roboto/ttf/Roboto-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto/eot/Roboto-Medium.eot');
    src: local('Roboto Medium'), local('Roboto-Medium'),
        url('fonts/Roboto/eot/Roboto-Medium.eot?#iefix') format('embedded-opentype'),
        url('fonts/Roboto/woff2/Roboto-Medium.woff2') format('woff2'),
        url('fonts/Roboto/woff/Roboto-Medium.woff') format('woff'),
        url('fonts/Roboto/ttf/Roboto-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}


/* change fonts */
:root {
	--font-family-sans-serif: -apple-system, BlinkMacSystemFont, Roboto, IRANSans, "Segoe UI", "Noto Sans", Ubuntu, Cantarell, "Helvetica Neue", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
	/* original style. Segoe UI is before Roboto */
    /* --font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", Ubuntu, Cantarell, "Helvetica Neue", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; */
    --font-family-monospace: IRANSans, "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace;
}

html {
    font-family: IRANSans, sans-serif;
}


body, .tooltip, .popover, .gl-datepicker-theme, .gl-form-input, .gl-form-input.form-control, .search form.gl-form-input,
.gl-form-select, .gl-markdown, .diff-comments-more-count, .diff-notes-collapse, .file-editor .soft-wrap-toggle, 
.template-selector-dropdowns-wrap .license-selector, .template-selector-dropdowns-wrap .gitignore-selector, .template-selector-dropdowns-wrap .gitlab-ci-yml-selector,
.template-selector-dropdowns-wrap .gitlab-ci-syntax-yml-selector, .template-selector-dropdowns-wrap .dockerfile-selector,
.template-selector-dropdowns-wrap .template-type-selector, .template-selector-dropdowns-wrap .metrics-dashboard-selector,
.note-textarea, .avatar-counter, .labels-select-wrapper.is-embedded .labels-select-dropdown-button, .gl-daterange-picker, .diff-file .notes_holder {
    font-family: -apple-system, BlinkMacSystemFont, Roboto, IRANSans, "Segoe UI", "Noto Sans", Ubuntu, Cantarell, "Helvetica Neue", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
	/* original style. Segoe UI is before Roboto */
	/* font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", Ubuntu, Cantarell, "Helvetica Neue", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; */
}

pre, code, kbd, samp, .gl-markdown .monospace, .gl-compact-markdown .monospace, .search-token-target-branch .value, .file-content.code pre ,
.file-content.code pre code, .file-content.code .line-numbers a, .job-log , .md code, pre, .monospace, .commit-sha, .gfm-commit, .gfm-commit_range, .ref-name, .pipeline-number,
.git-revision-dropdown .dropdown-content li:not(.dropdown-menu-empty-item) a, textarea.js-gfm-input, .diff-table.code, table.code, .commit-message-container, .file-editor .file-title,
.mr-state-widget .label-branch, .discussion-reply-holder .reply-placeholder-text-field, .git-clone-holder .form-control, .git-clone-holder .search form, .search .git-clone-holder form,
.prometheus-svg-container > svg .deploy-info-text-link, .tui-editor-defaultUI .te-md-container .CodeMirror *, .project-mirror-settings .known-hosts,
.help-form .form-group .form-control, .help-form .form-group .search form, .search .help-form .form-group form {
    font-family: IRANSans, "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace;
}

input, button, select, optgroup, textarea,
.filtered-search-box gl-emoji,
.commit-message-container .max-width-marker,
.commit-message-container textarea {
    font-family: inherit;
}

.text-monospace, .md-suggestion-diff {
    font-family:  IRANSans, "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace !important;
}

.pika-single {
    font-family: IRANSans, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

gl-emoji {
    font-family: IRANSans, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
}

/* Issuable (namely Issue and Merge Request) */
/* fix edit button position in issue title */
.issuable-details .title-container{
  position: relative;
  direction: rtl;
}
.issuable-details .title-container button {
    width: 5%;
    display: inline-block;
}

/* stretches the lines so that each line has equal width in notes in issuables */
ul.notes>li .note-body .note-text [dir="auto"]{
  text-align: justify;
}

/* fix lists in wiki and markdown */
.wiki ul, .wiki ol, .md ul, .md ol{
  padding-right: 20px!important;
  padding-left: 20px!important;
}

/* fix merge request title */
.issuable-details .title {
	padding: 0;
    margin-bottom: 16px;
    border-bottom: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-width: 0;
    display: inline-block;
	text-align: start;
    unicode-bidi: plaintext;
}

/* align persian checkbox in markdown */
.md:not(.use-csslab) ul.task-list>li.task-list-item
{
    margin-right: 26px;
}
.md:not(.use-csslab) ul.task-list>li.task-list-item>input.task-list-item-checkbox {
    position: absolute;
    left: unset;
    right: unset;
    top: 5px;
    margin-right: -22px;
    margin-left: -22px;
}

.append-right-default, .detail-page-description.milestone-detail h2 {
	text-align: right;
}
.issue-sticky-header.merge-request-sticky-header .issue-sticky-header-text {
	direction: ltr;
}
.issue-sticky-header .issue-sticky-header-text {
	direction: rtl;
}
.issue-sticky-header {
    padding-top: 1rem;
}
.status-box {
    margin-right: 0px;
    margin-left: 8px;
}

/* fix description in iteration description */
.page-title+div {
    text-align: start;
    unicode-bidi: plaintext;
}

/* wiki sidebar collapsible section */
.sidebar-container details {
	text-align: start;
}

/* wiki page title */
div:has(> h2[data-qa-selector="wiki_page_title"]) {
  justify-content: unset;
}
h2[data-qa-selector="wiki_page_title"] {
  margin-right: 10px;
  width: 100%;
  text-align: start;
}

/* fix label description direction in project information > labels */
.label-description .gl-flex-basis-half {
	text-align: start;
	unicode-bidi: plaintext;
	padding-right: 5px;
}

/*.manage-labels-list>li:not(.empty-message):not(.no-border),
.issuable-list li .issuable-info-container {
	direction: rtl;
	text-align: right;
}
.board-card {
	direction: rtl;
}*/
