/* =====================================================================
   "Murojaatlarni koʻrib chiqish tartibi" – appeals-procedure.css (pri.oliymajlis.uz)
   Faqat .ap* klasslari; !important ishlatilmagan. Bogʻliq fayllar: appeals-procedure.tpl, js/appeals-procedure.js
   ===================================================================== */

.ap {
	container-type: inline-size;
	--ap-navy: #0b2a4a;
	--ap-navy-2: #123b66;
	--ap-blue: #4a7fb5;
	--ap-green: #1e9e57;
	--ap-violet: #7c5cc4;
	--ap-gold: #b7791f;
	--ap-red: #c0392b;
	--ap-text: #1a1a1a;
	--ap-muted: #5c667d;
	--ap-line: #e3e8ef;
	--ap-soft: #f4f6f9;
	--ap-focus: #1a73e8;
	color: var(--ap-text);
	overflow-wrap: break-word;
}
.ap *, .ap *::before, .ap *::after { box-sizing: border-box; }
.ap ul, .ap ol { margin: 0; padding: 0; list-style: none; }
.ap li { margin: 0; padding: 0; }
.ap li::before { content: none; }
.ap a { text-decoration: none; }
.ap [hidden]:not(#ap-x) { display: none; }
.ap a:focus-visible, .ap button:focus-visible, .ap input:focus-visible, .ap select:focus-visible, .ap textarea:focus-visible, .ap [tabindex]:focus-visible { outline: 2px solid var(--ap-focus); outline-offset: 3px; }
.ap button:not(#ap-x) { width: auto; min-width: 0; height: auto; min-height: 0; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; transform: none; color: inherit; font: inherit; line-height: 1.3; letter-spacing: normal; text-transform: none; white-space: normal; text-align: left; cursor: pointer; }
.ap button:not(#ap-x)::before, .ap button:not(#ap-x)::after { display: none; }

/* ===================== Hero ===================== */
.ap .ap-hero {
	position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: center;
	overflow: hidden; padding: clamp(26px, 4vw, 48px); border-radius: 24px; color: #fff;
	background:
		radial-gradient(45% 110% at 100% 0%, rgba(183, 121, 31, .3) 0%, rgba(183, 121, 31, 0) 60%),
		radial-gradient(40% 90% at 8% 100%, rgba(30, 158, 87, .24) 0%, rgba(30, 158, 87, 0) 60%),
		linear-gradient(135deg, var(--ap-navy) 0%, var(--ap-navy-2) 100%);
}
.ap .ap-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07; background-image: repeating-linear-gradient(135deg, #fff 0 1px, transparent 1px 26px); }
.ap .ap-hero > * { position: relative; z-index: 1; }
.ap .ap-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 5px 12px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .9); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ap .ap-title { margin: 0 0 14px; color: #fff; font-size: clamp(26px, 2.2vw + 14px, 40px); font-weight: 800; line-height: 1.15; }
.ap .ap-lead { margin: 0; color: rgba(255, 255, 255, .84); font-size: clamp(15px, .3vw + 13px, 17px); line-height: 1.6; }

/* Tugmalar */
.ap .ap-btn:not(#ap-x) { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border: 1px solid transparent; border-radius: 12px; background: #fff; color: var(--ap-navy); font-size: 14px; font-weight: 700; line-height: 1.3; transition: transform .2s, background-color .2s, border-color .2s; }
.ap .ap-btn:not(#ap-x):hover { transform: translateY(-2px); color: var(--ap-navy); }
.ap .ap-btn--dark:not(#ap-x) { background: var(--ap-navy); color: #fff; }
.ap .ap-btn--dark:not(#ap-x):hover { background: var(--ap-navy-2); color: #fff; }
.ap .ap-btn--line:not(#ap-x) { border-color: var(--ap-line); background: #fff; color: var(--ap-navy); }
.ap .ap-btn--line:not(#ap-x):hover { border-color: var(--ap-blue); }
.ap .ap-btn.is-done:not(#ap-x) { background: var(--ap-green); }

/* ===================== Umumiy ===================== */
.ap .ap-sec { margin-top: clamp(32px, 4vw, 48px); scroll-margin-top: 90px; }
.ap .ap-h { margin: 0 0 14px; color: var(--ap-navy); font-size: clamp(21px, 1vw + 15px, 28px); font-weight: 800; line-height: 1.2; }
.ap .ap-sub { margin: -6px 0 16px; color: var(--ap-muted); font-size: 15px; line-height: 1.55; }

/* ===================== Qutilar ===================== */
.ap .ap-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.ap .ap-box { padding: 22px; border: 1px solid var(--ap-line); border-radius: 18px; background: #fff; }
.ap .ap-box__h { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; color: var(--ap-navy); font-size: 18px; font-weight: 800; line-height: 1.3; scroll-margin-top: 90px; }
.ap .ap-box__h i { color: var(--ap-blue); }
.ap .ap-box__p { margin: 0 0 14px; color: var(--ap-muted); font-size: 14px; line-height: 1.6; }
.ap .ap-note { margin: 14px 0 0; }

.ap .ap-laws { display: grid; gap: 10px; }
.ap .ap-laws li { padding-left: 14px; border-left: 3px solid var(--ap-line); font-size: 14px; line-height: 1.45; }
.ap .ap-laws li > span { display: block; color: var(--ap-muted); font-size: 12px; }
.ap .ap-laws a, .ap .ap-rels a { color: var(--ap-navy-2); font-weight: 700; }
.ap .ap-laws a:hover { text-decoration: underline; }
.ap .ap-rels { display: grid; gap: 8px; }
.ap .ap-rels a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid var(--ap-line); border-radius: 12px; font-size: 14px; line-height: 1.35; transition: border-color .2s, background-color .2s; }
.ap .ap-rels a:hover { border-color: var(--ap-blue); background: var(--ap-soft); }
.ap .ap-rels i { width: 18px; color: var(--ap-blue); text-align: center; }

/* {static} */
.ap .ap-static { font-size: 15px; line-height: 1.6; }
.ap .ap-static > :first-child { margin-top: 0; }
.ap .ap-static table { width: 100%; margin: 0 0 16px; border: 1px solid var(--ap-line); border-radius: 14px; border-collapse: separate; border-spacing: 0; overflow: hidden; background: #fff; font-size: 14px; }
.ap .ap-static th, .ap .ap-static td { padding: 11px 14px; border: 0; border-bottom: 1px solid var(--ap-line); text-align: left; vertical-align: top; }
.ap .ap-static table tr:not(#ap-x), .ap .ap-static table td:not(#ap-x) { background: transparent; }
.ap .ap-static th { background: var(--ap-soft); color: var(--ap-navy); font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.ap .ap-static tr:last-child td { border-bottom: 0; }
.ap .ap-static a { color: var(--ap-navy-2); text-decoration: underline; text-underline-offset: 2px; }



/* ===================== Hero: holat, tugmalar, kalitlar ===================== */
.ap .ap-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.ap .ap-btn--ghost:not(#ap-x) { border-color: rgba(255, 255, 255, .35); background: transparent; color: #fff; }
.ap .ap-btn--ghost:not(#ap-x):hover { background: rgba(255, 255, 255, .1); color: #fff; }


/* ===================== Hero raqamlar ===================== */
.ap .ap-nums { display: grid; gap: 10px; }
.ap .ap-nums li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 16px; background: rgba(255, 255, 255, .07); }
.ap .ap-nums b { flex: 0 0 48px; color: #f2c76b; font-size: 34px; font-weight: 800; line-height: 1; text-align: center; }
.ap .ap-nums span { color: rgba(255, 255, 255, .85); font-size: 14px; line-height: 1.4; }
.ap .ap-art { display: inline-block; margin-left: 4px; padding: 2px 8px; border-radius: 999px; background: #eaf1f9; color: var(--ap-navy-2); font-size: 12px; font-weight: 700; letter-spacing: 0; vertical-align: middle; white-space: nowrap; }

/* Mundarija */
.ap .ap-toc { display: flex; gap: 6px; margin-top: 20px; padding: 8px; overflow-x: auto; border: 1px solid var(--ap-line); border-radius: 14px; background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px); scrollbar-width: thin; }
.ap .ap-toc a { flex: 0 0 auto; padding: 8px 12px; border-radius: 10px; color: var(--ap-navy-2); font-size: 13px; font-weight: 700; white-space: nowrap; transition: background-color .2s, color .2s; }
.ap .ap-toc a:hover { background: var(--ap-soft); }
.ap .ap-toc a[aria-current="true"] { background: var(--ap-navy); color: #fff; }

/* Turlar */
.ap .ap-kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.ap .ap-k { display: flex; flex-direction: column; gap: 8px; padding: 20px; border: 1px solid var(--ap-line); border-top: 4px solid var(--c, var(--ap-blue)); border-radius: 18px; background: #fff; }
.ap .ap-k--ariza { --c: var(--ap-blue); }
.ap .ap-k--taklif { --c: var(--ap-gold); }
.ap .ap-k--shikoyat { --c: var(--ap-red); }
.ap .ap-k__ic { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--ap-soft); color: var(--c); font-size: 18px; }
.ap .ap-k__t { margin: 4px 0 0; color: var(--ap-navy); font-size: 18px; font-weight: 800; }
.ap .ap-k__d { flex: 1 1 auto; margin: 0; color: var(--ap-muted); font-size: 14px; line-height: 1.55; }
.ap .ap-k__m { display: flex; gap: 8px; margin: 4px 0 0; padding-top: 12px; border-top: 1px dashed var(--ap-line); font-size: 13px; line-height: 1.45; }
.ap .ap-k__m i { margin-top: 3px; color: var(--c); }
.ap .ap-k__m b { color: var(--ap-navy); font-size: 14px; }

/* Kanallar */
.ap .ap-chans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.ap .ap-c { padding: 20px; border: 1px solid var(--ap-line); border-radius: 18px; background: #fff; }
.ap .ap-c__h { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.ap .ap-c__ic { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: var(--ap-navy); color: #f2c76b; font-size: 17px; }
.ap .ap-c__h b { color: var(--ap-navy); font-size: 17px; }
.ap .ap-c dl { display: grid; gap: 10px; margin: 0; }
.ap .ap-c dl > div { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--ap-soft); }
.ap .ap-c dt { margin: 0; color: var(--ap-muted); font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.ap .ap-c dd { margin: 0; color: var(--ap-text); font-size: 14px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.ap .ap-c dd a { color: var(--ap-navy-2); font-weight: 700; }
.ap .ap-c dd a:hover { text-decoration: underline; }

/* Yoʻl */
.ap .ap-flow { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; counter-reset: apf; }
.ap .ap-f { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px 16px; border: 1px solid var(--ap-line); border-radius: 18px; background: #fff; counter-increment: apf; }
.ap .ap-f::before { content: counter(apf); position: absolute; top: 14px; right: 16px; color: #dbe4ef; font-size: 26px; font-weight: 800; line-height: 1; }
.ap .ap-f__ic { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: var(--ap-soft); color: var(--ap-blue); font-size: 17px; }
.ap .ap-f__b { display: flex; flex-direction: column; gap: 6px; }
.ap .ap-f__b b { color: var(--ap-navy); font-size: 15px; line-height: 1.3; }
.ap .ap-f__b span { color: var(--ap-muted); font-size: 13px; line-height: 1.5; }
.ap .ap-f__b .ap-art { align-self: flex-start; margin: 2px 0 0; }

/* Roʻyxatlar */
.ap .ap-box__h { flex-wrap: wrap; }
.ap .ap-box__h .ap-art { margin-left: auto; }
.ap .ap-box--warn { border-color: #f3d2cc; background: #fffaf9; }
.ap .ap-box--warn .ap-box__h i { color: var(--ap-red); }
.ap .ap-ticks { display: grid; gap: 10px; margin-bottom: 4px; }
.ap .ap-ticks li { display: flex; gap: 10px; font-size: 14px; line-height: 1.5; }
.ap .ap-ticks i { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: #e3f4ea; color: var(--ap-green); font-size: 11px; }
.ap .ap-ticks--x i { background: #fdebe8; color: var(--ap-red); }
.ap .ap-box--warn .ap-box__p { margin: 14px 0 0; }
.ap .ap-dots { display: grid; gap: 8px; }
.ap .ap-dots li { position: relative; padding-left: 18px; font-size: 14px; line-height: 1.5; }
.ap .ap-dots li::before { content: ""; position: absolute; top: .6em; left: 2px; width: 7px; height: 7px; border-radius: 50%; background: var(--ap-blue); }

/* Kalkulyator */
.ap .ap-calc__in { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 20px; margin-bottom: 16px; }
.ap .ap-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--ap-soft); }
.ap .ap-seg label { position: relative; margin: 0; cursor: pointer; }
.ap .ap-seg input { position: absolute; opacity: 0; pointer-events: none; }
.ap .ap-seg span { display: block; padding: 8px 16px; border-radius: 9px; color: var(--ap-muted); font-size: 14px; font-weight: 700; transition: background-color .2s, color .2s; }
.ap .ap-seg input:checked + span { background: #fff; box-shadow: 0 1px 4px rgba(11, 42, 74, .12); color: var(--ap-navy); }
.ap .ap-seg input:focus-visible + span { outline: 2px solid var(--ap-focus); outline-offset: 2px; }
.ap .ap-date { display: grid; gap: 6px; margin: 0; }
.ap .ap-date > label span { color: var(--ap-muted); font-size: 13px; font-weight: 700; }
.ap .ap-date input:not(#ap-x) { width: 220px; max-width: 100%; height: auto; margin: 0; padding: 10px 12px; border: 1px solid var(--ap-line); border-radius: 10px; background: #fff; box-shadow: none; color: var(--ap-text); font: inherit; font-size: 15px; }
.ap .ap-date input:not(#ap-x):focus { border-color: var(--ap-blue); outline: 0; box-shadow: 0 0 0 3px rgba(74, 127, 181, .18); }
.ap .ap-dls { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 10px; }
.ap .ap-dl { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid var(--ap-line); border-radius: 14px; background: #fff; }
.ap .ap-dl__l { color: var(--ap-muted); font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.ap .ap-dl__d { color: var(--ap-navy); font-size: 16px; font-weight: 800; line-height: 1.35; }
.ap .ap-dl__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ap .ap-dl__tags em { padding: 2px 8px; border-radius: 999px; background: #eaf1f9; color: var(--ap-navy-2); font-size: 12px; font-style: normal; font-weight: 700; }
.ap .ap-dl__tags em.is-past { background: #fdf1ef; color: var(--ap-red); }
.ap .ap-dl__tags em.is-we { background: #fff4e0; color: var(--ap-gold); }
.ap .ap-note { display: flex; gap: 8px; margin: 12px 0 0; color: var(--ap-muted); font-size: 13px; line-height: 1.5; }
.ap .ap-note i { margin-top: 3px; color: var(--ap-blue); }

/* FAQ */
.ap .ap-faq { display: grid; gap: 10px; }
.ap .ap-q { border: 1px solid var(--ap-line); border-radius: 14px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.ap .ap-q[open] { border-color: #c9d5e4; box-shadow: 0 8px 22px rgba(11, 42, 74, .06); }
.ap .ap-q summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; color: var(--ap-navy); font-size: 15px; font-weight: 700; line-height: 1.4; list-style: none; cursor: pointer; }
.ap .ap-q summary::-webkit-details-marker { display: none; }
.ap .ap-q summary i { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ap-soft); color: var(--ap-blue); font-size: 12px; transition: transform .2s; }
.ap .ap-q[open] summary i { transform: rotate(45deg); }
.ap .ap-q summary:focus-visible { outline: 2px solid var(--ap-focus); outline-offset: 2px; border-radius: 14px; }
.ap .ap-q__a { padding: 0 18px 16px; }
.ap .ap-q__a p { margin: 0; color: var(--ap-text); font-size: 15px; line-height: 1.6; }

/* ===================== Moslashuvchanlik ===================== */
@container (max-width: 1100px) {
	.ap .ap-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@container (max-width: 860px) {
	.ap .ap-hero { grid-template-columns: minmax(0, 1fr); }
	.ap .ap-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (max-width: 560px) {
	.ap .ap-flow { grid-template-columns: minmax(0, 1fr); }
	.ap .ap-cta .ap-btn:not(#ap-x) { flex: 1 1 100%; }
	.ap .ap-box__h .ap-art { margin-left: 0; }
}
@media (max-width: 575.98px) {
	.ap .ap-box { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
	.ap *, .ap *::before, .ap *::after { transition: none; animation: none; }
}
@media print {
	.ap .ap-toc, .ap .ap-cta, .ap .ap-calc { display: none; }
	.ap .ap-q__a { display: block; }
}

/* ===================== Koʻp tilli kalendar ===================== */
.ap .ap-dp { position: relative; display: inline-block; max-width: 100%; }
.ap .ap-dp__btn:not(#ap-x) { display: inline-flex; align-items: center; gap: 10px; min-width: 240px; max-width: 100%; padding: 10px 14px; border: 1px solid var(--ap-line); border-radius: 10px; background: #fff; color: var(--ap-text); font-size: 15px; font-weight: 600; text-align: left; transition: border-color .2s, box-shadow .2s; }
.ap .ap-dp__btn:not(#ap-x):hover { border-color: var(--ap-blue); }
.ap .ap-dp.is-open .ap-dp__btn:not(#ap-x) { border-color: var(--ap-blue); box-shadow: 0 0 0 3px rgba(74, 127, 181, .18); }
.ap .ap-dp__btn i { color: var(--ap-blue); }
.ap .ap-dp__btn span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap .ap-dp__chev { font-size: 11px; transition: transform .2s; }
.ap .ap-dp.is-open .ap-dp__chev { transform: rotate(180deg); }
.ap .ap-dp__pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; width: 300px; max-width: calc(100vw - 40px); padding: 14px; border: 1px solid var(--ap-line); border-radius: 16px; background: #fff; box-shadow: 0 18px 40px rgba(11, 42, 74, .16); }
.ap .ap-dp__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.ap .ap-dp__head b { color: var(--ap-navy); font-size: 15px; font-weight: 800; }
.ap .ap-dp__nav:not(#ap-x) { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; color: var(--ap-navy); text-align: center; transition: background-color .2s; }
.ap .ap-dp__nav:not(#ap-x):hover { background: var(--ap-soft); }
.ap .ap-dp__wd, .ap .ap-dp__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.ap .ap-dp__wd span { padding: 4px 0; color: var(--ap-muted); font-size: 12px; font-weight: 700; text-align: center; }
.ap .ap-dp__wd span.is-we { color: var(--ap-red); }
.ap .ap-dp__d:not(#ap-x) { display: flex; align-items: center; justify-content: center; height: 36px; border-radius: 10px; color: var(--ap-text); font-size: 14px; font-weight: 600; text-align: center; transition: background-color .15s, color .15s; }
.ap .ap-dp__d:not(#ap-x):hover { background: var(--ap-soft); }
.ap .ap-dp__d.is-we:not(#ap-x) { color: var(--ap-red); }
.ap .ap-dp__d.is-out:not(#ap-x) { color: #b6bfcc; }
.ap .ap-dp__d.is-today:not(#ap-x) { box-shadow: inset 0 0 0 1.5px var(--ap-blue); }
.ap .ap-dp__d.is-sel:not(#ap-x) { background: var(--ap-navy); color: #fff; }
.ap .ap-dp__foot { display: flex; justify-content: flex-end; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--ap-line); }
.ap .ap-dp__today:not(#ap-x) { padding: 6px 12px; border-radius: 8px; color: var(--ap-blue); font-size: 13px; font-weight: 700; }
.ap .ap-dp__today:not(#ap-x):hover { background: var(--ap-soft); }
@container (max-width: 560px) {
	.ap .ap-dp, .ap .ap-dp__btn:not(#ap-x) { width: 100%; min-width: 0; }
	.ap .ap-dp__pop { width: 100%; max-width: none; }
}
