/* Host portal v7 additions: "?" tooltips, notices (P2/P3), the grouped side menu, the Getting started checklist,
   list screens, the Branding preview and the friendly error pages. Loaded after portal.css (web_main.PRODUCT.extra_css). */

/* "?" tooltip (JMT_BASE_HELP) */
.jmt-help { display: inline-flex; align-items: center; justify-content: center; width: 1.05rem; height: 1.05rem; margin-left: .3rem;
  border-radius: 50%; background: #e0ecfb; color: #1d4ed8; font-size: .7rem; font-weight: 700; cursor: help; position: relative;
  vertical-align: middle; flex-shrink: 0; }
.jmt-help:focus { outline: 2px solid #1d4ed8; outline-offset: 1px; }
.jmt-help:focus::after, .jmt-help:hover::after { content: attr(data-help); position: absolute; left: 50%; top: 125%; transform: translateX(-50%);
  z-index: 50; width: max-content; max-width: 260px; padding: .4rem .55rem; border-radius: 6px; background: #1f2937; color: #fff;
  font-size: .75rem; font-weight: 400; line-height: 1.3; white-space: normal; text-align: left; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
th .jmt-help { font-size: .65rem; }

/* Notices (JMT_NOTICE): red error, amber warning, green success, blue information, grey past/inactive */
.jmt-notice { display: flex; gap: .75rem; align-items: flex-start; padding: .8rem 1rem; margin: .5rem 0 1rem; border-radius: 8px;
  border: 1px solid; font-size: .9rem; }
.jmt-notice-icon { font-size: 1.25rem; margin-top: .1rem; }
.jmt-notice-title { font-weight: 700; margin-bottom: .2rem; }
.jmt-notice-text { margin-bottom: .2rem; }
.jmt-notice-actions { margin-top: .5rem; }
.jmt-notice-error { background: #fef2f2; border-color: #fca5a5; color: #991b1b; }
.jmt-notice-warning { background: #fffbeb; border-color: #fcd34d; color: #92400e; }
.jmt-notice-success { background: #f0fdf4; border-color: #86efac; color: #166534; }
.jmt-notice-info { background: #eff6ff; border-color: #93c5fd; color: #1e3a8a; }
.jmt-notice-muted { background: #f3f4f6; border-color: #d1d5db; color: #4b5563; }

/* Side menu groups (web_main.MENU): a closed group (Advanced) opens on a click */
.jmt-menu-group > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; }
.jmt-menu-group > summary::-webkit-details-marker { display: none; }
.jmt-menu-group > summary .pi { font-size: .75rem; transition: transform .15s; }
.jmt-menu-group[open] > summary .pi { transform: rotate(90deg); }
.jmt-menu-group > ul { padding: 0; margin: 0; list-style: none; }

/* Getting started (Home) */
.fb-steps { list-style: none; padding: 0; margin: 0; }
.fb-step { display: flex; align-items: center; gap: .7rem; padding: .55rem .25rem; border-bottom: 1px solid var(--fb-line, #e5e7eb); }
.fb-step:last-child { border-bottom: none; }
.fb-step-mark { width: 1.7rem; height: 1.7rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .8rem; border: 2px solid #9ca3af; color: #4b5563; flex-shrink: 0; }
.fb-step-done .fb-step-mark { background: #16a34a; border-color: #16a34a; color: #fff; }
.fb-step-next .fb-step-mark { border-color: #d97706; color: #b45309; }
.fb-step-text { flex: 1; min-width: 0; }
.fb-step-title { font-weight: 600; }
.fb-step-sub { font-size: .78rem; color: var(--fb-muted, #6b7280); }
.fb-step a { white-space: nowrap; }

/* List screens (Venues, Classes, Clients) */
.fb-list-tools { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.fb-back { display: inline-flex; align-items: center; gap: .35rem; margin-bottom: .5rem; }

/* Branding preview: the colour inputs repaint it as they change */
.fb-brand-main .jmt-field-caption { min-width: 12rem; }

/* Friendly 404 / 403 */
.fb-error-page { max-width: 560px; margin: 3rem auto; padding: 0 16px; text-align: center; }
.fb-error-page .pi { font-size: 2.5rem; color: #6b7280; }
.fb-error-page h2 { margin: .75rem 0 .5rem; }
.fb-error-page .fb-error-ref { font-size: .8rem; color: #6b7280; margin-top: 1rem; }
.fb-error-actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: 1rem; }
.fb-error-actions .p-button { min-height: 44px; }
a.jmt-option { text-decoration: none; color: inherit; }
