/* Generated from src/Styles.html — edit there and rebuild. */
:root {
    --brand: #1EC28B;          /* website primary green */
    --brand-ink: #0F7A55;      /* green dark enough for text on white */
    --brand-soft: #E9FBF4;
    --brand-line: #CFEFE2;
    --mint: #B3F2DD;           /* website top strip */
    --navy: #2B2945;           /* website headings */
    --ink: #2B2945;
    --muted: #5F7179;
    --muted-2: #8A9AA1;
    --accent: #FF8900;         /* website "Live Chat" orange */
    --accent-ink: #A35600;
    --accent-soft: #FFF3E3;
    --surface: #FFFFFF;
    --surface-2: #F7FAF9;
    --border: #DCE8E4;
    --danger: #C5221F;  --danger-soft: #FDECEA;
    --warn: #8A5300;    --warn-soft: #FFF4DC;
    --info: #1759B8;    --info-soft: #EAF1FC;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(43,41,69,.06), 0 6px 20px rgba(43,41,69,.06);
    --font: 'Jost', 'Segoe UI', Roboto, Arial, sans-serif;
  }
  * { box-sizing: border-box; }
  html, body { margin: 0; }
  body {
    font-family: var(--font); color: var(--ink); font-size: 15px; line-height: 1.45;
    background: linear-gradient(180deg, #D9F8EC 0%, #F3FFFA 320px, #F7FBFA 100%);
    min-height: 100vh;
  }
  [hidden] { display: none !important; }
  a { color: var(--brand-ink); }
  button, input, select, textarea { font: inherit; color: inherit; }

  /* ---------- top bar ---------- */
  .strip { background: var(--mint); color: var(--navy); font-size: 13px; }
  .strip .wrap { display: flex; justify-content: space-between; gap: 12px; padding: 6px 16px; flex-wrap: wrap; }
  .topbar { background: var(--surface); box-shadow: 0 2px 12px rgba(43,41,69,.07); position: sticky; top: 0; z-index: 20; }
  .topbar .wrap { display: flex; align-items: center; gap: 18px; padding: 10px 16px; flex-wrap: wrap; }
  .wrap { max-width: 1320px; margin: 0 auto; }
  .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
  .brand img { height: 38px; width: auto; }
  .brand b { font-size: 18px; font-weight: 600; letter-spacing: .2px; }
  .brand small { display: block; color: var(--muted); font-size: 12px; margin-top: -2px; }
  nav.tabs { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
  nav.tabs button {
    border: 0; background: transparent; padding: 8px 14px; border-radius: 999px; cursor: pointer;
    color: var(--navy); font-weight: 500;
  }
  nav.tabs button:hover { background: var(--brand-soft); }
  nav.tabs button[aria-current="page"] { background: var(--brand); color: #fff; }
  .user { font-size: 12px; color: var(--muted); }

  main { padding: 20px 16px 60px; }
  h1 { font-size: 24px; margin: 0; font-weight: 600; color: var(--navy); }
  h2 { font-size: 15px; margin: 0 0 12px; font-weight: 600; color: var(--navy); text-transform: uppercase; letter-spacing: .6px; }
  .page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
  .sub { color: var(--muted); font-size: 13px; }

  /* ---------- cards & grid ---------- */
  .card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
  .card + .card { margin-top: 16px; }
  .card h2 .hint { text-transform: none; letter-spacing: 0; color: var(--muted); font-weight: 400; font-size: 13px; margin-left: 6px; }
  .grid { display: grid; gap: 12px 14px; grid-template-columns: repeat(12, 1fr); }
  .col-2 { grid-column: span 2; } .col-3 { grid-column: span 3; } .col-4 { grid-column: span 4; }
  .col-6 { grid-column: span 6; } .col-8 { grid-column: span 8; } .col-12 { grid-column: span 12; }
  .booking-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; align-items: start; }
  .summary { position: sticky; top: 80px; }

  /* ---------- form controls ---------- */
  label.f { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); font-weight: 500; min-width: 0; }
  label.f .lt { display: block; }
  label.f .req { color: var(--danger); }
  input[type=text], input[type=tel], input[type=email], input[type=password], input[type=number], input[type=date], input[type=month], input[type=search], select, textarea {
    width: 100%; border: 1px solid var(--border); background: var(--surface); border-radius: 10px;
    padding: 9px 11px; font-size: 15px; color: var(--ink); min-width: 0;
    transition: border-color .15s, box-shadow .15s;
  }
  textarea { resize: vertical; min-height: 64px; }
  input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(30,194,139,.18); }
  input[readonly], input:disabled { background: var(--surface-2); color: var(--muted); }
  input.invalid, select.invalid { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(197,34,31,.12); }
  .num { text-align: right; font-variant-numeric: tabular-nums; }
  .check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); cursor: pointer; }
  .check input { width: 18px; height: 18px; accent-color: var(--brand); }
  .inline { display: flex; gap: 8px; align-items: center; }
  .field-note { font-size: 12px; color: var(--muted-2); }

  /* ---------- buttons ---------- */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
    border: 1px solid transparent; border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: 14px;
    text-decoration: none; white-space: nowrap; transition: filter .15s, transform .05s;
  }
  .btn:active { transform: translateY(1px); }
  .btn:disabled { opacity: .55; cursor: not-allowed; }
  .btn-primary { background: var(--brand); color: #fff; }
  .btn-primary:hover { filter: brightness(.95); }
  .btn-accent { background: var(--accent); color: #fff; }
  .btn-accent:hover { filter: brightness(.95); }
  .btn-outline { background: var(--surface); border-color: var(--border); color: var(--navy); }
  .btn-outline:hover { border-color: var(--brand); color: var(--brand-ink); }
  .btn-ghost { background: transparent; color: var(--brand-ink); padding: 6px 10px; }
  .btn-ghost:hover { background: var(--brand-soft); }
  .btn-sm { padding: 6px 12px; font-size: 13px; }
  .btn-block { width: 100%; }
  .btn-wa { background: #25D366; color: #fff; }
  .btn .spin { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }
  .actions { display: flex; gap: 8px; flex-wrap: wrap; }

  /* ---------- line items ---------- */
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table.t { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
  table.t th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 600; padding: 8px 8px; border-bottom: 1px solid var(--border); white-space: nowrap; }
  table.t td { padding: 7px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
  table.t tr:last-child td { border-bottom: 0; }
  table.t td.num, table.t th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
  table.t input { padding: 6px 8px; font-size: 14px; }
  table.t input.desc { min-width: 190px; }
  table.t tr.auto td { background: var(--surface-2); }
  table.t tbody tr.click { cursor: pointer; }
  table.t tbody tr.click:hover td { background: var(--brand-soft); }
  .tag { display: inline-block; font-size: 11px; padding: 1px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; }
  .tag.extra { background: var(--accent-soft); color: var(--accent-ink); }
  .x { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 18px; line-height: 1; padding: 4px 8px; border-radius: 8px; }
  .x:hover { background: var(--danger-soft); color: var(--danger); }

  /* ---------- summary ---------- */
  .sum-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
  .sum-id { font-weight: 600; font-size: 16px; color: var(--navy); }
  .sum-group { border-top: 1px solid var(--border); padding: 10px 0; }
  .sum-group:first-of-type { border-top: 0; }
  .sum-title { font-size: 11px; text-transform: uppercase; letter-spacing: .7px; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
  .row { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; font-size: 14px; }
  .row span:last-child { font-variant-numeric: tabular-nums; font-weight: 500; }
  .row.big { font-size: 17px; font-weight: 600; }
  .row.big span:last-child { font-weight: 700; }
  .hero { background: var(--brand-soft); border-radius: 12px; padding: 10px 12px; margin: 6px 0; border-left: 4px solid var(--brand); }
  .hero.owner { background: var(--accent-soft); border-left-color: var(--accent); }
  .hero .row span:first-child { color: var(--navy); }
  .profit-line { display: flex; align-items: center; justify-content: space-between; font-size: 18px; font-weight: 700; }
  .profit-line .lbl { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; }
  .icon { display: inline-flex; width: 18px; height: 18px; border-radius: 50%; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; flex: none; }
  .icon.ok { background: var(--brand-ink); } .icon.bad { background: var(--danger); } .icon.warn { background: #C77700; } .icon.info { background: var(--info); }
  .msgs { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
  .msgs li { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; padding: 7px 9px; border-radius: 10px; }
  .msgs li.error { background: var(--danger-soft); color: var(--danger); }
  .msgs li.warning { background: var(--warn-soft); color: var(--warn); }
  .msgs li.info { background: var(--info-soft); color: var(--info); }
  .docs { display: grid; gap: 10px; margin-top: 12px; }
  .doc { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; background: var(--surface-2); }
  .doc b { font-size: 13px; display: block; margin-bottom: 6px; word-break: break-word; }

  /* ---------- status pills ---------- */
  .pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); white-space: nowrap; }
  .pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
  .pill.Confirmed { color: var(--brand-ink); background: var(--brand-soft); border-color: var(--brand-line); }
  .pill.Enquiry { color: var(--info); background: var(--info-soft); border-color: #CFDDF5; }
  .pill.Checked-in { color: var(--accent-ink); background: var(--accent-soft); border-color: #FFD9A8; }
  .pill.Completed { color: var(--navy); background: #EEEDF5; border-color: #DAD8EA; }
  .pill.Cancelled { color: var(--danger); background: var(--danger-soft); border-color: #F6C9C6; }

  /* ---------- dashboard ---------- */
  .tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
  .tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
  .tile .k { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; font-weight: 600; }
  .tile .v { font-size: 24px; font-weight: 600; color: var(--navy); margin-top: 4px; font-variant-numeric: tabular-nums; }
  .tile .s { font-size: 12px; color: var(--muted-2); }
  .dash-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
  .empty { color: var(--muted); font-size: 14px; padding: 18px 4px; text-align: center; }
  .hint-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--info-soft); color: var(--info); border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; font-size: 14px; }
  .hint-bar > span:nth-child(2) { flex: 1 1 280px; }
  #dashAll[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
  .is-loading .tiles, .is-loading .dash-grid { opacity: .5; transition: opacity .2s; }

  /* ---------- filters ---------- */
  .filters { display: grid; grid-template-columns: 2fr 1.2fr 1fr 1fr auto; gap: 10px; margin-bottom: 14px; align-items: end; }

  /* ---------- toast & modal ---------- */
  #toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; display: grid; gap: 8px; width: min(560px, calc(100vw - 32px)); }
  .toast { background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.2); font-size: 14px; white-space: pre-line; }
  .toast.error { background: var(--danger); }
  .toast.ok { background: var(--brand-ink); }
  .modal-back { position: fixed; inset: 0; background: rgba(43,41,69,.45); z-index: 90; display: flex; align-items: center; justify-content: center; padding: 16px; }
  .modal { background: var(--surface); border-radius: 16px; width: min(900px, 100%); height: min(92vh, 1100px); display: flex; flex-direction: column; overflow: hidden; }
  .modal-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border); gap: 10px; }
  .modal iframe { flex: 1; border: 0; width: 100%; background: #fff; }
  .loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 40px; color: var(--muted); }

  /* ---------- responsive ---------- */
  @media (max-width: 1100px) {
    .booking-layout { grid-template-columns: 1fr; }
    .summary { position: static; }
    .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .dash-grid { grid-template-columns: 1fr; }
  }
  @media (max-width: 720px) {
    main { padding: 14px 16px 60px; }
    .grid { grid-template-columns: repeat(2, 1fr); }
    .col-2, .col-3, .col-4 { grid-column: span 1; }
    .col-6, .col-8, .col-12 { grid-column: span 2; }
    .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tile .v { font-size: 20px; }
    .filters { grid-template-columns: 1fr 1fr; }
    .filters .search { grid-column: span 2; }
    nav.tabs { margin-left: 0; width: 100%; }
    nav.tabs button { flex: 1; padding: 8px 6px; }
    .strip .wrap span:last-child { display: none; }
    .user { display: none; }
  }
  @media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
