/* go7.uz — CRM «Сеть go7»: находки в листе ожидания и заявке, вкладка «Цены рынка» (assets/js/net.js) */
:root { --net: #0E7490; --net-soft: rgba(8,145,178,.08); --net-line: rgba(8,145,178,.24); }
html[data-theme="dark"] { --net: #67E8F9; --net-soft: rgba(34,211,238,.08); --net-line: rgba(34,211,238,.24); }

/* ---------- Строка тура ---------- */
.c4-o { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 9px 0; }
.c4-o + .c4-o { box-shadow: 0 -1px 0 var(--line); }
.c4-om { flex: 1 1 auto; min-width: 0; }
.c4-om b { display: block; font-size: 13.5px; line-height: 1.3; overflow-wrap: anywhere; }
.c4-om b i { font-style: normal; font-weight: 700; color: var(--ink-3); }
.c4-om small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 1px; overflow-wrap: anywhere; }
.c4-src { color: var(--muted) !important; }
.c4-opn { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--net); }
.c4-opn .ico { flex: none; }
.c4-pr { flex: none; display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.c4-pr em { font-style: normal; font-weight: 800; font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.c4-pr s { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.c4-pr small { font-size: 11px; color: var(--muted); white-space: nowrap; }
.c4-pr .c4-save { color: #047857; font-weight: 800; }
html[data-theme="dark"] .c4-pr .c4-save { color: #6EE7B7; }
.c4-o .c4-send { flex: none; }
.c4-o.sm .c4-send span { display: none; }
.c4-o.sm .c4-send { padding-inline: 9px; }

/* ---------- Лист ожидания ---------- */
.c4-wnet { padding: 8px 12px 4px; border-radius: 12px; background: var(--net-soft); box-shadow: inset 0 0 0 1px var(--net-line); min-width: 0; }
.c4-wnet h5 { display: flex; align-items: center; gap: 6px; margin: 2px 0 2px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--net); }
.c4-wnet h5 b { margin-left: auto; font-size: 11.5px; padding: 1px 8px; border-radius: 999px; background: var(--net-line); color: var(--net); }
.c4-more { display: inline-flex; align-items: center; gap: 6px; margin: 2px 0 6px; padding: 4px 0; border: 0; background: none; color: var(--net); font: inherit; font-size: 12.5px; font-weight: 800; cursor: pointer; text-decoration: none !important; }
.c4-more:hover span { text-decoration: underline; }

/* ---------- Заявка ---------- */
.c4-dnet h4 .ico { color: var(--net); }
.c4-sub { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin: 6px 0 0; font-size: 12.5px; font-weight: 800; color: var(--ink-2); }
.c4-sub small { font-weight: 600; color: var(--muted); }
.c4-sub.hot { color: #047857; }
html[data-theme="dark"] .c4-sub.hot { color: #6EE7B7; }
.c4-need { display: flex; gap: 6px; align-items: flex-start; margin: 4px 0 0; }
.c4-need .ico { flex: none; margin-top: 2px; color: var(--net); }

/* ---------- Окна ---------- */
.modal.c4-lmodal { max-width: 720px; width: calc(100vw - 32px); }
.c4-lnote { display: flex; gap: 6px; align-items: flex-start; margin: 0 0 8px; }
.c4-lnote .ico { flex: none; margin-top: 2px; color: var(--net); }
.c4-list { min-width: 0; }
.c4-pnote { margin: 10px 0 0; }

/* ---------- Цены рынка ---------- */
.c4-intro .ico { color: var(--net) !important; }
.c4-filters { display: grid; grid-template-columns: minmax(180px, 1.4fr) minmax(140px, 1fr) auto minmax(130px, 1fr) minmax(110px, .8fr) minmax(110px, .8fr); gap: 10px; align-items: end; margin-bottom: 12px; }
.c4-filters .field { margin: 0; min-width: 0; }
.c4-seg { display: flex; flex-wrap: nowrap; }
.c4-seg button { white-space: nowrap; }
.c4-kpi .crm-k small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.c4-kpi .crm-k.ok b { color: #047857; }
html[data-theme="dark"] .c4-kpi .crm-k.ok b { color: #6EE7B7; }
.c4-empty { text-align: center; padding: 36px 20px; }
.c4-empty > .ico { color: var(--net); }
.c4-empty h3 { margin: 10px 0 6px; }
.c4-empty p { max-width: 520px; margin: 0 auto 14px; }

.c4-tbl { padding: 6px 0; overflow: hidden; }
.c4-tbl h4 { display: flex; align-items: center; gap: 7px; margin: 8px 16px 6px; font-size: 15px; }
.c4-tbl h4 .ico { color: var(--net); }
.c4-tr { display: grid; grid-template-columns: minmax(180px, 2fr) repeat(4, minmax(70px, 1fr)) minmax(120px, 1.4fr); gap: 10px; align-items: center; width: 100%; padding: 10px 16px;
  border: 0; background: none; font: inherit; color: inherit; text-align: left; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.c4-tr + .c4-tr { box-shadow: 0 -1px 0 var(--line); }
.c4-tr.h .c4-unit { display: block; font-size: 10px; letter-spacing: 0; text-transform: none; font-weight: 700; }
.c4-tr.h { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding-block: 6px; }
button.c4-tr { cursor: pointer; }
button.c4-tr:hover { background: var(--surface-2); }
.c4-dn { display: flex; align-items: center; gap: 6px; font-weight: 800; min-width: 0; overflow-wrap: anywhere; }
.c4-dn .ico { flex: none; color: var(--accent); }
.c4-tdop { color: var(--net); font-weight: 700; overflow-wrap: anywhere; }
.c4-ops .c4-tr { grid-template-columns: minmax(140px, 2fr) repeat(3, minmax(64px, 1fr)); }

.c4-dhead { display: flex; align-items: center; gap: 12px; margin: 4px 0 12px; flex-wrap: wrap; }
.c4-dhead h3 { margin: 0; font-size: 20px; }
.c4-stars { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 12px; }
.c4-star { display: block; text-align: left; font: inherit; color: inherit; border: 0; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); padding: 11px 14px; cursor: pointer; }
.c4-star.on { box-shadow: 0 0 0 2px var(--net), var(--shadow); }
.c4-star b { font-size: 16px; color: #B45309; }
html[data-theme="dark"] .c4-star b { color: #FCD34D; }
.c4-star span { margin-left: 8px; font-weight: 800; }
.c4-star span i { font-style: normal; font-weight: 600; font-size: 12px; color: var(--muted); }
.c4-star small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }

.c4-chart { padding: 14px 16px 10px; margin-bottom: 12px; min-width: 0; }
.c4-ch { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.c4-ch h4 { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 15px; }
.c4-ch h4 .ico { color: var(--net); }
.c4-bars { display: flex; align-items: flex-end; gap: 6px; height: 170px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.c4-bar { flex: 0 0 34px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.c4-bar i { display: block; width: 22px; border-radius: 6px 6px 2px 2px; background: var(--net-line); transition: background .15s; }
.c4-bar:hover i { background: var(--net); }
.c4-bar.best i { background: #10B981; }
.c4-bar span { font-size: 10.5px; color: var(--muted); margin-top: 4px; white-space: nowrap; }
.c4-bar em { order: -1; font-style: normal; font-size: 10px; font-weight: 800; color: var(--ink-3); margin-bottom: 3px; white-space: nowrap; }
.c4-bar.best em { color: #047857; }
html[data-theme="dark"] .c4-bar.best em { color: #6EE7B7; }

.c4-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 12px; align-items: start; }
.c4-offers { padding: 8px 16px 6px; min-width: 0; }
.c4-offers h4 { display: flex; align-items: center; gap: 7px; margin: 6px 0 2px; font-size: 15px; }
.c4-offers h4 .ico { color: var(--net); }

@media (max-width: 1100px) {
  .c4-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .c4-filters > :nth-child(3) { grid-column: span 3; }
  .c4-cols { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .c4-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c4-filters > :nth-child(1), .c4-filters > :nth-child(3) { grid-column: span 2; }
  .c4-seg { overflow-x: auto; }
  .c4-tr, .c4-ops .c4-tr { grid-template-columns: 1fr 1fr; gap: 4px 12px; }
  .c4-tr.h { display: none; }
  .c4-tr > :first-child { grid-column: span 2; }
  .c4-tr > [data-l]::before { content: attr(data-l) ": "; color: var(--muted); font-size: 12px; font-weight: 600; }
  .c4-o { gap: 8px; }
  .c4-o .c4-send span { display: none; }
  .c4-o .c4-send { padding-inline: 9px; }
}

/* «Только отели» (без перелёта): переключатель вида и метка в строке тура */
.c4-kind { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 14px; }
.c4-kind .seg button { display: inline-flex; align-items: center; gap: 6px; }
.c4-kind p { display: flex; align-items: flex-start; gap: 6px; margin: 0; flex: 1 1 280px; }
.c4-kind p svg { flex: none; margin-top: 2px; }
.c4-src .c4-ho { color: #1F4FA3; font-weight: 600; }
html[data-theme="dark"] .c4-src .c4-ho { color: #9DBBFF; }

/* Возраст цены: свежая — серым, старше 48 часов — оранжевым (могла измениться) */
.c4-age { color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.c4-age > i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--line-2, #c9c2b6); }
.c4-age.f1 > i { background: #16A34A; box-shadow: 0 0 0 3px rgba(22,163,74,.15); }
.c4-age.f2 > i { background: #EAB308; }
.c4-age.f3 > i { background: #A8A29E; }
.c4-old { display: inline-flex; align-items: center; gap: 4px; color: #B45309; font-weight: 700; }
.c4-old .ico, .c4-old svg { flex: none; }
html[data-theme="dark"] .c4-old { color: #FBBF24; }

/* Выбор направления: страны и курорты с поиском (GO7NET.destPicker) */
.g7dp { position: relative; min-width: 0; }
.g7dp-btn { display: flex !important; align-items: center; gap: 8px; width: 100%; text-align: left; cursor: pointer; }
.g7dp-btn .g7dp-v { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g7dp-btn.on .g7dp-v { font-weight: 700; }
.g7dp-ch { display: inline-flex; color: var(--muted); transform: rotate(90deg); transition: transform .15s; }
.g7dp-btn[aria-expanded="true"] .g7dp-ch { transform: rotate(-90deg); }
.g7dp-pop { position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; width: max(100%, 340px); max-width: min(440px, calc(100vw - 32px)); background: var(--surface); border-radius: 14px;
  box-shadow: 0 12px 40px rgba(11, 31, 58, .18), 0 0 0 1px var(--line); overflow: hidden; }
.g7dp-q { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--muted); }
.g7dp-q input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 15px; color: var(--ink); }
.g7dp-list { max-height: min(420px, 60vh); overflow-y: auto; padding: 6px; overscroll-behavior: contain; }
.g7dp-o { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; cursor: pointer; font-size: 14px; line-height: 1.3; }
.g7dp-o:hover, .g7dp-o.act { background: var(--bg); }
.g7dp-o.sel { background: var(--accent-soft); color: var(--accent-ink); }
.g7dp-o .g7dp-t { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 6px; }
.g7dp-o .g7dp-t > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g7dp-o b { font-size: 12px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.g7dp-o.sel b { color: inherit; }
.g7dp-o .ico { flex: none; }
.g7dp-all { font-weight: 700; }
.g7dp-g { padding-top: 4px; margin-top: 4px; border-top: 1px solid var(--line); }
.g7dp-g:first-child { border-top: 0; margin-top: 0; }
.g7dp-c { font-weight: 800; }
.g7dp-c i { font-style: normal; width: 22px; flex: none; }
.g7dp-c small { font-weight: 500; font-size: 12px; color: var(--muted); }
.g7dp-i { padding-left: 40px; }
.g7dp-none { font-style: italic; }
.g7dp-empty { margin: 0; padding: 18px 10px; text-align: center; color: var(--muted); font-size: 14px; }
html[data-theme="dark"] .g7dp-o.sel { background: rgba(255, 90, 54, .16); }
@media (max-width: 640px) { .g7dp-pop { max-width: none; } .g7dp-list { max-height: 55vh; } }

/* Таблица направлений: страна — строкой-заголовком, курорты — с отступом */
.c4-tr.c4-co { background: var(--surface-2); }
.c4-tr.c4-co .c4-dn { font-size: 15px; }
.c4-tr.c4-co .c4-dn small { font-weight: 500; font-size: 12px; color: var(--muted); margin-left: 4px; }
.c4-flag { font-style: normal; width: 22px; flex: none; }
.c4-tr.c4-ci .c4-dn { font-weight: 600; padding-left: 28px; }
.c4-tr.c4-ci .c4-dn .ico { color: var(--muted); }
.c4-tr.c4-none .c4-dn span { font-style: italic; color: var(--muted); font-weight: 500; }
@media (max-width: 720px) { .c4-tr.c4-ci .c4-dn { padding-left: 14px; } }

/* Перелёт тура (по данным туроператора) */
.nf-fly { display: grid; gap: 3px; margin: 2px 0; padding: 7px 9px; border-radius: 10px; background: color-mix(in srgb, #2a78d6 6%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, #2a78d6 18%, var(--line)); font-size: 12px; }
.nf-h { display: flex; align-items: center; gap: 5px; color: var(--ink); }
.nf-h .ico { color: #2a78d6; }
.nf-h b { font-size: 12.5px; }
.nf-night { margin-left: auto; font-style: normal; font-size: 10.5px; font-weight: 800; padding: 1px 6px; border-radius: 999px; background: var(--warn-soft, #FFF4DF); color: var(--warn, #A0560A); }
.nf-leg { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; color: var(--ink-2); }
.nf-leg > span { width: 52px; flex: none; color: var(--muted); font-size: 11.5px; }
.nf-leg b { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.nf-leg small { color: var(--muted); font-size: 11px; }
.nf-bag { color: var(--muted); font-size: 11px; }
html[data-theme="dark"] .nf-fly { background: color-mix(in srgb, #2a78d6 12%, var(--surface)); }
