/* Owner statement: one landscape Letter page per home, laid out like Rob's Excel statement but tidier. Brand teal #143e45.
   Served at /owner/statement.css (the owner pages allow no inline styles). */
:root{--teal:#143e45;--teal-2:#24565d;--wash:#eef4f3;--line:#c9d6d4;--grid:#dde6e4;--muted:#5d6f72;--hi:#d3ef76}
*{box-sizing:border-box}
html{background:#e9efee}
body.stmt-page{margin:0;background:#e9efee;color:#1c2b2e;font-family:Arial,Helvetica,sans-serif;font-size:9px;line-height:1.3}
.stmt-toolbar{position:sticky;top:0;z-index:2;display:flex;flex-wrap:wrap;gap:10px 16px;align-items:center;padding:10px 16px;background:var(--teal);color:#fff;font-size:13px}
.stmt-toolbar a{color:#fff}.stmt-toolbar span{flex:1;font-weight:700}
.stmt-toolbar button,.stmt-toolbar .btn{font:inherit;font-size:13px;font-weight:600;padding:7px 14px;border-radius:6px;border:1px solid #fff;background:#fff;color:var(--teal);text-decoration:none;cursor:pointer}
.stmt-toolbar .btn{background:transparent;color:#fff}
/* The page: 11in × 8.5in minus 0.4in margins. */
.stmt{width:10.2in;min-height:7.7in;margin:16px auto;padding:.3in .35in;background:#fff;box-shadow:0 2px 12px rgba(20,62,69,.15);display:flex;flex-direction:column;gap:7px}
.stmt-warnings{border:1px solid #e0b25b;background:#fff8e6;border-radius:6px;padding:6px 10px;font-size:11px}.stmt-warnings ul{margin:4px 0 0;padding-left:18px}
.stmt-warnings li.alert{color:#8a1c12;font-weight:600}.stmt-warnings li.info{color:var(--muted)}
.stmt-title{margin:0;text-align:center;font-family:Georgia,'Times New Roman',serif;font-weight:400;font-size:22px;color:var(--teal);letter-spacing:.5px;border-bottom:2px solid var(--teal);padding-bottom:4px}
table{border-collapse:collapse}
caption{caption-side:top;text-align:left;font-weight:700;font-size:9.5px;color:#fff;background:var(--teal);padding:3px 6px;border-radius:3px 3px 0 0}
th,td{padding:2px 6px;text-align:left;vertical-align:top}
.n{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.stmt-info{border:1px solid var(--line);width:3.6in}.stmt-info th{width:1.15in;background:var(--wash);color:var(--teal)}.stmt-info td{font-weight:600}
.stmt-info tr+tr th,.stmt-info tr+tr td{border-top:1px solid var(--grid)}
.stmt-boxes{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px;align-items:start}
.box{width:100%;border:1px solid var(--line)}.box th{font-weight:400}.box td{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums;font-weight:600}
.box tbody tr+tr>*{border-top:1px solid var(--grid)}
.box tr.highlight>*{background:var(--hi);color:var(--teal);font-weight:700;font-size:11px;padding:4px 6px;border-top:2px solid var(--teal)}
.box tr.highlight.soft>*{background:var(--wash)}
.box-col{display:flex;flex-direction:column;gap:8px}
.box.reviews td{text-align:left;font-weight:400}.box.reviews td:first-child{font-weight:600;white-space:nowrap}.box.reviews td:last-child{color:var(--muted)}
.grid{width:100%;border:1px solid var(--line)}.grid thead th{background:var(--wash);color:var(--teal);font-weight:700;border-bottom:1px solid var(--line);white-space:nowrap}
.grid tbody tr>*{border-top:1px solid var(--grid)}.grid tbody tr:nth-child(even)>*{background:#f8fbfa}
.grid tfoot>tr>*{border-top:2px solid var(--teal);font-weight:700;background:#fff}
.grid td.guest small{color:var(--muted);font-style:italic}.grid tr.cancelled td{color:var(--muted)}
.grid td.empty{color:var(--muted);font-style:italic}
.stmt-lower{display:grid;grid-template-columns:3.9in 1fr;gap:14px;align-items:start}
.stmt-expenses{display:flex;flex-direction:column;gap:7px}
.grid.total th{background:var(--wash);color:var(--teal)}.grid.total td{font-weight:700;font-size:10px}
.stmt-chart{margin:0;border:1px solid var(--line)}.stmt-chart figcaption{font-weight:700;font-size:9.5px;color:#fff;background:var(--teal);padding:3px 6px;border-radius:3px 3px 0 0}
.trend{display:block;width:100%;height:auto;max-height:1.75in;padding:4px 6px 2px}
.trend .bar{fill:var(--teal-2)}.trend .axis{stroke:var(--line);stroke-width:1}
.trend text{font-family:Arial,Helvetica,sans-serif}.trend .v{font-size:8.5px;fill:var(--teal);font-weight:700}.trend .m{font-size:9px;fill:#1c2b2e}.trend .n{font-size:8px;fill:var(--muted)}
.stmt-foot{margin-top:auto;border-top:2px solid var(--teal);padding-top:5px}
.stmt-foot .thanks{margin:0 0 4px;text-align:center;font-style:italic;font-weight:700;color:var(--teal);font-size:10.5px}
.foot-row{display:flex;justify-content:space-between;align-items:center}
.foot-row ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:3px;font-size:9.5px}.foot-row li{display:flex;align-items:center;gap:6px}.foot-row .ico{color:var(--teal)}
.foot-row img{height:.55in;width:auto}
@media screen and (max-width:1000px){.stmt{width:auto;margin:8px;padding:12px;min-height:0}.stmt-boxes,.stmt-lower{grid-template-columns:1fr}.stmt-info{width:100%}.grid.bookings{display:block;overflow-x:auto}}
@page{size:letter landscape;margin:0.4in}
@media print{
 html,body.stmt-page{background:#fff}
 .no-print{display:none!important}
 .stmt{width:auto;min-height:0;height:auto;margin:0;padding:0;box-shadow:none;break-after:page;page-break-after:always}
 .stmt:last-of-type{break-after:auto;page-break-after:auto}
 caption,.stmt-chart figcaption,.box tr.highlight>*,.grid thead th,.stmt-info th{-webkit-print-color-adjust:exact;print-color-adjust:exact}
 .grid tr{break-inside:avoid}
 .stmt{gap:6px}.trend{max-height:1.5in}
}
/* Measured at the printed size before printing (statement.js shrinks a statement taller than one page). */
.stmt.fit-measure{width:10.2in;min-height:0;padding:0;margin:0;gap:6px}
.stmt.fit-measure .trend{max-height:1.5in}
/* Public sample statement (/for-owners/sample-statement): a diagonal SAMPLE mark on screen and in print */
.stmt-sample .stmt{position:relative}
.stmt-sample .stmt::before{content:"SAMPLE";position:absolute;top:38%;left:50%;transform:translate(-50%,-50%) rotate(-24deg);font:700 120px/1 system-ui,sans-serif;letter-spacing:.12em;color:rgba(15,95,107,.07);pointer-events:none;z-index:0}
/* Phones: the wide booking table scrolls sideways inside the page instead of widening it */
@media screen and (max-width:760px){.stmt table.grid.bookings{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch}.stmt{overflow:hidden}}
