/* v11.740.0 — the unit INSIDE the amount field (js/money_unit.js). Light + body.dark-mode. */
.mu { display: inline-block; vertical-align: top; max-width: 100%; min-width: 0; } .mu.mu-block { display: block; width: 100%; }
.mu-box { position: relative; display: block; width: 100%; } .mu:not(.mu-block) .mu-box { display: inline-block; width: auto; }
.mu-box > input[data-mu] { box-sizing: border-box; padding-right: var(--mu-w, 3.4rem) !important; text-align: right; }
.mu-unit { position: absolute; right: var(--mu-r, 5px); top: 50%; transform: translateY(-50%); pointer-events: auto; cursor: help; font-size: .72rem; font-weight: 800; letter-spacing: .01em; line-height: 1; padding: 2px 6px; border-radius: 6px;
    color: #3730a3; background: #e0e7ff; border: 1px solid #c7d2fe; white-space: nowrap; }
.mu-full { display: none; font-size: .72rem; line-height: 1.25; color: #475569; margin-top: 2px; text-align: right; font-variant-numeric: tabular-nums; }
.mu-full.on { display: block; } .mu-full.warn { color: #92400e; background: #fffbeb; border: 1px solid #fcd34d; border-radius: 6px; padding: 2px 6px; text-align: left; font-weight: 600; }
body.dark-mode .mu-unit { color: #c7d2fe; background: #312e81; border-color: var(--g-acc-d, #4338ca); } body.dark-mode .mu-full { color: #94a3b8; } body.dark-mode .mu-full.warn { color: #fcd34d; background: #422006; border-color: #92400e; }

.mu-box.mu-nochip > input[data-mu] { padding-right: .5rem !important; }
/* the currency select that carries the unit (« kCHF ▾ »): the same chip, so the unit is read where the number is typed */
select.mu-cur { font-weight: 800 !important; color: #3730a3 !important; background-color: #e0e7ff !important; border: 1px solid #c7d2fe !important; border-radius: 6px !important; cursor: pointer; }
body.dark-mode select.mu-cur { color: #c7d2fe !important; background-color: #312e81 !important; border-color: var(--g-acc-d, #4338ca) !important; }
/* the unit under a column title: as readable as the title itself */
.mu-th { display: inline-block; margin-top: 1px; font-size: .7rem; font-weight: 800; text-transform: none; letter-spacing: 0; color: var(--g-acc-d, #4338ca); background: #e0e7ff; border-radius: 5px; padding: 0 6px; } body.dark-mode .mu-th { color: #c7d2fe; background: #312e81; }
.mu.mu-block .mu-box > input[data-mu] { width: 100%; min-width: 4.6rem; }
.mu-unit:empty { display: none; }
.mu-box > input[data-mu]::-webkit-outer-spin-button, .mu-box > input[data-mu]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; } .mu-box > input[data-mu] { -moz-appearance: textfield; appearance: textfield; }

/* >>> glass-map — v11.1040.19, GLASS step 4: the hard-coded light / dark panels of this stylesheet mapped to the shared tokens (generated from the rules above). Light rules are `:where(body.theme-glass) …` and dark ones `body.dark-mode:where(.theme-glass) …`: ZERO added specificity, so a more specific semantic variant (.x.bad, .x.on) keeps winning over the base panel; Classic is untouched. */
:where(body.theme-glass) .mu-unit { color: var(--gl-tint-text); background-color: color-mix(in srgb, var(--gl-tint) 12%, transparent); }
:where(body.theme-glass) .mu-full { color: var(--gl-fg2); }
:where(body.theme-glass) .mu-full.warn { background-color: var(--gl-line); }
body.dark-mode:where(.theme-glass) .mu-full.warn { color: #fcd34d; }
body.dark-mode:where(.theme-glass) .mu-unit { color: var(--gl-tint-text); background-color: color-mix(in srgb, var(--gl-tint) 18%, transparent); }
body.dark-mode:where(.theme-glass) .mu-full { color: var(--gl-fg2); }
:where(body.theme-glass) select.mu-cur { color: var(--gl-tint-text) !important; background-color: color-mix(in srgb, var(--gl-tint) 12%, transparent) !important; }
body.dark-mode:where(.theme-glass) select.mu-cur { color: var(--gl-tint-text) !important; background-color: color-mix(in srgb, var(--gl-tint) 18%, transparent) !important; }
:where(body.theme-glass) .mu-th { background-color: color-mix(in srgb, var(--gl-tint) 12%, transparent); }
body.dark-mode:where(.theme-glass) .mu-th { color: var(--gl-tint-text); background-color: color-mix(in srgb, var(--gl-tint) 18%, transparent); }
/* <<< glass-map */
