/* v11 */
/* ============================================================
   KCB INSCRIÇÕES — style.css
   Tema alinhado com KCB Principal e KCB Sumulas (painel.html)
   ============================================================ */

:root {
  /* ── Cores — idênticas ao painel.html do kcb-sumulas ── */
  --primary:   #c83636;
  --primary-d: #a02828;
  --primary-l: rgba(200,54,54,0.08);
  --dark:      #252525;
  --gray:      #777;
  --gray-l:    #aaa;
  --light:     #f8f8f8;
  --border:    #e5e5e5;
  --white:     #fff;
  --gold:      #f39c12;
  --shadow:    0 2px 12px rgba(0,0,0,0.07);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);

  /* ── Aliases para não quebrar código existente ── */
  --kcb-red:  var(--primary);
  --kcb-dark: var(--dark);
  --kcb-gold: var(--gold);
  --kcb-gray: var(--light);
  --sidebar-w: 240px;
}

/* ── BASE ─────────────────────────────────────────────────── */
* { box-sizing: border-box; }
body { font-family: 'Inter', 'Segoe UI', sans-serif; background: var(--kcb-gray); margin: 0; }

/* ── INDEX ────────────────────────────────────────────────── */
#screen-index {
  display: none;
  min-height: 100vh;
  background: linear-gradient(180deg, #0a0a1a 0%, #1a1a2e 100%);
}
.index-nav {
  background: rgba(0,0,0,.6); backdrop-filter: blur(10px);
  padding: 12px 32px; display: flex; align-items: center;
  justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.08);
  position: sticky; top: 0; z-index: 200;
}
.index-nav .nav-brand { color: white; font-weight: 800; font-size: 1.05rem; display: flex; align-items: center; gap: 10px; }
.kcb-badge-nav { width: 32px; height: 32px; background: var(--kcb-red); border-radius: 8px;
                 display: inline-flex; align-items: center; justify-content: center;
                 color: white; font-size: 11px; font-weight: 900; }
.index-nav .nav-links { display: flex; gap: 20px; align-items: center; }
.index-nav .nav-links a { color: rgba(255,255,255,.65); text-decoration: none; font-size: .83rem; }
.index-nav .nav-links a:hover { color: white; }
.index-nav .nav-links a.admin-link { color: rgba(255,255,255,.3); font-size: .78rem; }

.index-hero { text-align: center; padding: 48px 20px 28px; }
.index-hero h2 { color: white; font-weight: 800; font-size: 1.6rem; margin-bottom: 6px; }
.index-hero p { color: rgba(255,255,255,.55); font-size: .88rem; }
.index-evento-badge {
  display: inline-block; background: rgba(192,57,43,.3);
  border: 1px solid var(--kcb-red); color: #ff8a80;
  border-radius: 20px; padding: 4px 16px; font-size: .76rem; margin-bottom: 14px;
}
.orgs-section { padding: 0 24px 48px; max-width: 1000px; margin: 0 auto; }
.orgs-section h5 {
  color: rgba(255,255,255,.4); font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; text-align: center;
}
.orgs-grid { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 28px; }
.org-btn {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column;
  align-items: center; gap: 7px; cursor: pointer; transition: all .2s;
  min-width: 105px; text-decoration: none;
}
.org-btn:hover { background: rgba(255,255,255,.12); border-color: var(--kcb-red); transform: translateY(-2px); }
.org-logo-circle {
  width: 52px; height: 52px; border-radius: 50%; overflow: hidden;
  background: rgba(255,255,255,.1); display: flex; align-items: center;
  justify-content: center; font-size: 13px; font-weight: 800; color: white;
}
.org-btn .org-name { color: white; font-size: .7rem; font-weight: 600; text-align: center; line-height: 1.2; }
.org-btn .org-city { color: rgba(255,255,255,.38); font-size: .63rem; }
.org-btn.convidado { background: rgba(243,156,18,.1); border-color: rgba(243,156,18,.3); }
.org-btn.convidado .org-logo-circle { background: rgba(243,156,18,.2); color: var(--kcb-gold); }
.org-btn.convidado .org-name { color: var(--kcb-gold); }
.org-btn.inativa { opacity: .4; filter: grayscale(1) brightness(.85); pointer-events: none; }
.index-admin-link { text-align: center; margin-top: 8px; }
.index-admin-link a { color: rgba(255,255,255,.25); font-size: .73rem; text-decoration: none; }
.index-admin-link a:hover { color: rgba(255,255,255,.6); }

