/* Years: draft / adopted / closed, the ⋯ menu's Years section, start-a-year and start-over dialogs, the draft banner. */
.yr-pill { font-size: 10.5px; font-weight: 600; padding: 1px 6px; border-radius: 5px; white-space: nowrap; line-height: 16px; }
.yr-pill.draft { background: #EEF0F2; color: #3D4349; border: 1px dashed #A9ADB1; }
.yr-pill.adopted { background: var(--brand-tint); color: var(--brand); }
.yr-pill.closed { background: var(--sunken); color: var(--ink-2); }

/* ⋯ menu */
.yr-menu { position: relative; width: 300px; }
.yr-sep { height: 1px; background: var(--line); margin: 5px 4px; }
.yr-eb { padding: 6px 10px 3px; }
.yr-menu .menu-item .col { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.yr-start { align-items: flex-start !important; color: var(--brand); }
.yr-start svg.ico { color: var(--brand-2); margin-top: 2px; }
.yr-row.on { background: var(--sunken); }
.yr-row svg:last-child { color: var(--faint); }
.yr-sub { position: absolute; right: calc(100% + 10px); width: 228px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-2); padding: 6px; }
.danger-item, .danger-text { color: var(--red) !important; }
.danger-item svg.ico { color: var(--red) !important; }

/* dialogs */
.yr-opt { display: flex; gap: 11px; align-items: flex-start; padding: 11px 13px; border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer; background: var(--surface); }
.yr-opt input { accent-color: var(--brand); margin-top: 3px; }
.yr-opt.on { border: 1.5px solid var(--brand-2); background: #F5FAF7; padding: 10.5px 12.5px; }
.yr-opt.off { opacity: .7; cursor: default; }
.yr-opt .col { display: flex; flex-direction: column; gap: 2px; }
.yr-opt b { font-weight: 500; }
.yr-opt .select.sm { height: 26px; font-size: 12.5px; width: auto; }
.yr-rules { display: flex; flex-direction: column; }
.yr-rule { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13px; }
.yr-pc { display: inline-flex; align-items: center; gap: 4px; }
.yr-pc .input { width: 64px; height: 28px; padding: 0 8px; font-size: 13px; }
.yr-pc span { color: var(--muted); font-size: 12.5px; }
.yr-tg { position: relative; width: 30px; height: 18px; flex: none; cursor: pointer; }
.yr-tg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.yr-tg span { position: absolute; inset: 0; border-radius: 9px; background: #C9C8C2; transition: background .15s; pointer-events: none; }
.yr-tg span::after { content: ''; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .15s; }
.yr-tg input:checked + span { background: var(--brand); }
.yr-tg input:checked + span::after { transform: translateX(12px); }
.yr-pvs { margin-top: 14px; padding: 12px 16px; border-radius: 12px; background: var(--bg); display: flex; flex-direction: column; gap: 8px; }
.yr-pv { display: flex; align-items: center; gap: 28px; }
.yr-pv .eyebrow { width: 120px; }
.yr-pv b { font-size: 18px; font-weight: 600; letter-spacing: -.3px; }
.yr-pv b.neg { color: var(--red); } .yr-pv b.pos { color: var(--brand-2); }
.yr-keep { padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.yr-keep .col { display: flex; flex-direction: column; }
.yr-keep.lock { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); }
.yr-keep.lock svg { color: var(--muted); margin-top: 2px; }
.yr-vlist { display: flex; flex-direction: column; }
.yr-v { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.yr-v:first-child { border-top: 0; }

/* the draft banner on Forecast */
.draft-card { border: 1.5px dashed #C9C8C2; background: #FBFBF9; border-radius: var(--r-lg, 14px); margin-bottom: 14px; }
.draft-head { display: flex; align-items: center; gap: 18px; padding: 14px 16px 12px; }
.draft-head h3 { font-size: 15px; font-weight: 600; margin: 0; }
.draft-tot { display: flex; gap: 22px; align-items: baseline; font-size: 13px; white-space: nowrap; }
.draft-tot b { font-variant-numeric: tabular-nums; font-weight: 600; }
.draft-tot b.neg { color: var(--red); } .draft-tot b.pos { color: var(--brand-2); }
.wal-eb { padding: 0 16px 6px; }
.wal { display: flex; align-items: center; gap: 12px; padding: 9px 16px; border-top: 1px solid var(--line); position: relative; font-size: 13px; }
.wal:hover { background: var(--surface); }
.wal .ix { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; flex: none; background: var(--sunken); color: var(--ink-2); font-weight: 700; font-size: 12px; }
.wal.capital .ix { background: var(--amber-tint); color: var(--amber); }
.wal .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wal .t b { font-weight: 500; }
.wal .tray { opacity: 0; transition: opacity .15s; display: flex; gap: 2px; padding: 2px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--surface); flex: none; }
.wal:hover .tray, .wal:focus-within .tray, .wal.hov .tray { opacity: 1; }
.wal .tray button { height: 26px; padding: 0 9px; border-radius: 7px; font-size: 12px; font-weight: 500; }
.wal .tray button:hover { background: var(--sunken); }
.wal-more { padding: 8px 16px 12px; border-top: 1px solid var(--line); }

/* vs previous year */
.fgrid.cmp th.how { text-align: left; padding-left: 16px; }
.fgrid.cmp td.how { text-align: left; color: var(--muted); font-size: 12.5px; white-space: nowrap; padding-left: 16px; }
.fgrid.cmp td.how.warn, .fgrid.cmp td.warn { color: var(--amber); }
.yr-menu a.menu-item { text-decoration: none; color: inherit; }
.yr-menu a.menu-item .xs { text-decoration: none; }

/* Round 5 · start a year: carry-forward rules, first run from past budgets */
.yr-ads { display: flex; flex-direction: column; }
.yr-ad { display: flex; gap: 14px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13px; }
.yr-ad.top { align-items: flex-start; }
.yr-ad .xs.muted { line-height: 1.45; margin-top: 1px; }
.yr-ad .link { font-size: 11.5px; }
.yr-ad .select.sm { height: 28px; font-size: 12.5px; width: auto; }
label.yr-pc { gap: 5px; height: 28px; padding: 0 4px 0 9px; border: 1px solid var(--line-2); border-radius: 7px; background: var(--surface); font-size: 12.5px; }
label.yr-pc > span:first-child:not(:last-child) { color: var(--ink); font-weight: 500; }
label.yr-pc .input { width: 46px; height: 24px; border: 0; padding: 0 2px; font-size: 12.5px; box-shadow: none; }
.yr-seg { flex: none; }
.yr-seg button { height: 24px; padding: 0 9px; font-size: 12px; white-space: nowrap; }
.yr-seg.dis { opacity: .45; pointer-events: none; }
.yr-ot { display: flex; align-items: center; gap: 10px; margin-top: 5px; }
.yr-ot .check { font-size: 13px; white-space: nowrap; }
.yr-ot .check input { width: 14px; height: 14px; }
.yr-ot.off .xs { opacity: .7; }
.yr-capl { display: flex; gap: 8px; padding: 3px 0; font-size: 12.5px; }
.yr-capl input { width: 14px; height: 14px; }
.yr-all { max-height: 240px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; margin: 2px 0 8px; }
.yr-all table { width: 100%; border-collapse: collapse; font-size: 12px; table-layout: fixed; }
.yr-all th { position: sticky; top: 0; background: var(--bg); text-align: left; font-weight: 500; color: var(--muted); padding: 6px 10px; }
.yr-all td { padding: 4px 10px; border-top: 1px solid var(--line); }
.yr-all th:nth-child(1) { width: 40%; } .yr-all th:nth-child(2) { width: 11%; } .yr-all th:nth-child(4) { width: 14%; }
.yr-all .num, .yr-rv .num { text-align: right; font-variant-numeric: tabular-nums; }
.yr-all tr.sec td { background: var(--sunken); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
.yr-pv .yr-why { text-align: right; line-height: 1.4; }
.yr-opt3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.yr-files { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 9px; }
.yr-file { display: flex; align-items: center; gap: 8px; padding: 5px 6px 5px 9px; border: 1px solid #D7E6DC; border-radius: 9px; background: var(--surface); min-width: 0; font-size: 12.5px; font-weight: 500; position: relative; }
.yr-file.bad { border-color: var(--amber); }
.yr-fi { width: 22px; height: 22px; border-radius: 7px; background: var(--brand-tint); color: var(--brand-2); display: grid; place-items: center; flex: none; }
.yr-fi.bank { background: var(--brand); color: #fff; }
.yr-fysel { font: inherit; font-size: 10.5px; font-weight: 600; padding: 1px 2px 1px 5px; border-radius: 5px; border: 0; background: #F0F0EC; color: #4A4F54; cursor: pointer; }
.yr-fysel.cur { background: var(--brand-tint); color: var(--brand); }
.yr-fyp { font-size: 10.5px; font-weight: 600; padding: 1px 6px; border-radius: 5px; background: #F0F0EC; color: #4A4F54; white-space: nowrap; }
.yr-x { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; color: var(--muted); opacity: 0; flex: none; }
.yr-file:hover .yr-x, .yr-x:focus { opacity: 1; }
.yr-x:hover { background: var(--sunken); color: var(--ink); }
.yr-also { margin-top: 9px; font-size: 13px; cursor: pointer; }
.yr-rv { width: 100%; border-collapse: collapse; font-size: 12.5px; table-layout: fixed; }
.yr-rv th { text-align: left; font-weight: 500; color: var(--muted); padding: 4px 8px 6px 0; font-size: 11.5px; }
.yr-rv td { padding: 7px 8px 7px 0; border-top: 1px solid var(--line); }
.yr-rv th:first-child { width: 31%; }
.yr-ads .gap6, .yr-files ~ .gap12 { gap: 6px; }
.yr-files ~ .row.gap12 { gap: 12px; }
.yr-also { gap: 10px; }
.scrim .col.gap6 { gap: 6px; }
.yr-rv th:nth-child(2) { width: 9%; } .yr-rv th:nth-child(3) { width: 14%; } .yr-rv th:nth-child(4), .yr-rv th:nth-child(5) { width: 11%; }
.yr-q { display: flex; align-items: center; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13px; }
.yr-q b { font-weight: 500; }
.yr-ad .xs.muted:empty { display: none; }
