/*
 * Скидки (01.11.2026): переключатель «Активность» кнопкой формы в списке и карточка скидки старого вида МойСклада
 * (ms_discount_card.php). Полоса кнопок и «Удалить скидку» — классы форм справочников (m_refedit.css), список — m_crm.css.
 */
.ms-disc-toggle { display:inline-block; margin:0; }
button.ms-disc-switch { padding:0; margin:0; font:inherit; cursor:pointer; appearance:none; }
button.ms-disc-switch:focus-visible { outline:2px solid #2f9bff; outline-offset:1px; }
.ms-disc-name { color:#186999; text-decoration:none; }
.ms-disc-name:hover { color:#f88001; }

.ms-disc-card .ms-disc-bar { flex-wrap:wrap; height:auto; min-height:28px; }
.ms-disc-card .ms-disc-bar .ms-refedit-gwtbar-delete { margin-right:20px; }
.ms-disc-card .ms-disc-bar .ms-refedit-changes { margin-left:auto; }
.ms-disc-card-title { margin:24px 0 16px; padding:0; color:#222; font:700 20px/24px "Helvetica Neue",Helvetica,Arial,"Lucida Grande",sans-serif; }
.ms-disc-row { display:grid; grid-template-columns:150px 260px; align-items:center; margin:0 0 10px; }
.ms-disc-label { box-sizing:border-box; padding-right:15px; color:#222; text-align:right; }
.ms-disc-row-check { display:block; padding-left:150px; }
.ms-disc-card .ms-disc-name-input { width:260px; }
.ms-disc-tabs { margin:18px 0 0; }
.ms-disc-tab-off { color:#aaa; cursor:default; }
.ms-disc-section { display:flex; flex-direction:column; align-items:flex-start; gap:8px; margin-top:20px; }
.ms-disc-section h2 { margin:0 0 4px; padding:0; color:#cc420c; font:400 15px/18px "Helvetica Neue",Helvetica,Arial,"Lucida Grande",sans-serif; }
.ms-disc-option { display:inline-flex; align-items:center; gap:6px; }
.ms-disc-option > input { margin:0; }
.ms-disc-dependent { margin-left:22px; }
.ms-disc-choice { display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; }
.ms-disc-choice .ms-disc-dependent { margin-left:0; }
.ms-disc-rule { display:grid; grid-template-columns:150px 70px auto; gap:0 8px; align-items:center; }
.ms-disc-rule .ms-disc-label { text-align:left; padding-right:0; }
.ms-disc-rule-check { display:block; }
.ms-disc-card [data-ms-controls] input.ms-disc-num { width:60px; text-align:right; }
.ms-disc-percent { display:inline-flex; align-items:center; gap:4px; }
.ms-disc-levels { border-collapse:collapse; }
.ms-disc-levels th { padding:0 12px 4px 0; color:#888; font-weight:400; text-align:left; white-space:nowrap; }
.ms-disc-levels td { padding:0 12px 6px 0; vertical-align:middle; }
.ms-disc-add-label { display:block; margin:0 0 4px; color:#186999; }
.ms-disc-dependent:has(input[type="hidden"]:disabled) .ms-disc-add-label { color:#aaa; }
.ms-disc-items { margin:6px 0 0; padding-left:18px; color:#444; }
.ms-disc-card-note { margin:0; color:#555; }
.ms-disc-card .ms-disc-tags { width:300px; }
/* Поле в фокусе у МойСклада — светло-голубой фон и синяя рамка (живая сверка 01.11.2026). */
.ms-disc-card [data-ms-controls="gwt"] :is(input.ms-input, textarea.ms-input):focus { background-color:#eef7ff; }
@media (max-width:600px) {
  .ms-disc-row, .ms-disc-rule { grid-template-columns:1fr; }
  .ms-disc-label { text-align:left; padding-right:0; }
  .ms-disc-row-check { padding-left:0; }
  .ms-disc-card .ms-disc-name-input, .ms-disc-card .ms-disc-tags { width:100%; max-width:260px; }
}
