#screen-colors .color-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,1fr);gap:16px}
#screen-colors .card{min-width:0}
.color-fields{display:grid;gap:12px;border:0;padding:0;margin:0;min-width:0}
.color-fields label{display:grid;gap:4px}
.color-toolbar,.color-shared-controls{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:16px}
.color-toolbar>input{flex:1;min-width:150px}
.color-check{display:flex!important;align-items:center;gap:8px}
.color-check input[type=checkbox]{width:18px;height:18px;margin:0;accent-color:#0b5d49}
.color-shared-controls label{display:flex;gap:8px;align-items:center}
.color-shared-controls input[type=number]{width:90px}
.color-swatch{display:inline-block;width:24px;height:24px;min-width:24px;border:1px solid #9ca3af;border-radius:4px;vertical-align:middle}
.color-picker{display:grid;gap:6px;min-width:0}
.combo-item .color-swatch{width:18px;height:18px;min-width:18px;margin-right:8px}
.color-choice{display:flex;gap:8px;align-items:center;min-width:0}
.color-choice select{min-width:0;flex:1}
#colors-status{padding:0 16px}
#color-form input[type=color]{width:72px;height:36px;padding:2px}
@media(max-width:760px){#screen-colors .color-layout{grid-template-columns:minmax(0,1fr)}}
/* Виды цен — в том же стиле, что и цвета. */
#screen-pricekinds .color-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(300px,1fr);gap:16px}
#screen-pricekinds .card{min-width:0}
#pricekinds-status{padding:0 16px}
.pk-row2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media(max-width:760px){#screen-pricekinds .color-layout{grid-template-columns:minmax(0,1fr)}}
/* Карточка номенклатуры: цены по видам цен и история. */
.kp-table{width:100%}
.kp-table .num{text-align:right;white-space:nowrap}
.kp-actions{margin:8px 0 0;display:flex;gap:8px;align-items:center}
/* Установка цен: выбор видов цен — колонок документа. */
.pst-kinds{display:flex;flex-wrap:wrap;gap:6px 18px}
.pst-kind{display:inline-flex;flex:0 0 auto;width:auto;gap:6px;align-items:center;white-space:nowrap;font-size:var(--text-sm);margin:0}
.pst-kind input{width:auto;margin:0}
.pst-import-errors{margin:6px 0 0;padding-left:18px;max-height:220px;overflow:auto;font-size:12px;color:var(--danger,#b42318)}
.color-langs{display:grid;gap:4px}
/* Разделы каталога сайта — в том же стиле, что и виды цен; выбор разделов в группе и позиции. */
#screen-catsections .color-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(300px,1fr);gap:16px}
#screen-catsections .card{min-width:0}
#catsec-status{padding:0 16px}
#screen-catsections .cs-name{display:inline-block}
@media(max-width:760px){#screen-catsections .color-layout{grid-template-columns:minmax(0,1fr)}}
.cs-chips{display:flex;flex-wrap:wrap;gap:6px;align-items:center;min-width:0}
.cs-chip{display:inline-flex;align-items:center;gap:4px;max-width:100%;padding:3px 8px;border:1px solid var(--line);border-radius:12px;
  background:var(--bg-soft);font-size:13px;overflow-wrap:anywhere}
.cs-chip.cs-locked{background:#e6f1ec;border-color:#b9d7c8}
.cs-x{border:0;background:none;padding:0 2px;cursor:pointer;font:inherit;line-height:1;color:var(--ink-3)}
.cs-panel{margin-top:8px;border:1px solid var(--line);border-radius:8px;padding:8px;background:var(--surface);min-width:0}
.cs-panel .cs-q{width:100%;margin-bottom:6px}
.cs-tree{max-height:280px;overflow:auto}
.cs-opt{display:flex!important;align-items:center;gap:8px;padding:3px 0;cursor:pointer;overflow-wrap:anywhere}
.cs-opt input{width:16px;height:16px;flex:none;margin:0;accent-color:#0b5d49}
#catsec-body td:first-child{white-space:normal;min-width:200px}
#catsec-body .cell-sub{display:block}

/* Разделы каталога: фото подраздела для сайта */
.csd-photo-tile{display:flex;gap:10px;align-items:center;min-width:0}
.csd-photo-tile>div{min-width:0}
.if-thumb.csd-photo-img{width:96px;height:72px;flex:0 0 auto;display:flex;align-items:center;justify-content:center}
.csd-photo-name{max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bl-img{background:repeating-conic-gradient(#eee 0 25%,#fff 0 50%) 0 0/12px 12px}
.if-thumb.bl-img img{object-fit:contain}
/* «Администрирование → Google Диск → Архив кода»: таблица архивов прокручивается внутри, карточка не шире экрана. */
#ca-card{min-width:0;max-width:100%}
#ca-card .table-wrap{overflow-x:auto;max-width:100%}
#ca-card .grid>*{min-width:0}
#ca-card .card-head{flex-wrap:wrap;gap:8px}
#ca-card .card-head .row-actions{flex-wrap:wrap}
