.cfa-sync-status{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;background:#fffaf2;border:1px solid #e6d6be;border-radius:16px;padding:14px 16px;margin:0 0 18px;color:#694a2b}
.cfa-sync-status>div{display:grid;gap:5px;flex:1;min-width:180px}.cfa-sync-status strong{font-size:12px}.cfa-sync-status [role=status]{font-size:11px;line-height:1.5;color:#8a7359}.cfa-sync-status button{white-space:nowrap;font-size:11px}.cfa-sync-status.cfa-sync-error{border-color:#c88c70}.cfa-sync-status.cfa-sync-error [role=status]{color:#9c5037}


/* Detalle de incidencias de sincronización; nunca se marcan resueltas desde el panel. */
.cfa-sync-incidents-button{
  background:transparent;border:0;box-shadow:none;padding:0 2px;color:#965125;
  font:inherit;font-weight:750;text-decoration:underline;text-decoration-thickness:1px;
  text-underline-offset:3px;cursor:pointer;white-space:nowrap
}
.cfa-sync-incidents-button:hover{color:#663711}
.cfa-sync-incidents-button:focus-visible{outline:2px solid #8f643b;outline-offset:3px;border-radius:3px}
.cfa-sync-dialog{
  color:#4c3522;background:#fffaf2;border:1px solid #e2d1b6;
  border-radius:22px;padding:22px;width:min(94vw,530px);
  max-height:min(80vh,780px);overflow-y:auto;box-shadow:0 24px 65px #2a201d3b
}
.cfa-sync-dialog::backdrop{background:#2e241ab5;backdrop-filter:blur(3px)}
.cfa-sync-dialog-head{display:flex;gap:12px;align-items:start;justify-content:space-between}
.cfa-sync-dialog-head h2{font-size:23px;line-height:1.18;margin:0;color:#4b301b}
.cfa-sync-dialog-close{border:0;border-radius:50%;background:#f2e6d7;
  color:#6e4726;font-size:23px;line-height:1;width:36px;height:36px;flex:0 0 36px;cursor:pointer}
.cfa-sync-dialog-subtitle{font-size:13px;color:#957b5c;margin:7px 0 20px}
.cfa-sync-issues-list{display:grid;gap:11px}
.cfa-sync-issue{padding:14px;border:1px solid #ead8c6;border-radius:15px;
  background:#fff5ed;border-left:4px solid #b4774d}
.cfa-sync-issue strong{display:block;font-size:14px;color:#74401e;margin:0 0 7px}
.cfa-sync-issue p{font-size:13px;line-height:1.55;margin:0;overflow-wrap:anywhere}
.cfa-sync-issues-note{font-size:14px;line-height:1.55;margin:0;padding:15px;
  background:#f7efe3;border-radius:14px}
.cfa-sync-dialog-bottom{width:100%;margin-top:20px;border:1px solid #bfa78c;
  background:#f8eedc;border-radius:13px;color:#684524;font-weight:700;padding:12px;cursor:pointer}
@media(max-width:440px){.cfa-sync-dialog{padding:18px}.cfa-sync-dialog-head h2{font-size:20px}}


/* Desplegables de incidencias con explicación en lenguaje claro. */
.cfa-sync-issue-expandable{padding:0;overflow:hidden}
.cfa-sync-issue-expandable>summary{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:15px 16px;cursor:pointer;list-style:none;min-height:80px
}
.cfa-sync-issue-expandable>summary::-webkit-details-marker{display:none}
.cfa-sync-issue-expandable>summary:focus-visible{outline:2px solid #9b6d45;outline-offset:-3px;border-radius:12px}
.cfa-sync-issue-heading{display:grid;gap:5px;min-width:0}
.cfa-sync-issue-heading small{font-size:12px;font-weight:750;color:#a46b47}
.cfa-sync-issue-heading strong{font-size:15px;line-height:1.4;color:#5d3922;margin:0}
.cfa-sync-issue-chevron{font-size:26px;line-height:1;color:#96673f;transition:transform .2s}
.cfa-sync-issue-expandable[open] .cfa-sync-issue-chevron{transform:rotate(180deg)}
.cfa-sync-issue-body{padding:3px 16px 18px;border-top:1px solid #e7d7c8}
.cfa-sync-issue-body .cfa-sync-issue-label{font-size:12px;color:#865735;margin:15px 0 5px}
.cfa-sync-issue-body p{font-size:13px;line-height:1.6;color:#5b4638;margin:0}
@media(prefers-reduced-motion:reduce){.cfa-sync-issue-chevron{transition:none}}


/* Referencias concretas para localizar cada incidencia en Calendar o Tabla IA. */
.cfa-sync-issue-lookup{background:#faf1e5;border:1px solid #e8d4b8;border-radius:13px;padding:12px;margin-top:12px}
.cfa-sync-issue-lookup-title{display:block;font-size:13px;color:#6f492d;margin-bottom:7px}
.cfa-sync-lookup-row{display:grid;grid-template-columns:minmax(110px,40%) minmax(0,1fr);gap:9px;align-items:start;padding:7px 0;border-bottom:1px solid #eadbca}
.cfa-sync-lookup-row:last-child{border:0}
.cfa-sync-lookup-row span{font-size:12px;color:#87705a}
.cfa-sync-lookup-row strong{font-size:12px;font-weight:700;color:#533821;overflow-wrap:anywhere}
.cfa-sync-lookup-row .cfa-sync-lookup-missing{color:#a35b41;font-weight:500}
@media(max-width:430px){.cfa-sync-lookup-row{grid-template-columns:1fr;gap:2px}}


/* Descarte reversible de avisos de sincronización; nunca borra reservas. */
.cfa-sync-archive-note{padding:12px 14px;background:#f1e9dc;border:1px solid #e6d8c7;border-radius:12px;color:#6f553d;font-size:12px;line-height:1.55;margin:0}
.cfa-sync-issue-toggle{display:block;width:100%;margin-top:18px;padding:11px 12px;border:1px solid #aa7f58;border-radius:11px;background:#fff9f2;color:#81522f;font-size:13px;font-weight:700;cursor:pointer}
.cfa-sync-issue-actions{display:grid;gap:9px;margin-top:14px}
.cfa-sync-action{background:#80532b;color:white;border:0;border-radius:12px;padding:12px 15px;font-weight:700;cursor:pointer}
.cfa-sync-action.secondary{background:#f5eadb;color:#704b2c;border:1px solid #dec4a9}
.cfa-sync-issue-toggle:focus-visible,.cfa-sync-action:focus-visible{outline:2px solid #885b32;outline-offset:2px}

/* Sincronización discreta en Inicio; acciones y descartados se gestionan desde Más. */
.cfa-sync-status{padding:12px 16px}
.cfa-sync-status>div{width:100%}
#cfa-sync-more-details{font-size:12px;line-height:1.5}


/* CFA 14-11-2026: estado de sincronización compacto, sin título */
.cfa-sync-status{
  padding:9px 14px;
  margin-bottom:13px;
  min-height:0;
  gap:0;
  align-items:center;
}
.cfa-sync-status>div{
  display:block;
  width:100%;
  min-width:0;
}
.cfa-sync-status [role="status"]{
  display:block;
  font-size:12px;
  line-height:1.35;
}
@media(max-width:420px){
  .cfa-sync-status{padding:9px 13px}
  .cfa-sync-status [role="status"]{font-size:11.5px}
}


/* CFA 14-11: hora alineada en la misma línea que los recuentos. */
.cfa-sync-status{padding:8px 12px;margin-bottom:12px}
.cfa-sync-status>div{min-width:0;overflow:hidden}
.cfa-sync-status [role="status"]{font-size:11px;line-height:1.4;white-space:nowrap}
.cfa-sync-one-line{display:flex;align-items:center;gap:0;white-space:nowrap;min-width:0;width:100%;justify-content:center;letter-spacing:-.13px}
.cfa-sync-one-line-counts{flex:0 1 auto;white-space:nowrap}
.cfa-sync-one-line .cfa-sync-incidents-button{flex:0 0 auto;white-space:nowrap}
.cfa-sync-hour{white-space:nowrap;flex:0 0 auto}
@media(max-width:390px){
 .cfa-sync-status{padding:8px 8px}
 .cfa-sync-status [role="status"]{font-size:10px}
 .cfa-sync-one-line{letter-spacing:-.25px}
}
@media(max-width:350px){
 .cfa-sync-status [role="status"]{font-size:9px}
}


/* CFA 14-11: distribución de sincronización en dos líneas con nombres completos. */
.cfa-sync-status{padding:10px 15px;margin-bottom:12px}
.cfa-sync-status>div{overflow:visible}
.cfa-sync-status [role="status"]{font-size:12px;line-height:1.45;white-space:normal}
.cfa-sync-two-rows{display:grid;gap:3px;min-width:0;width:100%;color:#816b55}
.cfa-sync-metrics-row{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;white-space:nowrap}
.cfa-sync-metrics-text{min-width:0;white-space:nowrap}
.cfa-sync-hour-inline{font-size:12px;flex:0 0 auto;font-variant-numeric:tabular-nums;color:#a0805d;border-left:1px solid #e0cdb7;padding-left:10px}
.cfa-sync-metrics-bottom{justify-content:flex-start;gap:0}
.cfa-sync-metrics-bottom .cfa-sync-incidents-button{font-size:inherit;line-height:inherit;white-space:nowrap}
@media(max-width:390px){
 .cfa-sync-status{padding:9px 12px}
 .cfa-sync-status [role="status"]{font-size:11.5px}
 .cfa-sync-hour-inline{font-size:11.5px;padding-left:8px}
}
@media(max-width:330px){
 .cfa-sync-status [role="status"]{font-size:11px}
 .cfa-sync-hour-inline{font-size:11px}
}


/* CFA 14-11: una sola línea fina, textos completos, reloj al extremo derecho. */
.cfa-sync-status{
  padding:7px 10px;
  margin-bottom:10px;
  min-height:0;
  border-radius:12px;
}
.cfa-sync-status>div{width:100%;min-width:0;overflow:visible}
.cfa-sync-status [role="status"]{
  display:block;
  font-size:clamp(9.3px,2.7vw,11px);
  line-height:1.3;
  white-space:nowrap;
  letter-spacing:-.12px;
}
.cfa-sync-thin-row{
  width:100%;
  display:flex;
  gap:5px;
  align-items:center;
  justify-content:space-between;
  white-space:nowrap;
  min-width:0;
}
.cfa-sync-thin-counters{
  min-width:0;
  display:flex;
  align-items:center;
  gap:clamp(3px,.9vw,6px);
  white-space:nowrap;
}
.cfa-sync-thin-item{white-space:nowrap;flex:0 0 auto}
.cfa-sync-thin-item:not(:first-child)::before{
  content:"·";
  color:#b6a186;
  padding-right:clamp(3px,.9vw,6px);
  font-weight:400;
}
.cfa-sync-thin-time{
  display:inline-block;
  white-space:nowrap;
  flex:0 0 auto;
  color:#a0805d;
  font-size:inherit;
  font-variant-numeric:tabular-nums;
  border-left:1px solid #e3d1b8;
  padding-left:5px;
}
.cfa-sync-thin-item .cfa-sync-incidents-button{
  font-size:inherit;
  padding:0;
  line-height:inherit;
}
@media(max-width:370px){
 .cfa-sync-status{padding:7px 6px}
 .cfa-sync-status [role="status"]{font-size:9.3px;letter-spacing:-.2px}
 .cfa-sync-thin-row{gap:3px}
 .cfa-sync-thin-counters{gap:3px}
 .cfa-sync-thin-item:not(:first-child)::before{padding-right:3px}
 .cfa-sync-thin-time{padding-left:3px}
}


/* Panel 3.0: variante 8 con iconos de variante 9, controles reales */
.cfa-sync-status{
  display:block;
  background:linear-gradient(145deg,#fffcf7,#fff7ed);
  border:1px solid #e6d7c3;
  border-radius:19px;
  padding:14px 16px 15px;
  margin:0 0 14px;
  box-shadow:0 5px 17px #6d4a2910;
  color:#4c3320;
}
.cfa-sync-status>div{width:100%;min-width:0;overflow:visible}
.cfa-sync-visual{width:100%;display:grid;gap:13px}
.cfa-sync-visual-head{display:flex;align-items:center;justify-content:space-between}
.cfa-sync-visual-state{display:flex;align-items:center;gap:9px;min-width:0}
.cfa-sync-visual-state strong{font-size:14px;line-height:1.3;color:#38261a;font-weight:750}
.cfa-sync-visual-dot{height:10px;width:10px;flex:0 0 10px;border-radius:50%;background:#29b532;box-shadow:0 0 0 3px #dff2dc}
.cfa-sync-visual-dot.busy{background:#c59124;box-shadow:0 0 0 3px #f6e7c6}
.cfa-sync-visual-dot.error{background:#ce5141;box-shadow:0 0 0 3px #f9ddd8}
.cfa-sync-visual-dot.pending{background:#a39a89;box-shadow:0 0 0 3px #eee7dc}
.cfa-sync-visual-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) auto;gap:7px;align-items:stretch;min-width:0}
.cfa-sync-metric-button{
  min-width:0;display:flex;align-items:center;justify-content:center;gap:5px;
  padding:10px 5px;border:1px solid;border-radius:13px;background:#fff;
  cursor:pointer;font-size:12px;font-weight:650;white-space:nowrap;
  transition:filter .15s,transform .15s;line-height:1.15
}
.cfa-sync-metric-button svg{width:17px;height:17px;flex:0 0 17px}
.cfa-sync-metric-value{font-size:16px;font-weight:800;line-height:1;color:inherit;font-variant-numeric:tabular-nums}
.cfa-sync-metric-name{font-size:11px;font-weight:650;color:#4d3625;min-width:0}
.cfa-sync-metric-new{border-color:#a9d49f;background:#f0f9ed;color:#1e8d2b}
.cfa-sync-metric-updated{border-color:#aacbe9;background:#eef6ff;color:#156bc5}
.cfa-sync-metric-cancelled{border-color:#edb4a7;background:#fff1ee;color:#bf3c2a}
.cfa-sync-metric-incidents{border-color:#ebb463;background:#fff6e7;color:#ba7814}
.cfa-sync-visual-clock{
  display:flex;align-items:center;justify-content:center;gap:5px;
  border:0;border-left:1px solid #decab4;background:transparent;color:#79502e;
  padding:6px 0 6px 11px;cursor:pointer;white-space:nowrap;font-weight:750;font-size:12px
}
.cfa-sync-visual-clock svg{width:18px;height:18px;flex:0 0 18px}
.cfa-sync-visual-clock time{font-variant-numeric:tabular-nums}
.cfa-sync-metric-button:active,.cfa-sync-visual-clock:active{transform:scale(.98)}
.cfa-sync-metric-button:hover{filter:saturate(1.18)}
.cfa-sync-metric-button:focus-visible,.cfa-sync-visual-clock:focus-visible{outline:2px solid #8c6239;outline-offset:2px}
.cfa-sync-visual-error{font-size:12px;color:#a24935;line-height:1.5;margin:0}
.cfa-sync-metric-dialog-body{display:grid;gap:10px;margin:16px 0 0}
.cfa-sync-metric-message{font-size:14px;line-height:1.6;margin:0;background:#f6ecdf;padding:14px;border-radius:12px;color:#725537}
.cfa-sync-metric-record{background:#fff8ee;border:1px solid #e7d9c5;border-radius:13px;padding:12px;display:grid;gap:8px}
.cfa-sync-metric-record>strong{font-size:14px;color:#5e3d28}
.cfa-sync-metric-detail-line{display:flex;justify-content:space-between;gap:10px;align-items:start;font-size:13px;line-height:1.4;border-bottom:1px solid #ede0cf;padding:4px 0}
.cfa-sync-metric-detail-line:last-child{border:0}
.cfa-sync-metric-detail-line>span{color:#826c56;flex:0 0 36%}
.cfa-sync-metric-detail-line>strong{font-weight:700;color:#4d3523;overflow-wrap:anywhere;text-align:right}
.cfa-sync-metric-recheck{margin-top:8px;background:#80532b;color:#fff;border:0;border-radius:12px;padding:12px;cursor:pointer;font-size:14px;font-weight:700}
@media(max-width:750px){
 .cfa-sync-status{padding:11px 12px 13px;border-radius:17px;margin-bottom:12px}
 .cfa-sync-visual{gap:10px}
 .cfa-sync-visual-head{padding-right:90px;min-height:25px}
 .cfa-sync-visual-state strong{font-size:13px}
 .cfa-sync-visual-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;position:relative}
 .cfa-sync-metric-button{min-height:43px;padding:9px 8px;gap:6px}
 .cfa-sync-metric-button svg{width:17px;height:17px}
 .cfa-sync-metric-value{font-size:16px}
 .cfa-sync-metric-name{font-size:12px}
 .cfa-sync-visual-clock{position:absolute;right:0;bottom:calc(100% + 10px);height:25px;padding:0 0 0 8px;font-size:12px}
}
@media(max-width:360px){
 .cfa-sync-status{padding:10px}
 .cfa-sync-metric-button{gap:4px;padding:8px 5px}
 .cfa-sync-metric-name{font-size:11px}
 .cfa-sync-visual-clock{font-size:11px}
 .cfa-sync-visual-state strong{font-size:12px}
}
@media(prefers-reduced-motion:reduce){
 .cfa-sync-metric-button{transition:none}
}


/* CFA 14-11: cinco controles en una sola fila también en móvil. */
@media (max-width:750px){
  .cfa-sync-status{
    padding:9px 9px 10px;
    margin-bottom:11px;
    border-radius:15px;
  }
  .cfa-sync-visual{gap:8px}
  .cfa-sync-visual-head{
    padding-right:0;
    min-height:0;
  }
  .cfa-sync-visual-state{gap:7px}
  .cfa-sync-visual-state strong{font-size:12px}
  .cfa-sync-visual-dot{width:8px;height:8px;flex-basis:8px}
  .cfa-sync-visual-metrics{
    display:grid;
    grid-template-columns:minmax(0,.93fr) minmax(0,1.23fr) minmax(0,1.15fr) minmax(0,1.14fr) minmax(0,.76fr);
    gap:4px;
    position:static;
    align-items:stretch;
  }
  .cfa-sync-metric-button{
    min-width:0;
    min-height:46px;
    display:grid;
    grid-template-columns:14px auto;
    grid-template-rows:16px 13px;
    align-content:center;
    justify-content:center;
    justify-items:center;
    column-gap:3px;
    row-gap:1px;
    padding:5px 1px 4px;
    border-radius:10px;
    white-space:nowrap;
    overflow:hidden;
  }
  .cfa-sync-metric-button svg{
    grid-column:1;
    grid-row:1;
    width:14px;
    height:14px;
    flex:none;
  }
  .cfa-sync-metric-value{
    grid-column:2;
    grid-row:1;
    font-size:14px;
    line-height:1;
    align-self:center;
  }
  .cfa-sync-metric-name{
    grid-column:1 / -1;
    grid-row:2;
    font-size:clamp(8.8px,2.5vw,11px);
    line-height:1.15;
    letter-spacing:-.12px;
    white-space:nowrap;
    text-align:center;
    overflow:visible;
  }
  .cfa-sync-visual-clock{
    position:static;
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:2px;
    align-items:center;
    justify-content:center;
    padding:3px 0 3px 3px;
    border-left:1px solid #decab4;
    font-size:10px;
    height:auto;
    min-height:46px;
    white-space:nowrap;
  }
  .cfa-sync-visual-clock svg{
    width:15px;
    height:15px;
    flex:none;
  }
  .cfa-sync-visual-clock time{
    font-size:10px;
    line-height:1.1;
  }
}
@media (min-width:521px) and (max-width:750px){
  .cfa-sync-status{padding:11px 14px}
  .cfa-sync-metric-button{
    display:flex;
    min-height:44px;
    gap:4px;
    padding:7px 3px;
  }
  .cfa-sync-metric-button svg{width:16px;height:16px}
  .cfa-sync-metric-value{font-size:15px}
  .cfa-sync-metric-name{font-size:11px}
  .cfa-sync-visual-clock{flex-direction:row;font-size:12px}
  .cfa-sync-visual-clock time{font-size:12px}
}
@media (max-width:350px){
  .cfa-sync-status{padding:8px 6px}
  .cfa-sync-visual-metrics{gap:3px}
  .cfa-sync-metric-button{grid-template-columns:12px auto;column-gap:2px;padding-left:0;padding-right:0}
  .cfa-sync-metric-button svg{width:12px;height:12px}
  .cfa-sync-metric-name{font-size:8.4px;letter-spacing:-.23px}
  .cfa-sync-visual-clock{padding-left:2px}
  .cfa-sync-visual-clock time{font-size:9px}
}


/* CFA ajuste solicitado: reloj en cabecera, cuatro botones a todo lo ancho. */
.cfa-sync-status{
  box-sizing:border-box;
  width:100%;
  max-width:none;
  margin-left:0;
  margin-right:0;
}
.cfa-sync-visual-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  min-width:0;
  padding-right:0;
}
.cfa-sync-visual-metrics{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  position:static;
  min-width:0;
}
.cfa-sync-visual-head .cfa-sync-visual-clock{
  display:inline-flex;
  flex-direction:row;
  align-items:center;
  justify-content:flex-end;
  gap:5px;
  position:static;
  inset:auto;
  min-height:0;
  height:auto;
  padding:2px 0 2px 9px;
  border:0;
  border-left:1px solid #decab4;
  background:transparent;
  color:#79502e;
  flex:0 0 auto;
  font-size:12px;
  white-space:nowrap;
}
.cfa-sync-visual-head .cfa-sync-visual-clock svg{
  width:16px;
  height:16px;
  flex:0 0 16px;
}
.cfa-sync-visual-head .cfa-sync-visual-clock time{
  font-size:12px;
  font-weight:750;
  line-height:1.2;
}
@media(max-width:750px){
  .cfa-sync-status{padding:11px 12px 12px}
  .cfa-sync-visual-head{padding-right:0;min-height:0}
  .cfa-sync-visual-metrics{
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:6px;
    position:static;
    align-items:stretch;
  }
  .cfa-sync-metric-button{
    width:100%;
    min-width:0;
    min-height:45px;
    padding:6px 2px 5px;
    justify-items:center;
  }
  .cfa-sync-metric-name{
    font-size:clamp(10px,2.65vw,12px);
    letter-spacing:-.13px;
  }
  .cfa-sync-visual-head .cfa-sync-visual-clock{
    position:static;
    inset:auto;
    height:auto;
    min-height:0;
    padding:1px 0 1px 8px;
    font-size:12px;
    flex-direction:row;
    gap:4px;
  }
  .cfa-sync-visual-head .cfa-sync-visual-clock svg{width:15px;height:15px;flex-basis:15px}
  .cfa-sync-visual-head .cfa-sync-visual-clock time{font-size:12px}
}
@media(max-width:350px){
  .cfa-sync-status{padding:10px 8px}
  .cfa-sync-visual-metrics{gap:4px}
  .cfa-sync-metric-button{padding:6px 0 5px}
  .cfa-sync-metric-name{font-size:9px;letter-spacing:-.25px}
  .cfa-sync-visual-head .cfa-sync-visual-clock time{font-size:11px}
}


/* Reloj justo al lado de "Sincronización activa", no al extremo derecho. */
.cfa-sync-visual-head{
  display:flex;
  align-items:center;
  justify-content:flex-start!important;
  gap:12px!important;
}
.cfa-sync-visual-head .cfa-sync-visual-clock{
  justify-content:flex-start!important;
  margin-left:0!important;
}
@media(max-width:750px){
  .cfa-sync-visual-head{
    justify-content:flex-start!important;
    gap:12px!important;
    padding-right:0!important;
  }
  .cfa-sync-visual-head .cfa-sync-visual-clock{
    margin-left:0!important;
    padding-left:9px!important;
  }
}
@media(max-width:360px){
  .cfa-sync-visual-head{gap:9px!important}
  .cfa-sync-visual-head .cfa-sync-visual-clock{padding-left:7px!important}
}

/* CFA — botón manual a la derecha, alineado con Incidencias; animación de sincronización */
.cfa-sync-visual-head{
  display:grid!important;
  grid-template-columns:max-content max-content minmax(0,1fr);
  align-items:center;
  justify-content:stretch!important;
  gap:9px!important;
  width:100%;
  min-width:0;
  padding-right:0!important;
}
.cfa-sync-visual-head .cfa-sync-visual-state{min-width:0}
.cfa-sync-visual-head .cfa-sync-visual-clock{
  position:static;inset:auto;min-width:0;
  margin:0!important;justify-self:start;
  padding:2px 0 2px 9px!important;
}
.cfa-sync-visual-head .cfa-sync-refresh-now{
  display:flex;align-items:center;justify-content:center;gap:7px;
  width:100%;min-width:0;box-sizing:border-box;
  padding:10px 10px;
  border:1px solid #bed4b5;border-radius:13px;
  background:#eff7ec;color:#28783a;
  font-family:inherit;font-size:12px;font-weight:750;line-height:1.15;
  white-space:nowrap;cursor:pointer;
  transition:background-color .15s,border-color .15s,transform .15s;
}
.cfa-sync-visual-head .cfa-sync-refresh-now svg{width:17px;height:17px;flex:0 0 17px;transform-origin:center}
.cfa-sync-visual-head .cfa-sync-refresh-now:hover:not(:disabled){background:#e0f1dd}
.cfa-sync-visual-head .cfa-sync-refresh-now:active:not(:disabled){transform:scale(.985)}
.cfa-sync-visual-head .cfa-sync-refresh-now:focus-visible{outline:2px solid #598f57;outline-offset:2px}
.cfa-sync-visual-head .cfa-sync-refresh-now:disabled{cursor:wait}
.cfa-sync-visual-head .cfa-sync-refresh-now.is-busy{
  background:#fff3df;border-color:#dfb36d;color:#a66d16;
}
.cfa-sync-visual-head .cfa-sync-refresh-now.is-busy svg{
  animation:cfaSyncRotate .9s linear infinite;
}
@keyframes cfaSyncRotate{to{transform:rotate(360deg)}}
@media(max-width:560px){
  .cfa-sync-visual-head{gap:7px!important}
  .cfa-sync-visual-head .cfa-sync-visual-state{gap:6px}
  .cfa-sync-visual-head .cfa-sync-visual-state strong{font-size:12px}
  .cfa-sync-visual-head .cfa-sync-refresh-now{padding:8px 6px;font-size:11px;gap:4px}
  .cfa-sync-visual-head .cfa-sync-refresh-now svg{width:14px;height:14px;flex-basis:14px}
}
@media(max-width:430px){
  .cfa-sync-visual-head{gap:5px!important}
  .cfa-sync-visual-head .cfa-sync-visual-state strong{font-size:11.5px;letter-spacing:-.2px}
  .cfa-sync-visual-head .cfa-sync-visual-clock{gap:3px;padding-left:6px!important}
  .cfa-sync-visual-head .cfa-sync-visual-clock svg{width:14px;height:14px;flex-basis:14px}
  .cfa-sync-visual-head .cfa-sync-visual-clock time{font-size:11px}
  .cfa-sync-visual-head .cfa-sync-refresh-now{font-size:10.5px;padding:8px 4px;gap:3px}
  .cfa-sync-visual-head .cfa-sync-refresh-now svg{width:13px;height:13px;flex-basis:13px}
}
@media(max-width:360px){
  .cfa-sync-visual-head{gap:4px!important}
  .cfa-sync-visual-head .cfa-sync-visual-state strong{font-size:10.5px}
  .cfa-sync-visual-head .cfa-sync-visual-dot{width:8px;height:8px;flex-basis:8px}
  .cfa-sync-visual-head .cfa-sync-refresh-now{font-size:9.5px;padding:7px 2px;gap:2px}
  .cfa-sync-visual-head .cfa-sync-refresh-now svg{width:12px;height:12px;flex-basis:12px}
}
@media(prefers-reduced-motion:reduce){
  .cfa-sync-visual-head .cfa-sync-refresh-now{transition:none}
  .cfa-sync-visual-head .cfa-sync-refresh-now.is-busy svg{animation:none}
}


/* Progreso comunicado por Apps Script; no se simulan etapas con temporizadores. */
.cfa-mail-flow{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0 5px}
.cfa-mail-step{font-size:11px;line-height:1.4;color:#8b7965;background:#f5eee3;border:1px solid #e5d8c6;border-radius:9px;padding:5px 8px}
.cfa-mail-step.done{color:#287146;background:#eef5e9;border-color:#c5d9ba}
.cfa-mail-step.busy{color:#995617;background:#fff0d9;border-color:#e6b878}
.cfa-mail-account{display:block;line-height:1.5;font-size:10px;color:#79664f;overflow-wrap:anywhere}


/* CFA 15-11 FIX MOBILE OVERFLOW SYNC GMAIL */
/* Constrain the intrinsic grid sizing introduced by Gmail progress details. */
#cfaSyncStatus.cfa-sync-status{width:100%;max-width:100%;min-width:0;box-sizing:border-box;overflow:hidden}
#cfaSyncStatus #cfaSyncSummary{width:100%;max-width:100%;min-width:0;display:block;box-sizing:border-box}
#cfaSyncStatus .cfa-sync-visual{width:100%;max-width:100%;min-width:0;box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr)}
#cfaSyncStatus .cfa-sync-visual>*{min-width:0;max-width:100%;box-sizing:border-box}
#cfaSyncStatus .cfa-mail-flow{display:flex;flex-wrap:wrap;gap:5px;max-width:100%;min-width:0;overflow-wrap:anywhere;margin:6px 0}
#cfaSyncStatus .cfa-mail-step{display:inline-flex;max-width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere;font-size:10px;line-height:1.35;padding:4px 7px}
#cfaSyncStatus .cfa-mail-account,#cfaSyncStatus .cfa-sync-visual-error{max-width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere;word-break:normal}
#cfaSyncStatus .cfa-sync-visual-metrics{width:100%;max-width:100%;min-width:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
#cfaSyncStatus .cfa-sync-metric-button{width:100%;max-width:100%;min-width:0;box-sizing:border-box;overflow:hidden}
#cfaSyncStatus .cfa-sync-metric-name{max-width:100%;min-width:0;text-align:center;white-space:normal;overflow-wrap:anywhere}
@media(max-width:750px){
 #cfaSyncStatus.cfa-sync-status{padding:10px 12px 12px;margin-left:0;margin-right:0}
 #cfaSyncStatus .cfa-sync-visual-head{display:grid!important;grid-template-columns:minmax(0,1fr) max-content minmax(0,1.22fr)!important;gap:6px!important;width:100%;max-width:100%;min-width:0;align-items:center}
 #cfaSyncStatus .cfa-sync-visual-state{min-width:0;max-width:100%;gap:5px}
 #cfaSyncStatus .cfa-sync-visual-state strong{font-size:clamp(10px,2.7vw,13px);line-height:1.15;white-space:normal;overflow-wrap:normal}
 #cfaSyncStatus .cfa-sync-visual-head .cfa-sync-visual-clock{min-width:0;gap:3px;padding-left:5px!important}
 #cfaSyncStatus .cfa-sync-visual-head .cfa-sync-visual-clock svg{width:13px;height:13px;flex-basis:13px}
 #cfaSyncStatus .cfa-sync-visual-head .cfa-sync-visual-clock time{font-size:clamp(10px,2.7vw,12px)}
 #cfaSyncStatus .cfa-sync-visual-head .cfa-sync-refresh-now{width:100%;min-width:0;white-space:normal;font-size:clamp(10px,2.65vw,12px);line-height:1.1;padding:8px 4px;gap:3px}
 #cfaSyncStatus .cfa-sync-visual-head .cfa-sync-refresh-now svg{flex:0 0 13px;width:13px;height:13px}
 #cfaSyncStatus .cfa-sync-metric-button{min-height:47px;padding:6px 2px 5px;display:grid;grid-template-columns:14px minmax(0,max-content);grid-template-rows:17px auto;align-content:center;justify-content:center;justify-items:center;gap:1px 3px;white-space:normal}
 #cfaSyncStatus .cfa-sync-metric-button svg{width:14px;height:14px}
 #cfaSyncStatus .cfa-sync-metric-value{font-size:15px}
 #cfaSyncStatus .cfa-sync-metric-name{font-size:clamp(9px,2.35vw,11px);line-height:1.12;letter-spacing:-.2px}
}
@media(max-width:370px){
 #cfaSyncStatus .cfa-sync-visual-head{grid-template-columns:minmax(0,1fr) max-content minmax(0,1.13fr)!important;gap:4px!important}
 #cfaSyncStatus .cfa-sync-visual-metrics{gap:4px}
 #cfaSyncStatus .cfa-sync-metric-name{font-size:9px}
 #cfaSyncStatus.cfa-sync-status{padding:9px 8px 10px}
}


/* CFA 15-11: compact status row */
#cfaSyncStatus.cfa-sync-status{padding:10px 12px;margin-bottom:10px}
#cfaSyncStatus .cfa-sync-visual{gap:8px}
#cfaSyncStatus .cfa-mail-flow{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;width:100%;margin:0;overflow:visible}
#cfaSyncStatus .cfa-mail-step{display:flex;align-items:center;justify-content:center;min-width:0;max-width:100%;white-space:nowrap;overflow-wrap:normal;font-size:clamp(9px,2.5vw,11px);line-height:1.2;padding:5px 2px;border-radius:8px;letter-spacing:-.15px}
@media(max-width:370px){#cfaSyncStatus.cfa-sync-status{padding:9px 8px}#cfaSyncStatus .cfa-mail-flow{gap:3px}#cfaSyncStatus .cfa-mail-step{font-size:9px;padding:5px 1px}}

/* CFA 17-11: SYNC_BUSY informativo, no error rojo. */
#cfaSyncStatus .cfa-sync-visual-notice{margin:0;color:#89612b;background:#fff6e4;border:1px solid #ead3a4;border-radius:10px;padding:7px 10px;font-size:12px;line-height:1.45}


/* Aviso premium: reserva confirmada pendiente de consulta */
.cfa-sync-visual .cfa-new-booking-alert{
  position:relative;display:flex;align-items:center;gap:12px;box-sizing:border-box;
  width:100%;min-height:74px;margin:12px 0 7px;padding:14px 15px;
  border:1.5px solid #c63936;border-radius:15px;cursor:pointer;text-align:left;
  background:linear-gradient(116deg,#fff2f0 0%,#fffafa 52%,#ffe6e3 100%);
  color:#962827;box-shadow:0 4px 14px rgba(159,37,32,.13),inset 0 1px 0 rgba(255,255,255,.9);
  animation:cfa-booking-glow 2.2s ease-in-out infinite;
}
.cfa-sync-visual .cfa-new-booking-alert:hover{border-color:#b52324;transform:translateY(-1px)}
.cfa-sync-visual .cfa-new-booking-alert:focus-visible{outline:3px solid #d8453b;outline-offset:3px}
.cfa-new-booking-alert-icon{position:relative;display:grid;place-items:center;flex:0 0 45px;height:45px;border-radius:12px;background:linear-gradient(160deg,#cb4442,#9c1f23);color:#fff;box-shadow:0 3px 9px rgba(155,24,27,.24)}
.cfa-new-booking-alert-icon i{position:absolute;top:-4px;right:-4px;width:11px;height:11px;border-radius:50%;background:#f44737;border:2px solid #fff;animation:cfa-booking-dot 1.25s ease-in-out infinite}
.cfa-new-booking-alert-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px}
.cfa-new-booking-alert-copy strong{font:700 clamp(16px,3.7vw,21px)/1.15 Georgia,serif;color:#932927}
.cfa-new-booking-alert-copy small{font:600 11px/1.35 system-ui,sans-serif;color:#8c5750;overflow-wrap:anywhere}
.cfa-new-booking-alert-open{display:flex;align-items:center;justify-content:center;gap:4px;flex-shrink:0;font:750 12px/1.3 system-ui,sans-serif;color:#aa302d;white-space:nowrap}
.cfa-new-booking-alert:disabled{opacity:.72;cursor:wait;animation:none}
@keyframes cfa-booking-glow{0%,100%{box-shadow:0 4px 14px rgba(159,37,32,.11),inset 0 1px 0 rgba(255,255,255,.9)}50%{box-shadow:0 5px 22px rgba(225,40,37,.35),0 0 0 3px rgba(226,43,38,.09)}}
@keyframes cfa-booking-dot{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.25;transform:scale(.72)}}
@media(max-width:500px){.cfa-sync-visual .cfa-new-booking-alert{padding:11px 12px;gap:9px;min-height:70px}.cfa-new-booking-alert-icon{flex-basis:39px;height:39px}.cfa-new-booking-alert-copy small{font-size:10px}.cfa-new-booking-alert-open{font-size:11px}}
@media(prefers-reduced-motion:reduce){.cfa-sync-visual .cfa-new-booking-alert,.cfa-new-booking-alert-icon i{animation:none}}

/* CFA 18/11: indicadores de origen encima de Nueva reserva; aviso más compacto. */
#cfaSyncStatus .cfa-sync-visual .cfa-new-booking-alert{width:calc(100% - 16px);min-height:58px;margin:1px auto 3px;padding:9px 12px;gap:10px;border-radius:13px}
#cfaSyncStatus .cfa-new-booking-alert-icon{flex:0 0 36px;height:36px;border-radius:10px}
#cfaSyncStatus .cfa-new-booking-alert-icon svg{width:21px;height:21px}
#cfaSyncStatus .cfa-new-booking-alert-copy strong{font-size:clamp(16px,3.3vw,19px)}
#cfaSyncStatus .cfa-new-booking-alert-copy small{font-size:10px}
#cfaSyncStatus .cfa-mail-flow{margin:5px 0 4px}
@media(max-width:500px){#cfaSyncStatus .cfa-sync-visual .cfa-new-booking-alert{width:calc(100% - 10px);min-height:54px;padding:8px 10px;gap:8px}#cfaSyncStatus .cfa-new-booking-alert-icon{flex-basis:34px;height:34px}#cfaSyncStatus .cfa-new-booking-alert-copy strong{font-size:16px}#cfaSyncStatus .cfa-new-booking-alert-open{font-size:10px}}

.cfa-sync-issues-list .cfa-notice-meaning{margin:.45rem 0}.cfa-sync-issues-list details{margin:.5rem 0}.cfa-sync-issues-list details summary{cursor:pointer;font-weight:700;text-decoration:underline}.cfa-notice-original-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.45}

.cfa-notice-original{margin:.85rem 0}.cfa-notice-original-text{max-height:16rem;overflow:auto;overscroll-behavior:contain;padding:.65rem;margin:.45rem 0;background:rgba(124,79,41,.06);border-radius:.5rem}

.cfa-notice-reply label{display:block;margin:.65rem 0}.cfa-notice-reply textarea{display:block;width:100%;max-width:100%;box-sizing:border-box;margin-top:.35rem;padding:.65rem;border:1px solid var(--line,#d8cbb9);border-radius:.5rem;background:#fff;color:inherit;font:inherit;resize:vertical}.cfa-notice-reply a{display:inline-block;margin:.45rem 0}

.cfa-notice-reply [hidden]{display:none!important}.cfa-notice-mail-actions{margin:.65rem 0}.cfa-notice-mail-actions ul{list-style:none;margin:.35rem 0;padding:0;display:grid;gap:.4rem}.cfa-notice-mail-actions li{padding:.55rem .65rem;border-radius:.55rem;background:rgba(124,79,41,.08)}.cfa-notice-mail-actions a{font-weight:700}.cfa-notice-mail-actions small{display:block;margin-top:.15rem}

.cfa-notice-mail-actions .cfa-sync-metric-recheck{display:block;margin:.4rem 0 .15rem;padding:.45rem .8rem;border-radius:.6rem}.cfa-notice-mail-actions .cfa-sync-notice-reservation[hidden]{display:none!important}


/* Sincronización premium: naranja melocotón tenue, pulso suave sincronizable. */
#cfaSyncStatus .cfa-sync-visual-head .cfa-sync-refresh-now.is-busy:disabled{
  opacity:1;
  background:#f3d5ac;
  border-color:#d5ad7a;
  color:#6b4527;
  font-weight:800;
  box-shadow:0 0 0 2px rgba(174,115,47,.08);
  animation:cfaSyncOrangeBlink 1800ms ease-in-out infinite;
}
@keyframes cfaSyncOrangeBlink{
  0%,100%{
    background:#f0c596;
    border-color:#cfa878;
    color:#684526;
    box-shadow:0 0 0 2px rgba(180,126,65,.11);
  }
  50%{
    background:#fbecd9;
    border-color:#dfc7a8;
    color:#76543b;
    box-shadow:0 0 0 1px rgba(180,126,65,.04);
  }
}
@media(prefers-reduced-motion:reduce){
  #cfaSyncStatus .cfa-sync-visual-head .cfa-sync-refresh-now.is-busy:disabled{
    animation:none;
    background:#f3d5ac;
    color:#6b4527;
  }
}
.cfa-sync-tone-control{
  display:flex;
  justify-self:end;
  align-items:center;
  gap:5px;
  width:max-content;
  max-width:100%;
  padding:5px 9px;
  margin:-4px 0 -2px auto;
  border:1px solid #e6d9c4;
  border-radius:9px;
  background:#fbf8f1;
  color:#796650;
  font:600 11px/1.4 system-ui,sans-serif;
  cursor:pointer;
}
.cfa-sync-tone-control[aria-pressed="true"]{
  border-color:#cfddc6;
  color:#47714c;
  background:#f3f9f0;
}
.cfa-sync-tone-control:focus-visible{outline:2px solid #a3bd96;outline-offset:2px}

/* Avisos individuales: tarjetas claramente delimitadas, con aire entre ellas. */
#cfaSyncIncidentsDialog .cfa-sync-issues-list{
  display:grid;
  gap:25px;
  padding:9px 2px 12px;
}
#cfaSyncIncidentsDialog .cfa-sync-issues-list > article.cfa-sync-metric-record{
  min-width:0;
  display:grid;
  gap:12px;
  margin:0;
  padding:19px 17px 21px;
  border:1px solid #dcc9ae;
  border-left:5px solid #b78d5c;
  border-radius:17px;
  background:#fffdfa;
  box-shadow:0 5px 15px rgba(81,52,29,.12);
}
#cfaSyncIncidentsDialog .cfa-sync-issues-list > article.cfa-sync-metric-record:nth-of-type(even){
  border-left-color:#769b7e;
  background:#fafff9;
}
#cfaSyncIncidentsDialog .cfa-sync-issues-list > article.cfa-sync-metric-record > strong:first-child{
  display:block;
  font-size:16px;
  line-height:1.35;
  font-weight:800;
  padding:7px 10px 10px;
  border-bottom:1px solid #e7d9c5;
  border-radius:8px 8px 0 0;
  color:#5c3f29;
  background:#f8f1e6;
}
#cfaSyncIncidentsDialog .cfa-sync-issues-list > article.cfa-sync-metric-record:nth-of-type(even) > strong:first-child{
  background:#eef6ed;
  border-color:#d1e1d1;
}
#cfaSyncIncidentsDialog .cfa-sync-issues-list > article.cfa-sync-metric-record > .cfa-sync-metric-recheck{
  margin-top:9px;
}
@media(max-width:460px){
  #cfaSyncIncidentsDialog .cfa-sync-issues-list{gap:22px}
  #cfaSyncIncidentsDialog .cfa-sync-issues-list > article.cfa-sync-metric-record{
    padding:17px 14px 19px;
  }
}


/* Avisos: propuesta visible y editable; los borradores solo se guardan por decisión del administrador. */
.cfa-notice-reply[open]{border:1px solid #b8d0b2;border-radius:13px;background:#fbfdf8;padding:10px 12px;margin:11px 0}
.cfa-notice-reply>summary{cursor:pointer;color:#397148;font-size:13px;font-weight:850;line-height:1.5}
.cfa-notice-reply label{font-weight:750;color:#6a5038}
.cfa-notice-reply textarea{min-height:120px;line-height:1.55;font-size:13px;border-color:#cfbea4}
.cfa-notice-reply textarea:focus-visible{outline:2px solid #8db994;outline-offset:2px}
.cfa-notice-reply [role=status]{color:#6c795e;font-size:11px;line-height:1.45}

/* Progreso verde real por etapas, sin barras de movimiento ni parpadeos. */
#cfaSyncStatus .cfa-sync-visual-head .cfa-sync-refresh-now.is-busy,
#cfaSyncStatus .cfa-sync-visual-head .cfa-sync-refresh-now.is-busy:disabled{
 display:flex;
 flex-direction:column;
 justify-content:center;
 gap:5px;
 min-width:0;
 padding:7px 10px;
 background:linear-gradient(135deg,#f2faef,#e9f5e7);
 border:1px solid #a9cda7;
 border-radius:14px;
 color:#2b7040;
 animation:none!important;
 opacity:1;
 box-shadow:inset 0 1px #fff,0 1px 3px rgba(46,108,55,.09);
 cursor:progress;
}
#cfaSyncStatus .cfa-sync-refresh-now.is-busy svg{animation:none!important;transform:none!important}
#cfaSyncStatus .cfa-sync-progress-label{
 font:750 11px/1.18 system-ui,sans-serif;
 white-space:nowrap;
 overflow:hidden;
 text-overflow:ellipsis;
 max-width:100%;
}
#cfaSyncStatus .cfa-sync-progress-track{
 display:block;
 height:9px;
 width:100%;
 min-width:0;
 overflow:hidden;
 border-radius:99px;
 background:#d5e6d1;
 border:1px solid #b4d1ae;
 box-shadow:inset 0 1px 2px rgba(22,78,40,.12);
}
#cfaSyncStatus .cfa-sync-progress-fill{
 display:block;
 width:0%;
 height:100%;
 border-radius:inherit;
 background:linear-gradient(90deg,#70c876,#299c51,#168244);
 box-shadow:0 0 5px rgba(22,130,68,.12);
 transition:width .35s ease;
}
#cfaSyncStatus .cfa-sync-progress-caption{
 font:650 10px/1.1 system-ui,sans-serif;
 color:#467a55;
}
@media(prefers-reduced-motion:reduce){
 #cfaSyncStatus .cfa-sync-progress-fill{transition:none}
}


/* Estado premium único: solo «Actualizando…» + dos flechas girando.
   La descripción de la etapa permanece exclusivamente a la izquierda. */
#cfaSyncStatus .cfa-sync-visual-head .cfa-sync-refresh-now.is-busy,
#cfaSyncStatus .cfa-sync-visual-head .cfa-sync-refresh-now.is-busy:disabled{
 display:flex;
 flex-direction:row;
 align-items:center;
 justify-content:center;
 gap:10px;
 padding:10px 14px;
 min-height:53px;
 border:1px solid #b4d1ae;
 border-radius:15px;
 background:linear-gradient(145deg,#f5fbf2,#e7f5e4);
 color:#2b7040;
 opacity:1;
 animation:none!important;
 box-shadow:inset 0 1px 0 #fff,0 2px 6px rgba(45,105,53,.10);
 cursor:progress;
}
#cfaSyncStatus .cfa-sync-refresh-now.is-busy .cfa-sync-rotating-arrows{
 width:21px;
 height:21px;
 min-width:21px;
 flex:none;
 display:inline-flex;
 align-items:center;
 justify-content:center;
 animation:cfaSyncArrowsRotate 1.7s linear infinite!important;
 transform-origin:center;
}
#cfaSyncStatus .cfa-sync-refresh-now.is-busy .cfa-sync-rotating-arrows svg{
 width:21px;
 height:21px;
 animation:none!important;
}
#cfaSyncStatus .cfa-sync-refresh-now.is-busy .cfa-sync-refresh-label{
 display:inline-block;
 font:750 13px/1.1 system-ui,sans-serif;
 color:#39794a;
 animation:cfaSyncLabelSoftBlink 1.7s ease-in-out infinite;
}
@keyframes cfaSyncArrowsRotate{
 from{transform:rotate(0deg)}
 to{transform:rotate(360deg)}
}
@keyframes cfaSyncLabelSoftBlink{
 0%,100%{opacity:1}
 50%{opacity:.56}
}
@media(prefers-reduced-motion:reduce){
 #cfaSyncStatus .cfa-sync-refresh-now.is-busy .cfa-sync-rotating-arrows,
 #cfaSyncStatus .cfa-sync-refresh-now.is-busy .cfa-sync-refresh-label{animation:none!important}
}


/* Barra verde premium restaurada bajo ÚNICAMENTE «Actualizando…» y flechas. */
#cfaSyncStatus .cfa-sync-visual-head .cfa-sync-refresh-now.is-busy,
#cfaSyncStatus .cfa-sync-visual-head .cfa-sync-refresh-now.is-busy:disabled{
 flex-direction:column;
 align-items:stretch;
 gap:7px;
 padding:9px 13px;
 min-height:62px;
}
#cfaSyncStatus .cfa-sync-progress-content{
 display:flex;
 flex-direction:row;
 align-items:center;
 justify-content:center;
 gap:10px;
 min-width:0;
}
#cfaSyncStatus .cfa-sync-refresh-now.is-busy .cfa-sync-progress-track{
 display:block;
 width:100%;
 height:5px;
 flex:none;
 border-radius:999px;
 overflow:hidden;
 background:#d5e6d1;
 border:1px solid #b4d1ae;
 box-shadow:inset 0 1px 2px rgba(22,78,40,.12);
}
#cfaSyncStatus .cfa-sync-refresh-now.is-busy .cfa-sync-progress-fill{
 display:block;
 height:100%;
 border-radius:inherit;
 background:linear-gradient(90deg,#70c876,#299c51,#168244);
 transition:width .35s ease;
}
@media(prefers-reduced-motion:reduce){
 #cfaSyncStatus .cfa-sync-refresh-now.is-busy .cfa-sync-progress-fill{transition:none}
}


/* Botón de sincronización: mismo tamaño en reposo y durante carga.
   El verde rellena EL MISMO botón, detrás de las flechas y «Actualizando…». */
#cfaSyncStatus .cfa-sync-visual-head .cfa-sync-refresh-now{
 position:relative;
 isolation:isolate;
 box-sizing:border-box;
 width:100%;
 height:34px;
 min-height:34px;
 max-height:34px;
 padding:4px 8px;
 border-radius:13px;
 overflow:hidden;
}
#cfaSyncStatus .cfa-sync-visual-head .cfa-sync-refresh-now.is-busy,
#cfaSyncStatus .cfa-sync-visual-head .cfa-sync-refresh-now.is-busy:disabled{
 position:relative;
 display:flex;
 flex-direction:row;
 justify-content:center;
 align-items:center;
 height:34px;
 min-height:34px;
 max-height:34px;
 width:100%;
 padding:4px 8px;
 gap:0;
 background:#eef7eb;
 border:1px solid #b3d2aa;
 box-shadow:inset 0 1px rgba(255,255,255,.85),0 2px 6px rgba(43,104,51,.09);
}
#cfaSyncStatus .cfa-sync-refresh-now.is-busy .cfa-sync-progress-track{
 position:absolute;
 inset:0;
 width:100%;
 height:100%;
 border:0;
 border-radius:inherit;
 background:#e4f2e1;
 box-shadow:none;
 z-index:0;
 overflow:hidden;
 pointer-events:none;
}
#cfaSyncStatus .cfa-sync-refresh-now.is-busy .cfa-sync-progress-fill{
 display:block;
 height:100%;
 width:0;
 border-radius:0;
 background:linear-gradient(90deg,#a8daa7 0%,#68bc7d 100%);
 transition:width .35s ease;
 box-shadow:inset 0 1px rgba(255,255,255,.4);
}
#cfaSyncStatus .cfa-sync-refresh-now.is-busy .cfa-sync-progress-content{
 position:relative;
 z-index:1;
 display:flex;
 align-items:center;
 justify-content:center;
 flex-direction:row;
 gap:8px;
 width:100%;
 pointer-events:none;
}
#cfaSyncStatus .cfa-sync-refresh-now.is-busy .cfa-sync-refresh-label{
 color:#245c36;
 font-weight:800;
 font-size:clamp(10px,2.6vw,13px);
 white-space:nowrap;
}
#cfaSyncStatus .cfa-sync-refresh-now.is-busy .cfa-sync-rotating-arrows,
#cfaSyncStatus .cfa-sync-refresh-now.is-busy .cfa-sync-rotating-arrows svg{
 width:17px;
 height:17px;
 min-width:17px;
}
@media(prefers-reduced-motion:reduce){
 #cfaSyncStatus .cfa-sync-refresh-now.is-busy .cfa-sync-progress-fill{transition:none}
}

/* Avisos: resumen compacto, detalles y acciones plegados por defecto. */
.cfa-sync-issues-list .cfa-notice-expanded{margin:11px 0 0;border:1px solid #d8cbb4;border-radius:11px;background:#faf6ed;overflow:hidden}
.cfa-sync-issues-list .cfa-notice-expanded>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px;font-size:13px;font-weight:800;color:#765332;list-style:none;text-decoration:none;cursor:pointer}
.cfa-sync-issues-list .cfa-notice-expanded>summary::-webkit-details-marker{display:none}
.cfa-sync-issues-list .cfa-notice-expanded>summary::after{content:'⌄';font-size:19px;line-height:1;color:#765332}
.cfa-sync-issues-list .cfa-notice-expanded[open]>summary::after{transform:rotate(180deg)}
.cfa-sync-issues-list .cfa-notice-expanded>summary:focus-visible{outline:2px solid #8db994;outline-offset:-3px}
.cfa-sync-issues-list .cfa-notice-expanded-body{padding:0 10px 10px;border-top:1px solid #e7ddca;min-width:0}
.cfa-sync-issues-list .cfa-notice-expanded:not([open])>.cfa-notice-expanded-body{display:none}
