/* Xemivo One UI type scale. Odoo 18 desktop and touch reference. */
@font-face {
    font-family: "Xemivo Latin";
    src: url("/xemivo_one_brand/static/fonts/xemivo-latin-400.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "Xemivo Latin";
    src: url("/xemivo_one_brand/static/fonts/xemivo-latin-500.woff2") format("woff2");
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: "Xemivo Latin";
    src: url("/xemivo_one_brand/static/fonts/xemivo-latin-700.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}
@font-face {
    font-family: "Xemivo Arabic";
    src: url("/xemivo_one_brand/static/fonts/xemivo-arabic-compact-400.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
    font-family: "Xemivo Arabic";
    src: url("/xemivo_one_brand/static/fonts/xemivo-arabic-compact-500.woff2") format("woff2");
    font-weight: 500;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
    font-family: "Xemivo Arabic";
    src: url("/xemivo_one_brand/static/fonts/xemivo-arabic-compact-600.woff2") format("woff2");
    font-weight: 600;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
    font-family: "Xemivo Arabic";
    src: url("/xemivo_one_brand/static/fonts/xemivo-arabic-compact-700.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF;
}
/* Retain coverage for Arabic-script glyphs outside the compact family's repertoire. */
@font-face {
    font-family: "Xemivo Arabic Extended";
    src: url("/xemivo_one_brand/static/fonts/xemivo-arabic-ui-400.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
    font-family: "Xemivo Arabic Extended";
    src: url("/xemivo_one_brand/static/fonts/xemivo-arabic-ui-500.woff2") format("woff2");
    font-weight: 500;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
    font-family: "Xemivo Arabic Extended";
    src: url("/xemivo_one_brand/static/fonts/xemivo-arabic-ui-600.woff2") format("woff2");
    font-weight: 600;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
    font-family: "Xemivo Arabic Extended";
    src: url("/xemivo_one_brand/static/fonts/xemivo-arabic-ui-700.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF;
}

:root {
    --xone-type-arabic: "Xemivo Arabic", "Xemivo Arabic Extended";
    --xone-type-family: "Xemivo Latin", var(--xone-type-arabic), system-ui, sans-serif;
    --xone-type-body: .875rem;
    --xone-type-small: .8125rem;
    --xone-type-caption: .75rem;
    --xone-type-control: var(--xone-type-body);
    --xone-type-line: 1.5;
    --xone-type-title: 1.75rem;
    --xone-type-section: 1.3125rem;
    --xone-type-subhead: 1.1375rem;
    --xone-type-h4: 1.05rem;
    --xone-type-h5: .9625rem;
    --xone-type-regular: 400;
    --xone-type-medium: 500;
    --xone-type-bold: 700;
}

:root:lang(ar) {
    --xone-type-family: var(--xone-type-arabic), "Xemivo Latin", system-ui, sans-serif;
}

@media (max-width: 767.98px) {
    :root {
        --xone-type-title: 1.3125rem;
        --xone-type-section: 1rem;
        --xone-type-subhead: 1rem;
        --xone-type-h4: 1rem;
        --xone-type-h5: 1rem;
        --xone-type-control: 1rem;
    }
}

.xone-typography {
    font-family: var(--xone-type-family);
    font-size: var(--xone-type-body);
    line-height: var(--xone-type-line);
    font-weight: var(--xone-type-regular);
}
:is(.xone-typography, .xone-login, .o_web_client, .o_portal)
    :is(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6) {
    font-family: var(--xone-type-family);
}
.xone-typography :is(h1, h2, h3, h4, h5, h6) { font-weight: var(--xone-type-medium); line-height: 1.2; }
.xone-typography h1 { font-size: var(--xone-type-title); }
.xone-typography h2 { font-size: var(--xone-type-section); }
.xone-typography h3 { font-size: var(--xone-type-subhead); }
.xone-typography h4 { font-size: var(--xone-type-h4); }
.xone-typography h5 { font-size: var(--xone-type-h5); }
.xone-typography :is(label, th, summary, b, strong) { font-weight: var(--xone-type-medium); }
.xone-typography :is(button, .button, .btn) { font-weight: var(--xone-type-medium); }
.xone-typography :is(input, select, textarea, button, .button) { font-size: var(--xone-type-control); }
.xone-typography :is(small, .muted) { font-size: var(--xone-type-small); }
.xone-typography :is(td, dd, bdi, .price) { font-variant-numeric: tabular-nums; }

.xone-typography select:not([multiple]):is(:not([size]), [size="1"]) {
    --xone-select-chevron-inset: 1rem;
    appearance: none;
    text-align: start;
    padding-inline-end: 2.5rem;
    background-image: url("/xemivo_one_brand/static/src/select-chevron.svg");
    background-size: 1rem;
    background-repeat: no-repeat;
    background-position: right var(--xone-select-chevron-inset) center;
}

.xone-typography select:not([multiple]):is(:not([size]), [size="1"]):dir(rtl) {
    background-position: left var(--xone-select-chevron-inset) center;
}

@media (forced-colors: active) {
    .xone-typography select:not([multiple]):is(:not([size]), [size="1"]) {
        appearance: auto;
        padding-inline-end: revert;
        background-image: none;
    }
}
