/* Usage dashboard · WindEurope Annual Event 2027. Tokens and restraint from the speechwriter (white page, hairlines, one blue). */
:root {
  --we-blue: #005596;
  --we-sky: #79bde8;
  --ink: #313131;
  --ink-2: rgba(49, 49, 49, .82);
  --ink-3: rgba(49, 49, 49, .62);
  --line: rgba(49, 49, 49, .14);
  --paper: #ffffff;
  --wash: #f4f8fb;
  --wrong: #c62828;
  --ui: 'Manrope', system-ui, sans-serif;
  --r: 10px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); }
body { font-family: var(--ui); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
::selection { background: var(--we-sky); color: #00284a; }
a { color: var(--we-blue); }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--we-blue); outline-offset: 2px; border-radius: 6px; }
.muted { color: var(--ink-3); }
[hidden] { display: none !important; }

/* Top bar */
.topbar { border-bottom: 1px solid var(--line); background: #fff; }
.topbar-in { display: flex; align-items: center; gap: 14px; padding: 12px 24px; }
.brand-logo { height: 28px; width: auto; }
.brand-name { font-weight: 600; padding-left: 14px; border-left: 1px solid var(--line); }
.topbar .spacer { flex: 1; }
.link-btn { background: none; border: 0; color: var(--we-blue); font-weight: 600; font-size: 13px; padding: 4px 0; }

/* Toolbar */
.toolbar { display: flex; align-items: center; gap: 18px; padding: 14px 24px 10px; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; background: var(--wash); border-radius: 999px; padding: 3px; }
.tab { border: 0; background: none; padding: 6px 16px; border-radius: 999px; font-weight: 600; color: var(--ink-2); }
.tab[aria-selected="true"] { background: #fff; color: var(--we-blue); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.fresh { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: 13px; }
.btn { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 5px 14px; font-weight: 600; font-size: 13px; }
.btn:hover { border-color: var(--we-blue); color: var(--we-blue); }
.btn:disabled { opacity: .5; cursor: default; }
.btn-primary { background: var(--we-blue); border-color: var(--we-blue); color: #fff; }
.btn-primary:hover { color: #fff; filter: brightness(1.08); }
.switch { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.toolbar .spacer { flex: 1; }
.sel { font-size: 13px; color: var(--ink-2); }
.dl { position: relative; }
.dl-menu { position: absolute; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 6px 24px rgba(0,0,0,.1); padding: 6px; z-index: 30; min-width: 180px; }
.dl-menu button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 7px 10px; border-radius: 6px; }
.dl-menu button:hover { background: var(--wash); }
.msg { padding: 0 24px; font-size: 13px; }
.msg.err { color: var(--wrong); }

/* Filter line */
.filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 0 24px 10px; font-size: 13px; }
.chip { background: var(--wash); border: 1px solid var(--line); border-radius: 999px; padding: 2px 6px 2px 10px; display: inline-flex; gap: 6px; align-items: center; }
.chip button { border: 0; background: none; color: var(--ink-3); padding: 0 4px; }
.count { color: var(--ink-3); }

/* Conversation header */
.conv-head { padding: 4px 24px 12px; display: flex; gap: 22px; flex-wrap: wrap; align-items: baseline; font-size: 13px; }
.conv-head .back { font-weight: 600; }
.conv-head b { font-weight: 600; }

/* Tables */
.table-wrap { padding: 0 24px 24px; }
.tabulator { border: 1px solid var(--line); border-radius: var(--r); font-size: 13px; background: #fff; }
.tabulator .tabulator-header { background: var(--wash); border-bottom: 1px solid var(--line); font-weight: 600; }
.tabulator .tabulator-header .tabulator-col { background: var(--wash); border-right: 0; }
.tabulator .tabulator-header .tabulator-col .tabulator-col-content { padding: 8px 10px; }
.tabulator-row { border-bottom: 1px solid rgba(49,49,49,.07); }
.tabulator-row.tabulator-row-even { background: #fff; }
.tabulator-row:hover { background: #f7fafc !important; }
.tabulator-row.tabulator-selected { background: #e8f2fa !important; }
.tabulator-row .tabulator-cell { padding: 8px 10px; border-right: 0; }
.tabulator .tabulator-col.filtered .tabulator-col-title { color: var(--we-blue); }
.tabulator .tabulator-header-popup-button { color: var(--ink-3); padding: 0 2px 0 6px; font-size: 11px; }
.tabulator .tabulator-col.filtered .tabulator-header-popup-button { color: var(--we-blue); }
.tabulator-row .tabulator-cell.wrap { white-space: normal; }
.fp label .muted { white-space: nowrap; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; }
.tag { display: inline-block; background: var(--wash); border: 1px solid rgba(0,85,150,.18); color: #00406f; border-radius: 999px; padding: 0 8px; margin: 1px 3px 1px 0; font-size: 12px; white-space: nowrap; }
.tag.pending { color: var(--ink-3); border-color: var(--line); font-style: italic; }
.open-btn { border: 0; background: none; color: var(--we-blue); font-size: 16px; padding: 0 6px; }
.status-open { color: #2e7d32; font-weight: 600; }
.empty { padding: 30px; color: var(--ink-3); text-align: center; }

/* Excel-style column pop-up */
.fp { width: 260px; padding: 8px; font-size: 13px; }
.fp .row { display: flex; gap: 6px; margin-bottom: 8px; }
.fp .row button { flex: 1; }
.fp input[type="search"] { width: 100%; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; font: inherit; margin-bottom: 6px; }
.fp .list { max-height: 240px; overflow: auto; border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px; }
.fp label { display: flex; gap: 6px; align-items: flex-start; padding: 2px 0; word-break: break-word; }
.fp .foot { display: flex; justify-content: space-between; margin-top: 8px; }
.tabulator-popup-container { border-radius: var(--r); box-shadow: 0 6px 24px rgba(0,0,0,.12); border: 1px solid var(--line); }

/* Side panel */
.panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); background: #fff; border-left: 1px solid var(--line); box-shadow: -8px 0 30px rgba(0,0,0,.08); padding: 20px 24px; overflow: auto; z-index: 40; }
.panel h3 { margin: 18px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); }
.panel .txt { white-space: pre-wrap; }
.panel .close { float: right; }

/* Login */
.login { max-width: 360px; margin: 12vh auto 0; padding: 0 16px; }
.login img { height: 34px; }
.login h1 { font-size: 22px; font-weight: 600; margin: 24px 0 4px; }
.login label { display: block; font-size: 13px; font-weight: 600; margin: 16px 0 4px; }
.login input { width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r); font: inherit; }
.login .btn { margin-top: 20px; width: 100%; padding: 9px; }
.login .err { color: var(--wrong); font-size: 13px; min-height: 20px; margin-top: 10px; }
