/* Nya Victoria: black on white, each drink in its label colour, Falköping skyline on top. */
:root {
  --ink: #111111;
  --muted: #555555;
  --line: #DADADA;
  --line-soft: #E4E4E4;
  --field: #BDBDBD;
  --warn-bg: #FFF3D1;
  --warn-ink: #6B3A00;
  --ok-bg: #E6F2E0;
  --ok-ink: #24501A;
  --band: #111111;
  --band-ink: #FFFFFF;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #FFFFFF;
  color: var(--ink);
  font-family: 'Exo 2', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.4;
}
a { color: var(--ink); }
a:hover { color: var(--muted); }
button, input, select, textarea { font: inherit; color: inherit; }

.page { max-width: 560px; margin: 0 auto; padding-bottom: 96px; }
.page--form { padding-bottom: 0; min-height: 100vh; display: flex; flex-direction: column; }

/* Top links above the skyline */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 8px 0; min-height: 52px; }
.toplink { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; padding: 0 8px; font-weight: 600; text-decoration: none; }
.toplink--underline { text-decoration: underline; text-underline-offset: 3px; padding: 0 12px; }

/* Skyline and colour band, like the labels */
.skyline { display: block; width: 100%; height: 56px; margin-top: 4px; }
.skyline--small { height: 40px; }
.band { background: var(--band); color: var(--band-ink); padding: 4px 20px 26px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.band__logo { height: 30px; width: auto; }
.band__title { margin: 6px 0 0; font-size: 44px; line-height: 48px; font-weight: 300; overflow-wrap: anywhere; }
.band__title--small { font-size: 34px; line-height: 40px; margin: 0; }
.band__eyebrow { font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.band__meta { font-size: 14px; opacity: 0.85; }
.band__nav { display: flex; align-items: center; gap: 8px; }
.band__nav span { min-width: 110px; }
.iconbtn { width: 44px; height: 44px; border: 1px solid currentColor; border-radius: 8px; background: transparent; display: inline-flex; align-items: center; justify-content: center; color: inherit; text-decoration: none; opacity: 0.85; }

/* Sections */
.section { padding: 26px 20px 0; display: flex; flex-direction: column; gap: 12px; }
.label { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.heading { margin: 0; padding-bottom: 6px; border-bottom: 1px solid var(--ink); }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.row > :first-child { min-width: 0; }
.row > :last-child { flex-shrink: 0; }
.row--total { font-size: 17px; font-weight: 700; padding-top: 10px; border-top: 1px solid var(--line); }
.sub { display: block; font-size: 14px; color: var(--muted); }

/* Cost per container */
.big { display: flex; align-items: baseline; gap: 8px; }
.big__num { font-size: 68px; line-height: 70px; font-weight: 300; }
.big__unit { font-size: 22px; font-weight: 500; }
.split { display: flex; height: 10px; border-radius: 5px; overflow: hidden; gap: 2px; }
.dot { width: 10px; height: 10px; border-radius: 5px; flex-shrink: 0; }
.legend { display: flex; align-items: center; gap: 10px; }
.legend span:nth-child(2) { flex-grow: 1; min-width: 0; }
.legend span:last-child { font-weight: 600; flex-shrink: 0; }
.container-row { margin: 28px 20px 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.container-row + .container-row { margin-top: 0; border-top: 0; }
.container-row__price { font-size: 26px; }

.notice { margin: 20px 20px 0; padding: 12px 14px; border-radius: 8px; display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 21px; }
.notice--warn { background: var(--warn-bg); color: var(--warn-ink); }
.notice--ok { background: var(--ok-bg); color: var(--ok-ink); }
.notice svg { flex-shrink: 0; margin-top: 2px; }

/* Lists */
.list { list-style: none; margin: 0; padding: 0; }
.list__item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); min-height: 44px; }
.list__item > :first-child { flex: 1 1 0; min-width: 0; }
.list__link { display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.list__link .swatch { width: 14px; height: 40px; border-radius: 3px; flex-shrink: 0; }
.list__link .grow { flex: 1 1 0; min-width: 0; }
.strong { font-weight: 600; }
.warn-text { color: var(--warn-ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 16px; border: 0; border-radius: 8px; background: var(--ink); color: #FFFFFF; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; flex-shrink: 0; }
.btn:hover { color: #FFFFFF; opacity: 0.9; }
.btn--big { height: 52px; padding: 0 32px; font-size: 17px; }
.linkbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 2px; border: 0; background: none; font-weight: 600; cursor: pointer; text-decoration: none; }

/* Tank schedule */
.schedule { padding: 18px 16px 0; }
.schedule__head, .schedule__row { display: flex; align-items: center; }
.schedule__head { padding-bottom: 6px; border-bottom: 1px solid var(--ink); font-size: 13px; font-weight: 600; color: var(--muted); }
.schedule__name { width: 60px; flex-shrink: 0; display: flex; flex-direction: column; }
.schedule__name b { font-size: 14px; font-weight: 600; }
.schedule__name small { font-size: 12px; color: var(--muted); }
.schedule__weeks { flex: 1 1 0; min-width: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); text-align: center; }
.schedule__row { height: 46px; border-bottom: 1px solid var(--line-soft); }
.schedule__track { flex: 1 1 0; min-width: 0; position: relative; height: 32px; }
.bar { position: absolute; top: 0; height: 32px; border-radius: 5px; padding: 0 6px; display: flex; align-items: center; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar--proposed { background: #FFFFFF !important; color: var(--ink) !important; border: 1.5px dashed var(--ink); }
.today { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); opacity: 0.35; }
.schedule__legend { display: flex; flex-wrap: wrap; gap: 8px 16px; padding-top: 12px; font-size: 14px; color: var(--muted); }
.dashed { width: 12px; height: 12px; border-radius: 3px; border: 1.5px dashed var(--ink); display: inline-block; vertical-align: -1px; margin-right: 6px; }

/* Forms */
.fields { display: flex; gap: 12px; }
.field { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.input, .field input, .field select, .field textarea, .line select, .line input {
  width: 100%; height: 48px; padding: 0 12px; border: 1px solid var(--field); border-radius: 8px; background: #FFFFFF; font-size: 16px; color: var(--ink); font-weight: 400;
}
.field textarea { height: auto; padding: 10px 12px; }
.line { display: flex; gap: 8px; align-items: center; }
.line select[name$="-material"] { flex: 1 1 0; min-width: 0; padding: 0 8px; }
.line input[name$="-quantity"] { width: 76px; flex-shrink: 0; text-align: right; padding: 0 10px; }
.line select[name$="-unit"] { width: 64px; flex-shrink: 0; padding: 0 6px; }
.errors { margin: 0; padding: 0; list-style: none; color: #9B1C1C; font-size: 14px; font-weight: 600; }
.savebar { position: sticky; bottom: 0; margin-top: auto; padding: 14px 20px 24px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 16px; background: #FFFFFF; }
.savebar > div { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; }
.savebar__price { font-size: 24px; }

/* Bottom navigation */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; background: #FFFFFF; border-top: 1px solid var(--line); display: flex; justify-content: center; padding-bottom: env(safe-area-inset-bottom); z-index: 10; }
.tabbar a { flex: 1 1 0; max-width: 186px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--muted); }
.tabbar a[aria-current="page"] { color: var(--ink); }

/* Login */
.login { padding: 24px 20px; display: flex; flex-direction: column; gap: 16px; }

/* Start page */
.daybox { width: 44px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.daybox span { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; color: var(--muted); }
.daybox b { font-size: 22px; font-weight: 400; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tile { min-height: 60px; padding: 8px; border-radius: 6px; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; text-decoration: none; }
.tile:hover { color: inherit; opacity: 0.9; }
.tile small { font-size: 12px; font-weight: 600; opacity: 0.85; }
.tile b { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile--free { border: 1.5px dashed var(--field); color: var(--muted); }

/* Lists and forms under Mer */
.section--tight { padding-top: 8px; gap: 14px; }
.page-title { margin: 0; font-size: 34px; line-height: 40px; font-weight: 300; overflow-wrap: anywhere; }
.search { margin: 0; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
.chip { flex-shrink: 0; display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 20px; border: 1px solid var(--field); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.chip--on { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.chip--on:hover { color: #FFFFFF; }
.right { flex-shrink: 0; text-align: right; }
.list__button { width: 100%; border: 0; border-bottom: 1px solid var(--line-soft); background: none; text-align: left; cursor: pointer; min-height: 60px; }
.fields__col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.fields__unit { width: 76px; flex-shrink: 0; display: flex; flex-direction: column; gap: 6px; }
.fields--bottom { align-items: flex-end; }
.fields__unit select { padding: 0 6px; }
.result { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 8px; background: #F3F3F3; }
.result__value { font-size: 22px; }
.help { font-size: 13px; font-weight: 400; color: var(--muted); }
.check { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 16px; font-weight: 500; }
.check input { width: 22px; height: 22px; accent-color: var(--ink); flex-shrink: 0; }
.errorlist { margin: 0; padding: 0; list-style: none; color: #9B1C1C; font-size: 14px; font-weight: 600; }
.line input[name$="-shared_by"] { width: 64px; flex-shrink: 0; text-align: right; padding: 0 8px; }
.daypicker { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.daypick input { position: absolute; opacity: 0; pointer-events: none; }
.daypick span { display: flex; align-items: center; justify-content: center; height: 48px; border: 1px solid var(--field); border-radius: 8px; font-weight: 600; cursor: pointer; }
.daypick input:checked + span { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.daypick input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.line--head { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: -4px; }
.line--head .grow { flex: 1 1 0; min-width: 0; }
.line--head .col-qty { width: 76px; flex-shrink: 0; text-align: right; }
.line--head .col-shared { width: 64px; flex-shrink: 0; text-align: right; }
