﻿/* General */

.text-middle 
{
    vertical-align: middle;
}

/* Swal Fire */

.swal2-container,
.swal2-container *
{
    font-family: IRANSansXFaNum !important;
}

/* Datatable */

.dt-container .dt-toolbar
{
    gap: 10px;
}

/* Select 2 */
.select2-container--bootstrap5 .select2-dropdown 
{
    font-family: IRANSansXFaNum !important;
}

.select2-container--bootstrap5 .select2-dropdown .select2-results__option.select2-results__option--selected:after 
{
    left: 1.25rem;
    right: inherit !important;
}

.select2-results__option
{
    direction: rtl !important;
}

.datepicker-container *,
.swal2-container,
.tooltip,
.cdx-notifies,
.ct__content,
.ce-popover__container
{
    font-family: IRANSansXFaNum !important;
}

/* PlaceHolder */

input.ph-center::placeholder {
    text-align: center;
}

input.ph-right::placeholder {
    text-align: right;
}

input.ph-left::placeholder {
    text-align: left;
}

/* Scroll Bar */

body::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
    background-color: #F5F5F5;
}

body::-webkit-scrollbar {
    width: 10px;
    background-color: #c0c0c0;
}

body::-webkit-scrollbar-thumb {
    background-color: #808080;
}

/* User Select */

.disable-image-user-select {
    -drag: none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

/* Text */

.text-break {
    word-break: break-all;
}

/* Tooltip & Popover */

.popover,
.tooltip-inner {
    font-family: IRANSansXFaNum;
    direction: ltr;
}

/* Skelton Lazy Loading */

.skelton 
{
    position: relative;
    overflow: hidden;
}

.skelton::after 
{
    display: block;
    overflow: hidden;
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    transform: translateX(-100%);
    background: -webkit-gradient(linear, left top, right top, from(transparent), color-stop(rgba(255, 255, 255, 0.5)), to(transparent));
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: loading 1s infinite;
}

@keyframes loading 
{
    100% 
    {
        transform: translateX(100%);
    }
}

/* App Loader */

.app-accepted,
.app.rejected,
.app-adjective,
.app-on-hold
{
    display: none !important;
}

/* Border Dotted */

.border-dotted
{
    border-style: dotted;
    border-spacing: 10px 10px;
}

/* Leaflet */

.leaflet-control-attribution.leaflet-control,
.leaflet-control-attribution.leaflet-control a,
.leaflet-control-attribution.leaflet-control span,
.leaflet-credits-control-expandcontent,
.leaflet-control-layers-base
{
    font-family: IRANSansXFaNum;
    direction: rtl;
}

.leaflet-control-layers-base
{
    padding: 5px;
}

.leaflet-control-layers-base label span 
{
    display: flex;
    flex-flow: row;
    align-items: center;
    gap: 3px;
}

.leaflet-control-layers-base .leaflet-control-layers-selector
{
    margin-top: 0;
    margin-bottom: 3px;
}

.leaflet-control-layers-base label
{
    margin-right: -5px;
    margin-top: 4px;
    margin-bottom: 4px;
}

.leaflet-control-layers-base label:nth-of-type(1)
{
    margin-bottom: 5px;
}

.leaflet-popup-content
{
    font-family: IRANSansXFaNum !important;
    direction: rtl !important;
}

/* Survey */

.svc-creator 
{
    --sjs-font-family: "IRANSansXFaNum", "Tahoma", "Arial", sans-serif;
    font-family: var(--sjs-font-family);
}

.sv-root 
{
    --sjs-font-family: "IRANSansXFaNum", "Tahoma", "Arial", sans-serif;
    font-family: var(--sjs-font-family);
}

.svc-creator,
.sv-root 
{
    font-family: "IRANSansXFaNum", "Vazir", "Tahoma", "Arial", sans-serif;
}

.svc-creator *,
.sv-root * 
{
    font-family: inherit !important;
}

.sd-error > div
{
    text-align: right;
}