/* =====================================================================
   CCGastos — tema visual inspirado en SAP Fiori "Horizon" (S/4HANA)
   Sobre Bootstrap 5: se redefinen colores, tipografía, botones,
   campos, tablas, mensajes y se añade shell bar + navegación móvil.
   Mobile-first: la mayoría de tickets se escanean desde Android/iOS.
   ===================================================================== */
:root {
  /* Paleta SAP S/4HANA — Fiori 3 "Quartz Light" */
  --sap-brand: #0a6ed1;
  --sap-brand-hover: #0854a0;
  --sap-brand-active: #0854a0;
  --sap-text: #32363a;
  --sap-text-2: #6a6d70;
  --sap-bg: #f7f7f7;
  --sap-shell: #ffffff;
  --sap-tile: #ffffff;
  --sap-border: #e5e5e5;
  --sap-field-border: #89919a;
  --sap-hover: #f5f5f5;
  --sap-selected: #e5f0fa;
  --sap-positive: #107e3e;  --sap-positive-bg: #f1fdf6;
  --sap-critical: #e9730c;  --sap-critical-bg: #fef7f1;
  --sap-negative: #bb0000;  --sap-negative-bg: #ffebeb;
  --sap-info: #0a6ed1;      --sap-info-bg: #f5faff;
  --sap-neutral: #6a6d70;
  --sap-radius: .25rem;
  --sap-shadow: 0 0 0 1px rgba(0,0,0,.04), 0 .0625rem .25rem rgba(0,0,0,.08);
  --sap-font: "72", "72full", Arial, Helvetica, sans-serif;
  --tabbar-h: 4rem;

  --bs-body-font-family: var(--sap-font);
  --bs-body-color: var(--sap-text);
  --bs-body-bg: var(--sap-bg);
  --bs-primary: #0a6ed1;
  --bs-primary-rgb: 10, 110, 209;
  --bs-link-color: #0a6ed1;
  --bs-link-color-rgb: 10, 110, 209;
  --bs-link-hover-color: #0854a0;
  --bs-border-radius: .25rem;
  --bs-secondary-color: #6a6d70;
}

html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--sap-font); background: var(--sap-bg); color: var(--sap-text); font-size: .875rem; }
a { text-decoration: none; }
a:hover { text-decoration: underline; }
.text-muted, .text-secondary { color: var(--sap-text-2) !important; }
h1, .h1, h2, .h2, h3, .h3, h4, .h4 { font-weight: 700; color: var(--sap-text); letter-spacing: -.01em; }
.h4, h1.h4 { font-size: 1.375rem; }
.h5 { font-size: 1.125rem; font-weight: 700; }
.h6 { font-size: 1rem; font-weight: 700; }

