/* Robshaw STL colours, loaded after the shared style.css. Deep Atlantic blue with terracotta and sand: different from the
   Robshaw Portal's forest green, but chosen to sit well next to the green-and-cream Robshaw logo. */
:root {
  --bg: #f5f1ea; --surface: #ffffff; --surface-2: #faf7f2; --border: #e4ddd2; --text: #1d2a33; --muted: #66707a;
  --brand: #1f3b4d; --brand-2: #2f5a73; --cream: #f5f1ea; --accent: #c26a45; --accent-soft: #f6e4da;
  --bar: #b9c8d2; --bar-hi: #1f3b4d; --grid: #ebe5db;
  --shadow: 0 1px 2px rgba(31, 59, 77, .05), 0 2px 8px rgba(31, 59, 77, .05);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10171c; --surface: #172129; --surface-2: #1b2730; --border: #2a3742; --text: #e9e6e0; --muted: #9aa6b0;
    --brand: #9cc2d8; --brand-2: #b6d3e4; --accent: #e39a78; --accent-soft: #3a2519;
    --bar: #33495a; --bar-hi: #9cc2d8; --grid: #24313b;
  }
}
.sidebar, .topbar { background: #1f3b4d; }
@media (prefers-color-scheme: dark) { .sidebar, .topbar { background: #131e26; } }
.sidebar nav a.active { box-shadow: inset 3px 0 0 #c26a45; }
/* "Robshaw" with "Short-Term Letting Portal" on the line below it */
.brand-name { line-height: 1.15; }
.brand-name em { display: block; font-size: .78em; letter-spacing: .01em; }
.auth-card .brand-name em { font-size: .85em; }

/* dashboard */
.kpi-delta.up { color: var(--green); }
.kpi-delta.down { color: var(--red); }
.section-title { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 28px 0 10px; }
table.months { font-size: 13px; min-width: 980px; }
table.months th, table.months td { padding: 7px 9px; text-align: right; }
table.months th:first-child, table.months td:first-child { text-align: left; white-space: nowrap; }
table.months tr.group td { background: var(--surface-2); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); text-align: left; }
table.months td.hi, table.months th.hi { background: var(--accent-soft); }
table.months td.total { font-weight: 700; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters select { width: auto; }
.note { font-size: 12.5px; color: var(--muted); margin-top: 18px; }
.placeholder { border: 1px dashed var(--border); border-radius: var(--radius); padding: 16px 18px; color: var(--muted); }
form.inline { display: inline; }
.row-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row-form select, .row-form input { width: auto; }
/* all-properties calendar (pages/calendar.php) */
.cal-wrap { overflow-x: auto; }
.cal { display: grid; min-width: 900px; font-size: 12px; grid-auto-rows: 44px; }
.cal > div { border-bottom: 1px solid var(--grid); min-width: 0; }
.cal-h { grid-auto-rows: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); background: var(--surface-2); line-height: 1.1; }
.cal-h span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; }
.cal-h strong { font-size: 13px; color: var(--text); }
.cal-h.today strong { color: var(--accent); }
.cal-label { position: sticky; left: 0; z-index: 3; background: var(--surface); padding: 5px 10px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--border); overflow: hidden; }
.cal-h.cal-label { background: var(--surface-2); align-items: flex-start; font-weight: 600; text-transform: uppercase; font-size: 11px; letter-spacing: .05em; }
.cal-label span { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-label small { color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-d { border-left: 1px solid var(--grid); }
.cal-d.we, .cal-h.we { background: var(--surface-2); }
.cal-d.today { background: var(--accent-soft); }
.cal-d.blocked { background: repeating-linear-gradient(135deg, var(--grey-soft) 0 5px, var(--border) 5px 7px); }
.cal-d.off { background: var(--grey-soft); opacity: .55; }
.cal-stat { display: flex; flex-direction: column; justify-content: center; align-items: flex-end; padding: 0 10px; border-left: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.cal-stat small { color: var(--muted); font-size: 11px; }
.cal-h.cal-stat { align-items: flex-end; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.cal-bar { z-index: 2; margin: 8px 2px; border-radius: 6px; color: #fff; font-weight: 600; font-size: 11.5px; display: flex; align-items: center; padding: 0 7px; white-space: nowrap; overflow: hidden; cursor: default; border-bottom: 0 !important; }
.cal-bar.cont-l { border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: 0; }
.cal-bar.cont-r { border-top-right-radius: 0; border-bottom-right-radius: 0; margin-right: 0; }
.cal-bar.airbnb, .cal-key.airbnb { background: #d4664f; }
.cal-bar.booking, .cal-key.booking { background: #2f5a73; }
.cal-bar.direct, .cal-key.direct { background: #4f8a6b; }
.cal-bar.double { outline: 2px solid var(--red); outline-offset: -2px; background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.18) 0 4px, transparent 4px 8px); }
.cal-key.blocked { background: repeating-linear-gradient(135deg, var(--grey-soft) 0 4px, var(--border) 4px 6px); border: 1px solid var(--border); }
.cal-key.off { background: var(--grey-soft); border: 1px solid var(--border); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; margin-bottom: 12px; align-items: center; }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-key { display: inline-block; width: 14px; height: 14px; border-radius: 4px; }
/* owner pages (pages/owner.php) */
.owner-top { background: #1f3b4d; color: #f5f1ea; padding: 14px 24px; }
.owner-top .logo { color: #f5f1ea; }
.owner-main { max-width: 1000px; margin: 0 auto; padding: 26px 20px 60px; }
.owner-link { word-break: break-all; font-size: 11.5px; }
.oc-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.oc-h { text-align: center; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding-bottom: 2px; }
.oc-d { position: relative; aspect-ratio: 1.6; border-radius: 8px; border: 1px solid var(--border); padding: 6px 8px; font-weight: 600; font-variant-numeric: tabular-nums; }
.oc-d.empty { border: 0; }
.oc-d.open { background: var(--surface); }
.oc-d.booked { background: #2f5a73; border-color: #2f5a73; color: #fff; }
.oc-d.blocked { background: repeating-linear-gradient(135deg, var(--grey-soft) 0 5px, var(--border) 5px 7px); color: var(--muted); }
.oc-d.off { background: var(--grey-soft); color: var(--muted); opacity: .6; }
.oc-d.today { outline: 2px solid var(--accent); outline-offset: 1px; }
.oc-d.in::after { content: ""; position: absolute; right: 8px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.oc-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; margin-bottom: 12px; align-items: center; }
.oc-legend span { display: inline-flex; align-items: center; gap: 6px; }
.oc-key { display: inline-block; width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--border); }
.oc-key.booked { background: #2f5a73; border-color: #2f5a73; }
.oc-key.blocked { background: repeating-linear-gradient(135deg, var(--grey-soft) 0 4px, var(--border) 4px 6px); }
.oc-key.open { background: var(--surface); }
@media (max-width: 600px) { .oc-d { aspect-ratio: 1; padding: 4px 5px; font-size: 12px; } .oc-grid { gap: 3px; } }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12.5px; }
