/* IzyShift — «Надбавки и вычеты» (26.10.2026), extras.js */
.ex-top .ex-per { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 8px 0; }
.ex-top .seg { display: inline-flex; border: 1px solid #D1D5DB; border-radius: 8px; overflow: hidden; }
.ex-top .seg-b { border: 0; background: transparent; padding: 6px 12px; font: inherit; cursor: pointer; color: inherit; }
.ex-top .seg-b.on { background: #111827; color: #fff; }
.ex-month { display: flex; align-items: center; gap: 8px; }
.ex-month b { min-width: 150px; text-align: center; }
.ex-custom { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ex-custom label { display: flex; align-items: center; gap: 6px; }
.ex-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 8px; }
.ex-bar .sp { flex: 1; }
.ex-bar select.inp { max-width: 260px; }
.ex-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.ex-tiles > div { border: 1px solid #E5E7EB; border-radius: 10px; padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; }
.ex-tiles span { font-size: 12px; color: #6B7280; }
.ex-tiles b { font-size: 18px; }
.pos { color: #15803D; } .neg { color: #B91C1C; }
.ex-tbl th, .ex-tbl td { vertical-align: top; text-align: left; padding: 8px 10px; }
.ex-tbl td:first-child { white-space: nowrap; }
.ex-tbl .num { text-align: right; white-space: nowrap; }
.ex-kind { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.ex-kind.bonus { background: #DCFCE7; color: #166534; } .ex-kind.deduction { background: #FEE2E2; color: #991B1B; }
.ex-cancelled td, .ex-row.ex-cancelled span, .ex-row.ex-cancelled b { color: #9CA3AF; }
.ex-cancelled td b, .ex-cancelled td .ex-kind { text-decoration: line-through; opacity: .7; }
.ex-cnote { color: #6B7280; text-decoration: none; margin-top: 2px; }
.ex-sheet .ex-f-kind { display: flex; gap: 8px; border: 0; margin: 8px 0 12px; }
.ex-sheet .ex-f-kind .radio { flex: 1; align-items: center; gap: 8px; border: 1px solid #D1D5DB; border-radius: 8px; padding: 9px 12px; }
.ex-sheet .ex-f-kind .radio input { margin: 0; flex: none; }
.ex-sheet .ex-f-kind .radio b { line-height: 1.2; }
.ex-sheet textarea.inp { min-height: 72px; }
#cd-extras .row, .ex-mine .row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid #E5E7EB; }
#cd-extras .row.tot, .ex-mine .row.tot { border-bottom: 0; font-weight: 600; }
#cd-extras .row-acts { display: flex; gap: 12px; align-items: center; margin-top: 8px; }
@media (max-width: 640px) {
  .ex-tiles b { font-size: 15px; }
  .ex-bar select.inp { max-width: none; flex: 1 1 100%; }
}
#cd-extras .row b, .ex-mine .row b { white-space: nowrap; }
body.mb .ex-mine .row { padding: 8px 16px; }
/* 03.11.2026: изменение строки — пометка, история, закрытый месяц, кнопки */
.ex-enote { margin-top: 3px; color: #6B7280; }
.ex-enote .link { padding: 0; color: #4B5563; text-align: left; }
.ex-hist { margin-top: 6px; padding: 8px 10px; border-left: 3px solid #D1D5DB; background: #F9FAFB; border-radius: 0 6px 6px 0; overflow-wrap: anywhere; }
.ex-hist .ex-hv { margin-top: 6px; }
.ex-hist ul { margin: 2px 0 0; padding-left: 18px; }
.ex-hist s { color: #9CA3AF; }
.ex-lock { margin-top: 3px; color: #92400E; }
.ex-tbl td.ex-acts { white-space: nowrap; }
.ex-actw { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.ex-tbl td.ex-reason { min-width: 220px; }
@media (max-width: 640px) {
  /* журнал на телефоне — карточками: подпись столбца над значением, без прокрутки вбок */
  .ex-list .tbl-scroll { overflow: visible; }
  .ex-tbl thead { display: none; }
  .ex-tbl, .ex-tbl tbody { display: block; width: 100%; }
  .ex-tbl tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; padding: 12px 0; border-bottom: 1px solid #E5E7EB; }
  .ex-tbl td { padding: 0; border: 0; text-align: left !important; white-space: normal; min-width: 0; }
  .ex-tbl td[data-l]::before { content: attr(data-l); display: block; font-size: 11px; color: #9CA3AF; font-weight: 500; text-transform: uppercase; }
  .ex-tbl td.ex-reason, .ex-tbl td.ex-acts { grid-column: 1 / -1; min-width: 0; }
  .ex-tbl td:empty { display: none; }
  .ex-cancelled td b, .ex-cancelled td .ex-kind { text-decoration: line-through; }
  .ex-actw { flex-direction: row; flex-wrap: wrap; gap: 4px 20px; }
  .ex-actw .link { padding: 6px 0; }
}
