/* ==========================================================================
   Backoffice Mini Liga Aldeia Kids (v2.0.0)
   Referência visual: kits Adobe XD "Support Tickets Admin Dashboard" (KPIs,
   tabelas, estados por cor, contactos com seleção) e "Grisfox" (navegação
   lateral por secções), com as cores da Mini Liga.
   ========================================================================== */

.bo {
	--bo-bg: #f4f5f7;
	--bo-card: #ffffff;
	--bo-ink: #111318;
	--bo-ink-2: #3b3f48;
	--bo-muted: #6b7280;
	--bo-faint: #9aa0aa;
	--bo-line: #e8e9ed;
	--bo-line-2: #f0f1f4;
	--bo-red: #c8102e;
	--bo-red-soft: #fdecef;
	--bo-gold: #f5b400;
	--bo-gold-soft: #fff6db;
	--bo-gold-ink: #8a5a00;
	--bo-green: #15803d;
	--bo-green-soft: #e8f6ee;
	--bo-amber: #b45309;
	--bo-amber-soft: #fff4e0;
	--bo-blue: #1d4ed8;
	--bo-blue-soft: #eaf0ff;
	--bo-side: #0b0b0d;
	--bo-radius: 14px;
	--bo-shadow: 0 1px 2px rgba(16, 19, 24, .04), 0 4px 16px rgba(16, 19, 24, .04);
	--bo-shadow-lg: 0 12px 40px rgba(16, 19, 24, .16);
	--bo-font: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

	display: flex;
	min-height: 100vh;
	background: var(--bo-bg);
	color: var(--bo-ink);
	font-family: var(--bo-font);
	font-size: 14px;
	line-height: 1.45;
}
.bo *, .bo *::before, .bo *::after { box-sizing: border-box; }
.bo button { font-family: inherit; }
.bo a { color: inherit; }
.bo .tnum { font-variant-numeric: tabular-nums; }
.bo-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Barra lateral ---------- */
.bo-side {
	position: sticky; top: 0; z-index: 40;
	flex: 0 0 248px; width: 248px; height: 100vh; overflow-y: auto;
	background: var(--bo-side); color: #c9ccd3;
	display: flex; flex-direction: column;
	scrollbar-width: thin;
}
.bo-brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; color: #fff; text-decoration: none; }
.bo-brand img { width: 40px; height: 40px; object-fit: contain; }
.bo-brand b { display: block; font-size: 14px; font-weight: 800; letter-spacing: .2px; line-height: 1.15; }
.bo-brand span { display: block; font-size: 11.5px; color: #8b9099; }
.bo-nav { padding: 6px 10px 18px; flex: 1; }
.bo-nav-section { margin: 18px 10px 6px; font-size: 10.5px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: #6b7079; }
.bo-nav-item {
	position: relative; display: flex; align-items: center; gap: 11px; width: 100%;
	padding: 9px 12px; margin: 1px 0; border: 0; border-radius: 10px;
	background: transparent; color: #c9ccd3; font-size: 13.5px; font-weight: 700; text-align: left; cursor: pointer;
	transition: background .15s, color .15s;
}
.bo-nav-item svg { flex: 0 0 18px; width: 18px; height: 18px; opacity: .85; }
.bo-nav-item:hover { background: #17181c; color: #fff; }
.bo-nav-item:focus-visible { outline: 2px solid var(--bo-gold); outline-offset: 1px; }
.bo-nav-item.active { background: #1c1d22; color: #fff; }
.bo-nav-item.active::before { content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--bo-red); }
.bo-nav-item.active svg { color: var(--bo-gold); opacity: 1; }
.bo-nav-badge { margin-left: auto; min-width: 20px; padding: 1px 7px; border-radius: 999px; background: var(--bo-red); color: #fff; font-size: 11px; font-weight: 800; text-align: center; }
.bo-nav-badge.soft { background: #2a2b31; color: #d6d8dd; }
.bo-side-foot { padding: 14px 18px 18px; border-top: 1px solid #1c1d22; font-size: 11.5px; color: #6b7079; }

/* ---------- Área principal ---------- */
.bo-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bo-top {
	position: sticky; top: 0; z-index: 30;
	display: flex; align-items: center; gap: 14px; height: 64px; padding: 0 28px;
	background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--bo-line);
}
.bo-icon-btn.bo-burger { display: none; }
.bo-top-title { min-width: 0; }
.bo-top-title small { display: block; font-size: 11.5px; font-weight: 700; color: var(--bo-faint); text-transform: uppercase; letter-spacing: .8px; }
.bo-top-title b { display: block; font-size: 17px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bo-top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.bo-season-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--bo-gold-soft); color: var(--bo-gold-ink); font-size: 12px; font-weight: 800; white-space: nowrap; }
.bo-icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--bo-line); border-radius: 12px; background: #fff; color: var(--bo-ink-2); cursor: pointer; }
.bo-icon-btn:hover { border-color: #cfd2d8; color: var(--bo-ink); }
.bo-icon-btn svg { width: 19px; height: 19px; }
.bo-icon-btn .dot { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--bo-red); color: #fff; font-size: 10.5px; font-weight: 800; line-height: 19px; text-align: center; border: 2px solid #fff; }
.bo-user { display: flex; align-items: center; gap: 9px; padding: 4px 6px 4px 4px; border: 1px solid var(--bo-line); border-radius: 999px; background: #fff; }
.bo-user .av { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--bo-side); color: var(--bo-gold); font-size: 12px; font-weight: 800; }
.bo-user .who { line-height: 1.15; padding-right: 4px; }
.bo-user .who b { display: block; font-size: 12.5px; max-width: 150px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bo-user .who span { display: block; font-size: 11px; color: var(--bo-muted); }
.bo-content { padding: 26px 28px 56px; max-width: 1440px; width: 100%; }

/* ---------- Cabeçalho de página ---------- */
.bo-page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.bo-page-head h1 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.2px; }
.bo-page-head p { margin: 4px 0 0; color: var(--bo-muted); max-width: 720px; }
.bo-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Botões ---------- */
.bo-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 15px; border: 1px solid transparent; border-radius: 10px; font-size: 13px; font-weight: 800; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.bo-btn svg { width: 16px; height: 16px; }
.bo-btn-primary { background: var(--bo-red); color: #fff; }
.bo-btn-primary:hover { background: #a50d26; }
.bo-btn-dark { background: var(--bo-ink); color: #fff; }
.bo-btn-dark:hover { background: #2a2d34; }
.bo-btn-outline { background: #fff; border-color: var(--bo-line); color: var(--bo-ink); }
.bo-btn-outline:hover { border-color: #c8cbd2; }
.bo-btn-ghost { background: transparent; color: var(--bo-ink-2); }
.bo-btn-ghost:hover { background: var(--bo-line-2); }
.bo-btn-danger { background: #fff; border-color: #f4c7cf; color: var(--bo-red); }
.bo-btn-danger:hover { background: var(--bo-red-soft); }
.bo-btn-sm { height: 32px; padding: 0 11px; font-size: 12.5px; border-radius: 9px; }
.bo-btn:disabled { opacity: .5; cursor: not-allowed; }
.bo-btn:focus-visible, .bo-chip:focus-visible, .bo-seg button:focus-visible { outline: 2px solid var(--bo-gold); outline-offset: 2px; }

/* ---------- Cartões ---------- */
.bo-card { background: var(--bo-card); border: 1px solid var(--bo-line); border-radius: var(--bo-radius); box-shadow: var(--bo-shadow); }
.bo-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--bo-line-2); }
.bo-card-head h2 { margin: 0; font-size: 15px; font-weight: 800; }
.bo-card-head p { margin: 2px 0 0; font-size: 12.5px; color: var(--bo-muted); }
.bo-card-body { padding: 16px 18px; }
.bo-grid { display: grid; gap: 16px; }
.bo-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bo-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bo-grid-main { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }

/* KPI */
.bo-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 14px; margin-bottom: 20px; }
.bo-kpi { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px 16px 15px; text-align: left; border: 1px solid var(--bo-line); border-radius: var(--bo-radius); background: #fff; box-shadow: var(--bo-shadow); cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; }
.bo-kpi:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(16, 19, 24, .08); border-color: #dcdee3; }
.bo-kpi .ic { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 11px; }
.bo-kpi .ic svg { width: 19px; height: 19px; }
.bo-kpi .val { font-size: 28px; font-weight: 800; line-height: 1; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.bo-kpi .lbl { font-size: 12.5px; font-weight: 700; color: var(--bo-muted); }
.bo-kpi .sub { position: absolute; top: 16px; right: 14px; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; }
.tone-red .ic, .tone-red .sub { background: var(--bo-red-soft); color: var(--bo-red); }
.tone-gold .ic, .tone-gold .sub { background: var(--bo-gold-soft); color: var(--bo-gold-ink); }
.tone-green .ic, .tone-green .sub { background: var(--bo-green-soft); color: var(--bo-green); }
.tone-blue .ic, .tone-blue .sub { background: var(--bo-blue-soft); color: var(--bo-blue); }
.tone-ink .ic, .tone-ink .sub { background: #eef0f3; color: var(--bo-ink); }
.tone-amber .ic, .tone-amber .sub { background: var(--bo-amber-soft); color: var(--bo-amber); }
.bo-kpi.alert { border-color: #f4c7cf; }
.bo-kpi.alert .val { color: var(--bo-red); }

/* ---------- Estados ---------- */
.bo-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.bo-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.bo-pill.green { background: var(--bo-green-soft); color: var(--bo-green); }
.bo-pill.yellow { background: var(--bo-gold-soft); color: var(--bo-gold-ink); }
.bo-pill.red { background: var(--bo-red-soft); color: var(--bo-red); }
.bo-pill.gray { background: #eef0f3; color: var(--bo-muted); }
.bo-pill.blue { background: var(--bo-blue-soft); color: var(--bo-blue); }
.bo-tag { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .2px; }
.bo-tag.petizes { background: #fff1d6; color: #8a5a00; }
.bo-tag.traquinas { background: #e8eefc; color: #1d3f9c; }

/* ---------- Barra de ferramentas e filtros ---------- */
.bo-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--bo-line-2); }
.bo-search { position: relative; flex: 1 1 240px; min-width: 0; }
.bo-search svg { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--bo-faint); pointer-events: none; }
.bo-search input { width: 100%; height: 38px; padding: 0 12px 0 36px; border: 1px solid var(--bo-line); border-radius: 10px; background: #fff; font: inherit; color: var(--bo-ink); }
.bo-search input:focus, .bo-input:focus, .bo-select:focus { outline: none; border-color: var(--bo-ink); box-shadow: 0 0 0 3px rgba(17, 19, 24, .06); }
.bo-select, .bo-input { height: 38px; padding: 0 12px; border: 1px solid var(--bo-line); border-radius: 10px; background: #fff; font: inherit; color: var(--bo-ink); }
.bo-select { padding-right: 30px; }
.bo-input { width: 100%; }
textarea.bo-input { height: auto; min-height: 90px; padding: 10px 12px; }
.bo-seg { display: inline-flex; padding: 3px; border-radius: 11px; background: #eef0f3; }
.bo-seg button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--bo-muted); font-size: 12.5px; font-weight: 800; cursor: pointer; }
.bo-seg button svg { width: 15px; height: 15px; }
.bo-seg button.on { background: #fff; color: var(--bo-ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.bo-seg button .n { padding: 0 6px; border-radius: 999px; background: #e3e5e9; font-size: 11px; }
.bo-seg button.on .n { background: var(--bo-ink); color: #fff; }
.bo-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--bo-line); border-radius: 999px; background: #fff; color: var(--bo-ink-2); font-size: 12.5px; font-weight: 700; cursor: pointer; }
.bo-chip.on { background: var(--bo-ink); border-color: var(--bo-ink); color: #fff; }
.bo-count { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--bo-muted); white-space: nowrap; }

/* ---------- Tabelas ---------- */
.bo-table-wrap { overflow-x: auto; }
.bo-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.bo-table th { position: sticky; top: 0; padding: 11px 14px; background: #fafbfc; border-bottom: 1px solid var(--bo-line); color: var(--bo-muted); font-size: 11.5px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; text-align: left; white-space: nowrap; }
.bo-table td { padding: 12px 14px; border-bottom: 1px solid var(--bo-line-2); vertical-align: middle; }
.bo-table tbody tr { transition: background .12s; }
.bo-table tbody tr:hover { background: #fafbfc; }
.bo-table tbody tr.sel { background: #fffaf0; }
.bo-table .muted { color: var(--bo-muted); }
.bo-check { width: 17px; height: 17px; accent-color: var(--bo-ink); cursor: pointer; }
.bo-link { color: var(--bo-ink); font-weight: 800; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; font-size: inherit; }
.bo-link:hover { color: var(--bo-red); text-decoration: underline; }
.bo-mail { color: var(--bo-red); font-weight: 700; text-decoration: none; word-break: break-all; }
.bo-mail:hover { text-decoration: underline; }

/* Equipa (logo + nome) */
.bo-team { display: flex; align-items: center; gap: 11px; min-width: 0; }
.bo-logo { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 11px; background: #f1f2f5; color: var(--bo-ink-2); font-size: 12.5px; font-weight: 800; overflow: hidden; }
.bo-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.bo-logo.lg { width: 64px; height: 64px; border-radius: 16px; font-size: 18px; }
.bo-logo.sm { width: 28px; height: 28px; border-radius: 8px; font-size: 10.5px; }
.bo-team-name { min-width: 0; }
.bo-team-name b { display: block; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bo-team-name span { display: block; font-size: 12px; color: var(--bo-muted); }

/* Barra de progresso (plantel) */
.bo-meter { display: flex; align-items: center; gap: 8px; }
.bo-meter i { position: relative; flex: 0 0 64px; height: 6px; border-radius: 999px; background: #eceef1; overflow: hidden; }
.bo-meter i b { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--bo-green); }
.bo-meter.low i b { background: var(--bo-amber); }
.bo-meter span { font-size: 12.5px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* Cartões de equipa */
.bo-team-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; padding: 16px; }
.bo-team-card { display: flex; flex-direction: column; gap: 14px; padding: 16px; border: 1px solid var(--bo-line); border-radius: var(--bo-radius); background: #fff; text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.bo-team-card:hover { border-color: #d5d8de; box-shadow: 0 8px 24px rgba(16, 19, 24, .07); transform: translateY(-2px); }
.bo-team-card .top { display: flex; align-items: flex-start; gap: 12px; }
.bo-team-card .meta { display: grid; gap: 7px; font-size: 13px; }
.bo-team-card .meta div { display: flex; align-items: center; gap: 8px; color: var(--bo-ink-2); min-width: 0; }
.bo-team-card .meta svg { flex: 0 0 15px; width: 15px; height: 15px; color: var(--bo-faint); }
.bo-team-card .meta span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bo-team-card .foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 12px; border-top: 1px solid var(--bo-line-2); }
.bo-team-list { display: grid; }
.bo-team-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) minmax(0, 1.4fr) auto auto; align-items: center; gap: 14px; padding: 12px 18px; border: 0; border-bottom: 1px solid var(--bo-line-2); background: #fff; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.bo-team-row:hover { background: #fafbfc; }

/* ---------- Jogos ---------- */
.bo-games { display: grid; gap: 10px; padding: 14px; }
.bo-game { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 14px 16px; border: 1px solid var(--bo-line); border-left-width: 4px; border-radius: 12px; background: #fff; }
.bo-game.st-concluido { border-left-color: var(--bo-green); }
.bo-game.st-agendado { border-left-color: var(--bo-gold); }
.bo-game.st-pendente { border-left-color: var(--bo-red); background: #fffdfd; }
.bo-game .when b { display: block; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.bo-game .when span { display: block; font-size: 12px; color: var(--bo-muted); font-weight: 700; }
.bo-game .match { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; }
.bo-game .side { display: flex; align-items: center; gap: 9px; min-width: 0; font-weight: 800; }
.bo-game .side.away { justify-content: flex-end; text-align: right; }
.bo-game .side span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bo-game .vs { min-width: 54px; padding: 4px 8px; border-radius: 8px; background: #f2f3f5; color: var(--bo-muted); font-size: 12px; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }
.bo-game .vs.score { background: var(--bo-ink); color: #fff; font-size: 14px; }
.bo-game .info { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.bo-game .place { font-size: 12px; color: var(--bo-muted); display: flex; align-items: center; gap: 5px; }
.bo-game .place svg { width: 13px; height: 13px; }
.bo-day { margin: 8px 2px 2px; font-size: 12px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--bo-muted); }
.bo-legend { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Notificações ---------- */
.bo-notes { display: grid; }
.bo-note { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 13px 18px; border-bottom: 1px solid var(--bo-line-2); }
.bo-note:last-child { border-bottom: 0; }
.bo-note .ic { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 11px; }
.bo-note .ic svg { width: 18px; height: 18px; }
.bo-note.danger .ic { background: var(--bo-red-soft); color: var(--bo-red); }
.bo-note.warning .ic { background: var(--bo-amber-soft); color: var(--bo-amber); }
.bo-note.info .ic { background: var(--bo-blue-soft); color: var(--bo-blue); }
.bo-note b { display: block; font-weight: 800; }
.bo-note span { display: block; font-size: 12.5px; color: var(--bo-muted); }

/* ---------- Gaveta lateral / modal ---------- */
.bo-overlay { position: fixed; inset: 0; z-index: 90; display: flex; justify-content: flex-end; background: rgba(10, 11, 14, .45); backdrop-filter: blur(2px); animation: bo-fade .18s ease; }
.bo-drawer { display: flex; flex-direction: column; width: min(620px, 100vw); height: 100%; background: #fff; box-shadow: var(--bo-shadow-lg); animation: bo-slide .22s cubic-bezier(.2, .8, .2, 1); }
.bo-drawer.wide { width: min(880px, 100vw); }
.bo-drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--bo-line); }
.bo-drawer-head h2 { margin: 0; font-size: 17px; font-weight: 800; }
.bo-drawer-head p { margin: 3px 0 0; color: var(--bo-muted); font-size: 12.5px; }
.bo-drawer-body { flex: 1; overflow-y: auto; padding: 20px 22px; }
.bo-drawer-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--bo-line); background: #fafbfc; }
.bo-modal-wrap { position: fixed; inset: 0; z-index: 95; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(10, 11, 14, .5); }
.bo-modal { width: min(460px, 100%); padding: 22px; border-radius: 16px; background: #fff; box-shadow: var(--bo-shadow-lg); }
.bo-modal h3 { margin: 0 0 8px; font-size: 17px; }
.bo-modal p { margin: 0 0 18px; color: var(--bo-muted); }
@keyframes bo-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bo-slide { from { transform: translateX(32px); opacity: .6; } to { transform: none; opacity: 1; } }

/* Formulários */
.bo-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.bo-field { display: grid; gap: 6px; min-width: 0; }
.bo-field.full { grid-column: 1 / -1; }
.bo-field > span { font-size: 12px; font-weight: 800; color: var(--bo-ink-2); }
.bo-field small { font-size: 11.5px; color: var(--bo-muted); }
.bo-section-title { grid-column: 1 / -1; margin: 8px 0 -2px; font-size: 11.5px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--bo-muted); }
.bo-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 700; }
.bo-switch input { width: 38px; height: 22px; appearance: none; border-radius: 999px; background: #d7d9de; position: relative; cursor: pointer; transition: background .15s; }
.bo-switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.bo-switch input:checked { background: var(--bo-green); }
.bo-switch input:checked::after { left: 19px; }

/* Alertas e mensagens */
.bo-alert { display: flex; gap: 10px; padding: 12px 14px; border-radius: 11px; font-size: 13px; }
.bo-alert svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 1px; }
.bo-alert.error { background: var(--bo-red-soft); color: #8f0b22; }
.bo-alert.ok { background: var(--bo-green-soft); color: #14532d; }
.bo-alert.warn { background: var(--bo-amber-soft); color: #7c3a06; }
.bo-alert.info { background: var(--bo-blue-soft); color: #1e3a8a; }
.bo-empty { padding: 42px 18px; text-align: center; color: var(--bo-muted); }
.bo-empty svg { width: 34px; height: 34px; color: #c4c8cf; margin-bottom: 8px; }
.bo-empty b { display: block; color: var(--bo-ink); font-size: 14.5px; margin-bottom: 3px; }
.bo-skel { height: 96px; border-radius: var(--bo-radius); background: linear-gradient(90deg, #eceef1 0, #f6f7f9 50%, #eceef1 100%); background-size: 200% 100%; animation: bo-sk 1.2s infinite; }
@keyframes bo-sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.bo-toast { position: fixed; z-index: 120; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; background: var(--bo-ink); color: #fff; font-weight: 700; box-shadow: var(--bo-shadow-lg); animation: bo-fade .2s ease; }
.bo-toast.error { background: var(--bo-red); }
.bo-selbar { position: sticky; bottom: 16px; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 14px 14px; padding: 10px 12px 10px 16px; border-radius: 12px; background: var(--bo-ink); color: #fff; box-shadow: var(--bo-shadow-lg); }
.bo-selbar b { margin-right: auto; }
.bo-selbar .bo-btn-outline { background: transparent; color: #fff; border-color: #3a3d45; }
.bo-selbar .bo-btn-outline:hover { border-color: #6b7079; }

/* Listas simples */
.bo-list { display: grid; }
.bo-list-row { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--bo-line-2); }
.bo-list-row:last-child { border-bottom: 0; }
.bo-kv { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 8px 14px; font-size: 13.5px; }
.bo-kv dt { color: var(--bo-muted); font-weight: 700; }
.bo-kv dd { margin: 0; font-weight: 700; min-width: 0; overflow-wrap: anywhere; }

/* Painéis antigos reutilizados dentro do backoffice */
.bo-legacy .mlak-panel { margin: 0 0 16px; padding: 20px; border: 1px solid var(--bo-line); border-radius: var(--bo-radius); box-shadow: var(--bo-shadow); background: #fff; color: var(--bo-ink); }
.bo-legacy .mlak-panel h2 { font-size: 16px; font-weight: 800; }
.bo-legacy .mlak-sub { color: var(--bo-muted); }

/* ---------- Treinador ---------- */
.boc { display: block; min-height: 100vh; background: var(--bo-bg); }
.boc-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 22px; background: var(--bo-side); color: #fff; }
.boc-top .bo-logo { background: #1c1d22; color: var(--bo-gold); }
.boc-top b { display: block; font-size: 15px; font-weight: 800; line-height: 1.15; }
.boc-top span { display: block; font-size: 11.5px; color: #9aa0aa; }
.boc-top .bo-btn-ghost { color: #cfd2d8; margin-left: auto; }
.boc-top .bo-btn-ghost:hover { background: #1c1d22; color: #fff; }
.boc-tabs { position: sticky; top: 64px; z-index: 25; display: flex; gap: 4px; padding: 0 18px; background: #fff; border-bottom: 1px solid var(--bo-line); }
.boc-tabs button { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 14px; border: 0; background: none; color: var(--bo-muted); font-size: 13.5px; font-weight: 800; cursor: pointer; }
.boc-tabs button svg { width: 18px; height: 18px; }
.boc-tabs button.on { color: var(--bo-ink); }
.boc-tabs button.on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--bo-red); }
.boc-content { max-width: 1080px; margin: 0 auto; padding: 24px 22px 90px; }
.boc-hero { position: relative; overflow: hidden; padding: 22px; border-radius: 18px; background: var(--bo-side); color: #fff; }
.boc-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(245, 180, 0, .28), transparent 65%); pointer-events: none; }
.boc-hero small { display: block; font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--bo-gold); }
.boc-hero .date { margin-top: 10px; font-size: 26px; font-weight: 800; line-height: 1.1; }
.boc-hero .meta { display: flex; flex-wrap: wrap; gap: 14px 22px; margin-top: 14px; color: #d4d6db; font-weight: 700; }
.boc-hero .meta div { display: flex; align-items: center; gap: 7px; }
.boc-hero .meta svg { width: 16px; height: 16px; color: var(--bo-gold); }
.boc-vs { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid #23252b; }
.boc-vs .bo-logo { background: #1c1d22; color: #fff; }
.boc-vs b { font-size: 17px; }
.boc-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.boc-quick button { display: flex; align-items: center; gap: 11px; padding: 14px; border: 1px solid var(--bo-line); border-radius: 14px; background: #fff; text-align: left; font-weight: 800; font-size: 13.5px; cursor: pointer; color: var(--bo-ink); }
.boc-quick button:hover { border-color: #cfd2d8; }
.boc-quick .ic { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 38px; height: 38px; border-radius: 11px; background: var(--bo-red-soft); color: var(--bo-red); }
.boc-quick .ic svg { width: 18px; height: 18px; }
.boc-quick small { display: block; font-weight: 700; color: var(--bo-muted); font-size: 12px; }
.boc-squad { display: flex; align-items: center; gap: 18px; }
.boc-squad .big { font-size: 40px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.boc-ring { --p: 0; position: relative; flex: 0 0 74px; width: 74px; height: 74px; border-radius: 50%; background: conic-gradient(var(--bo-green) calc(var(--p) * 1%), #eceef1 0); }
.boc-ring::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #fff; }
.boc-ring span { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }
.boc-ring.low { background: conic-gradient(var(--bo-amber) calc(var(--p) * 1%), #eceef1 0); }

/* ---------- Responsivo ---------- */
@media (max-width: 1180px) {
	.bo-grid-main { grid-template-columns: minmax(0, 1fr); }
	.bo-team-row { grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr) auto; }
	.bo-team-row .hide-md { display: none; }
}
@media (max-width: 960px) {
	.bo-side { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .22s ease; box-shadow: var(--bo-shadow-lg); }
	.bo.nav-open .bo-side { transform: none; }
	.bo.nav-open::after { content: ""; position: fixed; inset: 0; z-index: 35; background: rgba(10, 11, 14, .45); }
	.bo-icon-btn.bo-burger { display: inline-flex; }
	.bo-top { padding: 0 16px; }
	.bo-content { padding: 18px 16px 48px; }
	.bo-grid-2, .bo-grid-3 { grid-template-columns: minmax(0, 1fr); }
	.bo-season-pill, .bo-user .who { display: none; }
}
@media (max-width: 720px) {
	.bo-page-head h1 { font-size: 20px; }
	.bo-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.bo-kpi { padding: 13px; }
	.bo-kpi .val { font-size: 24px; }
	.bo-kpi .sub { display: none; }
	.bo-form { grid-template-columns: minmax(0, 1fr); }
	.bo-game { grid-template-columns: minmax(0, 1fr); gap: 10px; }
	.bo-game .when { display: flex; align-items: baseline; gap: 8px; }
	.bo-game .info { flex-direction: row; justify-content: space-between; align-items: center; }
	.bo-team-row { grid-template-columns: minmax(0, 1fr) auto; }
	.bo-team-row .hide-sm { display: none; }
	.bo-note { grid-template-columns: 34px minmax(0, 1fr); }
	.bo-note > :last-child { grid-column: 2; justify-self: start; }
	.bo-kv { grid-template-columns: minmax(0, 1fr); gap: 2px; }
	.bo-kv dd { margin-bottom: 8px; }
	.bo-drawer-body { padding: 16px; }
	.bo-table.stack thead { display: none; }
	.bo-table.stack, .bo-table.stack tbody, .bo-table.stack tr, .bo-table.stack td { display: block; width: 100%; }
	.bo-table.stack tr { position: relative; padding: 12px 14px 12px 44px; border-bottom: 1px solid var(--bo-line); }
	.bo-table.stack td { padding: 3px 0; border: 0; overflow-wrap: anywhere; }
	.bo-table.stack td[data-l]::before { content: attr(data-l) ": "; font-size: 11.5px; font-weight: 800; color: var(--bo-muted); }
	.bo-table.stack td.cell-check { position: absolute; left: 14px; top: 14px; width: auto; }
	.bo-table.stack td.cell-main { font-size: 14.5px; margin-bottom: 4px; }
	.boc-quick { grid-template-columns: minmax(0, 1fr); }
	.boc-tabs { position: fixed; top: auto; bottom: 0; left: 0; right: 0; justify-content: space-around; padding: 0 0 env(safe-area-inset-bottom); border-top: 1px solid var(--bo-line); border-bottom: 0; }
	.boc-tabs button { flex: 1; flex-direction: column; gap: 3px; height: 60px; font-size: 11.5px; }
	.boc-tabs button.on::after { top: 0; bottom: auto; border-radius: 0 0 3px 3px; }
	.boc-content { padding: 16px 14px 96px; }
	.boc-hero .date { font-size: 22px; }
	/* Jogo em telemóvel: equipas em linhas próprias, nome completo. */
	.bo-game .match { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "home vs" "away vs"; row-gap: 6px; }
	.bo-game .match > .side:first-child { grid-area: home; }
	.bo-game .match > .vs { grid-area: vs; align-self: center; }
	.bo-game .match > .side.away { grid-area: away; flex-direction: row-reverse; justify-content: flex-end; text-align: left; }
	.bo-game .side span { white-space: normal; }
	.bo-game .info { flex-wrap: wrap; gap: 6px 10px; }
	/* Separadores com muitos itens deslizam em vez de sair do ecrã. */
	.bo-seg { display: flex; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
	.bo-seg button { flex: 0 0 auto; white-space: nowrap; }
	.bo-top-right > a.bo-icon-btn { display: none; }
	.bo-toolbar > label:has(.bo-select) { flex: 1 1 140px; }
	.bo-toolbar .bo-select { width: 100%; }
	.bo-top-title b { overflow: hidden; text-overflow: ellipsis; }
}

/* Painel do treinador partido em dois separadores (Plantel / Equipa). */
.bo-only-players > .mlak-panel:first-child { display: none; }
.bo-only-contacts > .mlak-panel:nth-child(2) { display: none; }
.bo-only-contacts > .mlak-panel:first-child > .mlak-tag,
.bo-only-contacts > .mlak-panel:first-child > h2 { display: none; }
.bo .muted { color: var(--bo-muted); }

/* =====================================================================
   v2.1.0 — Equipas por clube, contas de acesso e "Ver como treinador"
   ===================================================================== */
.bo .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; }
.bo-sub { font-size: 12px; color: var(--bo-muted); margin-top: 2px; }
.bo-sub.mono { font-size: 11.5px; }
.bo-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.bo-desig { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: 6px; background: var(--bo-ink); color: #fff; font-size: 11px; font-weight: 900; vertical-align: 2px; letter-spacing: .02em; }
.bo-acc { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 800; }
.bo-acc.warn { color: var(--bo-amber); }
.bo-acc.ok { color: var(--bo-green); }
.bo-icon-btn.sm { width: 32px; height: 32px; border-radius: 9px; }
.bo-icon-btn.sm svg { width: 16px; height: 16px; }
.bo-table .cell-actions { width: 1%; white-space: nowrap; text-align: right; }
.bo-row-actions { display: inline-flex; gap: 6px; align-items: center; }
.bo-teams-table td { vertical-align: middle; }

/* Menu de ações (⋯) */
.bo-menu { position: relative; display: inline-flex; }
.bo-menu-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 230px; padding: 6px; background: #fff; border: 1px solid var(--bo-line); border-radius: 12px; box-shadow: var(--bo-shadow-lg); text-align: left; }
.bo-menu-list button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: var(--bo-ink); font: 700 13.5px var(--bo-font); cursor: pointer; text-align: left; }
.bo-menu-list button:hover, .bo-menu-list button:focus-visible { background: var(--bo-bg); outline: none; }
.bo-menu-list button svg { width: 16px; height: 16px; color: var(--bo-muted); }
.bo-menu-list button.danger { color: var(--bo-red); }
.bo-menu-list hr { border: 0; border-top: 1px solid var(--bo-line); margin: 5px 4px; }

/* Grupos (por clube / categoria) */
.bo-groups { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.bo-group { min-width: 0; }
.bo-group { border-top: 1px solid var(--bo-line); }
.bo-group:first-child { border-top: 0; }
.bo-group-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 20px; background: #fafbfc; }
.bo-group-head > b { font-size: 15px; }
.bo-group-toggle { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; flex: 1; min-width: 0; padding: 0; border: 0; background: none; color: var(--bo-ink); font: inherit; text-align: left; cursor: pointer; }
.bo-group-toggle b { font-size: 15px; font-weight: 900; }
.bo-group-toggle[aria-expanded="false"] { opacity: .8; }
.bo-group-head .bo-actions { margin-left: auto; align-items: center; }
.bo-empty-clubs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; border-top: 1px solid var(--bo-line); }

/* Ficha da equipa */
.bo-tabs { display: flex; gap: 4px; margin: -4px 0 18px; border-bottom: 1px solid var(--bo-line); }
.bo-tabs button { position: relative; padding: 10px 14px; border: 0; background: none; color: var(--bo-muted); font: 800 14px var(--bo-font); cursor: pointer; }
.bo-tabs button.on { color: var(--bo-ink); }
.bo-tabs button.on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--bo-red); }
.bo-drawer-hero { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.bo-preview { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: baseline; padding: 12px 14px; margin: 6px 0; background: var(--bo-bg); border-radius: 10px; font-size: 13.5px; }
.bo-preview b { font-weight: 900; overflow-wrap: anywhere; }
.bo-inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bo-inline .bo-input { flex: 1 1 220px; }
.bo-account { margin: 6px 0 0; }
.bo-access-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-top: 20px; }
.bo-action-card { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1px solid var(--bo-line); border-radius: 12px; background: #fff; color: var(--bo-ink); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.bo-action-card:hover:not(:disabled) { border-color: var(--bo-ink); box-shadow: var(--bo-shadow); }
.bo-action-card:disabled { opacity: .5; cursor: not-allowed; }
.bo-action-card svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--bo-red); }
.bo-action-card b { display: block; font-size: 14px; }
.bo-action-card small { display: block; color: var(--bo-muted); font-size: 12px; margin-top: 2px; }
.bo-creds dd { display: flex; align-items: center; gap: 8px; }
.bo-creds code { padding: 4px 8px; border-radius: 6px; background: var(--bo-bg); font-size: 14px; font-weight: 700; letter-spacing: .02em; user-select: all; }
.bo-plain-list { margin: 8px 0 0; padding-left: 18px; }

/* Resultado da criação (4 passos) */
.bo-steps { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 0; }
.bo-step { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--bo-line-2); }
.bo-step-ic { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--bo-green-soft); color: var(--bo-green); }
.bo-step.fail .bo-step-ic { background: var(--bo-red-soft); color: var(--bo-red); }
.bo-step.skip .bo-step-ic { background: var(--bo-line-2); color: var(--bo-muted); }
.bo-step b { display: block; margin-bottom: 2px; }

/* Aviso permanente: "Está a visualizar o sistema como Treinador" */
.bo-imp { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px max(16px, env(safe-area-inset-left, 0px)); background: var(--bo-gold); color: #1a1205; box-shadow: 0 2px 10px rgba(0, 0, 0, .18); }
.bo-imp > svg { flex: none; width: 20px; height: 20px; }
.bo-imp-text { display: grid; flex: 1; min-width: 200px; line-height: 1.3; }
.bo-imp-text b { font-size: 14px; font-weight: 900; }
.bo-imp-text span { font-size: 12.5px; font-weight: 700; opacity: .85; }
.bo-imp-back { background: #1a1205; color: #fff; border-color: #1a1205; }
.bo-imp-back:hover { background: #000; }
.boc.is-imp .boc-top { top: 52px; }
.boc.is-imp .boc-tabs { top: 116px; }

/* Primeiro acesso: definir password */
.bo-force { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: var(--bo-bg); }
.bo-force-card { width: min(440px, 100%); padding: 32px 28px; display: grid; gap: 14px; }
.bo-force-card h1 { margin: 0; font-size: 24px; font-weight: 900; }
.bo-force-logo { width: 64px; height: 64px; object-fit: contain; }
.bo-force-out { justify-self: center; margin-top: 4px; }

@media (max-width: 720px) {
	.bo-group-head { padding: 12px 14px; }
	.bo-teams-table colgroup { display: none; }
	.bo-table.stack td.cell-actions { width: auto; padding-top: 8px; text-align: left; }
	.bo-preview { grid-template-columns: 1fr; }
	.bo-imp-back { width: 100%; justify-content: center; }
	.boc.is-imp .boc-top { position: relative; top: auto; }
	.boc.is-imp .boc-tabs { top: auto; }
	.bo-imp { padding-block: 8px; }
}

/* Colunas iguais em todos os grupos; nos grupos o cabeçalho só existe para leitores de ecrã. */
@media (min-width: 721px) {
	.bo-teams-table { table-layout: fixed; width: 100%; }
	.bo-teams-table col.c-check { width: 44px; }
	.bo-teams-table col.c-team { width: 27%; }
	.bo-teams-table col.c-coach { width: 21%; }
	.bo-teams-table col.c-contact { width: 25%; }
	.bo-teams-table col.c-squad { width: 12%; }
	.bo-teams-table col.c-status { width: 15%; }
	.bo-teams-table col.c-actions { width: 128px; }
	.bo-teams-table td { overflow-wrap: anywhere; }
	.bo-teams-table.is-grouped thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.bo-groups .bo-group:first-child { border-top: 0; }
}
.bo-ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bo-team-name b .bo-desig { display: inline-grid; width: auto; font-size: 11px; color: #fff; margin-top: 0; }
.bo-action-card > span { min-width: 0; }
.bo-action-card small { overflow-wrap: anywhere; }
.bo-preview b, .bo-account dd { min-width: 0; overflow-wrap: anywhere; }

/* =====================================================================
   v2.2.0 — Uma conta, várias equipas
   ===================================================================== */
/* Etiqueta de equipa (cor fixa por equipa) */
.bo-tchip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 3px 9px 3px 7px; border-radius: 999px; background: color-mix(in srgb, var(--tc) 10%, #fff); border: 1px solid color-mix(in srgb, var(--tc) 28%, #fff); font-size: 12px; line-height: 1.3; white-space: nowrap; }
.bo-tchip i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--tc); }
.bo-tchip b { font-weight: 800; color: var(--bo-ink); overflow: hidden; text-overflow: ellipsis; }
.bo-tchip span { color: var(--bo-muted); font-weight: 700; }
.bo-chips { display: inline-flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.bo-row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* Cabeçalho da área da equipa com seletor */
.boc .boc-top { gap: 14px; border-bottom: 3px solid var(--tc, var(--bo-gold)); }
.boc-switch { position: relative; min-width: 0; flex: 1; }
.boc-switch-btn { display: flex; align-items: center; gap: 12px; max-width: 100%; padding: 6px 12px 6px 6px; border: 1px solid #2a2b31; border-radius: 12px; background: #15161a; color: #fff; font: inherit; cursor: pointer; text-align: left; }
.boc-switch-btn:hover { border-color: #3b3d45; }
.boc-switch-bar { width: 4px; align-self: stretch; border-radius: 4px; background: var(--tc); }
.boc-switch-text { display: grid; min-width: 0; }
.boc-switch-text b { font-size: 15px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.boc-switch-text span { font-size: 12px; color: #a3a7b0; font-weight: 700; }
.boc-switch-caret { margin-left: 6px; color: var(--tc); font-size: 14px; }
.boc-all-ic { background: #232429 !important; color: var(--bo-gold) !important; }
.boc-switch-list { position: absolute; left: 0; top: calc(100% + 8px); z-index: 70; width: min(380px, calc(100vw - 32px)); max-height: 70vh; overflow-y: auto; padding: 6px; background: #fff; border: 1px solid var(--bo-line); border-radius: 14px; box-shadow: var(--bo-shadow-lg); color: var(--bo-ink); }
.boc-switch-opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px; background: none; font: inherit; text-align: left; cursor: pointer; color: var(--bo-ink); }
.boc-switch-opt:hover, .boc-switch-opt:focus-visible { background: var(--bo-bg); outline: none; }
.boc-switch-opt.on { background: color-mix(in srgb, var(--tc, var(--bo-gold)) 10%, #fff); }
.boc-switch-opt > span:not(.bo-logo) { display: grid; flex: 1; min-width: 0; }
.boc-switch-opt b { font-size: 14px; font-weight: 800; }
.boc-switch-opt small { font-size: 12px; color: var(--bo-muted); font-weight: 700; }
.boc-switch-opt.all { border-bottom: 1px solid var(--bo-line); border-radius: 10px 10px 0 0; margin-bottom: 4px; }
.boc-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--tc); }
.boc-who { margin-left: auto; color: #a3a7b0; font-size: 13px; font-weight: 700; white-space: nowrap; }
.boc-tabs button.on::after { background: var(--tc, var(--bo-red)); }

/* Vista agregada */
.boc-teamcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.boc-teamcard { display: grid; gap: 10px; padding: 16px; background: #fff; border: 1px solid var(--bo-line); border-top: 4px solid var(--tc); border-radius: var(--bo-radius); box-shadow: var(--bo-shadow); font: inherit; color: var(--bo-ink); text-align: left; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.boc-teamcard:hover { transform: translateY(-2px); box-shadow: var(--bo-shadow-lg); }
.boc-teamcard-top { display: flex; align-items: center; gap: 10px; }
.boc-teamcard-top b { display: block; font-size: 15px; font-weight: 900; }
.boc-teamcard-top span { font-size: 12px; color: var(--bo-muted); font-weight: 700; }
.boc-teamcard-next { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
.boc-teamcard-counts { display: flex; flex-wrap: wrap; gap: 6px; }
.boc-teamcard-counts span { padding: 3px 8px; border-radius: 999px; background: var(--bo-bg); font-size: 11.5px; font-weight: 800; color: var(--bo-muted); }
.boc-teamcard-counts span.warn { background: var(--bo-amber-soft); color: var(--bo-amber); }
.boc-teamcard-go { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: var(--tc); }
.boc-feed { list-style: none; margin: 0; padding: 0; }
.boc-feed-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px 12px; padding: 12px 18px; border-top: 1px solid var(--bo-line-2); }
.boc-feed-item:first-child { border-top: 0; }
.boc-feed-item > div { display: grid; min-width: 0; }
.boc-feed-item > div b { font-size: 13.5px; }
.boc-feed-item > div span { font-size: 12.5px; color: var(--bo-muted); }
.boc-feed-item time { font-size: 11.5px; white-space: nowrap; }
@media (max-width: 720px) {
	.boc-feed-item { grid-template-columns: minmax(0, 1fr) auto; padding: 12px 14px; }
	.boc-feed-item > .bo-tchip { grid-column: 1 / -1; justify-self: start; }
	.boc-who { display: none; }
	.boc .boc-top { padding: 0 12px; }
	.boc-switch-btn { padding-right: 10px; }
}

/* Pessoas (ficha da equipa e página Utilizadores) */
.bo-avatar { flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--bo-ink); color: #fff; font-size: 13px; font-weight: 900; }
.bo-people-sec { margin-top: 16px; }
.bo-people { list-style: none; margin: 8px 0 0; padding: 0; border: 1px solid var(--bo-line); border-radius: 12px; }
.bo-people li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--bo-line-2); }
.bo-people li:first-child { border-top: 0; }
.bo-people-main { flex: 1; min-width: 0; }
.bo-people-main .bo-sub { overflow-wrap: anywhere; }
.bo-people-empty { margin: 8px 0 0; }
.bo-adding { display: grid; gap: 12px; padding: 16px; margin-top: 16px; border: 1px solid var(--bo-ink); box-shadow: none; }
.bo-dups { border-color: var(--bo-amber); }
.bo-dup-list { list-style: none; margin: 0; padding: 0 20px 14px; }
.bo-dup-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--bo-line-2); }
.bo-merge { display: grid; gap: 8px; margin-top: 12px; }
.bo-merge-opt { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--bo-line); border-radius: 12px; cursor: pointer; }
.bo-merge-opt.on { border-color: var(--bo-ink); background: var(--bo-bg); }
.bo-merge-opt > span { display: grid; gap: 4px; min-width: 0; }
.bo-merge-opt small { color: var(--bo-muted); }
.bo-assign { border: 1px solid var(--bo-line); border-radius: 12px; overflow: hidden; margin-top: 8px; }
.bo-assign-head, .bo-assign-row { display: grid; grid-template-columns: minmax(0, 1fr) 96px 110px; align-items: center; gap: 8px; padding: 9px 14px; }
.bo-assign-head { background: #fafbfc; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--bo-muted); }
.bo-assign-head span:not(:first-child), .bo-assign-check { text-align: center; }
.bo-assign-club { padding: 10px 14px 4px; font-weight: 900; font-size: 13.5px; border-top: 1px solid var(--bo-line); }
.bo-assign-row { border-top: 1px solid var(--bo-line-2); }
.bo-assign-row.on { background: #fffaf0; }
.bo-assign-name { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; }
.bo-assign-name i { flex: none; width: 9px; height: 9px; border-radius: 50%; }
@media (max-width: 720px) { .bo-assign-head, .bo-assign-row { grid-template-columns: minmax(0, 1fr) 70px 86px; padding: 9px 10px; } }
/* A lista do seletor vive dentro do cabeçalho escuro: repõe as cores claras. */
.boc-top .boc-switch-list b { color: var(--bo-ink); font-size: 14px; }
.boc-top .boc-switch-list small, .boc-top .boc-switch-list span { color: var(--bo-muted); }
.boc-top .boc-switch-list .bo-logo { color: inherit; }
@media (max-width: 720px) {
	.boc-top .boc-who { display: none; }
	.boc-top > .bo-btn-ghost span { display: none; }
	.boc-top .boc-switch-text span { display: block; }
	.boc-switch { flex: 1 1 auto; }
	.boc-switch-btn { width: 100%; }
}
.boc-top .boc-switch-text b { color: #fff; }

/* ===================================================== Site público (v2.3.0) */
.bo-imgpick { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bo-imgpick-prev { width: 72px; height: 72px; border-radius: 12px; display: grid; place-items: center; background: #f4f5f7; border: 1px dashed var(--bo-line); color: var(--bo-muted); overflow: hidden; flex: none; }
.bo-imgpick-prev img { width: 100%; height: 100%; object-fit: contain; }
.bo-imgpick.wide .bo-imgpick-prev { width: 160px; height: 90px; }
.bo-imgpick.wide .bo-imgpick-prev img { object-fit: cover; }
.bo-thumbs { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.bo-thumb { position: relative; width: 150px; height: 90px; border-radius: 10px; overflow: hidden; background: #f4f5f7; }
.bo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bo-thumb-tools { position: absolute; right: 4px; bottom: 4px; display: flex; gap: 3px; }
.bo-thumb-tools button { width: 26px; height: 26px; border: 0; border-radius: 7px; background: rgba(17, 19, 24, .78); color: #fff; font-weight: 800; cursor: pointer; }
.bo-thumb-tools button:disabled { opacity: .35; cursor: default; }
.bo-rows { display: grid; gap: 10px; }
.bo-row-edit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto; gap: 8px; align-items: start; padding: 10px; border: 1px solid var(--bo-line); border-radius: 12px; }
.bo-row-edit.tl { grid-template-columns: 110px minmax(0, 1fr) minmax(0, 1.4fr) auto auto; }
.bo-row-edit.loc { grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr) minmax(0, 1.2fr) auto; }
@media (max-width: 900px) { .bo-row-edit, .bo-row-edit.tl, .bo-row-edit.loc { grid-template-columns: minmax(0, 1fr) auto; } .bo-row-edit.loc > input:not(:first-child) { grid-column: 1 / -1; } .bo-row-edit > textarea, .bo-row-edit > .bo-imgpick { grid-column: 1 / -1; } }
.bo-albums { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.bo-album { display: grid; padding: 0; text-align: left; border: 1px solid var(--bo-line); border-radius: 14px; overflow: hidden; background: #fff; cursor: pointer; font: inherit; transition: box-shadow .15s, transform .15s; }
.bo-album:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -16px rgba(17, 19, 24, .5); }
.bo-album-cover { aspect-ratio: 4 / 3; background: #f4f5f7; display: grid; place-items: center; color: var(--bo-muted); overflow: hidden; }
.bo-album-cover img { width: 100%; height: 100%; object-fit: cover; }
.bo-album-body { display: grid; gap: 4px; padding: 12px 14px 14px; justify-items: start; }
.bo-album-body > span { color: var(--bo-muted); font-size: 13px; }
.bo-photos { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.bo-photo { position: relative; margin: 0; border-radius: 12px; overflow: hidden; background: #f4f5f7; aspect-ratio: 1; }
.bo-photo img { width: 100%; height: 100%; object-fit: cover; }
.bo-photo.is-cover { outline: 3px solid #f5b400; outline-offset: -3px; }
.bo-photo figcaption { position: absolute; left: 6px; right: 6px; bottom: 6px; display: flex; gap: 4px; align-items: center; }
.bo-photo-tags { display: inline-flex; align-items: center; gap: 3px; height: 24px; padding: 0 7px; border-radius: 99px; background: rgba(17, 19, 24, .78); color: #fff; font-size: 12px; font-weight: 800; }
.bo-photo-tags.gold { background: #f5b400; color: #1b140a; }
.bo-photo-tools { margin-left: auto; display: flex; gap: 3px; opacity: 0; transition: opacity .15s; }
.bo-photo:hover .bo-photo-tools, .bo-photo:focus-within .bo-photo-tools { opacity: 1; }
@media (hover: none) { .bo-photo-tools { opacity: 1; } }
.bo-photo-tools button { width: 30px; height: 30px; border: 0; border-radius: 8px; background: rgba(17, 19, 24, .82); color: #fff; display: grid; place-items: center; cursor: pointer; }
.bo-photo-tools button:hover { background: #111318; }
.bo-progress { height: 8px; border-radius: 8px; background: #eef0f3; overflow: hidden; margin-bottom: 14px; }
.bo-progress i { display: block; height: 100%; background: #f5b400; transition: width .2s; }
.bo-checklist { display: grid; gap: 4px; max-height: 300px; overflow: auto; margin-top: 10px; }
.bo-checklist label { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; cursor: pointer; }
.bo-checklist label:hover { background: #f6f7f9; }
.bo-checklist label > span:nth-child(3) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bo-sponsor-row { grid-template-columns: auto minmax(0, 1fr) auto auto; width: 100%; border: 0; background: none; text-align: left; font: inherit; cursor: pointer; }
.bo-sp-logo { width: 88px; height: 46px; border-radius: 10px; border: 1px solid var(--bo-line); background: #fff; display: grid; place-items: center; padding: 4px 8px; overflow: hidden; }
.bo-sp-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.bo-team-photo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; margin: 14px 0; border: 1px solid var(--bo-line); border-radius: 12px; }
.bo-team-photo > div:first-child { display: grid; gap: 2px; max-width: 320px; }
.bo-team-photo small { color: var(--bo-muted); }

/* ===================================================== Editor do site (v2.6.0) */
.bo-cms-bar { position: sticky; top: 64px; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; margin-bottom: 12px; border-radius: 14px; background: #fff; border: 1px solid var(--bo-line); box-shadow: var(--bo-shadow); }
.bo-cms-tabs { margin-bottom: 14px; overflow-x: auto; }
.bo-revert { position: relative; }
.bo-revert-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 280px; max-height: 360px; overflow: auto; padding: 6px; border-radius: 12px; background: #fff; border: 1px solid var(--bo-line); box-shadow: var(--bo-shadow-lg); display: grid; gap: 2px; }
.bo-revert-menu button { display: grid; gap: 2px; text-align: left; padding: 8px 10px; border: 0; border-radius: 8px; background: none; font: inherit; cursor: pointer; }
.bo-revert-menu button:hover:not(:disabled) { background: #f4f5f7; }
.bo-revert-menu button:disabled { opacity: .45; cursor: default; }
.bo-revert-menu small, .bo-revert-empty { color: var(--bo-muted); font-size: 12px; }
.bo-revert-empty { padding: 6px 10px; }
.bo-revert-sep { padding: 8px 10px 4px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--bo-faint); border-top: 1px solid var(--bo-line); margin-top: 4px; }
.bo-move { display: inline-flex; gap: 4px; flex: none; }
.bo-move .bo-icon-btn { font-weight: 800; }
.bo-row-edit.menu { grid-template-columns: auto minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, .9fr) auto; align-items: end; }
.bo-row-edit.num { grid-template-columns: auto minmax(0, 1.4fr) minmax(0, 1fr) auto; align-items: end; }
.bo-row-edit.off { opacity: .6; background: #fafafa; }
.bo-mini { display: grid; gap: 4px; min-width: 0; }
.bo-mini > span { font-size: 12px; font-weight: 700; color: var(--bo-muted); }
.bo-warn { color: var(--bo-amber); font-weight: 700; font-size: 12px; }
.bo-navpreview { display: flex; flex-wrap: nowrap; gap: 4px; overflow-x: auto; margin-top: 14px; padding: 10px; border-radius: 12px; background: #fffaf0; border: 1px dashed #efe2c4; }
.bo-navpreview span { white-space: nowrap; padding: 6px 10px; border-radius: 99px; font-weight: 800; font-size: 13px; background: #fff; border: 1px solid #efe2c4; }
@media (max-width: 900px) { .bo-row-edit.menu, .bo-row-edit.num { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .bo-row-edit.menu > .bo-move, .bo-row-edit.num > .bo-move { grid-column: 1 / -1; } .bo-cms-bar { top: 56px; } }
.bo-clubs { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.bo-club { display: flex; align-items: center; gap: 14px; padding: 14px; text-align: left; border-radius: 14px; border: 1px solid var(--bo-line); background: #fff; font: inherit; cursor: pointer; transition: box-shadow .15s, transform .15s; min-width: 0; }
.bo-club:hover { transform: translateY(-1px); box-shadow: var(--bo-shadow); }
.bo-club > svg { margin-left: auto; color: var(--bo-muted); flex: none; }
.bo-club-body { display: grid; gap: 3px; min-width: 0; }
.bo-club-body > span { color: var(--bo-muted); font-size: 13px; }
.bo-club-flags { display: flex; flex-wrap: wrap; gap: 4px; }
.bo-photo[draggable="true"] { cursor: grab; }

/* ===================================================== Documentos (v2.7.0) */
.bo-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.bo-docgroup { margin-bottom: 26px; }
.bo-docgroup > h2 { display: flex; align-items: baseline; gap: 8px; margin: 0 0 6px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--bo-muted); }
.bo-docgroup > h2 span { font-weight: 700; color: var(--bo-faint); }
.bo-doclist { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--bo-line); border-radius: 14px; }
.bo-doc { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.bo-doc + .bo-doc { border-top: 1px solid var(--bo-line); }
.bo-doc.is-off { opacity: .55; }
.bo-doc.is-new { background: linear-gradient(90deg, #fff8e1, #fff 40%); }
.bo-docglyph { flex: none; width: 38px; height: 46px; border-radius: 4px 12px 4px 4px; display: grid; place-items: end center; padding-bottom: 6px; font: 800 10px/1 var(--bo-font); letter-spacing: .04em; color: #fff; background: #6b7280; }
.bo-docglyph.pdf { background: #c8102e; } .bo-docglyph.doc { background: #1d4ed8; } .bo-docglyph.xls { background: #15803d; } .bo-docglyph.ppt { background: #c2410c; } .bo-docglyph.img { background: #7c3aed; }
.bo-doc-main { display: grid; gap: 2px; min-width: 0; flex: 1; }
.bo-doc-main b { font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bo-doc-meta { color: var(--bo-muted); font-size: 12.5px; overflow-wrap: anywhere; }
.bo-doc-desc { color: var(--bo-ink); font-size: 13px; margin-top: 2px; }
.bo-doc-new, .bo-doc-pin, .bo-doc-off { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 99px; }
.bo-doc-new { background: #f5b400; color: #1b140a; }
.bo-doc-pin { background: var(--bo-blue-soft); color: var(--bo-blue); }
.bo-doc-off { background: #eef0f3; color: var(--bo-muted); }
.bo-doc-actions { display: flex; gap: 6px; flex: none; }
@media (max-width: 640px) { .bo-doc { flex-wrap: wrap; } .bo-doc-actions { width: 100%; padding-left: 52px; } }
.bo-dropzone { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 64px; padding: 12px 16px; border: 1.5px dashed var(--bo-line); border-radius: 12px; background: #fafbfc; font: inherit; color: var(--bo-ink); cursor: pointer; text-align: left; }
.bo-dropzone:hover { border-color: var(--bo-gold); background: #fffdf5; }
.bo-row-edit.cat { grid-template-columns: minmax(0, 1fr) auto auto; }
.boc-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 99px; background: #c8102e; color: #fff; font-size: 11px; font-weight: 800; }
.boc-notice-wrap { padding-bottom: 0 !important; }
.boc-docnotice { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 16px; border: 1px solid #f3d27a; border-radius: 12px; background: #fff8e1; color: #5c4300; font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.boc-docnotice span { flex: 1; min-width: 0; }
.boc-docnotice b { white-space: nowrap; }
.boc-docnotice:hover { background: #fff2c6; }

/* ===================================================== Calendarização (v2.9.0) */
.bo-sched-bar { position: sticky; top: 64px; z-index: 20; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 10px; background: #fff; border: 1px solid var(--bo-line); border-radius: 14px; box-shadow: var(--bo-shadow); }
.bo-sched-week { display: grid; justify-items: center; text-align: center; gap: 2px; }
.bo-sched-week b { font-size: 20px; display: inline-flex; align-items: center; }
.bo-sched-week > span { color: var(--bo-muted); font-weight: 700; font-size: 13px; }
.bo-sched-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.bo-weekstrip { display: flex; gap: 6px; overflow-x: auto; padding: 2px; flex: 1; min-width: 0; scrollbar-width: thin; }
.bo-wk { flex: none; display: grid; gap: 1px; min-width: 78px; padding: 7px 10px; border: 1px solid var(--bo-line); border-radius: 10px; background: #fff; font: inherit; text-align: left; cursor: pointer; }
.bo-wk small { font-size: 10px; font-weight: 800; color: var(--bo-faint); letter-spacing: .04em; }
.bo-wk b { font-size: 13px; }
.bo-wk-n { font-size: 11px; color: var(--bo-faint); }
.bo-wk-n.has { color: var(--bo-green); font-weight: 700; }
.bo-wk.now { border-color: var(--bo-gold); }
.bo-wk.on { background: var(--bo-ink); border-color: var(--bo-ink); color: #fff; }
.bo-wk.on small, .bo-wk.on .bo-wk-n { color: rgba(255, 255, 255, .7); }
.bo-sched-jump .bo-input { height: 34px; width: 150px; }
.bo-sched-days { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1100px) { .bo-sched-days { grid-template-columns: 1fr; } }
.bo-dayplan { background: #fff; border: 1px solid var(--bo-line); border-radius: 14px; overflow: hidden; }
.bo-dayplan > header { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 3px solid #3e8b62; background: #f6faf6; }
.bo-dayplan.traquinas > header { border-bottom-color: #3a6fae; background: #f4f7fb; }
.bo-dayplan > header > div { display: grid; }
.bo-dayplan > header b { font-size: 18px; }
.bo-dayplan > header > div > span { color: var(--bo-muted); font-size: 13px; font-weight: 700; }
.bo-dayplan-n { margin-left: auto; color: var(--bo-muted); font-size: 13px; font-weight: 700; }
.bo-dayplan-games { list-style: none; margin: 0; padding: 0; }
.bo-dayplan-games li { display: grid; grid-template-columns: 92px minmax(0, 1fr) 150px auto; align-items: center; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--bo-line); }
.bo-dp-time { height: 34px; padding: 0 6px; border: 1px solid transparent; border-radius: 8px; font: 800 14px var(--bo-font); background: transparent; }
.bo-dp-time:hover, .bo-dp-time:focus, .bo-dp-loc:hover, .bo-dp-loc:focus { border-color: var(--bo-line); background: #fafbfc; outline: 0; }
.bo-dp-match { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center; font-weight: 700; font-size: 13.5px; }
.bo-dp-match span:first-child { text-align: right; }
.bo-dp-match i { font-style: normal; font-size: 11px; color: var(--bo-faint); text-transform: uppercase; }
.bo-dp-loc { height: 34px; padding: 0 8px; border: 1px solid transparent; border-radius: 8px; font: 600 13px var(--bo-font); color: var(--bo-muted); background: transparent; min-width: 0; }
@media (max-width: 640px) { .bo-dayplan-games li { grid-template-columns: 80px minmax(0, 1fr) auto; } .bo-dp-loc { grid-column: 2 / 3; } .bo-dp-match { grid-template-columns: 1fr; } .bo-dp-match span:first-child { text-align: left; } .bo-dp-match i { display: none; } }
.bo-dayplan-empty { margin: 0; padding: 18px 16px; color: var(--bo-muted); }
.bo-dayplan-plan { padding: 10px 16px 16px; }
.bo-dp-toggle { border: 0; background: none; padding: 6px 0; font: 700 13px var(--bo-font); color: var(--bo-blue); cursor: pointer; }
.bo-dp-form { display: grid; gap: 10px; margin-top: 6px; }
.bo-dp-row { display: grid; grid-template-columns: 110px 130px minmax(0, 1fr); gap: 10px; }
@media (max-width: 640px) { .bo-dp-row { grid-template-columns: 1fr 1fr; } }
.bo-dp-teamshead { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 800; color: var(--bo-muted); }
.bo-dp-teamshead button { border: 0; background: none; color: var(--bo-blue); font: 700 12px var(--bo-font); cursor: pointer; padding: 0; }
.bo-dp-teams { display: flex; flex-wrap: wrap; gap: 6px; }
.bo-dp-team { padding: 6px 11px; border-radius: 99px; border: 1px solid var(--bo-line); background: #fff; font: 700 12.5px var(--bo-font); cursor: pointer; }
.bo-dp-team.on { background: var(--bo-ink); border-color: var(--bo-ink); color: #fff; }
.bo-dp-manual { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 10px; margin-top: 4px; border-top: 1px dashed var(--bo-line); font-size: 12.5px; color: var(--bo-muted); font-weight: 700; }
.bo-dp-manual .bo-select { height: 34px; max-width: 200px; }
.bo-dp-manual .bo-input { height: 34px; width: 110px; }
.bo-sched-foot { position: sticky; bottom: 0; z-index: 15; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 14px 16px; background: #fff; border: 1px solid var(--bo-line); border-radius: 14px; box-shadow: 0 -8px 24px -18px rgba(16, 19, 24, .35); }
.bo-sched-foot > div:first-child { display: grid; }
.bo-sched-foot > div:first-child span { color: var(--bo-muted); font-size: 13px; }
@media (max-width: 760px) { .bo-sched-bar { grid-template-columns: 1fr 1fr; } .bo-sched-week { grid-column: 1 / -1; grid-row: 1; } }

/* ===================================================== Cores dos blocos (v2.9.0) */
.bo-blocks { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
@media (max-width: 1100px) { .bo-blocks { grid-template-columns: 1fr; } }
.bo-blockrows { display: grid; margin-top: 14px; }
.bo-blockrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--bo-line); }
.bo-blockrow-name { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.bo-sw { width: 16px; height: 16px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.bo-swatches { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bo-swatch { width: 30px; height: 30px; border-radius: 8px; border: 1px solid rgba(0, 0, 0, .14); cursor: pointer; font: 800 12px var(--bo-font); color: var(--bo-muted); background: #fff; display: grid; place-items: center; }
.bo-swatch.auto { background: linear-gradient(135deg, #f7f5ef 50%, #fff 50%); }
.bo-swatch.custom { background: conic-gradient(#f2b01e, #c8102e, #1d4ed8, #15803d, #f2b01e); color: #fff; }
.bo-swatch.on { outline: 2px solid var(--bo-ink); outline-offset: 2px; }
.bo-swatch:disabled { cursor: default; opacity: .6; }
.bo-colorpick { width: 42px; height: 32px; padding: 0; border: 1px solid var(--bo-line); border-radius: 8px; background: #fff; cursor: pointer; }
.bo-blockpreview { position: sticky; top: 140px; display: grid; gap: 10px; padding: 14px; background: #fff; border: 1px solid var(--bo-line); border-radius: 14px; }
.bo-pagemock { display: grid; border-radius: 10px; overflow: hidden; border: 1px solid var(--bo-line); }
.bo-mockblock { position: relative; display: grid; gap: 2px; padding: 12px 12px; min-height: 40px; font-size: 12px; font-weight: 700; border-top: 1px solid rgba(0, 0, 0, .04); }
.bo-mockblock.is-header { min-height: 26px; padding: 6px 12px; font-size: 11px; color: var(--bo-muted) !important; border-bottom: 1px solid var(--bo-line); }
.bo-mockblock.is-hero { min-height: 70px; }
.bo-mockblock.clash { box-shadow: inset 0 0 0 2px #c8102e; }
.bo-mockblock.clash span { font-size: 10.5px; color: #c8102e; }

/* ===== v2.10.0: Exportar jogos (cartaz PNG / PDF) ===== */
.bo-export { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 28px; align-items: start; }
.bo-export-opts { display: grid; gap: 16px; }
.bo-export-opts .bo-seg { flex-wrap: wrap; }
.bo-export-fmts { display: grid; gap: 6px; }
.bo-export-fmt { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border: 1px solid var(--bo-line, #e6e1d6); border-radius: 10px; background: #fff; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.bo-export-fmt:hover { border-color: #c9c1ad; }
.bo-export-fmt.on { border-color: #15130f; box-shadow: inset 0 0 0 1px #15130f; background: #fffaf0; }
.bo-export-fmt .shape { flex: none; width: 22px; max-height: 30px; border: 2px solid currentColor; border-radius: 3px; opacity: .55; }
.bo-export-fmt.on .shape { opacity: 1; border-color: #f2b01e; background: #15130f; }
.bo-export-fmt span { display: grid; line-height: 1.25; }
.bo-export-fmt small { color: var(--bo-muted, #6f685b); font-size: 12px; }
.bo-export-preview { position: sticky; top: 0; display: grid; gap: 10px; }
.bo-export-meta { font-size: 13px; }
.bo-export-pages { display: grid; gap: 14px; justify-items: center; padding: 18px; border-radius: 14px; background: #ece8de; }
.bo-export-pages.multi { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); align-items: start; }
.bo-export-pages img { display: block; width: auto; height: auto; max-width: min(100%, 460px); max-height: 70vh; border-radius: 6px; box-shadow: 0 10px 30px rgba(21, 19, 15, .18); }
.bo-export-empty { padding: 60px 20px; text-align: center; border-radius: 14px; background: #f3f0e8; color: var(--bo-muted, #6f685b); }
@media (max-width: 860px) { .bo-export { grid-template-columns: 1fr; } .bo-export-preview { position: static; } }
.bo-drawer.wide:has(.bo-export) { width: min(1060px, 100vw); }

/* ===== v2.11.0: cores de Sábado e Domingo ===== */
.bo-blocks-main { display: grid; gap: 16px; min-width: 0; }
.bo-dayc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 20px; align-items: start; }
.bo-dayc-opts h4 { margin: 4px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--bo-muted, #6b7280); }
.bo-dayc-opts h4 + .bo-dayc-row { border-top: 0; }
.bo-dayc-row { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--bo-line-2, #f0f1f4); }
.bo-dayc-label { font-size: 13px; font-weight: 700; }
.bo-dayc-row .bo-swatches { flex-wrap: wrap; align-items: center; }
.bo-dayc-reset { border: 0; background: none; padding: 0 4px; font: inherit; font-size: 12px; font-weight: 700; color: var(--bo-gold-ink, #8a5a00); cursor: pointer; text-decoration: underline; }
.bo-dayc-preview { display: grid; border-radius: 12px; overflow: hidden; border: 1px solid var(--bo-line, #e8e9ed); }
.bo-dayc-band { padding: 14px 14px 16px; }
.bo-dayc-head { display: flex; align-items: baseline; gap: 10px; padding-bottom: 8px; margin-bottom: 10px; border-bottom: 2px solid; }
.bo-dayc-head b { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.bo-dayc-head span { font-size: 12px; font-weight: 600; }
.bo-dayc-match { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; padding: 9px 10px; border-radius: 8px; background: #fff; font-size: 12px; font-weight: 700; color: #16140f; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.bo-dayc-match span:first-child { text-align: right; }
.bo-dayc-match i { font-style: normal; font-size: 10px; padding: 2px 6px; border-radius: 99px; background: #f2b01e; }
@media (max-width: 1300px) { .bo-dayc { grid-template-columns: 1fr; } }

/* ===== v2.12.0: ordem dos clubes na página inicial ===== */
.bo-clubord { display: grid; gap: 10px; }
.bo-clubord-list { display: grid; gap: 6px; padding: 10px; border: 1px solid var(--bo-line, #e8e9ed); border-radius: 10px; background: #fafafa; }
.bo-clubord-row { display: grid; grid-template-columns: 22px auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.bo-clubord-row > b { font-size: 12px; color: var(--bo-gold-ink, #8a5a00); text-align: center; }
.bo-clubord-row > span { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bo-clubord-act { display: flex; gap: 4px; }
.bo-clubord-preview { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 4px; }
.bo-clubord-preview > span { border-radius: 50%; outline: 2px solid transparent; outline-offset: 1px; }
.bo-clubord-preview > span.is-featured { outline-color: var(--bo-gold, #f5b400); }

/* ===================================================== v2.13.0
   Disponibilidades, Utilizadores da Equipa, convite, Resumo da Jornada. */
.bo-mt { margin-top: 16px; }
.bo-prio { color: var(--bo-gold); font-weight: 900; }
.bo-kpis-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 720px) { .bo-kpis-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Formulário mensal da equipa */
.bo-avm-stack { display: grid; gap: 16px; }
.bo-avm { padding: 0; overflow: hidden; }
.bo-avm-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 12px; }
.bo-avm-head h2 { margin: 0; font-size: 18px; font-weight: 900; letter-spacing: .04em; }
.bo-avm-head p { margin: 2px 0 0; color: var(--bo-muted); font-size: 13px; }
.bo-avm-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0 20px 12px; font-size: 12px; font-weight: 800; color: var(--bo-muted); }
.bo-avm-quick button { border: 1px solid var(--bo-line); border-radius: 99px; background: #fff; padding: 4px 10px; font: 700 12px var(--bo-font); cursor: pointer; }
.bo-avm-list { list-style: none; margin: 0; padding: 0; }
.bo-avm-row { display: grid; grid-template-columns: minmax(200px, 1fr) auto; align-items: center; gap: 8px 16px; padding: 12px 20px; border-top: 1px solid var(--bo-line-2); }
.bo-avm-date { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bo-avm-date b { display: block; font-size: 15px; }
.bo-avm-date small { color: var(--bo-muted); font-size: 12px; }
.bo-avm-check { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border: 2px solid var(--bo-line); border-radius: 6px; font-weight: 900; font-size: 13px; color: #fff; }
.bo-avm-check.on { background: var(--bo-green); border-color: var(--bo-green); }
.bo-avm-check.off { background: var(--bo-red); border-color: var(--bo-red); }
.bo-avm-opts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.bo-avm-opt { padding: 6px 11px; border: 1px solid var(--bo-line); border-radius: 99px; background: #fff; font: 700 12.5px var(--bo-font); color: var(--bo-ink-2); cursor: pointer; }
.bo-avm-opt:hover { border-color: var(--bo-faint); }
.bo-avm-opt.on.t-green { background: var(--bo-green); border-color: var(--bo-green); color: #fff; }
.bo-avm-opt.on.t-red { background: var(--bo-red); border-color: var(--bo-red); color: #fff; }
.bo-avm-opt.on.t-amber { background: var(--bo-amber); border-color: var(--bo-amber); color: #fff; }
.bo-avm-opt.on.t-yellow { background: var(--bo-gold); border-color: var(--bo-gold); color: var(--bo-ink); }
.bo-avm-hint { grid-column: 1 / -1; color: var(--bo-amber); font-size: 12px; font-weight: 700; padding-left: 36px; }
.bo-avm-hint.ok { color: var(--bo-green); }
.bo-avm-note { grid-column: 1 / -1; margin-left: 36px; width: calc(100% - 36px); }
.bo-avm-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--bo-line); background: #fafafb; }
@media (max-width: 760px) {
	.bo-avm-row { grid-template-columns: 1fr; padding: 12px 16px; }
	.bo-avm-opts { justify-content: flex-start; padding-left: 36px; }
	.bo-avm-head, .bo-avm-quick, .bo-avm-foot { padding-left: 16px; padding-right: 16px; }
	.bo-avm-foot { flex-direction: column; align-items: stretch; }
}

/* Utilizadores da Equipa */
.bo-roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.bo-role { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--bo-line); border-radius: 12px; background: #fff; text-align: left; font: inherit; cursor: pointer; }
.bo-role small { color: var(--bo-muted); font-size: 12px; }
.bo-role.on { border-color: var(--bo-ink); box-shadow: inset 0 0 0 1px var(--bo-ink); }
.bo-role-select { width: auto; min-width: 170px; }
.bo-team-users li { flex-wrap: wrap; }
.bo-roles-legend { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; font-size: 12.5px; color: var(--bo-muted); }
.bo-roles-legend b { display: block; color: var(--bo-ink); }
@media (max-width: 760px) { .bo-roles, .bo-roles-legend { grid-template-columns: 1fr; } .bo-role-select { min-width: 0; width: 100%; } }

/* Consulta (Diretor de Equipa): esconde as ações dos painéis antigos */
.bo-readonly .mlak-btn-primary, .bo-readonly .mlak-btn-danger, .bo-readonly .mlak-row-actions, .bo-readonly form button { display: none !important; }

/* Aceitar convite */
.bo-invite { display: grid; place-items: center; min-height: 100vh; padding: 24px 16px; background: var(--bo-bg); }
.bo-invite-card { width: min(440px, 100%); display: grid; gap: 14px; padding: 28px; }
.bo-invite-card h1 { margin: 0; font-size: 24px; }
.bo-invite-card p { margin: 0; color: var(--bo-muted); }
.bo-invite-logo { width: 72px; height: auto; }
.bo-invite-kicker { font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--bo-gold-ink); }
.bo-invite-teams { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bo-invite-teams li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--bo-gold-soft); }
.bo-invite-teams span { color: var(--bo-gold-ink); font-size: 13px; font-weight: 700; }
.bo-invite-user { display: grid; gap: 2px; padding: 10px 12px; border: 1px dashed var(--bo-line); border-radius: 10px; }
.bo-invite-user span, .bo-invite-user small { font-size: 12px; color: var(--bo-muted); }
.bo-invite-go { width: 100%; justify-content: center; padding: 12px; }

/* Disponibilidades (gestão) */
.bo-av-months { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 14px; padding-bottom: 2px; }
.bo-av-month { flex: none; display: grid; gap: 1px; padding: 8px 14px; border: 1px solid var(--bo-line); border-radius: 12px; background: #fff; font: inherit; text-align: left; cursor: pointer; }
.bo-av-month span { font-size: 12px; color: var(--bo-muted); }
.bo-av-month.on { background: var(--bo-ink); border-color: var(--bo-ink); color: #fff; }
.bo-av-month.on span { color: rgba(255, 255, 255, .7); }
.bo-av-status { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; margin-bottom: 14px; padding: 14px 18px; border-radius: var(--bo-radius); background: #fff; box-shadow: var(--bo-shadow); }
.bo-av-status small { display: block; font-size: 11px; font-weight: 800; color: var(--bo-faint); text-transform: uppercase; letter-spacing: .06em; }
.bo-av-status .bo-actions { margin-left: auto; }
.bo-av-bar { flex-wrap: wrap; gap: 10px; margin: 4px 0 14px; }
.bo-av-weeks { margin-bottom: 14px; }
.bo-av-counts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.bo-av-counts div { display: grid; padding: 12px 14px; border-radius: 12px; background: #fff; box-shadow: var(--bo-shadow); border-left: 4px solid var(--bo-line); }
.bo-av-counts b { font-size: 26px; line-height: 1.1; }
.bo-av-counts span { font-size: 12px; font-weight: 700; color: var(--bo-muted); }
.bo-av-counts .t-green { border-left-color: var(--bo-green); }
.bo-av-counts .t-red { border-left-color: var(--bo-red); }
.bo-av-counts .t-yellow { border-left-color: var(--bo-gold); }
.bo-av-counts .t-gray { border-left-color: var(--bo-faint); }
@media (max-width: 720px) { .bo-av-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bo-av-status .bo-actions { margin-left: 0; } }
.bo-av-matrix th.c, .bo-av-matrix td.c { text-align: center; white-space: nowrap; }
.bo-av-cell.st-green { background: var(--bo-green-soft); }
.bo-av-cell.st-red { background: var(--bo-red-soft); }
.bo-av-cell.st-amber { background: var(--bo-amber-soft); }
.bo-av-cell.st-yellow { background: var(--bo-gold-soft); }
.bo-av-sel { border: 0; background: transparent; font: 700 12px var(--bo-font); cursor: pointer; padding: 4px; }
.bo-suggest { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.bo-suggest li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--bo-line-2); }
.bo-suggest li small { margin-left: auto; }
.bo-suggest .ok { color: var(--bo-green); font-weight: 900; }

/* Calendarização: disponibilidade nas equipas, rondas */
.bo-dp-teamshead .bo-dp-sug { color: var(--bo-green); margin-left: auto; }
.bo-dp-av { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--bo-faint); vertical-align: 1px; }
.bo-dp-team.av-selected .bo-dp-av, .bo-dp-team.av-reserve .bo-dp-av, .bo-dp-av.g { background: var(--bo-green); }
.bo-dp-team.av-unavailable .bo-dp-av, .bo-dp-av.r { background: var(--bo-red); }
.bo-dp-av.y { background: var(--bo-gold); }
.bo-dp-av.n { background: #d0d3d9; }
.bo-dp-team.av-no_answer .bo-dp-av { background: #d0d3d9; }
.bo-dp-team.av-unavailable:not(.on) { color: var(--bo-faint); text-decoration: line-through; }
.bo-dp-legend { display: block; margin-top: 6px; }
.bo-dp-legend .bo-dp-av { margin-left: 6px; }
.bo-dp-round { display: block; font-style: normal; font-size: 10px; font-weight: 900; color: var(--bo-muted); background: var(--bo-line-2); border-radius: 6px; padding: 0 5px; margin-top: 2px; text-align: center; }
.bo-draw-line { margin: 0 22px 10px !important; }
.bo-draw-kpis b { white-space: nowrap; }
@media (min-width: 641px) { .bo-draw-kpis b { font-size: 17px; } }
.bo-av-bar .bo-search { width: 200px; }

/* Resumo da Jornada */
.bo-modal.bo-draw-preview { width: min(720px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.bo-draw-preview > header { display: flex; align-items: flex-start; justify-content: space-between; padding: 18px 22px 10px; }
.bo-draw-preview > header small { font-size: 12px; font-weight: 800; color: var(--bo-muted); }
.bo-draw-preview > header h2 { margin: 2px 0 0; font-size: 20px; }
.bo-draw-preview > :not(header):not(footer) { margin-left: 22px; margin-right: 22px; }
.bo-draw-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.bo-draw-kpis div { display: grid; padding: 10px 12px; border-radius: 12px; background: var(--bo-bg); }
.bo-draw-kpis b { font-size: 19px; }
.bo-draw-kpis span { font-size: 11.5px; font-weight: 800; color: var(--bo-muted); }
.bo-draw-kpis small { font-size: 11px; color: var(--bo-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bo-draw-rounds { overflow-y: auto; display: grid; gap: 12px; padding: 4px 0 12px; }
.bo-draw-round b { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--bo-muted); }
.bo-draw-round ul { list-style: none; margin: 6px 0 4px; padding: 0; }
.bo-draw-round li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--bo-line-2); font-size: 14px; }
.bo-draw-round li .m { font-weight: 700; }
.bo-draw-round li small { color: var(--bo-muted); }
.bo-draw-preview > footer { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--bo-line); }
.bo-draw-preview > footer > :first-child { margin-right: auto; }
@media (max-width: 640px) { .bo-draw-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bo-draw-preview > footer { flex-wrap: wrap; } }

/* ===== v2.14.0: disponibilidade por escalão, edição manual e histórico ===== */
.bo-avm-opt.on.t-gray { background: var(--bo-ink-2); border-color: var(--bo-ink-2); color: #fff; }
.bo-av-picker { padding: 16px 20px; margin-bottom: 16px; display: grid; gap: 12px; }
.bo-av-picker-sel { display: grid; gap: 6px; max-width: 420px; }
.bo-av-picker-sel span { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--bo-muted); }
.bo-av-teamstate { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bo-av-teamstate button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--bo-line); border-radius: 10px; background: #fff; font: inherit; color: var(--bo-ink); cursor: pointer; text-align: left; }
.bo-av-teamstate button:hover { border-color: var(--bo-faint); }
.bo-av-teamstate li.on button { border-color: var(--bo-ink); box-shadow: inset 3px 0 0 var(--bo-ink); cursor: default; }
.bo-av-teamstate i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.bo-av-teamstate b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bo-av-teamstate small { color: var(--bo-muted); font-weight: 700; }
.bo-av-counts-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bo-av-day { display: grid; gap: 12px; }
.bo-av-day > div { border-left: 4px solid var(--bo-line); padding-left: 12px; }
.bo-av-day > div.t-green { border-left-color: var(--bo-green); }
.bo-av-day > div.t-red { border-left-color: var(--bo-red); }
.bo-av-day > div.t-gray { border-left-color: var(--bo-faint); }
.bo-av-day small { display: block; font-size: 12px; font-weight: 800; color: var(--bo-muted); margin-bottom: 4px; }
.bo-av-day ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.bo-av-day li button, .bo-av-day li > span { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border: 1px solid var(--bo-line); border-radius: 99px; background: #fff; font: 700 13px var(--bo-font); color: var(--bo-ink); }
.bo-av-day li button { cursor: pointer; }
.bo-av-day li button:hover { border-color: var(--bo-ink); }
.bo-av-man { color: var(--bo-blue); font-size: 11px; margin-left: 2px; }
.bo-av-cellbtn { width: 100%; min-height: 32px; border: 0; background: transparent; font: 700 12px var(--bo-font); color: inherit; cursor: pointer; border-radius: 6px; }
.bo-av-cellbtn:hover { box-shadow: inset 0 0 0 2px var(--bo-ink); }
.bo-modal .bo-av-edit { margin: 4px -4px 12px; border: 1px solid var(--bo-line-2); border-radius: 12px; max-height: 46vh; overflow: auto; }
.bo-av-edit .bo-avm-row { padding: 10px 12px; }
.bo-av-edit .bo-avm-row:first-child { border-top: 0; }
.bo-av-edit .bo-avm-row.focus { background: var(--bo-gold-soft); }
.bo-av-edit .bo-avm-opts { padding-left: 0; }
.bo-av-reasons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.bo-av-reasons button { padding: 4px 10px; border: 1px solid var(--bo-line); border-radius: 99px; background: #fff; font: 700 12px var(--bo-font); color: var(--bo-ink-2); cursor: pointer; }
.bo-av-reasons button.on { background: var(--bo-ink); border-color: var(--bo-ink); color: #fff; }
.bo-av-hist-mini { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--bo-line-2); display: grid; gap: 6px; font-size: 12.5px; }
.bo-av-hist-mini div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; color: var(--bo-ink-2); }
.bo-av-log td { vertical-align: top; }
@media (max-width: 720px) {
	.bo-av-counts-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.bo-av-counts-3 b { font-size: 20px; }
}
.bo-modal.bo-modal-wide { width: min(580px, 100%); max-height: calc(100vh - 32px); overflow: auto; }
.bo-av-edit .bo-avm-row { grid-template-columns: minmax(90px, 1fr) auto; }
@media (max-width: 560px) { .bo-av-edit .bo-avm-row { grid-template-columns: 1fr; } }

/* ===== v2.15.0: menu de ações sobreposto (nunca cortado) ===== */
.bo-menu-list.bo-menu-float { position: fixed; top: auto; right: auto; z-index: 120; width: 240px; min-width: 0; overflow: auto; animation: bo-menu-in .12s ease-out; }
.bo-menu-list.bo-menu-float button span { flex: 1; min-width: 0; }
.bo-menu-list.bo-menu-float.sheet { left: 8px; right: 8px; bottom: 8px; width: auto; max-height: 70vh; border-radius: 16px; padding: 8px; animation: bo-sheet-in .16s ease-out; }
.bo-menu-list.sheet button { padding: 13px 12px; font-size: 15px; }
.bo-menu-scrim { position: fixed; inset: 0; z-index: 119; background: rgba(10, 11, 14, .35); }
.bo-menu-title { padding: 6px 12px 10px; font-size: 12px; font-weight: 800; color: var(--bo-muted); text-transform: uppercase; letter-spacing: .04em; }
.bo-menu-text { width: auto; padding: 0 10px; gap: 6px; font: 700 12.5px var(--bo-font); }
@keyframes bo-menu-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes bo-sheet-in { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.bo-noemail { color: var(--bo-red); font-weight: 800; font-size: 13px; }
.bo-noemail small { color: var(--bo-muted); font-weight: 600; }
.bo-table td.nowrap { white-space: nowrap; }
/* Responsáveis da equipa (ficha) */
.bo-resp { margin: 14px 0; padding: 14px 16px; border: 1px solid var(--bo-line); border-radius: var(--bo-radius); background: #fff; }
.bo-resp-title { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--bo-muted); }
.bo-resp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; margin-top: 10px; }
.bo-resp-row > small { display: block; font-size: 12px; font-weight: 800; color: var(--bo-muted); margin-bottom: 4px; }
.bo-resp-person { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 6px 0; }
.bo-resp-person + .bo-resp-person { border-top: 1px solid var(--bo-line-2); }
.bo-resp-main { display: grid; gap: 2px; min-width: 0; }
.bo-resp-main > span { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; }
.bo-resp-main em { font-style: normal; font-size: 12px; color: var(--bo-amber); }
@media (max-width: 640px) { .bo-resp-grid { grid-template-columns: 1fr; } .bo-resp-person { flex-direction: column; } }
/* Separadores das entradas agrupadas do menu */
.bo-subtabs { display: flex; gap: 4px; margin: -4px 0 18px; padding: 4px; width: max-content; max-width: 100%; overflow-x: auto; background: #fff; border: 1px solid var(--bo-line); border-radius: 12px; }
.bo-subtabs button { flex: none; padding: 8px 14px; border: 0; border-radius: 9px; background: none; font: 700 13.5px var(--bo-font); color: var(--bo-muted); cursor: pointer; white-space: nowrap; }
.bo-subtabs button:hover { color: var(--bo-ink); }
.bo-subtabs button.on { background: var(--bo-ink); color: #fff; }
.bo-people-table td[data-l="Email"] > span:first-child { flex-wrap: nowrap; white-space: nowrap; }
.bo-people-table td[data-l="Estado"] .bo-pill, .bo-people-table td[data-l="Estado"] span { white-space: nowrap; }
.bo-people-table td[data-l="Clube"] { min-width: 110px; }
/* v2.16.0: pedir o nome da pessoa */
.bo-name-prompt { display: grid; grid-template-columns: 1fr minmax(180px, 280px) auto; gap: 12px; align-items: center; padding: 14px 18px; border-left: 4px solid var(--bo-gold); }
.bo-name-prompt b { display: block; }
.bo-name-prompt small { color: var(--bo-muted); }
@media (max-width: 720px) { .bo-name-prompt { grid-template-columns: 1fr; } }
.bo-managed { padding: 10px 12px; border: 1px dashed var(--bo-line); border-radius: 10px; background: var(--bo-bg); display: grid; gap: 4px; }
.bo-managed > div { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.bo-managed > div span { font-size: 13px; color: var(--bo-ink-2); }
.bo-managed small { color: var(--bo-muted); }
/* v2.16.0: Calendarização mais leve */
.bo-dp-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 9px 12px; margin-bottom: 10px; border-radius: 10px; background: var(--bo-bg); font-size: 13px; font-weight: 700; color: var(--bo-ink-2); }
.bo-dp-summary span { flex: 1; min-width: 0; }
.bo-dp-opts { padding: 10px 12px 4px; margin-bottom: 10px; border: 1px solid var(--bo-line); border-radius: 12px; }
.bo-dp-warn { display: grid; gap: 2px; margin-top: 6px; padding: 8px 10px; border-radius: 10px; background: var(--bo-amber-soft); }
.bo-dp-warn small { color: var(--bo-amber); font-weight: 700; }
.bo-dp-warn .bo-link { justify-self: start; font-size: 12px; }
.bo-dp-manual-link { display: inline-block; margin-top: 12px; font-size: 13px; }
.bo-sched-list { list-style: none; margin: 0; padding: 0; }
.bo-sched-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--bo-line-2); }
.bo-sched-list li:first-child { border-top: 0; }
.bo-sched-list li > div { display: grid; gap: 2px; min-width: 0; }
.bo-sched-list li span { font-size: 13px; color: var(--bo-muted); }
.bo-dp-opts-foot { display: flex; justify-content: flex-end; padding: 2px 0 8px; border-top: 1px solid var(--bo-line-2); margin-top: 4px; padding-top: 8px; }
/* v2.16.2: separadores da área da equipa deslizam no telemóvel (não alargam a página) */
.boc-tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.boc-tabs::-webkit-scrollbar { display: none; }
.boc-tabs > button { flex: none; white-space: nowrap; }
@media (max-width: 560px) {
	.bo-av-picker { padding: 14px; }
	.bo-av-teamstate button { flex-wrap: wrap; row-gap: 4px; }
	.bo-av-teamstate b { flex: 1 1 calc(100% - 24px); white-space: normal; }
	.bo-av-teamstate small { margin-left: 20px; }
}

/* v2.17.0 — fecho da calendarização, histórico e versões */
.bo-lockbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 0 0 10px; padding: 9px 12px; border-radius: 10px; background: var(--bo-line-2); border: 1px solid var(--bo-line); }
.bo-lockbar > div:first-child { display: grid; gap: 2px; min-width: 0; }
.bo-lockbar b { font-size: 13px; }
.bo-lockbar span { font-size: 12px; color: var(--bo-muted); }
.bo-lockbar.on { background: var(--bo-green-soft); border-color: #bfe3cd; }
.bo-lockbar.on b { color: var(--bo-green); }
.bo-lockbar .bo-actions { gap: 6px; }
.bo-dayplan-locked { margin: 10px 0 0; font-size: 12.5px; color: var(--bo-muted); line-height: 1.45; }
.bo-tabs-inline { display: flex; gap: 4px; border-bottom: 1px solid var(--bo-line); margin-bottom: 12px; overflow-x: auto; }
.bo-tabs-inline button { border: 0; background: none; padding: 9px 12px; font: inherit; font-weight: 700; font-size: 13px; color: var(--bo-muted); border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.bo-tabs-inline button.on { color: inherit; border-bottom-color: var(--bo-gold); }
.bo-hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bo-hist > li { border: 1px solid var(--bo-line); border-radius: 10px; padding: 10px 12px; background: #fff; }
.bo-hist-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 12px; color: var(--bo-muted); }
.bo-hist-meta b { color: inherit; color: #111318; }
.bo-hist p { margin: 6px 0 2px; font-size: 13.5px; line-height: 1.45; overflow-wrap: anywhere; }
.bo-hist small { font-size: 12px; color: var(--bo-muted); }
.bo-hist details { margin-top: 6px; font-size: 12.5px; }
.bo-hist summary { cursor: pointer; color: var(--bo-gold-ink); font-weight: 700; }
.bo-hist-diff, .bo-hist-games { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.bo-hist-diff li { display: flex; gap: 8px; align-items: baseline; overflow-wrap: anywhere; }
.bo-hist-diff li i { font-style: normal; font-weight: 800; width: 12px; flex: none; }
.bo-hist-diff li.added i { color: var(--bo-green); }
.bo-hist-diff li.removed i { color: var(--bo-red); }
.bo-hist-diff li.changed i { color: var(--bo-gold-ink); }
.bo-hist-games li { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.bo-hist-games small { color: var(--bo-muted); }
.bo-hist-foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.bo-confirmed { display: block; color: var(--bo-green); font-weight: 700; font-size: 12px; margin-top: 2px; }

/* ==========================================================================
   v2.18.0 — Estatísticas do site e Privacidade e cookies
   ========================================================================== */
.st { display: grid; gap: 16px; }
.st > .bo-page-head { margin-bottom: 0; }
.st-actions { display: flex; gap: 8px; align-items: center; }
.st-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.st-custom { display: flex; align-items: center; gap: 8px; }
.st-custom .bo-input { height: 38px; width: auto; }
.st-live { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; font-size: 12.5px; font-weight: 800; color: var(--bo-ink-2); }
.st-live i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .18); }
.st-delta { display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 999px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.st-delta.up { background: var(--bo-green-soft); color: var(--bo-green); }
.st-delta.down { background: var(--bo-red-soft); color: var(--bo-red); }
.st-delta.flat { background: #eef0f3; color: var(--bo-muted); }
.st-note { margin: 10px 0 0; font-size: 12.5px; color: var(--bo-muted); }
.st-note code { font-size: 11.5px; word-break: break-all; background: #f4f5f7; padding: 1px 5px; border-radius: 5px; }
.st-empty { margin: 6px 0; }
.st-h3 { margin: 16px 0 8px; font-size: 13px; font-weight: 800; }

/* Bloco executivo */
.st-exec { position: relative; overflow: hidden; padding: 22px 24px; border-radius: 18px; background: #0b0b0d; color: #fff; }
.st-exec::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(245, 180, 0, .28), transparent 70%); pointer-events: none; }
.st-exec-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.st-exec-head small { font-size: 11px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--bo-gold); }
.st-exec-head h2 { margin: 4px 0 2px; font-size: 24px; font-weight: 800; letter-spacing: -.3px; }
.st-exec-head p { margin: 0; color: #a3a7af; font-size: 13px; }
.st-exec-head img { width: 54px; height: 54px; object-fit: contain; }
.st-exec-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: #24252b; border-radius: 12px; overflow: hidden; }
.st-exec-grid > div { padding: 14px 16px; background: #131418; display: grid; gap: 3px; align-content: start; }
.st-exec-grid b { font-size: 30px; font-weight: 800; line-height: 1; letter-spacing: -.5px; color: #fff; font-variant-numeric: tabular-nums; }
.st-exec-grid span { font-size: 12.5px; font-weight: 700; color: #d6d8dd; }
.st-exec-grid small { font-size: 11.5px; color: #8b9099; }
.st-exec-grid > div:last-child b { color: var(--bo-gold); }

/* KPIs */
.st-kpis { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.st-kpi { cursor: default; gap: 6px; padding-bottom: 10px; overflow: hidden; }
.st-kpi:hover { transform: none; }
.st-kpi-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.st-kpi .val { font-size: 26px; }
.st-spark { display: block; width: calc(100% + 32px); height: 30px; margin: 4px -16px -10px; }

/* Gráfico */
.st-chart svg { display: block; width: 100%; height: auto; }
.st-ax { font-size: 10.5px; fill: var(--bo-faint); font-family: var(--bo-font); }
.st-bar { fill: #f5c542; transition: fill .12s; }
.st-bar.on { fill: #d99a00; }
.st-chart-tip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; min-height: 22px; margin-top: 6px; font-size: 12.5px; }
.st-chart-tip .sw { display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px; border-radius: 3px; }
.st-chart-tip .sw.bar { background: #f5c542; }
.st-chart-tip .sw.line { height: 3px; vertical-align: 3px; background: var(--bo-ink); }

/* Rankings */
.st-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.st-bars li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.st-bars .rk { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: #f1f2f5; font-size: 11px; font-weight: 800; color: var(--bo-ink-2); }
.st-bars li:first-child .rk { background: var(--bo-gold-soft); color: var(--bo-gold-ink); }
.st-bars .ln { display: flex; align-items: baseline; gap: 8px; min-width: 0; margin-bottom: 4px; }
.st-bars .nm { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-bars .ln small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11.5px; }
.st-bars .tr { height: 6px; border-radius: 999px; background: #f1f2f5; overflow: hidden; }
.st-bars .tr i { display: block; height: 100%; border-radius: 999px; }
.st-bars .vl { display: flex; align-items: center; gap: 8px; text-align: right; }
.st-bars .vl b { font-variant-numeric: tabular-nums; }
.st-bars .vl small { min-width: 38px; color: var(--bo-muted); font-size: 11.5px; }

/* Donut */
.st-donut { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; align-items: center; }
.st-donut svg { width: 150px; height: 150px; }
.st-donut ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.st-donut li { display: grid; grid-template-columns: 12px 1fr auto auto; gap: 8px; align-items: center; }
.st-donut li i { width: 12px; height: 12px; border-radius: 4px; }
.st-donut li b { font-variant-numeric: tabular-nums; }
.st-donut li small { min-width: 40px; text-align: right; color: var(--bo-muted); }

/* Inscrições */
.st-funnel { display: grid; gap: 8px; }
.st-funnel-step { position: relative; display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; overflow: hidden; }
.st-funnel-step > i { position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--bo-gold-soft); border-right: 3px solid var(--bo-gold); }
.st-funnel-step > * { position: relative; }
.st-funnel-step b { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.st-funnel-step span { font-weight: 700; color: var(--bo-ink-2); }
.st-conv { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 14px; border-radius: 12px; background: #0b0b0d; color: #fff; }
.st-conv b { font-size: 30px; font-weight: 800; color: var(--bo-gold); }
.st-conv span { font-weight: 800; display: grid; }
.st-conv small { font-weight: 600; color: #a3a7af; font-size: 11.5px; }

/* Patrocinador */
.st-sp-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.st-sp-kpis > div { display: grid; gap: 3px; align-content: start; padding: 12px; border-radius: 12px; background: #f6f7f9; }
.st-sp-kpis > div.tot { background: var(--bo-gold-soft); }
.st-sp-kpis b { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.st-sp-kpis span { font-size: 12px; font-weight: 700; color: var(--bo-ink-2); }
.st-sp-kpis .st-delta { justify-self: start; }

/* Localização */
.st-geo { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); gap: 18px; align-items: start; }
.st-map { width: 100%; height: auto; }

/* Exportar */
.st-export { position: relative; }
.st-export-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: 260px; padding: 6px; border: 1px solid var(--bo-line); border-radius: 12px; background: #fff; box-shadow: var(--bo-shadow-lg); }
.st-export-menu button { display: grid; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: none; text-align: left; cursor: pointer; }
.st-export-menu button:hover { background: #f4f5f7; }
.st-export-menu small { color: var(--bo-muted); font-size: 11.5px; }

/* Ligação */
.st-status { display: grid; grid-template-columns: 10px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--bo-line-2); }
.st-status:first-child { padding-top: 0; }
.st-status small { display: block; color: var(--bo-muted); font-size: 12px; word-break: break-word; }
.st-dot { width: 10px; height: 10px; border-radius: 50%; background: #c4c8cf; }
.st-dot.green { background: #22c55e; } .st-dot.red { background: var(--bo-red); } .st-dot.amber { background: #f59e0b; }
.st-steps { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 6px; color: var(--bo-ink-2); }

/* Privacidade */
.st-cc-preview { margin-top: 4px; padding: 14px 16px 14px 18px; border: 1px solid #eadfc4; border-left: 4px solid var(--bo-gold); border-radius: 14px; background: #fbf7ec; }
.st-cc-preview b { font-size: 14px; }
.st-cc-preview p { margin: 2px 0 10px; font-size: 12.5px; color: var(--bo-ink-2); }
.st-cc-preview div { display: flex; flex-wrap: wrap; gap: 6px; }
.st-cc-preview span { padding: 6px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 800; }
.st-cc-preview .g { text-decoration: underline; text-decoration-color: var(--bo-gold); }
.st-cc-preview .o { border: 1px solid var(--bo-ink); background: #fff; }
.st-cc-preview .d { background: var(--bo-ink); color: #fff; }
.st-radio { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.st-radio-opt { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 14px; border: 1px solid var(--bo-line); border-radius: 12px; cursor: pointer; }
.st-radio-opt.on { border-color: var(--bo-gold); background: var(--bo-gold-soft); }
.st-radio-opt input { margin-top: 3px; accent-color: #111318; }
.st-radio-opt small { display: block; margin-top: 3px; color: var(--bo-muted); font-size: 12.5px; }
.st-policy-ta { width: 100%; min-height: 260px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; line-height: 1.55; }
.st-cc-sum { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--bo-line-2); border-bottom: 1px solid var(--bo-line-2); }
.st-cc-sum > div { display: grid; gap: 2px; padding: 14px 18px; background: #fff; }
.st-cc-sum b { font-size: 20px; font-weight: 800; }
.st-cc-sum span { font-size: 12px; color: var(--bo-muted); font-weight: 700; }

@media (max-width: 1280px) { .st-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .st-exec-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) {
	.st-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.st-exec { padding: 18px; }
	.st-exec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.st-exec-grid b { font-size: 24px; }
	.st-donut, .st-geo, .st-radio { grid-template-columns: 1fr; }
	.st-donut svg { margin: 0 auto; }
	.st-geo .st-map { max-width: 220px; margin: 0 auto; }
	.st-sp-kpis, .st-cc-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.st-live { margin-left: 0; }
	.st-funnel-step { grid-template-columns: 54px 1fr auto; }
}

/* Impressão / PDF */
@media print {
	@page { size: A4; margin: 12mm; }
	body { background: #fff !important; }
	.bo { display: block; background: #fff; }
	.bo-side, .bo-top, .bo-subtabs, .st-noprint, .st-toolbar, .bo-burger, .bo-toast { display: none !important; }
	.bo-main, .bo-content { padding: 0 !important; margin: 0 !important; }
	.bo-card, .st-exec, .st-kpi { break-inside: avoid; box-shadow: none !important; }
	.st-exec, .st-conv { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	.st-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.bo-grid-2 { grid-template-columns: 1fr 1fr; }
	body.st-print-sponsor .st > *:not(.st-print-keep):not(.bo-page-head):not(.bo-grid) { display: none !important; }
	body.st-print-sponsor .st .bo-grid > *:not(.st-print-keep) { display: none !important; }
	body.st-print-sponsor .st .bo-grid:not(:has(.st-print-keep)) { display: none !important; }
	body.st-print-sponsor .st .bo-grid { grid-template-columns: 1fr; }
}
.bo-form .st-note, .bo-form > .bo-switch, .bo-form .st-cc-preview { grid-column: 1 / -1; }

.st, .st > *, .st-toolbar > * { min-width: 0; }
.st-toolbar .bo-seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.st-toolbar .bo-seg button { flex: none; }
@media (max-width: 720px) { .st-custom { flex-wrap: wrap; } .st .bo-page-head { flex-wrap: wrap; } .st-exec-head img { width: 40px; height: 40px; } }
@media (max-width: 720px) { .st-exec-grid > div:last-child { grid-column: 1 / -1; } }

@media print {
	.st-exec-grid { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
	.st-exec-grid > div:last-child { grid-column: auto !important; }
	.st .bo-card-head .bo-seg, .st-chart-tip small, .st-export, .st-live { display: none !important; }
	.bo-main, .bo-content { min-height: 0 !important; border: 0 !important; }
}
@media print { html, body { background: #fff !important; } }

/* ---------- v2.19.0: Galeria › Configurações (marca de água) ---------- */
.wm-grid { align-items: start; margin-bottom: 16px; }
.wm-card + .wm-card { margin-top: 16px; }
.wm-opts { display: grid; gap: 12px; margin-top: 14px; }
.wm-opts.off { opacity: .5; pointer-events: none; }
.wm-label { font-size: 12.5px; font-weight: 700; color: var(--bo-muted); text-transform: uppercase; letter-spacing: .04em; margin-top: 6px; }
.wm-pos { grid-template-columns: 1fr; gap: 8px; }
.wm-pos .st-radio-opt { padding: 11px 14px; }
.wm-pos b { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wm-range { display: grid; gap: 4px; }
.wm-range label { display: flex; justify-content: space-between; font-weight: 600; }
.wm-range b { font-variant-numeric: tabular-nums; }
.wm-range input[type=range] { width: 100%; accent-color: #111318; }
.wm-range small { color: var(--bo-muted); font-size: 12.5px; }
.wm-logo { display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: center; }
.wm-logo small { display: block; color: var(--bo-muted); font-size: 12.5px; margin-top: 2px; }
.wm-logo-prev { width: 92px; height: 92px; border-radius: 12px; display: grid; place-items: center; background: #2a3a2c linear-gradient(135deg, #3d5a3f, #1f2b21); }
.wm-logo-prev img { max-width: 76px; max-height: 76px; }
.wm-preview { margin: 12px 0 0; }
.wm-preview img, .wm-compare img { display: block; width: 100%; height: auto; border-radius: 10px; background: #eef0f3; }
.wm-preview .bo-skel, .wm-compare .bo-skel { height: 300px; }
.wm-compare { display: grid; gap: 12px; margin-top: 12px; }
.wm-compare figure { margin: 0; }
.wm-compare figcaption { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-weight: 600; font-size: 13px; }
.wm-facts { margin: 0; padding-left: 18px; display: grid; gap: 6px; }

/* ===== v2.20.0 — Documentação e validação da inscrição ===== */
.rg-team { margin-bottom: 28px; }
.rg-team-grid { display: grid; grid-template-columns: minmax(250px, 300px) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 900px) { .rg-team-grid { grid-template-columns: 1fr; } }
.rg-progress { padding: 18px; position: sticky; top: 12px; }
.rg-progress.is-complete { border-color: #b7e4c7; }
.rg-progress-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.rg-progress-head h2 { margin: 0 0 6px; font-size: 16px; }
.rg-pct { font-size: 28px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.rg-bar { display: flex; align-items: center; gap: 8px; min-width: 120px; }
.rg-bar i { position: relative; flex: 1; height: 8px; border-radius: 99px; background: #eceef1; overflow: hidden; }
.rg-bar i b { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: var(--bo-gold); transition: width .3s; }
.rg-bar.ok i b { background: var(--bo-green); }
.rg-bar > span { font-size: 12.5px; font-weight: 800; font-variant-numeric: tabular-nums; min-width: 36px; text-align: right; }
.rg-progress .rg-bar > span { display: none; }
.rg-check, .rg-check ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.rg-check ul { margin: 8px 0 0; padding-left: 28px; flex-basis: 100%; }
.rg-check li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.rg-check li > span:nth-child(2) { flex: 1; min-width: 0; }
.rg-check li.no > span:nth-child(2) { color: var(--bo-ink-2); }
.rg-tick { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; flex: none; }
li.ok > .rg-tick { background: var(--bo-green-soft); color: var(--bo-green); }
li.no > .rg-tick { background: var(--bo-red-soft); color: var(--bo-red); }
.rg-note { margin: 14px 0 0; font-size: 12.5px; color: var(--bo-muted); }
.rg-docs { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--bo-line); border-radius: 14px; }
.rg-doc { padding: 16px; display: grid; gap: 10px; }
.rg-doc + .rg-doc { border-top: 1px solid var(--bo-line); }
.rg-doc.st-rejeitado, .rg-doc.st-nova_versao, .rg-doc.is-late { box-shadow: inset 3px 0 0 var(--bo-red); }
.rg-doc.st-aprovado { box-shadow: inset 3px 0 0 var(--bo-green); }
.rg-doc.st-submetido { box-shadow: inset 3px 0 0 var(--bo-blue); }
.rg-doc-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.rg-doc-main { display: grid; gap: 3px; min-width: 0; }
.rg-doc-main > b { font-size: 15px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rg-doc-desc { font-size: 13px; color: var(--bo-ink-2); }
.rg-doc-deadline { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--bo-muted); font-weight: 700; }
.rg-doc-deadline.late { color: var(--bo-red); }
.rg-req { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: #eef0f3; color: var(--bo-muted); }
.rg-req.on { background: var(--bo-red-soft); color: var(--bo-red); }
.rg-status-wrap { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; flex: none; }
.rg-comment { display: flex; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--bo-red-soft); color: #7a0a1c; font-size: 13px; }
.rg-comment > div { display: grid; gap: 2px; }
.rg-doc-actions { display: grid; gap: 8px; }
.rg-tpl, .rg-sent, .rg-doc-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rg-lbl { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--bo-faint); min-width: 92px; }
.rg-file { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; color: var(--bo-ink); font-weight: 700; font-size: 13px; text-decoration: none; }
.rg-file:hover span { text-decoration: underline; }
.rg-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.rg-file .bo-docglyph { width: 26px; height: 32px; font-size: 8px; padding-bottom: 4px; }
.rg-when, .rg-small { font-size: 12px; }
.rg-hint { color: var(--bo-muted); font-size: 12px; }
.rg-histbtn { border: 0; background: none; padding: 0 4px; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--bo-blue); cursor: pointer; text-decoration: underline; }
.rg-versions { list-style: none; margin: 0; padding: 10px 12px; border-radius: 10px; background: #fafbfc; display: grid; gap: 6px; font-size: 12.5px; }
.rg-versions li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rg-versions a { color: var(--bo-ink); font-weight: 700; }
.rg-reasons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.rg-lib-title { margin: 8px 0 12px; font-size: 18px; }
.rg-notice { border-color: #f4c7cf; background: var(--bo-red-soft); color: #7a0a1c; }
.rg-notice:hover { background: #fbdde3; }
.rg-kpis .bo-kpi.on { border-color: var(--bo-ink); box-shadow: 0 0 0 1px var(--bo-ink); }
.rg-teams { list-style: none; margin: 0; padding: 0; }
.rg-teams li + li { border-top: 1px solid var(--bo-line); }
.rg-team-row { display: grid; grid-template-columns: auto minmax(160px, 1.3fr) minmax(160px, 1.4fr) auto minmax(120px, 160px) auto; align-items: center; gap: 14px; width: 100%; padding: 12px 18px; border: 0; background: #fff; font: inherit; color: var(--bo-ink); text-align: left; cursor: pointer; }
.rg-team-row:hover { background: #fafbfc; }
.rg-team-name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.rg-team-state { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
.rg-team-state.ok { color: var(--bo-green); }
.rg-team-state.miss { color: var(--bo-amber); }
.rg-team-state.pend { color: var(--bo-blue); }
.rg-dots { display: inline-flex; gap: 4px; }
.rg-dots i { width: 10px; height: 10px; border-radius: 50%; background: #d7dade; }
.rg-dots i.st-aprovado { background: var(--bo-green); }
.rg-dots i.st-submetido { background: var(--bo-blue); }
.rg-dots i.st-rejeitado, .rg-dots i.st-nova_versao, .rg-dots i.late { background: var(--bo-red); }
.bo-docglyph.none { background: #d7dade; color: #6b7280; place-items: center; padding: 0; }
.rg-reqstats { font-size: 12.5px; color: var(--bo-ink-2); }
@media (max-width: 760px) {
	.rg-team-row { grid-template-columns: auto minmax(0, 1fr) auto; row-gap: 6px; }
	.rg-team-state { grid-column: 2 / 4; }
	.rg-dots { display: none; }
	.rg-team-row .rg-bar { grid-column: 2 / 3; }
	.rg-doc-top { flex-direction: column; }
	.rg-status-wrap { justify-content: flex-start; }
	.rg-lbl { min-width: 0; width: 100%; }
	.rg-progress { position: static; }
}
.bo-doc-main .rg-reqstats b { display: inline; font-size: inherit; }
