:root {
  --sapag: #002fb1;
  --sapag-dark: #001b6d;
  --ink: #132238;
  --muted: #697386;
  --line: #e1e6ef;
  --surface: #ffffff;
  --background: #f3f5f9;
  --shadow: 0 14px 40px rgba(17, 32, 63, 0.09);
  --radius: 18px;
}

* { box-sizing: border-box; scrollbar-width: thin; scrollbar-color: #94a5bd transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { min-height: 38px; border: 3px solid transparent; border-radius: 999px; background: #94a5bd; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background-color: #6f829e; }
*::-webkit-scrollbar-corner { background: transparent; }
[hidden] { display: none !important; }
html, body { min-height: 100%; }
body { margin: 0; overflow: hidden; color: var(--ink); background: var(--background); font-family: "Inter", -apple-system, "Segoe UI", sans-serif; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.app-header { height: 82px; padding: 0 26px; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 2px 14px rgba(16, 24, 40, 0.04); position: relative; z-index: 20; }
.brand { min-width: 250px; display: flex; align-items: center; gap: 15px; color: inherit; text-decoration: none; }
.brand img { width: 122px; height: 50px; object-fit: contain; }
.brand-divider { width: 1px; height: 36px; background: #dfe4ec; }
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { color: #15284b; font-size: 1rem; font-weight: 700; }

.toolbar { min-width: 0; display: flex; align-items: center; gap: 8px; }
.search-field { width: 225px; height: 42px; position: relative; flex: 0 0 auto; }
.search-field svg { width: 18px; position: absolute; left: 12px; top: 12px; fill: none; stroke: #697386; stroke-width: 2; pointer-events: none; }
.search-field input, .select-field select { width: 100%; height: 42px; border: 1px solid #d7dde7; border-radius: 10px; background: #f8fafc; color: var(--ink); outline: none; }
.search-field input { padding: 0 12px 0 38px; }
.select-field select { padding: 0 30px 0 11px; }
.search-field input:focus, .select-field select:focus { border-color: var(--sapag); box-shadow: 0 0 0 3px rgba(0, 47, 177, 0.1); }
.button { height: 42px; padding: 0 14px; border-radius: 10px; border: 1px solid transparent; font-size: 0.82rem; font-weight: 700; transition: 0.16s ease; }
.button:hover { transform: translateY(-1px); }
.button.secondary { color: #344054; background: #fff; border-color: #d7dde7; }
.button.primary { color: #fff; background: var(--sapag); box-shadow: 0 7px 18px rgba(0, 47, 177, 0.2); }

.workspace { height: calc(100vh - 82px); display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: 15px; padding: 15px; }
.map-card, .analysis-card { min-width: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.map-card { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.map-heading { min-height: 86px; padding: 16px 19px 14px 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #e8ebf1; }
.breadcrumb { min-height: 17px; display: flex; gap: 6px; color: var(--sapag); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }
.breadcrumb button { padding: 0; border: 0; color: inherit; background: transparent; font: inherit; text-transform: inherit; }
.map-heading h1 { margin: 2px 0 2px; color: #16253e; font-size: 1.4rem; letter-spacing: -0.03em; }
.map-heading p { margin: 0; color: var(--muted); font-size: 0.875rem; }
.mode-switch { padding: 4px; display: flex; flex: 0 0 auto; gap: 3px; border: 1px solid #dce2eb; border-radius: 11px; background: #f8fafc; }
.mode { padding: 9px 12px; border: 0; border-radius: 8px; color: #647085; background: transparent; font-size: 0.76rem; font-weight: 750; }
.mode.active { color: #fff; background: var(--sapag); box-shadow: 0 4px 10px rgba(0, 47, 177, 0.2); }
.global-analysis-button { margin-left: 5px; color: #172a49; border: 1px solid #d99b24; border-radius: 8px; background: #f3bd50; box-shadow: 0 4px 12px rgba(202,139,18,.2); }
.global-analysis-button:hover { color: #10234a; background: #e4a92f; }

.map-stage { min-height: 0; position: relative; overflow: hidden; background: radial-gradient(circle at 50% 47%, #f8fbff 0 32%, #edf3fb 62%, #e5ebf4 100%); }
.map-stage::before { content: ""; position: absolute; inset: 0; opacity: 0.34; background-image: linear-gradient(rgba(0,47,177,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(0,47,177,.055) 1px, transparent 1px); background-size: 42px 42px; pointer-events: none; }
#mapSvg { width: 100%; height: 100%; display: block; position: relative; z-index: 1; touch-action: none; }
.map-stage.regions-view #mapSvg { cursor: grab; }
.map-stage.regions-view #mapSvg:active { cursor: grabbing; }
.map-stage.relief-enabled::before { opacity: 0; }
.map-tiles { pointer-events: none; }
.map-tiles image { opacity: .72; }
.map-stage.relief-enabled .region { fill-opacity: .09; }
.map-stage.relief-enabled .country.selected { fill-opacity: .05; }
.map-stage.relief-enabled .city-labels { opacity: .82; }
.sphere { fill: #bdd6eb; stroke: #6e89a7; stroke-width: 1.6; filter: drop-shadow(0 22px 28px rgba(0, 35, 110, 0.18)); }
.graticule { fill: none; stroke: #fff; stroke-width: 0.65; stroke-opacity: 0.58; pointer-events: none; }
.country, .region { stroke: #8796aa; stroke-width: 0.82; vector-effect: non-scaling-stroke; cursor: pointer; transition: fill 0.15s ease, opacity 0.15s ease; }
.country:hover, .region:hover { stroke: #001b6d; stroke-width: 1.5; filter: brightness(0.94); }
.country.selected, .region.selected { stroke: #00134c; stroke-width: 2.4; filter: drop-shadow(0 2px 3px rgba(0, 18, 75, .35)); }
.region-outline { fill: none; stroke: #001b6d; stroke-width: 1.2; pointer-events: none; }
.continent-outline { fill: none; stroke: #4e6078; stroke-width: 1.05; vector-effect: non-scaling-stroke; pointer-events: none; }
.country-labels { pointer-events: none; }
.country-label { text-anchor: middle; paint-order: stroke; stroke: rgba(255,255,255,.9); stroke-width: 2.5px; stroke-linejoin: round; }
.country-label-name { fill: #12233d; font-size: 9px; font-weight: 750; }
.region-labels { pointer-events: none; }
.region-labels rect { fill: rgba(0,47,177,.9); stroke: #fff; stroke-width: 1.2px; vector-effect: non-scaling-stroke; filter: drop-shadow(0 1px 2px rgba(0,22,88,.22)); }
.region-labels text { fill: #fff; text-anchor: middle; font-size: 8.5px; font-weight: 800; letter-spacing: .1px; }
.city-labels { pointer-events: none; }
.city-labels circle { fill: #111827; stroke: #fff; stroke-width: 1.2px; }
.city-labels text { fill: #475569; paint-order: stroke; stroke: rgba(255,255,255,.98); stroke-width: 3px; stroke-linejoin: round; font-size: 7.5px; font-weight: 650; }
.client-point { fill: #111827; stroke: #fff; stroke-width: 1.7px; cursor: pointer; vector-effect: non-scaling-stroke; filter: drop-shadow(0 1px 2px rgba(0,0,0,.3)); }
.client-point:hover, .client-point:focus { r: 6px; fill: #000; stroke: #f4b432; stroke-width: 2.4px; outline: none; }
.client-map-status { position: absolute; z-index: 6; right: 68px; bottom: 18px; min-height: 34px; padding: 0 11px; display: flex; align-items: center; border: 1px solid #d7dee9; border-radius: 9px; color: #34445f; background: rgba(255,255,255,.96); box-shadow: 0 7px 20px rgba(16,24,40,.09); font-size: .63rem; font-weight: 750; }

.map-loader, .map-error { position: absolute; inset: 0; z-index: 8; display: flex; align-items: center; justify-content: center; gap: 10px; color: #44516a; background: #eef3fa; font-size: 0.88rem; }
.map-loader span { width: 18px; height: 18px; border: 2px solid #c9d6e8; border-top-color: var(--sapag); border-radius: 50%; animation: spin 0.8s linear infinite; }
.map-error { color: #9c2e2e; }
@keyframes spin { to { transform: rotate(360deg); } }

.map-controls { position: absolute; z-index: 6; top: 18px; right: 18px; display: grid; gap: 6px; }
.map-controls button { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid #d7dee9; border-radius: 10px; color: var(--sapag); background: rgba(255,255,255,.96); box-shadow: 0 7px 20px rgba(16,24,40,.09); font-size: 1.3rem; font-weight: 700; }
.map-controls button:hover { background: #eef3ff; }
.map-controls .terrain-toggle.active { color: #fff; background: var(--sapag); border-color: var(--sapag); }
.map-controls svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.tile-attribution { position: absolute; z-index: 7; right: 66px; bottom: 4px; padding: 3px 6px; border-radius: 5px; color: #4b5563; background: rgba(255,255,255,.88); font-size: .55rem; }
.tile-attribution a { color: inherit; }

.modal-card.audit-modal-card { width: min(1180px, calc(100vw - 34px)); }
.audit-toolbar { display: grid; grid-template-columns: minmax(260px, 1fr) 260px auto; gap: 9px; }
.audit-toolbar input, .audit-toolbar select { height: 42px; padding: 0 12px; border: 1px solid #d7dde7; border-radius: 9px; color: var(--ink); background: #fff; outline: none; }
.audit-toolbar input:focus, .audit-toolbar select:focus { border-color: var(--sapag); box-shadow: 0 0 0 3px rgba(0,47,177,.1); }
.audit-summary { margin: 12px 0 8px; color: var(--muted); font-size: .72rem; font-weight: 650; }
.audit-list { max-height: min(620px, calc(100vh - 260px)); overflow: auto; border: 1px solid #e1e6ef; border-radius: 12px; }
.audit-head, .audit-row { min-width: 850px; display: grid; grid-template-columns: 155px 190px 190px minmax(290px,1fr); gap: 12px; align-items: start; }
.audit-head { position: sticky; top: 0; z-index: 2; padding: 10px 12px; color: #526176; background: #f4f7fb; border-bottom: 1px solid #dfe5ee; font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.audit-row { padding: 11px 12px; border-bottom: 1px solid #edf0f4; color: #34445f; font-size: .68rem; }
.audit-row:last-child { border-bottom: 0; }
.audit-row time { color: #667085; font-variant-numeric: tabular-nums; }
.audit-row strong, .audit-row small { display: block; }
.audit-row small { margin-top: 2px; color: #7b879a; }
.audit-row details summary { color: var(--sapag); cursor: pointer; font-weight: 750; }
.audit-row pre { max-width: 100%; margin: 8px 0 0; padding: 9px; overflow: auto; border-radius: 8px; color: #e8efff; background: #14213a; font: 600 .62rem/1.45 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.audit-loading { padding: 35px; color: var(--muted); text-align: center; }
.back-world { position: absolute; z-index: 6; left: 18px; top: 18px; height: 40px; padding: 0 13px 0 10px; display: flex; align-items: center; gap: 6px; border: 1px solid #d7dee9; border-radius: 10px; color: #213251; background: rgba(255,255,255,.96); box-shadow: 0 7px 20px rgba(16,24,40,.09); font-size: 0.78rem; font-weight: 750; }
.back-world svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; }

.summary-strip { position: absolute; z-index: 5; left: 18px; top: 18px; display: flex; gap: 7px; }
.summary-strip > div { min-width: 126px; padding: 10px 12px; border: 1px solid rgba(215,222,233,.94); border-radius: 11px; background: rgba(255,255,255,.94); box-shadow: 0 7px 20px rgba(16,24,40,.08); }
.summary-strip strong, .summary-strip span { display: block; }
.summary-strip strong { color: #0d286b; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.summary-strip span { margin-top: 2px; color: var(--muted); font-size: 0.65rem; }
.map-stage.regions-view .summary-strip { display: none; }

.legend { min-width: 195px; position: absolute; z-index: 5; left: 18px; bottom: 18px; padding: 11px 12px; border: 1px solid rgba(215,222,233,.94); border-radius: 12px; background: rgba(255,255,255,.95); box-shadow: 0 8px 24px rgba(16,24,40,.08); }
.legend-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.legend-head strong { font-size: 0.7rem; }
.legend-head span { color: var(--muted); font-size: 0.65rem; }
.legend-items { margin-top: 8px; display: grid; gap: 5px; }
.legend-item, .legend-foot { display: flex; align-items: center; gap: 7px; color: #5d687b; font-size: 0.64rem; }
.legend-swatch, .legend-empty { width: 19px; height: 9px; flex: 0 0 auto; border-radius: 3px; }
.legend-empty { display: inline-block; background: #dfe4ec; }
.legend-foot { margin-top: 7px; padding-top: 7px; border-top: 1px solid #edf0f4; }

.tooltip { display: none; max-width: 230px; position: fixed; z-index: 60; padding: 9px 11px; color: #fff; background: #101828; border: 1px solid rgba(255,255,255,.14); border-radius: 9px; box-shadow: 0 12px 28px rgba(16,24,40,.22); pointer-events: none; font-size: 0.72rem; line-height: 1.45; }
.tooltip strong { display: block; font-size: 0.78rem; }

.analysis-card { overflow-y: auto; scrollbar-width: thin; scrollbar-color: #cbd3df transparent; }
.empty-state { min-height: 100%; padding: 55px 35px; display: grid; align-content: center; justify-items: center; text-align: center; }
.empty-icon { width: 70px; height: 70px; display: grid; place-items: center; border-radius: 21px; color: var(--sapag); background: #edf3ff; }
.empty-icon svg { width: 34px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.empty-state h2 { margin: 18px 0 8px; font-size: 1.25rem; }
.empty-state p { max-width: 310px; margin: 0; color: var(--muted); font-size: 0.875rem; line-height: 1.55; }
.analysis-panel:empty { display: none; }
.country-action-bridge { height: 0; position: relative; z-index: 4; display: flex; justify-content: center; }
.sapag-data-bridge { width: calc(100% - 46px); min-height: 42px; padding: 0 20px; transform: translateY(-50%); border: 1px solid #d49219; border-radius: 10px; color: #13284e; background: linear-gradient(135deg,#ffd16f,#efad2f); box-shadow: 0 8px 22px rgba(194,126,8,.25); font: 800 .7rem Inter, sans-serif; letter-spacing: .08em; }
.sapag-data-bridge:hover { color: #0c2148; background: linear-gradient(135deg,#f6bd49,#df9619); transform: translateY(-50%); }
.country-action-bridge + .analysis-section { padding-top: 31px; }

.country-hero { padding: 23px; color: #fff; background: linear-gradient(145deg, #001b6d, #002fb1 68%, #2455ca); }
.hero-line { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; flex-wrap: wrap; }
.country-identity { display: flex; align-items: center; gap: 12px; }
.country-flag { width: 42px; height: 31px; display: block; flex: 0 0 auto; object-fit: cover; border: 1px solid rgba(255,255,255,.42); border-radius: 5px; box-shadow: 0 3px 9px rgba(0,0,0,.18); }
.country-flag-placeholder { width: 42px; height: 31px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.35); border-radius: 5px; background: rgba(255,255,255,.12); font-size: 1.25rem; }
.country-hero h2 { margin: 0; font-size: 1.55rem; letter-spacing: -0.03em; }
.country-meta { margin-top: 4px; color: #cfdbff; font-size: 0.69rem; letter-spacing: 0.06em; text-transform: uppercase; }
.hero-actions { display: flex; align-items: center; gap: 8px; }
.trend-button { min-height: 31px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid rgba(255,255,255,.35); border-radius: 8px; color: #fff; background: rgba(255,255,255,.11); font-size: .68rem; font-weight: 700; }
.trend-button:hover { background: rgba(255,255,255,.2); }
.trend-button svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.confidence { padding: 6px 9px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; background: rgba(255,255,255,.1); font-size: 0.65rem; font-weight: 750; white-space: nowrap; }
.kpi-grid { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kpi { padding: 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; background: rgba(255,255,255,.08); }
.kpi strong, .kpi span { display: block; }
.kpi strong { font-size: 1.16rem; font-variant-numeric: tabular-nums; }
.kpi span { margin-top: 3px; color: #d5dfff; font-size: 0.65rem; line-height: 1.3; }
.analysis-section { padding: 20px 23px; border-bottom: 1px solid #ebeff4; }
.analysis-section h3 { margin: 0 0 13px; color: #1b2c49; font-size: 0.72rem; letter-spacing: 0.09em; text-transform: uppercase; }
.analysis-section p { color: var(--muted); font-size: 0.8rem; line-height: 1.55; }
.segment-list { display: grid; gap: 9px; }
.segment-row { display: grid; grid-template-columns: 112px 1fr 64px 31px; align-items: center; gap: 8px; font-size: 0.75rem; }
.segment-track { height: 7px; overflow: hidden; border-radius: 999px; background: #edf1f6; }
.segment-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #002fb1, #5b83e8); }
.segment-value { color: #344054; font-weight: 750; text-align: right; }
.segment-trend { width: 31px; height: 29px; display: grid; place-items: center; border: 1px solid #d9e1ed; border-radius: 7px; color: var(--sapag); background: #f7f9fd; }
.segment-trend:hover { color: #fff; background: var(--sapag); }
.segment-trend svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.sam-card { display: grid; grid-template-columns: 82px 1fr; align-items: center; gap: 14px; }
.donut { width: 78px; height: 78px; display: grid; place-items: center; position: relative; border-radius: 50%; }
.donut::after { content: ""; width: 52px; height: 52px; position: absolute; border-radius: 50%; background: #fff; }
.donut strong { position: relative; z-index: 1; color: var(--sapag); font-size: 0.88rem; }
.sam-copy strong { display: block; color: #082a75; font-size: 1.35rem; }
.sam-copy span { display: block; margin-top: 4px; color: var(--muted); font-size: 0.7rem; line-height: 1.4; }
.competitor-list { display: grid; gap: 8px; }
.competitor { padding: 11px 12px; border: 1px solid #e3e8f0; border-radius: 11px; }
.competitor-head { display: flex; justify-content: space-between; gap: 10px; }
.competitor a { color: #1b2c49; font-size: 0.78rem; font-weight: 800; text-decoration: none; }
.competitor-revenue { color: #15274a; font-size: 0.7rem; font-weight: 750; text-align: right; }
.competitor small { display: block; margin-top: 4px; color: var(--muted); font-size: 0.65rem; line-height: 1.35; }
.info-note { padding: 10px 11px; color: #395185; background: #f1f5ff; border: 1px solid #dae4ff; border-radius: 9px; font-size: 0.7rem; line-height: 1.45; }
.source-link { color: var(--sapag); text-decoration: none; font-size: 0.74rem; font-weight: 700; }
.national-reference { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.national-reference > div { padding: 11px; border: 1px solid #e2e7ef; border-radius: 10px; background: #f8fafc; }
.national-reference strong, .national-reference span { display: block; }
.national-reference strong { color: #153274; font-size: 0.92rem; }
.national-reference span { margin-top: 2px; color: var(--muted); font-size: 0.63rem; }
.analysis-footer { padding: 14px 23px 22px; color: #7a8495; font-size: 0.65rem; line-height: 1.5; }
.world-hero { background: linear-gradient(145deg, #071e52, #002fb1 70%, #2455ca); }
.section-title-row { margin-bottom: 13px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.section-title-row h3 { margin-bottom: 0; }
.section-title-row small { display: block; margin-top: 4px; color: #778397; font-size: .63rem; }
.inline-data-button { padding: 6px 9px; border: 1px solid #cbd8f7; border-radius: 7px; color: var(--sapag); background: #f4f7ff; font-size: .65rem; font-weight: 750; }
.sapag-section { background: #fbfcff; }
.sapag-import-date { color: #68758a; font-size: .62rem; white-space: nowrap; }
.sapag-import-meta { margin-bottom: 11px; display: flex; justify-content: flex-end; }
.sapag-filter-toolbar { margin: 0 0 12px; padding: 10px; display: grid; grid-template-columns: .65fr 1.35fr 1.35fr; gap: 10px; border: 1px solid #dce4f1; border-radius: 11px; background: #f8faff; }
.sapag-filter-toolbar label, .sapag-filter-field { min-width: 0; display: grid; gap: 5px; color: #53627a; font-size: .66rem; font-weight: 750; }
.sapag-filter-toolbar select, .sapag-filter-toolbar > label > input, .sapag-category-picker summary { width: 100%; min-width: 0; height: 38px; padding: 0 30px 0 10px; border: 1px solid #cfd9e8; border-radius: 8px; color: #173b87; background: #fff; font: 700 .7rem Inter, sans-serif; outline: none; }
.sapag-filter-toolbar > label > input { padding-right: 10px; }
.sapag-filter-toolbar select:focus, .sapag-filter-toolbar > label > input:focus, .sapag-category-picker[open] summary { border-color: var(--sapag); box-shadow: 0 0 0 3px rgba(0,47,177,.1); }
.sapag-category-picker { position: relative; }
.sapag-category-picker summary { display: flex; align-items: center; cursor: pointer; list-style: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sapag-category-picker summary::-webkit-details-marker { display: none; }
.sapag-category-picker summary::after { content: "⌄"; margin-left: auto; color: #71809a; font-size: .8rem; }
.sapag-category-menu { width: max(100%, 300px); position: absolute; top: calc(100% + 6px); right: 0; z-index: 30; padding: 10px; display: grid; gap: 8px; border: 1px solid #cfd9e8; border-radius: 12px; background: #fff; box-shadow: 0 16px 40px rgba(24,43,80,.18); }
.sapag-category-menu > input { width: 100%; height: 38px; padding: 0 10px; border: 1px solid #d5deeb; border-radius: 8px; color: #263650; background: #f8faff; font: 600 .7rem Inter, sans-serif; outline: none; }
.sapag-category-menu > input:focus { border-color: var(--sapag); box-shadow: 0 0 0 3px rgba(0,47,177,.08); }
.sapag-category-options { max-height: 230px; padding-right: 3px; overflow-y: auto; display: grid; gap: 3px; }
.sapag-category-options label { padding: 7px 8px; display: flex; grid-template-columns: none; align-items: center; gap: 8px; border-radius: 7px; color: #34445f; cursor: pointer; font-size: .68rem; font-weight: 650; }
.sapag-category-options label:hover { background: #f1f5ff; }
.sapag-category-options input { width: 15px; height: 15px; flex: 0 0 auto; accent-color: var(--sapag); }
.sapag-category-empty { padding: 10px; color: #7d899a; text-align: center; }
.sapag-category-actions { padding-top: 8px; display: flex; justify-content: flex-end; gap: 7px; border-top: 1px solid #e7ebf2; }
.sapag-category-actions button { min-height: 33px; padding: 0 10px; border: 1px solid #d5deeb; border-radius: 7px; color: #43546e; background: #fff; font-size: .65rem; font-weight: 750; }
.sapag-category-actions button:last-child { border-color: var(--sapag); color: #fff; background: var(--sapag); }
.sapag-year-toolbar { margin: 0 0 10px; padding: 7px 8px 7px 11px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid #dce4f1; border-radius: 10px; color: #53627a; background: #fff; }
.sapag-year-toolbar label { font-size: .68rem; font-weight: 750; }
.sapag-year-toolbar select { min-width: 92px; height: 34px; padding: 0 28px 0 10px; border: 1px solid #cfd9e8; border-radius: 8px; color: #173b87; background: #f7f9fd; font: 750 .72rem Inter, sans-serif; }
.sapag-reimport-note { margin: 0 0 10px; padding: 9px 10px; border: 1px solid #ead9a4; border-radius: 8px; color: #775c18; background: #fff9e8; font-size: .66rem; line-height: 1.4; }
.sapag-empty { padding: 15px; display: grid; gap: 4px; border: 1px dashed #c8d3e5; border-radius: 11px; color: #53627a; background: #fff; }
.sapag-empty strong { color: #233754; font-size: .78rem; }
.sapag-empty span { font-size: .7rem; line-height: 1.45; }
.sapag-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sapag-kpis > div { padding: 12px; border: 1px solid #dfe6f1; border-radius: 10px; background: #fff; }
.sapag-kpis span, .sapag-kpis strong, .sapag-kpis small { display: block; }
.sapag-kpis span { color: #68758a; font-size: .64rem; line-height: 1.35; }
.sapag-kpis strong { margin-top: 5px; color: #0c327e; font-size: 1.05rem; }
.sapag-kpis small { margin-top: 3px; color: #8791a1; font-size: .57rem; }
.sapag-chart-card { margin-top: 12px; padding: 16px 18px; border: 1px solid #dfe6f1; border-radius: 11px; background: #fff; }
.sapag-chart-card h4, .sapag-rankings h4 { margin: 0 0 10px; color: #33445f; font-size: .68rem; }
.sapag-chart-heading { margin-bottom: 5px; display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.sapag-chart-heading h4 { margin-bottom: 0; }
.sapag-chart-heading span { color: #758197; font-size: .62rem; text-align: right; }
.sapag-category-legend { margin: 8px 0 3px; display: flex; align-items: center; gap: 11px; flex-wrap: wrap; color: #59677c; font-size: .62rem; font-weight: 700; }
.sapag-category-legend:empty { display: none; }
.sapag-category-legend span { display: inline-flex; align-items: center; gap: 5px; }
.sapag-category-legend i { width: 10px; height: 10px; border-radius: 3px; }
.sapag-chart-card svg { width: 100%; height: 300px; display: block; overflow: visible; }
.sapag-orders-line { fill: none; stroke: var(--sapag); stroke-width: 3.2; }
.sapag-orders-point { fill: #fff; stroke: var(--sapag); stroke-width: 2.3; }
.sapag-orders-point.selected { fill: #efbd58; stroke: #9a5a0b; stroke-width: 2.2; }
.sapag-point-value { fill: #35445b; paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; font: 700 9px Inter, sans-serif; }
.sapag-stacked-bar { transition: opacity .15s ease; }
.sapag-stacked-bar:hover { opacity: .78; }
.sapag-year-axis text { font-size: 11px; font-weight: 700; }
.sapag-chart-empty { fill: #7a8799; font: 600 13px Inter, sans-serif; }
.sapag-rankings { margin-top: 9px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.sapag-rankings > div { min-width: 0; padding: 12px; border: 1px solid #dfe6f1; border-radius: 11px; background: #fff; }
.sapag-ranking-row { min-width: 0; padding: 7px 0; display: grid; grid-template-columns: 18px minmax(0,1fr) auto; align-items: center; gap: 6px; border-top: 1px solid #edf0f5; }
.sapag-ranking-row span { color: #9aa3b2; font-size: .62rem; font-weight: 750; }
.sapag-ranking-row strong { overflow: hidden; color: #34445f; font-size: .65rem; text-overflow: ellipsis; white-space: nowrap; }
.sapag-ranking-row b { color: #173b87; font-size: .63rem; white-space: nowrap; }
.sapag-ranking-empty { padding: 12px 0; color: #8691a3; font-size: .65rem; }
.sapag-ranking-details { margin-top: 7px; border-top: 1px solid #e8edf4; }
.sapag-ranking-details summary { padding: 9px 2px 4px; color: var(--sapag); cursor: pointer; font-size: .64rem; font-weight: 750; }

.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 80; padding: 22px; display: grid; place-items: center; background: rgba(8,20,45,.58); backdrop-filter: blur(5px); }
.modal-card { width: min(780px, 96vw); max-height: 88vh; overflow: hidden; display: flex; flex-direction: column; border-radius: 18px; background: #fff; box-shadow: 0 25px 70px rgba(0,18,70,.25); }
.modal-head { padding: 20px 22px; flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.modal-head span { color: var(--sapag); font-size: 0.68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.modal-head h2 { margin: 3px 0 0; font-size: 1.25rem; }
.modal-head button { width: 34px; height: 34px; border: 0; border-radius: 9px; color: #344054; background: #eef1f5; font-size: 1.25rem; }
.modal-body { min-height: 0; padding: 22px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.trend-modal-card { width: min(850px, 96vw); }
.global-modal-card { width: min(1180px, 96vw); }
.sapag-data-modal-card { width: min(700px, 96vw); }
.sapag-analysis-modal-card { width: min(1180px, 96vw); }
.client-analysis-modal-card { width: min(1050px, 96vw); }
.sapag-analysis-modal-card .sapag-section { padding: 0; border: 0; background: transparent; }
.client-analysis-meta { margin-bottom: 12px; display: grid; gap: 3px; }
.client-analysis-meta strong { color: #17346f; font-size: .82rem; }
.client-analysis-meta span { color: #748196; font-size: .66rem; }
.client-filter-toolbar { margin-bottom: 12px; padding: 10px; display: grid; grid-template-columns: 1fr 2fr; gap: 10px; border: 1px solid #dce4f1; border-radius: 11px; background: #f8faff; }
.client-filter-toolbar label { display: grid; gap: 5px; color: #53627a; font-size: .66rem; font-weight: 750; }
.client-filter-toolbar select { width: 100%; height: 38px; padding: 0 30px 0 10px; border: 1px solid #cfd9e8; border-radius: 8px; color: #173b87; background: #fff; font: 700 .7rem Inter, sans-serif; }
.client-category-ranking { margin-top: 10px; padding: 13px; border: 1px solid #dfe6f1; border-radius: 11px; background: #fff; }
.client-category-ranking h4 { margin: 0 0 10px; color: #33445f; font-size: .68rem; }
.sapag-data-intro { margin: 0 0 15px; color: #5f6d82; font-size: .78rem; line-height: 1.55; }
.sapag-dropzone { min-height: 190px; padding: 25px; display: grid; place-items: center; align-content: center; gap: 8px; border: 2px dashed #b9c8e8; border-radius: 14px; color: #566987; background: #f7f9ff; text-align: center; cursor: pointer; transition: .18s ease; }
.sapag-dropzone:hover, .sapag-dropzone.dragging { border-color: var(--sapag); color: var(--sapag); background: #eef3ff; }
.sapag-dropzone.loading { opacity: .7; pointer-events: none; }
.sapag-dropzone svg { width: 31px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.sapag-dropzone strong { color: #20385f; font-size: .9rem; }
.sapag-dropzone span { font-size: .7rem; }
.required-columns { margin-top: 13px; padding: 11px 12px; display: grid; gap: 4px; border-radius: 9px; color: #59687e; background: #f4f6f9; font-size: .67rem; line-height: 1.45; }
.required-columns strong { color: #263a5b; }
.import-message, .import-success { margin-top: 12px; padding: 11px 12px; border: 1px solid #dce3ed; border-radius: 9px; color: #657287; background: #fff; font-size: .7rem; }
.import-message.error { border-color: #efc8c5; color: #9f3b36; background: #fff5f4; }
.import-success { display: grid; gap: 3px; border-color: #bfe2cf; color: #31674d; background: #f1faf5; }
.import-success strong { color: #165f3d; }
.import-success span { color: #284e3c; font-weight: 700; }
.import-success small { font-size: .64rem; }
.import-success .import-warning { margin-top: 4px; color: #83631e; }
.sapag-privacy { margin: 12px 0 0; color: #7b8799; font-size: .65rem; line-height: 1.45; }
.import-actions { margin-top: 13px; display: flex; justify-content: flex-end; }
.danger-button { min-height: 38px; padding: 0 13px; border: 1px solid #e9b9b5; border-radius: 8px; color: #a6302b; background: #fff5f4; font: 700 .7rem Inter,sans-serif; }
.danger-button:hover { color: #fff; background: #b43a34; }

.user-menu { min-width: 180px; padding-left: 12px; display: flex; align-items: center; gap: 10px; border-left: 1px solid #dce2ec; }
.user-menu span, .user-menu strong, .user-menu small { display: block; }
.user-menu strong { max-width: 125px; overflow: hidden; color: #233754; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.user-menu small { margin-top: 2px; color: #7a8698; font-size: .58rem; }
.user-menu a { color: #49617f; font-size: .62rem; font-weight: 700; text-decoration: none; }
.crm-section { background: #fbfcff; }
.crm-kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; }
.crm-kpis div { padding: 10px; border: 1px solid #dfe6f1; border-radius: 9px; background: #fff; }
.crm-kpis strong,.crm-kpis span { display: block; }
.crm-kpis strong { color: #12367e; font-size: .9rem; }
.crm-kpis span { margin-top: 2px; color: #778397; font-size: .59rem; }
.prospect-list { margin-top: 9px; display: grid; gap: 5px; }
.prospect-row { width: 100%; padding: 9px 10px; display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 8px; border: 1px solid #e0e6ef; border-radius: 9px; color: #263a5b; background: #fff; text-align: left; }
.prospect-row:hover { border-color: #b9c9ef; background: #f7f9ff; }
.prospect-row strong,.prospect-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prospect-row strong { font-size: .7rem; }.prospect-row small { margin-top: 2px; color: #808b9b; font-size: .58rem; }.prospect-row b { color: #173b87; font-size: .65rem; white-space: nowrap; }
.status { padding: 4px 7px; border-radius: 999px; color: #53627a; background: #eef1f6; font-size: .56rem; font-weight: 750; white-space: nowrap; }.status-client{color:#176442;background:#e7f7ef}.status-offre,.status-qualifie{color:#76550d;background:#fff4d7}.status-perdu{color:#9f3b36;background:#fff0ef}.status-en_cours{color:#174795;background:#eaf1ff}
.crm-empty { padding: 13px; color: #7b8799; border: 1px dashed #ccd5e2; border-radius: 9px; text-align: center; font-size: .66rem; }
.crm-modal-card,.users-modal-card { width: min(760px,96vw); }
.crm-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.crm-form label { display: grid; gap: 5px; color: #59687e; font-size: .67rem; font-weight: 700; }.crm-form .wide { grid-column: 1/-1; }
.crm-form input,.crm-form select,.crm-form textarea { width: 100%; padding: 10px 11px; border: 1px solid #d6deea; border-radius: 8px; color: #263650; background: #fff; font: 500 .75rem Inter,sans-serif; }.crm-form textarea{resize:vertical}.checkbox-field{display:flex!important;align-items:center;grid-auto-flow:column;justify-content:start}.checkbox-field input{width:auto}
.form-actions { display: flex; justify-content: flex-end; gap: 8px; }.form-message { min-height: 18px; color: #a13a35; font-size: .68rem; }
.users-table { margin-bottom: 16px; display: grid; gap: 5px; }.users-table button { padding: 10px 12px; display: grid; grid-template-columns: 1fr 150px 55px; align-items:center;gap:10px;border:1px solid #e0e6ef;border-radius:9px;background:#fff;text-align:left}.users-table strong,.users-table small{display:block}.users-table strong{font-size:.72rem}.users-table small{margin-top:2px;color:#7c8798;font-size:.6rem}.users-table span:nth-child(2){color:#53627a;font-size:.65rem}.users-table i{color:#9f3b36;font-size:.6rem;font-style:normal;font-weight:700}.users-table i.active{color:#176442}
.account-session-note { margin: 0 0 14px; padding: 11px 12px; border: 1px solid #cfdbf7; border-radius: 9px; color: #34517f; background: #f2f6ff; font-size: .68rem; line-height: 1.5; }
.fatal-error { margin: 22px; padding: 18px; display:grid;gap:5px;border:1px solid #e9b9b5;border-radius:12px;color:#8d302b;background:#fff5f4}.fatal-error span{font-size:.72rem}

.auth-page { min-height:100vh; padding:30px; display:grid; place-items:center; overflow:auto; background:linear-gradient(145deg,#eef3ff,#f8fafc 55%,#e8efff); }
.auth-card { width:min(680px,96vw); padding:32px; border:1px solid #dfe6f1; border-radius:20px; background:#fff; box-shadow:0 24px 70px rgba(20,45,95,.16); }.auth-card-small{width:min(440px,96vw)}.auth-card>img{width:150px;height:56px;object-fit:contain;object-position:left center}.auth-kicker{display:block;margin-top:18px;color:#002fb1;font-size:.66rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase}.auth-card h1{margin:5px 0 8px;color:#152b52;font-size:1.7rem}.auth-card>p{margin:0 0 20px;color:#69768a;font-size:.8rem;line-height:1.55}.auth-form{display:grid;grid-template-columns:1fr 1fr;gap:13px}.auth-card-small .auth-form{grid-template-columns:1fr}.auth-form h2{grid-column:1/-1;margin:10px 0 0;color:#29405f;font-size:.8rem}.auth-form label{display:grid;gap:5px;color:#53627a;font-size:.68rem;font-weight:700}.auth-form input{height:42px;padding:0 11px;border:1px solid #d5ddea;border-radius:8px;font:500 .76rem Inter,sans-serif}.auth-form button{grid-column:1/-1;margin-top:5px}.auth-error,.auth-success{margin:0 0 15px;padding:11px;border-radius:9px;font-size:.72rem}.auth-error{color:#963630;background:#fff1f0;border:1px solid #efcbc8}.auth-success{color:#226746;background:#eff9f4;border:1px solid #c8e4d4}
.trend-toolbar, .global-filters { margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.period-switch { padding: 4px; display: flex; gap: 3px; border: 1px solid #dce2eb; border-radius: 10px; background: #f6f8fb; }
.period-switch button { padding: 7px 11px; border: 0; border-radius: 7px; color: #627087; background: transparent; font-size: .72rem; font-weight: 700; }
.period-switch button.active { color: #fff; background: var(--sapag); }
.trend-summary { color: #5b687e; font-size: .76rem; }
.data-status { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border: 1px solid #dbe2ed; border-radius: 999px; color: #53627a; background: #f6f8fb; font-size: .68rem; font-weight: 750; }
.data-status.actual { border-color: #bedfce; color: #176442; background: #edf9f3; }
.data-status.unavailable { border-color: #eadba9; color: #765c20; background: #fff9e9; }
.data-status.estimated { border-color: #eadba9; color: #765c20; background: #fff9e9; }
.trend-ytd { margin: 0 0 15px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.trend-ytd > div { padding: 12px 13px; border: 1px solid #e0e6ef; border-radius: 11px; background: #f8faff; }
.trend-ytd span, .trend-ytd strong { display: block; }
.trend-ytd span { color: #6c788b; font-size: .65rem; line-height: 1.35; }
.trend-ytd strong { margin-top: 5px; color: #17346f; font-size: 1rem; }
.trend-ytd strong.positive { color: #197149; }
.trend-ytd strong.negative { color: #b33d38; }
.trend-data-alert { margin: 0 0 15px; padding: 11px 12px; border: 1px solid #eadba9; border-radius: 10px; color: #6f5b25; background: #fff9e9; font-size: .7rem; line-height: 1.45; }
.trend-legend { margin: 0 0 8px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; color: #59677c; font-size: .7rem; font-weight: 700; }
.trend-legend span { display: inline-flex; align-items: center; gap: 6px; }
.trend-legend i { width: 22px; height: 3px; display: inline-block; border-radius: 999px; background: var(--sapag); }
.trend-legend i.exports { background: #14917d; }
.trend-legend i.sapag-potential { background: #e09b23; }
.trend-legend i.linear-estimate { height: 0; border-top: 3px dashed currentColor; background: transparent; border-radius: 0; }
.trend-legend i.market-total.linear-estimate { color: var(--sapag); }
.trend-legend i.sapag-potential.linear-estimate { color: #e09b23; }
.trend-legend i.estimate { height: 0; border-top: 3px dashed #d17924; background: transparent; border-radius: 0; }
.trend-chart { min-height: 330px; padding: 14px; border: 1px solid #e3e8f0; border-radius: 14px; background: linear-gradient(180deg,#fbfcff,#f5f8fd); }
.trend-chart svg { width: 100%; height: 310px; display: block; overflow: visible; }
.chart-grid line { stroke: #dfe5ef; stroke-dasharray: 3 4; }
.chart-axis text { fill: #6e788a; font: 600 11px Inter, sans-serif; }
.chart-axis path, .chart-axis line { stroke: #c8d1df; }
.chart-line { fill: none; stroke: var(--sapag); stroke-width: 3; }
.chart-line.exports { stroke: #14917d; }
.chart-line.sapag-potential { stroke: #e09b23; }
.chart-line.linear-estimate { stroke-dasharray: 7 5; }
.chart-line.estimate { stroke: #d17924; stroke-dasharray: 7 5; }
.chart-area { fill: url(#trendGradient); }
.chart-point { fill: #fff; stroke: var(--sapag); stroke-width: 2; }
.chart-point.exports { stroke: #14917d; }
.chart-point.sapag-potential { stroke: #e09b23; }
.chart-point.linear-estimate { stroke-dasharray: 2 1; }
.chart-point.estimate { stroke: #d17924; }
.trend-note { margin: 12px 0 0; color: #758096; font-size: .7rem; line-height: 1.5; }
.trend-note a { color: var(--sapag); font-weight: 700; text-decoration: none; }
.global-filters { justify-content: flex-start; }
.global-filters label { display: grid; gap: 5px; color: #667085; font-size: .68rem; font-weight: 700; }
.global-filters select { min-width: 215px; height: 40px; padding: 0 34px 0 11px; border: 1px solid #d5dce8; border-radius: 9px; color: #263650; background: #fff; }
.ranking-head, .ranking-row { display: grid; grid-template-columns: 44px minmax(145px,1fr) minmax(105px,1.15fr) 118px 125px 105px; align-items: center; gap: 10px; }
.ranking-head { padding: 9px 12px; color: #7b8494; border-bottom: 1px solid #e1e6ef; font-size: .65rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.ranking-row { padding: 10px 12px; border-bottom: 1px solid #edf0f5; font-size: .75rem; }
.ranking-row:hover { background: #f8faff; }
.ranking-rank { color: #8791a2; font-weight: 800; }
.ranking-country { min-width: 0; display: flex; align-items: center; gap: 9px; font-weight: 700; }
.ranking-country img { width: 28px; height: 20px; object-fit: cover; border: 1px solid #d8dee8; border-radius: 3px; }
.ranking-bar { height: 8px; overflow: hidden; border-radius: 999px; background: #edf1f6; }
.ranking-bar span { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg,#002fb1,#5c84e8); }
.ranking-head > :nth-child(n+4), .ranking-row > :nth-child(n+4) { text-align: center; justify-self: stretch; }
.ranking-value { color: #17346f; font-weight: 800; text-align: center; }
.ranking-potential { color: #a4670a; }
.ranking-ratio { color: #4f6078; font-size: .7rem; font-weight: 800; text-align: center; }
.ranking-empty { padding: 35px; color: #6c7789; text-align: center; }
.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.method-card { padding: 14px; border: 1px solid #e1e6ef; border-radius: 12px; }
.method-card h3 { margin: 0 0 7px; color: #123273; font-size: 0.86rem; }
.method-card p { margin: 0; color: var(--muted); font-size: 0.75rem; line-height: 1.5; }
.method-warning { margin-top: 12px; padding: 12px; color: #5a4920; background: #fff8e7; border: 1px solid #eedba8; border-radius: 10px; font-size: 0.74rem; line-height: 1.5; }
.fx-row { margin-top: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: 0.75rem; }
.fx-row input { width: 85px; height: 38px; padding: 0 9px; border: 1px solid #d7dde7; border-radius: 8px; }
.fx-row button { height: 38px; }

@media (max-width: 1180px) {
  body { overflow: auto; }
  .app-header { height: auto; min-height: 82px; padding: 12px 18px; align-items: flex-start; flex-direction: column; }
  .toolbar { width: 100%; padding-bottom: 2px; overflow-x: auto; }
  .workspace { height: auto; min-height: calc(100vh - 145px); grid-template-columns: minmax(0, 1fr) 390px; }
}
@media (max-width: 900px) {
  .workspace { grid-template-columns: 1fr; padding: 11px; }
  .map-card { height: 720px; }
  .analysis-card { min-height: 400px; overflow: visible; }
  .empty-state { min-height: 400px; }
}
@media (max-width: 620px) {
  .app-header { padding: 11px 12px; }
  .brand { min-width: 0; }
  .brand img { width: 106px; height: 42px; }
  .brand-divider { height: 30px; }
  .brand-copy strong { font-size: .9rem; }
  .search-field { width: 190px; }
  .workspace { padding: 7px; }
  .map-card { height: 690px; border-radius: 14px; }
  .map-heading { padding: 14px; align-items: flex-start; flex-direction: column; gap: 10px; }
  .map-heading h1 { font-size: 1.22rem; }
  .mode-switch { width: 100%; }
  .mode { flex: 1; }
  .summary-strip { left: 10px; top: 10px; right: 58px; display: grid; grid-template-columns: 1fr 1fr; }
  .summary-strip > div { min-width: 0; padding: 8px 9px; }
  .summary-strip > div:nth-child(3) { display: none; }
  .legend { left: 10px; bottom: 10px; }
  .map-controls { top: 10px; right: 10px; }
  .back-world { left: 10px; top: 10px; }
  .country-hero { padding: 20px; }
  .sapag-data-bridge { width: calc(100% - 40px); }
  .analysis-section { padding: 19px 20px; }
  .segment-row { grid-template-columns: 88px 1fr 53px 31px; }
  .sapag-rankings, .sapag-kpis { grid-template-columns: 1fr; }
  .sapag-filter-toolbar { grid-template-columns: 1fr; }
  .client-filter-toolbar { grid-template-columns: 1fr; }
  .client-map-status { right: 10px; bottom: 10px; max-width: calc(100% - 20px); }
  .trend-ytd { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr; }
  .ranking-head, .ranking-row { grid-template-columns: 32px minmax(95px,1fr) 72px 72px; gap: 6px; }
  .ranking-head > :nth-child(3), .ranking-row > :nth-child(3), .ranking-head > :nth-child(6), .ranking-row > :nth-child(6) { display: none; }
  .global-filters label, .global-filters select { width: 100%; }
  .user-menu { min-width: 155px; }
  .crm-kpis { grid-template-columns:1fr; }
  .prospect-row { grid-template-columns:minmax(0,1fr) auto; }.prospect-row b{display:none}
  .crm-form,.auth-form { grid-template-columns:1fr; }.crm-form .wide{grid-column:auto}.users-table button{grid-template-columns:1fr auto}.users-table span:nth-child(2){display:none}
  .audit-toolbar { grid-template-columns: 1fr; }
  .tile-attribution { right: 10px; bottom: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation-duration: .01ms !important; }
}
