/* =====================================================================
   «Hududiy tadqiqotlar» xaritasi v3 — research-map.css (pri.oliymajlis.uz)
   Faqat .rmap* klasslari; !important ishlatilmagan (mavzu uslublari :not(#rmap-x) bilan yengiladi).
   Bogʻliq fayllar: _include/research-map.tpl, _files/rmap-item.tpl, js/research-map.js
   ===================================================================== */

.rmap {
	--rmap-navy: #0b2a4a;
	--rmap-navy-2: #14406e;
	--rmap-green: #1e9e57;
	--rmap-text: #1f2d3d;
	--rmap-muted: #5b6778;
	--rmap-line: #e3e8ef;
	--rmap-soft: #f4f7fb;
	--rmap-planned: #4a7fb5;
	--rmap-ongoing: #c77d00;
	--rmap-done: #1e9e57;
	--rmap-empty: #e4eaf1;
	--rmap-focus: #1a73e8;
	--z: 1;
	padding: 40px 0 16px;
	color: var(--rmap-text);
	overflow-wrap: break-word;
}
.rmap *, .rmap *::before, .rmap *::after { box-sizing: border-box; }
.rmap ul { margin: 0; padding: 0; list-style: none; }
.rmap li::before { content: none; }
.rmap .rmap-data, .rmap .rmap-dict { display: none; }
.rmap [hidden]:not(#rmap-x) { display: none; }
.rmap .rmap-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rmap .section-title { margin-bottom: 8px; }
.rmap .rmap-lead { max-width: 760px; margin: 0 0 18px; color: var(--rmap-muted); font-size: 15px; line-height: 1.55; }

/* Mavzu (theme) tugmalari uslubini neytrallashtirish */
.rmap button:not(#rmap-x) {
	width: auto; min-width: 0; height: auto; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0;
	background: none; box-shadow: none; transform: none; color: inherit;
	font: inherit; line-height: 1.3; letter-spacing: normal; text-transform: none; text-align: left; white-space: normal; cursor: pointer;
}
.rmap button:not(#rmap-x)::before, .rmap button:not(#rmap-x)::after { display: none; }
.rmap a:focus-visible, .rmap button:focus-visible, .rmap select:focus-visible, .rmap input:focus-visible, .rmap [tabindex]:focus-visible {
	outline: 2px solid var(--rmap-focus); outline-offset: 2px;
}

/* ---------- Filtrlar ---------- */
.rmap .rmap-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 14px; }
.rmap .rmap-chips, .rmap .rmap-sels { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rmap button.rmap-chip:not(#rmap-x) {
	display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 14px;
	border: 1px solid var(--rmap-line); border-radius: 999px; background: #fff; color: var(--rmap-text);
	font-size: 14px; font-weight: 600; transition: background-color .2s, border-color .2s, color .2s;
}
.rmap button.rmap-chip:not(#rmap-x):hover { border-color: #b9c4d2; }
.rmap button.rmap-chip[aria-pressed="true"]:not(#rmap-x) { border-color: var(--rmap-navy); background: var(--rmap-navy); color: #fff; }
.rmap .rmap-chip--planned i { color: var(--rmap-planned); }
.rmap .rmap-chip--ongoing i { color: var(--rmap-ongoing); }
.rmap .rmap-chip--done i { color: var(--rmap-done); }
.rmap button.rmap-chip[aria-pressed="true"]:not(#rmap-x) i { color: #fff; }
.rmap .rmap-sel { position: relative; display: inline-flex; align-items: center; margin: 0; }
.rmap .rmap-sel > i { position: absolute; left: 12px; color: var(--rmap-navy); font-size: 14px; pointer-events: none; }
.rmap select.rmap-select:not(#rmap-x) {
	-webkit-appearance: none; appearance: none; height: 40px; min-width: 140px; max-width: 260px; margin: 0; padding: 0 34px 0 34px;
	border: 1px solid #d9dfe7; border-radius: 10px; color: var(--rmap-text); font-size: 14px; font-weight: 600; cursor: pointer;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235b6778' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center;
	transition: border-color .2s, box-shadow .2s;
}
.rmap select.rmap-select:not(#rmap-x):hover { border-color: #b9c4d2; }
.rmap select.rmap-select:not(#rmap-x):focus { border-color: var(--rmap-green); box-shadow: 0 0 0 3px rgba(30, 158, 87, .15); outline: none; }
.rmap button.rmap-reset:not(#rmap-x) { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 10px; color: var(--rmap-green); font-size: 14px; font-weight: 700; }
.rmap button.rmap-reset:not(#rmap-x):hover { background: rgba(30, 158, 87, .08); }

/* ---------- KPI ---------- */
.rmap .rmap-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.rmap .rmap-kpi {
	position: relative; display: flex; align-items: center; gap: 12px; min-width: 0; padding: 14px 16px;
	border: 1px solid var(--rmap-line); border-radius: 16px; background: #fff; box-shadow: 0 2px 10px rgba(11, 42, 74, .04);
	opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease;
}
.rmap--in .rmap-kpi { opacity: 1; transform: none; }
.rmap--in .rmap-kpi:nth-child(2) { transition-delay: .08s; }
.rmap--in .rmap-kpi:nth-child(3) { transition-delay: .16s; }
.rmap--in .rmap-kpi:nth-child(4) { transition-delay: .24s; }
.rmap .rmap-kpi--total { border-color: transparent; background: linear-gradient(140deg, var(--rmap-navy) 0%, var(--rmap-navy-2) 100%); color: #fff; }
.rmap .rmap-kpi__ic { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(74, 127, 181, .12); color: var(--rmap-planned); font-size: 18px; }
.rmap .rmap-kpi--total .rmap-kpi__ic { background: rgba(255, 255, 255, .14); color: #fff; }
.rmap .rmap-kpi__ic--done { background: rgba(30, 158, 87, .12); color: var(--rmap-done); }
.rmap .rmap-kpi__ic--year { background: rgba(199, 125, 0, .12); color: var(--rmap-ongoing); }
.rmap .rmap-kpi__b { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rmap .rmap-kpi b { color: var(--rmap-navy); font-size: 28px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.5px; }
.rmap .rmap-kpi b small { color: var(--rmap-muted); font-size: 15px; font-weight: 700; }
.rmap .rmap-kpi--total b { color: #fff; }
.rmap .rmap-kpi__b > span { color: var(--rmap-muted); font-size: 13px; font-weight: 600; line-height: 1.3; }
.rmap .rmap-kpi--total .rmap-kpi__b > span { color: rgba(255, 255, 255, .8); }
.rmap .rmap-ring { flex: 0 0 auto; width: 40px; height: 40px; margin-left: auto; }
.rmap .rmap-ring svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); }
.rmap .rmap-ring circle { fill: none; stroke: var(--rmap-empty); stroke-width: 4; }
.rmap .rmap-ring .rmap-ring__v { stroke: var(--rmap-green); stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray .9s cubic-bezier(.2, .8, .2, 1); }

/* ---------- Xarita + yon ustun ---------- */
.rmap .rmap-body { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.rmap .rmap-stage {
	position: relative; overflow: hidden; padding: 14px; border: 1px solid var(--rmap-line); border-radius: 20px;
	background:
		radial-gradient(circle at 1px 1px, rgba(11, 42, 74, .07) 1px, transparent 1.5px) 0 0 / 18px 18px,
		linear-gradient(180deg, #f7f9fc 0%, #eef3f9 100%);
	box-shadow: 0 10px 30px rgba(11, 42, 74, .06);
}
.rmap .rmap-stage svg { display: block; width: 100%; height: auto; max-height: 480px; overflow: visible; touch-action: manipulation; }

.rmap .rmap-region {
	fill: var(--rmap-empty); stroke: #fff; stroke-width: 1.2; vector-effect: non-scaling-stroke; cursor: pointer;
	transform-box: fill-box; transform-origin: center;
	transition: fill .45s ease, opacity .25s, filter .25s;
	opacity: 0;
}
.rmap .rmap-region.has-data { fill: rgba(11, 42, 74, var(--k, .5)); }
.rmap--in .rmap-region { opacity: 1; animation: rmapIn .55s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(var(--i, 0) * 35ms); }
@keyframes rmapIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.rmap svg.is-hovering .rmap-region:not(.is-hover):not(.is-active) { opacity: .6; }
.rmap .rmap-region.is-hover, .rmap .rmap-region:focus-visible { filter: drop-shadow(0 4px 8px rgba(11, 42, 74, .3)); outline: none; }
.rmap .rmap-region.is-hover:not(.has-data) { fill: #cfd9e5; }
.rmap .rmap-region.is-active { stroke: var(--rmap-green); stroke-width: 2.6; filter: drop-shadow(0 6px 14px rgba(11, 42, 74, .35)); }
.rmap--zoomed .rmap-region:not(.is-active) { opacity: .45; }

/* chegara chiziqlari — paydo boʻlishda chizilib chiqadi */
.rmap .rmap-line { fill: none; stroke: rgba(255, 255, 255, .9); stroke-width: 1.2; vector-effect: non-scaling-stroke; pointer-events: none; stroke-dasharray: 1; stroke-dashoffset: 1; }
.rmap--in .rmap-line { animation: rmapDraw 1.4s cubic-bezier(.4, 0, .2, 1) .1s forwards; }
@keyframes rmapDraw { to { stroke-dashoffset: 0; } }

.rmap .rmap-labels text { fill: #4b5a6c; font: 700 14px/1 Manrope, Arial, sans-serif; pointer-events: none; paint-order: stroke; stroke: rgba(255, 255, 255, .9); stroke-width: 3px; }
.rmap--narrow .rmap-labels, .rmap--zoomed .rmap-labels { display: none; }

/* son belgilari (zoomda oʻlchami oʻzgarmaydi) */
.rmap .rmap-badge { pointer-events: none; opacity: 0; transition: opacity .3s; }
.rmap--in .rmap-badge.is-on { opacity: 1; transition-delay: .5s; }
.rmap .rmap-badge > * { transform: scale(calc(1 / var(--z))); transform-box: fill-box; transform-origin: center; }
.rmap .rmap-badge__bg { fill: #fff; stroke: var(--rmap-planned); stroke-width: 2.5; }
.rmap .rmap-badge--ongoing .rmap-badge__bg { stroke: var(--rmap-ongoing); }
.rmap .rmap-badge--done .rmap-badge__bg { stroke: var(--rmap-done); }
.rmap .rmap-badge text { fill: var(--rmap-navy); font: 800 14px/1 Manrope, Arial, sans-serif; }
.rmap .rmap-badge__pulse { fill: none; stroke: var(--rmap-ongoing); stroke-width: 2; opacity: 0; }
.rmap--in .rmap-badge.is-live .rmap-badge__pulse { animation: rmapPulse 2.4s ease-out infinite; }
@keyframes rmapPulse { 0% { opacity: .6; transform: scale(calc(.85 / var(--z))); } 100% { opacity: 0; transform: scale(calc(1.9 / var(--z))); } }

.rmap button.rmap-back:not(#rmap-x) {
	position: absolute; top: 12px; left: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px;
	border-radius: 999px; background: #fff; color: var(--rmap-navy); font-size: 14px; font-weight: 700; box-shadow: 0 4px 14px rgba(11, 42, 74, .15);
}
.rmap .rmap-tip {
	position: absolute; top: 0; left: 0; z-index: 4; max-width: 240px; padding: 9px 12px; border-radius: 10px; pointer-events: none;
	background: var(--rmap-navy); color: #fff; font-size: 13px; line-height: 1.35; box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
}
.rmap .rmap-tip b, .rmap .rmap-tip > span { display: block; }
.rmap .rmap-tip > span { opacity: .85; }
.rmap .rmap-tip__s { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; }
.rmap .rmap-tip em { display: inline-flex; align-items: center; gap: 4px; font-style: normal; font-weight: 700; }
.rmap .rmap-tip .rmap-c--planned { color: #a9c6e8; }
.rmap .rmap-tip .rmap-c--ongoing { color: #ffc65c; }
.rmap .rmap-tip .rmap-c--done { color: #7be0a6; }

.rmap .rmap-scale { position: absolute; left: 14px; bottom: 12px; z-index: 2; display: flex; flex-direction: column; gap: 4px; padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, .9); color: var(--rmap-muted); font-size: 11px; font-weight: 600; }
.rmap .rmap-scale__row { display: flex; align-items: center; gap: 4px; }
.rmap .rmap-scale__sw { display: inline-block; width: 16px; height: 10px; border-radius: 3px; background: rgba(11, 42, 74, var(--k, .5)); }
.rmap .rmap-scale__sw.is-zero { background: var(--rmap-empty); }
.rmap .rmap-scale small { margin-right: 4px; font-size: 11px; font-variant-numeric: tabular-nums; }
.rmap .rmap-credit {
	position: absolute; right: 10px; bottom: 10px; z-index: 2; display: flex; align-items: center; justify-content: center; width: 18px; height: 18px;
	border: 1px solid #c9d3e0; border-radius: 50%; background: #fff; color: #8a95a5; font: italic 700 11px/1 Georgia, serif; cursor: help;
}
.rmap .rmap-none { position: absolute; inset: auto 0 45% 0; display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; color: var(--rmap-muted); font-size: 15px; font-weight: 600; }

/* Yon ustun: umumiy koʻrinish */
.rmap .rmap-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.rmap .rmap-over { display: flex; flex-direction: column; gap: 12px; }
.rmap .rmap-card { padding: 14px 16px; border: 1px solid var(--rmap-line); border-radius: 16px; background: #fff; }
.rmap .rmap-card__h { margin: 0 0 10px; color: var(--rmap-navy); font-size: 15px; font-weight: 800; }
.rmap .rmap-sbar { display: flex; gap: 2px; height: 10px; margin-bottom: 10px; overflow: hidden; border-radius: 999px; background: #eef2f7; }
.rmap .rmap-sbar i { display: block; width: 0; height: 100%; transition: width .7s cubic-bezier(.2, .8, .2, 1), opacity .2s; }
.rmap .rmap-sbar__planned { background: var(--rmap-planned); }
.rmap .rmap-sbar__ongoing { background: var(--rmap-ongoing); }
.rmap .rmap-sbar__done { background: var(--rmap-done); }
.rmap .rmap-sbar i.is-dim { opacity: .25; }
.rmap .rmap-sleg { display: grid; gap: 4px; }
.rmap button.rmap-sl:not(#rmap-x) { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; border-radius: 8px; font-size: 14px; transition: background-color .2s; }
.rmap button.rmap-sl:not(#rmap-x):hover { background: var(--rmap-soft); }
.rmap button.rmap-sl[aria-pressed="true"]:not(#rmap-x) { background: #eaf1f9; box-shadow: inset 3px 0 0 var(--rmap-navy); }
.rmap .rmap-sl span { flex: 1 1 auto; }
.rmap .rmap-sl b { color: var(--rmap-navy); font-variant-numeric: tabular-nums; }
.rmap .rmap-c--planned { color: var(--rmap-planned); }
.rmap .rmap-c--ongoing { color: var(--rmap-ongoing); }
.rmap .rmap-c--done { color: var(--rmap-done); }

.rmap .rmap-years { display: flex; align-items: flex-end; gap: 8px; height: 120px; }
.rmap button.rmap-yr:not(#rmap-x) { display: flex; flex: 1 1 0; flex-direction: column; align-items: stretch; gap: 6px; max-width: 72px; height: 100%; }
.rmap .rmap-yr__col { display: flex; flex: 1 1 auto; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.rmap .rmap-yr__col b { color: var(--rmap-navy); font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.rmap .rmap-yr__col i { display: block; width: 100%; height: 4%; border-radius: 6px 6px 2px 2px; background: #b9cce2; transform-origin: bottom; transition: height .7s cubic-bezier(.2, .8, .2, 1), background-color .2s; }
.rmap button.rmap-yr:not(#rmap-x):hover .rmap-yr__col i { background: #7fa3cc; }
.rmap button.rmap-yr[aria-pressed="true"]:not(#rmap-x) .rmap-yr__col i { background: var(--rmap-green); }
.rmap button.rmap-yr.is-dim:not(#rmap-x) { opacity: .55; }
.rmap .rmap-yr__y { color: var(--rmap-muted); font-size: 12px; font-weight: 700; text-align: center; }

.rmap .rmap-depts { display: grid; gap: 4px; }
.rmap button.rmap-hb:not(#rmap-x) { display: grid; grid-template-columns: minmax(0, 9em) minmax(0, 1fr) 2em; align-items: center; gap: 8px; width: 100%; padding: 5px 6px; border-radius: 8px; font-size: 13px; transition: background-color .2s; }
.rmap button.rmap-hb:not(#rmap-x):hover { background: var(--rmap-soft); }
.rmap button.rmap-hb[aria-pressed="true"]:not(#rmap-x) { background: #eaf1f9; }
.rmap .rmap-hb__t { height: 10px; }
.rmap .rmap-hb__t i { display: block; height: 100%; min-width: 2px; border-radius: 0 4px 4px 0; background: var(--rmap-planned); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.rmap .rmap-hb b { color: var(--rmap-navy); text-align: right; font-variant-numeric: tabular-nums; }
.rmap .rmap-muted { color: var(--rmap-muted); }
.rmap .rmap-hint { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--rmap-soft); color: var(--rmap-muted); font-size: 13px; }

/* Hudud paneli */
.rmap .rmap-panel { position: relative; max-height: 560px; overflow: auto; padding: 16px 18px; border: 1px solid var(--rmap-line); border-radius: 16px; background: #fff; animation: rmapPanel .3s ease; }
.rmap .rmap-panel:focus { outline: none; }
@keyframes rmapPanel { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.rmap .rmap-panel__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.rmap .rmap-panel__ic { display: inline-flex; flex: 0 0 42px; align-items: center; justify-content: center; height: 42px; border-radius: 12px; background: #e8f0fb; color: var(--rmap-navy); font-size: 18px; }
.rmap .rmap-panel__head > div { flex: 1 1 auto; min-width: 0; }
.rmap .rmap-panel__t { margin: 0 0 2px; color: var(--rmap-navy); font-size: 18px; font-weight: 800; line-height: 1.25; }
.rmap .rmap-panel__s { margin: 0; color: var(--rmap-muted); font-size: 13px; }
.rmap button.rmap-x:not(#rmap-x) { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: var(--rmap-muted); font-size: 18px; }
.rmap button.rmap-x:not(#rmap-x):hover { background: var(--rmap-soft); color: var(--rmap-navy); }
.rmap .rmap-pstat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px; }
.rmap .rmap-pstat li { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 10px; background: var(--rmap-soft); }
.rmap .rmap-pstat b { font-size: 20px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.rmap .rmap-pstat span { color: var(--rmap-muted); font-size: 12px; font-weight: 600; }
.rmap .rmap-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 0; padding: 24px 8px; color: var(--rmap-muted); font-size: 14px; text-align: center; }
.rmap .rmap-empty i { color: #b7c3d3; font-size: 26px; }

/* Mavzu kartochkasi (panel va roʻyxat) */
.rmap .rmap-item { padding: 12px 0; border-top: 1px dashed var(--rmap-line); }
.rmap .rmap-items .rmap-item:first-child { border-top: 0; }
.rmap .rmap-st { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 5px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.rmap .rmap-st--planned { background: rgba(74, 127, 181, .12); color: #2f5f92; }
.rmap .rmap-st--ongoing { background: rgba(199, 125, 0, .13); color: #8a5600; }
.rmap .rmap-st--done { background: rgba(30, 158, 87, .12); color: #157a43; }
.rmap .rmap-item__t { margin: 0; color: var(--rmap-text); font-size: 15px; font-weight: 700; line-height: 1.45; }
.rmap .rmap-item__t a { color: var(--rmap-navy); text-decoration: none; }
.rmap .rmap-item__t a:hover { color: var(--rmap-green); text-decoration: underline; }
.rmap .rmap-item__m { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 6px 0 0; color: var(--rmap-muted); font-size: 13px; }
.rmap .rmap-item__m span { display: inline-flex; align-items: center; gap: 5px; }
.rmap .rmap-item__f { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--rmap-green); font-size: 13px; font-weight: 700; }

/* Ixcham rejim: «Barcha tadqiqotlar» havolasi */
.rmap .rmap-more { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 16px; border-radius: 999px; background: var(--rmap-navy); color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; transition: background-color .2s; }
.rmap .rmap-more:hover { background: var(--rmap-navy-2); color: #fff; }
.rmap .rmap-more__n { padding: 2px 8px; border-radius: 999px; background: var(--rmap-green); font-variant-numeric: tabular-nums; }

/* Toʻliq rejim: roʻyxat */
.rmap .rmap-list { margin-top: 18px; padding: 16px 18px; border: 1px solid var(--rmap-line); border-radius: 20px; background: #fff; }
.rmap .rmap-list__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 6px; }
.rmap .rmap-list__h { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--rmap-navy); font-size: 19px; font-weight: 800; }
.rmap .rmap-list__n { padding: 2px 9px; border-radius: 999px; background: var(--rmap-navy); color: #fff; font-size: 13px; }
.rmap .rmap-list__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rmap .rmap-search { position: relative; display: flex; align-items: center; margin: 0; }
.rmap .rmap-search i { position: absolute; left: 12px; color: var(--rmap-muted); font-size: 14px; }
.rmap .rmap-search input:not(#rmap-x) { width: 300px; max-width: 100%; height: 40px; margin: 0; padding: 0 12px 0 36px; border: 1px solid #d9dfe7; border-radius: 10px; background: #fff; color: var(--rmap-text); font: inherit; font-size: 14px; }
.rmap .rmap-search input:not(#rmap-x):focus { border-color: var(--rmap-green); box-shadow: 0 0 0 3px rgba(30, 158, 87, .15); outline: none; }
.rmap button.rmap-csv:not(#rmap-x) { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border: 1px solid var(--rmap-line); border-radius: 10px; background: #fff; color: var(--rmap-navy); font-size: 14px; font-weight: 700; }
.rmap button.rmap-csv:not(#rmap-x):hover { border-color: var(--rmap-green); color: var(--rmap-green); }
.rmap .rmap-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.rmap .rmap-rows .rmap-item { padding: 12px 0; }
.rmap button.rmap-loadmore:not(#rmap-x) { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 44px; margin-top: 8px; border: 1px dashed #c9d3e0; border-radius: 12px; color: var(--rmap-navy); font-size: 14px; font-weight: 700; transition: background-color .2s, border-color .2s; }
.rmap button.rmap-loadmore:not(#rmap-x):hover { border-color: var(--rmap-green); background: rgba(30, 158, 87, .05); }
.rmap .rmap-nothing { margin: 0; padding: 20px 0; color: var(--rmap-muted); text-align: center; }

/* ---------- Moslashuvchanlik ---------- */
@media (max-width: 1199px) {
	.rmap .rmap-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
	.rmap .rmap-body { grid-template-columns: minmax(0, 1fr); }
	.rmap .rmap-over { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rmap .rmap-over .rmap-card--dept, .rmap .rmap-hint { grid-column: 1 / -1; }
	.rmap .rmap-rows { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
	.rmap { padding-top: 28px; }
	.rmap .rmap-stage { padding: 8px; border-radius: 14px; }
	.rmap .rmap-over { grid-template-columns: minmax(0, 1fr); }
	.rmap .rmap-bar { flex-direction: column; align-items: stretch; }
	.rmap .rmap-sels .rmap-sel { flex: 1 1 140px; }
	.rmap select.rmap-select:not(#rmap-x) { width: 100%; min-width: 0; max-width: none; height: 44px; }
	.rmap button.rmap-chip:not(#rmap-x) { min-height: 44px; }
	.rmap .rmap-kpi { padding: 12px; }
	.rmap .rmap-kpi b { font-size: 24px; }
	.rmap .rmap-kpi__ic { width: 36px; height: 36px; font-size: 16px; }
	.rmap .rmap-ring { display: none; }
	.rmap .rmap-scale { position: static; flex-direction: row; flex-wrap: wrap; align-items: center; margin-top: 6px; background: none; }
	.rmap .rmap-search, .rmap .rmap-search input:not(#rmap-x) { width: 100%; }
	.rmap .rmap-list__tools { width: 100%; }
	.rmap .rmap-list__tools .rmap-sel { flex: 1 1 auto; }
	/* panel — pastdan chiqadigan oyna */
	.rmap--sheet .rmap-panel {
		position: fixed; right: 0; bottom: 0; left: 0; z-index: 1050; max-height: 72vh; border-radius: 20px 20px 0 0;
		box-shadow: 0 -12px 34px rgba(0, 0, 0, .22); animation: rmapSheet .3s cubic-bezier(.2, .8, .2, 1);
	}
	.rmap--sheet .rmap-panel::before { content: ""; display: block; width: 40px; height: 4px; margin: -4px auto 12px; border-radius: 4px; background: #d3d9e2; }
	@keyframes rmapSheet { from { transform: translateY(100%); } to { transform: none; } }
}
@media (max-width: 575px) {
	.rmap .rmap-kpis { gap: 8px; }
	.rmap .rmap-kpi { flex-direction: column; align-items: flex-start; gap: 8px; }
	.rmap .rmap-pstat b { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
	.rmap *, .rmap *::before, .rmap *::after { animation: none; transition: none; }
	.rmap .rmap-region, .rmap .rmap-kpi, .rmap .rmap-badge.is-on { opacity: 1; transform: none; }
	.rmap .rmap-line { stroke-dashoffset: 0; }
}
@media print {
	.rmap .rmap-bar, .rmap .rmap-back, .rmap .rmap-csv, .rmap .rmap-search { display: none; }
	.rmap .rmap-region, .rmap .rmap-kpi, .rmap .rmap-badge.is-on { opacity: 1; transform: none; }
}
