* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f4f6f9; color: #1f2937; line-height: 1.5;
}
.hidden { display: none !important; }

/* ============ ЛОГИН ============ */
.login-screen {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  padding: 20px;
}
.login-box {
  background: #fff; border-radius: 14px; padding: 36px 32px;
  width: 100%; max-width: 380px;
  box-shadow: 0 20px 50px rgba(0,0,0,.3);
}
.login-box h1 { font-size: 22px; text-align: center; margin-bottom: 4px; color: #1e293b; }
.login-box .subtitle { text-align: center; color: #64748b; font-size: 13px; margin-bottom: 24px; }
.login-box label { display: block; font-size: 13px; color: #475569; margin-bottom: 6px; margin-top: 14px; }
.login-box input {
  width: 100%; padding: 11px 14px; border: 1px solid #cbd5e1;
  border-radius: 8px; font-size: 14px;
}
.login-box input:focus { outline: 2px solid #3b82f6; border-color: transparent; }
.login-box button {
  width: 100%; padding: 12px; background: #3b82f6; color: #fff;
  border: none; border-radius: 8px; font-size: 15px; font-weight: 600;
  cursor: pointer; margin-top: 22px; transition: background .15s;
}
.login-box button:hover { background: #2563eb; }
.login-box .hint {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid #e5e7eb;
  font-size: 12px; color: #64748b; line-height: 1.7;
}
.login-box .hint code {
  background: #f1f5f9; padding: 1px 6px; border-radius: 4px; color: #0f172a;
  font-family: ui-monospace, monospace;
}
.login-error {
  background: #fee2e2; color: #991b1b; padding: 10px 12px; border-radius: 6px;
  font-size: 13px; margin-top: 14px; display: none;
}
.login-error.show { display: block; }

/* ============ ПРИЛОЖЕНИЕ ============ */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: 240px; background: #1e293b; color: #cbd5e1;
  display: flex; flex-direction: column; flex-shrink: 0;
}
.sidebar h1 {
  font-size: 16px; padding: 20px; color: #fff;
  border-bottom: 1px solid #334155; font-weight: 600;
}

/* ============ МЕНЮ ============ */
.sidebar nav { flex: 1; padding: 10px 0; overflow-y: auto; }
.sidebar nav button {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; text-align: left;
  background: none; border: none; color: #cbd5e1;
  padding: 12px 20px; cursor: pointer; font-size: 14px;
  transition: background .25s ease, color .25s ease, padding-left .25s ease;
  position: relative;
  overflow: hidden;
}
.sidebar nav button:hover { background: #334155; color: #fff; padding-left: 24px; }
.sidebar nav button.active { background: #3b82f6; color: #fff; }
.sidebar nav button[data-page]::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: #3b82f6;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .25s ease;
}
.sidebar nav button.active::before { transform: scaleY(1); }
.sidebar nav .arrow {
  font-size: 11px; opacity: .6; margin-left: 8px;
  transition: transform .25s ease, opacity .25s ease;
  display: inline-block;
}
.sidebar nav .arrow.open { transform: rotate(90deg); opacity: 1; }
.nav-group { display: block; }
.nav-sub {
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .35s ease, opacity .25s ease;
}
.nav-sub.open { max-height: 320px; opacity: 1; }
.sidebar nav button.subitem {
  padding: 8px 20px 8px 40px;
  font-size: 13px;
  color: #94a3b8;
  background: rgba(0,0,0,.15);
}
.sidebar nav button.subitem:hover { background: #334155; color: #fff; padding-left: 44px; }
.sidebar nav button.subitem.active { background: #3b82f6; color: #fff; }

.user-box { padding: 14px 20px; border-top: 1px solid #334155; font-size: 13px; }
.user-box .uname { color: #fff; font-weight: 600; }
.user-box .urole { color: #94a3b8; font-size: 12px; margin-top: 2px; }
.user-box button {
  width: 100%; margin-top: 10px; padding: 8px;
  background: #dc2626; color: #fff; border: none; border-radius: 6px;
  font-size: 13px; cursor: pointer; font-weight: 500;
  transition: background .15s ease;
}
.user-box button:hover { background: #b91c1c; }

.main { flex: 1; padding: 24px; overflow-x: auto; }
.main > * { animation: fadeInUp .3s ease; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.main h2 { font-size: 22px; margin-bottom: 18px; }
.card {
  background: #fff; border-radius: 10px; padding: 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,.08); margin-bottom: 18px;
}
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media(max-width: 900px){ .grid-2,.grid-3,.grid-4{ grid-template-columns:1fr; } }
.stat { background:#fff; border-radius:10px; padding:16px; box-shadow:0 1px 3px rgba(0,0,0,.08); }
.stat .label { font-size:12px; color:#64748b; text-transform:uppercase; letter-spacing:.5px; }
.stat .value { font-size:22px; font-weight:700; margin-top:6px; }
.stat .value.green { color:#059669; }
.stat .value.red { color:#dc2626; }
.stat .value.blue { color:#2563eb; }
.stat .value.orange { color:#ea580c; }
.stat .value.purple { color:#7c3aed; }
label { display:block; font-size:13px; color:#475569; margin-bottom:4px; margin-top:10px; }
input, select, textarea {
  width:100%; padding:8px 10px; border:1px solid #cbd5e1;
  border-radius:6px; font-size:14px; font-family:inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus { outline:2px solid #3b82f6; border-color:transparent; }
input[type="checkbox"] { width:auto; }
input[readonly] { background:#f1f5f9; color:#64748b; }

button.btn {
  background:#3b82f6; color:#fff; border:none; border-radius:6px;
  padding:9px 16px; cursor:pointer; font-size:14px; font-weight:500;
  margin-top:12px;
  transition: background .15s ease, transform .1s ease;
}
.btn.danger{background:#dc2626;color:#fff;}
.btn.danger:hover{background:#b91c1c;}
button.btn:hover { background:#2563eb; }
button.btn:active { transform: scale(.98); }
button.btn.secondary { background:#e2e8f0; color:#1f2937; }
button.btn.secondary:hover { background:#cbd5e1; }
button.btn.danger { background:#dc2626; }
button.btn.danger:hover { background:#b91c1c; }
button.btn.small { padding:5px 10px; font-size:12px; margin-top:0; }

button.icon-btn {
  background:transparent; border:none; cursor:pointer;
  padding:4px 6px; border-radius:4px; color:#94a3b8;
  font-size:14px; line-height:1; margin:0;
  transition: background .15s ease, color .15s ease;
}
button.icon-btn:hover { background:#fee2e2; color:#dc2626; }

table { width:100%; border-collapse:collapse; font-size:13px; }
th, td { text-align:left; padding:9px 10px; border-bottom:1px solid #e5e7eb; }
th { background:#f8fafc; font-weight:600; color:#475569; font-size:12px; text-transform:uppercase; }
tr:hover td { background:#f9fafb; }

tr.repair-row.editable {
  cursor: pointer;
  user-select: none;
}
tr.repair-row.editable:hover td {
  background: #eff6ff;
  transition: background .15s ease;
}
tr.repair-row.editable:active td {
  background: #dbeafe;
}
tr.repair-row.editable td {
  transition: background .15s ease;
}

/* ============ БЕЙДЖИ ============ */
.badge {
  display:inline-block; padding:3px 10px; border-radius:999px;
  font-size:11px; font-weight:700;
  letter-spacing: .2px;
}
.badge.new { background:#dbeafe; color:#1e40af; }
.badge.progress { background:#fef3c7; color:#92400e; }
.badge.done { background:#d1fae5; color:#065f46; }
.badge.third { background:#ede9fe; color:#5b21b6; }
.badge.issued { background:#cffafe; color:#155e75; }
.badge.cash { background:#dcfce7; color:#166534; }
.badge.card { background:#e0e7ff; color:#3730a3; }
.badge.incass { background:#ffedd5; color:#9a3412; }
.badge.ads { background:#ede9fe; color:#5b21b6; }
.badge.transfer { background:#fce7f3; color:#9d174d; }
.badge.withdrawal { background:#fee2e2; color:#991b1b; }
.badge.cat { background:#f1f5f9; color:#334155; }
.badge.conflict { background:#fee2e2; color:#991b1b; }
.badge.admin { background:#fef3c7; color:#92400e; }
.badge.manager { background:#dbeafe; color:#1e40af; }
.badge.master { background:#d1fae5; color:#065f46; }
.badge.blocked { background:#f1f5f9; color:#64748b; }

.badge.st-progress { background: #fef9c3; color: #854d0e; border: 1px solid #fde047; }
.badge.st-waiting  { background: #ffedd5; color: #9a3412; border: 1px solid #fdba74; }
.badge.st-third    { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }
.badge.st-done     { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.badge.st-issued   { background: #065f46; color: #ecfdf5; border: 1px solid #047857; }

/* ============ ОБЗОР И ОТЧЁТЫ ============ */
.dashboard-header {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.dashboard-header h2 { margin: 0; font-size: 22px; }
.dashboard-period {
  display: flex; align-items: center; gap: 10px;
}
.dashboard-period label {
  margin: 0; font-size: 13px; color: #475569; font-weight: 500;
}
.dashboard-period .period-select {
  width: auto; min-width: 180px; padding: 8px 12px;
  font-size: 14px; font-weight: 500;
  background: #fff; border: 1px solid #cbd5e1; color: #1e293b;
  cursor: pointer;
}
.dashboard-period .period-select:focus {
  outline: 2px solid #3b82f6; border-color: transparent;
}
.stat-period-hint {
  font-size: 13px; color: #64748b;
  margin-top: 4px; margin-bottom: 4px;
}
.stat-period-hint b { color: #1e293b; }

.row-actions { display:flex; gap:6px; flex-wrap:wrap; }
.empty { color:#94a3b8; padding:20px; text-align:center; font-style:italic; }
.alert { padding:10px 14px; border-radius:6px; margin-bottom:12px; font-size:13px; }
.alert.error { background:#fee2e2; color:#991b1b; }
.alert.success { background:#d1fae5; color:#065f46; }
.alert.info { background:#dbeafe; color:#1e40af; }

/* ============ ФОРМЫ ============ */
.form-section-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: #64748b;
  margin: 20px 0 6px 0;
  padding-bottom: 6px;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 700;
}
.form-section-title:first-of-type { margin-top: 4px; }

.intake-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
  flex-wrap: wrap;
}
.intake-actions .btn {
  margin-top: 0;
  min-width: 180px;
}

/* ============ КНОПКИ ОПЛАТЫ ============ */
.pay-actions {
  display: flex; gap: 12px; margin-top: 16px;
  padding-top: 16px; border-top: 1px dashed #cbd5e1; flex-wrap: wrap;
}
.pay-actions .btn {
  margin-top: 0; flex: 1 1 220px; min-width: 220px;
  padding: 12px 18px; font-size: 15px; font-weight: 600;
  text-align: center; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
}
.pay-actions .btn.btn-pay-cash {
  background: linear-gradient(135deg, #e11d48 0%, #f43f5e 100%);
  color: #fff; box-shadow: 0 2px 6px rgba(225, 29, 72, .25);
}
.pay-actions .btn.btn-pay-cash:hover {
  background: linear-gradient(135deg, #be123c 0%, #e11d48 100%);
  box-shadow: 0 3px 10px rgba(225, 29, 72, .35);
}
.pay-actions .btn.btn-pay-card {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #fff; box-shadow: 0 2px 6px rgba(5, 150, 105, .25);
}
.pay-actions .btn.btn-pay-card:hover {
  background: linear-gradient(135deg, #047857 0%, #059669 100%);
  box-shadow: 0 3px 10px rgba(5, 150, 105, .35);
}
.pay-status {
  margin-top: 16px; padding: 12px 16px; border-radius: 8px;
  font-size: 14px; font-weight: 600;
}
.pay-status.paid {
  background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0;
}

/* ============ СОСТОЯНИЕ И КОМПЛЕКТНОСТЬ ============ */
.flags-two-col {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin-top: 8px;
}
@media(max-width: 700px){ .flags-two-col { grid-template-columns: 1fr; } }
.flag-block {
  background: #f8fafc; border: 1px solid #e5e7eb;
  border-radius: 8px; padding: 12px 14px;
}
.flag-block h4 {
  margin: 0 0 8px 0; font-size: 13px; color: #334155;
  font-weight: 600; text-transform: uppercase; letter-spacing: .3px;
}
.flags-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 4px 12px;
}
.flag-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: #334155; cursor: pointer;
  padding: 3px 0; user-select: none;
}
.flag-item input[type="checkbox"] {
  width: 15px; height: 15px; cursor: pointer; accent-color: #3b82f6;
}
.flag-item:hover span { color: #0f172a; }
.flags-compact { gap: 8px; margin-top: 4px; }
.flags-compact .flag-block { padding: 8px 10px; }
.flags-compact .flag-block h4 { font-size: 11px; margin-bottom: 4px; letter-spacing: .4px; }
.flags-compact .flags-grid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 2px 8px; }
.flags-compact .flag-item { font-size: 12px; padding: 1px 0; gap: 5px; }
.flags-compact .flag-item input[type="checkbox"] { width: 13px; height: 13px; }

/* ============ АВТОПОДСКАЗКИ ============ */
.suggest-wrap { position: relative; }
.suggest-list {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 20;
  background: #fff; border: 1px solid #cbd5e1; border-radius: 6px;
  margin-top: 2px; max-height: 260px; overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  animation: fadeIn .12s ease;
}
.suggest-list .suggest-item {
  padding: 8px 12px; cursor: pointer; font-size: 13px;
  border-bottom: 1px solid #f1f5f9;
  transition: background .12s ease;
}
.suggest-list .suggest-item:hover { background: #eff6ff; color: #1e40af; }
.suggest-list .suggest-item b { color: #1e293b; }
.suggest-list .suggest-item small { color: #94a3b8; display: block; font-size: 11px; margin-top: 2px; }
.suggest-list .suggest-empty {
  padding: 8px 12px; font-size: 12px; color: #94a3b8;
}

/* ============ ФОТОГРАФИИ В ФОРМЕ ТОВАРА ============ */
.photos-upload-bar {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  padding: 14px 16px;
  margin-top: 8px;
  margin-bottom: 14px;
}
.photos-upload-bar .btn {
  margin-top: 0;
}
.photos-upload-hint {
  font-size: 12px;
  color: #0c4a6e;
  margin-top: 8px;
  line-height: 1.6;
}
.photos-upload-hint b { color: #075985; }

.photos-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 8px;
}
@media(max-width: 900px){
  .photos-grid { grid-template-columns: repeat(2, 1fr); }
}
.photos-grid input {
  font-size: 12px;
}
.photo-status {
  font-size: 11px;
  margin-top: 3px;
  min-height: 14px;
  line-height: 1.3;
  word-break: break-word;
}
.photo-status.loading { color: #64748b; }
.photo-status.success { color: #059669; font-weight: 600; }
.photo-status.error   { color: #dc2626; }
.photo-preview {
  display: block;
  margin-top: 4px;
  max-width: 100%;
  max-height: 60px;
  border-radius: 4px;
  border: 1px solid #e5e7eb;
}

/* ============ ВКЛАДКИ ============ */
.tabs {
  display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap;
}
.tabs button {
  background: #e2e8f0; border: none; padding: 7px 14px;
  border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .2s ease, color .2s ease, transform .15s ease;
}
.tabs button:hover { background: #cbd5e1; }
.tabs button.active { background: #3b82f6; color: #fff; }
.tab-count {
  background: rgba(0,0,0,.1); padding: 0 6px; border-radius: 10px;
  font-size: 11px; font-weight: 700; min-width: 20px; text-align: center;
}
.tabs button.active .tab-count { background: rgba(255,255,255,.25); }

/* ============================================================
   МОДАЛЬНЫЕ ОКНА
   Усиленные стили с !important, чтобы окно гарантированно
   отображалось поверх страницы и не смещалось вниз.
   ============================================================ */
.modal-back {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0,0,0,0.5) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 9999 !important;
  padding: 20px !important;
  margin: 0 !important;
  overflow: auto !important;
  animation: fadeIn .2s ease;
}

.modal {
  background: #fff !important;
  border-radius: 10px !important;
  padding: 24px !important;
  max-width: 820px !important;
  width: 100% !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
  box-shadow: 0 20px 50px rgba(0,0,0,.3) !important;
  animation: slideUp .25s ease;
  position: relative !important;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modal h3 { margin-bottom: 12px; }

/* Печатные документы внутри модалки */
.receipt {
  font-family: "Courier New", monospace; font-size: 12px;
  border: 1px dashed #94a3b8; padding: 16px; background: #fff;
}
.receipt .center { text-align: center; }
.receipt hr { border: none; border-top: 1px dashed #94a3b8; margin: 8px 0; }
.receipt table { font-size: 12px; }
.receipt th, .receipt td { border: none; padding: 2px 4px; }
.receipt .total { font-weight: 700; font-size: 14px; }

.act {
  font-family: "Times New Roman", serif; font-size: 13px;
  padding: 24px; background: #fff; color: #000;
}
.act h2 { text-align: center; font-size: 16px; margin-bottom: 16px; }
.act .row { display: flex; justify-content: space-between; margin-bottom: 6px; }
.act table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 13px; }
.act table th, .act table td {
  border: 1px solid #000; padding: 6px 8px; text-align: left; font-size: 12px;
}
.act table th { background: #f0f0f0; }
.act .sign { display: flex; justify-content: space-between; margin-top: 32px; gap: 40px; }
.act .sign div { flex: 1; }
.act .sign .line { border-bottom: 1px solid #000; height: 24px; margin-bottom: 4px; }
.act .sign small { font-size: 11px; color: #333; }
.act .total-line { text-align: right; font-weight: 700; margin-top: 10px; }

/* ============ УВЕДОМЛЕНИЯ ============ */
.toast {
  position: fixed; bottom: 24px; right: 24px; background: #1e293b; color: #fff;
  padding: 12px 20px; border-radius: 8px; font-size: 14px; z-index: 10000;
  box-shadow: 0 4px 12px rgba(0,0,0,.2); opacity: 0; transition: opacity .3s ease;
}
.toast.show { opacity: 1; }

/* ============ КОРЗИНА ПРОДАЖ ============ */
.cart-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; }
@media(max-width: 900px){ .cart-layout { grid-template-columns: 1fr; } }
.cart-items { border: 1px solid #e5e7eb; border-radius: 8px; padding: 12px; min-height: 120px; }
.cart-item {
  display: grid; grid-template-columns: 1fr 110px 60px auto 28px;
  gap: 8px; align-items: center; padding: 8px 0;
  border-bottom: 1px dashed #e5e7eb;
}
.cart-item:last-child { border-bottom: none; }
.cart-item .name { font-size: 13px; }
.cart-item .name small { color: #94a3b8; display: block; }
.cart-item input.qty { width: 100%; padding: 4px 6px; font-size: 13px; text-align: center; }
.cart-item select.warranty { padding: 4px 6px; font-size: 12px; }
.cart-item .sum { font-weight: 600; min-width: 80px; text-align: right; font-size: 13px; }
.cart-total {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px; background: #f8fafc; border-radius: 8px; margin-top: 12px;
  font-size: 16px; font-weight: 700;
}
.product-pick {
  border: 1px solid #e5e7eb; border-radius: 8px; padding: 12px;
  max-height: 420px; overflow-y: auto;
}
.product-pick-item {
  display: grid; grid-template-columns: 1fr auto auto;
  gap: 10px; align-items: center; padding: 8px 6px;
  border-bottom: 1px solid #f1f5f9;
}
.product-pick-item:last-child { border-bottom: none; }
.product-pick-item .info { font-size: 13px; }
.product-pick-item .info small { color: #64748b; display: block; font-size: 11px; }
.product-pick-item .price { font-weight: 600; color: #2563eb; font-size: 13px; }

/* ============ ВИДЫ РАБОТ ============ */
.work-header {
  display: grid; grid-template-columns: 2fr 1fr 1fr 32px;
  gap: 8px; margin-top: 8px; margin-bottom: 2px;
  font-size: 11px; text-transform: uppercase; color: #64748b;
  font-weight: 700; letter-spacing: .4px;
}
.work-row {
  display: grid; grid-template-columns: 2fr 1fr 1fr auto;
  gap: 8px; margin-top: 8px; align-items: end;
}
.work-row button { margin-top: 0; }

/* ============ ЗАПЧАСТИ ============ */
.part-header {
  display: grid; grid-template-columns: 2fr 80px 130px 130px 130px 32px;
  gap: 8px; margin-top: 8px; margin-bottom: 2px;
  font-size: 11px; text-transform: uppercase; color: #64748b;
  font-weight: 700; letter-spacing: .4px;
}
.part-row-ext {
  display: grid; grid-template-columns: 2fr 80px 130px 130px 130px 32px;
  gap: 8px; align-items: center; margin-top: 8px;
}
.part-row-ext select,
.part-row-ext input { margin: 0; }
.part-row-ext .cell-readonly {
  background: #f1f5f9; border: 1px solid #e5e7eb; border-radius: 6px;
  padding: 8px 10px; font-size: 13px; color: #334155;
  text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.part-row-ext .cell-readonly:not(:empty) { font-weight: 600; }
.part-row-ext .icon-btn { justify-self: center; }

.total-line {
  display: flex; justify-content: space-between; padding: 10px 12px;
  background: #f8fafc; border-radius: 8px; margin-top: 12px;
  font-weight: 700; font-size: 15px;
}
.import-info {
  background: #f0f9ff; border: 1px solid #bae6fd;
  padding: 12px; border-radius: 8px; font-size: 13px; color: #0c4a6e;
  margin-top: 12px;
}
.import-info ul { margin-left: 20px; margin-top: 6px; }
.client-search { position: relative; }
.client-suggest {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 20;
  background: #fff; border: 1px solid #cbd5e1; border-radius: 6px;
  margin-top: 2px; max-height: 220px; overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  animation: fadeIn .15s ease;
}
.client-suggest .item {
  padding: 8px 12px; cursor: pointer; font-size: 13px;
  border-bottom: 1px solid #f1f5f9;
  transition: background .15s ease;
}
.client-suggest .item:hover { background: #f1f5f9; }
.client-suggest .item small { color: #94a3b8; display: block; }
.client-suggest .empty-suggest { padding: 8px 12px; font-size: 12px; color: #94a3b8; }

/* ============ ПЕЧАТЬ ============ */
@media print {
  body * { visibility: hidden; }
  .modal-back, .modal-back * { visibility: visible; }
  .modal-back { position: absolute; inset: 0; background: #fff; }
  .modal { box-shadow: none; max-height: none; }
  .intake-actions, .modal > .btn { display: none !important; }
}
.icon-btn{background:none;border:none;color:#b91c1c;cursor:pointer;font-size:16px;padding:4px 8px;}