/* Генератор фактур онлайн (/faktura-online/). Все правила в области .inv-scope. */
.inv-herosec { padding-bottom: 36px !important; }
.hero-inner.inv-hero { grid-template-columns: minmax(0, 1fr) !important; }
.inv-hero h1 { max-width: none; }
.inv-hero .hero-sub { max-width: 780px; }

#invoice { padding-top: 32px; }
.inv-scope { --navy: #16225C; --orange: #F5A623; --orange-dark: #DC8E10; --bg: #F3F5FB; --border: #E1E4EF; --muted: #6b7194; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--navy); }
.inv-scope *, .inv-scope *::before, .inv-scope *::after { box-sizing: border-box; }
.inv-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.inv-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 22px 24px; margin-bottom: 20px; box-shadow: 0 4px 24px rgba(22, 34, 92, .06); }
.inv-card h2, .inv-card h3 { font-size: 19px; font-weight: 800; margin: 0 0 8px; color: var(--navy); display: flex; align-items: center; gap: 10px; }
.inv-card h2 .n, .inv-card h3 .n { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; background: var(--orange); color: var(--navy); font-size: 14px; align-items: center; justify-content: center; flex: none; }
.inv-help { font-size: 13.5px; line-height: 1.5; color: var(--muted); margin: 0 0 14px; }
.inv-fields { display: flex; flex-wrap: wrap; gap: 12px 14px; }
.inv-fields label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--muted); min-width: 0; }
.inv-fields .w-full { flex: 1 1 100%; } .inv-fields .w-half { flex: 1 1 calc(50% - 7px); } .inv-fields .w-third { flex: 1 1 calc(33.3% - 10px); } .inv-fields .w-twothird { flex: 2 1 calc(66.6% - 7px); } .inv-fields .w-quarter { flex: 1 1 calc(25% - 11px); }
.inv-scope input[type=text], .inv-scope input:not([type]), .inv-scope input[type=email], .inv-scope input[type=tel], .inv-scope input[type=date], .inv-scope select, .inv-scope textarea {
  width: 100%; padding: 11px 12px; font: inherit; font-size: 16px; font-weight: 500; color: var(--navy); background: #fff; border: 1.5px solid var(--border); border-radius: 10px; outline: none; transition: border-color .15s, box-shadow .15s; min-height: 46px; }
.inv-scope textarea { resize: vertical; line-height: 1.4; }
.inv-scope input:focus, .inv-scope select:focus, .inv-scope textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(245, 166, 35, .22); }
.inv-fields small { font-size: 12px; font-weight: 400; color: var(--muted); line-height: 1.4; }
.inv-line { display: flex; gap: 8px; }
.inv-find { flex: none; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--navy); background: #fff; color: var(--navy); font-weight: 700; font-size: 13px; cursor: pointer; white-space: nowrap; min-height: 46px; }
.inv-find:hover { background: var(--navy); color: #fff; }
.inv-amsg { flex: 1 1 100%; font-size: 13px; color: var(--muted); }
.inv-amsg:empty { display: none; }
.inv-amsg.ok { color: #0e7a4a; font-weight: 600; } .inv-amsg.bad { color: #c0392b; font-weight: 600; }
.inv-check { display: flex; flex-direction: row; align-items: center; gap: 8px; font-weight: 500; font-size: 13.5px; color: var(--muted); margin: 6px 0 14px; cursor: pointer; }
.inv-check input { width: 20px; height: 20px; accent-color: var(--orange); flex: none; }

/* выставитель: свёрнутый вид */
.inv-edit { margin-left: auto; border: 1.5px solid var(--navy); background: #fff; color: var(--navy); border-radius: 8px; padding: 5px 12px; font-weight: 700; font-size: 13px; cursor: pointer; }
.inv-edit:hover { background: var(--navy); color: #fff; }
.inv-sumline { font-size: 14.5px; font-weight: 600; line-height: 1.5; color: var(--navy); background: var(--bg); border-radius: 10px; padding: 10px 14px; word-break: break-word; }
.inv-sumline[hidden], .inv-edit[hidden] { display: none; }
.inv-card.collapsed .inv-body { display: none; }
.inv-two:has(.inv-card.collapsed) { grid-template-columns: minmax(0, 1fr); gap: 0; }

/* позиции */
.inv-rowhead, .inv-row { display: grid; grid-template-columns: minmax(0, 4fr) 84px 84px minmax(0, 1.3fr) minmax(0, 1.3fr) 70px; gap: 10px; align-items: center; }
.inv-rowhead { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 0 2px 6px; }
.inv-row { margin-bottom: 8px; }
.inv-row .lb { display: none; }
.inv-row .f-sum { font-weight: 700; font-size: 15px; text-align: right; white-space: nowrap; }
.inv-row .f-act { display: flex; gap: 2px; justify-content: flex-end; }
.inv-ico { width: 32px; height: 40px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 16px; border-radius: 8px; }
.inv-ico:hover { background: var(--bg); color: var(--navy); }
.inv-itemsfoot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; padding-top: 14px; border-top: 2px solid var(--orange); }
.inv-itotal { display: flex; align-items: baseline; gap: 14px; } .inv-itotal span { font-weight: 700; color: var(--muted); } .inv-itotal b { font-size: 26px; font-weight: 800; }

/* кнопки */
.inv-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 11px; font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer; border: 2px solid var(--navy); background: transparent; color: var(--navy); transition: background .15s, color .15s, border-color .15s; text-align: center; min-height: 46px; }
.inv-btn:hover { background: var(--navy); color: #fff; }
.inv-btn.primary { width: 100%; background: var(--orange); border-color: var(--orange); color: var(--navy); font-size: 18px; padding: 16px 18px; }
.inv-btn.primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: var(--navy); }
.inv-btn.primary:disabled { opacity: .6; cursor: wait; }
.inv-btn.danger { border-color: #c0392b; color: #c0392b; } .inv-btn.danger:hover { background: #c0392b; color: #fff; }
.inv-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.inv-btns.two .inv-btn { flex: 1 1 calc(50% - 5px); font-size: 13.5px; padding: 10px; }

/* итог: предпросмотр и действия */
.inv-done { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; margin-bottom: 20px; }
.inv-pvlabel { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 8px; }
.inv-sticky { position: sticky; top: 84px; margin-bottom: 0; }
.inv-errors { background: #fff4f2; border: 1.5px solid #f2b8ae; color: #a52d1c; border-radius: 12px; padding: 12px 16px; font-size: 14px; margin-bottom: 12px; }
.inv-errors ul { margin: 6px 0 0 18px; padding: 0; } .inv-errors li { margin: 2px 0; }

/* история */
.inv-h { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.inv-h:last-child { border-bottom: 0; }
.inv-h .mut { color: var(--muted); font-size: 13px; }
.inv-h button { border: 1.5px solid var(--navy); background: #fff; color: var(--navy); border-radius: 8px; padding: 6px 12px; font-weight: 700; font-size: 13px; cursor: pointer; }
.inv-h button:hover { background: var(--navy); color: #fff; }

/* предпросмотр листа (повторяет PDF) */
.inv-pv { background: #fff; border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 8px 28px rgba(47, 62, 126, .10); padding: 0 34px 26px; font-size: 13px; line-height: 1.45; color: #2B3350; overflow: hidden; }
.pv-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #EEF1FA; color: #2F3E7E; margin: 0 -34px 22px; padding: 24px 34px 22px; border-bottom: 3px solid #E9B866; }
.pv-title { font-size: 28px; font-weight: 800; letter-spacing: .12em; } .pv-sn { font-size: 12px; color: #737A9C; margin-top: 2px; }
.pv-numw { text-align: right; } .pv-numw span { display: block; font-size: 9px; font-weight: 700; letter-spacing: .09em; color: #737A9C; } .pv-numw b { font-size: 24px; font-weight: 800; color: #2F3E7E; }
.pv-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-bottom: 20px; }
.pv-h { font-size: 9px; font-weight: 800; letter-spacing: .09em; color: var(--muted); margin-bottom: 4px; } .pv-h.o { color: #7C8BC2; }
.pv-party { min-width: 0; word-break: break-word; } .pv-party b { font-size: 14.5px; display: block; color: var(--navy); margin-bottom: 3px; }
.pv-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px 14px; margin-bottom: 20px; padding: 12px 0; border-top: 1px solid #E3E7F2; }
.pv-meta span { display: block; font-size: 9px; font-weight: 800; letter-spacing: .08em; color: var(--muted); } .pv-meta b { font-size: 13.5px; color: var(--navy); }
.pv-tbl { width: 100%; border-collapse: collapse; margin-bottom: 4px; }
.pv-tbl th { text-align: left; font-size: 9px; font-weight: 800; letter-spacing: .08em; color: var(--muted); padding: 5px 8px 8px; border-bottom: 1px solid #C5CCE6; }
.pv-tbl td { padding: 11px 8px; vertical-align: top; } .pv-tbl tbody tr:nth-child(even) td { background: #F8F9FD; } .pv-tbl tbody tr:last-child td { border-bottom: 1px solid #C5CCE6; }
.pv-tbl .r { text-align: right; white-space: nowrap; } .pv-tbl th.r { text-align: right; } .pv-tbl td.r:last-child { font-weight: 700; color: var(--navy); }
.mut { color: var(--muted); }
.pv-total { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 16px 0 22px 38%; padding: 14px 18px; background: #EEF1FA; color: #2F3E7E; border-left: 3px solid #E9B866; }
.pv-total span { font-weight: 700; font-size: 13px; } .pv-total b { font-size: 21px; color: #2F3E7E; white-space: nowrap; }
.pv-pay { display: flex; justify-content: space-between; gap: 18px; align-items: center; background: #F6F7FC; border-left: 3px solid #E9B866; padding: 16px 18px; margin-bottom: 16px; }
.pv-pay.warn { color: #8a6a2c; font-size: 13px; }
.pv-payi { flex: 1; min-width: 0; } .pv-payi div:not(.pv-h) { display: flex; gap: 10px; margin-bottom: 3px; } .pv-payi div span { width: 108px; color: var(--muted); flex: none; } .pv-payi div b { color: #2F3E7E; word-break: break-all; }
.pv-qr { text-align: center; flex: none; } .pv-qr canvas { display: block; width: 112px; height: 112px; image-rendering: pixelated; margin: 0 auto 4px; background: #fff; padding: 4px; } .pv-qr b { display: block; font-size: 11px; color: var(--navy); } .pv-qr span { font-size: 9px; color: var(--muted); }
.pv-note { margin-bottom: 12px; }
.pv-fo { border-top: 1px solid #E3E7F2; padding-top: 8px; margin-top: 8px; font-size: 11px; color: var(--muted); }
.pv-brand { margin-top: 3px; font-size: 9.5px; color: #9aa0b8; }

/* нижняя панель телефона */
.inv-mbar { display: none; }

@media (max-width: 980px) {
  .inv-two { grid-template-columns: 1fr; gap: 0; }
  .inv-done { grid-template-columns: 1fr; gap: 0; }
  .inv-act { order: -1; } .inv-sticky { position: static; margin-bottom: 20px; }
  .inv-fields .w-quarter { flex: 1 1 calc(50% - 7px); }
  .inv-mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; align-items: center; gap: 14px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--border); box-shadow: 0 -6px 24px rgba(22, 34, 92, .14); transform: translateY(110%); transition: transform .2s; }
  .inv-mbar.on { transform: none; }
  .inv-mbar div { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; } .inv-mbar span { font-size: 11px; color: var(--muted); font-weight: 600; } .inv-mbar b { font-size: 18px; font-weight: 800; color: var(--navy); white-space: nowrap; }
  .inv-mbar .inv-btn { width: auto; flex: 1; font-size: 16px; padding: 12px 14px; }
  #invoice { padding-bottom: 90px; }
}
@media (max-width: 767px) {
  .inv-mbar { bottom: 63px; padding-bottom: 10px; }
  #invoice { padding-bottom: 150px; }
  body:has(.inv-mbar.on) .float-wa { bottom: 144px; }
}
@media (max-width: 640px) {
  .inv-card { padding: 18px 16px; border-radius: 14px; margin-bottom: 14px; }
  .inv-fields .w-half, .inv-fields .w-third, .inv-fields .w-twothird, .inv-fields .w-quarter { flex: 1 1 100%; }
  .inv-fields .w-third, .inv-fields .w-twothird { flex: 1 1 calc(50% - 7px); }
  .inv-fields .w-third { flex: 1 1 calc(40% - 7px); } .inv-fields .w-twothird { flex: 1 1 calc(60% - 7px); }
  .inv-rowhead { display: none; }
  .inv-row { grid-template-columns: 1fr 1fr 1fr; gap: 8px 8px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; background: #fafbff; }
  .inv-row .f-desc { grid-column: 1 / -1; }
  .inv-row .lb { display: block; font-size: 11px; font-weight: 700; color: var(--muted); margin-bottom: 3px; text-transform: uppercase; letter-spacing: .03em; }
  .inv-row .f-sum { grid-column: 1 / 3; text-align: left; display: flex; flex-direction: column; justify-content: center; } .inv-row .f-sum .sv { font-size: 17px; }
  .inv-row .f-act { grid-column: 3; align-items: flex-end; } .inv-ico { width: 44px; height: 44px; font-size: 18px; border: 1px solid var(--border); background: #fff; }
  .inv-itemsfoot { flex-direction: column; align-items: stretch; } .inv-itemsfoot .inv-btn { width: 100%; }
  .inv-itotal { justify-content: space-between; }
  .inv-btns.two .inv-btn { flex: 1 1 100%; }
  .inv-pv { padding: 0 14px 18px; font-size: 12px; } .pv-top { margin: 0 -14px 16px; padding: 18px 14px 16px; } .pv-parties { grid-template-columns: 1fr; gap: 14px; } .pv-total { margin-left: 0; } .pv-title { font-size: 21px; } .pv-numw b { font-size: 19px; } .pv-pay { flex-direction: column; align-items: flex-start; } .pv-payi div span { width: 96px; }
  .pv-tbl { font-size: 11.5px; }
  .inv-h { grid-template-columns: 1fr auto; } .inv-h .mut { grid-column: 1; }
  .inv-line .inv-find { padding: 0 12px; }
}


/* SEO-блоки: вступление, шаги, реквизиты, на всю ширину последний текст */
.inv-intro { max-width: 860px; margin: 0 0 22px; }
.inv-intro h2 { font-size: 26px; font-weight: 800; color: #16225C; margin: 0 0 8px; line-height: 1.25; }
.inv-intro p { font-size: 16px; line-height: 1.65; color: #5A6180; margin: 0; }
.inv-how-sec { padding: 8px 0 44px; }
.inv-h2 { font-size: 28px; font-weight: 800; color: #16225C; margin: 0 0 10px; line-height: 1.25; }
.inv-lead { font-size: 16px; line-height: 1.65; color: #5A6180; margin: 0 0 24px; max-width: 860px; }
.inv-how { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; counter-reset: s; }
.inv-how li { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid #E3E7F2; border-radius: 16px; padding: 20px; box-shadow: 0 2px 12px rgba(47, 62, 126, .06); }
.inv-hn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: #FDF1D8; color: #16225C; font-weight: 800; }
.inv-how h3 { font-size: 16.5px; font-weight: 700; color: #16225C; margin: 0 0 6px; line-height: 1.3; }
.inv-how p { font-size: 14.5px; line-height: 1.6; color: #5A6180; margin: 0; }
.inv-req { background: #F6F7FC; border-left: 4px solid #E9B866; border-radius: 12px; padding: 20px 24px; }
.inv-req h3 { font-size: 18px; font-weight: 700; color: #16225C; margin: 0 0 10px; }
.inv-req ul { margin: 0; padding-left: 20px; columns: 2; column-gap: 40px; } .inv-req li { font-size: 15px; line-height: 1.6; color: #3d4467; margin-bottom: 4px; break-inside: avoid; }
.inv-seo .seo-text-item { grid-column: auto !important; } .inv-seo .seo-text-item.wide { grid-column: 1 / -1 !important; }
@media (max-width: 767px) { .inv-intro h2 { font-size: 22px; } .inv-h2 { font-size: 23px; } .inv-req ul { columns: 1; } .inv-seo .seo-text-item.wide { grid-column: auto !important; } }

.inv-hrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; } .inv-hrow h3 { margin: 0 !important; }

.inv-lat { background: #FFF6E3; border: 1.5px solid #EBCB88; color: #7a5a14; border-radius: 12px; padding: 10px 14px; font-size: 14px; line-height: 1.5; margin: 0 0 14px; } .inv-lat[hidden] { display: none; }
.inv-help b { color: #16225C; }

.inv-mbar { --navy: #16225C; --orange: #F5A623; --orange-dark: #DC8E10; --muted: #6b7194; --border: #E1E4EF; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.inv-mbar *, .inv-mbar *::before, .inv-mbar *::after { box-sizing: border-box; }

/* на этой странице нет плавающих кнопок сайта (WhatsApp, «Позвонить / Заявка») */
.float-wa, .mobile-bar { display: none !important; }
@media (max-width: 767px) { body { padding-bottom: 0 !important; } .inv-mbar { bottom: 0 !important; } }

/* поля дат на iPhone: нативный date-input иначе шире контейнера */
.inv-scope input[type=date] { -webkit-appearance: none; appearance: none; display: block; width: 100%; min-width: 0; max-width: 100%; text-align: left; line-height: 1.2; }
.inv-scope input[type=date]::-webkit-date-and-time-value { text-align: left; min-height: 1.2em; margin: 0; }
.inv-scope input[type=date]::-webkit-calendar-picker-indicator { margin: 0; padding: 0 0 0 4px; }

/* отправка клиенту */
.inv-sharebtn { width: 100%; margin-top: 10px; }
.inv-sendbox { background: #F6F7FC; border-left: 3px solid #E9B866; border-radius: 10px; padding: 12px 14px; margin-top: 10px; font-size: 14px; line-height: 1.5; color: #3d4467; } .inv-sendbox[hidden] { display: none; }
.inv-sendbox p { margin: 0 0 8px; } .inv-sendbox .inv-btns { margin-top: 6px; } .inv-sendbox .inv-btn { flex: 1 1 100%; text-decoration: none; font-size: 14px; }

/* следующий номер: плашка и подсказка */
.inv-nextnote { display: flex; justify-content: space-between; align-items: center; gap: 12px 18px; flex-wrap: wrap; background: #F6F7FC; border: 1px solid #E3E7F2; border-left: 4px solid #E9B866; border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; font-size: 14.5px; line-height: 1.5; color: #3d4467; } .inv-nextnote[hidden] { display: none; }
.inv-nextnote b { color: #16225C; } .inv-nn-b { display: flex; gap: 14px; align-items: center; }
.inv-link { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: #2F3E7E; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: left; }
.inv-link:hover { color: #16225C; }
#inv-numhint:empty { display: none; } #inv-numhint { color: #8a6a2c; }

/* подсветка поля с ошибкой */
.inv-scope .inv-bad { border-color: #d64545 !important; box-shadow: 0 0 0 3px rgba(214, 69, 69, .18) !important; background: #fff8f8; }
/* телефон с «Поделиться файлом»: главной становится кнопка «Отправить клиенту» */
.inv-sharefirst .inv-card.inv-sticky { display: flex; flex-direction: column; }
.inv-sharefirst .inv-card.inv-sticky > h3 { order: 0; } .inv-sharefirst #inv-errors { order: 1; }
.inv-sharefirst #inv-share { order: 2; margin: 0 0 10px; background: #F5A623; border-color: #F5A623; color: #16225C; font-size: 17px; padding: 15px 14px; }
.inv-sharefirst #inv-pdf { order: 3; background: transparent; border-color: #16225C; color: #16225C; font-size: 15px; padding: 11px 14px; }
.inv-sharefirst #inv-sendbox { order: 4; } .inv-sharefirst .inv-btns.two { order: 5; }
/* нижняя панель: «Просмотр» + «Скачать» */
.inv-mview { display: inline-flex; gap: 6px; padding: 12px 12px !important; flex: 0 0 auto !important; width: auto !important; font-size: 14px !important; }
@media (max-width: 380px) { .inv-mview { padding: 12px 10px !important; } .inv-mbar b { font-size: 16px; } }

/* выпадающие списки: стрелка с отступом от края */
.inv-scope select { -webkit-appearance: none; appearance: none; padding-right: 40px; background-color: #fff; background-repeat: no-repeat; background-position: right 16px center; background-size: 14px 9px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1.5 1.5l5.5 5.5 5.5-5.5' fill='none' stroke='%2316225C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>"); }

.pv-czk { margin: -14px 0 18px 38%; text-align: right; font-size: 11px; color: #737A9C; }
@media (max-width: 767px) { .pv-czk { margin-left: 0; } }

/* что осталось заполнить */
.inv-todo { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: #FFF6E5; border: 1px solid #F3D9A4; color: #5B4A1E; font-size: 13px; line-height: 1.4; }
.inv-todo ul { margin: 6px 0 4px; padding-left: 18px; } .inv-todo li { margin: 2px 0; }
.inv-todo.ok { background: #EAF6EE; border-color: #BFE2CB; color: #25643D; font-weight: 600; }
.inv-todo .inv-link { background: none; border: 0; padding: 0; color: #2F3E7E; font-weight: 700; text-decoration: underline; cursor: pointer; font-size: 13px; }

/* резервная копия: компактно и ненавязчиво */
.inv-datanote { margin: 14px 4px 0; font-size: 12px; color: #8A90AE; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.inv-datanote button, .inv-datanote label { background: none; border: 0; padding: 0; font: inherit; color: #6B7298; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.inv-datanote button:hover, .inv-datanote label:hover { color: #2F3E7E; } .inv-datanote .w:hover { color: #B3402F; }

/* ── режим плательщика НДС ── */
#invoice .inv-vatonly { display: none; }
#invoice.is-vat label.inv-vatonly { display: flex; }
#invoice.is-vat div.inv-vatonly, #invoice.is-vat span.inv-vatonly { display: block; }
#invoice.is-vat .inv-novat { display: none; }
.inv-fields .inv-chk { background: #F6F7FC; border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; gap: 3px; cursor: pointer; }
.inv-chkl { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 700; color: var(--navy, #16225C); }
.inv-chkl input { width: 20px; height: 20px; margin: 0; accent-color: #2F3E7E; flex: 0 0 auto; }
.inv-vatsum { text-align: right; font-size: 13px; color: var(--muted); margin-top: 8px; }
.inv-row .f-vat select { width: 100%; padding-left: 10px; padding-right: 26px; background-position: right 8px center; }
@media (min-width: 641px) {
  #invoice.is-vat .inv-rowhead, #invoice.is-vat .inv-row { grid-template-columns: minmax(0, 4fr) 78px 78px minmax(0, 1.3fr) 96px minmax(0, 1.3fr) 70px; }
}
@media (max-width: 640px) {
  #invoice.is-vat .inv-row .f-vat { grid-column: 1 / 2; }
  #invoice.is-vat .inv-row .f-sum { grid-column: 2 / 3; }
}
/* рекапитуляция НДС в превью */
.pv-rec { width: 62%; margin: 12px 0 0 38%; border-collapse: collapse; font-size: 11.5px; }
.pv-rec th { text-align: left; font-size: 8.5px; font-weight: 800; letter-spacing: .08em; color: var(--muted); padding: 4px 6px; border-bottom: 1px solid #C5CCE6; }
.pv-rec td { padding: 4px 6px; } .pv-rec .r { text-align: right; white-space: nowrap; } .pv-rec th.r { text-align: right; }
.pv-rec tr.t td { font-weight: 800; color: var(--navy); border-top: 1px solid #C5CCE6; }
@media (max-width: 640px) { .pv-rec { width: 100%; margin-left: 0; } }
