/* Peachtree Accounting 2011 look: Windows 7 chrome, navigation bar, navigation centers. */
:root {
    --desk: #dce3eb;
    --frame: #8a9db4;
    --pane-border: #a7b6c8;
    --panel: #ffffff;
    --text: #1b2430;
    --muted: #5d6b7c;
    --link: #0b3fbf;
    --head-a: #fbfcfd;
    --head-b: #dfe5ec;
    --grid-head-a: #f7f7f7;
    --grid-head-b: #e2e2e2;
    --grid-line: #d5dbe2;
    --row-alt: #f4f7fb;
    --select: #cfe3fb;
    --input-border: #7f9db9;
    --btn-a: #f6f6f6;
    --btn-b: #dcdcdc;
    --btn-border: #8b8b8b;
    --good: #1f7a2e;
    --good-bg: #e3f3e3;
    --warn: #8a5a00;
    --warn-bg: #fff3cc;
    --bad: #b0200f;
    --bad-bg: #fde4e0;
    --age-0: #1f8a3c;
    --age-1: #2a6fd6;
    --age-2: #f0c419;
    --age-3: #d8301c;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font: 12px/1.4 Tahoma, "Segoe UI", Verdana, sans-serif; background: #6f8db3; color: var(--text); }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 18px; margin: 0; }
h2 { font-size: 13px; margin: 0 0 8px; }
.ico { flex-shrink: 0; vertical-align: middle; }

/* ---------- Window chrome ---------- */
.app { display: flex; flex-direction: column; min-height: 100vh; background: var(--desk); border: 1px solid #4e6c93; }
.titlebar { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 0 0 8px; background: linear-gradient(#d9e6f6, #b4cbe8 48%, #a6c0e3 52%, #bcd2ee); border-bottom: 1px solid #7d98bd; color: #1a1a1a; font-size: 12px; }
.titlebar span:nth-child(2) { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.winbtns { display: flex; align-self: flex-start; }
.winbtns i { font-style: normal; width: 27px; height: 19px; display: grid; place-items: center; border: 1px solid #5b7aa3; border-top: 0; background: linear-gradient(#e7eef8, #b9cbe4); font-size: 11px; color: #1d3a63; }
.winbtns i + i { border-left: 0; }
.winbtns i.x { width: 46px; background: linear-gradient(#e9a99a, #c7432b 50%, #b5301a 51%, #d26a4f); color: #fff; font-weight: bold; border-radius: 0 0 4px 0; }

.menubar { display: flex; align-items: stretch; background: linear-gradient(#fdfdfe, #e9eef5); border-bottom: 1px solid #b6c3d3; padding: 0 2px; position: relative; z-index: 20; }
.menu { position: relative; }
.menu > span { display: block; padding: 3px 8px; cursor: default; border: 1px solid transparent; white-space: nowrap; }
.menu:hover > span, .menu:focus-within > span { background: linear-gradient(#f1f6fd, #d6e6fa); border-color: #8fb3e0; border-radius: 2px; }
.menu .dropdown { display: none; position: absolute; top: 100%; left: 0; min-width: 210px; background: #f5f6f7; border: 1px solid #979797; box-shadow: 2px 3px 4px rgba(0,0,0,.3); padding: 2px; }
.menu:hover .dropdown, .menu:focus-within .dropdown { display: block; }
.dropdown a, .dropdown button { display: block; width: 100%; text-align: left; padding: 4px 24px 4px 28px; color: var(--text); background: none; border: 1px solid transparent; font: inherit; cursor: default; }
.dropdown a:hover, .dropdown button:hover { background: linear-gradient(#f1f6fd, #d6e6fa); border-color: #a8c8ef; border-radius: 2px; text-decoration: none; }
.dropdown hr { border: 0; border-top: 1px solid #d7d7d7; margin: 3px 2px 3px 28px; }
.menubar .user { margin-left: auto; padding: 3px 10px; color: var(--muted); }

.centerbar { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; background: linear-gradient(#ffffff, #e3e9f0); border-bottom: 1px solid #a3b2c4; }
.centerbar h1 { font-size: 19px; font-weight: bold; flex: 1; letter-spacing: -.2px; }
.searchhelp { display: flex; gap: 3px; }
.searchhelp input { width: 170px; height: 21px; padding: 1px 5px; font-style: italic; }
.searchhelp button { height: 21px; padding: 0 6px; font: inherit; font-size: 11px; background: linear-gradient(var(--btn-a), var(--btn-b)); border: 1px solid var(--btn-border); border-radius: 2px; }

.workspace { flex: 1; display: flex; min-height: 0; padding: 6px 6px 6px 0; }

/* ---------- Navigation bar ---------- */
.navbar { width: 214px; flex-shrink: 0; padding: 8px 8px 8px 6px; display: flex; flex-direction: column; gap: 3px; background: linear-gradient(90deg, #edf0f4, #e1e6ec); border-right: 1px solid #b1bdcb; margin-right: 6px; }
.navbtn { display: flex; align-items: center; gap: 9px; height: 42px; padding: 0 8px; color: #1b2430; font-weight: bold; font-size: 13px; line-height: 1.2; border: 1px solid transparent; border-radius: 2px; overflow: hidden; }
.navbtn span { overflow: hidden; text-overflow: ellipsis; }
.navbtn:hover { text-decoration: none; background: linear-gradient(#ffffff, #e9eef4); border-color: #b9c6d6; }
.navbtn.active { background: #fff; border-color: #8297b0; box-shadow: inset 0 0 0 1px #fff, 1px 1px 2px rgba(0,0,0,.18); }
.shortcuts { margin-top: 14px; padding: 10px 4px 0; border-top: 1px solid #c3ccd7; display: flex; flex-direction: column; gap: 4px; }
.shortcuts .head { font-size: 13px; margin-bottom: 4px; display: flex; gap: 14px; align-items: baseline; }
.shortcuts .head a { font-size: 12px; text-decoration: underline; }
.shortcuts > a { color: #26303c; padding-left: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.resource { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 10px; background: linear-gradient(#ffffff, #e4e9ef); border: 1px solid #a9b6c6; border-radius: 6px; box-shadow: 1px 1px 3px rgba(0,0,0,.18); color: #3b4756; font-size: 13px; line-height: 1.25; }
.resource:hover { text-decoration: none; border-color: #7f97b5; }
.signout { padding: 6px 4px 0; }
.signout button { background: none; border: 0; padding: 0; font: inherit; color: var(--link); cursor: pointer; text-decoration: underline; }

/* ---------- Main frame ---------- */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--frame); padding: 6px 8px 10px; }
.pagebar { display: flex; flex-wrap: wrap; align-items: stretch; background: linear-gradient(#fbfbfb, #e6e9ed); border: 1px solid #9eabbb; margin-bottom: 8px; }
.pagebar > a, .pagebar > span { display: flex; align-items: center; gap: 5px; padding: 3px 9px; color: #2b3540; border-right: 1px solid #c3cbd5; white-space: nowrap; }
.pagebar > a:hover { background: linear-gradient(#f1f6fd, #d6e6fa); text-decoration: none; }
.pagebar > :last-child { flex: 1; border-right: 0; }

.tabs { display: flex; align-items: flex-end; gap: 2px; padding-left: 2px; border-bottom: 1px solid #9eabbb; }
.tabs a { display: flex; align-items: center; gap: 6px; padding: 5px 12px 4px; font-weight: bold; font-size: 13px; color: #1b2430; background: linear-gradient(#f3f5f7, #dce2e9); border: 1px solid #a8b5c5; border-bottom: 0; border-radius: 3px 3px 0 0; position: relative; top: 1px; }
.tabs a.active { background: #fff; padding-top: 7px; }
.tabs a:hover { text-decoration: none; }
.doc { flex: 1; padding-top: 10px; }
.doc.center { border: 1px solid #9eabbb; border-top: 0; padding: 10px; }

/* ---------- Navigation center ---------- */
.center-grid { display: grid; grid-template-columns: minmax(380px, 470px) minmax(0, 1fr); gap: 12px; align-items: start; }
.center-grid .col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.center-grid .pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }

.pane { border: 1px solid var(--pane-border); background: #fff; min-width: 0; }
.pane > .pane-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 3px 6px; background: linear-gradient(var(--head-a), var(--head-b)); border-bottom: 1px solid var(--pane-border); font-weight: bold; font-size: 13px; min-height: 24px; }
.pane-head .links { font-weight: normal; font-size: 12px; display: flex; gap: 6px; align-items: center; }
.pane-head .links a { text-decoration: underline; }
.pane-head .links .on { color: var(--text); text-decoration: none; }
.pane > .pane-body { padding: 8px; }
.pane > .pane-foot { display: flex; justify-content: space-between; gap: 10px; padding: 4px 6px; border-top: 1px solid var(--pane-border); }
.pane > .pane-foot a { text-decoration: underline; }
.pane .scroll { max-height: 340px; overflow: auto; }

/* Task workflow */
.flow { position: relative; }
.flow .band { display: grid; grid-template-columns: repeat(3, 1fr); justify-items: center; gap: 14px 0; padding: 12px 6px; }
.flow .band + .band { border-top: 1px solid var(--pane-border); }
.flow .diagram { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 104px; justify-items: center; align-items: center; padding: 6px; }
.flow .diagram svg.wires { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); pointer-events: none; }
.flow .diagram svg.wires line { stroke: #7c8a99; stroke-width: 2; vector-effect: non-scaling-stroke; }
.tile { position: relative; z-index: 1; width: 100px; height: 86px; padding: 6px 8px; display: flex; flex-direction: column; justify-content: flex-end; color: #26303c; font-size: 12px; line-height: 1.25; background: linear-gradient(#ffffff, #eef1f5); border: 1px solid #b4bfcc; border-radius: 3px; box-shadow: 1px 1px 2px rgba(0,0,0,.22); }
.tile .ico { position: absolute; top: 7px; right: 8px; }
.tile.big-ico .ico { top: 9px; right: auto; left: 50%; transform: translateX(-50%); }
.tile.big-ico span { text-align: center; }
.tile::after { content: ""; position: absolute; right: 4px; bottom: 4px; border: 4px solid transparent; border-right-color: #6d7a89; border-bottom-color: #6d7a89; }
.tile.plain::after { display: none; }
.tile span { padding-right: 8px; }
.tile:hover { text-decoration: none; border-color: #5f8ec9; background: linear-gradient(#f5f9ff, #d9e7f8); }

/* Lists inside panes (Peachtree grid) */
.grid-list { width: 100%; border-collapse: collapse; }
.grid-list th { position: sticky; top: 0; font-weight: normal; text-align: left; padding: 2px 5px; background: linear-gradient(var(--grid-head-a), var(--grid-head-b)); border: 1px solid #c0c6ce; border-top: 0; white-space: nowrap; color: #26303c; font-size: 12px; }
.grid-list td { padding: 1px 5px; border: 1px solid var(--grid-line); border-top: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.grid-list tr:hover td { background: var(--select); }
.grid-list .id { text-transform: uppercase; }

.report-list { width: 100%; border-collapse: collapse; }
.report-list td { padding: 3px 6px; white-space: nowrap; }
.report-list td + td { width: 1%; }
.report-list a { text-decoration: underline; }
.report-list .sep { color: #9aa6b4; padding: 0; }

/* Aged pie */
.aged { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 4px; }
.aged .legend { display: flex; flex-direction: column; gap: 6px; }
.aged .legend span { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.aged .legend i { width: 11px; height: 11px; border: 1px solid #333; display: inline-block; }
.pie { width: 132px; height: 132px; border-radius: 50%; border: 1px solid #3a4655; box-shadow: 2px 3px 4px rgba(0,0,0,.25); flex-shrink: 0; }
.pie.empty { background: #eef1f4; display: grid; place-items: center; color: var(--muted); font-size: 11px; box-shadow: none; }
[data-view="table"] .aged, [data-view="graph"] .aged-table { display: none; }

.solutions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; padding: 8px 10px; }
.solutions a { text-decoration: underline; }

/* Business status */
.status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 12px; align-items: start; }
.status-grid .col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 150px; padding: 8px 6px 0; border-bottom: 1px solid #555; }
.bars div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.bars b { width: 100%; background: linear-gradient(90deg, #3f7fd0, #2a5ea8); border: 1px solid #1d4a87; min-height: 1px; }
.bars-x { display: flex; gap: 4px; padding: 2px 6px 0; }
.bars-x span { flex: 1; text-align: center; font-size: 10px; color: var(--muted); }

/* ---------- Task windows (list, form and detail pages) ---------- */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; padding: 4px 6px 4px 10px; flex-wrap: wrap; background: linear-gradient(var(--head-a), var(--head-b)); border: 1px solid var(--pane-border); }
.page-head h1 { font-size: 15px; }
.page-head .sub { color: var(--muted); margin-top: 1px; font-size: 12px; }
.actions { display: flex; gap: 3px; flex-wrap: wrap; align-items: center; }

.panel { background: var(--panel); border: 1px solid var(--pane-border); padding: 12px; margin-bottom: 10px; }
.panel.flush { padding: 0; overflow-x: auto; }
.panel h2 { font-size: 13px; }
.grid { display: grid; gap: 10px; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-bottom: 10px; }
.stat { background: #fff; border: 1px solid var(--pane-border); padding: 8px 10px; }
.stat .label { color: var(--muted); font-size: 11px; }
.stat .value { font-size: 16px; font-weight: bold; font-variant-numeric: tabular-nums; }

table { width: 100%; border-collapse: collapse; }
th, td { padding: 3px 7px; text-align: left; border: 1px solid var(--grid-line); vertical-align: top; }
th { font-size: 12px; color: #26303c; font-weight: normal; background: linear-gradient(var(--grid-head-a), var(--grid-head-b)); border-color: #c0c6ce; white-space: nowrap; }
tbody tr:nth-child(even) td { background: var(--row-alt); }
tbody tr:hover td { background: var(--select); }
tfoot td { font-weight: bold; border-top: 2px solid #8d99a8; background: #f2f4f7; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.muted { color: var(--muted); }
.indent td:first-child { padding-left: 24px; }
.empty { color: var(--muted); padding: 14px; text-align: center; }

.badge { display: inline-block; padding: 0 6px; border: 1px solid #b9c2cc; border-radius: 2px; font-size: 11px; background: #f1f3f6; color: var(--muted); text-transform: capitalize; font-weight: normal; vertical-align: middle; }
.badge.paid, .badge.received, .badge.posted { background: var(--good-bg); color: var(--good); border-color: #9fd0a6; }
.badge.open, .badge.partial { background: var(--warn-bg); color: var(--warn); border-color: #e4c66e; }
.badge.overdue, .badge.void, .badge.cancelled { background: var(--bad-bg); color: var(--bad); border-color: #e7a093; }

.btn { display: inline-flex; align-items: center; gap: 5px; padding: 3px 12px; min-height: 23px; border-radius: 3px; border: 1px solid var(--btn-border); background: linear-gradient(var(--btn-a) 45%, var(--btn-b) 55%); color: #111; font: inherit; cursor: pointer; line-height: 1.3; box-shadow: inset 0 0 0 1px rgba(255,255,255,.7); }
.btn:hover { text-decoration: none; border-color: #3c7fb1; background: linear-gradient(#eaf6fd 45%, #bee6fd 55%); }
.btn:active { background: linear-gradient(#c4e5f6 45%, #98d1ef 55%); }
.btn.primary { font-weight: bold; border-color: #3c7fb1; box-shadow: inset 0 0 0 1px #a8d8f7; }
.btn.danger { color: var(--bad); }
.btn.small { padding: 1px 8px; min-height: 19px; font-size: 11px; }
.inline { display: inline; }

label { display: block; font-size: 12px; margin-bottom: 2px; color: #26303c; }
input, select, textarea { width: 100%; padding: 2px 4px; height: 22px; border: 1px solid var(--input-border); border-radius: 0; font: inherit; background: #fff; color: var(--text); }
textarea { height: auto; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: #3d7bad; background: #fffde7; }
input[type=checkbox] { width: auto; height: auto; }
.field { margin-bottom: 8px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 14px; }
.check { display: flex; gap: 6px; align-items: center; }
.filters { display: flex; gap: 5px; flex-wrap: wrap; align-items: end; margin-bottom: 8px; padding: 5px 6px; background: #f3f5f8; border: 1px solid #d0d7df; }
.filters input, .filters select { width: auto; }
.lines td { padding: 2px; }
.lines input, .lines select { border-color: transparent; }
.lines input:focus, .lines select:focus { border-color: #3d7bad; }
.totals { margin-left: auto; max-width: 300px; }
.totals td { border: 0; padding: 2px 10px; background: none !important; }

.alert { padding: 6px 10px; border: 1px solid; margin-bottom: 10px; }
.alert.ok { background: var(--good-bg); color: var(--good); border-color: #9fd0a6; }
.alert.err { background: var(--bad-bg); color: var(--bad); border-color: #e7a093; }
.alert ul { margin: 0; padding-left: 18px; }

/* ---------- Peachtree task windows ---------- */
.taskwin { border: 1px solid #7d93ad; background: #eef2f6; box-shadow: 2px 3px 6px rgba(0,0,0,.18); margin-bottom: 10px; }
.tw-caption { display: flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; background: linear-gradient(#dfe9f6, #b9cde7 50%, #adc4e3 51%, #c6d8ef); border-bottom: 1px solid #7d93ad; font-size: 12px; color: #13233a; }
.tw-tools { display: flex; flex-wrap: wrap; align-items: stretch; gap: 1px; padding: 2px 4px; background: linear-gradient(#fdfdfe, #e5eaf0); border-bottom: 1px solid #b3c0cf; }
.tool { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-width: 50px; height: 46px; padding: 2px 6px; color: #1b2430; font: inherit; font-size: 11px; background: none; border: 1px solid transparent; border-radius: 2px; cursor: pointer; white-space: nowrap; }
.tool:hover { text-decoration: none; border-color: #8fb3e0; background: linear-gradient(#f4f8fe, #d6e6fa); }
.tool:active { background: linear-gradient(#cfe0f5, #b7d0ef); }
.tool[disabled] { opacity: .45; pointer-events: none; }
.tool-sep { width: 1px; margin: 4px 3px; background: #b9c4d1; box-shadow: 1px 0 #fff; }
.tw-body { padding: 10px 12px; }
.tw-body > :last-child { margin-bottom: 0; }

/* Label-beside-field rows */
.frow { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 6px; margin-bottom: 5px; }
.frow > label { margin: 0; }
.frow .static { min-height: 22px; padding: 2px 5px; border: 1px solid #b3bfcc; background: #f8f9fb; }
.fcols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 24px; }
fieldset { border: 1px solid #b3bfcc; padding: 6px 10px 8px; margin: 0 0 10px; background: #fff; }
legend { padding: 0 4px; color: #1f3f73; font-weight: bold; }

/* Window tabs (General / Sales Info ...) */
.wtabs { display: flex; gap: 2px; border-bottom: 1px solid #93a5ba; margin: 6px 0 0; }
.wtabs button { font: inherit; padding: 3px 12px; background: linear-gradient(#f3f5f7, #dce2e9); border: 1px solid #a8b5c5; border-bottom: 0; border-radius: 3px 3px 0 0; cursor: pointer; position: relative; top: 1px; }
.wtabs button.on { background: #fff; font-weight: bold; }
.wtab-page { background: #fff; border: 1px solid #93a5ba; border-top: 0; padding: 10px; margin-bottom: 10px; }
.wtab-page[hidden] { display: none; }

/* Document header (invoice / purchase order) */
.dochead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 330px); gap: 10px 24px; margin-bottom: 10px; }
.dochead .doctitle { font-size: 22px; font-weight: bold; color: #1f3f73; text-align: right; margin: -2px 0 6px; letter-spacing: .5px; }
.dochead .doctitle .badge { font-size: 11px; letter-spacing: 0; }
.billto { border: 1px solid #b3bfcc; background: #fff; min-height: 86px; padding: 4px 8px; white-space: pre-line; }
.billto .cap { display: block; color: var(--muted); font-size: 11px; white-space: normal; }
.docgrid { border: 1px solid #93a5ba; background: #fff; overflow-x: auto; margin-bottom: 8px; }
.docgrid table { min-width: 640px; }
.docgrid th { text-align: center; }
.docgrid tbody tr:nth-child(even) td { background: #fff; }
.docgrid tbody tr:hover td { background: #fffbe0; }
.docfoot { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 10px 24px; align-items: start; }
.doctotals { border: 1px solid #93a5ba; background: #fff; }
.doctotals td { border: 0; border-bottom: 1px solid #e3e7ec; padding: 3px 8px; background: none !important; }
.doctotals tr:last-child td { border-bottom: 0; font-weight: bold; background: #eef3fa !important; }

/* List windows */
.tw-search { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.tw-search input, .tw-search select { width: auto; }
.listgrid { border: 1px solid #93a5ba; background: #fff; overflow-x: auto; }
.listgrid td a { text-decoration: none; }
.listgrid .id { text-transform: uppercase; }
.listfoot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 6px; color: var(--muted); }
.listfoot .actions { margin-left: auto; }

/* Reports */
.report-options { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; padding: 5px 8px; background: #f7f8fa; border: 1px solid #c3ccd7; }
.report-options label { display: flex; align-items: center; gap: 4px; margin: 0; }
.report-options input, .report-options select { width: auto; }
.report-options.hidden { display: none; }
.docbrand { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 10px 14px 6px; border-bottom: 1px solid var(--grid-line); margin-bottom: 8px; }
.docbrand-info { text-align: right; color: var(--muted); font-size: 11px; line-height: 1.5; }
.docbrand-info strong { color: var(--text); font-size: 13px; }
.docbrand-info b { color: var(--text); }
.docbrand img { height: 64px; width: auto; display: block; }
.paper { background: #fff; border: 1px solid #a7b3c2; box-shadow: 3px 3px 0 #c5ced9; padding: 20px 26px 28px; max-width: 980px; margin: 0 auto; }
.paper-head { text-align: center; margin-bottom: 16px; }
.paper-head .company { font-weight: bold; font-size: 14px; }
.paper-head .rtitle { font-weight: bold; font-size: 13px; }
.paper-head .period { color: #333; }
.paper table th { background: none; border: 0; border-bottom: 1px solid #000; border-top: 1px solid #000; font-weight: bold; }
.paper table td { border: 0; padding: 2px 7px; }
.paper tbody tr:nth-child(even) td { background: none; }
.paper tbody tr:hover td { background: #fffbe0; }
.paper tfoot td { border-top: 1px solid #000; border-bottom: 3px double #000; background: none; }
.paper .section td { font-weight: bold; padding-top: 10px; }
.paper .subtotal td { border-top: 1px solid #888; font-weight: bold; }
.paper .indent td:first-child { padding-left: 26px; }
.paper .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.report-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 10px; }
.report-cards fieldset a { display: flex; gap: 8px; align-items: flex-start; padding: 5px 4px; color: var(--text); border: 1px solid transparent; }
.report-cards fieldset a:hover { text-decoration: none; background: var(--select); border-color: #9cc0ea; }
.report-cards fieldset a strong { color: var(--link); display: block; }

/* ---------- Sign-in ---------- */
.login-body { display: grid; place-items: center; min-height: 100vh; background: radial-gradient(circle at 30% 20%, #8fb0d8, #3e6596 70%); }
.login { width: 360px; max-width: calc(100% - 32px); background: #fff; border: 1px solid #4e6c93; box-shadow: 4px 6px 16px rgba(0,0,0,.35); }
.login .titlebar { border-bottom: 1px solid #7d98bd; }
.login .login-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: linear-gradient(#ffffff, #e3e9f0); border-bottom: 1px solid #a3b2c4; }
.login .login-head h1 { font-size: 16px; }
.login form, .login .alert { margin: 12px 14px; }

/* ---------- Small screens ---------- */
@media (max-width: 1000px) {
    .center-grid { grid-template-columns: 1fr; }
    .dochead, .docfoot { grid-template-columns: 1fr; }
    .dochead .doctitle { text-align: left; }
}
@media (max-width: 760px) {
    .workspace { flex-direction: column; padding: 4px; }
    .navbar { width: auto; margin: 0 0 4px; flex-direction: row; flex-wrap: wrap; border-right: 0; padding: 4px; }
    .navbtn { height: 34px; font-size: 12px; }
    .shortcuts, .resource, .winbtns, .menubar .user { display: none; }
    .menubar { flex-wrap: wrap; }
    .centerbar .searchhelp input { width: 110px; }
    .pagebar > span { display: none; }
    .flow .tile { width: 86px; }
    .frow { grid-template-columns: 1fr; gap: 1px; }
    .tool { min-width: 44px; padding: 2px 3px; }
    .paper { padding: 12px; }
}

@media print {
    .titlebar, .menubar, .centerbar, .navbar, .pagebar, .tabs, .actions, .filters, .no-print, .tw-caption { display: none !important; }
    .taskwin { border: 0; box-shadow: none; background: #fff; }
    .tw-body { padding: 0; }
    .paper { border: 0; box-shadow: none; padding: 0; }
    body, .app, .main { background: #fff; border: 0; }
    .panel, .pane { border: 0; }
}
