/* Extension Sam-itech MCE - cartographie des rondes effectuées */
html.mce-android-field[data-mce-app-mode="field"][data-mce-app-section="rounds"][data-mce-native-round="true"] #mce-rounds-map-panel[data-mce-rounds-map="v2"] { display: block !important; }
#mce-rounds-map-panel {
  border: 1px solid #d7e3f2;
  box-shadow: 0 14px 34px rgba(8, 31, 63, 0.08);
}
#mce-rounds-map-panel .mce-rounds-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
#mce-rounds-map-panel .mce-rounds-toolbar strong {
  color: #0b2038;
}
#mce-rounds-map-panel .mce-rounds-toolbar small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-weight: 700;
}
#mce-rounds-map-panel .mce-rounds-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
#mce-rounds-map-panel .mce-rounds-search {
  min-width: 240px;
  max-width: 360px;
  border: 1px solid #d7e3f2;
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 750;
}
.mce-rounds-map-grid {
  display: grid;
  gap: 10px;
}
.mce-rounds-session-card {
  width: 100%;
  border: 1px solid #d7e3f2;
  border-radius: 10px;
  padding: 12px 14px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(130px, 1fr) minmax(120px, 0.8fr) minmax(150px, 1fr) auto;
  gap: 12px;
  align-items: center;
  text-align: left;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.mce-rounds-session-card:hover {
  transform: translateY(-1px);
  border-color: #087ee8;
  box-shadow: 0 10px 24px rgba(8, 126, 232, 0.12);
}
.mce-rounds-session-card strong {
  color: #0b2038;
  font-size: 13px;
}
.mce-rounds-session-card span,
.mce-rounds-session-card small {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}
.mce-rounds-session-card .mce-rounds-badge {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #087ee8;
  background: #e8f2ff;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.mce-native-round-clickable {
  cursor: pointer;
}
.mce-native-round-clickable:hover {
  background: #eef6ff !important;
}
.mce-round-map-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2, 14, 30, 0.72);
}
.mce-round-map-dialog {
  width: min(1180px, 98vw);
  height: min(820px, 94vh);
  display: grid;
  grid-template-rows: auto 1fr;
  background: #f4f7fb;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.35);
}
.mce-round-map-head {
  background: #071d36;
  color: #fff;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.mce-round-map-head h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: .01em;
}
.mce-round-map-head p {
  margin: 5px 0 0;
  color: #c7d7ef;
  font-weight: 750;
}
.mce-round-map-close {
  border: 0;
  border-radius: 10px;
  padding: 9px 12px;
  color: #071d36;
  background: #fff;
  font-weight: 900;
  cursor: pointer;
}
.mce-round-map-body {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 360px;
  gap: 14px;
  padding: 14px;
}
#mce-round-map-canvas {
  min-height: 520px;
  width: 100%;
  border: 1px solid #cdd9e8;
  border-radius: 14px;
  overflow: hidden;
  background: #dfe8f3;
}
.mce-round-map-side {
  min-height: 0;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 12px;
}
.mce-round-map-statbox,
.mce-round-map-points {
  border: 1px solid #d7e3f2;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}
.mce-round-map-statbox h3,
.mce-round-map-points h3 {
  margin: 0 0 10px;
  color: #0b2038;
  font-size: 14px;
}
.mce-round-map-statbox dl {
  margin: 0;
  display: grid;
  gap: 8px;
}
.mce-round-map-statbox div {
  display: grid;
  grid-template-columns: 115px minmax(0, 1fr);
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #edf2f7;
}
.mce-round-map-statbox div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.mce-round-map-statbox dt {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.mce-round-map-statbox dd {
  margin: 0;
  color: #0b2038;
  font-size: 12px;
  font-weight: 800;
  word-break: break-word;
}
.mce-round-map-points-list {
  display: grid;
  gap: 8px;
}
.mce-round-map-point {
  border: 1px solid #edf2f7;
  border-radius: 10px;
  padding: 9px;
  background: #f8fbff;
}
.mce-round-map-point strong {
  color: #0b2038;
  font-size: 12px;
}
.mce-round-map-point span {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 11px;
  font-weight: 750;
}
.mce-round-map-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.mce-round-map-links a,
.mce-round-map-links button {
  border: 1px solid #d7e3f2;
  border-radius: 9px;
  padding: 9px 10px;
  color: #0b2038;
  background: #fff;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}
.mce-map-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  color: #0b2038;
}
.mce-map-fallback strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}
.mce-map-fallback p {
  color: #64748b;
  line-height: 1.45;
}
.mce-round-map-popup strong { color: #0b2038; }
.mce-round-map-popup span { display: block; margin-top: 3px; color: #475569; }
@media (max-width: 980px) {
  .mce-rounds-session-card { grid-template-columns: 1fr; }
  .mce-round-map-dialog { height: 96vh; }
  .mce-round-map-body { grid-template-columns: 1fr; overflow: auto; }
  #mce-round-map-canvas { min-height: 390px; }
}

/* MCE_ROUND_POINT_ANNOTATIONS_V1_20260915 */

/* MCE 2026 — annotations des relevés GPS de ronde */
.mce-round-map-points-title{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:10px}
.mce-round-map-points-title h3{margin:0!important}.mce-round-map-points-title small{display:block;margin-top:3px;color:#64748b;font-weight:700;line-height:1.35}
.mce-round-map-point{position:relative}.mce-round-map-point.is-annotated{border-color:#bfdbfe;background:#eff6ff}
.mce-round-map-point-head{display:flex;justify-content:space-between;gap:8px;align-items:flex-start}.mce-round-point-note-badge{display:inline-flex!important;background:#dbeafe;color:#1d4ed8!important;border-radius:999px;padding:3px 7px;font-size:10px!important;font-weight:900!important;margin-top:0!important}
.mce-round-point-observation{margin:8px 0 0;color:#0f172a;font-size:12px;line-height:1.45;white-space:pre-wrap}
.mce-round-point-thumbs{display:flex;gap:6px;align-items:center;margin-top:8px;overflow-x:auto}.mce-round-point-thumbs a{display:block;flex:0 0 auto}.mce-round-point-thumbs img{width:58px;height:44px;object-fit:cover;border-radius:7px;border:1px solid #dbe4ef;display:block}.mce-round-point-thumbs>span{display:grid!important;place-items:center;width:44px;height:44px;border-radius:7px;background:#dbeafe;color:#1d4ed8!important;font-weight:900!important;margin:0!important}
.mce-round-point-annotate{width:100%;margin-top:9px;min-height:42px;border:1px solid #bfdbfe;border-radius:9px;background:#fff;color:#1d4ed8;font-weight:900;cursor:pointer}.mce-round-point-annotate:active{transform:translateY(1px)}
.mce-round-point-editor-overlay{position:fixed;inset:0;z-index:100100;background:rgba(2,14,30,.72);display:grid;place-items:center;padding:16px}
.mce-round-point-editor{width:min(620px,100%);max-height:min(780px,94vh);display:grid;grid-template-rows:auto minmax(0,1fr) auto;background:#f8fafc;border-radius:18px;overflow:hidden;box-shadow:0 28px 80px rgba(0,0,0,.38)}
.mce-round-point-editor>header{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;padding:16px 18px;background:#071d36;color:#fff}.mce-round-point-editor>header h3{margin:2px 0 0;font-size:20px}.mce-round-point-editor>header p{margin:5px 0 0;color:#c7d7ef;font-weight:700;font-size:12px}.mce-round-point-editor-kicker{font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.08em;color:#93c5fd}.mce-round-point-editor-close{border:0;border-radius:9px;background:#fff;color:#071d36;min-height:40px;padding:8px 11px;font-weight:900;cursor:pointer}
.mce-round-point-editor-body{overflow:auto;padding:16px 18px;display:grid;gap:16px}.mce-round-point-field{display:grid;gap:7px}.mce-round-point-field>span{font-weight:900;color:#0f172a}.mce-round-point-field small{font-weight:700;color:#64748b}.mce-round-point-field textarea{width:100%;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:11px;padding:12px;font:inherit;font-size:16px;line-height:1.45;resize:vertical;min-height:120px;background:#fff;color:#0f172a}.mce-round-point-field textarea:focus{outline:3px solid rgba(37,99,235,.15);border-color:#2563eb}
.mce-round-point-photo-actions{display:grid;gap:10px}.mce-round-point-photo-actions strong{display:block;color:#0f172a}.mce-round-point-photo-actions small{display:block;margin-top:3px;color:#64748b;font-weight:700}.mce-round-point-photo-buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px}.mce-round-point-photo-buttons button{min-height:48px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;color:#0f172a;font-weight:900;cursor:pointer}
.mce-round-selected-photos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.mce-round-photo-empty{grid-column:1/-1;margin:0;padding:12px;border:1px dashed #cbd5e1;border-radius:10px;color:#64748b;font-size:12px;text-align:center}.mce-round-photo-preview{position:relative;margin:0;aspect-ratio:4/3}.mce-round-photo-preview img{width:100%;height:100%;object-fit:cover;border-radius:9px;border:1px solid #dbe4ef}.mce-round-photo-preview button{position:absolute;top:5px;right:5px;width:28px;height:28px;border:0;border-radius:50%;background:rgba(15,23,42,.88);color:#fff;font-size:19px;line-height:1;cursor:pointer}
.mce-round-existing-photos{display:grid;gap:8px}.mce-round-existing-photos>strong{color:#0f172a}.mce-round-existing-photos>div{display:flex;gap:8px;overflow:auto}.mce-round-existing-photos img{width:88px;height:66px;object-fit:cover;border-radius:9px;border:1px solid #dbe4ef;display:block}
.mce-round-point-editor-message{min-height:20px;font-size:12px;font-weight:800}.mce-round-point-editor-message.info{color:#475569}.mce-round-point-editor-message.success{color:#15803d}.mce-round-point-editor-message.error{color:#b91c1c}
.mce-round-point-editor>footer{display:flex;gap:8px;justify-content:flex-end;padding:12px 18px;border-top:1px solid #e2e8f0;background:#fff}.mce-round-point-editor>footer button{min-height:46px;border-radius:10px;padding:9px 16px;font-weight:900;cursor:pointer}.mce-round-point-cancel{border:1px solid #cbd5e1;background:#fff;color:#334155}.mce-round-point-save{border:1px solid #1d4ed8;background:#2563eb;color:#fff}.mce-round-point-save:disabled{opacity:.55;cursor:wait}
.leaflet-control-layers-expanded{font-size:12px;font-weight:800}
@media(max-width:720px){.mce-round-map-modal{padding:0}.mce-round-map-dialog{width:100vw;height:100dvh;max-height:none;border-radius:0}.mce-round-map-body{padding:8px;gap:8px}.mce-round-point-editor-overlay{padding:0;align-items:end}.mce-round-point-editor{width:100%;max-height:92dvh;border-radius:18px 18px 0 0}.mce-round-point-editor-body{padding:14px}.mce-round-point-photo-buttons{grid-template-columns:1fr}.mce-round-selected-photos{grid-template-columns:repeat(2,minmax(0,1fr))}.mce-round-point-editor>footer{position:sticky;bottom:0}.mce-round-point-editor>footer button{flex:1}.mce-round-point-annotate{min-height:48px}}
/* MCE_ROUND_NATIVE_MAP_V2_20260919 — display only, no location acquisition. */
html[data-mce-agent="active"][data-mce-app-module="rounds"] #mce-rounds-map-panel[data-mce-rounds-map="v2"]{display:block!important;margin-top:18px}
#mce-rounds-map-panel[data-mce-rounds-map="v2"]{min-width:0;max-width:100%;box-sizing:border-box}
#mce-rounds-map-panel .mce-rounds-actions{min-width:0;max-width:100%}
#mce-rounds-map-panel .mce-rounds-search,#mce-rounds-map-panel .mce-rounds-filter{box-sizing:border-box;min-width:0;max-width:100%;min-height:46px;font:inherit;font-size:15px;border:1px solid #cbd8e5;border-radius:10px;padding:10px;background:#fff;color:#16334d}
#mce-rounds-map-panel .mce-rounds-search{width:280px}
#mce-rounds-map-panel .mce-rounds-more{width:100%;min-height:48px;margin-top:14px}
#mce-rounds-map-panel [hidden]{display:none!important}
.mce-rounds-session-card>*{min-width:0;overflow-wrap:anywhere}
.mce-rounds-open-map{margin-top:8px;color:#076caf!important;font-weight:800!important}
.mce-round-map-dialog{grid-template-rows:auto auto minmax(0,1fr);max-width:100%;box-sizing:border-box;overscroll-behavior:contain}
.mce-round-map-head>*{min-width:0}.mce-round-map-head h2,.mce-round-map-head p{overflow-wrap:anywhere}
.mce-round-map-head-actions{display:flex;flex-wrap:wrap;gap:8px;flex-shrink:0}
.mce-round-map-head-actions button,.mce-round-map-recenter{min-height:46px;border:1px solid #cbd8e5;border-radius:9px;padding:9px 12px;font:inherit;font-size:14px;font-weight:750;background:#fff;color:#12344d;cursor:pointer}
.mce-round-map-live{margin:0;padding:10px 16px;background:#e8f4f3;color:#075f66;font-size:14px;line-height:1.45;overflow-wrap:anywhere}
.mce-round-map-live.is-error{color:#932f22;background:#fff2ed}
.mce-round-map-main{min-width:0;min-height:0;display:flex;flex-direction:column}
.mce-round-map-body{overflow:auto;overscroll-behavior:contain;align-items:start}
#mce-round-map-canvas{height:clamp(280px,53vh,580px);min-height:280px;flex-shrink:0;box-sizing:border-box}
.mce-round-map-legend{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:10px;font-size:13px;color:#075f66}
.mce-round-map-legend span:nth-child(2){color:#16803d}.mce-round-map-recenter{margin-left:auto}
.mce-round-map-explanation,.mce-round-map-help{font-size:13px;line-height:1.5;color:#546a80;margin:10px 0}
.mce-round-map-side{max-height:100%;min-width:0}.mce-round-map-statbox div{grid-template-columns:minmax(100px,.8fr) minmax(0,1fr)}
.mce-round-map-points,.mce-round-map-statbox,.mce-round-map-partial{min-width:0;box-sizing:border-box}.mce-round-map-partial{padding:12px;background:#fff8e7;border:1px solid #dcc993;border-radius:12px;color:#604b15}
.mce-round-trace-list{padding:0;margin:0;list-style:none;display:grid;gap:8px}
.mce-round-trace-list button{width:100%;display:grid;gap:5px;text-align:left;min-height:48px;border:1px solid #d8e4e9;border-radius:9px;background:#f5fafb;padding:10px;color:#12344d;cursor:pointer;box-sizing:border-box;overflow-wrap:anywhere}
.mce-round-trace-list strong{font-size:13px}.mce-round-trace-list span{font-size:12px;line-height:1.4;color:#476479}
.mce-round-map-partial button,.mce-round-trace-more{min-height:46px;width:100%;margin-top:10px;padding:9px;border:1px solid #cbd8e5;border-radius:9px;background:#fff;color:#12344d;font:inherit;font-size:14px;cursor:pointer}
.mce-round-map-modal button:focus-visible,#mce-rounds-map-panel button:focus-visible{outline:3px solid #087ee8;outline-offset:3px}
.mce-round-map-modal .mce-map-fallback{box-sizing:border-box;align-content:center;display:block;height:auto;padding:28px 18px}
@media(max-width:980px){.mce-round-map-side{max-height:none;overflow:visible;margin-top:12px}.mce-round-map-main{min-height:0}.mce-round-map-body{display:block}}
@media(max-width:720px){.mce-round-map-head{flex-direction:column;padding:12px;gap:10px}.mce-round-map-head h2{font-size:20px}.mce-round-map-head p{font-size:13px;line-height:1.4}.mce-round-map-head-actions{width:100%;flex-wrap:nowrap}.mce-round-map-head-actions button{flex:1}.mce-round-map-live{padding:8px 12px;font-size:13px}.mce-round-map-legend{gap:8px}.mce-round-map-recenter{width:100%;margin:0}.mce-round-map-side{overflow:visible}.mce-round-map-points-title{flex-wrap:wrap}.mce-rounds-session-card{grid-template-columns:minmax(0,1fr);padding:12px}#mce-rounds-map-panel .mce-rounds-actions{width:100%}#mce-rounds-map-panel .mce-rounds-search,#mce-rounds-map-panel .mce-rounds-filter{width:100%}#mce-rounds-map-panel .mce-rounds-actions>button{min-height:46px;width:100%}.mce-round-map-statbox dt{font-size:12px}.mce-round-map-statbox dd{font-size:13px}.mce-round-map-point span{font-size:12px}}
