/* Saudi Riyal sign (U+20C1). The font only covers this one character, so
   listing "Saudi Riyal Sign" first in a font stack changes nothing else.
   Built from the official artwork by tools/fonts/build-saudi-riyal-font.php. */
@font-face {
    font-family: "Saudi Riyal Sign";
    src: url("../fonts/saudi-riyal.woff") format("woff"),
         url("../fonts/saudi-riyal.ttf") format("truetype");
    unicode-range: U+20C1;
    font-display: block;
}

/* Markup that shows the sign on its own: <span class="riyal-sign">&#x20C1;</span> */
.riyal-sign {
    font-family: "Saudi Riyal Sign", system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    line-height: 1;
}

/* Elements with their own font stack that display amounts. Form controls and
   tables inherit the page font, which already starts with the sign font. */
.tw-font-mono {
    font-family: "Saudi Riyal Sign", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace !important;
}

/* Legacy icon class: now the new sign. Skipped where the amount already gets
   the symbol as text (data-currency_symbol, dashboard .total_sell). */
.icon-saudi_riyal:not([data-currency_symbol="true"]):not(.total_sell)::before {
    content: "\20C1";
    font-family: "Saudi Riyal Sign", system-ui, sans-serif !important;
    font-style: normal;
    margin-inline-end: .25em;
}

/* Standalone thermal receipts (sale_pos/receipts/slim*). */
.ticket {
    font-family: "Saudi Riyal Sign", system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
}