/* ── TELA SENHA ──────────────────────────────────────────── */
#screen-senha {
  min-height: 100vh;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  display: flex; align-items: center; justify-content: center;
}
.senha-box {
  background: white; border-radius: 16px; padding: 40px 38px 32px;
  width: 380px; box-shadow: 0 24px 80px rgba(0,0,0,.55);
  text-align: center;
}
.senha-org-header { margin-bottom: 24px; }
.senha-org-logo {
  width: 90px; height: 90px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; color: white;
  background: transparent;
  overflow: hidden;
}
#senha-logo-txt {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  background: var(--dark); border-radius: 50%;
  color: white; font-size: 22px; font-weight: 800;
}
.senha-org-nome {
  font-weight: 800; font-size: 1.05rem; color: var(--dark);
  margin-bottom: 4px;
}
.senha-org-local { font-size: .78rem; color: var(--gray); }
.mockup-badge {
  background: #fff3cd; border: 1px solid #ffc107; border-radius: 6px;
  padding: 6px 12px; font-size: .73rem; color: #856404; text-align: center; margin-bottom: 14px;
}
.senha-box .form-label { font-size: .82rem; font-weight: 600; color: var(--dark); text-align: left; display: block; }
.senha-box .form-control { border-radius: 8px; border: 2px solid var(--border);
  font-size: .95rem; padding: 10px 14px; transition: border-color .2s; text-align: left; }
.senha-box .form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-l); outline: none; }
.btn-entrar { background: var(--primary); color: white; border: none; width: 100%;
              padding: 13px; border-radius: 8px; font-weight: 600; font-size: .95rem;
              cursor: pointer; transition: background .2s; margin-top: 6px; }
.btn-entrar:hover { background: var(--primary-d); }
.btn-entrar:disabled { opacity: .65; }
.btn-voltar-index { background: none; border: none; color: var(--gray); font-size: .79rem;
                    text-align: center; width: 100%; margin-top: 14px; cursor: pointer;
                    display: flex; align-items: center; justify-content: center; gap: 5px; }
.btn-voltar-index:hover { color: var(--primary); }

/* ── APP SHELL ───────────────────────────────────────────── */
/* Tema alinhado com kcb-sumulas/admin.html: sidebar branca, header branco */
#screen-app { display: none; min-height: 100vh; background: var(--light); }

/* Layout: header fixo no topo + sidebar lateral */
.app-layout { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }

/* HEADER — igual ao .app-header do kcb-sumulas */
.app-header {
  background: var(--white); border-bottom: 3px solid var(--primary);
  height: 58px; padding: 0 24px; display: flex; align-items: center;
  justify-content: space-between; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06); z-index: 200; position: relative;
}
.header-brand { display: flex; align-items: center; gap: 12px; }
.header-logo-img { height: 36px; width: auto; object-fit: contain; border-radius: 6px; }
.header-title { font-size: 15px; font-weight: 700; color: var(--dark); line-height: 1.1; }
.header-title small { display: block; font-size: 10px; font-weight: 400; color: var(--gray); }
.header-right { display: flex; align-items: center; gap: 12px; }
.header-user-pill { display: flex; align-items: center; gap: 8px; }
.header-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--primary);
                 display: flex; align-items: center; justify-content: center;
                 font-weight: 800; font-size: 11px; color: white; flex-shrink: 0; }
