/*
 * EyeCo shared Persian interface
 * Host: b4.fmut.ir
 * Generated: 20260804-171614
 *
 * This stylesheet deliberately avoids:
 *     * { font-family: ... !important; }
 *
 * This preserves SVG icons, icon fonts and application-specific symbols.
 */

@font-face {
    font-family: "Vazirmatn";
    src:
        url("/eyeco-ui/Vazirmatn.woff2?v=20260804-171614")
        format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

/* Force Persian page direction */
html {
    direction: rtl !important;
}

html body {
    direction: rtl !important;
    text-align: right;
    font-family:
        "Vazirmatn",
        Tahoma,
        Arial,
        sans-serif !important;
}

/* Text and form controls only; icon elements are not globally overridden */
button,
input,
textarea,
select,
option {
    font-family:
        "Vazirmatn",
        Tahoma,
        Arial,
        sans-serif !important;
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
label,
legend,
blockquote,
caption,
th,
td {
    font-family:
        "Vazirmatn",
        Tahoma,
        Arial,
        sans-serif;
}

/* Dialogs and application menus */
[role="dialog"],
[role="menu"],
[role="menuitem"],
[role="listbox"],
[role="option"],
[role="alert"],
[role="status"] {
    direction: rtl;
    text-align: right;
}

/* Form alignment */
input:not([type="email"]):not([type="url"]):not([type="tel"]),
textarea,
select {
    direction: rtl;
    text-align: right;
}

/* Technical values must remain readable from left to right */
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="number"],
code,
pre,
kbd,
samp,
.ltr,
[dir="ltr"] {
    direction: ltr !important;
    text-align: left !important;
    unicode-bidi: isolate;
}

/* Persian numbers or phone links displayed inline */
a[href^="tel:"],
a[href^="mailto:"] {
    unicode-bidi: isolate;
}

/* Tables */
table {
    direction: rtl;
}

th,
td {
    text-align: right;
}

/* Bootstrap directional corrections used by Greenlight */
html[dir="rtl"] .text-start {
    text-align: right !important;
}

html[dir="rtl"] .text-end {
    text-align: left !important;
}

html[dir="rtl"] .float-start {
    float: right !important;
}

html[dir="rtl"] .float-end {
    float: left !important;
}

/* Keep media and icons unaffected */
svg,
img,
video,
canvas {
    direction: ltr;
}
