/* Paperwork on HeroUI v3 (Aivis 2026-11-28: "Skaties visu kas ir no šī heroui.com/en/docs/react"): the real HeroUI
   styles come from vendor/heroui-3.2.8.min.css (@heroui/styles, Apache-2.0, compiled — plain classes like
   .button--primary, .table-root, .chip--soft). This file only
     1. uses HeroUI's own variables directly (--foreground, --muted, --separator, --spacing, --radius…; audit 2026-11-28
        removed the old Studio aliases);
     2. keeps the few parts HeroUI OSS has no class for (page titles, list rows, the small menu, the toast).
   Our own colours, corners and sizes are in tokens.css (loaded before this file). */
:root{
  /* motion (HeroUI has no tokens for these durations) */
  --ease:cubic-bezier(.32,.72,0,1); --ease-spring:cubic-bezier(.34,1.4,.64,1);
  --d-fast:120ms; --d:200ms; --d-slow:280ms;
  --scrim:#00000066;
}
@media (prefers-reduced-motion: reduce){ :root{ --d-fast:0ms; --d:0ms; --d-slow:0ms; } }

/* base */
html,body{margin:0;height:100%;overflow:hidden;background:var(--background)}
body{color:var(--foreground);font:400 14px/var(--lh-14) var(--font-sans);-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
[hidden]{display:none!important}
.ic{width:16px;height:16px;flex:none;display:block}
:focus-visible:not([data-slot]):not(.input-group__input):not(.input):not(.textarea){outline:2px solid var(--focus);outline-offset:2px}   /* HeroUI parts draw their own ring */
@keyframes pop-in{from{opacity:0;transform:translateY(-4px) scale(.96)}to{opacity:1;transform:none}}
@keyframes fade-in{from{opacity:0}to{opacity:1}}
@keyframes dialog-in{from{opacity:0;transform:scale(.94)}to{opacity:1;transform:none}}
@keyframes toast-in{from{opacity:0;transform:translate(-50%,-8px) scale(.96)}to{opacity:1;transform:translate(-50%,0)}}

/* titles */
.page-title{display:flex;align-items:baseline;gap:10px;margin:0;font-size:24px;font-weight:600;letter-spacing:0;line-height:var(--lh-24)}
.section-title{margin:0;font-size:16px;font-weight:500;line-height:var(--lh-16)}   /* = card titles */

/* list rows (the "latest" list, menus) */
.list{display:flex;flex-direction:column;gap:2px;padding:0}
.row{position:relative;display:flex;align-items:center;gap:10px;width:100%;min-height:36px;padding:0 12px;border:0;border-radius:var(--r-pill);background:none;
  color:var(--foreground);text-align:left;font:inherit;cursor:pointer;transition:background-color var(--d-fast) var(--ease)}
.row:hover{background:var(--default)}
.row:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}
.row-label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* the small "Izveidot" menu: a HeroUI overlay surface with rows */
.menu{position:absolute;z-index:40;min-width:180px;display:flex;flex-direction:column;gap:2px;padding:6px;background:var(--overlay);border-radius:var(--r-box);box-shadow:var(--shadow-pop)}
.menu:not([hidden]){animation:pop-in var(--d-fast) var(--ease)}

/* toast */
.toast{position:fixed;z-index:60;left:50%;top:16px;transform:translateX(-50%);display:flex;align-items:center;gap:8px;min-height:40px;padding:8px 16px;
  border-radius:var(--r-seg);background:var(--overlay);color:var(--foreground);font-size:14px;font-weight:500;box-shadow:var(--shadow-pop)}
.toast:not([hidden]){animation:toast-in var(--d-slow) var(--ease-spring)}

/* table rows that open a record (HeroUI Table rows, made clickable) */
.table__row[data-href]{cursor:pointer}
.table__cell.num-cell,.table__column.num-cell{text-align:right;font-variant-numeric:tabular-nums}
.table__cell.muted{color:var(--muted)}