.header-avatar.gold { background: var(--gold); color: #1a1a2e; }
.header-user-name { font-size: 13px; font-weight: 600; color: var(--dark); }
.header-user-role { font-size: 11px; color: var(--gray); }
.admin-pill { background: var(--primary-l); color: var(--primary);
              border: 1px solid rgba(200,54,54,0.2); font-size: 11px; font-weight: 700;
              padding: 3px 10px; border-radius: 12px; }
.btn-header { background: none; border: 1.5px solid var(--border); color: var(--gray);
              font-size: 12px; font-family: 'Inter',sans-serif; padding: 5px 14px;
              border-radius: 6px; cursor: pointer; transition: all .2s; font-weight: 500; }
.btn-header:hover { border-color: var(--primary); color: var(--primary); }
.btn-header.red { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-header.red:hover { background: var(--primary-d); }

/* APP BODY — sidebar + main */
.app-body { display: flex; flex: 1; overflow: hidden; }

/* SIDEBAR — branca, igual ao .app-nav do kcb-sumulas */
.sidebar {
  width: var(--sidebar-w); min-width: var(--sidebar-w);
  background: var(--white); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 16px 0;
  box-shadow: 2px 0 8px rgba(0,0,0,0.04); overflow-y: auto;
}
.sidebar-brand { padding: 0 20px 14px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.kcb-badge-sm { width: 32px; height: 32px; background: var(--primary); border-radius: 8px;
                display: inline-flex; align-items: center; justify-content: center;
                color: white; font-size: 11px; font-weight: 900; margin-right: 7px; }
.sidebar-brand span { color: var(--dark); font-weight: 700; font-size: .9rem; }
.sidebar-brand small { color: var(--gray); font-size: .63rem; display: block;
                       padding-left: 39px; margin-top: -2px; }
.sidebar-user { padding: 10px 20px; border-bottom: 1px solid var(--border);
                display: flex; align-items: center; gap: 9px; margin-bottom: 4px; }
.user-avatar { width: 32px; height: 32px; border-radius: 50%;
               background: linear-gradient(160deg, #1a1a2e, #0f3460);
               display: flex; align-items: center; justify-content: center;
               font-weight: 800; font-size: .72rem; color: white; flex-shrink: 0;
               overflow: hidden; }
.user-avatar.gold { background: linear-gradient(160deg, #1a1a2e, #0f3460); color: white; }
.user-info { flex: 1; min-width: 0; }
.user-info strong { color: var(--dark); font-size: .78rem; display: block;
                    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-info span { color: var(--gray); font-size: .65rem; }
.badge-admin { background: #fef9e7; color: #c78f00; border: 1px solid #f1c40f;
               font-size: .62rem; border-radius: 20px; padding: 2px 7px; font-weight: 700; }
.badge-org   { background: #eaf3fb; color: #2980b9; border: 1px solid #aed6f1;
               font-size: .62rem; border-radius: 20px; padding: 2px 7px; font-weight: 700; }

/* NAV — igual ao .nav-item do kcb-sumulas */
.sidebar-nav { flex: 1; padding: 4px 0; }
.nav-section { padding: 10px 20px 4px; font-size: 10px; font-weight: 700;
               color: var(--gray); text-transform: uppercase; letter-spacing: 1.5px; }
.nav-item-kcb { display: flex; align-items: center; gap: 10px; padding: 10px 20px;
                font-size: 13px; font-weight: 500; color: var(--gray);
                cursor: pointer; transition: all .15s;
                border-left: 3px solid transparent; text-decoration: none; }
.nav-item-kcb i { width: 16px; text-align: center; font-size: 13px; }
.nav-item-kcb:hover { color: var(--dark); background: var(--light); }
.nav-item-kcb.active { color: var(--primary); border-left-color: var(--primary);
                       background: var(--primary-l); font-weight: 600; }
.nav-divider { height: 1px; background: var(--border); margin: 12px 0; }

.sidebar-footer { padding: 12px 20px; border-top: 1px solid var(--border); }
.btn-logout { width: 100%; background: none; color: var(--gray);
              border: 1.5px solid var(--border); border-radius: 6px;
              padding: 7px; font-size: .76rem; cursor: pointer; font-family: 'Inter',sans-serif;
              font-weight: 500; transition: all .2s; }
.btn-logout:hover { border-color: var(--primary); color: var(--primary); }

/* MAIN CONTENT */
.main-content { flex: 1; overflow-y: auto; padding: 28px 32px; background: var(--light); }
.main-content::-webkit-scrollbar { width: 6px; }
.main-content::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.page-header { margin-bottom: 24px; }
.page-header h5 { font-size: 24px; font-weight: 800; color: var(--dark); margin: 0 0 2px; }
.page-header small { color: var(--gray); font-size: 13px; }
.screen { display: none; }
.screen.active { display: block; }

/* ── STAT CARDS — borda superior, número colorido (igual kcb-sumulas) ── */
.stat-card {
  background: var(--white); border-radius: 12px; padding: 20px;
  box-shadow: var(--shadow); border-top: 3px solid var(--border);
}
.stat-card .stat-value { font-size: 2.5rem; font-weight: 800; line-height: 1;
                         margin-bottom: 4px; color: var(--dark); }
.stat-card .stat-label { font-size: 11px; font-weight: 600; color: var(--gray);
                         letter-spacing: 0.5px; text-transform: uppercase; }
.stat-card .stat-icon  { font-size: 1.7rem; opacity: .14; }
/* variantes de cor — borda superior + número colorido */
.stat-card.red    { border-top-color: var(--primary); }
.stat-card.red    .stat-value { color: var(--primary); }
.stat-card.gold   { border-top-color: var(--gold); }
.stat-card.gold   .stat-value { color: var(--gold); }
.stat-card.green  { border-top-color: #16a34a; }
.stat-card.green  .stat-value { color: #16a34a; }
.stat-card.purple { border-top-color: #7c3aed; }
.stat-card.purple .stat-value { color: #7c3aed; }

/* ── DASHBOARD TABLE ─────────────────────────────────────── */
.dash-table { background: white; border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,.1); overflow: hidden; }
.dash-table .table { margin: 0; }
.dash-table .table thead th { background: var(--kcb-dark); color: white; font-size: .74rem;
                               font-weight: 600; border: none; padding: 10px 13px; }
.dash-table .table tbody td { font-size: .82rem; padding: 9px 13px; vertical-align: middle; }
.dash-table .table tbody tr:hover { background: #fdf3f2; }

/* ── FILTROS ─────────────────────────────────────────────── */
.filters-bar {
  background: white; border-radius: 10px; padding: 12px 16px; margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05); display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end;
}
.filters-bar .form-control,
.filters-bar .form-select { font-size: .81rem; }
.ordem-btns { display: flex; gap: 5px; }
.ordem-btns .btn { font-size: .76rem; padding: 4px 10px; }

/* ── ATLETA CARD ─────────────────────────────────────────── */
.atleta-card { background: white; border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,.1);
               overflow: hidden; display: flex; transition: box-shadow .2s; }
.atleta-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,.15); }
.atleta-inativo { opacity: .55; filter: grayscale(.4); }
.atleta-card-top { display: flex; width: 100%; }
.atleta-card-photo { width: 88px; height: 88px; flex-shrink: 0;
                     background: linear-gradient(160deg,#1a1a2e,#0f3460);
                     display: flex; align-items: center; justify-content: center;
                     overflow: hidden; margin: 11px 0 11px 11px; border-radius: 6px; }
.atleta-card-photo .no-photo { color: rgba(255,255,255,.18); font-size: 2.1rem; }
.atleta-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.atleta-card-body { padding: 11px 13px; flex: 1; min-width: 0; overflow: hidden; }
.atleta-card-name { font-weight: 700; font-size: 1rem; color: var(--kcb-dark);
                    line-height: 1.2; margin-bottom: 6px;
                    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.atleta-card-org  { font-size: .7rem; color: #999; margin-bottom: 3px;
                    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.atleta-card-chips { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: default; }
.atleta-card-chips:not(.editing *) { cursor: pointer; }
.atleta-card-chips small { font-size: .71rem; color: #888; white-space: nowrap; display: inline; }
/* ── Edição inline no card ───────────────────────────────── */
.atleta-card.editing { box-shadow: 0 0 0 2px var(--kcb-red), 0 5px 20px rgba(0,0,0,.15); }
.inline-edit-row { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.ie-field { border: 1px solid #ddd; border-radius: 4px; padding: 2px 5px;
            font-size: .71rem; background: #fafafa; outline: none; }
.ie-num { -moz-appearance: textfield; }
.ie-num::-webkit-outer-spin-button,
.ie-num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ie-field:focus { border-color: var(--kcb-red); background: white; }
.ie-grad { width: 90px; }
.ie-num  { width: 52px; text-align: center; }
.ie-hint { font-size: .62rem; color: #bbb; white-space: nowrap; }
/* Meatball menu — alinhado à direita */
.atleta-card-actions { display: flex; justify-content: flex-end; margin-bottom: -4px; }
.card-meatball-wrap  { position: relative; }
.card-meatball-btn   { background: none; border: none; cursor: pointer;
                       font-size: 1.1rem; color: #ccc; padding: 0 2px;
                       line-height: 1; transition: color .15s; }
.card-meatball-btn:hover { color: #888; }
.card-meatball-drop  { display: none; position: absolute; right: 0; top: 100%;
                       background: white; border-radius: 8px; padding: 12px;
                       box-shadow: 0 4px 16px rgba(0,0,0,.15); z-index: 100;
                       flex-direction: column; align-items: center; gap: 14px; }
.card-meatball-drop.open { display: flex; }
.card-act-btn { background: none; border: none; padding: 0; cursor: pointer;
                font-size: 1rem; color: #ccc; transition: color .15s; line-height: 1; }
.card-act-btn.inscr:hover { color: #28a745; }
.card-act-btn.edit:hover  { color: #0d6efd; }
.card-act-btn.del:hover   { color: #dc3545; }

/* ── CHIPS / BADGES ──────────────────────────────────────── */
.chip { font-size: .67rem; color: #555; white-space: nowrap; }
.chip.para { color: var(--kcb-red); font-weight: 600; }
.chip.cv   { color: #c78f00; font-weight: 600; }
.chip.reg  { font-weight: 700; }
.faixa-badge { display: inline-block; border-radius: 4px; padding: 2px 0; font-size: .65rem; font-weight: 700; color: white; min-width: 72px; text-align: center; }
.faixa-BRANCA { background: #bbb; color: #333; }
.faixa-LARANJA { background: #e67e22; }
.faixa-AZUL    { background: #2980b9; }
.faixa-AMARELA { background: #f1c40f; color: #333; }
.faixa-VERDE   { background: #27ae60; }
.faixa-MARROM  { background: #7f5539; }
.faixa-PRETA   { background: #1a1a2e; }

/* ── BOTÕES ÍCONE ────────────────────────────────────────── */
.btn-icon { width: 29px; height: 29px; border-radius: 7px; border: none;
            display: flex; align-items: center; justify-content: center;
            font-size: .73rem; cursor: pointer; transition: all .14s; }
.btn-icon.edit  { background: #eaf3fb; color: #2980b9; }
.btn-icon.edit:hover  { background: #2980b9; color: white; }
.btn-icon.del   { background: #fdf3f2; color: var(--kcb-red); }
.btn-icon.del:hover   { background: var(--kcb-red); color: white; }
.btn-icon.inscr { background: #eafaf1; color: #27ae60; }
.btn-icon.inscr:hover { background: #27ae60; color: white; }

/* ── FORMULÁRIO CADASTRO ─────────────────────────────────── */
.form-card { background: white; border-radius: 10px; padding: 24px 28px; box-shadow: 0 5px 20px rgba(0,0,0,.1); }
.form-section-title { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
                      color: #aaa; margin: 18px 0 9px; padding-bottom: 4px; border-bottom: 1px solid #eee; }
.photo-upload-area { width: 88px; height: 112px; border: 2px dashed #ddd; border-radius: 10px;
                     display: flex; flex-direction: column; align-items: center; justify-content: center;
                     cursor: pointer; color: #bbb; font-size: .68rem; text-align: center; gap: 4px;
                     background: #fafafa; transition: all .2s; overflow: hidden; }
.photo-upload-area:hover { border-color: var(--kcb-red); color: var(--kcb-red); background: #fdf3f2; }
.photo-upload-area i { font-size: 1.5rem; }
.reg-kcb-preview { background: var(--kcb-dark); color: white; border-radius: 8px; padding: 7px 12px;
                   font-size: 1.2rem; font-weight: 800; letter-spacing: .04em; text-align: center; }
.reg-kcb-preview small { display: block; font-size: .55rem; font-weight: 400; opacity: .4; letter-spacing: .02em; }
.field-locked { background: #f8f9fa; color: #555; border: 1px solid #dee2e6; border-radius: 6px;
                padding: 5px 10px; font-size: .83rem; display: flex; align-items: center; gap: 6px; }
.field-locked i { color: #bbb; }
.doc-feedback { font-size: .7rem; margin-top: 2px; }
.doc-feedback.ok   { color: #27ae60; }
.doc-feedback.dup  { color: var(--kcb-red); }
.doc-feedback.info { color: #888; }

/* ── INSCRIÇÕES ──────────────────────────────────────────── */
.evento-header { background: linear-gradient(135deg,var(--kcb-dark),#0f3460); border-radius: 12px;
                 padding: 16px 22px; color: white; margin-bottom: 18px;
                 display: flex; align-items: center; gap: 14px; }
.evento-header-text { flex: 1; }
.evento-header h5 { font-weight: 800; margin: 0 0 3px; font-size: .98rem; }
.evento-header small { opacity: .6; font-size: .76rem; }
.evento-pill { background: rgba(255,255,255,.14); border-radius: 20px; padding: 3px 11px;
               font-size: .74rem; display: inline-block; margin-top: 6px; margin-right: 5px; }
.inscr-card { background: white; border-radius: 10px; padding: 12px 14px;
              box-shadow: 0 2px 8px rgba(0,0,0,.05); margin-bottom: 7px;
              display: grid;
              grid-template-columns: 48px 1fr 180px 270px;
              align-items: center; gap: 11px;
              border-left: 3px solid transparent; }
.inscr-card.inscrito { border-left-color: var(--kcb-red); background: #fffafa; }
.inscr-card.no-org { grid-template-columns: 48px 1fr 270px; }
.inscr-separator { text-align: center; margin: 12px 0 8px;
                   position: relative; font-size: .72rem; color: #aaa; font-weight: 600; }
.inscr-separator::before, .inscr-separator::after {
  content: ''; position: absolute; top: 50%; width: 38%; height: 1px; background: #e8e8e8; }
.inscr-separator::before { left: 0; }
.inscr-separator::after  { right: 0; }
.inscr-photo { width: 38px; height: 38px; border-radius: 50%; background: var(--kcb-dark);
               display: flex; align-items: center; justify-content: center;
               color: rgba(255,255,255,.3); font-size: 1rem; flex-shrink: 0; overflow: hidden; }
.inscr-info { min-width: 0; }
.inscr-info strong { font-size: .83rem; color: var(--kcb-dark); }
.inscr-info small  { color: #888; font-size: .71rem; display: block; }
.inscr-org-col { min-width: 0; border-left: 1px solid #f0f0f0; padding-left: 12px; }
.inscr-org-nome  { font-size: .72rem; font-weight: 600; color: #555; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inscr-org-local { font-size: .68rem; color: #aaa; display: block; }
.modal-checks { display: flex; gap: 7px; flex-wrap: wrap; }
.mcheck {
  border: 2px solid #e0e0e0; border-radius: 8px; padding: 5px 10px; cursor: pointer;
  font-size: .75rem; font-weight: 600; color: #999; display: flex; align-items: center;
  gap: 4px; transition: all .14s; background: white; user-select: none;
}
.mcheck:hover { border-color: #bbb; }
/* Equipe — inscrito: roxo ativo, não-interativo */
.mcheck.on-equipe {
  border-color: #6f42c1; background: #f3eeff; color: #6f42c1;
  cursor: default; pointer-events: none;
}
/* Equipe — não inscrito: igual aos demais desativados */
.mcheck.mcheck-off {
  border-color: #e0e0e0; background: white; color: #ccc;
  cursor: default; pointer-events: none;
}
/* Grade de modalidades: 3 colunas iguais — Kumite | Kata | Equipe */
.modal-checks {
  display: grid;
  grid-template-columns: repeat(3, 84px);
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}
/* Parakarate ocupa as 3 colunas mescladas */
.mcheck[data-mod="PARAKARATE"] {
  grid-column: 1 / -1;
}
/* Todos os mcheck: mesmo tamanho, texto centralizado */
.mcheck {
  justify-content: center;
  font-size: .76rem !important;
  padding: 6px 4px !important;
}
/* Texto de equipe inline — sem itálico, mesma cor dos outros dados */
.inscr-equipe-texto {
  color: #888; font-size: .71rem;
}
.mcheck.on-kumite { border-color: #2980b9; background: #eaf3fb; color: #2980b9; }
.mcheck.on-kata   { border-color: #27ae60; background: #eafaf1; color: #27ae60; }
.mcheck.on-kataeq { border-color: var(--kcb-gold); background: #fef9e7; color: #c78f00; }
.mcheck.on-para   { border-color: var(--kcb-red);  background: #fdf3f2; color: var(--kcb-red); }

/* ── EQUIPES ─────────────────────────────────────────────── */
.equipe-card { background: white; border-radius: 12px; padding: 16px 18px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.equipe-code { font-family: monospace; font-size: .86rem; font-weight: 700; color: var(--kcb-dark);
               background: #f0f2f5; border-radius: 6px; padding: 2px 7px; display: inline-block; }

/* ── GINÁSIOS ────────────────────────────────────────────── */
.ginasio-card { background: white; border-radius: 12px; padding: 16px 18px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.ginasio-card h6 { font-weight: 700; font-size: .88rem; color: var(--kcb-dark); margin-bottom: 2px; }
.ginasio-apelido { font-size: .73rem; color: var(--kcb-red); font-weight: 600; margin-bottom: 5px; }
.ginasio-addr    { font-size: .78rem; color: #777; }

/* ── RELATÓRIOS ──────────────────────────────────────────── */
.report-card { background: white; border-radius: 10px; padding: 18px 20px;
               box-shadow: 0 5px 20px rgba(0,0,0,.1); cursor: pointer; transition: all .3s;
               display: flex; align-items: center; gap: 12px; }
.report-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,.15); transform: translateY(-5px); }
.report-icon { width: 46px; height: 46px; border-radius: 12px;
               display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.report-icon.red  { background: #fdf3f2; color: var(--kcb-red); }
.report-icon.blue { background: #eaf3fb; color: #2980b9; }
.report-icon.green{ background: #eafaf1; color: #27ae60; }
.report-icon.gold { background: #fef9e7; color: var(--kcb-gold); }
.report-icon.dark { background: #f0f0f4; color: var(--kcb-dark); }
.report-info h6    { font-weight: 700; color: var(--kcb-dark); margin: 0 0 2px; font-size: .85rem; }
.report-info small { color: #888; font-size: .71rem; }
.report-badge-admin { font-size: .62rem; background: #fef9e7; color: #c78f00; border: 1px solid #f1c40f;
                      border-radius: 20px; padding: 1px 7px; font-weight: 700; }
.report-badge-org   { font-size: .62rem; background: #eafaf1; color: #27ae60; border: 1px solid #a9dfbf;
                      border-radius: 20px; padding: 1px 7px; font-weight: 700; }
.report-preview { background: white; border-radius: 12px; padding: 28px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.report-preview-header { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px;
                         padding-bottom: 12px; border-bottom: 3px solid var(--kcb-red); }
.rpt-logo { width: 54px; height: 54px; background: var(--kcb-red); border-radius: 8px;
            display: flex; align-items: center; justify-content: center; color: white;
            font-size: 1.2rem; font-weight: 900; flex-shrink: 0; }
.rpt-title h5 { font-weight: 800; color: var(--kcb-dark); margin: 0 0 2px; font-size: .95rem; }
.rpt-title p  { color: #888; font-size: .76rem; margin: 0; }
.rpt-table thead th { background: var(--kcb-dark); color: white; font-size: .73rem; padding: 9px 12px; }
.rpt-table tbody td { font-size: .8rem; padding: 8px 12px; }
.rpt-table tbody tr:nth-child(even) { background: #f8f9fa; }
.rpt-table tfoot td { font-weight: 700; background: #fdf3f2; padding: 9px 12px; font-size: .81rem; }

/* ── MISC ────────────────────────────────────────────────── */
.inline-alert { background: #fff3cd; border-left: 4px solid #ffc107; border-radius: 0 8px 8px 0;
                padding: 8px 13px; font-size: .78rem; color: #856404; margin-bottom: 14px; }
.inline-info  { background: #eaf3fb; border-left: 4px solid #2980b9; border-radius: 0 8px 8px 0;
                padding: 8px 13px; font-size: .78rem; color: #1a5276; margin-bottom: 14px; }
.btn-kcb     { background: var(--kcb-red); color: white; border: none; border-radius: 5px;
               padding: 8px 20px; font-weight: 500; cursor: pointer; transition: 0.5s; }
.btn-kcb:hover { background: #a92d2d; color: white; }
.btn-kcb:disabled { opacity: .65; }
.btn-kcb-out { background: white; color: var(--kcb-red); border: 2px solid var(--kcb-red);
               border-radius: 5px; padding: 7px 20px; font-weight: 500; cursor: pointer; transition: 0.5s; }
.btn-kcb-out:hover { background: var(--kcb-red); color: white; }
.org-logo-mini { width: 27px; height: 27px; border-radius: 6px; background: var(--kcb-red);
                 display: inline-flex; align-items: center; justify-content: center;
                 color: white; font-size: .58rem; font-weight: 700; flex-shrink: 0; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.status-dot.ativa    { background: #27ae60; }
.status-dot.inativa  { background: #bbb; }
.status-dot.suspensa { background: var(--kcb-red); }
.empty-state { text-align: center; padding: 32px 16px; color: #ccc; }
.empty-state i { font-size: 2.3rem; display: block; margin-bottom: 9px; }
.pagination-kcb { display: flex; gap: 4px; }
.page-btn { width: 29px; height: 29px; border: none; border-radius: 6px; background: white;
            color: #555; cursor: pointer; font-size: .78rem; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.page-btn.active { background: var(--kcb-red); color: white; }
.page-btn:hover:not(.active) { background: #eee; }
.modal-content { border-radius: 10px; border: none; box-shadow: 0 20px 60px rgba(0,0,0,.2); }
.modal-header  { background: var(--kcb-red); color: white; border-radius: 10px 10px 0 0; padding: 16px 20px 11px; }
.modal-header .btn-close { filter: brightness(0) invert(1); }
.modal-body    { padding: 16px 20px; }
.modal-footer  { border-top: 1px solid #f0f0f0; padding: 11px 20px; }
.sug-item { padding: 8px 12px; cursor: pointer; font-size: .82rem; border-bottom: 1px solid #f5f5f5; }
.sug-item:hover { background: #fdf3f2; color: var(--kcb-red); }

/* ── TOAST ───────────────────────────────────────────────── */
.kcb-toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  background: var(--kcb-dark); color: white; padding: 12px 20px; border-radius: 10px;
  font-size: .83rem; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.35);
  transform: translateY(80px); opacity: 0; transition: all .3s; pointer-events: none;
  max-width: 360px;
}
.kcb-toast.show { transform: translateY(0); opacity: 1; }
.kcb-toast.kcb-toast-sucesso { border-left: 4px solid #27ae60; }
.kcb-toast.kcb-toast-erro    { border-left: 4px solid var(--kcb-red); background: #c0392b; }
.kcb-toast.kcb-toast-aviso   { border-left: 4px solid var(--kcb-gold); }

/* ── CONFIG SISTEMA ──────────────────────────────────────── */
.alert-config { background: white; border-radius: 12px; padding: 16px 20px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .app-header { padding: 0 14px; }
  .header-user-role, .header-user-name { display: none; }
  .sidebar { position: fixed; left: 0; top: 58px; bottom: 0; transform: translateX(-100%); transition: transform .3s; z-index: 300; }
  .sidebar.open { transform: translateX(0); }
  .app-body { flex-direction: column; }
  .main-content { padding: 16px; }
  
  .modal-checks { grid-template-columns: repeat(2, 84px); margin-top: 6px; width: 100%; }
  .mcheck.on-equipe, .mcheck.mcheck-off { grid-column: 1 / -1; }
  .modal-checks { width: 100%; }
  .atleta-card-photo { width: 72px; }
}
