/* Flowly 10.38 - conservative, scoped polish. Preserves existing gradients/tokens. */
:root {
  --fl38-radius: var(--fl33-radius,14px);
  --fl38-panel: var(--fl33-panel,#101c30);
  --fl38-border: var(--fl33-border,#2b405e);
  --fl38-text: var(--fl33-text,#e9f2ff);
  --fl38-muted: var(--fl33-muted,#a2b8d6);
  --fl38-focus: var(--fl33-focus,0 0 0 3px rgba(109,150,255,.20));
}
/* Right-hand panel remains narrow at desktop widths: use container responsive sizing. */
#channelLabelsPage .bulkGuardPanel { container-type:inline-size; min-width:0; }
#channelLabelsPage .bulkGuardConfig {
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr))!important;
  gap:12px 14px!important;
  align-items:start!important;
  min-width:0;
}
#channelLabelsPage .bulkGuardConfig > label {
  display:flex!important;
  flex-direction:column!important;
  gap:7px!important;
  min-width:0!important;
  width:auto!important;
  margin:0!important;
  color:var(--fl38-muted)!important;
  font-size:12px!important;
  line-height:1.35!important;
  font-weight:650!important;
  white-space:normal!important;
}
#channelLabelsPage .bulkGuardConfig input,
#channelLabelsPage .bulkGuardConfig select {
  display:block!important;
  box-sizing:border-box!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  height:42px!important;
  margin:0!important;
  padding:0 12px!important;
  border:1px solid var(--fl38-border)!important;
  border-radius:10px!important;
  background:#0b182b!important;
  color:var(--fl38-text)!important;
  font:inherit!important;
  font-size:13px!important;
  text-align:left!important;
  color-scheme:dark;
}
#channelLabelsPage .bulkGuardConfig input:focus-visible,
#channelLabelsPage .bulkGuardConfig select:focus-visible {
  outline:none!important;
  border-color:#6288f4!important;
  box-shadow:var(--fl38-focus)!important;
}
#channelLabelsPage .bulkGuardApply,
#channelLabelsPage .bulkGuardActions { display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:10px!important;min-width:0!important; }
#channelLabelsPage .bulkGuardApply > button { flex:0 0 auto;min-width:0; }
#channelLabelsPage .bulkGuardApply > span { flex:1 1 190px;min-width:0;line-height:1.55;overflow-wrap:anywhere; }
#channelLabelsPage .bulkGuardActions > button { flex:1 1 185px;min-width:0; }
@container (max-width:460px) {
  #channelLabelsPage .bulkGuardConfig { grid-template-columns:minmax(0,1fr)!important; }
}
/* Financials: keep numbers and currency together; scroll instead of squashing columns. */
#rsyaPage .rsya-table-scroll { overflow-x:auto!important; }
#rsyaPage .rsya-channel-table { width:100%;min-width:970px;table-layout:auto; }
#rsyaPage .rsya-channel-table th,
#rsyaPage .rsya-channel-table td { vertical-align:middle!important; }
#rsyaPage .rsya-channel-table .rsya-number,
#rsyaPage .rsya-channel-table [data-pf-col],
#rsyaPage .rsya-channel-table th:not(:first-child),
#rsyaPage .rsya-channel-table td:not(:first-child) {
  white-space:nowrap!important;
  font-variant-numeric:tabular-nums lining-nums;
  text-align:right!important;
}
#rsyaPage #rsyaFinanceStatus,
#rsyaFinanceStatus {
  display:block!important;
  margin:12px 12px 14px!important;
  padding:12px 14px!important;
  max-width:100%;
  box-sizing:border-box;
  border:1px solid rgba(93,134,203,.20);
  border-radius:10px;
  background:rgba(18,38,62,.35);
  color:var(--fl38-muted)!important;
  font-size:12px!important;
  line-height:1.55!important;
  white-space:normal!important;
  overflow-wrap:anywhere;
}
/* Graph labels: available at a glance, detailed values remain in existing tooltip. */
#promotionPage .pf-chart-bars .pf-day { position:relative; }
#promotionPage .pf-chart-bars .pf-day > span {position:relative;}
#promotionPage .pf-chart-bars .pf-day .fl38-bar-amount {
  position:absolute;
  bottom:calc(100% + 3px);
  left:50%;transform:translateX(-50%);
  white-space:nowrap;
  pointer-events:none;
  color:#bad0f2;
  font-size:10px;
  font-weight:650;
  line-height:1.1;
  font-variant-numeric:tabular-nums;
}
#promotionPage .fl38-chart-note { color:var(--fl38-muted);font-size:12px;margin:8px 0 3px; }
/* New administrative subscriber management only; no global color reset. */
#autoPromoBulkPanel .fl38-card {
  margin:16px 0 0;
  padding:16px;
  min-width:0;
  border:1px solid var(--fl38-border);
  border-radius:var(--fl38-radius);
  background:linear-gradient(145deg,rgba(18,36,60,.76),rgba(12,26,44,.88));
}
#autoPromoBulkPanel .fl38-head { display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:6px; }
#autoPromoBulkPanel .fl38-head h3 { color:var(--fl38-text);font-size:16px;font-weight:740;margin:0; }
#autoPromoBulkPanel .fl38-muted { color:var(--fl38-muted);font-size:12px;line-height:1.55;margin:0 0 12px; }
#autoPromoBulkPanel .fl38-grid { display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,165px),1fr));gap:12px; }
#autoPromoBulkPanel .fl38-grid label {display:flex;flex-direction:column;gap:6px;font-size:12px;color:var(--fl38-muted);font-weight:650;min-width:0;}
#autoPromoBulkPanel .fl38-grid input { width:100%;min-width:0;box-sizing:border-box;height:42px;padding:0 12px;border:1px solid var(--fl38-border);border-radius:10px;background:#0b182b;color:var(--fl38-text);color-scheme:dark; }
#autoPromoBulkPanel .fl38-grid input:focus-visible {outline:none;border-color:#6288f4;box-shadow:var(--fl38-focus);}
#autoPromoBulkPanel .fl38-actions {display:flex;flex-wrap:wrap;gap:10px;margin-top:14px;}
#autoPromoBulkPanel .fl38-actions button {flex:1 1 180px;min-height:40px;padding:9px 13px;border-radius:10px;font-weight:650;cursor:pointer;}
#autoPromoBulkPanel .fl38-actions button:disabled {opacity:.52;cursor:not-allowed;}
#autoPromoBulkPanel .fl38-actions .fl38-primary {background:linear-gradient(105deg,#347fe9,#6957e8);color:#fff;border:1px solid rgba(176,194,255,.22);}
#autoPromoBulkPanel .fl38-actions .fl38-secondary {background:#10233c;color:#b5cae7;border:1px solid var(--fl38-border);}
#autoPromoBulkPanel .fl38-status {min-height:20px;margin-top:11px;color:var(--fl38-muted);font-size:12px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere;}
@media (prefers-reduced-motion: reduce) {
  #autoPromoBulkPanel .fl38-actions button {transition:none!important;}
}
#promotionPage #pfChart {overflow-x:auto;overflow-y:visible;padding-top:22px;}
#promotionPage #pfChart .pf-chart-bars {min-width:var(--fl38-chart-min-width,100%);}

/* 10.38: visual hierarchy — the chart reveals its values without hover. */
#promotionPage .pf-chart-bars{min-height:148px;overflow-x:auto;overflow-y:hidden;padding:13px 4px 4px;box-sizing:border-box;align-items:flex-end}
#promotionPage .pf-chart-bars .pf-day{height:122px;flex:1 0 78px;max-width:180px;overflow:visible}
#promotionPage .pf-chart-bars .pf-day > span{max-width:45px}
#promotionPage .pf-chart-bars .pf-day .fl38-bar-amount{font-size:11px;bottom:calc(100% + 5px);color:#c7dcff;text-shadow:0 1px 3px #0b1b2e}
#promotionPage #pfChart{min-width:0}
#promotionPage #pfChart::before{content:'РАСХОДЫ ПО ДНЯМ · ₽';position:absolute;font-size:10px;font-weight:650;color:#94b0d0;letter-spacing:.045em}
#promotionPage #pfChart{position:relative;padding-top:27px}
@media(max-width:660px){#promotionPage .pf-chart-bars .pf-day{flex-basis:82px;max-width:none}}
