/* ============================================
   GLOBAL FONT: Force Arial Everywhere
============================================ */
html, body, * {
  font-family: "Arial", Arial, sans-serif !important;
  box-sizing: border-box;
}

/* ============================================
   PAGE LAYOUT
============================================ */
body {
  display: block;   /* или вообще удалить display */
  margin: 0;
  padding: 20px;
  background: #e9e9e9;
  font-size: 11px;
  line-height: 1.25;
  color: #000;
}

.page {
  width: 100%;
  max-width: 900px;
  background: #fff;
  padding: 14px;
  border: 4px solid #000;
}

/* ============================================
   HEADER
============================================ */
.print-sheet-info {
  font-size: 14px;
  font-weight: 700;
  text-align: right;
  margin-bottom: -10px;
  margin-right:250px;
  color:#545454; 
}

.top {
  width: 100%;
}
.top-left,
.top-right {
  display: inline-block;
  vertical-align: top;
}
.top-right {
	margin-left:20px;
}
.qr-box {
  text-align: center;
}

.qr-box img {
  width: 120px;
  height: 120px;
  border: 0px;
  padding: 4px;
}

.notice {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px;
}
.meta {
	width:100%;
}
.meta p {
  margin: 0;
  font-size: 16px;
  width:100%;
}

.top-right {
  text-align: right;
}

.area {
  font-size: 12px;
  margin-bottom: 4px;
}

/* Лицевой счёт сверху — 30px */
.account-box {
  border: 2px solid #000;
  padding: 8px;
  background: #fffbe6;
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 8px;
  text-align: center;
}
.account-label {
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2px;
}


/* ============================================
   BILLING BLOCK
============================================ */

.billing-new {
  margin-top: 10px;
  margin-bottom: 15px;
}

.recipient-label {
  font-size: 18px;
  font-weight: 700;
}
.payer-line {
  font-size: 18px;
  font-weight: 700;
}
.payer-name {
  font-weight: 400 !important;
}

.payer-meta {
  font-weight: 400 !important;
}
.payer-meta {
  font-size: 16px;
  font-weight: 600;
  margin-left: 8px;
}
.billing-row3 {
  display: table;
  width: 100%;
}
.col-item {
  display: table-cell;
  vertical-align: top;
  padding-right: 30px;
}


.calc-title,
.topay-title-inline {
  font-size: 26px;
  font-weight: 700;
}

.calc-box,
.topay-box,
.debt-box {
  font-size: 28px;
  font-weight: 800;
  border: 2px solid #000;
  padding: 2px 18px;
  display: inline-block;
  margin-top: 4px;

  width:200px;
}

.debt-box {
  background: #000;
  color: #fff;
}

.small-note {
  font-size: 12px;
  line-height: 1.1;
}


.topay-box {
  background: #fffbe6;
  white-space: nowrap;
}

.topay-period-inline {
  font-size: 16px;
  font-weight: 700;
  margin-top: 6px;
}

.billing-lastpay {
  font-size: 17px;
  margin-top: -22px;
  margin-bottom: 4px;
  font-weight: 400;
}

/* Срок оплаты — под "ЗА Октябрь 2025" */
.deadline-strong {
  font-size: 15px;
  font-weight: 700;
  margin-top: 4px;
  margin-left: 0;   /* выравнивание по левому краю колонки */
}
.deadline-date {
  font-weight: 700;
}


/* ============================================
   MAIN TABLE (updated — 13px font)
============================================ */

.table-wrap {
  border: 2px solid #000;
  overflow-x: auto;
}

.services-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px; /* updated */
}
.services-table th:nth-child(9),
.services-table td:nth-child(9) {
  width: 240px;
 /* чтобы текст не ломался слишком узко */
}

.services-table th,
.services-table td {
  border: 1px solid #000;
  padding: 3px 4px;
  line-height: 1.15;
  font-size: 13px; /* updated */
}
/* Правое выравнивание всех чисел в таблице (кроме 1 и 9 столбца) */
.services-table td:nth-child(2) {
  text-align: center !important;
}
.services-table td:nth-child(1)
{
	width:150px;
	
}
.services-table td:nth-child(3),
.services-table td:nth-child(4),
.services-table td:nth-child(5),
.services-table td:nth-child(6),
.services-table td:nth-child(7),
.services-table td:nth-child(8) {
  text-align: right !important;
}

/* Заголовки соответствующих столбцов тоже вправо */
.services-table th:nth-child(2) {
  text-align: center !important;
}

.services-table th:nth-child(3),
.services-table th:nth-child(4),
.services-table th:nth-child(5),
.services-table th:nth-child(6),
.services-table th:nth-child(7),
.services-table th:nth-child(8) {
  text-align: right !important;
}
.services-table th:nth-child(6),
.services-table td:nth-child(6) {
  width: 50px;

  text-align: right; /* чтобы цифры были справа */
  white-space: nowrap;
}
.services-table th:nth-child(7),
.services-table td:nth-child(7),
.services-table th:nth-child(8),
.services-table td:nth-child(8) {
  width: 80px;
  text-align: right; /* чтобы цифры были справа */
  white-space: nowrap;
}
.services-table th {
  background: #f5f5f5;
  font-weight: 700;
  text-align: center;
}
.services-table .subhead {
  padding-left: 30px !important;  /* подбирается под визуальное выравнивание */
  padding-right: 30px !important;
  text-align: left !important;    /* чтобы все вели себя одинаково */
}
.subhead {
  background: #eee;
  text-align: center;
  font-weight: 700;
}

