/* Tereze.site v1.48 — compact UUID workflow and calculator controls. */

.plain-counter-v148 {
  display: inline;
  margin-left: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #0967cf;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  vertical-align: baseline;
}

.plain-counter-v148.hidden { display: none !important; }

.new-order-workspace-v148 {
  width: min(1120px, calc(100% - 24px));
  margin-inline: auto;
}

.new-order-head-v148 { margin-bottom: 10px; }
.new-order-form-v148 {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, .8fr) minmax(220px, 1.25fr) minmax(165px, .72fr);
  gap: 10px;
  align-items: end;
}

.new-order-form-v148 .order-address-v141 { grid-column: auto; }
.new-order-form-actions-v148 { display: flex; gap: 8px; align-items: center; }
.new-order-form-actions-v148 .btn { min-height: 38px; white-space: nowrap; }

.new-order-lead-list-v148 {
  margin-top: 12px;
  border-top: 1px solid #d7e2ef;
  font-size: 12px;
}

.new-order-lead-head-v148,
.new-order-lead-row-v148 {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(200px, 1.3fr) minmax(155px, .8fr) minmax(115px, .65fr) auto;
  gap: 10px;
  align-items: center;
}

.new-order-lead-head-v148 {
  padding: 8px 10px 5px;
  color: #63738a;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.new-order-lead-row-v148 {
  min-height: 48px;
  padding: 7px 10px;
  border-top: 1px solid #e1e8f1;
  background: #fff;
}

.new-order-lead-row-v148.is-active {
  box-shadow: inset 3px 0 #1671d9;
  background: #edf6ff;
}

.new-order-lead-row-v148 b,
.new-order-lead-row-v148 span,
.new-order-lead-row-v148 small { display: block; min-width: 0; }
.new-order-lead-row-v148 small { margin-top: 2px; color: #6a7a90; font-size: 10px; }
.new-order-lead-row-v148 select,
.new-order-lead-row-v148 input { min-height: 34px; font-size: 12px; }
.new-order-lead-actions-v148 { display: flex; gap: 6px; justify-content: end; }
.new-order-lead-empty-v148 { padding: 16px 10px; color: #6a7a90; }
.new-order-measurement-row-v148 { margin-top: 5px; }

#panel-orders .orders-list-toolbar { display: none !important; }

/* Canonical controls remain in the DOM for calculations, but only the v1.48
   proxy cards are visible. Values are committed back to these source inputs. */
#previewInlineControlsV142,
#sectionDimensionsV295,
#schemeSettingsV295 { display: none !important; }

.preview-editor-v295.preview-editor-v141 { grid-template-columns: minmax(0, 1fr) !important; }
.preview-card-wide .window-preview { min-height: 390px; }
.preview-card-wide .window-preview svg { width: min(100%, 760px); max-height: 500px; }

.section-controls-v148 {
  display: grid;
  grid-template-columns: repeat(var(--section-count-v148, 2), minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.section-control-card-v148 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: end;
  min-width: 0;
  padding: 9px;
  border: 1px solid #cedbea;
  border-radius: 10px;
  background: #fff;
}

.section-control-title-v148 {
  grid-column: 1;
  font-size: 11px;
  font-weight: 800;
  color: #27384f;
}

.section-control-card-v148 .field { min-width: 0; margin: 0; }
.section-control-card-v148 .field > span { font-size: 9px; }
.section-control-card-v148 input,
.section-control-card-v148 select { width: 100%; min-height: 36px; font-size: 14px; }
.section-control-card-v148 input[readonly] { background: #f5f8fb; color: #34475e; }
.section-height-field-v148 { grid-column: 1; }

.quantity-placement-v148 {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid #cedbea;
  border-radius: 10px;
  background: #fff;
}

.quantity-placement-v148 .preview-qty-v141 {
  display: grid;
  grid-template-columns: auto 130px;
  align-items: center;
  gap: 12px;
  width: auto;
  margin: 0;
}

.v148-bead { fill: none; pointer-events: none; }
.v148-gasket { fill: none; stroke: #26323b; pointer-events: none; }
.v148-panel-core { fill: #f4e6ad; opacity: .88; pointer-events: none; }
.v148-panel-skin { fill: none; stroke: rgba(255,255,255,.88); pointer-events: none; }

.cart-item-info-v148 { margin-top: 8px; border: 1px solid #d7e2ef; border-radius: 9px; }
.cart-item-info-v148 > summary { padding: 9px 11px; cursor: pointer; font-weight: 800; }
.cart-item-info-grid-v148 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; padding: 0 11px 11px; }
.cart-item-info-grid-v148 > div { padding: 7px 8px; border-radius: 7px; background: #f4f7fb; }
.cart-item-info-grid-v148 span { display: block; color: #697a90; font-size: 9px; }
.cart-item-info-grid-v148 b { display: block; margin-top: 2px; font-size: 11px; }
.cart-item-info-grid-v148 .wide { grid-column: 1 / -1; }

@media (max-width: 980px) {
  .new-order-form-v148 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .new-order-lead-head-v148 { display: none; }
  .new-order-lead-row-v148 { grid-template-columns: minmax(130px, .8fr) minmax(180px, 1.2fr) minmax(145px, .8fr) auto; }
  .new-order-lead-progress-v148 { display: none !important; }
}

@media (max-width: 700px) {
  .new-order-workspace-v148 { width: 100%; }
  .new-order-form-v148 { grid-template-columns: 1fr; }
  .new-order-form-actions-v148 { grid-column: 1; }
  .new-order-lead-row-v148 { grid-template-columns: 1fr; gap: 7px; }
  .new-order-lead-actions-v148 { justify-content: start; }
  .section-controls-v148 { grid-template-columns: 1fr; }
  .section-control-card-v148 { grid-template-columns: minmax(0, 1fr); }
  .preview-card-wide .window-preview { min-height: 300px; }
  .quantity-placement-v148 { justify-content: stretch; }
  .quantity-placement-v148 .preview-qty-v141 { grid-template-columns: 1fr 110px; width: 100%; }
  .cart-item-info-grid-v148 { grid-template-columns: 1fr; }
}


/* v1.49: deliberately simple Да/Нет deletion confirmation. */
.lead-delete-confirm-v149{position:fixed;inset:0;z-index:12000;display:grid;place-items:center;padding:18px;background:rgba(15,23,42,.32)}
.lead-delete-confirm-card-v149{width:min(340px,100%);display:grid;gap:10px;padding:18px;border:1px solid #d9e2ec;border-radius:14px;background:#fff;box-shadow:0 18px 55px rgba(15,23,42,.24);text-align:center}
.lead-delete-confirm-card-v149>b{font-size:17px}.lead-delete-confirm-card-v149>span{color:#68758b;overflow-wrap:anywhere}.lead-delete-confirm-card-v149>div{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:4px}