/* ---------- Shell bar ---------- */
.fio-shell {
  position: sticky; top: 0; z-index: 1030;
  display: flex; align-items: center; gap: .75rem;
  height: 3.25rem; padding: 0 1rem; padding-top: env(safe-area-inset-top);
  background: var(--sap-shell);
  box-shadow: 0 0 .125rem rgba(34,53,72,.2), 0 .125rem .25rem rgba(34,53,72,.2);
}
.fio-brand { display: flex; align-items: center; gap: .25rem; color: var(--sap-text); font-weight: 700; font-size: 1.125rem; }
.fio-brand:hover { text-decoration: none; }
.fio-logo { background: var(--sap-brand); color: #fff; border-radius: .375rem; padding: 0 .375rem; font-size: 1rem; line-height: 1.6rem; }
.fio-title { color: var(--sap-text-2); font-size: .875rem; border-left: 1px solid var(--sap-border); padding-left: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }
.fio-shell-actions { margin-left: auto; display: flex; align-items: center; gap: .25rem; }
.fio-icon-btn {
  display: inline-flex; align-items: center; gap: .25rem; height: 2.25rem; min-width: 2.25rem; justify-content: center;
  border: 0; background: transparent; border-radius: .5rem; color: var(--sap-text-2); font-size: 1.125rem; padding: 0 .5rem;
}
.fio-icon-btn:hover { background: var(--sap-hover); color: var(--sap-text); text-decoration: none; }
.fio-lang { font-size: .75rem; font-weight: 700; }
.fio-badge { position: absolute; top: .125rem; right: .125rem; background: var(--sap-negative); color: #fff; border-radius: 1rem; font-size: .625rem; line-height: 1rem; min-width: 1rem; padding: 0 .25rem; text-align: center; }
.fio-avatar { width: 2rem; height: 2rem; border-radius: 50%; border: 0; background: #5d36ff; color: #fff; font-size: .75rem; font-weight: 700; margin-left: .25rem; }
.fio-club { align-items: center; gap: .375rem; color: var(--sap-text); font-size: .875rem; font-weight: 600; padding: 0 .5rem; max-width: 18rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fio-club img { width: 1.75rem; height: 1.75rem; object-fit: contain; }
.fio-user-menu { min-width: 15rem; }
.dropdown-menu { border: 0; border-radius: .75rem; box-shadow: 0 .625rem 1.875rem rgba(34,53,72,.25); padding: .25rem; }
.dropdown-item { border-radius: .5rem; padding: .5rem .75rem; }
.dropdown-item.active, .dropdown-item:active { background: var(--sap-selected); color: var(--sap-brand-hover); font-weight: 600; }

/* ---------- Barra de espacios (escritorio / tableta) ---------- */
.fio-spaces {
  position: sticky; top: 3.25rem; z-index: 1020;
  gap: .25rem; padding: 0 1rem; background: var(--sap-shell); border-bottom: 1px solid var(--sap-border);
  overflow-x: auto; scrollbar-width: none;
}
.fio-spaces::-webkit-scrollbar { display: none; }
.fio-space { color: var(--sap-text); padding: .75rem .75rem .625rem; border-bottom: .1875rem solid transparent; white-space: nowrap; font-size: .875rem; }
.fio-space:hover { text-decoration: none; background: var(--sap-hover); }
.fio-space.active { color: var(--sap-brand-hover); border-bottom-color: var(--sap-brand-hover); font-weight: 700; }
.fio-count { background: var(--sap-critical); color: #fff; border-radius: 1rem; font-size: .6875rem; padding: 0 .375rem; font-weight: 700; }

/* ---------- Página ---------- */
.fio-page { padding-top: 1.25rem; padding-bottom: 2rem; }
.fio-footer { text-align: center; color: var(--sap-text-2); font-size: .75rem; padding: 1rem 1rem 2rem; }

/* ---------- Tarjetas / tiles ---------- */
.card { border: 0; border-radius: var(--sap-radius); box-shadow: var(--sap-shadow); background: var(--sap-tile); }
.card-header { background: transparent; border-bottom: 1px solid var(--sap-border); font-weight: 700; padding: .875rem 1rem; }
.kpi .label { font-size: .8125rem; color: var(--sap-text-2); font-weight: 600; }
.kpi .value { font-size: 1.75rem; font-weight: 300; color: var(--sap-text); line-height: 1.2; }
a .card.kpi:hover, a > .card:hover { box-shadow: 0 0 .125rem rgba(34,53,72,.15), 0 .5rem 1rem rgba(34,53,72,.15); }
a:hover .card { text-decoration: none; }
.fio-tile-link { color: inherit; display: block; }
.fio-tile-link:hover { text-decoration: none; }

/* ---------- Botones ---------- */
.btn { border-radius: .5rem; font-weight: 600; font-size: .875rem; min-height: 2.25rem; padding: .375rem .875rem; }
.btn-lg { min-height: 3rem; font-size: 1rem; padding: .625rem 1.25rem; }
.btn-sm { min-height: 1.75rem; font-size: .8125rem; padding: .125rem .625rem; }
.btn-ccg, .btn-primary { background: var(--sap-brand); border-color: var(--sap-brand); color: #fff; }
.btn-ccg:hover, .btn-primary:hover, .btn-ccg:focus { background: var(--sap-brand-hover); border-color: var(--sap-brand-hover); color: #fff; }
.btn-ccg:active, .btn-primary:active { background: var(--sap-brand-active) !important; border-color: var(--sap-brand-active) !important; }
.btn-outline-primary, .btn-outline-secondary {
  background: #fff; border: 1px solid #bcc3ca; color: var(--sap-brand-hover);
}
.btn-outline-primary:hover, .btn-outline-secondary:hover { background: var(--sap-hover); border-color: #bcc3ca; color: var(--sap-brand-hover); }
.btn-success { background: var(--sap-positive); border-color: var(--sap-positive); }
.btn-outline-success { background: #fff; color: var(--sap-positive); border-color: var(--sap-positive); }
.btn-outline-success:hover, .btn-success:hover { background: #1d5a2f; border-color: #1d5a2f; color: #fff; }
.btn-outline-danger { background: #fff; color: var(--sap-negative); border-color: var(--sap-negative); }
.btn-outline-danger:hover { background: var(--sap-negative); color: #fff; }
.btn-outline-warning { background: #fff; color: #b44f00; border-color: var(--sap-critical); }
.btn-outline-warning:hover { background: var(--sap-critical); color: #fff; }
.btn-link { color: var(--sap-brand-hover); font-weight: 600; }

/* ---------- Campos ---------- */
.form-label { font-size: .8125rem; color: var(--sap-text-2); font-weight: 600; margin-bottom: .25rem; }
.form-control, .form-select {
  border: 1px solid var(--sap-field-border); border-radius: .375rem; min-height: 2.5rem; color: var(--sap-text); background-color: #fff;
  font-size: 1rem; /* 16px: evita el zoom automático de iOS Safari al enfocar */
}
.form-control:focus, .form-select:focus { border-color: var(--sap-brand); box-shadow: 0 0 0 .125rem rgba(0,112,242,.25); }
.form-control:disabled, .form-select:disabled { background: #f5f6f7; border-color: #ccd3db; color: var(--sap-text); }
.form-check-input { width: 1.25em; height: 1.25em; border-color: var(--sap-field-border); }
.form-check-input:checked { background-color: var(--sap-brand); border-color: var(--sap-brand); }
.form-switch .form-check-input { width: 2.5em; }
.ai-filled { background-color: #f0f7ff !important; border-color: #6aa9f2 !important; }

/* ---------- Mensajes (Message strips) ---------- */
.alert { border-radius: .5rem; border: 1px solid; padding: .625rem .875rem; font-size: .875rem; }
.alert-success { background: var(--sap-positive-bg); border-color: #30914c; color: var(--sap-text); }
.alert-warning { background: var(--sap-critical-bg); border-color: #e76500; color: var(--sap-text); }
.alert-danger  { background: var(--sap-negative-bg); border-color: #e90b0b; color: var(--sap-text); }
.alert-info    { background: var(--sap-info-bg); border-color: #0070f2; color: var(--sap-text); }
.alert .bi { margin-right: .25rem; }
.alert-success .bi { color: var(--sap-positive); } .alert-warning .bi { color: var(--sap-critical); }
.alert-danger .bi { color: var(--sap-negative); } .alert-info .bi { color: var(--sap-info); }

/* ---------- Estados (Object status) ---------- */
.badge { font-weight: 700; border-radius: .375rem; padding: .3em .55em; font-size: .75rem; }
.text-bg-success   { background: var(--sap-positive-bg) !important; color: var(--sap-positive) !important; border: 1px solid #30914c; }
.text-bg-warning   { background: var(--sap-critical-bg) !important; color: #b44f00 !important; border: 1px solid #e76500; }
.text-bg-danger    { background: var(--sap-negative-bg) !important; color: var(--sap-negative) !important; border: 1px solid #e90b0b; }
.text-bg-primary, .text-bg-info { background: var(--sap-info-bg) !important; color: #0057d2 !important; border: 1px solid #0070f2; }
.text-bg-secondary, .text-bg-light, .text-bg-dark { background: #eff1f2 !important; color: var(--sap-text-2) !important; border: 1px solid #a9b4be; }
.text-danger { color: var(--sap-negative) !important; } .text-success { color: var(--sap-positive) !important; }
.text-warning { color: var(--sap-critical) !important; }

/* ---------- Tablas ---------- */
.table { --bs-table-bg: #fff; margin-bottom: 0; font-size: .875rem; }
.table > thead th { color: var(--sap-text-2); font-weight: 600; font-size: .8125rem; background: #fff; border-bottom: 1px solid var(--sap-border); white-space: nowrap; }
.table > :not(caption) > * > * { padding: .625rem .75rem; border-color: #e5e5e5; }
.table-hover > tbody > tr:hover > * { --bs-table-bg-state: var(--sap-hover); }
.card > .table-responsive, .card > .table-responsive > .table { border-radius: var(--sap-radius); }
.table tfoot td { font-weight: 700; background: #fafafa; }

/* Tablas → tarjetas en móvil (los rótulos los pone app.js desde <thead>) */
@media (max-width: 767.98px) {
  .table-stack thead { display: none; }
  .table-stack, .table-stack tbody, .table-stack tr, .table-stack td, .table-stack tfoot { display: block; width: 100%; }
  .table-stack tr { border-bottom: 1px solid var(--sap-border); padding: .5rem .25rem; position: relative; }
  .table-stack > :not(caption) > * > * { border: 0; padding: .2rem .75rem; }
  .table-stack td[data-label]:not([data-label=""])::before { content: attr(data-label); display: block; font-size: .75rem; color: var(--sap-text-2); font-weight: 600; }
  .table-stack td.d-none { display: none !important; }
  .table-stack td:has(> input[type=checkbox]) { position: absolute; right: .5rem; top: .75rem; width: auto; }
  .table-stack td:has(> input[type=checkbox])::before { display: none; }
  .table-stack tfoot tr { background: #fafafa; }
}

/* ---------- Pestañas ---------- */
.nav-tabs { border-bottom: 1px solid var(--sap-border); gap: .25rem; }
.nav-tabs .nav-link { border: 0; border-bottom: .1875rem solid transparent; color: var(--sap-text); font-weight: 600; padding: .625rem .75rem; border-radius: 0; }
.nav-tabs .nav-link.active { color: var(--sap-brand-hover); border-bottom-color: var(--sap-brand-hover); background: transparent; }
.nav-pills .nav-link { color: var(--sap-text); border-radius: 1rem; font-weight: 600; font-size: .875rem; }
.nav-pills .nav-link.active { background: var(--sap-selected); color: var(--sap-brand-hover); border: 1px solid var(--sap-brand); }
.pagination .page-link { color: var(--sap-brand-hover); border-radius: .375rem; margin: 0 .125rem; }
.pagination .active .page-link { background: var(--sap-brand); border-color: var(--sap-brand); }

/* ---------- Escaneo ---------- */
.dropzone { border: 2px dashed #89919a; border-radius: var(--sap-radius); padding: 2rem 1rem; text-align: center; background: #fff; cursor: pointer; }
.dropzone.drag { border-color: var(--sap-brand); background: var(--sap-selected); }
.receipt-preview { max-height: 70vh; width: 100%; object-fit: contain; background: #fff; border-radius: .5rem; }
.receipt-frame { width: 100%; height: 70vh; border: 0; border-radius: .5rem; background: #fff; }
.fio-scan-hero { display: grid; gap: .75rem; }
.fio-scan-btn { display: flex; align-items: center; justify-content: center; gap: .75rem; min-height: 4.5rem; font-size: 1.125rem; border-radius: 1rem; }
.fio-scan-btn .bi { font-size: 1.75rem; }

/* ---------- Login / páginas sin shell ---------- */
.auth-card { max-width: 440px; margin: 6vh auto; }
.fio-login-brand { text-align: center; margin: 2rem 0 1rem; }
.fio-login-brand .fio-logo { font-size: 1.5rem; line-height: 2.25rem; padding: 0 .5rem; }
.fio-langs { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem .75rem; font-size: .8125rem; margin-top: 1rem; }
.fio-langs a.active { font-weight: 700; color: var(--sap-text); }

/* ---------- Perfil (preferencias / seguridad estilo "Cambiar mis preferencias") ---------- */
.fio-section-title { font-size: .875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: var(--sap-text); border-bottom: 1px solid var(--sap-border); padding-bottom: .5rem; margin: 1.5rem 0 1rem; display: flex; align-items: center; gap: .75rem; }
.fio-section-title:first-child { margin-top: 0; }
.fio-help { color: var(--sap-text-2); font-size: .875rem; }
.fio-list .list-group-item { border-color: #e5e5e5; padding: .875rem 1rem; }
.fio-list .list-group-item .bi { color: var(--sap-brand); font-size: 1.25rem; width: 1.75rem; display: inline-block; }

/* ---------- Barra inferior móvil + botón de escaneo ---------- */
.fio-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040;
  display: flex; align-items: stretch; justify-content: space-around;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: #fff; box-shadow: 0 -.125rem .5rem rgba(34,53,72,.15);
}
.fio-tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .125rem; color: var(--sap-text-2); font-size: .6875rem; position: relative; }
.fio-tabbar a:hover { text-decoration: none; }
.fio-tabbar a .bi { font-size: 1.375rem; line-height: 1; }
.fio-tabbar a.active { color: var(--sap-brand-hover); font-weight: 700; }
.fio-tabbar a em { position: absolute; top: .375rem; left: 55%; background: var(--sap-critical); color: #fff; font-style: normal; font-size: .625rem; border-radius: 1rem; padding: 0 .3rem; }
.fio-tabbar .fio-fab {
  flex: 0 0 4rem; height: 4rem; margin-top: -1.25rem; border-radius: 50%;
  background: var(--sap-brand); color: #fff; box-shadow: 0 .25rem .75rem rgba(0,112,242,.45);
}
.fio-tabbar .fio-fab .bi { font-size: 1.75rem; }
.fio-tabbar .fio-fab:active { background: var(--sap-brand-active); }

/* ---------- Responsive ---------- */
@media (max-width: 767.98px) {
  body.has-shell { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + .5rem); }
  .fio-shell { padding: 0 .5rem; gap: .25rem; }
  .fio-page { padding-top: .75rem; padding-left: .75rem; padding-right: .75rem; }
  .kpi .value { font-size: 1.25rem; }
  .card-body { padding: .875rem; }
  h1.h4, .h4 { font-size: 1.25rem; }
  .btn { min-height: 2.75rem; } /* objetivos táctiles de 44px (Apple HIG / Material) */
  .btn-sm { min-height: 2.25rem; }
  .fio-footer { display: none; }
  .receipt-preview { max-height: 45vh; }
  .receipt-frame { height: 55vh; }
  .dropzone { padding: 1.25rem .75rem; }
}
@media (min-width: 768px) {
  .fio-scan-hero { grid-template-columns: 1fr 1fr; }
}
.fio-tabbar a span { max-width: 100%; padding: 0 .125rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Login (mismo formato que el login de Pottenza One Ocean) ---------- */
body.ccg-auth { background: #f5f5f5; }
.ccg-auth-wrap { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem 1rem calc(1.5rem + env(safe-area-inset-bottom)); }
.ccg-auth-card { width: 100%; background: #fff; border-radius: .5rem; box-shadow: 0 .125rem .75rem rgba(0,0,0,.12); overflow: hidden; }
.ccg-auth-head { background: #a4bdf4; color: #fff; font-weight: 700; font-size: 1.375rem; text-align: center; padding: 1rem; letter-spacing: .01em; }
.ccg-auth-body { padding: 1.75rem 1.75rem 1.5rem; }
.ccg-auth-logo { width: 9.5rem; height: auto; }
.ccg-auth-label { display: block; font-size: 1rem; color: #222; margin-bottom: .375rem; }
.ccg-auth-input { background: #e8f0fe; border: 1px solid #d5dcea; border-radius: .25rem; min-height: 2.75rem; }
.ccg-auth-input:focus { background: #e8f0fe; border-color: #a4bdf4; box-shadow: 0 0 0 .2rem rgba(164,189,244,.45); }
.ccg-auth-btn { background: #a4bdf4; color: #1d2d3e; font-weight: 500; font-size: 1.0625rem; min-height: 3rem; border: 0; border-radius: .25rem; }
.ccg-auth-btn:hover, .ccg-auth-btn:focus { background: #8eaaf0; color: #1d2d3e; }
.ccg-auth .fio-langs { margin-top: 1.25rem; }
@media (max-width: 480px) { .ccg-auth-body { padding: 1.25rem 1rem; } }

/* ---------- Marca en la shell bar ---------- */
.fio-brand img { height: 2.125rem; width: auto; }

/* ---------- Estado del gasto: enviado → aprobado → pagado ---------- */
.ccg-flow { display: inline-flex; flex-wrap: wrap; gap: .25rem; align-items: center; }
.ccg-step { display: inline-flex; align-items: center; gap: .25rem; font-size: .75rem; font-weight: 700; border-radius: 1rem; padding: .15rem .55rem; border: 1px solid; white-space: nowrap; line-height: 1.4; }
.ccg-step .bi { font-size: .8125rem; margin: 0; }
.ccg-step.ok   { background: var(--sap-positive-bg); color: var(--sap-positive); border-color: #30914c; }
.ccg-step.no   { background: #fff; color: var(--sap-text-2); border-color: #a9b4be; }
.ccg-step.wait { background: var(--sap-critical-bg); color: #b44f00; border-color: #e76500; }
.ccg-step.bad  { background: var(--sap-negative-bg); color: var(--sap-negative); border-color: #e90b0b; }
.ccg-flow-lg .ccg-step { font-size: .8125rem; padding: .3rem .75rem; }
.ccg-chips { display: flex; gap: .375rem; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: none; }
.ccg-chips::-webkit-scrollbar { display: none; }
.ccg-chip { white-space: nowrap; border: 1px solid #bcc3ca; background: #fff; color: var(--sap-text); border-radius: 1rem; padding: .375rem .875rem; font-size: .875rem; font-weight: 600; }
.ccg-chip:hover { text-decoration: none; background: var(--sap-hover); }
.ccg-chip.active { background: var(--sap-selected); border-color: var(--sap-brand); color: var(--sap-brand-hover); }
.ccg-chip .n { color: var(--sap-text-2); font-weight: 400; margin-left: .25rem; }

/* ---------- Organigrama ---------- */
.org-tree, .org-tree ul { list-style: none; margin: 0; padding: 0; }
.org-tree ul { margin-left: 1.25rem; padding-left: 1rem; border-left: 2px solid #d5dbe2; }
.org-node { margin: .5rem 0; }
.org-card { background: #fff; border: 1px solid #e1e5ea; border-left: .25rem solid var(--sap-brand); border-radius: .5rem; padding: .625rem .875rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.org-card.lvl-governance { border-left-color: #5d36ff; }
.org-card.lvl-executive { border-left-color: #0070f2; }
.org-card.lvl-department { border-left-color: #1a9898; }
.org-card.lvl-area { border-left-color: #e76500; }
.org-card.lvl-role { border-left-color: #788fa6; }
.org-name { font-weight: 700; }
.org-meta { font-size: .8125rem; color: var(--sap-text-2); }
.org-people { display: flex; flex-wrap: wrap; gap: .25rem; }
.org-person { background: #f0f2f4; border-radius: 1rem; padding: .1rem .55rem; font-size: .75rem; }
.org-person.mgr { background: var(--sap-selected); color: var(--sap-brand-hover); font-weight: 700; }
.org-actions { margin-left: auto; display: flex; gap: .25rem; }
@media (max-width: 575.98px) { .org-tree ul { margin-left: .5rem; padding-left: .625rem; } .org-actions { margin-left: 0; width: 100%; } }

/* ---- Puesta en marcha (guided procedure) ---- */
.ccg-journey { position: relative; margin: 0; }
.ccg-jstep { display: flex; gap: .75rem; align-items: stretch; margin-bottom: .75rem; position: relative; }
.ccg-jstep:not(:last-child)::before { content: ""; position: absolute; left: 1rem; top: 2.25rem; bottom: -.75rem; width: 2px; background: #d9dee3; }
.ccg-jstep-dot { flex: 0 0 2rem; height: 2rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .875rem;
  background: #fff; border: 2px solid #bcc3ca; color: var(--sap-text-2); margin-top: .75rem; z-index: 1; }
.ccg-jstep.ok .ccg-jstep-dot { background: #256f3a; border-color: #256f3a; color: #fff; }
.ccg-jstep.current .ccg-jstep-dot { background: var(--sap-brand); border-color: var(--sap-brand); color: #fff; }
.ccg-jstep > .card { min-width: 0; }
.ccg-jstep.current .card { border-color: var(--sap-brand); box-shadow: 0 0 0 1px var(--sap-brand); }
.ccg-process-n { width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--sap-selected); color: var(--sap-brand-hover); font-weight: 700; font-size: .8rem; display: inline-flex; align-items: center; justify-content: center; }
.ccg-process .card:hover { border-color: var(--sap-brand); }

/* ---- Cámara (captura de tickets y certificados) ---- */
.ccg-cam { position: fixed; inset: 0; z-index: 2000; background: #000; display: flex; flex-direction: column; }
.ccg-cam video { flex: 1; width: 100%; height: 100%; object-fit: cover; min-height: 0; }
.ccg-cam-guide { position: absolute; inset: 8% 8% 22% 8%; border: 3px dashed rgba(255,255,255,.75); border-radius: 12px; pointer-events: none; }
.ccg-cam-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.ccg-cam-shot { width: 4.5rem; height: 4.5rem; border-radius: 50%; border: 5px solid #fff; background: rgba(255,255,255,.35); flex: 0 0 auto; }
.ccg-cam-shot:active { background: #fff; }
.ccg-cam-thumbs { position: absolute; left: .75rem; right: .75rem; bottom: 7.5rem; display: flex; gap: .5rem; overflow-x: auto; }
.ccg-cam-thumbs img { height: 4rem; border-radius: 6px; border: 2px solid #fff; }
.ccg-cam-flash video { opacity: .4; }
body.ccg-cam-open { overflow: hidden; }
/* ---- Conferencia manual (aprobación) ---- */
.ccg-verify .form-control.changed, .ccg-verify .form-select.changed { border-color: #e76500; background: #fff8f0; }
.ccg-verify .ai-was { font-size: .75rem; color: var(--sap-text-2); }
@media (min-width: 992px) { .ccg-receipt-sticky { position: sticky; top: 1rem; } }


/* =====================================================================
   v3 — Formato Pottenza One Ocean + colores SAP S/4HANA
   ===================================================================== */
.po-top { position: sticky; top: 0; z-index: 1031; display: flex; align-items: center; gap: 1rem; height: 3.25rem;
  padding: 0 1.25rem; padding-top: env(safe-area-inset-top); background: #fff; border-bottom: 1px solid var(--sap-border); }
.po-brand { display: flex; align-items: center; gap: .75rem; color: var(--sap-text); }
.po-brand:hover { text-decoration: none; }
.po-logo { height: 2.25rem; width: auto; display: block; }
.po-app { font-weight: 700; font-size: .8125rem; color: var(--sap-text); white-space: nowrap; }
.po-club { align-items: center; gap: .375rem; font-size: .8125rem; color: var(--sap-text-2); border-left: 1px solid var(--sap-border); padding-left: 1rem; white-space: nowrap; }
.po-club img { width: 1.5rem; height: 1.5rem; object-fit: contain; }
.po-right { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.po-welcome { font-size: .8125rem; color: var(--sap-text); white-space: nowrap; }
.po-avatar { width: 2rem; height: 2rem; border-radius: 50%; background: #0854a0; color: #fff; font-size: .6875rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; }
.po-avatar:hover { text-decoration: none; background: var(--sap-brand); color: #fff; }
.po-iconbtn { display: inline-flex; align-items: center; gap: .25rem; height: 2rem; padding: 0 .5rem; border: 0; background: transparent;
  color: var(--sap-text-2); font-size: .8125rem; font-weight: 700; border-radius: var(--sap-radius); }
.po-iconbtn .bi { font-size: 1rem; }
.po-iconbtn:hover, .po-iconbtn:focus { background: var(--sap-hover); color: var(--sap-text); text-decoration: none; }
.po-badge { position: absolute; top: 0; right: 0; background: var(--sap-negative); color: #fff; border-radius: 1rem; font-size: .625rem; line-height: 1rem; min-width: 1rem; padding: 0 .25rem; text-align: center; }

.po-nav { position: sticky; top: 3.25rem; z-index: 1030; justify-content: center; align-items: stretch; gap: .25rem; flex-wrap: wrap;
  background: #fff; border-bottom: 1px solid var(--sap-border); padding: 0 1rem; box-shadow: 0 .0625rem .125rem rgba(0,0,0,.04); }
.po-item { display: inline-flex; align-items: center; gap: .3rem; padding: .8rem 1rem .7rem; border: 0; background: transparent; color: var(--sap-text);
  font-size: .8125rem; font-weight: 600; border-bottom: .1875rem solid transparent; white-space: nowrap; cursor: pointer; }
.po-item:hover, .po-dd:hover > .po-item, .po-dd:focus-within > .po-item { color: var(--sap-brand); text-decoration: none; background: var(--sap-hover); }
.po-item.active { color: var(--sap-brand); border-bottom-color: var(--sap-brand); }
.po-caret { font-size: .625rem; color: var(--sap-text-2); }
.po-logout { color: var(--sap-negative); }
.po-logout:hover { color: var(--sap-negative); }
.po-count { background: var(--sap-critical); color: #fff; border-radius: 1rem; font-size: .625rem; padding: 0 .375rem; font-weight: 700; line-height: 1rem; }
.po-dd { position: relative; display: flex; }
.po-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 15rem; background: #fff; border: 1px solid var(--sap-border);
  border-radius: 0 0 var(--sap-radius) var(--sap-radius); box-shadow: 0 .5rem 1rem rgba(0,0,0,.12); padding: .25rem 0; z-index: 1040; }
.po-menu-end { left: auto; right: 0; min-width: 10rem; }
.po-dd:hover > .po-menu, .po-dd:focus-within > .po-menu { display: block; }
.po-menu a { display: flex; align-items: center; gap: .5rem; padding: .5rem 1rem; color: var(--sap-text); font-size: .8125rem; white-space: nowrap; }
.po-menu a .bi { color: var(--sap-brand); width: 1rem; }
.po-menu a:hover, .po-menu a:focus { background: var(--sap-selected); color: var(--sap-brand-hover); text-decoration: none; }
.po-menu a.active { font-weight: 700; color: var(--sap-brand); }
.po-menu-sep { border-top: 1px solid var(--sap-border); margin: .25rem 0; }
.po-menu-langs { display: flex; gap: .25rem; padding: .25rem .75rem .5rem; }
.po-menu-langs a { padding: .25rem .5rem; border: 1px solid var(--sap-border); border-radius: var(--sap-radius); font-weight: 700; font-size: .75rem; }
.po-menu-langs a.active { background: var(--sap-brand); border-color: var(--sap-brand); color: #fff; }

/* Tarjetas KPI estilo Pottenza One Ocean */
.card { border: 0; border-radius: var(--sap-radius); box-shadow: var(--sap-shadow); }
.kpi .card-body { padding: 0; }
.kpi .label { display: block; padding: .875rem 1rem .5rem; font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--sap-text); border-bottom: 2px solid var(--sap-brand); }
.kpi .value { padding: .75rem 1rem .25rem; font-size: 2rem; font-weight: 400; color: var(--sap-brand); }
.kpi .value small { font-size: .75rem; color: var(--sap-text-2); }
.kpi .small { display: block; padding: 0 1rem .875rem; }
.card h2.h6, .card h3.h6 { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--sap-text); padding-bottom: .5rem; border-bottom: 2px solid var(--sap-brand); margin-bottom: .75rem; }
h1.h4 { font-size: 1.25rem; }
.btn { border-radius: var(--sap-radius); }
.form-control, .form-select { border-radius: var(--sap-radius); border-color: var(--sap-field-border); font-size: .875rem; }
.form-control:focus, .form-select:focus { border-color: var(--sap-brand); box-shadow: 0 0 0 .125rem rgba(10,110,209,.2); }
.ccg-auth-logo { height: 4.5rem; width: auto; }
@media (max-width: 767.98px) {
  .po-app { display: none; }
  .po-logo { height: 2rem; }
}

/* Informes de gastos: guía en 3 pasos («Durante el viaje») */
.ccg-journey-mini{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem}
.ccg-jm{display:flex;gap:.6rem;align-items:flex-start;background:#fff;border:1px solid #e5e5e5;border-radius:.25rem;padding:.75rem;min-width:0}
.ccg-jm .n{flex:0 0 1.75rem;height:1.75rem;border-radius:50%;background:var(--sap-brand,#0a6ed1);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.9rem}
@media (max-width:767.98px){.ccg-journey-mini{grid-template-columns:1fr}}

/* Barra de acciones fija al pie (tablas largas: cuerpo técnico) */
.ccg-sticky-actions{position:sticky;bottom:0;z-index:5;background:var(--sap-bg,#f7f7f7);padding:.5rem 0;border-top:1px solid #e5e5e5}
@media (max-width:767.98px){.ccg-sticky-actions{bottom:4.25rem}}
/* Organigrama: acciones de unidad */
.org-actions form{display:inline}
/* Cuerpo técnico: una persona por bloque, con su función editable */
.ccg-staff-p{border-left:3px solid var(--sap-brand,#0a6ed1);padding-left:.4rem;margin-bottom:.5rem}
.ccg-staff-p .ccg-fn{margin-top:.15rem;font-size:.75rem;padding-top:.1rem;padding-bottom:.1rem}
.ccg-add{border-style:dashed}

/* Comercial: embudo de prospects y leads */
.ccg-pipeline{display:grid;grid-template-columns:repeat(7,minmax(11rem,1fr));gap:.75rem;overflow-x:auto;padding-bottom:.5rem}
.ccg-stage{background:#eef1f4;border-radius:.25rem;padding:.6rem;min-width:0}
.ccg-lead{display:block;background:#fff;border:1px solid #e0e3e6;border-left:3px solid var(--sap-brand,#0a6ed1);border-radius:.25rem;padding:.5rem .6rem;margin-bottom:.5rem}
.ccg-lead:hover{box-shadow:0 1px 4px rgba(0,0,0,.12)}
@media (max-width:991.98px){.ccg-pipeline{grid-template-columns:1fr;overflow-x:visible}}
/* Presupuesto inteligente */
.ccg-budget-total{font-size:2rem;font-weight:700;color:var(--sap-brand,#0a6ed1)}
@media print{.po-top,.po-nav,.ccg-tabbar,.no-print,footer,.btn{display:none!important}body{background:#fff}.card{box-shadow:none;border:1px solid #ccc}}
/* Mapa propio de los partidos fuera (SVG, sin Google en el navegador) */
.ccg-map{width:100%;height:auto;border-radius:.25rem;display:block}
.ccg-map-bg{fill:#eef3f8}
.ccg-map-route{fill:none;stroke:#0a6ed1;stroke-opacity:.35;stroke-width:1.5}
.ccg-map-venue{fill:#e9730c;fill-opacity:.85;stroke:#fff;stroke-width:1.5}
.ccg-map-home{fill:#0a6ed1;stroke:#fff;stroke-width:2}
.ccg-map-label{font:600 12px Arial,sans-serif;fill:#32363a}

/* Pipeline comercial (tablero tipo CRM: columnas por fase, totales al pie) */
.ccg-board{display:flex;gap:.6rem;overflow-x:auto;padding-bottom:.5rem;align-items:stretch;scroll-snap-type:x proximity}
.ccg-col{flex:0 0 17rem;display:flex;flex-direction:column;background:#eef1f4;border-radius:.3rem;max-height:78vh;scroll-snap-align:start}
.ccg-col-head{padding:.55rem .7rem;font-size:.82rem;font-weight:600;color:#32363a;display:flex;gap:.35rem;align-items:baseline}
.ccg-col-count{color:#6a6d70;font-weight:400}
.ccg-col-body{flex:1 1 auto;overflow-y:auto;padding:0 .45rem .45rem}
.ccg-col-foot{border-top:1px solid #d9dee3;padding:.45rem .7rem;font-size:.75rem;color:#32363a;background:#e6eaee;border-radius:0 0 .3rem .3rem}
.ccg-deal{background:#fff;border:1px solid #d9dee3;border-radius:.3rem;padding:.6rem .7rem;margin-bottom:.45rem}
.ccg-deal:hover{box-shadow:0 1px 4px rgba(0,0,0,.12)}
.ccg-deal-name{display:block;font-weight:600;color:var(--sap-brand,#0a6ed1);text-decoration:none;margin-bottom:.35rem;line-height:1.25}
.ccg-deal-name:hover{text-decoration:underline}
.ccg-deal-meta{margin:0 0 .4rem;font-size:.78rem;color:#32363a}
.ccg-deal-meta div{display:flex;gap:.25rem}
.ccg-deal-meta dt{font-weight:400;color:#556b82}
.ccg-deal-meta dd{margin:0}
.ccg-deal-foot{display:flex;align-items:center;gap:.3rem;border-top:1px solid #eef1f4;padding-top:.4rem;font-size:.75rem}
.ccg-deal-next{border:1px solid #d9dee3;border-radius:.25rem;padding:.05rem .4rem;color:#556b82;white-space:nowrap}
.ccg-deal-next.late{border-color:#e9730c;color:#b44f00}
.ccg-deal-foot .btn{padding:.05rem .35rem;line-height:1.2}
@media (max-width:575.98px){.ccg-col{flex-basis:85vw;max-height:none}}
/* Presupuesto inteligente: entrada única (URL o código RFFM) */
.ccg-smart{border:1px solid var(--sap-brand,#0a6ed1);border-left-width:4px}
/* Pipeline: el tablero usa todo el ancho de la pantalla (como un CRM) */
@media (min-width:992px){
  .ccg-board{width:calc(100vw - 2.5rem);margin-left:calc(50% - 50vw + 1.25rem)}
  .ccg-col{flex:1 0 12.5rem}
}
/* Pipeline: columnas altas como en HubSpot y arrastrar y soltar */
.ccg-col{min-height:calc(100vh - 21rem);max-height:none}
@media (min-width:992px){.ccg-col{height:calc(100vh - 19rem);min-height:30rem}}
.ccg-deal[draggable]{cursor:grab}
.ccg-deal.dragging{opacity:.45}
.ccg-col.drop-over{outline:2px dashed var(--sap-brand,#0a6ed1);outline-offset:-3px;background:#e3edf8}
.ccg-col-head{min-height:2.6rem}
/* Selector de club del Administrador General (cabecera) */
.po-club-dd{position:relative;align-items:center}
.po-club-dd .po-club{display:inline-flex;background:none;border:0;border-left:1px solid var(--sap-border);cursor:pointer}
.po-club-dd .po-menu{left:0;right:auto;max-height:70vh;overflow-y:auto}
.po-club-dd .po-menu a.active{font-weight:600;color:var(--sap-brand)}
/* Inicio de la plataforma: rejilla de indicadores y gráfico */
.ccg-kgrid > div:nth-child(3n){border-right:0!important}
.ccg-chart{width:100%;height:auto;display:block}
.ccg-chart-grid{stroke:#e5e8eb;stroke-width:1}
.ccg-chart-axis{stroke:#89919a;stroke-width:1}
.ccg-chart-tick{font-size:11px;fill:#556b82}
.ccg-chart-bar{fill:#0a6ed1}
.ccg-chart-hit:hover .ccg-chart-bar{fill:#0854a0}
.ccg-chart-ref{stroke:#e9730c;stroke-width:2;stroke-dasharray:6 4}
.ccg-leg{display:inline-block;width:.9rem;height:.6rem;vertical-align:middle;border-radius:2px}
.ccg-leg-bar{background:#0a6ed1}
.ccg-leg-line{height:0;border-top:2px dashed #e9730c;border-radius:0}
/* Tarjetas del pipeline: etiqueta y valor en la misma línea, como en HubSpot */
.ccg-deal-meta div{display:block}
.ccg-deal-meta dt,.ccg-deal-meta dd{display:inline}
@media (min-width:992px){.ccg-col{flex:0 0 16.5rem}}
/* Logotipo de Pottenza (la «O» animada) junto al usuario: enlace a www.pottenza-global.com */
.po-pottenza{align-items:center;gap:0;margin-left:.75rem;padding-left:.75rem;border-left:1px solid var(--sap-border);font:700 .95rem/1 "Arial Black",Arial,sans-serif;letter-spacing:.06em;color:#333366;text-decoration:none;white-space:nowrap}
.po-pottenza img{height:20px;width:auto;margin:0 1px;position:relative;top:-1px}
.po-pottenza:hover{color:#0a6ed1;text-decoration:none}

/* Submenús de segundo nivel (Personas › Nueva persona…) */
.po-sub{position:relative}
.po-sub > a{display:flex}
.po-submenu{display:none;position:absolute;left:100%;top:-.25rem;min-width:14rem;background:#fff;border:1px solid var(--sap-border);border-radius:var(--sap-radius);box-shadow:0 .5rem 1rem rgba(0,0,0,.12);padding:.25rem 0;z-index:5}
.po-sub:hover > .po-submenu,.po-sub:focus-within > .po-submenu{display:block}
.po-sub:hover > a{background:var(--sap-selected);color:var(--sap-brand-hover)}
/* Menú hamburguesa (tabletas y móviles) */
.po-burger{position:static}
.po-burger > summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;width:2.25rem;height:2.25rem;border-radius:var(--sap-radius);font-size:1.5rem;color:var(--sap-text)}
.po-burger > summary::-webkit-details-marker{display:none}
.po-burger[open] > summary{background:var(--sap-hover)}
.po-burger-panel{position:fixed;left:0;right:0;top:3.25rem;bottom:0;overflow-y:auto;background:#fff;border-top:1px solid var(--sap-border);padding:.5rem 0 5rem;z-index:1040;box-shadow:0 .5rem 1rem rgba(0,0,0,.15)}
.po-burger-panel a{display:flex;align-items:center;gap:.5rem;padding:.6rem 1.25rem .6rem 2.25rem;color:var(--sap-text);font-size:.9375rem}
.po-burger-panel a.lvl2{padding-left:3.5rem;font-size:.875rem;color:var(--sap-text-2)}
.po-burger-panel a .bi{color:var(--sap-brand)}
.po-burger-panel a:hover{background:var(--sap-selected);text-decoration:none}
.po-burger-mod{display:flex!important;align-items:center;gap:.5rem;padding:.75rem 1.25rem!important;font-weight:700;font-size:.9375rem;color:var(--sap-text);cursor:pointer;list-style:none;border-bottom:1px solid #f0f2f4}
.po-burger-mod::-webkit-details-marker{display:none}
.po-burger-group > summary::after{content:"▸";margin-left:auto;color:var(--sap-text-2);font-size:.75rem}
.po-burger-group[open] > summary::after{content:"▾"}
.po-burger-mod.active{color:var(--sap-brand)}
.po-burger-club{display:flex;align-items:center;gap:.5rem;padding:.5rem 1.25rem .75rem;border-bottom:1px solid var(--sap-border)}
/* Logotipo de Pottenza: solo la «O» animada */
.po-pottenza{display:inline-flex;align-items:center;margin-left:.5rem;padding-left:.75rem;border-left:1px solid var(--sap-border)}
.po-pottenza img{height:28px;width:auto;top:0}
/* Club de la página (Administrador General) */
.ccg-scope{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;background:#fff;border:1px solid var(--sap-border);border-left:4px solid var(--sap-brand);border-radius:var(--sap-radius);padding:.4rem .75rem;margin-bottom:1rem}
.ccg-scope img{width:1.75rem;height:1.75rem;object-fit:contain}
.ccg-scope select{max-width:18rem;width:auto}
/* Customizar el organigrama: organigrama vertical con arrastrar y soltar */
.orgc{overflow-x:auto;padding:1rem .5rem 1.5rem}
.orgc ul{display:flex;justify-content:center;position:relative;margin:0;padding:1.25rem 0 0;list-style:none}
.orgc > ul{padding-top:0;min-width:max-content}
.orgc li{position:relative;display:flex;flex-direction:column;align-items:center;padding:1.25rem .35rem 0}
.orgc > ul > li{padding-top:0}
.orgc li::before,.orgc li::after{content:"";position:absolute;top:0;right:50%;width:50%;height:1.25rem;border-top:2px solid #c3ccd6}
.orgc li::after{right:auto;left:50%;border-left:2px solid #c3ccd6}
.orgc li:only-child::before,.orgc li:only-child::after{display:none}
.orgc li:only-child{padding-top:1.25rem}
.orgc > ul > li:only-child{padding-top:0}
.orgc li:first-child::before,.orgc li:last-child::after{border:0}
.orgc li:last-child::before{border-right:2px solid #c3ccd6;border-radius:0 6px 0 0}
.orgc li:first-child::after{border-radius:6px 0 0 0}
.orgc ul ul::before{content:"";position:absolute;top:0;left:50%;border-left:2px solid #c3ccd6;height:1.25rem}
.orgc li:only-child > .orgc-card{position:relative}
.orgc li:only-child::marker{content:none}
.orgc-card{background:#fff;border:1px solid #d9dee3;border-top:4px solid var(--sap-brand);border-radius:.4rem;padding:.45rem .6rem;min-width:9.5rem;max-width:13rem;text-align:center;cursor:grab;box-shadow:0 1px 2px rgba(0,0,0,.06)}
.orgc-card.lvl-governance{border-top-color:#5d36ff}.orgc-card.lvl-executive{border-top-color:#0070f2}.orgc-card.lvl-department{border-top-color:#1a9898}.orgc-card.lvl-area{border-top-color:#e76500}.orgc-card.lvl-role{border-top-color:#788fa6}
.orgc-name{font-weight:700;font-size:.8125rem;line-height:1.2}
.orgc-meta{font-size:.72rem;color:#556b82;margin-top:.15rem}
.orgc-card.dragging,.orgc-person.dragging{opacity:.4}
.orgc-card.drop-over{outline:3px dashed var(--sap-brand);outline-offset:2px;background:#e3edf8}
.orgc-root{border:2px dashed #c3ccd6;border-radius:.4rem;padding:.5rem;text-align:center;color:#556b82;font-size:.8125rem;margin-bottom:.75rem}
.orgc-root.drop-over{border-color:var(--sap-brand);background:#e3edf8;color:var(--sap-brand)}
.orgc-people{display:flex;flex-wrap:wrap;gap:.4rem}
.orgc-person{display:inline-flex;flex-direction:column;border:1px solid #d9dee3;border-radius:1rem;padding:.2rem .7rem;font-size:.8125rem;background:#fff;cursor:grab;line-height:1.2}
.orgc-person small{color:#556b82;font-size:.68rem}
.orgc-person.nounit{border-color:#e9730c;background:#fff8f2}
/* v5.14 · tarjetas de la base de datos de clubes y campos: abren su lista */
.ccg-kpi-link{color:inherit;transition:box-shadow .15s,border-color .15s}
.ccg-kpi-link:hover{border-color:#0a6ed1;box-shadow:0 0 0 .1rem rgba(10,110,209,.25)}
.ccg-kpi-link.active{border-color:#0a6ed1;box-shadow:inset 0 -.2rem 0 #0a6ed1;background:#f2f8fe}
.ccg-club-teams summary{cursor:pointer;list-style:none}
.ccg-club-teams summary::-webkit-details-marker{display:none}
.ccg-club-teams summary::before{content:"\25B8";display:inline-block;width:1rem;color:#0a6ed1;transition:transform .15s}
.ccg-club-teams[open] summary::before{transform:rotate(90deg)}
/* v5.15 · cabeceras ordenables */
a.ccg-sort{color:inherit;text-decoration:none;white-space:nowrap}
a.ccg-sort:hover{color:#0a6ed1}

/* =====================================================================
   5.23 — Tema «limpio»: azul de marca, superficies claras, tarjetas
   redondeadas sin bordes, cabecera azul en la app móvil, indicadores y
   gráficos sobrios (dashboards).
   ===================================================================== */
:root {
  --sap-brand: #3d6be4; --sap-brand-hover: #2f5bd3; --sap-brand-active: #2a52be;
  --sap-text: #1f2633; --sap-text-2: #667085; --sap-bg: #f4f6fb; --sap-border: #e6e9f0; --sap-selected: #eef3fe;
  --sap-radius: .875rem;
  --sap-shadow: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.07);
  --sap-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ccg-teal: #0f8a7d; --ccg-teal-hover: #0c7468;
  --ccg-field: #f6f8fc; --ccg-field-border: #dfe4ee;
  --ccg-grid: #eceff5; --ccg-axis: #cfd5e1; --ccg-muted: #8a93a6;
  --bs-primary: #3d6be4; --bs-primary-rgb: 61, 107, 228; --bs-link-color: #3d6be4; --bs-link-color-rgb: 61, 107, 228; --bs-link-hover-color: #2f5bd3;
  --bs-body-font-family: var(--sap-font); --bs-body-bg: var(--sap-bg); --bs-body-color: var(--sap-text); --bs-border-radius: .625rem;
}
body { font-family: var(--sap-font); background: var(--sap-bg); color: var(--sap-text); }
.card { border-radius: var(--sap-radius); box-shadow: var(--sap-shadow); border: 0; }
.card > .table-responsive, .card > .table-responsive > .table { border-radius: var(--sap-radius); }
.card h2.h6, .card h3.h6 { font-size: .9375rem; letter-spacing: 0; text-transform: none; font-weight: 650; color: var(--sap-text); border-bottom: 0; padding-bottom: 0; margin-bottom: .75rem; }
.kpi .label { text-transform: none; letter-spacing: 0; font-size: .8125rem; font-weight: 500; color: var(--sap-text-2); border-bottom: 0 !important; padding-bottom: .25rem; }
.kpi .value { color: var(--sap-text); font-weight: 650; font-size: 1.75rem; padding-top: .25rem; }
.btn { border-radius: .625rem; font-weight: 600; }
.btn-lg { border-radius: .875rem; }
.btn-ccg, .btn-primary { background: var(--sap-brand); border-color: var(--sap-brand); box-shadow: 0 2px 6px rgba(61,107,228,.25); }
.btn-ccg:hover, .btn-primary:hover, .btn-ccg:focus { background: var(--sap-brand-hover); border-color: var(--sap-brand-hover); }
.btn-outline-primary { color: var(--sap-brand); border-color: #c9d6f7; background: #fff; }
.btn-outline-primary:hover { background: var(--sap-selected); color: var(--sap-brand-hover); border-color: var(--sap-brand); }
.btn-teal { background: var(--ccg-teal); border-color: var(--ccg-teal); color: #fff; box-shadow: 0 2px 6px rgba(15,138,125,.25); }
.btn-teal:hover, .btn-teal:focus { background: var(--ccg-teal-hover); border-color: var(--ccg-teal-hover); color: #fff; }
.form-control, .form-select { border-radius: .625rem; border-color: var(--ccg-field-border); background-color: var(--ccg-field); }
.form-control:focus, .form-select:focus { background-color: #fff; border-color: var(--sap-brand); box-shadow: 0 0 0 .2rem rgba(61,107,228,.15); }
.form-label { font-weight: 600; font-size: .8125rem; color: #344054; }
.fio-tabbar a.active { color: var(--sap-brand); }
.fio-tabbar .fio-fab { background: var(--sap-brand); box-shadow: 0 .25rem .75rem rgba(61,107,228,.45); }
.alert { border-radius: .75rem; }
.badge { border-radius: .5rem; font-weight: 600; }

/* ---------- Cabecera azul de la app (Inicio, Nuevo gasto, Mis gastos) ---------- */
.ccg-hero { background: linear-gradient(135deg, #4c7cf0 0%, #3461d8 100%); color: #fff; border-radius: 1.25rem; padding: 1.25rem 1.25rem 3.25rem; margin-bottom: -2.25rem; position: relative; }
.ccg-hero h1 { color: #fff; font-size: 1.5rem; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.ccg-hero .ccg-hero-sub { color: rgba(255,255,255,.85); font-size: .875rem; margin-top: .125rem; }
.ccg-hero .ccg-hero-back { color: #fff; font-size: 1.5rem; line-height: 1; margin-right: .75rem; display: inline-flex; }
.ccg-hero .ccg-hero-back:hover { text-decoration: none; opacity: .85; }
.ccg-hero .ccg-hero-club { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.16); border-radius: 2rem; padding: .25rem .75rem .25rem .25rem; font-size: .8125rem; font-weight: 600; color: #fff; }
.ccg-hero .ccg-hero-club img, .ccg-hero .ccg-hero-club .ph { width: 1.75rem; height: 1.75rem; border-radius: 50%; background: #fff; object-fit: contain; padding: 2px; }
.ccg-hero .ccg-hero-club .ph { display: inline-flex; align-items: center; justify-content: center; color: var(--sap-brand); font-weight: 700; font-size: .75rem; }
.ccg-hero-body { position: relative; z-index: 1; }
.ccg-hero.flat { padding-bottom: 1.25rem; margin-bottom: 1rem; }
@media (max-width: 767.98px) {
  .ccg-hero { margin: -.75rem -.75rem -2.25rem; border-radius: 0 0 1.5rem 1.5rem; padding: 1rem 1rem 3.25rem; }
  .ccg-hero.flat { margin-bottom: 1rem; padding-bottom: 1.25rem; }
  .ccg-hero h1 { font-size: 1.375rem; }
}

/* ---------- Indicadores (stat tiles) ---------- */
.ccg-stat { background: #fff; border-radius: var(--sap-radius); box-shadow: var(--sap-shadow); padding: 1rem 1.125rem; height: 100%; }
.ccg-stat-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.ccg-stat-l { font-size: .8125rem; color: var(--sap-text-2); font-weight: 500; }
.ccg-stat-i { width: 2rem; height: 2rem; border-radius: .625rem; display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; flex: 0 0 auto; }
.ccg-stat-i.tone-blue { background: #eef3fe; color: #3d6be4; }
.ccg-stat-i.tone-green { background: #e8f6ee; color: #0c7a3e; }
.ccg-stat-i.tone-amber { background: #fdf3e1; color: #a66300; }
.ccg-stat-i.tone-red { background: #fdecec; color: #b42318; }
.ccg-stat-i.tone-teal { background: #e6f5f3; color: var(--ccg-teal); }
.ccg-stat-v { font-size: 1.625rem; font-weight: 700; color: var(--sap-text); margin-top: .375rem; line-height: 1.15; letter-spacing: -.01em; }
.ccg-stat-v small { font-size: .875rem; font-weight: 500; color: var(--sap-text-2); }
.ccg-stat-n { font-size: .75rem; color: var(--sap-text-2); margin-top: .25rem; }
.ccg-stat-link { color: inherit; display: block; height: 100%; }
.ccg-stat-link:hover { text-decoration: none; }
.ccg-stat-link:hover .ccg-stat { box-shadow: 0 0 0 1px rgba(61,107,228,.35), 0 6px 16px rgba(16,24,40,.08); }
.ccg-stat.compact { text-align: center; padding: .875rem .75rem; }
.ccg-stat.compact .ccg-stat-v { font-size: 1.375rem; margin-top: 0; }
.ccg-stat.compact .ccg-stat-l { text-transform: uppercase; letter-spacing: .04em; font-size: .6875rem; }
@media (max-width: 767.98px) { .ccg-stat-v { font-size: 1.25rem; } .ccg-stat { padding: .875rem; } }

/* ---------- Gráficos ---------- */
.ccg-panel { background: #fff; border-radius: var(--sap-radius); box-shadow: var(--sap-shadow); padding: 1.125rem 1.25rem; height: 100%; }
.ccg-panel-h { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; margin-bottom: .5rem; }
.ccg-panel-h h2, .ccg-panel-h h3 { font-size: .9375rem; font-weight: 650; margin: 0; }
.ccg-panel-h .sub { font-size: .75rem; color: var(--sap-text-2); }
.ccg-chart { position: relative; }
.ccg-chart-svg { width: 100%; height: auto; display: block; overflow: visible; }
.ccg-grid { stroke: var(--ccg-grid); stroke-width: 1; }
.ccg-axis { stroke: var(--ccg-axis); stroke-width: 1; }
.ccg-tick { fill: var(--ccg-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.ccg-vlabel { fill: var(--sap-text); font-size: 12px; font-weight: 650; }
.ccg-line { fill: none; stroke: var(--sap-brand); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ccg-area { fill: var(--sap-brand); fill-opacity: .1; stroke: none; }
.ccg-dot { fill: var(--sap-brand); stroke: #fff; stroke-width: 2; }
.ccg-hit { fill: transparent; cursor: crosshair; outline: none; }
.ccg-cross { stroke: var(--ccg-axis); stroke-width: 1; pointer-events: none; }
.ccg-hit-arc { cursor: pointer; outline: none; transition: opacity .15s; }
.ccg-donut:has(.ccg-hit-arc.is-hot) .ccg-hit-arc:not(.is-hot) { opacity: .45; }
.ccg-donut { width: 100%; max-width: 11rem; height: auto; display: block; }
.ccg-donut-c { fill: var(--sap-text); font-size: 17px; font-weight: 700; }
.ccg-donut-wrap { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.ccg-donut-wrap > .ccg-chart { flex: 0 0 9.5rem; }
.ccg-legend { list-style: none; margin: 0; padding: 0; flex: 1 1 13rem; min-width: 0; }
.ccg-legend li { display: flex; align-items: center; gap: .5rem; padding: .375rem 0; border-bottom: 1px solid #f0f2f7; font-size: .8125rem; }
.ccg-legend li:last-child { border-bottom: 0; }
.ccg-legend .ccg-sw { width: .625rem; height: .625rem; border-radius: 3px; flex: 0 0 auto; }
.ccg-legend .ccg-lg-l { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ccg-legend .ccg-lg-p { color: var(--sap-text-2); font-size: .75rem; font-variant-numeric: tabular-nums; }
.ccg-legend strong { font-variant-numeric: tabular-nums; min-width: 4.5rem; text-align: right; }
.ccg-hbars { list-style: none; margin: 0; padding: 0; }
.ccg-hbars li { padding: .375rem 0; outline: none; }
.ccg-hb-top { display: flex; justify-content: space-between; gap: .5rem; font-size: .8125rem; margin-bottom: .25rem; }
.ccg-hb-top span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ccg-hb-top strong { font-variant-numeric: tabular-nums; }
.ccg-hb-track { height: .5rem; background: #eef1f7; border-radius: 4px; }
.ccg-hb-bar { height: 100%; background: var(--sap-brand); border-radius: 0 4px 4px 0; }
.ccg-hbars li.is-hot .ccg-hb-bar, .ccg-hbars li:focus .ccg-hb-bar { background: var(--sap-brand-hover); }
.ccg-tip { position: fixed; z-index: 2000; display: none; pointer-events: none; background: #1f2633; color: #fff; border-radius: .5rem; padding: .375rem .625rem; font-size: .75rem; box-shadow: 0 6px 16px rgba(16,24,40,.2); }
.ccg-tip strong { display: block; font-size: .875rem; }
.ccg-tip span { color: #c9cfdb; }
.ccg-chart-data { margin-top: .5rem; font-size: .75rem; }
.ccg-chart-data summary { color: var(--sap-text-2); cursor: pointer; list-style: none; }
.ccg-chart-data summary::-webkit-details-marker { display: none; }
.ccg-chart-data summary::before { content: "▸ "; }
.ccg-chart-data[open] summary::before { content: "▾ "; }
.ccg-chart-data .table { font-size: .75rem; margin-top: .375rem; }

/* ---------- Lista limpia de gastos ---------- */
.ccg-xlist { list-style: none; margin: 0; padding: 0; background: #fff; border-radius: var(--sap-radius); box-shadow: var(--sap-shadow); overflow: hidden; }
.ccg-xlist li + li { border-top: 1px solid #f0f2f7; }
.ccg-xlist a { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; color: inherit; }
.ccg-xlist a:hover { text-decoration: none; background: #f8f9fc; }
.ccg-xi { width: 2.5rem; height: 2.5rem; border-radius: .75rem; background: #eef3fe; color: var(--sap-brand); display: inline-flex; align-items: center; justify-content: center; font-size: 1.125rem; flex: 0 0 auto; }
.ccg-xt { flex: 1; min-width: 0; }
.ccg-xt .t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ccg-xt .s { font-size: .75rem; color: var(--sap-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ccg-xa { text-align: right; flex: 0 0 auto; }
.ccg-xa .a { font-weight: 700; font-variant-numeric: tabular-nums; }
.ccg-pill { display: inline-block; font-size: .6875rem; font-weight: 600; border-radius: 1rem; padding: .0625rem .5rem; margin-top: .125rem; }
.ccg-pill.st-draft, .ccg-pill.st-cancelled { background: #f1f3f7; color: #475467; }
.ccg-pill.st-submitted { background: #fdf3e1; color: #8a5200; }
.ccg-pill.st-approved { background: #e6f5f3; color: #0c6b61; }
.ccg-pill.st-paid { background: #e8f6ee; color: #0c6b34; }
.ccg-pill.st-rejected { background: #fdecec; color: #b42318; }
.ccg-section-h { display: flex; align-items: baseline; justify-content: space-between; margin: 1.5rem 0 .625rem; }
.ccg-section-h h2 { font-size: 1rem; font-weight: 700; margin: 0; }
.ccg-section-h a { font-size: .8125rem; font-weight: 600; }

/* ---------- Nuevo gasto (subir ticket o factura) ---------- */
.ccg-form-card { background: #fff; border-radius: 1.125rem; box-shadow: var(--sap-shadow); padding: 1.25rem; position: relative; z-index: 2; }
.ccg-field-static { display: flex; align-items: center; gap: .625rem; background: var(--ccg-field); border: 1px solid var(--ccg-field-border); border-radius: .625rem; padding: .5rem .75rem; min-height: 2.875rem; font-weight: 600; }
.ccg-field-static img, .ccg-field-static .ph { width: 1.875rem; height: 1.875rem; object-fit: contain; border-radius: .375rem; }
.ccg-field-static .ph { background: var(--sap-selected); color: var(--sap-brand); display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; }
.ccg-add-zone { border: 2px dashed #b9c8f3; border-radius: .875rem; background: #f8faff; padding: 1rem; text-align: center; }
.ccg-add-zone .ccg-add-t { color: var(--sap-brand); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: .875rem; }
.ccg-add-zone .dropzone { border: 0; background: transparent; padding: .5rem; }
.ccg-add-zone .btn-ccg[data-cam-start] { margin-top: .5rem; }
.ccg-continue { width: 100%; border-radius: .875rem; padding: .875rem 1rem; font-size: 1rem; text-transform: uppercase; letter-spacing: .04em; }
.ccg-app-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.ccg-app-actions .btn { padding: .75rem .5rem; font-size: .9375rem; }
.ccg-acc-box { background: var(--ccg-field); border-radius: .75rem; padding: .625rem .5rem; }
details.ccg-panel { height: auto; }
details.ccg-panel summary { cursor: pointer; }
.ccg-chart-bar { fill: #3d6be4; }
.ccg-chart-hit:hover .ccg-chart-bar, .ccg-chart-hit.is-hot .ccg-chart-bar { fill: #2f5bd3; }
.ccg-chart-hit { outline: none; }
.ccg-chart-ref { stroke: #eb6834; stroke-dasharray: none; }
.ccg-leg-bar { background: #3d6be4; }
.ccg-leg-line { border-top: 2px solid #eb6834; }
.ccg-chart-grid { stroke: var(--ccg-grid); }
.ccg-chart-tick { fill: var(--ccg-muted); }
.ccg-hb-top strong { white-space: nowrap; }

/* ---------- Documento legal dentro de la app (acuerdo / anexo) y bloque de firma ---------- */
.ccg-legal-doc { background: #fff; border-radius: var(--sap-radius); box-shadow: var(--sap-shadow); padding: 2rem 2.25rem; font: 14px/1.6 Georgia, "Times New Roman", serif; color: #111; max-width: 52rem; margin-left: auto; margin-right: auto; }
.ccg-legal-doc h1 { font-size: 1.2rem; text-align: center; text-transform: uppercase; margin: 1rem 0 .25rem; color: #111; }
.ccg-legal-doc h2 { font-size: .95rem; margin: 1rem 0 .25rem; color: #111; }
.ccg-legal-doc h3 { font-size: .9rem; margin: .9rem 0 .2rem; color: #111; font-weight: 700; }
.ccg-legal-doc .ccg-annex h1 { font-size: 1rem; }
.ccg-accept { border: 1px solid var(--ccg-blue, #3d6be4); background: #f3f6fe; border-radius: 10px; padding: .85rem 1rem; }
.ccg-accept .form-check-input { width: 1.3em; height: 1.3em; margin-top: .15em; }
.ccg-legal-doc p, .ccg-legal-doc li { text-align: justify; }
.ccg-legal-doc .c { text-align: center; }
.ccg-legal-doc .muted { color: #555; font-size: 12px; }
.ccg-legal-doc .fill { border-bottom: 1px dotted #333; display: inline-block; min-width: 160px; }
.ccg-legal-doc .sig { display: flex; gap: 40px; margin-top: 40px; }
.ccg-legal-doc .sig div { flex: 1; border-top: 1px solid #333; padding-top: 4px; text-align: center; font-size: 12px; }
.ccg-legal-doc img { max-height: 56px; float: right; }
.ccg-sign-block { font-family: var(--sap-font); margin-top: 1.5rem; border: 2px solid #1baf7a; border-radius: .875rem; padding: 1rem 1.25rem; background: #f3fbf7; }
.ccg-sign-h { font-weight: 700; color: #0c6b34; margin-bottom: .5rem; }
.ccg-sign-block dl { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1rem; font-size: .8125rem; margin-bottom: .5rem; }
.ccg-sign-block dt { color: var(--sap-text-2); font-weight: 600; }
.ccg-sign-block dd { margin: 0; }
@media (max-width: 575.98px) { .ccg-legal-doc { padding: 1.25rem 1rem; font-size: 13px; } .ccg-sign-block dl { grid-template-columns: 1fr; } }
@media print { .no-print, .ccg-hero, .fio-tabbar, .fio-shell { display: none !important; } .ccg-legal-doc { box-shadow: none; padding: 0; } }

/* ---------- Pagos: elegir qué pagar y qué va al banco ---------- */
.ccg-pay-group { background: #fff; border-radius: var(--sap-radius); box-shadow: var(--sap-shadow); }
.ccg-pay-head { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; cursor: pointer; margin: 0; }
.ccg-pay-head .form-check-input { width: 1.25rem; height: 1.25rem; flex: 0 0 auto; }
.ccg-pay-lines { border-top: 1px solid #f0f2f7; padding: .25rem 1rem .75rem 3rem; font-size: .875rem; }
.ccg-pay-lines summary { color: var(--sap-brand); font-weight: 600; font-size: .8125rem; cursor: pointer; padding: .375rem 0; }
.ccg-pay-lines li { padding: .375rem 0; border-bottom: 1px dashed #eef1f6; }
.ccg-pay-lines li:last-child { border-bottom: 0; }
.min-w-0 { min-width: 0; }
.ccg-pay-bar { position: sticky; bottom: .75rem; z-index: 5; margin-top: 1rem; background: #fff; border-radius: 1rem; box-shadow: 0 8px 24px rgba(16,24,40,.14); padding: .875rem 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.ccg-pay-sum { display: flex; flex-direction: column; min-width: 9rem; }
.ccg-pay-sum strong { font-size: 1.375rem; }
.ccg-pay-act { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem; margin-left: auto; }
@media (max-width: 767.98px) { .ccg-pay-bar { bottom: calc(var(--tabbar-h) + .5rem); } .ccg-pay-act { margin-left: 0; width: 100%; } .ccg-pay-act .btn-ccg { flex: 1; } .ccg-pay-lines { padding-left: 1rem; } }

/* ---------- Factura de CCGastos y orden de domiciliación ---------- */
.ccg-invoice { background: #fff; border-radius: var(--sap-radius); box-shadow: var(--sap-shadow); padding: 2rem; max-width: 52rem; margin: 0 auto; }
.ccg-invoice .inv-head { display: flex; justify-content: space-between; gap: 1.25rem; flex-wrap: wrap; border-bottom: 3px solid var(--sap-brand); padding-bottom: .75rem; }
.ccg-invoice .inv-brand { font-size: 1.375rem; font-weight: 700; color: var(--sap-brand); }
.ccg-invoice .inv-no { text-align: right; }
.ccg-invoice .inv-t { font-size: 1.25rem; font-weight: 700; }
.ccg-invoice .inv-to { margin: 1.125rem 0; padding: .625rem .75rem; background: var(--sap-bg); border-radius: .5rem; }
.ccg-invoice table { width: 100%; border-collapse: collapse; }
.ccg-invoice .inv-lines th, .ccg-invoice .inv-lines td { border-bottom: 1px solid var(--sap-border); padding: .5rem; text-align: left; }
.ccg-invoice .n { text-align: right !important; white-space: nowrap; }
.ccg-invoice .inv-tot { width: auto; margin: .875rem 0 0 auto; }
.ccg-invoice .inv-tot th { padding: .25rem 1rem .25rem 0; font-weight: 400; }
.ccg-invoice .inv-tot td { text-align: right; }
.ccg-invoice .inv-tot .g th, .ccg-invoice .inv-tot .g td { font-weight: 700; font-size: 1rem; border-top: 2px solid var(--sap-text); }
.ccg-invoice .muted { color: var(--sap-text-2); font-size: .75rem; }
.ccg-legal-doc .doc-grid { width: 100%; border-collapse: collapse; margin: .75rem 0; font-size: 13px; }
.ccg-legal-doc .doc-grid th { width: 40%; text-align: left; font-weight: 400; color: #444; padding: .375rem .5rem; border: 1px solid #ccc; background: #f7f7f7; }
.ccg-legal-doc .doc-grid td { padding: .375rem .5rem; border: 1px solid #ccc; }
@media print { .ccg-invoice { box-shadow: none; padding: 0; } }
.table td.text-end, .table th.text-end { white-space: nowrap; }
/* 5.28 · nota del límite anual en Usuarios */
.ccg-limit-note { background: #eef3fe; border: 1px solid #c9d8fb; border-radius: 10px; padding: .55rem .8rem; color: #1f3b80; }
/* 5.28 · VERI*FACTU en la factura */
.ccg-invoice .inv-vf { display: flex; gap: .75rem; align-items: center; margin: .875rem 0 0; padding: .5rem; border: 1px solid #e6e9f0; border-radius: .5rem; max-width: 26rem; background: #fff; }
.ccg-invoice .inv-vf-qr svg { width: 34mm; height: 34mm; display: block; }
.ccg-invoice .inv-vf-t { font-size: .8rem; }
.ccg-invoice .inv-vf-l { font-weight: 700; letter-spacing: .06em; }
/* 5.29 · contrato editable */
.ccg-legal-doc .doc-in { display: inline-block; max-width: 100%; border: 0; border-bottom: 1.5px dashed #3d6be4; background: #f3f6fe; font: inherit; font-weight: 700; padding: 0 .25rem; border-radius: 3px 3px 0 0; color: #111; }
.ccg-legal-doc .doc-in:focus { outline: 2px solid #3d6be4; background: #fff; }
.ccg-legal-doc .doc-in:invalid { border-bottom-color: #d62f2f; background: #fff4f4; }
@media print { .ccg-legal-doc .doc-in { border: 0; background: none; padding: 0; } }
/* Alta directa del club: pasos */
.ccg-signup-steps { list-style: none; padding: 0; margin: 0 0 12px; display: flex; gap: 8px; flex-wrap: wrap; counter-reset: st; }
.ccg-signup-steps li { counter-increment: st; flex: 1 1 160px; padding: 8px 10px; border-radius: 10px; background: #f3f5f9; color: #5b6475; }
.ccg-signup-steps li::before { content: counter(st) ". "; font-weight: 700; }
.ccg-signup-steps li.on { background: #e8efff; color: #2a55c9; font-weight: 600; }
/* Banderas de los idiomas */
.ccg-flag { display: inline-block; vertical-align: -1px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); object-fit: cover; }