.total-row td {
  background: #fafafa;
  font-weight: 600 !important;
  font-size: 1.5em !important;
}

.total-row .right {
  text-align: right;
}

/* ============================================
   SOI RIGHT-SIDE GRID (col 9)
============================================ */

/* ============================================
   SOI RIGHT-SIDE GRID (col 9)
============================================ */

.soi-right {
  display: table;
  width: 100%;
}
.soi-right > div {
  display: table-cell;
  text-align: center;
  padding: 2px;
  width:33%;
}

.soi-r {
  font-weight: 700;
}

.soi-r-val {
  border: 1px solid #000;
  padding: 2px 0;
  font-size: 10px;
}


 /* ============================================
   NOTICES
============================================ */

.news {
  font-weight: 700;
  margin: 5px 0 5px;
  font-size: 22px; /* увеличено */
}

.alert {
  border: 2px solid #000;
  padding-top: 12px;
  padding-left: 12px;
}

.alert-title {
  background: #000;
  color: #fff;
  font-weight: 700;
  padding: 6px;
  margin: -12px -12px 8px -12px;
  font-size: 20px;       /* новое значение */
}
.alert-text {
	font-size:15px;
	padding: 0px;
	margin-top:5px;
}

.how-to-pay .small {
  font-size: 10px;
}
.how-to-pay h3 {
	font-size: 24px;
	margin:3px;
}
.how-to-pay ol {
	margin:0px;
}
.how-to-pay ol li {
	font-size: 16px;
	margin:0px;
}


/* ============================================
   METERS (БЛАНК ПОКАЗАНИЙ)
============================================ */

.meters {
  margin-top: 10px;
  border-top: 1px dashed #000;
  padding-top: 6px;
}

/* Заголовок — 250% */
.meters h3 {
  font-size: 200% !important;
  margin-top: 5px;
  margin-bottom: 10px;
}

/* Таблица показаний — шрифт ×2 (22px) */
.meter-table {
  width: 100%;
  border-collapse: collapse;
}

.meter-table th,
.meter-table td {
  border: 1px solid #000;
  padding: 1px 10px;
  font-size: 18px;
}

/* Центрирование столбцов */
.meter-table th:nth-child(2),
.meter-table th:nth-child(3),
.meter-table th:nth-child(4),
.meter-table th:nth-child(5),
.meter-table td:nth-child(2),
.meter-table td:nth-child(3),
.meter-table td:nth-child(4),
.meter-table td:nth-child(5) {
  text-align: center !important;
}

/* Ширина Предыдущие / Текущие */
.meter-table th:nth-child(4),
.meter-table th:nth-child(5),
.meter-table td:nth-child(4),
.meter-table td:nth-child(5) {
  width: 160px;

}

/* ============================================
   NEW METER FOOTER — VARIANT A
============================================ */

.meter-footer {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 40px;
  margin-top: 16px;
}

/* Плашка ЛС */
.meter-account {
  border: 2px solid #000;
  background: #fffbe6;
  padding: 6px 12px;
  text-align: center;
  display:inline-block;
}
.meter-payer {
	display:inline-block;
	margin-left:30px;
}

.meter-account-label {
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 3px;
}

.meter-account-number {
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}

/* Плательщик — крупнее */
.meter-payer-name {
  font-size: 22px !important;
  font-weight: 700;
  line-height: 1.2;
}

.meter-payer-address {
  font-size: 20px;
  line-height: 1.2;
  display:inline-block;
}

/* ============================================
   RESPONSIVE
============================================ */

@media (max-width: 800px) {
  .billing-row3 {
    flex-direction: column;
    gap: 20px;
  }

  .top {
    flex-direction: column;
  }

  .qr-box img {
    width: 90px;
    height: 90px;
  }
}

/* ============================================
   PRINT — A4
============================================ */

@media print {

  @page {
    size: A4 portrait;
    margin: 5mm;
  }
	.page-break {
        page-break-before: always; /* или after */
        break-before: page;        /* новое свойство */
    }
  body {
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }

  .page {
    padding: 0 !important;
    border: none !important;
    max-width: 100%;
    box-shadow: none !important;
  }

  table, th, td {
    padding: 2px 3px !important;
    line-height: 1.10 !important;
  }

.qr-box img {
  width: auto !important;
  height: auto !important;
  max-width: 200px !important;
  max-height: 200px !important;
}

  .notice {
    font-size: 22px !important;
  }

  .meta p {
    font-size: 16px !important;
  }

  .section-title {
    margin: 6px 0 !important;
    padding: 2px !important;
    font-size: 12px !important;
  }

}
