/* iDive - Dive Centre dashboard module. Scoped `ffdc-`. Uses brand tokens from
   styles.css (--primary cyan, --secondary teal, --accent amber, --navy, --border).
   Never edit styles.css. Visual language mirrors the rewards dashboard (ffdb-) so
   the two back-offices feel like one product. */

/* ── Layout shell ────────────────────────────────────────────────────────── */
.ffdc-wrap { max-width: 1180px; margin: 0 auto; padding: 104px 20px 80px; }
.ffdc-wrap h1, .ffdc-wrap h2, .ffdc-wrap h3 { font-family: 'Josefin Sans', sans-serif; color: var(--navy, #0f172a); }
@media (max-width: 900px) { .ffdc-wrap { padding: 84px 16px 56px; } }

/* Staggered load reveal - calm, on-brand. Honoured only when motion is welcome. */
@media (prefers-reduced-motion: no-preference) {
  .ffdc-reveal { opacity: 0; transform: translateY(14px); animation: ffdc-rise .6s cubic-bezier(.22,.61,.36,1) forwards; }
  .ffdc-reveal[data-d="1"] { animation-delay: .05s; }
  .ffdc-reveal[data-d="2"] { animation-delay: .12s; }
  .ffdc-reveal[data-d="3"] { animation-delay: .19s; }
  .ffdc-reveal[data-d="4"] { animation-delay: .26s; }
  .ffdc-reveal[data-d="5"] { animation-delay: .33s; }
  @keyframes ffdc-rise { to { opacity: 1; transform: none; } }
}

/* ── Login ───────────────────────────────────────────────────────────────── */
.ffdc-auth { min-height: calc(100vh - 72px); display: flex; align-items: flex-start; justify-content: center; padding: 104px 20px 56px; background: linear-gradient(160deg, var(--primary-soft, #ecfeff), #fff 60%); }
body.ffdc-login .ffdc-auth .ffdc-card { opacity: 0; }
body.ffdc-login.ffdc-ready .ffdc-auth .ffdc-card { opacity: 1; transition: opacity .25s ease; }
.ffdc-card { width: 100%; max-width: 430px; background: #fff; border: 1px solid var(--border, rgba(6,182,212,.16)); border-radius: 20px; padding: 34px 30px; box-shadow: 0 18px 50px -28px rgba(15,23,42,.35), 0 8px 32px rgba(6,95,120,.08); }
.ffdc-card .ffdc-logo { text-align: center; margin-bottom: 10px; }
.ffdc-card .ffdc-logo img { height: 40px; width: auto; display: inline-block; }
.ffdc-card .ffdc-eyebrow { text-align: center; font-family: 'Josefin Sans', sans-serif; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: .68rem; color: var(--secondary, #0d9488); margin: 4px 0 0; }
.ffdc-card h1 { font-size: 1.5rem; text-align: center; margin: 4px 0 2px; }
.ffdc-card .ffdc-sub { text-align: center; color: #5b6b73; font-size: .82rem; margin: 0 0 22px; }
@media (max-width: 900px) { .ffdc-auth { min-height: calc(100vh - 60px); padding: 84px 16px 40px; } .ffdc-card { padding: 28px 20px; } }

.ffdc-field { margin-bottom: 14px; }
.ffdc-field label { display: block; font-size: .82rem; font-weight: 600; color: var(--deep, #164e63); margin-bottom: 5px; }
.ffdc-field input, .ffdc-field select, .ffdc-field textarea { width: 100%; padding: 12px 14px; border: 1px solid #d4dee2; border-radius: 12px; font: inherit; box-sizing: border-box; background: #fff; }
.ffdc-field textarea { min-height: 84px; resize: vertical; }
.ffdc-field input:focus, .ffdc-field select:focus, .ffdc-field textarea:focus { outline: none; border-color: var(--primary, #06b6d4); box-shadow: 0 0 0 3px rgba(6,182,212,.18); }
#ffdc-otp { letter-spacing: .5em; text-align: center; font-size: 1.3rem; font-weight: 700; }

.ffdc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 13px 18px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; color: #fff; text-decoration: none; font: inherit; font-weight: 700; cursor: pointer; transition: var(--transition, all .25s cubic-bezier(.4,0,.2,1));
  background: linear-gradient(135deg, rgba(16,185,129,.96) 0%, rgba(6,182,212,.96) 50%, rgba(29,78,216,.96) 100%);
  box-shadow: 0 6px 18px rgba(29,78,216,.30), 0 3px 10px rgba(16,185,129,.18), inset 0 1px 0 rgba(255,255,255,.26); }
.ffdc-btn:hover { background: linear-gradient(135deg,#0ea371 0%,#0891b2 50%,#1e40af 100%); box-shadow: 0 12px 26px rgba(29,78,216,.42), 0 5px 14px rgba(16,185,129,.22), inset 0 1px 0 rgba(255,255,255,.32); }
.ffdc-btn:disabled { opacity: .55; cursor: default; box-shadow: none; }
@media (prefers-reduced-motion: no-preference) { .ffdc-btn:hover:not(:disabled) { transform: translateY(-1px); } }
.ffdc-btn-sm { width: auto; padding: 9px 16px; font-size: .85rem; border-radius: 999px; }
.ffdc-btn-ghost { background: #fff; color: var(--deep, #164e63); border: 1px solid var(--border-strong, rgba(6,182,212,.3)); box-shadow: none; }
.ffdc-btn-ghost:hover { background: var(--primary-soft, #ecfeff); border-color: var(--primary, #06b6d4); }
.ffdc-btn-link { background: none; border: 0; color: var(--secondary, #0d9488); cursor: pointer; font: inherit; padding: 8px; width: 100%; text-align: center; }
.ffdc-btn-danger { background: linear-gradient(135deg,#ef4444,#b91c1c); box-shadow: 0 6px 18px rgba(185,28,28,.28); }
.ffdc-btn-danger:hover { background: linear-gradient(135deg,#dc2626,#991b1b); }

.ffdc-msg { min-height: 20px; margin: 12px 0 0; font-size: .88rem; text-align: center; color: #5b6b73; }
.ffdc-msg.is-err { color: var(--coral, #e84545); }
.ffdc-msg.is-ok { color: var(--secondary-hover, #0f766e); }
.ffdc-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: #9aa7ad; font-size: .8rem; }
.ffdc-divider::before, .ffdc-divider::after { content: ''; flex: 1; height: 1px; background: #e3eaed; }
#ffdc-google-btn { display: flex; justify-content: center; min-height: 44px; }
.ffdc-google-off { color: #9aa7ad; font-size: .82rem; text-align: center; margin: 0; }
.ffdc-google-consent { color: #9aa7ad; font-size: .72rem; text-align: center; margin: 10px 0 0; line-height: 1.5; }
.ffdc-google-consent a { color: var(--primary-hover, #0891b2); }
.ffdc-fineprint { margin: 22px 0 0; font-size: .74rem; color: #9aa7ad; text-align: center; line-height: 1.5; }
.ffdc-consent { margin: 18px 0 0; display: grid; gap: 10px; text-align: left; }
.ffdc-check { display: grid; grid-template-columns: auto 1fr; gap: 9px; align-items: start; font-size: .82rem; line-height: 1.45; color: var(--deep, #164e63); cursor: pointer; }
.ffdc-check input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--primary, #06b6d4); flex-shrink: 0; cursor: pointer; }
.ffdc-check a { color: var(--primary-hover, #0891b2); }

/* ── Top bar ─────────────────────────────────────────────────────────────── */
.ffdc-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.ffdc-top .ffdc-eyebrow { text-align: left; margin: 0 0 7px; }
.ffdc-top h1 { font-size: 1.75rem; margin: 0; line-height: 1.1; }
.ffdc-top .ffdc-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ffdc-pill { display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px; border-radius: 999px; font-weight: 700; font-size: .85rem; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; }
.ffdc-pill-amber { background: rgba(245,158,11,.14); color: var(--accent-hover, #d97706); }
.ffdc-pill-ghost { background: #eef3f5; color: var(--deep, #164e63); }
.ffdc-pill-ghost:hover { background: #e3eef1; }
.ffdc-switcher { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border-strong, rgba(6,182,212,.3)); border-radius: 999px; padding: 5px 8px 5px 14px; }
.ffdc-switcher i { color: var(--secondary, #0d9488); }
.ffdc-switcher select { border: 0; background: none; font: inherit; font-weight: 700; color: var(--deep, #164e63); padding: 4px 6px; cursor: pointer; max-width: 240px; }
.ffdc-switcher select:focus { outline: none; }

/* Period segmented control */
.ffdc-seg { display: inline-flex; gap: 4px; background: #eef3f5; padding: 4px; border-radius: 999px; }
.ffdc-seg button { border: 1px solid transparent; background: none; padding: 7px 15px; border-radius: 999px; font: inherit; font-size: .82rem; font-weight: 600; color: #5b6b73; cursor: pointer; transition: var(--transition, all .25s ease); }
.ffdc-seg button:hover:not(.is-active) { color: var(--primary, #06b6d4); }
.ffdc-seg button.is-active { color: #fff; border-color: rgba(255,255,255,.28);
  background: linear-gradient(135deg, rgba(16,185,129,.96) 0%, rgba(6,182,212,.96) 50%, rgba(29,78,216,.96) 100%);
  box-shadow: 0 4px 12px rgba(29,78,216,.16), inset 0 1px 0 rgba(255,255,255,.28); }
.ffdc-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }

/* ── Dashboard tabs ──────────────────────────────────────────────────────── */
.ffdc-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 24px; border-bottom: 1px solid var(--border, rgba(6,182,212,.18)); }
.ffdc-tab { appearance: none; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 11px 18px; font: inherit; font-size: .92rem; font-weight: 600; color: var(--muted, #64748b); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; border-radius: 10px 10px 0 0; transition: color .15s ease, background .15s ease; }
.ffdc-tab:hover { color: var(--deep, #164e63); background: var(--bg-soft, #f8fdff); }
.ffdc-tab.is-active { color: var(--primary, #06b6d4); border-bottom-color: var(--primary, #06b6d4); }
.ffdc-tab i { font-size: .9em; }
.ffdc-tabpane { display: none; }
.ffdc-tabpane.is-active { display: block; }
@media (max-width: 560px) { .ffdc-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; } .ffdc-tab { padding: 11px 14px; white-space: nowrap; } }

/* ── Stat tiles ──────────────────────────────────────────────────────────── */
.ffdc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
.ffdc-tile { border-radius: 18px; padding: 20px 22px; color: #fff; position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.18); box-shadow: 0 6px 18px rgba(15,23,42,.10), inset 0 1px 0 rgba(255,255,255,.22); transition: var(--transition, all .25s cubic-bezier(.4,0,.2,1)); }
.ffdc-tile i { position: absolute; right: 16px; top: 16px; font-size: 2.2rem; opacity: .42; }
.ffdc-tile .ffdc-tile-num { font-family: 'Josefin Sans', sans-serif; font-size: 2rem; font-weight: 700; line-height: 1.05; }
.ffdc-tile .ffdc-tile-label { font-size: .8rem; opacity: .95; margin-top: 5px; }
.ffdc-tile .ffdc-tile-sub { font-size: .72rem; opacity: .82; margin-top: 7px; display: flex; align-items: center; gap: 5px; }
.ffdc-tile-divers   { background: linear-gradient(135deg, #10b981, #059669); }
.ffdc-tile-business { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.ffdc-tile-month    { background: linear-gradient(135deg, #1d4ed8, #1e3a8a); }
.ffdc-tile-top      { background: linear-gradient(135deg, #f59e0b, #d97706); }
@media (prefers-reduced-motion: no-preference) {
  .ffdc-tile:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(15,23,42,.16), inset 0 1px 0 rgba(255,255,255,.28); }
}

/* ── Panels + grid ───────────────────────────────────────────────────────── */
.ffdc-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; align-items: start; }
.ffdc-panel { background: #fff; border: 1px solid var(--border, rgba(6,182,212,.16)); border-radius: 18px; padding: 20px 22px; margin-bottom: 22px; box-shadow: 0 8px 32px rgba(6,95,120,.06); transition: var(--transition, all .25s cubic-bezier(.4,0,.2,1)); }
@media (prefers-reduced-motion: no-preference) {
  .ffdc-panel:hover { border-color: var(--border-hover, rgba(6,182,212,.45)); box-shadow: 0 12px 30px rgba(6,182,212,.10), 0 6px 14px rgba(15,23,42,.05); }
}
.ffdc-panel h2 { font-size: 1.1rem; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.ffdc-panel h2 i {
  background: linear-gradient(135deg, rgba(16,185,129,.96) 0%, rgba(6,182,212,.96) 50%, rgba(29,78,216,.96) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.ffdc-panel .ffdc-panel-note { font-size: .8rem; color: #8a979d; margin: 0 0 14px; }
.ffdc-empty { color: #8a979d; font-size: .9rem; padding: 8px 0; }
.ffdc-empty a { color: var(--primary-hover, #0891b2); }

/* ── Charts (custom SVG, zero deps) ──────────────────────────────────────── */
.ffdc-bars { display: grid; gap: 11px; margin-top: 6px; }
.ffdc-bar-row { display: grid; grid-template-columns: 132px 1fr auto; gap: 12px; align-items: center; }
.ffdc-bar-label { font-size: .85rem; color: var(--navy, #0f172a); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ffdc-bar-track { height: 14px; background: #eef5f7; border-radius: 999px; overflow: hidden; }
.ffdc-bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, rgba(16,185,129,.95), rgba(6,182,212,.95) 60%, rgba(29,78,216,.95)); width: 0; transition: width .9s cubic-bezier(.22,.61,.36,1); }
.ffdc-bar-val { font-size: .82rem; font-weight: 700; color: var(--deep, #164e63); min-width: 30px; text-align: right; }
.ffdc-bar-val small { color: #9aa7ad; font-weight: 500; }

.ffdc-trend { width: 100%; height: auto; display: block; }
.ffdc-trend .ffdc-trend-area { fill: url(#ffdc-grad-area); }
.ffdc-trend .ffdc-trend-line { fill: none; stroke: var(--primary, #06b6d4); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.ffdc-trend .ffdc-trend-dot { fill: #fff; stroke: var(--primary, #06b6d4); stroke-width: 2; }
.ffdc-trend-x { font: 600 9px 'Roboto', sans-serif; fill: #9aa7ad; }

/* ── Tables ──────────────────────────────────────────────────────────────── */
.ffdc-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ffdc-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.ffdc-table th { text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: #93a2a8; padding: 0 10px 9px; white-space: nowrap; }
.ffdc-table td { padding: 11px 10px; border-top: 1px solid #eef3f5; vertical-align: middle; }
.ffdc-table tbody tr { transition: background .15s ease; }
.ffdc-table tbody tr:hover { background: #f6fbfc; }
.ffdc-r { text-align: right; }
.ffdc-strong { font-weight: 700; color: var(--navy, #0f172a); }
.ffdc-muted { color: #8a979d; font-size: .82rem; }
.ffdc-badge { font-size: .72rem; padding: 3px 10px; border-radius: 999px; background: #eef3f5; color: #5b6b73; text-transform: capitalize; font-weight: 600; white-space: nowrap; }
.ffdc-badge.is-converted { background: rgba(34,197,94,.15); color: #15803d; }
.ffdc-badge.is-lead { background: rgba(6,182,212,.14); color: #0e7490; }
.ffdc-badge.is-lost { background: rgba(232,69,69,.12); color: #b91c1c; }
.ffdc-badge.is-active { background: rgba(34,197,94,.15); color: #15803d; }
.ffdc-badge.is-suspended { background: #eef3f5; color: #6b7a80; }
.ffdc-agency { font-size: .7rem; font-weight: 800; letter-spacing: .04em; padding: 2px 7px; border-radius: 6px; }
.ffdc-agency.padi { background: #e0f2fe; color: #0369a1; }
.ffdc-agency.ssi { background: #fef3c7; color: #92400e; }

/* Filter bar */
.ffdc-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 14px; }
.ffdc-filters select { padding: 8px 12px; border: 1px solid #d4dee2; border-radius: 10px; font: inherit; font-size: .85rem; background: #fff; color: var(--deep, #164e63); }
.ffdc-filters select:focus { outline: none; border-color: var(--primary, #06b6d4); box-shadow: 0 0 0 3px rgba(6,182,212,.18); }
.ffdc-filters .ffdc-spacer { flex: 1; }

/* ── Profile / payouts ───────────────────────────────────────────────────── */
.ffdc-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.ffdc-form-grid .ffdc-col-2 { grid-column: 1 / -1; }
@media (max-width: 640px) { .ffdc-form-grid { grid-template-columns: 1fr; } }
.ffdc-readonly-row { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: #6b7a80; margin: 0 0 14px; }
.ffdc-readonly-row b { color: var(--deep, #164e63); }

/* ── Admin console ───────────────────────────────────────────────────────── */
.ffdc-tabs { display: inline-flex; gap: 4px; background: #eef3f5; padding: 4px; border-radius: 999px; margin-bottom: 22px; flex-wrap: wrap; }
/* On phones, keep tabs as one readable swipeable row instead of a cramped wrap. */
@media (max-width: 600px) {
  .ffdc-tabs { display: flex; flex-wrap: nowrap; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; border-radius: 16px; }
  .ffdc-tabs::-webkit-scrollbar { display: none; }
  .ffdc-tabs button { flex: 0 0 auto; white-space: nowrap; padding: 9px 14px; }
}
.ffdc-tabs button { border: 1px solid transparent; background: none; padding: 9px 18px; border-radius: 999px; font: inherit; font-size: .88rem; font-weight: 700; color: #5b6b73; cursor: pointer; transition: var(--transition, all .25s ease); display: inline-flex; align-items: center; gap: 7px; }
.ffdc-tabs button:hover:not(.is-active) { color: var(--primary, #06b6d4); }
.ffdc-tabs button.is-active { color: #fff;
  background: linear-gradient(135deg, rgba(16,185,129,.96) 0%, rgba(6,182,212,.96) 50%, rgba(29,78,216,.96) 100%);
  box-shadow: 0 4px 12px rgba(29,78,216,.16), inset 0 1px 0 rgba(255,255,255,.28); }
.ffdc-tab-pane { display: none; }
.ffdc-tab-pane.is-active { display: block; }

.ffdc-centre-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; align-items: stretch; }
.ffdc-centre-card { background: #fff; border: 1px solid var(--border, rgba(6,182,212,.16)); border-radius: 16px; padding: 18px; transition: var(--transition, all .25s ease); display: flex; flex-direction: column; }
@media (prefers-reduced-motion: no-preference) {
  .ffdc-centre-card:hover { transform: translateY(-3px); border-color: var(--primary, #06b6d4); box-shadow: 0 12px 26px rgba(6,182,212,.13), 0 5px 12px rgba(15,23,42,.05); }
}
.ffdc-centre-card h3 { font-size: 1.02rem; line-height: 1.25; margin: 0 0 4px; min-height: 2.5em; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.ffdc-centre-card h3 .ffdc-badge { flex-shrink: 0; margin-top: 2px; }
.ffdc-centre-card .ffdc-cc-loc { font-size: .78rem; color: #8a979d; margin: 0 0 12px; min-height: 2.3em; } /* even height so stats line up across cards */
.ffdc-cc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--border, rgba(6,182,212,.16)); border-radius: 10px; overflow: hidden; background: var(--bg-soft, #f8fdff); margin-bottom: 14px; }
.ffdc-cc-stat { padding: 11px 6px; text-align: center; border-right: 1px solid var(--border, rgba(6,182,212,.16)); }
.ffdc-cc-stat:last-child { border-right: 0; }
.ffdc-cc-val { font-family: 'Josefin Sans', sans-serif; font-size: 1.05rem; font-weight: 700; color: var(--deep, #164e63); }
.ffdc-cc-key { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: #94a3b8; margin-top: 2px; }
.ffdc-cc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ffdc-centre-card .ffdc-cc-actions { margin-top: auto; } /* pin buttons to the bottom so rows align */
/* admin: a centre's submitted courses (toggled under the card) */
.ffdc-centre-courses { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border, rgba(6,182,212,.25)); }
.ffdc-cc-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .76rem; color: var(--deep, #164e63); margin-bottom: 8px; }
.ffdc-cc-meta b { font-weight: 700; }
.ffdc-cc-courselist { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.ffdc-cc-courselist li { font-size: .82rem; color: var(--navy, #0f172a); padding: 6px 10px; background: var(--bg-soft, #f8fdff); border: 1px solid var(--border, rgba(6,182,212,.14)); border-radius: 8px; }

.ffdc-admin-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 900px) { .ffdc-admin-cols { grid-template-columns: 1fr; } .ffdc-grid { grid-template-columns: 1fr; } }

/* ── Modal ───────────────────────────────────────────────────────────────── */
.ffdc-modal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: flex-start; justify-content: center; padding: 60px 20px 20px; overflow-y: auto; }
.ffdc-modal.is-open { display: flex; }
.ffdc-modal-backdrop { position: fixed; inset: 0; background: rgba(15,23,42,.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.ffdc-modal-box { position: relative; background: #fff; border-radius: 18px; padding: 26px 24px; width: 100%; max-width: 520px; box-shadow: 0 24px 60px -20px rgba(15,23,42,.5); }
.ffdc-modal-box h3 { font-family: 'Josefin Sans', sans-serif; color: var(--navy, #0f172a); font-size: 1.2rem; margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
.ffdc-modal-box h3 i { color: var(--secondary, #0d9488); }
.ffdc-modal-box .ffdc-sub { color: #5b6b73; font-size: .85rem; margin: 0 0 16px; }
.ffdc-modal-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.ffdc-modal-actions .ffdc-btn, .ffdc-modal-actions .ffdc-btn-link { width: auto; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 980px) { .ffdc-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 820px) {
  .ffdc-grid, .ffdc-admin-cols { grid-template-columns: 1fr; }
  .ffdc-bar-row { grid-template-columns: 104px 1fr auto; }
}
@media (max-width: 520px) { .ffdc-stats { grid-template-columns: 1fr; } }

/* ── Onboarding wizard ───────────────────────────────────────────────────── */
.ffdc-steps { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.ffdc-step { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 700; color: #93a2a8; }
.ffdc-step span { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 999px; background: #eef3f5; color: #93a2a8; font-size: .78rem; }
.ffdc-step.is-active { color: var(--deep, #164e63); }
.ffdc-step.is-active span { color: #fff; background: linear-gradient(135deg, rgba(16,185,129,.96), rgba(6,182,212,.96) 60%, rgba(29,78,216,.96)); }
.ffdc-ob-pane { display: none; }
.ffdc-ob-pane.is-active { display: block; }
/* Breathing room between the step-2 heading and the form fields. */
#ffdc-ob-form { margin-top: 14px; }
.ffdc-ob-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.ffdc-ob-head h2 { margin-bottom: 4px; }
.ffdc-ob-head .ffdc-btn-sm { flex-shrink: 0; }
.ffdc-ob-results { display: grid; gap: 10px; margin: 6px 0 14px; }
.ffdc-ob-result { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--border, rgba(6,182,212,.16)); border-radius: 12px; background: var(--bg-soft, #f8fdff); }
.ffdc-ob-result .ffdc-btn-sm { width: auto; flex-shrink: 0; }
.ffdc-ob-newrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 8px; border-top: 1px dashed #e3eaed; }
.ffdc-ob-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.ffdc-ob-nav .ffdc-btn-link { width: auto; }
.ffdc-ob-nav .ffdc-btn-sm { width: auto; }
.ffdc-ob-state { text-align: center; padding: 38px 24px; }
.ffdc-ob-state h2 { justify-content: center; text-align: center; }
.ffdc-ob-icon { font-size: 2.6rem; margin-bottom: 12px; }
.ffdc-ob-icon-ok { color: #15803d; }
.ffdc-ob-icon-wait { color: var(--accent-hover, #d97706); }

/* ── Logo + gallery uploads ──────────────────────────────────────────────── */
.ffdc-logo-row { display: flex; align-items: center; gap: 16px; }
.ffdc-logo-preview { width: 76px; height: 76px; border-radius: 14px; border: 1px solid var(--border, rgba(6,182,212,.16)); background: var(--bg-soft, #f8fdff); display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; color: #b6c4ca; font-size: 1.4rem; }
.ffdc-logo-preview img { width: 100%; height: 100%; object-fit: cover; }
.ffdc-uplabel { display: block; font-size: .82rem; font-weight: 600; color: var(--deep, #164e63); margin-bottom: 6px; }
.ffdc-upbtn { width: auto; cursor: pointer; }
.ffdc-up-hint { margin-left: 10px; font-size: .76rem; }
.ffdc-gallery { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 10px; }
.ffdc-gthumb { position: relative; width: 84px; height: 64px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border, rgba(6,182,212,.16)); }
.ffdc-gthumb img { width: 100%; height: 100%; object-fit: cover; }
.ffdc-gthumb button { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 999px; border: 0; background: rgba(15,23,42,.62); color: #fff; cursor: pointer; font-size: 14px; line-height: 1; }

/* ── Tickable pills (agencies) + course checklist ────────────────────────── */
.ffdc-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.ffdc-check-pill { display: inline-flex; align-items: center; gap: 0; padding: 8px 15px; border: 1px solid var(--border-strong, rgba(6,182,212,.3)); border-radius: 999px; cursor: pointer; font-size: .85rem; font-weight: 600; color: var(--deep, #164e63); background: #fff; user-select: none; line-height: 1; }
/* Reset the global .ffdc-field text-input styling that bleeds onto these checkboxes, and
   set the box→label gap with an explicit margin (flex `gap` renders unreliably here). */
.ffdc-check-pill input[type="checkbox"] { appearance: checkbox; -webkit-appearance: checkbox; accent-color: var(--primary, #06b6d4); width: 16px; height: 16px; min-width: 16px; flex-shrink: 0; margin: 0 9px 0 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; vertical-align: middle; align-self: center; cursor: pointer; }
.ffdc-check-pill span { line-height: 1; align-self: center; }

/* ── Glassmorphic searchable combobox (destination) ──────────────────────── */
.ffdc-combo { position: relative; }
.ffdc-combo-trigger { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid #d4dee2; border-radius: 12px; background: #fff; font: inherit; color: var(--navy, #0f172a); cursor: pointer; text-align: left; box-sizing: border-box; }
.ffdc-combo-trigger[aria-expanded="true"] { border-color: var(--primary, #06b6d4); box-shadow: 0 0 0 3px rgba(6,182,212,.18); }
.ffdc-combo-value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ffdc-combo-value.ffdc-combo-placeholder { color: #9aa7ad; }
.ffdc-combo-chev { color: var(--primary, #06b6d4); transition: transform .2s ease; flex-shrink: 0; font-size: .82rem; }
.ffdc-combo-trigger[aria-expanded="true"] .ffdc-combo-chev { transform: rotate(180deg); }
.ffdc-combo-panel { position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; right: 0; border-radius: 14px; overflow: hidden;
  background: rgba(255,255,255,.82); backdrop-filter: blur(22px) saturate(180%); -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(6,182,212,.25); box-shadow: 0 18px 50px -18px rgba(15,23,42,.42); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .ffdc-combo-panel { background: #fff; } }
.ffdc-combo-searchbox { display: flex; align-items: center; gap: 8px; padding: 11px 13px; border-bottom: 1px solid rgba(15,23,42,.08); }
.ffdc-combo-searchbox i { color: #9aa7ad; }
.ffdc-combo-searchbox input { flex: 1; border: 0; background: none; font: inherit; padding: 3px 0; }
.ffdc-combo-searchbox input:focus { outline: none; }
.ffdc-combo-list { max-height: 270px; overflow-y: auto; padding: 6px; }
.ffdc-combo-list::-webkit-scrollbar { width: 8px; }
.ffdc-combo-list::-webkit-scrollbar-thumb { background: rgba(6,182,212,.5); border-radius: 999px; }
.ffdc-combo-group { font-size: .66rem; text-transform: uppercase; letter-spacing: .09em; color: #8a979d; font-weight: 800; padding: 9px 10px 4px; }
.ffdc-combo-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; text-align: left; border: 0; background: none; font: inherit; padding: 9px 10px; border-radius: 9px; cursor: pointer; }
.ffdc-combo-opt:hover { background: rgba(6,182,212,.10); }
.ffdc-combo-opt-name { font-weight: 600; color: var(--navy, #0f172a); }
.ffdc-combo-opt-sub { font-size: .76rem; color: #8a979d; }
.ffdc-combo-empty { color: #8a979d; font-size: .86rem; padding: 12px 10px; margin: 0; }
.ffdc-checks .ffdc-check-pill:has(input:checked) { background: var(--primary-soft, #ecfeff); border-color: var(--primary, #06b6d4); }

.ffdc-course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 10px; }
.ffdc-course-check { display: flex; flex-direction: column; align-items: stretch; gap: 7px; padding: 8px 10px; border: 1px solid var(--border, rgba(6,182,212,.16)); border-radius: 12px; background: var(--bg-soft, #f8fdff); }
.ffdc-course-check.is-on { border-color: var(--primary, #06b6d4); background: #fff; }
.ffdc-course-top { display: flex; align-items: center; gap: 8px; }
.ffdc-course-note { width: 100%; padding: 6px 10px; border: 1px solid #e2e8ec; border-radius: 8px; font: inherit; font-size: .78rem; background: #fff; color: var(--deep, #164e63); }
.ffdc-course-note::placeholder { color: #aab6bd; }
.ffdc-course-note:focus { outline: none; border-color: var(--primary, #06b6d4); box-shadow: 0 0 0 3px rgba(6,182,212,.18); }
.ffdc-course-check .ffdc-check-pill { border: 0; background: none; padding: 0; flex: 1; min-width: 0; }
.ffdc-course-check .ffdc-check-pill span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ffdc-course-price { width: 78px; flex-shrink: 0; padding: 7px 10px; border: 1px solid #d4dee2; border-radius: 8px; font: inherit; font-size: .82rem; background: #fff; }
.ffdc-course-price:focus { outline: none; border-color: var(--primary, #06b6d4); box-shadow: 0 0 0 3px rgba(6,182,212,.18); }
/* price field with a currency-symbol prefix */
.ffdc-price-wrap { display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0; }
.ffdc-price-wrap .ffdc-cur { font-size: .82rem; font-weight: 700; color: var(--deep, #164e63); }
/* "Other" free-text agency field, shown when the Other pill is ticked */
.ffdc-other-text { flex: 1; min-width: 160px; padding: 8px 14px; border: 1px solid #d4dee2; border-radius: 999px; font: inherit; font-size: .85rem; background: #fff; }
.ffdc-other-text:focus { outline: none; border-color: var(--primary, #06b6d4); box-shadow: 0 0 0 3px rgba(6,182,212,.18); }
/* custom (off-catalogue) course rows span the full grid width for an editable name */
.ffdc-course-check[data-custom], .ffdc-course-add { grid-column: 1 / -1; }
.ffdc-course-cname { flex: 1; min-width: 0; padding: 7px 12px; border: 1px solid #d4dee2; border-radius: 8px; font: inherit; font-size: .85rem; background: #fff; }
.ffdc-course-cname:focus { outline: none; border-color: var(--primary, #06b6d4); box-shadow: 0 0 0 3px rgba(6,182,212,.18); }
.ffdc-course-rm { flex-shrink: 0; width: 30px; height: 30px; border: 1px solid #e3b3b3; border-radius: 8px; background: #fff; color: #b23b3b; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.ffdc-course-rm:hover { background: #fff1f1; }
.ffdc-course-add { padding-top: 4px; }
/* tax note above the course list — reflects the centre's Profile-tab tax setting */
.ffdc-tax-note { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 9px 13px; border-radius: 10px; background: var(--primary-soft, #ecfeff); border: 1px solid var(--border, rgba(6,182,212,.2)); color: var(--deep, #164e63); font-size: .82rem; line-height: 1.4; }
.ffdc-tax-note i { color: var(--secondary, #0d9488); flex-shrink: 0; }
/* yes/no toggle row (tax-inclusive, public listing) */
.ffdc-toggle { display: inline-flex; align-items: center; cursor: pointer; font-size: .9rem; font-weight: 600; color: var(--deep, #164e63); line-height: 1.3; }
/* Reset the global .ffdc-field text-input styling that bleeds onto this checkbox, and
   set the box→label gap with an explicit margin (flex `gap` renders unreliably here). */
.ffdc-toggle input[type="checkbox"] { appearance: checkbox; -webkit-appearance: checkbox; accent-color: var(--primary, #06b6d4); width: 18px; height: 18px; min-width: 18px; flex-shrink: 0; margin: 0 10px 0 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; vertical-align: middle; align-self: center; cursor: pointer; }
.ffdc-toggle span { align-self: center; }

/* ── Courses & team add rows ─────────────────────────────────────────────── */
.ffdc-courses-add, .ffdc-team-add { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.ffdc-courses-add select, .ffdc-courses-add input, .ffdc-team-add input, .ffdc-team-add select { padding: 9px 12px; border: 1px solid #d4dee2; border-radius: 10px; font: inherit; font-size: .85rem; background: #fff; }
.ffdc-courses-add select:focus, .ffdc-courses-add input:focus, .ffdc-team-add input:focus, .ffdc-team-add select:focus { outline: none; border-color: var(--primary, #06b6d4); box-shadow: 0 0 0 3px rgba(6,182,212,.18); }
.ffdc-courses-add .ffdc-btn-sm, .ffdc-team-add .ffdc-btn-sm { width: auto; }
.ffdc-iconbtn { border: 0; background: #eef3f5; color: #6b7a80; width: 26px; height: 26px; border-radius: 8px; cursor: pointer; font-size: 16px; line-height: 1; }
.ffdc-iconbtn:hover { background: rgba(232,69,69,.12); color: #b91c1c; }

/* ── Admin: tab badge + applications ─────────────────────────────────────── */
.ffdc-tab-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent, #f59e0b); color: #fff; font-size: .68rem; font-weight: 800; }
.ffdc-claim-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.ffdc-claim-section { margin-bottom: 26px; }
.ffdc-claim-section-h { font-size: .95rem; color: var(--deep, #164e63); margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.ffdc-claim-section-h span { font-size: .72rem; font-weight: 800; background: #eef3f5; color: #5b6b73; border-radius: 999px; padding: 1px 9px; }
.ffdc-claim-head { flex-wrap: wrap; }
.ffdc-badge-type { margin-left: auto; }
.ffdc-claim-card { background: #fff; border: 1px solid var(--border, rgba(6,182,212,.16)); border-radius: 16px; padding: 16px 18px; }
.ffdc-claim-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.ffdc-claim-head h3 { font-size: 1rem; margin: 0; }
.ffdc-claim-card .ffdc-cc-actions { margin-top: 12px; }
.ffdc-claim-card .ffdc-cc-actions .ffdc-btn-sm { width: auto; }
.ffdc-claim-toggle { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--primary-hover, #0891b2); font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; padding: 6px 0 2px; }
.ffdc-claim-details { margin: 6px 0 2px; border-top: 1px solid rgba(15,23,42,.08); padding-top: 10px; display: grid; gap: 7px; }
.ffdc-claim-details[hidden] { display: none; } /* class display:grid would otherwise override [hidden] */
.ffdc-cd-row { display: grid; grid-template-columns: 116px 1fr; gap: 10px; font-size: .84rem; align-items: start; }
.ffdc-cd-k { color: #8a979d; font-weight: 600; }
.ffdc-cd-v { color: var(--navy, #0f172a); word-break: break-word; }
.ffdc-cd-v a { color: var(--primary-hover, #0891b2); }
@media (max-width: 480px) { .ffdc-cd-row { grid-template-columns: 92px 1fr; } }
