/* Jukko presentation only: retain the chart, trading colors and theme switch. */
@font-face { font-family: "Jukko Sans"; src: url("../fonts/inter-latin.woff2") format("woff2"); font-style: normal; font-weight: 100 900; font-display: swap; }
body, #backoffice-tp-app, #backoffice-tp-app .MuiTypography-root, #backoffice-tp-app .MuiButtonBase-root, #backoffice-tp-app .MuiInputBase-root { font-family: "Noto Sans JP", "Jukko Sans", "Yu Gothic", Meiryo, sans-serif; }
#backoffice-tp-app img[alt="logo"] { visibility: hidden; }
#backoffice-tp-app img[data-jukko-logo] { visibility: visible; width: 184px; height: 48px; max-width: 100%; max-height: 48px; object-fit: contain; }
#backoffice-tp-app [data-jukko-terminal-header] { background: #fff; border-bottom: 1px solid #e1e1e5; color: #1b1b1f; }
#backoffice-tp-app [data-jukko-terminal-header] > a { display: inline-flex; align-items: center; min-width: 184px; }
#backoffice-tp-app [data-jukko-terminal-header] .MuiButton-containedPrimary { border: 1px solid #ba8a47; border-radius: 999px; color: #93672f; background: #fff; box-shadow: none; font-weight: 700; text-transform: none; }
#backoffice-tp-app [data-jukko-terminal-header] .MuiButton-containedPrimary:hover { background: #faf6ef; border-color: #93672f; }
#backoffice-tp-app [data-jukko-terminal-header] a.MuiButton-containedPrimary { border-color: #c8202e; color: #fff; background: #c8202e; }
#backoffice-tp-app [data-jukko-terminal-header] a.MuiButton-containedPrimary:hover { background: #a61926; border-color: #a61926; }
#backoffice-tp-app .MuiInputBase-root.Mui-focused { outline: 2px solid #c8202e; outline-offset: 1px; }
#backoffice-tp-app a:focus-visible, #backoffice-tp-app button:focus-visible { outline: 2px solid #c8202e; outline-offset: 3px; }
/* React renders account dialogs outside the app root. */
.lfo-jukko-terminal .MuiDialog-root .MuiPaper-root { border: 1px solid #e1e1e5; border-radius: 20px; color: #1b1b1f; background: #fff; box-shadow: 0 24px 80px #11111433; }
.lfo-jukko-terminal .MuiDialog-root .MuiTypography-root, .lfo-jukko-terminal .MuiDialog-root .MuiButtonBase-root, .lfo-jukko-terminal .MuiDialog-root .MuiInputBase-root { font-family: "Noto Sans JP", "Jukko Sans", "Yu Gothic", Meiryo, sans-serif; }
.lfo-jukko-terminal .MuiDialog-root .MuiInputBase-root { color: #1b1b1f; border: 1px solid #e1e1e5; border-radius: 10px; background: #fff; }
.lfo-jukko-terminal .MuiDialog-root .MuiInputBase-root.Mui-focused { outline: 2px solid #c8202e; outline-offset: 1px; }
.lfo-jukko-terminal .MuiDialog-root a { color: #a61926; }
.lfo-jukko-terminal .MuiDialog-root:has(input[type="password"]) .MuiButton-containedPrimary:not(.Mui-disabled) { border-radius: 999px; color: #fff; background: #c8202e; box-shadow: none; }
@media (max-width:600px) {
  #backoffice-tp-app img[data-jukko-logo] { width: 104px; height: 36px; }
  #backoffice-tp-app [data-jukko-terminal-header] > a { min-width: 104px; }
  #backoffice-tp-app [data-jukko-terminal-header] .MuiButton-containedPrimary { width: auto; min-width: 64px; padding-inline: 12px; font-size: 12px; }
}

/* The mobile terminal uses a separate auth bar without a logo element. */
#backoffice-tp-app [data-jukko-auth-actions] .MuiButton-containedPrimary { border: 1px solid #ba8a47; border-radius: 999px; color: #93672f; background: #fff; box-shadow: none; font-weight: 700; text-transform: none; }
#backoffice-tp-app [data-jukko-auth-actions] .MuiButton-containedPrimary:hover { background: #faf6ef; }
#backoffice-tp-app [data-jukko-auth-actions] a.MuiButton-containedPrimary { color: #fff; background: #c8202e; border-color: #c8202e; }
#backoffice-tp-app [data-jukko-auth-actions] a.MuiButton-containedPrimary:hover { background: #a61926; border-color: #a61926; }
#backoffice-tp-app .MuiTab-root.Mui-selected, #backoffice-tp-app .MuiBottomNavigationAction-root.Mui-selected { color: #c8202e; }
#backoffice-tp-app .MuiTabs-indicator { background-color: #c8202e; }
@media (max-width:600px) {
  #backoffice-tp-app [data-jukko-auth-actions] { align-items: center; gap: 8px; }
  #backoffice-tp-app [data-jukko-auth-actions]::before { content: ""; display: block; flex: 0 0 96px; width: 96px; height: 36px; background: url("../images/logo/logo-horizontal.png") center / contain no-repeat; }
  #backoffice-tp-app [data-jukko-auth-actions] .MuiButton-containedPrimary { flex: 1; min-width: 64px; width: auto; min-height: 36px; padding: 6px 10px; font-size: 12px; }
}
