/* «Операції» (IFMT-6925, інкремент 3). Правила — з еталона prototype/assets/app.css, розміри переведено на rem кабінету (×1,6).
   Спільні класи (toolbar, chips, table-wrap, kv, choice, drawer) — у screens.css / components.css */

/* Заголовок: фільтр «Точка» (shell.css) і «Завантажити виписку» */
.rd .ops-tools { align-items: center; }
.rd .ops-export { position: relative; }
.rd .ops-export .menu { left: auto; right: 0; min-width: 18rem; }

/* Пошук: світліший плейсхолдер, щоб не був схожий на заповнене поле (v7.9 п. 10) */
.rd.ops #oq::placeholder { color: var(--ink-4); opacity: 1; }
.rd .ops-period, .rd .sel.ops-period { width: auto; min-width: 17rem; }
.rd .sel.ops-period .sel-btn { width: 100%; }

/* Свій період */
.rd .an-custom { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: .8rem; }
.rd .an-custom input { width: auto; }
.rd .an-custom[hidden] { display: none; }
.rd .ops-custom-error { flex-basis: 100%; margin-top: 0; }

.rd .ops-acc { margin-bottom: 1.2rem; align-items: center; }
.rd .ops-status { margin-bottom: 1.6rem; }

/* Підсумок над таблицею: частини окремо, без «·» (v7.9 п. 12) */
.rd .ops-bar { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; margin-bottom: 1rem; }
.rd .ops-sum { display: flex; flex-wrap: wrap; column-gap: 1.6rem; row-gap: .2rem; margin: 0; }
.rd .ops-sum-part + .ops-sum-part { padding-left: 1.6rem; border-left: 1px solid var(--line-strong); }
.rd .ops-dens { margin-left: auto; }
.rd .ops-dens .chip { min-height: 4.4rem; }
.rd #ops-statement > .notice { margin-bottom: 1.2rem; }

/* Рядок дня: назва дня ліворуч, сума праворуч */
.rd .day-row td { background: var(--canvas); font-size: var(--t-s); color: var(--ink-2); padding-top: 1rem; padding-bottom: 1rem; font-weight: 500; }
.rd .ops-day-sum { float: right; }
.rd .ops-table tr[aria-selected="true"] td { background: var(--row-selected); }

/* Щільний режим (D-11): лише на ширині, де таблиця — таблиця */
@media (min-width: 761px) {
  .rd .density-compact td { padding: 1rem 1.6rem; line-height: 1.35; }
  .rd .density-compact tr.day-row td { padding-top: .8rem; padding-bottom: .8rem; }
  .rd .density-compact td .cell-sub { display: inline; margin-left: var(--s-2); }
  .rd .density-compact .badge-ok { background: none; padding-left: 0; padding-right: 0; }
}
@media (max-width: 760px) {
  .rd .ops-dens { display: none; }
  .rd .ops-day-sum { float: none; display: block; }
  .rd #ops-table table.responsive tbody td.amount { font-weight: 700; }
}

/* Картка операції */
.rd .big-amount { font-size: var(--t-3xl); font-weight: 700; letter-spacing: -.02em; }
.rd .ops-big { margin: .4rem 0 .8rem; }
.rd .ops-badge-line { margin-bottom: 2rem; }
.rd .ops-decline { margin-bottom: 2rem; }
.rd .ops-extra { margin-top: 2.4rem; }
.rd .ops-extra:empty { display: none; }
.rd .ops-h3 { margin-bottom: 1.2rem; }
.rd .ops-extra .notice .ops-h3 { margin-bottom: .4rem; }

/* Чек */
.rd .receipt { font-size: var(--t-s); background: var(--receipt-bg); border: 1px dashed var(--line-strong); border-radius: var(--r-m); padding: 1.8rem; line-height: 1.6; overflow-x: auto; }
.rd .receipt .r-row { display: flex; justify-content: space-between; gap: 1.2rem; }
.rd .receipt .r-center { text-align: center; }
.rd .receipt hr { border: 0; border-top: 1px dashed var(--line-strong); margin: 1rem 0; }
.rd .receipt img { max-width: 100%; height: auto; }
.rd .ops-receipt-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.2rem; }

/* Повернення */
.rd .ops-rf-lead { margin-bottom: 1.6rem; }
.rd .ops-rf-part { margin-top: 1.2rem; }
.rd .ops-rf-part[hidden] { display: none; }
.rd .input-affix { position: relative; }
.rd .input-affix input { padding-right: 4.4rem; }
.rd .input-affix .affix { position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.rd .ops-rf-hold { margin: 1.4rem 0; }
.rd .ops-rf-actions { display: flex; gap: .8rem; }
.rd .ops-extra > .notice { margin-bottom: 1.2rem; }

/* Блок для PDF: поза екраном, світлий незалежно від теми */
.rd .ops-pdf { position: absolute; left: -10000px; top: 0; width: 1100px; padding: 24px; background: #fff; color: #1F2326; font-size: 12px; }
.rd .ops-pdf h2 { font-size: 18px; margin-bottom: 8px; }
.rd .ops-pdf p { margin: 0 0 4px; }
.rd .ops-pdf table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.rd .ops-pdf th, .rd .ops-pdf td { border-bottom: 1px solid #CDD3D8; padding: 4px 6px; text-align: left; }
.rd .ops-pdf .t-right { text-align: right; white-space: nowrap; }
