/* Pozycje do sprawdzenia (tab of the Decyzje), the portfolio map and Oczyszczenie historii.
   0.87 (F-87, second slice): the rules of 0.84 that left app.css with these screens in 0.85, back with them. */

/* the two tabs of the Decyzje („Sprawy”, „Pozycje do sprawdzenia”) and the rows of the list (inbox.css of 0.84) */
/* 0.84: two tabs in the head („Sprawy”, „Pozycje do sprawdzenia”); the review list drawn inside (.ib-rv) */
.ib-tabs { display: inline-flex; gap: 2px; padding: 3px; background: var(--line-2); border-radius: 10px; flex: none; }
.ib-tab { border: 0; background: none; border-radius: 8px; padding: 6px 12px; font: 600 13px var(--font); color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.ib-tab:hover { color: var(--navy-3); }
.ib-tab.on { background: #fff; color: var(--navy-3); box-shadow: 0 1px 3px rgba(18,37,90,.12); }
.ib-rv { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ib-rv .rv-counters { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.ib-rv .rv-counters .sep { color: var(--line); }
/* rows of the list: one outlined „Przyjmij” and a „…” menu, numbers „było → jest” on one line, Powód in 2 lines */
.rv-tbl-084 td { padding-top: 6px; padding-bottom: 6px; vertical-align: middle; }
.rv-tbl-084 td.rv-why { min-width: 280px; max-width: 460px; white-space: normal; font-size: 12.5px; }
.rv-why-in { display: -webkit-box; -webkit-line-clamp: 3; /* 0.84 (final round): the whole sentence, full text in the tip */ -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }
/* 0.87 (ocena 31.10): Powód as a short label, the full text under it on a click (no text cut by „…”) */
.rv-tbl-084 td.rv-why { min-width: 200px; }
.rv-why-d > summary { list-style: none; cursor: pointer; line-height: 1.4; color: var(--ink); font-weight: 600; }
.rv-why-d > summary::-webkit-details-marker { display: none; }
.rv-why-d > summary::after { content: ' ▸'; color: var(--ink-3); font-weight: 400; }
.rv-why-d[open] > summary::after { content: ' ▾'; }
.rv-why-d > summary:hover { color: var(--navy-3); }
.rv-why-full { margin-top: 4px; color: var(--ink-2); line-height: 1.4; }
.rv-why-full p { margin: 0 0 4px; }
/* the stake on one line, its basis in a word under it (one meaning of „wartość na ryzyku”) */
.rv-tbl-084 td.rv-stake { white-space: nowrap; }
.rv-stake small { display: block; font-size: 11px; color: var(--ink-3); font-weight: 500; }
.rv-tbl-084 td.rv-arrow { white-space: nowrap; }
.rv-act { white-space: nowrap; }
.rv-act-in { display: inline-flex; align-items: center; gap: 4px; }
.btn.rv-accept { background: #fff; border-color: var(--orange); color: var(--orange-d); }
.btn.rv-accept:hover { background: var(--orange-soft); }
.btn.rv-accept-n { background: #fff; border-color: var(--line); color: var(--ink-2); }
.rv-more { position: relative; }
.rv-more > summary { list-style: none; cursor: pointer; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: var(--ink-2); font-weight: 700; }
.rv-more > summary::-webkit-details-marker { display: none; }
.rv-more > summary:hover, .rv-more[open] > summary { background: var(--line-2); color: var(--navy-3); }
.rv-more-menu { position: absolute; right: 0; top: 32px; z-index: 20; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-l); padding: 4px; min-width: 120px; }
.rv-more-menu button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 7px 10px; border-radius: 7px; font: 13px var(--font); color: var(--ink); cursor: pointer; }
.rv-more-menu button:hover { background: var(--line-2); }
.rv-tbl-084 td:nth-child(2) { white-space: normal; min-width: 190px; max-width: 260px; padding-right: 16px; overflow-wrap: anywhere; }
.rv-tbl-084 td:nth-child(2) .sku { white-space: normal; }

/* the portfolio map, the group view and the group correction dialog (app.css of 0.84) */
.corr-sum { color: var(--ink-2); }
.corr-sum b { color: var(--navy-3); }
.pf-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pf-hero { background: var(--navy); color: #fff; border-radius: 14px; padding: 20px 24px; display: flex; flex-direction: column; gap: 10px; }
.modal .pf-eyebrow { color: var(--orange-d); }
.pf-sentence { font-size: 23px; font-weight: 700; line-height: 1.3; }
.pf-facts { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13.5px; color: #D6DDEE; }
.pf-facts b { color: #fff; font-size: 17px; }
.pf-card { display: flex; flex-direction: column; gap: 10px; }
.pol-grid { display: grid; grid-template-columns: 34px repeat(3, minmax(0, 1fr)); gap: 8px; font-size: 13px; }
.pol-h { font-weight: 600; color: var(--ink-2); font-size: 12.5px; }
.pol-row { font-weight: 700; color: var(--navy-3); align-self: center; font-size: 15px; }
.pol-cell { text-align: left; border-radius: 10px; padding: 8px 11px; font: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 1px; border: 1px solid; }
.pol-cell:disabled { cursor: default; }
.pol-cell b { color: var(--navy-3); }
.pol-l { font-weight: 650; }
.pol-n { font-size: 11.5px; color: var(--ink-2); }
.pol-auto { background: var(--ok-soft); border-color: #BFD8C9; } .pol-auto .pol-l { color: var(--ok); }
.pol-review { background: var(--orange-soft); border-color: #F6C9A8; } .pol-review .pol-l { color: var(--orange-d); }
.pol-minmax { background: var(--line-2); border-color: #D5DBE6; } .pol-minmax .pol-l { color: #3B4D7E; }
.pol-tol { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); border-top: 1px solid var(--line-2); padding-top: 10px; }
.pol-tol b { color: var(--navy-3); }
.pol-tol input { width: 56px; height: 28px; padding: 2px 6px; font-size: 13px; }
.pf-groups { display: flex; flex-direction: column; gap: 6px; }
.gv-why { background: var(--warn-soft); color: #6E4D05; border-radius: 10px; padding: 9px 14px; font-size: 13.5px; }
.gv-parts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.gv-parts > div { border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px; }
.gv-parts b { display: block; color: var(--navy-3); }
.gc-prev { background: #F4F6FA; border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; min-height: 60px; }
.gc-eyebrow { font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); font-weight: 700; }
.gc-facts { display: flex; gap: 24px; flex-wrap: wrap; }
.gc-facts div { display: flex; flex-direction: column; }
.gc-facts b { font-size: 22px; color: var(--navy-3); }
.gc-facts span { font-size: 12.5px; color: var(--ink-2); }
.gc-tbl { border-collapse: collapse; font-size: 13px; }
.gc-tbl th, .gc-tbl td { padding: 3px 14px 3px 0; text-align: left; }
.gc-tbl .n { text-align: right; font-variant-numeric: tabular-nums; }
.gc-tbl th { color: var(--ink-3); font-weight: 600; font-size: 12px; }
.gc-tbl tr.after td { color: var(--orange-d); font-weight: 700; }
.rv-tbl th { white-space: normal; vertical-align: bottom; }
.rv-work .fgrid { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; table-layout: fixed; }
.rv-work .fgrid col.lab { width: 104px; }
.rv-work .fgrid col.sum { width: 64px; }
.rv-work .fgrid th .yy { display: block; font-weight: 500; font-size: 10px; }
.rv-work .fgrid th, .rv-work .fgrid td { padding: 4px 2px; text-align: right; border-bottom: 1px solid var(--line-2); white-space: nowrap; overflow: hidden; }
.rv-work .fgrid th { color: var(--ink-3); font-weight: 600; font-size: 11px; }
.rv-work .fgrid th:first-child, .rv-work .fgrid td:first-child { text-align: left; font-weight: 600; color: var(--ink-2); }
.rv-work .fgrid tr.final td { font-weight: 750; color: var(--navy-3); }
.rv-work .fgrid td.edit { padding: 1px 2px; }
.rv-work .fgrid td.edit input { width: 100%; height: 26px; padding: 0 2px; text-align: right; font: 700 12px var(--font); letter-spacing: -0.2px; border: 1px solid transparent; border-radius: 5px; background: var(--orange-soft); color: var(--navy-3); }
.rv-work .fgrid td.edit input:focus { border-color: var(--orange); background: #fff; outline: none; }
.rv-work .fgrid td.changed input { background: #FFE2CC; }
.rv-work .fgrid td.frozen { color: var(--ink-3); }
.rv-work .fgrid tr.delta td { font-size: 11.5px; color: var(--ink-3); }
.rv-work .fgrid tr.delta td.up { color: var(--warn); }
.rv-work .fgrid tr.delta td.down { color: var(--blue); }
.rv-work .corrbar { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.rv-work .corrbar select, .rv-work .corrbar input { height: 32px; font-size: 12.5px; width: auto; padding: 0 8px; }
.rv-work .corrbar input[type=number] { width: 80px; }
/* 0.87: switching the tab takes a moment (the list is computed): the old one fades at once */
.ib.ib-switch .ib-body, .ib.ib-switch .ib-rv { opacity: .45; pointer-events: none; transition: opacity .1s; }
/* 0.87: the folded parts of the map (what the classes mean, the settings of the list) */
.rv-settings > summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--navy-3); padding: 2px 0; }
.rv-settings[open] > summary { margin-bottom: 6px; }
.rv-min-why { display: block; font-size: 10.5px; color: var(--ink-3); font-weight: 500; }
/* 0.92: the table of the items fits a 1280 px laptop (the importance moved under the name; narrower reason and name) */
@media (max-width: 1365px) {
  .rv-tbl-084 td.rv-why { min-width: 160px; max-width: 260px; }
  .rv-tbl-084 td:nth-child(2) { min-width: 150px; max-width: 210px; padding-right: 10px; }
  .rv-tbl-084 th, .rv-tbl-084 td { padding-left: 6px; padding-right: 6px; }
}
