/* The epilogue is paperwork left on the desk after the last shift. */
dialog#modal[data-view='ending']{position:fixed;inset:0;margin:0;width:100%;max-width:none;height:100svh;max-height:100svh;border:0;background:#050605;color:#dedfd4;box-shadow:none}
dialog#modal[data-view='ending']::backdrop{background:#050605;backdrop-filter:none}
#modal[data-view='ending'] .dialog-inner{min-height:100%;padding:48px 6vw;position:relative;isolation:isolate;display:grid;align-items:center}
#modal[data-view='ending'] .dialog-inner:before{content:'';position:absolute;inset:0;z-index:-1;background:url('assets/office-v2.png') center/cover;filter:grayscale(1) brightness(.1)}
.ending-layout{display:grid;grid-template-columns:minmax(0,650px) minmax(240px,330px);align-items:end;gap:50px;width:100%;max-width:1030px;margin:auto}
.ending-document{padding:36px 40px 24px;background:#d1d0be;color:#252720;box-shadow:0 12px 45px #0006}
.ending-letterhead{display:flex;justify-content:space-between;gap:20px;padding-bottom:20px;border-bottom:1px solid #252720;font:400 10px/1.6 var(--mono)}
.ending-letterhead>span:last-child{text-align:right;white-space:nowrap}
#modal .ending-document .ending-subject{font:400 10px/1.7 var(--mono);color:#54564a;margin:22px 0 12px}
#modal[data-view='ending'] .ending-document h2{font:600 clamp(20px,2vw,26px)/1.3 var(--mono);letter-spacing:-.045em;color:#252720;margin:0 0 28px;max-width:none;overflow-wrap:normal}
#modal .ending-document p{font:400 12px/1.85 var(--mono);color:#373a30;margin:0 0 18px}
#modal .ending-document .ending-lead{font-weight:500;color:#252720}
#modal .ending-document .ending-note{font-size:10px;margin-top:30px;color:#54564a}
#modal .ending-dawn{font:400 64px/1 var(--mono);letter-spacing:-.07em;margin:4px 0 28px;color:#252720;font-variant-numeric:tabular-nums}
.ending-payroll{margin-bottom:14px}
.payroll-heading{display:flex;justify-content:space-between;gap:16px;padding-bottom:12px;border-bottom:1px solid #25272060;font:400 11px/1.6 var(--mono)}
.payroll-lines{margin:12px 0 16px}
.payroll-lines>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;padding:8px 0;font:400 11px/1.7 var(--mono)}
.payroll-lines dd{margin:0;white-space:nowrap;font-variant-numeric:tabular-nums}
.payroll-total{display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding:16px 0;border-block:1px solid #252720;font:500 11px/1.5 var(--mono)}
.payroll-total strong{font:500 32px/1.2 var(--mono);letter-spacing:-.06em;white-space:nowrap}
#modal .ending-document .payroll-footnote{font-size:9px;margin:12px 0 24px;color:#54564a}
#modal .ending-document .ending-last-word{font-size:17px;line-height:1.6;color:#252720;margin:30px 0}
.ending-document-footer{display:flex;justify-content:space-between;gap:20px;margin-top:32px;padding-top:12px;border-top:1px solid #25272050;font:400 8px/1.7 var(--mono);color:#54564a}
.ending-document-footer>span:last-child{white-space:nowrap}
#modal .ending-actions .buttons{margin:0;gap:6px}
#modal .ending-actions .buttons button{display:grid;grid-template-columns:16px 1fr;gap:12px;align-items:center;min-height:50px;padding:12px 0;font:400 12px/1.7 var(--mono);letter-spacing:0;color:#a6a79b}
#modal .ending-actions .buttons button:before{content:'»';position:static;font:inherit;line-height:1;transform:translateY(-1px)}
#modal .ending-actions .buttons button.is-selected{color:#fffef4}
#modal .ending-actions .ending-caption{font:400 11px/1.8 var(--mono);color:#b4b6a8;margin:0 0 32px 28px}
#modal .ending-caption:empty{display:none}
#modal .ending-actions .ending-saved{font:400 10px/1.8 var(--mono);color:#7f8678;margin:32px 0 0 28px}
@media(max-width:900px){
  #modal[data-view='ending'] .dialog-inner{padding:28px 20px}
  .ending-layout{grid-template-columns:minmax(0,620px);max-width:620px;gap:24px}
  .ending-actions{padding:0 12px}
  #modal .ending-actions .ending-caption{margin-bottom:16px}
  #modal .ending-actions .ending-saved{margin-top:16px}
}
@media(max-width:600px){
  .ending-document{padding:24px 22px 18px}
  .ending-letterhead{font-size:8px;gap:12px;padding-bottom:16px}
  #modal[data-view='ending'] .ending-document h2{font-size:20px;margin-bottom:24px}
  #modal .ending-document p{font-size:11px}
  .payroll-lines>div{font-size:10px;gap:10px}
  .payroll-lines dt{max-width:none}
  .payroll-heading{font-size:10px}
  #modal .ending-document .payroll-footnote{font-size:8px}
  .ending-document-footer{font-size:7px;gap:12px}
}
