:root{
    /* JasonL website theme (www.jasonl.com.au): white page, Poppins, lime
       #C6D644 accent (--olive), orange #F09D2D, light grey #F2F5F8 tiles,
       square corners. */
    --bg: #FFFFFF;
    --card: #F2F5F8;
    --border: #E8ECF0;
    --border-strong: #C9D1D9;
    --text: #121212;
    --text-muted: #5F6670;
    --text-soft: #6B727B;
    --olive: #C6D644;
    --olive-hover: #A6C200;
    --olive-dark: #5C6B00;
    --callout-border: #F09D2D;
    --pill-bg: #FFFFFF;
    --pill-border: #E8ECF0;
    --red: #D93025;
    --green: #5C6B00;
    --orange: #F09D2D;
    --grey-dot: #9AA1A9;
    --charcoal: #242833;
    --shadow: none;
    --radius: 0px;
  }
  *{ box-sizing: border-box; }
  html,body{ margin:0; padding:0; background: var(--bg); color: var(--text);
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
  body{ padding: 28px 32px 64px; }
  .wrap{ max-width: 1180px; margin: 0 auto; }

  .topbar{ display:flex; align-items:flex-start; justify-content:space-between; margin-bottom: 18px; }

  h1{ font-size: 30px; font-weight: 700; margin: 8px 0 6px; letter-spacing: -0.01em; }
  .subtitle{ color: var(--text-muted); font-size: 14.5px; margin: 0 0 20px; }

  .callout{ background: var(--card); border:1px solid var(--border); border-left: 4px solid var(--callout-border);
    border-radius: 0; padding: 14px 18px; margin-bottom: 18px; font-size: 13.5px; color: var(--text-muted); line-height: 1.55; }
  .callout strong{ color: var(--text); }

  .panel{ background: var(--card); border:1px solid var(--border); border-radius: var(--radius);
    padding: 16px 20px; margin-bottom: 20px; box-shadow: var(--shadow); }
  .panel-help{ color: var(--text-soft); font-size: 12.5px; margin-top: 10px; line-height:1.5; }

  .filter-row{ display:flex; align-items:center; flex-wrap:wrap; gap: 12px; }
  .filter-label{ font-weight:700; font-size: 13.5px; margin-right: 4px; }
  .select-box{ border:1px solid var(--pill-border); background: var(--pill-bg); color: var(--text);
    padding: 8px 14px; border-radius: 0; font-size: 13.5px; font-family: inherit; min-width: 220px; }
  .date-box{ border:1px solid var(--pill-border); background: var(--pill-bg); color: var(--text);
    padding: 7px 12px; border-radius: 0; font-size: 13.5px; font-family: inherit; color-scheme: light; }

  .grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
  @media (max-width: 860px){ .grid{ grid-template-columns: 1fr; } }

  .card{ background: var(--card); border:1px solid var(--border); border-radius: var(--radius);
    padding: 16px 18px 14px; box-shadow: var(--shadow); position:relative; }
  .card-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom: 8px; }
  .card-title{ font-weight:700; font-size: 14px; }
  .status{ font-size: 11px; font-weight:700; padding: 3px 10px; border-radius: 999px;
    display:inline-flex; align-items:center; gap:5px; white-space:nowrap; }
  .dot{ width:6px; height:6px; border-radius:50%; display:inline-block; }
  .status.volume{ background: var(--pill-bg); color: var(--text-muted); border:1px solid var(--pill-border); }
  .status.volume .dot{ background: var(--grey-dot); }
  .status.risk, .status.off{ background: rgba(217,48,37,0.10); color: var(--red); border:1px solid rgba(217,48,37,0.35); }
  .status.risk .dot, .status.off .dot{ background: var(--red); }
  .status.on{ background: rgba(198,214,68,0.28); color: var(--green); border:1px solid rgba(198,214,68,0.6); }
  .status.on .dot{ background: var(--olive-hover); }
  .status.nodata{ background: var(--pill-bg); color: var(--text-soft); border:1px solid var(--pill-border); }
  .status.nodata .dot{ background: var(--grey-dot); }

  .chip{ display:inline-block; font-size: 11.5px; color: var(--text-muted); border:1px solid var(--pill-border);
    background: var(--pill-bg); padding: 2px 9px; border-radius: 999px; margin-bottom: 10px; }
  .metric{ font-size: 32px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; margin-bottom: 2px; }
  .metric-sub{ font-size: 12.5px; color: var(--text-soft); }

  .card.loading .metric{ opacity: .35; }
  .card.loading .metric-sub{ opacity: .35; }

  .error-box{ background: rgba(217,48,37,0.08); border:1px solid rgba(217,48,37,0.35); color: var(--red); border-radius:0;
    padding:12px 16px; margin-bottom:18px; font-size:13.5px; }

  .section-title{ font-size: 18px; font-weight: 700; margin: 2px 0 4px; }
  .section-sub{ color: var(--text-muted); font-size: 13px; margin: 0 0 16px; }

  .panel-title-row{ display:flex; align-items:center; justify-content:space-between; gap: 12px; }
  /* Lime pill like the website's "Start your fitout" button (dark text for contrast). */
  .export-btn{ background: var(--olive); border:1px solid var(--olive); color: var(--text);
    padding: 8px 18px; border-radius: 40px; font-family: inherit; font-size: 12px; font-weight:600;
    text-transform: uppercase; letter-spacing: .04em; cursor:pointer; }
  .export-btn:hover{ background: var(--olive-hover); border-color: var(--olive-hover); }

  .card-clickable{ cursor:pointer; transition: border-color .15s ease; }
  .card-clickable:hover{ border-color: var(--border-strong); }
  .card-clickable.active{ border-color: var(--olive); box-shadow: inset 0 -4px 0 var(--olive); }

  .lb-table-wrap{ overflow-x: auto; }
  .lb-table{ width:100%; border-collapse: collapse; font-size: 13.5px; }
  .lb-table thead th{ text-align:left; font-size: 11px; letter-spacing:.06em; text-transform: uppercase; color: var(--text-muted);
    font-weight:600; padding: 6px 10px 10px; border-bottom: 2px solid var(--text); }
  .lb-table .lb-col-rate{ text-align:right; }
  .lb-table tbody td{ padding: 12px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
  .lb-table tbody tr:last-child td{ border-bottom:none; }
  .lb-table tbody tr:nth-child(even){ background: var(--pill-bg); }
  .lb-name{ font-weight:700; color: var(--text); }
  .lb-rate{ text-align:right; white-space:nowrap; font-variant-numeric: tabular-nums; }
  .lb-rate-dot{ display:inline-block; width:7px; height:7px; border-radius:50%; margin-right:6px; }
  .lb-dot-green{ background: var(--olive-hover); }
  .lb-dot-amber{ background: var(--orange); }
  .lb-dot-red{ background: var(--red); }
  .lb-empty{ text-align:center; color: var(--text-soft); padding: 20px 10px; }

  .im-table-wrap{ overflow-x: auto; }
  .im-table{ width:100%; border-collapse: collapse; font-size: 13px; white-space: nowrap; }
  .im-table thead th{ text-align:right; font-size: 11px; color: var(--text-muted); font-weight:600;
    padding: 8px 10px; border-bottom: 2px solid var(--text); max-width: 120px;
    overflow: hidden; text-overflow: ellipsis; }
  .im-table thead th.im-col-installer{ text-align:left; }
  .im-table thead th.im-col-total{ color: var(--text); }
  .im-table tbody td{ text-align:right; padding: 9px 10px; border-bottom: 1px solid var(--border);
    font-variant-numeric: tabular-nums; }
  .im-table tbody tr:last-child td{ border-bottom:none; }
  .im-name{ text-align:left; font-weight:700; color: var(--text);
    position: sticky; left: 0; background: var(--card); }
  .im-table tbody tr:nth-child(even) .im-name{ background: var(--pill-bg); }
  .im-total{ font-weight:700; color: var(--text); }
  .im-empty{ text-align:center; color: var(--text-soft); padding: 20px 10px; }

  .two-col{ grid-template-columns: 1fr 1fr; }
  @media (max-width: 860px){ .two-col{ grid-template-columns: 1fr; } }

  .bar-panel-head{ display:flex; align-items:flex-start; justify-content:space-between; margin-bottom: 14px; gap: 10px; }
  .view-toggle-btn{ background: var(--bg); border:1px solid var(--text); color: var(--text);
    padding: 6px 14px; border-radius: 40px; font-family: inherit; font-size: 12.5px; font-weight:600; cursor:pointer; white-space:nowrap; }
  .view-toggle-btn:hover{ background: var(--olive); border-color: var(--olive); }

  .bar-loading{ color: var(--text-soft); font-size: 13px; padding: 10px 0; }
  .bar-chart{ display:grid; grid-template-columns: 150px 1fr 44px; row-gap: 10px; column-gap: 10px; align-items:center; }
  .bar-axis{ grid-column: 2 / 3; display:flex; justify-content:space-between; font-size: 11px;
    color: var(--text-soft); margin-bottom: 2px; }
  .bar-axis-spacer{ }
  .bar-label{ font-size: 12.5px; color: var(--text-muted); text-align:right; overflow:hidden;
    text-overflow: ellipsis; white-space:nowrap; }
  .bar-track{ position:relative; height: 16px; background: var(--pill-bg); border-radius: 0; overflow:hidden; }
  .bar-fill{ position:absolute; top:0; left:0; height:100%; border-radius: 0; min-width:2px; }
  .bar-value{ font-size: 12.5px; font-weight:700; color: var(--text); }
  .bar-empty{ color: var(--text-soft); font-size: 13px; padding: 10px 0; }

  .tv-table{ width:100%; border-collapse: collapse; font-size: 13px; }
  .tv-table th{ text-align:left; font-size: 11px; letter-spacing:.06em; text-transform: uppercase; color: var(--text-muted); font-weight:600;
    padding: 6px 8px 10px; border-bottom: 2px solid var(--text); }
  .tv-table th.tv-num{ text-align:right; }
  .tv-table td{ padding: 8px; border-bottom: 1px solid var(--border); }
  .tv-table td.tv-num{ text-align:right; font-weight:700; font-variant-numeric: tabular-nums; }
  .tv-table tr:last-child td{ border-bottom:none; }

  .month-nav{ display:flex; gap:10px; margin-bottom:16px; }
  .month-nav-btn{ background: var(--bg); border:1px solid var(--text); color: var(--text);
    padding: 6px 14px; border-radius: 40px; font-family: inherit; font-size: 12.5px; font-weight:600; cursor:pointer; }
  .month-nav-btn:hover{ background: var(--olive); border-color: var(--olive); }

  .vbar-wrap{ display:flex; gap: 12px; }
  .vbar-yaxis{ display:flex; flex-direction:column; justify-content:space-between; align-items:flex-end;
    height: 220px; padding-bottom: 34px; font-size: 11px; color: var(--text-soft); width: 42px; flex-shrink:0; }
  .vbar-plot{ flex:1; position:relative; min-width:0; }
  .vbar-gridlines{ position:absolute; top:0; left:0; right:0; height: 220px; display:flex;
    flex-direction:column; justify-content:space-between; pointer-events:none; }
  .vbar-gridline{ border-top:1px solid var(--border); }
  .vbar-bars{ position:relative; display:flex; align-items:flex-end; height: 220px;
    padding-bottom: 34px; gap: 6px; }
  .vbar-col{ flex:1; min-width:0; display:flex; flex-direction:column; align-items:center;
    justify-content:flex-end; height:100%; position:relative; }
  .vbar-bar{ width:62%; background: var(--olive); border-radius: 0; min-height:1px; }
  .vbar-value{ position:absolute; top:-20px; font-size: 11.5px; font-weight:700; color: var(--text); white-space:nowrap; }
  .vbar-xlabel{ position:absolute; bottom:-32px; font-size: 10.5px; color: var(--text-soft);
    white-space:nowrap; transform: rotate(-38deg); transform-origin: top right; }

  .log-table-wrap{ overflow-x: auto; }
  .log-table{ width:100%; border-collapse: collapse; font-size: 13px; }
  .log-table thead th{ text-align:left; font-size: 11px; letter-spacing:.06em; text-transform: uppercase; color: var(--text-muted);
    font-weight:600; padding: 8px 10px; border-bottom: 2px solid var(--text); white-space:nowrap; }
  .log-table tbody td{ padding: 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
  .log-table tbody tr:last-child td{ border-bottom:none; }
  .log-table tbody tr:nth-child(even){ background: var(--pill-bg); }
  .log-badge{ display:inline-block; background: var(--card); border:1px solid var(--pill-border);
    color: var(--text-muted); font-size: 11.5px; padding: 2px 9px; border-radius: 40px; margin: 2px 4px 2px 0; white-space:nowrap; }
  .log-note-empty{ color: var(--text-soft); font-style: italic; }
  /* Links look like the website's "View all": dark text, lime underline. */
  .log-table a, .lb-table a{ color: var(--text); font-weight:600; text-decoration:none; border-bottom: 2px solid var(--olive); }
  .log-table a:hover, .lb-table a:hover{ color: var(--olive-dark); border-bottom-color: var(--olive-hover); }
  .log-empty{ text-align:center; color: var(--text-soft); padding: 20px 10px; }

  footer{ text-align:center; color: var(--text-soft); font-size:12px; margin-top: 30px; }
